Files
pictureFrame/public/build/assets/index-KHHWwfaX.js
T
football2801 d852fe60ae
CI / test (push) Has been cancelled
fix: set vite base to /build/ so asset paths match the actual serve location
Assets built to public/build/assets/ but index.html referenced /assets/
(no /build/ prefix). Nginx couldn't find them, fell through to Symfony's
catch-all SPA route, which served HTML in place of JS — Vue never loaded.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 21:21:51 -04:00

2 lines
49 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HomeView-CPodDsbB.js","assets/_plugin-vue_export-helper-CnSQ-FNj.js","assets/HomeView-62e9SYHW.css","assets/LibraryView-BySweTRn.js","assets/LibraryView-DpqkmmyI.css","assets/SharedView-BTE7l26P.js","assets/SharedView-CHfpullw.css","assets/SettingsView-CgeTYG3Q.js","assets/SettingsView-CWIIisVW.css"])))=>i.map(i=>d[i]);
import{$ as e,A as t,B as n,C as r,D as i,E as a,F as o,G as s,H as c,I as l,J as u,K as d,L as f,M as p,N as m,O as h,P as g,Q as _,R as v,T as ee,U as y,V as b,W as x,X as S,Y as C,Z as w,_ as T,at as E,b as te,c as ne,ct as re,d as D,dt as ie,et as O,f as ae,ft as oe,g as k,h as A,i as j,it as se,lt as ce,m as le,n as ue,nt as de,o as fe,ot as pe,q as M,r as me,rt as he,s as N,st as P,t as ge,tt as _e,v as ve,w as ye,x as F,y as be,z as xe}from"./_plugin-vue_export-helper-CnSQ-FNj.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Se=void 0,Ce=typeof window<`u`&&window.trustedTypes;if(Ce)try{Se=Ce.createPolicy(`vue`,{createHTML:e=>e})}catch{}var we=Se?e=>Se.createHTML(e):e=>e,Te=`http://www.w3.org/2000/svg`,Ee=`http://www.w3.org/1998/Math/MathML`,I=typeof document<`u`?document:null,De=I&&I.createElement(`template`),Oe={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?I.createElementNS(Te,e):t===`mathml`?I.createElementNS(Ee,e):n?I.createElement(e,{is:n}):I.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>I.createTextNode(e),createComment:e=>I.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>I.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{De.innerHTML=we(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=De.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},L=`transition`,ke=`animation`,R=Symbol(`_vtc`),Ae={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},je=_({},me,Ae),Me=(e=>(e.displayName=`Transition`,e.props=je,e))((e,{slots:t})=>be(ue,Pe(e),t)),z=(e,t=[])=>{_e(e)?e.forEach(e=>e(...t)):e&&e(...t)},Ne=e=>e?_e(e)?e.some(e=>e.length>1):e.length>1:!1;function Pe(e){let t={};for(let n in e)n in Ae||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Fe(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:v,onEnter:ee,onEnterCancelled:y,onLeave:b,onLeaveCancelled:x,onBeforeAppear:S=v,onAppear:C=ee,onAppearCancelled:w=y}=t,T=(e,t,n,r)=>{e._enterCancelled=r,V(e,t?u:s),V(e,t?l:o),n&&n()},E=(e,t)=>{e._isLeaving=!1,V(e,d),V(e,p),V(e,f),t&&t()},te=e=>(t,n)=>{let i=e?C:ee,o=()=>T(t,e,n);z(i,[t,o]),Le(()=>{V(t,e?c:a),B(t,e?u:s),Ne(i)||ze(t,r,h,o)})};return _(t,{onBeforeEnter(e){z(v,[e]),B(e,a),B(e,o)},onBeforeAppear(e){z(S,[e]),B(e,c),B(e,l)},onEnter:te(!1),onAppear:te(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>E(e,t);B(e,d),e._enterCancelled?(B(e,f),Ue(e)):(Ue(e),B(e,f)),Le(()=>{e._isLeaving&&(V(e,d),B(e,p),Ne(b)||ze(e,r,g,n))}),z(b,[e,n])},onEnterCancelled(e){T(e,!1,void 0,!0),z(y,[e])},onAppearCancelled(e){T(e,!0,void 0,!0),z(w,[e])},onLeaveCancelled(e){E(e),z(x,[e])}})}function Fe(e){if(e==null)return null;if(se(e))return[Ie(e.enter),Ie(e.leave)];{let t=Ie(e);return[t,t]}}function Ie(e){return oe(e)}function B(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[R]||(e[R]=new Set)).add(t)}function V(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[R];n&&(n.delete(t),n.size||(e[R]=void 0))}function Le(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Re=0;function ze(e,t,n,r){let i=e._endId=++Re,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Be(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Be(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${L}Delay`),a=r(`${L}Duration`),o=Ve(i,a),s=r(`${ke}Delay`),c=r(`${ke}Duration`),l=Ve(s,c),u=null,d=0,f=0;t===L?o>0&&(u=L,d=o,f=a.length):t===ke?l>0&&(u=ke,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?L:ke:null,f=u?u===L?a.length:c.length:0);let p=u===L&&/\b(?:transform|all)(?:,|$)/.test(r(`${L}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Ve(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>He(t)+He(e[n])))}function He(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Ue(e){return(e?e.ownerDocument:document).body.offsetHeight}function We(e,t,n){let r=e[R];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Ge=Symbol(`_vod`),Ke=Symbol(`_vsh`),qe=Symbol(``),Je=/(?:^|;)\s*display\s*:/;function Ye(e,t,n){let r=e.style,i=P(n),a=!1;if(n&&!i){if(t)if(P(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Ze(r,t,``)}else for(let e in t)n[e]??Ze(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Ze(r,i,``):tt(e,i,!P(t)&&t?t[i]:void 0,o)||Ze(r,i,o)}}else if(i){if(t!==n){let e=r[qe];e&&(n+=`;`+e),r.cssText=n,a=Je.test(n)}}else t&&e.removeAttribute(`style`);Ge in e&&(e[Ge]=a?r.display:``,e[Ke]&&(r.display=`none`))}var Xe=/\s*!important$/;function Ze(t,n,r){if(_e(r))r.forEach(e=>Ze(t,n,e));else if(r??=``,n.startsWith(`--`))t.setProperty(n,r);else{let i=et(t,n);Xe.test(r)?t.setProperty(e(i),r.replace(Xe,``),`important`):t[i]=r}}var Qe=[`Webkit`,`Moz`,`ms`],$e={};function et(e,t){let n=$e[t];if(n)return n;let r=S(t);if(r!==`filter`&&r in e)return $e[t]=r;r=w(r);for(let n=0;n<Qe.length;n++){let i=Qe[n]+r;if(i in e)return $e[t]=i}return t}function tt(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&P(r)&&n===r}var nt=`http://www.w3.org/1999/xlink`;function rt(e,t,n,r,i,a=pe(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(nt,t.slice(6,t.length)):e.setAttributeNS(nt,t,n):n==null||a&&!O(n)?e.removeAttribute(t):e.setAttribute(t,a?``:re(n)?String(n):n)}function it(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?we(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=O(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function at(e,t,n,r){e.addEventListener(t,n,r)}function ot(e,t,n,r){e.removeEventListener(t,n,r)}var st=Symbol(`_vei`);function ct(e,t,n,r,i=null){let a=e[st]||(e[st]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=ut(t);r?at(e,n,a[t]=mt(r,i),s):o&&(ot(e,n,o,s),a[t]=void 0)}}var lt=/(?:Once|Passive|Capture)$/;function ut(t){let n;if(lt.test(t)){n={};let e;for(;e=t.match(lt);)t=t.slice(0,t.length-e[0].length),n[e[0].toLowerCase()]=!0}return[t[2]===`:`?t.slice(3):e(t.slice(2)),n]}var dt=0,ft=Promise.resolve(),pt=()=>dt||=(ft.then(()=>dt=0),Date.now());function mt(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;fe(ht(e,n.value),t,5,[e])};return n.value=e,n.attached=pt(),n}function ht(e,t){if(_e(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var gt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_t=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?We(e,r,o):t===`style`?Ye(e,n,r):E(t)?he(t)||ct(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):vt(e,t,r,o))?(it(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&rt(e,t,r,o,a,t!==`value`)):e._isVueCE&&(yt(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!P(r)))?it(e,S(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),rt(e,t,r,o))};function vt(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&gt(t)&&de(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return gt(t)&&P(n)?!1:t in e}function yt(e,t){let n=e._def.props;if(!n)return!1;let r=S(t);return Array.isArray(n)?n.some(e=>S(e)===r):Object.keys(n).some(e=>S(e)===r)}var bt=new WeakMap,xt=new WeakMap,St=Symbol(`_moveCb`),Ct=Symbol(`_enterCb`),wt=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:_({},je,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=T(),r=g(),i,a;return ee(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!kt(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(Tt),i.forEach(Et);let r=i.filter(Dt);Ue(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;B(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[St]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[St]=null,V(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=M(e),s=Pe(o),c=o.tag||j;if(i=[],a)for(let e=0;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&(i.push(t),m(t,p(t,s,r,n)),bt.set(t,Ot(t.el)))}a=t.default?ve(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&m(t,p(t,s,r,n))}return A(c,null,a)}}});function Tt(e){let t=e.el;t[St]&&t[St](),t[Ct]&&t[Ct]()}function Et(e){xt.set(e,Ot(e.el))}function Dt(e){let t=bt.get(e),n=xt.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function Ot(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function kt(e,t,n){let r=e.cloneNode(),i=e[R];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Be(r);return a.removeChild(r),o}var At=[`ctrl`,`shift`,`alt`,`meta`],jt={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)=>At.some(n=>e[`${n}Key`]&&!t.includes(n))},Mt=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=jt[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Nt={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Pt=(t,n)=>{let r=t._withKeys||={},i=n.join(`.`);return r[i]||(r[i]=(r=>{if(!(`key`in r))return;let i=e(r.key);if(n.some(e=>e===i||Nt[e]===i))return t(r)}))},Ft=_({patchProp:_t},Oe),It;function Lt(){return It||=ae(Ft)}var Rt=((...e)=>{let t=Lt().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Bt(e);if(!r)return;let i=t._component;!de(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,zt(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function zt(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Bt(e){return P(e)?document.querySelector(e):e}var Vt=typeof window<`u`,Ht,Ut=e=>Ht=e,Wt=Symbol();function Gt(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var Kt;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(Kt||={});var qt=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function Jt(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function Yt(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){en(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function Xt(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Zt(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var Qt=typeof navigator==`object`?navigator:{userAgent:``},$t=/Macintosh/.test(Qt.userAgent)&&/AppleWebKit/.test(Qt.userAgent)&&!/Safari/.test(Qt.userAgent),en=Vt?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!$t?tn:`msSaveOrOpenBlob`in Qt?nn:rn:()=>{};function tn(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?Zt(r):Xt(r.href)?Yt(e,t,n):(r.target=`_blank`,Zt(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Zt(r)},0))}function nn(e,t=`download`,n){if(typeof e==`string`)if(Xt(e))Yt(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){Zt(t)})}else navigator.msSaveOrOpenBlob(Jt(e,n),t)}function rn(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return Yt(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(qt.HTMLElement))||`safari`in qt,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||$t)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:an}=Object;function on(){let e=f(!0),t=e.run(()=>x({})),n=[],r=[],i=b({install(e){Ut(i),i._a=e,e.provide(Wt,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var sn=()=>{};function cn(e,t,n,r=sn){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&v()&&c(i),i}function H(e,...t){e.forEach(e=>{e(...t)})}var ln=e=>e(),un=Symbol(),dn=Symbol();function fn(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let r in t){if(!t.hasOwnProperty(r))continue;let i=t[r],a=e[r];Gt(a)&&Gt(i)&&e.hasOwnProperty(r)&&!n(i)&&!xe(i)?e[r]=fn(a,i):e[r]=i}return e}var pn=Symbol();function mn(e){return!Gt(e)||!Object.prototype.hasOwnProperty.call(e,pn)}var{assign:U}=Object;function hn(e){return!!(n(e)&&e.effect)}function gn(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),U(u(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=b(N(()=>{Ut(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=_n(e,l,t,n,r,!0),c}function _n(e,t,i={},a,s,c){let l,u=U({actions:{}},i),d={deep:!0},p,m,h=new Set,g=new Set,_=a.state.value[e];!c&&!_&&(a.state.value[e]={}),x({});let v;function ee(t){let n;p=m=!1,typeof t==`function`?(t(a.state.value[e]),n={type:Kt.patchFunction,storeId:e,events:void 0}):(fn(a.state.value[e],t),n={type:Kt.patchObject,payload:t,storeId:e,events:void 0});let i=v=Symbol();r().then(()=>{v===i&&(p=!0)}),m=!0,H(h,n,a.state.value[e])}let b=c?function(){let{state:e}=i,t=e?e():{};this.$patch(e=>{U(e,t)})}:sn;function S(){l.stop(),h.clear(),g.clear(),a._s.delete(e)}let C=(t,n=``)=>{if(un in t)return t[dn]=n,t;let r=function(){Ut(a);let n=Array.from(arguments),i=new Set,o=new Set;function s(e){i.add(e)}function c(e){o.add(e)}H(g,{args:n,name:r[dn],store:w,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:w,n)}catch(e){throw H(o,e),e}return l instanceof Promise?l.then(e=>(H(i,e),e)).catch(e=>(H(o,e),Promise.reject(e))):(H(i,l),l)};return r[un]=!0,r[dn]=n,r},w=y({_p:a,$id:e,$onAction:cn.bind(null,g),$patch:ee,$reset:b,$subscribe(t,n={}){let r=cn(h,t,n.detached,()=>i()),i=l.run(()=>o(()=>a.state.value[e],r=>{(n.flush===`sync`?m:p)&&t({storeId:e,type:Kt.direct,events:void 0},r)},U({},d,n)));return r},$dispose:S});a._s.set(e,w);let T=(a._a&&a._a.runWithContext||ln)(()=>a._e.run(()=>(l=f()).run(()=>t({action:C}))));for(let t in T){let r=T[t];n(r)&&!hn(r)||xe(r)?c||(_&&mn(r)&&(n(r)?r.value=_[t]:fn(r,_[t])),a.state.value[e][t]=r):typeof r==`function`&&(T[t]=C(r,t),u.actions[t]=r)}return U(w,T),U(M(w),T),Object.defineProperty(w,`$state`,{get:()=>a.state.value[e],set:e=>{ee(t=>{U(t,e)})}}),a._p.forEach(e=>{U(w,l.run(()=>e({store:w,app:a._a,pinia:a,options:u})))}),_&&c&&i.hydrate&&i.hydrate(w.$state,_),p=!0,m=!0,w}function vn(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=te();return n||=o?F(Wt,null):null,n&&Ut(n),n=Ht,n._s.has(e)||(i?_n(e,t,r,n):gn(e,r,n)),n._s.get(e)}return a.$id=e,a}var W=typeof document<`u`;function yn(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function bn(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&yn(e.default)}var G=Object.assign;function xn(e,t){let n={};for(let r in t){let i=t[r];n[r]=K(i)?i.map(e):e(i)}return n}var Sn=()=>{},K=Array.isArray;function Cn(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var wn=/#/g,Tn=/&/g,En=/\//g,Dn=/=/g,On=/\?/g,kn=/\+/g,An=/%5B/g,jn=/%5D/g,Mn=/%5E/g,Nn=/%60/g,Pn=/%7B/g,Fn=/%7C/g,In=/%7D/g,Ln=/%20/g;function Rn(e){return e==null?``:encodeURI(``+e).replace(Fn,`|`).replace(An,`[`).replace(jn,`]`)}function zn(e){return Rn(e).replace(Pn,`{`).replace(In,`}`).replace(Mn,`^`)}function Bn(e){return Rn(e).replace(kn,`%2B`).replace(Ln,`+`).replace(wn,`%23`).replace(Tn,`%26`).replace(Nn,"`").replace(Pn,`{`).replace(In,`}`).replace(Mn,`^`)}function Vn(e){return Bn(e).replace(Dn,`%3D`)}function Hn(e){return Rn(e).replace(wn,`%23`).replace(On,`%3F`)}function Un(e){return Hn(e).replace(En,`%2F`)}function Wn(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Gn=/\/$/,Kn=e=>e.replace(Gn,``);function qn(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=tr(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:Wn(o)}}function Jn(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Yn(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Xn(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Zn(t.matched[r],n.matched[i])&&Qn(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Zn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Qn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!$n(e[n],t[n]))return!1;return!0}function $n(e,t){return K(e)?er(e,t):K(t)?er(t,e):e?.valueOf()===t?.valueOf()}function er(e,t){return K(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function tr(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var q={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},nr=function(e){return e.pop=`pop`,e.push=`push`,e}({}),rr=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function ir(e){if(!e)if(W){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Kn(e)}var ar=/^[^#]+#/;function or(e,t){return e.replace(ar,`#`)+t}function sr(e,t){let 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)}}var cr=()=>({left:window.scrollX,top:window.scrollY});function lr(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=sr(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function ur(e,t){return(history.state?history.state.position-t:-1)+e}var dr=new Map;function fr(e,t){dr.set(e,t)}function pr(e){let t=dr.get(e);return dr.delete(e),t}function mr(e){return typeof e==`string`||e&&typeof e==`object`}function hr(e){return typeof e==`string`||typeof e==`symbol`}var J=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),gr=Symbol(``);J.MATCHER_NOT_FOUND,J.NAVIGATION_GUARD_REDIRECT,J.NAVIGATION_ABORTED,J.NAVIGATION_CANCELLED,J.NAVIGATION_DUPLICATED;function _r(e,t){return G(Error(),{type:e,[gr]:!0},t)}function Y(e,t){return e instanceof Error&&gr in e&&(t==null||!!(e.type&t))}function vr(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(kn,` `),i=r.indexOf(`=`),a=Wn(i<0?r:r.slice(0,i)),o=i<0?null:Wn(r.slice(i+1));if(a in t){let e=t[a];K(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function yr(e){let t=``;for(let n in e){let r=e[n];if(n=Vn(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(K(r)?r.map(e=>e&&Bn(e)):[r&&Bn(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function br(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=K(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}var xr=Symbol(``),Sr=Symbol(``),Cr=Symbol(``),wr=Symbol(``),Tr=Symbol(``);function Er(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function X(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(_r(J.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):mr(e)?c(_r(J.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Dr(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(yn(s)){let c=(s.__vccOpts||s)[t];c&&a.push(X(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=bn(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&X(c,n,r,o,e,i)()}))}}return a}function Or(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>Zn(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>Zn(e,s))||i.push(s))}return[n,r,i]}var kr=()=>location.protocol+`//`+location.host;function Ar(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Yn(n,``)}return Yn(n,e)+r+i}function jr(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Ar(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:nr.pop,direction:u?u>0?rr.forward:rr.back:rr.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(G({},e.state,{scroll:cr()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Mr(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?cr():null}}function Nr(e){let{history:t,location:n}=window,r={value:Ar(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:kr()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,G({},t.state,Mr(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=G({},i.value,t.state,{forward:e,scroll:cr()});a(o.current,o,!0),a(e,G({},Mr(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Pr(e){e=ir(e);let t=Nr(e),n=jr(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=G({location:``,base:e,go:r,createHref:or.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}var Z=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),Q=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(Q||{}),Fr={type:Z.Static,value:``},Ir=/[a-zA-Z0-9_]/;function Lr(e){if(!e)return[[]];if(e===`/`)return[[Fr]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=Q.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===Q.Static?a.push({type:Z.Static,value:l}):n===Q.Param||n===Q.ParamRegExp||n===Q.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Z.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==Q.ParamRegExp){r=n,n=Q.EscapeNext;continue}switch(n){case Q.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=Q.Param):f();break;case Q.EscapeNext:f(),n=r;break;case Q.Param:c===`(`?n=Q.ParamRegExp:Ir.test(c)?f():(d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case Q.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=Q.ParamRegExpEnd:u+=c;break;case Q.ParamRegExpEnd:d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===Q.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Rr=`[^/]+?`,zr={sensitive:!1,strict:!1,start:!0,end:!0},$=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}($||{}),Br=/[.+*?^${}()[\]/\\]/g;function Vr(e,t){let n=G({},zr,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[$.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=$.Segment+(n.sensitive?$.BonusCaseSensitive:0);if(o.type===Z.Static)r||(i+=`/`),i+=o.value.replace(Br,`\\$&`),s+=$.Static;else if(o.type===Z.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Rr;if(u!==Rr){s+=$.BonusCustomRegExp;try{`${u}`}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=$.Dynamic,c&&(s+=$.BonusOptional),n&&(s+=$.BonusRepeatable),u===`.*`&&(s+=$.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=$.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===Z.Static)n+=e.value;else if(e.type===Z.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(K(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=K(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function Hr(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===$.Static+$.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===$.Static+$.Segment?1:-1:0}function Ur(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Hr(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Wr(r))return 1;if(Wr(i))return-1}return i.length-r.length}function Wr(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Gr={strict:!1,end:!0,sensitive:!1};function Kr(e,t,n){let r=G(Vr(Lr(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function qr(e,t){let n=[],r=new Map;t=Cn(Gr,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Yr(e);s.aliasOf=r&&r.record;let l=Cn(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Yr(G({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Kr(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Zr(d)&&o(e.name)),ti(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:Sn}function o(e){if(hr(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=$r(e,n);n.splice(t,0,e),e.record.name&&!Zr(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw _r(J.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=G(Jr(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Jr(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw _r(J.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=G({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Qr(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Jr(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Yr(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Xr(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,`mods`,{value:{}}),t}function Xr(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Zr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Qr(e){return e.reduce((e,t)=>G(e,t.meta),{})}function $r(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Ur(e,t[i])<0?r=i:n=i+1}let i=ei(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function ei(e){let t=e;for(;t=t.parent;)if(ti(t)&&Ur(e,t)===0)return t}function ti({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ni(e){let t=F(Cr),n=F(wr),r=N(()=>{let n=C(e.to);return t.resolve(n)}),i=N(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(Zn.bind(null,i));if(o>-1)return o;let s=si(e[t-2]);return t>1&&si(i)===s&&a[a.length-1].path!==s?a.findIndex(Zn.bind(null,e[t-2])):o}),a=N(()=>i.value>-1&&oi(n.params,r.value.params)),o=N(()=>i.value>-1&&i.value===n.matched.length-1&&Qn(n.params,r.value.params));function s(n={}){if(ai(n)){let n=t[C(e.replace)?`replace`:`push`](C(e.to)).catch(Sn);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:N(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function ri(e){return e.length===1?e[0]:e}var ii=k({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`},viewTransition:Boolean},useLink:ni,setup(e,{slots:t}){let n=y(ni(e)),{options:r}=F(Cr),i=N(()=>({[ci(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[ci(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&ri(t.default(n));return e.custom?r:be(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function ai(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){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function oi(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!K(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function si(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var ci=(e,t,n)=>e??t??n,li=k({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=F(Tr),a=N(()=>e.route||r.value),s=F(Sr,0),c=N(()=>{let e=C(s),{matched:t}=a.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),l=N(()=>a.value.matched[c.value]);i(Sr,N(()=>c.value+1)),i(xr,l),i(Tr,a);let u=x();return o(()=>[u.value,l.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Zn(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=a.value,i=e.name,o=l.value,s=o&&o.components[i];if(!s)return ui(n.default,{Component:s,route:r});let c=o.props[i],d=be(s,G({},c?c===!0?r.params:typeof c==`function`?c(r):c:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[i]=null)},ref:u}));return ui(n.default,{Component:d,route:r})||d}}});function ui(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var di=li;function fi(e){let t=qr(e.routes,e),n=e.parseQuery||vr,i=e.stringifyQuery||yr,a=e.history,o=Er(),c=Er(),l=Er(),u=d(q),f=q;W&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let p=xn.bind(null,e=>``+e),m=xn.bind(null,Un),h=xn.bind(null,Wn);function g(e,n){let r,i;return hr(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function _(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function v(){return t.getRoutes().map(e=>e.record)}function ee(e){return!!t.getRecordMatcher(e)}function y(e,r){if(r=G({},r||u.value),typeof e==`string`){let i=qn(n,e,r.path),o=t.resolve({path:i.path},r),s=a.createHref(i.fullPath);return G(i,o,{params:h(o.params),hash:Wn(i.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=G({},e,{path:qn(n,e.path,r.path).path});else{let t=G({},e.params);for(let e in t)t[e]??delete t[e];o=G({},e,{params:m(t)}),r.params=m(r.params)}let s=t.resolve(o,r),c=e.hash||``;s.params=p(h(s.params));let l=Jn(i,G({},e,{hash:zn(c),path:s.path})),d=a.createHref(l);return G({fullPath:l,hash:c,query:i===yr?br(e.query):e.query||{}},s,{redirectedFrom:void 0,href:d})}function b(e){return typeof e==`string`?qn(n,e,u.value.path):G({},e)}function x(e,t){if(f!==e)return _r(J.NAVIGATION_CANCELLED,{from:t,to:e})}function S(e){return E(e)}function w(e){return S(G(b(e),{replace:!0}))}function T(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=b(i):{path:i},i.params={}),G({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function E(e,t){let n=f=y(e),r=u.value,a=e.state,o=e.force,s=e.replace===!0,c=T(n,r);if(c)return E(G(b(c),{state:typeof c==`object`?G({},a,c.state):a,force:o,replace:s}),t||n);let l=n;l.redirectedFrom=t;let d;return!o&&Xn(i,r,n)&&(d=_r(J.NAVIGATION_DUPLICATED,{to:l,from:r}),le(r,r,!0,!1)),(d?Promise.resolve(d):re(l,r)).catch(e=>Y(e)?Y(e,J.NAVIGATION_GUARD_REDIRECT)?e:ce(e):j(e,l,r)).then(e=>{if(e){if(Y(e,J.NAVIGATION_GUARD_REDIRECT))return E(G({replace:s},b(e.to),{state:typeof e.to==`object`?G({},a,e.to.state):a,force:o}),t||l)}else e=ie(l,r,!0,s,a);return D(l,r,e),e})}function te(e,t){let n=x(e,t);return n?Promise.reject(n):Promise.resolve()}function ne(e){let t=fe.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function re(e,t){let n,[r,i,a]=Or(e,t);n=Dr(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(X(r,e,t))});let s=te.bind(null,e,t);return n.push(s),M(n).then(()=>{n=[];for(let r of o.list())n.push(X(r,e,t));return n.push(s),M(n)}).then(()=>{n=Dr(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(X(r,e,t))});return n.push(s),M(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(K(r.beforeEnter))for(let i of r.beforeEnter)n.push(X(i,e,t));else n.push(X(r.beforeEnter,e,t));return n.push(s),M(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Dr(a,`beforeRouteEnter`,e,t,ne),n.push(s),M(n))).then(()=>{n=[];for(let r of c.list())n.push(X(r,e,t));return n.push(s),M(n)}).catch(e=>Y(e,J.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function D(e,t,n){l.list().forEach(r=>ne(()=>r(e,t,n)))}function ie(e,t,n,r,i){let o=x(e,t);if(o)return o;let s=t===q,c=W?history.state:{};n&&(r||s?a.replace(e.fullPath,G({scroll:s&&c&&c.scroll},i)):a.push(e.fullPath,i)),u.value=e,le(e,t,n,s),ce()}let O;function ae(){O||=a.listen((e,t,n)=>{if(!pe.listening)return;let r=y(e),i=T(r,pe.currentRoute.value);if(i){E(G(i,{replace:!0,force:!0}),r).catch(Sn);return}f=r;let o=u.value;W&&fr(ur(o.fullPath,n.delta),cr()),re(r,o).catch(e=>Y(e,J.NAVIGATION_ABORTED|J.NAVIGATION_CANCELLED)?e:Y(e,J.NAVIGATION_GUARD_REDIRECT)?(E(G(b(e.to),{force:!0}),r).then(e=>{Y(e,J.NAVIGATION_ABORTED|J.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===nr.pop&&a.go(-1,!1)}).catch(Sn),Promise.reject()):(n.delta&&a.go(-n.delta,!1),j(e,r,o))).then(e=>{e||=ie(r,o,!1),e&&(n.delta&&!Y(e,J.NAVIGATION_CANCELLED)?a.go(-n.delta,!1):n.type===nr.pop&&Y(e,J.NAVIGATION_ABORTED|J.NAVIGATION_DUPLICATED)&&a.go(-1,!1)),D(r,o,e)}).catch(Sn)})}let oe=Er(),k=Er(),A;function j(e,t,n){ce(e);let r=k.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function se(){return A&&u.value!==q?Promise.resolve():new Promise((e,t)=>{oe.add([e,t])})}function ce(e){return A||(A=!e,ae(),oe.list().forEach(([t,n])=>e?n(e):t()),oe.reset()),e}function le(t,n,i,a){let{scrollBehavior:o}=e;if(!W||!o)return Promise.resolve();let s=!i&&pr(ur(t.fullPath,0))||(a||!i)&&history.state&&history.state.scroll||null;return r().then(()=>o(t,n,s)).then(e=>e&&lr(e)).catch(e=>j(e,t,n))}let ue=e=>a.go(e),de,fe=new Set,pe={currentRoute:u,listening:!0,addRoute:g,removeRoute:_,clearRoutes:t.clearRoutes,hasRoute:ee,getRoutes:v,resolve:y,options:e,push:S,replace:w,go:ue,back:()=>ue(-1),forward:()=>ue(1),beforeEach:o.add,beforeResolve:c.add,afterEach:l.add,onError:k.add,isReady:se,install(e){e.component(`RouterLink`,ii),e.component(`RouterView`,di),e.config.globalProperties.$router=pe,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>C(u)}),W&&!de&&u.value===q&&(de=!0,S(a.location).catch(e=>{}));let t={};for(let e in q)Object.defineProperty(t,e,{get:()=>u.value[e],enumerable:!0});e.provide(Cr,pe),e.provide(wr,s(t)),e.provide(Tr,u);let n=e.unmount;fe.add(e),e.unmount=function(){fe.delete(e),fe.size<1&&(f=q,O&&O(),O=null,u.value=q,de=!1,A=!1),n()}}};function M(e){return e.reduce((e,t)=>e.then(()=>ne(t)),Promise.resolve())}return pe}function pi(e){return F(wr)}var mi={class:`bottom-nav`,"aria-label":`Main navigation`},hi=[`innerHTML`],gi={class:`bottom-nav__label`},_i=ge(k({__name:`BottomNav`,setup(e){let n=pi(),r=[{name:`home`,label:`Home`,to:`/`,icon:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9,22 9,12 15,12 15,22"/></svg>`},{name:`library`,label:`Library`,to:`/library`,icon:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/></svg>`},{name:`shared`,label:`Shared`,to:`/shared`,icon:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"/><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"/></svg>`},{name:`settings`,label:`Settings`,to:`/settings`,icon:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg>`}];function i(e){return e===`/`?n.path===`/`:n.path.startsWith(e)}return(e,n)=>{let o=t(`RouterLink`);return a(),D(`nav`,mi,[(a(),D(j,null,h(r,e=>A(o,{key:e.name,to:e.to,class:ce([`bottom-nav__tab`,{"bottom-nav__tab--active":i(e.to)}]),"aria-label":e.label,"aria-current":i(e.to)?`page`:void 0},{default:l(()=>[ne(`span`,{class:`bottom-nav__icon`,"aria-hidden":`true`,innerHTML:e.icon},null,8,hi),ne(`span`,gi,ie(e.label),1)]),_:2},1032,[`to`,`class`,`aria-label`,`aria-current`])),64))])}}}),[[`__scopeId`,`data-v-d13e1375`]]),vi=0,yi=vn(`toast`,()=>{let e=x([]);function t(t,r=`info`){let i=++vi;e.value.push({id:i,message:t,type:r}),setTimeout(()=>n(i),2500)}function n(t){let n=e.value.findIndex(e=>e.id===t);n!==-1&&e.value.splice(n,1)}return{toasts:e,show:t,dismiss:n}}),bi={class:`toast-region`,"aria-live":`polite`,"aria-atomic":`false`},xi=[`onClick`],Si=ge(k({__name:`BaseToast`,setup(e){let t=yi();return(e,n)=>(a(),D(`div`,bi,[A(wt,{name:`toast`,tag:`ul`,class:`toast-list`},{default:l(()=>[(a(!0),D(j,null,h(C(t).toasts,e=>(a(),D(`li`,{key:e.id,class:ce([`toast`,`toast--${e.type}`]),role:`status`},[le(ie(e.message)+` `,1),ne(`button`,{class:`toast__close`,"aria-label":`Dismiss`,onClick:n=>C(t).dismiss(e.id)},` × `,8,xi)],2))),128))]),_:1})]))}}),[[`__scopeId`,`data-v-546af507`]]),Ci=vn(`auth`,()=>{let e=x(window.__PF_USER__??null),t=N(()=>e.value!==null);function n(t){e.value=t}return{user:e,isAuthenticated:t,setUser:n}}),wi=[{id:`warm-craft`,label:`Warm Craft`,primary:`#c97c3a`,bg:`#fdf6ee`,text:`#3a2e22`},{id:`playful-pop`,label:`Playful Pop`,primary:`#d63aab`,bg:`#fff0fb`,text:`#2d0a28`},{id:`sage-cream`,label:`Sage & Cream`,primary:`#4e7c3a`,bg:`#f6f8f3`,text:`#1e2b1a`},{id:`dusty-mauve`,label:`Dusty Mauve`,primary:`#8e4a84`,bg:`#f6f0f4`,text:`#2a1828`},{id:`ocean-dusk`,label:`Ocean Dusk`,primary:`#1a6ea8`,bg:`#eef3f8`,text:`#0e2030`},{id:`honey-slate`,label:`Honey & Slate`,primary:`#c49a20`,bg:`#f2f2ee`,text:`#1c1c18`}];function Ti(){let e=Ci(),t=yi();function n(t){document.documentElement.dataset.theme=t,e.user&&(e.user.theme=t)}async function r(e){n(e);try{if(!(await fetch(`/api/user/theme`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({theme:e})})).ok)throw Error(`Failed to save theme`)}catch{t.show(`Could not save theme — try again`,`error`)}}return{THEMES:wi,applyTheme:n,saveTheme:r}}var Ei=k({__name:`App`,setup(e){let n=Ci(),{applyTheme:r}=Ti();return ye(()=>{let e=document.documentElement.dataset.theme;e&&n.user?n.user.theme=e:n.user?.theme&&r(n.user.theme)}),(e,n)=>{let r=t(`RouterView`);return a(),D(j,null,[A(r),A(_i),A(Si)],64)}}}),Di=`modulepreload`,Oi=function(e){return`/build/`+e},ki={},Ai=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Oi(t,n),t in ki)return;ki[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Di,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ji=fi({history:Pr(),routes:[{path:`/`,name:`home`,component:()=>Ai(()=>import(`./HomeView-CPodDsbB.js`),__vite__mapDeps([0,1,2])),meta:{requiresAuth:!0}},{path:`/library`,name:`library`,component:()=>Ai(()=>import(`./LibraryView-BySweTRn.js`),__vite__mapDeps([3,1,4])),meta:{requiresAuth:!0}},{path:`/shared`,name:`shared`,component:()=>Ai(()=>import(`./SharedView-BTE7l26P.js`),__vite__mapDeps([5,1,6])),meta:{requiresAuth:!0}},{path:`/settings`,name:`settings`,component:()=>Ai(()=>import(`./SettingsView-CgeTYG3Q.js`),__vite__mapDeps([7,1,8])),meta:{requiresAuth:!0}},{path:`/:pathMatch(.*)*`,redirect:`/`}]});ji.beforeEach(e=>{let t=Ci();if(e.meta.requiresAuth&&!t.isAuthenticated)return window.location.href=`/login`,!1});var Mi=Rt(Ei);Mi.use(on()),Mi.use(ji),Mi.mount(`#app`);export{Me as a,vn as i,Ti as n,Pt as o,Ci as r,Mt as s,wi as t};