owntone-server/htdocs/assets/index.js
Alain Nussbaumer a1046f3913 [web] Fix for items not displaying because of their name
Albums, artists, composers, genres, and any other items listed on page where they appear sorted by names are now all displayed properly.
2023-06-04 13:54:01 +02:00

45 lines
819 KiB
JavaScript

const c0=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerpolicy&&(o.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?o.credentials="include":s.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}};c0();function ql(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const Ct={},ao=[],or=()=>{},d0=()=>!1,m0=/^on[^a-z]/,Bi=e=>m0.test(e),Id=e=>e.startsWith("onUpdate:"),Tt=Object.assign,Rd=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},f0=Object.prototype.hasOwnProperty,pt=(e,t)=>f0.call(e,t),Ne=Array.isArray,lo=e=>Eo(e)==="[object Map]",Is=e=>Eo(e)==="[object Set]",zf=e=>Eo(e)==="[object Date]",p0=e=>Eo(e)==="[object RegExp]",et=e=>typeof e=="function",It=e=>typeof e=="string",Si=e=>typeof e=="symbol",zt=e=>e!==null&&typeof e=="object",Ld=e=>zt(e)&&et(e.then)&&et(e.catch),p_=Object.prototype.toString,Eo=e=>p_.call(e),h0=e=>Eo(e).slice(8,-1),h_=e=>Eo(e)==="[object Object]",Nd=e=>It(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ai=ql(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wl=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},_0=/-(\w)/g,En=Wl(e=>e.replace(_0,(t,n)=>n?n.toUpperCase():"")),g0=/\B([A-Z])/g,jn=Wl(e=>e.replace(g0,"-$1").toLowerCase()),Ui=Wl(e=>e.charAt(0).toUpperCase()+e.slice(1)),li=Wl(e=>e?`on${Ui(e)}`:""),po=(e,t)=>!Object.is(e,t),uo=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Cl=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},zl=e=>{const t=parseFloat(e);return isNaN(t)?e:t},xl=e=>{const t=It(e)?Number(e):NaN;return isNaN(t)?e:t};let xf;const Oc=()=>xf||(xf=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}),y0="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",v0=ql(y0);function cs(e){if(Ne(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=It(r)?z0(r):cs(r);if(s)for(const o in s)t[o]=s[o]}return t}else{if(It(e))return e;if(zt(e))return e}}const b0=/;(?![^(]*\))/g,w0=/:([^]+)/,C0=/\/\*[^]*?\*\//g;function z0(e){const t={};return e.replace(C0,"").split(b0).forEach(n=>{if(n){const r=n.split(w0);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function We(e){let t="";if(It(e))t=e;else if(Ne(e))for(let n=0;n<e.length;n++){const r=We(e[n]);r&&(t+=r+" ")}else if(zt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Jo(e){if(!e)return null;let{class:t,style:n}=e;return t&&!It(t)&&(e.class=We(t)),n&&(e.style=cs(n)),e}const x0="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",k0=ql(x0);function __(e){return!!e||e===""}function E0(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=ss(e[r],t[r]);return n}function ss(e,t){if(e===t)return!0;let n=zf(e),r=zf(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Si(e),r=Si(t),n||r)return e===t;if(n=Ne(e),r=Ne(t),n||r)return n&&r?E0(e,t):!1;if(n=zt(e),r=zt(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),u=t.hasOwnProperty(i);if(a&&!u||!a&&u||!ss(e[i],t[i]))return!1}}return String(e)===String(t)}function Gl(e,t){return e.findIndex(n=>ss(n,t))}const g=e=>It(e)?e:e==null?"":Ne(e)||zt(e)&&(e.toString===p_||!et(e.toString))?JSON.stringify(e,g_,2):String(e),g_=(e,t)=>t&&t.__v_isRef?g_(e,t.value):lo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:Is(t)?{[`Set(${t.size})`]:[...t.values()]}:zt(t)&&!Ne(t)&&!h_(t)?String(t):t;let Pn;class Md{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Pn,!t&&Pn&&(this.index=(Pn.scopes||(Pn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Pn;try{return Pn=this,t()}finally{Pn=n}}}on(){Pn=this}off(){Pn=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function Vd(e){return new Md(e)}function y_(e,t=Pn){t&&t.active&&t.effects.push(e)}function v_(){return Pn}function S0(e){Pn&&Pn.cleanups.push(e)}const Bd=e=>{const t=new Set(e);return t.w=0,t.n=0,t},b_=e=>(e.w&os)>0,w_=e=>(e.n&os)>0,$0=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=os},A0=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const s=t[r];b_(s)&&!w_(s)?s.delete(e):t[n++]=s,s.w&=~os,s.n&=~os}t.length=n}},kl=new WeakMap;let Xo=0,os=1;const Pc=30;let nr;const Es=Symbol(""),Dc=Symbol("");class ji{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,y_(this,r)}run(){if(!this.active)return this.fn();let t=nr,n=ns;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=nr,nr=this,ns=!0,os=1<<++Xo,Xo<=Pc?$0(this):kf(this),this.fn()}finally{Xo<=Pc&&A0(this),os=1<<--Xo,nr=this.parent,ns=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){nr===this?this.deferStop=!0:this.active&&(kf(this),this.onStop&&this.onStop(),this.active=!1)}}function kf(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function T0(e,t){e.effect&&(e=e.effect.fn);const n=new ji(e);t&&(Tt(n,t),t.scope&&y_(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function O0(e){e.effect.stop()}let ns=!0;const C_=[];function So(){C_.push(ns),ns=!1}function $o(){const e=C_.pop();ns=e===void 0?!0:e}function Sn(e,t,n){if(ns&&nr){let r=kl.get(e);r||kl.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=Bd()),z_(s)}}function z_(e,t){let n=!1;Xo<=Pc?w_(e)||(e.n|=os,n=!b_(e)):n=!e.has(nr),n&&(e.add(nr),nr.deps.push(e))}function Ir(e,t,n,r,s,o){const i=kl.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&Ne(e)){const u=Number(r);i.forEach((c,d)=>{(d==="length"||d>=u)&&a.push(c)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":Ne(e)?Nd(n)&&a.push(i.get("length")):(a.push(i.get(Es)),lo(e)&&a.push(i.get(Dc)));break;case"delete":Ne(e)||(a.push(i.get(Es)),lo(e)&&a.push(i.get(Dc)));break;case"set":lo(e)&&a.push(i.get(Es));break}if(a.length===1)a[0]&&Fc(a[0]);else{const u=[];for(const c of a)c&&u.push(...c);Fc(Bd(u))}}function Fc(e,t){const n=Ne(e)?e:[...e];for(const r of n)r.computed&&Ef(r);for(const r of n)r.computed||Ef(r)}function Ef(e,t){(e!==nr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function P0(e,t){var n;return(n=kl.get(e))==null?void 0:n.get(t)}const D0=ql("__proto__,__v_isRef,__isVue"),x_=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Si)),F0=Kl(),I0=Kl(!1,!0),R0=Kl(!0),L0=Kl(!0,!0),Sf=N0();function N0(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ut(this);for(let o=0,i=this.length;o<i;o++)Sn(r,"get",o+"");const s=r[t](...n);return s===-1||s===!1?r[t](...n.map(ut)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){So();const r=ut(this)[t].apply(this,n);return $o(),r}}),e}function M0(e){const t=ut(this);return Sn(t,"has",e),t.hasOwnProperty(e)}function Kl(e=!1,t=!1){return function(r,s,o){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&o===(e?t?O_:T_:t?A_:$_).get(r))return r;const i=Ne(r);if(!e){if(i&&pt(Sf,s))return Reflect.get(Sf,s,o);if(s==="hasOwnProperty")return M0}const a=Reflect.get(r,s,o);return(Si(s)?x_.has(s):D0(s))||(e||Sn(r,"get",s),t)?a:Yt(a)?i&&Nd(s)?a:a.value:zt(a)?e?jd(a):Rs(a):a}}const V0=k_(),B0=k_(!0);function k_(e=!1){return function(n,r,s,o){let i=n[r];if(Ps(i)&&Yt(i)&&!Yt(s))return!1;if(!e&&(!$i(s)&&!Ps(s)&&(i=ut(i),s=ut(s)),!Ne(n)&&Yt(i)&&!Yt(s)))return i.value=s,!0;const a=Ne(n)&&Nd(r)?Number(r)<n.length:pt(n,r),u=Reflect.set(n,r,s,o);return n===ut(o)&&(a?po(s,i)&&Ir(n,"set",r,s):Ir(n,"add",r,s)),u}}function U0(e,t){const n=pt(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Ir(e,"delete",t,void 0),r}function j0(e,t){const n=Reflect.has(e,t);return(!Si(t)||!x_.has(t))&&Sn(e,"has",t),n}function H0(e){return Sn(e,"iterate",Ne(e)?"length":Es),Reflect.ownKeys(e)}const E_={get:F0,set:V0,deleteProperty:U0,has:j0,ownKeys:H0},S_={get:R0,set(e,t){return!0},deleteProperty(e,t){return!0}},q0=Tt({},E_,{get:I0,set:B0}),W0=Tt({},S_,{get:L0}),Ud=e=>e,Zl=e=>Reflect.getPrototypeOf(e);function ua(e,t,n=!1,r=!1){e=e.__v_raw;const s=ut(e),o=ut(t);n||(t!==o&&Sn(s,"get",t),Sn(s,"get",o));const{has:i}=Zl(s),a=r?Ud:n?Wd:Ai;if(i.call(s,t))return a(e.get(t));if(i.call(s,o))return a(e.get(o));e!==s&&e.get(t)}function ca(e,t=!1){const n=this.__v_raw,r=ut(n),s=ut(e);return t||(e!==s&&Sn(r,"has",e),Sn(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function da(e,t=!1){return e=e.__v_raw,!t&&Sn(ut(e),"iterate",Es),Reflect.get(e,"size",e)}function $f(e){e=ut(e);const t=ut(this);return Zl(t).has.call(t,e)||(t.add(e),Ir(t,"add",e,e)),this}function Af(e,t){t=ut(t);const n=ut(this),{has:r,get:s}=Zl(n);let o=r.call(n,e);o||(e=ut(e),o=r.call(n,e));const i=s.call(n,e);return n.set(e,t),o?po(t,i)&&Ir(n,"set",e,t):Ir(n,"add",e,t),this}function Tf(e){const t=ut(this),{has:n,get:r}=Zl(t);let s=n.call(t,e);s||(e=ut(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&Ir(t,"delete",e,void 0),o}function Of(){const e=ut(this),t=e.size!==0,n=e.clear();return t&&Ir(e,"clear",void 0,void 0),n}function ma(e,t){return function(r,s){const o=this,i=o.__v_raw,a=ut(i),u=t?Ud:e?Wd:Ai;return!e&&Sn(a,"iterate",Es),i.forEach((c,d)=>r.call(s,u(c),u(d),o))}}function fa(e,t,n){return function(...r){const s=this.__v_raw,o=ut(s),i=lo(o),a=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,c=s[e](...r),d=n?Ud:t?Wd:Ai;return!t&&Sn(o,"iterate",u?Dc:Es),{next(){const{value:f,done:m}=c.next();return m?{value:f,done:m}:{value:a?[d(f[0]),d(f[1])]:d(f),done:m}},[Symbol.iterator](){return this}}}}function Br(e){return function(...t){return e==="delete"?!1:this}}function G0(){const e={get(o){return ua(this,o)},get size(){return da(this)},has:ca,add:$f,set:Af,delete:Tf,clear:Of,forEach:ma(!1,!1)},t={get(o){return ua(this,o,!1,!0)},get size(){return da(this)},has:ca,add:$f,set:Af,delete:Tf,clear:Of,forEach:ma(!1,!0)},n={get(o){return ua(this,o,!0)},get size(){return da(this,!0)},has(o){return ca.call(this,o,!0)},add:Br("add"),set:Br("set"),delete:Br("delete"),clear:Br("clear"),forEach:ma(!0,!1)},r={get(o){return ua(this,o,!0,!0)},get size(){return da(this,!0)},has(o){return ca.call(this,o,!0)},add:Br("add"),set:Br("set"),delete:Br("delete"),clear:Br("clear"),forEach:ma(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=fa(o,!1,!1),n[o]=fa(o,!0,!1),t[o]=fa(o,!1,!0),r[o]=fa(o,!0,!0)}),[e,n,t,r]}const[K0,Z0,Y0,J0]=G0();function Yl(e,t){const n=t?e?J0:Y0:e?Z0:K0;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(pt(n,s)&&s in r?n:r,s,o)}const X0={get:Yl(!1,!1)},Q0={get:Yl(!1,!0)},ew={get:Yl(!0,!1)},tw={get:Yl(!0,!0)},$_=new WeakMap,A_=new WeakMap,T_=new WeakMap,O_=new WeakMap;function nw(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function rw(e){return e.__v_skip||!Object.isExtensible(e)?0:nw(h0(e))}function Rs(e){return Ps(e)?e:Jl(e,!1,E_,X0,$_)}function P_(e){return Jl(e,!1,q0,Q0,A_)}function jd(e){return Jl(e,!0,S_,ew,T_)}function sw(e){return Jl(e,!0,W0,tw,O_)}function Jl(e,t,n,r,s){if(!zt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=rw(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function Ss(e){return Ps(e)?Ss(e.__v_raw):!!(e&&e.__v_isReactive)}function Ps(e){return!!(e&&e.__v_isReadonly)}function $i(e){return!!(e&&e.__v_isShallow)}function Hd(e){return Ss(e)||Ps(e)}function ut(e){const t=e&&e.__v_raw;return t?ut(t):e}function qd(e){return Cl(e,"__v_skip",!0),e}const Ai=e=>zt(e)?Rs(e):e,Wd=e=>zt(e)?jd(e):e;function Gd(e){ns&&nr&&(e=ut(e),z_(e.dep||(e.dep=Bd())))}function Xl(e,t){e=ut(e);const n=e.dep;n&&Fc(n)}function Yt(e){return!!(e&&e.__v_isRef===!0)}function Qt(e){return F_(e,!1)}function D_(e){return F_(e,!0)}function F_(e,t){return Yt(e)?e:new ow(e,t)}class ow{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ut(t),this._value=n?t:Ai(t)}get value(){return Gd(this),this._value}set value(t){const n=this.__v_isShallow||$i(t)||Ps(t);t=n?t:ut(t),po(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ai(t),Xl(this))}}function iw(e){Xl(e)}function xn(e){return Yt(e)?e.value:e}function aw(e){return et(e)?e():xn(e)}const lw={get:(e,t,n)=>xn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Yt(s)&&!Yt(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Kd(e){return Ss(e)?e:new Proxy(e,lw)}class uw{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Gd(this),()=>Xl(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function cw(e){return new uw(e)}function ui(e){const t=Ne(e)?new Array(e.length):{};for(const n in e)t[n]=I_(e,n);return t}class dw{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return P0(ut(this._object),this._key)}}class mw{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function fw(e,t,n){return Yt(e)?e:et(e)?new mw(e):zt(e)&&arguments.length>1?I_(e,t,n):Qt(e)}function I_(e,t,n){const r=e[t];return Yt(r)?r:new dw(e,t,n)}class pw{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ji(t,()=>{this._dirty||(this._dirty=!0,Xl(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=ut(this);return Gd(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function hw(e,t,n=!1){let r,s;const o=et(e);return o?(r=e,s=or):(r=e.get,s=e.set),new pw(r,s,o||!s,n)}function _w(e,...t){}function gw(e,t){}function Pr(e,t,n,r){let s;try{s=r?e(...r):e()}catch(o){Ls(o,t,n)}return s}function In(e,t,n,r){if(et(e)){const o=Pr(e,t,n,r);return o&&Ld(o)&&o.catch(i=>{Ls(i,t,n)}),o}const s=[];for(let o=0;o<e.length;o++)s.push(In(e[o],t,n,r));return s}function Ls(e,t,n,r=!0){const s=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,a=n;for(;o;){const c=o.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,i,a)===!1)return}o=o.parent}const u=t.appContext.config.errorHandler;if(u){Pr(u,null,10,[e,i,a]);return}}yw(e,n,s,r)}function yw(e,t,n,r=!0){console.error(e)}let Ti=!1,Ic=!1;const un=[];let hr=0;const co=[];let Ar=null,Cs=0;const R_=Promise.resolve();let Zd=null;function Hi(e){const t=Zd||R_;return e?t.then(this?e.bind(this):e):t}function vw(e){let t=hr+1,n=un.length;for(;t<n;){const r=t+n>>>1;Oi(un[r])<e?t=r+1:n=r}return t}function Ql(e){(!un.length||!un.includes(e,Ti&&e.allowRecurse?hr+1:hr))&&(e.id==null?un.push(e):un.splice(vw(e.id),0,e),L_())}function L_(){!Ti&&!Ic&&(Ic=!0,Zd=R_.then(N_))}function bw(e){const t=un.indexOf(e);t>hr&&un.splice(t,1)}function Yd(e){Ne(e)?co.push(...e):(!Ar||!Ar.includes(e,e.allowRecurse?Cs+1:Cs))&&co.push(e),L_()}function Pf(e,t=Ti?hr+1:0){for(;t<un.length;t++){const n=un[t];n&&n.pre&&(un.splice(t,1),t--,n())}}function El(e){if(co.length){const t=[...new Set(co)];if(co.length=0,Ar){Ar.push(...t);return}for(Ar=t,Ar.sort((n,r)=>Oi(n)-Oi(r)),Cs=0;Cs<Ar.length;Cs++)Ar[Cs]();Ar=null,Cs=0}}const Oi=e=>e.id==null?1/0:e.id,ww=(e,t)=>{const n=Oi(e)-Oi(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function N_(e){Ic=!1,Ti=!0,un.sort(ww);const t=or;try{for(hr=0;hr<un.length;hr++){const n=un[hr];n&&n.active!==!1&&Pr(n,null,14)}}finally{hr=0,un.length=0,El(),Ti=!1,Zd=null,(un.length||co.length)&&N_()}}let Qs,pa=[];function M_(e,t){var n,r;Qs=e,Qs?(Qs.enabled=!0,pa.forEach(({event:s,args:o})=>Qs.emit(s,...o)),pa=[]):typeof window!="undefined"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{M_(o,t)}),setTimeout(()=>{Qs||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,pa=[])},3e3)):pa=[]}function Cw(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ct;let s=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in r){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:f,trim:m}=r[d]||Ct;m&&(s=n.map(p=>It(p)?p.trim():p)),f&&(s=n.map(zl))}let a,u=r[a=li(t)]||r[a=li(En(t))];!u&&o&&(u=r[a=li(jn(t))]),u&&In(u,e,6,s);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,In(c,e,6,s)}}function V_(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!et(e)){const u=c=>{const d=V_(c,t,!0);d&&(a=!0,Tt(i,d))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!a?(zt(e)&&r.set(e,null),null):(Ne(o)?o.forEach(u=>i[u]=null):Tt(i,o),zt(e)&&r.set(e,i),i)}function eu(e,t){return!e||!Bi(t)?!1:(t=t.slice(2).replace(/Once$/,""),pt(e,t[0].toLowerCase()+t.slice(1))||pt(e,jn(t))||pt(e,t))}let rn=null,tu=null;function Pi(e){const t=rn;return rn=e,tu=e&&e.type.__scopeId||null,t}function zw(e){tu=e}function xw(){tu=null}const kw=e=>A;function A(e,t=rn,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Uc(-1);const o=Pi(t);let i;try{i=e(...s)}finally{Pi(o),r._d&&Uc(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function ul(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:o,propsOptions:[i],slots:a,attrs:u,emit:c,render:d,renderCache:f,data:m,setupState:p,ctx:h,inheritAttrs:_}=e;let w,v;const b=Pi(e);try{if(n.shapeFlag&4){const z=s||r;w=Dn(d.call(z,z,f,o,p,m,h)),v=u}else{const z=t;w=Dn(z.length>1?z(o,{attrs:u,slots:a,emit:c}):z(o,null)),v=t.props?u:Sw(u)}}catch(z){fi.length=0,Ls(z,e,1),w=C(mn)}let k=w;if(v&&_!==!1){const z=Object.keys(v),{shapeFlag:S}=k;z.length&&S&7&&(i&&z.some(Id)&&(v=$w(v,i)),k=vr(k,v))}return n.dirs&&(k=vr(k),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&(k.transition=n.transition),w=k,Pi(b),w}function Ew(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(as(r)){if(r.type!==mn||r.children==="v-if"){if(t)return;t=r}}else return}return t}const Sw=e=>{let t;for(const n in e)(n==="class"||n==="style"||Bi(n))&&((t||(t={}))[n]=e[n]);return t},$w=(e,t)=>{const n={};for(const r in e)(!Id(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Aw(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:a,patchFlag:u}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return r?Df(r,i,c):!!i;if(u&8){const d=t.dynamicProps;for(let f=0;f<d.length;f++){const m=d[f];if(i[m]!==r[m]&&!eu(c,m))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Df(r,i,c):!0:!!i;return!1}function Df(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(t[o]!==e[o]&&!eu(n,o))return!0}return!1}function Jd({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const B_=e=>e.__isSuspense,Tw={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,i,a,u,c){e==null?Pw(t,n,r,s,o,i,a,u,c):Dw(e,t,n,r,s,i,a,u,c)},hydrate:Fw,create:Xd,normalize:Iw},Ow=Tw;function Di(e,t){const n=e.props&&e.props[t];et(n)&&n()}function Pw(e,t,n,r,s,o,i,a,u){const{p:c,o:{createElement:d}}=u,f=d("div"),m=e.suspense=Xd(e,s,r,t,f,n,o,i,a,u);c(null,m.pendingBranch=e.ssContent,f,null,r,m,o,i),m.deps>0?(Di(e,"onPending"),Di(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,o,i),mo(m,e.ssFallback)):m.resolve(!1,!0)}function Dw(e,t,n,r,s,o,i,a,{p:u,um:c,o:{createElement:d}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const m=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:_,isInFallback:w,isHydrating:v}=f;if(_)f.pendingBranch=m,rr(m,_)?(u(_,m,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():w&&(u(h,p,n,r,s,null,o,i,a),mo(f,p))):(f.pendingId++,v?(f.isHydrating=!1,f.activeBranch=_):c(_,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=d("div"),w?(u(null,m,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():(u(h,p,n,r,s,null,o,i,a),mo(f,p))):h&&rr(m,h)?(u(h,m,n,r,s,f,o,i,a),f.resolve(!0)):(u(null,m,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0&&f.resolve()));else if(h&&rr(m,h))u(h,m,n,r,s,f,o,i,a),mo(f,m);else if(Di(t,"onPending"),f.pendingBranch=m,f.pendingId++,u(null,m,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0)f.resolve();else{const{timeout:b,pendingId:k}=f;b>0?setTimeout(()=>{f.pendingId===k&&f.fallback(p)},b):b===0&&f.fallback(p)}}function Xd(e,t,n,r,s,o,i,a,u,c,d=!1){const{p:f,m,um:p,n:h,o:{parentNode:_,remove:w}}=c;let v;const b=Rw(e);b&&t!=null&&t.pendingBranch&&(v=t.pendingId,t.deps++);const k=e.props?xl(e.props.timeout):void 0,z={vnode:e,parent:t,parentComponent:n,isSVG:i,container:r,hiddenContainer:s,anchor:o,deps:0,pendingId:0,timeout:typeof k=="number"?k:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:d,isUnmounted:!1,effects:[],resolve(S=!1,T=!1){const{vnode:M,activeBranch:L,pendingBranch:F,pendingId:j,effects:K,parentComponent:Q,container:U}=z;if(z.isHydrating)z.isHydrating=!1;else if(!S){const se=L&&F.transition&&F.transition.mode==="out-in";se&&(L.transition.afterLeave=()=>{j===z.pendingId&&m(F,U,ae,0)});let{anchor:ae}=z;L&&(ae=h(L),p(L,Q,z,!0)),se||m(F,U,ae,0)}mo(z,F),z.pendingBranch=null,z.isInFallback=!1;let G=z.parent,me=!1;for(;G;){if(G.pendingBranch){G.effects.push(...K),me=!0;break}G=G.parent}me||Yd(K),z.effects=[],b&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!T&&t.resolve()),Di(M,"onResolve")},fallback(S){if(!z.pendingBranch)return;const{vnode:T,activeBranch:M,parentComponent:L,container:F,isSVG:j}=z;Di(T,"onFallback");const K=h(M),Q=()=>{!z.isInFallback||(f(null,S,F,K,L,null,j,a,u),mo(z,S))},U=S.transition&&S.transition.mode==="out-in";U&&(M.transition.afterLeave=Q),z.isInFallback=!0,p(M,L,null,!0),U||Q()},move(S,T,M){z.activeBranch&&m(z.activeBranch,S,T,M),z.container=S},next(){return z.activeBranch&&h(z.activeBranch)},registerDep(S,T){const M=!!z.pendingBranch;M&&z.deps++;const L=S.vnode.el;S.asyncDep.catch(F=>{Ls(F,S,0)}).then(F=>{if(S.isUnmounted||z.isUnmounted||z.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:j}=S;jc(S,F,!1),L&&(j.el=L);const K=!L&&S.subTree.el;T(S,j,_(L||S.subTree.el),L?null:h(S.subTree),z,i,u),K&&w(K),Jd(S,j.el),M&&--z.deps===0&&z.resolve()})},unmount(S,T){z.isUnmounted=!0,z.activeBranch&&p(z.activeBranch,n,S,T),z.pendingBranch&&p(z.pendingBranch,n,S,T)}};return z}function Fw(e,t,n,r,s,o,i,a,u){const c=t.suspense=Xd(t,r,n,e.parentNode,document.createElement("div"),null,s,o,i,a,!0),d=u(e,c.pendingBranch=t.ssContent,n,c,o,i);return c.deps===0&&c.resolve(!1,!0),d}function Iw(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Ff(r?n.default:n),e.ssFallback=r?Ff(n.fallback):C(mn)}function Ff(e){let t;if(et(e)){const n=Fs&&e._c;n&&(e._d=!1,E()),e=e(),n&&(e._d=!0,t=kn,yg())}return Ne(e)&&(e=Ew(e)),e=Dn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function U_(e,t){t&&t.pendingBranch?Ne(e)?t.effects.push(...e):t.effects.push(e):Yd(e)}function mo(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,s=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=s,Jd(r,s))}function Rw(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function j_(e,t){return qi(e,null,t)}function H_(e,t){return qi(e,null,{flush:"post"})}function Lw(e,t){return qi(e,null,{flush:"sync"})}const ha={};function kt(e,t,n){return qi(e,t,n)}function qi(e,t,{immediate:n,deep:r,flush:s,onTrack:o,onTrigger:i}=Ct){var a;const u=v_()===((a=Zt)==null?void 0:a.scope)?Zt:null;let c,d=!1,f=!1;if(Yt(e)?(c=()=>e.value,d=$i(e)):Ss(e)?(c=()=>e,r=!0):Ne(e)?(f=!0,d=e.some(z=>Ss(z)||$i(z)),c=()=>e.map(z=>{if(Yt(z))return z.value;if(Ss(z))return xs(z);if(et(z))return Pr(z,u,2)})):et(e)?t?c=()=>Pr(e,u,2):c=()=>{if(!(u&&u.isUnmounted))return m&&m(),In(e,u,3,[p])}:c=or,t&&r){const z=c;c=()=>xs(z())}let m,p=z=>{m=b.onStop=()=>{Pr(z,u,4)}},h;if(_o)if(p=or,t?n&&In(t,u,3,[c(),f?[]:void 0,p]):c(),s==="sync"){const z=$g();h=z.__watcherHandles||(z.__watcherHandles=[])}else return or;let _=f?new Array(e.length).fill(ha):ha;const w=()=>{if(!!b.active)if(t){const z=b.run();(r||d||(f?z.some((S,T)=>po(S,_[T])):po(z,_)))&&(m&&m(),In(t,u,3,[z,_===ha?void 0:f&&_[0]===ha?[]:_,p]),_=z)}else b.run()};w.allowRecurse=!!t;let v;s==="sync"?v=w:s==="post"?v=()=>on(w,u&&u.suspense):(w.pre=!0,u&&(w.id=u.uid),v=()=>Ql(w));const b=new ji(c,v);t?n?w():_=b.run():s==="post"?on(b.run.bind(b),u&&u.suspense):b.run();const k=()=>{b.stop(),u&&u.scope&&Rd(u.scope.effects,b)};return h&&h.push(k),k}function Nw(e,t,n){const r=this.proxy,s=It(e)?e.includes(".")?q_(r,e):()=>r[e]:e.bind(r,r);let o;et(t)?o=t:(o=t.handler,n=t);const i=Zt;ls(this);const a=qi(s,o.bind(r),n);return i?ls(i):rs(),a}function q_(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function xs(e,t){if(!zt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Yt(e))xs(e.value,t);else if(Ne(e))for(let n=0;n<e.length;n++)xs(e[n],t);else if(Is(e)||lo(e))e.forEach(n=>{xs(n,t)});else if(h_(e))for(const n in e)xs(e[n],t);return e}function Pt(e,t){const n=rn;if(n===null)return e;const r=lu(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,a,u,c=Ct]=t[o];i&&(et(i)&&(i={mounted:i,updated:i}),i.deep&&xs(a),s.push({dir:i,instance:r,value:a,oldValue:void 0,arg:u,modifiers:c}))}return e}function fr(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const a=s[i];o&&(a.oldValue=o[i].value);let u=a.dir[r];u&&(So(),In(u,n,8,[e.el,a,e,t]),$o())}}function Qd(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ns(()=>{e.isMounted=!0}),ou(()=>{e.isUnmounting=!0}),e}const Mn=[Function,Array],em={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Mn,onEnter:Mn,onAfterEnter:Mn,onEnterCancelled:Mn,onBeforeLeave:Mn,onLeave:Mn,onAfterLeave:Mn,onLeaveCancelled:Mn,onBeforeAppear:Mn,onAppear:Mn,onAfterAppear:Mn,onAppearCancelled:Mn},Mw={name:"BaseTransition",props:em,setup(e,{slots:t}){const n=Kn(),r=Qd();let s;return()=>{const o=t.default&&nu(t.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const _ of o)if(_.type!==mn){i=_;break}}const a=ut(e),{mode:u}=a;if(r.isLeaving)return Hu(i);const c=If(i);if(!c)return Hu(i);const d=ho(c,a,r,n);Ds(c,d);const f=n.subTree,m=f&&If(f);let p=!1;const{getTransitionKey:h}=c.type;if(h){const _=h();s===void 0?s=_:_!==s&&(s=_,p=!0)}if(m&&m.type!==mn&&(!rr(c,m)||p)){const _=ho(m,a,r,n);if(Ds(m,_),u==="out-in")return r.isLeaving=!0,_.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Hu(i);u==="in-out"&&c.type!==mn&&(_.delayLeave=(w,v,b)=>{const k=G_(r,m);k[String(m.key)]=m,w._leaveCb=()=>{v(),w._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=b})}return i}}},W_=Mw;function G_(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ho(e,t,n,r){const{appear:s,mode:o,persisted:i=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:m,onAfterLeave:p,onLeaveCancelled:h,onBeforeAppear:_,onAppear:w,onAfterAppear:v,onAppearCancelled:b}=t,k=String(e.key),z=G_(n,e),S=(L,F)=>{L&&In(L,r,9,F)},T=(L,F)=>{const j=F[1];S(L,F),Ne(L)?L.every(K=>K.length<=1)&&j():L.length<=1&&j()},M={mode:o,persisted:i,beforeEnter(L){let F=a;if(!n.isMounted)if(s)F=_||a;else return;L._leaveCb&&L._leaveCb(!0);const j=z[k];j&&rr(e,j)&&j.el._leaveCb&&j.el._leaveCb(),S(F,[L])},enter(L){let F=u,j=c,K=d;if(!n.isMounted)if(s)F=w||u,j=v||c,K=b||d;else return;let Q=!1;const U=L._enterCb=G=>{Q||(Q=!0,G?S(K,[L]):S(j,[L]),M.delayedLeave&&M.delayedLeave(),L._enterCb=void 0)};F?T(F,[L,U]):U()},leave(L,F){const j=String(e.key);if(L._enterCb&&L._enterCb(!0),n.isUnmounting)return F();S(f,[L]);let K=!1;const Q=L._leaveCb=U=>{K||(K=!0,F(),U?S(h,[L]):S(p,[L]),L._leaveCb=void 0,z[j]===e&&delete z[j])};z[j]=e,m?T(m,[L,Q]):Q()},clone(L){return ho(L,t,n,r)}};return M}function Hu(e){if(Wi(e))return e=vr(e),e.children=null,e}function If(e){return Wi(e)?e.children?e.children[0]:void 0:e}function Ds(e,t){e.shapeFlag&6&&e.component?Ds(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 nu(e,t=!1,n){let r=[],s=0;for(let o=0;o<e.length;o++){let i=e[o];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===He?(i.patchFlag&128&&s++,r=r.concat(nu(i.children,t,a))):(t||i.type!==mn)&&r.push(a!=null?vr(i,{key:a}):i)}if(s>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function Ao(e,t){return et(e)?(()=>Tt({name:e.name},t,{setup:e}))():e}const $s=e=>!!e.type.__asyncLoader;function Vw(e){et(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,timeout:o,suspensible:i=!0,onError:a}=e;let u=null,c,d=0;const f=()=>(d++,u=null,m()),m=()=>{let p;return u||(p=u=t().catch(h=>{if(h=h instanceof Error?h:new Error(String(h)),a)return new Promise((_,w)=>{a(h,()=>_(f()),()=>w(h),d+1)});throw h}).then(h=>p!==u&&u?u:(h&&(h.__esModule||h[Symbol.toStringTag]==="Module")&&(h=h.default),c=h,h)))};return Ao({name:"AsyncComponentWrapper",__asyncLoader:m,get __asyncResolved(){return c},setup(){const p=Zt;if(c)return()=>qu(c,p);const h=b=>{u=null,Ls(b,p,13,!r)};if(i&&p.suspense||_o)return m().then(b=>()=>qu(b,p)).catch(b=>(h(b),()=>r?C(r,{error:b}):null));const _=Qt(!1),w=Qt(),v=Qt(!!s);return s&&setTimeout(()=>{v.value=!1},s),o!=null&&setTimeout(()=>{if(!_.value&&!w.value){const b=new Error(`Async component timed out after ${o}ms.`);h(b),w.value=b}},o),m().then(()=>{_.value=!0,p.parent&&Wi(p.parent.vnode)&&Ql(p.parent.update)}).catch(b=>{h(b),w.value=b}),()=>{if(_.value&&c)return qu(c,p);if(w.value&&r)return C(r,{error:w.value});if(n&&!v.value)return C(n)}}})}function qu(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=C(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const Wi=e=>e.type.__isKeepAlive,Bw={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Kn(),r=n.ctx;if(!r.renderer)return()=>{const b=t.default&&t.default();return b&&b.length===1?b[0]:b};const s=new Map,o=new Set;let i=null;const a=n.suspense,{renderer:{p:u,m:c,um:d,o:{createElement:f}}}=r,m=f("div");r.activate=(b,k,z,S,T)=>{const M=b.component;c(b,k,z,0,a),u(M.vnode,b,k,z,M,a,S,b.slotScopeIds,T),on(()=>{M.isDeactivated=!1,M.a&&uo(M.a);const L=b.props&&b.props.onVnodeMounted;L&&zn(L,M.parent,b)},a)},r.deactivate=b=>{const k=b.component;c(b,m,null,1,a),on(()=>{k.da&&uo(k.da);const z=b.props&&b.props.onVnodeUnmounted;z&&zn(z,k.parent,b),k.isDeactivated=!0},a)};function p(b){Wu(b),d(b,n,a,!0)}function h(b){s.forEach((k,z)=>{const S=qc(k.type);S&&(!b||!b(S))&&_(z)})}function _(b){const k=s.get(b);!i||!rr(k,i)?p(k):i&&Wu(i),s.delete(b),o.delete(b)}kt(()=>[e.include,e.exclude],([b,k])=>{b&&h(z=>Qo(b,z)),k&&h(z=>!Qo(k,z))},{flush:"post",deep:!0});let w=null;const v=()=>{w!=null&&s.set(w,Gu(n.subTree))};return Ns(v),su(v),ou(()=>{s.forEach(b=>{const{subTree:k,suspense:z}=n,S=Gu(k);if(b.type===S.type&&b.key===S.key){Wu(S);const T=S.component.da;T&&on(T,z);return}p(b)})}),()=>{if(w=null,!t.default)return null;const b=t.default(),k=b[0];if(b.length>1)return i=null,b;if(!as(k)||!(k.shapeFlag&4)&&!(k.shapeFlag&128))return i=null,k;let z=Gu(k);const S=z.type,T=qc($s(z)?z.type.__asyncResolved||{}:S),{include:M,exclude:L,max:F}=e;if(M&&(!T||!Qo(M,T))||L&&T&&Qo(L,T))return i=z,k;const j=z.key==null?S:z.key,K=s.get(j);return z.el&&(z=vr(z),k.shapeFlag&128&&(k.ssContent=z)),w=j,K?(z.el=K.el,z.component=K.component,z.transition&&Ds(z,z.transition),z.shapeFlag|=512,o.delete(j),o.add(j)):(o.add(j),F&&o.size>parseInt(F,10)&&_(o.values().next().value)),z.shapeFlag|=256,i=z,B_(k.type)?k:z}}},Uw=Bw;function Qo(e,t){return Ne(e)?e.some(n=>Qo(n,t)):It(e)?e.split(",").includes(t):p0(e)?e.test(t):!1}function K_(e,t){Y_(e,"a",t)}function Z_(e,t){Y_(e,"da",t)}function Y_(e,t,n=Zt){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(ru(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Wi(s.parent.vnode)&&jw(r,t,n,s),s=s.parent}}function jw(e,t,n,r){const s=ru(t,e,r,!0);To(()=>{Rd(r[t],s)},n)}function Wu(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Gu(e){return e.shapeFlag&128?e.ssContent:e}function ru(e,t,n=Zt,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;So(),ls(n);const a=In(t,n,e,i);return rs(),$o(),a});return r?s.unshift(o):s.push(o),o}}const Nr=e=>(t,n=Zt)=>(!_o||e==="sp")&&ru(e,(...r)=>t(...r),n),J_=Nr("bm"),Ns=Nr("m"),X_=Nr("bu"),su=Nr("u"),ou=Nr("bum"),To=Nr("um"),Q_=Nr("sp"),eg=Nr("rtg"),tg=Nr("rtc");function ng(e,t=Zt){ru("ec",e,t)}const tm="components",Hw="directives";function $(e,t){return nm(tm,e,!0,t)||e}const rg=Symbol.for("v-ndc");function sg(e){return It(e)?nm(tm,e,!1)||e:e||rg}function iu(e){return nm(Hw,e)}function nm(e,t,n=!0,r=!1){const s=rn||Zt;if(s){const o=s.type;if(e===tm){const a=qc(o,!1);if(a&&(a===t||a===En(t)||a===Ui(En(t))))return o}const i=Rf(s[e]||o[e],t)||Rf(s.appContext[e],t);return!i&&r?o:i}}function Rf(e,t){return e&&(e[t]||e[En(t)]||e[Ui(En(t))])}function Et(e,t,n,r){let s;const o=n&&n[r];if(Ne(e)||It(e)){s=new Array(e.length);for(let i=0,a=e.length;i<a;i++)s[i]=t(e[i],i,void 0,o&&o[i])}else if(typeof e=="number"){s=new Array(e);for(let i=0;i<e;i++)s[i]=t(i+1,i,void 0,o&&o[i])}else if(zt(e))if(e[Symbol.iterator])s=Array.from(e,(i,a)=>t(i,a,void 0,o&&o[a]));else{const i=Object.keys(e);s=new Array(i.length);for(let a=0,u=i.length;a<u;a++){const c=i[a];s[a]=t(e[c],c,a,o&&o[a])}}else s=[];return n&&(n[r]=s),s}function Gi(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Ne(r))for(let s=0;s<r.length;s++)e[r[s].name]=r[s].fn;else r&&(e[r.name]=r.key?(...s)=>{const o=r.fn(...s);return o&&(o.key=r.key),o}:r.fn)}return e}function vt(e,t,n={},r,s){if(rn.isCE||rn.parent&&$s(rn.parent)&&rn.parent.isCE)return t!=="default"&&(n.name=t),C("slot",n,r&&r());let o=e[t];o&&o._c&&(o._d=!1),E();const i=o&&og(o(n)),a=ke(He,{key:n.key||i&&i.key||`_${t}`},i||(r?r():[]),i&&e._===1?64:-2);return!s&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function og(e){return e.some(t=>as(t)?!(t.type===mn||t.type===He&&!og(t.children)):!0)?e:null}function qw(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:li(r)]=e[r];return n}const Rc=e=>e?zg(e)?lu(e)||e.proxy:Rc(e.parent):null,ci=Tt(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=>Rc(e.parent),$root:e=>Rc(e.root),$emit:e=>e.emit,$options:e=>rm(e),$forceUpdate:e=>e.f||(e.f=()=>Ql(e.update)),$nextTick:e=>e.n||(e.n=Hi.bind(e.proxy)),$watch:e=>Nw.bind(e)}),Ku=(e,t)=>e!==Ct&&!e.__isScriptSetup&&pt(e,t),Lc={get({_:e},t){const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:a,appContext:u}=e;let c;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(Ku(r,t))return i[t]=1,r[t];if(s!==Ct&&pt(s,t))return i[t]=2,s[t];if((c=e.propsOptions[0])&&pt(c,t))return i[t]=3,o[t];if(n!==Ct&&pt(n,t))return i[t]=4,n[t];Nc&&(i[t]=0)}}const d=ci[t];let f,m;if(d)return t==="$attrs"&&Sn(e,"get",t),d(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==Ct&&pt(n,t))return i[t]=4,n[t];if(m=u.config.globalProperties,pt(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return Ku(s,t)?(s[t]=n,!0):r!==Ct&&pt(r,t)?(r[t]=n,!0):pt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let a;return!!n[i]||e!==Ct&&pt(e,i)||Ku(t,i)||(a=o[0])&&pt(a,i)||pt(r,i)||pt(ci,i)||pt(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:pt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Ww=Tt({},Lc,{get(e,t){if(t!==Symbol.unscopables)return Lc.get(e,t,e)},has(e,t){return t[0]!=="_"&&!v0(t)}});function Gw(){return null}function Kw(){return null}function Zw(e){}function Yw(e){}function Jw(){return null}function Xw(){}function Qw(e,t){return null}function eC(){return ig().slots}function tC(){return ig().attrs}function nC(e,t,n){const r=Kn();if(n&&n.local){const s=Qt(e[t]);return kt(()=>e[t],o=>s.value=o),kt(s,o=>{o!==e[t]&&r.emit(`update:${t}`,o)}),s}else return{__v_isRef:!0,get value(){return e[t]},set value(s){r.emit(`update:${t}`,s)}}}function ig(){const e=Kn();return e.setupContext||(e.setupContext=Eg(e))}function Fi(e){return Ne(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function rC(e,t){const n=Fi(e);for(const r in t){if(r.startsWith("__skip"))continue;let s=n[r];s?Ne(s)||et(s)?s=n[r]={type:s,default:t[r]}:s.default=t[r]:s===null&&(s=n[r]={default:t[r]}),s&&t[`__skip_${r}`]&&(s.skipFactory=!0)}return n}function sC(e,t){return!e||!t?e||t:Ne(e)&&Ne(t)?e.concat(t):Tt({},Fi(e),Fi(t))}function oC(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function iC(e){const t=Kn();let n=e();return rs(),Ld(n)&&(n=n.catch(r=>{throw ls(t),r})),[n,()=>ls(t)]}let Nc=!0;function aC(e){const t=rm(e),n=e.proxy,r=e.ctx;Nc=!1,t.beforeCreate&&Lf(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:a,provide:u,inject:c,created:d,beforeMount:f,mounted:m,beforeUpdate:p,updated:h,activated:_,deactivated:w,beforeDestroy:v,beforeUnmount:b,destroyed:k,unmounted:z,render:S,renderTracked:T,renderTriggered:M,errorCaptured:L,serverPrefetch:F,expose:j,inheritAttrs:K,components:Q,directives:U,filters:G}=t;if(c&&lC(c,r,null),i)for(const ae in i){const Ce=i[ae];et(Ce)&&(r[ae]=Ce.bind(n))}if(s){const ae=s.call(n,n);zt(ae)&&(e.data=Rs(ae))}if(Nc=!0,o)for(const ae in o){const Ce=o[ae],Ke=et(Ce)?Ce.bind(n,n):et(Ce.get)?Ce.get.bind(n,n):or,Ze=!et(Ce)&&et(Ce.set)?Ce.set.bind(n):or,ve=$t({get:Ke,set:Ze});Object.defineProperty(r,ae,{enumerable:!0,configurable:!0,get:()=>ve.value,set:X=>ve.value=X})}if(a)for(const ae in a)ag(a[ae],r,n,ae);if(u){const ae=et(u)?u.call(n):u;Reflect.ownKeys(ae).forEach(Ce=>{di(Ce,ae[Ce])})}d&&Lf(d,e,"c");function se(ae,Ce){Ne(Ce)?Ce.forEach(Ke=>ae(Ke.bind(n))):Ce&&ae(Ce.bind(n))}if(se(J_,f),se(Ns,m),se(X_,p),se(su,h),se(K_,_),se(Z_,w),se(ng,L),se(tg,T),se(eg,M),se(ou,b),se(To,z),se(Q_,F),Ne(j))if(j.length){const ae=e.exposed||(e.exposed={});j.forEach(Ce=>{Object.defineProperty(ae,Ce,{get:()=>n[Ce],set:Ke=>n[Ce]=Ke})})}else e.exposed||(e.exposed={});S&&e.render===or&&(e.render=S),K!=null&&(e.inheritAttrs=K),Q&&(e.components=Q),U&&(e.directives=U)}function lC(e,t,n=or){Ne(e)&&(e=Mc(e));for(const r in e){const s=e[r];let o;zt(s)?"default"in s?o=ir(s.from||r,s.default,!0):o=ir(s.from||r):o=ir(s),Yt(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Lf(e,t,n){In(Ne(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function ag(e,t,n,r){const s=r.includes(".")?q_(n,r):()=>n[r];if(It(e)){const o=t[e];et(o)&&kt(s,o)}else if(et(e))kt(s,e.bind(n));else if(zt(e))if(Ne(e))e.forEach(o=>ag(o,t,n,r));else{const o=et(e.handler)?e.handler.bind(n):t[e.handler];et(o)&&kt(s,o,e)}}function rm(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let u;return a?u=a:!s.length&&!n&&!r?u=t:(u={},s.length&&s.forEach(c=>Sl(u,c,i,!0)),Sl(u,t,i)),zt(t)&&o.set(t,u),u}function Sl(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Sl(e,o,n,!0),s&&s.forEach(i=>Sl(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=uC[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const uC={data:Nf,props:Mf,emits:Mf,methods:ei,computed:ei,beforeCreate:pn,created:pn,beforeMount:pn,mounted:pn,beforeUpdate:pn,updated:pn,beforeDestroy:pn,beforeUnmount:pn,destroyed:pn,unmounted:pn,activated:pn,deactivated:pn,errorCaptured:pn,serverPrefetch:pn,components:ei,directives:ei,watch:dC,provide:Nf,inject:cC};function Nf(e,t){return t?e?function(){return Tt(et(e)?e.call(this,this):e,et(t)?t.call(this,this):t)}:t:e}function cC(e,t){return ei(Mc(e),Mc(t))}function Mc(e){if(Ne(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function pn(e,t){return e?[...new Set([].concat(e,t))]:t}function ei(e,t){return e?Tt(Object.create(null),e,t):t}function Mf(e,t){return e?Ne(e)&&Ne(t)?[...new Set([...e,...t])]:Tt(Object.create(null),Fi(e),Fi(t!=null?t:{})):t}function dC(e,t){if(!e)return t;if(!t)return e;const n=Tt(Object.create(null),e);for(const r in t)n[r]=pn(e[r],t[r]);return n}function lg(){return{app:null,config:{isNativeTag:d0,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 mC=0;function fC(e,t){return function(r,s=null){et(r)||(r=Tt({},r)),s!=null&&!zt(s)&&(s=null);const o=lg(),i=new Set;let a=!1;const u=o.app={_uid:mC++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:Tg,get config(){return o.config},set config(c){},use(c,...d){return i.has(c)||(c&&et(c.install)?(i.add(c),c.install(u,...d)):et(c)&&(i.add(c),c(u,...d))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,d){return d?(o.components[c]=d,u):o.components[c]},directive(c,d){return d?(o.directives[c]=d,u):o.directives[c]},mount(c,d,f){if(!a){const m=C(r,s);return m.appContext=o,d&&t?t(m,c):e(m,c,f),a=!0,u._container=c,c.__vue_app__=u,lu(m.component)||m.component.proxy}},unmount(){a&&(e(null,u._container),delete u._container.__vue_app__)},provide(c,d){return o.provides[c]=d,u},runWithContext(c){Ii=u;try{return c()}finally{Ii=null}}};return u}}let Ii=null;function di(e,t){if(Zt){let n=Zt.provides;const r=Zt.parent&&Zt.parent.provides;r===n&&(n=Zt.provides=Object.create(r)),n[e]=t}}function ir(e,t,n=!1){const r=Zt||rn;if(r||Ii){const s=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Ii._context.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&et(t)?t.call(r&&r.proxy):t}}function pC(){return!!(Zt||rn||Ii)}function hC(e,t,n,r=!1){const s={},o={};Cl(o,au,1),e.propsDefaults=Object.create(null),ug(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:P_(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function _C(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=ut(s),[u]=e.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let f=0;f<d.length;f++){let m=d[f];if(eu(e.emitsOptions,m))continue;const p=t[m];if(u)if(pt(o,m))p!==o[m]&&(o[m]=p,c=!0);else{const h=En(m);s[h]=Vc(u,a,h,p,e,!1)}else p!==o[m]&&(o[m]=p,c=!0)}}}else{ug(e,t,s,o)&&(c=!0);let d;for(const f in a)(!t||!pt(t,f)&&((d=jn(f))===f||!pt(t,d)))&&(u?n&&(n[f]!==void 0||n[d]!==void 0)&&(s[f]=Vc(u,a,f,void 0,e,!0)):delete s[f]);if(o!==a)for(const f in o)(!t||!pt(t,f)&&!0)&&(delete o[f],c=!0)}c&&Ir(e,"set","$attrs")}function ug(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let u in t){if(ai(u))continue;const c=t[u];let d;s&&pt(s,d=En(u))?!o||!o.includes(d)?n[d]=c:(a||(a={}))[d]=c:eu(e.emitsOptions,u)||(!(u in r)||c!==r[u])&&(r[u]=c,i=!0)}if(o){const u=ut(n),c=a||Ct;for(let d=0;d<o.length;d++){const f=o[d];n[f]=Vc(s,u,f,c[f],e,!pt(c,f))}}return i}function Vc(e,t,n,r,s,o){const i=e[n];if(i!=null){const a=pt(i,"default");if(a&&r===void 0){const u=i.default;if(i.type!==Function&&!i.skipFactory&&et(u)){const{propsDefaults:c}=s;n in c?r=c[n]:(ls(s),r=c[n]=u.call(null,t),rs())}else r=u}i[0]&&(o&&!a?r=!1:i[1]&&(r===""||r===jn(n))&&(r=!0))}return r}function cg(e,t,n=!1){const r=t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},a=[];let u=!1;if(!et(e)){const d=f=>{u=!0;const[m,p]=cg(f,t,!0);Tt(i,m),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!u)return zt(e)&&r.set(e,ao),ao;if(Ne(o))for(let d=0;d<o.length;d++){const f=En(o[d]);Vf(f)&&(i[f]=Ct)}else if(o)for(const d in o){const f=En(d);if(Vf(f)){const m=o[d],p=i[f]=Ne(m)||et(m)?{type:m}:Tt({},m);if(p){const h=jf(Boolean,p.type),_=jf(String,p.type);p[0]=h>-1,p[1]=_<0||h<_,(h>-1||pt(p,"default"))&&a.push(f)}}}const c=[i,a];return zt(e)&&r.set(e,c),c}function Vf(e){return e[0]!=="$"}function Bf(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Uf(e,t){return Bf(e)===Bf(t)}function jf(e,t){return Ne(t)?t.findIndex(n=>Uf(n,e)):et(t)&&Uf(t,e)?0:-1}const dg=e=>e[0]==="_"||e==="$stable",sm=e=>Ne(e)?e.map(Dn):[Dn(e)],gC=(e,t,n)=>{if(t._n)return t;const r=A((...s)=>sm(t(...s)),n);return r._c=!1,r},mg=(e,t,n)=>{const r=e._ctx;for(const s in e){if(dg(s))continue;const o=e[s];if(et(o))t[s]=gC(s,o,r);else if(o!=null){const i=sm(o);t[s]=()=>i}}},fg=(e,t)=>{const n=sm(t);e.slots.default=()=>n},yC=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ut(t),Cl(t,"_",n)):mg(t,e.slots={})}else e.slots={},t&&fg(e,t);Cl(e.slots,au,1)},vC=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=Ct;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:(Tt(s,t),!n&&a===1&&delete s._):(o=!t.$stable,mg(t,s)),i=t}else t&&(fg(e,t),i={default:1});if(o)for(const a in s)!dg(a)&&!(a in i)&&delete s[a]};function $l(e,t,n,r,s=!1){if(Ne(e)){e.forEach((m,p)=>$l(m,t&&(Ne(t)?t[p]:t),n,r,s));return}if($s(r)&&!s)return;const o=r.shapeFlag&4?lu(r.component)||r.component.proxy:r.el,i=s?null:o,{i:a,r:u}=e,c=t&&t.r,d=a.refs===Ct?a.refs={}:a.refs,f=a.setupState;if(c!=null&&c!==u&&(It(c)?(d[c]=null,pt(f,c)&&(f[c]=null)):Yt(c)&&(c.value=null)),et(u))Pr(u,a,12,[i,d]);else{const m=It(u),p=Yt(u);if(m||p){const h=()=>{if(e.f){const _=m?pt(f,u)?f[u]:d[u]:u.value;s?Ne(_)&&Rd(_,o):Ne(_)?_.includes(o)||_.push(o):m?(d[u]=[o],pt(f,u)&&(f[u]=d[u])):(u.value=[o],e.k&&(d[e.k]=u.value))}else m?(d[u]=i,pt(f,u)&&(f[u]=i)):p&&(u.value=i,e.k&&(d[e.k]=i))};i?(h.id=-1,on(h,n)):h()}}}let Ur=!1;const _a=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",ga=e=>e.nodeType===8;function bC(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:a,insert:u,createComment:c}}=e,d=(v,b)=>{if(!b.hasChildNodes()){n(null,v,b),El(),b._vnode=v;return}Ur=!1,f(b.firstChild,v,null,null,null),El(),b._vnode=v,Ur&&console.error("Hydration completed but contains mismatches.")},f=(v,b,k,z,S,T=!1)=>{const M=ga(v)&&v.data==="[",L=()=>_(v,b,k,z,S,M),{type:F,ref:j,shapeFlag:K,patchFlag:Q}=b;let U=v.nodeType;b.el=v,Q===-2&&(T=!1,b.dynamicChildren=null);let G=null;switch(F){case is:U!==3?b.children===""?(u(b.el=s(""),i(v),v),G=v):G=L():(v.data!==b.children&&(Ur=!0,v.data=b.children),G=o(v));break;case mn:U!==8||M?G=L():G=o(v);break;case As:if(M&&(v=o(v),U=v.nodeType),U===1||U===3){G=v;const me=!b.children.length;for(let se=0;se<b.staticCount;se++)me&&(b.children+=G.nodeType===1?G.outerHTML:G.data),se===b.staticCount-1&&(b.anchor=G),G=o(G);return M?o(G):G}else L();break;case He:M?G=h(v,b,k,z,S,T):G=L();break;default:if(K&1)U!==1||b.type.toLowerCase()!==v.tagName.toLowerCase()?G=L():G=m(v,b,k,z,S,T);else if(K&6){b.slotScopeIds=S;const me=i(v);if(t(b,me,null,k,z,_a(me),T),G=M?w(v):o(v),G&&ga(G)&&G.data==="teleport end"&&(G=o(G)),$s(b)){let se;M?(se=C(He),se.anchor=G?G.previousSibling:me.lastChild):se=v.nodeType===3?wt(""):C("div"),se.el=v,b.component.subTree=se}}else K&64?U!==8?G=L():G=b.type.hydrate(v,b,k,z,S,T,e,p):K&128&&(G=b.type.hydrate(v,b,k,z,_a(i(v)),S,T,e,f))}return j!=null&&$l(j,null,z,b),G},m=(v,b,k,z,S,T)=>{T=T||!!b.dynamicChildren;const{type:M,props:L,patchFlag:F,shapeFlag:j,dirs:K}=b,Q=M==="input"&&K||M==="option";if(Q||F!==-1){if(K&&fr(b,null,k,"created"),L)if(Q||!T||F&48)for(const G in L)(Q&&G.endsWith("value")||Bi(G)&&!ai(G))&&r(v,G,null,L[G],!1,void 0,k);else L.onClick&&r(v,"onClick",null,L.onClick,!1,void 0,k);let U;if((U=L&&L.onVnodeBeforeMount)&&zn(U,k,b),K&&fr(b,null,k,"beforeMount"),((U=L&&L.onVnodeMounted)||K)&&U_(()=>{U&&zn(U,k,b),K&&fr(b,null,k,"mounted")},z),j&16&&!(L&&(L.innerHTML||L.textContent))){let G=p(v.firstChild,b,v,k,z,S,T);for(;G;){Ur=!0;const me=G;G=G.nextSibling,a(me)}}else j&8&&v.textContent!==b.children&&(Ur=!0,v.textContent=b.children)}return v.nextSibling},p=(v,b,k,z,S,T,M)=>{M=M||!!b.dynamicChildren;const L=b.children,F=L.length;for(let j=0;j<F;j++){const K=M?L[j]:L[j]=Dn(L[j]);if(v)v=f(v,K,z,S,T,M);else{if(K.type===is&&!K.children)continue;Ur=!0,n(null,K,k,null,z,S,_a(k),T)}}return v},h=(v,b,k,z,S,T)=>{const{slotScopeIds:M}=b;M&&(S=S?S.concat(M):M);const L=i(v),F=p(o(v),b,L,k,z,S,T);return F&&ga(F)&&F.data==="]"?o(b.anchor=F):(Ur=!0,u(b.anchor=c("]"),L,F),F)},_=(v,b,k,z,S,T)=>{if(Ur=!0,b.el=null,T){const F=w(v);for(;;){const j=o(v);if(j&&j!==F)a(j);else break}}const M=o(v),L=i(v);return a(v),n(null,b,L,M,k,z,_a(L),S),M},w=v=>{let b=0;for(;v;)if(v=o(v),v&&ga(v)&&(v.data==="["&&b++,v.data==="]")){if(b===0)return o(v);b--}return v};return[d,f]}const on=U_;function pg(e){return _g(e)}function hg(e){return _g(e,bC)}function _g(e,t){const n=Oc();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:u,setText:c,setElementText:d,parentNode:f,nextSibling:m,setScopeId:p=or,insertStaticContent:h}=e,_=(O,D,N,ee=null,re=null,oe=null,ze=!1,he=null,fe=!!D.dynamicChildren)=>{if(O===D)return;O&&!rr(O,D)&&(ee=W(O),X(O,re,oe,!0),O=null),D.patchFlag===-2&&(fe=!1,D.dynamicChildren=null);const{type:ne,ref:V,shapeFlag:Z}=D;switch(ne){case is:w(O,D,N,ee);break;case mn:v(O,D,N,ee);break;case As:O==null&&b(D,N,ee,ze);break;case He:Q(O,D,N,ee,re,oe,ze,he,fe);break;default:Z&1?S(O,D,N,ee,re,oe,ze,he,fe):Z&6?U(O,D,N,ee,re,oe,ze,he,fe):(Z&64||Z&128)&&ne.process(O,D,N,ee,re,oe,ze,he,fe,le)}V!=null&&re&&$l(V,O&&O.ref,oe,D||O,!D)},w=(O,D,N,ee)=>{if(O==null)r(D.el=a(D.children),N,ee);else{const re=D.el=O.el;D.children!==O.children&&c(re,D.children)}},v=(O,D,N,ee)=>{O==null?r(D.el=u(D.children||""),N,ee):D.el=O.el},b=(O,D,N,ee)=>{[O.el,O.anchor]=h(O.children,D,N,ee,O.el,O.anchor)},k=({el:O,anchor:D},N,ee)=>{let re;for(;O&&O!==D;)re=m(O),r(O,N,ee),O=re;r(D,N,ee)},z=({el:O,anchor:D})=>{let N;for(;O&&O!==D;)N=m(O),s(O),O=N;s(D)},S=(O,D,N,ee,re,oe,ze,he,fe)=>{ze=ze||D.type==="svg",O==null?T(D,N,ee,re,oe,ze,he,fe):F(O,D,re,oe,ze,he,fe)},T=(O,D,N,ee,re,oe,ze,he)=>{let fe,ne;const{type:V,props:Z,shapeFlag:Se,transition:Oe,dirs:Ye}=O;if(fe=O.el=i(O.type,oe,Z&&Z.is,Z),Se&8?d(fe,O.children):Se&16&&L(O.children,fe,null,ee,re,oe&&V!=="foreignObject",ze,he),Ye&&fr(O,null,ee,"created"),M(fe,O,O.scopeId,ze,ee),Z){for(const Qe in Z)Qe!=="value"&&!ai(Qe)&&o(fe,Qe,null,Z[Qe],oe,O.children,ee,re,Le);"value"in Z&&o(fe,"value",null,Z.value),(ne=Z.onVnodeBeforeMount)&&zn(ne,ee,O)}Ye&&fr(O,null,ee,"beforeMount");const nt=(!re||re&&!re.pendingBranch)&&Oe&&!Oe.persisted;nt&&Oe.beforeEnter(fe),r(fe,D,N),((ne=Z&&Z.onVnodeMounted)||nt||Ye)&&on(()=>{ne&&zn(ne,ee,O),nt&&Oe.enter(fe),Ye&&fr(O,null,ee,"mounted")},re)},M=(O,D,N,ee,re)=>{if(N&&p(O,N),ee)for(let oe=0;oe<ee.length;oe++)p(O,ee[oe]);if(re){let oe=re.subTree;if(D===oe){const ze=re.vnode;M(O,ze,ze.scopeId,ze.slotScopeIds,re.parent)}}},L=(O,D,N,ee,re,oe,ze,he,fe=0)=>{for(let ne=fe;ne<O.length;ne++){const V=O[ne]=he?Zr(O[ne]):Dn(O[ne]);_(null,V,D,N,ee,re,oe,ze,he)}},F=(O,D,N,ee,re,oe,ze)=>{const he=D.el=O.el;let{patchFlag:fe,dynamicChildren:ne,dirs:V}=D;fe|=O.patchFlag&16;const Z=O.props||Ct,Se=D.props||Ct;let Oe;N&&hs(N,!1),(Oe=Se.onVnodeBeforeUpdate)&&zn(Oe,N,D,O),V&&fr(D,O,N,"beforeUpdate"),N&&hs(N,!0);const Ye=re&&D.type!=="foreignObject";if(ne?j(O.dynamicChildren,ne,he,N,ee,Ye,oe):ze||Ce(O,D,he,null,N,ee,Ye,oe,!1),fe>0){if(fe&16)K(he,D,Z,Se,N,ee,re);else if(fe&2&&Z.class!==Se.class&&o(he,"class",null,Se.class,re),fe&4&&o(he,"style",Z.style,Se.style,re),fe&8){const nt=D.dynamicProps;for(let Qe=0;Qe<nt.length;Qe++){const x=nt[Qe],y=Z[x],I=Se[x];(I!==y||x==="value")&&o(he,x,y,I,re,O.children,N,ee,Le)}}fe&1&&O.children!==D.children&&d(he,D.children)}else!ze&&ne==null&&K(he,D,Z,Se,N,ee,re);((Oe=Se.onVnodeUpdated)||V)&&on(()=>{Oe&&zn(Oe,N,D,O),V&&fr(D,O,N,"updated")},ee)},j=(O,D,N,ee,re,oe,ze)=>{for(let he=0;he<D.length;he++){const fe=O[he],ne=D[he],V=fe.el&&(fe.type===He||!rr(fe,ne)||fe.shapeFlag&70)?f(fe.el):N;_(fe,ne,V,null,ee,re,oe,ze,!0)}},K=(O,D,N,ee,re,oe,ze)=>{if(N!==ee){if(N!==Ct)for(const he in N)!ai(he)&&!(he in ee)&&o(O,he,N[he],null,ze,D.children,re,oe,Le);for(const he in ee){if(ai(he))continue;const fe=ee[he],ne=N[he];fe!==ne&&he!=="value"&&o(O,he,ne,fe,ze,D.children,re,oe,Le)}"value"in ee&&o(O,"value",N.value,ee.value)}},Q=(O,D,N,ee,re,oe,ze,he,fe)=>{const ne=D.el=O?O.el:a(""),V=D.anchor=O?O.anchor:a("");let{patchFlag:Z,dynamicChildren:Se,slotScopeIds:Oe}=D;Oe&&(he=he?he.concat(Oe):Oe),O==null?(r(ne,N,ee),r(V,N,ee),L(D.children,N,V,re,oe,ze,he,fe)):Z>0&&Z&64&&Se&&O.dynamicChildren?(j(O.dynamicChildren,Se,N,re,oe,ze,he),(D.key!=null||re&&D===re.subTree)&&om(O,D,!0)):Ce(O,D,N,V,re,oe,ze,he,fe)},U=(O,D,N,ee,re,oe,ze,he,fe)=>{D.slotScopeIds=he,O==null?D.shapeFlag&512?re.ctx.activate(D,N,ee,ze,fe):G(D,N,ee,re,oe,ze,fe):me(O,D,fe)},G=(O,D,N,ee,re,oe,ze)=>{const he=O.component=Cg(O,ee,re);if(Wi(O)&&(he.ctx.renderer=le),xg(he),he.asyncDep){if(re&&re.registerDep(he,se),!O.el){const fe=he.subTree=C(mn);v(null,fe,D,N)}return}se(he,O,D,N,re,oe,ze)},me=(O,D,N)=>{const ee=D.component=O.component;if(Aw(O,D,N))if(ee.asyncDep&&!ee.asyncResolved){ae(ee,D,N);return}else ee.next=D,bw(ee.update),ee.update();else D.el=O.el,ee.vnode=D},se=(O,D,N,ee,re,oe,ze)=>{const he=()=>{if(O.isMounted){let{next:V,bu:Z,u:Se,parent:Oe,vnode:Ye}=O,nt=V,Qe;hs(O,!1),V?(V.el=Ye.el,ae(O,V,ze)):V=Ye,Z&&uo(Z),(Qe=V.props&&V.props.onVnodeBeforeUpdate)&&zn(Qe,Oe,V,Ye),hs(O,!0);const x=ul(O),y=O.subTree;O.subTree=x,_(y,x,f(y.el),W(y),O,re,oe),V.el=x.el,nt===null&&Jd(O,x.el),Se&&on(Se,re),(Qe=V.props&&V.props.onVnodeUpdated)&&on(()=>zn(Qe,Oe,V,Ye),re)}else{let V;const{el:Z,props:Se}=D,{bm:Oe,m:Ye,parent:nt}=O,Qe=$s(D);if(hs(O,!1),Oe&&uo(Oe),!Qe&&(V=Se&&Se.onVnodeBeforeMount)&&zn(V,nt,D),hs(O,!0),Z&&Ue){const x=()=>{O.subTree=ul(O),Ue(Z,O.subTree,O,re,null)};Qe?D.type.__asyncLoader().then(()=>!O.isUnmounted&&x()):x()}else{const x=O.subTree=ul(O);_(null,x,N,ee,O,re,oe),D.el=x.el}if(Ye&&on(Ye,re),!Qe&&(V=Se&&Se.onVnodeMounted)){const x=D;on(()=>zn(V,nt,x),re)}(D.shapeFlag&256||nt&&$s(nt.vnode)&&nt.vnode.shapeFlag&256)&&O.a&&on(O.a,re),O.isMounted=!0,D=N=ee=null}},fe=O.effect=new ji(he,()=>Ql(ne),O.scope),ne=O.update=()=>fe.run();ne.id=O.uid,hs(O,!0),ne()},ae=(O,D,N)=>{D.component=O;const ee=O.vnode.props;O.vnode=D,O.next=null,_C(O,D.props,ee,N),vC(O,D.children,N),So(),Pf(),$o()},Ce=(O,D,N,ee,re,oe,ze,he,fe=!1)=>{const ne=O&&O.children,V=O?O.shapeFlag:0,Z=D.children,{patchFlag:Se,shapeFlag:Oe}=D;if(Se>0){if(Se&128){Ze(ne,Z,N,ee,re,oe,ze,he,fe);return}else if(Se&256){Ke(ne,Z,N,ee,re,oe,ze,he,fe);return}}Oe&8?(V&16&&Le(ne,re,oe),Z!==ne&&d(N,Z)):V&16?Oe&16?Ze(ne,Z,N,ee,re,oe,ze,he,fe):Le(ne,re,oe,!0):(V&8&&d(N,""),Oe&16&&L(Z,N,ee,re,oe,ze,he,fe))},Ke=(O,D,N,ee,re,oe,ze,he,fe)=>{O=O||ao,D=D||ao;const ne=O.length,V=D.length,Z=Math.min(ne,V);let Se;for(Se=0;Se<Z;Se++){const Oe=D[Se]=fe?Zr(D[Se]):Dn(D[Se]);_(O[Se],Oe,N,null,re,oe,ze,he,fe)}ne>V?Le(O,re,oe,!0,!1,Z):L(D,N,ee,re,oe,ze,he,fe,Z)},Ze=(O,D,N,ee,re,oe,ze,he,fe)=>{let ne=0;const V=D.length;let Z=O.length-1,Se=V-1;for(;ne<=Z&&ne<=Se;){const Oe=O[ne],Ye=D[ne]=fe?Zr(D[ne]):Dn(D[ne]);if(rr(Oe,Ye))_(Oe,Ye,N,null,re,oe,ze,he,fe);else break;ne++}for(;ne<=Z&&ne<=Se;){const Oe=O[Z],Ye=D[Se]=fe?Zr(D[Se]):Dn(D[Se]);if(rr(Oe,Ye))_(Oe,Ye,N,null,re,oe,ze,he,fe);else break;Z--,Se--}if(ne>Z){if(ne<=Se){const Oe=Se+1,Ye=Oe<V?D[Oe].el:ee;for(;ne<=Se;)_(null,D[ne]=fe?Zr(D[ne]):Dn(D[ne]),N,Ye,re,oe,ze,he,fe),ne++}}else if(ne>Se)for(;ne<=Z;)X(O[ne],re,oe,!0),ne++;else{const Oe=ne,Ye=ne,nt=new Map;for(ne=Ye;ne<=Se;ne++){const we=D[ne]=fe?Zr(D[ne]):Dn(D[ne]);we.key!=null&&nt.set(we.key,ne)}let Qe,x=0;const y=Se-Ye+1;let I=!1,H=0;const J=new Array(y);for(ne=0;ne<y;ne++)J[ne]=0;for(ne=Oe;ne<=Z;ne++){const we=O[ne];if(x>=y){X(we,re,oe,!0);continue}let Re;if(we.key!=null)Re=nt.get(we.key);else for(Qe=Ye;Qe<=Se;Qe++)if(J[Qe-Ye]===0&&rr(we,D[Qe])){Re=Qe;break}Re===void 0?X(we,re,oe,!0):(J[Re-Ye]=ne+1,Re>=H?H=Re:I=!0,_(we,D[Re],N,null,re,oe,ze,he,fe),x++)}const ue=I?wC(J):ao;for(Qe=ue.length-1,ne=y-1;ne>=0;ne--){const we=Ye+ne,Re=D[we],Me=we+1<V?D[we+1].el:ee;J[ne]===0?_(null,Re,N,Me,re,oe,ze,he,fe):I&&(Qe<0||ne!==ue[Qe]?ve(Re,N,Me,2):Qe--)}}},ve=(O,D,N,ee,re=null)=>{const{el:oe,type:ze,transition:he,children:fe,shapeFlag:ne}=O;if(ne&6){ve(O.component.subTree,D,N,ee);return}if(ne&128){O.suspense.move(D,N,ee);return}if(ne&64){ze.move(O,D,N,le);return}if(ze===He){r(oe,D,N);for(let Z=0;Z<fe.length;Z++)ve(fe[Z],D,N,ee);r(O.anchor,D,N);return}if(ze===As){k(O,D,N);return}if(ee!==2&&ne&1&&he)if(ee===0)he.beforeEnter(oe),r(oe,D,N),on(()=>he.enter(oe),re);else{const{leave:Z,delayLeave:Se,afterLeave:Oe}=he,Ye=()=>r(oe,D,N),nt=()=>{Z(oe,()=>{Ye(),Oe&&Oe()})};Se?Se(oe,Ye,nt):nt()}else r(oe,D,N)},X=(O,D,N,ee=!1,re=!1)=>{const{type:oe,props:ze,ref:he,children:fe,dynamicChildren:ne,shapeFlag:V,patchFlag:Z,dirs:Se}=O;if(he!=null&&$l(he,null,N,O,!0),V&256){D.ctx.deactivate(O);return}const Oe=V&1&&Se,Ye=!$s(O);let nt;if(Ye&&(nt=ze&&ze.onVnodeBeforeUnmount)&&zn(nt,D,O),V&6)Fe(O.component,N,ee);else{if(V&128){O.suspense.unmount(N,ee);return}Oe&&fr(O,null,D,"beforeUnmount"),V&64?O.type.remove(O,D,N,re,le,ee):ne&&(oe!==He||Z>0&&Z&64)?Le(ne,D,N,!1,!0):(oe===He&&Z&384||!re&&V&16)&&Le(fe,D,N),ee&&ge(O)}(Ye&&(nt=ze&&ze.onVnodeUnmounted)||Oe)&&on(()=>{nt&&zn(nt,D,O),Oe&&fr(O,null,D,"unmounted")},N)},ge=O=>{const{type:D,el:N,anchor:ee,transition:re}=O;if(D===He){be(N,ee);return}if(D===As){z(O);return}const oe=()=>{s(N),re&&!re.persisted&&re.afterLeave&&re.afterLeave()};if(O.shapeFlag&1&&re&&!re.persisted){const{leave:ze,delayLeave:he}=re,fe=()=>ze(N,oe);he?he(O.el,oe,fe):fe()}else oe()},be=(O,D)=>{let N;for(;O!==D;)N=m(O),s(O),O=N;s(D)},Fe=(O,D,N)=>{const{bum:ee,scope:re,update:oe,subTree:ze,um:he}=O;ee&&uo(ee),re.stop(),oe&&(oe.active=!1,X(ze,O,D,N)),he&&on(he,D),on(()=>{O.isUnmounted=!0},D),D&&D.pendingBranch&&!D.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===D.pendingId&&(D.deps--,D.deps===0&&D.resolve())},Le=(O,D,N,ee=!1,re=!1,oe=0)=>{for(let ze=oe;ze<O.length;ze++)X(O[ze],D,N,ee,re)},W=O=>O.shapeFlag&6?W(O.component.subTree):O.shapeFlag&128?O.suspense.next():m(O.anchor||O.el),ye=(O,D,N)=>{O==null?D._vnode&&X(D._vnode,null,null,!0):_(D._vnode||null,O,D,null,null,null,N),Pf(),El(),D._vnode=O},le={p:_,um:X,m:ve,r:ge,mt:G,mc:L,pc:Ce,pbc:j,n:W,o:e};let xe,Ue;return t&&([xe,Ue]=t(le)),{render:ye,hydrate:xe,createApp:fC(ye,xe)}}function hs({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function om(e,t,n=!1){const r=e.children,s=t.children;if(Ne(r)&&Ne(s))for(let o=0;o<r.length;o++){const i=r[o];let a=s[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[o]=Zr(s[o]),a.el=i.el),n||om(i,a)),a.type===is&&(a.el=i.el)}}function wC(e){const t=e.slice(),n=[0];let r,s,o,i,a;const u=e.length;for(r=0;r<u;r++){const c=e[r];if(c!==0){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,e[n[a]]<c?o=a+1:i=a;c<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}const CC=e=>e.__isTeleport,mi=e=>e&&(e.disabled||e.disabled===""),Hf=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,Bc=(e,t)=>{const n=e&&e.to;return It(n)?t?t(n):null:n},zC={__isTeleport:!0,process(e,t,n,r,s,o,i,a,u,c){const{mc:d,pc:f,pbc:m,o:{insert:p,querySelector:h,createText:_,createComment:w}}=c,v=mi(t.props);let{shapeFlag:b,children:k,dynamicChildren:z}=t;if(e==null){const S=t.el=_(""),T=t.anchor=_("");p(S,n,r),p(T,n,r);const M=t.target=Bc(t.props,h),L=t.targetAnchor=_("");M&&(p(L,M),i=i||Hf(M));const F=(j,K)=>{b&16&&d(k,j,K,s,o,i,a,u)};v?F(n,T):M&&F(M,L)}else{t.el=e.el;const S=t.anchor=e.anchor,T=t.target=e.target,M=t.targetAnchor=e.targetAnchor,L=mi(e.props),F=L?n:T,j=L?S:M;if(i=i||Hf(T),z?(m(e.dynamicChildren,z,F,s,o,i,a),om(e,t,!0)):u||f(e,t,F,j,s,o,i,a,!1),v)L||ya(t,n,S,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const K=t.target=Bc(t.props,h);K&&ya(t,K,null,c,0)}else L&&ya(t,T,M,c,1)}gg(t)},remove(e,t,n,r,{um:s,o:{remove:o}},i){const{shapeFlag:a,children:u,anchor:c,targetAnchor:d,target:f,props:m}=e;if(f&&o(d),(i||!mi(m))&&(o(c),a&16))for(let p=0;p<u.length;p++){const h=u[p];s(h,t,n,!0,!!h.dynamicChildren)}},move:ya,hydrate:xC};function ya(e,t,n,{o:{insert:r},m:s},o=2){o===0&&r(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:u,children:c,props:d}=e,f=o===2;if(f&&r(i,t,n),(!f||mi(d))&&u&16)for(let m=0;m<c.length;m++)s(c[m],t,n,2);f&&r(a,t,n)}function xC(e,t,n,r,s,o,{o:{nextSibling:i,parentNode:a,querySelector:u}},c){const d=t.target=Bc(t.props,u);if(d){const f=d._lpa||d.firstChild;if(t.shapeFlag&16)if(mi(t.props))t.anchor=c(i(e),t,a(e),n,r,s,o),t.targetAnchor=f;else{t.anchor=i(e);let m=f;for(;m;)if(m=i(m),m&&m.nodeType===8&&m.data==="teleport anchor"){t.targetAnchor=m,d._lpa=t.targetAnchor&&i(t.targetAnchor);break}c(f,t,d,n,r,s,o)}gg(t)}return t.anchor&&i(t.anchor)}const ds=zC;function gg(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const He=Symbol.for("v-fgt"),is=Symbol.for("v-txt"),mn=Symbol.for("v-cmt"),As=Symbol.for("v-stc"),fi=[];let kn=null;function E(e=!1){fi.push(kn=e?null:[])}function yg(){fi.pop(),kn=fi[fi.length-1]||null}let Fs=1;function Uc(e){Fs+=e}function vg(e){return e.dynamicChildren=Fs>0?kn||ao:null,yg(),Fs>0&&kn&&kn.push(e),e}function P(e,t,n,r,s,o){return vg(l(e,t,n,r,s,o,!0))}function ke(e,t,n,r,s){return vg(C(e,t,n,r,s,!0))}function as(e){return e?e.__v_isVNode===!0:!1}function rr(e,t){return e.type===t.type&&e.key===t.key}function kC(e){}const au="__vInternal",bg=({key:e})=>e!=null?e:null,cl=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?It(e)||Yt(e)||et(e)?{i:rn,r:e,k:t,f:!!n}:e:null);function l(e,t=null,n=null,r=0,s=null,o=e===He?0:1,i=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bg(t),ref:t&&cl(t),scopeId:tu,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:rn};return a?(im(u,n),o&128&&e.normalize(u)):n&&(u.shapeFlag|=It(n)?8:16),Fs>0&&!i&&kn&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&kn.push(u),u}const C=EC;function EC(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===rg)&&(e=mn),as(e)){const a=vr(e,t,!0);return n&&im(a,n),Fs>0&&!o&&kn&&(a.shapeFlag&6?kn[kn.indexOf(e)]=a:kn.push(a)),a.patchFlag|=-2,a}if(FC(e)&&(e=e.__vccOpts),t){t=wg(t);let{class:a,style:u}=t;a&&!It(a)&&(t.class=We(a)),zt(u)&&(Hd(u)&&!Ne(u)&&(u=Tt({},u)),t.style=cs(u))}const i=It(e)?1:B_(e)?128:CC(e)?64:zt(e)?4:et(e)?2:0;return l(e,t,n,r,s,i,o,!0)}function wg(e){return e?Hd(e)||au in e?Tt({},e):e:null}function vr(e,t,n=!1){const{props:r,ref:s,patchFlag:o,children:i}=e,a=t?ks(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&bg(a),ref:t&&t.ref?n&&s?Ne(s)?s.concat(cl(t)):[s,cl(t)]:cl(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==He?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&vr(e.ssContent),ssFallback:e.ssFallback&&vr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function wt(e=" ",t=0){return C(is,null,e,t)}function SC(e,t){const n=C(As,null,e);return n.staticCount=t,n}function Y(e="",t=!1){return t?(E(),ke(mn,null,e)):C(mn,null,e)}function Dn(e){return e==null||typeof e=="boolean"?C(mn):Ne(e)?C(He,null,e.slice()):typeof e=="object"?Zr(e):C(is,null,String(e))}function Zr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vr(e)}function im(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ne(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),im(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(au in t)?t._ctx=rn:s===3&&rn&&(rn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else et(t)?(t={default:t,_ctx:rn},n=32):(t=String(t),r&64?(n=16,t=[wt(t)]):n=8);e.children=t,e.shapeFlag|=n}function ks(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=We([t.class,r.class]));else if(s==="style")t.style=cs([t.style,r.style]);else if(Bi(s)){const o=t[s],i=r[s];i&&o!==i&&!(Ne(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=r[s])}return t}function zn(e,t,n,r=null){In(e,t,7,[n,r])}const $C=lg();let AC=0;function Cg(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||$C,o={uid:AC++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new Md(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:cg(r,s),emitsOptions:V_(r,s),emit:null,emitted:null,propsDefaults:Ct,inheritAttrs:r.inheritAttrs,ctx:Ct,data:Ct,props:Ct,attrs:Ct,slots:Ct,refs:Ct,setupState:Ct,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Cw.bind(null,o),e.ce&&e.ce(o),o}let Zt=null;const Kn=()=>Zt||rn;let am,Hs,qf="__VUE_INSTANCE_SETTERS__";(Hs=Oc()[qf])||(Hs=Oc()[qf]=[]),Hs.push(e=>Zt=e),am=e=>{Hs.length>1?Hs.forEach(t=>t(e)):Hs[0](e)};const ls=e=>{am(e),e.scope.on()},rs=()=>{Zt&&Zt.scope.off(),am(null)};function zg(e){return e.vnode.shapeFlag&4}let _o=!1;function xg(e,t=!1){_o=t;const{props:n,children:r}=e.vnode,s=zg(e);hC(e,n,s,t),yC(e,r);const o=s?TC(e,t):void 0;return _o=!1,o}function TC(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=qd(new Proxy(e.ctx,Lc));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?Eg(e):null;ls(e),So();const o=Pr(r,e,0,[e.props,s]);if($o(),rs(),Ld(o)){if(o.then(rs,rs),t)return o.then(i=>{jc(e,i,t)}).catch(i=>{Ls(i,e,0)});e.asyncDep=o}else jc(e,o,t)}else kg(e,t)}function jc(e,t,n){et(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:zt(t)&&(e.setupState=Kd(t)),kg(e,n)}let Al,Hc;function OC(e){Al=e,Hc=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Ww))}}const PC=()=>!Al;function kg(e,t,n){const r=e.type;if(!e.render){if(!t&&Al&&!r.render){const s=r.template||rm(e).template;if(s){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:u}=r,c=Tt(Tt({isCustomElement:o,delimiters:a},i),u);r.render=Al(s,c)}}e.render=r.render||or,Hc&&Hc(e)}ls(e),So(),aC(e),$o(),rs()}function DC(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Sn(e,"get","$attrs"),t[n]}}))}function Eg(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return DC(e)},slots:e.slots,emit:e.emit,expose:t}}function lu(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Kd(qd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ci)return ci[n](e)},has(t,n){return n in t||n in ci}}))}function qc(e,t=!0){return et(e)?e.displayName||e.name:e.name||t&&e.__name}function FC(e){return et(e)&&"__vccOpts"in e}const $t=(e,t)=>hw(e,t,_o);function _r(e,t,n){const r=arguments.length;return r===2?zt(t)&&!Ne(t)?as(t)?C(e,null,[t]):C(e,t):C(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&as(n)&&(n=[n]),C(e,t,n))}const Sg=Symbol.for("v-scx"),$g=()=>ir(Sg);function IC(){}function RC(e,t,n,r){const s=n[r];if(s&&Ag(s,e))return s;const o=t();return o.memo=e.slice(),n[r]=o}function Ag(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(po(n[r],t[r]))return!1;return Fs>0&&kn&&kn.push(e),!0}const Tg="3.3.4",LC={createComponentInstance:Cg,setupComponent:xg,renderComponentRoot:ul,setCurrentRenderingInstance:Pi,isVNode:as,normalizeVNode:Dn},NC=LC,MC=null,VC=null,BC="http://www.w3.org/2000/svg",zs=typeof document!="undefined"?document:null,Wf=zs&&zs.createElement("template"),UC={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t?zs.createElementNS(BC,e):zs.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>zs.createTextNode(e),createComment:e=>zs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>zs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Wf.innerHTML=r?`<svg>${e}</svg>`:e;const a=Wf.content;if(r){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function jC(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function HC(e,t,n){const r=e.style,s=It(n);if(n&&!s){if(t&&!It(t))for(const o in t)n[o]==null&&Wc(r,o,"");for(const o in n)Wc(r,o,n[o])}else{const o=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const Gf=/\s*!important$/;function Wc(e,t,n){if(Ne(n))n.forEach(r=>Wc(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=qC(e,t);Gf.test(n)?e.setProperty(jn(r),n.replace(Gf,""),"important"):e[r]=n}}const Kf=["Webkit","Moz","ms"],Zu={};function qC(e,t){const n=Zu[t];if(n)return n;let r=En(t);if(r!=="filter"&&r in e)return Zu[t]=r;r=Ui(r);for(let s=0;s<Kf.length;s++){const o=Kf[s]+r;if(o in e)return Zu[t]=o}return t}const Zf="http://www.w3.org/1999/xlink";function WC(e,t,n,r,s){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Zf,t.slice(6,t.length)):e.setAttributeNS(Zf,t,n);else{const o=k0(t);n==null||o&&!__(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function GC(e,t,n,r,s,o,i){if(t==="innerHTML"||t==="textContent"){r&&i(r,s,o),e[t]=n==null?"":n;return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){e._value=n;const c=a==="OPTION"?e.getAttribute("value"):e.value,d=n==null?"":n;c!==d&&(e.value=d),n==null&&e.removeAttribute(t);return}let u=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=__(n):n==null&&c==="string"?(n="",u=!0):c==="number"&&(n=0,u=!0)}try{e[t]=n}catch{}u&&e.removeAttribute(t)}function Tr(e,t,n,r){e.addEventListener(t,n,r)}function KC(e,t,n,r){e.removeEventListener(t,n,r)}function ZC(e,t,n,r,s=null){const o=e._vei||(e._vei={}),i=o[t];if(r&&i)i.value=r;else{const[a,u]=YC(t);if(r){const c=o[t]=QC(r,s);Tr(e,a,c,u)}else i&&(KC(e,a,i,u),o[t]=void 0)}}const Yf=/(?:Once|Passive|Capture)$/;function YC(e){let t;if(Yf.test(e)){t={};let r;for(;r=e.match(Yf);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):jn(e.slice(2)),t]}let Yu=0;const JC=Promise.resolve(),XC=()=>Yu||(JC.then(()=>Yu=0),Yu=Date.now());function QC(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;In(ez(r,n.value),t,5,[r])};return n.value=e,n.attached=XC(),n}function ez(e,t){if(Ne(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Jf=/^on[a-z]/,tz=(e,t,n,r,s=!1,o,i,a,u)=>{t==="class"?jC(e,r,s):t==="style"?HC(e,n,r):Bi(t)?Id(t)||ZC(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):nz(e,t,r,s))?GC(e,t,r,o,i,a,u):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),WC(e,t,r,s))};function nz(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Jf.test(t)&&et(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Jf.test(t)&&It(n)?!1:t in e}function Og(e,t){const n=Ao(e);class r extends uu{constructor(o){super(n,o,t)}}return r.def=n,r}const rz=e=>Og(e,qg),sz=typeof HTMLElement!="undefined"?HTMLElement:class{};class uu extends sz{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,Hi(()=>{this._connected||(Zc(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);new MutationObserver(r=>{for(const s of r)this._setAttr(s.attributeName)}).observe(this,{attributes:!0});const t=(r,s=!1)=>{const{props:o,styles:i}=r;let a;if(o&&!Ne(o))for(const u in o){const c=o[u];(c===Number||c&&c.type===Number)&&(u in this._props&&(this._props[u]=xl(this._props[u])),(a||(a=Object.create(null)))[En(u)]=!0)}this._numberProps=a,s&&this._resolveProps(r),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=Ne(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&r.includes(s)&&this._setProp(s,this[s],!0,!1);for(const s of r.map(En))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(o){this._setProp(s,o)}})}_setAttr(t){let n=this.getAttribute(t);const r=En(t);this._numberProps&&this._numberProps[r]&&(n=xl(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!0){n!==this._props[t]&&(this._props[t]=n,s&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(jn(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(jn(t),n+""):n||this.removeAttribute(jn(t))))}_update(){Zc(this._createVNode(),this.shadowRoot)}_createVNode(){const t=C(this._def,Tt({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(o,i)=>{this.dispatchEvent(new CustomEvent(o,{detail:i}))};n.emit=(o,...i)=>{r(o,i),jn(o)!==o&&r(jn(o),i)};let s=this;for(;s=s&&(s.parentNode||s.host);)if(s instanceof uu){n.parent=s._instance,n.provides=s._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function oz(e="$style"){{const t=Kn();if(!t)return Ct;const n=t.type.__cssModules;if(!n)return Ct;const r=n[e];return r||Ct}}function iz(e){const t=Kn();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>Kc(o,s))},r=()=>{const s=e(t.proxy);Gc(t.subTree,s),n(s)};H_(r),Ns(()=>{const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),To(()=>s.disconnect())})}function Gc(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Gc(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Kc(e.el,t);else if(e.type===He)e.children.forEach(n=>Gc(n,t));else if(e.type===As){let{el:n,anchor:r}=e;for(;n&&(Kc(n,t),n!==r);)n=n.nextSibling}}function Kc(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const jr="transition",No="animation",Jt=(e,{slots:t})=>_r(W_,Dg(e),t);Jt.displayName="Transition";const Pg={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},az=Jt.props=Tt({},em,Pg),_s=(e,t=[])=>{Ne(e)?e.forEach(n=>n(...t)):e&&e(...t)},Xf=e=>e?Ne(e)?e.some(t=>t.length>1):e.length>1:!1;function Dg(e){const t={};for(const Q in e)Q in Pg||(t[Q]=e[Q]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:u=o,appearActiveClass:c=i,appearToClass:d=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,h=lz(s),_=h&&h[0],w=h&&h[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:k,onLeave:z,onLeaveCancelled:S,onBeforeAppear:T=v,onAppear:M=b,onAppearCancelled:L=k}=t,F=(Q,U,G)=>{Kr(Q,U?d:a),Kr(Q,U?c:i),G&&G()},j=(Q,U)=>{Q._isLeaving=!1,Kr(Q,f),Kr(Q,p),Kr(Q,m),U&&U()},K=Q=>(U,G)=>{const me=Q?M:b,se=()=>F(U,Q,G);_s(me,[U,se]),Qf(()=>{Kr(U,Q?u:o),$r(U,Q?d:a),Xf(me)||ep(U,r,_,se)})};return Tt(t,{onBeforeEnter(Q){_s(v,[Q]),$r(Q,o),$r(Q,i)},onBeforeAppear(Q){_s(T,[Q]),$r(Q,u),$r(Q,c)},onEnter:K(!1),onAppear:K(!0),onLeave(Q,U){Q._isLeaving=!0;const G=()=>j(Q,U);$r(Q,f),Ig(),$r(Q,m),Qf(()=>{!Q._isLeaving||(Kr(Q,f),$r(Q,p),Xf(z)||ep(Q,r,w,G))}),_s(z,[Q,G])},onEnterCancelled(Q){F(Q,!1),_s(k,[Q])},onAppearCancelled(Q){F(Q,!0),_s(L,[Q])},onLeaveCancelled(Q){j(Q),_s(S,[Q])}})}function lz(e){if(e==null)return null;if(zt(e))return[Ju(e.enter),Ju(e.leave)];{const t=Ju(e);return[t,t]}}function Ju(e){return xl(e)}function $r(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Kr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Qf(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let uz=0;function ep(e,t,n,r){const s=e._endId=++uz,o=()=>{s===e._endId&&r()};if(n)return setTimeout(o,n);const{type:i,timeout:a,propCount:u}=Fg(e,t);if(!i)return r();const c=i+"end";let d=0;const f=()=>{e.removeEventListener(c,m),o()},m=p=>{p.target===e&&++d>=u&&f()};setTimeout(()=>{d<u&&f()},a+1),e.addEventListener(c,m)}function Fg(e,t){const n=window.getComputedStyle(e),r=h=>(n[h]||"").split(", "),s=r(`${jr}Delay`),o=r(`${jr}Duration`),i=tp(s,o),a=r(`${No}Delay`),u=r(`${No}Duration`),c=tp(a,u);let d=null,f=0,m=0;t===jr?i>0&&(d=jr,f=i,m=o.length):t===No?c>0&&(d=No,f=c,m=u.length):(f=Math.max(i,c),d=f>0?i>c?jr:No:null,m=d?d===jr?o.length:u.length:0);const p=d===jr&&/\b(transform|all)(,|$)/.test(r(`${jr}Property`).toString());return{type:d,timeout:f,propCount:m,hasTransform:p}}function tp(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>np(n)+np(e[r])))}function np(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Ig(){return document.body.offsetHeight}const Rg=new WeakMap,Lg=new WeakMap,Ng={name:"TransitionGroup",props:Tt({},az,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Kn(),r=Qd();let s,o;return su(()=>{if(!s.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!hz(s[0].el,n.vnode.el,i))return;s.forEach(mz),s.forEach(fz);const a=s.filter(pz);Ig(),a.forEach(u=>{const c=u.el,d=c.style;$r(c,i),d.transform=d.webkitTransform=d.transitionDuration="";const f=c._moveCb=m=>{m&&m.target!==c||(!m||/transform$/.test(m.propertyName))&&(c.removeEventListener("transitionend",f),c._moveCb=null,Kr(c,i))};c.addEventListener("transitionend",f)})}),()=>{const i=ut(e),a=Dg(i);let u=i.tag||He;s=o,o=t.default?nu(t.default()):[];for(let c=0;c<o.length;c++){const d=o[c];d.key!=null&&Ds(d,ho(d,a,r,n))}if(s)for(let c=0;c<s.length;c++){const d=s[c];Ds(d,ho(d,a,r,n)),Rg.set(d,d.el.getBoundingClientRect())}return C(u,null,o)}}},cz=e=>delete e.mode;Ng.props;const dz=Ng;function mz(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function fz(e){Lg.set(e,e.el.getBoundingClientRect())}function pz(e){const t=Rg.get(e),n=Lg.get(e),r=t.left-n.left,s=t.top-n.top;if(r||s){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${s}px)`,o.transitionDuration="0s",e}}function hz(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(i=>{i.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(i=>i&&r.classList.add(i)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:o}=Fg(r);return s.removeChild(r),o}const us=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ne(t)?n=>uo(t,n):t};function _z(e){e.target.composing=!0}function rp(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $n={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e._assign=us(s);const o=r||s.props&&s.props.type==="number";Tr(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),o&&(a=zl(a)),e._assign(a)}),n&&Tr(e,"change",()=>{e.value=e.value.trim()}),t||(Tr(e,"compositionstart",_z),Tr(e,"compositionend",rp),Tr(e,"change",rp))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:s}},o){if(e._assign=us(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(s||e.type==="number")&&zl(e.value)===t))return;const i=t==null?"":t;e.value!==i&&(e.value=i)}},Rr={deep:!0,created(e,t,n){e._assign=us(n),Tr(e,"change",()=>{const r=e._modelValue,s=go(e),o=e.checked,i=e._assign;if(Ne(r)){const a=Gl(r,s),u=a!==-1;if(o&&!u)i(r.concat(s));else if(!o&&u){const c=[...r];c.splice(a,1),i(c)}}else if(Is(r)){const a=new Set(r);o?a.add(s):a.delete(s),i(a)}else i(Mg(e,o))})},mounted:sp,beforeUpdate(e,t,n){e._assign=us(n),sp(e,t,n)}};function sp(e,{value:t,oldValue:n},r){e._modelValue=t,Ne(t)?e.checked=Gl(t,r.props.value)>-1:Is(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=ss(t,Mg(e,!0)))}const lm={created(e,{value:t},n){e.checked=ss(t,n.props.value),e._assign=us(n),Tr(e,"change",()=>{e._assign(go(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=us(r),t!==n&&(e.checked=ss(t,r.props.value))}},um={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Is(t);Tr(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?zl(go(i)):go(i));e._assign(e.multiple?s?new Set(o):o:o[0])}),e._assign=us(r)},mounted(e,{value:t}){op(e,t)},beforeUpdate(e,t,n){e._assign=us(n)},updated(e,{value:t}){op(e,t)}};function op(e,t){const n=e.multiple;if(!(n&&!Ne(t)&&!Is(t))){for(let r=0,s=e.options.length;r<s;r++){const o=e.options[r],i=go(o);if(n)Ne(t)?o.selected=Gl(t,i)>-1:o.selected=t.has(i);else if(ss(go(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function go(e){return"_value"in e?e._value:e.value}function Mg(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Vg={created(e,t,n){va(e,t,n,null,"created")},mounted(e,t,n){va(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){va(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){va(e,t,n,r,"updated")}};function Bg(e,t){switch(e){case"SELECT":return um;case"TEXTAREA":return $n;default:switch(t){case"checkbox":return Rr;case"radio":return lm;default:return $n}}}function va(e,t,n,r,s){const i=Bg(e.tagName,n.props&&n.props.type)[s];i&&i(e,t,n,r)}function gz(){$n.getSSRProps=({value:e})=>({value:e}),lm.getSSRProps=({value:e},t)=>{if(t.props&&ss(t.props.value,e))return{checked:!0}},Rr.getSSRProps=({value:e},t)=>{if(Ne(e)){if(t.props&&Gl(e,t.props.value)>-1)return{checked:!0}}else if(Is(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Vg.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Bg(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const yz=["ctrl","shift","alt","meta"],vz={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)=>yz.some(n=>e[`${n}Key`]&&!t.includes(n))},gt=(e,t)=>(n,...r)=>{for(let s=0;s<t.length;s++){const o=vz[t[s]];if(o&&o(n,t))return}return e(n,...r)},bz={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Fn=(e,t)=>n=>{if(!("key"in n))return;const r=jn(n.key);if(t.some(s=>s===r||bz[s]===r))return e(n)},yo={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Mo(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Mo(e,!0),r.enter(e)):r.leave(e,()=>{Mo(e,!1)}):Mo(e,t))},beforeUnmount(e,{value:t}){Mo(e,t)}};function Mo(e,t){e.style.display=t?e._vod:"none"}function wz(){yo.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Ug=Tt({patchProp:tz},UC);let pi,ip=!1;function jg(){return pi||(pi=pg(Ug))}function Hg(){return pi=ip?pi:hg(Ug),ip=!0,pi}const Zc=(...e)=>{jg().render(...e)},qg=(...e)=>{Hg().hydrate(...e)},Wg=(...e)=>{const t=jg().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Gg(r);if(!s)return;const o=t._component;!et(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const i=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t},Cz=(...e)=>{const t=Hg().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Gg(r);if(s)return n(s,!0,s instanceof SVGElement)},t};function Gg(e){return It(e)?document.querySelector(e):e}let ap=!1;const zz=()=>{ap||(ap=!0,gz(),wz())},xz=()=>{};var kz=Object.freeze(Object.defineProperty({__proto__:null,compile:xz,EffectScope:Md,ReactiveEffect:ji,customRef:cw,effect:T0,effectScope:Vd,getCurrentScope:v_,isProxy:Hd,isReactive:Ss,isReadonly:Ps,isRef:Yt,isShallow:$i,markRaw:qd,onScopeDispose:S0,proxyRefs:Kd,reactive:Rs,readonly:jd,ref:Qt,shallowReactive:P_,shallowReadonly:sw,shallowRef:D_,stop:O0,toRaw:ut,toRef:fw,toRefs:ui,toValue:aw,triggerRef:iw,unref:xn,camelize:En,capitalize:Ui,normalizeClass:We,normalizeProps:Jo,normalizeStyle:cs,toDisplayString:g,toHandlerKey:li,BaseTransition:W_,BaseTransitionPropsValidators:em,Comment:mn,Fragment:He,KeepAlive:Uw,Static:As,Suspense:Ow,Teleport:ds,Text:is,assertNumber:gw,callWithAsyncErrorHandling:In,callWithErrorHandling:Pr,cloneVNode:vr,compatUtils:VC,computed:$t,createBlock:ke,createCommentVNode:Y,createElementBlock:P,createElementVNode:l,createHydrationRenderer:hg,createPropsRestProxy:oC,createRenderer:pg,createSlots:Gi,createStaticVNode:SC,createTextVNode:wt,createVNode:C,defineAsyncComponent:Vw,defineComponent:Ao,defineEmits:Kw,defineExpose:Zw,defineModel:Xw,defineOptions:Yw,defineProps:Gw,defineSlots:Jw,get devtools(){return Qs},getCurrentInstance:Kn,getTransitionRawChildren:nu,guardReactiveProps:wg,h:_r,handleError:Ls,hasInjectionContext:pC,initCustomFormatter:IC,inject:ir,isMemoSame:Ag,isRuntimeOnly:PC,isVNode:as,mergeDefaults:rC,mergeModels:sC,mergeProps:ks,nextTick:Hi,onActivated:K_,onBeforeMount:J_,onBeforeUnmount:ou,onBeforeUpdate:X_,onDeactivated:Z_,onErrorCaptured:ng,onMounted:Ns,onRenderTracked:tg,onRenderTriggered:eg,onServerPrefetch:Q_,onUnmounted:To,onUpdated:su,openBlock:E,popScopeId:xw,provide:di,pushScopeId:zw,queuePostFlushCb:Yd,registerRuntimeCompiler:OC,renderList:Et,renderSlot:vt,resolveComponent:$,resolveDirective:iu,resolveDynamicComponent:sg,resolveFilter:MC,resolveTransitionHooks:ho,setBlockTracking:Uc,setDevtoolsHook:M_,setTransitionHooks:Ds,ssrContextKey:Sg,ssrUtils:NC,toHandlers:qw,transformVNodeArgs:kC,useAttrs:tC,useModel:nC,useSSRContext:$g,useSlots:eC,useTransitionState:Qd,version:Tg,warn:_w,watch:kt,watchEffect:j_,watchPostEffect:H_,watchSyncEffect:Lw,withAsyncContext:iC,withCtx:A,withDefaults:Qw,withDirectives:Pt,withMemo:RC,withScopeId:kw,Transition:Jt,TransitionGroup:dz,VueElement:uu,createApp:Wg,createSSRApp:Cz,defineCustomElement:Og,defineSSRCustomElement:rz,hydrate:qg,initDirectivesForSSR:zz,render:Zc,useCssModule:oz,useCssVars:iz,vModelCheckbox:Rr,vModelDynamic:Vg,vModelRadio:lm,vModelSelect:um,vModelText:$n,vShow:yo,withKeys:Fn,withModifiers:gt},Symbol.toStringTag,{value:"Module"}));/*!
* shared v9.3.0-beta.14
* (c) 2023 kazuya kawaguchi
* Released under the MIT License.
*/const Yc=typeof window!="undefined",ms=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Ez=(e,t,n)=>Sz({l:e,k:t,s:n}),Sz=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),nn=e=>typeof e=="number"&&isFinite(e),$z=e=>mm(e)==="[object Date]",Tl=e=>mm(e)==="[object RegExp]",cu=e=>dt(e)&&Object.keys(e).length===0;function Az(e,t){typeof console!="undefined"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const yn=Object.assign;let lp;const cm=()=>lp||(lp=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function up(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const Tz=Object.prototype.hasOwnProperty;function dm(e,t){return Tz.call(e,t)}const en=Array.isArray,an=e=>typeof e=="function",Be=e=>typeof e=="string",jt=e=>typeof e=="boolean",At=e=>e!==null&&typeof e=="object",Kg=Object.prototype.toString,mm=e=>Kg.call(e),dt=e=>mm(e)==="[object Object]",Oz=e=>e==null?"":en(e)||dt(e)&&e.toString===Kg?JSON.stringify(e,null,2):String(e);/*!
* message-compiler v9.3.0-beta.14
* (c) 2023 kazuya kawaguchi
* Released under the MIT License.
*/const Zg={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function Yg(e,t,n={}){const{domain:r,messages:s,args:o}=n,i=e,a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=r,a}/*!
* devtools-if v9.3.0-beta.14
* (c) 2023 kazuya kawaguchi
* Released under the MIT License.
*/const Jg={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
* core-base v9.3.0-beta.14
* (c) 2023 kazuya kawaguchi
* Released under the MIT License.
*/const fs=[];fs[0]={w:[0],i:[3,0],["["]:[4],o:[7]};fs[1]={w:[1],["."]:[2],["["]:[4],o:[7]};fs[2]={w:[2],i:[3,0],[0]:[3,0]};fs[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};fs[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};fs[5]={["'"]:[4,0],o:8,l:[5,0]};fs[6]={['"']:[4,0],o:8,l:[6,0]};const Pz=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Dz(e){return Pz.test(e)}function Fz(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 Iz(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 Rz(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Dz(t)?Fz(t):"*"+t}function Lz(e){const t=[];let n=-1,r=0,s=0,o,i,a,u,c,d,f;const m=[];m[0]=()=>{i===void 0?i=a:i+=a},m[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},m[2]=()=>{m[0](),s++},m[3]=()=>{if(s>0)s--,r=4,m[0]();else{if(s=0,i===void 0||(i=Rz(i),i===!1))return!1;m[1]()}};function p(){const h=e[n+1];if(r===5&&h==="'"||r===6&&h==='"')return n++,a="\\"+h,m[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&p())){if(u=Iz(o),f=fs[r],c=f[u]||f.l||8,c===8||(r=c[0],c[1]!==void 0&&(d=m[c[1]],d&&(a=o,d()===!1))))return;if(r===7)return t}}const cp=new Map;function Nz(e,t){return At(e)?e[t]:null}function Mz(e,t){if(!At(e))return null;let n=cp.get(t);if(n||(n=Lz(t),n&&cp.set(t,n)),!n)return null;const r=n.length;let s=e,o=0;for(;o<r;){const i=s[n[o]];if(i===void 0)return null;s=i,o++}return s}const Vz=e=>e,Bz=e=>"",Uz="text",jz=e=>e.length===0?"":e.join(""),Hz=Oz;function dp(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function qz(e){const t=nn(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(nn(e.named.count)||nn(e.named.n))?nn(e.named.count)?e.named.count:nn(e.named.n)?e.named.n:t:t}function Wz(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Gz(e={}){const t=e.locale,n=qz(e),r=At(e.pluralRules)&&Be(t)&&an(e.pluralRules[t])?e.pluralRules[t]:dp,s=At(e.pluralRules)&&Be(t)&&an(e.pluralRules[t])?dp:void 0,o=v=>v[r(n,v.length,s)],i=e.list||[],a=v=>i[v],u=e.named||{};nn(e.pluralIndex)&&Wz(n,u);const c=v=>u[v];function d(v){const b=an(e.messages)?e.messages(v):At(e.messages)?e.messages[v]:!1;return b||(e.parent?e.parent.message(v):Bz)}const f=v=>e.modifiers?e.modifiers[v]:Vz,m=dt(e.processor)&&an(e.processor.normalize)?e.processor.normalize:jz,p=dt(e.processor)&&an(e.processor.interpolate)?e.processor.interpolate:Hz,h=dt(e.processor)&&Be(e.processor.type)?e.processor.type:Uz,w={list:a,named:c,plural:o,linked:(v,...b)=>{const[k,z]=b;let S="text",T="";b.length===1?At(k)?(T=k.modifier||T,S=k.type||S):Be(k)&&(T=k||T):b.length===2&&(Be(k)&&(T=k||T),Be(z)&&(S=z||S));let M=d(v)(w);return S==="vnode"&&en(M)&&T&&(M=M[0]),T?f(T)(M,S):M},message:d,type:h,interpolate:p,normalize:m};return w}let Ri=null;function Kz(e){Ri=e}function Zz(e,t,n){Ri&&Ri.emit(Jg.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Yz=Jz(Jg.FunctionTranslate);function Jz(e){return t=>Ri&&Ri.emit(e,t)}const Xz={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7};function Qz(e,t,n){return[...new Set([n,...en(t)?t:At(t)?Object.keys(t):Be(t)?[t]:[n]])]}function Xg(e,t,n){const r=Be(n)?n:fm,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let o=s.__localeChainCache.get(r);if(!o){o=[];let i=[n];for(;en(i);)i=mp(o,i,t);const a=en(t)||!dt(t)?t:t.default?t.default:null;i=Be(a)?[a]:a,en(i)&&mp(o,i,!1),s.__localeChainCache.set(r,o)}return o}function mp(e,t,n){let r=!0;for(let s=0;s<t.length&&jt(r);s++){const o=t[s];Be(o)&&(r=ex(e,t[s],n))}return r}function ex(e,t,n){let r;const s=t.split("-");do{const o=s.join("-");r=tx(e,o,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function tx(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(en(n)||dt(n))&&n[s]&&(r=n[s])}return r}const nx="9.3.0-beta.14",du=-1,fm="en-US",fp="",pp=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function rx(){return{upper:(e,t)=>t==="text"&&Be(e)?e.toUpperCase():t==="vnode"&&At(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Be(e)?e.toLowerCase():t==="vnode"&&At(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Be(e)?pp(e):t==="vnode"&&At(e)&&"__v_isVNode"in e?pp(e.children):e}}let sx,Qg;function ox(e){Qg=e}let ey;function ix(e){ey=e}let ty=null;const hp=e=>{ty=e},ax=()=>ty;let ny=null;const _p=e=>{ny=e},lx=()=>ny;let gp=0;function ux(e={}){const t=Be(e.version)?e.version:nx,n=Be(e.locale)?e.locale:fm,r=en(e.fallbackLocale)||dt(e.fallbackLocale)||Be(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,s=dt(e.messages)?e.messages:{[n]:{}},o=dt(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},i=dt(e.numberFormats)?e.numberFormats:{[n]:{}},a=yn({},e.modifiers||{},rx()),u=e.pluralRules||{},c=an(e.missing)?e.missing:null,d=jt(e.missingWarn)||Tl(e.missingWarn)?e.missingWarn:!0,f=jt(e.fallbackWarn)||Tl(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,p=!!e.unresolving,h=an(e.postTranslation)?e.postTranslation:null,_=dt(e.processor)?e.processor:null,w=jt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter,b=an(e.messageCompiler)?e.messageCompiler:sx,k=an(e.messageResolver)?e.messageResolver:Qg||Nz,z=an(e.localeFallbacker)?e.localeFallbacker:ey||Qz,S=At(e.fallbackContext)?e.fallbackContext:void 0,T=an(e.onWarn)?e.onWarn:Az,M=e,L=At(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,F=At(M.__numberFormatters)?M.__numberFormatters:new Map,j=At(M.__meta)?M.__meta:{};gp++;const K={version:t,cid:gp,locale:n,fallbackLocale:r,messages:s,modifiers:a,pluralRules:u,missing:c,missingWarn:d,fallbackWarn:f,fallbackFormat:m,unresolving:p,postTranslation:h,processor:_,warnHtmlMessage:w,escapeParameter:v,messageCompiler:b,messageResolver:k,localeFallbacker:z,fallbackContext:S,onWarn:T,__meta:j};return K.datetimeFormats=o,K.numberFormats=i,K.__datetimeFormatters=L,K.__numberFormatters=F,__INTLIFY_PROD_DEVTOOLS__&&Zz(K,t,j),K}function pm(e,t,n,r,s){const{missing:o,onWarn:i}=e;if(o!==null){const a=o(e,n,t,s);return Be(a)?a:t}else return t}function Vo(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}let ry=Zg.__EXTEND_POINT__;const Xu=()=>++ry,so={INVALID_ARGUMENT:ry,INVALID_DATE_ARGUMENT:Xu(),INVALID_ISO_DATE_ARGUMENT:Xu(),__EXTEND_POINT__:Xu()};function oo(e){return Yg(e,null,void 0)}const yp=()=>"",pr=e=>an(e);function vp(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:o,fallbackLocale:i,messages:a}=e,[u,c]=Jc(...t),d=jt(c.missingWarn)?c.missingWarn:e.missingWarn,f=jt(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,m=jt(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,h=Be(c.default)||jt(c.default)?jt(c.default)?o?u:()=>u:c.default:n?o?u:()=>u:"",_=n||h!=="",w=Be(c.locale)?c.locale:e.locale;m&&cx(c);let[v,b,k]=p?[u,w,a[w]||{}]:sy(e,u,w,i,f,d),z=v,S=u;if(!p&&!(Be(z)||pr(z))&&_&&(z=h,S=z),!p&&(!(Be(z)||pr(z))||!Be(b)))return s?du:u;let T=!1;const M=()=>{T=!0},L=pr(z)?z:oy(e,u,b,z,S,M);if(T)return z;const F=fx(e,b,k,c),j=Gz(F),K=dx(e,L,j),Q=r?r(K,u):K;if(__INTLIFY_PROD_DEVTOOLS__){const U={timestamp:Date.now(),key:Be(u)?u:pr(z)?z.key:"",locale:b||(pr(z)?z.locale:""),format:Be(z)?z:pr(z)?z.source:"",message:Q};U.meta=yn({},e.__meta,ax()||{}),Yz(U)}return Q}function cx(e){en(e.list)?e.list=e.list.map(t=>Be(t)?up(t):t):At(e.named)&&Object.keys(e.named).forEach(t=>{Be(e.named[t])&&(e.named[t]=up(e.named[t]))})}function sy(e,t,n,r,s,o){const{messages:i,onWarn:a,messageResolver:u,localeFallbacker:c}=e,d=c(e,r,n);let f={},m,p=null;const h="translate";for(let _=0;_<d.length&&(m=d[_],f=i[m]||{},(p=u(f,t))===null&&(p=f[t]),!(Be(p)||an(p)));_++){const w=pm(e,t,m,o,h);w!==t&&(p=w)}return[p,m,f]}function oy(e,t,n,r,s,o){const{messageCompiler:i,warnHtmlMessage:a}=e;if(pr(r)){const c=r;return c.locale=c.locale||n,c.key=c.key||t,c}if(i==null){const c=()=>r;return c.locale=n,c.key=t,c}const u=i(r,mx(e,n,s,r,a,o));return u.locale=n,u.key=t,u.source=r,u}function dx(e,t,n){return t(n)}function Jc(...e){const[t,n,r]=e,s={};if(!Be(t)&&!nn(t)&&!pr(t))throw oo(so.INVALID_ARGUMENT);const o=nn(t)?String(t):(pr(t),t);return nn(n)?s.plural=n:Be(n)?s.default=n:dt(n)&&!cu(n)?s.named=n:en(n)&&(s.list=n),nn(r)?s.plural=r:Be(r)?s.default=r:dt(r)&&yn(s,r),[o,s]}function mx(e,t,n,r,s,o){return{warnHtmlMessage:s,onError:i=>{throw o&&o(i),i},onCacheKey:i=>Ez(t,n,i)}}function fx(e,t,n,r){const{modifiers:s,pluralRules:o,messageResolver:i,fallbackLocale:a,fallbackWarn:u,missingWarn:c,fallbackContext:d}=e,m={locale:t,modifiers:s,pluralRules:o,messages:p=>{let h=i(n,p);if(h==null&&d){const[,,_]=sy(d,p,t,a,u,c);h=i(_,p)}if(Be(h)){let _=!1;const v=oy(e,p,t,h,p,()=>{_=!0});return _?yp:v}else return pr(h)?h:yp}};return e.processor&&(m.processor=e.processor),r.list&&(m.list=r.list),r.named&&(m.named=r.named),nn(r.plural)&&(m.pluralIndex=r.plural),m}function bp(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[u,c,d,f]=Xc(...t),m=jt(d.missingWarn)?d.missingWarn:e.missingWarn;jt(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const p=!!d.part,h=Be(d.locale)?d.locale:e.locale,_=i(e,s,h);if(!Be(u)||u==="")return new Intl.DateTimeFormat(h,f).format(c);let w={},v,b=null;const k="datetime format";for(let T=0;T<_.length&&(v=_[T],w=n[v]||{},b=w[u],!dt(b));T++)pm(e,u,v,m,k);if(!dt(b)||!Be(v))return r?du:u;let z=`${v}__${u}`;cu(f)||(z=`${z}__${JSON.stringify(f)}`);let S=a.get(z);return S||(S=new Intl.DateTimeFormat(v,yn({},b,f)),a.set(z,S)),p?S.formatToParts(c):S.format(c)}const iy=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Xc(...e){const[t,n,r,s]=e,o={};let i={},a;if(Be(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw oo(so.INVALID_ISO_DATE_ARGUMENT);const c=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();a=new Date(c);try{a.toISOString()}catch{throw oo(so.INVALID_ISO_DATE_ARGUMENT)}}else if($z(t)){if(isNaN(t.getTime()))throw oo(so.INVALID_DATE_ARGUMENT);a=t}else if(nn(t))a=t;else throw oo(so.INVALID_ARGUMENT);return Be(n)?o.key=n:dt(n)&&Object.keys(n).forEach(u=>{iy.includes(u)?i[u]=n[u]:o[u]=n[u]}),Be(r)?o.locale=r:dt(r)&&(i=r),dt(s)&&(i=s),[o.key||"",a,o,i]}function wp(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;!r.__datetimeFormatters.has(o)||r.__datetimeFormatters.delete(o)}}function Cp(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:i}=e,{__numberFormatters:a}=e,[u,c,d,f]=Qc(...t),m=jt(d.missingWarn)?d.missingWarn:e.missingWarn;jt(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const p=!!d.part,h=Be(d.locale)?d.locale:e.locale,_=i(e,s,h);if(!Be(u)||u==="")return new Intl.NumberFormat(h,f).format(c);let w={},v,b=null;const k="number format";for(let T=0;T<_.length&&(v=_[T],w=n[v]||{},b=w[u],!dt(b));T++)pm(e,u,v,m,k);if(!dt(b)||!Be(v))return r?du:u;let z=`${v}__${u}`;cu(f)||(z=`${z}__${JSON.stringify(f)}`);let S=a.get(z);return S||(S=new Intl.NumberFormat(v,yn({},b,f)),a.set(z,S)),p?S.formatToParts(c):S.format(c)}const ay=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Qc(...e){const[t,n,r,s]=e,o={};let i={};if(!nn(t))throw oo(so.INVALID_ARGUMENT);const a=t;return Be(n)?o.key=n:dt(n)&&Object.keys(n).forEach(u=>{ay.includes(u)?i[u]=n[u]:o[u]=n[u]}),Be(r)?o.locale=r:dt(r)&&(i=r),dt(s)&&(i=s),[o.key||"",a,o,i]}function zp(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;!r.__numberFormatters.has(o)||r.__numberFormatters.delete(o)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(cm().__INTLIFY_PROD_DEVTOOLS__=!1);function px(){return ly().__VUE_DEVTOOLS_GLOBAL_HOOK__}function ly(){return typeof navigator!="undefined"&&typeof window!="undefined"?window:typeof global!="undefined"?global:{}}const hx=typeof Proxy=="function",_x="devtools-plugin:setup",gx="plugin:settings:set";let qs,ed;function yx(){var e;return qs!==void 0||(typeof window!="undefined"&&window.performance?(qs=!0,ed=window.performance):typeof global!="undefined"&&((e=global.perf_hooks)===null||e===void 0?void 0:e.performance)?(qs=!0,ed=global.perf_hooks.performance):qs=!1),qs}function vx(){return yx()?ed.now():Date.now()}class bx{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const i in t.settings){const a=t.settings[i];r[i]=a.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},r);try{const i=localStorage.getItem(s),a=JSON.parse(i);Object.assign(o,a)}catch{}this.fallbacks={getSettings(){return o},setSettings(i){try{localStorage.setItem(s,JSON.stringify(i))}catch{}o=i},now(){return vx()}},n&&n.on(gx,(i,a)=>{i===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(i,a)=>this.target?this.target.on[a]:(...u)=>{this.onQueue.push({method:a,args:u})}}),this.proxiedTarget=new Proxy({},{get:(i,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...u)=>(this.targetQueue.push({method:a,args:u,resolve:()=>{}}),this.fallbacks[a](...u)):(...u)=>new Promise(c=>{this.targetQueue.push({method:a,args:u,resolve:c})})})}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 wx(e,t){const n=e,r=ly(),s=px(),o=hx&&n.enableEarlyProxy;if(s&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))s.emit(_x,e,t);else{const i=o?new bx(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
* vue-i18n v9.3.0-beta.14
* (c) 2023 kazuya kawaguchi
* Released under the MIT License.
*/const Cx="9.3.0-beta.14";function zx(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(cm().__INTLIFY_PROD_DEVTOOLS__=!1)}Xz.__EXTEND_POINT__;let uy=Zg.__EXTEND_POINT__;const bn=()=>++uy,Ln={UNEXPECTED_RETURN_TYPE:uy,INVALID_ARGUMENT:bn(),MUST_BE_CALL_SETUP_TOP:bn(),NOT_INSLALLED:bn(),NOT_AVAILABLE_IN_LEGACY_MODE:bn(),REQUIRED_VALUE:bn(),INVALID_VALUE:bn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:bn(),NOT_INSLALLED_WITH_PROVIDE:bn(),UNEXPECTED_ERROR:bn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:bn(),BRIDGE_SUPPORT_VUE_2_ONLY:bn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:bn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:bn(),__EXTEND_POINT__:bn()};function Wn(e,...t){return Yg(e,null,void 0)}const td=ms("__translateVNode"),nd=ms("__datetimeParts"),rd=ms("__numberParts"),xx=ms("__setPluralRules");ms("__intlifyMeta");const kx=ms("__injectWithOption");function sd(e){if(!At(e))return e;for(const t in e)if(!!dm(e,t))if(!t.includes("."))At(e[t])&&sd(e[t]);else{const n=t.split("."),r=n.length-1;let s=e;for(let o=0;o<r;o++)n[o]in s||(s[n[o]]={}),s=s[n[o]];s[n[r]]=e[t],delete e[t],At(s[n[r]])&&sd(s[n[r]])}return e}function cy(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:o}=t,i=dt(n)?n:en(r)?{}:{[e]:{}};if(en(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:u,resource:c}=a;u?(i[u]=i[u]||{},hi(c,i[u])):hi(c,i)}else Be(a)&&hi(JSON.parse(a),i)}),s==null&&o)for(const a in i)dm(i,a)&&sd(i[a]);return i}const ba=e=>!At(e)||en(e);function hi(e,t){if(ba(e)||ba(t))throw Wn(Ln.INVALID_VALUE);for(const n in e)dm(e,n)&&(ba(e[n])||ba(t[n])?t[n]=e[n]:hi(e[n],t[n]))}function dy(e){return e.type}function Ex(e,t,n){let r=At(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=cy(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(At(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(At(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function xp(e){return C(is,null,e,0)}const kp="__INTLIFY_META__";let Ep=0;function Sp(e){return(t,n,r,s)=>e(n,r,Kn()||void 0,s)}const Sx=()=>{const e=Kn();let t=null;return e&&(t=dy(e)[kp])?{[kp]:t}:null};function my(e={},t){const{__root:n}=e,r=n===void 0;let s=jt(e.inheritLocale)?e.inheritLocale:!0;const o=Qt(n&&s?n.locale.value:Be(e.locale)?e.locale:fm),i=Qt(n&&s?n.fallbackLocale.value:Be(e.fallbackLocale)||en(e.fallbackLocale)||dt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o.value),a=Qt(cy(o.value,e)),u=Qt(dt(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),c=Qt(dt(e.numberFormats)?e.numberFormats:{[o.value]:{}});let d=n?n.missingWarn:jt(e.missingWarn)||Tl(e.missingWarn)?e.missingWarn:!0,f=n?n.fallbackWarn:jt(e.fallbackWarn)||Tl(e.fallbackWarn)?e.fallbackWarn:!0,m=n?n.fallbackRoot:jt(e.fallbackRoot)?e.fallbackRoot:!0,p=!!e.fallbackFormat,h=an(e.missing)?e.missing:null,_=an(e.missing)?Sp(e.missing):null,w=an(e.postTranslation)?e.postTranslation:null,v=n?n.warnHtmlMessage:jt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter;const k=n?n.modifiers:dt(e.modifiers)?e.modifiers:{};let z=e.pluralRules||n&&n.pluralRules,S;S=(()=>{r&&_p(null);const V={version:Cx,locale:o.value,fallbackLocale:i.value,messages:a.value,modifiers:k,pluralRules:z,missing:_===null?void 0:_,missingWarn:d,fallbackWarn:f,fallbackFormat:p,unresolving:!0,postTranslation:w===null?void 0:w,warnHtmlMessage:v,escapeParameter:b,messageResolver:e.messageResolver,__meta:{framework:"vue"}};V.datetimeFormats=u.value,V.numberFormats=c.value,V.__datetimeFormatters=dt(S)?S.__datetimeFormatters:void 0,V.__numberFormatters=dt(S)?S.__numberFormatters:void 0;const Z=ux(V);return r&&_p(Z),Z})(),Vo(S,o.value,i.value);function M(){return[o.value,i.value,a.value,u.value,c.value]}const L=$t({get:()=>o.value,set:V=>{o.value=V,S.locale=o.value}}),F=$t({get:()=>i.value,set:V=>{i.value=V,S.fallbackLocale=i.value,Vo(S,o.value,V)}}),j=$t(()=>a.value),K=$t(()=>u.value),Q=$t(()=>c.value);function U(){return an(w)?w:null}function G(V){w=V,S.postTranslation=V}function me(){return h}function se(V){V!==null&&(_=Sp(V)),h=V,S.missing=_}const ae=(V,Z,Se,Oe,Ye,nt)=>{M();let Qe;if(__INTLIFY_PROD_DEVTOOLS__)try{hp(Sx()),r||(S.fallbackContext=n?lx():void 0),Qe=V(S)}finally{hp(null),r||(S.fallbackContext=void 0)}else Qe=V(S);if(nn(Qe)&&Qe===du){const[x,y]=Z();return n&&m?Oe(n):Ye(x)}else{if(nt(Qe))return Qe;throw Wn(Ln.UNEXPECTED_RETURN_TYPE)}};function Ce(...V){return ae(Z=>Reflect.apply(vp,null,[Z,...V]),()=>Jc(...V),"translate",Z=>Reflect.apply(Z.t,Z,[...V]),Z=>Z,Z=>Be(Z))}function Ke(...V){const[Z,Se,Oe]=V;if(Oe&&!At(Oe))throw Wn(Ln.INVALID_ARGUMENT);return Ce(Z,Se,yn({resolvedMessage:!0},Oe||{}))}function Ze(...V){return ae(Z=>Reflect.apply(bp,null,[Z,...V]),()=>Xc(...V),"datetime format",Z=>Reflect.apply(Z.d,Z,[...V]),()=>fp,Z=>Be(Z))}function ve(...V){return ae(Z=>Reflect.apply(Cp,null,[Z,...V]),()=>Qc(...V),"number format",Z=>Reflect.apply(Z.n,Z,[...V]),()=>fp,Z=>Be(Z))}function X(V){return V.map(Z=>Be(Z)||nn(Z)||jt(Z)?xp(String(Z)):Z)}const be={normalize:X,interpolate:V=>V,type:"vnode"};function Fe(...V){return ae(Z=>{let Se;const Oe=Z;try{Oe.processor=be,Se=Reflect.apply(vp,null,[Oe,...V])}finally{Oe.processor=null}return Se},()=>Jc(...V),"translate",Z=>Z[td](...V),Z=>[xp(Z)],Z=>en(Z))}function Le(...V){return ae(Z=>Reflect.apply(Cp,null,[Z,...V]),()=>Qc(...V),"number format",Z=>Z[rd](...V),()=>[],Z=>Be(Z)||en(Z))}function W(...V){return ae(Z=>Reflect.apply(bp,null,[Z,...V]),()=>Xc(...V),"datetime format",Z=>Z[nd](...V),()=>[],Z=>Be(Z)||en(Z))}function ye(V){z=V,S.pluralRules=z}function le(V,Z){const Se=Be(Z)?Z:o.value,Oe=O(Se);return S.messageResolver(Oe,V)!==null}function xe(V){let Z=null;const Se=Xg(S,i.value,o.value);for(let Oe=0;Oe<Se.length;Oe++){const Ye=a.value[Se[Oe]]||{},nt=S.messageResolver(Ye,V);if(nt!=null){Z=nt;break}}return Z}function Ue(V){const Z=xe(V);return Z!=null?Z:n?n.tm(V)||{}:{}}function O(V){return a.value[V]||{}}function D(V,Z){a.value[V]=Z,S.messages=a.value}function N(V,Z){a.value[V]=a.value[V]||{},hi(Z,a.value[V]),S.messages=a.value}function ee(V){return u.value[V]||{}}function re(V,Z){u.value[V]=Z,S.datetimeFormats=u.value,wp(S,V,Z)}function oe(V,Z){u.value[V]=yn(u.value[V]||{},Z),S.datetimeFormats=u.value,wp(S,V,Z)}function ze(V){return c.value[V]||{}}function he(V,Z){c.value[V]=Z,S.numberFormats=c.value,zp(S,V,Z)}function fe(V,Z){c.value[V]=yn(c.value[V]||{},Z),S.numberFormats=c.value,zp(S,V,Z)}Ep++,n&&Yc&&(kt(n.locale,V=>{s&&(o.value=V,S.locale=V,Vo(S,o.value,i.value))}),kt(n.fallbackLocale,V=>{s&&(i.value=V,S.fallbackLocale=V,Vo(S,o.value,i.value))}));const ne={id:Ep,locale:L,fallbackLocale:F,get inheritLocale(){return s},set inheritLocale(V){s=V,V&&n&&(o.value=n.locale.value,i.value=n.fallbackLocale.value,Vo(S,o.value,i.value))},get availableLocales(){return Object.keys(a.value).sort()},messages:j,get modifiers(){return k},get pluralRules(){return z||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(V){d=V,S.missingWarn=d},get fallbackWarn(){return f},set fallbackWarn(V){f=V,S.fallbackWarn=f},get fallbackRoot(){return m},set fallbackRoot(V){m=V},get fallbackFormat(){return p},set fallbackFormat(V){p=V,S.fallbackFormat=p},get warnHtmlMessage(){return v},set warnHtmlMessage(V){v=V,S.warnHtmlMessage=V},get escapeParameter(){return b},set escapeParameter(V){b=V,S.escapeParameter=V},t:Ce,getLocaleMessage:O,setLocaleMessage:D,mergeLocaleMessage:N,getPostTranslationHandler:U,setPostTranslationHandler:G,getMissingHandler:me,setMissingHandler:se,[xx]:ye};return ne.datetimeFormats=K,ne.numberFormats=Q,ne.rt=Ke,ne.te=le,ne.tm=Ue,ne.d=Ze,ne.n=ve,ne.getDateTimeFormat=ee,ne.setDateTimeFormat=re,ne.mergeDateTimeFormat=oe,ne.getNumberFormat=ze,ne.setNumberFormat=he,ne.mergeNumberFormat=fe,ne[kx]=e.__injectWithOption,ne[td]=Fe,ne[nd]=W,ne[rd]=Le,ne}const hm={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function $x({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===He?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},{})}function fy(e){return He}const $p={name:"i18n-t",props:yn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>nn(e)||!isNaN(e)}},hm),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||_m({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=Be(e.plural)?+e.plural:e.plural);const a=$x(t,o),u=s[td](e.keypath,a,i),c=yn({},r),d=Be(e.tag)||At(e.tag)?e.tag:fy();return _r(d,c,u)}}};function Ax(e){return en(e)&&!Be(e[0])}function py(e,t,n,r){const{slots:s,attrs:o}=t;return()=>{const i={part:!0};let a={};e.locale&&(i.locale=e.locale),Be(e.format)?i.key=e.format:At(e.format)&&(Be(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((m,p)=>n.includes(p)?yn({},m,{[p]:e.format[p]}):m,{}));const u=r(e.value,i,a);let c=[i.key];en(u)?c=u.map((m,p)=>{const h=s[m.type],_=h?h({[m.type]:m.value,index:p,parts:u}):[m.value];return Ax(_)&&(_[0].key=`${m.type}-${p}`),_}):Be(u)&&(c=[u]);const d=yn({},o),f=Be(e.tag)||At(e.tag)?e.tag:fy();return _r(f,d,c)}}const Ap={name:"i18n-n",props:yn({value:{type:Number,required:!0},format:{type:[String,Object]}},hm),setup(e,t){const n=e.i18n||_m({useScope:"parent",__useComponent:!0});return py(e,t,ay,(...r)=>n[rd](...r))}},Tp={name:"i18n-d",props:yn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},hm),setup(e,t){const n=e.i18n||_m({useScope:"parent",__useComponent:!0});return py(e,t,iy,(...r)=>n[nd](...r))}};function Tx(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Ox(e){const t=i=>{const{instance:a,modifiers:u,value:c}=i;if(!a||!a.$)throw Wn(Ln.UNEXPECTED_ERROR);const d=Tx(e,a.$),f=Op(c);return[Reflect.apply(d.t,d,[...Pp(f)]),d]};return{created:(i,a)=>{const[u,c]=t(a);Yc&&e.global===c&&(i.__i18nWatcher=kt(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=c,i.textContent=u},unmounted:i=>{Yc&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const u=i.__composer,c=Op(a);i.textContent=Reflect.apply(u.t,u,[...Pp(c)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function Op(e){if(Be(e))return{path:e};if(dt(e)){if(!("path"in e))throw Wn(Ln.REQUIRED_VALUE,"path");return e}else throw Wn(Ln.INVALID_VALUE)}function Pp(e){const{path:t,locale:n,args:r,choice:s,plural:o}=e,i={},a=r||{};return Be(n)&&(i.locale=n),nn(s)&&(i.plural=s),nn(o)&&(i.plural=o),[t,a,i]}function Px(e,t,...n){const r=dt(n[0])?n[0]:{},s=!!r.useI18nComponentName;(jt(r.globalInstall)?r.globalInstall:!0)&&(e.component(s?"i18n":$p.name,$p),e.component(Ap.name,Ap),e.component(Tp.name,Tp)),e.directive("t",Ox(t))}const Dx=ms("global-vue-i18n");function Fx(e={},t){const n=jt(e.globalInjection)?e.globalInjection:!0,r=!0,s=new Map,[o,i]=Ix(e),a=ms("");function u(f){return s.get(f)||null}function c(f,m){s.set(f,m)}function d(f){s.delete(f)}{const f={get mode(){return"composition"},get allowComposition(){return r},async install(m,...p){if(m.__VUE_I18N_SYMBOL__=a,m.provide(m.__VUE_I18N_SYMBOL__,f),dt(p[0])){const _=p[0];f.__composerExtend=_.__composerExtend,f.__vueI18nExtend=_.__vueI18nExtend}n&&jx(m,f.global),Px(m,f,...p);const h=m.unmount;m.unmount=()=>{f.dispose(),h()}},get global(){return i},dispose(){o.stop()},__instances:s,__getInstance:u,__setInstance:c,__deleteInstance:d};return f}}function _m(e={}){const t=Kn();if(t==null)throw Wn(Ln.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Wn(Ln.NOT_INSLALLED);const n=Rx(t),r=Nx(n),s=dy(t),o=Lx(e,s);if(o==="global")return Ex(r,e,s),r;if(o==="parent"){let u=Mx(n,t,e.__useComponent);return u==null&&(u=r),u}const i=n;let a=i.__getInstance(t);if(a==null){const u=yn({},e);"__i18n"in s&&(u.__i18n=s.__i18n),r&&(u.__root=r),a=my(u),i.__composerExtend&&i.__composerExtend(a),Vx(i,t),i.__setInstance(t,a)}return a}function Ix(e,t,n){const r=Vd();{const s=r.run(()=>my(e));if(s==null)throw Wn(Ln.UNEXPECTED_ERROR);return[r,s]}}function Rx(e){{const t=ir(e.isCE?Dx:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Wn(e.isCE?Ln.NOT_INSLALLED_WITH_PROVIDE:Ln.UNEXPECTED_ERROR);return t}}function Lx(e,t){return cu(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Nx(e){return e.mode==="composition"?e.global:e.global.__composer}function Mx(e,t,n=!1){let r=null;const s=t.root;let o=t.parent;for(;o!=null;){const i=e;if(e.mode==="composition"&&(r=i.__getInstance(o)),r!=null||s===o)break;o=o.parent}return r}function Vx(e,t,n){Ns(()=>{},t),To(()=>{e.__deleteInstance(t)},t)}const Bx=["locale","fallbackLocale","availableLocales"],Ux=["t","rt","d","n","tm","te"];function jx(e,t){const n=Object.create(null);Bx.forEach(r=>{const s=Object.getOwnPropertyDescriptor(t,r);if(!s)throw Wn(Ln.UNEXPECTED_ERROR);const o=Yt(s.value)?{get(){return s.value.value},set(i){s.value.value=i}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,r,o)}),e.config.globalProperties.$i18n=n,Ux.forEach(r=>{const s=Object.getOwnPropertyDescriptor(t,r);if(!s||!s.value)throw Wn(Ln.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,s)})}ox(Mz);ix(Xg);zx();if(__INTLIFY_PROD_DEVTOOLS__){const e=cm();e.__INTLIFY__=!0,Kz(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}var Hx={de:{data:{kind:{file:e=>{const{normalize:t}=e;return t(["Datei"])},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(["Abbrechen"])},add:{rss:{add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},cancel:e=>{const{normalize:t}=e;return t(["Abbrechen"])},help:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen eines Podcasts f\xFChrt zur Anlage einer RSS-Playlist, so kann Owntone das Podcast-Abo verwalten."])},placeholder:e=>{const{normalize:t}=e;return t(["https://url-to-rss"])},processing:e=>{const{normalize:t}=e;return t(["Verarbeite\u2026"])},title:e=>{const{normalize:t}=e;return t(["F\xFCge Podcast RSS-Feed-Url hinzu"])}},stream:{add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},cancel:e=>{const{normalize:t}=e;return t(["Abbrechen"])},loading:e=>{const{normalize:t}=e;return t(["Lade\u2026"])},placeholder:e=>{const{normalize:t}=e;return t(["https://url-to-stream"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},title:e=>{const{normalize:t}=e;return t(["Stream-URL hinzuf\xFCgen"])}}},album:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},"added-on":e=>{const{normalize:t}=e;return t(["Hinzugef\xFCgt am"])},artist:e=>{const{normalize:t}=e;return t(["Album K\xFCnstler"])},duration:e=>{const{normalize:t}=e;return t(["Dauer"])},"mark-as-played":e=>{const{normalize:t}=e;return t(["Markiere als gespielt"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},"release-date":e=>{const{normalize:t}=e;return t(["Ver\xF6ffentlichungsdatum"])},"remove-podcast":e=>{const{normalize:t}=e;return t(["Entferne podcast"])},tracks:e=>{const{normalize:t}=e;return t(["Track Nummer"])},type:e=>{const{normalize:t}=e;return t(["Art"])},year:e=>{const{normalize:t}=e;return t(["Jahr"])}},artist:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},"added-on":e=>{const{normalize:t}=e;return t(["Hinzugef\xFCgt am"])},albums:e=>{const{normalize:t}=e;return t(["Alben"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])},type:e=>{const{normalize:t}=e;return t(["Art"])}},composer:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},albums:e=>{const{normalize:t}=e;return t(["Alben"])},duration:e=>{const{normalize:t}=e;return t(["Dauer"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},directory:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])}},genre:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},albums:e=>{const{normalize:t}=e;return t(["Alben"])},duration:e=>{const{normalize:t}=e;return t(["Dauer"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},playlist:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},"track-count":e=>{const{normalize:t}=e;return t(["Tracknummer"])},type:e=>{const{normalize:t}=e;return t(["Art"])},save:{cancel:e=>{const{normalize:t}=e;return t(["Abbrechen"])},save:e=>{const{normalize:t}=e;return t(["Speichern"])},saving:e=>{const{normalize:t}=e;return t(["Speichere\u2026"])},title:e=>{const{normalize:t}=e;return t(["Warteschlange als Playlist speichern"])}}},"queue-item":{"album-artist":e=>{const{normalize:t}=e;return t(["Album-K\xFCnstler"])},album:e=>{const{normalize:t}=e;return t(["Album"])},bitrate:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["|"," ",n(r("rate"))," kbit/s"])},channels:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["|"," ",n(r("channels"))])},composer:e=>{const{normalize:t}=e;return t(["Komponist"])},duration:e=>{const{normalize:t}=e;return t(["Dauer"])},genre:e=>{const{normalize:t}=e;return t(["Genre"])},path:e=>{const{normalize:t}=e;return t(["Pfad"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},position:e=>{const{normalize:t}=e;return t(["Disc / Track"])},quality:e=>{const{normalize:t}=e;return t(["Qualit\xE4t"])},remove:e=>{const{normalize:t}=e;return t(["Entfernen"])},samplerate:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["|"," ",n(r("rate"))," Hz"])},"spotify-album":e=>{const{normalize:t}=e;return t(["Album"])},"spotify-artist":e=>{const{normalize:t}=e;return t(["K\xFCnstler"])},type:e=>{const{normalize:t}=e;return t(["Art"])},year:e=>{const{normalize:t}=e;return t(["Jahr"])}},"remote-pairing":{cancel:e=>{const{normalize:t}=e;return t(["Abbrechen"])},pair:e=>{const{normalize:t}=e;return t(["Remote paaren"])},title:e=>{const{normalize:t}=e;return t(["Remote-Paarungs-Anfrage"])}},spotify:{album:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},"album-artist":e=>{const{normalize:t}=e;return t(["Album-K\xFCnstler"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},"release-date":e=>{const{normalize:t}=e;return t(["Ver\xF6ffentlichungsdatum"])},type:e=>{const{normalize:t}=e;return t(["Art"])}},artist:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},popularity:e=>{const{normalize:t}=e;return t(["Popularit\xE4t / Followers"])}},playlist:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},owner:e=>{const{normalize:t}=e;return t(["Besitzer"])},path:e=>{const{normalize:t}=e;return t(["Pfad"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},track:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},"album-artist":e=>{const{normalize:t}=e;return t(["Album-K\xFCnstler"])},album:e=>{const{normalize:t}=e;return t(["Album"])},duration:e=>{const{normalize:t}=e;return t(["Dauer"])},path:e=>{const{normalize:t}=e;return t(["Pfad"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},position:e=>{const{normalize:t}=e;return t(["Disc / Track"])},"release-date":e=>{const{normalize:t}=e;return t(["Ver\xF6ffentlichungsdatum"])}}},track:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},"added-on":e=>{const{normalize:t}=e;return t(["Hinzugef\xFCgt am"])},"album-artist":e=>{const{normalize:t}=e;return t(["Album-K\xFCnstler"])},album:e=>{const{normalize:t}=e;return t(["Album"])},bitrate:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ","|"," ",n(r("rate"))," Kb/s"])},channels:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ","|"," ",n(r("channels"))])},comment:e=>{const{normalize:t}=e;return t(["Kommentar"])},composer:e=>{const{normalize:t}=e;return t(["Komponist"])},duration:e=>{const{normalize:t}=e;return t(["Dauer"])},genre:e=>{const{normalize:t}=e;return t(["Genre"])},"mark-as-new":e=>{const{normalize:t}=e;return t(["Markiere als neu"])},"mark-as-played":e=>{const{normalize:t}=e;return t(["Markiere als gespielt"])},path:e=>{const{normalize:t}=e;return t(["Pfad"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},position:e=>{const{normalize:t}=e;return t(["Disc / Track"])},quality:e=>{const{normalize:t}=e;return t(["Qualit\xE4t"])},"rating-value":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("rating"))," / 10"])},rating:e=>{const{normalize:t}=e;return t(["Bewertung"])},"release-date":e=>{const{normalize:t}=e;return t(["Ver\xF6ffentlichungsdatum"])},samplerate:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ","|"," ",n(r("rate"))," Hz"])},"spotify-album":e=>{const{normalize:t}=e;return t(["Album"])},"spotify-artist":e=>{const{normalize:t}=e;return t(["K\xFCnstler"])},type:e=>{const{normalize:t}=e;return t(["Art"])},year:e=>{const{normalize:t}=e;return t(["Jahr"])}},update:{all:e=>{const{normalize:t}=e;return t(["Alles neu einlesen"])},cancel:e=>{const{normalize:t}=e;return t(["Abbrechen"])},feeds:e=>{const{normalize:t}=e;return t(["Nur RSS-Feeds neu einlesen"])},info:e=>{const{normalize:t}=e;return t(["Suche nach neuen, gel\xF6schten und ver\xE4nderten Dateien"])},local:e=>{const{normalize:t}=e;return t(["Nur lokale Bibliothek neu einlesen"])},progress:e=>{const{normalize:t}=e;return t(["Bibliothek wird neu eingelesen\u2026"])},"rescan-metadata":e=>{const{normalize:t}=e;return t(["Metadata von unver\xE4nderten Dateien neu einlesen"])},rescan:e=>{const{normalize:t}=e;return t(["Neu einlesen"])},spotify:e=>{const{normalize:t}=e;return t(["Nur Spotify neu einlesen"])},title:e=>{const{normalize:t}=e;return t(["Bibliothek neu einlesen"])}}},language:{de:e=>{const{normalize:t}=e;return t(["Deutsch"])},en:e=>{const{normalize:t}=e;return t(["Englisch (English)"])},fr:e=>{const{normalize:t}=e;return t(["Franz\xF6sisch (Fran\xE7ais)"])}},list:{albums:{"info-1":e=>{const{normalize:t}=e;return t(["Diesen Podcast dauerhaft aus der Bibliothek l\xF6schen?"])},"info-2":e=>{const{normalize:t}=e;return t(["Dies wir auch RSS-Playlisten l\xF6schen "])},remove:e=>{const{normalize:t}=e;return t(["Entfernen"])},"remove-podcast":e=>{const{normalize:t}=e;return t(["Entferne podcast"])}},spotify:{"not-playable-track":e=>{const{normalize:t}=e;return t(["Track kann nicht gespielt werden"])},"restriction-reason":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([", Beschr\xE4nkungsgrund: ",n(r("reason"))])}}},media:{kind:{album:e=>{const{normalize:t}=e;return t(["Album"])},audiobook:e=>{const{normalize:t}=e;return t(["H\xF6rbuch"])},music:e=>{const{normalize:t}=e;return t(["Musik"])},podcast:e=>{const{normalize:t}=e;return t(["Podcast"])}}},navigation:{about:e=>{const{normalize:t}=e;return t(["\xDCber"])},albums:e=>{const{normalize:t}=e;return t(["Alben"])},artists:e=>{const{normalize:t}=e;return t(["K\xFCnstler"])},audiobooks:e=>{const{normalize:t}=e;return t(["H\xF6rb\xFCcher"])},"now-playing":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" - ",n(r("album"))])},"stream-error":e=>{const{normalize:t}=e;return t(["HTTP-stream-Fehler: Stream kann nicht geladen werden oder wurde wg. Netzwerkfehler gestopt"])},stream:e=>{const{normalize:t}=e;return t(["HTTP-stream"])},volume:e=>{const{normalize:t}=e;return t(["Lautst\xE4rke"])},files:e=>{const{normalize:t}=e;return t(["Dateien"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},music:e=>{const{normalize:t}=e;return t(["Musik"])},playlists:e=>{const{normalize:t}=e;return t(["Playlisten"])},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(["Suche"])},settings:e=>{const{normalize:t}=e;return t(["Einstellungen"])},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(["Bibliothek neu einlesen"])}},page:{about:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["K\xFCnstler"])},"built-with":e=>{const{normalize:t}=e;return t(['Oberfl\xE4che erstellt mit <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> und <a href="https://github.com/owntone/owntone-server/network/dependencies">anderem</a>.'])},"compiled-with":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Compiliert mit Unterst\xFCtzung von ",n(r("options")),"."])},library:e=>{const{normalize:t}=e;return t(["Bibliothek"])},"total-playtime":e=>{const{normalize:t}=e;return t(["Gesamte Spielzeit"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])},update:e=>{const{normalize:t}=e;return t(["Neu einlesen"])},"updated-on":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["vor ",n(r("time"))])},updated:e=>{const{normalize:t}=e;return t(["Neu eingelesen"])},uptime:e=>{const{normalize:t}=e;return t(["Laufzeit"])},version:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Version ",n(r("version"))])}},album:{shuffle:e=>{const{normalize:t}=e;return t(["Zufallswiedergabe"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Tracks"])}},albums:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Slbums"])},filter:e=>{const{normalize:t}=e;return t(["Filter"])},"hide-singles-help":e=>{const{normalize:t}=e;return t(["Nach Aktivierung werden keine Singles und Alben angezeigt, die nur in Playlisten enthalten sind."])},"hide-singles":e=>{const{normalize:t}=e;return t(["Nach Aktivierung werden keine Singles angezeigt"])},"hide-spotify-help":e=>{const{normalize:t}=e;return t(["Nach Aktivierung werden keine Alben angezeigt, die nur in der Spotify-Bibliothek enthalten sind."])},"hide-spotify":e=>{const{normalize:t}=e;return t(["Verbirgt Spotify-Alben"])},title:e=>{const{normalize:t}=e;return t(["Alben"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sortieren nach"])},name:e=>{const{normalize:t}=e;return t(["Name"])},"recently-added":e=>{const{normalize:t}=e;return t(["K\xFCrzlich hinzugef\xFCgt"])},"recently-released":e=>{const{normalize:t}=e;return t(["K\xFCrzlich erschienen"])}}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Alben"])},shuffle:e=>{const{normalize:t}=e;return t(["Zufallswiedergabe"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Tracks"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sortieren nach"])},name:e=>{const{normalize:t}=e;return t(["Name"])},rating:e=>{const{normalize:t}=e;return t(["Bewertung"])},"release-date":e=>{const{normalize:t}=e;return t(["Erscheinungsdatum"])}}},artists:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," K\xFCnstler"])},filter:e=>{const{normalize:t}=e;return t(["Filter"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sortieren nach"])},name:e=>{const{normalize:t}=e;return t(["Namen"])},"recently-added":e=>{const{normalize:t}=e;return t(["K\xFCrzlich hinzugef\xFCgt"])}},"hide-singles-help":e=>{const{normalize:t}=e;return t(["Nach Aktivierung werden keine Singles und Alben angezeigt, die nur in Playlisten enthalten sind."])},"hide-singles":e=>{const{normalize:t}=e;return t(["Nach Aktivierung werden keine Singles angezeigt"])},"hide-spotify-help":e=>{const{normalize:t}=e;return t(["Nach Aktivierung werden keine Alben angezeigt, die nur in der Spotify-Bibliothek enthalten sind."])},"hide-spotify":e=>{const{normalize:t}=e;return t(["Verbirgt K\xFCnstler auf Spotify"])},title:e=>{const{normalize:t}=e;return t(["K\xFCnstler"])}},audiobooks:{album:{play:e=>{const{normalize:t}=e;return t(["Spielen"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Tracks"])}},albums:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," H\xF6rb\xFCcher"])},title:e=>{const{normalize:t}=e;return t(["H\xF6rb\xFCcher"])}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Alben"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])}},artists:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Autoren"])},title:e=>{const{normalize:t}=e;return t(["Autoren"])}},tabs:{authors:e=>{const{normalize:t}=e;return t(["Autoren"])},audiobooks:e=>{const{normalize:t}=e;return t(["H\xF6rb\xFCcher"])}}},browse:{albums:e=>{const{normalize:t}=e;return t(["Alben"])},"show-more":e=>{const{normalize:t}=e;return t(["Zeige mehr"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])},"recently-added":{albums:e=>{const{normalize:t}=e;return t(["Alben"])},title:e=>{const{normalize:t}=e;return t(["K\xFCrzlich hinzugef\xFCgt"])}},"recently-played":{title:e=>{const{normalize:t}=e;return t(["K\xFCrzlich gespielt"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},tabs:{albums:e=>{const{normalize:t}=e;return t(["Alben"])},artists:e=>{const{normalize:t}=e;return t(["K\xFCnstler"])},browse:e=>{const{normalize:t}=e;return t(["Ausw\xE4hlen"])},composers:e=>{const{normalize:t}=e;return t(["Komponisten"])},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:r}=e;return t([n(r("count"))," Alben"])},shuffle:e=>{const{normalize:t}=e;return t(["Zufallswiedergabe"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Tracks"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sortieren nach"])},name:e=>{const{normalize:t}=e;return t(["Name"])},rating:e=>{const{normalize:t}=e;return t(["Bewertung"])}}},composers:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Komponisten"])},title:e=>{const{normalize:t}=e;return t(["Komponisten"])}},files:{play:e=>{const{normalize:t}=e;return t(["Spielen"])},title:e=>{const{normalize:t}=e;return t(["Dateien"])}},genre:{"album-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Alben"])},shuffle:e=>{const{normalize:t}=e;return t(["Zufallswiedergabe"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Tracks"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sortieren nach"])},name:e=>{const{normalize:t}=e;return t(["Name"])},rating:e=>{const{normalize:t}=e;return t(["Bewertung"])}}},genres:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Genres"])},title:e=>{const{normalize:t}=e;return t(["Genres"])}},"now-playing":{info:e=>{const{normalize:t}=e;return t(["Tracks durch Ausw\xE4hlen aus der Bibliothek anf\xFCgen"])},title:e=>{const{normalize:t}=e;return t(["Deine Playliste ist leer."])}},playlist:{length:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("length"))," Tracks"])},shuffle:e=>{const{normalize:t}=e;return t(["Zufallswiedergabe"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Tracks"])}},playlists:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Playlisten"])}},podcast:{play:e=>{const{normalize:t}=e;return t(["Spielen"])},remove:e=>{const{normalize:t}=e;return t(["Entfernen"])},"remove-info-1":e=>{const{normalize:t}=e;return t(["Diesen Podcast wirklich dauerhaft aus der Bibliothek l\xF6schen?"])},"remove-info-2":e=>{const{normalize:t}=e;return t(["Damit wird auch die RSS-Playliste gel\xF6scht. "])},"remove-podcast":e=>{const{normalize:t}=e;return t(["Entferne podcast"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Tracks"])}},podcasts:{add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Podcasts"])},"mark-all-played":e=>{const{normalize:t}=e;return t(["Alle abgespielten markieren"])},"new-episodes":e=>{const{normalize:t}=e;return t(["Neue Episoden"])},title:e=>{const{normalize:t}=e;return t(["Podcasts"])},update:e=>{const{normalize:t}=e;return t(["Neu einlesen"])}},queue:{"add-stream":e=>{const{normalize:t}=e;return t(["Stream hinzuf\xFCgen"])},clear:e=>{const{normalize:t}=e;return t(["Alle entfernen"])},count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Tracks"])},edit:e=>{const{normalize:t}=e;return t(["Bearbeiten"])},"hide-previous":e=>{const{normalize:t}=e;return t(["Vorherige verbergen"])},title:e=>{const{normalize:t}=e;return t(["Warteschlange"])},save:e=>{const{normalize:t}=e;return t(["Speichern"])}},radio:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Stationen"])},title:e=>{const{normalize:t}=e;return t(["Radio"])}},search:{albums:e=>{const{normalize:t}=e;return t(["Alben"])},artists:e=>{const{normalize:t}=e;return t(["K\xFCnstler"])},audiobooks:e=>{const{normalize:t}=e;return t(["H\xF6rb\xFCcher"])},composers:e=>{const{normalize:t}=e;return t(["Komponisten"])},help:e=>{const{normalize:t}=e;return t(['Tip: Du kannst mit einer Smart-Playlist-Abfrage-Sprache nach <a href="https://owntone.github.io/owntone-server/smart-playlists/" target="_blank">Ausdr\xFCcken</a> suchen wenn Du dem Ausdruck ein <code>query:</code> voranstellst.'])},"no-albums":e=>{const{normalize:t}=e;return t(["Keine Alben gefunden"])},"no-artists":e=>{const{normalize:t}=e;return t(["Keine K\xFCnstler gefunden"])},"no-audiobooks":e=>{const{normalize:t}=e;return t(["Keine H\xF6rb\xFCcher gefunden"])},"no-composers":e=>{const{normalize:t}=e;return t(["Keine Komponisten gefunden"])},"no-playlists":e=>{const{normalize:t}=e;return t(["Keine Playlisten gefunden"])},"no-podcasts":e=>{const{normalize:t}=e;return t(["Keine Podcasts gefunden"])},"no-tracks":e=>{const{normalize:t}=e;return t(["Keine Tracks gefunden"])},playlists:e=>{const{normalize:t}=e;return t(["Playlisten"])},podcasts:e=>{const{normalize:t}=e;return t(["Podcasts"])},"show-albums":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Zeige alle ",n(r("count"))," Alben"])},"show-artists":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Zeige alle ",n(r("count"))," K\xFCnstler"])},"show-audiobooks":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Zeige alle ",n(r("count"))," H\xF6rb\xFCcher"])},"show-composers":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Zeige alle ",n(r("count"))," Komponisten"])},"show-playlists":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Zeige alle ",n(r("count"))," Playlisten"])},"show-podcasts":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Zeige alle ",n(r("count"))," Podcasts"])},"show-tracks":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Zeige alle ",n(r("count"))," Tracks"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])},tabs:{library:e=>{const{normalize:t}=e;return t(["Bibliothek"])},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 verarbeitet PNG- und JPEG-Artwork, welches in einer eigenen Datei in der Bibliothek, in die Dateien eingebettet oder online von Radiostationen bereitgestellt werden kann."])},"explanation-2":e=>{const{normalize:t}=e;return t(["Zus\xE4tzlich kann auf folgende Artwork-Anbieter zugegriffen werden:"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])}},devices:{"no-active-pairing":e=>{const{normalize:t}=e;return t(["Keine aktive Pairing-Anfrage"])},"pairing-request":e=>{const{normalize:t}=e;return t(["Remote-Pairing-Anfrage von "])},pairing:e=>{const{normalize:t}=e;return t(["Pairing Remote"])},send:e=>{const{normalize:t}=e;return t(["Senden"])},"speaker-pairing-info":e=>{const{normalize:t}=e;return t(["Wenn der Laufsprecher PIN-basiertes Pairing verlangt, aktiviere ihn hier und gib dann den hier PIN an, der am Lautsprecher angezeigt wird."])},"speaker-pairing":e=>{const{normalize:t}=e;return t(["Lautsprecher-Pairing und Ger\xE4teverifikation"])},"verification-code":e=>{const{normalize:t}=e;return t(["Verifikationscode eingeben"])},verify:e=>{const{normalize:t}=e;return t(["Verifizieren"])}},general:{"album-lists":e=>{const{normalize:t}=e;return t(["Album-Listen"])},audiobooks:e=>{const{normalize:t}=e;return t(["H\xF6rb\xFCcher"])},files:e=>{const{normalize:t}=e;return t(["Audiodateien"])},language:e=>{const{normalize:t}=e;return t(["Sprache"])},music:e=>{const{normalize:t}=e;return t(["Musik"])},"navigation-item-selection-info":e=>{const{normalize:t}=e;return t(["Wenn mehr Dateien ausgew\xE4hlt werden, als der Bildschirm anzeigen kann, verschwindet das Burger-Men\xFC."])},"navigation-item-selection":e=>{const{normalize:t}=e;return t(["W\xE4hle hier die Eintr\xE4ge des oberen Navigationsmen\xFCs "])},"navigation-items":e=>{const{normalize:t}=e;return t(["Navigationsmen\xFCs"])},"now-playing-page":e=>{const{normalize:t}=e;return t(["Aktuell l\xE4uft-Seite"])},playlists:e=>{const{normalize:t}=e;return t(["Playlisten"])},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(['Beschr\xE4nkte die Zahl der Alben auf der "k\xFCrzlich hinzugef\xFCgt"-Seite'])},"recently-added-page":e=>{const{normalize:t}=e;return t(["K\xFCrzlich hinzugef\xFCgt-Seite"])},search:e=>{const{normalize:t}=e;return t(["Suche"])},"show-composer-genres-info-1":e=>{const{normalize:t}=e;return t(['Komma-separierte Liste der Genres, wo der Komponist auf der "Aktuell l\xE4uft"-Seite angezeigt werden soll'])},"show-composer-genres-info-2":e=>{const{normalize:t}=e;return t(["Leer lassen, um ihn immer anzuzeigen."])},"show-composer-genres-info-3":e=>{const{normalize:t}=e;return t(['Der Genre-Tag des aktuellen Tracks wird abgeglichen als Teil-String des Genre-Tags. Z.B. "classical, soundtrack" wird den Komponisten beim Genre-Tag "Contemporary Classical" anzeigen'])},"show-composer-genres":e=>{const{normalize:t}=e;return t(["Zeige den Komponisten f\xFCr die aufgelisteten Genres an"])},"show-composer-info":e=>{const{normalize:t}=e;return t(['Wenn aktiviert, wird der Komponist auf der "Aktuell l\xE4uft"-Seite angezeigt.'])},"show-composer":e=>{const{normalize:t}=e;return t(["Komponisten anzeigen"])},"show-coverart":e=>{const{normalize:t}=e;return t(["Zeige Cover-Artwork in der Albumliste"])},"show-path":e=>{const{normalize:t}=e;return t(['Dateipfad auf der "Aktuell l\xE4uft"-Seite anzeigen'])}},services:{lastfm:{"grant-access":e=>{const{normalize:t}=e;return t(["<b>Last.fm</b> - melde Dich mit Deinem Last.fm-Usernamen und Password an, um Scrobbeln zu aktivieren"])},info:e=>{const{normalize:t}=e;return t(["OwnTone wird Usernamen und Passwort von last.fm nicht speichern, nur den Sitzungs-Schl\xFCssel. Dieser l\xE4uft nicht ab."])},title:e=>{const{normalize:t}=e;return t(["Last.fm"])},"no-support":e=>{const{normalize:t}=e;return t(["OwnTone wurde ohne Unterst\xFCtzung f\xFCr Last.fm erstellt."])},"stop-scrobbling":e=>{const{normalize:t}=e;return t(["Stop Scrobbling"])}},spotify:{"no-support":e=>{const{normalize:t}=e;return t(["OwnTone wurde entweder ohne Unterst\xFCtzung f\xFCr Spotify erstellt oder libspotify ist nicht installiert."])},"logged-as":e=>{const{normalize:t}=e;return t(["Angemeldet als "])},requirements:e=>{const{normalize:t}=e;return t(["Spotify Premium Abo erforderlich."])},scopes:e=>{const{normalize:t}=e;return t(["Zugriff auf die Spotify Web-Api erm\xF6glicht scannen der Spotify-Blibliothek. Erforderliche scopes sind: "])},user:e=>{const{normalize:t}=e;return t(["Zugriff gestattet f\xFCr "])},authorize:e=>{const{normalize:t}=e;return t(["Authorisiere Web-API-Zugriff"])},credentials:e=>{const{normalize:t}=e;return t([" - Anmelden mit dem Spotify Username und Passwort"])},"grant-access":e=>{const{normalize:t}=e;return t(["<b>Spotify Web-API</b> - Zugriff auf die Spotify Web-API gestatten"])},"help-1":e=>{const{normalize:t}=e;return t(["libspotify erm\xF6glicht OwnTone, Spotify-Tracks abzuspielen."])},"help-2":e=>{const{normalize:t}=e;return t(["OwnTone speichert das Passwort nicht, aber wird \xFCber libspotify dennoch einen automatischen Login \xFCber ein Login-Token erm\xF6glichen."])},reauthorize:e=>{const{normalize:t}=e;return t(["Bitte den Zugriff der Web-API durch setzen folgender Zugriffsrechte f\xFCr Owntone: "])},title:e=>{const{normalize:t}=e;return t(["Spotify"])}},login:e=>{const{normalize:t}=e;return t(["Einloggen"])},logout:e=>{const{normalize:t}=e;return t(["Ausloggen"])}},tabs:{artwork:e=>{const{normalize:t}=e;return t(["Artwork"])},general:e=>{const{normalize:t}=e;return t(["Allgemein"])},"online-services":e=>{const{normalize:t}=e;return t(["Online-Services"])},"remotes-and-outputs":e=>{const{normalize:t}=e;return t(["Fernbedienungen und Ausg\xE4nge"])}}},spotify:{album:{shuffle:e=>{const{normalize:t}=e;return t(["Zufallswiedergabe"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Tracks"])}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Alben"])},shuffle:e=>{const{normalize:t}=e;return t(["Zufallswiedergabe"])}},browse:{"featured-playlists":e=>{const{normalize:t}=e;return t(["Ausgezeichnete Playlisten"])},"new-releases":e=>{const{normalize:t}=e;return t(["Neuvorstellung"])},"show-more":e=>{const{normalize:t}=e;return t(["Zeige mehr"])}},playlist:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Tracks"])},shuffle:e=>{const{normalize:t}=e;return t(["Zufallswiedergabe"])}},search:{albums:e=>{const{normalize:t}=e;return t(["Alben"])},artists:e=>{const{normalize:t}=e;return t(["K\xFCnstler"])},"no-albums":e=>{const{normalize:t}=e;return t(["Keine Alben gefunden"])},"no-artists":e=>{const{normalize:t}=e;return t(["Keine K\xFCnstler gefunden"])},"no-playlists":e=>{const{normalize:t}=e;return t(["Keine Playlisten gefunden"])},"no-tracks":e=>{const{normalize:t}=e;return t(["Keine Tracks gefunden"])},playlists:e=>{const{normalize:t}=e;return t(["Playlisten"])},"show-all-albums":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Zeige alle ",n(r("count"))," Alben"])},"show-all-artists":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Zeige alle ",n(r("count"))," K\xFCnstler"])},"show-all-playlists":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Zeige alle ",n(r("count"))," Playlisten"])},"show-all-tracks":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Zeige alle ",n(r("count"))," Tracks"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}}}},setting:{"not-saved":e=>{const{normalize:t}=e;return t([" (Fehler beim Speichern der Einstellungen)"])},saved:e=>{const{normalize:t}=e;return t([" (Einstellungen gesichert)"])}},server:{"connection-failed":e=>{const{normalize:t}=e;return t(["Fehler bei Verbindung zum OwnTone-Server"])},"missing-port":e=>{const{normalize:t}=e;return t(["Fehlender Websocket-Port"])},"request-failed":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Anfrage gescheitert (Status: ",n(r("status"))," ",n(r("cause"))," ",n(r("url")),")"])},"queue-saved":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Warteschlange zu Playlist ",n(r("name"))," gesichert"])},"appended-tracks":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Tracks an die Abspielliste angeh\xE4ngt"])},"empty-queue":e=>{const{normalize:t}=e;return t(["Warteschlange ist leer"])}},"group-by-list":{today:e=>{const{normalize:t}=e;return t(["Heute"])},"last-week":e=>{const{normalize:t}=e;return t(["Letzte Woche"])},"last-month":e=>{const{normalize:t}=e;return t(["Letzer Monat"])}},filter:{mono:e=>{const{normalize:t}=e;return t(["Mono"])},stereo:e=>{const{normalize:t}=e;return t(["Stereo"])},channels:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," Kan\xE4le"])}}},en:{data:{kind:{file:e=>{const{normalize:t}=e;return t(["File"])},url:e=>{const{normalize:t}=e;return t(["URL"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])},pipe:e=>{const{normalize:t}=e;return t(["Stream"])}}},dialog:{cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},add:{rss:{add:e=>{const{normalize:t}=e;return t(["Add"])},cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},help:e=>{const{normalize:t}=e;return t(["Adding a podcast includes creating an RSS playlist, that will allow OwnTone to manage the podcast subscription."])},placeholder:e=>{const{normalize:t}=e;return t(["https://url-to-rss"])},processing:e=>{const{normalize:t}=e;return t(["Processing\u2026"])},title:e=>{const{normalize:t}=e;return t(["Add Podcast RSS feed URL"])}},stream:{add:e=>{const{normalize:t}=e;return t(["Add"])},cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},loading:e=>{const{normalize:t}=e;return t(["Loading\u2026"])},placeholder:e=>{const{normalize:t}=e;return t(["https://url-to-stream"])},play:e=>{const{normalize:t}=e;return t(["Play"])},title:e=>{const{normalize:t}=e;return t(["Add Stream URL"])}}},album:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},"added-on":e=>{const{normalize:t}=e;return t(["Added on"])},artist:e=>{const{normalize:t}=e;return t(["Album artist"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},"mark-as-played":e=>{const{normalize:t}=e;return t(["Mark as played"])},play:e=>{const{normalize:t}=e;return t(["Play"])},"release-date":e=>{const{normalize:t}=e;return t(["Release date"])},"remove-podcast":e=>{const{normalize:t}=e;return t(["Remove podcast"])},tracks:e=>{const{normalize:t}=e;return t(["Track count"])},type:e=>{const{normalize:t}=e;return t(["Type"])},year:e=>{const{normalize:t}=e;return t(["Year"])}},artist:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},"added-on":e=>{const{normalize:t}=e;return t(["Added On"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},play:e=>{const{normalize:t}=e;return t(["Play"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])},type:e=>{const{normalize:t}=e;return t(["Type"])}},composer:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},play:e=>{const{normalize:t}=e;return t(["Play"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},directory:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},play:e=>{const{normalize:t}=e;return t(["Play"])}},genre:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},play:e=>{const{normalize:t}=e;return t(["Play"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},playlist:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},play:e=>{const{normalize:t}=e;return t(["Play"])},"track-count":e=>{const{normalize:t}=e;return t(["Track Count"])},type:e=>{const{normalize:t}=e;return t(["Type"])},save:{cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},save:e=>{const{normalize:t}=e;return t(["Save"])},saving:e=>{const{normalize:t}=e;return t(["Saving\u2026"])},title:e=>{const{normalize:t}=e;return t(["Save queue to playlist"])}}},"queue-item":{"album-artist":e=>{const{normalize:t}=e;return t(["Album Artist"])},album:e=>{const{normalize:t}=e;return t(["Album"])},bitrate:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ","|"," ",n(r("rate"))," kbit/s"])},channels:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ","|"," ",n(r("channels"))])},composer:e=>{const{normalize:t}=e;return t(["Composer"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},genre:e=>{const{normalize:t}=e;return t(["Genre"])},path:e=>{const{normalize:t}=e;return t(["Path"])},play:e=>{const{normalize:t}=e;return t(["Play"])},position:e=>{const{normalize:t}=e;return t(["Disc / Track"])},quality:e=>{const{normalize:t}=e;return t(["Quality"])},remove:e=>{const{normalize:t}=e;return t(["Remove"])},samplerate:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ","|"," ",n(r("rate"))," Hz"])},"spotify-album":e=>{const{normalize:t}=e;return t(["album"])},"spotify-artist":e=>{const{normalize:t}=e;return t(["artist"])},type:e=>{const{normalize:t}=e;return t(["Type"])},year:e=>{const{normalize:t}=e;return t(["Year"])}},"remote-pairing":{cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},pair:e=>{const{normalize:t}=e;return t(["Pair Remote"])},title:e=>{const{normalize:t}=e;return t(["Remote pairing request"])}},spotify:{album:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},"album-artist":e=>{const{normalize:t}=e;return t(["Album Artist"])},play:e=>{const{normalize:t}=e;return t(["Play"])},"release-date":e=>{const{normalize:t}=e;return t(["Release Date"])},type:e=>{const{normalize:t}=e;return t(["Type"])}},artist:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},play:e=>{const{normalize:t}=e;return t(["Play"])},popularity:e=>{const{normalize:t}=e;return t(["Popularity / Followers"])}},playlist:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},owner:e=>{const{normalize:t}=e;return t(["Owner"])},path:e=>{const{normalize:t}=e;return t(["Path"])},play:e=>{const{normalize:t}=e;return t(["Play"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},track:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},"album-artist":e=>{const{normalize:t}=e;return t(["Album Artist"])},album:e=>{const{normalize:t}=e;return t(["Album"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},path:e=>{const{normalize:t}=e;return t(["Path"])},play:e=>{const{normalize:t}=e;return t(["Play"])},position:e=>{const{normalize:t}=e;return t(["Disc / Track"])},"release-date":e=>{const{normalize:t}=e;return t(["Release Date"])}}},track:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},"added-on":e=>{const{normalize:t}=e;return t(["Added On"])},"album-artist":e=>{const{normalize:t}=e;return t(["Album Artist"])},album:e=>{const{normalize:t}=e;return t(["Album"])},bitrate:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ","|"," ",n(r("rate"))," kbit/s"])},channels:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ","|"," ",n(r("channels"))])},comment:e=>{const{normalize:t}=e;return t(["Comment"])},composer:e=>{const{normalize:t}=e;return t(["Composer"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},genre:e=>{const{normalize:t}=e;return t(["Genre"])},"mark-as-new":e=>{const{normalize:t}=e;return t(["Mark as new"])},"mark-as-played":e=>{const{normalize:t}=e;return t(["Mark as played"])},path:e=>{const{normalize:t}=e;return t(["Path"])},play:e=>{const{normalize:t}=e;return t(["Play"])},position:e=>{const{normalize:t}=e;return t(["Disc / Track"])},quality:e=>{const{normalize:t}=e;return t(["Quality"])},"rating-value":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("rating"))," / 10"])},rating:e=>{const{normalize:t}=e;return t(["Rating"])},"release-date":e=>{const{normalize:t}=e;return t(["Release Date"])},samplerate:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ","|"," ",n(r("rate"))," Hz"])},"spotify-album":e=>{const{normalize:t}=e;return t(["album"])},"spotify-artist":e=>{const{normalize:t}=e;return t(["artist"])},type:e=>{const{normalize:t}=e;return t(["Type"])},year:e=>{const{normalize:t}=e;return t(["Year"])}},update:{all:e=>{const{normalize:t}=e;return t(["Update everything"])},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:{de:e=>{const{normalize:t}=e;return t(["German (Deutsch)"])},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 "])},remove:e=>{const{normalize:t}=e;return t(["Remove"])},"remove-podcast":e=>{const{normalize:t}=e;return t(["Remove podcast"])}},spotify:{"not-playable-track":e=>{const{normalize:t}=e;return t(["Track is not playable"])},"restriction-reason":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([", restriction reason: ",n(r("reason"))])}}},media:{kind:{album:e=>{const{normalize:t}=e;return t(["Album"])},audiobook:e=>{const{normalize:t}=e;return t(["Audiobook"])},music:e=>{const{normalize:t}=e;return t(["Music"])},podcast:e=>{const{normalize:t}=e;return t(["Podcast"])}}},navigation:{about:e=>{const{normalize:t}=e;return t(["About"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},audiobooks:e=>{const{normalize:t}=e;return t(["Audiobooks"])},"now-playing":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" - ",n(r("album"))])},"stream-error":e=>{const{normalize:t}=e;return t(["HTTP stream error: failed to load stream or stopped loading due to network problem"])},stream:e=>{const{normalize:t}=e;return t(["HTTP stream"])},volume:e=>{const{normalize:t}=e;return t(["Volume"])},files:e=>{const{normalize:t}=e;return t(["Files"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},music:e=>{const{normalize:t}=e;return t(["Music"])},playlists:e=>{const{normalize:t}=e;return t(["Playlists"])},podcasts:e=>{const{normalize:t}=e;return t(["Podcasts"])},radio:e=>{const{normalize:t}=e;return t(["Radio"])},search:e=>{const{normalize:t}=e;return t(["Search"])},settings:e=>{const{normalize:t}=e;return t(["Settings"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])},title:e=>{const{normalize:t}=e;return t(["OwnTone"])},"update-library":e=>{const{normalize:t}=e;return t(["Update Library"])}},page:{about:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},"built-with":e=>{const{normalize:t}=e;return t(['Web interface built with <a href="https://bulma.io">Bulma</a>, <a href="https://materialdesignicons.com/">Material Design Icons</a>, <a href="https://vuejs.org/">Vue.js</a>, <a href="https://github.com/mzabriskie/axios">axios</a> and <a href="https://github.com/owntone/owntone-server/network/dependencies">more</a>.'])},"compiled-with":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Compiled with support for ",n(r("options")),"."])},library:e=>{const{normalize:t}=e;return t(["Library"])},"total-playtime":e=>{const{normalize:t}=e;return t(["Total playtime"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])},update:e=>{const{normalize:t}=e;return t(["Update"])},"updated-on":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("time"))," ago"])},updated:e=>{const{normalize:t}=e;return t(["Updated"])},uptime:e=>{const{normalize:t}=e;return t(["Uptime"])},version:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Version ",n(r("version"))])}},album:{shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])}},albums:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums"])},filter: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:r}=e;return t([n(r("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sort by"])},name:e=>{const{normalize:t}=e;return t(["Name"])},rating:e=>{const{normalize:t}=e;return t(["Rating"])},"release-date":e=>{const{normalize:t}=e;return t(["Release date"])}}},artists:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," artists"])},filter: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(["Recently 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:r}=e;return t([n(r("count"))," tracks"])}},albums:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," audiobooks"])},title:e=>{const{normalize:t}=e;return t(["Audiobooks"])}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums"])},play:e=>{const{normalize:t}=e;return t(["Play"])}},artists:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," authors"])},title:e=>{const{normalize:t}=e;return t(["Authors"])}},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:r}=e;return t([n(r("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sort by"])},name:e=>{const{normalize:t}=e;return t(["Name"])},rating:e=>{const{normalize:t}=e;return t(["Rating"])}}},composers:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," composers"])},title:e=>{const{normalize:t}=e;return t(["Composers"])}},files:{play:e=>{const{normalize:t}=e;return t(["Play"])},title:e=>{const{normalize:t}=e;return t(["Files"])}},genre:{"album-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sort by"])},name:e=>{const{normalize:t}=e;return t(["Name"])},rating:e=>{const{normalize:t}=e;return t(["Rating"])}}},genres:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," genres"])},title:e=>{const{normalize:t}=e;return t(["Genres"])}},"now-playing":{info:e=>{const{normalize:t}=e;return t(["Add some tracks by browsing your library"])},title:e=>{const{normalize:t}=e;return t(["Your play queue is empty"])}},playlist:{length:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("length"))," tracks"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])}},playlists:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," playlists"])}},podcast:{play:e=>{const{normalize:t}=e;return t(["Play"])},remove:e=>{const{normalize:t}=e;return t(["Remove"])},"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 "])},"remove-podcast":e=>{const{normalize:t}=e;return t(["Remove podcast"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])}},podcasts:{add:e=>{const{normalize:t}=e;return t(["Add"])},count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," podcasts"])},"mark-all-played":e=>{const{normalize:t}=e;return t(["Mark All Played"])},"new-episodes":e=>{const{normalize:t}=e;return t(["New Episodes"])},title:e=>{const{normalize:t}=e;return t(["Podcasts"])},update:e=>{const{normalize:t}=e;return t(["Update"])}},queue:{"add-stream":e=>{const{normalize:t}=e;return t(["Add stream"])},clear:e=>{const{normalize:t}=e;return t(["Clear"])},count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])},edit:e=>{const{normalize:t}=e;return t(["Edit"])},"hide-previous":e=>{const{normalize:t}=e;return t(["Hide previous"])},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:r}=e;return t([n(r("count"))," stations"])},title:e=>{const{normalize:t}=e;return t(["Radio"])}},search:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},audiobooks:e=>{const{normalize:t}=e;return t(["Audiobooks"])},composers:e=>{const{normalize:t}=e;return t(["Composers"])},help:e=>{const{normalize:t}=e;return t(['Tip: you can search by a smart playlist query language <a href="https://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:r}=e;return t(["Show all ",n(r("count"))," albums"])},"show-artists":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," artists"])},"show-audiobooks":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," audiobooks"])},"show-composers":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," composers"])},"show-playlists":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," playlists"])},"show-podcasts":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," podcasts"])},"show-tracks":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," tracks"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])},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"])},"show-path":e=>{const{normalize:t}=e;return t(['Show filepath on the "Now playing" page'])}},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."])},"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:r}=e;return t([n(r("count"))," tracks"])}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])}},browse:{"featured-playlists":e=>{const{normalize:t}=e;return t(["Featured Playlists"])},"new-releases":e=>{const{normalize:t}=e;return t(["New Releases"])},"show-more":e=>{const{normalize:t}=e;return t(["Show More"])}},playlist:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])}},search:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},"no-albums":e=>{const{normalize:t}=e;return t(["No albums found"])},"no-artists":e=>{const{normalize:t}=e;return t(["No artists found"])},"no-playlists":e=>{const{normalize:t}=e;return t(["No playlists found"])},"no-tracks":e=>{const{normalize:t}=e;return t(["No tracks found"])},playlists:e=>{const{normalize:t}=e;return t(["Playlists"])},"show-all-albums":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," albums"])},"show-all-artists":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," artists"])},"show-all-playlists":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," playlists"])},"show-all-tracks":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," tracks"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}}}},setting:{"not-saved":e=>{const{normalize:t}=e;return t([" (error saving setting)"])},saved:e=>{const{normalize:t}=e;return t([" (setting saved)"])}},server:{"connection-failed":e=>{const{normalize:t}=e;return t(["Failed to connect to OwnTone server"])},"missing-port":e=>{const{normalize:t}=e;return t(["Missing websocket port"])},"request-failed":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Request failed (status: ",n(r("status"))," ",n(r("cause"))," ",n(r("url")),")"])},"queue-saved":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Queue saved to playlist ",n(r("name"))])},"appended-tracks":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks appended to the queue"])},"empty-queue":e=>{const{normalize:t}=e;return t(["Queue is empty"])}},"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"])}},filter:{mono:e=>{const{normalize:t}=e;return t(["mono"])},stereo:e=>{const{normalize:t}=e;return t(["stereo"])},channels:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," channels"])}}},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"])},artist:e=>{const{normalize:t}=e;return t(["Artiste de l\u2019album"])},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"])}},artist:{"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(["Enregistrer 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:r}=e;return t([" ","|"," ",n(r("rate"))," kbit/s"])},channels:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ","|"," ",n(r("channels"))])},composer:e=>{const{normalize:t}=e;return t(["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:r}=e;return t([" ","|"," ",n(r("rate"))," Hz"])},"spotify-album":e=>{const{normalize:t}=e;return t(["album"])},"spotify-artist":e=>{const{normalize:t}=e;return t(["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"])}},artist:{"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\xE9 / Abonnements"])}},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\xE9taire"])},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:r}=e;return t([" ","|"," ",n(r("rate"))," kbit/s"])},channels:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ","|"," ",n(r("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:r}=e;return t([n(r("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:r}=e;return t([" ","|"," ",n(r("rate"))," Hz"])},"spotify-album":e=>{const{normalize:t}=e;return t(["album"])},"spotify-artist":e=>{const{normalize:t}=e;return t(["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:{de:e=>{const{normalize:t}=e;return t(["Allemand (Deutsch)"])},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\xA0?"])},"info-2":e=>{const{normalize:t}=e;return t(["Cela supprimera \xE9galement la liste de lecture RSS "])},remove:e=>{const{normalize:t}=e;return t(["Supprimer"])},"remove-podcast":e=>{const{normalize:t}=e;return t(["Supprimer le podcast"])}},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:r}=e;return t([", raison de la restriction\xA0: ",n(r("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:r}=e;return t([" - ",n(r("album"))])},"stream-error":e=>{const{normalize:t}=e;return t(["Erreur du flux HTTP\xA0: \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:r}=e;return t(["Compil\xE9 avec les options ",n(r("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:r}=e;return t(["il y a ",n(r("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:r}=e;return t(["Version ",n(r("version"))])}},album:{shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," pistes"])}},albums:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("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:r}=e;return t([n(r("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," pistes"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Trier par"])},name:e=>{const{normalize:t}=e;return t(["Nom"])},rating:e=>{const{normalize:t}=e;return t(["Classement"])},"release-date":e=>{const{normalize:t}=e;return t(["Date de sortie"])}}},artists:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," artists"])},filter:e=>{const{normalize:t}=e;return t(["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:r}=e;return t([n(r("count"))," pistes"])}},albums:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," livres audio"])},title:e=>{const{normalize:t}=e;return t(["Livres audio"])}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums"])},play:e=>{const{normalize:t}=e;return t(["Lire"])}},artists:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("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:r}=e;return t([n(r("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," pistes"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Trier par"])},name:e=>{const{normalize:t}=e;return t(["Nom"])},rating:e=>{const{normalize:t}=e;return t(["Classement"])}}},composers:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("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:r}=e;return t([n(r("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," pistes"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Trier par"])},name:e=>{const{normalize:t}=e;return t(["Nom"])},rating:e=>{const{normalize:t}=e;return t(["Classement"])}}},genres:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," genres"])},title:e=>{const{normalize:t}=e;return t(["Genres"])}},"now-playing":{info:e=>{const{normalize:t}=e;return t(["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:r}=e;return t([n(r("length"))," pistes"])},shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," pistes"])}},playlists:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," listes de lecture"])}},podcast:{play:e=>{const{normalize:t}=e;return t(["Lire"])},remove:e=>{const{normalize:t}=e;return t(["Supprimer"])},"remove-info-1":e=>{const{normalize:t}=e;return t(["Supprimer ce podcast de mani\xE8re permanente de la biblioth\xE8que\xA0?"])},"remove-info-2":e=>{const{normalize:t}=e;return t(["Cela supprimera \xE9galement la liste de lecture RSS "])},"remove-podcast":e=>{const{normalize:t}=e;return t(["Supprimer le podcast"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," pistes"])}},podcasts:{add:e=>{const{normalize:t}=e;return t(["Ajouter"])},count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," podcasts"])},"mark-all-played":e=>{const{normalize:t}=e;return t(["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:r}=e;return t([n(r("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:r}=e;return t([n(r("count"))," stations"])},title:e=>{const{normalize:t}=e;return t(["Radio"])}},search:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["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\xA0: 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:r}=e;return t(["Afficher les ",n(r("count"))," albums"])},"show-artists":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Afficher les ",n(r("count"))," artistes"])},"show-audiobooks":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Afficher les ",n(r("count"))," livres audio"])},"show-composers":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Afficher les ",n(r("count"))," compositeurs"])},"show-playlists":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Afficher les ",n(r("count"))," listes de lecture"])},"show-podcasts":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Afficher les ",n(r("count"))," podcasts"])},"show-tracks":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Afficher les ",n(r("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\xA0:"])},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(["Page \xAB\xA0En cours de lecture\xA0\xBB"])},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 \xAB\xA0Ajouts r\xE9cents\xA0\xBB"])},"recently-added-page":e=>{const{normalize:t}=e;return t(["Page \xAB\xA0Ajouts r\xE9cents\xA0\xBB"])},search:e=>{const{normalize:t}=e;return t(["Recherche"])},"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 \xAB\xA0En cours de lecture\xA0\xBB."])},"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 \xAB\xA0En cours de lecture\xA0\xBB"])},"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"])},"show-path":e=>{const{normalize:t}=e;return t(["Afficher le chemin du fichier sur la page \xAB\xA0En cours de lecture\xA0\xBB"])}},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."])},"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\xA0:"])},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\xA0:"])},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:r}=e;return t([n(r("count"))," pistes"])}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["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:r}=e;return t([n(r("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:r}=e;return t(["Afficher les ",n(r("count"))," albums"])},"show-all-artists":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Afficher les ",n(r("count"))," artistes"])},"show-all-playlists":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Afficher les ",n(r("count"))," listes de lecture"])},"show-all-tracks":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Afficher les ",n(r("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:r}=e;return t(["La requ\xEAte a \xE9chou\xE9 (status: ",n(r("status"))," ",n(r("cause"))," ",n(r("url")),")"])},"queue-saved":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["La file d\u2019attente enregistr\xE9e dans la liste de lecture ",n(r("name"))])},"appended-tracks":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("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"])}},filter:{mono:e=>{const{normalize:t}=e;return t(["mono"])},stereo:e=>{const{normalize:t}=e;return t(["st\xE9r\xE9o"])},channels:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," canaux"])}}}},mu=Fx({legacy:!1,globalInjection:!0,availableLocales:"fr",locale:navigator.language,fallbackLocale:"en",fallbackWarn:!1,missingWarn:!1,messages:Hx});/*!
* vuex v4.1.0
* (c) 2022 Evan You
* @license MIT
*/var qx="store";function Oo(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function Wx(e){return e!==null&&typeof e=="object"}function Gx(e){return e&&typeof e.then=="function"}function Kx(e,t){return function(){return e(t)}}function hy(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function _y(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;fu(e,n,[],e._modules.root,!0),gm(e,n,t)}function gm(e,t,n){var r=e._state,s=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,i={},a={},u=Vd(!0);u.run(function(){Oo(o,function(c,d){i[d]=Kx(c,e),a[d]=$t(function(){return i[d]()}),Object.defineProperty(e.getters,d,{get:function(){return a[d].value},enumerable:!0})})}),e._state=Rs({data:t}),e._scope=u,e.strict&&Qx(e),r&&n&&e._withCommit(function(){r.data=null}),s&&s.stop()}function fu(e,t,n,r,s){var o=!n.length,i=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=r),!o&&!s){var a=ym(t,n.slice(0,-1)),u=n[n.length-1];e._withCommit(function(){a[u]=r.state})}var c=r.context=Zx(e,i,n);r.forEachMutation(function(d,f){var m=i+f;Yx(e,m,d,c)}),r.forEachAction(function(d,f){var m=d.root?f:i+f,p=d.handler||d;Jx(e,m,p,c)}),r.forEachGetter(function(d,f){var m=i+f;Xx(e,m,d,c)}),r.forEachChild(function(d,f){fu(e,t,n.concat(f),d,s)})}function Zx(e,t,n){var r=t==="",s={dispatch:r?e.dispatch:function(o,i,a){var u=Ol(o,i,a),c=u.payload,d=u.options,f=u.type;return(!d||!d.root)&&(f=t+f),e.dispatch(f,c)},commit:r?e.commit:function(o,i,a){var u=Ol(o,i,a),c=u.payload,d=u.options,f=u.type;(!d||!d.root)&&(f=t+f),e.commit(f,c,d)}};return Object.defineProperties(s,{getters:{get:r?function(){return e.getters}:function(){return gy(e,t)}},state:{get:function(){return ym(e.state,n)}}}),s}function gy(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(s){if(s.slice(0,r)===t){var o=s.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[s]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function Yx(e,t,n,r){var s=e._mutations[t]||(e._mutations[t]=[]);s.push(function(i){n.call(e,r.state,i)})}function Jx(e,t,n,r){var s=e._actions[t]||(e._actions[t]=[]);s.push(function(i){var a=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},i);return Gx(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(u){throw e._devtoolHook.emit("vuex:error",u),u}):a})}function Xx(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(o){return n(r.state,r.getters,o.state,o.getters)})}function Qx(e){kt(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function ym(e,t){return t.reduce(function(n,r){return n[r]},e)}function Ol(e,t,n){return Wx(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var ek="vuex bindings",Dp="vuex:mutations",Qu="vuex:actions",Ws="vuex",tk=0;function nk(e,t){wx({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:[ek]},function(n){n.addTimelineLayer({id:Dp,label:"Vuex Mutations",color:Fp}),n.addTimelineLayer({id:Qu,label:"Vuex Actions",color:Fp}),n.addInspector({id:Ws,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===e&&r.inspectorId===Ws)if(r.filter){var s=[];wy(s,t._modules.root,r.filter,""),r.rootNodes=s}else r.rootNodes=[by(t._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===e&&r.inspectorId===Ws){var s=r.nodeId;gy(t,s),r.state=ok(ak(t._modules,s),s==="root"?t.getters:t._makeLocalGettersCache,s)}}),n.on.editInspectorState(function(r){if(r.app===e&&r.inspectorId===Ws){var s=r.nodeId,o=r.path;s!=="root"&&(o=s.split("/").filter(Boolean).concat(o)),t._withCommit(function(){r.set(t._state.data,o,r.state.value)})}}),t.subscribe(function(r,s){var o={};r.payload&&(o.payload=r.payload),o.state=s,n.notifyComponentUpdate(),n.sendInspectorTree(Ws),n.sendInspectorState(Ws),n.addTimelineEvent({layerId:Dp,event:{time:Date.now(),title:r.type,data:o}})}),t.subscribeAction({before:function(r,s){var o={};r.payload&&(o.payload=r.payload),r._id=tk++,r._time=Date.now(),o.state=s,n.addTimelineEvent({layerId:Qu,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:o}})},after:function(r,s){var o={},i=Date.now()-r._time;o.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},r.payload&&(o.payload=r.payload),o.state=s,n.addTimelineEvent({layerId:Qu,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:o}})}})})}var Fp=8702998,rk=6710886,sk=16777215,yy={label:"namespaced",textColor:sk,backgroundColor:rk};function vy(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function by(e,t){return{id:t||"root",label:vy(t),tags:e.namespaced?[yy]:[],children:Object.keys(e._children).map(function(n){return by(e._children[n],t+n+"/")})}}function wy(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[yy]:[]}),Object.keys(t._children).forEach(function(s){wy(e,t._children[s],n,r+s+"/")})}function ok(e,t,n){t=n==="root"?t:t[n];var r=Object.keys(t),s={state:Object.keys(e.state).map(function(i){return{key:i,editable:!0,value:e.state[i]}})};if(r.length){var o=ik(t);s.getters=Object.keys(o).map(function(i){return{key:i.endsWith("/")?vy(i):i,editable:!1,value:od(function(){return o[i]})}})}return s}function ik(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var s=t,o=r.pop();r.forEach(function(i){s[i]||(s[i]={_custom:{value:{},display:i,tooltip:"Module",abstract:!0}}),s=s[i]._custom.value}),s[o]=od(function(){return e[n]})}else t[n]=od(function(){return e[n]})}),t}function ak(e,t){var n=t.split("/").filter(function(r){return r});return n.reduce(function(r,s,o){var i=r[s];if(!i)throw new Error('Missing module "'+s+'" for path "'+t+'".');return o===n.length-1?i:i._children},t==="root"?e:e.root._children)}function od(e){try{return e()}catch(t){return t}}var ur=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=(typeof r=="function"?r():r)||{}},Cy={namespaced:{configurable:!0}};Cy.namespaced.get=function(){return!!this._rawModule.namespaced};ur.prototype.addChild=function(t,n){this._children[t]=n};ur.prototype.removeChild=function(t){delete this._children[t]};ur.prototype.getChild=function(t){return this._children[t]};ur.prototype.hasChild=function(t){return t in this._children};ur.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)};ur.prototype.forEachChild=function(t){Oo(this._children,t)};ur.prototype.forEachGetter=function(t){this._rawModule.getters&&Oo(this._rawModule.getters,t)};ur.prototype.forEachAction=function(t){this._rawModule.actions&&Oo(this._rawModule.actions,t)};ur.prototype.forEachMutation=function(t){this._rawModule.mutations&&Oo(this._rawModule.mutations,t)};Object.defineProperties(ur.prototype,Cy);var Ms=function(t){this.register([],t,!1)};Ms.prototype.get=function(t){return t.reduce(function(n,r){return n.getChild(r)},this.root)};Ms.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(r,s){return n=n.getChild(s),r+(n.namespaced?s+"/":"")},"")};Ms.prototype.update=function(t){zy([],this.root,t)};Ms.prototype.register=function(t,n,r){var s=this;r===void 0&&(r=!0);var o=new ur(n,r);if(t.length===0)this.root=o;else{var i=this.get(t.slice(0,-1));i.addChild(t[t.length-1],o)}n.modules&&Oo(n.modules,function(a,u){s.register(t.concat(u),a,r)})};Ms.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1],s=n.getChild(r);!s||!s.runtime||n.removeChild(r)};Ms.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1];return n?n.hasChild(r):!1};function zy(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return;zy(e.concat(r),t.getChild(r),n.modules[r])}}function lk(e){return new An(e)}var An=function(t){var n=this;t===void 0&&(t={});var r=t.plugins;r===void 0&&(r=[]);var s=t.strict;s===void 0&&(s=!1);var o=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Ms(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var i=this,a=this,u=a.dispatch,c=a.commit;this.dispatch=function(m,p){return u.call(i,m,p)},this.commit=function(m,p,h){return c.call(i,m,p,h)},this.strict=s;var d=this._modules.root.state;fu(this,d,[],this._modules.root),gm(this,d),r.forEach(function(f){return f(n)})},vm={state:{configurable:!0}};An.prototype.install=function(t,n){t.provide(n||qx,this),t.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:!1;r&&nk(t,this)};vm.state.get=function(){return this._state.data};vm.state.set=function(e){};An.prototype.commit=function(t,n,r){var s=this,o=Ol(t,n,r),i=o.type,a=o.payload,u={type:i,payload:a},c=this._mutations[i];!c||(this._withCommit(function(){c.forEach(function(f){f(a)})}),this._subscribers.slice().forEach(function(d){return d(u,s.state)}))};An.prototype.dispatch=function(t,n){var r=this,s=Ol(t,n),o=s.type,i=s.payload,a={type:o,payload:i},u=this._actions[o];if(!!u){try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(a,r.state)})}catch{}var c=u.length>1?Promise.all(u.map(function(d){return d(i)})):u[0](i);return new Promise(function(d,f){c.then(function(m){try{r._actionSubscribers.filter(function(p){return p.after}).forEach(function(p){return p.after(a,r.state)})}catch{}d(m)},function(m){try{r._actionSubscribers.filter(function(p){return p.error}).forEach(function(p){return p.error(a,r.state,m)})}catch{}f(m)})})}};An.prototype.subscribe=function(t,n){return hy(t,this._subscribers,n)};An.prototype.subscribeAction=function(t,n){var r=typeof t=="function"?{before:t}:t;return hy(r,this._actionSubscribers,n)};An.prototype.watch=function(t,n,r){var s=this;return kt(function(){return t(s.state,s.getters)},n,Object.assign({},r))};An.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};An.prototype.registerModule=function(t,n,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),fu(this,this.state,t,this._modules.get(t),r.preserveState),gm(this,this.state)};An.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var r=ym(n.state,t.slice(0,-1));delete r[t[t.length-1]]}),_y(this)};An.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};An.prototype.hotUpdate=function(t){this._modules.update(t),_y(this,!0)};An.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(An.prototype,vm);const xy="UPDATE_CONFIG",ky="UPDATE_SETTINGS",pu="UPDATE_SETTINGS_OPTION",Ey="UPDATE_LIBRARY_STATS",Sy="UPDATE_LIBRARY_AUDIOBOOKS_COUNT",$y="UPDATE_LIBRARY_PODCASTS_COUNT",Ay="UPDATE_LIBRARY_RSS_COUNT",Ty="UPDATE_OUTPUTS",bm="UPDATE_PLAYER_STATUS",Oy="UPDATE_QUEUE",Py="UPDATE_LASTFM",Dy="UPDATE_SPOTIFY",Fy="UPDATE_PAIRING",wm="SPOTIFY_NEW_RELEASES",Cm="SPOTIFY_FEATURED_PLAYLISTS",Ip="ADD_NOTIFICATION",id="DELETE_NOTIFICATION",ad="SEARCH_PATH",zm="ADD_RECENT_SEARCH",Iy="COMPOSER_TRACKS_SORT",Ry="GENRE_TRACKS_SORT",hu="HIDE_SINGLES",xm="HIDE_SPOTIFY",Ly="ARTISTS_SORT",Ny="ARTIST_ALBUMS_SORT",My="ARTIST_TRACKS_SORT",Vy="ALBUMS_SORT",By="SHOW_ONLY_NEXT_ITEMS",vo="SHOW_BURGER_MENU",bo="SHOW_PLAYER_MENU",Ki="SHOW_UPDATE_DIALOG",km="UPDATE_DIALOG_SCAN_KIND";var at=lk({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:[],composer_tracks_sort:1,genre_tracks_sort:1,hide_singles:!1,hide_spotify:!1,artists_sort:1,artist_albums_sort:1,artist_tracks_sort:1,albums_sort:1,show_only_next_items:!1,show_burger_menu:!1,show_player_menu:!1,show_update_dialog:!1,update_dialog_scan_kind:""}},getters:{now_playing:e=>{const t=e.queue.items.find(function(n){return n.id===e.player.item_id});return t===void 0?{}:t},settings_webinterface:e=>e.settings?e.settings.categories.find(t=>t.name==="webinterface"):null,settings_option_recently_added_limit:(e,t)=>{if(t.settings_webinterface){const n=t.settings_webinterface.options.find(r=>r.name==="recently_added_limit");if(n)return n.value}return 100},settings_option_show_composer_now_playing:(e,t)=>{if(t.settings_webinterface){const n=t.settings_webinterface.options.find(r=>r.name==="show_composer_now_playing");if(n)return n.value}return!1},settings_option_show_composer_for_genre:(e,t)=>{if(t.settings_webinterface){const n=t.settings_webinterface.options.find(r=>r.name==="show_composer_for_genre");if(n)return n.value}return null},settings_option_show_filepath_now_playing:(e,t)=>{if(t.settings_webinterface){const n=t.settings_webinterface.options.find(r=>r.name==="show_filepath_now_playing");if(n)return n.value}return!1},settings_category:e=>t=>e.settings.categories.find(n=>n.name===t),settings_option:e=>(t,n)=>{const r=e.settings.categories.find(s=>s.name===t);return r?r.options.find(s=>s.name===n):{}}},mutations:{[xy](e,t){e.config=t},[ky](e,t){e.settings=t},[pu](e,t){const r=e.settings.categories.find(s=>s.name===t.category).options.find(s=>s.name===t.name);r.value=t.value},[Ey](e,t){e.library=t},[Sy](e,t){e.audiobooks_count=t},[$y](e,t){e.podcasts_count=t},[Ay](e,t){e.rss_count=t},[Ty](e,t){e.outputs=t},[bm](e,t){e.player=t},[Oy](e,t){e.queue=t},[Py](e,t){e.lastfm=t},[Dy](e,t){e.spotify=t},[Fy](e,t){e.pairing=t},[wm](e,t){e.spotify_new_releases=t},[Cm](e,t){e.spotify_featured_playlists=t},[Ip](e,t){if(t.topic){const n=e.notifications.list.findIndex(r=>r.topic===t.topic);if(n>=0){e.notifications.list.splice(n,1,t);return}}e.notifications.list.push(t)},[id](e,t){const n=e.notifications.list.indexOf(t);n!==-1&&e.notifications.list.splice(n,1)},[ad](e,t){e.search_path=t},[zm](e,t){const n=e.recent_searches.findIndex(r=>r===t);n>=0&&e.recent_searches.splice(n,1),e.recent_searches.splice(0,0,t),e.recent_searches.length>5&&e.recent_searches.pop()},[Iy](e,t){e.composer_tracks_sort=t},[Ry](e,t){e.genre_tracks_sort=t},[hu](e,t){e.hide_singles=t},[xm](e,t){e.hide_spotify=t},[Ly](e,t){e.artists_sort=t},[Ny](e,t){e.artist_albums_sort=t},[My](e,t){e.artist_tracks_sort=t},[Vy](e,t){e.albums_sort=t},[By](e,t){e.show_only_next_items=t},[vo](e,t){e.show_burger_menu=t},[bo](e,t){e.show_player_menu=t},[Ki](e,t){e.show_update_dialog=t},[km](e,t){e.update_dialog_scan_kind=t}},actions:{add_notification({commit:e,state:t},n){const r={id:t.notifications.next_id++,type:n.type,text:n.text,topic:n.topic,timeout:n.timeout};e(Ip,r),n.timeout>0&&setTimeout(()=>{e(id,r)},n.timeout)}}});/*!
* vue-router v4.2.2
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/const eo=typeof window!="undefined";function uk(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const bt=Object.assign;function ec(e,t){const n={};for(const r in t){const s=t[r];n[r]=ar(s)?s.map(e):e(s)}return n}const _i=()=>{},ar=Array.isArray,ck=/\/$/,dk=e=>e.replace(ck,"");function tc(e,t,n="/"){let r,s={},o="",i="";const a=t.indexOf("#");let u=t.indexOf("?");return a<u&&a>=0&&(u=-1),u>-1&&(r=t.slice(0,u),o=t.slice(u+1,a>-1?a:t.length),s=e(o)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=hk(r!=null?r:t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:i}}function mk(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Rp(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function fk(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&wo(t.matched[r],n.matched[s])&&Uy(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function wo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Uy(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!pk(e[n],t[n]))return!1;return!0}function pk(e,t){return ar(e)?Lp(e,t):ar(t)?Lp(t,e):e===t}function Lp(e,t){return ar(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function hk(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,a;for(i=0;i<r.length;i++)if(a=r[i],a!==".")if(a==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var Li;(function(e){e.pop="pop",e.push="push"})(Li||(Li={}));var gi;(function(e){e.back="back",e.forward="forward",e.unknown=""})(gi||(gi={}));function _k(e){if(!e)if(eo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),dk(e)}const gk=/^[^#]+#/;function yk(e,t){return e.replace(gk,"#")+t}function vk(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const _u=()=>({left:window.pageXOffset,top:window.pageYOffset});function bk(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=vk(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Np(e,t){return(history.state?history.state.position-t:-1)+e}const ld=new Map;function wk(e,t){ld.set(e,t)}function Ck(e){const t=ld.get(e);return ld.delete(e),t}let zk=()=>location.protocol+"//"+location.host;function jy(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let a=s.includes(e.slice(o))?e.slice(o).length:1,u=s.slice(a);return u[0]!=="/"&&(u="/"+u),Rp(u,"")}return Rp(n,e)+r+s}function xk(e,t,n,r){let s=[],o=[],i=null;const a=({state:m})=>{const p=jy(e,location),h=n.value,_=t.value;let w=0;if(m){if(n.value=p,t.value=m,i&&i===h){i=null;return}w=_?m.position-_.position:0}else r(p);s.forEach(v=>{v(n.value,h,{delta:w,type:Li.pop,direction:w?w>0?gi.forward:gi.back:gi.unknown})})};function u(){i=n.value}function c(m){s.push(m);const p=()=>{const h=s.indexOf(m);h>-1&&s.splice(h,1)};return o.push(p),p}function d(){const{history:m}=window;!m.state||m.replaceState(bt({},m.state,{scroll:_u()}),"")}function f(){for(const m of o)m();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:u,listen:c,destroy:f}}function Mp(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?_u():null}}function kk(e){const{history:t,location:n}=window,r={value:jy(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(u,c,d){const f=e.indexOf("#"),m=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:zk()+e+u;try{t[d?"replaceState":"pushState"](c,"",m),s.value=c}catch(p){console.error(p),n[d?"replace":"assign"](m)}}function i(u,c){const d=bt({},t.state,Mp(s.value.back,u,s.value.forward,!0),c,{position:s.value.position});o(u,d,!0),r.value=u}function a(u,c){const d=bt({},s.value,t.state,{forward:u,scroll:_u()});o(d.current,d,!0);const f=bt({},Mp(r.value,u,null),{position:d.position+1},c);o(u,f,!1),r.value=u}return{location:r,state:s,push:a,replace:i}}function Ek(e){e=_k(e);const t=kk(e),n=xk(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=bt({location:"",base:e,go:r,createHref:yk.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Sk(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Ek(e)}function $k(e){return typeof e=="string"||e&&typeof e=="object"}function Hy(e){return typeof e=="string"||typeof e=="symbol"}const Hr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},qy=Symbol("");var Vp;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Vp||(Vp={}));function Co(e,t){return bt(new Error,{type:e,[qy]:!0},t)}function Sr(e,t){return e instanceof Error&&qy in e&&(t==null||!!(e.type&t))}const Bp="[^/]+?",Ak={sensitive:!1,strict:!1,start:!0,end:!0},Tk=/[.+*?^${}()[\]/\\]/g;function Ok(e,t){const n=bt({},Ak,t),r=[];let s=n.start?"^":"";const o=[];for(const c of e){const d=c.length?[]:[90];n.strict&&!c.length&&(s+="/");for(let f=0;f<c.length;f++){const m=c[f];let p=40+(n.sensitive?.25:0);if(m.type===0)f||(s+="/"),s+=m.value.replace(Tk,"\\$&"),p+=40;else if(m.type===1){const{value:h,repeatable:_,optional:w,regexp:v}=m;o.push({name:h,repeatable:_,optional:w});const b=v||Bp;if(b!==Bp){p+=10;try{new RegExp(`(${b})`)}catch(z){throw new Error(`Invalid custom RegExp for param "${h}" (${b}): `+z.message)}}let k=_?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;f||(k=w&&c.length<2?`(?:/${k})`:"/"+k),w&&(k+="?"),s+=k,p+=20,w&&(p+=-8),_&&(p+=-20),b===".*"&&(p+=-50)}d.push(p)}r.push(d)}if(n.strict&&n.end){const c=r.length-1;r[c][r[c].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&(s+="(?:/|$)");const i=new RegExp(s,n.sensitive?"":"i");function a(c){const d=c.match(i),f={};if(!d)return null;for(let m=1;m<d.length;m++){const p=d[m]||"",h=o[m-1];f[h.name]=p&&h.repeatable?p.split("/"):p}return f}function u(c){let d="",f=!1;for(const m of e){(!f||!d.endsWith("/"))&&(d+="/"),f=!1;for(const p of m)if(p.type===0)d+=p.value;else if(p.type===1){const{value:h,repeatable:_,optional:w}=p,v=h in c?c[h]:"";if(ar(v)&&!_)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const b=ar(v)?v.join("/"):v;if(!b)if(w)m.length<2&&(d.endsWith("/")?d=d.slice(0,-1):f=!0);else throw new Error(`Missing required param "${h}"`);d+=b}}return d||"/"}return{re:i,score:r,keys:o,parse:a,stringify:u}}function Pk(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function Dk(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const o=Pk(r[n],s[n]);if(o)return o;n++}if(Math.abs(s.length-r.length)===1){if(Up(r))return 1;if(Up(s))return-1}return s.length-r.length}function Up(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Fk={type:0,value:""},Ik=/[a-zA-Z0-9_]/;function Rk(e){if(!e)return[[]];if(e==="/")return[[Fk]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let a=0,u,c="",d="";function f(){!c||(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function m(){c+=u}for(;a<e.length;){if(u=e[a++],u==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:u==="/"?(c&&f(),i()):u===":"?(f(),n=1):m();break;case 4:m(),n=r;break;case 1:u==="("?n=2:Ik.test(u)?m():(f(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&a--);break;case 2:u===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+u:n=3:d+=u;break;case 3:f(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&a--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),f(),i(),s}function Lk(e,t,n){const r=Ok(Rk(e.path),n),s=bt(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function Nk(e,t){const n=[],r=new Map;t=qp({strict:!1,end:!0,sensitive:!1},t);function s(d){return r.get(d)}function o(d,f,m){const p=!m,h=Mk(d);h.aliasOf=m&&m.record;const _=qp(t,d),w=[h];if("alias"in d){const k=typeof d.alias=="string"?[d.alias]:d.alias;for(const z of k)w.push(bt({},h,{components:m?m.record.components:h.components,path:z,aliasOf:m?m.record:h}))}let v,b;for(const k of w){const{path:z}=k;if(f&&z[0]!=="/"){const S=f.record.path,T=S[S.length-1]==="/"?"":"/";k.path=f.record.path+(z&&T+z)}if(v=Lk(k,f,_),m?m.alias.push(v):(b=b||v,b!==v&&b.alias.push(v),p&&d.name&&!Hp(v)&&i(d.name)),h.children){const S=h.children;for(let T=0;T<S.length;T++)o(S[T],v,m&&m.children[T])}m=m||v,(v.record.components&&Object.keys(v.record.components).length||v.record.name||v.record.redirect)&&u(v)}return b?()=>{i(b)}:_i}function i(d){if(Hy(d)){const f=r.get(d);f&&(r.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&r.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function a(){return n}function u(d){let f=0;for(;f<n.length&&Dk(d,n[f])>=0&&(d.record.path!==n[f].record.path||!Wy(d,n[f]));)f++;n.splice(f,0,d),d.record.name&&!Hp(d)&&r.set(d.record.name,d)}function c(d,f){let m,p={},h,_;if("name"in d&&d.name){if(m=r.get(d.name),!m)throw Co(1,{location:d});_=m.record.name,p=bt(jp(f.params,m.keys.filter(b=>!b.optional).map(b=>b.name)),d.params&&jp(d.params,m.keys.map(b=>b.name))),h=m.stringify(p)}else if("path"in d)h=d.path,m=n.find(b=>b.re.test(h)),m&&(p=m.parse(h),_=m.record.name);else{if(m=f.name?r.get(f.name):n.find(b=>b.re.test(f.path)),!m)throw Co(1,{location:d,currentLocation:f});_=m.record.name,p=bt({},f.params,d.params),h=m.stringify(p)}const w=[];let v=m;for(;v;)w.unshift(v.record),v=v.parent;return{name:_,path:h,params:p,matched:w,meta:Bk(w)}}return e.forEach(d=>o(d)),{addRoute:o,resolve:c,removeRoute:i,getRoutes:a,getRecordMatcher:s}}function jp(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Mk(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Vk(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Vk(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function Hp(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Bk(e){return e.reduce((t,n)=>bt(t,n.meta),{})}function qp(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Wy(e,t){return t.children.some(n=>n===e||Wy(e,n))}const Gy=/#/g,Uk=/&/g,jk=/\//g,Hk=/=/g,qk=/\?/g,Ky=/\+/g,Wk=/%5B/g,Gk=/%5D/g,Zy=/%5E/g,Kk=/%60/g,Yy=/%7B/g,Zk=/%7C/g,Jy=/%7D/g,Yk=/%20/g;function Em(e){return encodeURI(""+e).replace(Zk,"|").replace(Wk,"[").replace(Gk,"]")}function Jk(e){return Em(e).replace(Yy,"{").replace(Jy,"}").replace(Zy,"^")}function ud(e){return Em(e).replace(Ky,"%2B").replace(Yk,"+").replace(Gy,"%23").replace(Uk,"%26").replace(Kk,"`").replace(Yy,"{").replace(Jy,"}").replace(Zy,"^")}function Xk(e){return ud(e).replace(Hk,"%3D")}function Qk(e){return Em(e).replace(Gy,"%23").replace(qk,"%3F")}function e2(e){return e==null?"":Qk(e).replace(jk,"%2F")}function Pl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function t2(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<r.length;++s){const o=r[s].replace(Ky," "),i=o.indexOf("="),a=Pl(i<0?o:o.slice(0,i)),u=i<0?null:Pl(o.slice(i+1));if(a in t){let c=t[a];ar(c)||(c=t[a]=[c]),c.push(u)}else t[a]=u}return t}function Wp(e){let t="";for(let n in e){const r=e[n];if(n=Xk(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(ar(r)?r.map(o=>o&&ud(o)):[r&&ud(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function n2(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ar(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const r2=Symbol(""),Gp=Symbol(""),Sm=Symbol(""),Xy=Symbol(""),cd=Symbol("");function Bo(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Yr(e,t,n,r,s){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((i,a)=>{const u=f=>{f===!1?a(Co(4,{from:n,to:t})):f instanceof Error?a(f):$k(f)?a(Co(2,{from:t,to:f})):(o&&r.enterCallbacks[s]===o&&typeof f=="function"&&o.push(f),i())},c=e.call(r&&r.instances[s],t,n,u);let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(f=>a(f))})}function nc(e,t,n,r){const s=[];for(const o of e)for(const i in o.components){let a=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(s2(a)){const c=(a.__vccOpts||a)[t];c&&s.push(Yr(c,n,r,o,i))}else{let u=a();s.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const d=uk(c)?c.default:c;o.components[i]=d;const m=(d.__vccOpts||d)[t];return m&&Yr(m,n,r,o,i)()}))}}return s}function s2(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Kp(e){const t=ir(Sm),n=ir(Xy),r=$t(()=>t.resolve(xn(e.to))),s=$t(()=>{const{matched:u}=r.value,{length:c}=u,d=u[c-1],f=n.matched;if(!d||!f.length)return-1;const m=f.findIndex(wo.bind(null,d));if(m>-1)return m;const p=Zp(u[c-2]);return c>1&&Zp(d)===p&&f[f.length-1].path!==p?f.findIndex(wo.bind(null,u[c-2])):m}),o=$t(()=>s.value>-1&&l2(n.params,r.value.params)),i=$t(()=>s.value>-1&&s.value===n.matched.length-1&&Uy(n.params,r.value.params));function a(u={}){return a2(u)?t[xn(e.replace)?"replace":"push"](xn(e.to)).catch(_i):Promise.resolve()}return{route:r,href:$t(()=>r.value.href),isActive:o,isExactActive:i,navigate:a}}const o2=Ao({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:Kp,setup(e,{slots:t}){const n=Rs(Kp(e)),{options:r}=ir(Sm),s=$t(()=>({[Yp(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Yp(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:_r("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),i2=o2;function a2(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 l2(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!ar(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function Zp(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Yp=(e,t,n)=>e!=null?e:t!=null?t:n,u2=Ao({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ir(cd),s=$t(()=>e.route||r.value),o=ir(Gp,0),i=$t(()=>{let c=xn(o);const{matched:d}=s.value;let f;for(;(f=d[c])&&!f.components;)c++;return c}),a=$t(()=>s.value.matched[i.value]);di(Gp,$t(()=>i.value+1)),di(r2,a),di(cd,s);const u=Qt();return kt(()=>[u.value,a.value,e.name],([c,d,f],[m,p,h])=>{d&&(d.instances[f]=c,p&&p!==d&&c&&c===m&&(d.leaveGuards.size||(d.leaveGuards=p.leaveGuards),d.updateGuards.size||(d.updateGuards=p.updateGuards))),c&&d&&(!p||!wo(d,p)||!m)&&(d.enterCallbacks[f]||[]).forEach(_=>_(c))},{flush:"post"}),()=>{const c=s.value,d=e.name,f=a.value,m=f&&f.components[d];if(!m)return Jp(n.default,{Component:m,route:c});const p=f.props[d],h=p?p===!0?c.params:typeof p=="function"?p(c):p:null,w=_r(m,bt({},h,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(f.instances[d]=null)},ref:u}));return Jp(n.default,{Component:w,route:c})||w}}});function Jp(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const c2=u2;function d2(e){const t=Nk(e.routes,e),n=e.parseQuery||t2,r=e.stringifyQuery||Wp,s=e.history,o=Bo(),i=Bo(),a=Bo(),u=D_(Hr);let c=Hr;eo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=ec.bind(null,W=>""+W),f=ec.bind(null,e2),m=ec.bind(null,Pl);function p(W,ye){let le,xe;return Hy(W)?(le=t.getRecordMatcher(W),xe=ye):xe=W,t.addRoute(xe,le)}function h(W){const ye=t.getRecordMatcher(W);ye&&t.removeRoute(ye)}function _(){return t.getRoutes().map(W=>W.record)}function w(W){return!!t.getRecordMatcher(W)}function v(W,ye){if(ye=bt({},ye||u.value),typeof W=="string"){const N=tc(n,W,ye.path),ee=t.resolve({path:N.path},ye),re=s.createHref(N.fullPath);return bt(N,ee,{params:m(ee.params),hash:Pl(N.hash),redirectedFrom:void 0,href:re})}let le;if("path"in W)le=bt({},W,{path:tc(n,W.path,ye.path).path});else{const N=bt({},W.params);for(const ee in N)N[ee]==null&&delete N[ee];le=bt({},W,{params:f(N)}),ye.params=f(ye.params)}const xe=t.resolve(le,ye),Ue=W.hash||"";xe.params=d(m(xe.params));const O=mk(r,bt({},W,{hash:Jk(Ue),path:xe.path})),D=s.createHref(O);return bt({fullPath:O,hash:Ue,query:r===Wp?n2(W.query):W.query||{}},xe,{redirectedFrom:void 0,href:D})}function b(W){return typeof W=="string"?tc(n,W,u.value.path):bt({},W)}function k(W,ye){if(c!==W)return Co(8,{from:ye,to:W})}function z(W){return M(W)}function S(W){return z(bt(b(W),{replace:!0}))}function T(W){const ye=W.matched[W.matched.length-1];if(ye&&ye.redirect){const{redirect:le}=ye;let xe=typeof le=="function"?le(W):le;return typeof xe=="string"&&(xe=xe.includes("?")||xe.includes("#")?xe=b(xe):{path:xe},xe.params={}),bt({query:W.query,hash:W.hash,params:"path"in xe?{}:W.params},xe)}}function M(W,ye){const le=c=v(W),xe=u.value,Ue=W.state,O=W.force,D=W.replace===!0,N=T(le);if(N)return M(bt(b(N),{state:typeof N=="object"?bt({},Ue,N.state):Ue,force:O,replace:D}),ye||le);const ee=le;ee.redirectedFrom=ye;let re;return!O&&fk(r,xe,le)&&(re=Co(16,{to:ee,from:xe}),ve(xe,xe,!0,!1)),(re?Promise.resolve(re):j(ee,xe)).catch(oe=>Sr(oe)?Sr(oe,2)?oe:Ze(oe):Ce(oe,ee,xe)).then(oe=>{if(oe){if(Sr(oe,2))return M(bt({replace:D},b(oe.to),{state:typeof oe.to=="object"?bt({},Ue,oe.to.state):Ue,force:O}),ye||ee)}else oe=Q(ee,xe,!0,D,Ue);return K(ee,xe,oe),oe})}function L(W,ye){const le=k(W,ye);return le?Promise.reject(le):Promise.resolve()}function F(W){const ye=be.values().next().value;return ye&&typeof ye.runWithContext=="function"?ye.runWithContext(W):W()}function j(W,ye){let le;const[xe,Ue,O]=m2(W,ye);le=nc(xe.reverse(),"beforeRouteLeave",W,ye);for(const N of xe)N.leaveGuards.forEach(ee=>{le.push(Yr(ee,W,ye))});const D=L.bind(null,W,ye);return le.push(D),Le(le).then(()=>{le=[];for(const N of o.list())le.push(Yr(N,W,ye));return le.push(D),Le(le)}).then(()=>{le=nc(Ue,"beforeRouteUpdate",W,ye);for(const N of Ue)N.updateGuards.forEach(ee=>{le.push(Yr(ee,W,ye))});return le.push(D),Le(le)}).then(()=>{le=[];for(const N of W.matched)if(N.beforeEnter&&!ye.matched.includes(N))if(ar(N.beforeEnter))for(const ee of N.beforeEnter)le.push(Yr(ee,W,ye));else le.push(Yr(N.beforeEnter,W,ye));return le.push(D),Le(le)}).then(()=>(W.matched.forEach(N=>N.enterCallbacks={}),le=nc(O,"beforeRouteEnter",W,ye),le.push(D),Le(le))).then(()=>{le=[];for(const N of i.list())le.push(Yr(N,W,ye));return le.push(D),Le(le)}).catch(N=>Sr(N,8)?N:Promise.reject(N))}function K(W,ye,le){for(const xe of a.list())F(()=>xe(W,ye,le))}function Q(W,ye,le,xe,Ue){const O=k(W,ye);if(O)return O;const D=ye===Hr,N=eo?history.state:{};le&&(xe||D?s.replace(W.fullPath,bt({scroll:D&&N&&N.scroll},Ue)):s.push(W.fullPath,Ue)),u.value=W,ve(W,ye,le,D),Ze()}let U;function G(){U||(U=s.listen((W,ye,le)=>{if(!Fe.listening)return;const xe=v(W),Ue=T(xe);if(Ue){M(bt(Ue,{replace:!0}),xe).catch(_i);return}c=xe;const O=u.value;eo&&wk(Np(O.fullPath,le.delta),_u()),j(xe,O).catch(D=>Sr(D,12)?D:Sr(D,2)?(M(D.to,xe).then(N=>{Sr(N,20)&&!le.delta&&le.type===Li.pop&&s.go(-1,!1)}).catch(_i),Promise.reject()):(le.delta&&s.go(-le.delta,!1),Ce(D,xe,O))).then(D=>{D=D||Q(xe,O,!1),D&&(le.delta&&!Sr(D,8)?s.go(-le.delta,!1):le.type===Li.pop&&Sr(D,20)&&s.go(-1,!1)),K(xe,O,D)}).catch(_i)}))}let me=Bo(),se=Bo(),ae;function Ce(W,ye,le){Ze(W);const xe=se.list();return xe.length?xe.forEach(Ue=>Ue(W,ye,le)):console.error(W),Promise.reject(W)}function Ke(){return ae&&u.value!==Hr?Promise.resolve():new Promise((W,ye)=>{me.add([W,ye])})}function Ze(W){return ae||(ae=!W,G(),me.list().forEach(([ye,le])=>W?le(W):ye()),me.reset()),W}function ve(W,ye,le,xe){const{scrollBehavior:Ue}=e;if(!eo||!Ue)return Promise.resolve();const O=!le&&Ck(Np(W.fullPath,0))||(xe||!le)&&history.state&&history.state.scroll||null;return Hi().then(()=>Ue(W,ye,O)).then(D=>D&&bk(D)).catch(D=>Ce(D,W,ye))}const X=W=>s.go(W);let ge;const be=new Set,Fe={currentRoute:u,listening:!0,addRoute:p,removeRoute:h,hasRoute:w,getRoutes:_,resolve:v,options:e,push:z,replace:S,go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:se.add,isReady:Ke,install(W){const ye=this;W.component("RouterLink",i2),W.component("RouterView",c2),W.config.globalProperties.$router=ye,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>xn(u)}),eo&&!ge&&u.value===Hr&&(ge=!0,z(s.location).catch(Ue=>{}));const le={};for(const Ue in Hr)le[Ue]=$t(()=>u.value[Ue]);W.provide(Sm,ye),W.provide(Xy,Rs(le)),W.provide(cd,u);const xe=W.unmount;be.add(W),W.unmount=function(){be.delete(W),be.size<1&&(c=Hr,U&&U(),U=null,u.value=Hr,ge=!1,ae=!1),xe()}}};function Le(W){return W.reduce((ye,le)=>ye.then(()=>F(le)),Promise.resolve())}return Fe}function m2(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const a=t.matched[i];a&&(e.matched.find(c=>wo(c,a))?r.push(a):n.push(a));const u=e.matched[i];u&&(t.matched.find(c=>wo(c,u))||s.push(u))}return[n,r,s]}var pe=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};const f2={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}}},p2={class:"section fd-content"},h2={class:"container"},_2={class:"columns is-centered"},g2={class:"column is-four-fifths"},y2={key:0},v2={ref:"options_ref",style:{height:"1px"}},b2={class:"buttons is-centered",style:{"margin-bottom":"6px","margin-top":"16px"}},w2={class:"icon is-small"},C2={class:"icon is-small"},z2={id:"top",class:"level"},x2={class:"level-left"},k2={class:"level-item has-text-centered-mobile"},E2={class:"level-right has-text-centered-mobile"},S2={style:{"margin-top":"16px"}};function $2(e,t,n,r,s,o){const i=$("mdicon");return E(),P("section",p2,[l("div",h2,[l("div",_2,[l("div",g2,[e.$slots.options?(E(),P("section",y2,[l("div",v2,null,512),vt(e.$slots,"options"),l("nav",b2,[s.options_visible?(E(),P("a",{key:1,class:"button is-small is-white",onClick:t[1]||(t[1]=(...a)=>o.scroll_to_content&&o.scroll_to_content(...a))},[l("span",C2,[C(i,{name:"chevron-up",size:"16"})])])):(E(),P("a",{key:0,class:"button is-small is-white",onClick:t[0]||(t[0]=(...a)=>o.scroll_to_top&&o.scroll_to_top(...a))},[l("span",w2,[C(i,{name:"chevron-down",size:"16"})])]))])])):Y("",!0),l("div",{class:We({"fd-content-with-option":e.$slots.options})},[l("nav",z2,[l("div",x2,[l("div",k2,[l("div",null,[vt(e.$slots,"heading-left")])])]),l("div",E2,[vt(e.$slots,"heading-right")])]),vt(e.$slots,"content"),l("div",S2,[vt(e.$slots,"footer")])],2)])])])])}var mt=pe(f2,[["render",$2]]);function Qy(e,t){return function(){return e.apply(t,arguments)}}const{toString:A2}=Object.prototype,{getPrototypeOf:$m}=Object,gu=(e=>t=>{const n=A2.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),wr=e=>(e=e.toLowerCase(),t=>gu(t)===e),yu=e=>t=>typeof t===e,{isArray:Po}=Array,Ni=yu("undefined");function T2(e){return e!==null&&!Ni(e)&&e.constructor!==null&&!Ni(e.constructor)&&qn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ev=wr("ArrayBuffer");function O2(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ev(e.buffer),t}const P2=yu("string"),qn=yu("function"),tv=yu("number"),vu=e=>e!==null&&typeof e=="object",D2=e=>e===!0||e===!1,dl=e=>{if(gu(e)!=="object")return!1;const t=$m(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},F2=wr("Date"),I2=wr("File"),R2=wr("Blob"),L2=wr("FileList"),N2=e=>vu(e)&&qn(e.pipe),M2=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||qn(e.append)&&((t=gu(e))==="formdata"||t==="object"&&qn(e.toString)&&e.toString()==="[object FormData]"))},V2=wr("URLSearchParams"),B2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let r,s;if(typeof e!="object"&&(e=[e]),Po(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function nv(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const rv=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),sv=e=>!Ni(e)&&e!==rv;function dd(){const{caseless:e}=sv(this)&&this||{},t={},n=(r,s)=>{const o=e&&nv(t,s)||s;dl(t[o])&&dl(r)?t[o]=dd(t[o],r):dl(r)?t[o]=dd({},r):Po(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Zi(arguments[r],n);return t}const U2=(e,t,n,{allOwnKeys:r}={})=>(Zi(t,(s,o)=>{n&&qn(s)?e[o]=Qy(s,n):e[o]=s},{allOwnKeys:r}),e),j2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),H2=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},q2=(e,t,n,r)=>{let s,o,i;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&$m(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},W2=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},G2=e=>{if(!e)return null;if(Po(e))return e;let t=e.length;if(!tv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},K2=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&$m(Uint8Array)),Z2=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Y2=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},J2=wr("HTMLFormElement"),X2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Xp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Q2=wr("RegExp"),ov=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Zi(n,(s,o)=>{t(s,o,e)!==!1&&(r[o]=s)}),Object.defineProperties(e,r)},eE=e=>{ov(e,(t,n)=>{if(qn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(!!qn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},tE=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return Po(e)?r(e):r(String(e).split(t)),n},nE=()=>{},rE=(e,t)=>(e=+e,Number.isFinite(e)?e:t),rc="abcdefghijklmnopqrstuvwxyz",Qp="0123456789",iv={DIGIT:Qp,ALPHA:rc,ALPHA_DIGIT:rc+rc.toUpperCase()+Qp},sE=(e=16,t=iv.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function oE(e){return!!(e&&qn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const iE=e=>{const t=new Array(10),n=(r,s)=>{if(vu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=Po(r)?[]:{};return Zi(r,(i,a)=>{const u=n(i,s+1);!Ni(u)&&(o[a]=u)}),t[s]=void 0,o}}return r};return n(e,0)},aE=wr("AsyncFunction"),lE=e=>e&&(vu(e)||qn(e))&&qn(e.then)&&qn(e.catch);var ie={isArray:Po,isArrayBuffer:ev,isBuffer:T2,isFormData:M2,isArrayBufferView:O2,isString:P2,isNumber:tv,isBoolean:D2,isObject:vu,isPlainObject:dl,isUndefined:Ni,isDate:F2,isFile:I2,isBlob:R2,isRegExp:Q2,isFunction:qn,isStream:N2,isURLSearchParams:V2,isTypedArray:K2,isFileList:L2,forEach:Zi,merge:dd,extend:U2,trim:B2,stripBOM:j2,inherits:H2,toFlatObject:q2,kindOf:gu,kindOfTest:wr,endsWith:W2,toArray:G2,forEachEntry:Z2,matchAll:Y2,isHTMLForm:J2,hasOwnProperty:Xp,hasOwnProp:Xp,reduceDescriptors:ov,freezeMethods:eE,toObjectSet:tE,toCamelCase:X2,noop:nE,toFiniteNumber:rE,findKey:nv,global:rv,isContextDefined:sv,ALPHABET:iv,generateString:sE,isSpecCompliantForm:oE,toJSONObject:iE,isAsyncFn:aE,isThenable:lE};function ht(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}ie.inherits(ht,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:ie.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const av=ht.prototype,lv={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{lv[e]={value:e}});Object.defineProperties(ht,lv);Object.defineProperty(av,"isAxiosError",{value:!0});ht.from=(e,t,n,r,s,o)=>{const i=Object.create(av);return ie.toFlatObject(e,i,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),ht.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};var uE=null;function md(e){return ie.isPlainObject(e)||ie.isArray(e)}function uv(e){return ie.endsWith(e,"[]")?e.slice(0,-2):e}function eh(e,t,n){return e?e.concat(t).map(function(s,o){return s=uv(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function cE(e){return ie.isArray(e)&&!e.some(md)}const dE=ie.toFlatObject(ie,{},null,function(t){return/^is[A-Z]/.test(t)});function bu(e,t,n){if(!ie.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ie.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,w){return!ie.isUndefined(w[_])});const r=n.metaTokens,s=n.visitor||d,o=n.dots,i=n.indexes,u=(n.Blob||typeof Blob!="undefined"&&Blob)&&ie.isSpecCompliantForm(t);if(!ie.isFunction(s))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(ie.isDate(h))return h.toISOString();if(!u&&ie.isBlob(h))throw new ht("Blob is not supported. Use a Buffer instead.");return ie.isArrayBuffer(h)||ie.isTypedArray(h)?u&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,_,w){let v=h;if(h&&!w&&typeof h=="object"){if(ie.endsWith(_,"{}"))_=r?_:_.slice(0,-2),h=JSON.stringify(h);else if(ie.isArray(h)&&cE(h)||(ie.isFileList(h)||ie.endsWith(_,"[]"))&&(v=ie.toArray(h)))return _=uv(_),v.forEach(function(k,z){!(ie.isUndefined(k)||k===null)&&t.append(i===!0?eh([_],z,o):i===null?_:_+"[]",c(k))}),!1}return md(h)?!0:(t.append(eh(w,_,o),c(h)),!1)}const f=[],m=Object.assign(dE,{defaultVisitor:d,convertValue:c,isVisitable:md});function p(h,_){if(!ie.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+_.join("."));f.push(h),ie.forEach(h,function(v,b){(!(ie.isUndefined(v)||v===null)&&s.call(t,v,ie.isString(b)?b.trim():b,_,m))===!0&&p(v,_?_.concat(b):[b])}),f.pop()}}if(!ie.isObject(e))throw new TypeError("data must be an object");return p(e),t}function th(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Am(e,t){this._pairs=[],e&&bu(e,this,t)}const cv=Am.prototype;cv.append=function(t,n){this._pairs.push([t,n])};cv.toString=function(t){const n=t?function(r){return t.call(this,r,th)}:th;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function mE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function dv(e,t,n){if(!t)return e;const r=n&&n.encode||mE,s=n&&n.serialize;let o;if(s?o=s(t,n):o=ie.isURLSearchParams(t)?t.toString():new Am(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class fE{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ie.forEach(this.handlers,function(r){r!==null&&t(r)})}}var nh=fE,mv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pE=typeof URLSearchParams!="undefined"?URLSearchParams:Am,hE=typeof FormData!="undefined"?FormData:null,_E=typeof Blob!="undefined"?Blob:null;const gE=(()=>{let e;return typeof navigator!="undefined"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"})(),yE=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")();var gr={isBrowser:!0,classes:{URLSearchParams:pE,FormData:hE,Blob:_E},isStandardBrowserEnv:gE,isStandardBrowserWebWorkerEnv:yE,protocols:["http","https","file","blob","url","data"]};function vE(e,t){return bu(e,new gr.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return gr.isNode&&ie.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function bE(e){return ie.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function wE(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function fv(e){function t(n,r,s,o){let i=n[o++];const a=Number.isFinite(+i),u=o>=n.length;return i=!i&&ie.isArray(s)?s.length:i,u?(ie.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!ie.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&ie.isArray(s[i])&&(s[i]=wE(s[i])),!a)}if(ie.isFormData(e)&&ie.isFunction(e.entries)){const n={};return ie.forEachEntry(e,(r,s)=>{t(bE(r),s,n,0)}),n}return null}const CE={"Content-Type":void 0};function zE(e,t,n){if(ie.isString(e))try{return(t||JSON.parse)(e),ie.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const wu={transitional:mv,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=ie.isObject(t);if(o&&ie.isHTMLForm(t)&&(t=new FormData(t)),ie.isFormData(t))return s&&s?JSON.stringify(fv(t)):t;if(ie.isArrayBuffer(t)||ie.isBuffer(t)||ie.isStream(t)||ie.isFile(t)||ie.isBlob(t))return t;if(ie.isArrayBufferView(t))return t.buffer;if(ie.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return vE(t,this.formSerializer).toString();if((a=ie.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return bu(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),zE(t)):t}],transformResponse:[function(t){const n=this.transitional||wu.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&ie.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?ht.from(a,ht.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gr.classes.FormData,Blob:gr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ie.forEach(["delete","get","head"],function(t){wu.headers[t]={}});ie.forEach(["post","put","patch"],function(t){wu.headers[t]=ie.merge(CE)});var Tm=wu;const xE=ie.toObjectSet(["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"]);var kE=e=>{const t={};let n,r,s;return e&&e.split(`
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&xE[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};const rh=Symbol("internals");function Uo(e){return e&&String(e).trim().toLowerCase()}function ml(e){return e===!1||e==null?e:ie.isArray(e)?e.map(ml):String(e)}function EE(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const SE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function sc(e,t,n,r,s){if(ie.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!ie.isString(t)){if(ie.isString(r))return t.indexOf(r)!==-1;if(ie.isRegExp(r))return r.test(t)}}function $E(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function AE(e,t){const n=ie.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class Cu{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(a,u,c){const d=Uo(u);if(!d)throw new Error("header name must be a non-empty string");const f=ie.findKey(s,d);(!f||s[f]===void 0||c===!0||c===void 0&&s[f]!==!1)&&(s[f||u]=ml(a))}const i=(a,u)=>ie.forEach(a,(c,d)=>o(c,d,u));return ie.isPlainObject(t)||t instanceof this.constructor?i(t,n):ie.isString(t)&&(t=t.trim())&&!SE(t)?i(kE(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=Uo(t),t){const r=ie.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return EE(s);if(ie.isFunction(n))return n.call(this,s,r);if(ie.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Uo(t),t){const r=ie.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||sc(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=Uo(i),i){const a=ie.findKey(r,i);a&&(!n||sc(r,r[a],a,n))&&(delete r[a],s=!0)}}return ie.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||sc(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return ie.forEach(this,(s,o)=>{const i=ie.findKey(r,o);if(i){n[i]=ml(s),delete n[o];return}const a=t?$E(o):String(o).trim();a!==o&&delete n[o],n[a]=ml(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ie.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&ie.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[rh]=this[rh]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=Uo(i);r[a]||(AE(s,i),r[a]=!0)}return ie.isArray(t)?t.forEach(o):o(t),this}}Cu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ie.freezeMethods(Cu.prototype);ie.freezeMethods(Cu);var Dr=Cu;function oc(e,t){const n=this||Tm,r=t||n,s=Dr.from(r.headers);let o=r.data;return ie.forEach(e,function(a){o=a.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function pv(e){return!!(e&&e.__CANCEL__)}function Yi(e,t,n){ht.call(this,e==null?"canceled":e,ht.ERR_CANCELED,t,n),this.name="CanceledError"}ie.inherits(Yi,ht,{__CANCEL__:!0});function TE(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ht("Request failed with status code "+n.status,[ht.ERR_BAD_REQUEST,ht.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}var OE=gr.isStandardBrowserEnv?function(){return{write:function(n,r,s,o,i,a){const u=[];u.push(n+"="+encodeURIComponent(r)),ie.isNumber(s)&&u.push("expires="+new Date(s).toGMTString()),ie.isString(o)&&u.push("path="+o),ie.isString(i)&&u.push("domain="+i),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function PE(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function DE(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function hv(e,t){return e&&!PE(t)?DE(e,t):t}var FE=gr.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const a=ie.isString(i)?s(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function IE(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function RE(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=r[o];i||(i=c),n[s]=u,r[s]=c;let f=o,m=0;for(;f!==s;)m+=n[f++],f=f%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-i<t)return;const p=d&&c-d;return p?Math.round(m*1e3/p):void 0}}function sh(e,t){let n=0;const r=RE(50,250);return s=>{const o=s.loaded,i=s.lengthComputable?s.total:void 0,a=o-n,u=r(a),c=o<=i;n=o;const d={loaded:o,total:i,progress:i?o/i:void 0,bytes:a,rate:u||void 0,estimated:u&&i&&c?(i-o)/u:void 0,event:s};d[t?"download":"upload"]=!0,e(d)}}const LE=typeof XMLHttpRequest!="undefined";var NE=LE&&function(e){return new Promise(function(n,r){let s=e.data;const o=Dr.from(e.headers).normalize(),i=e.responseType;let a;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}ie.isFormData(s)&&(gr.isStandardBrowserEnv||gr.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(p+":"+h))}const d=hv(e.baseURL,e.url);c.open(e.method.toUpperCase(),dv(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function f(){if(!c)return;const p=Dr.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),_={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:p,config:e,request:c};TE(function(v){n(v),u()},function(v){r(v),u()},_),c=null}if("onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){!c||(r(new ht("Request aborted",ht.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new ht("Network Error",ht.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const _=e.transitional||mv;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),r(new ht(h,_.clarifyTimeoutError?ht.ETIMEDOUT:ht.ECONNABORTED,e,c)),c=null},gr.isStandardBrowserEnv){const p=(e.withCredentials||FE(d))&&e.xsrfCookieName&&OE.read(e.xsrfCookieName);p&&o.set(e.xsrfHeaderName,p)}s===void 0&&o.setContentType(null),"setRequestHeader"in c&&ie.forEach(o.toJSON(),function(h,_){c.setRequestHeader(_,h)}),ie.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",sh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",sh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=p=>{!c||(r(!p||p.type?new Yi(null,e,c):p),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const m=IE(d);if(m&&gr.protocols.indexOf(m)===-1){r(new ht("Unsupported protocol "+m+":",ht.ERR_BAD_REQUEST,e));return}c.send(s||null)})};const fl={http:uE,xhr:NE};ie.forEach(fl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var ME={getAdapter:e=>{e=ie.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let s=0;s<t&&(n=e[s],!(r=ie.isString(n)?fl[n.toLowerCase()]:n));s++);if(!r)throw r===!1?new ht(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(ie.hasOwnProp(fl,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!ie.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:fl};function ic(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Yi(null,e)}function oh(e){return ic(e),e.headers=Dr.from(e.headers),e.data=oc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ME.getAdapter(e.adapter||Tm.adapter)(e).then(function(r){return ic(e),r.data=oc.call(e,e.transformResponse,r),r.headers=Dr.from(r.headers),r},function(r){return pv(r)||(ic(e),r&&r.response&&(r.response.data=oc.call(e,e.transformResponse,r.response),r.response.headers=Dr.from(r.response.headers))),Promise.reject(r)})}const ih=e=>e instanceof Dr?e.toJSON():e;function zo(e,t){t=t||{};const n={};function r(c,d,f){return ie.isPlainObject(c)&&ie.isPlainObject(d)?ie.merge.call({caseless:f},c,d):ie.isPlainObject(d)?ie.merge({},d):ie.isArray(d)?d.slice():d}function s(c,d,f){if(ie.isUndefined(d)){if(!ie.isUndefined(c))return r(void 0,c,f)}else return r(c,d,f)}function o(c,d){if(!ie.isUndefined(d))return r(void 0,d)}function i(c,d){if(ie.isUndefined(d)){if(!ie.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function a(c,d,f){if(f in t)return r(c,d);if(f in e)return r(void 0,c)}const u={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(c,d)=>s(ih(c),ih(d),!0)};return ie.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=u[d]||s,m=f(e[d],t[d],d);ie.isUndefined(m)&&f!==a||(n[d]=m)}),n}const _v="1.4.0",Om={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Om[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ah={};Om.transitional=function(t,n,r){function s(o,i){return"[Axios v"+_v+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,a)=>{if(t===!1)throw new ht(s(i," has been removed"+(n?" in "+n:"")),ht.ERR_DEPRECATED);return n&&!ah[i]&&(ah[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,a):!0}};function VE(e,t,n){if(typeof e!="object")throw new ht("options must be an object",ht.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const a=e[o],u=a===void 0||i(a,o,e);if(u!==!0)throw new ht("option "+o+" must be "+u,ht.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ht("Unknown option "+o,ht.ERR_BAD_OPTION)}}var fd={assertOptions:VE,validators:Om};const qr=fd.validators;class Dl{constructor(t){this.defaults=t,this.interceptors={request:new nh,response:new nh}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=zo(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&fd.assertOptions(r,{silentJSONParsing:qr.transitional(qr.boolean),forcedJSONParsing:qr.transitional(qr.boolean),clarifyTimeoutError:qr.transitional(qr.boolean)},!1),s!=null&&(ie.isFunction(s)?n.paramsSerializer={serialize:s}:fd.assertOptions(s,{encode:qr.function,serialize:qr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=o&&ie.merge(o.common,o[n.method]),i&&ie.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=Dr.concat(i,o);const a=[];let u=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(u=u&&_.synchronous,a.unshift(_.fulfilled,_.rejected))});const c=[];this.interceptors.response.forEach(function(_){c.push(_.fulfilled,_.rejected)});let d,f=0,m;if(!u){const h=[oh.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,c),m=h.length,d=Promise.resolve(n);f<m;)d=d.then(h[f++],h[f++]);return d}m=a.length;let p=n;for(f=0;f<m;){const h=a[f++],_=a[f++];try{p=h(p)}catch(w){_.call(this,w);break}}try{d=oh.call(this,p)}catch(h){return Promise.reject(h)}for(f=0,m=c.length;f<m;)d=d.then(c[f++],c[f++]);return d}getUri(t){t=zo(this.defaults,t);const n=hv(t.baseURL,t.url);return dv(n,t.params,t.paramsSerializer)}}ie.forEach(["delete","get","head","options"],function(t){Dl.prototype[t]=function(n,r){return this.request(zo(r||{},{method:t,url:n,data:(r||{}).data}))}});ie.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,a){return this.request(zo(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Dl.prototype[t]=n(),Dl.prototype[t+"Form"]=n(!0)});var pl=Dl;class Pm{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,a){r.reason||(r.reason=new Yi(o,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Pm(function(s){t=s}),cancel:t}}}var BE=Pm;function UE(e){return function(n){return e.apply(null,n)}}function jE(e){return ie.isObject(e)&&e.isAxiosError===!0}const pd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pd).forEach(([e,t])=>{pd[t]=e});var HE=pd;function gv(e){const t=new pl(e),n=Qy(pl.prototype.request,t);return ie.extend(n,pl.prototype,t,{allOwnKeys:!0}),ie.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return gv(zo(e,s))},n}const tn=gv(Tm);tn.Axios=pl;tn.CanceledError=Yi;tn.CancelToken=BE;tn.isCancel=pv;tn.VERSION=_v;tn.toFormData=bu;tn.AxiosError=ht;tn.Cancel=tn.CanceledError;tn.all=function(t){return Promise.all(t)};tn.spread=UE;tn.isAxiosError=jE;tn.mergeConfig=zo;tn.AxiosHeaders=Dr;tn.formToJSON=e=>fv(ie.isHTMLForm(e)?new FormData(e):e);tn.HttpStatusCode=HE;tn.default=tn;var $e=tn;const{t:to}=mu.global;$e.interceptors.response.use(function(e){return e},function(e){return e.request.status&&e.request.responseURL&&at.dispatch("add_notification",{text:to("server.request-failed",{status:e.request.status,cause:e.request.statusText,url:e.request.responseURL}),type:"danger"}),Promise.reject(e)});var q={config(){return $e.get("./api/config")},settings(){return $e.get("./api/settings")},settings_update(e,t){return $e.put("./api/settings/"+e+"/"+t.name,t)},library_stats(){return $e.get("./api/library")},library_update(e){const t={};return e&&(t.scan_kind=e),$e.put("./api/update",void 0,{params:t})},library_rescan(e){const t={};return e&&(t.scan_kind=e),$e.put("./api/rescan",void 0,{params:t})},library_count(e){return $e.get("./api/library/count?expression="+e)},queue(){return $e.get("./api/queue")},queue_clear(){return $e.put("./api/queue/clear")},queue_remove(e){return $e.delete("./api/queue/items/"+e)},queue_move(e,t){return $e.put("./api/queue/items/"+e+"?new_position="+t)},queue_add(e){return $e.post("./api/queue/items/add?uris="+e).then(t=>(at.dispatch("add_notification",{text:to("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),$e.post("./api/queue/items/add?uris="+e+"&position="+t).then(n=>(at.dispatch("add_notification",{text:to("server.appended-tracks",{count:n.data.count}),type:"info",timeout:2e3}),Promise.resolve(n)))},queue_expression_add(e){const t={};return t.expression=e,$e.post("./api/queue/items/add",void 0,{params:t}).then(n=>(at.dispatch("add_notification",{text:to("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),$e.post("./api/queue/items/add",void 0,{params:t}).then(n=>(at.dispatch("add_notification",{text:to("server.appended-tracks",{count:n.data.count}),type:"info",timeout:2e3}),Promise.resolve(n)))},queue_save_playlist(e){return $e.post("./api/queue/save",void 0,{params:{name:e}}).then(t=>(at.dispatch("add_notification",{text:to("server.queue-saved",{name:e}),type:"info",timeout:2e3}),Promise.resolve(t)))},player_status(){return $e.get("./api/player")},player_play_uri(e,t,n=void 0){const r={};return r.uris=e,r.shuffle=t?"true":"false",r.clear="true",r.playback="start",r.playback_from_position=n,$e.post("./api/queue/items/add",void 0,{params:r})},player_play_expression(e,t,n=void 0){const r={};return r.expression=e,r.shuffle=t?"true":"false",r.clear="true",r.playback="start",r.playback_from_position=n,$e.post("./api/queue/items/add",void 0,{params:r})},player_play(e={}){return $e.put("./api/player/play",void 0,{params:e})},player_playpos(e){return $e.put("./api/player/play?position="+e)},player_playid(e){return $e.put("./api/player/play?item_id="+e)},player_pause(){return $e.put("./api/player/pause")},player_stop(){return $e.put("./api/player/stop")},player_next(){return $e.put("./api/player/next")},player_previous(){return $e.put("./api/player/previous")},player_shuffle(e){const t=e?"true":"false";return $e.put("./api/player/shuffle?state="+t)},player_consume(e){const t=e?"true":"false";return $e.put("./api/player/consume?state="+t)},player_repeat(e){return $e.put("./api/player/repeat?state="+e)},player_volume(e){return $e.put("./api/player/volume?volume="+e)},player_output_volume(e,t){return $e.put("./api/player/volume?volume="+t+"&output_id="+e)},player_seek_to_pos(e){return $e.put("./api/player/seek?position_ms="+e)},player_seek(e){return $e.put("./api/player/seek?seek_ms="+e)},outputs(){return $e.get("./api/outputs")},output_update(e,t){return $e.put("./api/outputs/"+e,t)},output_toggle(e){return $e.put("./api/outputs/"+e+"/toggle")},library_artists(e=void 0){return $e.get("./api/library/artists",{params:{media_kind:e}})},library_artist(e){return $e.get("./api/library/artists/"+e)},library_artist_albums(e){return $e.get("./api/library/artists/"+e+"/albums")},library_albums(e=void 0){return $e.get("./api/library/albums",{params:{media_kind:e}})},library_album(e){return $e.get("./api/library/albums/"+e)},library_album_tracks(e,t={limit:-1,offset:0}){return $e.get("./api/library/albums/"+e+"/tracks",{params:t})},library_album_track_update(e,t){return $e.put("./api/library/albums/"+e+"/tracks",void 0,{params:t})},library_genres(e=void 0){return $e.get("./api/library/genres",{params:{media_kind:e}})},library_genre(e){return $e.get(`./api/library/genres/${encodeURIComponent(e)}`)},library_genre_albums(e){const t={type:"albums",expression:`genre is "${e}" and media_kind is music`};return $e.get("./api/search",{params:t})},library_genre_tracks(e){const t={type:"tracks",expression:`genre is "${e}" and media_kind is music`};return $e.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 $e.get("./api/search",{params:e})},library_composers(e=void 0){return $e.get("./api/library/composers",{params:{media_kind:e}})},library_composer(e){return $e.get(`./api/library/composers/${encodeURIComponent(e)}`)},library_composer_albums(e){const t={type:"albums",expression:`composer is "${e}" and media_kind is music`};return $e.get("./api/search",{params:t})},library_composer_tracks(e){const t={type:"tracks",expression:`composer is "${e}" and media_kind is music`};return $e.get("./api/search",{params:t})},library_artist_tracks(e){if(e){const t={type:"tracks",expression:'songartistid is "'+e+'"'};return $e.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 $e.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 $e.get("./api/search",{params:t})},library_add(e){return $e.post("./api/library/add",void 0,{params:{url:e}})},library_playlist_delete(e){return $e.delete("./api/library/playlists/"+e,void 0)},library_playlists(){return $e.get("./api/library/playlists")},library_playlist_folder(e=0){return $e.get("./api/library/playlists/"+e+"/playlists")},library_playlist(e){return $e.get("./api/library/playlists/"+e)},library_playlist_tracks(e){return $e.get("./api/library/playlists/"+e+"/tracks")},library_track(e){return $e.get("./api/library/tracks/"+e)},library_track_playlists(e){return $e.get("./api/library/tracks/"+e+"/playlists")},library_track_update(e,t={}){return $e.put("./api/library/tracks/"+e,void 0,{params:t})},library_files(e=void 0){const t={directory:e};return $e.get("./api/library/files",{params:t})},search(e){return $e.get("./api/search",{params:e})},spotify(){return $e.get("./api/spotify")},spotify_login(e){return $e.post("./api/spotify-login",e)},spotify_logout(){return $e.get("./api/spotify-logout")},lastfm(){return $e.get("./api/lastfm")},lastfm_login(e){return $e.post("./api/lastfm-login",e)},lastfm_logout(e){return $e.get("./api/lastfm-logout")},pairing(){return $e.get("./api/pairing")},pairing_kickoff(e){return $e.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 qE={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(){q.player_play({item_id:this.item.id})}}},WE={key:0,class:"media"},GE={key:0,class:"media-left"},KE={class:"icon has-text-grey fd-is-movable handle"},ZE=["textContent"],YE=["textContent"],JE=["textContent"],XE={class:"media-right"};function QE(e,t,n,r,s,o){const i=$("mdicon");return o.is_next||!n.show_only_next_items?(E(),P("div",WE,[n.edit_mode?(E(),P("div",GE,[l("span",KE,[C(i,{name:"drag-horizontal",size:"16"})])])):Y("",!0),l("div",{class:"media-content fd-has-action is-clipped",onClick:t[0]||(t[0]=(...a)=>o.play&&o.play(...a))},[l("h1",{class:We(["title is-6",{"has-text-primary":n.item.id===o.state.item_id,"has-text-grey-light":!o.is_next}]),textContent:g(n.item.title)},null,10,ZE),l("h2",{class:We(["subtitle is-7",{"has-text-primary":n.item.id===o.state.item_id,"has-text-grey-light":!o.is_next,"has-text-grey":o.is_next&&n.item.id!==o.state.item_id}])},[l("b",{textContent:g(n.item.artist)},null,8,YE)],2),l("h2",{class:We(["subtitle is-7",{"has-text-primary":n.item.id===o.state.item_id,"has-text-grey-light":!o.is_next,"has-text-grey":o.is_next&&n.item.id!==o.state.item_id}]),textContent:g(n.item.album)},null,10,JE)]),l("div",XE,[vt(e.$slots,"actions")])])):Y("",!0)}var eS=pe(qE,[["render",QE]]),_n=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function yv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vv(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var bv={exports:{}};(function(e){var t=function(){var n="https://api.spotify.com/v1",r=null,s=null,o=function(m,p){return m.abort=p,m},i=function(m,p){var h;if(s!==null){var _=s.defer();m(function(w){_.resolve(w)},function(w){_.reject(w)}),h=_.promise}else window.Promise&&(h=new window.Promise(m));return h?new o(h,p):null},a=function(){var m=Array.prototype.slice.call(arguments),p=m[0],h=m.slice(1);return p=p||{},h.forEach(function(_){for(var w in _)_.hasOwnProperty(w)&&(p[w]=_[w])}),p},u=function(m,p){var h="";for(var _ in p)if(p.hasOwnProperty(_)){var w=p[_];h+=encodeURIComponent(_)+"="+encodeURIComponent(w)+"&"}return h.length>0&&(h=h.substring(0,h.length-1),m=m+"?"+h),m},c=function(m,p){var h=new XMLHttpRequest,_=function(w,v){function b(T){w&&w(T),p&&p(null,T)}function k(){v&&v(h),p&&p(h,null)}var z=m.type||"GET";if(h.open(z,u(m.url,m.params)),r&&h.setRequestHeader("Authorization","Bearer "+r),h.onreadystatechange=function(){if(h.readyState===4){var T=null;try{T=h.responseText?JSON.parse(h.responseText):""}catch(M){console.error(M)}h.status>=200&&h.status<300?b(T):k()}},z==="GET")h.send(null);else{var S=null;m.postData&&(m.contentType==="image/jpeg"?(S=m.postData,h.setRequestHeader("Content-Type",m.contentType)):(S=JSON.stringify(m.postData),h.setRequestHeader("Content-Type","application/json"))),h.send(S)}};return p?(_(),null):i(_,function(){h.abort()})},d=function(m,p,h,_){var w={},v=null;typeof p=="object"?(w=p,v=h):typeof p=="function"&&(v=p);var b=m.type||"GET";return b!=="GET"&&m.postData&&!_?m.postData=a(m.postData,w):m.params=a(m.params,w),c(m,v)},f=function(){};return f.prototype={constructor:t},f.prototype.getGeneric=function(m,p){var h={url:m};return d(h,p)},f.prototype.getMe=function(m,p){var h={url:n+"/me"};return d(h,m,p)},f.prototype.getMySavedTracks=function(m,p){var h={url:n+"/me/tracks"};return d(h,m,p)},f.prototype.addToMySavedTracks=function(m,p,h){var _={url:n+"/me/tracks",type:"PUT",postData:m};return d(_,p,h)},f.prototype.removeFromMySavedTracks=function(m,p,h){var _={url:n+"/me/tracks",type:"DELETE",postData:m};return d(_,p,h)},f.prototype.containsMySavedTracks=function(m,p,h){var _={url:n+"/me/tracks/contains",params:{ids:m.join(",")}};return d(_,p,h)},f.prototype.getMySavedAlbums=function(m,p){var h={url:n+"/me/albums"};return d(h,m,p)},f.prototype.addToMySavedAlbums=function(m,p,h){var _={url:n+"/me/albums",type:"PUT",postData:m};return d(_,p,h)},f.prototype.removeFromMySavedAlbums=function(m,p,h){var _={url:n+"/me/albums",type:"DELETE",postData:m};return d(_,p,h)},f.prototype.containsMySavedAlbums=function(m,p,h){var _={url:n+"/me/albums/contains",params:{ids:m.join(",")}};return d(_,p,h)},f.prototype.getMyTopArtists=function(m,p){var h={url:n+"/me/top/artists"};return d(h,m,p)},f.prototype.getMyTopTracks=function(m,p){var h={url:n+"/me/top/tracks"};return d(h,m,p)},f.prototype.getMyRecentlyPlayedTracks=function(m,p){var h={url:n+"/me/player/recently-played"};return d(h,m,p)},f.prototype.followUsers=function(m,p){var h={url:n+"/me/following/",type:"PUT",params:{ids:m.join(","),type:"user"}};return d(h,p)},f.prototype.followArtists=function(m,p){var h={url:n+"/me/following/",type:"PUT",params:{ids:m.join(","),type:"artist"}};return d(h,p)},f.prototype.followPlaylist=function(m,p,h){var _={url:n+"/playlists/"+m+"/followers",type:"PUT",postData:{}};return d(_,p,h)},f.prototype.unfollowUsers=function(m,p){var h={url:n+"/me/following/",type:"DELETE",params:{ids:m.join(","),type:"user"}};return d(h,p)},f.prototype.unfollowArtists=function(m,p){var h={url:n+"/me/following/",type:"DELETE",params:{ids:m.join(","),type:"artist"}};return d(h,p)},f.prototype.unfollowPlaylist=function(m,p){var h={url:n+"/playlists/"+m+"/followers",type:"DELETE"};return d(h,p)},f.prototype.isFollowingUsers=function(m,p){var h={url:n+"/me/following/contains",type:"GET",params:{ids:m.join(","),type:"user"}};return d(h,p)},f.prototype.isFollowingArtists=function(m,p){var h={url:n+"/me/following/contains",type:"GET",params:{ids:m.join(","),type:"artist"}};return d(h,p)},f.prototype.areFollowingPlaylist=function(m,p,h){var _={url:n+"/playlists/"+m+"/followers/contains",type:"GET",params:{ids:p.join(",")}};return d(_,h)},f.prototype.getFollowedArtists=function(m,p){var h={url:n+"/me/following",type:"GET",params:{type:"artist"}};return d(h,m,p)},f.prototype.getUser=function(m,p,h){var _={url:n+"/users/"+encodeURIComponent(m)};return d(_,p,h)},f.prototype.getUserPlaylists=function(m,p,h){var _;return typeof m=="string"?_={url:n+"/users/"+encodeURIComponent(m)+"/playlists"}:(_={url:n+"/me/playlists"},h=p,p=m),d(_,p,h)},f.prototype.getPlaylist=function(m,p,h){var _={url:n+"/playlists/"+m};return d(_,p,h)},f.prototype.getPlaylistTracks=function(m,p,h){var _={url:n+"/playlists/"+m+"/tracks"};return d(_,p,h)},f.prototype.getPlaylistCoverImage=function(m,p){var h={url:n+"/playlists/"+m+"/images"};return d(h,p)},f.prototype.createPlaylist=function(m,p,h){var _={url:n+"/users/"+encodeURIComponent(m)+"/playlists",type:"POST",postData:p};return d(_,p,h)},f.prototype.changePlaylistDetails=function(m,p,h){var _={url:n+"/playlists/"+m,type:"PUT",postData:p};return d(_,p,h)},f.prototype.addTracksToPlaylist=function(m,p,h,_){var w={url:n+"/playlists/"+m+"/tracks",type:"POST",postData:{uris:p}};return d(w,h,_,!0)},f.prototype.replaceTracksInPlaylist=function(m,p,h){var _={url:n+"/playlists/"+m+"/tracks",type:"PUT",postData:{uris:p}};return d(_,{},h)},f.prototype.reorderTracksInPlaylist=function(m,p,h,_,w){var v={url:n+"/playlists/"+m+"/tracks",type:"PUT",postData:{range_start:p,insert_before:h}};return d(v,_,w)},f.prototype.removeTracksFromPlaylist=function(m,p,h){var _=p.map(function(v){return typeof v=="string"?{uri:v}:v}),w={url:n+"/playlists/"+m+"/tracks",type:"DELETE",postData:{tracks:_}};return d(w,{},h)},f.prototype.removeTracksFromPlaylistWithSnapshotId=function(m,p,h,_){var w=p.map(function(b){return typeof b=="string"?{uri:b}:b}),v={url:n+"/playlists/"+m+"/tracks",type:"DELETE",postData:{tracks:w,snapshot_id:h}};return d(v,{},_)},f.prototype.removeTracksFromPlaylistInPositions=function(m,p,h,_){var w={url:n+"/playlists/"+m+"/tracks",type:"DELETE",postData:{positions:p,snapshot_id:h}};return d(w,{},_)},f.prototype.uploadCustomPlaylistCoverImage=function(m,p,h){var _={url:n+"/playlists/"+m+"/images",type:"PUT",postData:p.replace(/^data:image\/jpeg;base64,/,""),contentType:"image/jpeg"};return d(_,{},h)},f.prototype.getAlbum=function(m,p,h){var _={url:n+"/albums/"+m};return d(_,p,h)},f.prototype.getAlbumTracks=function(m,p,h){var _={url:n+"/albums/"+m+"/tracks"};return d(_,p,h)},f.prototype.getAlbums=function(m,p,h){var _={url:n+"/albums/",params:{ids:m.join(",")}};return d(_,p,h)},f.prototype.getTrack=function(m,p,h){var _={};return _.url=n+"/tracks/"+m,d(_,p,h)},f.prototype.getTracks=function(m,p,h){var _={url:n+"/tracks/",params:{ids:m.join(",")}};return d(_,p,h)},f.prototype.getArtist=function(m,p,h){var _={url:n+"/artists/"+m};return d(_,p,h)},f.prototype.getArtists=function(m,p,h){var _={url:n+"/artists/",params:{ids:m.join(",")}};return d(_,p,h)},f.prototype.getArtistAlbums=function(m,p,h){var _={url:n+"/artists/"+m+"/albums"};return d(_,p,h)},f.prototype.getArtistTopTracks=function(m,p,h,_){var w={url:n+"/artists/"+m+"/top-tracks",params:{country:p}};return d(w,h,_)},f.prototype.getArtistRelatedArtists=function(m,p,h){var _={url:n+"/artists/"+m+"/related-artists"};return d(_,p,h)},f.prototype.getFeaturedPlaylists=function(m,p){var h={url:n+"/browse/featured-playlists"};return d(h,m,p)},f.prototype.getNewReleases=function(m,p){var h={url:n+"/browse/new-releases"};return d(h,m,p)},f.prototype.getCategories=function(m,p){var h={url:n+"/browse/categories"};return d(h,m,p)},f.prototype.getCategory=function(m,p,h){var _={url:n+"/browse/categories/"+m};return d(_,p,h)},f.prototype.getCategoryPlaylists=function(m,p,h){var _={url:n+"/browse/categories/"+m+"/playlists"};return d(_,p,h)},f.prototype.search=function(m,p,h,_){var w={url:n+"/search/",params:{q:m,type:p.join(",")}};return d(w,h,_)},f.prototype.searchAlbums=function(m,p,h){return this.search(m,["album"],p,h)},f.prototype.searchArtists=function(m,p,h){return this.search(m,["artist"],p,h)},f.prototype.searchTracks=function(m,p,h){return this.search(m,["track"],p,h)},f.prototype.searchPlaylists=function(m,p,h){return this.search(m,["playlist"],p,h)},f.prototype.searchShows=function(m,p,h){return this.search(m,["show"],p,h)},f.prototype.searchEpisodes=function(m,p,h){return this.search(m,["episode"],p,h)},f.prototype.getAudioFeaturesForTrack=function(m,p){var h={};return h.url=n+"/audio-features/"+m,d(h,{},p)},f.prototype.getAudioFeaturesForTracks=function(m,p){var h={url:n+"/audio-features",params:{ids:m}};return d(h,{},p)},f.prototype.getAudioAnalysisForTrack=function(m,p){var h={};return h.url=n+"/audio-analysis/"+m,d(h,{},p)},f.prototype.getRecommendations=function(m,p){var h={url:n+"/recommendations"};return d(h,m,p)},f.prototype.getAvailableGenreSeeds=function(m){var p={url:n+"/recommendations/available-genre-seeds"};return d(p,{},m)},f.prototype.getMyDevices=function(m){var p={url:n+"/me/player/devices"};return d(p,{},m)},f.prototype.getMyCurrentPlaybackState=function(m,p){var h={url:n+"/me/player"};return d(h,m,p)},f.prototype.getMyCurrentPlayingTrack=function(m,p){var h={url:n+"/me/player/currently-playing"};return d(h,m,p)},f.prototype.transferMyPlayback=function(m,p,h){var _=p||{};_.device_ids=m;var w={type:"PUT",url:n+"/me/player",postData:_};return d(w,p,h)},f.prototype.play=function(m,p){m=m||{};var h="device_id"in m?{device_id:m.device_id}:null,_={};["context_uri","uris","offset","position_ms"].forEach(function(b){b in m&&(_[b]=m[b])});var w={type:"PUT",url:n+"/me/player/play",params:h,postData:_},v=typeof m=="function"?m:{};return d(w,v,p)},f.prototype.queue=function(m,p,h){p=p||{};var _="device_id"in p?{uri:m,device_id:p.device_id}:{uri:m},w={type:"POST",url:n+"/me/player/queue",params:_};return d(w,p,h)},f.prototype.pause=function(m,p){m=m||{};var h="device_id"in m?{device_id:m.device_id}:null,_={type:"PUT",url:n+"/me/player/pause",params:h};return d(_,m,p)},f.prototype.skipToNext=function(m,p){m=m||{};var h="device_id"in m?{device_id:m.device_id}:null,_={type:"POST",url:n+"/me/player/next",params:h};return d(_,m,p)},f.prototype.skipToPrevious=function(m,p){m=m||{};var h="device_id"in m?{device_id:m.device_id}:null,_={type:"POST",url:n+"/me/player/previous",params:h};return d(_,m,p)},f.prototype.seek=function(m,p,h){p=p||{};var _={position_ms:m};"device_id"in p&&(_.device_id=p.device_id);var w={type:"PUT",url:n+"/me/player/seek",params:_};return d(w,p,h)},f.prototype.setRepeat=function(m,p,h){p=p||{};var _={state:m};"device_id"in p&&(_.device_id=p.device_id);var w={type:"PUT",url:n+"/me/player/repeat",params:_};return d(w,p,h)},f.prototype.setVolume=function(m,p,h){p=p||{};var _={volume_percent:m};"device_id"in p&&(_.device_id=p.device_id);var w={type:"PUT",url:n+"/me/player/volume",params:_};return d(w,p,h)},f.prototype.setShuffle=function(m,p,h){p=p||{};var _={state:m};"device_id"in p&&(_.device_id=p.device_id);var w={type:"PUT",url:n+"/me/player/shuffle",params:_};return d(w,p,h)},f.prototype.getShow=function(m,p,h){var _={};return _.url=n+"/shows/"+m,d(_,p,h)},f.prototype.getShows=function(m,p,h){var _={url:n+"/shows/",params:{ids:m.join(",")}};return d(_,p,h)},f.prototype.getMySavedShows=function(m,p){var h={url:n+"/me/shows"};return d(h,m,p)},f.prototype.addToMySavedShows=function(m,p,h){var _={url:n+"/me/shows",type:"PUT",postData:m};return d(_,p,h)},f.prototype.removeFromMySavedShows=function(m,p,h){var _={url:n+"/me/shows",type:"DELETE",postData:m};return d(_,p,h)},f.prototype.containsMySavedShows=function(m,p,h){var _={url:n+"/me/shows/contains",params:{ids:m.join(",")}};return d(_,p,h)},f.prototype.getShowEpisodes=function(m,p,h){var _={url:n+"/shows/"+m+"/episodes"};return d(_,p,h)},f.prototype.getEpisode=function(m,p,h){var _={};return _.url=n+"/episodes/"+m,d(_,p,h)},f.prototype.getEpisodes=function(m,p,h){var _={url:n+"/episodes/",params:{ids:m.join(",")}};return d(_,p,h)},f.prototype.getAccessToken=function(){return r},f.prototype.setAccessToken=function(m){r=m},f.prototype.setPromiseImplementation=function(m){var p=!1;try{var h=new m(function(_){_()});typeof h.then=="function"&&typeof h.catch=="function"&&(p=!0)}catch(_){console.error(_)}if(p)s=m;else throw new Error("Unsupported implementation of Promises/A+")},f}();e.exports=t})(bv);var cr=bv.exports;const tS={name:"ModalDialogQueueItem",props:["show","item"],emits:["close"],data(){return{spotify_track:{}}},watch:{item(){if(this.item&&this.item.data_kind==="spotify"){const e=new cr;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"),q.queue_remove(this.item.id)},play:function(){this.$emit("close"),q.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})}}},nS={key:0,class:"modal is-active"},rS={class:"modal-content fd-modal-card"},sS={class:"card"},oS={class:"card-content"},iS=["textContent"],aS=["textContent"],lS={class:"content is-small"},uS=["textContent"],cS=["textContent"],dS=["textContent"],mS={key:0},fS=["textContent"],pS=["textContent"],hS=["textContent"],_S={key:1},gS=["textContent"],yS=["textContent"],vS={key:2},bS=["textContent"],wS=["textContent"],CS={key:3},zS=["textContent"],xS=["textContent"],kS=["textContent"],ES=["textContent"],SS=["textContent"],$S=["textContent"],AS=["textContent"],TS=["textContent"],OS=["textContent"],PS={class:"title is-6"},DS=["textContent"],FS={key:0,class:"has-text-weight-normal"},IS=["textContent"],RS=["textContent"],LS=["textContent"],NS={class:"title is-6"},MS=["textContent"],VS=["textContent"],BS=["textContent"],US=["textContent"],jS={class:"card-footer"},HS={class:"icon"},qS=["textContent"],WS={class:"icon"},GS=["textContent"];function KS(e,t,n,r,s,o){const i=$("mdicon");return E(),P("div",null,[C(Jt,{name:"fade"},{default:A(()=>[n.show?(E(),P("div",nS,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",rS,[l("div",sS,[l("div",oS,[l("p",{class:"title is-4",textContent:g(n.item.title)},null,8,iS),l("p",{class:"subtitle",textContent:g(n.item.artist)},null,8,aS),l("div",lS,[l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.queue-item.album"))},null,8,uS),n.item.album_id?(E(),P("a",{key:0,class:"title is-6 has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_album&&o.open_album(...a)),textContent:g(n.item.album)},null,8,cS)):(E(),P("span",{key:1,class:"title is-6",textContent:g(n.item.album)},null,8,dS))]),n.item.album_artist?(E(),P("p",mS,[l("span",{class:"heading",textContent:g(e.$t("dialog.queue-item.album-artist"))},null,8,fS),n.item.album_artist_id?(E(),P("a",{key:0,class:"title is-6 has-text-link",onClick:t[2]||(t[2]=(...a)=>o.open_album_artist&&o.open_album_artist(...a)),textContent:g(n.item.album_artist)},null,8,pS)):(E(),P("span",{key:1,class:"title is-6",textContent:g(n.item.album_artist)},null,8,hS))])):Y("",!0),n.item.composer?(E(),P("p",_S,[l("span",{class:"heading",textContent:g(e.$t("dialog.queue-item.composer"))},null,8,gS),l("span",{class:"title is-6",textContent:g(n.item.composer)},null,8,yS)])):Y("",!0),n.item.year>0?(E(),P("p",vS,[l("span",{class:"heading",textContent:g(e.$t("dialog.queue-item.year"))},null,8,bS),l("span",{class:"title is-6",textContent:g(n.item.year)},null,8,wS)])):Y("",!0),n.item.genre?(E(),P("p",CS,[l("span",{class:"heading",textContent:g(e.$t("dialog.queue-item.genre"))},null,8,zS),l("a",{class:"title is-6 has-text-link",onClick:t[3]||(t[3]=(...a)=>o.open_genre&&o.open_genre(...a)),textContent:g(n.item.genre)},null,8,xS)])):Y("",!0),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.queue-item.position"))},null,8,kS),l("span",{class:"title is-6",textContent:g([n.item.disc_number,n.item.track_number].join(" / "))},null,8,ES)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.queue-item.duration"))},null,8,SS),l("span",{class:"title is-6",textContent:g(e.$filters.durationInHours(n.item.length_ms))},null,8,$S)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.queue-item.path"))},null,8,AS),l("span",{class:"title is-6",textContent:g(n.item.path)},null,8,TS)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.queue-item.type"))},null,8,OS),l("span",PS,[l("span",{textContent:g([e.$t("media.kind."+n.item.media_kind),e.$t("data.kind."+n.item.data_kind)].join(" - "))},null,8,DS),n.item.data_kind==="spotify"?(E(),P("span",FS,[wt(" ("),l("a",{onClick:t[4]||(t[4]=(...a)=>o.open_spotify_artist&&o.open_spotify_artist(...a)),textContent:g(e.$t("dialog.queue-item.spotify-artist"))},null,8,IS),wt(", "),l("a",{onClick:t[5]||(t[5]=(...a)=>o.open_spotify_album&&o.open_spotify_album(...a)),textContent:g(e.$t("dialog.queue-item.spotify-album"))},null,8,RS),wt(") ")])):Y("",!0)])]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.queue-item.quality"))},null,8,LS),l("span",NS,[l("span",{textContent:g(n.item.type)},null,8,MS),n.item.samplerate?(E(),P("span",{key:0,textContent:g(e.$t("dialog.queue-item.samplerate",{rate:n.item.samplerate}))},null,8,VS)):Y("",!0),n.item.channels?(E(),P("span",{key:1,textContent:g(e.$t("dialog.queue-item.channels",{channels:e.$filters.channels(n.item.channels)}))},null,8,BS)):Y("",!0),n.item.bitrate?(E(),P("span",{key:2,textContent:g(e.$t("dialog.queue-item.bitrate",{rate:n.item.bitrate}))},null,8,US)):Y("",!0)])])])]),l("footer",jS,[l("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...a)=>o.remove&&o.remove(...a))},[l("span",HS,[C(i,{name:"delete",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.queue-item.remove"))},null,8,qS)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[7]||(t[7]=(...a)=>o.play&&o.play(...a))},[l("span",WS,[C(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.queue-item.play"))},null,8,GS)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[8]||(t[8]=a=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var wv=pe(tS,[["render",KS]]);const ZS={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,q.queue_add(this.url).then(()=>{this.$emit("close"),this.url=""}).catch(()=>{this.loading=!1})},play:function(){this.loading=!0,q.player_play_uri(this.url,!1).then(()=>{this.$emit("close"),this.url=""}).catch(()=>{this.loading=!1})}}},YS={key:0,class:"modal is-active"},JS={class:"modal-content fd-modal-card"},XS={class:"card"},QS={class:"card-content"},e$=["textContent"],t$={class:"field"},n$={class:"control is-expanded has-icons-left"},r$=["placeholder","disabled"],s$={class:"icon is-left"},o$={key:0,class:"card-footer"},i$={class:"card-footer-item has-text-dark"},a$={class:"icon"},l$=["textContent"],u$={key:1,class:"card-footer"},c$={class:"icon"},d$=["textContent"],m$={class:"icon"},f$=["textContent"],p$={class:"icon"},h$=["textContent"];function _$(e,t,n,r,s,o){const i=$("mdicon");return E(),P("div",null,[C(Jt,{name:"fade"},{default:A(()=>[n.show?(E(),P("div",YS,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",JS,[l("div",XS,[l("div",QS,[l("p",{class:"title is-4",textContent:g(e.$t("dialog.add.stream.title"))},null,8,e$),l("form",{class:"fd-has-margin-bottom",onSubmit:t[2]||(t[2]=gt((...a)=>o.play&&o.play(...a),["prevent"]))},[l("div",t$,[l("p",n$,[Pt(l("input",{ref:"url_field","onUpdate:modelValue":t[1]||(t[1]=a=>s.url=a),class:"input is-shadowless",type:"text",placeholder:e.$t("dialog.add.stream.placeholder"),disabled:s.loading},null,8,r$),[[$n,s.url]]),l("span",s$,[C(i,{name:"web",size:"16"})])])])],32)]),s.loading?(E(),P("footer",o$,[l("a",i$,[l("span",a$,[C(i,{name:"web",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.add.stream.loading"))},null,8,l$)])])):(E(),P("footer",u$,[l("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=a=>e.$emit("close"))},[l("span",c$,[C(i,{name:"cancel",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.add.stream.cancel"))},null,8,d$)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.add_stream&&o.add_stream(...a))},[l("span",m$,[C(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.add.stream.add"))},null,8,f$)]),l("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[5]||(t[5]=(...a)=>o.play&&o.play(...a))},[l("span",p$,[C(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.add.stream.play"))},null,8,h$)])]))])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[6]||(t[6]=a=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var g$=pe(ZS,[["render",_$]]);const y$={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,q.queue_save_playlist(this.playlist_name).then(()=>{this.$emit("close"),this.playlist_name=""}).catch(()=>{this.loading=!1}))}}},v$={key:0,class:"modal is-active"},b$={class:"modal-content fd-modal-card"},w$={class:"card"},C$={class:"card-content"},z$=["textContent"],x$={class:"field"},k$={class:"control is-expanded has-icons-left"},E$=["disabled"],S$={class:"icon is-left"},$$={key:0,class:"card-footer"},A$={class:"card-footer-item has-text-dark"},T$={class:"icon"},O$=["textContent"],P$={key:1,class:"card-footer"},D$={class:"icon"},F$=["textContent"],I$={class:"icon"},R$=["textContent"];function L$(e,t,n,r,s,o){const i=$("mdicon");return E(),P("div",null,[C(Jt,{name:"fade"},{default:A(()=>[n.show?(E(),P("div",v$,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",b$,[l("div",w$,[l("div",C$,[l("p",{class:"title is-4",textContent:g(e.$t("dialog.playlist.save.title"))},null,8,z$),l("form",{class:"fd-has-margin-bottom",onSubmit:t[2]||(t[2]=gt((...a)=>o.save&&o.save(...a),["prevent"]))},[l("div",x$,[l("p",k$,[Pt(l("input",{ref:"playlist_name_field","onUpdate:modelValue":t[1]||(t[1]=a=>s.playlist_name=a),class:"input is-shadowless",type:"text",placeholder:"Playlist name",disabled:s.loading},null,8,E$),[[$n,s.playlist_name]]),l("span",S$,[C(i,{name:"file-music",size:"16"})])])])],32)]),s.loading?(E(),P("footer",$$,[l("a",A$,[l("span",T$,[C(i,{name:"web",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.playlist.save.saving"))},null,8,O$)])])):(E(),P("footer",P$,[l("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=a=>e.$emit("close"))},[l("span",D$,[C(i,{name:"cancel",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.playlist.save.cancel"))},null,8,F$)]),l("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[4]||(t[4]=(...a)=>o.save&&o.save(...a))},[l("span",I$,[C(i,{name:"content-save",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.playlist.save.save"))},null,8,R$)])]))])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var N$=pe(y$,[["render",L$]]),Cv={exports:{}},zv=vv(kz);/**!
* Sortable 1.14.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function br(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lh(Object(n),!0).forEach(function(r){M$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hl=function(t){return typeof t}:hl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hl(e)}function M$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gn(){return Gn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gn.apply(this,arguments)}function V$(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,o;for(o=0;o<r.length;o++)s=r[o],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function B$(e,t){if(e==null)return{};var n=V$(e,t),r,s;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function U$(e){return j$(e)||H$(e)||q$(e)||W$()}function j$(e){if(Array.isArray(e))return hd(e)}function H$(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function q$(e,t){if(!!e){if(typeof e=="string")return hd(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 hd(e,t)}}function hd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function W$(){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 G$="1.14.0";function Fr(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var Mr=Fr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ji=Fr(/Edge/i),uh=Fr(/firefox/i),yi=Fr(/safari/i)&&!Fr(/chrome/i)&&!Fr(/android/i),xv=Fr(/iP(ad|od|hone)/i),K$=Fr(/chrome/i)&&Fr(/android/i),kv={capture:!1,passive:!1};function lt(e,t,n){e.addEventListener(t,n,!Mr&&kv)}function ot(e,t,n){e.removeEventListener(t,n,!Mr&&kv)}function Fl(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 Z$(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function tr(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&Fl(e,t):Fl(e,t))||r&&e===n)return e;if(e===n)break}while(e=Z$(e))}return null}var ch=/\s+/g;function Rt(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(ch," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(ch," ")}}function Ve(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function Ts(e,t){var n="";if(typeof e=="string")n=e;else do{var r=Ve(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var s=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return s&&new s(n)}function Ev(e,t,n){if(e){var r=e.getElementsByTagName(t),s=0,o=r.length;if(n)for(;s<o;s++)n(r[s],s);return r}return[]}function yr(){var e=document.scrollingElement;return e||document.documentElement}function Ft(e,t,n,r,s){if(!(!e.getBoundingClientRect&&e!==window)){var o,i,a,u,c,d,f;if(e!==window&&e.parentNode&&e!==yr()?(o=e.getBoundingClientRect(),i=o.top,a=o.left,u=o.bottom,c=o.right,d=o.height,f=o.width):(i=0,a=0,u=window.innerHeight,c=window.innerWidth,d=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(s=s||e.parentNode,!Mr))do if(s&&s.getBoundingClientRect&&(Ve(s,"transform")!=="none"||n&&Ve(s,"position")!=="static")){var m=s.getBoundingClientRect();i-=m.top+parseInt(Ve(s,"border-top-width")),a-=m.left+parseInt(Ve(s,"border-left-width")),u=i+o.height,c=a+o.width;break}while(s=s.parentNode);if(r&&e!==window){var p=Ts(s||e),h=p&&p.a,_=p&&p.d;p&&(i/=_,a/=h,f/=h,d/=_,u=i+d,c=a+f)}return{top:i,left:a,bottom:u,right:c,width:f,height:d}}}function dh(e,t,n){for(var r=ts(e,!0),s=Ft(e)[t];r;){var o=Ft(r)[n],i=void 0;if(n==="top"||n==="left"?i=s>=o:i=s<=o,!i)return r;if(r===yr())break;r=ts(r,!1)}return!1}function xo(e,t,n,r){for(var s=0,o=0,i=e.children;o<i.length;){if(i[o].style.display!=="none"&&i[o]!==Je.ghost&&(r||i[o]!==Je.dragged)&&tr(i[o],n.draggable,e,!1)){if(s===t)return i[o];s++}o++}return null}function Dm(e,t){for(var n=e.lastElementChild;n&&(n===Je.ghost||Ve(n,"display")==="none"||t&&!Fl(n,t));)n=n.previousElementSibling;return n||null}function Bt(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Je.clone&&(!t||Fl(e,t))&&n++;return n}function mh(e){var t=0,n=0,r=yr();if(e)do{var s=Ts(e),o=s.a,i=s.d;t+=e.scrollLeft*o,n+=e.scrollTop*i}while(e!==r&&(e=e.parentNode));return[t,n]}function Y$(e,t){for(var n in e)if(!!e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function ts(e,t){if(!e||!e.getBoundingClientRect)return yr();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var s=Ve(n);if(n.clientWidth<n.scrollWidth&&(s.overflowX=="auto"||s.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(s.overflowY=="auto"||s.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return yr();if(r||t)return n;r=!0}}while(n=n.parentNode);return yr()}function J$(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function ac(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 vi;function Sv(e,t){return function(){if(!vi){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),vi=setTimeout(function(){vi=void 0},t)}}}function X$(){clearTimeout(vi),vi=void 0}function $v(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Fm(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 fh(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 lc(e){Ve(e,"position",""),Ve(e,"top",""),Ve(e,"left",""),Ve(e,"width",""),Ve(e,"height","")}var cn="Sortable"+new Date().getTime();function Q$(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(s){if(!(Ve(s,"display")==="none"||s===Je.ghost)){e.push({target:s,rect:Ft(s)});var o=br({},e[e.length-1].rect);if(s.thisAnimationDuration){var i=Ts(s,!0);i&&(o.top-=i.f,o.left-=i.e)}s.fromRect=o}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(Y$(e,{target:r}),1)},animateAll:function(r){var s=this;if(!this.options.animation){clearTimeout(t),typeof r=="function"&&r();return}var o=!1,i=0;e.forEach(function(a){var u=0,c=a.target,d=c.fromRect,f=Ft(c),m=c.prevFromRect,p=c.prevToRect,h=a.rect,_=Ts(c,!0);_&&(f.top-=_.f,f.left-=_.e),c.toRect=f,c.thisAnimationDuration&&ac(m,f)&&!ac(d,f)&&(h.top-f.top)/(h.left-f.left)===(d.top-f.top)/(d.left-f.left)&&(u=tA(h,m,p,s.options)),ac(f,d)||(c.prevFromRect=d,c.prevToRect=f,u||(u=s.options.animation),s.animate(c,h,f,u)),u&&(o=!0,i=Math.max(i,u),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},u),c.thisAnimationDuration=u)}),clearTimeout(t),o?t=setTimeout(function(){typeof r=="function"&&r()},i):typeof r=="function"&&r(),e=[]},animate:function(r,s,o,i){if(i){Ve(r,"transition",""),Ve(r,"transform","");var a=Ts(this.el),u=a&&a.a,c=a&&a.d,d=(s.left-o.left)/(u||1),f=(s.top-o.top)/(c||1);r.animatingX=!!d,r.animatingY=!!f,Ve(r,"transform","translate3d("+d+"px,"+f+"px,0)"),this.forRepaintDummy=eA(r),Ve(r,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),Ve(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){Ve(r,"transition",""),Ve(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},i)}}}}function eA(e){return e.offsetWidth}function tA(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var Gs=[],uc={initializeByDefault:!0},Xi={mount:function(t){for(var n in uc)uc.hasOwnProperty(n)&&!(n in t)&&(t[n]=uc[n]);Gs.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Gs.push(t)},pluginEvent:function(t,n,r){var s=this;this.eventCanceled=!1,r.cancel=function(){s.eventCanceled=!0};var o=t+"Global";Gs.forEach(function(i){!n[i.pluginName]||(n[i.pluginName][o]&&n[i.pluginName][o](br({sortable:n},r)),n.options[i.pluginName]&&n[i.pluginName][t]&&n[i.pluginName][t](br({sortable:n},r)))})},initializePlugins:function(t,n,r,s){Gs.forEach(function(a){var u=a.pluginName;if(!(!t.options[u]&&!a.initializeByDefault)){var c=new a(t,n,t.options);c.sortable=t,c.options=t.options,t[u]=c,Gn(r,c.defaults)}});for(var o in t.options)if(!!t.options.hasOwnProperty(o)){var i=this.modifyOption(t,o,t.options[o]);typeof i!="undefined"&&(t.options[o]=i)}},getEventProperties:function(t,n){var r={};return Gs.forEach(function(s){typeof s.eventProperties=="function"&&Gn(r,s.eventProperties.call(n[s.pluginName],t))}),r},modifyOption:function(t,n,r){var s;return Gs.forEach(function(o){!t[o.pluginName]||o.optionListeners&&typeof o.optionListeners[n]=="function"&&(s=o.optionListeners[n].call(t[o.pluginName],r))}),s}};function ti(e){var t=e.sortable,n=e.rootEl,r=e.name,s=e.targetEl,o=e.cloneEl,i=e.toEl,a=e.fromEl,u=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,f=e.newDraggableIndex,m=e.originalEvent,p=e.putSortable,h=e.extraEventProperties;if(t=t||n&&n[cn],!!t){var _,w=t.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Mr&&!Ji?_=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(_=document.createEvent("Event"),_.initEvent(r,!0,!0)),_.to=i||n,_.from=a||n,_.item=s||n,_.clone=o,_.oldIndex=u,_.newIndex=c,_.oldDraggableIndex=d,_.newDraggableIndex=f,_.originalEvent=m,_.pullMode=p?p.lastPutMode:void 0;var b=br(br({},h),Xi.getEventProperties(r,t));for(var k in b)_[k]=b[k];n&&n.dispatchEvent(_),w[v]&&w[v].call(t,_)}}var nA=["evt"],wn=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=r.evt,o=B$(r,nA);Xi.pluginEvent.bind(Je)(t,n,br({dragEl:Ee,parentEl:Nt,ghostEl:st,rootEl:Dt,nextEl:bs,lastDownEl:_l,cloneEl:Mt,cloneHidden:Qr,dragStarted:ni,putSortable:sn,activeSortable:Je.active,originalEvent:s,oldIndex:io,oldDraggableIndex:bi,newIndex:On,newDraggableIndex:Jr,hideGhostForTarget:Pv,unhideGhostForTarget:Dv,cloneNowHidden:function(){Qr=!0},cloneNowShown:function(){Qr=!1},dispatchSortableEvent:function(a){hn({sortable:n,name:a,originalEvent:s})}},o))};function hn(e){ti(br({putSortable:sn,cloneEl:Mt,targetEl:Ee,rootEl:Dt,oldIndex:io,oldDraggableIndex:bi,newIndex:On,newDraggableIndex:Jr},e))}var Ee,Nt,st,Dt,bs,_l,Mt,Qr,io,On,bi,Jr,wa,sn,no=!1,Il=!1,Rl=[],gs,Jn,cc,dc,ph,hh,ni,Ks,wi,Ci=!1,Ca=!1,gl,ln,mc=[],_d=!1,Ll=[],zu=typeof document!="undefined",za=xv,_h=Ji||Mr?"cssFloat":"float",rA=zu&&!K$&&!xv&&"draggable"in document.createElement("div"),Av=function(){if(!!zu){if(Mr)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Tv=function(t,n){var r=Ve(t),s=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=xo(t,0,n),i=xo(t,1,n),a=o&&Ve(o),u=i&&Ve(i),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Ft(o).width,d=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+Ft(i).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&a.float!=="none"){var f=a.float==="left"?"left":"right";return i&&(u.clear==="both"||u.clear===f)?"vertical":"horizontal"}return o&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||c>=s&&r[_h]==="none"||i&&r[_h]==="none"&&c+d>s)?"vertical":"horizontal"},sA=function(t,n,r){var s=r?t.left:t.top,o=r?t.right:t.bottom,i=r?t.width:t.height,a=r?n.left:n.top,u=r?n.right:n.bottom,c=r?n.width:n.height;return s===a||o===u||s+i/2===a+c/2},oA=function(t,n){var r;return Rl.some(function(s){var o=s[cn].options.emptyInsertThreshold;if(!(!o||Dm(s))){var i=Ft(s),a=t>=i.left-o&&t<=i.right+o,u=n>=i.top-o&&n<=i.bottom+o;if(a&&u)return r=s}}),r},Ov=function(t){function n(o,i){return function(a,u,c,d){var f=a.options.group.name&&u.options.group.name&&a.options.group.name===u.options.group.name;if(o==null&&(i||f))return!0;if(o==null||o===!1)return!1;if(i&&o==="clone")return o;if(typeof o=="function")return n(o(a,u,c,d),i)(a,u,c,d);var m=(i?a:u).options.group.name;return o===!0||typeof o=="string"&&o===m||o.join&&o.indexOf(m)>-1}}var r={},s=t.group;(!s||hl(s)!="object")&&(s={name:s}),r.name=s.name,r.checkPull=n(s.pull,!0),r.checkPut=n(s.put),r.revertClone=s.revertClone,t.group=r},Pv=function(){!Av&&st&&Ve(st,"display","none")},Dv=function(){!Av&&st&&Ve(st,"display","")};zu&&document.addEventListener("click",function(e){if(Il)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Il=!1,!1},!0);var ys=function(t){if(Ee){t=t.touches?t.touches[0]:t;var n=oA(t.clientX,t.clientY);if(n){var r={};for(var s in t)t.hasOwnProperty(s)&&(r[s]=t[s]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[cn]._onDragOver(r)}}},iA=function(t){Ee&&Ee.parentNode[cn]._isOutsideThisEl(t.target)};function Je(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=Gn({},t),e[cn]=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 Tv(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,a){i.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Je.supportPointer!==!1&&"PointerEvent"in window&&!yi,emptyInsertThreshold:5};Xi.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);Ov(t);for(var s in this)s.charAt(0)==="_"&&typeof this[s]=="function"&&(this[s]=this[s].bind(this));this.nativeDraggable=t.forceFallback?!1:rA,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)),Rl.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Gn(this,Q$())}Je.prototype={constructor:Je,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Ks=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,Ee):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var n=this,r=this.el,s=this.options,o=s.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,u=(a||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||u,d=s.filter;if(pA(r),!Ee&&!(/mousedown|pointerdown/.test(i)&&t.button!==0||s.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&yi&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=tr(u,s.draggable,r,!1),!(u&&u.animated)&&_l!==u)){if(io=Bt(u),bi=Bt(u,s.draggable),typeof d=="function"){if(d.call(this,t,u,this)){hn({sortable:n,rootEl:c,name:"filter",targetEl:u,toEl:r,fromEl:r}),wn("filter",n,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(d&&(d=d.split(",").some(function(f){if(f=tr(c,f.trim(),r,!1),f)return hn({sortable:n,rootEl:f,name:"filter",targetEl:u,fromEl:r,toEl:r}),wn("filter",n,{evt:t}),!0}),d)){o&&t.cancelable&&t.preventDefault();return}s.handle&&!tr(c,s.handle,r,!1)||this._prepareDragStart(t,a,u)}}},_prepareDragStart:function(t,n,r){var s=this,o=s.el,i=s.options,a=o.ownerDocument,u;if(r&&!Ee&&r.parentNode===o){var c=Ft(r);if(Dt=o,Ee=r,Nt=Ee.parentNode,bs=Ee.nextSibling,_l=r,wa=i.group,Je.dragged=Ee,gs={target:Ee,clientX:(n||t).clientX,clientY:(n||t).clientY},ph=gs.clientX-c.left,hh=gs.clientY-c.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Ee.style["will-change"]="all",u=function(){if(wn("delayEnded",s,{evt:t}),Je.eventCanceled){s._onDrop();return}s._disableDelayedDragEvents(),!uh&&s.nativeDraggable&&(Ee.draggable=!0),s._triggerDragStart(t,n),hn({sortable:s,name:"choose",originalEvent:t}),Rt(Ee,i.chosenClass,!0)},i.ignore.split(",").forEach(function(d){Ev(Ee,d.trim(),fc)}),lt(a,"dragover",ys),lt(a,"mousemove",ys),lt(a,"touchmove",ys),lt(a,"mouseup",s._onDrop),lt(a,"touchend",s._onDrop),lt(a,"touchcancel",s._onDrop),uh&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ee.draggable=!0),wn("delayStart",this,{evt:t}),i.delay&&(!i.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ji||Mr))){if(Je.eventCanceled){this._onDrop();return}lt(a,"mouseup",s._disableDelayedDrag),lt(a,"touchend",s._disableDelayedDrag),lt(a,"touchcancel",s._disableDelayedDrag),lt(a,"mousemove",s._delayedDragTouchMoveHandler),lt(a,"touchmove",s._delayedDragTouchMoveHandler),i.supportPointer&&lt(a,"pointermove",s._delayedDragTouchMoveHandler),s._dragStartTimer=setTimeout(u,i.delay)}else u()}},_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(){Ee&&fc(Ee),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;ot(t,"mouseup",this._disableDelayedDrag),ot(t,"touchend",this._disableDelayedDrag),ot(t,"touchcancel",this._disableDelayedDrag),ot(t,"mousemove",this._delayedDragTouchMoveHandler),ot(t,"touchmove",this._delayedDragTouchMoveHandler),ot(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?lt(document,"pointermove",this._onTouchMove):n?lt(document,"touchmove",this._onTouchMove):lt(document,"mousemove",this._onTouchMove):(lt(Ee,"dragend",this),lt(Dt,"dragstart",this._onDragStart));try{document.selection?yl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(no=!1,Dt&&Ee){wn("dragStarted",this,{evt:n}),this.nativeDraggable&&lt(document,"dragover",iA);var r=this.options;!t&&Rt(Ee,r.dragClass,!1),Rt(Ee,r.ghostClass,!0),Je.active=this,t&&this._appendGhost(),hn({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Jn){this._lastX=Jn.clientX,this._lastY=Jn.clientY,Pv();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(Ee.parentNode[cn]._isOutsideThisEl(t),n)do{if(n[cn]){var r=void 0;if(r=n[cn]._onDragOver({clientX:Jn.clientX,clientY:Jn.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);Dv()}},_onTouchMove:function(t){if(gs){var n=this.options,r=n.fallbackTolerance,s=n.fallbackOffset,o=t.touches?t.touches[0]:t,i=st&&Ts(st,!0),a=st&&i&&i.a,u=st&&i&&i.d,c=za&&ln&&mh(ln),d=(o.clientX-gs.clientX+s.x)/(a||1)+(c?c[0]-mc[0]:0)/(a||1),f=(o.clientY-gs.clientY+s.y)/(u||1)+(c?c[1]-mc[1]:0)/(u||1);if(!Je.active&&!no){if(r&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(st){i?(i.e+=d-(cc||0),i.f+=f-(dc||0)):i={a:1,b:0,c:0,d:1,e:d,f};var m="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");Ve(st,"webkitTransform",m),Ve(st,"mozTransform",m),Ve(st,"msTransform",m),Ve(st,"transform",m),cc=d,dc=f,Jn=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!st){var t=this.options.fallbackOnBody?document.body:Dt,n=Ft(Ee,!0,za,!0,t),r=this.options;if(za){for(ln=t;Ve(ln,"position")==="static"&&Ve(ln,"transform")==="none"&&ln!==document;)ln=ln.parentNode;ln!==document.body&&ln!==document.documentElement?(ln===document&&(ln=yr()),n.top+=ln.scrollTop,n.left+=ln.scrollLeft):ln=yr(),mc=mh(ln)}st=Ee.cloneNode(!0),Rt(st,r.ghostClass,!1),Rt(st,r.fallbackClass,!0),Rt(st,r.dragClass,!0),Ve(st,"transition",""),Ve(st,"transform",""),Ve(st,"box-sizing","border-box"),Ve(st,"margin",0),Ve(st,"top",n.top),Ve(st,"left",n.left),Ve(st,"width",n.width),Ve(st,"height",n.height),Ve(st,"opacity","0.8"),Ve(st,"position",za?"absolute":"fixed"),Ve(st,"zIndex","100000"),Ve(st,"pointerEvents","none"),Je.ghost=st,t.appendChild(st),Ve(st,"transform-origin",ph/parseInt(st.style.width)*100+"% "+hh/parseInt(st.style.height)*100+"%")}},_onDragStart:function(t,n){var r=this,s=t.dataTransfer,o=r.options;if(wn("dragStart",this,{evt:t}),Je.eventCanceled){this._onDrop();return}wn("setupClone",this),Je.eventCanceled||(Mt=Fm(Ee),Mt.draggable=!1,Mt.style["will-change"]="",this._hideClone(),Rt(Mt,this.options.chosenClass,!1),Je.clone=Mt),r.cloneId=yl(function(){wn("clone",r),!Je.eventCanceled&&(r.options.removeCloneOnHide||Dt.insertBefore(Mt,Ee),r._hideClone(),hn({sortable:r,name:"clone"}))}),!n&&Rt(Ee,o.dragClass,!0),n?(Il=!0,r._loopId=setInterval(r._emulateDragOver,50)):(ot(document,"mouseup",r._onDrop),ot(document,"touchend",r._onDrop),ot(document,"touchcancel",r._onDrop),s&&(s.effectAllowed="move",o.setData&&o.setData.call(r,s,Ee)),lt(document,"drop",r),Ve(Ee,"transform","translateZ(0)")),no=!0,r._dragStartId=yl(r._dragStarted.bind(r,n,t)),lt(document,"selectstart",r),ni=!0,yi&&Ve(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,r=t.target,s,o,i,a=this.options,u=a.group,c=Je.active,d=wa===u,f=a.sort,m=sn||c,p,h=this,_=!1;if(_d)return;function w(Ce,Ke){wn(Ce,h,br({evt:t,isOwner:d,axis:p?"vertical":"horizontal",revert:i,dragRect:s,targetRect:o,canSort:f,fromSortable:m,target:r,completed:b,onMove:function(ve,X){return xa(Dt,n,Ee,s,ve,Ft(ve),t,X)},changed:k},Ke))}function v(){w("dragOverAnimationCapture"),h.captureAnimationState(),h!==m&&m.captureAnimationState()}function b(Ce){return w("dragOverCompleted",{insertion:Ce}),Ce&&(d?c._hideClone():c._showClone(h),h!==m&&(Rt(Ee,sn?sn.options.ghostClass:c.options.ghostClass,!1),Rt(Ee,a.ghostClass,!0)),sn!==h&&h!==Je.active?sn=h:h===Je.active&&sn&&(sn=null),m===h&&(h._ignoreWhileAnimating=r),h.animateAll(function(){w("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(r===Ee&&!Ee.animated||r===n&&!r.animated)&&(Ks=null),!a.dragoverBubble&&!t.rootEl&&r!==document&&(Ee.parentNode[cn]._isOutsideThisEl(t.target),!Ce&&ys(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),_=!0}function k(){On=Bt(Ee),Jr=Bt(Ee,a.draggable),hn({sortable:h,name:"change",toEl:n,newIndex:On,newDraggableIndex:Jr,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=tr(r,a.draggable,n,!0),w("dragOver"),Je.eventCanceled)return _;if(Ee.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||h._ignoreWhileAnimating===r)return b(!1);if(Il=!1,c&&!a.disabled&&(d?f||(i=Nt!==Dt):sn===this||(this.lastPutMode=wa.checkPull(this,c,Ee,t))&&u.checkPut(this,c,Ee,t))){if(p=this._getDirection(t,r)==="vertical",s=Ft(Ee),w("dragOverValid"),Je.eventCanceled)return _;if(i)return Nt=Dt,v(),this._hideClone(),w("revert"),Je.eventCanceled||(bs?Dt.insertBefore(Ee,bs):Dt.appendChild(Ee)),b(!0);var z=Dm(n,a.draggable);if(!z||cA(t,p,this)&&!z.animated){if(z===Ee)return b(!1);if(z&&n===t.target&&(r=z),r&&(o=Ft(r)),xa(Dt,n,Ee,s,r,o,t,!!r)!==!1)return v(),n.appendChild(Ee),Nt=n,k(),b(!0)}else if(z&&uA(t,p,this)){var S=xo(n,0,a,!0);if(S===Ee)return b(!1);if(r=S,o=Ft(r),xa(Dt,n,Ee,s,r,o,t,!1)!==!1)return v(),n.insertBefore(Ee,S),Nt=n,k(),b(!0)}else if(r.parentNode===n){o=Ft(r);var T=0,M,L=Ee.parentNode!==n,F=!sA(Ee.animated&&Ee.toRect||s,r.animated&&r.toRect||o,p),j=p?"top":"left",K=dh(r,"top","top")||dh(Ee,"top","top"),Q=K?K.scrollTop:void 0;Ks!==r&&(M=o[j],Ci=!1,Ca=!F&&a.invertSwap||L),T=dA(t,r,o,p,F?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ca,Ks===r);var U;if(T!==0){var G=Bt(Ee);do G-=T,U=Nt.children[G];while(U&&(Ve(U,"display")==="none"||U===st))}if(T===0||U===r)return b(!1);Ks=r,wi=T;var me=r.nextElementSibling,se=!1;se=T===1;var ae=xa(Dt,n,Ee,s,r,o,t,se);if(ae!==!1)return(ae===1||ae===-1)&&(se=ae===1),_d=!0,setTimeout(lA,30),v(),se&&!me?n.appendChild(Ee):r.parentNode.insertBefore(Ee,se?me:r),K&&$v(K,0,Q-K.scrollTop),Nt=Ee.parentNode,M!==void 0&&!Ca&&(gl=Math.abs(M-Ft(r)[j])),k(),b(!0)}if(n.contains(Ee))return b(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ot(document,"mousemove",this._onTouchMove),ot(document,"touchmove",this._onTouchMove),ot(document,"pointermove",this._onTouchMove),ot(document,"dragover",ys),ot(document,"mousemove",ys),ot(document,"touchmove",ys)},_offUpEvents:function(){var t=this.el.ownerDocument;ot(t,"mouseup",this._onDrop),ot(t,"touchend",this._onDrop),ot(t,"pointerup",this._onDrop),ot(t,"touchcancel",this._onDrop),ot(document,"selectstart",this)},_onDrop:function(t){var n=this.el,r=this.options;if(On=Bt(Ee),Jr=Bt(Ee,r.draggable),wn("drop",this,{evt:t}),Nt=Ee&&Ee.parentNode,On=Bt(Ee),Jr=Bt(Ee,r.draggable),Je.eventCanceled){this._nulling();return}no=!1,Ca=!1,Ci=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),gd(this.cloneId),gd(this._dragStartId),this.nativeDraggable&&(ot(document,"drop",this),ot(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),yi&&Ve(document.body,"user-select",""),Ve(Ee,"transform",""),t&&(ni&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),st&&st.parentNode&&st.parentNode.removeChild(st),(Dt===Nt||sn&&sn.lastPutMode!=="clone")&&Mt&&Mt.parentNode&&Mt.parentNode.removeChild(Mt),Ee&&(this.nativeDraggable&&ot(Ee,"dragend",this),fc(Ee),Ee.style["will-change"]="",ni&&!no&&Rt(Ee,sn?sn.options.ghostClass:this.options.ghostClass,!1),Rt(Ee,this.options.chosenClass,!1),hn({sortable:this,name:"unchoose",toEl:Nt,newIndex:null,newDraggableIndex:null,originalEvent:t}),Dt!==Nt?(On>=0&&(hn({rootEl:Nt,name:"add",toEl:Nt,fromEl:Dt,originalEvent:t}),hn({sortable:this,name:"remove",toEl:Nt,originalEvent:t}),hn({rootEl:Nt,name:"sort",toEl:Nt,fromEl:Dt,originalEvent:t}),hn({sortable:this,name:"sort",toEl:Nt,originalEvent:t})),sn&&sn.save()):On!==io&&On>=0&&(hn({sortable:this,name:"update",toEl:Nt,originalEvent:t}),hn({sortable:this,name:"sort",toEl:Nt,originalEvent:t})),Je.active&&((On==null||On===-1)&&(On=io,Jr=bi),hn({sortable:this,name:"end",toEl:Nt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){wn("nulling",this),Dt=Ee=Nt=st=bs=Mt=_l=Qr=gs=Jn=ni=On=Jr=io=bi=Ks=wi=sn=wa=Je.dragged=Je.ghost=Je.clone=Je.active=null,Ll.forEach(function(t){t.checked=!0}),Ll.length=cc=dc=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ee&&(this._onDragOver(t),aA(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,s=0,o=r.length,i=this.options;s<o;s++)n=r[s],tr(n,i.draggable,this.el,!1)&&t.push(n.getAttribute(i.dataIdAttr)||fA(n));return t},sort:function(t,n){var r={},s=this.el;this.toArray().forEach(function(o,i){var a=s.children[i];tr(a,this.options.draggable,s,!1)&&(r[o]=a)},this),n&&this.captureAnimationState(),t.forEach(function(o){r[o]&&(s.removeChild(r[o]),s.appendChild(r[o]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return tr(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var r=this.options;if(n===void 0)return r[t];var s=Xi.modifyOption(this,t,n);typeof s!="undefined"?r[t]=s:r[t]=n,t==="group"&&Ov(r)},destroy:function(){wn("destroy",this);var t=this.el;t[cn]=null,ot(t,"mousedown",this._onTapStart),ot(t,"touchstart",this._onTapStart),ot(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(ot(t,"dragover",this),ot(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Rl.splice(Rl.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Qr){if(wn("hideClone",this),Je.eventCanceled)return;Ve(Mt,"display","none"),this.options.removeCloneOnHide&&Mt.parentNode&&Mt.parentNode.removeChild(Mt),Qr=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Qr){if(wn("showClone",this),Je.eventCanceled)return;Ee.parentNode==Dt&&!this.options.group.revertClone?Dt.insertBefore(Mt,Ee):bs?Dt.insertBefore(Mt,bs):Dt.appendChild(Mt),this.options.group.revertClone&&this.animate(Ee,Mt),Ve(Mt,"display",""),Qr=!1}}};function aA(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function xa(e,t,n,r,s,o,i,a){var u,c=e[cn],d=c.options.onMove,f;return window.CustomEvent&&!Mr&&!Ji?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=t,u.from=e,u.dragged=n,u.draggedRect=r,u.related=s||t,u.relatedRect=o||Ft(t),u.willInsertAfter=a,u.originalEvent=i,e.dispatchEvent(u),d&&(f=d.call(c,u,i)),f}function fc(e){e.draggable=!1}function lA(){_d=!1}function uA(e,t,n){var r=Ft(xo(n.el,0,n.options,!0)),s=10;return t?e.clientX<r.left-s||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-s||e.clientY<r.bottom&&e.clientX<r.left}function cA(e,t,n){var r=Ft(Dm(n.el,n.options.draggable)),s=10;return t?e.clientX>r.right+s||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+s}function dA(e,t,n,r,s,o,i,a){var u=r?e.clientY:e.clientX,c=r?n.height:n.width,d=r?n.top:n.left,f=r?n.bottom:n.right,m=!1;if(!i){if(a&&gl<c*s){if(!Ci&&(wi===1?u>d+c*o/2:u<f-c*o/2)&&(Ci=!0),Ci)m=!0;else if(wi===1?u<d+gl:u>f-gl)return-wi}else if(u>d+c*(1-s)/2&&u<f-c*(1-s)/2)return mA(t)}return m=m||i,m&&(u<d+c*o/2||u>f-c*o/2)?u>d+c/2?1:-1:0}function mA(e){return Bt(Ee)<Bt(e)?1:-1}function fA(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function pA(e){Ll.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&Ll.push(r)}}function yl(e){return setTimeout(e,0)}function gd(e){return clearTimeout(e)}zu&&lt(document,"touchmove",function(e){(Je.active||no)&&e.cancelable&&e.preventDefault()});Je.utils={on:lt,off:ot,css:Ve,find:Ev,is:function(t,n){return!!tr(t,n,t,!1)},extend:J$,throttle:Sv,closest:tr,toggleClass:Rt,clone:Fm,index:Bt,nextTick:yl,cancelNextTick:gd,detectDirection:Tv,getChild:xo};Je.get=function(e){return e[cn]};Je.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Je.utils=br(br({},Je.utils),r.utils)),Xi.mount(r)})};Je.create=function(e,t){return new Je(e,t)};Je.version=G$;var Wt=[],ri,yd,vd=!1,pc,hc,Nl,si;function hA(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?lt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?lt(document,"pointermove",this._handleFallbackAutoScroll):r.touches?lt(document,"touchmove",this._handleFallbackAutoScroll):lt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?ot(document,"dragover",this._handleAutoScroll):(ot(document,"pointermove",this._handleFallbackAutoScroll),ot(document,"touchmove",this._handleFallbackAutoScroll),ot(document,"mousemove",this._handleFallbackAutoScroll)),gh(),vl(),X$()},nulling:function(){Nl=yd=ri=vd=si=pc=hc=null,Wt.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var s=this,o=(n.touches?n.touches[0]:n).clientX,i=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(o,i);if(Nl=n,r||this.options.forceAutoScrollFallback||Ji||Mr||yi){_c(n,this.options,a,r);var u=ts(a,!0);vd&&(!si||o!==pc||i!==hc)&&(si&&gh(),si=setInterval(function(){var c=ts(document.elementFromPoint(o,i),!0);c!==u&&(u=c,vl()),_c(n,s.options,c,r)},10),pc=o,hc=i)}else{if(!this.options.bubbleScroll||ts(a,!0)===yr()){vl();return}_c(n,this.options,ts(a,!1),!1)}}},Gn(e,{pluginName:"scroll",initializeByDefault:!0})}function vl(){Wt.forEach(function(e){clearInterval(e.pid)}),Wt=[]}function gh(){clearInterval(si)}var _c=Sv(function(e,t,n,r){if(!!t.scroll){var s=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,i=t.scrollSensitivity,a=t.scrollSpeed,u=yr(),c=!1,d;yd!==n&&(yd=n,vl(),ri=t.scroll,d=t.scrollFn,ri===!0&&(ri=ts(n,!0)));var f=0,m=ri;do{var p=m,h=Ft(p),_=h.top,w=h.bottom,v=h.left,b=h.right,k=h.width,z=h.height,S=void 0,T=void 0,M=p.scrollWidth,L=p.scrollHeight,F=Ve(p),j=p.scrollLeft,K=p.scrollTop;p===u?(S=k<M&&(F.overflowX==="auto"||F.overflowX==="scroll"||F.overflowX==="visible"),T=z<L&&(F.overflowY==="auto"||F.overflowY==="scroll"||F.overflowY==="visible")):(S=k<M&&(F.overflowX==="auto"||F.overflowX==="scroll"),T=z<L&&(F.overflowY==="auto"||F.overflowY==="scroll"));var Q=S&&(Math.abs(b-s)<=i&&j+k<M)-(Math.abs(v-s)<=i&&!!j),U=T&&(Math.abs(w-o)<=i&&K+z<L)-(Math.abs(_-o)<=i&&!!K);if(!Wt[f])for(var G=0;G<=f;G++)Wt[G]||(Wt[G]={});(Wt[f].vx!=Q||Wt[f].vy!=U||Wt[f].el!==p)&&(Wt[f].el=p,Wt[f].vx=Q,Wt[f].vy=U,clearInterval(Wt[f].pid),(Q!=0||U!=0)&&(c=!0,Wt[f].pid=setInterval(function(){r&&this.layer===0&&Je.active._onTouchMove(Nl);var me=Wt[this.layer].vy?Wt[this.layer].vy*a:0,se=Wt[this.layer].vx?Wt[this.layer].vx*a:0;typeof d=="function"&&d.call(Je.dragged.parentNode[cn],se,me,e,Nl,Wt[this.layer].el)!=="continue"||$v(Wt[this.layer].el,se,me)}.bind({layer:f}),24))),f++}while(t.bubbleScroll&&m!==u&&(m=ts(m,!1)));vd=c}},30),Fv=function(t){var n=t.originalEvent,r=t.putSortable,s=t.dragEl,o=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,u=t.unhideGhostForTarget;if(!!n){var c=r||o;a();var d=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(d.clientX,d.clientY);u(),c&&!c.el.contains(f)&&(i("spill"),this.onSpill({dragEl:s,putSortable:r}))}};function Im(){}Im.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var s=xo(this.sortable.el,this.startIndex,this.options);s?this.sortable.el.insertBefore(n,s):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:Fv};Gn(Im,{pluginName:"revertOnSpill"});function Rm(){}Rm.prototype={onSpill:function(t){var n=t.dragEl,r=t.putSortable,s=r||this.sortable;s.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),s.animateAll()},drop:Fv};Gn(Rm,{pluginName:"removeOnSpill"});var Vn;function _A(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var r=n.dragEl;Vn=r},dragOverValid:function(n){var r=n.completed,s=n.target,o=n.onMove,i=n.activeSortable,a=n.changed,u=n.cancel;if(!!i.options.swap){var c=this.sortable.el,d=this.options;if(s&&s!==c){var f=Vn;o(s)!==!1?(Rt(s,d.swapClass,!0),Vn=s):Vn=null,f&&f!==Vn&&Rt(f,d.swapClass,!1)}a(),r(!0),u()}},drop:function(n){var r=n.activeSortable,s=n.putSortable,o=n.dragEl,i=s||this.sortable,a=this.options;Vn&&Rt(Vn,a.swapClass,!1),Vn&&(a.swap||s&&s.options.swap)&&o!==Vn&&(i.captureAnimationState(),i!==r&&r.captureAnimationState(),gA(o,Vn),i.animateAll(),i!==r&&r.animateAll())},nulling:function(){Vn=null}},Gn(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Vn}}})}function gA(e,t){var n=e.parentNode,r=t.parentNode,s,o;!n||!r||n.isEqualNode(t)||r.isEqualNode(e)||(s=Bt(e),o=Bt(t),n.isEqualNode(r)&&s<o&&o++,n.insertBefore(t,n.children[s]),r.insertBefore(e,r.children[o]))}var rt=[],Tn=[],jo,Xn,Ho=!1,Cn=!1,Zs=!1,St,qo,ka;function yA(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?lt(document,"pointerup",this._deselectMultiDrag):(lt(document,"mouseup",this._deselectMultiDrag),lt(document,"touchend",this._deselectMultiDrag)),lt(document,"keydown",this._checkKeyDown),lt(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(s,o){var i="";rt.length&&Xn===t?rt.forEach(function(a,u){i+=(u?", ":"")+a.textContent}):i=o.textContent,s.setData("Text",i)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var r=n.dragEl;St=r},delayEnded:function(){this.isMultiDrag=~rt.indexOf(St)},setupClone:function(n){var r=n.sortable,s=n.cancel;if(!!this.isMultiDrag){for(var o=0;o<rt.length;o++)Tn.push(Fm(rt[o])),Tn[o].sortableIndex=rt[o].sortableIndex,Tn[o].draggable=!1,Tn[o].style["will-change"]="",Rt(Tn[o],this.options.selectedClass,!1),rt[o]===St&&Rt(Tn[o],this.options.chosenClass,!1);r._hideClone(),s()}},clone:function(n){var r=n.sortable,s=n.rootEl,o=n.dispatchSortableEvent,i=n.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||rt.length&&Xn===r&&(yh(!0,s),o("clone"),i())},showClone:function(n){var r=n.cloneNowShown,s=n.rootEl,o=n.cancel;!this.isMultiDrag||(yh(!1,s),Tn.forEach(function(i){Ve(i,"display","")}),r(),ka=!1,o())},hideClone:function(n){var r=this;n.sortable;var s=n.cloneNowHidden,o=n.cancel;!this.isMultiDrag||(Tn.forEach(function(i){Ve(i,"display","none"),r.options.removeCloneOnHide&&i.parentNode&&i.parentNode.removeChild(i)}),s(),ka=!0,o())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Xn&&Xn.multiDrag._deselectMultiDrag(),rt.forEach(function(r){r.sortableIndex=Bt(r)}),rt=rt.sort(function(r,s){return r.sortableIndex-s.sortableIndex}),Zs=!0},dragStarted:function(n){var r=this,s=n.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(s.captureAnimationState(),this.options.animation)){rt.forEach(function(i){i!==St&&Ve(i,"position","absolute")});var o=Ft(St,!1,!0,!0);rt.forEach(function(i){i!==St&&fh(i,o)}),Cn=!0,Ho=!0}s.animateAll(function(){Cn=!1,Ho=!1,r.options.animation&&rt.forEach(function(i){lc(i)}),r.options.sort&&Ea()})}},dragOver:function(n){var r=n.target,s=n.completed,o=n.cancel;Cn&&~rt.indexOf(r)&&(s(!1),o())},revert:function(n){var r=n.fromSortable,s=n.rootEl,o=n.sortable,i=n.dragRect;rt.length>1&&(rt.forEach(function(a){o.addAnimationState({target:a,rect:Cn?Ft(a):i}),lc(a),a.fromRect=i,r.removeAnimationState(a)}),Cn=!1,vA(!this.options.removeCloneOnHide,s))},dragOverCompleted:function(n){var r=n.sortable,s=n.isOwner,o=n.insertion,i=n.activeSortable,a=n.parentEl,u=n.putSortable,c=this.options;if(o){if(s&&i._hideClone(),Ho=!1,c.animation&&rt.length>1&&(Cn||!s&&!i.options.sort&&!u)){var d=Ft(St,!1,!0,!0);rt.forEach(function(m){m!==St&&(fh(m,d),a.appendChild(m))}),Cn=!0}if(!s)if(Cn||Ea(),rt.length>1){var f=ka;i._showClone(r),i.options.animation&&!ka&&f&&Tn.forEach(function(m){i.addAnimationState({target:m,rect:qo}),m.fromRect=qo,m.thisAnimationDuration=null})}else i._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,s=n.isOwner,o=n.activeSortable;if(rt.forEach(function(a){a.thisAnimationDuration=null}),o.options.animation&&!s&&o.multiDrag.isMultiDrag){qo=Gn({},r);var i=Ts(St,!0);qo.top-=i.f,qo.left-=i.e}},dragOverAnimationComplete:function(){Cn&&(Cn=!1,Ea())},drop:function(n){var r=n.originalEvent,s=n.rootEl,o=n.parentEl,i=n.sortable,a=n.dispatchSortableEvent,u=n.oldIndex,c=n.putSortable,d=c||this.sortable;if(!!r){var f=this.options,m=o.children;if(!Zs)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Rt(St,f.selectedClass,!~rt.indexOf(St)),~rt.indexOf(St))rt.splice(rt.indexOf(St),1),jo=null,ti({sortable:i,rootEl:s,name:"deselect",targetEl:St,originalEvt:r});else{if(rt.push(St),ti({sortable:i,rootEl:s,name:"select",targetEl:St,originalEvt:r}),r.shiftKey&&jo&&i.el.contains(jo)){var p=Bt(jo),h=Bt(St);if(~p&&~h&&p!==h){var _,w;for(h>p?(w=p,_=h):(w=h,_=p+1);w<_;w++)~rt.indexOf(m[w])||(Rt(m[w],f.selectedClass,!0),rt.push(m[w]),ti({sortable:i,rootEl:s,name:"select",targetEl:m[w],originalEvt:r}))}}else jo=St;Xn=d}if(Zs&&this.isMultiDrag){if(Cn=!1,(o[cn].options.sort||o!==s)&&rt.length>1){var v=Ft(St),b=Bt(St,":not(."+this.options.selectedClass+")");if(!Ho&&f.animation&&(St.thisAnimationDuration=null),d.captureAnimationState(),!Ho&&(f.animation&&(St.fromRect=v,rt.forEach(function(z){if(z.thisAnimationDuration=null,z!==St){var S=Cn?Ft(z):v;z.fromRect=S,d.addAnimationState({target:z,rect:S})}})),Ea(),rt.forEach(function(z){m[b]?o.insertBefore(z,m[b]):o.appendChild(z),b++}),u===Bt(St))){var k=!1;rt.forEach(function(z){if(z.sortableIndex!==Bt(z)){k=!0;return}}),k&&a("update")}rt.forEach(function(z){lc(z)}),d.animateAll()}Xn=d}(s===o||c&&c.lastPutMode!=="clone")&&Tn.forEach(function(z){z.parentNode&&z.parentNode.removeChild(z)})}},nullingGlobal:function(){this.isMultiDrag=Zs=!1,Tn.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ot(document,"pointerup",this._deselectMultiDrag),ot(document,"mouseup",this._deselectMultiDrag),ot(document,"touchend",this._deselectMultiDrag),ot(document,"keydown",this._checkKeyDown),ot(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Zs!="undefined"&&Zs)&&Xn===this.sortable&&!(n&&tr(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;rt.length;){var r=rt[0];Rt(r,this.options.selectedClass,!1),rt.shift(),ti({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Gn(e,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[cn];!r||!r.options.multiDrag||~rt.indexOf(n)||(Xn&&Xn!==r&&(Xn.multiDrag._deselectMultiDrag(),Xn=r),Rt(n,r.options.selectedClass,!0),rt.push(n))},deselect:function(n){var r=n.parentNode[cn],s=rt.indexOf(n);!r||!r.options.multiDrag||!~s||(Rt(n,r.options.selectedClass,!1),rt.splice(s,1))}},eventProperties:function(){var n=this,r=[],s=[];return rt.forEach(function(o){r.push({multiDragElement:o,index:o.sortableIndex});var i;Cn&&o!==St?i=-1:Cn?i=Bt(o,":not(."+n.options.selectedClass+")"):i=Bt(o),s.push({multiDragElement:o,index:i})}),{items:U$(rt),clones:[].concat(Tn),oldIndicies:r,newIndicies:s}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function vA(e,t){rt.forEach(function(n,r){var s=t.children[n.sortableIndex+(e?Number(r):0)];s?t.insertBefore(n,s):t.appendChild(n)})}function yh(e,t){Tn.forEach(function(n,r){var s=t.children[n.sortableIndex+(e?Number(r):0)];s?t.insertBefore(n,s):t.appendChild(n)})}function Ea(){rt.forEach(function(e){e!==St&&e.parentNode&&e.parentNode.removeChild(e)})}Je.mount(new hA);Je.mount(Rm,Im);var bA=Object.freeze(Object.defineProperty({__proto__:null,default:Je,MultiDrag:yA,Sortable:Je,Swap:_A},Symbol.toStringTag,{value:"Module"})),wA=vv(bA);(function(e,t){(function(r,s){e.exports=s(zv,wA)})(typeof self!="undefined"?self:_n,function(n,r){return function(s){var o={};function i(a){if(o[a])return o[a].exports;var u=o[a]={i:a,l:!1,exports:{}};return s[a].call(u.exports,u,u.exports,i),u.l=!0,u.exports}return i.m=s,i.c=o,i.d=function(a,u,c){i.o(a,u)||Object.defineProperty(a,u,{enumerable:!0,get:c})},i.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,u){if(u&1&&(a=i(a)),u&8||u&4&&typeof a=="object"&&a&&a.__esModule)return a;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:a}),u&2&&typeof a!="string")for(var d in a)i.d(c,d,function(f){return a[f]}.bind(null,d));return c},i.n=function(a){var u=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(u,"a",u),u},i.o=function(a,u){return Object.prototype.hasOwnProperty.call(a,u)},i.p="",i(i.s="fb15")}({"00ee":function(s,o,i){var a=i("b622"),u=a("toStringTag"),c={};c[u]="z",s.exports=String(c)==="[object z]"},"0366":function(s,o,i){var a=i("1c0b");s.exports=function(u,c,d){if(a(u),c===void 0)return u;switch(d){case 0:return function(){return u.call(c)};case 1:return function(f){return u.call(c,f)};case 2:return function(f,m){return u.call(c,f,m)};case 3:return function(f,m,p){return u.call(c,f,m,p)}}return function(){return u.apply(c,arguments)}}},"057f":function(s,o,i){var a=i("fc6a"),u=i("241c").f,c={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(m){try{return u(m)}catch{return d.slice()}};s.exports.f=function(p){return d&&c.call(p)=="[object Window]"?f(p):u(a(p))}},"06cf":function(s,o,i){var a=i("83ab"),u=i("d1e7"),c=i("5c6c"),d=i("fc6a"),f=i("c04e"),m=i("5135"),p=i("0cfb"),h=Object.getOwnPropertyDescriptor;o.f=a?h:function(w,v){if(w=d(w),v=f(v,!0),p)try{return h(w,v)}catch{}if(m(w,v))return c(!u.f.call(w,v),w[v])}},"0cfb":function(s,o,i){var a=i("83ab"),u=i("d039"),c=i("cc12");s.exports=!a&&!u(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(s,o,i){var a=i("23e7"),u=i("d58f").left,c=i("a640"),d=i("ae40"),f=c("reduce"),m=d("reduce",{1:0});a({target:"Array",proto:!0,forced:!f||!m},{reduce:function(h){return u(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(s,o,i){var a=i("c6b6"),u=i("9263");s.exports=function(c,d){var f=c.exec;if(typeof f=="function"){var m=f.call(c,d);if(typeof m!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return m}if(a(c)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return u.call(c,d)}},"159b":function(s,o,i){var a=i("da84"),u=i("fdbc"),c=i("17c2"),d=i("9112");for(var f in u){var m=a[f],p=m&&m.prototype;if(p&&p.forEach!==c)try{d(p,"forEach",c)}catch{p.forEach=c}}},"17c2":function(s,o,i){var a=i("b727").forEach,u=i("a640"),c=i("ae40"),d=u("forEach"),f=c("forEach");s.exports=!d||!f?function(p){return a(this,p,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(s,o,i){var a=i("d066");s.exports=a("document","documentElement")},"1c0b":function(s,o){s.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},"1c7e":function(s,o,i){var a=i("b622"),u=a("iterator"),c=!1;try{var d=0,f={next:function(){return{done:!!d++}},return:function(){c=!0}};f[u]=function(){return this},Array.from(f,function(){throw 2})}catch{}s.exports=function(m,p){if(!p&&!c)return!1;var h=!1;try{var _={};_[u]=function(){return{next:function(){return{done:h=!0}}}},m(_)}catch{}return h}},"1d80":function(s,o){s.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"1dde":function(s,o,i){var a=i("d039"),u=i("b622"),c=i("2d00"),d=u("species");s.exports=function(f){return c>=51||!a(function(){var m=[],p=m.constructor={};return p[d]=function(){return{foo:1}},m[f](Boolean).foo!==1})}},"23cb":function(s,o,i){var a=i("a691"),u=Math.max,c=Math.min;s.exports=function(d,f){var m=a(d);return m<0?u(m+f,0):c(m,f)}},"23e7":function(s,o,i){var a=i("da84"),u=i("06cf").f,c=i("9112"),d=i("6eeb"),f=i("ce4e"),m=i("e893"),p=i("94ca");s.exports=function(h,_){var w=h.target,v=h.global,b=h.stat,k,z,S,T,M,L;if(v?z=a:b?z=a[w]||f(w,{}):z=(a[w]||{}).prototype,z)for(S in _){if(M=_[S],h.noTargetGet?(L=u(z,S),T=L&&L.value):T=z[S],k=p(v?S:w+(b?".":"#")+S,h.forced),!k&&T!==void 0){if(typeof M==typeof T)continue;m(M,T)}(h.sham||T&&T.sham)&&c(M,"sham",!0),d(z,S,M,h)}}},"241c":function(s,o,i){var a=i("ca84"),u=i("7839"),c=u.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(f){return a(f,c)}},"25f0":function(s,o,i){var a=i("6eeb"),u=i("825a"),c=i("d039"),d=i("ad6d"),f="toString",m=RegExp.prototype,p=m[f],h=c(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),_=p.name!=f;(h||_)&&a(RegExp.prototype,f,function(){var v=u(this),b=String(v.source),k=v.flags,z=String(k===void 0&&v instanceof RegExp&&!("flags"in m)?d.call(v):k);return"/"+b+"/"+z},{unsafe:!0})},"2ca0":function(s,o,i){var a=i("23e7"),u=i("06cf").f,c=i("50c4"),d=i("5a34"),f=i("1d80"),m=i("ab13"),p=i("c430"),h="".startsWith,_=Math.min,w=m("startsWith"),v=!p&&!w&&!!function(){var b=u(String.prototype,"startsWith");return b&&!b.writable}();a({target:"String",proto:!0,forced:!v&&!w},{startsWith:function(k){var z=String(f(this));d(k);var S=c(_(arguments.length>1?arguments[1]:void 0,z.length)),T=String(k);return h?h.call(z,T,S):z.slice(S,S+T.length)===T}})},"2d00":function(s,o,i){var a=i("da84"),u=i("342f"),c=a.process,d=c&&c.versions,f=d&&d.v8,m,p;f?(m=f.split("."),p=m[0]+m[1]):u&&(m=u.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=u.match(/Chrome\/(\d+)/),m&&(p=m[1]))),s.exports=p&&+p},"342f":function(s,o,i){var a=i("d066");s.exports=a("navigator","userAgent")||""},"35a1":function(s,o,i){var a=i("f5df"),u=i("3f8c"),c=i("b622"),d=c("iterator");s.exports=function(f){if(f!=null)return f[d]||f["@@iterator"]||u[a(f)]}},"37e8":function(s,o,i){var a=i("83ab"),u=i("9bf2"),c=i("825a"),d=i("df75");s.exports=a?Object.defineProperties:function(m,p){c(m);for(var h=d(p),_=h.length,w=0,v;_>w;)u.f(m,v=h[w++],p[v]);return m}},"3bbe":function(s,o,i){var a=i("861d");s.exports=function(u){if(!a(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}},"3ca3":function(s,o,i){var a=i("6547").charAt,u=i("69f3"),c=i("7dd0"),d="String Iterator",f=u.set,m=u.getterFor(d);c(String,"String",function(p){f(this,{type:d,string:String(p),index:0})},function(){var h=m(this),_=h.string,w=h.index,v;return w>=_.length?{value:void 0,done:!0}:(v=a(_,w),h.index+=v.length,{value:v,done:!1})})},"3f8c":function(s,o){s.exports={}},4160:function(s,o,i){var a=i("23e7"),u=i("17c2");a({target:"Array",proto:!0,forced:[].forEach!=u},{forEach:u})},"428f":function(s,o,i){var a=i("da84");s.exports=a},"44ad":function(s,o,i){var a=i("d039"),u=i("c6b6"),c="".split;s.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return u(d)=="String"?c.call(d,""):Object(d)}:Object},"44d2":function(s,o,i){var a=i("b622"),u=i("7c73"),c=i("9bf2"),d=a("unscopables"),f=Array.prototype;f[d]==null&&c.f(f,d,{configurable:!0,value:u(null)}),s.exports=function(m){f[d][m]=!0}},"44e7":function(s,o,i){var a=i("861d"),u=i("c6b6"),c=i("b622"),d=c("match");s.exports=function(f){var m;return a(f)&&((m=f[d])!==void 0?!!m:u(f)=="RegExp")}},4930:function(s,o,i){var a=i("d039");s.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},"4d64":function(s,o,i){var a=i("fc6a"),u=i("50c4"),c=i("23cb"),d=function(f){return function(m,p,h){var _=a(m),w=u(_.length),v=c(h,w),b;if(f&&p!=p){for(;w>v;)if(b=_[v++],b!=b)return!0}else for(;w>v;v++)if((f||v in _)&&_[v]===p)return f||v||0;return!f&&-1}};s.exports={includes:d(!0),indexOf:d(!1)}},"4de4":function(s,o,i){var a=i("23e7"),u=i("b727").filter,c=i("1dde"),d=i("ae40"),f=c("filter"),m=d("filter");a({target:"Array",proto:!0,forced:!f||!m},{filter:function(h){return u(this,h,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(s,o,i){var a=i("0366"),u=i("7b0b"),c=i("9bdd"),d=i("e95a"),f=i("50c4"),m=i("8418"),p=i("35a1");s.exports=function(_){var w=u(_),v=typeof this=="function"?this:Array,b=arguments.length,k=b>1?arguments[1]:void 0,z=k!==void 0,S=p(w),T=0,M,L,F,j,K,Q;if(z&&(k=a(k,b>2?arguments[2]:void 0,2)),S!=null&&!(v==Array&&d(S)))for(j=S.call(w),K=j.next,L=new v;!(F=K.call(j)).done;T++)Q=z?c(j,k,[F.value,T],!0):F.value,m(L,T,Q);else for(M=f(w.length),L=new v(M);M>T;T++)Q=z?k(w[T],T):w[T],m(L,T,Q);return L.length=T,L}},"4fad":function(s,o,i){var a=i("23e7"),u=i("6f53").entries;a({target:"Object",stat:!0},{entries:function(d){return u(d)}})},"50c4":function(s,o,i){var a=i("a691"),u=Math.min;s.exports=function(c){return c>0?u(a(c),9007199254740991):0}},5135:function(s,o){var i={}.hasOwnProperty;s.exports=function(a,u){return i.call(a,u)}},5319:function(s,o,i){var a=i("d784"),u=i("825a"),c=i("7b0b"),d=i("50c4"),f=i("a691"),m=i("1d80"),p=i("8aa5"),h=i("14c3"),_=Math.max,w=Math.min,v=Math.floor,b=/\$([$&'`]|\d\d?|<[^>]*>)/g,k=/\$([$&'`]|\d\d?)/g,z=function(S){return S===void 0?S:String(S)};a("replace",2,function(S,T,M,L){var F=L.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,j=L.REPLACE_KEEPS_$0,K=F?"$":"$0";return[function(G,me){var se=m(this),ae=G==null?void 0:G[S];return ae!==void 0?ae.call(G,se,me):T.call(String(se),G,me)},function(U,G){if(!F&&j||typeof G=="string"&&G.indexOf(K)===-1){var me=M(T,U,this,G);if(me.done)return me.value}var se=u(U),ae=String(this),Ce=typeof G=="function";Ce||(G=String(G));var Ke=se.global;if(Ke){var Ze=se.unicode;se.lastIndex=0}for(var ve=[];;){var X=h(se,ae);if(X===null||(ve.push(X),!Ke))break;var ge=String(X[0]);ge===""&&(se.lastIndex=p(ae,d(se.lastIndex),Ze))}for(var be="",Fe=0,Le=0;Le<ve.length;Le++){X=ve[Le];for(var W=String(X[0]),ye=_(w(f(X.index),ae.length),0),le=[],xe=1;xe<X.length;xe++)le.push(z(X[xe]));var Ue=X.groups;if(Ce){var O=[W].concat(le,ye,ae);Ue!==void 0&&O.push(Ue);var D=String(G.apply(void 0,O))}else D=Q(W,ae,ye,le,Ue,G);ye>=Fe&&(be+=ae.slice(Fe,ye)+D,Fe=ye+W.length)}return be+ae.slice(Fe)}];function Q(U,G,me,se,ae,Ce){var Ke=me+U.length,Ze=se.length,ve=k;return ae!==void 0&&(ae=c(ae),ve=b),T.call(Ce,ve,function(X,ge){var be;switch(ge.charAt(0)){case"$":return"$";case"&":return U;case"`":return G.slice(0,me);case"'":return G.slice(Ke);case"<":be=ae[ge.slice(1,-1)];break;default:var Fe=+ge;if(Fe===0)return X;if(Fe>Ze){var Le=v(Fe/10);return Le===0?X:Le<=Ze?se[Le-1]===void 0?ge.charAt(1):se[Le-1]+ge.charAt(1):X}be=se[Fe-1]}return be===void 0?"":be})}})},5692:function(s,o,i){var a=i("c430"),u=i("c6cd");(s.exports=function(c,d){return u[c]||(u[c]=d!==void 0?d:{})})("versions",[]).push({version:"3.6.5",mode:a?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(s,o,i){var a=i("d066"),u=i("241c"),c=i("7418"),d=i("825a");s.exports=a("Reflect","ownKeys")||function(m){var p=u.f(d(m)),h=c.f;return h?p.concat(h(m)):p}},"5a34":function(s,o,i){var a=i("44e7");s.exports=function(u){if(a(u))throw TypeError("The method doesn't accept regular expressions");return u}},"5c6c":function(s,o){s.exports=function(i,a){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:a}}},"5db7":function(s,o,i){var a=i("23e7"),u=i("a2bf"),c=i("7b0b"),d=i("50c4"),f=i("1c0b"),m=i("65f0");a({target:"Array",proto:!0},{flatMap:function(h){var _=c(this),w=d(_.length),v;return f(h),v=m(_,0),v.length=u(v,_,_,w,0,1,h,arguments.length>1?arguments[1]:void 0),v}})},6547:function(s,o,i){var a=i("a691"),u=i("1d80"),c=function(d){return function(f,m){var p=String(u(f)),h=a(m),_=p.length,w,v;return h<0||h>=_?d?"":void 0:(w=p.charCodeAt(h),w<55296||w>56319||h+1===_||(v=p.charCodeAt(h+1))<56320||v>57343?d?p.charAt(h):w:d?p.slice(h,h+2):(w-55296<<10)+(v-56320)+65536)}};s.exports={codeAt:c(!1),charAt:c(!0)}},"65f0":function(s,o,i){var a=i("861d"),u=i("e8b5"),c=i("b622"),d=c("species");s.exports=function(f,m){var p;return u(f)&&(p=f.constructor,typeof p=="function"&&(p===Array||u(p.prototype))?p=void 0:a(p)&&(p=p[d],p===null&&(p=void 0))),new(p===void 0?Array:p)(m===0?0:m)}},"69f3":function(s,o,i){var a=i("7f9a"),u=i("da84"),c=i("861d"),d=i("9112"),f=i("5135"),m=i("f772"),p=i("d012"),h=u.WeakMap,_,w,v,b=function(F){return v(F)?w(F):_(F,{})},k=function(F){return function(j){var K;if(!c(j)||(K=w(j)).type!==F)throw TypeError("Incompatible receiver, "+F+" required");return K}};if(a){var z=new h,S=z.get,T=z.has,M=z.set;_=function(F,j){return M.call(z,F,j),j},w=function(F){return S.call(z,F)||{}},v=function(F){return T.call(z,F)}}else{var L=m("state");p[L]=!0,_=function(F,j){return d(F,L,j),j},w=function(F){return f(F,L)?F[L]:{}},v=function(F){return f(F,L)}}s.exports={set:_,get:w,has:v,enforce:b,getterFor:k}},"6eeb":function(s,o,i){var a=i("da84"),u=i("9112"),c=i("5135"),d=i("ce4e"),f=i("8925"),m=i("69f3"),p=m.get,h=m.enforce,_=String(String).split("String");(s.exports=function(w,v,b,k){var z=k?!!k.unsafe:!1,S=k?!!k.enumerable:!1,T=k?!!k.noTargetGet:!1;if(typeof b=="function"&&(typeof v=="string"&&!c(b,"name")&&u(b,"name",v),h(b).source=_.join(typeof v=="string"?v:"")),w===a){S?w[v]=b:d(v,b);return}else z?!T&&w[v]&&(S=!0):delete w[v];S?w[v]=b:u(w,v,b)})(Function.prototype,"toString",function(){return typeof this=="function"&&p(this).source||f(this)})},"6f53":function(s,o,i){var a=i("83ab"),u=i("df75"),c=i("fc6a"),d=i("d1e7").f,f=function(m){return function(p){for(var h=c(p),_=u(h),w=_.length,v=0,b=[],k;w>v;)k=_[v++],(!a||d.call(h,k))&&b.push(m?[k,h[k]]:h[k]);return b}};s.exports={entries:f(!0),values:f(!1)}},"73d9":function(s,o,i){var a=i("44d2");a("flatMap")},7418:function(s,o){o.f=Object.getOwnPropertySymbols},"746f":function(s,o,i){var a=i("428f"),u=i("5135"),c=i("e538"),d=i("9bf2").f;s.exports=function(f){var m=a.Symbol||(a.Symbol={});u(m,f)||d(m,f,{value:c.f(f)})}},7839:function(s,o){s.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(s,o,i){var a=i("1d80");s.exports=function(u){return Object(a(u))}},"7c73":function(s,o,i){var a=i("825a"),u=i("37e8"),c=i("7839"),d=i("d012"),f=i("1be4"),m=i("cc12"),p=i("f772"),h=">",_="<",w="prototype",v="script",b=p("IE_PROTO"),k=function(){},z=function(F){return _+v+h+F+_+"/"+v+h},S=function(F){F.write(z("")),F.close();var j=F.parentWindow.Object;return F=null,j},T=function(){var F=m("iframe"),j="java"+v+":",K;return F.style.display="none",f.appendChild(F),F.src=String(j),K=F.contentWindow.document,K.open(),K.write(z("document.F=Object")),K.close(),K.F},M,L=function(){try{M=document.domain&&new ActiveXObject("htmlfile")}catch{}L=M?S(M):T();for(var F=c.length;F--;)delete L[w][c[F]];return L()};d[b]=!0,s.exports=Object.create||function(j,K){var Q;return j!==null?(k[w]=a(j),Q=new k,k[w]=null,Q[b]=j):Q=L(),K===void 0?Q:u(Q,K)}},"7dd0":function(s,o,i){var a=i("23e7"),u=i("9ed3"),c=i("e163"),d=i("d2bb"),f=i("d44e"),m=i("9112"),p=i("6eeb"),h=i("b622"),_=i("c430"),w=i("3f8c"),v=i("ae93"),b=v.IteratorPrototype,k=v.BUGGY_SAFARI_ITERATORS,z=h("iterator"),S="keys",T="values",M="entries",L=function(){return this};s.exports=function(F,j,K,Q,U,G,me){u(K,j,Q);var se=function(Le){if(Le===U&&ve)return ve;if(!k&&Le in Ke)return Ke[Le];switch(Le){case S:return function(){return new K(this,Le)};case T:return function(){return new K(this,Le)};case M:return function(){return new K(this,Le)}}return function(){return new K(this)}},ae=j+" Iterator",Ce=!1,Ke=F.prototype,Ze=Ke[z]||Ke["@@iterator"]||U&&Ke[U],ve=!k&&Ze||se(U),X=j=="Array"&&Ke.entries||Ze,ge,be,Fe;if(X&&(ge=c(X.call(new F)),b!==Object.prototype&&ge.next&&(!_&&c(ge)!==b&&(d?d(ge,b):typeof ge[z]!="function"&&m(ge,z,L)),f(ge,ae,!0,!0),_&&(w[ae]=L))),U==T&&Ze&&Ze.name!==T&&(Ce=!0,ve=function(){return Ze.call(this)}),(!_||me)&&Ke[z]!==ve&&m(Ke,z,ve),w[j]=ve,U)if(be={values:se(T),keys:G?ve:se(S),entries:se(M)},me)for(Fe in be)(k||Ce||!(Fe in Ke))&&p(Ke,Fe,be[Fe]);else a({target:j,proto:!0,forced:k||Ce},be);return be}},"7f9a":function(s,o,i){var a=i("da84"),u=i("8925"),c=a.WeakMap;s.exports=typeof c=="function"&&/native code/.test(u(c))},"825a":function(s,o,i){var a=i("861d");s.exports=function(u){if(!a(u))throw TypeError(String(u)+" is not an object");return u}},"83ab":function(s,o,i){var a=i("d039");s.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(s,o,i){var a=i("c04e"),u=i("9bf2"),c=i("5c6c");s.exports=function(d,f,m){var p=a(f);p in d?u.f(d,p,c(0,m)):d[p]=m}},"861d":function(s,o){s.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},8875:function(s,o,i){var a,u,c;(function(d,f){u=[],a=f,c=typeof a=="function"?a.apply(o,u):a,c!==void 0&&(s.exports=c)})(typeof self!="undefined"?self:this,function(){function d(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==d&&document.currentScript)return document.currentScript;try{throw new Error}catch(M){var m=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,p=/@([^@]*):(\d+):(\d+)\s*$/ig,h=m.exec(M.stack)||p.exec(M.stack),_=h&&h[1]||!1,w=h&&h[2]||!1,v=document.location.href.replace(document.location.hash,""),b,k,z,S=document.getElementsByTagName("script");_===v&&(b=document.documentElement.outerHTML,k=new RegExp("(?:[^\\n]+?\\n){0,"+(w-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),z=b.replace(k,"$1").trim());for(var T=0;T<S.length;T++)if(S[T].readyState==="interactive"||S[T].src===_||_===v&&S[T].innerHTML&&S[T].innerHTML.trim()===z)return S[T];return null}}return d})},8925:function(s,o,i){var a=i("c6cd"),u=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(c){return u.call(c)}),s.exports=a.inspectSource},"8aa5":function(s,o,i){var a=i("6547").charAt;s.exports=function(u,c,d){return c+(d?a(u,c).length:1)}},"8bbf":function(s,o){s.exports=n},"90e3":function(s,o){var i=0,a=Math.random();s.exports=function(u){return"Symbol("+String(u===void 0?"":u)+")_"+(++i+a).toString(36)}},9112:function(s,o,i){var a=i("83ab"),u=i("9bf2"),c=i("5c6c");s.exports=a?function(d,f,m){return u.f(d,f,c(1,m))}:function(d,f,m){return d[f]=m,d}},9263:function(s,o,i){var a=i("ad6d"),u=i("9f7f"),c=RegExp.prototype.exec,d=String.prototype.replace,f=c,m=function(){var w=/a/,v=/b*/g;return c.call(w,"a"),c.call(v,"a"),w.lastIndex!==0||v.lastIndex!==0}(),p=u.UNSUPPORTED_Y||u.BROKEN_CARET,h=/()??/.exec("")[1]!==void 0,_=m||h||p;_&&(f=function(v){var b=this,k,z,S,T,M=p&&b.sticky,L=a.call(b),F=b.source,j=0,K=v;return M&&(L=L.replace("y",""),L.indexOf("g")===-1&&(L+="g"),K=String(v).slice(b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&v[b.lastIndex-1]!==`
`)&&(F="(?: "+F+")",K=" "+K,j++),z=new RegExp("^(?:"+F+")",L)),h&&(z=new RegExp("^"+F+"$(?!\\s)",L)),m&&(k=b.lastIndex),S=c.call(M?z:b,K),M?S?(S.input=S.input.slice(j),S[0]=S[0].slice(j),S.index=b.lastIndex,b.lastIndex+=S[0].length):b.lastIndex=0:m&&S&&(b.lastIndex=b.global?S.index+S[0].length:k),h&&S&&S.length>1&&d.call(S[0],z,function(){for(T=1;T<arguments.length-2;T++)arguments[T]===void 0&&(S[T]=void 0)}),S}),s.exports=f},"94ca":function(s,o,i){var a=i("d039"),u=/#|\.prototype\./,c=function(h,_){var w=f[d(h)];return w==p?!0:w==m?!1:typeof _=="function"?a(_):!!_},d=c.normalize=function(h){return String(h).replace(u,".").toLowerCase()},f=c.data={},m=c.NATIVE="N",p=c.POLYFILL="P";s.exports=c},"99af":function(s,o,i){var a=i("23e7"),u=i("d039"),c=i("e8b5"),d=i("861d"),f=i("7b0b"),m=i("50c4"),p=i("8418"),h=i("65f0"),_=i("1dde"),w=i("b622"),v=i("2d00"),b=w("isConcatSpreadable"),k=9007199254740991,z="Maximum allowed index exceeded",S=v>=51||!u(function(){var F=[];return F[b]=!1,F.concat()[0]!==F}),T=_("concat"),M=function(F){if(!d(F))return!1;var j=F[b];return j!==void 0?!!j:c(F)},L=!S||!T;a({target:"Array",proto:!0,forced:L},{concat:function(j){var K=f(this),Q=h(K,0),U=0,G,me,se,ae,Ce;for(G=-1,se=arguments.length;G<se;G++)if(Ce=G===-1?K:arguments[G],M(Ce)){if(ae=m(Ce.length),U+ae>k)throw TypeError(z);for(me=0;me<ae;me++,U++)me in Ce&&p(Q,U,Ce[me])}else{if(U>=k)throw TypeError(z);p(Q,U++,Ce)}return Q.length=U,Q}})},"9bdd":function(s,o,i){var a=i("825a");s.exports=function(u,c,d,f){try{return f?c(a(d)[0],d[1]):c(d)}catch(p){var m=u.return;throw m!==void 0&&a(m.call(u)),p}}},"9bf2":function(s,o,i){var a=i("83ab"),u=i("0cfb"),c=i("825a"),d=i("c04e"),f=Object.defineProperty;o.f=a?f:function(p,h,_){if(c(p),h=d(h,!0),c(_),u)try{return f(p,h,_)}catch{}if("get"in _||"set"in _)throw TypeError("Accessors not supported");return"value"in _&&(p[h]=_.value),p}},"9ed3":function(s,o,i){var a=i("ae93").IteratorPrototype,u=i("7c73"),c=i("5c6c"),d=i("d44e"),f=i("3f8c"),m=function(){return this};s.exports=function(p,h,_){var w=h+" Iterator";return p.prototype=u(a,{next:c(1,_)}),d(p,w,!1,!0),f[w]=m,p}},"9f7f":function(s,o,i){var a=i("d039");function u(c,d){return RegExp(c,d)}o.UNSUPPORTED_Y=a(function(){var c=u("a","y");return c.lastIndex=2,c.exec("abcd")!=null}),o.BROKEN_CARET=a(function(){var c=u("^r","gy");return c.lastIndex=2,c.exec("str")!=null})},a2bf:function(s,o,i){var a=i("e8b5"),u=i("50c4"),c=i("0366"),d=function(f,m,p,h,_,w,v,b){for(var k=_,z=0,S=v?c(v,b,3):!1,T;z<h;){if(z in p){if(T=S?S(p[z],z,m):p[z],w>0&&a(T))k=d(f,m,T,u(T.length),k,w-1)-1;else{if(k>=9007199254740991)throw TypeError("Exceed the acceptable array length");f[k]=T}k++}z++}return k};s.exports=d},a352:function(s,o){s.exports=r},a434:function(s,o,i){var a=i("23e7"),u=i("23cb"),c=i("a691"),d=i("50c4"),f=i("7b0b"),m=i("65f0"),p=i("8418"),h=i("1dde"),_=i("ae40"),w=h("splice"),v=_("splice",{ACCESSORS:!0,0:0,1:2}),b=Math.max,k=Math.min,z=9007199254740991,S="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!w||!v},{splice:function(M,L){var F=f(this),j=d(F.length),K=u(M,j),Q=arguments.length,U,G,me,se,ae,Ce;if(Q===0?U=G=0:Q===1?(U=0,G=j-K):(U=Q-2,G=k(b(c(L),0),j-K)),j+U-G>z)throw TypeError(S);for(me=m(F,G),se=0;se<G;se++)ae=K+se,ae in F&&p(me,se,F[ae]);if(me.length=G,U<G){for(se=K;se<j-G;se++)ae=se+G,Ce=se+U,ae in F?F[Ce]=F[ae]:delete F[Ce];for(se=j;se>j-G+U;se--)delete F[se-1]}else if(U>G)for(se=j-G;se>K;se--)ae=se+G-1,Ce=se+U-1,ae in F?F[Ce]=F[ae]:delete F[Ce];for(se=0;se<U;se++)F[se+K]=arguments[se+2];return F.length=j-G+U,me}})},a4d3:function(s,o,i){var a=i("23e7"),u=i("da84"),c=i("d066"),d=i("c430"),f=i("83ab"),m=i("4930"),p=i("fdbf"),h=i("d039"),_=i("5135"),w=i("e8b5"),v=i("861d"),b=i("825a"),k=i("7b0b"),z=i("fc6a"),S=i("c04e"),T=i("5c6c"),M=i("7c73"),L=i("df75"),F=i("241c"),j=i("057f"),K=i("7418"),Q=i("06cf"),U=i("9bf2"),G=i("d1e7"),me=i("9112"),se=i("6eeb"),ae=i("5692"),Ce=i("f772"),Ke=i("d012"),Ze=i("90e3"),ve=i("b622"),X=i("e538"),ge=i("746f"),be=i("d44e"),Fe=i("69f3"),Le=i("b727").forEach,W=Ce("hidden"),ye="Symbol",le="prototype",xe=ve("toPrimitive"),Ue=Fe.set,O=Fe.getterFor(ye),D=Object[le],N=u.Symbol,ee=c("JSON","stringify"),re=Q.f,oe=U.f,ze=j.f,he=G.f,fe=ae("symbols"),ne=ae("op-symbols"),V=ae("string-to-symbol-registry"),Z=ae("symbol-to-string-registry"),Se=ae("wks"),Oe=u.QObject,Ye=!Oe||!Oe[le]||!Oe[le].findChild,nt=f&&h(function(){return M(oe({},"a",{get:function(){return oe(this,"a",{value:7}).a}})).a!=7})?function(Pe,ce,_e){var Xe=re(D,ce);Xe&&delete D[ce],oe(Pe,ce,_e),Xe&&Pe!==D&&oe(D,ce,Xe)}:oe,Qe=function(Pe,ce){var _e=fe[Pe]=M(N[le]);return Ue(_e,{type:ye,tag:Pe,description:ce}),f||(_e.description=ce),_e},x=p?function(Pe){return typeof Pe=="symbol"}:function(Pe){return Object(Pe)instanceof N},y=function(ce,_e,Xe){ce===D&&y(ne,_e,Xe),b(ce);var je=S(_e,!0);return b(Xe),_(fe,je)?(Xe.enumerable?(_(ce,W)&&ce[W][je]&&(ce[W][je]=!1),Xe=M(Xe,{enumerable:T(0,!1)})):(_(ce,W)||oe(ce,W,T(1,{})),ce[W][je]=!0),nt(ce,je,Xe)):oe(ce,je,Xe)},I=function(ce,_e){b(ce);var Xe=z(_e),je=L(Xe).concat(Re(Xe));return Le(je,function(_t){(!f||J.call(Xe,_t))&&y(ce,_t,Xe[_t])}),ce},H=function(ce,_e){return _e===void 0?M(ce):I(M(ce),_e)},J=function(ce){var _e=S(ce,!0),Xe=he.call(this,_e);return this===D&&_(fe,_e)&&!_(ne,_e)?!1:Xe||!_(this,_e)||!_(fe,_e)||_(this,W)&&this[W][_e]?Xe:!0},ue=function(ce,_e){var Xe=z(ce),je=S(_e,!0);if(!(Xe===D&&_(fe,je)&&!_(ne,je))){var _t=re(Xe,je);return _t&&_(fe,je)&&!(_(Xe,W)&&Xe[W][je])&&(_t.enumerable=!0),_t}},we=function(ce){var _e=ze(z(ce)),Xe=[];return Le(_e,function(je){!_(fe,je)&&!_(Ke,je)&&Xe.push(je)}),Xe},Re=function(ce){var _e=ce===D,Xe=ze(_e?ne:z(ce)),je=[];return Le(Xe,function(_t){_(fe,_t)&&(!_e||_(D,_t))&&je.push(fe[_t])}),je};if(m||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor");var ce=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),_e=Ze(ce),Xe=function(je){this===D&&Xe.call(ne,je),_(this,W)&&_(this[W],_e)&&(this[W][_e]=!1),nt(this,_e,T(1,je))};return f&&Ye&&nt(D,_e,{configurable:!0,set:Xe}),Qe(_e,ce)},se(N[le],"toString",function(){return O(this).tag}),se(N,"withoutSetter",function(Pe){return Qe(Ze(Pe),Pe)}),G.f=J,U.f=y,Q.f=ue,F.f=j.f=we,K.f=Re,X.f=function(Pe){return Qe(ve(Pe),Pe)},f&&(oe(N[le],"description",{configurable:!0,get:function(){return O(this).description}}),d||se(D,"propertyIsEnumerable",J,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!m,sham:!m},{Symbol:N}),Le(L(Se),function(Pe){ge(Pe)}),a({target:ye,stat:!0,forced:!m},{for:function(Pe){var ce=String(Pe);if(_(V,ce))return V[ce];var _e=N(ce);return V[ce]=_e,Z[_e]=ce,_e},keyFor:function(ce){if(!x(ce))throw TypeError(ce+" is not a symbol");if(_(Z,ce))return Z[ce]},useSetter:function(){Ye=!0},useSimple:function(){Ye=!1}}),a({target:"Object",stat:!0,forced:!m,sham:!f},{create:H,defineProperty:y,defineProperties:I,getOwnPropertyDescriptor:ue}),a({target:"Object",stat:!0,forced:!m},{getOwnPropertyNames:we,getOwnPropertySymbols:Re}),a({target:"Object",stat:!0,forced:h(function(){K.f(1)})},{getOwnPropertySymbols:function(ce){return K.f(k(ce))}}),ee){var Me=!m||h(function(){var Pe=N();return ee([Pe])!="[null]"||ee({a:Pe})!="{}"||ee(Object(Pe))!="{}"});a({target:"JSON",stat:!0,forced:Me},{stringify:function(ce,_e,Xe){for(var je=[ce],_t=1,kr;arguments.length>_t;)je.push(arguments[_t++]);if(kr=_e,!(!v(_e)&&ce===void 0||x(ce)))return w(_e)||(_e=function(Zn,Yn){if(typeof kr=="function"&&(Yn=kr.call(this,Zn,Yn)),!x(Yn))return Yn}),je[1]=_e,ee.apply(null,je)}})}N[le][xe]||me(N[le],xe,N[le].valueOf),be(N,ye),Ke[W]=!0},a630:function(s,o,i){var a=i("23e7"),u=i("4df4"),c=i("1c7e"),d=!c(function(f){Array.from(f)});a({target:"Array",stat:!0,forced:d},{from:u})},a640:function(s,o,i){var a=i("d039");s.exports=function(u,c){var d=[][u];return!!d&&a(function(){d.call(null,c||function(){throw 1},1)})}},a691:function(s,o){var i=Math.ceil,a=Math.floor;s.exports=function(u){return isNaN(u=+u)?0:(u>0?a:i)(u)}},ab13:function(s,o,i){var a=i("b622"),u=a("match");s.exports=function(c){var d=/./;try{"/./"[c](d)}catch{try{return d[u]=!1,"/./"[c](d)}catch{}}return!1}},ac1f:function(s,o,i){var a=i("23e7"),u=i("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==u},{exec:u})},ad6d:function(s,o,i){var a=i("825a");s.exports=function(){var u=a(this),c="";return u.global&&(c+="g"),u.ignoreCase&&(c+="i"),u.multiline&&(c+="m"),u.dotAll&&(c+="s"),u.unicode&&(c+="u"),u.sticky&&(c+="y"),c}},ae40:function(s,o,i){var a=i("83ab"),u=i("d039"),c=i("5135"),d=Object.defineProperty,f={},m=function(p){throw p};s.exports=function(p,h){if(c(f,p))return f[p];h||(h={});var _=[][p],w=c(h,"ACCESSORS")?h.ACCESSORS:!1,v=c(h,0)?h[0]:m,b=c(h,1)?h[1]:void 0;return f[p]=!!_&&!u(function(){if(w&&!a)return!0;var k={length:-1};w?d(k,1,{enumerable:!0,get:m}):k[1]=1,_.call(k,v,b)})}},ae93:function(s,o,i){var a=i("e163"),u=i("9112"),c=i("5135"),d=i("b622"),f=i("c430"),m=d("iterator"),p=!1,h=function(){return this},_,w,v;[].keys&&(v=[].keys(),"next"in v?(w=a(a(v)),w!==Object.prototype&&(_=w)):p=!0),_==null&&(_={}),!f&&!c(_,m)&&u(_,m,h),s.exports={IteratorPrototype:_,BUGGY_SAFARI_ITERATORS:p}},b041:function(s,o,i){var a=i("00ee"),u=i("f5df");s.exports=a?{}.toString:function(){return"[object "+u(this)+"]"}},b0c0:function(s,o,i){var a=i("83ab"),u=i("9bf2").f,c=Function.prototype,d=c.toString,f=/^\s*function ([^ (]*)/,m="name";a&&!(m in c)&&u(c,m,{configurable:!0,get:function(){try{return d.call(this).match(f)[1]}catch{return""}}})},b622:function(s,o,i){var a=i("da84"),u=i("5692"),c=i("5135"),d=i("90e3"),f=i("4930"),m=i("fdbf"),p=u("wks"),h=a.Symbol,_=m?h:h&&h.withoutSetter||d;s.exports=function(w){return c(p,w)||(f&&c(h,w)?p[w]=h[w]:p[w]=_("Symbol."+w)),p[w]}},b64b:function(s,o,i){var a=i("23e7"),u=i("7b0b"),c=i("df75"),d=i("d039"),f=d(function(){c(1)});a({target:"Object",stat:!0,forced:f},{keys:function(p){return c(u(p))}})},b727:function(s,o,i){var a=i("0366"),u=i("44ad"),c=i("7b0b"),d=i("50c4"),f=i("65f0"),m=[].push,p=function(h){var _=h==1,w=h==2,v=h==3,b=h==4,k=h==6,z=h==5||k;return function(S,T,M,L){for(var F=c(S),j=u(F),K=a(T,M,3),Q=d(j.length),U=0,G=L||f,me=_?G(S,Q):w?G(S,0):void 0,se,ae;Q>U;U++)if((z||U in j)&&(se=j[U],ae=K(se,U,F),h)){if(_)me[U]=ae;else if(ae)switch(h){case 3:return!0;case 5:return se;case 6:return U;case 2:m.call(me,se)}else if(b)return!1}return k?-1:v||b?b:me}};s.exports={forEach:p(0),map:p(1),filter:p(2),some:p(3),every:p(4),find:p(5),findIndex:p(6)}},c04e:function(s,o,i){var a=i("861d");s.exports=function(u,c){if(!a(u))return u;var d,f;if(c&&typeof(d=u.toString)=="function"&&!a(f=d.call(u))||typeof(d=u.valueOf)=="function"&&!a(f=d.call(u))||!c&&typeof(d=u.toString)=="function"&&!a(f=d.call(u)))return f;throw TypeError("Can't convert object to primitive value")}},c430:function(s,o){s.exports=!1},c6b6:function(s,o){var i={}.toString;s.exports=function(a){return i.call(a).slice(8,-1)}},c6cd:function(s,o,i){var a=i("da84"),u=i("ce4e"),c="__core-js_shared__",d=a[c]||u(c,{});s.exports=d},c740:function(s,o,i){var a=i("23e7"),u=i("b727").findIndex,c=i("44d2"),d=i("ae40"),f="findIndex",m=!0,p=d(f);f in[]&&Array(1)[f](function(){m=!1}),a({target:"Array",proto:!0,forced:m||!p},{findIndex:function(_){return u(this,_,arguments.length>1?arguments[1]:void 0)}}),c(f)},c8ba:function(s,o){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}s.exports=i},c975:function(s,o,i){var a=i("23e7"),u=i("4d64").indexOf,c=i("a640"),d=i("ae40"),f=[].indexOf,m=!!f&&1/[1].indexOf(1,-0)<0,p=c("indexOf"),h=d("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:m||!p||!h},{indexOf:function(w){return m?f.apply(this,arguments)||0:u(this,w,arguments.length>1?arguments[1]:void 0)}})},ca84:function(s,o,i){var a=i("5135"),u=i("fc6a"),c=i("4d64").indexOf,d=i("d012");s.exports=function(f,m){var p=u(f),h=0,_=[],w;for(w in p)!a(d,w)&&a(p,w)&&_.push(w);for(;m.length>h;)a(p,w=m[h++])&&(~c(_,w)||_.push(w));return _}},caad:function(s,o,i){var a=i("23e7"),u=i("4d64").includes,c=i("44d2"),d=i("ae40"),f=d("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:!f},{includes:function(p){return u(this,p,arguments.length>1?arguments[1]:void 0)}}),c("includes")},cc12:function(s,o,i){var a=i("da84"),u=i("861d"),c=a.document,d=u(c)&&u(c.createElement);s.exports=function(f){return d?c.createElement(f):{}}},ce4e:function(s,o,i){var a=i("da84"),u=i("9112");s.exports=function(c,d){try{u(a,c,d)}catch{a[c]=d}return d}},d012:function(s,o){s.exports={}},d039:function(s,o){s.exports=function(i){try{return!!i()}catch{return!0}}},d066:function(s,o,i){var a=i("428f"),u=i("da84"),c=function(d){return typeof d=="function"?d:void 0};s.exports=function(d,f){return arguments.length<2?c(a[d])||c(u[d]):a[d]&&a[d][f]||u[d]&&u[d][f]}},d1e7:function(s,o,i){var a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,c=u&&!a.call({1:2},1);o.f=c?function(f){var m=u(this,f);return!!m&&m.enumerable}:a},d28b:function(s,o,i){var a=i("746f");a("iterator")},d2bb:function(s,o,i){var a=i("825a"),u=i("3bbe");s.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,d={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(d,[]),c=d instanceof Array}catch{}return function(p,h){return a(p),u(h),c?f.call(p,h):p.__proto__=h,p}}():void 0)},d3b7:function(s,o,i){var a=i("00ee"),u=i("6eeb"),c=i("b041");a||u(Object.prototype,"toString",c,{unsafe:!0})},d44e:function(s,o,i){var a=i("9bf2").f,u=i("5135"),c=i("b622"),d=c("toStringTag");s.exports=function(f,m,p){f&&!u(f=p?f:f.prototype,d)&&a(f,d,{configurable:!0,value:m})}},d58f:function(s,o,i){var a=i("1c0b"),u=i("7b0b"),c=i("44ad"),d=i("50c4"),f=function(m){return function(p,h,_,w){a(h);var v=u(p),b=c(v),k=d(v.length),z=m?k-1:0,S=m?-1:1;if(_<2)for(;;){if(z in b){w=b[z],z+=S;break}if(z+=S,m?z<0:k<=z)throw TypeError("Reduce of empty array with no initial value")}for(;m?z>=0:k>z;z+=S)z in b&&(w=h(w,b[z],z,v));return w}};s.exports={left:f(!1),right:f(!0)}},d784:function(s,o,i){i("ac1f");var a=i("6eeb"),u=i("d039"),c=i("b622"),d=i("9263"),f=i("9112"),m=c("species"),p=!u(function(){var b=/./;return b.exec=function(){var k=[];return k.groups={a:"7"},k},"".replace(b,"$<a>")!=="7"}),h=function(){return"a".replace(/./,"$0")==="$0"}(),_=c("replace"),w=function(){return/./[_]?/./[_]("a","$0")==="":!1}(),v=!u(function(){var b=/(?:)/,k=b.exec;b.exec=function(){return k.apply(this,arguments)};var z="ab".split(b);return z.length!==2||z[0]!=="a"||z[1]!=="b"});s.exports=function(b,k,z,S){var T=c(b),M=!u(function(){var U={};return U[T]=function(){return 7},""[b](U)!=7}),L=M&&!u(function(){var U=!1,G=/a/;return b==="split"&&(G={},G.constructor={},G.constructor[m]=function(){return G},G.flags="",G[T]=/./[T]),G.exec=function(){return U=!0,null},G[T](""),!U});if(!M||!L||b==="replace"&&!(p&&h&&!w)||b==="split"&&!v){var F=/./[T],j=z(T,""[b],function(U,G,me,se,ae){return G.exec===d?M&&!ae?{done:!0,value:F.call(G,me,se)}:{done:!0,value:U.call(me,G,se)}:{done:!1}},{REPLACE_KEEPS_$0:h,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:w}),K=j[0],Q=j[1];a(String.prototype,b,K),a(RegExp.prototype,T,k==2?function(U,G){return Q.call(U,this,G)}:function(U){return Q.call(U,this)})}S&&f(RegExp.prototype[T],"sham",!0)}},d81d:function(s,o,i){var a=i("23e7"),u=i("b727").map,c=i("1dde"),d=i("ae40"),f=c("map"),m=d("map");a({target:"Array",proto:!0,forced:!f||!m},{map:function(h){return u(this,h,arguments.length>1?arguments[1]:void 0)}})},da84:function(s,o,i){(function(a){var u=function(c){return c&&c.Math==Math&&c};s.exports=u(typeof globalThis=="object"&&globalThis)||u(typeof window=="object"&&window)||u(typeof self=="object"&&self)||u(typeof a=="object"&&a)||Function("return this")()}).call(this,i("c8ba"))},dbb4:function(s,o,i){var a=i("23e7"),u=i("83ab"),c=i("56ef"),d=i("fc6a"),f=i("06cf"),m=i("8418");a({target:"Object",stat:!0,sham:!u},{getOwnPropertyDescriptors:function(h){for(var _=d(h),w=f.f,v=c(_),b={},k=0,z,S;v.length>k;)S=w(_,z=v[k++]),S!==void 0&&m(b,z,S);return b}})},dbf1:function(s,o,i){(function(a){i.d(o,"a",function(){return c});function u(){return typeof window!="undefined"?window.console:a.console}var c=u()}).call(this,i("c8ba"))},ddb0:function(s,o,i){var a=i("da84"),u=i("fdbc"),c=i("e260"),d=i("9112"),f=i("b622"),m=f("iterator"),p=f("toStringTag"),h=c.values;for(var _ in u){var w=a[_],v=w&&w.prototype;if(v){if(v[m]!==h)try{d(v,m,h)}catch{v[m]=h}if(v[p]||d(v,p,_),u[_]){for(var b in c)if(v[b]!==c[b])try{d(v,b,c[b])}catch{v[b]=c[b]}}}}},df75:function(s,o,i){var a=i("ca84"),u=i("7839");s.exports=Object.keys||function(d){return a(d,u)}},e01a:function(s,o,i){var a=i("23e7"),u=i("83ab"),c=i("da84"),d=i("5135"),f=i("861d"),m=i("9bf2").f,p=i("e893"),h=c.Symbol;if(u&&typeof h=="function"&&(!("description"in h.prototype)||h().description!==void 0)){var _={},w=function(){var T=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),M=this instanceof w?new h(T):T===void 0?h():h(T);return T===""&&(_[M]=!0),M};p(w,h);var v=w.prototype=h.prototype;v.constructor=w;var b=v.toString,k=String(h("test"))=="Symbol(test)",z=/^Symbol\((.*)\)[^)]+$/;m(v,"description",{configurable:!0,get:function(){var T=f(this)?this.valueOf():this,M=b.call(T);if(d(_,T))return"";var L=k?M.slice(7,-1):M.replace(z,"$1");return L===""?void 0:L}}),a({global:!0,forced:!0},{Symbol:w})}},e163:function(s,o,i){var a=i("5135"),u=i("7b0b"),c=i("f772"),d=i("e177"),f=c("IE_PROTO"),m=Object.prototype;s.exports=d?Object.getPrototypeOf:function(p){return p=u(p),a(p,f)?p[f]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?m:null}},e177:function(s,o,i){var a=i("d039");s.exports=!a(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})},e260:function(s,o,i){var a=i("fc6a"),u=i("44d2"),c=i("3f8c"),d=i("69f3"),f=i("7dd0"),m="Array Iterator",p=d.set,h=d.getterFor(m);s.exports=f(Array,"Array",function(_,w){p(this,{type:m,target:a(_),index:0,kind:w})},function(){var _=h(this),w=_.target,v=_.kind,b=_.index++;return!w||b>=w.length?(_.target=void 0,{value:void 0,done:!0}):v=="keys"?{value:b,done:!1}:v=="values"?{value:w[b],done:!1}:{value:[b,w[b]],done:!1}},"values"),c.Arguments=c.Array,u("keys"),u("values"),u("entries")},e439:function(s,o,i){var a=i("23e7"),u=i("d039"),c=i("fc6a"),d=i("06cf").f,f=i("83ab"),m=u(function(){d(1)}),p=!f||m;a({target:"Object",stat:!0,forced:p,sham:!f},{getOwnPropertyDescriptor:function(_,w){return d(c(_),w)}})},e538:function(s,o,i){var a=i("b622");o.f=a},e893:function(s,o,i){var a=i("5135"),u=i("56ef"),c=i("06cf"),d=i("9bf2");s.exports=function(f,m){for(var p=u(m),h=d.f,_=c.f,w=0;w<p.length;w++){var v=p[w];a(f,v)||h(f,v,_(m,v))}}},e8b5:function(s,o,i){var a=i("c6b6");s.exports=Array.isArray||function(c){return a(c)=="Array"}},e95a:function(s,o,i){var a=i("b622"),u=i("3f8c"),c=a("iterator"),d=Array.prototype;s.exports=function(f){return f!==void 0&&(u.Array===f||d[c]===f)}},f5df:function(s,o,i){var a=i("00ee"),u=i("c6b6"),c=i("b622"),d=c("toStringTag"),f=u(function(){return arguments}())=="Arguments",m=function(p,h){try{return p[h]}catch{}};s.exports=a?u:function(p){var h,_,w;return p===void 0?"Undefined":p===null?"Null":typeof(_=m(h=Object(p),d))=="string"?_:f?u(h):(w=u(h))=="Object"&&typeof h.callee=="function"?"Arguments":w}},f772:function(s,o,i){var a=i("5692"),u=i("90e3"),c=a("keys");s.exports=function(d){return c[d]||(c[d]=u(d))}},fb15:function(s,o,i){if(i.r(o),typeof window!="undefined"){var a=window.document.currentScript;{var u=i("8875");a=u(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:u})}var c=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(i.p=c[1])}i("99af"),i("4de4"),i("4160"),i("c975"),i("d81d"),i("a434"),i("159b"),i("a4d3"),i("e439"),i("dbb4"),i("b64b");function d(x,y,I){return y in x?Object.defineProperty(x,y,{value:I,enumerable:!0,configurable:!0,writable:!0}):x[y]=I,x}function f(x,y){var I=Object.keys(x);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(x);y&&(H=H.filter(function(J){return Object.getOwnPropertyDescriptor(x,J).enumerable})),I.push.apply(I,H)}return I}function m(x){for(var y=1;y<arguments.length;y++){var I=arguments[y]!=null?arguments[y]:{};y%2?f(Object(I),!0).forEach(function(H){d(x,H,I[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(I)):f(Object(I)).forEach(function(H){Object.defineProperty(x,H,Object.getOwnPropertyDescriptor(I,H))})}return x}function p(x){if(Array.isArray(x))return x}i("e01a"),i("d28b"),i("e260"),i("d3b7"),i("3ca3"),i("ddb0");function h(x,y){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(x)))){var I=[],H=!0,J=!1,ue=void 0;try{for(var we=x[Symbol.iterator](),Re;!(H=(Re=we.next()).done)&&(I.push(Re.value),!(y&&I.length===y));H=!0);}catch(Me){J=!0,ue=Me}finally{try{!H&&we.return!=null&&we.return()}finally{if(J)throw ue}}return I}}i("a630"),i("fb6a"),i("b0c0"),i("25f0");function _(x,y){(y==null||y>x.length)&&(y=x.length);for(var I=0,H=new Array(y);I<y;I++)H[I]=x[I];return H}function w(x,y){if(!!x){if(typeof x=="string")return _(x,y);var I=Object.prototype.toString.call(x).slice(8,-1);if(I==="Object"&&x.constructor&&(I=x.constructor.name),I==="Map"||I==="Set")return Array.from(x);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return _(x,y)}}function v(){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 b(x,y){return p(x)||h(x,y)||w(x,y)||v()}function k(x){if(Array.isArray(x))return _(x)}function z(x){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(x))return Array.from(x)}function S(){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 T(x){return k(x)||z(x)||w(x)||S()}var M=i("a352"),L=i.n(M);function F(x){x.parentElement!==null&&x.parentElement.removeChild(x)}function j(x,y,I){var H=I===0?x.children[0]:x.children[I-1].nextSibling;x.insertBefore(y,H)}var K=i("dbf1");i("13d5"),i("4fad"),i("ac1f"),i("5319");function Q(x){var y=Object.create(null);return function(H){var J=y[H];return J||(y[H]=x(H))}}var U=/-(\w)/g,G=Q(function(x){return x.replace(U,function(y,I){return I.toUpperCase()})});i("5db7"),i("73d9");var me=["Start","Add","Remove","Update","End"],se=["Choose","Unchoose","Sort","Filter","Clone"],ae=["Move"],Ce=[ae,me,se].flatMap(function(x){return x}).map(function(x){return"on".concat(x)}),Ke={manage:ae,manageAndEmit:me,emit:se};function Ze(x){return Ce.indexOf(x)!==-1}i("caad"),i("2ca0");var ve=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function X(x){return ve.includes(x)}function ge(x){return["transition-group","TransitionGroup"].includes(x)}function be(x){return["id","class","role","style"].includes(x)||x.startsWith("data-")||x.startsWith("aria-")||x.startsWith("on")}function Fe(x){return x.reduce(function(y,I){var H=b(I,2),J=H[0],ue=H[1];return y[J]=ue,y},{})}function Le(x){var y=x.$attrs,I=x.componentData,H=I===void 0?{}:I,J=Fe(Object.entries(y).filter(function(ue){var we=b(ue,2),Re=we[0];return we[1],be(Re)}));return m(m({},J),H)}function W(x){var y=x.$attrs,I=x.callBackBuilder,H=Fe(ye(y));Object.entries(I).forEach(function(ue){var we=b(ue,2),Re=we[0],Me=we[1];Ke[Re].forEach(function(Pe){H["on".concat(Pe)]=Me(Pe)})});var J="[data-draggable]".concat(H.draggable||"");return m(m({},H),{},{draggable:J})}function ye(x){return Object.entries(x).filter(function(y){var I=b(y,2),H=I[0];return I[1],!be(H)}).map(function(y){var I=b(y,2),H=I[0],J=I[1];return[G(H),J]}).filter(function(y){var I=b(y,2),H=I[0];return I[1],!Ze(H)})}i("c740");function le(x,y){if(!(x instanceof y))throw new TypeError("Cannot call a class as a function")}function xe(x,y){for(var I=0;I<y.length;I++){var H=y[I];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(x,H.key,H)}}function Ue(x,y,I){return y&&xe(x.prototype,y),I&&xe(x,I),x}var O=function(y){var I=y.el;return I},D=function(y,I){return y.__draggable_context=I},N=function(y){return y.__draggable_context},ee=function(){function x(y){var I=y.nodes,H=I.header,J=I.default,ue=I.footer,we=y.root,Re=y.realList;le(this,x),this.defaultNodes=J,this.children=[].concat(T(H),T(J),T(ue)),this.externalComponent=we.externalComponent,this.rootTransition=we.transition,this.tag=we.tag,this.realList=Re}return Ue(x,[{key:"render",value:function(I,H){var J=this.tag,ue=this.children,we=this._isRootComponent,Re=we?{default:function(){return ue}}:ue;return I(J,H,Re)}},{key:"updated",value:function(){var I=this.defaultNodes,H=this.realList;I.forEach(function(J,ue){D(O(J),{element:H[ue],index:ue})})}},{key:"getUnderlyingVm",value:function(I){return N(I)}},{key:"getVmIndexFromDomIndex",value:function(I,H){var J=this.defaultNodes,ue=J.length,we=H.children,Re=we.item(I);if(Re===null)return ue;var Me=N(Re);if(Me)return Me.index;if(ue===0)return 0;var Pe=O(J[0]),ce=T(we).findIndex(function(_e){return _e===Pe});return I<ce?0:ue}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),x}(),re=i("8bbf");function oe(x,y){var I=x[y];return I?I():[]}function ze(x){var y=x.$slots,I=x.realList,H=x.getKey,J=I||[],ue=["header","footer"].map(function(_e){return oe(y,_e)}),we=b(ue,2),Re=we[0],Me=we[1],Pe=y.item;if(!Pe)throw new Error("draggable element must have an item slot");var ce=J.flatMap(function(_e,Xe){return Pe({element:_e,index:Xe}).map(function(je){return je.key=H(_e),je.props=m(m({},je.props||{}),{},{"data-draggable":!0}),je})});if(ce.length!==J.length)throw new Error("Item slot must have only one child");return{header:Re,footer:Me,default:ce}}function he(x){var y=ge(x),I=!X(x)&&!y;return{transition:y,externalComponent:I,tag:I?Object(re.resolveComponent)(x):y?re.TransitionGroup:x}}function fe(x){var y=x.$slots,I=x.tag,H=x.realList,J=x.getKey,ue=ze({$slots:y,realList:H,getKey:J}),we=he(I);return new ee({nodes:ue,root:we,realList:H})}function ne(x,y){var I=this;Object(re.nextTick)(function(){return I.$emit(x.toLowerCase(),y)})}function V(x){var y=this;return function(I,H){if(y.realList!==null)return y["onDrag".concat(x)](I,H)}}function Z(x){var y=this,I=V.call(this,x);return function(H,J){I.call(y,H,J),ne.call(y,x,H)}}var Se=null,Oe={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(y){return y}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Ye=["update:modelValue","change"].concat(T([].concat(T(Ke.manageAndEmit),T(Ke.emit)).map(function(x){return x.toLowerCase()}))),nt=Object(re.defineComponent)({name:"draggable",inheritAttrs:!1,props:Oe,emits:Ye,data:function(){return{error:!1}},render:function(){try{this.error=!1;var y=this.$slots,I=this.$attrs,H=this.tag,J=this.componentData,ue=this.realList,we=this.getKey,Re=fe({$slots:y,tag:H,realList:ue,getKey:we});this.componentStructure=Re;var Me=Le({$attrs:I,componentData:J});return Re.render(re.h,Me)}catch(Pe){return this.error=!0,Object(re.h)("pre",{style:{color:"red"}},Pe.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&K.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var y=this;if(!this.error){var I=this.$attrs,H=this.$el,J=this.componentStructure;J.updated();var ue=W({$attrs:I,callBackBuilder:{manageAndEmit:function(Me){return Z.call(y,Me)},emit:function(Me){return ne.bind(y,Me)},manage:function(Me){return V.call(y,Me)}}}),we=H.nodeType===1?H:H.parentElement;this._sortable=new L.a(we,ue),this.targetDomElement=we,we.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var y=this.list;return y||this.modelValue},getKey:function(){var y=this.itemKey;return typeof y=="function"?y:function(I){return I[y]}}},watch:{$attrs:{handler:function(y){var I=this._sortable;!I||ye(y).forEach(function(H){var J=b(H,2),ue=J[0],we=J[1];I.option(ue,we)})},deep:!0}},methods:{getUnderlyingVm:function(y){return this.componentStructure.getUnderlyingVm(y)||null},getUnderlyingPotencialDraggableComponent:function(y){return y.__draggable_component__},emitChanges:function(y){var I=this;Object(re.nextTick)(function(){return I.$emit("change",y)})},alterList:function(y){if(this.list){y(this.list);return}var I=T(this.modelValue);y(I),this.$emit("update:modelValue",I)},spliceList:function(){var y=arguments,I=function(J){return J.splice.apply(J,T(y))};this.alterList(I)},updatePosition:function(y,I){var H=function(ue){return ue.splice(I,0,ue.splice(y,1)[0])};this.alterList(H)},getRelatedContextFromMoveEvent:function(y){var I=y.to,H=y.related,J=this.getUnderlyingPotencialDraggableComponent(I);if(!J)return{component:J};var ue=J.realList,we={list:ue,component:J};if(I!==H&&ue){var Re=J.getUnderlyingVm(H)||{};return m(m({},Re),we)}return we},getVmIndexFromDomIndex:function(y){return this.componentStructure.getVmIndexFromDomIndex(y,this.targetDomElement)},onDragStart:function(y){this.context=this.getUnderlyingVm(y.item),y.item._underlying_vm_=this.clone(this.context.element),Se=y.item},onDragAdd:function(y){var I=y.item._underlying_vm_;if(I!==void 0){F(y.item);var H=this.getVmIndexFromDomIndex(y.newIndex);this.spliceList(H,0,I);var J={element:I,newIndex:H};this.emitChanges({added:J})}},onDragRemove:function(y){if(j(this.$el,y.item,y.oldIndex),y.pullMode==="clone"){F(y.clone);return}var I=this.context,H=I.index,J=I.element;this.spliceList(H,1);var ue={element:J,oldIndex:H};this.emitChanges({removed:ue})},onDragUpdate:function(y){F(y.item),j(y.from,y.item,y.oldIndex);var I=this.context.index,H=this.getVmIndexFromDomIndex(y.newIndex);this.updatePosition(I,H);var J={element:this.context.element,oldIndex:I,newIndex:H};this.emitChanges({moved:J})},computeFutureIndex:function(y,I){if(!y.element)return 0;var H=T(I.to.children).filter(function(Re){return Re.style.display!=="none"}),J=H.indexOf(I.related),ue=y.component.getVmIndexFromDomIndex(J),we=H.indexOf(Se)!==-1;return we||!I.willInsertAfter?ue:ue+1},onDragMove:function(y,I){var H=this.move,J=this.realList;if(!H||!J)return!0;var ue=this.getRelatedContextFromMoveEvent(y),we=this.computeFutureIndex(ue,y),Re=m(m({},this.context),{},{futureIndex:we}),Me=m(m({},y),{},{relatedContext:ue,draggedContext:Re});return H(Me,I)},onDragEnd:function(){Se=null}}}),Qe=nt;o.default=Qe},fb6a:function(s,o,i){var a=i("23e7"),u=i("861d"),c=i("e8b5"),d=i("23cb"),f=i("50c4"),m=i("fc6a"),p=i("8418"),h=i("b622"),_=i("1dde"),w=i("ae40"),v=_("slice"),b=w("slice",{ACCESSORS:!0,0:0,1:2}),k=h("species"),z=[].slice,S=Math.max;a({target:"Array",proto:!0,forced:!v||!b},{slice:function(M,L){var F=m(this),j=f(F.length),K=d(M,j),Q=d(L===void 0?j:L,j),U,G,me;if(c(F)&&(U=F.constructor,typeof U=="function"&&(U===Array||c(U.prototype))?U=void 0:u(U)&&(U=U[k],U===null&&(U=void 0)),U===Array||U===void 0))return z.call(F,K,Q);for(G=new(U===void 0?Array:U)(S(Q-K,0)),me=0;K<Q;K++,me++)K in F&&p(G,me,F[K]);return G.length=me,G}})},fc6a:function(s,o,i){var a=i("44ad"),u=i("1d80");s.exports=function(c){return a(u(c))}},fdbc:function(s,o){s.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(s,o,i){var a=i("4930");s.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(Cv);var CA=yv(Cv.exports);const zA={name:"PageQueue",components:{ContentWithHeading:mt,ListItemQueueItem:eS,draggable:CA,ModalDialogQueueItem:wv,ModalDialogAddUrlStream:g$,ModalDialogPlaylistSave:N$},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(){q.queue_clear()},update_show_next_items:function(e){this.$store.commit(By,!this.show_only_next_items)},remove:function(e){q.queue_remove(e.id)},move_item:function(e){const t=this.show_only_next_items?e.oldIndex+this.current_position:e.oldIndex,n=this.queue_items[t],r=n.position+(e.newIndex-e.oldIndex);r!==t&&q.queue_move(n.id,r)},open_dialog:function(e){this.selected_item=e,this.show_details_modal=!0},open_add_stream_dialog:function(e){this.show_url_modal=!0},save_dialog:function(e){this.queue_items.length>0&&(this.show_pls_save_modal=!0)}}},xA=["textContent"],kA=["textContent"],EA={class:"buttons is-centered"},SA={class:"icon"},$A=["textContent"],AA={class:"icon"},TA=["textContent"],OA={class:"icon"},PA=["textContent"],DA={class:"icon"},FA=["textContent"],IA=["disabled"],RA={class:"icon"},LA=["textContent"],NA=["onClick"],MA={class:"icon has-text-dark"},VA=["onClick"],BA={class:"icon has-text-grey"};function UA(e,t,n,r,s,o){const i=$("mdicon"),a=$("list-item-queue-item"),u=$("draggable"),c=$("modal-dialog-queue-item"),d=$("modal-dialog-add-url-stream"),f=$("modal-dialog-playlist-save"),m=$("content-with-heading");return E(),ke(m,null,{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.queue.title"))},null,8,xA),l("p",{class:"heading",textContent:g(e.$t("page.queue.count",{count:o.queue.count}))},null,8,kA)]),"heading-right":A(()=>[l("div",EA,[l("a",{class:We(["button is-small",{"is-info":o.show_only_next_items}]),onClick:t[0]||(t[0]=(...p)=>o.update_show_next_items&&o.update_show_next_items(...p))},[l("span",SA,[C(i,{name:"arrow-collapse-down",size:"16"})]),l("span",{textContent:g(e.$t("page.queue.hide-previous"))},null,8,$A)],2),l("a",{class:"button is-small",onClick:t[1]||(t[1]=(...p)=>o.open_add_stream_dialog&&o.open_add_stream_dialog(...p))},[l("span",AA,[C(i,{name:"web",size:"16"})]),l("span",{textContent:g(e.$t("page.queue.add-stream"))},null,8,TA)]),l("a",{class:We(["button is-small",{"is-info":s.edit_mode}]),onClick:t[2]||(t[2]=p=>s.edit_mode=!s.edit_mode)},[l("span",OA,[C(i,{name:"pencil",size:"16"})]),l("span",{textContent:g(e.$t("page.queue.edit"))},null,8,PA)],2),l("a",{class:"button is-small",onClick:t[3]||(t[3]=(...p)=>o.queue_clear&&o.queue_clear(...p))},[l("span",DA,[C(i,{name:"delete-empty",size:"16"})]),l("span",{textContent:g(e.$t("page.queue.clear"))},null,8,FA)]),o.is_queue_save_allowed?(E(),P("a",{key:0,class:"button is-small",disabled:o.queue_items.length===0,onClick:t[4]||(t[4]=(...p)=>o.save_dialog&&o.save_dialog(...p))},[l("span",RA,[C(i,{name:"content-save",size:"16"})]),l("span",{textContent:g(e.$t("page.queue.save"))},null,8,LA)],8,IA)):Y("",!0)])]),content:A(()=>[C(u,{modelValue:o.queue_items,"onUpdate:modelValue":t[5]||(t[5]=p=>o.queue_items=p),handle:".handle","item-key":"id",onEnd:o.move_item},{item:A(({element:p,index:h})=>[C(a,{item:p,position:h,current_position:o.current_position,show_only_next_items:o.show_only_next_items,edit_mode:s.edit_mode},{actions:A(()=>[s.edit_mode?Y("",!0):(E(),P("a",{key:0,onClick:gt(_=>o.open_dialog(p),["prevent","stop"])},[l("span",MA,[C(i,{name:"dots-vertical",size:"16"})])],8,NA)),p.id!==o.state.item_id&&s.edit_mode?(E(),P("a",{key:1,onClick:gt(_=>o.remove(p),["prevent","stop"])},[l("span",BA,[C(i,{name:"delete",size:"18"})])],8,VA)):Y("",!0)]),_:2},1032,["item","position","current_position","show_only_next_items","edit_mode"])]),_:1},8,["modelValue","onEnd"]),C(c,{show:s.show_details_modal,item:s.selected_item,onClose:t[6]||(t[6]=p=>s.show_details_modal=!1)},null,8,["show","item"]),C(d,{show:s.show_url_modal,onClose:t[7]||(t[7]=p=>s.show_url_modal=!1)},null,8,["show"]),o.is_queue_save_allowed?(E(),ke(f,{key:0,show:s.show_pls_save_modal,onClose:t[8]||(t[8]=p=>s.show_pls_save_modal=!1)},null,8,["show"])):Y("",!0)]),_:1})}var jA=pe(zA,[["render",UA]]);function gc(e){return[null,void 0,!1].indexOf(e)!==-1}function vh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function bh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vh(Object(n),!0).forEach(function(r){HA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Iv(e){var t={exports:{}};return e(t,t.exports),t.exports}function bd(e){return bd=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},bd(e)}var wh=Iv(function(e,t){e.exports=function(){var n=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function r(h){return h.split("").reverse().join("")}function s(h,_){return h.substring(0,_.length)===_}function o(h,_){return h.slice(-1*_.length)===_}function i(h,_,w){if((h[_]||h[w])&&h[_]===h[w])throw new Error(_)}function a(h){return typeof h=="number"&&isFinite(h)}function u(h,_){return h=h.toString().split("e"),(+((h=(h=Math.round(+(h[0]+"e"+(h[1]?+h[1]+_:_)))).toString().split("e"))[0]+"e"+(h[1]?+h[1]-_:-_))).toFixed(_)}function c(h,_,w,v,b,k,z,S,T,M,L,F){var j,K,Q,U=F,G="",me="";return k&&(F=k(F)),!!a(F)&&(h!==!1&&parseFloat(F.toFixed(h))===0&&(F=0),F<0&&(j=!0,F=Math.abs(F)),h!==!1&&(F=u(F,h)),(F=F.toString()).indexOf(".")!==-1?(Q=(K=F.split("."))[0],w&&(G=w+K[1])):Q=F,_&&(Q=r(Q).match(/.{1,3}/g),Q=r(Q.join(r(_)))),j&&S&&(me+=S),v&&(me+=v),j&&T&&(me+=T),me+=Q,me+=G,b&&(me+=b),M&&(me=M(me,U)),me)}function d(h,_,w,v,b,k,z,S,T,M,L,F){var j,K="";return L&&(F=L(F)),!(!F||typeof F!="string")&&(S&&s(F,S)&&(F=F.replace(S,""),j=!0),v&&s(F,v)&&(F=F.replace(v,"")),T&&s(F,T)&&(F=F.replace(T,""),j=!0),b&&o(F,b)&&(F=F.slice(0,-1*b.length)),_&&(F=F.split(_).join("")),w&&(F=F.replace(w,".")),j&&(K+="-"),(K=(K+=F).replace(/[^0-9\.\-.]/g,""))!==""&&(K=Number(K),z&&(K=z(K)),!!a(K)&&K))}function f(h){var _,w,v,b={};for(h.suffix===void 0&&(h.suffix=h.postfix),_=0;_<n.length;_+=1)if((v=h[w=n[_]])===void 0)w!=="negative"||b.negativeBefore?w==="mark"&&b.thousand!=="."?b[w]=".":b[w]=!1:b[w]="-";else if(w==="decimals"){if(!(v>=0&&v<8))throw new Error(w);b[w]=v}else if(w==="encoder"||w==="decoder"||w==="edit"||w==="undo"){if(typeof v!="function")throw new Error(w);b[w]=v}else{if(typeof v!="string")throw new Error(w);b[w]=v}return i(b,"mark","thousand"),i(b,"prefix","negative"),i(b,"prefix","negativeBefore"),b}function m(h,_,w){var v,b=[];for(v=0;v<n.length;v+=1)b.push(h[n[v]]);return b.push(w),_.apply("",b)}function p(h){if(!(this instanceof p))return new p(h);bd(h)==="object"&&(h=f(h),this.to=function(_){return m(h,c,_)},this.from=function(_){return m(h,d,_)})}return p}()});function Ch(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function WA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GA(e,t,n){var r=ui(e),s=r.format,o=r.step,i=n.value,a=n.classList,u=$t(function(){return s&&s.value?typeof s.value=="function"?{to:s.value}:wh(function(c){for(var d=1;d<arguments.length;d++){var f=arguments[d]!=null?arguments[d]:{};d%2?Ch(Object(f),!0).forEach(function(m){WA(c,m,f[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(f)):Ch(Object(f)).forEach(function(m){Object.defineProperty(c,m,Object.getOwnPropertyDescriptor(f,m))})}return c}({},s.value)):wh({decimals:o.value>=0?0:2})});return{tooltipsFormat:$t(function(){return Array.isArray(i.value)?i.value.map(function(c){return u.value}):u.value}),tooltipsMerge:function(c,d,f){var m=getComputedStyle(c).direction==="rtl",p=c.noUiSlider.options.direction==="rtl",h=c.noUiSlider.options.orientation==="vertical",_=c.noUiSlider.getTooltips(),w=c.noUiSlider.getOrigins();_.forEach(function(v,b){v&&w[b].appendChild(v)}),c.noUiSlider.on("update",function(v,b,k,z,S){var T=[[]],M=[[]],L=[[]],F=0;_[0]&&(T[0][0]=0,M[0][0]=S[0],L[0][0]=u.value.to(parseFloat(v[0])));for(var j=1;j<v.length;j++)(!_[j]||v[j]-v[j-1]>d)&&(T[++F]=[],L[F]=[],M[F]=[]),_[j]&&(T[F].push(j),L[F].push(u.value.to(parseFloat(v[j]))),M[F].push(S[j]));T.forEach(function(K,Q){for(var U=K.length,G=0;G<U;G++){var me=K[G];if(G===U-1){var se=0;M[Q].forEach(function(Ze){se+=1e3-Ze});var ae=h?"bottom":"right",Ce=p?0:U-1,Ke=1e3-M[Q][Ce];se=(m&&!h?100:0)+se/U-Ke,_[me].innerHTML=L[Q].join(f),_[me].style.display="block",_[me].style[ae]=se+"%",a.value.tooltipHidden.split(" ").forEach(function(Ze){_[me].classList.contains(Ze)&&_[me].classList.remove(Ze)})}else _[me].style.display="none",a.value.tooltipHidden.split(" ").forEach(function(Ze){_[me].classList.add(Ze)})}})})}}}function zi(e){return zi=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},zi(e)}var KA=qA(Iv(function(e,t){(function(n){function r(x){return s(x)&&typeof x.from=="function"}function s(x){return zi(x)==="object"&&typeof x.to=="function"}function o(x){x.parentElement.removeChild(x)}function i(x){return x!=null}function a(x){x.preventDefault()}function u(x){return x.filter(function(y){return!this[y]&&(this[y]=!0)},{})}function c(x,y){return Math.round(x/y)*y}function d(x,y){var I=x.getBoundingClientRect(),H=x.ownerDocument,J=H.documentElement,ue=k(H);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(ue.x=0),y?I.top+ue.y-J.clientTop:I.left+ue.x-J.clientLeft}function f(x){return typeof x=="number"&&!isNaN(x)&&isFinite(x)}function m(x,y,I){I>0&&(w(x,y),setTimeout(function(){v(x,y)},I))}function p(x){return Math.max(Math.min(x,100),0)}function h(x){return Array.isArray(x)?x:[x]}function _(x){var y=(x=String(x)).split(".");return y.length>1?y[1].length:0}function w(x,y){x.classList&&!/\s/.test(y)?x.classList.add(y):x.className+=" "+y}function v(x,y){x.classList&&!/\s/.test(y)?x.classList.remove(y):x.className=x.className.replace(new RegExp("(^|\\b)"+y.split(" ").join("|")+"(\\b|$)","gi")," ")}function b(x,y){return x.classList?x.classList.contains(y):new RegExp("\\b"+y+"\\b").test(x.className)}function k(x){var y=window.pageXOffset!==void 0,I=(x.compatMode||"")==="CSS1Compat";return{x:y?window.pageXOffset:I?x.documentElement.scrollLeft:x.body.scrollLeft,y:y?window.pageYOffset:I?x.documentElement.scrollTop:x.body.scrollTop}}function z(){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 S(){var x=!1;try{var y=Object.defineProperty({},"passive",{get:function(){x=!0}});window.addEventListener("test",null,y)}catch{}return x}function T(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function M(x,y){return 100/(y-x)}function L(x,y,I){return 100*y/(x[I+1]-x[I])}function F(x,y){return L(x,x[0]<0?y+Math.abs(x[0]):y-x[0],0)}function j(x,y){return y*(x[1]-x[0])/100+x[0]}function K(x,y){for(var I=1;x>=y[I];)I+=1;return I}function Q(x,y,I){if(I>=x.slice(-1)[0])return 100;var H=K(I,x),J=x[H-1],ue=x[H],we=y[H-1],Re=y[H];return we+F([J,ue],I)/M(we,Re)}function U(x,y,I){if(I>=100)return x.slice(-1)[0];var H=K(I,y),J=x[H-1],ue=x[H],we=y[H-1];return j([J,ue],(I-we)*M(we,y[H]))}function G(x,y,I,H){if(H===100)return H;var J=K(H,x),ue=x[J-1],we=x[J];return I?H-ue>(we-ue)/2?we:ue:y[J-1]?x[J-1]+c(H-x[J-1],y[J-1]):H}var me,se;n.PipsMode=void 0,(se=n.PipsMode||(n.PipsMode={})).Range="range",se.Steps="steps",se.Positions="positions",se.Count="count",se.Values="values",n.PipsType=void 0,(me=n.PipsType||(n.PipsType={}))[me.None=-1]="None",me[me.NoValue=0]="NoValue",me[me.LargeValue=1]="LargeValue",me[me.SmallValue=2]="SmallValue";var ae=function(){function x(y,I,H){var J;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[H||!1],this.xNumSteps=[!1],this.snap=I;var ue=[];for(Object.keys(y).forEach(function(we){ue.push([h(y[we]),we])}),ue.sort(function(we,Re){return we[0][0]-Re[0][0]}),J=0;J<ue.length;J++)this.handleEntryPoint(ue[J][1],ue[J][0]);for(this.xNumSteps=this.xSteps.slice(0),J=0;J<this.xNumSteps.length;J++)this.handleStepPoint(J,this.xNumSteps[J])}return x.prototype.getDistance=function(y){for(var I=[],H=0;H<this.xNumSteps.length-1;H++)I[H]=L(this.xVal,y,H);return I},x.prototype.getAbsoluteDistance=function(y,I,H){var J,ue=0;if(y<this.xPct[this.xPct.length-1])for(;y>this.xPct[ue+1];)ue++;else y===this.xPct[this.xPct.length-1]&&(ue=this.xPct.length-2);H||y!==this.xPct[ue+1]||ue++,I===null&&(I=[]);var we=1,Re=I[ue],Me=0,Pe=0,ce=0,_e=0;for(J=H?(y-this.xPct[ue])/(this.xPct[ue+1]-this.xPct[ue]):(this.xPct[ue+1]-y)/(this.xPct[ue+1]-this.xPct[ue]);Re>0;)Me=this.xPct[ue+1+_e]-this.xPct[ue+_e],I[ue+_e]*we+100-100*J>100?(Pe=Me*J,we=(Re-100*J)/I[ue+_e],J=1):(Pe=I[ue+_e]*Me/100*we,we=0),H?(ce-=Pe,this.xPct.length+_e>=1&&_e--):(ce+=Pe,this.xPct.length-_e>=1&&_e++),Re=I[ue+_e]*we;return y+ce},x.prototype.toStepping=function(y){return y=Q(this.xVal,this.xPct,y)},x.prototype.fromStepping=function(y){return U(this.xVal,this.xPct,y)},x.prototype.getStep=function(y){return y=G(this.xPct,this.xSteps,this.snap,y)},x.prototype.getDefaultStep=function(y,I,H){var J=K(y,this.xPct);return(y===100||I&&y===this.xPct[J-1])&&(J=Math.max(J-1,1)),(this.xVal[J]-this.xVal[J-1])/H},x.prototype.getNearbySteps=function(y){var I=K(y,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]}}},x.prototype.countStepDecimals=function(){var y=this.xNumSteps.map(_);return Math.max.apply(null,y)},x.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},x.prototype.convert=function(y){return this.getStep(this.toStepping(y))},x.prototype.handleEntryPoint=function(y,I){var H;if(!f(H=y==="min"?0:y==="max"?100:parseFloat(y))||!f(I[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(H),this.xVal.push(I[0]);var J=Number(I[1]);H?this.xSteps.push(!isNaN(J)&&J):isNaN(J)||(this.xSteps[0]=J),this.xHighestCompleteStep.push(0)},x.prototype.handleStepPoint=function(y,I){if(I)if(this.xVal[y]!==this.xVal[y+1]){this.xSteps[y]=L([this.xVal[y],this.xVal[y+1]],I,0)/M(this.xPct[y],this.xPct[y+1]);var H=(this.xVal[y+1]-this.xVal[y])/this.xNumSteps[y],J=Math.ceil(Number(H.toFixed(3))-1),ue=this.xVal[y]+this.xNumSteps[y]*J;this.xHighestCompleteStep[y]=ue}else this.xSteps[y]=this.xHighestCompleteStep[y]=this.xVal[y]},x}(),Ce={to:function(x){return x===void 0?"":x.toFixed(2)},from:Number},Ke={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"},Ze={tooltips:".__tooltips",aria:".__aria"};function ve(x,y){if(!f(y))throw new Error("noUiSlider: 'step' is not numeric.");x.singleStep=y}function X(x,y){if(!f(y))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");x.keyboardPageMultiplier=y}function ge(x,y){if(!f(y))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");x.keyboardMultiplier=y}function be(x,y){if(!f(y))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");x.keyboardDefaultStep=y}function Fe(x,y){if(zi(y)!=="object"||Array.isArray(y))throw new Error("noUiSlider: 'range' is not an object.");if(y.min===void 0||y.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");x.spectrum=new ae(y,x.snap||!1,x.singleStep)}function Le(x,y){if(y=h(y),!Array.isArray(y)||!y.length)throw new Error("noUiSlider: 'start' option is incorrect.");x.handles=y.length,x.start=y}function W(x,y){if(typeof y!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");x.snap=y}function ye(x,y){if(typeof y!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");x.animate=y}function le(x,y){if(typeof y!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");x.animationDuration=y}function xe(x,y){var I,H=[!1];if(y==="lower"?y=[!0,!1]:y==="upper"&&(y=[!1,!0]),y===!0||y===!1){for(I=1;I<x.handles;I++)H.push(y);H.push(!1)}else{if(!Array.isArray(y)||!y.length||y.length!==x.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");H=y}x.connect=H}function Ue(x,y){switch(y){case"horizontal":x.ort=0;break;case"vertical":x.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function O(x,y){if(!f(y))throw new Error("noUiSlider: 'margin' option must be numeric.");y!==0&&(x.margin=x.spectrum.getDistance(y))}function D(x,y){if(!f(y))throw new Error("noUiSlider: 'limit' option must be numeric.");if(x.limit=x.spectrum.getDistance(y),!x.limit||x.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function N(x,y){var I;if(!f(y)&&!Array.isArray(y))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(y)&&y.length!==2&&!f(y[0])&&!f(y[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(y!==0){for(Array.isArray(y)||(y=[y,y]),x.padding=[x.spectrum.getDistance(y[0]),x.spectrum.getDistance(y[1])],I=0;I<x.spectrum.xNumSteps.length-1;I++)if(x.padding[0][I]<0||x.padding[1][I]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var H=y[0]+y[1],J=x.spectrum.xVal[0];if(H/(x.spectrum.xVal[x.spectrum.xVal.length-1]-J)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function ee(x,y){switch(y){case"ltr":x.dir=0;break;case"rtl":x.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function re(x,y){if(typeof y!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var I=y.indexOf("tap")>=0,H=y.indexOf("drag")>=0,J=y.indexOf("fixed")>=0,ue=y.indexOf("snap")>=0,we=y.indexOf("hover")>=0,Re=y.indexOf("unconstrained")>=0,Me=y.indexOf("drag-all")>=0;if(J){if(x.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");O(x,x.start[1]-x.start[0])}if(Re&&(x.margin||x.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");x.events={tap:I||ue,drag:H,dragAll:Me,fixed:J,snap:ue,hover:we,unconstrained:Re}}function oe(x,y){if(y!==!1)if(y===!0||s(y)){x.tooltips=[];for(var I=0;I<x.handles;I++)x.tooltips.push(y)}else{if((y=h(y)).length!==x.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");y.forEach(function(H){if(typeof H!="boolean"&&!s(H))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),x.tooltips=y}}function ze(x,y){if(y.length!==x.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");x.handleAttributes=y}function he(x,y){if(!s(y))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");x.ariaFormat=y}function fe(x,y){if(!r(y))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");x.format=y}function ne(x,y){if(typeof y!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");x.keyboardSupport=y}function V(x,y){x.documentElement=y}function Z(x,y){if(typeof y!="string"&&y!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");x.cssPrefix=y}function Se(x,y){if(zi(y)!=="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof x.cssPrefix=="string"?(x.cssClasses={},Object.keys(y).forEach(function(I){x.cssClasses[I]=x.cssPrefix+y[I]})):x.cssClasses=y}function Oe(x){var y={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:Ce,format:Ce},I={step:{r:!1,t:ve},keyboardPageMultiplier:{r:!1,t:X},keyboardMultiplier:{r:!1,t:ge},keyboardDefaultStep:{r:!1,t:be},start:{r:!0,t:Le},connect:{r:!0,t:xe},direction:{r:!0,t:ee},snap:{r:!1,t:W},animate:{r:!1,t:ye},animationDuration:{r:!1,t:le},range:{r:!0,t:Fe},orientation:{r:!1,t:Ue},margin:{r:!1,t:O},limit:{r:!1,t:D},padding:{r:!1,t:N},behaviour:{r:!0,t:re},ariaFormat:{r:!1,t:he},format:{r:!1,t:fe},tooltips:{r:!1,t:oe},keyboardSupport:{r:!0,t:ne},documentElement:{r:!1,t:V},cssPrefix:{r:!0,t:Z},cssClasses:{r:!0,t:Se},handleAttributes:{r:!1,t:ze}},H={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:Ke,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};x.format&&!x.ariaFormat&&(x.ariaFormat=x.format),Object.keys(I).forEach(function(Me){if(i(x[Me])||H[Me]!==void 0)I[Me].t(y,i(x[Me])?x[Me]:H[Me]);else if(I[Me].r)throw new Error("noUiSlider: '"+Me+"' is required.")}),y.pips=x.pips;var J=document.createElement("div"),ue=J.style.msTransform!==void 0,we=J.style.transform!==void 0;y.transformRule=we?"transform":ue?"msTransform":"webkitTransform";var Re=[["left","top"],["right","bottom"]];return y.style=Re[y.dir][y.ort],y}function Ye(x,y,I){var H,J,ue,we,Re,Me=z(),Pe=T()&&S(),ce=x,_e=y.spectrum,Xe=[],je=[],_t=[],kr=0,Zn={},Yn=x.ownerDocument,sa=y.documentElement||Yn.documentElement,oa=Yn.body,Mb=Yn.dir==="rtl"||y.ort===1?0:100;function Er(R,B){var te=Yn.createElement("div");return B&&w(te,B),R.appendChild(te),te}function Vb(R,B){var te=Er(R,y.cssClasses.origin),de=Er(te,y.cssClasses.handle);if(Er(de,y.cssClasses.touchArea),de.setAttribute("data-handle",String(B)),y.keyboardSupport&&(de.setAttribute("tabindex","0"),de.addEventListener("keydown",function(Te){return e0(Te,B)})),y.handleAttributes!==void 0){var De=y.handleAttributes[B];Object.keys(De).forEach(function(Te){de.setAttribute(Te,De[Te])})}return de.setAttribute("role","slider"),de.setAttribute("aria-orientation",y.ort?"vertical":"horizontal"),B===0?w(de,y.cssClasses.handleLower):B===y.handles-1&&w(de,y.cssClasses.handleUpper),te}function of(R,B){return!!B&&Er(R,y.cssClasses.connect)}function Bb(R,B){var te=Er(B,y.cssClasses.connects);J=[],(ue=[]).push(of(te,R[0]));for(var de=0;de<y.handles;de++)J.push(Vb(B,de)),_t[de]=de,ue.push(of(te,R[de+1]))}function Ub(R){return w(R,y.cssClasses.target),y.dir===0?w(R,y.cssClasses.ltr):w(R,y.cssClasses.rtl),y.ort===0?w(R,y.cssClasses.horizontal):w(R,y.cssClasses.vertical),w(R,getComputedStyle(R).direction==="rtl"?y.cssClasses.textDirectionRtl:y.cssClasses.textDirectionLtr),Er(R,y.cssClasses.base)}function jb(R,B){return!(!y.tooltips||!y.tooltips[B])&&Er(R.firstChild,y.cssClasses.tooltip)}function af(){return ce.hasAttribute("disabled")}function Du(R){return J[R].hasAttribute("disabled")}function Fu(){Re&&(Lo("update"+Ze.tooltips),Re.forEach(function(R){R&&o(R)}),Re=null)}function lf(){Fu(),Re=J.map(jb),Mu("update"+Ze.tooltips,function(R,B,te){if(Re&&y.tooltips&&Re[B]!==!1){var de=R[B];y.tooltips[B]!==!0&&(de=y.tooltips[B].to(te[B])),Re[B].innerHTML=de}})}function Hb(){Lo("update"+Ze.aria),Mu("update"+Ze.aria,function(R,B,te,de,De){_t.forEach(function(Te){var Ge=J[Te],qe=ia(je,Te,0,!0,!0,!0),Ut=ia(je,Te,100,!0,!0,!0),Lt=De[Te],ft=String(y.ariaFormat.to(te[Te]));qe=_e.fromStepping(qe).toFixed(1),Ut=_e.fromStepping(Ut).toFixed(1),Lt=_e.fromStepping(Lt).toFixed(1),Ge.children[0].setAttribute("aria-valuemin",qe),Ge.children[0].setAttribute("aria-valuemax",Ut),Ge.children[0].setAttribute("aria-valuenow",Lt),Ge.children[0].setAttribute("aria-valuetext",ft)})})}function qb(R){if(R.mode===n.PipsMode.Range||R.mode===n.PipsMode.Steps)return _e.xVal;if(R.mode===n.PipsMode.Count){if(R.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var B=R.values-1,te=100/B,de=[];B--;)de[B]=B*te;return de.push(100),uf(de,R.stepped)}return R.mode===n.PipsMode.Positions?uf(R.values,R.stepped):R.mode===n.PipsMode.Values?R.stepped?R.values.map(function(De){return _e.fromStepping(_e.getStep(_e.toStepping(De)))}):R.values:[]}function uf(R,B){return R.map(function(te){return _e.fromStepping(B?_e.getStep(te):te)})}function Wb(R){function B(Lt,ft){return Number((Lt+ft).toFixed(7))}var te=qb(R),de={},De=_e.xVal[0],Te=_e.xVal[_e.xVal.length-1],Ge=!1,qe=!1,Ut=0;return(te=u(te.slice().sort(function(Lt,ft){return Lt-ft})))[0]!==De&&(te.unshift(De),Ge=!0),te[te.length-1]!==Te&&(te.push(Te),qe=!0),te.forEach(function(Lt,ft){var Xt,xt,vn,fn,qt,yf,Uu,vf,bf,wf,ju=Lt,js=te[ft+1],Cf=R.mode===n.PipsMode.Steps;for(Cf&&(Xt=_e.xNumSteps[ft]),Xt||(Xt=js-ju),js===void 0&&(js=ju),Xt=Math.max(Xt,1e-7),xt=ju;xt<=js;xt=B(xt,Xt)){for(vf=(qt=(fn=_e.toStepping(xt))-Ut)/(R.density||1),wf=qt/(bf=Math.round(vf)),vn=1;vn<=bf;vn+=1)de[(yf=Ut+vn*wf).toFixed(5)]=[_e.fromStepping(yf),0];Uu=te.indexOf(xt)>-1?n.PipsType.LargeValue:Cf?n.PipsType.SmallValue:n.PipsType.NoValue,!ft&&Ge&&xt!==js&&(Uu=0),xt===js&&qe||(de[fn.toFixed(5)]=[xt,Uu]),Ut=fn}}),de}function Gb(R,B,te){var de,De,Te=Yn.createElement("div"),Ge=((de={})[n.PipsType.None]="",de[n.PipsType.NoValue]=y.cssClasses.valueNormal,de[n.PipsType.LargeValue]=y.cssClasses.valueLarge,de[n.PipsType.SmallValue]=y.cssClasses.valueSub,de),qe=((De={})[n.PipsType.None]="",De[n.PipsType.NoValue]=y.cssClasses.markerNormal,De[n.PipsType.LargeValue]=y.cssClasses.markerLarge,De[n.PipsType.SmallValue]=y.cssClasses.markerSub,De),Ut=[y.cssClasses.valueHorizontal,y.cssClasses.valueVertical],Lt=[y.cssClasses.markerHorizontal,y.cssClasses.markerVertical];function ft(xt,vn){var fn=vn===y.cssClasses.value,qt=fn?Ge:qe;return vn+" "+(fn?Ut:Lt)[y.ort]+" "+qt[xt]}function Xt(xt,vn,fn){if((fn=B?B(vn,fn):fn)!==n.PipsType.None){var qt=Er(Te,!1);qt.className=ft(fn,y.cssClasses.marker),qt.style[y.style]=xt+"%",fn>n.PipsType.NoValue&&((qt=Er(Te,!1)).className=ft(fn,y.cssClasses.value),qt.setAttribute("data-value",String(vn)),qt.style[y.style]=xt+"%",qt.innerHTML=String(te.to(vn)))}}return w(Te,y.cssClasses.pips),w(Te,y.ort===0?y.cssClasses.pipsHorizontal:y.cssClasses.pipsVertical),Object.keys(R).forEach(function(xt){Xt(xt,R[xt][0],R[xt][1])}),Te}function Iu(){we&&(o(we),we=null)}function Ru(R){Iu();var B=Wb(R),te=R.filter,de=R.format||{to:function(De){return String(Math.round(De))}};return we=ce.appendChild(Gb(B,te,de))}function cf(){var R=H.getBoundingClientRect(),B="offset"+["Width","Height"][y.ort];return y.ort===0?R.width||H[B]:R.height||H[B]}function ps(R,B,te,de){var De=function(Ge){var qe=Kb(Ge,de.pageOffset,de.target||B);return!!qe&&!(af()&&!de.doNotReject)&&!(b(ce,y.cssClasses.tap)&&!de.doNotReject)&&!(R===Me.start&&qe.buttons!==void 0&&qe.buttons>1)&&(!de.hover||!qe.buttons)&&(Pe||qe.preventDefault(),qe.calcPoint=qe.points[y.ort],void te(qe,de))},Te=[];return R.split(" ").forEach(function(Ge){B.addEventListener(Ge,De,!!Pe&&{passive:!0}),Te.push([Ge,De])}),Te}function Kb(R,B,te){var de=R.type.indexOf("touch")===0,De=R.type.indexOf("mouse")===0,Te=R.type.indexOf("pointer")===0,Ge=0,qe=0;if(R.type.indexOf("MSPointer")===0&&(Te=!0),R.type==="mousedown"&&!R.buttons&&!R.touches)return!1;if(de){var Ut=function(Xt){var xt=Xt.target;return xt===te||te.contains(xt)||R.composed&&R.composedPath().shift()===te};if(R.type==="touchstart"){var Lt=Array.prototype.filter.call(R.touches,Ut);if(Lt.length>1)return!1;Ge=Lt[0].pageX,qe=Lt[0].pageY}else{var ft=Array.prototype.find.call(R.changedTouches,Ut);if(!ft)return!1;Ge=ft.pageX,qe=ft.pageY}}return B=B||k(Yn),(De||Te)&&(Ge=R.clientX+B.x,qe=R.clientY+B.y),R.pageOffset=B,R.points=[Ge,qe],R.cursor=De||Te,R}function df(R){var B=100*(R-d(H,y.ort))/cf();return B=p(B),y.dir?100-B:B}function Zb(R){var B=100,te=!1;return J.forEach(function(de,De){if(!Du(De)){var Te=je[De],Ge=Math.abs(Te-R);(Ge<B||Ge<=B&&R>Te||Ge===100&&B===100)&&(te=De,B=Ge)}}),te}function Yb(R,B){R.type==="mouseout"&&R.target.nodeName==="HTML"&&R.relatedTarget===null&&Lu(R,B)}function Jb(R,B){if(navigator.appVersion.indexOf("MSIE 9")===-1&&R.buttons===0&&B.buttonsProperty!==0)return Lu(R,B);var te=(y.dir?-1:1)*(R.calcPoint-B.startCalcPoint);mf(te>0,100*te/B.baseSize,B.locations,B.handleNumbers,B.connect)}function Lu(R,B){B.handle&&(v(B.handle,y.cssClasses.active),kr-=1),B.listeners.forEach(function(te){sa.removeEventListener(te[0],te[1])}),kr===0&&(v(ce,y.cssClasses.drag),Bu(),R.cursor&&(oa.style.cursor="",oa.removeEventListener("selectstart",a))),B.handleNumbers.forEach(function(te){Ht("change",te),Ht("set",te),Ht("end",te)})}function Nu(R,B){if(!B.handleNumbers.some(Du)){var te;B.handleNumbers.length===1&&(te=J[B.handleNumbers[0]].children[0],kr+=1,w(te,y.cssClasses.active)),R.stopPropagation();var de=[],De=ps(Me.move,sa,Jb,{target:R.target,handle:te,connect:B.connect,listeners:de,startCalcPoint:R.calcPoint,baseSize:cf(),pageOffset:R.pageOffset,handleNumbers:B.handleNumbers,buttonsProperty:R.buttons,locations:je.slice()}),Te=ps(Me.end,sa,Lu,{target:R.target,handle:te,listeners:de,doNotReject:!0,handleNumbers:B.handleNumbers}),Ge=ps("mouseout",sa,Yb,{target:R.target,handle:te,listeners:de,doNotReject:!0,handleNumbers:B.handleNumbers});de.push.apply(de,De.concat(Te,Ge)),R.cursor&&(oa.style.cursor=getComputedStyle(R.target).cursor,J.length>1&&w(ce,y.cssClasses.drag),oa.addEventListener("selectstart",a,!1)),B.handleNumbers.forEach(function(qe){Ht("start",qe)})}}function Xb(R){R.stopPropagation();var B=df(R.calcPoint),te=Zb(B);te!==!1&&(y.events.snap||m(ce,y.cssClasses.tap,y.animationDuration),Us(te,B,!0,!0),Bu(),Ht("slide",te,!0),Ht("update",te,!0),y.events.snap?Nu(R,{handleNumbers:[te]}):(Ht("change",te,!0),Ht("set",te,!0)))}function Qb(R){var B=df(R.calcPoint),te=_e.getStep(B),de=_e.fromStepping(te);Object.keys(Zn).forEach(function(De){De.split(".")[0]==="hover"&&Zn[De].forEach(function(Te){Te.call(la,de)})})}function e0(R,B){if(af()||Du(B))return!1;var te=["Left","Right"],de=["Down","Up"],De=["PageDown","PageUp"],Te=["Home","End"];y.dir&&!y.ort?te.reverse():y.ort&&!y.dir&&(de.reverse(),De.reverse());var Ge,qe=R.key.replace("Arrow",""),Ut=qe===De[0],Lt=qe===De[1],ft=qe===de[0]||qe===te[0]||Ut,Xt=qe===de[1]||qe===te[1]||Lt,xt=qe===Te[0],vn=qe===Te[1];if(!(ft||Xt||xt||vn))return!0;if(R.preventDefault(),Xt||ft){var fn=ft?0:1,qt=gf(B)[fn];if(qt===null)return!1;qt===!1&&(qt=_e.getDefaultStep(je[B],ft,y.keyboardDefaultStep)),qt*=Lt||Ut?y.keyboardPageMultiplier:y.keyboardMultiplier,qt=Math.max(qt,1e-7),qt*=ft?-1:1,Ge=Xe[B]+qt}else Ge=vn?y.spectrum.xVal[y.spectrum.xVal.length-1]:y.spectrum.xVal[0];return Us(B,_e.toStepping(Ge),!0,!0),Ht("slide",B),Ht("update",B),Ht("change",B),Ht("set",B),!1}function t0(R){R.fixed||J.forEach(function(B,te){ps(Me.start,B.children[0],Nu,{handleNumbers:[te]})}),R.tap&&ps(Me.start,H,Xb,{}),R.hover&&ps(Me.move,H,Qb,{hover:!0}),R.drag&&ue.forEach(function(B,te){if(B!==!1&&te!==0&&te!==ue.length-1){var de=J[te-1],De=J[te],Te=[B],Ge=[de,De],qe=[te-1,te];w(B,y.cssClasses.draggable),R.fixed&&(Te.push(de.children[0]),Te.push(De.children[0])),R.dragAll&&(Ge=J,qe=_t),Te.forEach(function(Ut){ps(Me.start,Ut,Nu,{handles:Ge,handleNumbers:qe,connect:B})})}})}function Mu(R,B){Zn[R]=Zn[R]||[],Zn[R].push(B),R.split(".")[0]==="update"&&J.forEach(function(te,de){Ht("update",de)})}function n0(R){return R===Ze.aria||R===Ze.tooltips}function Lo(R){var B=R&&R.split(".")[0],te=B?R.substring(B.length):R;Object.keys(Zn).forEach(function(de){var De=de.split(".")[0],Te=de.substring(De.length);B&&B!==De||te&&te!==Te||n0(Te)&&te!==Te||delete Zn[de]})}function Ht(R,B,te){Object.keys(Zn).forEach(function(de){var De=de.split(".")[0];R===De&&Zn[de].forEach(function(Te){Te.call(la,Xe.map(y.format.to),B,Xe.slice(),te||!1,je.slice(),la)})})}function ia(R,B,te,de,De,Te){var Ge;return J.length>1&&!y.events.unconstrained&&(de&&B>0&&(Ge=_e.getAbsoluteDistance(R[B-1],y.margin,!1),te=Math.max(te,Ge)),De&&B<J.length-1&&(Ge=_e.getAbsoluteDistance(R[B+1],y.margin,!0),te=Math.min(te,Ge))),J.length>1&&y.limit&&(de&&B>0&&(Ge=_e.getAbsoluteDistance(R[B-1],y.limit,!1),te=Math.min(te,Ge)),De&&B<J.length-1&&(Ge=_e.getAbsoluteDistance(R[B+1],y.limit,!0),te=Math.max(te,Ge))),y.padding&&(B===0&&(Ge=_e.getAbsoluteDistance(0,y.padding[0],!1),te=Math.max(te,Ge)),B===J.length-1&&(Ge=_e.getAbsoluteDistance(100,y.padding[1],!0),te=Math.min(te,Ge))),!((te=p(te=_e.getStep(te)))===R[B]&&!Te)&&te}function Vu(R,B){var te=y.ort;return(te?B:R)+", "+(te?R:B)}function mf(R,B,te,de,De){var Te=te.slice(),Ge=de[0],qe=[!R,R],Ut=[R,!R];de=de.slice(),R&&de.reverse(),de.length>1?de.forEach(function(ft,Xt){var xt=ia(Te,ft,Te[ft]+B,qe[Xt],Ut[Xt],!1);xt===!1?B=0:(B=xt-Te[ft],Te[ft]=xt)}):qe=Ut=[!0];var Lt=!1;de.forEach(function(ft,Xt){Lt=Us(ft,te[ft]+B,qe[Xt],Ut[Xt])||Lt}),Lt&&(de.forEach(function(ft){Ht("update",ft),Ht("slide",ft)}),De!=null&&Ht("drag",Ge))}function ff(R,B){return y.dir?100-R-B:R}function r0(R,B){je[R]=B,Xe[R]=_e.fromStepping(B);var te="translate("+Vu(ff(B,0)-Mb+"%","0")+")";J[R].style[y.transformRule]=te,pf(R),pf(R+1)}function Bu(){_t.forEach(function(R){var B=je[R]>50?-1:1,te=3+(J.length+B*R);J[R].style.zIndex=String(te)})}function Us(R,B,te,de,De){return De||(B=ia(je,R,B,te,de,!1)),B!==!1&&(r0(R,B),!0)}function pf(R){if(ue[R]){var B=0,te=100;R!==0&&(B=je[R-1]),R!==ue.length-1&&(te=je[R]);var de=te-B,De="translate("+Vu(ff(B,de)+"%","0")+")",Te="scale("+Vu(de/100,"1")+")";ue[R].style[y.transformRule]=De+" "+Te}}function hf(R,B){return R===null||R===!1||R===void 0?je[B]:(typeof R=="number"&&(R=String(R)),(R=y.format.from(R))!==!1&&(R=_e.toStepping(R)),R===!1||isNaN(R)?je[B]:R)}function aa(R,B,te){var de=h(R),De=je[0]===void 0;B=B===void 0||B,y.animate&&!De&&m(ce,y.cssClasses.tap,y.animationDuration),_t.forEach(function(qe){Us(qe,hf(de[qe],qe),!0,!1,te)});var Te=_t.length===1?0:1;if(De&&_e.hasNoSize()&&(te=!0,je[0]=0,_t.length>1)){var Ge=100/(_t.length-1);_t.forEach(function(qe){je[qe]=qe*Ge})}for(;Te<_t.length;++Te)_t.forEach(function(qe){Us(qe,je[qe],!0,!0,te)});Bu(),_t.forEach(function(qe){Ht("update",qe),de[qe]!==null&&B&&Ht("set",qe)})}function s0(R){aa(y.start,R)}function o0(R,B,te,de){if(!((R=Number(R))>=0&&R<_t.length))throw new Error("noUiSlider: invalid handle number, got: "+R);Us(R,hf(B,R),!0,!0,de),Ht("update",R),te&&Ht("set",R)}function _f(R){if(R===void 0&&(R=!1),R)return Xe.length===1?Xe[0]:Xe.slice(0);var B=Xe.map(y.format.to);return B.length===1?B[0]:B}function i0(){for(Lo(Ze.aria),Lo(Ze.tooltips),Object.keys(y.cssClasses).forEach(function(R){v(ce,y.cssClasses[R])});ce.firstChild;)ce.removeChild(ce.firstChild);delete ce.noUiSlider}function gf(R){var B=je[R],te=_e.getNearbySteps(B),de=Xe[R],De=te.thisStep.step,Te=null;if(y.snap)return[de-te.stepBefore.startValue||null,te.stepAfter.startValue-de||null];De!==!1&&de+De>te.stepAfter.startValue&&(De=te.stepAfter.startValue-de),Te=de>te.thisStep.startValue?te.thisStep.step:te.stepBefore.step!==!1&&de-te.stepBefore.highestStep,B===100?De=null:B===0&&(Te=null);var Ge=_e.countStepDecimals();return De!==null&&De!==!1&&(De=Number(De.toFixed(Ge))),Te!==null&&Te!==!1&&(Te=Number(Te.toFixed(Ge))),[Te,De]}function a0(){return _t.map(gf)}function l0(R,B){var te=_f(),de=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"];de.forEach(function(Te){R[Te]!==void 0&&(I[Te]=R[Te])});var De=Oe(I);de.forEach(function(Te){R[Te]!==void 0&&(y[Te]=De[Te])}),_e=De.spectrum,y.margin=De.margin,y.limit=De.limit,y.padding=De.padding,y.pips?Ru(y.pips):Iu(),y.tooltips?lf():Fu(),je=[],aa(i(R.start)?R.start:te,B)}function u0(){H=Ub(ce),Bb(y.connect,H),t0(y.events),aa(y.start),y.pips&&Ru(y.pips),y.tooltips&&lf(),Hb()}u0();var la={destroy:i0,steps:a0,on:Mu,off:Lo,get:_f,set:aa,setHandle:o0,reset:s0,__moveHandles:function(R,B,te){mf(R,B,je,te)},options:I,updateOptions:l0,target:ce,removePips:Iu,removeTooltips:Fu,getPositions:function(){return je.slice()},getTooltips:function(){return Re},getOrigins:function(){return J},pips:Ru};return la}function nt(x,y){if(!x||!x.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+x);if(x.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var I=Ye(x,Oe(y),y);return x.noUiSlider=I,I}var Qe={__spectrum:ae,cssClasses:Ke,create:nt};n.create=nt,n.cssClasses=Ke,n.default=Qe,Object.defineProperty(n,"__esModule",{value:!0})})(t)}));function zh(e,t){var n=t.slice().sort();return e.length===t.length&&e.slice().sort().every(function(r,s){return r===n[s]})}var Mi={name:"Slider",emits:["input","update:modelValue","update","change","start","end"],props:{value:{validator:function(e){return t=>typeof t=="number"||t instanceof Array||t==null||t===!1},required:!1},modelValue:{validator:function(e){return t=>typeof t=="number"||t instanceof Array||t==null||t===!1},required:!1},id:{type:[String,Number],required:!1},disabled:{type:Boolean,required:!1,default:!1},min:{type:Number,required:!1,default:0},max:{type:Number,required:!1,default:100},step:{type:Number,required:!1,default:1},orientation:{type:String,required:!1,default:"horizontal"},direction:{type:String,required:!1,default:"ltr"},tooltips:{type:Boolean,required:!1,default:!0},options:{type:Object,required:!1,default:()=>({})},merge:{type:Number,required:!1,default:-1},format:{type:[Object,Function,Boolean],required:!1,default:null},classes:{type:Object,required:!1,default:()=>({})},showTooltip:{type:String,required:!1,default:"always"},tooltipPosition:{type:String,required:!1,default:null},lazy:{type:Boolean,required:!1,default:!0}},setup(e,t){const n=function(i,a,u){var c=ui(i),d=c.value,f=c.modelValue,m=a.expose!==void 0?f:d,p=Qt(m.value);if(gc(m.value))throw new Error("Slider v-model must be a Number or Array");if(Array.isArray(m.value)&&m.value.length==0)throw new Error("Slider v-model must not be an empty array");return{value:m,initialValue:p}}(e,t),r=function(i,a,u){var c=ui(i),d=c.classes,f=c.showTooltip,m=c.tooltipPosition,p=c.orientation,h=$t(function(){return bh({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:$t(function(){var _=bh({},h.value);return Object.keys(_).forEach(function(w){_[w]=Array.isArray(_[w])?_[w].filter(function(v){return v!==null}).join(" "):_[w]}),f.value!=="always"&&(_.target+=" ".concat(f.value==="drag"?_.tooltipDrag:_.tooltipFocus)),p.value==="horizontal"&&(_.tooltip+=m.value==="bottom"?" ".concat(_.tooltipBottom):" ".concat(_.tooltipTop)),p.value==="vertical"&&(_.tooltip+=m.value==="right"?" ".concat(_.tooltipRight):" ".concat(_.tooltipLeft)),_})}}(e),s=GA(e,0,{value:n.value,classList:r.classList}),o=function(i,a,u){var c=ui(i),d=c.orientation,f=c.direction,m=c.tooltips,p=c.step,h=c.min,_=c.max,w=c.merge,v=c.id,b=c.disabled,k=c.options,z=c.classes,S=c.format,T=c.lazy,M=u.value,L=u.initialValue,F=u.tooltipsFormat,j=u.tooltipsMerge,K=u.classList,Q=Qt(null),U=Qt(null),G=Qt(!1),me=$t(function(){var be={cssPrefix:"",cssClasses:K.value,orientation:d.value,direction:f.value,tooltips:!!m.value&&F.value,connect:"lower",start:gc(M.value)?h.value:M.value,range:{min:h.value,max:_.value}};return p.value>0&&(be.step=p.value),Array.isArray(M.value)&&(be.connect=!0),be}),se=$t(function(){var be={id:v&&v.value?v.value:void 0};return b.value&&(be.disabled=!0),be}),ae=$t(function(){return Array.isArray(M.value)}),Ce=function(){var be=U.value.get();return Array.isArray(be)?be.map(function(Fe){return parseFloat(Fe)}):parseFloat(be)},Ke=function(be){var Fe=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];U.value.set(be,Fe)},Ze=function(be){a.emit("input",be),a.emit("update:modelValue",be),a.emit("update",be)},ve=function(){U.value=KA.create(Q.value,Object.assign({},me.value,k.value)),m.value&&ae.value&&w.value>=0&&j(Q.value,w.value," - "),U.value.on("set",function(be){var Fe=Ce();a.emit("change",Fe),T.value&&Ze(Fe)}),U.value.on("update",function(be){if(G.value){var Fe=Ce();ae.value&&zh(M.value,Fe)||!ae.value&&M.value==Fe?a.emit("update",Fe):T.value||Ze(Fe)}}),U.value.on("start",function(be){var Fe=Ce();a.emit("start",Fe)}),U.value.on("end",function(be){var Fe=Ce();a.emit("end",Fe)}),Q.value.querySelectorAll("[data-handle]").forEach(function(be){be.onblur=function(){K.value.focused.split(" ").forEach(function(Fe){Q.value.classList.remove(Fe)})},be.onfocus=function(){K.value.focused.split(" ").forEach(function(Fe){Q.value.classList.add(Fe)})}}),G.value=!0},X=function(){U.value.off(),U.value.destroy(),U.value=null},ge=function(be,Fe){G.value=!1,X(),ve()};return Ns(ve),To(X),kt(ae,ge,{immediate:!1}),kt(h,ge,{immediate:!1}),kt(_,ge,{immediate:!1}),kt(p,ge,{immediate:!1}),kt(d,ge,{immediate:!1}),kt(f,ge,{immediate:!1}),kt(m,ge,{immediate:!1}),kt(w,ge,{immediate:!1}),kt(S,ge,{immediate:!1,deep:!0}),kt(k,ge,{immediate:!1,deep:!0}),kt(z,ge,{immediate:!1,deep:!0}),kt(M,function(be){gc(be)?Ke(h.value,!1):(ae.value&&!zh(be,Ce())||!ae.value&&be!=Ce())&&Ke(be,!1)},{deep:!0}),{slider:Q,slider$:U,isRange:ae,sliderProps:se,init:ve,destroy:X,refresh:ge,update:Ke,reset:function(){Ze(L.value)}}}(e,t,{value:n.value,initialValue:n.initialValue,tooltipsFormat:s.tooltipsFormat,tooltipsMerge:s.tooltipsMerge,classList:r.classList});return{...r,...s,...o}}};Mi.render=function(e,t,n,r,s,o){return E(),P("div",ks(e.sliderProps,{ref:"slider"}),null,16)},Mi.__file="src/Slider.vue";var Rv={exports:{}},ZA=[{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=ZA,n=t.filter(function(s){return!!s.css}),r=t.filter(function(s){return!!s.vga});e.exports=function(s){var o=e.exports.get(s);return o&&o.value},e.exports.get=function(s){return s=s||"",s=s.trim().toLowerCase(),t.filter(function(o){return o.name.toLowerCase()===s}).pop()},e.exports.all=e.exports.get.all=function(){return t},e.exports.get.css=function(s){return s?(s=s||"",s=s.trim().toLowerCase(),n.filter(function(o){return o.name.toLowerCase()===s}).pop()):n},e.exports.get.vga=function(s){return s?(s=s||"",s=s.trim().toLowerCase(),r.filter(function(o){return o.name.toLowerCase()===s}).pop()):r}})(Rv);var YA=1/0,JA="[object Symbol]",XA=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Lv="\\ud800-\\udfff",QA="\\u0300-\\u036f\\ufe20-\\ufe23",e8="\\u20d0-\\u20f0",Nv="\\u2700-\\u27bf",Mv="a-z\\xdf-\\xf6\\xf8-\\xff",t8="\\xac\\xb1\\xd7\\xf7",n8="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",r8="\\u2000-\\u206f",s8=" \\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",Vv="A-Z\\xc0-\\xd6\\xd8-\\xde",o8="\\ufe0e\\ufe0f",Bv=t8+n8+r8+s8,Uv="['\u2019]",xh="["+Bv+"]",i8="["+QA+e8+"]",jv="\\d+",a8="["+Nv+"]",Hv="["+Mv+"]",qv="[^"+Lv+Bv+jv+Nv+Mv+Vv+"]",l8="\\ud83c[\\udffb-\\udfff]",u8="(?:"+i8+"|"+l8+")",c8="[^"+Lv+"]",Wv="(?:\\ud83c[\\udde6-\\uddff]){2}",Gv="[\\ud800-\\udbff][\\udc00-\\udfff]",ro="["+Vv+"]",d8="\\u200d",kh="(?:"+Hv+"|"+qv+")",m8="(?:"+ro+"|"+qv+")",Eh="(?:"+Uv+"(?:d|ll|m|re|s|t|ve))?",Sh="(?:"+Uv+"(?:D|LL|M|RE|S|T|VE))?",Kv=u8+"?",Zv="["+o8+"]?",f8="(?:"+d8+"(?:"+[c8,Wv,Gv].join("|")+")"+Zv+Kv+")*",p8=Zv+Kv+f8,h8="(?:"+[a8,Wv,Gv].join("|")+")"+p8,_8=RegExp([ro+"?"+Hv+"+"+Eh+"(?="+[xh,ro,"$"].join("|")+")",m8+"+"+Sh+"(?="+[xh,ro+kh,"$"].join("|")+")",ro+"?"+kh+"+"+Eh,ro+"+"+Sh,jv,h8].join("|"),"g"),g8=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,y8=typeof _n=="object"&&_n&&_n.Object===Object&&_n,v8=typeof self=="object"&&self&&self.Object===Object&&self,b8=y8||v8||Function("return this")();function w8(e){return e.match(XA)||[]}function C8(e){return g8.test(e)}function z8(e){return e.match(_8)||[]}var x8=Object.prototype,k8=x8.toString,$h=b8.Symbol,Ah=$h?$h.prototype:void 0,Th=Ah?Ah.toString:void 0;function E8(e){if(typeof e=="string")return e;if($8(e))return Th?Th.call(e):"";var t=e+"";return t=="0"&&1/e==-YA?"-0":t}function S8(e){return!!e&&typeof e=="object"}function $8(e){return typeof e=="symbol"||S8(e)&&k8.call(e)==JA}function A8(e){return e==null?"":E8(e)}function T8(e,t,n){return e=A8(e),t=n?void 0:t,t===void 0?C8(e)?z8(e):w8(e):e.match(t)||[]}var O8=T8,P8=1/0,D8="[object Symbol]",F8=/^\s+/,Lm="\\ud800-\\udfff",Yv="\\u0300-\\u036f\\ufe20-\\ufe23",Jv="\\u20d0-\\u20f0",Xv="\\ufe0e\\ufe0f",I8="["+Lm+"]",wd="["+Yv+Jv+"]",Cd="\\ud83c[\\udffb-\\udfff]",R8="(?:"+wd+"|"+Cd+")",Qv="[^"+Lm+"]",e1="(?:\\ud83c[\\udde6-\\uddff]){2}",t1="[\\ud800-\\udbff][\\udc00-\\udfff]",n1="\\u200d",r1=R8+"?",s1="["+Xv+"]?",L8="(?:"+n1+"(?:"+[Qv,e1,t1].join("|")+")"+s1+r1+")*",N8=s1+r1+L8,M8="(?:"+[Qv+wd+"?",wd,e1,t1,I8].join("|")+")",V8=RegExp(Cd+"(?="+Cd+")|"+M8+N8,"g"),B8=RegExp("["+n1+Lm+Yv+Jv+Xv+"]"),U8=typeof _n=="object"&&_n&&_n.Object===Object&&_n,j8=typeof self=="object"&&self&&self.Object===Object&&self,H8=U8||j8||Function("return this")();function q8(e){return e.split("")}function W8(e,t,n,r){for(var s=e.length,o=n+(r?1:-1);r?o--:++o<s;)if(t(e[o],o,e))return o;return-1}function G8(e,t,n){if(t!==t)return W8(e,K8,n);for(var r=n-1,s=e.length;++r<s;)if(e[r]===t)return r;return-1}function K8(e){return e!==e}function Z8(e,t){for(var n=-1,r=e.length;++n<r&&G8(t,e[n],0)>-1;);return n}function Y8(e){return B8.test(e)}function Oh(e){return Y8(e)?J8(e):q8(e)}function J8(e){return e.match(V8)||[]}var X8=Object.prototype,Q8=X8.toString,Ph=H8.Symbol,Dh=Ph?Ph.prototype:void 0,Fh=Dh?Dh.toString:void 0;function eT(e,t,n){var r=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(s);++r<s;)o[r]=e[r+t];return o}function o1(e){if(typeof e=="string")return e;if(rT(e))return Fh?Fh.call(e):"";var t=e+"";return t=="0"&&1/e==-P8?"-0":t}function tT(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:eT(e,t,n)}function nT(e){return!!e&&typeof e=="object"}function rT(e){return typeof e=="symbol"||nT(e)&&Q8.call(e)==D8}function sT(e){return e==null?"":o1(e)}function oT(e,t,n){if(e=sT(e),e&&(n||t===void 0))return e.replace(F8,"");if(!e||!(t=o1(t)))return e;var r=Oh(e),s=Z8(r,Oh(t));return tT(r,s).join("")}var iT=oT,zd=1/0,aT=9007199254740991,lT=17976931348623157e292,Ih=0/0,uT="[object Symbol]",cT=/^\s+|\s+$/g,dT=/^[-+]0x[0-9a-f]+$/i,mT=/^0b[01]+$/i,fT=/^0o[0-7]+$/i,Nm="\\ud800-\\udfff",i1="\\u0300-\\u036f\\ufe20-\\ufe23",a1="\\u20d0-\\u20f0",l1="\\ufe0e\\ufe0f",pT="["+Nm+"]",xd="["+i1+a1+"]",kd="\\ud83c[\\udffb-\\udfff]",hT="(?:"+xd+"|"+kd+")",u1="[^"+Nm+"]",c1="(?:\\ud83c[\\udde6-\\uddff]){2}",d1="[\\ud800-\\udbff][\\udc00-\\udfff]",m1="\\u200d",f1=hT+"?",p1="["+l1+"]?",_T="(?:"+m1+"(?:"+[u1,c1,d1].join("|")+")"+p1+f1+")*",gT=p1+f1+_T,yT="(?:"+[u1+xd+"?",xd,c1,d1,pT].join("|")+")",Ed=RegExp(kd+"(?="+kd+")|"+yT+gT,"g"),vT=RegExp("["+m1+Nm+i1+a1+l1+"]"),bT=parseInt,wT=typeof _n=="object"&&_n&&_n.Object===Object&&_n,CT=typeof self=="object"&&self&&self.Object===Object&&self,zT=wT||CT||Function("return this")(),xT=ET("length");function kT(e){return e.split("")}function ET(e){return function(t){return t==null?void 0:t[e]}}function Mm(e){return vT.test(e)}function h1(e){return Mm(e)?$T(e):xT(e)}function ST(e){return Mm(e)?AT(e):kT(e)}function $T(e){for(var t=Ed.lastIndex=0;Ed.test(e);)t++;return t}function AT(e){return e.match(Ed)||[]}var TT=Object.prototype,OT=TT.toString,Rh=zT.Symbol,PT=Math.ceil,DT=Math.floor,Lh=Rh?Rh.prototype:void 0,Nh=Lh?Lh.toString:void 0;function Mh(e,t){var n="";if(!e||t<1||t>aT)return n;do t%2&&(n+=e),t=DT(t/2),t&&(e+=e);while(t);return n}function FT(e,t,n){var r=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(s);++r<s;)o[r]=e[r+t];return o}function _1(e){if(typeof e=="string")return e;if(g1(e))return Nh?Nh.call(e):"";var t=e+"";return t=="0"&&1/e==-zd?"-0":t}function IT(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:FT(e,t,n)}function RT(e,t){t=t===void 0?" ":_1(t);var n=t.length;if(n<2)return n?Mh(t,e):t;var r=Mh(t,PT(e/h1(t)));return Mm(t)?IT(ST(r),0,e).join(""):r.slice(0,e)}function Vh(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function LT(e){return!!e&&typeof e=="object"}function g1(e){return typeof e=="symbol"||LT(e)&&OT.call(e)==uT}function NT(e){if(!e)return e===0?e:0;if(e=VT(e),e===zd||e===-zd){var t=e<0?-1:1;return t*lT}return e===e?e:0}function MT(e){var t=NT(e),n=t%1;return t===t?n?t-n:t:0}function VT(e){if(typeof e=="number")return e;if(g1(e))return Ih;if(Vh(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Vh(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(cT,"");var n=mT.test(e);return n||fT.test(e)?bT(e.slice(2),n?2:8):dT.test(e)?Ih:+e}function BT(e){return e==null?"":_1(e)}function UT(e,t,n){e=BT(e),t=MT(t);var r=t?h1(e):0;return t&&r<t?e+RT(t-r,n):e}var jT=UT,HT=(e,t,n,r)=>{const s=(e+(r||"")).toString().includes("%");if(typeof e=="string"?[e,t,n,r]=e.match(/(0?\.?\d{1,3})%?\b/g).map(Number):r!==void 0&&(r=parseFloat(r)),typeof e!="number"||typeof t!="number"||typeof n!="number"||e>255||t>255||n>255)throw new TypeError("Expected three numbers below 256");if(typeof r=="number"){if(!s&&r>=0&&r<=1)r=Math.round(255*r);else if(s&&r>=0&&r<=100)r=Math.round(255*r/100);else throw new TypeError(`Expected alpha value (${r}) as a fraction or percentage`);r=(r|1<<8).toString(16).slice(1)}else r="";return(n|t<<8|e<<16|1<<24).toString(16).slice(1)+r};const Vi="a-f\\d",qT=`#?[${Vi}]{3}[${Vi}]?`,WT=`#?[${Vi}]{6}([${Vi}]{2})?`,GT=new RegExp(`[^#${Vi}]`,"gi"),KT=new RegExp(`^${qT}$|^${WT}$`,"i");var ZT=(e,t={})=>{if(typeof e!="string"||GT.test(e)||!KT.test(e))throw new TypeError("Expected a valid hex string");e=e.replace(/^#/,"");let n=1;e.length===8&&(n=Number.parseInt(e.slice(6,8),16)/255,e=e.slice(0,6)),e.length===4&&(n=Number.parseInt(e.slice(3,4).repeat(2),16)/255,e=e.slice(0,3)),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const r=Number.parseInt(e,16),s=r>>16,o=r>>8&255,i=r&255,a=typeof t.alpha=="number"?t.alpha:n;if(t.format==="array")return[s,o,i,a];if(t.format==="css"){const u=a===1?"":` / ${Number((a*100).toFixed(2))}%`;return`rgb(${s} ${o} ${i}${u})`}return{red:s,green:o,blue:i,alpha:a}},YT=Rv.exports,JT=O8,XT=iT,QT=jT,eO=HT,y1=ZT;const yc=.75,vc=.25,bc=16777215,tO=49979693;var nO=function(e){return"#"+oO(String(JSON.stringify(e)))};function rO(e){var t=JT(e),n=[];return t.forEach(function(r){var s=YT(r);s&&n.push(y1(XT(s,"#"),{format:"array"}))}),n}function sO(e){var t=[0,0,0];return e.forEach(function(n){for(var r=0;r<3;r++)t[r]+=n[r]}),[t[0]/e.length,t[1]/e.length,t[2]/e.length]}function oO(e){var t,n=rO(e);n.length>0&&(t=sO(n));var r=1,s=0,o=1;if(e.length>0)for(var i=0;i<e.length;i++)e[i].charCodeAt(0)>s&&(s=e[i].charCodeAt(0)),o=parseInt(bc/s),r=(r+e[i].charCodeAt(0)*o*tO)%bc;var a=(r*e.length%bc).toString(16);a=QT(a,6,a);var u=y1(a,{format:"array"});return t?eO(vc*u[0]+yc*t[0],vc*u[1]+yc*t[1],vc*u[2]+yc*t[2]):a}function iO(e){const t=e.replace(/#/,""),n=parseInt(t.substr(0,2),16),r=parseInt(t.substr(2,2),16),s=parseInt(t.substr(4,2),16);return[.299*n,.587*r,.114*s].reduce((i,a)=>i+a)/255>.5}function aO(e){return iO(e)?"#000000":"#ffffff"}function lO(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 v1(e,t,n){const r=nO(t),s=aO(r),o={width:n.width,height:n.height,textColor:s,backgroundColor:r,caption:e,fontFamily:n.font_family,fontSize:n.font_size,fontWeight:n.font_weight};return lO(o)}const uO={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?q.artwork_url_append_size_params(this.artwork_url,this.maxwidth,this.maxheight):q.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 v1(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 cO(e,t,n,r,s,o){const i=iu("lazy");return E(),P("figure",null,[Pt(l("img",{onClick:t[0]||(t[0]=a=>e.$emit("click"))},null,512),[[i,{src:o.artwork_url_with_size,lifecycle:s.lazy_lifecycle}]])])}var Vr=pe(uO,[["render",cO]]);const dO={name:"PageNowPlaying",components:{ModalDialogQueueItem:wv,Slider:Mi,CoverArtwork:Vr},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},settings_option_show_filepath_now_playing(){return this.$store.getters.settings_option_show_filepath_now_playing},filepath(){return this.settings_option_show_filepath_now_playing?this.now_playing.path: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(){},created(){this.item_progress_ms=this.state.item_progress_ms,q.player_status().then(({data:e})=>{this.$store.commit(bm,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(){this.is_dragged=!0},end_dragging:function(){this.is_dragged=!1},seek:function(e){q.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}}},mO={key:0,class:"fd-is-fullheight"},fO={class:"fd-is-expanded"},pO={class:"fd-has-padding-left-right"},hO={class:"container has-text-centered"},_O={class:"control has-text-centered fd-progress-now-playing"},gO={class:"content"},yO=["textContent"],vO={class:"fd-has-padding-left-right"},bO={class:"container has-text-centered fd-has-margin-top"},wO=["textContent"],CO=["textContent"],zO=["textContent"],xO=["textContent"],kO=["textContent"],EO={key:1,class:"fd-is-fullheight"},SO={class:"fd-is-expanded fd-has-padding-left-right",style:{"flex-direction":"column"}},$O={class:"content has-text-centered"},AO=["textContent"],TO=["textContent"];function OO(e,t,n,r,s,o){const i=$("cover-artwork"),a=$("Slider"),u=$("modal-dialog-queue-item");return E(),P("section",null,[o.now_playing.id>0?(E(),P("div",mO,[l("div",fO,[C(i,{artwork_url:o.now_playing.artwork_url,artist:o.now_playing.artist,album:o.now_playing.album,class:"fd-cover-image fd-has-action",onClick:t[0]||(t[0]=c=>o.open_dialog(o.now_playing))},null,8,["artwork_url","artist","album"])]),l("div",pO,[l("div",hO,[l("p",_O,[C(a,{ref:"slider",modelValue:s.item_progress_ms,"onUpdate:modelValue":t[1]||(t[1]=c=>s.item_progress_ms=c),min:0,max:o.state.item_length_ms,step:1e3,tooltips:!1,disabled:o.state.state==="stop",classes:{target:"seek-slider"},onChange:o.seek,onStart:o.start_dragging,onEnd:o.end_dragging},null,8,["modelValue","max","disabled","onChange","onStart","onEnd"])]),l("p",gO,[l("span",{textContent:g([e.$filters.durationInHours(s.item_progress_ms),e.$filters.durationInHours(o.now_playing.length_ms)].join(" / "))},null,8,yO)])])]),l("div",vO,[l("div",bO,[l("h1",{class:"title is-5",textContent:g(o.now_playing.title)},null,8,wO),l("h2",{class:"title is-6",textContent:g(o.now_playing.artist)},null,8,CO),o.composer?(E(),P("h2",{key:0,class:"subtitle is-6 has-text-grey has-text-weight-bold",textContent:g(o.composer)},null,8,zO)):Y("",!0),l("h3",{class:"subtitle is-6",textContent:g(o.now_playing.album)},null,8,xO),o.filepath?(E(),P("h3",{key:1,class:"subtitle is-6 has-text-grey",textContent:g(o.filepath)},null,8,kO)):Y("",!0)])])])):(E(),P("div",EO,[l("div",SO,[l("div",$O,[l("h1",{class:"title is-5",textContent:g(e.$t("page.now-playing.title"))},null,8,AO),l("p",{textContent:g(e.$t("page.now-playing.info"))},null,8,TO)])])])),C(u,{show:s.show_details_modal,item:s.selected_item,onClose:t[2]||(t[2]=c=>s.show_details_modal=!1)},null,8,["show","item"])])}var PO=pe(dO,[["render",OO]]);const DO={name:"TabsMusic",computed:{spotify_enabled(){return this.$store.state.spotify.webapi_token_valid}}},FO={class:"section fd-tabs-section"},IO={class:"container"},RO={class:"columns is-centered"},LO={class:"column is-four-fifths"},NO={class:"tabs is-centered is-small"},MO=["onClick","onKeypress"],VO={class:"icon is-small"},BO=["textContent"],UO=["onClick","onKeypress"],jO={class:"icon is-small"},HO=["textContent"],qO=["onClick","onKeypress"],WO={class:"icon is-small"},GO=["textContent"],KO=["onClick","onKeypress"],ZO={class:"icon is-small"},YO=["textContent"],JO=["onClick","onKeypress"],XO={class:"icon is-small"},QO=["textContent"],e6=["onClick","onKeypress"],t6={class:"icon is-small"},n6=["textContent"];function r6(e,t,n,r,s,o){const i=$("mdicon"),a=$("router-link");return E(),P("section",FO,[l("div",IO,[l("div",RO,[l("div",LO,[l("div",NO,[l("ul",null,[C(a,{to:"/music/browse",custom:""},{default:A(({navigate:u,isActive:c})=>[l("li",{class:We({"is-active":c})},[l("a",{onClick:u,onKeypress:Fn(u,["enter"])},[l("span",VO,[C(i,{name:"web",size:"16"})]),l("span",{textContent:g(e.$t("page.browse.tabs.browse"))},null,8,BO)],40,MO)],2)]),_:1}),C(a,{to:"/music/artists",custom:""},{default:A(({navigate:u,isActive:c})=>[l("li",{class:We({"is-active":c})},[l("a",{onClick:u,onKeypress:Fn(u,["enter"])},[l("span",jO,[C(i,{name:"account-music",size:"16"})]),l("span",{textContent:g(e.$t("page.browse.tabs.artists"))},null,8,HO)],40,UO)],2)]),_:1}),C(a,{to:"/music/albums",custom:""},{default:A(({navigate:u,isActive:c})=>[l("li",{class:We({"is-active":c})},[l("a",{onClick:u,onKeypress:Fn(u,["enter"])},[l("span",WO,[C(i,{name:"album",size:"16"})]),l("span",{textContent:g(e.$t("page.browse.tabs.albums"))},null,8,GO)],40,qO)],2)]),_:1}),C(a,{to:"/music/genres",custom:""},{default:A(({navigate:u,isActive:c})=>[l("li",{class:We({"is-active":c})},[l("a",{onClick:u,onKeypress:Fn(u,["enter"])},[l("span",ZO,[C(i,{name:"speaker",size:"16"})]),l("span",{textContent:g(e.$t("page.browse.tabs.genres"))},null,8,YO)],40,KO)],2)]),_:1}),C(a,{to:"/music/composers",custom:""},{default:A(({navigate:u,isActive:c})=>[l("li",{class:We({"is-active":c})},[l("a",{onClick:u,onKeypress:Fn(u,["enter"])},[l("span",XO,[C(i,{name:"book-open-page-variant",size:"16"})]),l("span",{textContent:g(e.$t("page.browse.tabs.composers"))},null,8,QO)],40,JO)],2)]),_:1}),o.spotify_enabled?(E(),ke(a,{key:0,to:"/music/spotify",custom:""},{default:A(({navigate:u,isActive:c})=>[l("li",{class:We({"is-active":c})},[l("a",{onClick:u,onKeypress:Fn(u,["enter"])},[l("span",t6,[C(i,{name:"spotify",size:"16"})]),l("span",{textContent:g(e.$t("page.browse.tabs.spotify"))},null,8,n6)],40,e6)],2)]),_:1})):Y("",!0)])])])])])])}var Cr=pe(DO,[["render",r6]]);const s6={name:"ModalDialogAlbum",components:{CoverArtwork:Vr},props:["show","album","media_kind","new_tracks"],emits:["close","remove-podcast","play-count-changed"],data(){return{artwork_visible:!1}},computed:{artwork_url:function(){return q.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"),q.player_play_uri(this.album.uri,!1)},queue_add:function(){this.$emit("close"),q.queue_add(this.album.uri)},queue_add_next:function(){this.$emit("close"),q.queue_add_next(this.album.uri)},open_album:function(){this.$emit("close"),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.$emit("close"),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(){q.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}}},o6={key:0,class:"modal is-active"},i6={class:"modal-content fd-modal-card"},a6={class:"card"},l6={class:"card-content"},u6={class:"title is-4"},c6=["textContent"],d6={key:0,class:"buttons"},m6=["textContent"],f6=["textContent"],p6={class:"content is-small"},h6={key:0},_6=["textContent"],g6=["textContent"],y6={key:1},v6=["textContent"],b6=["textContent"],w6={key:2},C6=["textContent"],z6=["textContent"],x6=["textContent"],k6=["textContent"],E6=["textContent"],S6=["textContent"],$6=["textContent"],A6=["textContent"],T6=["textContent"],O6=["textContent"],P6={class:"card-footer"},D6={class:"icon"},F6=["textContent"],I6={class:"icon"},R6=["textContent"],L6={class:"icon"},N6=["textContent"];function M6(e,t,n,r,s,o){const i=$("cover-artwork"),a=$("mdicon");return E(),P("div",null,[C(Jt,{name:"fade"},{default:A(()=>[n.show?(E(),P("div",o6,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=u=>e.$emit("close"))}),l("div",i6,[l("div",a6,[l("div",l6,[C(i,{artwork_url:n.album.artwork_url,artist:n.album.artist,album:n.album.name,class:"image is-square fd-has-margin-bottom fd-has-shadow"},null,8,["artwork_url","artist","album"]),l("p",u6,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...u)=>o.open_album&&o.open_album(...u)),textContent:g(n.album.name)},null,8,c6)]),o.media_kind_resolved==="podcast"?(E(),P("div",d6,[l("a",{class:"button is-small",onClick:t[2]||(t[2]=(...u)=>o.mark_played&&o.mark_played(...u)),textContent:g(e.$t("dialog.album.mark-as-played"))},null,8,m6),n.album.data_kind==="url"?(E(),P("a",{key:0,class:"button is-small",onClick:t[3]||(t[3]=u=>e.$emit("remove-podcast")),textContent:g(e.$t("dialog.album.remove-podcast"))},null,8,f6)):Y("",!0)])):Y("",!0),l("div",p6,[n.album.artist?(E(),P("p",h6,[l("span",{class:"heading",textContent:g(e.$t("dialog.album.artist"))},null,8,_6),l("a",{class:"title is-6 has-text-link",onClick:t[4]||(t[4]=(...u)=>o.open_artist&&o.open_artist(...u)),textContent:g(n.album.artist)},null,8,g6)])):Y("",!0),n.album.date_released?(E(),P("p",y6,[l("span",{class:"heading",textContent:g(e.$t("dialog.album.release-date"))},null,8,v6),l("span",{class:"title is-6",textContent:g(e.$filters.date(n.album.date_released))},null,8,b6)])):n.album.year>0?(E(),P("p",w6,[l("span",{class:"heading",textContent:g(e.$t("dialog.album.year"))},null,8,C6),l("span",{class:"title is-6",textContent:g(n.album.year)},null,8,z6)])):Y("",!0),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.album.tracks"))},null,8,x6),l("span",{class:"title is-6",textContent:g(n.album.track_count)},null,8,k6)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.album.duration"))},null,8,E6),l("span",{class:"title is-6",textContent:g(e.$filters.durationInHours(n.album.length_ms))},null,8,S6)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.album.type"))},null,8,$6),l("span",{class:"title is-6",textContent:g([e.$t("media.kind."+n.album.media_kind),e.$t("data.kind."+n.album.data_kind)].join(" - "))},null,8,A6)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.album.added-on"))},null,8,T6),l("span",{class:"title is-6",textContent:g(e.$filters.datetime(n.album.time_added))},null,8,O6)])])]),l("footer",P6,[l("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...u)=>o.queue_add&&o.queue_add(...u))},[l("span",D6,[C(a,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.album.add"))},null,8,F6)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...u)=>o.queue_add_next&&o.queue_add_next(...u))},[l("span",I6,[C(a,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.album.add-next"))},null,8,R6)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[7]||(t[7]=(...u)=>o.play&&o.play(...u))},[l("span",L6,[C(a,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.album.play"))},null,8,N6)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[8]||(t[8]=u=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var xu=pe(s6,[["render",M6]]);const V6={name:"ModalDialog",props:["show","title","ok_action","delete_action","close_action"],emits:["delete","close","ok"]},B6={key:0,class:"modal is-active"},U6={class:"modal-content fd-modal-card"},j6={class:"card"},H6={class:"card-content"},q6=["textContent"],W6={class:"card-footer"},G6={class:"icon"},K6=["textContent"],Z6={class:"icon"},Y6=["textContent"],J6={class:"icon"},X6=["textContent"];function Q6(e,t,n,r,s,o){const i=$("mdicon");return E(),P("div",null,[C(Jt,{name:"fade"},{default:A(()=>[n.show?(E(),P("div",B6,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",U6,[l("div",j6,[l("div",H6,[n.title?(E(),P("p",{key:0,class:"title is-4",textContent:g(n.title)},null,8,q6)):Y("",!0),vt(e.$slots,"modal-content")]),l("footer",W6,[l("a",{class:"card-footer-item has-text-dark",onClick:t[1]||(t[1]=a=>e.$emit("close"))},[l("span",G6,[C(i,{name:"cancel",size:"16"})]),l("span",{class:"is-size-7",textContent:g(n.close_action?n.close_action:e.$t("dialog.cancel"))},null,8,K6)]),n.delete_action?(E(),P("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"))},[l("span",Z6,[C(i,{name:"delete",size:"16"})]),l("span",{class:"is-size-7",textContent:g(n.delete_action)},null,8,Y6)])):Y("",!0),n.ok_action?(E(),P("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"))},[l("span",J6,[C(i,{name:"check",size:"16"})]),l("span",{class:"is-size-7",textContent:g(n.ok_action)},null,8,X6)])):Y("",!0)])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[4]||(t[4]=a=>e.$emit("close"))})])):Y("",!0)]),_:3})])}var Vm=pe(V6,[["render",Q6]]);const e3={name:"ListAlbums",components:{ModalDialogAlbum:xu,ModalDialog:Vm},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(){q.library_album_tracks(this.selected_album.id,{limit:1}).then(({data:e})=>{q.library_track_playlists(e.items[0].id).then(({data:t})=>{this.rss_playlist_to_remove=t.items.filter(n=>n.type==="rss")[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,q.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?q.artwork_url_append_size_params(e,this.artwork_options.width,this.artwork_options.height):q.artwork_url_append_size_params(e)},alt_text(e,t){return t+" - "+e},caption(e,t){return e?e.substring(0,2):t?t.substring(0,2):""},dataURI:function(e,t){const n=this.caption(e,t),r=this.alt_text(e,t);return v1(n,r,{width:this.artwork_options.width,height:this.artwork_options.height,font_family:this.artwork_options.font_family,font_size:this.artwork_options.font_size,font_weight:this.artwork_options.font_weight})}}},t3={key:0,class:"mt-6 mb-5 py-2"},n3=["id","textContent"],r3=["onClick"],s3={key:0,class:"media-left fd-has-action"},o3={class:"image is-64x64 fd-has-shadow fd-has-action"},i3=["album","artist"],a3={class:"media-content fd-has-action is-clipped"},l3={style:{"margin-top":"0.7rem"}},u3=["textContent"],c3={class:"subtitle is-7 has-text-grey"},d3=["textContent"],m3=["textContent"],f3={class:"media-right",style:{"padding-top":"0.7rem"}},p3=["onClick"],h3={class:"icon has-text-dark"},_3=["textContent"],g3={class:"is-size-7"},y3=["textContent"],v3=["textContent"];function b3(e,t,n,r,s,o){const i=$("mdicon"),a=$("modal-dialog-album"),u=$("modal-dialog"),c=iu("lazy");return E(),P(He,null,[(E(!0),P(He,null,Et(n.albums,d=>(E(),P(He,{key:d.itemId},[!d.isItem&&!n.hide_group_title?(E(),P("div",t3,[l("span",{id:"index_"+d.groupKey,class:"tag is-info is-light is-small has-text-weight-bold",textContent:g(d.groupKey)},null,8,n3)])):d.isItem?(E(),P("div",{key:1,class:"media",onClick:f=>o.open_album(d.item)},[o.is_visible_artwork?(E(),P("div",s3,[l("div",o3,[l("figure",null,[Pt(l("img",{album:d.item.name,artist:d.item.artist},null,8,i3),[[c,{src:o.artwork_url_with_size(d.item.artwork_url),lifecycle:s.artwork_options.lazy_lifecycle,delay:500}]])])])])):Y("",!0),l("div",a3,[l("div",l3,[l("h1",{class:"title is-6",textContent:g(d.item.name)},null,8,u3),l("h2",c3,[l("b",{textContent:g(d.item.artist)},null,8,d3)]),d.item.date_released&&d.item.media_kind==="music"?(E(),P("h2",{key:0,class:"subtitle is-7 has-text-grey has-text-weight-normal",textContent:g(e.$filters.date(d.item.date_released))},null,8,m3)):Y("",!0)])]),l("div",f3,[l("a",{onClick:gt(f=>o.open_dialog(d.item),["prevent","stop"])},[l("span",h3,[C(i,{name:"dots-vertical",size:"16"})])],8,p3)])],8,r3)):Y("",!0)],64))),128)),(E(),ke(ds,{to:"#app"},[C(a,{show:s.show_details_modal,album:s.selected_album,media_kind:n.media_kind,onRemovePodcast:t[0]||(t[0]=d=>o.open_remove_podcast_dialog()),onPlayCountChanged:t[1]||(t[1]=d=>o.play_count_changed()),onClose:t[2]||(t[2]=d=>s.show_details_modal=!1)},null,8,["show","album","media_kind"]),C(u,{show:s.show_remove_podcast_modal,title:e.$t("page.podcast.remove-podcast"),delete_action:e.$t("page.podcast.remove"),onClose:t[3]||(t[3]=d=>s.show_remove_podcast_modal=!1),onDelete:o.remove_podcast},{"modal-content":A(()=>[l("p",{textContent:g(e.$t("list.albums.info-1"))},null,8,_3),l("p",g3,[wt(" ("),l("span",{textContent:g(e.$t("list.albums.info-2"))},null,8,y3),l("b",{textContent:g(s.rss_playlist_to_remove.name)},null,8,v3),wt(") ")])]),_:1},8,["show","title","delete_action","onDelete"])]))],64)}var zr=pe(e3,[["render",b3]]);const w3={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 cr;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"),q.player_play_uri(this.track.uri,!1)},queue_add:function(){this.$emit("close"),q.queue_add(this.track.uri)},queue_add_next:function(){this.$emit("close"),q.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(){q.library_track_update(this.track.id,{play_count:"reset"}).then(()=>{this.$emit("play-count-changed"),this.$emit("close")})},mark_played:function(){q.library_track_update(this.track.id,{play_count:"increment"}).then(()=>{this.$emit("play-count-changed"),this.$emit("close")})}}},C3={key:0,class:"modal is-active"},z3={class:"modal-content fd-modal-card"},x3={class:"card"},k3={class:"card-content"},E3=["textContent"],S3=["textContent"],$3={key:0,class:"buttons"},A3=["textContent"],T3=["textContent"],O3={class:"content is-small"},P3=["textContent"],D3=["textContent"],F3={key:0},I3=["textContent"],R3=["textContent"],L3={key:1},N3=["textContent"],M3=["textContent"],V3={key:2},B3=["textContent"],U3=["textContent"],j3={key:3},H3=["textContent"],q3=["textContent"],W3={key:4},G3=["textContent"],K3=["textContent"],Z3=["textContent"],Y3=["textContent"],J3=["textContent"],X3=["textContent"],Q3=["textContent"],e4=["textContent"],t4=["textContent"],n4={class:"title is-6"},r4=["textContent"],s4={key:0,class:"has-text-weight-normal"},o4=["textContent"],i4=["textContent"],a4=["textContent"],l4={class:"title is-6"},u4=["textContent"],c4=["textContent"],d4=["textContent"],m4=["textContent"],f4=["textContent"],p4=["textContent"],h4=["textContent"],_4=["textContent"],g4={key:5},y4=["textContent"],v4=["textContent"],b4={class:"card-footer"},w4={class:"icon"},C4=["textContent"],z4={class:"icon"},x4=["textContent"],k4={class:"icon"},E4=["textContent"];function S4(e,t,n,r,s,o){const i=$("mdicon");return E(),P("div",null,[C(Jt,{name:"fade"},{default:A(()=>[n.show?(E(),P("div",C3,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",z3,[l("div",x3,[l("div",k3,[l("p",{class:"title is-4",textContent:g(n.track.title)},null,8,E3),l("p",{class:"subtitle",textContent:g(n.track.artist)},null,8,S3),n.track.media_kind==="podcast"?(E(),P("div",$3,[n.track.play_count>0?(E(),P("a",{key:0,class:"button is-small",onClick:t[1]||(t[1]=(...a)=>o.mark_new&&o.mark_new(...a)),textContent:g(e.$t("dialog.track.mark-as-new"))},null,8,A3)):Y("",!0),n.track.play_count===0?(E(),P("a",{key:1,class:"button is-small",onClick:t[2]||(t[2]=(...a)=>o.mark_played&&o.mark_played(...a)),textContent:g(e.$t("dialog.track.mark-as-played"))},null,8,T3)):Y("",!0)])):Y("",!0),l("div",O3,[l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.album"))},null,8,P3),l("a",{class:"title is-6 has-text-link",onClick:t[3]||(t[3]=(...a)=>o.open_album&&o.open_album(...a)),textContent:g(n.track.album)},null,8,D3)]),n.track.album_artist&&n.track.media_kind!=="audiobook"?(E(),P("p",F3,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.album-artist"))},null,8,I3),l("a",{class:"title is-6 has-text-link",onClick:t[4]||(t[4]=(...a)=>o.open_artist&&o.open_artist(...a)),textContent:g(n.track.album_artist)},null,8,R3)])):Y("",!0),n.track.composer?(E(),P("p",L3,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.composer"))},null,8,N3),l("span",{class:"title is-6",textContent:g(n.track.composer)},null,8,M3)])):Y("",!0),n.track.date_released?(E(),P("p",V3,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.release-date"))},null,8,B3),l("span",{class:"title is-6",textContent:g(e.$filters.date(n.track.date_released))},null,8,U3)])):n.track.year>0?(E(),P("p",j3,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.year"))},null,8,H3),l("span",{class:"title is-6",textContent:g(n.track.year)},null,8,q3)])):Y("",!0),n.track.genre?(E(),P("p",W3,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.genre"))},null,8,G3),l("a",{class:"title is-6 has-text-link",onClick:t[5]||(t[5]=(...a)=>o.open_genre&&o.open_genre(...a)),textContent:g(n.track.genre)},null,8,K3)])):Y("",!0),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.position"))},null,8,Z3),l("span",{class:"title is-6",textContent:g([n.track.disc_number,n.track.track_number].join(" / "))},null,8,Y3)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.duration"))},null,8,J3),l("span",{class:"title is-6",textContent:g(e.$filters.durationInHours(n.track.length_ms))},null,8,X3)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.path"))},null,8,Q3),l("span",{class:"title is-6",textContent:g(n.track.path)},null,8,e4)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.type"))},null,8,t4),l("span",n4,[l("span",{textContent:g([e.$t("media.kind."+n.track.media_kind),e.$t("data.kind."+n.track.data_kind)].join(" - "))},null,8,r4),n.track.data_kind==="spotify"?(E(),P("span",s4,[wt(" ("),l("a",{onClick:t[6]||(t[6]=(...a)=>o.open_spotify_artist&&o.open_spotify_artist(...a)),textContent:g(e.$t("dialog.track.spotify-artist"))},null,8,o4),wt(", "),l("a",{onClick:t[7]||(t[7]=(...a)=>o.open_spotify_album&&o.open_spotify_album(...a)),textContent:g(e.$t("dialog.track.spotify-album"))},null,8,i4),wt(") ")])):Y("",!0)])]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.quality"))},null,8,a4),l("span",l4,[l("span",{textContent:g(n.track.type)},null,8,u4),n.track.samplerate?(E(),P("span",{key:0,textContent:g(e.$t("dialog.track.samplerate",{rate:n.track.samplerate}))},null,8,c4)):Y("",!0),n.track.channels?(E(),P("span",{key:1,textContent:g(e.$t("dialog.track.channels",{channels:e.$filters.channels(n.track.channels)}))},null,8,d4)):Y("",!0),n.track.bitrate?(E(),P("span",{key:2,textContent:g(e.$t("dialog.track.bitrate",{rate:n.track.bitrate}))},null,8,m4)):Y("",!0)])]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.added-on"))},null,8,f4),l("span",{class:"title is-6",textContent:g(e.$filters.datetime(n.track.time_added))},null,8,p4)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.rating"))},null,8,h4),l("span",{class:"title is-6",textContent:g(e.$t("dialog.track.rating-value",{rating:Math.floor(n.track.rating/10)}))},null,8,_4)]),n.track.comment?(E(),P("p",g4,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.comment"))},null,8,y4),l("span",{class:"title is-6",textContent:g(n.track.comment)},null,8,v4)])):Y("",!0)])]),l("footer",b4,[l("a",{class:"card-footer-item has-text-dark",onClick:t[8]||(t[8]=(...a)=>o.queue_add&&o.queue_add(...a))},[l("span",w4,[C(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.track.add"))},null,8,C4)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[9]||(t[9]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[l("span",z4,[C(i,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.track.add-next"))},null,8,x4)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[10]||(t[10]=(...a)=>o.play_track&&o.play_track(...a))},[l("span",k4,[C(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.track.play"))},null,8,E4)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[11]||(t[11]=a=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var $4=pe(w3,[["render",S4]]);const A4={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 T4(e,t,n,r,s,o){return o.width>0?(E(),P("div",{key:0,class:"progress-bar mt-2",style:cs({width:o.width_percent})},null,4)):Y("",!0)}var O4=pe(A4,[["render",T4]]);const P4={name:"ListTracks",components:{ModalDialogTrack:$4,ProgressBar:O4},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?q.player_play_uri(this.uris,!1,e):this.expression?q.player_play_expression(this.expression,!1,e):q.player_play_uri(t.uri,!1)},open_dialog:function(e){this.selected_track=e,this.show_details_modal=!0}}},D4={key:0,class:"mt-6 mb-5 py-2"},F4=["id","textContent"],I4=["onClick"],R4={key:0,class:"media-left fd-has-action"},L4={class:"icon"},N4={class:"media-content fd-has-action is-clipped"},M4=["textContent"],V4=["textContent"],B4=["textContent"],U4={class:"media-right"},j4=["onClick"],H4={class:"icon has-text-dark"};function q4(e,t,n,r,s,o){const i=$("mdicon"),a=$("progress-bar"),u=$("modal-dialog-track");return E(),P(He,null,[(E(!0),P(He,null,Et(n.tracks,(c,d)=>(E(),P(He,{key:c.itemId},[c.isItem?c.isItem?(E(),P("div",{key:1,class:We(["media",{"with-progress":n.show_progress}]),onClick:f=>o.play_track(d,c.item)},[n.show_icon?(E(),P("figure",R4,[l("span",L4,[C(i,{name:"file-outline",size:"16"})])])):Y("",!0),l("div",N4,[l("h1",{class:We(["title is-6",{"has-text-grey":c.item.media_kind==="podcast"&&c.item.play_count>0}]),textContent:g(c.item.title)},null,10,M4),l("h2",{class:"subtitle is-7 has-text-grey",textContent:g(c.item.artist)},null,8,V4),l("h2",{class:"subtitle is-7 has-text-grey",textContent:g(c.item.album)},null,8,B4),n.show_progress?(E(),ke(a,{key:0,max:c.item.length_ms,value:c.item.seek_ms},null,8,["max","value"])):Y("",!0)]),l("div",U4,[l("a",{onClick:gt(f=>o.open_dialog(c.item),["prevent","stop"])},[l("span",H4,[C(i,{name:"dots-vertical",size:"16"})])],8,j4)])],10,I4)):Y("",!0):(E(),P("div",D4,[l("span",{id:"index_"+c.groupKey,class:"tag is-info is-light is-small has-text-weight-bold",textContent:g(c.groupKey)},null,8,F4)]))],64))),128)),(E(),ke(ds,{to:"#app"},[C(u,{show:s.show_details_modal,track:s.selected_track,onClose:t[0]||(t[0]=c=>s.show_details_modal=!1),onPlayCountChanged:t[1]||(t[1]=c=>e.$emit("play-count-changed"))},null,8,["show","track"])]))],64)}var Nn=pe(P4,[["render",q4]]);const{t:wc,locale:Bm}=mu.global,b1="GROUP_KEY_NONE";function w1(){return{compareFn:null,groupKeyFn:e=>b1}}function dr(e,t=!1,n="_"){return{compareFn:t?null:(r,s)=>{const o=r[e]||n,i=s[e]||n;return o.localeCompare(i,Bm.value)},groupKeyFn:r=>{const s=(r[e]||n).charAt(0);return s.match(/\p{Letter}/gu)?s.toUpperCase():s.match(/\p{Number}/gu)?"#":"\u2318"}}}function Um(e,{direction:t="asc",defaultValue:n=0}){return{compareFn:(r,s)=>{const o=r[e]||n,i=s[e]||n,a=o-i;return t==="asc"?a:a*-1},groupKeyFn:r=>{const s=r[e]||n;return Math.floor(s/10)}}}function Ml(e,{direction:t="asc",defaultValue:n="0000"}){return{compareFn:(r,s)=>{const o=r[e]||n,i=s[e]||n,a=o.localeCompare(i,Bm.value);return t==="asc"?a:a*-1},groupKeyFn:r=>(r[e]||n).substring(0,4)}}function W4(e,t="0000"){return{compareFn:(n,r)=>{const s=n[e]||t;return(r[e]||t).localeCompare(s,Bm.value)},groupKeyFn:n=>{const r=n[e];if(!r)return t;const s=new Date().getTime()-new Date(r).getTime();return s<864e5?wc("group-by-list.today"):s<6048e5?wc("group-by-list.last-week"):s<2592e6?wc("group-by-list.last-month"):r.substring(0,4)}}}class Ie{constructor({items:t=[],total:n=0,offset:r=0,limit:s=-1}={}){this.items=t,this.total=n,this.offset=r,this.limit=s,this.count=t.length,this.indexList=[],this.group(w1())}get(){return this.itemsByGroup}isEmpty(){return!this.items||this.items.length<=0}group(t,n=[]){const r=n?this.items.filter(o=>n.every(i=>i(o))):this.items;this.count=r.length;let s=t.compareFn?[...r].sort(t.compareFn):r;this.indexList=[...new Set(s.map(t.groupKeyFn))],this.itemsByGroup=s.reduce((o,i)=>{const a=t.groupKeyFn(i);return o[a]=[...o[a]||[],i],o},{})}[Symbol.iterator](){let t=-1,n=-1;return{next:()=>{if(this.isEmpty())return{done:!0};if(t>=this.indexList.length)return{done:!0};if(t<0&&(++t,n=0,this.indexList[t]!==b1))return{value:{groupKey:this.indexList[t],itemId:this.indexList[t],isItem:!1,item:{}},done:!1};let r=this.indexList[t],s=this.itemsByGroup[r];if(n<s.length){const o=this.itemsByGroup[r][n++];return{value:{groupKey:r,itemId:o.id,isItem:!0,item:o},done:!1}}else return++t,n=0,t<this.indexList.length?(r=this.indexList[t],{value:{groupKey:r,itemId:r,isItem:!1,item:{}},done:!1}):{done:!0}}}}}const Sa={load:function(e){return Promise.all([q.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}),q.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 Ie(t[0].data.albums),e.recently_played=new Ie(t[1].data.tracks)}},G4={name:"PageBrowse",components:{ContentWithHeading:mt,TabsMusic:Cr,ListAlbums:zr,ListTracks:Nn},beforeRouteEnter(e,t,n){Sa.load(e).then(r=>{n(s=>Sa.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Sa.load(e).then(s=>{Sa.set(r,s),n()})},data(){return{recently_added:[],recently_played:{items:[]},show_track_details_modal:!1,selected_track:{}}},methods:{open_browse:function(e){this.$router.push({path:"/music/browse/"+e})}}},K4={class:"fd-page-with-tabs"},Z4=["textContent"],Y4=["textContent"],J4={class:"level"},X4={class:"level-item"},Q4=["textContent"],eP=["textContent"],tP=["textContent"],nP={class:"level"},rP={class:"level-item"},sP=["textContent"];function oP(e,t,n,r,s,o){const i=$("tabs-music"),a=$("list-albums"),u=$("content-with-heading"),c=$("list-tracks");return E(),P("div",K4,[C(i),C(u,null,{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.browse.recently-added.title"))},null,8,Z4),l("p",{class:"heading",textContent:g(e.$t("page.browse.albums"))},null,8,Y4)]),content:A(()=>[C(a,{albums:s.recently_added},null,8,["albums"])]),footer:A(()=>[l("nav",J4,[l("p",X4,[l("a",{class:"button is-light is-small is-rounded",onClick:t[0]||(t[0]=d=>o.open_browse("recently_added")),textContent:g(e.$t("page.browse.show-more"))},null,8,Q4)])])]),_:1}),C(u,null,{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.browse.recently-played.title"))},null,8,eP),l("p",{class:"heading",textContent:g(e.$t("page.browse.tracks"))},null,8,tP)]),content:A(()=>[C(c,{tracks:s.recently_played},null,8,["tracks"])]),footer:A(()=>[l("nav",nP,[l("p",rP,[l("a",{class:"button is-light is-small is-rounded",onClick:t[1]||(t[1]=d=>o.open_browse("recently_played")),textContent:g(e.$t("page.browse.show-more"))},null,8,sP)])])]),_:1})])}var iP=pe(G4,[["render",oP]]);const $a={load:function(e){const t=at.getters.settings_option_recently_added_limit;return q.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 Ie(t.data.albums),e.recently_added.group(W4("time_added",{direction:"desc"}))}},aP={name:"PageBrowseType",components:{ContentWithHeading:mt,TabsMusic:Cr,ListAlbums:zr},beforeRouteEnter(e,t,n){$a.load(e).then(r=>{n(s=>$a.set(s,r))})},beforeRouteUpdate(e,t,n){if(!this.recently_added.isEmpty()){n();return}const r=this;$a.load(e).then(s=>{$a.set(r,s),n()})},data(){return{recently_added:new Ie}}},lP={class:"fd-page-with-tabs"},uP=["textContent"],cP=["textContent"];function dP(e,t,n,r,s,o){const i=$("tabs-music"),a=$("list-albums"),u=$("content-with-heading");return E(),P("div",lP,[C(i),C(u,null,{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.browse.recently-added.title"))},null,8,uP),l("p",{class:"heading",textContent:g(e.$t("page.browse.recently-added.albums"))},null,8,cP)]),content:A(()=>[C(a,{albums:s.recently_added},null,8,["albums"])]),_:1})])}var mP=pe(aP,[["render",dP]]);const Aa={load:function(e){return q.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=new Ie(t.data.tracks)}},fP={name:"PageBrowseType",components:{ContentWithHeading:mt,TabsMusic:Cr,ListTracks:Nn},beforeRouteEnter(e,t,n){Aa.load(e).then(r=>{n(s=>Aa.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Aa.load(e).then(s=>{Aa.set(r,s),n()})},data(){return{recently_played:{}}}},pP={class:"fd-page-with-tabs"},hP=["textContent"],_P=["textContent"];function gP(e,t,n,r,s,o){const i=$("tabs-music"),a=$("list-tracks"),u=$("content-with-heading");return E(),P("div",pP,[C(i),C(u,null,{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.browse.recently-played.title"))},null,8,hP),l("p",{class:"heading",textContent:g(e.$t("page.browse.recently-played.tracks"))},null,8,_P)]),content:A(()=>[C(a,{tracks:s.recently_played},null,8,["tracks"])]),_:1})])}var yP=pe(fP,[["render",gP]]);const vP={name:"IndexButtonList",props:["index"],methods:{nav:function(e){this.$router.push({hash:"#index_"+e})}}},bP={class:"buttons is-centered fd-is-square",style:{"margin-bottom":"16px"}},wP=["onClick","textContent"];function CP(e,t,n,r,s,o){return E(),P("section",null,[l("nav",bP,[(E(!0),P(He,null,Et(n.index,i=>(E(),P("a",{key:i,class:"button is-small",onClick:a=>o.nav(i),textContent:g(i)},null,8,wP))),128))])])}var xr=pe(vP,[["render",CP]]);const zP={name:"ModalDialogArtist",props:["show","artist"],emits:["close"],methods:{play:function(){this.$emit("close"),q.player_play_uri(this.artist.uri,!1)},queue_add:function(){this.$emit("close"),q.queue_add(this.artist.uri)},queue_add_next:function(){this.$emit("close"),q.queue_add_next(this.artist.uri)},open_artist:function(){this.$emit("close"),this.$router.push({path:"/music/artists/"+this.artist.id})}}},xP={key:0,class:"modal is-active"},kP={class:"modal-content fd-modal-card"},EP={class:"card"},SP={class:"card-content"},$P={class:"title is-4"},AP=["textContent"],TP={class:"content is-small"},OP=["textContent"],PP=["textContent"],DP=["textContent"],FP=["textContent"],IP=["textContent"],RP=["textContent"],LP=["textContent"],NP=["textContent"],MP={class:"card-footer"},VP={class:"icon"},BP=["textContent"],UP={class:"icon"},jP=["textContent"],HP={class:"icon"},qP=["textContent"];function WP(e,t,n,r,s,o){const i=$("mdicon");return E(),P("div",null,[C(Jt,{name:"fade"},{default:A(()=>[n.show?(E(),P("div",xP,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",kP,[l("div",EP,[l("div",SP,[l("p",$P,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_artist&&o.open_artist(...a)),textContent:g(n.artist.name)},null,8,AP)]),l("div",TP,[l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.artist.albums"))},null,8,OP),l("span",{class:"title is-6",textContent:g(n.artist.album_count)},null,8,PP)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.artist.tracks"))},null,8,DP),l("span",{class:"title is-6",textContent:g(n.artist.track_count)},null,8,FP)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.artist.type"))},null,8,IP),l("span",{class:"title is-6",textContent:g(e.$t("data.kind."+n.artist.data_kind))},null,8,RP)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.artist.added-on"))},null,8,LP),l("span",{class:"title is-6",textContent:g(e.$filters.datetime(n.artist.time_added))},null,8,NP)])])]),l("footer",MP,[l("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add&&o.queue_add(...a))},[l("span",VP,[C(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.artist.add"))},null,8,BP)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[l("span",UP,[C(i,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.artist.add-next"))},null,8,jP)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.play&&o.play(...a))},[l("span",HP,[C(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.artist.play"))},null,8,qP)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var ku=pe(zP,[["render",WP]]);const GP={name:"ListArtists",components:{ModalDialogArtist:ku},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==="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}}},KP={key:0,class:"mt-6 mb-5 py-2"},ZP={class:"media-content is-clipped"},YP=["id","textContent"],JP=["onClick"],XP={class:"media-content fd-has-action is-clipped"},QP=["textContent"],eD={class:"media-right"},tD=["onClick"],nD={class:"icon has-text-dark"};function rD(e,t,n,r,s,o){const i=$("mdicon"),a=$("modal-dialog-artist");return E(),P(He,null,[(E(!0),P(He,null,Et(n.artists,u=>(E(),P(He,{key:u.itemId},[!u.isItem&&!n.hide_group_title?(E(),P("div",KP,[l("div",ZP,[l("span",{id:"index_"+u.groupKey,class:"tag is-info is-light is-small has-text-weight-bold",textContent:g(u.groupKey)},null,8,YP)])])):u.isItem?(E(),P("div",{key:1,class:"media",onClick:c=>o.open_artist(u.item)},[l("div",XP,[l("h1",{class:"title is-6",textContent:g(u.item.name)},null,8,QP)]),l("div",eD,[l("a",{onClick:gt(c=>o.open_dialog(u.item),["prevent","stop"])},[l("span",nD,[C(i,{name:"dots-vertical",size:"16"})])],8,tD)])],8,JP)):Y("",!0)],64))),128)),(E(),ke(ds,{to:"#app"},[C(a,{show:s.show_details_modal,artist:s.selected_artist,media_kind:n.media_kind,onClose:t[0]||(t[0]=u=>s.show_details_modal=!1)},null,8,["show","artist","media_kind"])]))],64)}var jm=pe(GP,[["render",rD]]);const sD={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)}}},oD={class:"dropdown-trigger"},iD=["textContent"],aD={class:"icon"},lD={id:"dropdown-menu",class:"dropdown-menu",role:"menu"},uD={class:"dropdown-content"},cD=["onClick","textContent"];function dD(e,t,n,r,s,o){const i=$("mdicon"),a=iu("click-away");return Pt((E(),P("div",{class:We(["dropdown",{"is-active":s.is_active}])},[l("div",oD,[l("button",{class:"button","aria-haspopup":"true","aria-controls":"dropdown-menu",onClick:t[0]||(t[0]=u=>s.is_active=!s.is_active)},[l("span",{textContent:g(o.option.name)},null,8,iD),l("span",aD,[C(i,{name:"chevron-down",size:"16"})])])]),l("div",lD,[l("div",uD,[(E(!0),P(He,null,Et(n.options,u=>(E(),P("a",{key:u.id,class:We(["dropdown-item",{"is-active":n.modelValue===u.id}]),onClick:c=>o.select(u),textContent:g(u.name)},null,10,cD))),128))])])],2)),[[a,o.onClickOutside]])}var Vs=pe(sD,[["render",dD]]);const Ta={load:function(e){return q.library_artists("music")},set:function(e,t){e.artists_list=new Ie(t.data)}},mD={name:"PageArtists",components:{ContentWithHeading:mt,TabsMusic:Cr,IndexButtonList:xr,ListArtists:jm,DropdownMenu:Vs},beforeRouteEnter(e,t,n){Ta.load(e).then(r=>{n(s=>Ta.set(s,r))})},beforeRouteUpdate(e,t,n){if(!this.artists_list.isEmpty()){n();return}const r=this;Ta.load(e).then(s=>{Ta.set(r,s),n()})},data(){return{artists_list:new Ie,groupby_options:[{id:1,name:this.$t("page.artists.sort-by.name"),options:dr("name_sort",!0)},{id:2,name:this.$t("page.artists.sort-by.recently-added"),options:Ml("time_added",{direction:"desc"})}]}},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(Ly,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(hu,e)}},hide_spotify:{get(){return this.$store.state.hide_spotify},set(e){this.$store.commit(xm,e)}}},methods:{}},fD={class:"fd-page-with-tabs"},pD={class:"columns"},hD={class:"column"},_D=["textContent"],gD={class:"field"},yD={class:"control"},vD=["textContent"],bD=["textContent"],wD={key:0,class:"field"},CD={class:"control"},zD=["textContent"],xD=["textContent"],kD={class:"column"},ED=["textContent"],SD=["textContent"],$D=["textContent"];function AD(e,t,n,r,s,o){const i=$("tabs-music"),a=$("index-button-list"),u=$("dropdown-menu"),c=$("list-artists"),d=$("content-with-heading");return E(),P("div",fD,[C(i),C(d,null,{options:A(()=>[C(a,{index:o.artists.indexList},null,8,["index"]),l("div",pD,[l("div",hD,[l("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:g(e.$t("page.artists.filter"))},null,8,_D),l("div",gD,[l("div",yD,[Pt(l("input",{id:"switchHideSingles","onUpdate:modelValue":t[0]||(t[0]=f=>o.hide_singles=f),type:"checkbox",name:"switchHideSingles",class:"switch"},null,512),[[Rr,o.hide_singles]]),l("label",{for:"switchHideSingles",textContent:g(e.$t("page.artists.hide-singles"))},null,8,vD)]),l("p",{class:"help",textContent:g(e.$t("page.artists.hide-singles-help"))},null,8,bD)]),o.spotify_enabled?(E(),P("div",wD,[l("div",CD,[Pt(l("input",{id:"switchHideSpotify","onUpdate:modelValue":t[1]||(t[1]=f=>o.hide_spotify=f),type:"checkbox",name:"switchHideSpotify",class:"switch"},null,512),[[Rr,o.hide_spotify]]),l("label",{for:"switchHideSpotify",textContent:g(e.$t("page.artists.hide-spotify"))},null,8,zD)]),l("p",{class:"help",textContent:g(e.$t("page.artists.hide-spotify-help"))},null,8,xD)])):Y("",!0)]),l("div",kD,[l("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:g(e.$t("page.artists.sort-by.title"))},null,8,ED),C(u,{modelValue:o.selected_groupby_option_id,"onUpdate:modelValue":t[2]||(t[2]=f=>o.selected_groupby_option_id=f),options:s.groupby_options},null,8,["modelValue","options"])])])]),"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.artists.title"))},null,8,SD),l("p",{class:"heading",textContent:g(e.$t("page.artists.count",{count:o.artists.count}))},null,8,$D)]),"heading-right":A(()=>[]),content:A(()=>[C(c,{artists:o.artists},null,8,["artists"])]),_:1})])}var TD=pe(mD,[["render",AD]]);const Oa={load:function(e){return Promise.all([q.library_artist(e.params.artist_id),q.library_artist_albums(e.params.artist_id)])},set:function(e,t){e.artist=t[0].data,e.albums_list=new Ie(t[1].data)}},OD={name:"PageArtist",components:{ContentWithHeading:mt,ListAlbums:zr,ModalDialogArtist:ku,DropdownMenu:Vs},beforeRouteEnter(e,t,n){Oa.load(e).then(r=>{n(s=>Oa.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Oa.load(e).then(s=>{Oa.set(r,s),n()})},data(){return{artist:{},albums_list:new Ie,groupby_options:[{id:1,name:this.$t("page.artist.sort-by.name"),options:dr("name_sort",!0)},{id:2,name:this.$t("page.artist.sort-by.release-date"),options:Ml("date_released",{direction:"asc"})}],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(Ny,e)}}},methods:{open_tracks:function(){this.$router.push({path:"/music/artists/"+this.artist.id+"/tracks"})},play:function(){q.player_play_uri(this.albums.items.map(e=>e.uri).join(","),!0)}}},PD={class:"columns"},DD={class:"column"},FD=["textContent"],ID=["textContent"],RD={class:"buttons is-centered"},LD={class:"icon"},ND={class:"icon"},MD=["textContent"],VD={class:"heading has-text-centered-mobile"},BD=["textContent"],UD=l("span",null,"\xA0|\xA0",-1),jD=["textContent"];function HD(e,t,n,r,s,o){const i=$("dropdown-menu"),a=$("mdicon"),u=$("list-albums"),c=$("modal-dialog-artist"),d=$("content-with-heading");return E(),ke(d,null,{options:A(()=>[l("div",PD,[l("div",DD,[l("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:g(e.$t("page.artist.sort-by.title"))},null,8,FD),C(i,{modelValue:o.selected_groupby_option_id,"onUpdate:modelValue":t[0]||(t[0]=f=>o.selected_groupby_option_id=f),options:s.groupby_options},null,8,["modelValue","options"])])])]),"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(s.artist.name)},null,8,ID)]),"heading-right":A(()=>[l("div",RD,[l("a",{class:"button is-small is-light is-rounded",onClick:t[1]||(t[1]=f=>s.show_artist_details_modal=!0)},[l("span",LD,[C(a,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[2]||(t[2]=(...f)=>o.play&&o.play(...f))},[l("span",ND,[C(a,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.artist.shuffle"))},null,8,MD)])])]),content:A(()=>[l("p",VD,[l("span",{textContent:g(e.$t("page.artist.album-count",{count:s.artist.album_count}))},null,8,BD),UD,l("a",{class:"has-text-link",onClick:t[3]||(t[3]=(...f)=>o.open_tracks&&o.open_tracks(...f)),textContent:g(e.$t("page.artist.track-count",{count:s.artist.track_count}))},null,8,jD)]),C(u,{albums:o.albums,hide_group_title:!0},null,8,["albums"]),C(c,{show:s.show_artist_details_modal,artist:s.artist,onClose:t[4]||(t[4]=f=>s.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})}var qD=pe(OD,[["render",HD]]);const Pa={load:function(e){return q.library_albums("music")},set:function(e,t){e.albums_list=new Ie(t.data)}},WD={name:"PageAlbums",components:{ContentWithHeading:mt,TabsMusic:Cr,IndexButtonList:xr,ListAlbums:zr,DropdownMenu:Vs},beforeRouteEnter(e,t,n){Pa.load(e).then(r=>{n(s=>Pa.set(s,r))})},beforeRouteUpdate(e,t,n){if(!this.albums_list.isEmpty()){n();return}const r=this;Pa.load(e).then(s=>{Pa.set(r,s),n()})},data(){return{albums_list:new Ie,groupby_options:[{id:1,name:this.$t("page.albums.sort-by.name"),options:dr("name_sort",!0)},{id:2,name:this.$t("page.albums.sort-by.recently-added"),options:Ml("time_added",{direction:"desc"})},{id:3,name:this.$t("page.albums.sort-by.recently-released"),options:Ml("date_released",{direction:"desc"})}]}},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(Vy,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(hu,e)}},hide_spotify:{get(){return this.$store.state.hide_spotify},set(e){this.$store.commit(xm,e)}}},methods:{scrollToTop:function(){window.scrollTo({top:0,behavior:"smooth"})}}},GD={class:"fd-page-with-tabs"},KD={class:"columns"},ZD={class:"column"},YD=["textContent"],JD={class:"field"},XD={class:"control"},QD=["textContent"],e5=["textContent"],t5={key:0,class:"field"},n5={class:"control"},r5=["textContent"],s5=["textContent"],o5={class:"column"},i5=["textContent"],a5=["textContent"],l5=["textContent"];function u5(e,t,n,r,s,o){const i=$("tabs-music"),a=$("index-button-list"),u=$("dropdown-menu"),c=$("list-albums"),d=$("content-with-heading");return E(),P("div",GD,[C(i),C(d,null,{options:A(()=>[C(a,{index:o.albums.indexList},null,8,["index"]),l("div",KD,[l("div",ZD,[l("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:g(e.$t("page.albums.filter"))},null,8,YD),l("div",JD,[l("div",XD,[Pt(l("input",{id:"switchHideSingles","onUpdate:modelValue":t[0]||(t[0]=f=>o.hide_singles=f),type:"checkbox",name:"switchHideSingles",class:"switch"},null,512),[[Rr,o.hide_singles]]),l("label",{for:"switchHideSingles",textContent:g(e.$t("page.albums.hide-singles"))},null,8,QD)]),l("p",{class:"help",textContent:g(e.$t("page.albums.hide-singles-help"))},null,8,e5)]),o.spotify_enabled?(E(),P("div",t5,[l("div",n5,[Pt(l("input",{id:"switchHideSpotify","onUpdate:modelValue":t[1]||(t[1]=f=>o.hide_spotify=f),type:"checkbox",name:"switchHideSpotify",class:"switch"},null,512),[[Rr,o.hide_spotify]]),l("label",{for:"switchHideSpotify",textContent:g(e.$t("page.albums.hide-spotify"))},null,8,r5)]),l("p",{class:"help",textContent:g(e.$t("page.albums.hide-spotify-help"))},null,8,s5)])):Y("",!0)]),l("div",o5,[l("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:g(e.$t("page.albums.sort-by.title"))},null,8,i5),C(u,{modelValue:o.selected_groupby_option_id,"onUpdate:modelValue":t[2]||(t[2]=f=>o.selected_groupby_option_id=f),options:s.groupby_options},null,8,["modelValue","options"])])])]),"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.albums.title"))},null,8,a5),l("p",{class:"heading",textContent:g(e.$t("page.albums.count",{count:o.albums.count}))},null,8,l5)]),"heading-right":A(()=>[]),content:A(()=>[C(c,{albums:o.albums},null,8,["albums"])]),_:1})])}var c5=pe(WD,[["render",u5]]);const d5={},m5={class:"hero is-light is-bold fd-content"},f5={class:"hero-body"},p5={class:"container"},h5={class:"columns is-centered"},_5={class:"column is-four-fifths"},g5={class:"columns",style:{"flex-direction":"row-reverse"}},y5={class:"column fd-has-cover"},v5={class:"column is-three-fifths has-text-centered-mobile",style:{margin:"auto 0"}},b5={class:"section fd-content"},w5={class:"container"},C5={class:"columns is-centered"},z5={class:"column is-four-fifths"},x5={style:{"margin-top":"16px"}};function k5(e,t){return E(),P("div",null,[l("section",m5,[l("div",f5,[l("div",p5,[l("div",h5,[l("div",_5,[l("div",g5,[l("div",y5,[vt(e.$slots,"heading-right")]),l("div",v5,[vt(e.$slots,"heading-left")])])])])])])]),l("section",b5,[l("div",w5,[l("div",C5,[l("div",z5,[vt(e.$slots,"content"),l("div",x5,[vt(e.$slots,"footer")])])])])])])}var Hm=pe(d5,[["render",k5]]);const Da={load:function(e){return Promise.all([q.library_album(e.params.album_id),q.library_album_tracks(e.params.album_id)])},set:function(e,t){e.album=t[0].data,e.tracks=new Ie(t[1].data)}},E5={name:"PageAlbum",components:{ContentWithHero:Hm,ListTracks:Nn,ModalDialogAlbum:xu,CoverArtwork:Vr},beforeRouteEnter(e,t,n){Da.load(e).then(r=>{n(s=>Da.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Da.load(e).then(s=>{Da.set(r,s),n()})},data(){return{album:{},tracks:new Ie,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(){q.player_play_uri(this.album.uri,!0)}}},S5=["textContent"],$5={class:"subtitle is-6 has-text-link has-text-weight-normal"},A5=["textContent"],T5={class:"buttons fd-is-centered-mobile fd-has-margin-top"},O5={class:"icon"},P5=["textContent"],D5={class:"icon"},F5={class:"image is-square fd-has-shadow fd-has-action"},I5=["textContent"];function R5(e,t,n,r,s,o){const i=$("mdicon"),a=$("cover-artwork"),u=$("list-tracks"),c=$("modal-dialog-album"),d=$("content-with-hero");return E(),ke(d,null,{"heading-left":A(()=>[l("h1",{class:"title is-5",textContent:g(s.album.name)},null,8,S5),l("h2",$5,[l("a",{class:"has-text-link",onClick:t[0]||(t[0]=(...f)=>o.open_artist&&o.open_artist(...f)),textContent:g(s.album.artist)},null,8,A5)]),l("div",T5,[l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...f)=>o.play&&o.play(...f))},[l("span",O5,[C(i,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.album.shuffle"))},null,8,P5)]),l("a",{class:"button is-small is-light is-rounded",onClick:t[2]||(t[2]=f=>s.show_album_details_modal=!0)},[l("span",D5,[C(i,{name:"dots-horizontal",size:"16"})])])])]),"heading-right":A(()=>[l("p",F5,[C(a,{artwork_url:s.album.artwork_url,artist:s.album.artist,album:s.album.name,onClick:t[3]||(t[3]=f=>s.show_album_details_modal=!0)},null,8,["artwork_url","artist","album"])])]),content:A(()=>[l("p",{class:"heading is-7 has-text-centered-mobile fd-has-margin-top",textContent:g(e.$t("page.album.track-count",{count:s.album.track_count}))},null,8,I5),C(u,{tracks:s.tracks,uris:s.album.uri},null,8,["tracks","uris"]),C(c,{show:s.show_album_details_modal,album:s.album,onClose:t[4]||(t[4]=f=>s.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})}var L5=pe(E5,[["render",R5]]);const N5={name:"ModalDialogGenre",props:["show","genre"],emits:["close"],methods:{play:function(){this.$emit("close"),q.player_play_expression('genre is "'+this.genre.name+'" and media_kind is music',!1)},queue_add:function(){this.$emit("close"),q.queue_expression_add('genre is "'+this.genre.name+'" and media_kind is music')},queue_add_next:function(){this.$emit("close"),q.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}})}}},M5={key:0,class:"modal is-active"},V5={class:"modal-content fd-modal-card"},B5={class:"card"},U5={class:"card-content"},j5={class:"title is-4"},H5=["textContent"],q5={class:"content is-small"},W5=["textContent"],G5=["textContent"],K5=["textContent"],Z5=["textContent"],Y5=["textContent"],J5=["textContent"],X5={class:"card-footer"},Q5={class:"icon"},eF=["textContent"],tF={class:"icon"},nF=["textContent"],rF={class:"icon"},sF=["textContent"];function oF(e,t,n,r,s,o){const i=$("mdicon");return E(),P("div",null,[C(Jt,{name:"fade"},{default:A(()=>[n.show?(E(),P("div",M5,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",V5,[l("div",B5,[l("div",U5,[l("p",j5,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_genre&&o.open_genre(...a)),textContent:g(n.genre.name)},null,8,H5)]),l("div",q5,[l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.genre.albums"))},null,8,W5),l("span",{class:"title is-6",textContent:g(n.genre.album_count)},null,8,G5)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.genre.tracks"))},null,8,K5),l("span",{class:"title is-6",textContent:g(n.genre.track_count)},null,8,Z5)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.genre.duration"))},null,8,Y5),l("span",{class:"title is-6",textContent:g(e.$filters.durationInHours(n.genre.length_ms))},null,8,J5)])])]),l("footer",X5,[l("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add&&o.queue_add(...a))},[l("span",Q5,[C(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.genre.add"))},null,8,eF)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[l("span",tF,[C(i,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.genre.add-next"))},null,8,nF)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.play&&o.play(...a))},[l("span",rF,[C(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.genre.play"))},null,8,sF)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var qm=pe(N5,[["render",oF]]);const iF={name:"ListGenres",components:{ModalDialogGenre:qm},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}}},aF={key:0,class:"mt-6 mb-5 py-2"},lF={class:"media-content is-clipped"},uF=["id","textContent"],cF=["onClick"],dF={class:"media-content fd-has-action is-clipped"},mF=["textContent"],fF={class:"media-right"},pF=["onClick"],hF={class:"icon has-text-dark"};function _F(e,t,n,r,s,o){const i=$("mdicon"),a=$("modal-dialog-genre");return E(),P(He,null,[(E(!0),P(He,null,Et(n.genres,u=>(E(),P(He,{key:u.itemId},[!u.isItem&&!n.hide_group_title?(E(),P("div",aF,[l("div",lF,[l("span",{id:"index_"+u.groupKey,class:"tag is-info is-light is-small has-text-weight-bold",textContent:g(u.groupKey)},null,8,uF)])])):u.isItem?(E(),P("div",{key:1,class:"media",onClick:c=>o.open_genre(u.item)},[l("div",dF,[l("h1",{class:"title is-6",textContent:g(u.item.name)},null,8,mF)]),l("div",fF,[l("a",{onClick:gt(c=>o.open_dialog(u.item),["prevent","stop"])},[l("span",hF,[C(i,{name:"dots-vertical",size:"16"})])],8,pF)])],8,cF)):Y("",!0)],64))),128)),(E(),ke(ds,{to:"#app"},[C(a,{show:s.show_details_modal,genre:s.selected_genre,onClose:t[0]||(t[0]=u=>s.show_details_modal=!1)},null,8,["show","genre"])]))],64)}var gF=pe(iF,[["render",_F]]);const Fa={load:function(e){return q.library_genres("music")},set:function(e,t){e.genres=t.data,e.genres=new Ie(t.data),e.genres.group(dr("name_sort"))}},yF={name:"PageGenres",components:{ContentWithHeading:mt,TabsMusic:Cr,IndexButtonList:xr,ListGenres:gF},beforeRouteEnter(e,t,n){Fa.load(e).then(r=>{n(s=>Fa.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Fa.load(e).then(s=>{Fa.set(r,s),n()})},data(){return{genres:new Ie}},computed:{},methods:{}},vF={class:"fd-page-with-tabs"},bF=["textContent"],wF=["textContent"];function CF(e,t,n,r,s,o){const i=$("tabs-music"),a=$("index-button-list"),u=$("list-genres"),c=$("content-with-heading");return E(),P("div",vF,[C(i),C(c,null,{options:A(()=>[C(a,{index:s.genres.indexList},null,8,["index"])]),"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.genres.title"))},null,8,bF),l("p",{class:"heading",textContent:g(e.$t("page.genres.count",{count:s.genres.total}))},null,8,wF)]),content:A(()=>[C(u,{genres:s.genres},null,8,["genres"])]),_:1})])}var zF=pe(yF,[["render",CF]]);const Ia={load:function(e){return Promise.all([q.library_genre(e.params.genre),q.library_genre_albums(e.params.genre)])},set:function(e,t){e.genre=t[0].data,e.albums_list=new Ie(t[1].data.albums),e.albums_list.group(dr("name_sort",!0))}},xF={name:"PageGenre",components:{ContentWithHeading:mt,IndexButtonList:xr,ListAlbums:zr,ModalDialogGenre:qm},beforeRouteEnter(e,t,n){Ia.load(e).then(r=>{n(s=>Ia.set(s,r))})},beforeRouteUpdate(e,t,n){if(!this.albums_list.isEmpty()){n();return}const r=this;Ia.load(e).then(s=>{Ia.set(r,s),n()})},data(){return{genre:{},albums_list:new Ie,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(){q.player_play_expression('genre is "'+this.genre.name+'" and media_kind is music',!0)}}},kF=["textContent"],EF={class:"buttons is-centered"},SF={class:"icon"},$F={class:"icon"},AF=["textContent"],TF={class:"heading has-text-centered-mobile"},OF=["textContent"],PF=l("span",null,"\xA0|\xA0",-1),DF=["textContent"];function FF(e,t,n,r,s,o){const i=$("index-button-list"),a=$("mdicon"),u=$("list-albums"),c=$("modal-dialog-genre"),d=$("content-with-heading");return E(),P("div",null,[C(d,null,{options:A(()=>[C(i,{index:s.albums_list.indexList},null,8,["index"])]),"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(s.genre.name)},null,8,kF)]),"heading-right":A(()=>[l("div",EF,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=f=>s.show_genre_details_modal=!0)},[l("span",SF,[C(a,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...f)=>o.play&&o.play(...f))},[l("span",$F,[C(a,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.genre.shuffle"))},null,8,AF)])])]),content:A(()=>[l("p",TF,[l("span",{textContent:g(e.$t("page.genre.album-count",{count:s.genre.album_count}))},null,8,OF),PF,l("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...f)=>o.open_tracks&&o.open_tracks(...f)),textContent:g(e.$t("page.genre.track-count",{count:s.genre.track_count}))},null,8,DF)]),C(u,{albums:s.albums_list},null,8,["albums"]),C(c,{show:s.show_genre_details_modal,genre:s.genre,onClose:t[3]||(t[3]=f=>s.show_genre_details_modal=!1)},null,8,["show","genre"])]),_:1})])}var IF=pe(xF,[["render",FF]]);const Ra={load:function(e){return Promise.all([q.library_genre(e.params.genre),q.library_genre_tracks(e.params.genre)])},set:function(e,t){e.genre=t[0].data,e.tracks_list=new Ie(t[1].data.tracks)}},RF={name:"PageGenreTracks",components:{ContentWithHeading:mt,DropdownMenu:Vs,IndexButtonList:xr,ListTracks:Nn,ModalDialogGenre:qm},beforeRouteEnter(e,t,n){Ra.load(e).then(r=>{n(s=>Ra.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Ra.load(e).then(s=>{Ra.set(r,s),n()})},data(){return{genre:{},groupby_options:[{id:1,name:this.$t("page.genre.sort-by.name"),options:dr("title_sort")},{id:2,name:this.$t("page.genre.sort-by.rating"),options:Um("rating",{direction:"desc"})}],show_genre_details_modal:!1,tracks_list:new Ie}},computed:{expression(){return'genre is "'+this.genre.name+'" and media_kind is music'},selected_groupby_option_id:{get(){return this.$store.state.genre_tracks_sort},set(e){this.$store.commit(Ry,e)}},tracks(){const e=this.groupby_options.find(t=>t.id===this.selected_groupby_option_id);return this.tracks_list.group(e.options),this.tracks_list}},methods:{open_genre:function(){this.show_details_modal=!1,this.$router.push({name:"Genre",params:{genre:this.genre.name}})},play:function(){q.player_play_expression(this.expression,!0)}}},LF={class:"columns"},NF={class:"column"},MF=["textContent"],VF=["textContent"],BF={class:"buttons is-centered"},UF={class:"icon"},jF={class:"icon"},HF=["textContent"],qF={class:"heading has-text-centered-mobile"},WF=["textContent"],GF=l("span",null,"\xA0|\xA0",-1),KF=["textContent"];function ZF(e,t,n,r,s,o){const i=$("index-button-list"),a=$("dropdown-menu"),u=$("mdicon"),c=$("list-tracks"),d=$("modal-dialog-genre"),f=$("content-with-heading");return E(),P("div",null,[C(f,null,{options:A(()=>[C(i,{index:o.tracks.indexList},null,8,["index"]),l("div",LF,[l("div",NF,[l("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:g(e.$t("page.genre.sort-by.title"))},null,8,MF),C(a,{modelValue:o.selected_groupby_option_id,"onUpdate:modelValue":t[0]||(t[0]=m=>o.selected_groupby_option_id=m),options:s.groupby_options},null,8,["modelValue","options"])])])]),"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(s.genre.name)},null,8,VF)]),"heading-right":A(()=>[l("div",BF,[l("a",{class:"button is-small is-light is-rounded",onClick:t[1]||(t[1]=m=>s.show_genre_details_modal=!0)},[l("span",UF,[C(u,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[2]||(t[2]=(...m)=>o.play&&o.play(...m))},[l("span",jF,[C(u,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.genre.shuffle"))},null,8,HF)])])]),content:A(()=>[l("p",qF,[l("a",{class:"has-text-link",onClick:t[3]||(t[3]=(...m)=>o.open_genre&&o.open_genre(...m)),textContent:g(e.$t("page.genre.album-count",{count:s.genre.album_count}))},null,8,WF),GF,l("span",{textContent:g(e.$t("page.genre.track-count",{count:s.genre.track_count}))},null,8,KF)]),C(c,{tracks:o.tracks,expression:o.expression},null,8,["tracks","expression"]),C(d,{show:s.show_genre_details_modal,genre:s.genre,onClose:t[4]||(t[4]=m=>s.show_genre_details_modal=!1)},null,8,["show","genre"])]),_:1})])}var YF=pe(RF,[["render",ZF]]);const La={load:function(e){return Promise.all([q.library_artist(e.params.artist_id),q.library_artist_tracks(e.params.artist_id)])},set:function(e,t){e.artist=t[0].data,e.tracks_list=new Ie(t[1].data.tracks)}},JF={name:"PageArtistTracks",components:{ContentWithHeading:mt,DropdownMenu:Vs,IndexButtonList:xr,ListTracks:Nn,ModalDialogArtist:ku},beforeRouteEnter(e,t,n){La.load(e).then(r=>{n(s=>La.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;La.load(e).then(s=>{La.set(r,s),n()})},data(){return{artist:{},groupby_options:[{id:1,name:this.$t("page.artist.sort-by.name"),options:dr("title_sort")},{id:2,name:this.$t("page.artist.sort-by.rating"),options:Um("rating",{direction:"desc"})}],show_artist_details_modal:!1,tracks_list:new Ie}},computed:{selected_groupby_option_id:{get(){return this.$store.state.artist_tracks_sort},set(e){this.$store.commit(My,e)}},tracks(){const e=this.groupby_options.find(t=>t.id===this.selected_groupby_option_id);return this.tracks_list.group(e.options),this.tracks_list},track_uris(){return this.tracks_list.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(){q.player_play_uri(this.tracks_list.map(e=>e.uri).join(","),!0)}}},XF={class:"columns"},QF={class:"column"},eI=["textContent"],tI=["textContent"],nI={class:"buttons is-centered"},rI={class:"icon"},sI={class:"icon"},oI=["textContent"],iI={class:"heading has-text-centered-mobile"},aI=["textContent"],lI=l("span",null,"\xA0|\xA0",-1),uI=["textContent"];function cI(e,t,n,r,s,o){const i=$("index-button-list"),a=$("dropdown-menu"),u=$("mdicon"),c=$("list-tracks"),d=$("modal-dialog-artist"),f=$("content-with-heading");return E(),P("div",null,[C(f,null,{options:A(()=>[C(i,{index:o.tracks.indexList},null,8,["index"]),l("div",XF,[l("div",QF,[l("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:g(e.$t("page.artist.sort-by.title"))},null,8,eI),C(a,{modelValue:o.selected_groupby_option_id,"onUpdate:modelValue":t[0]||(t[0]=m=>o.selected_groupby_option_id=m),options:s.groupby_options},null,8,["modelValue","options"])])])]),"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(s.artist.name)},null,8,tI)]),"heading-right":A(()=>[l("div",nI,[l("a",{class:"button is-small is-light is-rounded",onClick:t[1]||(t[1]=m=>s.show_artist_details_modal=!0)},[l("span",rI,[C(u,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[2]||(t[2]=(...m)=>o.play&&o.play(...m))},[l("span",sI,[C(u,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.artist.shuffle"))},null,8,oI)])])]),content:A(()=>[l("p",iI,[l("a",{class:"has-text-link",onClick:t[3]||(t[3]=(...m)=>o.open_artist&&o.open_artist(...m)),textContent:g(e.$t("page.artist.album-count",{count:s.artist.album_count}))},null,8,aI),lI,l("span",{textContent:g(e.$t("page.artist.track-count",{count:s.artist.track_count}))},null,8,uI)]),C(c,{tracks:o.tracks,uris:o.track_uris},null,8,["tracks","uris"]),C(d,{show:s.show_artist_details_modal,artist:s.artist,onClose:t[4]||(t[4]=m=>s.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})])}var dI=pe(JF,[["render",cI]]);const mI={name:"ModalDialogComposer",props:["show","composer"],emits:["close"],methods:{play:function(){this.$emit("close"),q.player_play_expression('composer is "'+this.composer.name+'" and media_kind is music',!1)},queue_add:function(){this.$emit("close"),q.queue_expression_add('composer is "'+this.composer.name+'" and media_kind is music')},queue_add_next:function(){this.$emit("close"),q.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}})}}},fI={key:0,class:"modal is-active"},pI={class:"modal-content fd-modal-card"},hI={class:"card"},_I={class:"card-content"},gI={class:"title is-4"},yI=["textContent"],vI=["textContent"],bI=["textContent"],wI=["textContent"],CI=["textContent"],zI=["textContent"],xI=["textContent"],kI={class:"card-footer"},EI={class:"icon"},SI=["textContent"],$I={class:"icon"},AI=["textContent"],TI={class:"icon"},OI=["textContent"];function PI(e,t,n,r,s,o){const i=$("mdicon");return E(),P("div",null,[C(Jt,{name:"fade"},{default:A(()=>[n.show?(E(),P("div",fI,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",pI,[l("div",hI,[l("div",_I,[l("p",gI,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_albums&&o.open_albums(...a)),textContent:g(n.composer.name)},null,8,yI)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.composer.albums"))},null,8,vI),l("a",{class:"has-text-link is-6",onClick:t[2]||(t[2]=(...a)=>o.open_albums&&o.open_albums(...a)),textContent:g(n.composer.album_count)},null,8,bI)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.composer.tracks"))},null,8,wI),l("a",{class:"has-text-link is-6",onClick:t[3]||(t[3]=(...a)=>o.open_tracks&&o.open_tracks(...a)),textContent:g(n.composer.track_count)},null,8,CI)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.composer.duration"))},null,8,zI),l("span",{class:"title is-6",textContent:g(e.$filters.durationInHours(n.composer.length_ms))},null,8,xI)])]),l("footer",kI,[l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.queue_add&&o.queue_add(...a))},[l("span",EI,[C(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.composer.add"))},null,8,SI)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[l("span",$I,[C(i,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.composer.add-next"))},null,8,AI)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...a)=>o.play&&o.play(...a))},[l("span",TI,[C(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.composer.play"))},null,8,OI)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[7]||(t[7]=a=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var Wm=pe(mI,[["render",PI]]);const DI={name:"ListComposers",components:{ModalDialogComposer:Wm},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}}},FI={key:0,class:"mt-6 mb-5 py-2"},II={class:"media-content is-clipped"},RI=["id","textContent"],LI=["onClick"],NI={class:"media-content fd-has-action is-clipped"},MI=["textContent"],VI={class:"media-right"},BI=["onClick"],UI={class:"icon has-text-dark"};function jI(e,t,n,r,s,o){const i=$("mdicon"),a=$("modal-dialog-composer");return E(),P(He,null,[(E(!0),P(He,null,Et(n.composers,u=>(E(),P(He,{key:u.itemId},[!u.isItem&&!n.hide_group_title?(E(),P("div",FI,[l("div",II,[l("span",{id:"index_"+u.groupKey,class:"tag is-info is-light is-small has-text-weight-bold",textContent:g(u.groupKey)},null,8,RI)])])):u.isItem?(E(),P("div",{key:1,class:"media",onClick:c=>o.open_composer(u.item)},[l("div",NI,[l("h1",{class:"title is-6",textContent:g(u.item.name)},null,8,MI)]),l("div",VI,[l("a",{onClick:gt(c=>o.open_dialog(u.item),["prevent","stop"])},[l("span",UI,[C(i,{name:"dots-vertical",size:"16"})])],8,BI)])],8,LI)):Y("",!0)],64))),128)),(E(),ke(ds,{to:"#app"},[C(a,{show:s.show_details_modal,composer:s.selected_composer,media_kind:n.media_kind,onClose:t[0]||(t[0]=u=>s.show_details_modal=!1)},null,8,["show","composer","media_kind"])]))],64)}var C1=pe(DI,[["render",jI]]);const Na={load:function(e){return q.library_composers("music")},set:function(e,t){e.composers=new Ie(t.data),e.composers.group(dr("name_sort"))}},HI={name:"PageComposers",components:{ContentWithHeading:mt,TabsMusic:Cr,IndexButtonList:xr,ListComposers:C1},beforeRouteEnter(e,t,n){Na.load(e).then(r=>{n(s=>Na.set(s,r))})},beforeRouteUpdate(e,t,n){if(!this.composers.isEmpty()){n();return}const r=this;Na.load(e).then(s=>{Na.set(r,s),n()})},data(){return{composers:new Ie}},methods:{}},qI=["textContent"],WI=["textContent"];function GI(e,t,n,r,s,o){const i=$("tabs-music"),a=$("index-button-list"),u=$("list-composers"),c=$("content-with-heading");return E(),P("div",null,[C(i),C(c,null,{options:A(()=>[C(a,{index:s.composers.indexList},null,8,["index"])]),"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.composers.title"))},null,8,qI),l("p",{class:"heading",textContent:g(e.$t("page.composers.count",{count:s.composers.total}))},null,8,WI)]),content:A(()=>[C(u,{composers:s.composers},null,8,["composers"])]),_:1})])}var KI=pe(HI,[["render",GI]]);const Ma={load:function(e){return Promise.all([q.library_composer(e.params.composer),q.library_composer_albums(e.params.composer)])},set:function(e,t){e.composer=t[0].data,e.albums_list=new Ie(t[1].data.albums)}},ZI={name:"PageComposer",components:{ContentWithHeading:mt,ListAlbums:zr,ModalDialogComposer:Wm},beforeRouteEnter(e,t,n){Ma.load(e).then(r=>{n(s=>Ma.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Ma.load(e).then(s=>{Ma.set(r,s),n()})},data(){return{composer:{},albums_list:new Ie,show_composer_details_modal:!1}},methods:{open_tracks:function(){this.$router.push({name:"ComposerTracks",params:{composer:this.composer.name}})},play:function(){q.player_play_expression('composer is "'+this.composer.name+'" and media_kind is music',!0)}}},YI=["textContent"],JI={class:"buttons is-centered"},XI={class:"icon"},QI={class:"icon"},eR=["textContent"],tR={class:"heading has-text-centered-mobile"},nR=["textContent"],rR=l("span",null,"\xA0|\xA0",-1),sR=["textContent"];function oR(e,t,n,r,s,o){const i=$("mdicon"),a=$("list-albums"),u=$("modal-dialog-composer"),c=$("content-with-heading");return E(),P("div",null,[C(c,null,{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(s.composer.name)},null,8,YI)]),"heading-right":A(()=>[l("div",JI,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>s.show_composer_details_modal=!0)},[l("span",XI,[C(i,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>o.play&&o.play(...d))},[l("span",QI,[C(i,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.composer.shuffle"))},null,8,eR)])])]),content:A(()=>[l("p",tR,[l("span",{textContent:g(e.$t("page.composer.album-count",{count:s.composer.album_count}))},null,8,nR),rR,l("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...d)=>o.open_tracks&&o.open_tracks(...d)),textContent:g(e.$t("page.composer.track-count",{count:s.composer.track_count}))},null,8,sR)]),C(a,{albums:s.albums_list,hide_group_title:!0},null,8,["albums"]),C(u,{show:s.show_composer_details_modal,composer:s.composer,onClose:t[3]||(t[3]=d=>s.show_composer_details_modal=!1)},null,8,["show","composer"])]),_:1})])}var iR=pe(ZI,[["render",oR]]);const Va={load:function(e){return Promise.all([q.library_composer(e.params.composer),q.library_composer_tracks(e.params.composer)])},set:function(e,t){e.composer=t[0].data,e.tracks_list=new Ie(t[1].data.tracks)}},aR={name:"PageComposerTracks",components:{ContentWithHeading:mt,DropdownMenu:Vs,IndexButtonList:xr,ListTracks:Nn,ModalDialogComposer:Wm},beforeRouteEnter(e,t,n){Va.load(e).then(r=>{n(s=>Va.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Va.load(e).then(s=>{Va.set(r,s),n()})},data(){return{groupby_options:[{id:1,name:this.$t("page.composer.sort-by.name"),options:dr("title_sort")},{id:2,name:this.$t("page.composer.sort-by.rating"),options:Um("rating",{direction:"desc"})}],composer:{},show_composer_details_modal:!1,tracks_list:new Ie}},computed:{expression(){return'composer is "'+this.composer.name+'" and media_kind is music'},selected_groupby_option_id:{get(){return this.$store.state.composer_tracks_sort},set(e){this.$store.commit(Iy,e)}},tracks(){const e=this.groupby_options.find(t=>t.id===this.selected_groupby_option_id);return this.tracks_list.group(e.options),this.tracks_list}},methods:{open_albums:function(){this.show_details_modal=!1,this.$router.push({name:"ComposerAlbums",params:{composer:this.composer.name}})},play:function(){q.player_play_expression(this.expression,!0)}}},lR={class:"columns"},uR={class:"column"},cR=["textContent"],dR=["textContent"],mR={class:"buttons is-centered"},fR={class:"icon"},pR={class:"icon"},hR=["textContent"],_R={class:"heading has-text-centered-mobile"},gR=["textContent"],yR=l("span",null,"\xA0|\xA0",-1),vR=["textContent"];function bR(e,t,n,r,s,o){const i=$("index-button-list"),a=$("dropdown-menu"),u=$("mdicon"),c=$("list-tracks"),d=$("modal-dialog-composer"),f=$("content-with-heading");return E(),P("div",null,[C(f,null,{options:A(()=>[C(i,{index:o.tracks.indexList},null,8,["index"]),l("div",lR,[l("div",uR,[l("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:g(e.$t("page.artist.sort-by.title"))},null,8,cR),C(a,{modelValue:o.selected_groupby_option_id,"onUpdate:modelValue":t[0]||(t[0]=m=>o.selected_groupby_option_id=m),options:s.groupby_options},null,8,["modelValue","options"])])])]),"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(s.composer.name)},null,8,dR)]),"heading-right":A(()=>[l("div",mR,[l("a",{class:"button is-small is-light is-rounded",onClick:t[1]||(t[1]=m=>s.show_composer_details_modal=!0)},[l("span",fR,[C(u,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[2]||(t[2]=(...m)=>o.play&&o.play(...m))},[l("span",pR,[C(u,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.composer.shuffle"))},null,8,hR)])])]),content:A(()=>[l("p",_R,[l("a",{class:"has-text-link",onClick:t[3]||(t[3]=(...m)=>o.open_albums&&o.open_albums(...m)),textContent:g(e.$t("page.composer.album-count",{count:s.composer.album_count}))},null,8,gR),yR,l("span",{textContent:g(e.$t("page.composer.track-count",{count:s.composer.track_count}))},null,8,vR)]),C(c,{tracks:o.tracks,expression:o.expression},null,8,["tracks","expression"]),C(d,{show:s.show_composer_details_modal,composer:s.composer,onClose:t[4]||(t[4]=m=>s.show_composer_details_modal=!1)},null,8,["show","composer"])]),_:1})])}var wR=pe(aR,[["render",bR]]);const CR={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,q.library_add(this.url).then(()=>{this.$emit("close"),this.$emit("podcast-added"),this.url=""}).catch(()=>{this.loading=!1})}}},zR={key:0,class:"modal is-active"},xR={class:"modal-content fd-modal-card"},kR={class:"card"},ER={class:"card-content"},SR=["textContent"],$R={class:"field"},AR={class:"control is-expanded has-icons-left"},TR=["placeholder","disabled"],OR={class:"icon is-left"},PR=["textContent"],DR={key:0,class:"card-footer"},FR={class:"card-footer-item button is-loading"},IR={class:"icon"},RR=["textContent"],LR={key:1,class:"card-footer"},NR={class:"icon"},MR=["textContent"],VR={class:"icon"},BR=["textContent"];function UR(e,t,n,r,s,o){const i=$("mdicon");return E(),P("div",null,[C(Jt,{name:"fade"},{default:A(()=>[n.show?(E(),P("div",zR,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",xR,[l("div",kR,[l("div",ER,[l("p",{class:"title is-4",textContent:g(e.$t("dialog.add.rss.title"))},null,8,SR),l("form",{onSubmit:t[2]||(t[2]=gt((...a)=>o.add_stream&&o.add_stream(...a),["prevent"]))},[l("div",$R,[l("p",AR,[Pt(l("input",{ref:"url_field","onUpdate:modelValue":t[1]||(t[1]=a=>s.url=a),class:"input is-shadowless",type:"text",placeholder:e.$t("dialog.add.rss.placeholder"),disabled:s.loading},null,8,TR),[[$n,s.url]]),l("span",OR,[C(i,{name:"rss",size:"16"})])]),l("p",{class:"help",textContent:g(e.$t("dialog.add.rss.help"))},null,8,PR)])],32)]),s.loading?(E(),P("footer",DR,[l("a",FR,[l("span",IR,[C(i,{name:"web",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.add.rss.processing"))},null,8,RR)])])):(E(),P("footer",LR,[l("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=a=>e.$emit("close"))},[l("span",NR,[C(i,{name:"cancel",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.add.rss.cancel"))},null,8,MR)]),l("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[4]||(t[4]=(...a)=>o.add_stream&&o.add_stream(...a))},[l("span",VR,[C(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.add.rss.add"))},null,8,BR)])]))])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var jR=pe(CR,[["render",UR]]);const Ba={load:function(e){return Promise.all([q.library_albums("podcast"),q.library_podcasts_new_episodes()])},set:function(e,t){e.albums=new Ie(t[0].data),e.new_episodes=new Ie(t[1].data.tracks)}},HR={name:"PagePodcasts",components:{ContentWithHeading:mt,ListTracks:Nn,ListAlbums:zr,ModalDialogAddRss:jR},beforeRouteEnter(e,t,n){Ba.load(e).then(r=>{n(s=>Ba.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Ba.load(e).then(s=>{Ba.set(r,s),n()})},data(){return{albums:[],new_episodes:{items:[]},show_url_modal:!1}},computed:{rss(){return this.$store.state.rss_count}},methods:{mark_all_played:function(){this.new_episodes.items.forEach(e=>{q.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(){q.library_podcasts_new_episodes().then(({data:e})=>{this.new_episodes=new Ie(e.tracks)})},reload_podcasts:function(){q.library_albums("podcast").then(({data:e})=>{this.albums=new Ie(e),this.reload_new_episodes()})},update_rss:function(){this.$store.commit(km,"rss"),this.$store.commit(Ki,!0)}}},qR=["textContent"],WR={class:"buttons is-centered"},GR={class:"icon"},KR=["textContent"],ZR=["textContent"],YR=["textContent"],JR={class:"buttons is-centered"},XR={class:"icon"},QR=["textContent"],eL={class:"icon"},tL=["textContent"];function nL(e,t,n,r,s,o){const i=$("mdicon"),a=$("list-tracks"),u=$("content-with-heading"),c=$("list-albums"),d=$("modal-dialog-add-rss");return E(),P("div",null,[s.new_episodes.items.length>0?(E(),ke(u,{key:0},{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.podcasts.new-episodes"))},null,8,qR)]),"heading-right":A(()=>[l("div",WR,[l("a",{class:"button is-small",onClick:t[0]||(t[0]=(...f)=>o.mark_all_played&&o.mark_all_played(...f))},[l("span",GR,[C(i,{name:"pencil",size:"16"})]),l("span",{textContent:g(e.$t("page.podcasts.mark-all-played"))},null,8,KR)])])]),content:A(()=>[C(a,{tracks:s.new_episodes,show_progress:!0,onPlayCountChanged:o.reload_new_episodes},null,8,["tracks","onPlayCountChanged"])]),_:1})):Y("",!0),C(u,null,{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.podcasts.title"))},null,8,ZR),l("p",{class:"heading",textContent:g(e.$t("page.podcasts.count",{count:s.albums.total}))},null,8,YR)]),"heading-right":A(()=>[l("div",JR,[o.rss.tracks>0?(E(),P("a",{key:0,class:"button is-small",onClick:t[1]||(t[1]=(...f)=>o.update_rss&&o.update_rss(...f))},[l("span",XR,[C(i,{name:"refresh",size:"16"})]),l("span",{textContent:g(e.$t("page.podcasts.update"))},null,8,QR)])):Y("",!0),l("a",{class:"button is-small",onClick:t[2]||(t[2]=(...f)=>o.open_add_podcast_dialog&&o.open_add_podcast_dialog(...f))},[l("span",eL,[C(i,{name:"rss",size:"16"})]),l("span",{textContent:g(e.$t("page.podcasts.add"))},null,8,tL)])])]),content:A(()=>[C(c,{albums:s.albums,onPlayCountChanged:t[3]||(t[3]=f=>o.reload_new_episodes()),onPodcastDeleted:t[4]||(t[4]=f=>o.reload_podcasts())},null,8,["albums"]),C(d,{show:s.show_url_modal,onClose:t[5]||(t[5]=f=>s.show_url_modal=!1),onPodcastAdded:t[6]||(t[6]=f=>o.reload_podcasts())},null,8,["show"])]),_:1})])}var rL=pe(HR,[["render",nL]]);const Ua={load:function(e){return Promise.all([q.library_album(e.params.album_id),q.library_podcast_episodes(e.params.album_id)])},set:function(e,t){e.album=t[0].data,e.tracks=new Ie(t[1].data.tracks)}},sL={name:"PagePodcast",components:{ContentWithHeading:mt,ListTracks:Nn,ModalDialogAlbum:xu,ModalDialog:Vm},beforeRouteEnter(e,t,n){Ua.load(e).then(r=>{n(s=>Ua.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Ua.load(e).then(s=>{Ua.set(r,s),n()})},data(){return{album:{},tracks:new Ie,show_details_modal:!1,show_remove_podcast_modal:!1,rss_playlist_to_remove:{}}},computed:{new_tracks(){return this.tracks.items.filter(e=>e.play_count===0).length}},methods:{play:function(){q.player_play_uri(this.album.uri,!1)},open_remove_podcast_dialog:function(){q.library_track_playlists(this.tracks.items[0].id).then(({data:e})=>{this.rss_playlist_to_remove=e.items.filter(t=>t.type==="rss")[0],this.show_remove_podcast_modal=!0,this.show_details_modal=!1})},remove_podcast:function(){this.show_remove_podcast_modal=!1,q.library_playlist_delete(this.rss_playlist_to_remove.id).then(()=>{this.$router.replace({path:"/podcasts"})})},reload_tracks:function(){q.library_podcast_episodes(this.album.id).then(({data:e})=>{this.tracks=new Ie(e.tracks)})}}},oL=["textContent"],iL={class:"buttons is-centered"},aL={class:"icon"},lL={class:"icon"},uL=["textContent"],cL=["textContent"],dL=["textContent"],mL={class:"is-size-7"},fL=["textContent"],pL=["textContent"];function hL(e,t,n,r,s,o){const i=$("mdicon"),a=$("list-tracks"),u=$("modal-dialog-album"),c=$("modal-dialog"),d=$("content-with-heading");return E(),ke(d,null,{"heading-left":A(()=>[l("div",{class:"title is-4",textContent:g(s.album.name)},null,8,oL)]),"heading-right":A(()=>[l("div",iL,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=f=>s.show_details_modal=!0)},[l("span",aL,[C(i,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...f)=>o.play&&o.play(...f))},[l("span",lL,[C(i,{name:"play",size:"16"})]),l("span",{textContent:g(e.$t("page.podcast.play"))},null,8,uL)])])]),content:A(()=>[l("p",{class:"heading has-text-centered-mobile",textContent:g(e.$t("page.podcast.track-count",{count:s.album.track_count}))},null,8,cL),C(a,{tracks:s.tracks,show_progress:!0,onPlayCountChanged:o.reload_tracks},null,8,["tracks","onPlayCountChanged"]),C(u,{show:s.show_details_modal,album:s.album,media_kind:"podcast",new_tracks:o.new_tracks,onClose:t[2]||(t[2]=f=>s.show_details_modal=!1),onPlayCountChanged:o.reload_tracks,onRemovePodcast:o.open_remove_podcast_dialog},null,8,["show","album","new_tracks","onPlayCountChanged","onRemovePodcast"]),C(c,{show:s.show_remove_podcast_modal,title:e.$t("page.podcast.remove-podcast"),delete_action:e.$t("page.podcast.remove"),onClose:t[3]||(t[3]=f=>s.show_remove_podcast_modal=!1),onDelete:o.remove_podcast},{"modal-content":A(()=>[l("p",{textContent:g(e.$t("page.podcast.remove-info-1"))},null,8,dL),l("p",mL,[wt(" ("),l("span",{textContent:g(e.$t("page.podcast.remove-info-2"))},null,8,fL),l("b",{textContent:g(s.rss_playlist_to_remove.name)},null,8,pL),wt(") ")])]),_:1},8,["show","title","delete_action","onDelete"])]),_:1})}var _L=pe(sL,[["render",hL]]);const gL={name:"TabsAudiobooks"},yL={class:"section fd-tabs-section"},vL={class:"container"},bL={class:"columns is-centered"},wL={class:"column is-four-fifths"},CL={class:"tabs is-centered is-small"},zL=["onClick","onKeypress"],xL={class:"icon is-small"},kL=["textContent"],EL=["onClick","onKeypress"],SL={class:"icon is-small"},$L=["textContent"];function AL(e,t,n,r,s,o){const i=$("mdicon"),a=$("router-link");return E(),P("section",yL,[l("div",vL,[l("div",bL,[l("div",wL,[l("div",CL,[l("ul",null,[C(a,{to:"/audiobooks/artists",custom:""},{default:A(({navigate:u,isActive:c})=>[l("li",{class:We({"is-active":c})},[l("a",{onClick:u,onKeypress:Fn(u,["enter"])},[l("span",xL,[C(i,{name:"account-music",size:"16"})]),l("span",{textContent:g(e.$t("page.audiobooks.tabs.authors"))},null,8,kL)],40,zL)],2)]),_:1}),C(a,{to:"/audiobooks/albums",custom:""},{default:A(({navigate:u,isActive:c})=>[l("li",{class:We({"is-active":c})},[l("a",{onClick:u,onKeypress:Fn(u,["enter"])},[l("span",SL,[C(i,{name:"album",size:"16"})]),l("span",{textContent:g(e.$t("page.audiobooks.tabs.audiobooks"))},null,8,$L)],40,EL)],2)]),_:1})])])])])])])}var z1=pe(gL,[["render",AL]]);const ja={load:function(e){return q.library_albums("audiobook")},set:function(e,t){e.albums=new Ie(t.data),e.albums.group(dr("name_sort",!0))}},TL={name:"PageAudiobooksAlbums",components:{TabsAudiobooks:z1,ContentWithHeading:mt,IndexButtonList:xr,ListAlbums:zr},beforeRouteEnter(e,t,n){ja.load(e).then(r=>{n(s=>ja.set(s,r))})},beforeRouteUpdate(e,t,n){if(!this.albums.isEmpty()){n();return}const r=this;ja.load(e).then(s=>{ja.set(r,s),n()})},data(){return{albums:new Ie}},methods:{}},OL={class:"fd-page-with-tabs"},PL=["textContent"],DL=["textContent"];function FL(e,t,n,r,s,o){const i=$("tabs-audiobooks"),a=$("index-button-list"),u=$("list-albums"),c=$("content-with-heading");return E(),P("div",OL,[C(i),C(c,null,{options:A(()=>[C(a,{index:s.albums.indexList},null,8,["index"])]),"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.audiobooks.albums.title"))},null,8,PL),l("p",{class:"heading",textContent:g(e.$t("page.audiobooks.albums.count",{count:s.albums.count}))},null,8,DL)]),content:A(()=>[C(u,{albums:s.albums},null,8,["albums"])]),_:1})])}var IL=pe(TL,[["render",FL]]);const Ha={load:function(e){return q.library_artists("audiobook")},set:function(e,t){e.artists_list=new Ie(t.data)}},RL={name:"PageAudiobooksArtists",components:{ContentWithHeading:mt,TabsAudiobooks:z1,IndexButtonList:xr,ListArtists:jm},beforeRouteEnter(e,t,n){Ha.load(e).then(r=>{n(s=>Ha.set(s,r))})},beforeRouteUpdate(e,t,n){if(!this.artists_list.isEmpty()){n();return}const r=this;Ha.load(e).then(s=>{Ha.set(r,s),n()})},data(){return{artists_list:new Ie}},computed:{artists(){return this.artists_list?(this.artists_list.group(dr("name_sort",!0)),this.artists_list):[]}},methods:{}},LL={class:"fd-page-with-tabs"},NL=["textContent"],ML=["textContent"];function VL(e,t,n,r,s,o){const i=$("tabs-audiobooks"),a=$("index-button-list"),u=$("list-artists"),c=$("content-with-heading");return E(),P("div",LL,[C(i),C(c,null,{options:A(()=>[C(a,{index:o.artists.indexList},null,8,["index"])]),"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.audiobooks.artists.title"))},null,8,NL),l("p",{class:"heading",textContent:g(e.$t("page.audiobooks.artists.count",{count:o.artists.count}))},null,8,ML)]),"heading-right":A(()=>[]),content:A(()=>[C(u,{artists:o.artists},null,8,["artists"])]),_:1})])}var BL=pe(RL,[["render",VL]]);const qa={load:function(e){return Promise.all([q.library_artist(e.params.artist_id),q.library_artist_albums(e.params.artist_id)])},set:function(e,t){e.artist=t[0].data,e.albums=new Ie(t[1].data)}},UL={name:"PageAudiobooksArtist",components:{ContentWithHeading:mt,ListAlbums:zr,ModalDialogArtist:ku},beforeRouteEnter(e,t,n){qa.load(e).then(r=>{n(s=>qa.set(s,r))})},beforeRouteUpdate(e,t,n){if(!this.albums.isEmpty()){n();return}const r=this;qa.load(e).then(s=>{qa.set(r,s),n()})},data(){return{artist:{},albums:new Ie,show_artist_details_modal:!1}},methods:{play:function(){q.player_play_uri(this.albums.items.map(e=>e.uri).join(","),!1)}}},jL=["textContent"],HL={class:"buttons is-centered"},qL={class:"icon"},WL={class:"icon"},GL=["textContent"],KL=["textContent"];function ZL(e,t,n,r,s,o){const i=$("mdicon"),a=$("list-albums"),u=$("modal-dialog-artist"),c=$("content-with-heading");return E(),ke(c,null,{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(s.artist.name)},null,8,jL)]),"heading-right":A(()=>[l("div",HL,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>s.show_artist_details_modal=!0)},[l("span",qL,[C(i,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>o.play&&o.play(...d))},[l("span",WL,[C(i,{name:"play",size:"16"})]),l("span",{textContent:g(e.$t("page.audiobooks.artist.play"))},null,8,GL)])])]),content:A(()=>[l("p",{class:"heading has-text-centered-mobile",textContent:g(e.$t("page.audiobooks.artist.album-count",{count:s.artist.album_count}))},null,8,KL),C(a,{albums:s.albums},null,8,["albums"]),C(u,{show:s.show_artist_details_modal,artist:s.artist,onClose:t[2]||(t[2]=d=>s.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})}var YL=pe(UL,[["render",ZL]]);const Wa={load:function(e){return Promise.all([q.library_album(e.params.album_id),q.library_album_tracks(e.params.album_id)])},set:function(e,t){e.album=t[0].data,e.tracks=new Ie(t[1].data)}},JL={name:"PageAudiobooksAlbum",components:{ContentWithHero:Hm,ListTracks:Nn,ModalDialogAlbum:xu,CoverArtwork:Vr},beforeRouteEnter(e,t,n){Wa.load(e).then(r=>{n(s=>Wa.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Wa.load(e).then(s=>{Wa.set(r,s),n()})},data(){return{album:{},tracks:new Ie,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(){q.player_play_uri(this.album.uri,!1)},open_dialog:function(e){this.selected_track=e,this.show_details_modal=!0}}},XL=["textContent"],QL={class:"subtitle is-6 has-text-link has-text-weight-normal"},eN=["textContent"],tN={class:"buttons fd-is-centered-mobile fd-has-margin-top"},nN={class:"icon"},rN=["textContent"],sN={class:"icon"},oN={class:"image is-square fd-has-shadow fd-has-action"},iN=["textContent"];function aN(e,t,n,r,s,o){const i=$("mdicon"),a=$("cover-artwork"),u=$("list-tracks"),c=$("modal-dialog-album"),d=$("content-with-hero");return E(),ke(d,null,{"heading-left":A(()=>[l("h1",{class:"title is-5",textContent:g(s.album.name)},null,8,XL),l("h2",QL,[l("a",{class:"has-text-link",onClick:t[0]||(t[0]=(...f)=>o.open_artist&&o.open_artist(...f)),textContent:g(s.album.artist)},null,8,eN)]),l("div",tN,[l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...f)=>o.play&&o.play(...f))},[l("span",nN,[C(i,{name:"play",size:"16"})]),l("span",{textContent:g(e.$t("page.audiobooks.album.play"))},null,8,rN)]),l("a",{class:"button is-small is-light is-rounded",onClick:t[2]||(t[2]=f=>s.show_album_details_modal=!0)},[l("span",sN,[C(i,{name:"dots-horizontal",size:"16"})])])])]),"heading-right":A(()=>[l("p",oN,[C(a,{artwork_url:s.album.artwork_url,artist:s.album.artist,album:s.album.name,onClick:t[3]||(t[3]=f=>s.show_album_details_modal=!0)},null,8,["artwork_url","artist","album"])])]),content:A(()=>[l("p",{class:"heading is-7 has-text-centered-mobile fd-has-margin-top",textContent:g(e.$t("page.audiobooks.album.track-count",{count:s.album.track_count}))},null,8,iN),C(u,{tracks:s.tracks,uris:s.album.uri},null,8,["tracks","uris"]),C(c,{show:s.show_album_details_modal,album:s.album,media_kind:"audiobook",onClose:t[4]||(t[4]=f=>s.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})}var lN=pe(JL,[["render",aN]]);const uN={name:"ModalDialogPlaylist",props:["show","playlist","uris"],emits:["close"],methods:{play:function(){this.$emit("close"),q.player_play_uri(this.uris?this.uris:this.playlist.uri,!1)},queue_add:function(){this.$emit("close"),q.queue_add(this.uris?this.uris:this.playlist.uri)},queue_add_next:function(){this.$emit("close"),q.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"})}}},cN={key:0,class:"modal is-active"},dN={class:"modal-content fd-modal-card"},mN={class:"card"},fN={class:"card-content"},pN={class:"title is-4"},hN=["textContent"],_N={class:"content is-small"},gN=l("span",{class:"heading"},"Path",-1),yN=["textContent"],vN=["textContent"],bN=["textContent"],wN={key:0},CN=["textContent"],zN=["textContent"],xN={key:0,class:"card-footer"},kN={class:"icon"},EN=["textContent"],SN={class:"icon"},$N=["textContent"],AN={class:"icon"},TN=["textContent"];function ON(e,t,n,r,s,o){const i=$("mdicon");return E(),P("div",null,[C(Jt,{name:"fade"},{default:A(()=>[n.show?(E(),P("div",cN,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",dN,[l("div",mN,[l("div",fN,[l("p",pN,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_playlist&&o.open_playlist(...a)),textContent:g(n.playlist.name)},null,8,hN)]),l("div",_N,[l("p",null,[gN,l("span",{class:"title is-6",textContent:g(n.playlist.path)},null,8,yN)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.playlist.type"))},null,8,vN),l("span",{class:"title is-6",textContent:g(n.playlist.type)},null,8,bN)]),n.playlist.folder?Y("",!0):(E(),P("p",wN,[l("span",{class:"heading",textContent:g(e.$t("dialog.playlist.track-count"))},null,8,CN),l("span",{class:"title is-6",textContent:g(n.playlist.item_count)},null,8,zN)]))])]),n.playlist.folder?Y("",!0):(E(),P("footer",xN,[l("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add&&o.queue_add(...a))},[l("span",kN,[C(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.playlist.add"))},null,8,EN)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[l("span",SN,[C(i,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.playlist.add-next"))},null,8,$N)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.play&&o.play(...a))},[l("span",AN,[C(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.playlist.play"))},null,8,TN)])]))])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var x1=pe(uN,[["render",ON]]);const PN={name:"ListPlaylists",components:{ModalDialogPlaylist:x1},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"}}},DN=["playlist","onClick"],FN={class:"media-left fd-has-action"},IN={class:"icon"},RN={class:"media-content fd-has-action is-clipped"},LN=["textContent"],NN={class:"media-right"},MN=["onClick"],VN={class:"icon has-text-dark"};function BN(e,t,n,r,s,o){const i=$("mdicon"),a=$("modal-dialog-playlist");return E(),P(He,null,[(E(!0),P(He,null,Et(n.playlists,u=>(E(),P("div",{key:u.itemId,class:"media",playlist:u,onClick:c=>o.open_playlist(u.item)},[l("figure",FN,[l("span",IN,[C(i,{name:o.icon_name(u.item),size:"16"},null,8,["name"])])]),l("div",RN,[l("h1",{class:"title is-6",textContent:g(u.item.name)},null,8,LN)]),l("div",NN,[l("a",{onClick:gt(c=>o.open_dialog(u.item),["prevent","stop"])},[l("span",VN,[C(i,{name:"dots-vertical",size:"16"})])],8,MN)])],8,DN))),128)),(E(),ke(ds,{to:"#app"},[C(a,{show:s.show_details_modal,playlist:s.selected_playlist,onClose:t[0]||(t[0]=u=>s.show_details_modal=!1)},null,8,["show","playlist"])]))],64)}var Gm=pe(PN,[["render",BN]]);const Ga={load:function(e){return Promise.all([q.library_playlist(e.params.playlist_id),q.library_playlist_folder(e.params.playlist_id)])},set:function(e,t){e.playlist=t[0].data,e.playlists_list=new Ie(t[1].data)}},UN={name:"PagePlaylists",components:{ContentWithHeading:mt,ListPlaylists:Gm},beforeRouteEnter(e,t,n){Ga.load(e).then(r=>{n(s=>Ga.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Ga.load(e).then(s=>{Ga.set(r,s),n()})},data(){return{playlist:{},playlists_list:new Ie}},computed:{radio_playlists(){return this.$store.state.config.radio_playlists},playlists(){return this.playlists_list.group(w1(),[e=>e.folder||this.radio_playlists||e.stream_count===0||e.item_count>e.stream_count]),this.playlists_list}}},jN=["textContent"],HN=["textContent"];function qN(e,t,n,r,s,o){const i=$("list-playlists"),a=$("content-with-heading");return E(),ke(a,null,{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(s.playlist.name)},null,8,jN),l("p",{class:"heading",textContent:g(e.$t("page.playlists.count",{count:o.playlists.count}))},null,8,HN)]),content:A(()=>[C(i,{playlists:o.playlists},null,8,["playlists"])]),_:1})}var WN=pe(UN,[["render",qN]]);const Ka={load:function(e){return Promise.all([q.library_playlist(e.params.playlist_id),q.library_playlist_tracks(e.params.playlist_id)])},set:function(e,t){e.playlist=t[0].data,e.tracks=new Ie(t[1].data)}},GN={name:"PagePlaylist",components:{ContentWithHeading:mt,ListTracks:Nn,ModalDialogPlaylist:x1},beforeRouteEnter(e,t,n){Ka.load(e).then(r=>{n(s=>Ka.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Ka.load(e).then(s=>{Ka.set(r,s),n()})},data(){return{playlist:{},tracks:new Ie,show_playlist_details_modal:!1}},computed:{uris(){return this.playlist.random?this.tracks.map(e=>e.uri).join(","):this.playlist.uri}},methods:{play:function(){q.player_play_uri(this.uris,!0)}}},KN=["textContent"],ZN={class:"buttons is-centered"},YN={class:"icon"},JN={class:"icon"},XN=["textContent"],QN=["textContent"];function eM(e,t,n,r,s,o){const i=$("mdicon"),a=$("list-tracks"),u=$("modal-dialog-playlist"),c=$("content-with-heading");return E(),ke(c,null,{"heading-left":A(()=>[l("div",{class:"title is-4",textContent:g(s.playlist.name)},null,8,KN)]),"heading-right":A(()=>[l("div",ZN,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>s.show_playlist_details_modal=!0)},[l("span",YN,[C(i,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>o.play&&o.play(...d))},[l("span",JN,[C(i,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.playlist.shuffle"))},null,8,XN)])])]),content:A(()=>[l("p",{class:"heading has-text-centered-mobile",textContent:g(e.$t("page.playlist.track-count",{count:s.tracks.count}))},null,8,QN),C(a,{tracks:s.tracks,uris:o.uris},null,8,["tracks","uris"]),C(u,{show:s.show_playlist_details_modal,playlist:s.playlist,uris:o.uris,onClose:t[2]||(t[2]=d=>s.show_playlist_details_modal=!1)},null,8,["show","playlist","uris"])]),_:1})}var tM=pe(GN,[["render",eM]]);const nM={name:"ModalDialogDirectory",props:["show","directory"],emits:["close"],methods:{play:function(){this.$emit("close"),q.player_play_expression('path starts with "'+this.directory.path+'" order by path asc',!1)},queue_add:function(){this.$emit("close"),q.queue_expression_add('path starts with "'+this.directory.path+'" order by path asc')},queue_add_next:function(){this.$emit("close"),q.queue_expression_add_next('path starts with "'+this.directory.path+'" order by path asc')}}},rM={key:0,class:"modal is-active"},sM={class:"modal-content fd-modal-card"},oM={class:"card"},iM={class:"card-content"},aM=["textContent"],lM={class:"card-footer"},uM={class:"icon"},cM=["textContent"],dM={class:"icon"},mM=["textContent"],fM={class:"icon"},pM=["textContent"];function hM(e,t,n,r,s,o){const i=$("mdicon");return E(),P("div",null,[C(Jt,{name:"fade"},{default:A(()=>[n.show?(E(),P("div",rM,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",sM,[l("div",oM,[l("div",iM,[l("p",{class:"title is-4",textContent:g(n.directory.path)},null,8,aM)]),l("footer",lM,[l("a",{class:"card-footer-item has-text-dark",onClick:t[1]||(t[1]=(...a)=>o.queue_add&&o.queue_add(...a))},[l("span",uM,[C(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.directory.add"))},null,8,cM)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[l("span",dM,[C(i,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.directory.add-next"))},null,8,mM)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.play&&o.play(...a))},[l("span",fM,[C(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.directory.play"))},null,8,pM)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[4]||(t[4]=a=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var k1=pe(nM,[["render",hM]]);const _M={name:"ListDirectories",components:{ModalDialogDirectory:k1},props:["directories"],data(){return{show_details_modal:!1,selected_directory:{}}},computed:{current_directory(){return this.$route.query&&this.$route.query.directory?this.$route.query.directory:"/"}},methods:{open_parent_directory:function(){this.current_directory.slice(0,this.current_directory.lastIndexOf("/"))===""||this.$store.state.config.directories.includes(this.current_directory)?this.$router.push({path:"/files"}):this.$router.push({path:"/files",query:{directory:this.current_directory.slice(0,this.current_directory.lastIndexOf("/"))}})},open_directory:function(e){this.$router.push({path:"/files",query:{directory:e.path}})},open_dialog:function(e){this.selected_directory=e,this.show_details_modal=!0}}},gM={class:"media-left fd-has-action"},yM={class:"icon"},vM=l("div",{class:"media-content fd-has-action is-clipped"},[l("h1",{class:"title is-6"},"..")],-1),bM={class:"media-right"},wM=["onClick"],CM={class:"media-left fd-has-action"},zM={class:"icon"},xM={class:"media-content fd-has-action is-clipped"},kM=["textContent"],EM=["textContent"],SM={class:"media-right"},$M=["onClick"],AM={class:"icon has-text-dark"};function TM(e,t,n,r,s,o){const i=$("mdicon"),a=$("modal-dialog-directory");return E(),P(He,null,[e.$route.query.directory?(E(),P("div",{key:0,class:"media",onClick:t[0]||(t[0]=u=>o.open_parent_directory())},[l("figure",gM,[l("span",yM,[C(i,{name:"subdirectory-arrow-left",size:"16"})])]),vM,l("div",bM,[vt(e.$slots,"actions")])])):Y("",!0),(E(!0),P(He,null,Et(n.directories,u=>(E(),P("div",{key:u.path,class:"media",onClick:c=>o.open_directory(u)},[l("figure",CM,[l("span",zM,[C(i,{name:"folder",size:"16"})])]),l("div",xM,[l("h1",{class:"title is-6",textContent:g(u.path.substring(u.path.lastIndexOf("/")+1))},null,8,kM),l("h2",{class:"subtitle is-7 has-text-grey-light",textContent:g(u.path)},null,8,EM)]),l("div",SM,[l("a",{onClick:gt(c=>o.open_dialog(u),["prevent","stop"])},[l("span",AM,[C(i,{name:"dots-vertical",size:"16"})])],8,$M)])],8,wM))),128)),(E(),ke(ds,{to:"#app"},[C(a,{show:s.show_details_modal,directory:s.selected_directory,onClose:t[1]||(t[1]=u=>s.show_details_modal=!1)},null,8,["show","directory"])]))],64)}var OM=pe(_M,[["render",TM]]);const Za={load:function(e){return e.query.directory?q.library_files(e.query.directory):Promise.resolve()},set:function(e,t){t?(e.dirs=t.data.directories,e.playlists=new Ie(t.data.playlists),e.tracks=new Ie(t.data.tracks)):(e.dirs=e.$store.state.config.directories.map(n=>({path:n})),e.playlists=new Ie,e.tracks=new Ie)}},PM={name:"PageFiles",components:{ContentWithHeading:mt,ListDirectories:OM,ListPlaylists:Gm,ListTracks:Nn,ModalDialogDirectory:k1},beforeRouteEnter(e,t,n){Za.load(e).then(r=>{n(s=>Za.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Za.load(e).then(s=>{Za.set(r,s),n()})},data(){return{dirs:[],playlists:new Ie,tracks:new Ie,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(){q.player_play_expression(this.play_expression,!1)}}},DM=["textContent"],FM=["textContent"],IM={class:"buttons is-centered"},RM={class:"icon"},LM={class:"icon"},NM=["textContent"];function MM(e,t,n,r,s,o){const i=$("mdicon"),a=$("list-directories"),u=$("list-playlists"),c=$("list-tracks"),d=$("modal-dialog-directory"),f=$("content-with-heading");return E(),P("div",null,[C(f,null,{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.files.title"))},null,8,DM),l("p",{class:"title is-7 has-text-grey",textContent:g(o.current_directory)},null,8,FM)]),"heading-right":A(()=>[l("div",IM,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=m=>s.show_details_modal=!0)},[l("span",RM,[C(i,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...m)=>o.play&&o.play(...m))},[l("span",LM,[C(i,{name:"play",size:"16"})]),l("span",{textContent:g(e.$t("page.files.play"))},null,8,NM)])])]),content:A(()=>[C(a,{directories:s.dirs},null,8,["directories"]),C(u,{playlists:s.playlists},null,8,["playlists"]),C(c,{tracks:s.tracks,expression:o.play_expression,show_icon:!0},null,8,["tracks","expression"]),C(d,{show:s.show_details_modal,directory:o.current_directory,onClose:t[2]||(t[2]=m=>s.show_details_modal=!1)},null,8,["show","directory"])]),_:1})])}var VM=pe(PM,[["render",MM]]);const Ya={load:function(e){return q.library_radio_streams()},set:function(e,t){e.tracks=new Ie(t.data.tracks)}},BM={name:"PageRadioStreams",components:{ContentWithHeading:mt,ListTracks:Nn},beforeRouteEnter(e,t,n){Ya.load(e).then(r=>{n(s=>Ya.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Ya.load(e).then(s=>{Ya.set(r,s),n()})},data(){return{tracks:new Ie}}},UM=["textContent"],jM=["textContent"];function HM(e,t,n,r,s,o){const i=$("list-tracks"),a=$("content-with-heading");return E(),P("div",null,[C(a,null,{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.radio.title"))},null,8,UM)]),content:A(()=>[l("p",{class:"heading has-text-centered-mobile",textContent:g(e.$t("page.radio.count",{count:s.tracks.total}))},null,8,jM),C(i,{tracks:s.tracks},null,8,["tracks"])]),_:1})])}var qM=pe(BM,[["render",HM]]);const WM={name:"ContentText"},GM={class:"section fd-content py-3"},KM={class:"container"},ZM={class:"columns is-centered"},YM={class:"column is-four-fifths"};function JM(e,t,n,r,s,o){return E(),P("section",GM,[l("div",KM,[l("div",ZM,[l("div",YM,[vt(e.$slots,"content")])])])])}var E1=pe(WM,[["render",JM]]);const XM={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(ad,"/search/library"),this.$router.push({path:this.$store.state.search_path,query:this.route_query})},search_spotify:function(){this.$store.commit(ad,"/search/spotify"),this.$router.push({path:this.$store.state.search_path,query:this.route_query})}}},QM={key:0,class:"section fd-remove-padding-bottom"},e7={class:"container"},t7={class:"columns is-centered"},n7={class:"column is-four-fifths"},r7={class:"tabs is-centered is-small is-toggle is-toggle-rounded"},s7={class:"icon is-small"},o7=["textContent"],i7={class:"icon is-small"},a7=["textContent"];function l7(e,t,n,r,s,o){const i=$("mdicon");return o.spotify_enabled?(E(),P("section",QM,[l("div",e7,[l("div",t7,[l("div",n7,[l("div",r7,[l("ul",null,[l("li",{class:We({"is-active":e.$store.state.search_path==="/search/library"})},[l("a",{onClick:t[0]||(t[0]=(...a)=>o.search_library&&o.search_library(...a))},[l("span",s7,[C(i,{name:"bookshelf",size:"16"})]),l("span",{textContent:g(e.$t("page.search.tabs.library"))},null,8,o7)])],2),l("li",{class:We({"is-active":e.$store.state.search_path==="/search/spotify"})},[l("a",{onClick:t[1]||(t[1]=(...a)=>o.search_spotify&&o.search_spotify(...a))},[l("span",i7,[C(i,{name:"spotify",size:"16"})]),l("span",{textContent:g(e.$t("page.search.tabs.spotify"))},null,8,a7)])],2)])])])])])])):Y("",!0)}var S1=pe(XM,[["render",l7]]);const u7={name:"PageSearch",components:{ContentWithHeading:mt,ContentText:E1,TabsSearch:S1,ListTracks:Nn,ListArtists:jm,ListAlbums:zr,ListPlaylists:Gm,ListComposers:C1},data(){return{search_query:"",tracks:new Ie,artists:new Ie,albums:new Ie,composers:new Ie,playlists:new Ie,audiobooks:new Ie,podcasts:new Ie}},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(zm,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),q.search(t).then(({data:n})=>{this.tracks=new Ie(n.tracks),this.artists=new Ie(n.artists),this.albums=new Ie(n.albums),this.composers=new Ie(n.composers),this.playlists=new Ie(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),q.search(t).then(({data:n})=>{this.audiobooks=new Ie(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),q.search(t).then(({data:n})=>{this.podcasts=new Ie(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}}},c7={class:"section fd-remove-padding-bottom"},d7={class:"container"},m7={class:"columns is-centered"},f7={class:"column is-four-fifths"},p7={class:"field"},h7={class:"control is-expanded has-icons-left"},_7={class:"icon is-left"},g7={class:"help has-text-centered"},y7=["innerHTML"],v7={class:"tags",style:{"margin-top":"16px"}},b7=["onClick","textContent"],w7=["textContent"],C7={key:0,class:"level"},z7={class:"level-item"},x7=["textContent"],k7=["textContent"],E7=["textContent"],S7={key:0,class:"level"},$7={class:"level-item"},A7=["textContent"],T7=["textContent"],O7=["textContent"],P7={key:0,class:"level"},D7={class:"level-item"},F7=["textContent"],I7=["textContent"],R7=["textContent"],L7={key:0,class:"level"},N7={class:"level-item"},M7=["textContent"],V7=["textContent"],B7=["textContent"],U7={key:0,class:"level"},j7={class:"level-item"},H7=["textContent"],q7=["textContent"],W7=["textContent"],G7={key:0,class:"level"},K7={class:"level-item"},Z7=["textContent"],Y7=["textContent"],J7=["textContent"],X7={key:0,class:"level"},Q7={class:"level-item"},e9=["textContent"],t9=["textContent"];function n9(e,t,n,r,s,o){const i=$("mdicon"),a=$("tabs-search"),u=$("list-tracks"),c=$("content-with-heading"),d=$("content-text"),f=$("list-artists"),m=$("list-albums"),p=$("list-composers"),h=$("list-playlists");return E(),P("div",null,[l("section",c7,[l("div",d7,[l("div",m7,[l("div",f7,[l("form",{onSubmit:t[1]||(t[1]=gt((..._)=>o.new_search&&o.new_search(..._),["prevent"]))},[l("div",p7,[l("p",h7,[Pt(l("input",{ref:"search_field","onUpdate:modelValue":t[0]||(t[0]=_=>s.search_query=_),class:"input is-rounded is-shadowless",type:"text",placeholder:"Search",autocomplete:"off"},null,512),[[$n,s.search_query]]),l("span",_7,[C(i,{name:"magnify",size:"16"})])]),l("p",g7,[l("span",{innerHTML:e.$t("page.search.help")},null,8,y7)])])],32),l("div",v7,[(E(!0),P(He,null,Et(o.recent_searches,_=>(E(),P("a",{key:_,class:"tag",onClick:w=>o.open_recent_search(_),textContent:g(_)},null,8,b7))),128))])])])])]),C(a,{query:s.search_query},null,8,["query"]),o.show_tracks&&s.tracks.total?(E(),ke(c,{key:0},{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.search.tracks"))},null,8,w7)]),content:A(()=>[C(u,{tracks:s.tracks},null,8,["tracks"])]),footer:A(()=>[o.show_all_tracks_button?(E(),P("nav",C7,[l("p",z7,[l("a",{class:"button is-light is-small is-rounded",onClick:t[2]||(t[2]=(..._)=>o.open_search_tracks&&o.open_search_tracks(..._)),textContent:g(e.$t("page.search.show-tracks",{count:s.tracks.total.toLocaleString(e.$i18n.locale)}))},null,8,x7)])])):Y("",!0)]),_:1})):Y("",!0),o.show_tracks&&!s.tracks.total?(E(),ke(d,{key:1,class:"mt-6"},{content:A(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.search.no-tracks"))},null,8,k7)])]),_:1})):Y("",!0),o.show_artists&&s.artists.total?(E(),ke(c,{key:2},{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.search.artists"))},null,8,E7)]),content:A(()=>[C(f,{artists:s.artists,hide_group_title:!0},null,8,["artists"])]),footer:A(()=>[o.show_all_artists_button?(E(),P("nav",S7,[l("p",$7,[l("a",{class:"button is-light is-small is-rounded",onClick:t[3]||(t[3]=(..._)=>o.open_search_artists&&o.open_search_artists(..._)),textContent:g(e.$t("page.search.show-artists",{count:s.artists.total.toLocaleString(e.$i18n.locale)}))},null,8,A7)])])):Y("",!0)]),_:1})):Y("",!0),o.show_artists&&!s.artists.total?(E(),ke(d,{key:3},{content:A(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.search.no-artists"))},null,8,T7)])]),_:1})):Y("",!0),o.show_albums&&s.albums.total?(E(),ke(c,{key:4},{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.search.albums"))},null,8,O7)]),content:A(()=>[C(m,{albums:s.albums,hide_group_title:!0},null,8,["albums"])]),footer:A(()=>[o.show_all_albums_button?(E(),P("nav",P7,[l("p",D7,[l("a",{class:"button is-light is-small is-rounded",onClick:t[4]||(t[4]=(..._)=>o.open_search_albums&&o.open_search_albums(..._)),textContent:g(e.$t("page.search.show-albums",{count:s.albums.total.toLocaleString(e.$i18n.locale)}))},null,8,F7)])])):Y("",!0)]),_:1})):Y("",!0),o.show_albums&&!s.albums.total?(E(),ke(d,{key:5},{content:A(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.search.no-albums"))},null,8,I7)])]),_:1})):Y("",!0),o.show_composers&&s.composers.total?(E(),ke(c,{key:6},{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.search.composers"))},null,8,R7)]),content:A(()=>[C(p,{composers:s.composers},null,8,["composers"])]),footer:A(()=>[o.show_all_composers_button?(E(),P("nav",L7,[l("p",N7,[l("a",{class:"button is-light is-small is-rounded",onClick:t[5]||(t[5]=(..._)=>o.open_search_composers&&o.open_search_composers(..._)),textContent:g(e.$t("page.search.show-composers",{count:s.composers.total.toLocaleString(e.$i18n.locale)}))},null,8,M7)])])):Y("",!0)]),_:1})):Y("",!0),o.show_composers&&!s.composers.total?(E(),ke(d,{key:7},{content:A(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.search.no-composers"))},null,8,V7)])]),_:1})):Y("",!0),o.show_playlists&&s.playlists.total?(E(),ke(c,{key:8},{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.search.playlists"))},null,8,B7)]),content:A(()=>[C(h,{playlists:s.playlists},null,8,["playlists"])]),footer:A(()=>[o.show_all_playlists_button?(E(),P("nav",U7,[l("p",j7,[l("a",{class:"button is-light is-small is-rounded",onClick:t[6]||(t[6]=(..._)=>o.open_search_playlists&&o.open_search_playlists(..._)),textContent:g(e.$t("page.search.show-playlists",{count:s.playlists.total.toLocaleString(e.$i18n.locale)}))},null,8,H7)])])):Y("",!0)]),_:1})):Y("",!0),o.show_playlists&&!s.playlists.total?(E(),ke(d,{key:9},{content:A(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.search.no-playlists"))},null,8,q7)])]),_:1})):Y("",!0),o.show_podcasts&&s.podcasts.total?(E(),ke(c,{key:10},{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.search.podcasts"))},null,8,W7)]),content:A(()=>[C(m,{albums:s.podcasts},null,8,["albums"])]),footer:A(()=>[o.show_all_podcasts_button?(E(),P("nav",G7,[l("p",K7,[l("a",{class:"button is-light is-small is-rounded",onClick:t[7]||(t[7]=(..._)=>o.open_search_podcasts&&o.open_search_podcasts(..._)),textContent:g(e.$t("page.search.show-podcasts",{count:s.podcasts.total.toLocaleString(e.$i18n.locale)}))},null,8,Z7)])])):Y("",!0)]),_:1})):Y("",!0),o.show_podcasts&&!s.podcasts.total?(E(),ke(d,{key:11},{content:A(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.search.no-podcasts"))},null,8,Y7)])]),_:1})):Y("",!0),o.show_audiobooks&&s.audiobooks.total?(E(),ke(c,{key:12},{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.search.audiobooks"))},null,8,J7)]),content:A(()=>[C(m,{albums:s.audiobooks},null,8,["albums"])]),footer:A(()=>[o.show_all_audiobooks_button?(E(),P("nav",X7,[l("p",Q7,[l("a",{class:"button is-light is-small is-rounded",onClick:t[8]||(t[8]=(..._)=>o.open_search_audiobooks&&o.open_search_audiobooks(..._)),textContent:g(e.$t("page.search.show-audiobooks",{count:s.audiobooks.total.toLocaleString(e.$i18n.locale)}))},null,8,e9)])])):Y("",!0)]),_:1})):Y("",!0),o.show_audiobooks&&!s.audiobooks.total?(E(),ke(d,{key:13},{content:A(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.search.no-audiobooks"))},null,8,t9)])]),_:1})):Y("",!0)])}var r9=pe(u7,[["render",n9]]);const s9={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(Ki,!0)}}},o9={class:"section"},i9={class:"container"},a9={class:"columns is-centered"},l9={class:"column is-four-fifths has-text-centered-mobile"},u9=["textContent"],c9={class:"section"},d9={class:"container"},m9={class:"columns is-centered"},f9={class:"column is-four-fifths"},p9={class:"content"},h9={class:"level is-mobile"},_9={class:"level-left"},g9={class:"level-item"},y9=["textContent"],v9={class:"level-right"},b9={key:0},w9=["textContent"],C9={key:1},z9=["textContent"],x9={class:"table"},k9=["textContent"],E9=["textContent"],S9=["textContent"],$9=["textContent"],A9=["textContent"],T9=["textContent"],O9=["textContent"],P9=["textContent"],D9=["textContent"],F9={class:"has-text-right"},I9=["textContent"],R9=["textContent"],L9=["textContent"],N9={class:"has-text-right"},M9=["textContent"],V9=["textContent"],B9={class:"section"},U9={class:"container"},j9={class:"columns is-centered"},H9={class:"column is-four-fifths"},q9={class:"content has-text-centered-mobile"},W9=["textContent"],G9=["textContent"],K9=["innerHTML"];function Z9(e,t,n,r,s,o){return E(),P("div",null,[l("section",o9,[l("div",i9,[l("div",a9,[l("div",l9,[l("h1",{class:"title is-4",textContent:g(o.config.library_name)},null,8,u9)])])])]),l("section",c9,[l("div",d9,[l("div",m9,[l("div",f9,[l("div",p9,[l("nav",h9,[l("div",_9,[l("div",g9,[l("h2",{class:"title is-5",textContent:g(e.$t("page.about.library"))},null,8,y9)])]),l("div",v9,[o.library.updating?(E(),P("div",b9,[l("a",{class:"button is-small is-loading",textContent:g(e.$t("page.about.update"))},null,8,w9)])):(E(),P("div",C9,[l("a",{class:"button is-small",onClick:t[0]||(t[0]=i=>o.showUpdateDialog()),textContent:g(e.$t("page.about.update"))},null,8,z9)]))])]),l("table",x9,[l("tbody",null,[l("tr",null,[l("th",{class:"has-text-left",textContent:g(e.$t("page.about.artists"))},null,8,k9),l("td",{class:"has-text-right",textContent:g(e.$filters.number(o.library.artists))},null,8,E9)]),l("tr",null,[l("th",{class:"has-text-left",textContent:g(e.$t("page.about.albums"))},null,8,S9),l("td",{class:"has-text-right",textContent:g(e.$filters.number(o.library.albums))},null,8,$9)]),l("tr",null,[l("th",{class:"has-text-left",textContent:g(e.$t("page.about.tracks"))},null,8,A9),l("td",{class:"has-text-right",textContent:g(e.$filters.number(o.library.songs))},null,8,T9)]),l("tr",null,[l("th",{class:"has-text-left",textContent:g(e.$t("page.about.total-playtime"))},null,8,O9),l("td",{class:"has-text-right",textContent:g(e.$filters.durationInDays(o.library.db_playtime*1e3))},null,8,P9)]),l("tr",null,[l("th",{class:"has-text-left",textContent:g(e.$t("page.about.updated"))},null,8,D9),l("td",F9,[l("span",{textContent:g(e.$t("page.about.updated-on",{time:e.$filters.timeFromNow(o.library.updated_at)}))},null,8,I9),wt(" ("),l("span",{class:"has-text-grey",textContent:g(e.$filters.datetime(o.library.updated_at))},null,8,R9),wt(") ")])]),l("tr",null,[l("th",{class:"has-text-left",textContent:g(e.$t("page.about.uptime"))},null,8,L9),l("td",N9,[l("span",{textContent:g(e.$filters.timeFromNow(o.library.started_at,!0))},null,8,M9),wt(" ("),l("span",{class:"has-text-grey",textContent:g(e.$filters.datetime(o.library.started_at))},null,8,V9),wt(") ")])])])])])])])])]),l("section",B9,[l("div",U9,[l("div",j9,[l("div",H9,[l("div",q9,[l("p",{class:"is-size-7",textContent:g(e.$t("page.about.version",{version:o.config.version}))},null,8,W9),l("p",{class:"is-size-7",textContent:g(e.$t("page.about.compiled-with",{options:o.config.buildoptions.join(", ")}))},null,8,G9),l("p",{class:"is-size-7",innerHTML:e.$t("page.about.built-with")},null,8,K9)])])])])])])}var Y9=pe(s9,[["render",Z9]]);const J9={name:"SpotifyListItemAlbum",props:["album"]},X9={class:"media"},Q9={key:0,class:"media-left fd-has-action"},eV={class:"media-content fd-has-action is-clipped"},tV=["textContent"],nV={class:"subtitle is-7 has-text-grey"},rV=["textContent"],sV=["textContent"],oV={class:"media-right"};function iV(e,t,n,r,s,o){return E(),P("div",X9,[e.$slots.artwork?(E(),P("div",Q9,[vt(e.$slots,"artwork")])):Y("",!0),l("div",eV,[l("h1",{class:"title is-6",textContent:g(n.album.name)},null,8,tV),l("h2",nV,[l("b",{textContent:g(n.album.artists[0].name)},null,8,rV)]),l("h2",{class:"subtitle is-7 has-text-grey has-text-weight-normal",textContent:g([n.album.album_type,e.$filters.date(n.album.release_date)].join(", "))},null,8,sV)]),l("div",oV,[vt(e.$slots,"actions")])])}var Eu=pe(J9,[["render",iV]]);const aV={name:"SpotifyListItemPlaylist",props:["playlist"],methods:{open_playlist:function(){this.$router.push({path:"/music/spotify/playlists/"+this.playlist.id})}}},lV={class:"media"},uV=["textContent"],cV=["textContent"],dV={class:"media-right"};function mV(e,t,n,r,s,o){return E(),P("div",lV,[l("div",{class:"media-content fd-has-action is-clipped",onClick:t[0]||(t[0]=(...i)=>o.open_playlist&&o.open_playlist(...i))},[l("h1",{class:"title is-6",textContent:g(n.playlist.name)},null,8,uV),l("h2",{class:"subtitle is-7",textContent:g(n.playlist.owner.display_name)},null,8,cV)]),l("div",dV,[vt(e.$slots,"actions")])])}var Km=pe(aV,[["render",mV]]);const fV={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"),q.player_play_uri(this.album.uri,!1)},queue_add:function(){this.$emit("close"),q.queue_add(this.album.uri)},queue_add_next:function(){this.$emit("close"),q.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}}},pV={key:0,class:"modal is-active"},hV={class:"modal-content fd-modal-card"},_V={class:"card"},gV={class:"card-content"},yV={class:"image is-square fd-has-margin-bottom"},vV=["src"],bV={class:"title is-4"},wV=["textContent"],CV={class:"content is-small"},zV=["textContent"],xV=["textContent"],kV=["textContent"],EV=["textContent"],SV=["textContent"],$V=["textContent"],AV={class:"card-footer"},TV={class:"icon"},OV=["textContent"],PV={class:"icon"},DV=["textContent"],FV={class:"icon"},IV=["textContent"];function RV(e,t,n,r,s,o){const i=$("mdicon");return E(),P("div",null,[C(Jt,{name:"fade"},{default:A(()=>[n.show?(E(),P("div",pV,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",hV,[l("div",_V,[l("div",gV,[Pt(l("figure",yV,[l("img",{src:o.artwork_url,class:"fd-has-shadow",onLoad:t[1]||(t[1]=(...a)=>o.artwork_loaded&&o.artwork_loaded(...a)),onError:t[2]||(t[2]=(...a)=>o.artwork_error&&o.artwork_error(...a))},null,40,vV)],512),[[yo,s.artwork_visible]]),l("p",bV,[l("a",{class:"has-text-link",onClick:t[3]||(t[3]=(...a)=>o.open_album&&o.open_album(...a)),textContent:g(n.album.name)},null,8,wV)]),l("div",CV,[l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.album.album-artist"))},null,8,zV),l("a",{class:"title is-6 has-text-link",onClick:t[4]||(t[4]=(...a)=>o.open_artist&&o.open_artist(...a)),textContent:g(n.album.artists[0].name)},null,8,xV)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.album.release-date"))},null,8,kV),l("span",{class:"title is-6",textContent:g(e.$filters.date(n.album.release_date))},null,8,EV)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.album.type"))},null,8,SV),l("span",{class:"title is-6",textContent:g(n.album.album_type)},null,8,$V)])])]),l("footer",AV,[l("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...a)=>o.queue_add&&o.queue_add(...a))},[l("span",TV,[C(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.album.add"))},null,8,OV)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[l("span",PV,[C(i,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.album.add-next"))},null,8,DV)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[7]||(t[7]=(...a)=>o.play&&o.play(...a))},[l("span",FV,[C(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.album.play"))},null,8,IV)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[8]||(t[8]=a=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var Qi=pe(fV,[["render",RV]]);const LV={name:"SpotifyModalDialogPlaylist",props:["show","playlist"],emits:["close"],methods:{play:function(){this.$emit("close"),q.player_play_uri(this.playlist.uri,!1)},queue_add:function(){this.$emit("close"),q.queue_add(this.playlist.uri)},queue_add_next:function(){this.$emit("close"),q.queue_add_next(this.playlist.uri)},open_playlist:function(){this.$router.push({path:"/music/spotify/playlists/"+this.playlist.id})}}},NV={key:0,class:"modal is-active"},MV={class:"modal-content fd-modal-card"},VV={class:"card"},BV={class:"card-content"},UV={class:"title is-4"},jV=["textContent"],HV={class:"content is-small"},qV=["textContent"],WV=["textContent"],GV=["textContent"],KV=["textContent"],ZV=["textContent"],YV=["textContent"],JV={class:"card-footer"},XV={class:"icon"},QV=["textContent"],eB={class:"icon"},tB=["textContent"],nB={class:"icon"},rB=["textContent"];function sB(e,t,n,r,s,o){const i=$("mdicon");return E(),P("div",null,[C(Jt,{name:"fade"},{default:A(()=>[n.show?(E(),P("div",NV,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",MV,[l("div",VV,[l("div",BV,[l("p",UV,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_playlist&&o.open_playlist(...a)),textContent:g(n.playlist.name)},null,8,jV)]),l("div",HV,[l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.playlist.owner"))},null,8,qV),l("span",{class:"title is-6",textContent:g(n.playlist.owner.display_name)},null,8,WV)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.playlist.tracks"))},null,8,GV),l("span",{class:"title is-6",textContent:g(n.playlist.tracks.total)},null,8,KV)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.playlist.path"))},null,8,ZV),l("span",{class:"title is-6",textContent:g(n.playlist.uri)},null,8,YV)])])]),l("footer",JV,[l("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add&&o.queue_add(...a))},[l("span",XV,[C(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.playlist.add"))},null,8,QV)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[l("span",eB,[C(i,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.playlist.add-next"))},null,8,tB)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.play&&o.play(...a))},[l("span",nB,[C(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.playlist.play"))},null,8,rB)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var Su=pe(LV,[["render",sB]]);const Ja={load:function(e){if(at.state.spotify_new_releases.length>0&&at.state.spotify_featured_playlists.length>0)return Promise.resolve();const t=new cr;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(wm,t[0].albums.items),at.commit(Cm,t[1].playlists.items))}},oB={name:"SpotifyPageBrowse",components:{ContentWithHeading:mt,TabsMusic:Cr,SpotifyListItemAlbum:Eu,SpotifyListItemPlaylist:Km,SpotifyModalDialogAlbum:Qi,SpotifyModalDialogPlaylist:Su,CoverArtwork:Vr},beforeRouteEnter(e,t,n){Ja.load(e).then(r=>{n(s=>Ja.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Ja.load(e).then(s=>{Ja.set(r,s),n()})},data(){return{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:""}}},iB={class:"fd-page-with-tabs"},aB=["textContent"],lB={class:"image is-64x64 fd-has-shadow fd-has-action"},uB=["onClick"],cB={class:"icon has-text-dark"},dB={class:"level"},mB={class:"level-item"},fB=["textContent"],pB=["onClick"],hB={class:"icon has-text-dark"},_B={class:"level"},gB={class:"level-item"};function yB(e,t,n,r,s,o){const i=$("tabs-music"),a=$("cover-artwork"),u=$("mdicon"),c=$("spotify-list-item-album"),d=$("spotify-modal-dialog-album"),f=$("router-link"),m=$("content-with-heading"),p=$("spotify-list-item-playlist"),h=$("spotify-modal-dialog-playlist");return E(),P("div",iB,[C(i),C(m,null,{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.spotify.browse.new-releases"))},null,8,aB)]),content:A(()=>[(E(!0),P(He,null,Et(o.new_releases,_=>(E(),ke(c,{key:_.id,album:_,onClick:w=>o.open_album(_)},Gi({actions:A(()=>[l("a",{onClick:gt(w=>o.open_album_dialog(_),["prevent","stop"])},[l("span",cB,[C(u,{name:"dots-vertical",size:"16"})])],8,uB)]),_:2},[o.is_visible_artwork?{name:"artwork",fn:A(()=>[l("p",lB,[C(a,{artwork_url:o.artwork_url(_),artist:_.artist,album:_.name,maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])])]),key:"0"}:void 0]),1032,["album","onClick"]))),128)),C(d,{show:s.show_album_details_modal,album:s.selected_album,onClose:t[0]||(t[0]=_=>s.show_album_details_modal=!1)},null,8,["show","album"])]),footer:A(()=>[l("nav",dB,[l("p",mB,[C(f,{to:"/music/spotify/new-releases",class:"button is-light is-small is-rounded"},{default:A(()=>[wt(g(e.$t("page.spotify.browse.show-more")),1)]),_:1})])])]),_:1}),C(m,null,{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.spotify.browse.featured-playlists"))},null,8,fB)]),content:A(()=>[(E(!0),P(He,null,Et(o.featured_playlists,_=>(E(),ke(p,{key:_.id,playlist:_},{actions:A(()=>[l("a",{onClick:gt(w=>o.open_playlist_dialog(_),["prevent","stop"])},[l("span",hB,[C(u,{name:"dots-vertical",size:"16"})])],8,pB)]),_:2},1032,["playlist"]))),128)),C(h,{show:s.show_playlist_details_modal,playlist:s.selected_playlist,onClose:t[1]||(t[1]=_=>s.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),footer:A(()=>[l("nav",_B,[l("p",gB,[C(f,{to:"/music/spotify/featured-playlists",class:"button is-light is-small is-rounded"},{default:A(()=>[wt(g(e.$t("page.spotify.browse.show-more")),1)]),_:1})])])]),_:1})])}var vB=pe(oB,[["render",yB]]);const Xa={load:function(e){if(at.state.spotify_new_releases.length>0)return Promise.resolve();const t=new cr;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(wm,t.albums.items)}},bB={name:"SpotifyPageBrowseNewReleases",components:{ContentWithHeading:mt,TabsMusic:Cr,SpotifyListItemAlbum:Eu,SpotifyModalDialogAlbum:Qi,CoverArtwork:Vr},beforeRouteEnter(e,t,n){Xa.load(e).then(r=>{n(s=>Xa.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Xa.load(e).then(s=>{Xa.set(r,s),n()})},data(){return{show_album_details_modal:!1,selected_album:{}}},computed:{new_releases(){return this.$store.state.spotify_new_releases},is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value}},methods:{open_album:function(e){this.$router.push({path:"/music/spotify/albums/"+e.id})},open_album_dialog:function(e){this.selected_album=e,this.show_album_details_modal=!0},artwork_url:function(e){return e.images&&e.images.length>0?e.images[0].url:""}}},wB={class:"fd-page-with-tabs"},CB=l("p",{class:"title is-4"},"New Releases",-1),zB={class:"image is-64x64 fd-has-shadow fd-has-action"},xB=["onClick"],kB={class:"icon has-text-dark"};function EB(e,t,n,r,s,o){const i=$("tabs-music"),a=$("cover-artwork"),u=$("mdicon"),c=$("spotify-list-item-album"),d=$("spotify-modal-dialog-album"),f=$("content-with-heading");return E(),P("div",wB,[C(i),C(f,null,{"heading-left":A(()=>[CB]),content:A(()=>[(E(!0),P(He,null,Et(o.new_releases,m=>(E(),ke(c,{key:m.id,album:m,onClick:p=>o.open_album(m)},Gi({actions:A(()=>[l("a",{onClick:gt(p=>o.open_album_dialog(m),["prevent","stop"])},[l("span",kB,[C(u,{name:"dots-vertical",size:"16"})])],8,xB)]),_:2},[o.is_visible_artwork?{name:"artwork",fn:A(()=>[l("p",zB,[C(a,{artwork_url:o.artwork_url(m),artist:m.artist,album:m.name,maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])])]),key:"0"}:void 0]),1032,["album","onClick"]))),128)),C(d,{show:s.show_album_details_modal,album:s.selected_album,onClose:t[0]||(t[0]=m=>s.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})])}var SB=pe(bB,[["render",EB]]);const Qa={load:function(e){if(at.state.spotify_featured_playlists.length>0)return Promise.resolve();const t=new cr;t.setAccessToken(at.state.spotify.webapi_token),t.getFeaturedPlaylists({country:at.state.spotify.webapi_country,limit:50})},set:function(e,t){t&&at.commit(Cm,t.playlists.items)}},$B={name:"SpotifyPageBrowseFeaturedPlaylists",components:{ContentWithHeading:mt,TabsMusic:Cr,SpotifyListItemPlaylist:Km,SpotifyModalDialogPlaylist:Su},beforeRouteEnter(e,t,n){Qa.load(e).then(r=>{n(s=>Qa.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Qa.load(e).then(s=>{Qa.set(r,s),n()})},data(){return{show_playlist_details_modal:!1,selected_playlist:{}}},computed:{featured_playlists(){return this.$store.state.spotify_featured_playlists}},methods:{open_playlist_dialog:function(e){this.selected_playlist=e,this.show_playlist_details_modal=!0}}},AB={class:"fd-page-with-tabs"},TB=l("p",{class:"title is-4"},"Featured Playlists",-1),OB=["onClick"],PB={class:"icon has-text-dark"};function DB(e,t,n,r,s,o){const i=$("tabs-music"),a=$("mdicon"),u=$("spotify-list-item-playlist"),c=$("spotify-modal-dialog-playlist"),d=$("content-with-heading");return E(),P("div",AB,[C(i),C(d,null,{"heading-left":A(()=>[TB]),content:A(()=>[(E(!0),P(He,null,Et(o.featured_playlists,f=>(E(),ke(u,{key:f.id,playlist:f},{actions:A(()=>[l("a",{onClick:gt(m=>o.open_playlist_dialog(f),["prevent","stop"])},[l("span",PB,[C(a,{name:"dots-vertical",size:"16"})])],8,OB)]),_:2},1032,["playlist"]))),128)),C(c,{show:s.show_playlist_details_modal,playlist:s.selected_playlist,onClose:t[0]||(t[0]=f=>s.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),_:1})])}var FB=pe($B,[["render",DB]]);const IB={name:"SpotifyModalDialogArtist",props:["show","artist"],emits:["close"],methods:{play:function(){this.$emit("close"),q.player_play_uri(this.artist.uri,!1)},queue_add:function(){this.$emit("close"),q.queue_add(this.artist.uri)},queue_add_next:function(){this.$emit("close"),q.queue_add_next(this.artist.uri)},open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.artist.id})}}},RB={key:0,class:"modal is-active"},LB={class:"modal-content fd-modal-card"},NB={class:"card"},MB={class:"card-content"},VB={class:"title is-4"},BB=["textContent"],UB={class:"content is-small"},jB=["textContent"],HB=["textContent"],qB=["textContent"],WB=["textContent"],GB={class:"card-footer"},KB={class:"icon"},ZB=["textContent"],YB={class:"icon"},JB=["textContent"],XB={class:"icon"},QB=["textContent"];function eU(e,t,n,r,s,o){const i=$("mdicon");return E(),P("div",null,[C(Jt,{name:"fade"},{default:A(()=>[n.show?(E(),P("div",RB,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",LB,[l("div",NB,[l("div",MB,[l("p",VB,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_artist&&o.open_artist(...a)),textContent:g(n.artist.name)},null,8,BB)]),l("div",UB,[l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.artist.popularity"))},null,8,jB),l("span",{class:"title is-6",textContent:g([n.artist.popularity,n.artist.followers.total].join(" / "))},null,8,HB)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.artist.genres"))},null,8,qB),l("span",{class:"title is-6",textContent:g(n.artist.genres.join(", "))},null,8,WB)])])]),l("footer",GB,[l("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add&&o.queue_add(...a))},[l("span",KB,[C(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.artist.add"))},null,8,ZB)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[l("span",YB,[C(i,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.artist.add-next"))},null,8,JB)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.play&&o.play(...a))},[l("span",XB,[C(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.artist.play"))},null,8,QB)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var $1=pe(IB,[["render",eU]]);function tU(e){return e.scrollHeight}function nU(e){return e.scrollWidth}function rU(e,t){e.scrollTop=e.scrollHeight-t+e.scrollTop}function sU(e,t){e.scrollLeft=e.scrollWidth-t+e.scrollLeft}const oU=l("div",{class:"loading"},"Loading...",-1),iU=l("div",{class:"no-more"},"No more.",-1),aU=l("div",{class:"no-results"},"No results.",-1),lU=l("div",{class:"error"},"Error.",-1),Zm=Ao({__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}},emits:["update:isInitial"],setup(e,{emit:t}){const n=e,r=Qt();let s=Qt("loading"),o=Qt(n.isInitial);const i=typeof process<"u"&&process.env!==void 0&&!0;let a=0;function u(){Hi(()=>{var z,S;n.position==="top"?rU((z=n.container)!=null?z:document.documentElement,a):n.position==="left"&&sU((S=n.container)!=null?S:document.documentElement,a)})}function c(z,S){return z===0?o.value?(f(),"no-results"):(d(),"no-more"):z!==void 0&&S!==void 0&&z<S?(d(),"no-more"):(o.value=!1,u(),v(),"loading")}function d(){o.value=!1,_("no-more"),u()}function f(){o.value=!1,_("no-results"),u()}function m(){o.value=!1,_("error"),u()}function p(){o.value=!0,_("loading"),v()}function h(){_("loading"),v()}function _(z){s.value=z}function w(){r.value&&k.unobserve(r.value)}function v(){r.value&&k.observe(r.value)}function b(){return new IntersectionObserver(([z])=>{var S,T;z.isIntersecting&&(n.position==="top"?a=tU((S=n.container)!=null?S:document.documentElement):n.position==="left"&&(a=nU((T=n.container)!=null?T:document.documentElement)),w(),n.load({loaded:c,noMore:d,noResults:f,error:m},{isFirstLoad:o.value}))},{root:n.container,threshold:0,rootMargin:n.margin})}let k;return typeof IntersectionObserver<"u"&&j_(()=>{k&&w(),k=b(),v()},{flush:"post"}),kt(()=>n.isInitial,z=>{z&&p()}),kt(o,z=>{z||t("update:isInitial",!1)}),(z,S)=>xn(i)?Y("",!0):(E(),P("div",{key:0,class:"vue-eternal-loading",ref_key:"rootRef",ref:r},[xn(s)==="loading"?vt(z.$slots,"loading",Jo(ks({key:0},{isFirstLoad:xn(o)})),()=>[oU]):xn(s)==="no-more"?vt(z.$slots,"no-more",Jo(ks({key:1},{retry:h})),()=>[iU]):xn(s)==="no-results"?vt(z.$slots,"no-results",Jo(ks({key:2},{retry:h})),()=>[aU]):xn(s)==="error"?vt(z.$slots,"error",Jo(ks({key:3},{retry:h})),()=>[lU]):Y("",!0)],512))}}),Sd=50,el={load:function(e){const t=new cr;return t.setAccessToken(at.state.spotify.webapi_token),Promise.all([t.getArtist(e.params.artist_id),t.getArtistAlbums(e.params.artist_id,{limit:Sd,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])}},uU={name:"SpotifyPageArtist",components:{ContentWithHeading:mt,SpotifyListItemAlbum:Eu,SpotifyModalDialogAlbum:Qi,SpotifyModalDialogArtist:$1,VueEternalLoading:Zm,CoverArtwork:Vr},beforeRouteEnter(e,t,n){el.load(e).then(r=>{n(s=>el.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;el.load(e).then(s=>{el.set(r,s),n()})},data(){return{artist:{},albums:[],total:0,offset:0,show_details_modal:!1,selected_album:{},show_artist_details_modal:!1}},computed:{is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value}},methods:{load_next:function({loaded:e}){const t=new cr;t.setAccessToken(this.$store.state.spotify.webapi_token),t.getArtistAlbums(this.artist.id,{limit:Sd,offset:this.offset,include_groups:"album,single"}).then(n=>{this.append_albums(n),e(n.items.length,Sd)})},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,q.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:""}}},cU=["textContent"],dU={class:"buttons is-centered"},mU={class:"icon"},fU={class:"icon"},pU=["textContent"],hU=["textContent"],_U={class:"image is-64x64 fd-has-shadow fd-has-action"},gU=["onClick"],yU={class:"icon has-text-dark"};function vU(e,t,n,r,s,o){const i=$("mdicon"),a=$("cover-artwork"),u=$("spotify-list-item-album"),c=$("VueEternalLoading"),d=$("spotify-modal-dialog-album"),f=$("spotify-modal-dialog-artist"),m=$("content-with-heading");return E(),ke(m,null,{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(s.artist.name)},null,8,cU)]),"heading-right":A(()=>[l("div",dU,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=p=>s.show_artist_details_modal=!0)},[l("span",mU,[C(i,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...p)=>o.play&&o.play(...p))},[l("span",fU,[C(i,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.spotify.artist.shuffle"))},null,8,pU)])])]),content:A(()=>[l("p",{class:"heading has-text-centered-mobile",textContent:g(e.$t("page.spotify.artist.album-count",{count:s.total}))},null,8,hU),(E(!0),P(He,null,Et(s.albums,p=>(E(),ke(u,{key:p.id,album:p,onClick:h=>o.open_album(p)},Gi({actions:A(()=>[l("a",{onClick:gt(h=>o.open_dialog(p),["prevent","stop"])},[l("span",yU,[C(i,{name:"dots-vertical",size:"16"})])],8,gU)]),_:2},[o.is_visible_artwork?{name:"artwork",fn:A(()=>[l("p",_U,[C(a,{artwork_url:o.artwork_url(p),artist:p.artist,album:p.name,maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])])]),key:"0"}:void 0]),1032,["album","onClick"]))),128)),s.offset<s.total?(E(),ke(c,{key:0,load:o.load_next},{"no-more":A(()=>[wt(" . ")]),_:1},8,["load"])):Y("",!0),C(d,{show:s.show_details_modal,album:s.selected_album,onClose:t[2]||(t[2]=p=>s.show_details_modal=!1)},null,8,["show","album"]),C(f,{show:s.show_artist_details_modal,artist:s.artist,onClose:t[3]||(t[3]=p=>s.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})}var bU=pe(uU,[["render",vU]]);const wU={name:"SpotifyListItemTrack",props:["track","position","album","context_uri"],methods:{play:function(){q.player_play_uri(this.context_uri,!1,this.position)}}},CU={class:"media"},zU=["textContent"],xU=["textContent"],kU={key:0,class:"subtitle is-7"},EU=["textContent"],SU=["textContent"],$U={class:"media-right"};function AU(e,t,n,r,s,o){return E(),P("div",CU,[l("div",{class:"media-content fd-has-action is-clipped",onClick:t[0]||(t[0]=(...i)=>o.play&&o.play(...i))},[l("h1",{class:We(["title is-6",{"has-text-grey-light":n.track.is_playable===!1}]),textContent:g(n.track.name)},null,10,zU),l("h2",{class:We(["subtitle is-7",{"has-text-grey":n.track.is_playable,"has-text-grey-light":n.track.is_playable===!1}])},[l("b",{textContent:g(n.track.artists[0].name)},null,8,xU)],2),n.track.is_playable===!1?(E(),P("h2",kU,[wt(" ("),l("span",{textContent:g(e.$t("list.spotify.not-playable-track"))},null,8,EU),n.track.restrictions&&n.track.restrictions.reason?(E(),P("span",{key:0,textContent:g(e.$t("list.spotify.restriction-reason",{reason:n.track.restrictions.reason}))},null,8,SU)):Y("",!0),wt(") ")])):Y("",!0)]),l("div",$U,[vt(e.$slots,"actions")])])}var Ym=pe(wU,[["render",AU]]);const TU={name:"SpotifyModalDialogTrack",props:["show","track","album"],emits:["close"],methods:{play:function(){this.$emit("close"),q.player_play_uri(this.track.uri,!1)},queue_add:function(){this.$emit("close"),q.queue_add(this.track.uri)},queue_add_next:function(){this.$emit("close"),q.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})}}},OU={key:0,class:"modal is-active"},PU={class:"modal-content fd-modal-card"},DU={class:"card"},FU={class:"card-content"},IU=["textContent"],RU=["textContent"],LU={class:"content is-small"},NU=["textContent"],MU=["textContent"],VU=["textContent"],BU=["textContent"],UU=["textContent"],jU=["textContent"],HU=["textContent"],qU=["textContent"],WU=["textContent"],GU=["textContent"],KU=["textContent"],ZU=["textContent"],YU={class:"card-footer"},JU={class:"icon"},XU=["textContent"],QU={class:"icon"},ej=["textContent"],tj={class:"icon"},nj=["textContent"];function rj(e,t,n,r,s,o){const i=$("mdicon");return E(),P("div",null,[C(Jt,{name:"fade"},{default:A(()=>[n.show?(E(),P("div",OU,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",PU,[l("div",DU,[l("div",FU,[l("p",{class:"title is-4",textContent:g(n.track.name)},null,8,IU),l("p",{class:"subtitle",textContent:g(n.track.artists[0].name)},null,8,RU),l("div",LU,[l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.track.album"))},null,8,NU),l("a",{class:"title is-6 has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_album&&o.open_album(...a)),textContent:g(n.album.name)},null,8,MU)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.track.album-artist"))},null,8,VU),l("a",{class:"title is-6 has-text-link",onClick:t[2]||(t[2]=(...a)=>o.open_artist&&o.open_artist(...a)),textContent:g(n.album.artists[0].name)},null,8,BU)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.track.release-date"))},null,8,UU),l("span",{class:"title is-6",textContent:g(e.$filters.date(n.album.release_date))},null,8,jU)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.track.position"))},null,8,HU),l("span",{class:"title is-6",textContent:g([n.track.disc_number,n.track.track_number].join(" / "))},null,8,qU)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.track.duration"))},null,8,WU),l("span",{class:"title is-6",textContent:g(e.$filters.durationInHours(n.track.duration_ms))},null,8,GU)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.track.path"))},null,8,KU),l("span",{class:"title is-6",textContent:g(n.track.uri)},null,8,ZU)])])]),l("footer",YU,[l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add&&o.queue_add(...a))},[l("span",JU,[C(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.track.add"))},null,8,XU)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[l("span",QU,[C(i,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.track.add-next"))},null,8,ej)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...a)=>o.play&&o.play(...a))},[l("span",tj,[C(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.track.play"))},null,8,nj)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[6]||(t[6]=a=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var Jm=pe(TU,[["render",rj]]);const tl={load:function(e){const t=new cr;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}},sj={name:"PageAlbum",components:{ContentWithHero:Hm,SpotifyListItemTrack:Ym,SpotifyModalDialogTrack:Jm,SpotifyModalDialogAlbum:Qi,CoverArtwork:Vr},beforeRouteEnter(e,t,n){tl.load(e).then(r=>{n(s=>tl.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;tl.load(e).then(s=>{tl.set(r,s),n()})},data(){return{album:{artists:[{}],tracks:{}},show_track_details_modal:!1,selected_track:{},show_album_details_modal:!1}},computed:{artwork_url:function(){return this.album.images&&this.album.images.length>0?this.album.images[0].url:""}},methods:{open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.album.artists[0].id})},play:function(){this.show_details_modal=!1,q.player_play_uri(this.album.uri,!0)},open_track_dialog:function(e){this.selected_track=e,this.show_track_details_modal=!0}}},oj=["textContent"],ij={class:"subtitle is-6 has-text-link has-text-weight-normal"},aj=["textContent"],lj={class:"buttons fd-is-centered-mobile fd-has-margin-top"},uj={class:"icon"},cj=["textContent"],dj={class:"icon"},mj={class:"image is-square fd-has-shadow fd-has-action"},fj=["textContent"],pj=["onClick"],hj={class:"icon has-text-dark"};function _j(e,t,n,r,s,o){const i=$("mdicon"),a=$("cover-artwork"),u=$("spotify-list-item-track"),c=$("spotify-modal-dialog-track"),d=$("spotify-modal-dialog-album"),f=$("content-with-hero");return E(),ke(f,null,{"heading-left":A(()=>[l("h1",{class:"title is-5",textContent:g(s.album.name)},null,8,oj),l("h2",ij,[l("a",{class:"has-text-link",onClick:t[0]||(t[0]=(...m)=>o.open_artist&&o.open_artist(...m)),textContent:g(s.album.artists[0].name)},null,8,aj)]),l("div",lj,[l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...m)=>o.play&&o.play(...m))},[l("span",uj,[C(i,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.spotify.album.shuffle"))},null,8,cj)]),l("a",{class:"button is-small is-light is-rounded",onClick:t[2]||(t[2]=m=>s.show_album_details_modal=!0)},[l("span",dj,[C(i,{name:"dots-horizontal",size:"16"})])])])]),"heading-right":A(()=>[l("p",mj,[C(a,{artwork_url:o.artwork_url,artist:s.album.artist,album:s.album.name,onClick:t[3]||(t[3]=m=>s.show_album_details_modal=!0)},null,8,["artwork_url","artist","album"])])]),content:A(()=>[l("p",{class:"heading is-7 has-text-centered-mobile fd-has-margin-top",textContent:g(e.$t("page.spotify.album.track-count",{count:s.album.tracks.total}))},null,8,fj),(E(!0),P(He,null,Et(s.album.tracks.items,(m,p)=>(E(),ke(u,{key:m.id,track:m,position:p,album:s.album,context_uri:s.album.uri},{actions:A(()=>[l("a",{onClick:gt(h=>o.open_track_dialog(m),["prevent","stop"])},[l("span",hj,[C(i,{name:"dots-vertical",size:"16"})])],8,pj)]),_:2},1032,["track","position","album","context_uri"]))),128)),C(c,{show:s.show_track_details_modal,track:s.selected_track,album:s.album,onClose:t[4]||(t[4]=m=>s.show_track_details_modal=!1)},null,8,["show","track","album"]),C(d,{show:s.show_album_details_modal,album:s.album,onClose:t[5]||(t[5]=m=>s.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})}var gj=pe(sj,[["render",_j]]);const $d=50,nl={load:function(e){const t=new cr;return t.setAccessToken(at.state.spotify.webapi_token),Promise.all([t.getPlaylist(e.params.playlist_id),t.getPlaylistTracks(e.params.playlist_id,{limit:$d,offset:0})])},set:function(e,t){e.playlist=t[0],e.tracks=[],e.total=0,e.offset=0,e.append_tracks(t[1])}},yj={name:"SpotifyPagePlaylist",components:{ContentWithHeading:mt,SpotifyListItemTrack:Ym,SpotifyModalDialogTrack:Jm,SpotifyModalDialogPlaylist:Su,VueEternalLoading:Zm},beforeRouteEnter(e,t,n){nl.load(e).then(r=>{n(s=>nl.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;nl.load(e).then(s=>{nl.set(r,s),n()})},data(){return{playlist:{tracks:{}},tracks:[],total:0,offset:0,show_track_details_modal:!1,selected_track:{},show_playlist_details_modal:!1}},methods:{load_next:function({loaded:e}){const t=new cr;t.setAccessToken(this.$store.state.spotify.webapi_token),t.getPlaylistTracks(this.playlist.id,{limit:$d,offset:this.offset}).then(n=>{this.append_tracks(n),e(n.items.length,$d)})},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,q.player_play_uri(this.playlist.uri,!0)},open_track_dialog:function(e){this.selected_track=e,this.show_track_details_modal=!0}}},vj=["textContent"],bj={class:"buttons is-centered"},wj={class:"icon"},Cj={class:"icon"},zj=["textContent"],xj=["textContent"],kj=["onClick"],Ej={class:"icon has-text-dark"};function Sj(e,t,n,r,s,o){const i=$("mdicon"),a=$("spotify-list-item-track"),u=$("VueEternalLoading"),c=$("spotify-modal-dialog-track"),d=$("spotify-modal-dialog-playlist"),f=$("content-with-heading");return E(),ke(f,null,{"heading-left":A(()=>[l("div",{class:"title is-4",textContent:g(s.playlist.name)},null,8,vj)]),"heading-right":A(()=>[l("div",bj,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=m=>s.show_playlist_details_modal=!0)},[l("span",wj,[C(i,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...m)=>o.play&&o.play(...m))},[l("span",Cj,[C(i,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.spotify.playlist.shuffle"))},null,8,zj)])])]),content:A(()=>[l("p",{class:"heading has-text-centered-mobile",textContent:g(e.$t("page.spotify.playlist.count",{count:s.playlist.tracks.total}))},null,8,xj),(E(!0),P(He,null,Et(s.tracks,(m,p)=>(E(),ke(a,{key:m.track.id,track:m.track,album:m.track.album,position:p,context_uri:s.playlist.uri},{actions:A(()=>[l("a",{onClick:gt(h=>o.open_track_dialog(m.track),["prevent","stop"])},[l("span",Ej,[C(i,{name:"dots-vertical",size:"16"})])],8,kj)]),_:2},1032,["track","album","position","context_uri"]))),128)),s.offset<s.total?(E(),ke(u,{key:0,load:o.load_next},{"no-more":A(()=>[wt(" . ")]),_:1},8,["load"])):Y("",!0),C(c,{show:s.show_track_details_modal,track:s.selected_track,album:s.selected_track.album,onClose:t[2]||(t[2]=m=>s.show_track_details_modal=!1)},null,8,["show","track","album"]),C(d,{show:s.show_playlist_details_modal,playlist:s.playlist,onClose:t[3]||(t[3]=m=>s.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),_:1})}var $j=pe(yj,[["render",Sj]]);const Aj={name:"SpotifyListItemArtist",props:["artist"],methods:{open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.artist.id})}}},Tj={class:"media"},Oj=["textContent"],Pj={class:"media-right"};function Dj(e,t,n,r,s,o){return E(),P("div",Tj,[l("div",{class:"media-content fd-has-action is-clipped",onClick:t[0]||(t[0]=(...i)=>o.open_artist&&o.open_artist(...i))},[l("h1",{class:"title is-6",textContent:g(n.artist.name)},null,8,Oj)]),l("div",Pj,[vt(e.$slots,"actions")])])}var Fj=pe(Aj,[["render",Dj]]);const Wo=50,Ij={name:"SpotifyPageSearch",components:{ContentWithHeading:mt,ContentText:E1,TabsSearch:S1,SpotifyListItemTrack:Ym,SpotifyListItemArtist:Fj,SpotifyListItemAlbum:Eu,SpotifyListItemPlaylist:Km,SpotifyModalDialogTrack:Jm,SpotifyModalDialogArtist:$1,SpotifyModalDialogAlbum:Qi,SpotifyModalDialogPlaylist:Su,VueEternalLoading:Zm,CoverArtwork:Vr},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:Wo,this.search_param.offset=this.query.offset?this.query.offset:0,this.$store.commit(zm,this.query.query),this.search_all()},spotify_search:function(){return q.spotify().then(({data:e})=>{this.search_param.market=e.webapi_country;const t=new cr;t.setAccessToken(e.webapi_token);const n=this.query.type.split(",").filter(r=>this.validSearchTypes.includes(r));return t.search(this.query.query,n,this.search_param)})},search_all:function(){this.spotify_search().then(e=>{this.tracks=e.tracks?e.tracks:{items:[],total:0},this.artists=e.artists?e.artists:{items:[],total:0},this.albums=e.albums?e.albums:{items:[],total:0},this.playlists=e.playlists?e.playlists:{items:[],total:0}})},search_tracks_next:function({loaded:e}){this.spotify_search().then(t=>{this.tracks.items=this.tracks.items.concat(t.tracks.items),this.tracks.total=t.tracks.total,this.search_param.offset+=t.tracks.limit,e(t.tracks.items.length,Wo)})},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,Wo)})},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,Wo)})},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,Wo)})},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:""}}},Rj={class:"section fd-remove-padding-bottom"},Lj={class:"container"},Nj={class:"columns is-centered"},Mj={class:"column is-four-fifths"},Vj={class:"field"},Bj={class:"control is-expanded has-icons-left"},Uj={class:"icon is-left"},jj={class:"tags",style:{"margin-top":"16px"}},Hj=["onClick","textContent"],qj=["textContent"],Wj=["onClick"],Gj={class:"icon has-text-dark"},Kj={key:0,class:"level"},Zj={class:"level-item"},Yj=["textContent"],Jj=["textContent"],Xj=["textContent"],Qj=["onClick"],eH={class:"icon has-text-dark"},tH={key:0,class:"level"},nH={class:"level-item"},rH=["textContent"],sH=["textContent"],oH=["textContent"],iH={class:"image is-64x64 fd-has-shadow fd-has-action"},aH=["onClick"],lH={class:"icon has-text-dark"},uH={key:0,class:"level"},cH={class:"level-item"},dH=["textContent"],mH=["textContent"],fH=["textContent"],pH=["onClick"],hH={class:"icon has-text-dark"},_H={key:0,class:"level"},gH={class:"level-item"},yH=["textContent"],vH=["textContent"];function bH(e,t,n,r,s,o){const i=$("mdicon"),a=$("tabs-search"),u=$("spotify-list-item-track"),c=$("VueEternalLoading"),d=$("spotify-modal-dialog-track"),f=$("content-with-heading"),m=$("content-text"),p=$("spotify-list-item-artist"),h=$("spotify-modal-dialog-artist"),_=$("cover-artwork"),w=$("spotify-list-item-album"),v=$("spotify-modal-dialog-album"),b=$("spotify-list-item-playlist"),k=$("spotify-modal-dialog-playlist");return E(),P("div",null,[l("section",Rj,[l("div",Lj,[l("div",Nj,[l("div",Mj,[l("form",{onSubmit:t[1]||(t[1]=gt((...z)=>o.new_search&&o.new_search(...z),["prevent"]))},[l("div",Vj,[l("p",Bj,[Pt(l("input",{ref:"search_field","onUpdate:modelValue":t[0]||(t[0]=z=>s.search_query=z),class:"input is-rounded is-shadowless",type:"text",placeholder:"Search",autocomplete:"off"},null,512),[[$n,s.search_query]]),l("span",Uj,[C(i,{name:"magnify",size:"16"})])])])],32),l("div",jj,[(E(!0),P(He,null,Et(o.recent_searches,z=>(E(),P("a",{key:z,class:"tag",onClick:S=>o.open_recent_search(z),textContent:g(z)},null,8,Hj))),128))])])])])]),C(a,{query:s.search_query},null,8,["query"]),o.show_tracks&&s.tracks.total?(E(),ke(f,{key:0},{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.spotify.search.tracks"))},null,8,qj)]),content:A(()=>[(E(!0),P(He,null,Et(s.tracks.items,z=>(E(),ke(u,{key:z.id,track:z,album:z.album,position:0,context_uri:z.uri},{actions:A(()=>[l("a",{onClick:gt(S=>o.open_track_dialog(z),["prevent","stop"])},[l("span",Gj,[C(i,{name:"dots-vertical",size:"16"})])],8,Wj)]),_:2},1032,["track","album","context_uri"]))),128)),s.query.type==="track"?(E(),ke(c,{key:0,load:o.search_tracks_next},{"no-more":A(()=>[wt(" . ")]),_:1},8,["load"])):Y("",!0),C(d,{show:s.show_track_details_modal,track:s.selected_track,album:s.selected_track.album,onClose:t[2]||(t[2]=z=>s.show_track_details_modal=!1)},null,8,["show","track","album"])]),footer:A(()=>[o.show_all_tracks_button?(E(),P("nav",Kj,[l("p",Zj,[l("a",{class:"button is-light is-small is-rounded",onClick:t[3]||(t[3]=(...z)=>o.open_search_tracks&&o.open_search_tracks(...z)),textContent:g(e.$t("page.spotify.search.show-all-tracks",{count:s.tracks.total.toLocaleString(e.$i18n.locale)}))},null,8,Yj)])])):Y("",!0)]),_:1})):Y("",!0),o.show_tracks&&!s.tracks.total?(E(),ke(m,{key:1,class:"mt-6"},{content:A(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.spotify.search.no-tracks"))},null,8,Jj)])]),_:1})):Y("",!0),o.show_artists&&s.artists.total?(E(),ke(f,{key:2},{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.spotify.search.artists"))},null,8,Xj)]),content:A(()=>[(E(!0),P(He,null,Et(s.artists.items,z=>(E(),ke(p,{key:z.id,artist:z},{actions:A(()=>[l("a",{onClick:gt(S=>o.open_artist_dialog(z),["prevent","stop"])},[l("span",eH,[C(i,{name:"dots-vertical",size:"16"})])],8,Qj)]),_:2},1032,["artist"]))),128)),s.query.type==="artist"?(E(),ke(c,{key:0,load:o.search_artists_next},{"no-more":A(()=>[wt(" . ")]),_:1},8,["load"])):Y("",!0),C(h,{show:s.show_artist_details_modal,artist:s.selected_artist,onClose:t[4]||(t[4]=z=>s.show_artist_details_modal=!1)},null,8,["show","artist"])]),footer:A(()=>[o.show_all_artists_button?(E(),P("nav",tH,[l("p",nH,[l("a",{class:"button is-light is-small is-rounded",onClick:t[5]||(t[5]=(...z)=>o.open_search_artists&&o.open_search_artists(...z)),textContent:g(e.$t("page.spotify.search.show-all-artists",{count:s.artists.total.toLocaleString(e.$i18n.locale)}))},null,8,rH)])])):Y("",!0)]),_:1})):Y("",!0),o.show_artists&&!s.artists.total?(E(),ke(m,{key:3},{content:A(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.spotify.search.no-artists"))},null,8,sH)])]),_:1})):Y("",!0),o.show_albums&&s.albums.total?(E(),ke(f,{key:4},{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.spotify.search.albums"))},null,8,oH)]),content:A(()=>[(E(!0),P(He,null,Et(s.albums.items,z=>(E(),ke(w,{key:z.id,album:z,onClick:S=>o.open_album(z)},Gi({actions:A(()=>[l("a",{onClick:gt(S=>o.open_album_dialog(z),["prevent","stop"])},[l("span",lH,[C(i,{name:"dots-vertical",size:"16"})])],8,aH)]),_:2},[o.is_visible_artwork?{name:"artwork",fn:A(()=>[l("p",iH,[C(_,{artwork_url:o.artwork_url(z),artist:z.artist,album:z.name,maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])])]),key:"0"}:void 0]),1032,["album","onClick"]))),128)),s.query.type==="album"?(E(),ke(c,{key:0,load:o.search_albums_next},{"no-more":A(()=>[wt(" . ")]),_:1},8,["load"])):Y("",!0),C(v,{show:s.show_album_details_modal,album:s.selected_album,onClose:t[6]||(t[6]=z=>s.show_album_details_modal=!1)},null,8,["show","album"])]),footer:A(()=>[o.show_all_albums_button?(E(),P("nav",uH,[l("p",cH,[l("a",{class:"button is-light is-small is-rounded",onClick:t[7]||(t[7]=(...z)=>o.open_search_albums&&o.open_search_albums(...z)),textContent:g(e.$t("page.spotify.search.show-all-albums",{count:s.albums.total.toLocaleString(e.$i18n.locale)}))},null,8,dH)])])):Y("",!0)]),_:1})):Y("",!0),o.show_albums&&!s.albums.total?(E(),ke(m,{key:5},{content:A(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.spotify.search.no-albums"))},null,8,mH)])]),_:1})):Y("",!0),o.show_playlists&&s.playlists.total?(E(),ke(f,{key:6},{"heading-left":A(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.spotify.search.playlists"))},null,8,fH)]),content:A(()=>[(E(!0),P(He,null,Et(s.playlists.items,z=>(E(),ke(b,{key:z.id,playlist:z},{actions:A(()=>[l("a",{onClick:gt(S=>o.open_playlist_dialog(z),["prevent","stop"])},[l("span",hH,[C(i,{name:"dots-vertical",size:"16"})])],8,pH)]),_:2},1032,["playlist"]))),128)),s.query.type==="playlist"?(E(),ke(c,{key:0,load:o.search_playlists_next},{"no-more":A(()=>[wt(" . ")]),_:1},8,["load"])):Y("",!0),C(k,{show:s.show_playlist_details_modal,playlist:s.selected_playlist,onClose:t[8]||(t[8]=z=>s.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),footer:A(()=>[o.show_all_playlists_button?(E(),P("nav",_H,[l("p",gH,[l("a",{class:"button is-light is-small is-rounded",onClick:t[9]||(t[9]=(...z)=>o.open_search_playlists&&o.open_search_playlists(...z)),textContent:g(e.$t("page.spotify.search.show-all-playlists",{count:s.playlists.total.toLocaleString(e.$i18n.locale)}))},null,8,yH)])])):Y("",!0)]),_:1})):Y("",!0),o.show_playlists&&!s.playlists.total?(E(),ke(m,{key:7},{content:A(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.spotify.search.no-playlists"))},null,8,vH)])]),_:1})):Y("",!0)])}var wH=pe(Ij,[["render",bH]]);const CH={name:"TabsSettings"},zH={class:"section fd-tabs-section"},xH={class:"container"},kH={class:"columns is-centered"},EH={class:"column is-four-fifths"},SH={class:"tabs is-centered is-small"},$H=["onClick","onKeypress"],AH=["textContent"],TH=["onClick","onKeypress"],OH=["textContent"],PH=["onClick","onKeypress"],DH=["textContent"],FH=["onClick","onKeypress"],IH=["textContent"];function RH(e,t,n,r,s,o){const i=$("router-link");return E(),P("section",zH,[l("div",xH,[l("div",kH,[l("div",EH,[l("div",SH,[l("ul",null,[C(i,{to:"/settings/webinterface",custom:""},{default:A(({navigate:a,isActive:u})=>[l("li",{class:We({"is-active":u})},[l("a",{onClick:a,onKeypress:Fn(a,["enter"])},[l("span",{textContent:g(e.$t("page.settings.tabs.general"))},null,8,AH)],40,$H)],2)]),_:1}),C(i,{to:"/settings/remotes-outputs",custom:""},{default:A(({navigate:a,isActive:u})=>[l("li",{class:We({"is-active":u})},[l("a",{onClick:a,onKeypress:Fn(a,["enter"])},[l("span",{textContent:g(e.$t("page.settings.tabs.remotes-and-outputs"))},null,8,OH)],40,TH)],2)]),_:1}),C(i,{to:"/settings/artwork",custom:""},{default:A(({navigate:a,isActive:u})=>[l("li",{class:We({"is-active":u})},[l("a",{onClick:a,onKeypress:Fn(a,["enter"])},[l("span",{textContent:g(e.$t("page.settings.tabs.artwork"))},null,8,DH)],40,PH)],2)]),_:1}),C(i,{to:"/settings/online-services",custom:""},{default:A(({navigate:a,isActive:u})=>[l("li",{class:We({"is-active":u})},[l("a",{onClick:a,onKeypress:Fn(a,["enter"])},[l("span",{textContent:g(e.$t("page.settings.tabs.online-services"))},null,8,IH)],40,FH)],2)]),_:1})])])])])])])}var $u=pe(CH,[["render",RH]]);const LH={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(e===this.value){this.statusUpdate="";return}const t={category:this.category.name,name:this.option_name,value:e};q.settings_update(this.category.name,t).then(()=>{this.$store.commit(pu,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=""}}},NH={class:"field"},MH={class:"switch"},VH=["checked"],BH=["textContent"],UH={key:0,class:"help"};function jH(e,t,n,r,s,o){return E(),P("div",NH,[l("label",MH,[l("input",{ref:"setting",type:"checkbox",checked:o.value,style:{"margin-right":"5px"},onChange:t[0]||(t[0]=(...i)=>o.set_update_timer&&o.set_update_timer(...i))},null,40,VH),vt(e.$slots,"label"),l("i",{class:We(["is-size-7",{"has-text-info":o.is_success,"has-text-danger":o.is_error}]),textContent:g(o.info)},null,10,BH)]),e.$slots.info?(E(),P("p",UH,[vt(e.$slots,"info")])):Y("",!0)])}var A1=pe(LH,[["render",jH]]);const HH={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};q.settings_update(this.category.name,t).then(()=>{this.$store.commit(pu,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=""}}},qH=["disabled"],WH={class:"field"},GH={class:"label has-text-weight-normal"},KH=["textContent"],ZH={class:"control"},YH=["placeholder","value"],JH={key:0,class:"help"};function XH(e,t,n,r,s,o){return E(),P("fieldset",{disabled:n.disabled},[l("div",WH,[l("label",GH,[vt(e.$slots,"label"),l("i",{class:We(["is-size-7",{"has-text-info":o.is_success,"has-text-danger":o.is_error}]),textContent:g(o.info)},null,10,KH)]),l("div",ZH,[l("input",{ref:"setting",class:"input",type:"text",placeholder:n.placeholder,value:o.value,onInput:t[0]||(t[0]=(...i)=>o.set_update_timer&&o.set_update_timer(...i))},null,40,YH)]),e.$slots.info?(E(),P("p",JH,[vt(e.$slots,"info")])):Y("",!0)])],8,qH)}var QH=pe(HH,[["render",XH]]);const eq={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)};q.settings_update(this.category.name,t).then(()=>{this.$store.commit(pu,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=""}}},tq=["disabled"],nq={class:"field"},rq={class:"label has-text-weight-normal"},sq=["textContent"],oq={class:"control"},iq=["placeholder","value"],aq={key:0,class:"help"};function lq(e,t,n,r,s,o){return E(),P("fieldset",{disabled:n.disabled},[l("div",nq,[l("label",rq,[vt(e.$slots,"label"),l("i",{class:We(["is-size-7",{"has-text-info":o.is_success,"has-text-danger":o.is_error}]),textContent:g(o.info)},null,10,sq)]),l("div",oq,[l("input",{ref:"setting",class:"input",type:"number",min:"0",style:{width:"10em"},placeholder:n.placeholder,value:o.value,onInput:t[0]||(t[0]=(...i)=>o.set_update_timer&&o.set_update_timer(...i))},null,40,iq)]),e.$slots.info?(E(),P("p",aq,[vt(e.$slots,"info")])):Y("",!0)])],8,tq)}var uq=pe(eq,[["render",lq]]);const cq={name:"SettingsPageWebinterface",components:{ContentWithHeading:mt,TabsSettings:$u,SettingsCheckbox:A1,SettingsTextfield:QH,SettingsIntfield:uq,DropdownMenu:Vs},computed:{settings_option_show_composer_now_playing(){return this.$store.getters.settings_option_show_composer_now_playing},settings_option_show_filepath_now_playing(){return this.$store.getters.settings_option_show_filepath_now_playing},locale:{get(){let e=this.$i18n.availableLocales,t=e.find(r=>r===this.$i18n.locale),n=this.$i18n.locale.split("-")[0];return t||(t=e.find(r=>r===n)),t||(t=e.forEach(r=>r.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)}))}}}},dq={class:"fd-page-with-tabs"},mq=["textContent"],fq=["textContent"],pq=["textContent"],hq=["textContent"],_q=["textContent"],gq=["textContent"],yq=["textContent"],vq=["textContent"],bq=["textContent"],wq=["textContent"],Cq=["textContent"],zq=["textContent"],xq=["textContent"],kq=["textContent"],Eq=["textContent"],Sq=["textContent"],$q=["textContent"],Aq=["textContent"],Tq=["textContent"],Oq=["textContent"],Pq=["textContent"],Dq=["textContent"],Fq=["textContent"];function Iq(e,t,n,r,s,o){const i=$("tabs-settings"),a=$("dropdown-menu"),u=$("content-with-heading"),c=$("settings-checkbox"),d=$("settings-textfield"),f=$("settings-intfield");return E(),P("div",dq,[C(i),C(u,null,{"heading-left":A(()=>[l("div",{class:"title is-4",textContent:g(e.$t("page.settings.general.language"))},null,8,mq)]),content:A(()=>[C(a,{modelValue:o.locale,"onUpdate:modelValue":t[0]||(t[0]=m=>o.locale=m),options:o.locales},null,8,["modelValue","options"])]),_:1}),C(u,null,{"heading-left":A(()=>[l("div",{class:"title is-4",textContent:g(e.$t("page.settings.general.navigation-items"))},null,8,fq)]),content:A(()=>[l("p",{class:"content",textContent:g(e.$t("page.settings.general.navigation-item-selection"))},null,8,pq),l("div",{class:"notification is-size-7",textContent:g(e.$t("page.settings.general.navigation-item-selection-info"))},null,8,hq),C(c,{category_name:"webinterface",option_name:"show_menu_item_playlists"},{label:A(()=>[l("span",{textContent:g(e.$t("page.settings.general.playlists"))},null,8,_q)]),_:1}),C(c,{category_name:"webinterface",option_name:"show_menu_item_music"},{label:A(()=>[l("span",{textContent:g(e.$t("page.settings.general.music"))},null,8,gq)]),_:1}),C(c,{category_name:"webinterface",option_name:"show_menu_item_podcasts"},{label:A(()=>[l("span",{textContent:g(e.$t("page.settings.general.podcasts"))},null,8,yq)]),_:1}),C(c,{category_name:"webinterface",option_name:"show_menu_item_audiobooks"},{label:A(()=>[l("span",{textContent:g(e.$t("page.settings.general.audiobooks"))},null,8,vq)]),_:1}),C(c,{category_name:"webinterface",option_name:"show_menu_item_radio"},{label:A(()=>[l("span",{textContent:g(e.$t("page.settings.general.radio"))},null,8,bq)]),_:1}),C(c,{category_name:"webinterface",option_name:"show_menu_item_files"},{label:A(()=>[l("span",{textContent:g(e.$t("page.settings.general.files"))},null,8,wq)]),_:1}),C(c,{category_name:"webinterface",option_name:"show_menu_item_search"},{label:A(()=>[l("span",{textContent:g(e.$t("page.settings.general.search"))},null,8,Cq)]),_:1})]),_:1}),C(u,null,{"heading-left":A(()=>[l("div",{class:"title is-4",textContent:g(e.$t("page.settings.general.album-lists"))},null,8,zq)]),content:A(()=>[C(c,{category_name:"webinterface",option_name:"show_cover_artwork_in_album_lists"},{label:A(()=>[l("span",{textContent:g(e.$t("page.settings.general.show-coverart"))},null,8,xq)]),_:1})]),_:1}),C(u,null,{"heading-left":A(()=>[l("div",{class:"title is-4",textContent:g(e.$t("page.settings.general.now-playing-page"))},null,8,kq)]),content:A(()=>[C(c,{category_name:"webinterface",option_name:"show_composer_now_playing"},{label:A(()=>[l("span",{textContent:g(e.$t("page.settings.general.show-composer"))},null,8,Eq)]),info:A(()=>[l("span",{textContent:g(e.$t("page.settings.general.show-composer-info"))},null,8,Sq)]),_:1}),C(d,{category_name:"webinterface",option_name:"show_composer_for_genre",disabled:!o.settings_option_show_composer_now_playing,placeholder:"Genres"},{label:A(()=>[l("span",{textContent:g(e.$t("page.settings.general.show-composer-genres"))},null,8,$q)]),info:A(()=>[l("p",{class:"help",textContent:g(e.$t("page.settings.general.show-composer-genres-info-1"))},null,8,Aq),l("p",{class:"help",textContent:g(e.$t("page.settings.general.show-composer-genres-info-2"))},null,8,Tq),l("p",{class:"help",textContent:g(e.$t("page.settings.general.show-composer-genres-info-3"))},null,8,Oq)]),_:1},8,["disabled"]),C(c,{category_name:"webinterface",option_name:"show_filepath_now_playing"},{label:A(()=>[l("span",{textContent:g(e.$t("page.settings.general.show-path"))},null,8,Pq)]),_:1})]),_:1}),C(u,null,{"heading-left":A(()=>[l("div",{class:"title is-4",textContent:g(e.$t("page.settings.general.recently-added-page"))},null,8,Dq)]),content:A(()=>[C(f,{category_name:"webinterface",option_name:"recently_added_limit"},{label:A(()=>[l("span",{textContent:g(e.$t("page.settings.general.recently-added-page-info"))},null,8,Fq)]),_:1})]),_:1})])}var Rq=pe(cq,[["render",Iq]]);const Lq={name:"SettingsPageArtwork",components:{ContentWithHeading:mt,TabsSettings:$u,SettingsCheckbox:A1},computed:{spotify(){return this.$store.state.spotify}}},Nq={class:"fd-page-with-tabs"},Mq=["textContent"],Vq=["textContent"],Bq=["textContent"],Uq=["textContent"],jq={href:"https://www.spotify.com/",target:"_blank"},Hq={class:"icon"},qq=["textContent"],Wq={href:"https://www.discogs.com/",target:"_blank"},Gq={class:"icon"},Kq=["textContent"],Zq={href:"https://coverartarchive.org/",target:"_blank"},Yq={class:"icon"};function Jq(e,t,n,r,s,o){const i=$("tabs-settings"),a=$("mdicon"),u=$("settings-checkbox"),c=$("content-with-heading");return E(),P("div",Nq,[C(i),C(c,null,{"heading-left":A(()=>[l("div",{class:"title is-4",textContent:g(e.$t("page.settings.artwork.artwork"))},null,8,Mq)]),content:A(()=>[l("div",{class:"content",textContent:g(e.$t("page.settings.artwork.explanation-1"))},null,8,Vq),l("div",{class:"content",textContent:g(e.$t("page.settings.artwork.explanation-2"))},null,8,Bq),o.spotify.spotify_logged_in?(E(),ke(u,{key:0,category_name:"artwork",option_name:"use_artwork_source_spotify"},{label:A(()=>[l("span",{textContent:g(e.$t("page.settings.artwork.spotify"))},null,8,Uq),l("a",jq,[l("span",Hq,[C(a,{name:"open-in-new",size:"16"})])])]),_:1})):Y("",!0),C(u,{category_name:"artwork",option_name:"use_artwork_source_discogs"},{label:A(()=>[l("span",{textContent:g(e.$t("page.settings.artwork.discogs"))},null,8,qq),l("a",Wq,[l("span",Gq,[C(a,{name:"open-in-new",size:"16"})])])]),_:1}),C(u,{category_name:"artwork",option_name:"use_artwork_source_coverartarchive"},{label:A(()=>[l("span",{textContent:g(e.$t("page.settings.artwork.coverartarchive"))},null,8,Kq),l("a",Zq,[l("span",Yq,[C(a,{name:"open-in-new",size:"16"})])])]),_:1})]),_:1})])}var Xq=pe(Lq,[["render",Jq]]);const Qq={name:"SettingsPageOnlineServices",components:{ContentWithHeading:mt,TabsSettings:$u},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(){q.spotify_logout()},login_lastfm(){q.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(){q.lastfm_logout()}}},eW={class:"fd-page-with-tabs"},tW=["textContent"],nW={key:0,class:"notification is-size-7"},rW=["textContent"],sW={key:1},oW={class:"notification is-size-7"},iW=["textContent"],aW={class:"fd-has-margin-top"},lW=["innerHTML"],uW={key:0},cW=["textContent"],dW=["textContent"],mW={key:1,class:"help is-danger"},fW=["textContent"],pW=["textContent"],hW={class:"field fd-has-margin-top"},_W={class:"control"},gW=["href","textContent"],yW={class:"help"},vW=["textContent"],bW=["textContent"],wW={key:2,class:"field fd-has-margin-top"},CW={class:"control"},zW=["textContent"],xW=["textContent"],kW={key:0,class:"notification is-size-7"},EW=["textContent"],SW={key:1},$W=["innerHTML"],AW={key:0},TW=["textContent"],OW={key:1},PW={class:"field is-grouped"},DW={class:"control is-expanded"},FW=["textContent"],IW={class:"control is-expanded"},RW=["textContent"],LW={class:"control"},NW=["textContent"],MW=["textContent"],VW=["textContent"];function BW(e,t,n,r,s,o){const i=$("tabs-settings"),a=$("content-with-heading");return E(),P("div",eW,[C(i),C(a,null,{"heading-left":A(()=>[l("div",{class:"title is-4",textContent:g(e.$t("page.settings.services.spotify.title"))},null,8,tW)]),content:A(()=>[o.spotify.spotify_installed?Y("",!0):(E(),P("div",nW,[l("p",{textContent:g(e.$t("page.settings.services.spotify.no-support"))},null,8,rW)])),o.spotify.spotify_installed?(E(),P("div",sW,[l("div",oW,[l("span",{textContent:g(e.$t("page.settings.services.spotify.requirements"))},null,8,iW)]),l("div",aW,[l("p",{class:"content",innerHTML:e.$t("page.settings.services.spotify.grant-access")},null,8,lW),o.spotify.webapi_token_valid?(E(),P("p",uW,[l("span",{textContent:g(e.$t("page.settings.services.spotify.user"))},null,8,cW),l("code",{textContent:g(o.spotify.webapi_user)},null,8,dW)])):Y("",!0),o.spotify_missing_scope.length>0?(E(),P("p",mW,[l("span",{textContent:g(e.$t("page.settings.services.spotify.reauthorize"))},null,8,fW),l("code",{textContent:g(o.spotify_missing_scope.join())},null,8,pW)])):Y("",!0),l("div",hW,[l("div",_W,[l("a",{class:We(["button",{"is-info":!o.spotify.webapi_token_valid||o.spotify_missing_scope.length>0}]),href:o.spotify.oauth_uri,textContent:g(e.$t("page.settings.services.spotify.authorize"))},null,10,gW)])]),l("p",yW,[l("span",{textContent:g(e.$t("page.settings.services.spotify.scopes"))},null,8,vW),l("code",{textContent:g(o.spotify_required_scope.join(", "))},null,8,bW)]),o.spotify.webapi_token_valid?(E(),P("div",wW,[l("div",CW,[l("a",{class:"button is-danger",onClick:t[0]||(t[0]=(...u)=>o.logout_spotify&&o.logout_spotify(...u)),textContent:g(e.$t("page.settings.services.logout"))},null,8,zW)])])):Y("",!0)])])):Y("",!0)]),_:1}),C(a,null,{"heading-left":A(()=>[l("div",{class:"title is-4",textContent:g(e.$t("page.settings.services.lastfm.title"))},null,8,xW)]),content:A(()=>[o.lastfm.enabled?Y("",!0):(E(),P("div",kW,[l("p",{textContent:g(e.$t("page.settings.services.lastfm.no-support"))},null,8,EW)])),o.lastfm.enabled?(E(),P("div",SW,[l("p",{class:"content",innerHTML:e.$t("page.settings.services.lastfm.grant-access")},null,8,$W),o.lastfm.scrobbling_enabled?(E(),P("div",AW,[l("a",{class:"button",onClick:t[1]||(t[1]=(...u)=>o.logoutLastfm&&o.logoutLastfm(...u)),textContent:g(e.$t("page.settings.services.lastfm.stop-scrobbling"))},null,8,TW)])):Y("",!0),o.lastfm.scrobbling_enabled?Y("",!0):(E(),P("div",OW,[l("form",{onSubmit:t[4]||(t[4]=gt((...u)=>o.login_lastfm&&o.login_lastfm(...u),["prevent"]))},[l("div",PW,[l("div",DW,[Pt(l("input",{"onUpdate:modelValue":t[2]||(t[2]=u=>s.lastfm_login.user=u),class:"input",type:"text",placeholder:"Username"},null,512),[[$n,s.lastfm_login.user]]),l("p",{class:"help is-danger",textContent:g(s.lastfm_login.errors.user)},null,8,FW)]),l("div",IW,[Pt(l("input",{"onUpdate:modelValue":t[3]||(t[3]=u=>s.lastfm_login.password=u),class:"input",type:"password",placeholder:"Password"},null,512),[[$n,s.lastfm_login.password]]),l("p",{class:"help is-danger",textContent:g(s.lastfm_login.errors.password)},null,8,RW)]),l("div",LW,[l("button",{class:"button is-info",type:"submit",textContent:g(e.$t("page.settings.services.login"))},null,8,NW)])]),l("p",{class:"help is-danger",textContent:g(s.lastfm_login.errors.error)},null,8,MW),l("p",{class:"help",textContent:g(e.$t("page.settings.services.lastfm.info"))},null,8,VW)],32)]))])):Y("",!0)]),_:1})])}var UW=pe(Qq,[["render",BW]]);const jW={name:"SettingsPageRemotesOutputs",components:{ContentWithHeading:mt,TabsSettings:$u},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(){q.pairing_kickoff(this.pairing_req)},output_toggle(e){q.output_toggle(e)},kickoff_verification(e){q.output_update(e,this.verification_req)}}},HW={class:"fd-page-with-tabs"},qW=["textContent"],WW={key:0,class:"notification"},GW={class:"label has-text-weight-normal"},KW=["textContent"],ZW=["textContent"],YW={class:"field is-grouped"},JW={class:"control"},XW={class:"control"},QW=["textContent"],eG={key:1,class:"content"},tG=["textContent"],nG=["textContent"],rG=["textContent"],sG={class:"field"},oG={class:"control"},iG={class:"checkbox"},aG=["onUpdate:modelValue","onChange"],lG=["textContent"],uG=["onSubmit"],cG={class:"field is-grouped"},dG={class:"control"},mG=["placeholder"],fG={class:"control"},pG=["textContent"];function hG(e,t,n,r,s,o){const i=$("tabs-settings"),a=$("content-with-heading");return E(),P("div",HW,[C(i),C(a,null,{"heading-left":A(()=>[l("div",{class:"title is-4",textContent:g(e.$t("page.settings.devices.pairing"))},null,8,qW)]),content:A(()=>[o.pairing.active?(E(),P("div",WW,[l("form",{onSubmit:t[1]||(t[1]=gt((...u)=>o.kickoff_pairing&&o.kickoff_pairing(...u),["prevent"]))},[l("label",GW,[l("span",{textContent:g(e.$t("page.settings.devices.pairing-request"))},null,8,KW),l("b",{textContent:g(o.pairing.remote)},null,8,ZW)]),l("div",YW,[l("div",JW,[Pt(l("input",{"onUpdate:modelValue":t[0]||(t[0]=u=>s.pairing_req.pin=u),class:"input",type:"text",placeholder:"Enter pairing code"},null,512),[[$n,s.pairing_req.pin]])]),l("div",XW,[l("button",{class:"button is-info",type:"submit",textContent:g(e.$t("page.settings.devices.send"))},null,8,QW)])])],32)])):Y("",!0),o.pairing.active?Y("",!0):(E(),P("div",eG,[l("p",{textContent:g(e.$t("page.settings.devices.no-active-pairing"))},null,8,tG)]))]),_:1}),C(a,null,{"heading-left":A(()=>[l("div",{class:"title is-4",textContent:g(e.$t("page.settings.devices.speaker-pairing"))},null,8,nG)]),content:A(()=>[l("p",{class:"content",textContent:g(e.$t("page.settings.devices.speaker-pairing-info"))},null,8,rG),(E(!0),P(He,null,Et(o.outputs,u=>(E(),P("div",{key:u.id},[l("div",sG,[l("div",oG,[l("label",iG,[Pt(l("input",{"onUpdate:modelValue":c=>u.selected=c,type:"checkbox",style:{"margin-right":"5px"},onChange:c=>o.output_toggle(u.id)},null,40,aG),[[Rr,u.selected]]),l("span",{textContent:g(u.name)},null,8,lG)])])]),u.needs_auth_key?(E(),P("form",{key:0,class:"fd-has-margin-bottom",onSubmit:gt(c=>o.kickoff_verification(u.id),["prevent"])},[l("div",cG,[l("div",dG,[Pt(l("input",{"onUpdate:modelValue":t[2]||(t[2]=c=>s.verification_req.pin=c),class:"input",type:"text",placeholder:e.$t("page.settings.devices.verification-code")},null,8,mG),[[$n,s.verification_req.pin]])]),l("div",fG,[l("button",{class:"button is-info",type:"submit",textContent:g(e.$t("page.settings.devices.verify"))},null,8,pG)])])],40,uG)):Y("",!0)]))),128))]),_:1})])}var _G=pe(jW,[["render",hG]]);const T1=d2({history:Sk(),routes:[{path:"/",name:"PageQueue",component:jA},{path:"/about",name:"About",component:Y9},{path:"/now-playing",name:"Now playing",component:PO},{path:"/music",redirect:"/music/browse"},{path:"/music/browse",name:"Browse",component:iP,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/browse/recently_added",name:"Browse Recently Added",component:mP,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/browse/recently_played",name:"Browse Recently Played",component:yP,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/artists",name:"Artists",component:TD,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/artists/:artist_id",name:"Artist",component:qD,meta:{show_progress:!0,has_index:!0}},{path:"/music/artists/:artist_id/tracks",name:"Tracks",component:dI,meta:{show_progress:!0,has_index:!0}},{path:"/music/albums",name:"Albums",component:c5,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/albums/:album_id",name:"Album",component:L5,meta:{show_progress:!0}},{path:"/music/genres",name:"Genres",component:zF,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/genres/:genre",name:"Genre",component:IF,meta:{show_progress:!0,has_index:!0}},{path:"/music/genres/:genre/tracks",name:"GenreTracks",component:YF,meta:{show_progress:!0,has_index:!0}},{path:"/music/composers",name:"Composers",component:KI,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/composers/:composer/albums",name:"ComposerAlbums",component:iR,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/composers/:composer/tracks",name:"ComposerTracks",component:wR,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/podcasts",name:"Podcasts",component:rL,meta:{show_progress:!0}},{path:"/podcasts/:album_id",name:"Podcast",component:_L,meta:{show_progress:!0}},{path:"/audiobooks",redirect:"/audiobooks/artists"},{path:"/audiobooks/artists",name:"AudiobooksArtists",component:BL,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/audiobooks/artists/:artist_id",name:"AudiobooksArtist",component:YL,meta:{show_progress:!0}},{path:"/audiobooks/albums",name:"AudiobooksAlbums",component:IL,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/audiobooks/:album_id",name:"Audiobook",component:lN,meta:{show_progress:!0}},{path:"/radio",name:"Radio",component:qM,meta:{show_progress:!0}},{path:"/files",name:"Files",component:VM,meta:{show_progress:!0}},{path:"/playlists",redirect:"/playlists/0"},{path:"/playlists/:playlist_id",name:"Playlists",component:WN,meta:{show_progress:!0}},{path:"/playlists/:playlist_id/tracks",name:"Playlist",component:tM,meta:{show_progress:!0}},{path:"/search",redirect:"/search/library"},{path:"/search/library",name:"Search Library",component:r9},{path:"/music/spotify",name:"Spotify",component:vB,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/spotify/new-releases",name:"Spotify Browse New Releases",component:SB,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/spotify/featured-playlists",name:"Spotify Browse Featured Playlists",component:FB,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/spotify/artists/:artist_id",name:"Spotify Artist",component:bU,meta:{show_progress:!0}},{path:"/music/spotify/albums/:album_id",name:"Spotify Album",component:gj,meta:{show_progress:!0}},{path:"/music/spotify/playlists/:playlist_id",name:"Spotify Playlist",component:$j,meta:{show_progress:!0}},{path:"/search/spotify",name:"Spotify Search",component:wH},{path:"/settings/webinterface",name:"Settings Webinterface",component:Rq},{path:"/settings/artwork",name:"Settings Artwork",component:Xq},{path:"/settings/online-services",name:"Settings Online Services",component:UW},{path:"/settings/remotes-outputs",name:"Settings Remotes Outputs",component:_G}],scrollBehavior(e,t,n){return n?new Promise((s,o)=>{setTimeout(()=>{s(n)},0)}):e.path===t.path&&e.hash?{el:e.hash,top:120}:e.hash?new Promise((s,o)=>{setTimeout(()=>{s({el:e.hash,top:120})},0)}):e.meta.has_index?new Promise((s,o)=>{setTimeout(()=>{e.meta.has_tabs?s({el:"#top",top:140}):s({el:"#top",top:110})},0)}):{left:0,top:0}}});T1.beforeEach((e,t,n)=>{if(at.state.show_burger_menu){at.commit(vo,!1),n(!1);return}if(at.state.show_player_menu){at.commit(bo,!1),n(!1);return}n(!0)});var O1={exports:{}};(function(e){e.exports=function(t){var n={};function r(s){if(n[s])return n[s].exports;var o=n[s]={i:s,l:!1,exports:{}};return t[s].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(s,o,i){r.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:i})},r.r=function(s){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},r.t=function(s,o){if(o&1&&(s=r(s)),o&8||o&4&&typeof s=="object"&&s&&s.__esModule)return s;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:s}),o&2&&typeof s!="string")for(var a in s)r.d(i,a,function(u){return s[u]}.bind(null,a));return i},r.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return r.d(o,"a",o),o},r.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},r.p="",r(r.s="fb15")}({8875:function(t,n,r){var s,o,i;(function(a,u){o=[],s=u,i=typeof s=="function"?s.apply(n,o):s,i!==void 0&&(t.exports=i)})(typeof self!="undefined"?self:this,function(){function a(){var u=Object.getOwnPropertyDescriptor(document,"currentScript");if(!u&&"currentScript"in document&&document.currentScript||u&&u.get!==a&&document.currentScript)return document.currentScript;try{throw new Error}catch(z){var c=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,d=/@([^@]*):(\d+):(\d+)\s*$/ig,f=c.exec(z.stack)||d.exec(z.stack),m=f&&f[1]||!1,p=f&&f[2]||!1,h=document.location.href.replace(document.location.hash,""),_,w,v,b=document.getElementsByTagName("script");m===h&&(_=document.documentElement.outerHTML,w=new RegExp("(?:[^\\n]+?\\n){0,"+(p-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),v=_.replace(w,"$1").trim());for(var k=0;k<b.length;k++)if(b[k].readyState==="interactive"||b[k].src===m||m===h&&b[k].innerHTML&&b[k].innerHTML.trim()===v)return b[k];return null}}return a})},"8bbf":function(t,n){t.exports=zv},fb15:function(t,n,r){if(r.r(n),typeof window!="undefined"){var s=window.document.currentScript;{var o=r("8875");s=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o})}var i=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var a=r("8bbf");function u(h,_,w,v,b,k){return Object(a.openBlock)(),Object(a.createBlock)("div",{style:v.finalStyle},null,4)}var c=typeof window!="undefined",d={name:"VueProgress",serverCacheKey:function(){return"Progress"},setup:function(){var _=c?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}},w=Object(a.computed)(function(){var v=_.options,b=!!v.show,k=v.location,z={"z-index":999999,"background-color":v.canSuccess?v.color:v.failedColor,opacity:v.show?1:0,position:v.position};return k==="top"||k==="bottom"?(k==="top"?z.top="0px":z.bottom="0px",v.inverse?z.right="0px":z.left="0px",z.width=_.percent+"%",z.height=v.thickness,z.transition=(b?"width "+v.transition.speed+", ":"")+"opacity "+v.transition.opacity):(k==="left"||k==="right")&&(k==="left"?z.left="0px":z.right="0px",v.inverse?z.top="0px":z.bottom="0px",z.height=_.percent+"%",z.width=v.thickness,z.transition=(b?"height "+v.transition.speed+", ":"")+"opacity "+v.transition.opacity),z});return{progress:_,finalStyle:w}}};d.render=u;var f=d;function m(h,_){for(var w=1,v,b;w<arguments.length;++w){b=arguments[w];for(v in b)Object.prototype.hasOwnProperty.call(b,v)&&(h[v]=b[v])}return h}var p={install:function(_,w){var v={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},b=m(v,w),k=Object(a.reactive)({percent:0,options:b});_.provide("RADON_LOADING_BAR",k);var z={state:{tFailColor:"",tColor:"",timer:null,cut:0},start:function(T){var M=this;T||(T=3e3),k.percent=0,k.options.show=!0,k.options.canSuccess=!0,this.state.cut=1e4/Math.floor(T),clearInterval(this.state.timer),this.state.timer=setInterval(function(){M.increase(M.state.cut*Math.random()),k.percent>95&&k.options.autoFinish&&M.finish()},100)},set:function(T){k.options.show=!0,k.options.canSuccess=!0,k.percent=Math.floor(T)},get:function(){return Math.floor(k.percent)},increase:function(T){k.percent=Math.min(99,k.percent+Math.floor(T))},decrease:function(T){k.percent=k.percent-Math.floor(T)},hide:function(){var T=this;clearInterval(this.state.timer),this.state.timer=null,setTimeout(function(){k.options.show=!1,Object(a.nextTick)(function(){setTimeout(function(){k.percent=0},100),k.options.autoRevert&&setTimeout(function(){T.revert()},300)})},k.options.transition.termination)},pause:function(){clearInterval(this.state.timer)},finish:function(){k.percent=100,this.hide()},fail:function(){k.options.canSuccess=!1,k.percent=100,this.hide()},setFailColor:function(T){k.options.failedColor=T},setColor:function(T){k.options.color=T},setLocation:function(T){k.options.location=T},setTransition:function(T){k.options.transition=T},tempFailColor:function(T){this.state.tFailColor=k.options.failedColor,k.options.failedColor=T},tempColor:function(T){this.state.tColor=k.options.color,k.options.color=T},tempLocation:function(T){this.state.tLocation=k.options.location,k.options.location=T},tempTransition:function(T){this.state.tTransition=k.options.transition,k.options.transition=T},revertColor:function(){k.options.color=this.state.tColor,this.state.tColor=""},revertFailColor:function(){k.options.failedColor=this.state.tFailColor,this.state.tFailColor=""},revertLocation:function(){k.options.location=this.state.tLocation,this.state.tLocation=""},revertTransition:function(){k.options.transition=this.state.tTransition,this.state.tTransition={}},revert:function(){k.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(T){for(var M in T.func){var L=T.func[M];switch(L.call){case"color":switch(L.modifier){case"set":this.setColor(L.argument);break;case"temp":this.tempColor(L.argument);break}break;case"fail":switch(L.modifier){case"set":this.setFailColor(L.argument);break;case"temp":this.tempFailColor(L.argument);break}break;case"location":switch(L.modifier){case"set":this.setLocation(L.argument);break;case"temp":this.tempLocation(L.argument);break}break;case"transition":switch(L.modifier){case"set":this.setTransition(L.argument);break;case"temp":this.tempTransition(L.argument);break}break}}}};_.component("vue-progress-bar",f),_.config.globalProperties.$Progress=z}};n.default=p}})})(O1);var gG=yv(O1.exports);const P1=function(){return document.ontouchstart!==null?"click":"touchstart"},Vl="__vue_click_away__",D1=function(e,t,n){F1(e);let r=n.context,s=t.value,o=!1;setTimeout(function(){o=!0},0),e[Vl]=function(i){if((!e||!e.contains(i.target))&&s&&o&&typeof s=="function")return s.call(r,i)},document.addEventListener(P1(),e[Vl],!1)},F1=function(e){document.removeEventListener(P1(),e[Vl],!1),delete e[Vl]},yG=function(e,t,n){t.value!==t.oldValue&&D1(e,t,n)},vG={install:function(e){e.directive("click-away",bG)}},bG={mounted:D1,updated:yG,unmounted:F1};var mr=(e=>(e.LOADING="loading",e.LOADED="loaded",e.ERROR="error",e))(mr||{});const wG=typeof window!="undefined"&&window!==null,CG=EG(),zG=Object.prototype.propertyIsEnumerable,Bh=Object.getOwnPropertySymbols;function xi(e){return typeof e=="function"||toString.call(e)==="[object Object]"}function xG(e){return typeof e=="object"?e===null:typeof e!="function"}function kG(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function EG(){return wG&&"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 SG(e,...t){if(!xi(e))throw new TypeError("expected the first argument to be an object");if(t.length===0||typeof Symbol!="function"||typeof Bh!="function")return e;for(const n of t){const r=Bh(n);for(const s of r)zG.call(n,s)&&(e[s]=n[s])}return e}function I1(e,...t){let n=0;for(xG(e)&&(e=t[n++]),e||(e={});n<t.length;n++)if(xi(t[n])){for(const r of Object.keys(t[n]))kG(r)&&(xi(e[r])&&xi(t[n][r])?I1(e[r],t[n][r]):e[r]=t[n][r]);SG(e,t[n])}return e}const Uh="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",$G="",AG={rootMargin:"0px",threshold:0},Ys="data-lazy-timeout-id";class TG{constructor(t){this.options={loading:Uh,error:$G,observerOptions:AG,log:!0,lifecycle:{}},this._images=new WeakMap,this.config(t)}config(t={}){I1(this.options,t)}mount(t,n){if(!t)return;const{src:r,loading:s,error:o,lifecycle:i,delay:a}=this._valueFormatter(typeof n=="string"?n:n.value);this._lifecycle(mr.LOADING,i,t),t.setAttribute("src",s||Uh),CG||(this.loadImages(t,r,o,i),this._log(()=>{throw new Error("Not support IntersectionObserver!")})),this._initIntersectionObserver(t,r,o,i,a)}update(t,n){var a;if(!t)return;(a=this._realObserver(t))==null||a.unobserve(t);const{src:r,error:s,lifecycle:o,delay:i}=this._valueFormatter(typeof n=="string"?n:n.value);this._initIntersectionObserver(t,r,s,o,i)}unmount(t){var n;!t||((n=this._realObserver(t))==null||n.unobserve(t),this._images.delete(t))}loadImages(t,n,r,s){this._setImageSrc(t,n,r,s)}_setImageSrc(t,n,r,s){t.tagName.toLowerCase()==="img"?(n&&t.getAttribute("src")!==n&&t.setAttribute("src",n),this._listenImageStatus(t,()=>{this._lifecycle(mr.LOADED,s,t)},()=>{var o;t.onload=null,this._lifecycle(mr.ERROR,s,t),(o=this._realObserver(t))==null||o.disconnect(),r&&t.getAttribute("src")!==r&&t.setAttribute("src",r),this._log(()=>{throw new Error(`Image failed to load!And failed src was: ${n} `)})})):t.style.backgroundImage=`url('${n}')`}_initIntersectionObserver(t,n,r,s,o){var a;const i=this.options.observerOptions;this._images.set(t,new IntersectionObserver(u=>{Array.prototype.forEach.call(u,c=>{o&&o>0?this._delayedIntersectionCallback(t,c,o,n,r,s):this._intersectionCallback(t,c,n,r,s)})},i)),(a=this._realObserver(t))==null||a.observe(t)}_intersectionCallback(t,n,r,s,o){var i;n.isIntersecting&&((i=this._realObserver(t))==null||i.unobserve(n.target),this._setImageSrc(t,r,s,o))}_delayedIntersectionCallback(t,n,r,s,o,i){if(n.isIntersecting){if(n.target.hasAttribute(Ys))return;const a=setTimeout(()=>{this._intersectionCallback(t,n,s,o,i),n.target.removeAttribute(Ys)},r);n.target.setAttribute(Ys,String(a))}else n.target.hasAttribute(Ys)&&(clearTimeout(Number(n.target.getAttribute(Ys))),n.target.removeAttribute(Ys))}_listenImageStatus(t,n,r){t.onload=n,t.onerror=r}_valueFormatter(t){let n=t,r=this.options.loading,s=this.options.error,o=this.options.lifecycle,i=this.options.delay;return xi(t)&&(n=t.src,r=t.loading||this.options.loading,s=t.error||this.options.error,o=t.lifecycle||this.options.lifecycle,i=t.delay||this.options.delay),{src:n,loading:r,error:s,lifecycle:o,delay:i}}_log(t){this.options.log&&t()}_lifecycle(t,n,r){switch(t){case mr.LOADING:r==null||r.setAttribute("lazy",mr.LOADING),n!=null&&n.loading&&n.loading(r);break;case mr.LOADED:r==null||r.setAttribute("lazy",mr.LOADED),n!=null&&n.loaded&&n.loaded(r);break;case mr.ERROR:r==null||r.setAttribute("lazy",mr.ERROR),n!=null&&n.error&&n.error(r);break}}_realObserver(t){return this._images.get(t)}}const OG={install(e,t){const n=new TG(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 R1={exports:{}};/*!
* vue-scrollto v2.20.0
* (c) 2019 Randjelovic Igor
* @license MIT
*/(function(e,t){(function(n,r){e.exports=r()})(_n,function(){function n(ve){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(X){return typeof X}:n=function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},n(ve)}function r(){return r=Object.assign||function(ve){for(var X=1;X<arguments.length;X++){var ge=arguments[X];for(var be in ge)Object.prototype.hasOwnProperty.call(ge,be)&&(ve[be]=ge[be])}return ve},r.apply(this,arguments)}var s=4,o=.001,i=1e-7,a=10,u=11,c=1/(u-1),d=typeof Float32Array=="function";function f(ve,X){return 1-3*X+3*ve}function m(ve,X){return 3*X-6*ve}function p(ve){return 3*ve}function h(ve,X,ge){return((f(X,ge)*ve+m(X,ge))*ve+p(X))*ve}function _(ve,X,ge){return 3*f(X,ge)*ve*ve+2*m(X,ge)*ve+p(X)}function w(ve,X,ge,be,Fe){var Le,W,ye=0;do W=X+(ge-X)/2,Le=h(W,be,Fe)-ve,Le>0?ge=W:X=W;while(Math.abs(Le)>i&&++ye<a);return W}function v(ve,X,ge,be){for(var Fe=0;Fe<s;++Fe){var Le=_(X,ge,be);if(Le===0)return X;var W=h(X,ge,be)-ve;X-=W/Le}return X}function b(ve){return ve}var k=function(X,ge,be,Fe){if(!(0<=X&&X<=1&&0<=be&&be<=1))throw new Error("bezier x values must be in [0, 1] range");if(X===ge&&be===Fe)return b;for(var Le=d?new Float32Array(u):new Array(u),W=0;W<u;++W)Le[W]=h(W*c,X,be);function ye(le){for(var xe=0,Ue=1,O=u-1;Ue!==O&&Le[Ue]<=le;++Ue)xe+=c;--Ue;var D=(le-Le[Ue])/(Le[Ue+1]-Le[Ue]),N=xe+D*c,ee=_(N,X,be);return ee>=o?v(le,N,X,be):ee===0?N:w(le,xe,xe+c,X,be)}return function(xe){return xe===0?0:xe===1?1:h(ye(xe),ge,Fe)}},z={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]},S=!1;try{var T=Object.defineProperty({},"passive",{get:function(){S=!0}});window.addEventListener("test",null,T)}catch{}var M={$:function(X){return typeof X!="string"?X:document.querySelector(X)},on:function(X,ge,be){var Fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{passive:!1};ge instanceof Array||(ge=[ge]);for(var Le=0;Le<ge.length;Le++)X.addEventListener(ge[Le],be,S?Fe:!1)},off:function(X,ge,be){ge instanceof Array||(ge=[ge]);for(var Fe=0;Fe<ge.length;Fe++)X.removeEventListener(ge[Fe],be)},cumulativeOffset:function(X){var ge=0,be=0;do ge+=X.offsetTop||0,be+=X.offsetLeft||0,X=X.offsetParent;while(X);return{top:ge,left:be}}},L=["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],F={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 j(ve){F=r({},F,ve)}var K=function(){var X,ge,be,Fe,Le,W,ye,le,xe,Ue,O,D,N,ee,re,oe,ze,he,fe,ne,V,Z,Se,Oe=function(Pe){!le||(Se=Pe,ne=!0)},Ye,nt,Qe,x;function y(Me){var Pe=Me.scrollTop;return Me.tagName.toLowerCase()==="body"&&(Pe=Pe||document.documentElement.scrollTop),Pe}function I(Me){var Pe=Me.scrollLeft;return Me.tagName.toLowerCase()==="body"&&(Pe=Pe||document.documentElement.scrollLeft),Pe}function H(){V=M.cumulativeOffset(ge),Z=M.cumulativeOffset(X),D&&(re=Z.left-V.left+W,he=re-ee),N&&(ze=Z.top-V.top+W,fe=ze-oe)}function J(Me){if(ne)return ue();nt||(nt=Me),Le||H(),Qe=Me-nt,x=Math.min(Qe/be,1),x=Ye(x),we(ge,oe+fe*x,ee+he*x),Qe<be?window.requestAnimationFrame(J):ue()}function ue(){ne||we(ge,ze,re),nt=!1,M.off(ge,L,Oe),ne&&O&&O(Se,X),!ne&&Ue&&Ue(X)}function we(Me,Pe,ce){N&&(Me.scrollTop=Pe),D&&(Me.scrollLeft=ce),Me.tagName.toLowerCase()==="body"&&(N&&(document.documentElement.scrollTop=Pe),D&&(document.documentElement.scrollLeft=ce))}function Re(Me,Pe){var ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n(Pe)==="object"?ce=Pe:typeof Pe=="number"&&(ce.duration=Pe),X=M.$(Me),!X)return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+Me);if(ge=M.$(ce.container||F.container),be=ce.hasOwnProperty("duration")?ce.duration:F.duration,Le=ce.hasOwnProperty("lazy")?ce.lazy:F.lazy,Fe=ce.easing||F.easing,W=ce.hasOwnProperty("offset")?ce.offset:F.offset,ye=ce.hasOwnProperty("force")?ce.force!==!1:F.force,le=ce.hasOwnProperty("cancelable")?ce.cancelable!==!1:F.cancelable,xe=ce.onStart||F.onStart,Ue=ce.onDone||F.onDone,O=ce.onCancel||F.onCancel,D=ce.x===void 0?F.x:ce.x,N=ce.y===void 0?F.y:ce.y,typeof W=="function"&&(W=W(X,ge)),ee=I(ge),oe=y(ge),H(),ne=!1,!ye){var _e=ge.tagName.toLowerCase()==="body"?document.documentElement.clientHeight||window.innerHeight:ge.offsetHeight,Xe=oe,je=Xe+_e,_t=ze-W,kr=_t+X.offsetHeight;if(_t>=Xe&&kr<=je){Ue&&Ue(X);return}}if(xe&&xe(X),!fe&&!he){Ue&&Ue(X);return}return typeof Fe=="string"&&(Fe=z[Fe]||z.ease),Ye=k.apply(k,Fe),M.on(ge,L,Oe,{passive:!0}),window.requestAnimationFrame(J),function(){Se=null,ne=!0}}return Re},Q=K(),U=[];function G(ve){for(var X=0;X<U.length;++X)if(U[X].el===ve)return U.splice(X,1),!0;return!1}function me(ve){for(var X=0;X<U.length;++X)if(U[X].el===ve)return U[X]}function se(ve){var X=me(ve);return X||(U.push(X={el:ve,binding:{}}),X)}function ae(ve){var X=se(this).binding;if(!!X.value){if(ve.preventDefault(),typeof X.value=="string")return Q(X.value);Q(X.value.el||X.value.element,X.value)}}var Ce={bind:function(X,ge){se(X).binding=ge,M.on(X,"click",ae)},unbind:function(X){G(X),M.off(X,"click",ae)},update:function(X,ge){se(X).binding=ge}},Ke={bind:Ce.bind,unbind:Ce.unbind,update:Ce.update,beforeMount:Ce.bind,unmounted:Ce.unbind,updated:Ce.update,scrollTo:Q,bindings:U},Ze=function(X,ge){ge&&j(ge),X.directive("scroll-to",Ke);var be=X.config.globalProperties||X.prototype;be.$scrollTo=Ke.scrollTo};return typeof window!="undefined"&&window.Vue&&(window.VueScrollTo=Ke,window.VueScrollTo.setDefaults=j,window.VueScrollTo.scroller=K,window.Vue.use&&window.Vue.use(Ze)),Ke.install=Ze,Ke})})(R1);var PG=R1.exports,DG="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",FG="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",IG="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",RG="M19.92,12.08L12,20L4.08,12.08L5.5,10.67L11,16.17V2H13V16.17L18.5,10.66L19.92,12.08M12,20H2V22H22V20H12Z",LG="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",NG="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",MG="M9 3V18H12V3H9M12 5L16 18L19 17L15 4L12 5M5 5V18H8V5H5M3 19V21H21V19H3Z",VG="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",BG="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",UG="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",jG="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",HG="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",qG="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",WG="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",GG="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",KG="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",ZG="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",YG="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",JG="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",XG="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",QG="M3,15V13H5V15H3M3,11V9H5V11H3M7,15V13H9V15H7M7,11V9H9V11H7M11,15V13H13V15H11M11,11V9H13V11H11M15,15V13H17V15H15M15,11V9H17V11H15M19,15V13H21V15H19M19,11V9H21V11H19Z",eK="M13,6V18L21.5,12M4,18L12.5,12L4,6V18Z",tK="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",nK="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z",rK="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",sK="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",oK="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",iK="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",aK="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",lK="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",uK="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",cK="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",dK="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",mK="M14,19H18V5H14M6,19H10V5H6V19Z",fK="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",pK="M22,14H20V16H14V13H16V11H14V6A2,2 0 0,0 12,4H4V2H2V10H4V8H10V11H8V13H10V18A2,2 0 0,0 12,20H20V22H22",hK="M8,5.14V19.14L19,12.14L8,5.14Z",_K="M3 10H14V12H3V10M3 6H14V8H3V6M3 14H10V16H3V14M16 13V21L22 17L16 13Z",gK="M3 16H10V14H3M18 14V10H16V14H12V16H16V20H18V16H22V14M14 6H3V8H14M14 10H3V12H14V10Z",yK="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",vK="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",bK="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",wK="M17,17H7V14L3,18L7,22V19H19V13H17M7,7H17V10L21,6L17,2V5H5V11H7V7Z",CK="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",zK="M13,15V9H12L10,10V11H11.5V15M17,17H7V14L3,18L7,22V19H19V13H17M7,7H17V10L21,6L17,2V5H5V11H7V7Z",xK="M11.5,12L20,18V6M11,18V6L2.5,12L11,18Z",kK="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",EK="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",SK="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",$K="M16,4.5V7H5V9H16V11.5L19.5,8M16,12.5V15H5V17H16V19.5L19.5,16",AK="M20,5V19L13,12M6,5V19H4V5M13,5V19L6,12",TK="M4,5V19L11,12M18,5V19H20V5M11,5V19L18,12",OK="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",PK="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",DK="M18,18H6V6H18V18Z",FK="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",LK="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 NK={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 MK=e=>e.charAt(0).toUpperCase()+e.slice(1),VK=e=>e.split("-").map(MK).join(""),BK=(e,t,n)=>{const r=e[`mdi${VK(t.name)}`]||IG,s={role:t.role,"aria-label":t.ariaLabel,...n},o={fill:"currentColor",width:t.width||t.size,height:t.height||t.size,viewBox:t.viewBox,xmlns:t.xmlns};return{spanAttrs:s,svgAttrs:o,pathAttrs:{d:r}}},UK=(e,t)=>({[t.staticClass||""]:!0,[t.class||""]:!0,[`mdi mdi-${e.name}`]:!0,"mdi-spin":e.spin===!0}),jK=(e,t={})=>({install(n,{icons:r}){if(r===void 0)throw new Error("Icons must be provided separately");n.component("mdicon",{name:"MDIcon",props:NK,...t,render:e(r)})}}),HK=e=>function(){const{spanAttrs:n,svgAttrs:r,pathAttrs:s}=BK(e,this,this.$attrs);return _r("span",{...n,class:UK(this,this)},[_r("svg",r,[this.title?_r("title",[this.title]):void 0,_r("path",s)])])};var qK=jK(HK);class Bs extends Error{}class WK extends Bs{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class GK extends Bs{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class KK extends Bs{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class oi extends Bs{}class L1 extends Bs{constructor(t){super(`Invalid unit ${t}`)}}class Un extends Bs{}class Wr extends Bs{constructor(){super("Zone is an abstract class")}}const Ae="numeric",lr="short",Rn="long",Bl={year:Ae,month:Ae,day:Ae},N1={year:Ae,month:lr,day:Ae},ZK={year:Ae,month:lr,day:Ae,weekday:lr},M1={year:Ae,month:Rn,day:Ae},V1={year:Ae,month:Rn,day:Ae,weekday:Rn},B1={hour:Ae,minute:Ae},U1={hour:Ae,minute:Ae,second:Ae},j1={hour:Ae,minute:Ae,second:Ae,timeZoneName:lr},H1={hour:Ae,minute:Ae,second:Ae,timeZoneName:Rn},q1={hour:Ae,minute:Ae,hourCycle:"h23"},W1={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23"},G1={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23",timeZoneName:lr},K1={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23",timeZoneName:Rn},Z1={year:Ae,month:Ae,day:Ae,hour:Ae,minute:Ae},Y1={year:Ae,month:Ae,day:Ae,hour:Ae,minute:Ae,second:Ae},J1={year:Ae,month:lr,day:Ae,hour:Ae,minute:Ae},X1={year:Ae,month:lr,day:Ae,hour:Ae,minute:Ae,second:Ae},YK={year:Ae,month:lr,day:Ae,weekday:lr,hour:Ae,minute:Ae},Q1={year:Ae,month:Rn,day:Ae,hour:Ae,minute:Ae,timeZoneName:lr},eb={year:Ae,month:Rn,day:Ae,hour:Ae,minute:Ae,second:Ae,timeZoneName:lr},tb={year:Ae,month:Rn,day:Ae,weekday:Rn,hour:Ae,minute:Ae,timeZoneName:Rn},nb={year:Ae,month:Rn,day:Ae,weekday:Rn,hour:Ae,minute:Ae,second:Ae,timeZoneName:Rn};class ea{get type(){throw new Wr}get name(){throw new Wr}get ianaName(){return this.name}get isUniversal(){throw new Wr}offsetName(t,n){throw new Wr}formatOffset(t,n){throw new Wr}offset(t){throw new Wr}equals(t){throw new Wr}get isValid(){throw new Wr}}let Cc=null;class Au extends ea{static get instance(){return Cc===null&&(Cc=new Au),Cc}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return sb(t,n,r)}formatOffset(t,n){return Ei(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let bl={};function JK(e){return bl[e]||(bl[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"})),bl[e]}const XK={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function QK(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,o,i,a,u,c,d]=r;return[i,s,o,a,u,c,d]}function eZ(e,t){const n=e.formatToParts(t),r=[];for(let s=0;s<n.length;s++){const{type:o,value:i}=n[s],a=XK[o];o==="era"?r[a]=i:ct(a)||(r[a]=parseInt(i,10))}return r}let rl={};class Lr extends ea{static create(t){return rl[t]||(rl[t]=new Lr(t)),rl[t]}static resetCache(){rl={},bl={}}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=Lr.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return sb(t,n,r,this.name)}formatOffset(t,n){return Ei(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const r=JK(this.name);let[s,o,i,a,u,c,d]=r.formatToParts?eZ(r,n):QK(r,n);a==="BC"&&(s=-Math.abs(s)+1);const m=ef({year:s,month:o,day:i,hour:u===24?0:u,minute:c,second:d,millisecond:0});let p=+n;const h=p%1e3;return p-=h>=0?h:1e3+h,(m-p)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let jh={};function tZ(e,t={}){const n=JSON.stringify([e,t]);let r=jh[n];return r||(r=new Intl.ListFormat(e,t),jh[n]=r),r}let Ad={};function Td(e,t={}){const n=JSON.stringify([e,t]);let r=Ad[n];return r||(r=new Intl.DateTimeFormat(e,t),Ad[n]=r),r}let Od={};function nZ(e,t={}){const n=JSON.stringify([e,t]);let r=Od[n];return r||(r=new Intl.NumberFormat(e,t),Od[n]=r),r}let Pd={};function rZ(e,t={}){const{base:n,...r}=t,s=JSON.stringify([e,r]);let o=Pd[s];return o||(o=new Intl.RelativeTimeFormat(e,t),Pd[s]=o),o}let ii=null;function sZ(){return ii||(ii=new Intl.DateTimeFormat().resolvedOptions().locale,ii)}function oZ(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,s;try{r=Td(e).resolvedOptions(),s=e}catch{const u=e.substring(0,n);r=Td(u).resolvedOptions(),s=u}const{numberingSystem:o,calendar:i}=r;return[s,o,i]}}function iZ(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function aZ(e){const t=[];for(let n=1;n<=12;n++){const r=tt.utc(2016,n,1);t.push(e(r))}return t}function lZ(e){const t=[];for(let n=1;n<=7;n++){const r=tt.utc(2016,11,13+n);t.push(e(r))}return t}function sl(e,t,n,r,s){const o=e.listingMode(n);return o==="error"?null:o==="en"?r(t):s(t)}function uZ(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 cZ{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:s,floor:o,...i}=r;if(!n||Object.keys(i).length>0){const a={useGrouping:!1,...r};r.padTo>0&&(a.minimumIntegerDigits=r.padTo),this.inf=nZ(t,a)}}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):Qm(t,3);return Kt(n,this.padTo)}}}class dZ{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const i=-1*(t.offset/60),a=i>=0?`Etc/GMT+${i}`:`Etc/GMT${i}`;t.offset!==0&&Lr.create(a).valid?(s=a,this.dt=t):(s="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,s=t.zone.name):(s="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const o={...this.opts};o.timeZone=o.timeZone||s,this.dtf=Td(n,o)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class mZ{constructor(t,n,r){this.opts={style:"long",...r},!n&&rb()&&(this.rtf=rZ(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):AZ(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}class Ot{static fromOpts(t){return Ot.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,n,r,s=!1){const o=t||Gt.defaultLocale,i=o||(s?"en-US":sZ()),a=n||Gt.defaultNumberingSystem,u=r||Gt.defaultOutputCalendar;return new Ot(i,a,u,o)}static resetCache(){ii=null,Ad={},Od={},Pd={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:r}={}){return Ot.create(t,n,r)}constructor(t,n,r,s){const[o,i,a]=oZ(t);this.locale=o,this.numberingSystem=n||i||null,this.outputCalendar=r||a||null,this.intl=iZ(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=uZ(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:Ot.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1,r=!0){return sl(this,t,r,ab,()=>{const s=n?{month:t,day:"numeric"}:{month:t},o=n?"format":"standalone";return this.monthsCache[o][t]||(this.monthsCache[o][t]=aZ(i=>this.extract(i,s,"month"))),this.monthsCache[o][t]})}weekdays(t,n=!1,r=!0){return sl(this,t,r,cb,()=>{const s=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},o=n?"format":"standalone";return this.weekdaysCache[o][t]||(this.weekdaysCache[o][t]=lZ(i=>this.extract(i,s,"weekday"))),this.weekdaysCache[o][t]})}meridiems(t=!0){return sl(this,void 0,t,()=>db,()=>{if(!this.meridiemCache){const n={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[tt.utc(2016,11,13,9),tt.utc(2016,11,13,19)].map(r=>this.extract(r,n,"dayperiod"))}return this.meridiemCache})}eras(t,n=!0){return sl(this,t,n,mb,()=>{const r={era:t};return this.eraCache[t]||(this.eraCache[t]=[tt.utc(-40,1,1),tt.utc(2017,1,1)].map(s=>this.extract(s,r,"era"))),this.eraCache[t]})}extract(t,n,r){const s=this.dtFormatter(t,n),o=s.formatToParts(),i=o.find(a=>a.type.toLowerCase()===r);return i?i.value:null}numberFormatter(t={}){return new cZ(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new dZ(t,this.intl,n)}relFormatter(t={}){return new mZ(this.intl,this.isEnglish(),t)}listFormatter(t={}){return tZ(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}}let zc=null;class gn extends ea{static get utcInstance(){return zc===null&&(zc=new gn(0)),zc}static instance(t){return t===0?gn.utcInstance:new gn(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new gn(Ou(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Ei(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Ei(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return Ei(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 fZ extends ea{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 es(e,t){if(ct(e)||e===null)return t;if(e instanceof ea)return e;if(pZ(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Au.instance:n==="utc"||n==="gmt"?gn.utcInstance:gn.parseSpecifier(n)||Lr.create(e)}else return Os(e)?gn.instance(e):typeof e=="object"&&e.offset&&typeof e.offset=="number"?e:new fZ(e)}let Hh=()=>Date.now(),qh="system",Wh=null,Gh=null,Kh=null,Zh=60,Yh;class Gt{static get now(){return Hh}static set now(t){Hh=t}static set defaultZone(t){qh=t}static get defaultZone(){return es(qh,Au.instance)}static get defaultLocale(){return Wh}static set defaultLocale(t){Wh=t}static get defaultNumberingSystem(){return Gh}static set defaultNumberingSystem(t){Gh=t}static get defaultOutputCalendar(){return Kh}static set defaultOutputCalendar(t){Kh=t}static get twoDigitCutoffYear(){return Zh}static set twoDigitCutoffYear(t){Zh=t%100}static get throwOnInvalid(){return Yh}static set throwOnInvalid(t){Yh=t}static resetCaches(){Ot.resetCache(),Lr.resetCache()}}function ct(e){return typeof e=="undefined"}function Os(e){return typeof e=="number"}function Tu(e){return typeof e=="number"&&e%1===0}function pZ(e){return typeof e=="string"}function hZ(e){return Object.prototype.toString.call(e)==="[object Date]"}function rb(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function _Z(e){return Array.isArray(e)?e:[e]}function Jh(e,t,n){if(e.length!==0)return e.reduce((r,s)=>{const o=[t(s),s];return r&&n(r[0],o[0])===r[0]?r:o},null)[1]}function gZ(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function ko(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Or(e,t,n){return Tu(e)&&e>=t&&e<=n}function yZ(e,t){return e-t*Math.floor(e/t)}function Kt(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function Xr(e){if(!(ct(e)||e===null||e===""))return parseInt(e,10)}function vs(e){if(!(ct(e)||e===null||e===""))return parseFloat(e)}function Xm(e){if(!(ct(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Qm(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function ta(e){return e%4===0&&(e%100!==0||e%400===0)}function ki(e){return ta(e)?366:365}function Ul(e,t){const n=yZ(t-1,12)+1,r=e+(t-n)/12;return n===2?ta(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function ef(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(e.year,e.month-1,e.day)),+t}function jl(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return t===4||r===3?53:52}function Dd(e){return e>99?e:e>Gt.twoDigitCutoffYear?1900+e:2e3+e}function sb(e,t,n,r=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);const i={timeZoneName:t,...o},a=new Intl.DateTimeFormat(n,i).formatToParts(s).find(u=>u.type.toLowerCase()==="timezonename");return a?a.value:null}function Ou(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,s=n<0||Object.is(n,-0)?-r:r;return n*60+s}function ob(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new Un(`Invalid unit value ${e}`);return t}function Hl(e,t){const n={};for(const r in e)if(ko(e,r)){const s=e[r];if(s==null)continue;n[t(r)]=ob(s)}return n}function Ei(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${Kt(n,2)}:${Kt(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${Kt(n,2)}${Kt(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Pu(e){return gZ(e,["hour","minute","second","millisecond"])}const vZ=["January","February","March","April","May","June","July","August","September","October","November","December"],ib=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],bZ=["J","F","M","A","M","J","J","A","S","O","N","D"];function ab(e){switch(e){case"narrow":return[...bZ];case"short":return[...ib];case"long":return[...vZ];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 lb=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ub=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],wZ=["M","T","W","T","F","S","S"];function cb(e){switch(e){case"narrow":return[...wZ];case"short":return[...ub];case"long":return[...lb];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const db=["AM","PM"],CZ=["Before Christ","Anno Domini"],zZ=["BC","AD"],xZ=["B","A"];function mb(e){switch(e){case"narrow":return[...xZ];case"short":return[...zZ];case"long":return[...CZ];default:return null}}function kZ(e){return db[e.hour<12?0:1]}function EZ(e,t){return cb(t)[e.weekday-1]}function SZ(e,t){return ab(t)[e.month-1]}function $Z(e,t){return mb(t)[e.year<0?0:1]}function AZ(e,t,n="always",r=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&o){const f=e==="days";switch(t){case 1:return f?"tomorrow":`next ${s[e][0]}`;case-1:return f?"yesterday":`last ${s[e][0]}`;case 0:return f?"today":`this ${s[e][0]}`}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),u=a===1,c=s[e],d=r?u?c[1]:c[2]||c[1]:u?s[e][0]:e;return i?`${a} ${d} ago`:`in ${a} ${d}`}function Xh(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const TZ={D:Bl,DD:N1,DDD:M1,DDDD:V1,t:B1,tt:U1,ttt:j1,tttt:H1,T:q1,TT:W1,TTT:G1,TTTT:K1,f:Z1,ff:J1,fff:Q1,ffff:tb,F:Y1,FF:X1,FFF:eb,FFFF:nb};class dn{static create(t,n={}){return new dn(t,n)}static parseFormat(t){let n=null,r="",s=!1;const o=[];for(let i=0;i<t.length;i++){const a=t.charAt(i);a==="'"?(r.length>0&&o.push({literal:s||/^\s+$/.test(r),val:r}),n=null,r="",s=!s):s||a===n?r+=a:(r.length>0&&o.push({literal:/^\s+$/.test(r),val:r}),r=a,n=a)}return r.length>0&&o.push({literal:s||/^\s+$/.test(r),val:r}),o}static macroTokenToFormatOpts(t){return TZ[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,{...this.opts,...n}).format()}formatDateTime(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n}).format()}formatDateTimeParts(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n}).formatToParts()}formatInterval(t,n={}){return this.loc.dtFormatter(t.start,{...this.opts,...n}).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n}).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return Kt(t,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(p,h)=>this.loc.extract(t,p,h),i=p=>t.isOffsetFixed&&t.offset===0&&p.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,p.format):"",a=()=>r?kZ(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(p,h)=>r?SZ(t,p):o(h?{month:p}:{month:p,day:"numeric"},"month"),c=(p,h)=>r?EZ(t,p):o(h?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),d=p=>{const h=dn.macroTokenToFormatOpts(p);return h?this.formatWithSystemDefault(t,h):p},f=p=>r?$Z(t,p):o({era:p},"era"),m=p=>{switch(p){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return s?o({day:"numeric"},"day"):this.num(t.day);case"dd":return s?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return s?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return s?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return s?o({month:"numeric"},"month"):this.num(t.month);case"MM":return s?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return s?o({year:"numeric"},"year"):this.num(t.year);case"yy":return s?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return s?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return s?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return d(p)}};return Xh(dn.parseFormat(n),m)}formatDurationFromString(t,n){const r=u=>{switch(u[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=u=>c=>{const d=r(c);return d?this.num(u.get(d),c.length):c},o=dn.parseFormat(n),i=o.reduce((u,{literal:c,val:d})=>c?u:u.concat(d),[]),a=t.shiftTo(...i.map(r).filter(u=>u));return Xh(o,s(a))}}class sr{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const fb=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Do(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function Fo(...e){return t=>e.reduce(([n,r,s],o)=>{const[i,a,u]=o(t,s);return[{...n,...i},a||r,u]},[{},null,1]).slice(0,2)}function Io(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const s=n.exec(e);if(s)return r(s)}return[null,null]}function pb(...e){return(t,n)=>{const r={};let s;for(s=0;s<e.length;s++)r[e[s]]=Xr(t[n+s]);return[r,null,n+s]}}const hb=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,OZ=`(?:${hb.source}?(?:\\[(${fb.source})\\])?)?`,tf=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,_b=RegExp(`${tf.source}${OZ}`),nf=RegExp(`(?:T${_b.source})?`),PZ=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,DZ=/(\d{4})-?W(\d\d)(?:-?(\d))?/,FZ=/(\d{4})-?(\d{3})/,IZ=pb("weekYear","weekNumber","weekDay"),RZ=pb("year","ordinal"),LZ=/(\d{4})-(\d\d)-(\d\d)/,gb=RegExp(`${tf.source} ?(?:${hb.source}|(${fb.source}))?`),NZ=RegExp(`(?: ${gb.source})?`);function fo(e,t,n){const r=e[t];return ct(r)?n:Xr(r)}function MZ(e,t){return[{year:fo(e,t),month:fo(e,t+1,1),day:fo(e,t+2,1)},null,t+3]}function Ro(e,t){return[{hours:fo(e,t,0),minutes:fo(e,t+1,0),seconds:fo(e,t+2,0),milliseconds:Xm(e[t+3])},null,t+4]}function na(e,t){const n=!e[t]&&!e[t+1],r=Ou(e[t+1],e[t+2]),s=n?null:gn.instance(r);return[{},s,t+3]}function ra(e,t){const n=e[t]?Lr.create(e[t]):null;return[{},n,t+1]}const VZ=RegExp(`^T?${tf.source}$`),BZ=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function UZ(e){const[t,n,r,s,o,i,a,u,c]=e,d=t[0]==="-",f=u&&u[0]==="-",m=(p,h=!1)=>p!==void 0&&(h||p&&d)?-p:p;return[{years:m(vs(n)),months:m(vs(r)),weeks:m(vs(s)),days:m(vs(o)),hours:m(vs(i)),minutes:m(vs(a)),seconds:m(vs(u),u==="-0"),milliseconds:m(Xm(c),f)}]}const jZ={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function rf(e,t,n,r,s,o,i){const a={year:t.length===2?Dd(Xr(t)):Xr(t),month:ib.indexOf(n)+1,day:Xr(r),hour:Xr(s),minute:Xr(o)};return i&&(a.second=Xr(i)),e&&(a.weekday=e.length>3?lb.indexOf(e)+1:ub.indexOf(e)+1),a}const HZ=/^(?:(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 qZ(e){const[,t,n,r,s,o,i,a,u,c,d,f]=e,m=rf(t,s,r,n,o,i,a);let p;return u?p=jZ[u]:c?p=0:p=Ou(d,f),[m,new gn(p)]}function WZ(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const GZ=/^(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$/,KZ=/^(Monday|Tuesday|Wednesday|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$/,ZZ=/^(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 Qh(e){const[,t,n,r,s,o,i,a]=e;return[rf(t,s,r,n,o,i,a),gn.utcInstance]}function YZ(e){const[,t,n,r,s,o,i,a]=e;return[rf(t,a,n,r,s,o,i),gn.utcInstance]}const JZ=Do(PZ,nf),XZ=Do(DZ,nf),QZ=Do(FZ,nf),eY=Do(_b),yb=Fo(MZ,Ro,na,ra),tY=Fo(IZ,Ro,na,ra),nY=Fo(RZ,Ro,na,ra),rY=Fo(Ro,na,ra);function sY(e){return Io(e,[JZ,yb],[XZ,tY],[QZ,nY],[eY,rY])}function oY(e){return Io(WZ(e),[HZ,qZ])}function iY(e){return Io(e,[GZ,Qh],[KZ,Qh],[ZZ,YZ])}function aY(e){return Io(e,[BZ,UZ])}const lY=Fo(Ro);function uY(e){return Io(e,[VZ,lY])}const cY=Do(LZ,NZ),dY=Do(gb),mY=Fo(Ro,na,ra);function fY(e){return Io(e,[cY,yb],[dY,mY])}const pY="Invalid Duration",vb={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}},hY={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},...vb},Bn=146097/400,Js=146097/4800,_Y={years:{quarters:4,months:12,weeks:Bn/7,days:Bn,hours:Bn*24,minutes:Bn*24*60,seconds:Bn*24*60*60,milliseconds:Bn*24*60*60*1e3},quarters:{months:3,weeks:Bn/28,days:Bn/4,hours:Bn*24/4,minutes:Bn*24*60/4,seconds:Bn*24*60*60/4,milliseconds:Bn*24*60*60*1e3/4},months:{weeks:Js/7,days:Js,hours:Js*24,minutes:Js*24*60,seconds:Js*24*60*60,milliseconds:Js*24*60*60*1e3},...vb},ws=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],gY=ws.slice(0).reverse();function Gr(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new it(r)}function yY(e){return e<0?Math.floor(e):Math.ceil(e)}function bb(e,t,n,r,s){const o=e[s][n],i=t[n]/o,a=Math.sign(i)===Math.sign(r[s]),u=!a&&r[s]!==0&&Math.abs(i)<=1?yY(i):Math.trunc(i);r[s]+=u,t[n]-=u*o}function vY(e,t){gY.reduce((n,r)=>ct(t[r])?n:(n&&bb(e,t,n,t,r),r),null)}function bY(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}class it{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?_Y:hY;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||Ot.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return it.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new Un(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new it({values:Hl(t,it.normalizeUnit),loc:Ot.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Os(t))return it.fromMillis(t);if(it.isDuration(t))return t;if(typeof t=="object")return it.fromObject(t);throw new Un(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=aY(t);return r?it.fromObject(r,n):it.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=uY(t);return r?it.fromObject(r,n):it.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new Un("need to specify a reason the Duration is invalid");const r=t instanceof sr?t:new sr(t,n);if(Gt.throwOnInvalid)throw new KK(r);return new it({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new L1(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?dn.create(this.loc,r).formatDurationFromString(this,t):pY}toHuman(t={}){const n=ws.map(r=>{const s=this.values[r];return ct(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:r.slice(0,-1)}).format(s)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...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+=Qm(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={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t};const r=this.shiftTo("hours","minutes","seconds","milliseconds");let s=t.format==="basic"?"hhmm":"hh:mm";(!t.suppressSeconds||r.seconds!==0||r.milliseconds!==0)&&(s+=t.format==="basic"?"ss":":ss",(!t.suppressMilliseconds||r.milliseconds!==0)&&(s+=".SSS"));let o=r.toFormat(s);return t.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=it.fromDurationLike(t),r={};for(const s of ws)(ko(n.values,s)||ko(this.values,s))&&(r[s]=n.get(s)+this.get(s));return Gr(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=it.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=ob(t(this.values[r],r));return Gr(this,{values:n},!0)}get(t){return this[it.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...Hl(t,it.normalizeUnit)};return Gr(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:s}={}){const i={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:s,conversionAccuracy:r};return Gr(this,i)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return vY(this.matrix,t),Gr(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=bY(this.normalize().shiftToAll().toObject());return Gr(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(i=>it.normalizeUnit(i));const n={},r={},s=this.toObject();let o;for(const i of ws)if(t.indexOf(i)>=0){o=i;let a=0;for(const c in r)a+=this.matrix[c][i]*r[c],r[c]=0;Os(s[i])&&(a+=s[i]);const u=Math.trunc(a);n[i]=u,r[i]=(a*1e3-u*1e3)/1e3;for(const c in s)ws.indexOf(c)>ws.indexOf(i)&&bb(this.matrix,s,c,n,i)}else Os(s[i])&&(r[i]=s[i]);for(const i in r)r[i]!==0&&(n[o]+=i===o?r[i]:r[i]/this.matrix[o][i]);return Gr(this,{values:n},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}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 Gr(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,s){return r===void 0||r===0?s===void 0||s===0:r===s}for(const r of ws)if(!n(this.values[r],t.values[r]))return!1;return!0}}const Xs="Invalid Interval";function wY(e,t){return!e||!e.isValid?Vt.invalid("missing or invalid start"):!t||!t.isValid?Vt.invalid("missing or invalid end"):t<e?Vt.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 Vt{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 Un("need to specify a reason the Interval is invalid");const r=t instanceof sr?t:new sr(t,n);if(Gt.throwOnInvalid)throw new GK(r);return new Vt({invalid:r})}static fromDateTimes(t,n){const r=Zo(t),s=Zo(n),o=wY(r,s);return o==null?new Vt({start:r,end:s}):o}static after(t,n){const r=it.fromDurationLike(n),s=Zo(t);return Vt.fromDateTimes(s,s.plus(r))}static before(t,n){const r=it.fromDurationLike(n),s=Zo(t);return Vt.fromDateTimes(s.minus(r),s)}static fromISO(t,n){const[r,s]=(t||"").split("/",2);if(r&&s){let o,i;try{o=tt.fromISO(r,n),i=o.isValid}catch{i=!1}let a,u;try{a=tt.fromISO(s,n),u=a.isValid}catch{u=!1}if(i&&u)return Vt.fromDateTimes(o,a);if(i){const c=it.fromISO(s,n);if(c.isValid)return Vt.after(o,c)}else if(u){const c=it.fromISO(r,n);if(c.isValid)return Vt.before(a,c)}}return Vt.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(t),r=this.end.startOf(t);return Math.floor(r.diff(n,t).get(t))+(r.valueOf()!==this.end.valueOf())}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?Vt.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(Zo).filter(i=>this.contains(i)).sort(),r=[];let{s}=this,o=0;for(;s<this.e;){const i=n[o]||this.e,a=+i>+this.e?this.e:i;r.push(Vt.fromDateTimes(s,a)),s=a,o+=1}return r}splitBy(t){const n=it.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,s=1,o;const i=[];for(;r<this.e;){const a=this.start.plus(n.mapUnits(u=>u*s));o=+a>+this.e?this.e:a,i.push(Vt.fromDateTimes(r,o)),r=o,s+=1}return i}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:Vt.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return Vt.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((s,o)=>s.s-o.s).reduce(([s,o],i)=>o?o.overlaps(i)||o.abutsStart(i)?[s,o.union(i)]:[s.concat([o]),i]:[s,i],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const s=[],o=t.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),i=Array.prototype.concat(...o),a=i.sort((u,c)=>u.time-c.time);for(const u of a)r+=u.type==="s"?1:-1,r===1?n=u.time:(n&&+n!=+u.time&&s.push(Vt.fromDateTimes(n,u.time)),n=null);return Vt.merge(s)}difference(...t){return Vt.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()})`:Xs}toLocaleString(t=Bl,n={}){return this.isValid?dn.create(this.s.loc.clone(n),t).formatInterval(this):Xs}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Xs}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Xs}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Xs}toFormat(t,{separator:n=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Xs}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):it.invalid(this.invalidReason)}mapEndpoints(t){return Vt.fromDateTimes(t(this.s),t(this.e))}}class ol{static hasDST(t=Gt.defaultZone){const n=tt.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return Lr.isValidZone(t)}static normalizeZone(t){return es(t,Gt.defaultZone)}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:o="gregory"}={}){return(s||Ot.create(n,r,o)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:o="gregory"}={}){return(s||Ot.create(n,r,o)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||Ot.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||Ot.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Ot.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return Ot.create(n,null,"gregory").eras(t)}static features(){return{relative:rb()}}}function e_(e,t){const n=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(it.fromMillis(r).as("days"))}function CY(e,t,n){const r=[["years",(u,c)=>c.year-u.year],["quarters",(u,c)=>c.quarter-u.quarter+(c.year-u.year)*4],["months",(u,c)=>c.month-u.month+(c.year-u.year)*12],["weeks",(u,c)=>{const d=e_(u,c);return(d-d%7)/7}],["days",e_]],s={},o=e;let i,a;for(const[u,c]of r)n.indexOf(u)>=0&&(i=u,s[u]=c(e,t),a=o.plus(s),a>t?(s[u]--,e=o.plus(s)):e=a);return[e,s,a,i]}function zY(e,t,n,r){let[s,o,i,a]=CY(e,t,n);const u=t-s,c=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);c.length===0&&(i<t&&(i=s.plus({[a]:1})),i!==s&&(o[a]=(o[a]||0)+u/(i-s)));const d=it.fromObject(o,r);return c.length>0?it.fromMillis(u,r).shiftTo(...c).plus(d):d}const sf={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"},t_={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]},xY=sf.hanidec.replace(/[\[|\]]/g,"").split("");function kY(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(sf.hanidec)!==-1)t+=xY.indexOf(e[n]);else for(const s in t_){const[o,i]=t_[s];r>=o&&r<=i&&(t+=r-o)}}return parseInt(t,10)}else return t}function Qn({numberingSystem:e},t=""){return new RegExp(`${sf[e||"latn"]}${t}`)}const EY="missing Intl.DateTimeFormat.formatToParts support";function yt(e,t=n=>n){return{regex:e,deser:([n])=>t(kY(n))}}const SY=String.fromCharCode(160),wb=`[ ${SY}]`,Cb=new RegExp(wb,"g");function $Y(e){return e.replace(/\./g,"\\.?").replace(Cb,wb)}function n_(e){return e.replace(/\./g,"").replace(Cb," ").toLowerCase()}function er(e,t){return e===null?null:{regex:RegExp(e.map($Y).join("|")),deser:([n])=>e.findIndex(r=>n_(n)===n_(r))+t}}function r_(e,t){return{regex:e,deser:([,n,r])=>Ou(n,r),groups:t}}function il(e){return{regex:e,deser:([t])=>t}}function AY(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function TY(e,t){const n=Qn(t),r=Qn(t,"{2}"),s=Qn(t,"{3}"),o=Qn(t,"{4}"),i=Qn(t,"{6}"),a=Qn(t,"{1,2}"),u=Qn(t,"{1,3}"),c=Qn(t,"{1,6}"),d=Qn(t,"{1,9}"),f=Qn(t,"{2,4}"),m=Qn(t,"{4,6}"),p=w=>({regex:RegExp(AY(w.val)),deser:([v])=>v,literal:!0}),_=(w=>{if(e.literal)return p(w);switch(w.val){case"G":return er(t.eras("short",!1),0);case"GG":return er(t.eras("long",!1),0);case"y":return yt(c);case"yy":return yt(f,Dd);case"yyyy":return yt(o);case"yyyyy":return yt(m);case"yyyyyy":return yt(i);case"M":return yt(a);case"MM":return yt(r);case"MMM":return er(t.months("short",!0,!1),1);case"MMMM":return er(t.months("long",!0,!1),1);case"L":return yt(a);case"LL":return yt(r);case"LLL":return er(t.months("short",!1,!1),1);case"LLLL":return er(t.months("long",!1,!1),1);case"d":return yt(a);case"dd":return yt(r);case"o":return yt(u);case"ooo":return yt(s);case"HH":return yt(r);case"H":return yt(a);case"hh":return yt(r);case"h":return yt(a);case"mm":return yt(r);case"m":return yt(a);case"q":return yt(a);case"qq":return yt(r);case"s":return yt(a);case"ss":return yt(r);case"S":return yt(u);case"SSS":return yt(s);case"u":return il(d);case"uu":return il(a);case"uuu":return yt(n);case"a":return er(t.meridiems(),0);case"kkkk":return yt(o);case"kk":return yt(f,Dd);case"W":return yt(a);case"WW":return yt(r);case"E":case"c":return yt(n);case"EEE":return er(t.weekdays("short",!1,!1),1);case"EEEE":return er(t.weekdays("long",!1,!1),1);case"ccc":return er(t.weekdays("short",!0,!1),1);case"cccc":return er(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return r_(new RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return r_(new RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return il(/[a-z_+-/]{1,256}?/i);case" ":return il(/[^\S\n\r]/);default:return p(w)}})(e)||{invalidReason:EY};return _.token=e,_}const OY={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"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function PY(e,t){const{type:n,value:r}=e;if(n==="literal"){const i=/^\s+$/.test(r);return{literal:!i,val:i?" ":r}}const s=t[n];let o=OY[n];if(typeof o=="object"&&(o=o[s]),o)return{literal:!1,val:o}}function DY(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function FY(e,t,n){const r=e.match(t);if(r){const s={};let o=1;for(const i in n)if(ko(n,i)){const a=n[i],u=a.groups?a.groups+1:1;!a.literal&&a.token&&(s[a.token.val[0]]=a.deser(r.slice(o,o+u))),o+=u}return[r,s]}else return[r,{}]}function IY(e){const t=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return ct(e.z)||(n=Lr.create(e.z)),ct(e.Z)||(n||(n=new gn(e.Z)),r=e.Z),ct(e.q)||(e.M=(e.q-1)*3+1),ct(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),ct(e.u)||(e.S=Xm(e.u)),[Object.keys(e).reduce((o,i)=>{const a=t(i);return a&&(o[a]=e[i]),o},{}),n,r]}let xc=null;function RY(){return xc||(xc=tt.fromMillis(1555555555555)),xc}function LY(e,t){if(e.literal)return e;const n=dn.macroTokenToFormatOpts(e.val),r=kb(n,t);return r==null||r.includes(void 0)?e:r}function zb(e,t){return Array.prototype.concat(...e.map(n=>LY(n,t)))}function xb(e,t,n){const r=zb(dn.parseFormat(n),e),s=r.map(i=>TY(i,e)),o=s.find(i=>i.invalidReason);if(o)return{input:t,tokens:r,invalidReason:o.invalidReason};{const[i,a]=DY(s),u=RegExp(i,"i"),[c,d]=FY(t,u,a),[f,m,p]=d?IY(d):[null,null,void 0];if(ko(d,"a")&&ko(d,"H"))throw new oi("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:u,rawMatches:c,matches:d,result:f,zone:m,specificOffset:p}}}function NY(e,t,n){const{result:r,zone:s,specificOffset:o,invalidReason:i}=xb(e,t,n);return[r,s,o,i]}function kb(e,t){return e?dn.create(t,e).formatDateTimeParts(RY()).map(s=>PY(s,e)):null}const Eb=[0,31,59,90,120,151,181,212,243,273,304,334],Sb=[0,31,60,91,121,152,182,213,244,274,305,335];function Hn(e,t){return new sr("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function $b(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return s===0?7:s}function Ab(e,t,n){return n+(ta(e)?Sb:Eb)[t-1]}function Tb(e,t){const n=ta(e)?Sb:Eb,r=n.findIndex(o=>o<t),s=t-n[r];return{month:r+1,day:s}}function Fd(e){const{year:t,month:n,day:r}=e,s=Ab(t,n,r),o=$b(t,n,r);let i=Math.floor((s-o+10)/7),a;return i<1?(a=t-1,i=jl(a)):i>jl(t)?(a=t+1,i=1):a=t,{weekYear:a,weekNumber:i,weekday:o,...Pu(e)}}function s_(e){const{weekYear:t,weekNumber:n,weekday:r}=e,s=$b(t,1,4),o=ki(t);let i=n*7+r-s-3,a;i<1?(a=t-1,i+=ki(a)):i>o?(a=t+1,i-=ki(t)):a=t;const{month:u,day:c}=Tb(a,i);return{year:a,month:u,day:c,...Pu(e)}}function kc(e){const{year:t,month:n,day:r}=e,s=Ab(t,n,r);return{year:t,ordinal:s,...Pu(e)}}function o_(e){const{year:t,ordinal:n}=e,{month:r,day:s}=Tb(t,n);return{year:t,month:r,day:s,...Pu(e)}}function MY(e){const t=Tu(e.weekYear),n=Or(e.weekNumber,1,jl(e.weekYear)),r=Or(e.weekday,1,7);return t?n?r?!1:Hn("weekday",e.weekday):Hn("week",e.week):Hn("weekYear",e.weekYear)}function VY(e){const t=Tu(e.year),n=Or(e.ordinal,1,ki(e.year));return t?n?!1:Hn("ordinal",e.ordinal):Hn("year",e.year)}function Ob(e){const t=Tu(e.year),n=Or(e.month,1,12),r=Or(e.day,1,Ul(e.year,e.month));return t?n?r?!1:Hn("day",e.day):Hn("month",e.month):Hn("year",e.year)}function Pb(e){const{hour:t,minute:n,second:r,millisecond:s}=e,o=Or(t,0,23)||t===24&&n===0&&r===0&&s===0,i=Or(n,0,59),a=Or(r,0,59),u=Or(s,0,999);return o?i?a?u?!1:Hn("millisecond",s):Hn("second",r):Hn("minute",n):Hn("hour",t)}const Ec="Invalid DateTime",i_=864e13;function al(e){return new sr("unsupported zone",`the zone "${e.name}" is not supported`)}function Sc(e){return e.weekData===null&&(e.weekData=Fd(e.c)),e.weekData}function Go(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new tt({...n,...t,old:n})}function Db(e,t,n){let r=e-t*60*1e3;const s=n.offset(r);if(t===s)return[r,t];r-=(s-t)*60*1e3;const o=n.offset(r);return s===o?[r,s]:[e-Math.min(s,o)*60*1e3,Math.max(s,o)]}function a_(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 wl(e,t,n){return Db(ef(e),t,n)}function l_(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:r,month:s,day:Math.min(e.c.day,Ul(r,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},i=it.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=ef(o);let[u,c]=Db(a,n,e.zone);return i!==0&&(u+=i,c=e.zone.offset(u)),{ts:u,o:c}}function Ko(e,t,n,r,s,o){const{setZone:i,zone:a}=n;if(e&&Object.keys(e).length!==0||t){const u=t||a,c=tt.fromObject(e,{...n,zone:u,specificOffset:o});return i?c:c.setZone(a)}else return tt.invalid(new sr("unparsable",`the input "${s}" can't be parsed as ${r}`))}function ll(e,t,n=!0){return e.isValid?dn.create(Ot.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function $c(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=Kt(e.c.year,n?6:4),t?(r+="-",r+=Kt(e.c.month),r+="-",r+=Kt(e.c.day)):(r+=Kt(e.c.month),r+=Kt(e.c.day)),r}function u_(e,t,n,r,s,o){let i=Kt(e.c.hour);return t?(i+=":",i+=Kt(e.c.minute),(e.c.second!==0||!n)&&(i+=":")):i+=Kt(e.c.minute),(e.c.second!==0||!n)&&(i+=Kt(e.c.second),(e.c.millisecond!==0||!r)&&(i+=".",i+=Kt(e.c.millisecond,3))),s&&(e.isOffsetFixed&&e.offset===0&&!o?i+="Z":e.o<0?(i+="-",i+=Kt(Math.trunc(-e.o/60)),i+=":",i+=Kt(Math.trunc(-e.o%60))):(i+="+",i+=Kt(Math.trunc(e.o/60)),i+=":",i+=Kt(Math.trunc(e.o%60)))),o&&(i+="["+e.zone.ianaName+"]"),i}const Fb={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},BY={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},UY={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Ib=["year","month","day","hour","minute","second","millisecond"],jY=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],HY=["year","ordinal","hour","minute","second","millisecond"];function c_(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 L1(e);return t}function d_(e,t){const n=es(t.zone,Gt.defaultZone),r=Ot.fromObject(t),s=Gt.now();let o,i;if(ct(e.year))o=s;else{for(const c of Ib)ct(e[c])&&(e[c]=Fb[c]);const a=Ob(e)||Pb(e);if(a)return tt.invalid(a);const u=n.offset(s);[o,i]=wl(e,u,n)}return new tt({ts:o,zone:n,loc:r,o:i})}function m_(e,t,n){const r=ct(n.round)?!0:n.round,s=(i,a)=>(i=Qm(i,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(i,a)),o=i=>n.calendary?t.hasSame(e,i)?0:t.startOf(i).diff(e.startOf(i),i).get(i):t.diff(e,i).get(i);if(n.unit)return s(o(n.unit),n.unit);for(const i of n.units){const a=o(i);if(Math.abs(a)>=1)return s(a,i)}return s(e>t?-0:0,n.units[n.units.length-1])}function f_(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 tt{constructor(t){const n=t.zone||Gt.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new sr("invalid input"):null)||(n.isValid?null:al(n));this.ts=ct(t.ts)?Gt.now():t.ts;let s=null,o=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[s,o]=[t.old.c,t.old.o];else{const a=n.offset(this.ts);s=a_(this.ts,a),r=Number.isNaN(s.year)?new sr("invalid input"):null,s=r?null:s,o=r?null:a}this._zone=n,this.loc=t.loc||Ot.create(),this.invalid=r,this.weekData=null,this.c=s,this.o=o,this.isLuxonDateTime=!0}static now(){return new tt({})}static local(){const[t,n]=f_(arguments),[r,s,o,i,a,u,c]=n;return d_({year:r,month:s,day:o,hour:i,minute:a,second:u,millisecond:c},t)}static utc(){const[t,n]=f_(arguments),[r,s,o,i,a,u,c]=n;return t.zone=gn.utcInstance,d_({year:r,month:s,day:o,hour:i,minute:a,second:u,millisecond:c},t)}static fromJSDate(t,n={}){const r=hZ(t)?t.valueOf():NaN;if(Number.isNaN(r))return tt.invalid("invalid input");const s=es(n.zone,Gt.defaultZone);return s.isValid?new tt({ts:r,zone:s,loc:Ot.fromObject(n)}):tt.invalid(al(s))}static fromMillis(t,n={}){if(Os(t))return t<-i_||t>i_?tt.invalid("Timestamp out of range"):new tt({ts:t,zone:es(n.zone,Gt.defaultZone),loc:Ot.fromObject(n)});throw new Un(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Os(t))return new tt({ts:t*1e3,zone:es(n.zone,Gt.defaultZone),loc:Ot.fromObject(n)});throw new Un("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=es(n.zone,Gt.defaultZone);if(!r.isValid)return tt.invalid(al(r));const s=Gt.now(),o=ct(n.specificOffset)?r.offset(s):n.specificOffset,i=Hl(t,c_),a=!ct(i.ordinal),u=!ct(i.year),c=!ct(i.month)||!ct(i.day),d=u||c,f=i.weekYear||i.weekNumber,m=Ot.fromObject(n);if((d||a)&&f)throw new oi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&a)throw new oi("Can't mix ordinal dates with month/day");const p=f||i.weekday&&!d;let h,_,w=a_(s,o);p?(h=jY,_=BY,w=Fd(w)):a?(h=HY,_=UY,w=kc(w)):(h=Ib,_=Fb);let v=!1;for(const L of h){const F=i[L];ct(F)?v?i[L]=_[L]:i[L]=w[L]:v=!0}const b=p?MY(i):a?VY(i):Ob(i),k=b||Pb(i);if(k)return tt.invalid(k);const z=p?s_(i):a?o_(i):i,[S,T]=wl(z,o,r),M=new tt({ts:S,zone:r,o:T,loc:m});return i.weekday&&d&&t.weekday!==M.weekday?tt.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${M.toISO()}`):M}static fromISO(t,n={}){const[r,s]=sY(t);return Ko(r,s,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,s]=oY(t);return Ko(r,s,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,s]=iY(t);return Ko(r,s,n,"HTTP",n)}static fromFormat(t,n,r={}){if(ct(t)||ct(n))throw new Un("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:o=null}=r,i=Ot.fromOpts({locale:s,numberingSystem:o,defaultToEN:!0}),[a,u,c,d]=NY(i,t,n);return d?tt.invalid(d):Ko(a,u,r,`format ${n}`,t,c)}static fromString(t,n,r={}){return tt.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,s]=fY(t);return Ko(r,s,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new Un("need to specify a reason the DateTime is invalid");const r=t instanceof sr?t:new sr(t,n);if(Gt.throwOnInvalid)throw new WK(r);return new tt({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=kb(t,Ot.fromObject(n));return r?r.map(s=>s?s.val:null).join(""):null}static expandFormat(t,n={}){return zb(dn.parseFormat(t),Ot.fromObject(n)).map(s=>s.val).join("")}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?Sc(this).weekYear:NaN}get weekNumber(){return this.isValid?Sc(this).weekNumber:NaN}get weekday(){return this.isValid?Sc(this).weekday:NaN}get ordinal(){return this.isValid?kc(this.c).ordinal:NaN}get monthShort(){return this.isValid?ol.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ol.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ol.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ol.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 ta(this.year)}get daysInMonth(){return Ul(this.year,this.month)}get daysInYear(){return this.isValid?ki(this.year):NaN}get weeksInWeekYear(){return this.isValid?jl(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:s}=dn.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:s}}toUTC(t=0,n={}){return this.setZone(gn.instance(t),n)}toLocal(){return this.setZone(Gt.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=es(t,Gt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let s=this.ts;if(n||r){const o=t.offset(this.ts),i=this.toObject();[s]=wl(i,o,t)}return Go(this,{ts:s,zone:t})}else return tt.invalid(al(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const s=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return Go(this,{loc:s})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=Hl(t,c_),r=!ct(n.weekYear)||!ct(n.weekNumber)||!ct(n.weekday),s=!ct(n.ordinal),o=!ct(n.year),i=!ct(n.month)||!ct(n.day),a=o||i,u=n.weekYear||n.weekNumber;if((a||s)&&u)throw new oi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(i&&s)throw new oi("Can't mix ordinal dates with month/day");let c;r?c=s_({...Fd(this.c),...n}):ct(n.ordinal)?(c={...this.toObject(),...n},ct(n.day)&&(c.day=Math.min(Ul(c.year,c.month),c.day))):c=o_({...kc(this.c),...n});const[d,f]=wl(c,this.o,this.zone);return Go(this,{ts:d,o:f})}plus(t){if(!this.isValid)return this;const n=it.fromDurationLike(t);return Go(this,l_(this,n))}minus(t){if(!this.isValid)return this;const n=it.fromDurationLike(t).negate();return Go(this,l_(this,n))}startOf(t){if(!this.isValid)return this;const n={},r=it.normalizeUnit(t);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(r==="weeks"&&(n.weekday=1),r==="quarters"){const s=Math.ceil(this.month/3);n.month=(s-1)*3+1}return this.set(n)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,n={}){return this.isValid?dn.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Ec}toLocaleString(t=Bl,n={}){return this.isValid?dn.create(this.loc.clone(n),t).formatDateTime(this):Ec}toLocaleParts(t={}){return this.isValid?dn.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:s=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const i=t==="extended";let a=$c(this,i);return a+="T",a+=u_(this,i,n,r,s,o),a}toISODate({format:t="extended"}={}){return this.isValid?$c(this,t==="extended"):null}toISOWeekDate(){return ll(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:s=!1,extendedZone:o=!1,format:i="extended"}={}){return this.isValid?(s?"T":"")+u_(this,i==="extended",n,t,r,o):null}toRFC2822(){return ll(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ll(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?$c(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let s="HH:mm:ss.SSS";return(n||t)&&(r&&(s+=" "),n?s+="z":t&&(s+="ZZ")),ll(this,s,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Ec}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={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return it.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...r},o=_Z(n).map(it.normalizeUnit),i=t.valueOf()>this.valueOf(),a=i?this:t,u=i?t:this,c=zY(a,u,o,s);return i?c.negate():c}diffNow(t="milliseconds",n={}){return this.diff(tt.now(),t,n)}until(t){return this.isValid?Vt.fromDateTimes(this,t):this}hasSame(t,n){if(!this.isValid)return!1;const r=t.valueOf(),s=this.setZone(t.zone,{keepLocalTime:!0});return s.startOf(n)<=r&&r<=s.endOf(n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||tt.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let s=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(s=t.unit,o=void 0),m_(n,this.plus(r),{...t,numeric:"always",units:s,unit:o})}toRelativeCalendar(t={}){return this.isValid?m_(t.base||tt.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(tt.isDateTime))throw new Un("min requires all arguments be DateTimes");return Jh(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(tt.isDateTime))throw new Un("max requires all arguments be DateTimes");return Jh(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:s=null,numberingSystem:o=null}=r,i=Ot.fromOpts({locale:s,numberingSystem:o,defaultToEN:!0});return xb(i,t,n)}static fromStringExplain(t,n,r={}){return tt.fromFormatExplain(t,n,r)}static get DATE_SHORT(){return Bl}static get DATE_MED(){return N1}static get DATE_MED_WITH_WEEKDAY(){return ZK}static get DATE_FULL(){return M1}static get DATE_HUGE(){return V1}static get TIME_SIMPLE(){return B1}static get TIME_WITH_SECONDS(){return U1}static get TIME_WITH_SHORT_OFFSET(){return j1}static get TIME_WITH_LONG_OFFSET(){return H1}static get TIME_24_SIMPLE(){return q1}static get TIME_24_WITH_SECONDS(){return W1}static get TIME_24_WITH_SHORT_OFFSET(){return G1}static get TIME_24_WITH_LONG_OFFSET(){return K1}static get DATETIME_SHORT(){return Z1}static get DATETIME_SHORT_WITH_SECONDS(){return Y1}static get DATETIME_MED(){return J1}static get DATETIME_MED_WITH_SECONDS(){return X1}static get DATETIME_MED_WITH_WEEKDAY(){return YK}static get DATETIME_FULL(){return Q1}static get DATETIME_FULL_WITH_SECONDS(){return eb}static get DATETIME_HUGE(){return tb}static get DATETIME_HUGE_WITH_SECONDS(){return nb}}function Zo(e){if(tt.isDateTime(e))return e;if(e&&e.valueOf&&Os(e.valueOf()))return tt.fromJSDate(e);if(e&&typeof e=="object")return tt.fromObject(e);throw new Un(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const{t:Ac,locale:Tc}=mu.global,qY={durationInHours:function(e){const t=Math.floor(e/1e3);return t>3600?it.fromObject({seconds:t}).shiftTo("hours","minutes","seconds").toFormat("hh:mm:ss"):it.fromObject({seconds:t}).shiftTo("minutes","seconds").toFormat("mm:ss")},durationInDays:function(e){const t=Math.floor(e/6e4);return t>1440?it.fromObject({minutes:t}).shiftTo("days","hours","minutes").toHuman():t>60?it.fromObject({minutes:t}).shiftTo("hours","minutes").toHuman():it.fromObject({minutes:t}).shiftTo("minutes").toHuman()},date:function(e){return tt.fromISO(e).setLocale(Tc.value).toLocaleString(tt.DATE_FULL)},datetime:function(e){return tt.fromISO(e).setLocale(Tc.value).toLocaleString(tt.DATETIME_MED)},timeFromNow:function(e){var t=tt.now().diff(tt.fromISO(e));return this.durationInDays(t.as("milliseconds"))},number:function(e){return e.toLocaleString(Tc.value)},channels:function(e){return e===1?Ac("filter.mono"):e===2?Ac("filter.stereo"):e?Ac("filter.channels",{value:e}):""}},WY={mdiAccountMusic:DG,mdiAlbum:FG,mdiArrowCollapseDown:RG,mdiBookOpenPageVariant:LG,mdiBookOpenVariant:NG,mdiBookshelf:MG,mdiBroadcast:VG,mdiCancel:BG,mdiCast:UG,mdiCastVariant:jG,mdiCellphone:HG,mdiCheck:qG,mdiChevronDown:WG,mdiChevronUp:GG,mdiContentSave:KG,mdiDelete:ZG,mdiDeleteEmpty:YG,mdiDotsHorizontal:JG,mdiDotsVertical:XG,mdiDragHorizontal:QG,mdiFastForward:eK,mdiFileMusic:tK,mdiFileOutline:nK,mdiFire:rK,mdiFolder:sK,mdiFolderOpen:oK,mdiMagnify:iK,mdiMenu:aK,mdiMicrophone:lK,mdiMusic:uK,mdiMusicBoxMultiple:cK,mdiOpenInNew:dK,mdiPause:mK,mdiPencil:fK,mdiPipe:pK,mdiPlay:hK,mdiPlaylistPlay:_K,mdiPlaylistPlus:gK,mdiRadio:yK,mdiRadioTower:vK,mdiRefresh:bK,mdiRepeat:wK,mdiRepeatOff:CK,mdiRepeatOnce:zK,mdiRewind:xK,mdiRss:kK,mdiServer:EK,mdiShuffle:SK,mdiShuffleDisabled:$K,mdiSkipBackward:AK,mdiSkipForward:TK,mdiSpeaker:OK,mdiSpotify:PK,mdiStop:DK,mdiSubdirectoryArrowLeft:FK,mdiVolumeHigh:IK,mdiVolumeOff:RK,mdiWeb:LK},GY={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(bo,e)}},show_burger_menu:{get(){return this.$store.state.show_burger_menu},set(e){this.$store.commit(vo,e)}}},methods:{open_link:function(){this.show_burger_menu&&this.$store.commit(vo,!1),this.show_player_menu&&this.$store.commit(bo,!1),this.$router.push({path:this.to})},full_path:function(){return this.$router.resolve(this.to).href}}},KY=["href"];function ZY(e,t,n,r,s,o){return E(),P("a",{class:We(["navbar-item",{"is-active":o.is_active}]),href:o.full_path(),onClick:t[0]||(t[0]=gt(i=>o.open_link(),["stop","prevent"]))},[vt(e.$slots,"default")],10,KY)}var Rb=pe(GY,[["render",ZY]]);const YY={name:"NavbarTop",components:{NavbarItemLink:Rb},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(vo,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(Ki,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}}},JY={class:"navbar-brand"},XY={class:"icon"},QY={class:"icon"},eJ={class:"icon"},tJ={class:"icon"},nJ={class:"icon"},rJ={class:"icon"},sJ={class:"icon"},oJ=l("span",null,null,-1),iJ=l("span",null,null,-1),aJ=l("span",null,null,-1),lJ=[oJ,iJ,aJ],uJ=l("div",{class:"navbar-start"},null,-1),cJ={class:"navbar-end"},dJ={class:"navbar-link is-arrowless"},mJ={class:"icon is-hidden-touch"},fJ=["textContent"],pJ={class:"navbar-dropdown is-right"},hJ={class:"icon"},_J=["textContent"],gJ={class:"icon"},yJ=["textContent"],vJ=["textContent"],bJ=["textContent"],wJ=["textContent"],CJ=["textContent"],zJ={class:"icon"},xJ=["textContent"],kJ={class:"icon"},EJ=["textContent"],SJ={class:"icon"},$J=["textContent"],AJ={class:"icon"},TJ=["textContent"],OJ={class:"icon"},PJ=["textContent"],DJ=l("hr",{class:"fd-navbar-divider"},null,-1),FJ=["textContent"],IJ=l("div",{class:"navbar-item is-hidden-desktop",style:{"margin-bottom":"2.5rem"}},null,-1);function RJ(e,t,n,r,s,o){const i=$("mdicon"),a=$("navbar-item-link");return E(),P("nav",{class:"fd-top-navbar navbar is-light is-fixed-top",style:cs(o.zindex),role:"navigation","aria-label":"main navigation"},[l("div",JY,[o.is_visible_playlists?(E(),ke(a,{key:0,to:"/playlists"},{default:A(()=>[l("span",XY,[C(i,{name:"music-box-multiple",size:"16"})])]),_:1})):Y("",!0),o.is_visible_music?(E(),ke(a,{key:1,to:"/music"},{default:A(()=>[l("span",QY,[C(i,{name:"music",size:"16"})])]),_:1})):Y("",!0),o.is_visible_podcasts?(E(),ke(a,{key:2,to:"/podcasts"},{default:A(()=>[l("span",eJ,[C(i,{name:"microphone",size:"16"})])]),_:1})):Y("",!0),o.is_visible_audiobooks?(E(),ke(a,{key:3,to:"/audiobooks"},{default:A(()=>[l("span",tJ,[C(i,{name:"book-open-variant",size:"16"})])]),_:1})):Y("",!0),o.is_visible_radio?(E(),ke(a,{key:4,to:"/radio"},{default:A(()=>[l("span",nJ,[C(i,{name:"radio",size:"16"})])]),_:1})):Y("",!0),o.is_visible_files?(E(),ke(a,{key:5,to:"/files"},{default:A(()=>[l("span",rJ,[C(i,{name:"folder-open",size:"16"})])]),_:1})):Y("",!0),o.is_visible_search?(E(),ke(a,{key:6,to:"/search"},{default:A(()=>[l("span",sJ,[C(i,{name:"magnify",size:"16"})])]),_:1})):Y("",!0),l("div",{class:We(["navbar-burger",{"is-active":o.show_burger_menu}]),onClick:t[0]||(t[0]=u=>o.show_burger_menu=!o.show_burger_menu)},lJ,2)]),l("div",{class:We(["navbar-menu",{"is-active":o.show_burger_menu}])},[uJ,l("div",cJ,[l("div",{class:We(["navbar-item has-dropdown is-hoverable",{"is-active":s.show_settings_menu}]),onClick:t[2]||(t[2]=(...u)=>o.on_click_outside_settings&&o.on_click_outside_settings(...u))},[l("a",dJ,[l("span",mJ,[C(i,{name:"menu",size:"24"})]),l("span",{class:"is-hidden-desktop has-text-weight-bold",textContent:g(e.$t("navigation.title"))},null,8,fJ)]),l("div",pJ,[C(a,{to:"/playlists"},{default:A(()=>[l("span",hJ,[C(i,{name:"music-box-multiple",size:"16"})]),l("b",{textContent:g(e.$t("navigation.playlists"))},null,8,_J)]),_:1}),C(a,{to:"/music",exact:""},{default:A(()=>[l("span",gJ,[C(i,{name:"music",size:"16"})]),l("b",{textContent:g(e.$t("navigation.music"))},null,8,yJ)]),_:1}),C(a,{to:"/music/artists"},{default:A(()=>[l("span",{class:"fd-navbar-item-level2",textContent:g(e.$t("navigation.artists"))},null,8,vJ)]),_:1}),C(a,{to:"/music/albums"},{default:A(()=>[l("span",{class:"fd-navbar-item-level2",textContent:g(e.$t("navigation.albums"))},null,8,bJ)]),_:1}),C(a,{to:"/music/genres"},{default:A(()=>[l("span",{class:"fd-navbar-item-level2",textContent:g(e.$t("navigation.genres"))},null,8,wJ)]),_:1}),o.spotify_enabled?(E(),ke(a,{key:0,to:"/music/spotify"},{default:A(()=>[l("span",{class:"fd-navbar-item-level2",textContent:g(e.$t("navigation.spotify"))},null,8,CJ)]),_:1})):Y("",!0),C(a,{to:"/podcasts"},{default:A(()=>[l("span",zJ,[C(i,{name:"microphone",size:"16"})]),l("b",{textContent:g(e.$t("navigation.podcasts"))},null,8,xJ)]),_:1}),C(a,{to:"/audiobooks"},{default:A(()=>[l("span",kJ,[C(i,{name:"book-open-variant",size:"16"})]),l("b",{textContent:g(e.$t("navigation.audiobooks"))},null,8,EJ)]),_:1}),C(a,{to:"/radio"},{default:A(()=>[l("span",SJ,[C(i,{name:"radio",size:"16"})]),l("b",{textContent:g(e.$t("navigation.radio"))},null,8,$J)]),_:1}),C(a,{to:"/files"},{default:A(()=>[l("span",AJ,[C(i,{name:"folder-open",size:"16"})]),l("b",{textContent:g(e.$t("navigation.files"))},null,8,TJ)]),_:1}),C(a,{to:"/search"},{default:A(()=>[l("span",OJ,[C(i,{name:"magnify",size:"16"})]),l("b",{textContent:g(e.$t("navigation.search"))},null,8,PJ)]),_:1}),DJ,C(a,{to:"/settings/webinterface"},{default:A(()=>[wt(g(e.$t("navigation.settings")),1)]),_:1}),l("a",{class:"navbar-item",onClick:t[1]||(t[1]=gt(u=>o.open_update_dialog(),["stop","prevent"])),textContent:g(e.$t("navigation.update-library"))},null,8,FJ),C(a,{to:"/about"},{default:A(()=>[wt(g(e.$t("navigation.about")),1)]),_:1}),IJ])],2)])],2),Pt(l("div",{class:"is-overlay",style:{"z-index":"10",width:"100vw",height:"100vh"},onClick:t[3]||(t[3]=u=>s.show_settings_menu=!1)},null,512),[[yo,s.show_settings_menu]])],4)}var LJ=pe(YY,[["render",RJ]]),Yo={_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 NJ={name:"NavbarItemOutput",components:{Slider:Mi},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(){q.player_next()},set_volume:function(e){q.player_output_volume(this.output.id,e)},set_enabled:function(){const e={selected:!this.output.selected};q.output_update(this.output.id,e)}}},MJ={class:"navbar-item"},VJ={class:"level is-mobile"},BJ={class:"level-left fd-expanded"},UJ={class:"level-item",style:{"flex-grow":"0"}},jJ={class:"button is-white is-small"},HJ={class:"level-item fd-expanded"},qJ={class:"fd-expanded"},WJ=["textContent"];function GJ(e,t,n,r,s,o){const i=$("mdicon"),a=$("Slider");return E(),P("div",MJ,[l("div",VJ,[l("div",BJ,[l("div",UJ,[l("a",jJ,[l("span",{class:We(["icon fd-has-action",{"has-text-grey-light":!n.output.selected}]),onClick:t[0]||(t[0]=(...u)=>o.set_enabled&&o.set_enabled(...u))},[C(i,{name:o.type_class,size:"18",title:n.output.type},null,8,["name","title"])],2)])]),l("div",HJ,[l("div",qJ,[l("p",{class:We(["heading",{"has-text-grey-light":!n.output.selected}]),textContent:g(n.output.name)},null,10,WJ),C(a,{modelValue:o.volume,"onUpdate:modelValue":t[1]||(t[1]=u=>o.volume=u),min:0,max:100,step:1,tooltips:!1,disabled:!n.output.selected,classes:{target:"slider"},onChange:o.set_volume},null,8,["modelValue","disabled","onChange"])])])])])])}var KJ=pe(NJ,[["render",GJ]]);const ZJ={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?q.player_pause():this.is_playing&&!this.is_pause_allowed?q.player_stop():q.player_play()}}},YJ=["disabled"],JJ={class:"icon"};function XJ(e,t,n,r,s,o){const i=$("mdicon");return E(),P("a",{disabled:o.disabled,onClick:t[0]||(t[0]=(...a)=>o.toggle_play_pause&&o.toggle_play_pause(...a))},[l("span",JJ,[C(i,{name:o.icon_name,size:n.icon_size},null,8,["name","size"])])],8,YJ)}var QJ=pe(ZJ,[["render",XJ]]);const eX={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||q.player_next()}}},tX=["disabled"],nX={class:"icon"};function rX(e,t,n,r,s,o){const i=$("mdicon");return E(),P("a",{disabled:o.disabled,onClick:t[0]||(t[0]=(...a)=>o.play_next&&o.play_next(...a))},[l("span",nX,[C(i,{name:"skip-forward",size:n.icon_size},null,8,["size"])])],8,tX)}var sX=pe(eX,[["render",rX]]);const oX={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||q.player_previous()}}},iX=["disabled"],aX={class:"icon"};function lX(e,t,n,r,s,o){const i=$("mdicon");return E(),P("a",{disabled:o.disabled,onClick:t[0]||(t[0]=(...a)=>o.play_previous&&o.play_previous(...a))},[l("span",aX,[C(i,{name:"skip-backward",size:n.icon_size},null,8,["size"])])],8,iX)}var uX=pe(oX,[["render",lX]]);const cX={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(){q.player_shuffle(!this.is_shuffle)}}},dX={class:"icon"};function mX(e,t,n,r,s,o){const i=$("mdicon");return E(),P("a",{class:We({"is-warning":o.is_shuffle}),onClick:t[0]||(t[0]=(...a)=>o.toggle_shuffle_mode&&o.toggle_shuffle_mode(...a))},[l("span",dX,[C(i,{name:o.icon_name,size:n.icon_size},null,8,["name","size"])])],2)}var fX=pe(cX,[["render",mX]]);const pX={name:"PlayerButtonConsume",props:{icon_size:{type:Number,default:16}},computed:{is_consume(){return this.$store.state.player.consume}},methods:{toggle_consume_mode:function(){q.player_consume(!this.is_consume)}}},hX={class:"icon"};function _X(e,t,n,r,s,o){const i=$("mdicon");return E(),P("a",{class:We({"is-warning":o.is_consume}),onClick:t[0]||(t[0]=(...a)=>o.toggle_consume_mode&&o.toggle_consume_mode(...a))},[l("span",hX,[C(i,{name:"fire",size:n.icon_size},null,8,["size"])])],2)}var gX=pe(pX,[["render",_X]]);const yX={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?q.player_repeat("single"):this.is_repeat_single?q.player_repeat("off"):q.player_repeat("all")}}},vX={class:"icon"};function bX(e,t,n,r,s,o){const i=$("mdicon");return E(),P("a",{class:We({"is-warning":!o.is_repeat_off}),onClick:t[0]||(t[0]=(...a)=>o.toggle_repeat_mode&&o.toggle_repeat_mode(...a))},[l("span",vX,[C(i,{name:o.icon_name,size:n.icon_size},null,8,["name","size"])])],2)}var wX=pe(yX,[["render",bX]]);const CX={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||q.player_seek(this.seek_ms*-1)}}},zX=["disabled"],xX={class:"icon"};function kX(e,t,n,r,s,o){const i=$("mdicon");return o.visible?(E(),P("a",{key:0,disabled:o.disabled,onClick:t[0]||(t[0]=(...a)=>o.seek&&o.seek(...a))},[l("span",xX,[C(i,{name:"rewind",size:n.icon_size},null,8,["size"])])],8,zX)):Y("",!0)}var EX=pe(CX,[["render",kX]]);const SX={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||q.player_seek(this.seek_ms)}}},$X=["disabled"],AX={class:"icon"};function TX(e,t,n,r,s,o){const i=$("mdicon");return o.visible?(E(),P("a",{key:0,disabled:o.disabled,onClick:t[0]||(t[0]=(...a)=>o.seek&&o.seek(...a))},[l("span",AX,[C(i,{name:"fast-forward",size:n.icon_size},null,8,["size"])])],8,$X)):Y("",!0)}var OX=pe(SX,[["render",TX]]);const PX={name:"NavbarBottom",components:{NavbarItemLink:Rb,NavbarItemOutput:KJ,Slider:Mi,PlayerButtonPlayPause:QJ,PlayerButtonNext:sX,PlayerButtonPrevious:uX,PlayerButtonShuffle:fX,PlayerButtonConsume:gX,PlayerButtonRepeat:wX,PlayerButtonSeekForward:OX,PlayerButtonSeekBack:EX},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(bo,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){q.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=Yo.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(){Yo.stopAudio(),this.playing=!1},playChannel:function(){if(this.playing)return;const e="/stream.mp3";this.loading=!0,Yo.playSource(e),Yo.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,Yo.setVolume(this.stream_volume/100)}}},DX={class:"navbar-brand fd-expanded"},FX={class:"icon"},IX={class:"is-clipped"},RX={class:"is-size-7 fd-is-text-clipped"},LX=["textContent"],NX=l("br",null,null,-1),MX=["textContent"],VX=["textContent"],BX={class:"icon"},UX={class:"icon"},jX={class:"navbar-dropdown is-right is-boxed",style:{"margin-right":"6px","margin-bottom":"6px","border-radius":"6px"}},HX={class:"navbar-item"},qX={class:"level is-mobile"},WX={class:"level-left fd-expanded"},GX={class:"level-item",style:{"flex-grow":"0"}},KX={class:"icon"},ZX={class:"level-item fd-expanded"},YX={class:"fd-expanded"},JX=["textContent"],XX=l("hr",{class:"fd-navbar-divider"},null,-1),QX=l("hr",{class:"fd-navbar-divider"},null,-1),eQ={class:"navbar-item"},tQ={class:"level is-mobile"},nQ={class:"level-left fd-expanded"},rQ={class:"level-item",style:{"flex-grow":"0"}},sQ={class:"level-item fd-expanded"},oQ={class:"fd-expanded"},iQ=["textContent"],aQ={href:"stream.mp3",style:{"margin-left":"5px"},target:"_blank"},lQ={class:"icon"},uQ=l("hr",{class:"fd-navbar-divider"},null,-1),cQ={class:"navbar-item"},dQ={class:"level is-mobile fd-expanded"},mQ={class:"level-item"},fQ={class:"buttons has-addons"},pQ=l("div",{class:"navbar-start"},null,-1),hQ={class:"navbar-end"},_Q={class:"navbar-item"},gQ={class:"buttons is-centered"},yQ=l("hr",{class:"fd-navbar-divider"},null,-1),vQ={class:"navbar-item"},bQ={class:"level is-mobile"},wQ={class:"level-left fd-expanded"},CQ={class:"level-item",style:{"flex-grow":"0"}},zQ={class:"icon"},xQ={class:"level-item fd-expanded"},kQ={class:"fd-expanded"},EQ=["textContent"],SQ=l("hr",{class:"fd-navbar-divider"},null,-1),$Q={class:"navbar-item fd-has-margin-bottom"},AQ={class:"level is-mobile"},TQ={class:"level-left fd-expanded"},OQ={class:"level-item",style:{"flex-grow":"0"}},PQ={class:"level-item fd-expanded"},DQ={class:"fd-expanded"},FQ=["textContent"],IQ={href:"stream.mp3",style:{"margin-left":"5px"},target:"_blank"},RQ={class:"icon"};function LQ(e,t,n,r,s,o){const i=$("mdicon"),a=$("navbar-item-link"),u=$("router-link"),c=$("player-button-previous"),d=$("player-button-seek-back"),f=$("player-button-play-pause"),m=$("player-button-seek-forward"),p=$("player-button-next"),h=$("Slider"),_=$("navbar-item-output"),w=$("player-button-repeat"),v=$("player-button-shuffle"),b=$("player-button-consume");return E(),P("nav",{class:We(["fd-bottom-navbar navbar is-white is-fixed-bottom",{"is-transparent":o.is_now_playing_page,"is-dark":!o.is_now_playing_page}]),style:cs(o.zindex),role:"navigation","aria-label":"player controls"},[l("div",DX,[C(a,{to:"/",exact:""},{default:A(()=>[l("span",FX,[C(i,{name:"playlist-play",size:"24"})])]),_:1}),o.is_now_playing_page?Y("",!0):(E(),ke(u,{key:0,to:"/now-playing",class:"navbar-item is-expanded is-clipped","active-class":"is-active",exact:""},{default:A(()=>[l("div",IX,[l("p",RX,[l("strong",{textContent:g(o.now_playing.title)},null,8,LX),NX,l("span",{textContent:g(o.now_playing.artist)},null,8,MX),o.now_playing.data_kind==="url"?(E(),P("span",{key:0,textContent:g(e.$t("navigation.now-playing",{album:o.now_playing.album}))},null,8,VX)):Y("",!0)])])]),_:1})),o.is_now_playing_page?(E(),ke(c,{key:1,class:"navbar-item fd-margin-left-auto",icon_size:24})):Y("",!0),o.is_now_playing_page?(E(),ke(d,{key:2,seek_ms:1e4,class:"navbar-item",icon_size:24})):Y("",!0),C(f,{class:"navbar-item",icon_size:36,show_disabled_message:""}),o.is_now_playing_page?(E(),ke(m,{key:3,seek_ms:3e4,class:"navbar-item",icon_size:24})):Y("",!0),o.is_now_playing_page?(E(),ke(p,{key:4,class:"navbar-item",icon_size:24})):Y("",!0),l("a",{class:"navbar-item fd-margin-left-auto is-hidden-desktop",onClick:t[0]||(t[0]=k=>o.show_player_menu=!o.show_player_menu)},[l("span",BX,[C(i,{name:o.show_player_menu?"chevron-down":"chevron-up",size:"18"},null,8,["name"])])]),l("div",{class:We(["navbar-item has-dropdown has-dropdown-up fd-margin-left-auto is-hidden-touch",{"is-active":o.show_player_menu}])},[l("a",{class:"navbar-link is-arrowless",onClick:t[1]||(t[1]=k=>o.show_player_menu=!o.show_player_menu)},[l("span",UX,[C(i,{name:o.show_player_menu?"chevron-down":"chevron-up",size:"18"},null,8,["name"])])]),l("div",jX,[l("div",HX,[l("div",qX,[l("div",WX,[l("div",GX,[l("a",{class:"button is-white is-small",onClick:t[2]||(t[2]=(...k)=>o.toggle_mute_volume&&o.toggle_mute_volume(...k))},[l("span",KX,[C(i,{name:o.player.volume>0?"volume-high":"volume-off",size:"18"},null,8,["name"])])])]),l("div",ZX,[l("div",YX,[l("p",{class:"heading",textContent:g(e.$t("navigation.volume"))},null,8,JX),C(h,{modelValue:o.player.volume,"onUpdate:modelValue":t[3]||(t[3]=k=>o.player.volume=k),min:0,max:100,step:1,tooltips:!1,classes:{target:"slider"},onChange:o.set_volume},null,8,["modelValue","onChange"])])])])])]),XX,(E(!0),P(He,null,Et(o.outputs,k=>(E(),ke(_,{key:k.id,output:k},null,8,["output"]))),128)),QX,l("div",eQ,[l("div",tQ,[l("div",nQ,[l("div",rQ,[l("a",{class:We(["button is-white is-small",{"is-loading":s.loading}])},[l("span",{class:We(["icon fd-has-action",{"has-text-grey-light":!s.playing&&!s.loading,"is-loading":s.loading}]),onClick:t[4]||(t[4]=(...k)=>o.togglePlay&&o.togglePlay(...k))},[C(i,{name:"broadcast",size:"18"})],2)],2)]),l("div",sQ,[l("div",oQ,[l("p",{class:We(["heading",{"has-text-grey-light":!s.playing}])},[l("span",{textContent:g(e.$t("navigation.stream"))},null,8,iQ),l("a",aQ,[l("span",lQ,[C(i,{name:"open-in-new",size:"16",style:{"vertical-align":"middle"}})])])],2),C(h,{modelValue:s.stream_volume,"onUpdate:modelValue":t[5]||(t[5]=k=>s.stream_volume=k),min:0,max:100,step:1,tooltips:!1,disabled:!s.playing,classes:{target:"slider"},onChange:o.set_stream_volume},null,8,["modelValue","disabled","onChange"])])])])])]),uQ,l("div",cQ,[l("div",dQ,[l("div",mQ,[l("div",fQ,[C(w,{class:"button"}),C(v,{class:"button"}),C(b,{class:"button"})])])])])])],2)]),l("div",{class:We(["navbar-menu is-hidden-desktop",{"is-active":o.show_player_menu}])},[pQ,l("div",hQ,[l("div",_Q,[l("div",gQ,[C(w,{class:"button",icon_size:18}),C(v,{class:"button",icon_size:18}),C(b,{class:"button",icon_size:18})])]),yQ,l("div",vQ,[l("div",bQ,[l("div",wQ,[l("div",CQ,[l("a",{class:"button is-white is-small",onClick:t[6]||(t[6]=(...k)=>o.toggle_mute_volume&&o.toggle_mute_volume(...k))},[l("span",zQ,[C(i,{name:o.player.volume>0?"volume-high":"volume-off",size:"18"},null,8,["name"])])])]),l("div",xQ,[l("div",kQ,[l("p",{class:"heading",textContent:g(e.$t("navigation.volume"))},null,8,EQ),C(h,{modelValue:o.player.volume,"onUpdate:modelValue":t[7]||(t[7]=k=>o.player.volume=k),min:0,max:100,step:1,tooltips:!1,classes:{target:"slider"},onChange:o.set_volume},null,8,["modelValue","onChange"])])])])])]),(E(!0),P(He,null,Et(o.outputs,k=>(E(),ke(_,{key:k.id,output:k},null,8,["output"]))),128)),SQ,l("div",$Q,[l("div",AQ,[l("div",TQ,[l("div",OQ,[l("a",{class:We(["button is-white is-small",{"is-loading":s.loading}])},[l("span",{class:We(["icon fd-has-action",{"has-text-grey-light":!s.playing&&!s.loading,"is-loading":s.loading}]),onClick:t[8]||(t[8]=(...k)=>o.togglePlay&&o.togglePlay(...k))},[C(i,{name:"radio-tower",size:"16"})],2)],2)]),l("div",PQ,[l("div",DQ,[l("p",{class:We(["heading",{"has-text-grey-light":!s.playing}])},[l("span",{textContent:g(e.$t("navigation.stream"))},null,8,FQ),l("a",IQ,[l("span",RQ,[C(i,{name:"open-in-new",size:"16",style:{"vertical-align":"middle"}})])])],2),C(h,{modelValue:s.stream_volume,"onUpdate:modelValue":t[9]||(t[9]=k=>s.stream_volume=k),min:0,max:100,step:1,tooltips:!1,disabled:!s.playing,classes:{target:"slider"},onChange:o.set_stream_volume},null,8,["modelValue","disabled","onChange"])])])])])])])],2)],6)}var NQ=pe(PX,[["render",LQ]]);const MQ={name:"NotificationList",components:{},data(){return{showNav:!1}},computed:{notifications(){return this.$store.state.notifications.list}},methods:{remove:function(e){this.$store.commit(id,e)}}},VQ={key:0,class:"fd-notifications"},BQ={class:"columns is-centered"},UQ={class:"column is-half"},jQ=["onClick"],HQ=["textContent"];function qQ(e,t,n,r,s,o){return o.notifications.length>0?(E(),P("section",VQ,[l("div",BQ,[l("div",UQ,[(E(!0),P(He,null,Et(o.notifications,i=>(E(),P("div",{key:i.id,class:We(["notification has-shadow",["notification",i.type?`is-${i.type}`:""]])},[l("button",{class:"delete",onClick:a=>o.remove(i)},null,8,jQ),l("span",{textContent:g(i.text)},null,8,HQ)],2))),128))])])])):Y("",!0)}var WQ=pe(MQ,[["render",qQ]]);const GQ={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(){q.pairing_kickoff(this.pairing_req).then(()=>{this.pairing_req.pin=""})}}},KQ={key:0,class:"modal is-active"},ZQ={class:"modal-content fd-modal-card"},YQ={class:"card"},JQ={class:"card-content"},XQ=["textContent"],QQ=["textContent"],eee={class:"field"},tee={class:"control"},nee={class:"card-footer"},ree={class:"icon"},see=["textContent"],oee={class:"icon"},iee=["textContent"];function aee(e,t,n,r,s,o){const i=$("mdicon");return E(),P("div",null,[C(Jt,{name:"fade"},{default:A(()=>[n.show?(E(),P("div",KQ,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",ZQ,[l("div",YQ,[l("div",JQ,[l("p",{class:"title is-4",textContent:g(e.$t("dialog.remote-pairing.title"))},null,8,XQ),l("form",{onSubmit:t[2]||(t[2]=gt((...a)=>o.kickoff_pairing&&o.kickoff_pairing(...a),["prevent"]))},[l("label",{class:"label",textContent:g(o.pairing.remote)},null,8,QQ),l("div",eee,[l("div",tee,[Pt(l("input",{ref:"pin_field","onUpdate:modelValue":t[1]||(t[1]=a=>s.pairing_req.pin=a),class:"input",type:"text",placeholder:"Enter pairing code"},null,512),[[$n,s.pairing_req.pin]])])])],32)]),l("footer",nee,[l("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=a=>e.$emit("close"))},[l("span",ree,[C(i,{name:"cancel",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.remote-pairing.cancel"))},null,8,see)]),l("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[4]||(t[4]=(...a)=>o.kickoff_pairing&&o.kickoff_pairing(...a))},[l("span",oee,[C(i,{name:"cellphone",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.remote-pairing.pair"))},null,8,iee)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var lee=pe(GQ,[["render",aee]]);const uee={name:"ModalDialogUpdate",components:{ModalDialog:Vm},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(km,e)}}},methods:{update_library(){this.rescan_metadata?q.library_rescan(this.update_dialog_scan_kind):q.library_update(this.update_dialog_scan_kind)},close(){this.update_dialog_scan_kind="",this.$emit("close")}}},cee={key:0},dee=["textContent"],mee={key:0,class:"field"},fee={class:"control"},pee={class:"select is-small"},hee=["textContent"],_ee=["textContent"],gee=["textContent"],yee=["textContent"],vee={class:"field"},bee={class:"checkbox is-size-7 is-small"},wee=["textContent"],Cee={key:1},zee=["textContent"];function xee(e,t,n,r,s,o){const i=$("modal-dialog");return E(),ke(i,{show:n.show,title:e.$t("dialog.update.title"),ok_action:o.library.updating?"":e.$t("dialog.update.rescan"),close_action:e.$t("dialog.update.cancel"),onOk:o.update_library,onClose:t[2]||(t[2]=a=>o.close())},{"modal-content":A(()=>[o.library.updating?(E(),P("div",Cee,[l("p",{class:"mb-3",textContent:g(e.$t("dialog.update.progress"))},null,8,zee)])):(E(),P("div",cee,[l("p",{class:"mb-3",textContent:g(e.$t("dialog.update.info"))},null,8,dee),o.spotify_enabled||o.rss.tracks>0?(E(),P("div",mee,[l("div",fee,[l("div",pee,[Pt(l("select",{"onUpdate:modelValue":t[0]||(t[0]=a=>o.update_dialog_scan_kind=a)},[l("option",{value:"",textContent:g(e.$t("dialog.update.all"))},null,8,hee),l("option",{value:"files",textContent:g(e.$t("dialog.update.local"))},null,8,_ee),o.spotify_enabled?(E(),P("option",{key:0,value:"spotify",textContent:g(e.$t("dialog.update.spotify"))},null,8,gee)):Y("",!0),o.rss.tracks>0?(E(),P("option",{key:1,value:"rss",textContent:g(e.$t("dialog.update.feeds"))},null,8,yee)):Y("",!0)],512),[[um,o.update_dialog_scan_kind]])])])])):Y("",!0),l("div",vee,[l("label",bee,[Pt(l("input",{"onUpdate:modelValue":t[1]||(t[1]=a=>s.rescan_metadata=a),type:"checkbox",style:{"margin-right":"5px"}},null,512),[[Rr,s.rescan_metadata]]),l("span",{textContent:g(e.$t("dialog.update.rescan-metadata"))},null,8,wee)])])]))]),_:1},8,["show","title","ok_action","close_action","onOk"])}var kee=pe(uee,[["render",xee]]),Lb={exports:{}};(function(e){(function(t,n){e.exports?e.exports=n():t.ReconnectingWebSocket=n()})(_n,function(){if(!("WebSocket"in window))return;function t(n,r,s){var o={debug:!1,automaticOpen:!0,reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,timeoutInterval:2e3,maxReconnectAttempts:null};s||(s={});for(var i in o)typeof s[i]!="undefined"?this[i]=s[i]:this[i]=o[i];this.url=n,this.reconnectAttempts=0,this.readyState=WebSocket.CONNECTING,this.protocol=null;var a=this,u,c=!1,d=!1,f=document.createElement("div");f.addEventListener("open",function(p){a.onopen(p)}),f.addEventListener("close",function(p){a.onclose(p)}),f.addEventListener("connecting",function(p){a.onconnecting(p)}),f.addEventListener("message",function(p){a.onmessage(p)}),f.addEventListener("error",function(p){a.onerror(p)}),this.addEventListener=f.addEventListener.bind(f),this.removeEventListener=f.removeEventListener.bind(f),this.dispatchEvent=f.dispatchEvent.bind(f);function m(p,h){var _=document.createEvent("CustomEvent");return _.initCustomEvent(p,!1,!1,h),_}this.open=function(p){if(u=new WebSocket(a.url,r||[]),p){if(this.maxReconnectAttempts&&this.reconnectAttempts>this.maxReconnectAttempts)return}else f.dispatchEvent(m("connecting")),this.reconnectAttempts=0;(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","attempt-connect",a.url);var h=u,_=setTimeout(function(){(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",a.url),d=!0,h.close(),d=!1},a.timeoutInterval);u.onopen=function(w){clearTimeout(_),(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onopen",a.url),a.protocol=u.protocol,a.readyState=WebSocket.OPEN,a.reconnectAttempts=0;var v=m("open");v.isReconnect=p,p=!1,f.dispatchEvent(v)},u.onclose=function(w){if(clearTimeout(b),u=null,c)a.readyState=WebSocket.CLOSED,f.dispatchEvent(m("close"));else{a.readyState=WebSocket.CONNECTING;var v=m("connecting");v.code=w.code,v.reason=w.reason,v.wasClean=w.wasClean,f.dispatchEvent(v),!p&&!d&&((a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onclose",a.url),f.dispatchEvent(m("close")));var b=a.reconnectInterval*Math.pow(a.reconnectDecay,a.reconnectAttempts);setTimeout(function(){a.reconnectAttempts++,a.open(!0)},b>a.maxReconnectInterval?a.maxReconnectInterval:b)}},u.onmessage=function(w){(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",a.url,w.data);var v=m("message");v.data=w.data,f.dispatchEvent(v)},u.onerror=function(w){(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onerror",a.url,w),f.dispatchEvent(m("error"))}},this.automaticOpen==!0&&this.open(!1),this.send=function(p){if(u)return(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","send",a.url,p),u.send(p);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(p,h){typeof p=="undefined"&&(p=1e3),c=!0,u&&u.close(p,h)},this.refresh=function(){u&&u.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})})(Lb);var Eee=Lb.exports;const See={name:"App",components:{NavbarTop:LJ,NavbarBottom:NQ,NotificationList:WQ,ModalDialogRemotePairing:lee,ModalDialogUpdate:kee},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(vo,e)}},show_player_menu:{get(){return this.$store.state.show_player_menu},set(e){this.$store.commit(bo,e)}},show_update_dialog:{get(){return this.$store.state.show_update_dialog},set(e){this.$store.commit(Ki,e)}}},watch:{show_burger_menu(){this.update_is_clipped()},show_player_menu(){this.update_is_clipped()}},created:function(){this.connect(),this.$Progress.start(),this.$router.beforeEach((e,t,n)=>{if(e.meta.show_progress){if(e.meta.progress!==void 0){const r=e.meta.progress;this.$Progress.parseMeta(r)}this.$Progress.start()}n()}),this.$router.afterEach((e,t)=>{e.meta.show_progress&&this.$Progress.finish()})},methods:{connect:function(){q.config().then(({data:e})=>{this.$store.commit(xy,e),this.$store.commit(hu,e.hide_singles),document.title=e.library_name,this.open_ws(),this.$Progress.finish()}).catch(()=>{this.$store.dispatch("add_notification",{text:this.$t("server.connection-failed"),type:"danger",topic:"connection"})})},open_ws:function(){if(this.$store.state.config.websocket_port<=0){this.$store.dispatch("add_notification",{text:this.$t("server.missing-port"),type:"danger"});return}const e=this;let t="ws://";window.location.protocol==="https:"&&(t="wss://");let n=t+window.location.hostname+":"+e.$store.state.config.websocket_port;const r=new Eee(n,"notify",{reconnectInterval:1e3,maxReconnectInterval:2e3});r.onopen=function(){e.reconnect_attempts=0,r.send(JSON.stringify({notify:["update","database","player","options","outputs","volume","queue","spotify","lastfm","pairing"]})),e.update_outputs(),e.update_player_status(),e.update_library_stats(),e.update_settings(),e.update_queue(),e.update_spotify(),e.update_lastfm(),e.update_pairing()},r.onclose=function(){};var s=!1;function o(){s||(e.update_outputs(),e.update_player_status(),e.update_library_stats(),e.update_settings(),e.update_queue(),e.update_spotify(),e.update_lastfm(),e.update_pairing(),s=!0,setTimeout(function(){s=!1},500))}window.addEventListener("focus",o),document.addEventListener("visibilitychange",function(){document.visibilityState==="visible"&&o()}),r.onmessage=function(i){const a=JSON.parse(i.data);(a.notify.includes("update")||a.notify.includes("database"))&&e.update_library_stats(),(a.notify.includes("player")||a.notify.includes("options")||a.notify.includes("volume"))&&e.update_player_status(),(a.notify.includes("outputs")||a.notify.includes("volume"))&&e.update_outputs(),a.notify.includes("queue")&&e.update_queue(),a.notify.includes("spotify")&&e.update_spotify(),a.notify.includes("lastfm")&&e.update_lastfm(),a.notify.includes("pairing")&&e.update_pairing()}},update_library_stats:function(){q.library_stats().then(({data:e})=>{this.$store.commit(Ey,e)}),q.library_count("media_kind is audiobook").then(({data:e})=>{this.$store.commit(Sy,e)}),q.library_count("media_kind is podcast").then(({data:e})=>{this.$store.commit($y,e)}),q.library_count("scan_kind is rss").then(({data:e})=>{this.$store.commit(Ay,e)})},update_outputs:function(){q.outputs().then(({data:e})=>{this.$store.commit(Ty,e.outputs)})},update_player_status:function(){q.player_status().then(({data:e})=>{this.$store.commit(bm,e)})},update_queue:function(){q.queue().then(({data:e})=>{this.$store.commit(Oy,e)})},update_settings:function(){q.settings().then(({data:e})=>{this.$store.commit(ky,e)})},update_lastfm:function(){q.lastfm().then(({data:e})=>{this.$store.commit(Py,e)})},update_spotify:function(){q.spotify().then(({data:e})=>{this.$store.commit(Dy,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(){q.pairing().then(({data:e})=>{this.$store.commit(Fy,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/>"},$ee={id:"app"};function Aee(e,t,n,r,s,o){const i=$("navbar-top"),a=$("vue-progress-bar"),u=$("router-view"),c=$("modal-dialog-remote-pairing"),d=$("modal-dialog-update"),f=$("notification-list"),m=$("navbar-bottom");return E(),P("div",$ee,[C(i),C(a,{class:"fd-progress-bar"}),C(u,null,{default:A(({Component:p})=>[(E(),ke(sg(p),{class:"fd-page"}))]),_:1}),C(c,{show:s.pairing_active,onClose:t[0]||(t[0]=p=>s.pairing_active=!1)},null,8,["show"]),C(d,{show:o.show_update_dialog,onClose:t[1]||(t[1]=p=>o.show_update_dialog=!1)},null,8,["show"]),Pt(C(f,null,null,512),[[yo,!o.show_burger_menu]]),C(m),Pt(l("div",{class:"fd-overlay-fullscreen",onClick:t[2]||(t[2]=p=>o.show_burger_menu=o.show_player_menu=!1)},null,512),[[yo,o.show_burger_menu||o.show_player_menu]])])}var Tee=pe(See,[["render",Aee]]);const Nb=Wg(Tee).use(at).use(T1).use(gG,{color:"hsl(204, 86%, 53%)",failedColor:"red",height:"1px"}).use(vG).use(OG,{log:!1}).use(PG).use(qK,{icons:WY}).use(mu);Nb.config.globalProperties.$filters=qY;Nb.mount("#app");