ambient-display 1.1.19 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/assets/0.Dl9__I4E.css.gz +0 -0
- package/build/client/_app/immutable/assets/2.BtzFOBtk.css.gz +0 -0
- package/build/client/_app/immutable/assets/3.VTEzhx9-.css.gz +0 -0
- package/build/client/_app/immutable/assets/LoadingIndicator.D0m6rSKQ.css.gz +0 -0
- package/build/client/_app/immutable/assets/PlayingTracker.BPTtFzSw.css.gz +0 -0
- package/build/client/_app/immutable/assets/_layout.Dl9__I4E.css.gz +0 -0
- package/build/client/_app/immutable/assets/_page.BtzFOBtk.css.gz +0 -0
- package/build/client/_app/immutable/assets/_page.VTEzhx9-.css.gz +0 -0
- package/build/client/_app/immutable/chunks/LoadingIndicator.C1fneNq_.js +1 -0
- package/build/client/_app/immutable/chunks/LoadingIndicator.C1fneNq_.js.br +0 -0
- package/build/client/_app/immutable/chunks/LoadingIndicator.C1fneNq_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/PlayingTracker.yCKSqsZv.js +5 -0
- package/build/client/_app/immutable/chunks/PlayingTracker.yCKSqsZv.js.br +0 -0
- package/build/client/_app/immutable/chunks/PlayingTracker.yCKSqsZv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/disclose-version.N57b1q78.js +1 -0
- package/build/client/_app/immutable/chunks/disclose-version.N57b1q78.js.br +0 -0
- package/build/client/_app/immutable/chunks/disclose-version.N57b1q78.js.gz +0 -0
- package/build/client/_app/immutable/chunks/entry.B2wj1Tgy.js +3 -0
- package/build/client/_app/immutable/chunks/entry.B2wj1Tgy.js.br +0 -0
- package/build/client/_app/immutable/chunks/entry.B2wj1Tgy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/index-client.DV07uIiZ.js +1 -0
- package/build/client/_app/immutable/chunks/index-client.DV07uIiZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/index-client.DV07uIiZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/index.DFULH2AN.js +1 -0
- package/build/client/_app/immutable/chunks/index.DFULH2AN.js.br +0 -0
- package/build/client/_app/immutable/chunks/index.DFULH2AN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/index.dKTgPKtW.js +4 -0
- package/build/client/_app/immutable/chunks/index.dKTgPKtW.js.br +0 -0
- package/build/client/_app/immutable/chunks/index.dKTgPKtW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/legacy.DZgMwYuQ.js +1 -0
- package/build/client/_app/immutable/chunks/legacy.DZgMwYuQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/legacy.DZgMwYuQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/props.DYfFZGja.js +1 -0
- package/build/client/_app/immutable/chunks/props.DYfFZGja.js.br +0 -0
- package/build/client/_app/immutable/chunks/props.DYfFZGja.js.gz +0 -0
- package/build/client/_app/immutable/chunks/snippet.BVSCguOu.js +1 -0
- package/build/client/_app/immutable/chunks/snippet.BVSCguOu.js.br +0 -0
- package/build/client/_app/immutable/chunks/snippet.BVSCguOu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/this.EZLWgc5v.js +1 -0
- package/build/client/_app/immutable/chunks/this.EZLWgc5v.js.br +0 -0
- package/build/client/_app/immutable/chunks/this.EZLWgc5v.js.gz +0 -0
- package/build/client/_app/immutable/chunks/utils.BXcQV2KO.js +1 -0
- package/build/client/_app/immutable/chunks/utils.BXcQV2KO.js.br +0 -0
- package/build/client/_app/immutable/chunks/utils.BXcQV2KO.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CUN30c9h.js +2 -0
- package/build/client/_app/immutable/entry/app.CUN30c9h.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CUN30c9h.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.C6HhKPxU.js +1 -0
- package/build/client/_app/immutable/entry/start.C6HhKPxU.js.br +2 -0
- package/build/client/_app/immutable/entry/start.C6HhKPxU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CpFR5G02.js +2 -0
- package/build/client/_app/immutable/nodes/0.CpFR5G02.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CpFR5G02.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.B3XhlwDo.js +1 -0
- package/build/client/_app/immutable/nodes/1.B3XhlwDo.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.B3XhlwDo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.MU8ojSgR.js +1 -0
- package/build/client/_app/immutable/nodes/2.MU8ojSgR.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.MU8ojSgR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.C-yT6jXP.js +1 -0
- package/build/client/_app/immutable/nodes/3.C-yT6jXP.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.C-yT6jXP.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/client/manifest.json.gz +0 -0
- package/build/server/chunks/{0-DghaxOyi.js → 0-nirVogjh.js} +3 -3
- package/build/server/chunks/0-nirVogjh.js.map +1 -0
- package/build/server/chunks/1-DcCpi3nW.js +9 -0
- package/build/server/chunks/1-DcCpi3nW.js.map +1 -0
- package/build/server/chunks/2-CwMl96vS.js +9 -0
- package/build/server/chunks/2-CwMl96vS.js.map +1 -0
- package/build/server/chunks/3-DPYW2cKz.js +9 -0
- package/build/server/chunks/3-DPYW2cKz.js.map +1 -0
- package/build/server/chunks/LoadingIndicator-CDp6tTFY.js +10 -0
- package/build/server/chunks/LoadingIndicator-CDp6tTFY.js.map +1 -0
- package/build/server/chunks/{LoadingIndicator.svelte_svelte_type_style_lang-DpRiqnJg.js → LoadingIndicator.svelte_svelte_type_style_lang-F_3XEmUz.js} +2 -2
- package/build/server/chunks/{LoadingIndicator.svelte_svelte_type_style_lang-DpRiqnJg.js.map → LoadingIndicator.svelte_svelte_type_style_lang-F_3XEmUz.js.map} +1 -1
- package/build/server/chunks/{PlayingTracker-DuFebO2_.js → PlayingTracker-Dm2xxH7o.js} +3 -3
- package/build/server/chunks/{PlayingTracker-DuFebO2_.js.map → PlayingTracker-Dm2xxH7o.js.map} +1 -1
- package/build/server/chunks/{_layout.svelte-CADTy4fg.js → _layout.svelte-BkMsHLGZ.js} +4 -5
- package/build/server/chunks/_layout.svelte-BkMsHLGZ.js.map +1 -0
- package/build/server/chunks/_page.svelte-BlQ5BDxG.js +115 -0
- package/build/server/chunks/_page.svelte-BlQ5BDxG.js.map +1 -0
- package/build/server/chunks/{_page.svelte-CYugZxLe.js → _page.svelte-CdVsmVc4.js} +16 -15
- package/build/server/chunks/_page.svelte-CdVsmVc4.js.map +1 -0
- package/build/server/chunks/error.svelte-BZE1ioPX.js +116 -0
- package/build/server/chunks/error.svelte-BZE1ioPX.js.map +1 -0
- package/build/server/chunks/{exports-D0QHgeSL.js → exports-DAjI6ZSp.js} +17 -2
- package/build/server/chunks/exports-DAjI6ZSp.js.map +1 -0
- package/build/server/chunks/{index2-DObisaVF.js → index2-BA59f76P.js} +297 -337
- package/build/server/chunks/index2-BA59f76P.js.map +1 -0
- package/build/server/index.js +156 -345
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +5 -6
- package/build/server/manifest.js.map +1 -1
- package/package.json +1 -1
- package/server/index.js +3 -9
- package/server/spotify/index.js +0 -4
- package/server/spotify_auth.json +1 -7
- package/server/utils.js +5 -0
- package/build/client/_app/immutable/chunks/BQ2eCqC3.js +0 -5
- package/build/client/_app/immutable/chunks/BQ2eCqC3.js.br +0 -0
- package/build/client/_app/immutable/chunks/BQ2eCqC3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C7I4vMbc.js +0 -1
- package/build/client/_app/immutable/chunks/C7I4vMbc.js.br +0 -2
- package/build/client/_app/immutable/chunks/C7I4vMbc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CDVeMiAl.js +0 -1
- package/build/client/_app/immutable/chunks/CDVeMiAl.js.br +0 -0
- package/build/client/_app/immutable/chunks/CDVeMiAl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CvUX3i4L.js +0 -1
- package/build/client/_app/immutable/chunks/CvUX3i4L.js.br +0 -0
- package/build/client/_app/immutable/chunks/CvUX3i4L.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D5aAvvqP.js +0 -2
- package/build/client/_app/immutable/chunks/D5aAvvqP.js.br +0 -0
- package/build/client/_app/immutable/chunks/D5aAvvqP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D8ITvQqD.js +0 -3
- package/build/client/_app/immutable/chunks/D8ITvQqD.js.br +0 -0
- package/build/client/_app/immutable/chunks/D8ITvQqD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DiaFwogD.js +0 -4
- package/build/client/_app/immutable/chunks/DiaFwogD.js.br +0 -0
- package/build/client/_app/immutable/chunks/DiaFwogD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DnG2xkSB.js +0 -1
- package/build/client/_app/immutable/chunks/DnG2xkSB.js.br +0 -2
- package/build/client/_app/immutable/chunks/DnG2xkSB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/EvVuwjft.js +0 -1
- package/build/client/_app/immutable/chunks/EvVuwjft.js.br +0 -0
- package/build/client/_app/immutable/chunks/EvVuwjft.js.gz +0 -0
- package/build/client/_app/immutable/chunks/qSIFE6bv.js +0 -1
- package/build/client/_app/immutable/chunks/qSIFE6bv.js.br +0 -0
- package/build/client/_app/immutable/chunks/qSIFE6bv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ynvIH2CR.js +0 -1
- package/build/client/_app/immutable/chunks/ynvIH2CR.js.br +0 -0
- package/build/client/_app/immutable/chunks/ynvIH2CR.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.Bf5niEvD.js +0 -2
- package/build/client/_app/immutable/entry/app.Bf5niEvD.js.br +0 -0
- package/build/client/_app/immutable/entry/app.Bf5niEvD.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DYX_a1uj.js +0 -1
- package/build/client/_app/immutable/entry/start.DYX_a1uj.js.br +0 -2
- package/build/client/_app/immutable/entry/start.DYX_a1uj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.BWH--JS_.js +0 -2
- package/build/client/_app/immutable/nodes/0.BWH--JS_.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.BWH--JS_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.D_c4RSZq.js +0 -1
- package/build/client/_app/immutable/nodes/1.D_c4RSZq.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.D_c4RSZq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DxFkPkVM.js +0 -1
- package/build/client/_app/immutable/nodes/2.DxFkPkVM.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DxFkPkVM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.DHrglKgJ.js +0 -1
- package/build/client/_app/immutable/nodes/3.DHrglKgJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.DHrglKgJ.js.gz +0 -0
- package/build/server/chunks/0-DghaxOyi.js.map +0 -1
- package/build/server/chunks/1-BJvQLIan.js +0 -9
- package/build/server/chunks/1-BJvQLIan.js.map +0 -1
- package/build/server/chunks/2-cxDj5MEl.js +0 -9
- package/build/server/chunks/2-cxDj5MEl.js.map +0 -1
- package/build/server/chunks/3-Bd5ZeRiN.js +0 -9
- package/build/server/chunks/3-Bd5ZeRiN.js.map +0 -1
- package/build/server/chunks/LoadingIndicator-BgSuwc17.js +0 -10
- package/build/server/chunks/LoadingIndicator-BgSuwc17.js.map +0 -1
- package/build/server/chunks/_layout.svelte-CADTy4fg.js.map +0 -1
- package/build/server/chunks/_page.svelte-B1q4zDaO.js +0 -114
- package/build/server/chunks/_page.svelte-B1q4zDaO.js.map +0 -1
- package/build/server/chunks/_page.svelte-CYugZxLe.js.map +0 -1
- package/build/server/chunks/error.svelte-DGl1DMvJ.js +0 -55
- package/build/server/chunks/error.svelte-DGl1DMvJ.js.map +0 -1
- package/build/server/chunks/exports-D0QHgeSL.js.map +0 -1
- package/build/server/chunks/index2-DObisaVF.js.map +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{q as We,Y as te,h as T,as as wt,ap as Et,C as At,d as kt,o as Ce,a6 as Tt,W as Ot,X as Ne,Z as F,i as I,ay as Rt,_ as je,f as ze,H as St,aC as Je,T as Ct,a1 as Nt,M as Be,aH as se,P as Le,aI as _e,aJ as Pe,aK as Bt,aB as Lt,aL as Pt,g as xt,aM as me,aN as qt,ar as It,aO as Xe,aP as Dt,aQ as Mt,R as Ut,aR as Vt,aS as Ft,aT as H,aU as $,x as Ht}from"./CDVeMiAl.js";import{k as $t,l as Kt,e as Yt,o as Wt,p as jt,t as zt,a as Jt}from"./qSIFE6bv.js";import{b as Xt}from"./CvUX3i4L.js";function Qt(s,e){if(e){const t=document.body;s.autofocus=!0,We(()=>{document.activeElement===t&&s.focus()})}}let re=null;function fr(s,e){return e}function Gt(s,e,t,r){for(var i=[],n=e.length,o=0;o<n;o++)Bt(e[o].e,i,!0);var a=n>0&&i.length===0&&t!==null;if(a){var c=t.parentNode;Lt(c),c.append(t),r.clear(),L(s,e[0].prev,e[n-1].next)}Pt(i,()=>{for(var f=0;f<n;f++){var l=e[f];a||(r.delete(l.k),L(s,l.prev,l.next)),xt(l.e,!a)}})}function lr(s,e,t,r,i,n=null){var o=s,a={flags:e,items:new Map,first:null},c=(e&Xe)!==0;if(c){var f=s;o=T?te(wt(f)):f.appendChild(Et())}T&&At();var l=null,_=!1,u=Tt(()=>{var v=t();return Ct(v)?v:v==null?[]:Je(v)});kt(()=>{var v=Ce(u),g=v.length;if(_&&g===0)return;_=g===0;let m=!1;if(T){var A=o.data===Ot;A!==(g===0)&&(o=Ne(),te(o),F(!1),m=!0)}if(T){for(var b=null,k,p=0;p<g;p++){if(I.nodeType===8&&I.data===Rt){o=I,m=!0,F(!1);break}var h=v[p],d=r(h,p);k=Qe(I,a,b,null,h,d,p,i,e,t),a.items.set(d,k),b=k}g>0&&te(Ne())}T||Zt(v,a,o,i,e,r,t),n!==null&&(g===0?l?je(l):l=ze(()=>n(o)):l!==null&&St(l,()=>{l=null})),m&&F(!0),Ce(u)}),T&&(o=I)}function Zt(s,e,t,r,i,n,o){var ke,Te,Oe,Re;var a=(i&Dt)!==0,c=(i&(me|_e))!==0,f=s.length,l=e.items,_=e.first,u=_,v,g=null,m,A=[],b=[],k,p,h,d;if(a)for(d=0;d<f;d+=1)k=s[d],p=n(k,d),h=l.get(p),h!==void 0&&((ke=h.a)==null||ke.measure(),(m??(m=new Set)).add(h));for(d=0;d<f;d+=1){if(k=s[d],p=n(k,d),h=l.get(p),h===void 0){var B=u?u.e.nodes_start:t;g=Qe(B,e,g,g===null?e.first:g.next,k,p,d,r,i,o),l.set(p,g),A=[],b=[],u=g.next;continue}if(c&&es(h,k,d,i),(h.e.f&se)!==0&&(je(h.e),a&&((Te=h.a)==null||Te.unfix(),(m??(m=new Set)).delete(h))),h!==u){if(v!==void 0&&v.has(h)){if(A.length<b.length){var w=b[0],S;g=w.prev;var K=A[0],Z=A[A.length-1];for(S=0;S<A.length;S+=1)xe(A[S],w,t);for(S=0;S<b.length;S+=1)v.delete(b[S]);L(e,K.prev,Z.next),L(e,g,K),L(e,Z,w),u=w,g=Z,d-=1,A=[],b=[]}else v.delete(h),xe(h,u,t),L(e,h.prev,h.next),L(e,h,g===null?e.first:g.next),L(e,g,h),g=h;continue}for(A=[],b=[];u!==null&&u.k!==p;)(u.e.f&se)===0&&(v??(v=new Set)).add(u),b.push(u),u=u.next;if(u===null)continue;h=u}A.push(h),g=h,u=h.next}if(u!==null||v!==void 0){for(var q=v===void 0?[]:Je(v);u!==null;)(u.e.f&se)===0&&q.push(u),u=u.next;var ee=q.length;if(ee>0){var bt=(i&Xe)!==0&&f===0?t:null;if(a){for(d=0;d<ee;d+=1)(Oe=q[d].a)==null||Oe.measure();for(d=0;d<ee;d+=1)(Re=q[d].a)==null||Re.fix()}Gt(e,q,bt,l)}}a&&We(()=>{var Se;if(m!==void 0)for(h of m)(Se=h.a)==null||Se.apply()}),Le.first=e.first&&e.first.e,Le.last=g&&g.e}function es(s,e,t,r){(r&me)!==0&&Pe(s.v,e),(r&_e)!==0?Pe(s.i,t):s.i=t}function Qe(s,e,t,r,i,n,o,a,c,f){var l=re,_=(c&me)!==0,u=(c&qt)===0,v=_?u?Nt(i):Be(i):i,g=(c&_e)===0?o:Be(o),m={i:g,v,k:n,a:null,e:null,prev:t,next:r};re=m;try{return m.e=ze(()=>a(s,v,g,f),T),m.e.prev=t&&t.e,m.e.next=r&&r.e,t===null?e.first=m:(t.next=m,t.e.next=m.e),r!==null&&(r.prev=m,r.e.prev=m.e),m}finally{re=l}}function xe(s,e,t){for(var r=s.next?s.next.e.nodes_start:t,i=e?e.e.nodes_start:t,n=s.e.nodes_start;n!==r;){var o=It(n);i.before(n),n=o}}function L(s,e,t){e===null?s.first=t:(e.next=t,e.e.next=t&&t.e),t!==null&&(t.prev=e,t.e.prev=e&&e.e)}function Ge(s){var e,t,r="";if(typeof s=="string"||typeof s=="number")r+=s;else if(typeof s=="object")if(Array.isArray(s)){var i=s.length;for(e=0;e<i;e++)s[e]&&(t=Ge(s[e]))&&(r&&(r+=" "),r+=t)}else for(t in s)s[t]&&(r&&(r+=" "),r+=t);return r}function ts(){for(var s,e,t=0,r="",i=arguments.length;t<i;t++)(s=arguments[t])&&(e=Ge(s))&&(r&&(r+=" "),r+=e);return r}function ss(s){return typeof s=="object"?ts(s):s??""}const qe=[...`
|
|
2
|
-
\r\f \v\uFEFF`];function rs(s,e,t){var r=s==null?"":""+s;if(e&&(r=r?r+" "+e:e),t){for(var i in t)if(t[i])r=r?r+" "+i:i;else if(r.length)for(var n=i.length,o=0;(o=r.indexOf(i,o))>=0;){var a=o+n;(o===0||qe.includes(r[o-1]))&&(a===r.length||qe.includes(r[a]))?r=(o===0?"":r.substring(0,o))+r.substring(a+1):o=a}}return r===""?null:r}function Ie(s,e=!1){var t=e?" !important;":";",r="";for(var i in s){var n=s[i];n!=null&&n!==""&&(r+=" "+i+": "+n+t)}return r}function ie(s){return s[0]!=="-"||s[1]!=="-"?s.toLowerCase():s}function is(s,e){if(e){var t="",r,i;if(Array.isArray(e)?(r=e[0],i=e[1]):r=e,s){s=String(s).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var n=!1,o=0,a=!1,c=[];r&&c.push(...Object.keys(r).map(ie)),i&&c.push(...Object.keys(i).map(ie));var f=0,l=-1;const m=s.length;for(var _=0;_<m;_++){var u=s[_];if(a?u==="/"&&s[_-1]==="*"&&(a=!1):n?n===u&&(n=!1):u==="/"&&s[_+1]==="*"?a=!0:u==='"'||u==="'"?n=u:u==="("?o++:u===")"&&o--,!a&&n===!1&&o===0){if(u===":"&&l===-1)l=_;else if(u===";"||_===m-1){if(l!==-1){var v=ie(s.substring(f,l).trim());if(!c.includes(v)){u!==";"&&_++;var g=s.substring(f,_).trim();t+=" "+g+";"}}f=_+1,l=-1}}}}return r&&(t+=Ie(r)),i&&(t+=Ie(i,!0)),t=t.trim(),t===""?null:t}return s==null?null:String(s)}function Ze(s,e,t,r,i,n){var o=s.__className;if(T||o!==t){var a=rs(t,r,n);(!T||a!==s.getAttribute("class"))&&(a==null?s.removeAttribute("class"):e?s.className=a:s.setAttribute("class",a)),s.__className=t}else if(n&&i!==n)for(var c in n){var f=!!n[c];(i==null||f!==!!i[c])&&s.classList.toggle(c,f)}return n}function ne(s,e={},t,r){for(var i in t){var n=t[i];e[i]!==n&&(t[i]==null?s.style.removeProperty(i):s.style.setProperty(i,n,r))}}function ns(s,e,t,r){var i=s.__style;if(T||i!==e){var n=is(e,r);(!T||n!==s.getAttribute("style"))&&(n==null?s.removeAttribute("style"):s.style.cssText=n),s.__style=e}else r&&(Array.isArray(r)?(ne(s,t==null?void 0:t[0],r[0]),ne(s,t==null?void 0:t[1],r[1],"important")):ne(s,t,r));return r}const D=Symbol("class"),M=Symbol("style"),et=Symbol("is custom element"),tt=Symbol("is html");function os(s,e){e?s.hasAttribute("selected")||s.setAttribute("selected",""):s.removeAttribute("selected")}function De(s,e,t,r){var i=st(s);T&&(i[e]=s.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&s.nodeName==="LINK")||i[e]!==(i[e]=t)&&(e==="loading"&&(s[Ft]=t),t==null?s.removeAttribute(e):typeof t!="string"&&rt(s).includes(e)?s[e]=t:s.setAttribute(e,t))}function dr(s,e,t,r,i=!1){var n=st(s),o=n[et],a=!n[tt];let c=T&&o;c&&F(!1);var f=e||{},l=s.tagName==="OPTION";for(var _ in e)_ in t||(t[_]=null);t.class?t.class=ss(t.class):t[D]&&(t.class=null),t[M]&&(t.style??(t.style=null));var u=rt(s);for(const p in t){let h=t[p];if(l&&p==="value"&&h==null){s.value=s.__value="",f[p]=h;continue}if(p==="class"){var v=s.namespaceURI==="http://www.w3.org/1999/xhtml";Ze(s,v,h,r,e==null?void 0:e[D],t[D]),f[p]=h,f[D]=t[D];continue}if(p==="style"){ns(s,h,e==null?void 0:e[M],t[M]),f[p]=h,f[M]=t[M];continue}var g=f[p];if(h!==g){f[p]=h;var m=p[0]+p[1];if(m!=="$$")if(m==="on"){const d={},B="$$"+p;let w=p.slice(2);var A=jt(w);if($t(w)&&(w=w.slice(0,-7),d.capture=!0),!A&&g){if(h!=null)continue;s.removeEventListener(w,f[B],d),f[B]=null}if(h!=null)if(A)s[`__${w}`]=h,Yt([w]);else{let S=function(K){f[p].call(this,K)};f[B]=Kt(w,s,S,d)}else A&&(s[`__${w}`]=void 0)}else if(p==="style")De(s,p,h);else if(p==="autofocus")Qt(s,!!h);else if(!o&&(p==="__value"||p==="value"&&h!=null))s.value=s.__value=h;else if(p==="selected"&&l)os(s,h);else{var b=p;a||(b=Wt(b));var k=b==="defaultValue"||b==="defaultChecked";if(h==null&&!o&&!k)if(n[p]=null,b==="value"||b==="checked"){let d=s;const B=e===void 0;if(b==="value"){let w=d.defaultValue;d.removeAttribute(b),d.defaultValue=w,d.value=d.__value=B?w:null}else{let w=d.defaultChecked;d.removeAttribute(b),d.defaultChecked=w,d.checked=B?w:!1}}else s.removeAttribute(p);else k||u.includes(b)&&(o||typeof h!="string")?s[b]=h:typeof h!="function"&&De(s,b,h)}}}return c&&F(!0),f}function st(s){return s.__attributes??(s.__attributes={[et]:s.nodeName.includes("-"),[tt]:s.namespaceURI===Mt})}var Me=new Map;function rt(s){var e=Me.get(s.nodeName);if(e)return e;Me.set(s.nodeName,e=[]);for(var t,r=s,i=Element.prototype;i!==r;){t=Vt(r);for(var n in t)t[n].set&&e.push(n);r=Ut(r)}return e}const oe=H([]);let Ue=0;const it={...oe,addItem(s){const e=Ue+1;return oe.update(t=>[...t,{id:e,...s}]),Ue=e,()=>it.removeItem(e)},removeItem(s){oe.update(e=>{const t=e.slice();return t.splice(t.findIndex(r=>r.id===s),1),t})}},as=H(!1),pr=H(!1),cs=H(!1),nt=H({}),hs=$([nt],([s])=>[s==null?void 0:s.protocol,s==null?void 0:s.origin].join("")),us=$([nt],([s])=>s.port),Ve=s=>Object.values(s).length>0,ot=$([as,hs,us],([s,e,t])=>{const r=`${typeof window<"u"?window.location.protocol:"http:"}//${e}:${t}`;return{full:r,naked:[e,t].join(":"),get(i){return`${r}${i}`},endpoint:s||!e?"":`${e}:${t}`,server(i){return`${this.endpoint}${i}`}}}),yr=$([ot],([s])=>{const e=async(t,r={},i={})=>{try{const n=new URL([s.endpoint.startsWith("http")?"":window.location.origin,s.endpoint,"/api",t].join(""));i.method==="POST"&&Ve(r)?i.body=JSON.stringify(r):Ve(r)&&(n.search=new URLSearchParams(r).toString());const o=await fetch(n,i),a=await o.json();if(o.status!==200)throw new Error(a);return a}catch(n){throw it.addItem({message:"Api Error",type:"error"}),n}};return{health(){return e("/health")},reauthenticate(){return e("/reauthenticate")},info(){return e("/info")},search(t){return e("/search",{q:t})},artist(t){return e(`/artist/${t}`)},album(t){return e(`/album/${t}`)},addTrack(t,r){return e("/add",{uri:t,name:r})},play(){return e("/play")},pause(){return e("/pause")},skipForward(){return e("/skipForward")},skipBackward(){return e("/skipBackward")}}}),N=Object.create(null);N.open="0";N.close="1";N.ping="2";N.pong="3";N.message="4";N.upgrade="5";N.noop="6";const j=Object.create(null);Object.keys(N).forEach(s=>{j[N[s]]=s});const fe={type:"error",data:"parser error"},at=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ct=typeof ArrayBuffer=="function",ht=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s&&s.buffer instanceof ArrayBuffer,ve=({type:s,data:e},t,r)=>at&&e instanceof Blob?t?r(e):Fe(e,r):ct&&(e instanceof ArrayBuffer||ht(e))?t?r(e):Fe(new Blob([e]),r):r(N[s]+(e||"")),Fe=(s,e)=>{const t=new FileReader;return t.onload=function(){const r=t.result.split(",")[1];e("b"+(r||""))},t.readAsDataURL(s)};function He(s){return s instanceof Uint8Array?s:s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}let ae;function fs(s,e){if(at&&s.data instanceof Blob)return s.data.arrayBuffer().then(He).then(e);if(ct&&(s.data instanceof ArrayBuffer||ht(s.data)))return e(He(s.data));ve(s,!1,t=>{ae||(ae=new TextEncoder),e(ae.encode(t))})}const $e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let s=0;s<$e.length;s++)V[$e.charCodeAt(s)]=s;const ls=s=>{let e=s.length*.75,t=s.length,r,i=0,n,o,a,c;s[s.length-1]==="="&&(e--,s[s.length-2]==="="&&e--);const f=new ArrayBuffer(e),l=new Uint8Array(f);for(r=0;r<t;r+=4)n=V[s.charCodeAt(r)],o=V[s.charCodeAt(r+1)],a=V[s.charCodeAt(r+2)],c=V[s.charCodeAt(r+3)],l[i++]=n<<2|o>>4,l[i++]=(o&15)<<4|a>>2,l[i++]=(a&3)<<6|c&63;return f},ds=typeof ArrayBuffer=="function",be=(s,e)=>{if(typeof s!="string")return{type:"message",data:ut(s,e)};const t=s.charAt(0);return t==="b"?{type:"message",data:ps(s.substring(1),e)}:j[t]?s.length>1?{type:j[t],data:s.substring(1)}:{type:j[t]}:fe},ps=(s,e)=>{if(ds){const t=ls(s);return ut(t,e)}else return{base64:!0,data:s}},ut=(s,e)=>{switch(e){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}},ft="",ys=(s,e)=>{const t=s.length,r=new Array(t);let i=0;s.forEach((n,o)=>{ve(n,!1,a=>{r[o]=a,++i===t&&e(r.join(ft))})})},gs=(s,e)=>{const t=s.split(ft),r=[];for(let i=0;i<t.length;i++){const n=be(t[i],e);if(r.push(n),n.type==="error")break}return r};function _s(){return new TransformStream({transform(s,e){fs(s,t=>{const r=t.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const n=new DataView(i.buffer);n.setUint8(0,126),n.setUint16(1,r)}else{i=new Uint8Array(9);const n=new DataView(i.buffer);n.setUint8(0,127),n.setBigUint64(1,BigInt(r))}s.data&&typeof s.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}let ce;function Y(s){return s.reduce((e,t)=>e+t.length,0)}function W(s,e){if(s[0].length===e)return s.shift();const t=new Uint8Array(e);let r=0;for(let i=0;i<e;i++)t[i]=s[0][r++],r===s[0].length&&(s.shift(),r=0);return s.length&&r<s[0].length&&(s[0]=s[0].slice(r)),t}function ms(s,e){ce||(ce=new TextDecoder);const t=[];let r=0,i=-1,n=!1;return new TransformStream({transform(o,a){for(t.push(o);;){if(r===0){if(Y(t)<1)break;const c=W(t,1);n=(c[0]&128)===128,i=c[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(Y(t)<2)break;const c=W(t,2);i=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),r=3}else if(r===2){if(Y(t)<8)break;const c=W(t,8),f=new DataView(c.buffer,c.byteOffset,c.length),l=f.getUint32(0);if(l>Math.pow(2,21)-1){a.enqueue(fe);break}i=l*Math.pow(2,32)+f.getUint32(4),r=3}else{if(Y(t)<i)break;const c=W(t,i);a.enqueue(be(n?c:ce.decode(c),e)),r=0}if(i===0||i>s){a.enqueue(fe);break}}}})}const lt=4;function E(s){if(s)return vs(s)}function vs(s){for(var e in E.prototype)s[e]=E.prototype[e];return s}E.prototype.on=E.prototype.addEventListener=function(s,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+s]=this._callbacks["$"+s]||[]).push(e),this};E.prototype.once=function(s,e){function t(){this.off(s,t),e.apply(this,arguments)}return t.fn=e,this.on(s,t),this};E.prototype.off=E.prototype.removeListener=E.prototype.removeAllListeners=E.prototype.removeEventListener=function(s,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+s];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+s],this;for(var r,i=0;i<t.length;i++)if(r=t[i],r===e||r.fn===e){t.splice(i,1);break}return t.length===0&&delete this._callbacks["$"+s],this};E.prototype.emit=function(s){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+s],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(t){t=t.slice(0);for(var r=0,i=t.length;r<i;++r)t[r].apply(this,e)}return this};E.prototype.emitReserved=E.prototype.emit;E.prototype.listeners=function(s){return this._callbacks=this._callbacks||{},this._callbacks["$"+s]||[]};E.prototype.hasListeners=function(s){return!!this.listeners(s).length};const Q=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),O=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),bs="arraybuffer";function dt(s,...e){return e.reduce((t,r)=>(s.hasOwnProperty(r)&&(t[r]=s[r]),t),{})}const ws=O.setTimeout,Es=O.clearTimeout;function G(s,e){e.useNativeTimers?(s.setTimeoutFn=ws.bind(O),s.clearTimeoutFn=Es.bind(O)):(s.setTimeoutFn=O.setTimeout.bind(O),s.clearTimeoutFn=O.clearTimeout.bind(O))}const As=1.33;function ks(s){return typeof s=="string"?Ts(s):Math.ceil((s.byteLength||s.size)*As)}function Ts(s){let e=0,t=0;for(let r=0,i=s.length;r<i;r++)e=s.charCodeAt(r),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(r++,t+=4);return t}function pt(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Os(s){let e="";for(let t in s)s.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(s[t]));return e}function Rs(s){let e={},t=s.split("&");for(let r=0,i=t.length;r<i;r++){let n=t[r].split("=");e[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return e}class Ss extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class we extends E{constructor(e){super(),this.writable=!1,G(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new Ss(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=be(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=Os(e);return t.length?"?"+t:""}}class Cs extends we{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||t()})),this.writable||(r++,this.once("drain",function(){--r||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};gs(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,ys(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=pt()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let yt=!1;try{yt=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Ns=yt;function Bs(){}class Ls extends Cs{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let r=location.port;r||(r=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(i,n)=>{this.onError("xhr post error",i,n)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,r)=>{this.onError("xhr poll error",t,r)}),this.pollXhr=e}}class C extends E{constructor(e,t,r){super(),this.createRequest=e,G(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var e;const t=dt(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(t);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=C.requestsCount++,C.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Bs,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete C.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}C.requestsCount=0;C.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ke);else if(typeof addEventListener=="function"){const s="onpagehide"in O?"pagehide":"unload";addEventListener(s,Ke,!1)}}function Ke(){for(let s in C.requests)C.requests.hasOwnProperty(s)&&C.requests[s].abort()}const Ps=function(){const s=gt({xdomain:!1});return s&&s.responseType!==null}();class xs extends Ls{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=Ps&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new C(gt,this.uri(),e)}}function gt(s){const e=s.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Ns))return new XMLHttpRequest}catch{}if(!e)try{return new O[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const _t=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class qs extends we{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,r=_t?{}:dt(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],i=t===e.length-1;ve(r,this.supportsBinary,n=>{try{this.doWrite(r,n)}catch{}i&&Q(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=pt()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const he=O.WebSocket||O.MozWebSocket;class Is extends qs{createSocket(e,t,r){return _t?new he(e,t,r):t?new he(e,t):new he(e)}doWrite(e,t){this.ws.send(t)}}class Ds extends we{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=ms(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),i=_s();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const n=()=>{r.read().then(({done:a,value:c})=>{a||(this.onPacket(c),n())}).catch(a=>{})};n();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],i=t===e.length-1;this._writer.write(r).then(()=>{i&&Q(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const Ms={websocket:Is,webtransport:Ds,polling:xs},Us=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Vs=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function le(s){if(s.length>8e3)throw"URI too long";const e=s,t=s.indexOf("["),r=s.indexOf("]");t!=-1&&r!=-1&&(s=s.substring(0,t)+s.substring(t,r).replace(/:/g,";")+s.substring(r,s.length));let i=Us.exec(s||""),n={},o=14;for(;o--;)n[Vs[o]]=i[o]||"";return t!=-1&&r!=-1&&(n.source=e,n.host=n.host.substring(1,n.host.length-1).replace(/;/g,":"),n.authority=n.authority.replace("[","").replace("]","").replace(/;/g,":"),n.ipv6uri=!0),n.pathNames=Fs(n,n.path),n.queryKey=Hs(n,n.query),n}function Fs(s,e){const t=/\/{2,9}/g,r=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function Hs(s,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,n){i&&(t[i]=n)}),t}const de=typeof addEventListener=="function"&&typeof removeEventListener=="function",z=[];de&&addEventListener("offline",()=>{z.forEach(s=>s())},!1);class P extends E{constructor(e,t){if(super(),this.binaryType=bs,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const r=le(e);t.hostname=r.host,t.secure=r.protocol==="https"||r.protocol==="wss",t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=le(t.host).host);G(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Rs(this.opts.query)),de&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},z.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=lt,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&P.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",P.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(t+=ks(i)),r>0&&t>this._maxPayload)return this.writeBuffer.slice(0,r);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Q(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,i){if(typeof t=="function"&&(i=t,t=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const n={type:e,data:t,options:r};this.emitReserved("packetCreate",n),this.writeBuffer.push(n),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}_onError(e){if(P.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),de&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=z.indexOf(this._offlineEventListener);r!==-1&&z.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}P.protocol=lt;class $s extends P{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;P.priorWebsocketSuccess=!1;const i=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",_=>{if(!r)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;P.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(l(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const u=new Error("probe error");u.transport=t.name,this.emitReserved("upgradeError",u)}}))};function n(){r||(r=!0,l(),t.close(),t=null)}const o=_=>{const u=new Error("probe error: "+_);u.transport=t.name,n(),this.emitReserved("upgradeError",u)};function a(){o("transport closed")}function c(){o("socket closed")}function f(_){t&&_.name!==t.name&&n()}const l=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",a),this.off("close",c),this.off("upgrading",f)};t.once("open",i),t.once("error",o),t.once("close",a),this.once("close",c),this.once("upgrading",f),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}let Ks=class extends $s{constructor(e,t={}){const r=typeof e=="object"?e:t;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>Ms[i]).filter(i=>!!i)),super(e,r)}};function Ys(s,e="",t){let r=s;t=t||typeof location<"u"&&location,s==null&&(s=t.protocol+"//"+t.host),typeof s=="string"&&(s.charAt(0)==="/"&&(s.charAt(1)==="/"?s=t.protocol+s:s=t.host+s),/^(https?|wss?):\/\//.test(s)||(typeof t<"u"?s=t.protocol+"//"+s:s="https://"+s),r=le(s)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const n=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+n+":"+r.port+e,r.href=r.protocol+"://"+n+(t&&t.port===r.port?"":":"+r.port),r}const Ws=typeof ArrayBuffer=="function",js=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,mt=Object.prototype.toString,zs=typeof Blob=="function"||typeof Blob<"u"&&mt.call(Blob)==="[object BlobConstructor]",Js=typeof File=="function"||typeof File<"u"&&mt.call(File)==="[object FileConstructor]";function Ee(s){return Ws&&(s instanceof ArrayBuffer||js(s))||zs&&s instanceof Blob||Js&&s instanceof File}function J(s,e){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let t=0,r=s.length;t<r;t++)if(J(s[t]))return!0;return!1}if(Ee(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return J(s.toJSON(),!0);for(const t in s)if(Object.prototype.hasOwnProperty.call(s,t)&&J(s[t]))return!0;return!1}function Xs(s){const e=[],t=s.data,r=s;return r.data=pe(t,e),r.attachments=e.length,{packet:r,buffers:e}}function pe(s,e){if(!s)return s;if(Ee(s)){const t={_placeholder:!0,num:e.length};return e.push(s),t}else if(Array.isArray(s)){const t=new Array(s.length);for(let r=0;r<s.length;r++)t[r]=pe(s[r],e);return t}else if(typeof s=="object"&&!(s instanceof Date)){const t={};for(const r in s)Object.prototype.hasOwnProperty.call(s,r)&&(t[r]=pe(s[r],e));return t}return s}function Qs(s,e){return s.data=ye(s.data,e),delete s.attachments,s}function ye(s,e){if(!s)return s;if(s&&s._placeholder===!0){if(typeof s.num=="number"&&s.num>=0&&s.num<e.length)return e[s.num];throw new Error("illegal attachments")}else if(Array.isArray(s))for(let t=0;t<s.length;t++)s[t]=ye(s[t],e);else if(typeof s=="object")for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&(s[t]=ye(s[t],e));return s}const Gs=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Zs=5;var y;(function(s){s[s.CONNECT=0]="CONNECT",s[s.DISCONNECT=1]="DISCONNECT",s[s.EVENT=2]="EVENT",s[s.ACK=3]="ACK",s[s.CONNECT_ERROR=4]="CONNECT_ERROR",s[s.BINARY_EVENT=5]="BINARY_EVENT",s[s.BINARY_ACK=6]="BINARY_ACK"})(y||(y={}));class er{constructor(e){this.replacer=e}encode(e){return(e.type===y.EVENT||e.type===y.ACK)&&J(e)?this.encodeAsBinary({type:e.type===y.EVENT?y.BINARY_EVENT:y.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===y.BINARY_EVENT||e.type===y.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=Xs(e),r=this.encodeAsString(t.packet),i=t.buffers;return i.unshift(r),i}}function Ye(s){return Object.prototype.toString.call(s)==="[object Object]"}class Ae extends E{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const r=t.type===y.BINARY_EVENT;r||t.type===y.BINARY_ACK?(t.type=r?y.EVENT:y.ACK,this.reconstructor=new tr(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(Ee(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const r={type:Number(e.charAt(0))};if(y[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===y.BINARY_EVENT||r.type===y.BINARY_ACK){const n=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const o=e.substring(n,t);if(o!=Number(o)||e.charAt(t)!=="-")throw new Error("Illegal attachments");r.attachments=Number(o)}if(e.charAt(t+1)==="/"){const n=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););r.nsp=e.substring(n,t)}else r.nsp="/";const i=e.charAt(t+1);if(i!==""&&Number(i)==i){const n=t+1;for(;++t;){const o=e.charAt(t);if(o==null||Number(o)!=o){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(Ae.isPayloadValid(r.type,n))r.data=n;else throw new Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case y.CONNECT:return Ye(t);case y.DISCONNECT:return t===void 0;case y.CONNECT_ERROR:return typeof t=="string"||Ye(t);case y.EVENT:case y.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&Gs.indexOf(t[0])===-1);case y.ACK:case y.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class tr{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=Qs(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const sr=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Ae,Encoder:er,get PacketType(){return y},protocol:Zs},Symbol.toStringTag,{value:"Module"}));function R(s,e,t){return s.on(e,t),function(){s.off(e,t)}}const rr=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class vt extends E{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[R(e,"open",this.onopen.bind(this)),R(e,"packet",this.onpacket.bind(this)),R(e,"error",this.onerror.bind(this)),R(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,i,n;if(rr.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const o={type:y.EVENT,data:t};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const l=this.ids++,_=t.pop();this._registerAckCallback(l,_),o.id=l}const a=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,c=this.connected&&!(!((n=this.io.engine)===null||n===void 0)&&n._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(e,t){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[e]=t;return}const n=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);t.call(this,new Error("operation has timed out"))},i),o=(...a)=>{this.io.clearTimeoutFn(n),t.apply(this,a)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((r,i)=>{const n=(o,a)=>o?i(o):r(a);n.withError=!0,t.push(n),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...n)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:y.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(r=>String(r.id)===e)){const r=this.acks[e];delete this.acks[e],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case y.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case y.EVENT:case y.BINARY_EVENT:this.onevent(e);break;case y.ACK:case y.BINARY_ACK:this.onack(e);break;case y.DISCONNECT:this.ondisconnect();break;case y.CONNECT_ERROR:this.destroy();const r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...i){r||(r=!0,t.packet({type:y.ACK,id:e,data:i}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:y.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const r of t)r.apply(this,e.data)}}}function x(s){s=s||{},this.ms=s.min||100,this.max=s.max||1e4,this.factor=s.factor||2,this.jitter=s.jitter>0&&s.jitter<=1?s.jitter:0,this.attempts=0}x.prototype.duration=function(){var s=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*s);s=(Math.floor(e*10)&1)==0?s-t:s+t}return Math.min(s,this.max)|0};x.prototype.reset=function(){this.attempts=0};x.prototype.setMin=function(s){this.ms=s};x.prototype.setMax=function(s){this.max=s};x.prototype.setJitter=function(s){this.jitter=s};class ge extends E{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,G(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((r=t.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new x({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||sr;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Ks(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=R(t,"open",function(){r.onopen(),e&&e()}),n=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=R(t,"error",n);if(this._timeout!==!1){const a=this._timeout,c=this.setTimeoutFn(()=>{i(),n(new Error("timeout")),t.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(R(e,"ping",this.onping.bind(this)),R(e,"data",this.ondata.bind(this)),R(e,"error",this.onerror.bind(this)),R(e,"close",this.onclose.bind(this)),R(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){Q(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new vt(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t)if(this.nsps[r].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const U={};function X(s,e){typeof s=="object"&&(e=s,s=void 0),e=e||{};const t=Ys(s,e.path||"/socket.io"),r=t.source,i=t.id,n=t.path,o=U[i]&&n in U[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let c;return a?c=new ge(r,e):(U[i]||(U[i]=new ge(r,e)),c=U[i]),t.query&&!e.query&&(e.query=t.queryKey),c.socket(t.path,e)}Object.assign(X,{Manager:ge,Socket:vt,io:X,connect:X});const ue={current:null},_r=$([ot,cs],([s,e])=>{if(!e)return null;const t=X(s.endpoint);return ue.current&&ue.current.disconnect(),ue.current=t,t});var mr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vr(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function ir(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}const nr={},or=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"})),br=ir(or);var ar=zt('<div><div class="loading-icon svelte-1aqhn4j"></div> <div class="loading-icon svelte-1aqhn4j"></div> <div class="loading-icon svelte-1aqhn4j"></div></div>');function wr(s,e){const t=Xt(e,"floating",3,!1);var r=ar();let i;Ht(n=>i=Ze(r,1,"loading svelte-1aqhn4j",null,i,n),[()=>({floating:t()})]),Jt(s,r)}export{wr as L,ot as a,re as b,nt as c,dr as d,De as e,yr as f,vr as g,lr as h,fr as i,cs as j,pr as k,as as l,_r as m,mr as n,br as r,Ze as s,it as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var Yt=t=>{throw TypeError(t)};var Pe=(t,e,n)=>e.has(t)||Yt("Cannot "+n);var A=(t,e,n)=>(Pe(t,e,"read from private field"),n?n.call(t):e.get(t)),P=(t,e,n)=>e.has(t)?Yt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n);import{aT as Ct,J as C,o as O,I as N,ag as Ce}from"./CDVeMiAl.js";import{o as Jt}from"./ynvIH2CR.js";new URL("sveltekit-internal://");function Oe(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function Ne(t){return t.split("%25").map(decodeURI).join("%25")}function je(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}function Rt({href:t}){return t.split("#")[0]}function $e(t,e,n,r=!1){const a=new URL(t);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return l=>(n(l),i[o](l));e();const c=Reflect.get(i,o);return typeof c=="function"?c.bind(i):c}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return e(),t[i]},enumerable:!0,configurable:!0});return a}function De(...t){let e=5381;for(const n of t)if(typeof n=="string"){let r=n.length;for(;r;)e=e*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)e=e*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}function Fe(t){const e=atob(t),n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n.buffer}const Ve=window.fetch;window.fetch=(t,e)=>((t instanceof Request?t.method:(e==null?void 0:e.method)||"GET")!=="GET"&&W.delete(Ot(t)),Ve(t,e));const W=new Map;function Be(t,e){const n=Ot(t,e),r=document.querySelector(n);if(r!=null&&r.textContent){let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&W.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=Fe(a)),Promise.resolve(new Response(a,s))}return window.fetch(t,e)}function Ge(t,e,n){if(W.size>0){const r=Ot(t,n),a=W.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n==null?void 0:n.cache))return new Response(a.body,a.init);W.delete(r)}}return window.fetch(e,n)}function Ot(t,e){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(t instanceof Request?t.url:t)}]`;if(e!=null&&e.headers||e!=null&&e.body){const a=[];e.headers&&a.push([...new Headers(e.headers)].join(",")),e.body&&(typeof e.body=="string"||ArrayBuffer.isView(e.body))&&a.push(e.body),r+=`[data-hash="${De(...a)}"]`}return r}const Me=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function qe(t){const e=[];return{pattern:t==="/"?/^\/$/:new RegExp(`^${Ke(t).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return e.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return e.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return It(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return It(String.fromCharCode(...c.slice(2).split("-").map(d=>parseInt(d,16))));const p=Me.exec(c),[,u,w,f,m]=p;return e.push({name:f,matcher:m,optional:!!u,rest:!!w,chained:w?l===1&&i[0]==="":!1}),w?"(.*?)":u?"([^/]*)?":"([^/]+?)"}return It(c)}).join("")}).join("")}/?$`),params:e}}function He(t){return!/^\([^)]+\)$/.test(t)}function Ke(t){return t.slice(1).split("/").filter(He)}function We(t,e,n){const r={},a=t.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;o<e.length;o+=1){const c=e[o];let l=a[o-i];if(c.chained&&c.rest&&i&&(l=a.slice(o-i,o+1).filter(p=>p).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const p=e[o+1],u=a[o+1];p&&!p.rest&&p.optional&&u&&c.chained&&(i=0),!p&&!u&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function It(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ye({nodes:t,server_loads:e,dictionary:n,matchers:r}){const a=new Set(e);return Object.entries(n).map(([o,[c,l,p]])=>{const{pattern:u,params:w}=qe(o),f={id:o,exec:m=>{const d=u.exec(m);if(d)return We(d,w,r)},errors:[1,...p||[]].map(m=>t[m]),layouts:[0,...l||[]].map(i),leaf:s(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(o){const c=o<0;return c&&(o=~o),[c,t[o]]}function i(o){return o===void 0?o:[a.has(o),t[o]]}}function fe(t,e=JSON.parse){try{return e(sessionStorage[t])}catch{}}function zt(t,e,n=JSON.stringify){const r=n(e);try{sessionStorage[t]=r}catch{}}var oe;const x=((oe=globalThis.__sveltekit_i3evb1)==null?void 0:oe.base)??"";var se;const Je=((se=globalThis.__sveltekit_i3evb1)==null?void 0:se.assets)??x,ze="1744200626680",ue="sveltekit:snapshot",he="sveltekit:scroll",de="sveltekit:states",Xe="sveltekit:pageurl",M="sveltekit:history",z="sveltekit:navigation",F={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ft=location.origin;function pe(t){if(t instanceof URL)return t;let e=document.baseURI;if(!e){const n=document.getElementsByTagName("base");e=n.length?n[0].href:document.URL}return new URL(t,e)}function Nt(){return{x:pageXOffset,y:pageYOffset}}function G(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const Xt={...F,"":F.hover};function ge(t){let e=t.assignedSlot??t.parentNode;return(e==null?void 0:e.nodeType)===11&&(e=e.host),e}function me(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=ge(t)}}function Tt(t,e,n){let r;try{if(r=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=t instanceof SVGAElement?t.target.baseVal:t.target,s=!r||!!a||vt(r,e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),i=(r==null?void 0:r.origin)===ft&&t.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function ht(t){let e=null,n=null,r=null,a=null,s=null,i=null,o=t;for(;o&&o!==document.documentElement;)r===null&&(r=G(o,"preload-code")),a===null&&(a=G(o,"preload-data")),e===null&&(e=G(o,"keepfocus")),n===null&&(n=G(o,"noscroll")),s===null&&(s=G(o,"reload")),i===null&&(i=G(o,"replacestate")),o=ge(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Xt[r??"off"],preload_data:Xt[a??"off"],keepfocus:c(e),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Zt(t){const e=Ct(t);let n=!0;function r(){n=!0,e.update(i=>i)}function a(i){n=!1,e.set(i)}function s(i){let o;return e.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}const we={v:()=>{}};function Ze(){const{set:t,subscribe:e}=Ct(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Je}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==ze;return i&&(t(!0),we.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:e,check:r}}function vt(t,e,n){return t.origin!==ft||!t.pathname.startsWith(e)?!0:n?!(t.pathname===e+"/"||t.pathname===e+"/index.html"||t.protocol==="file:"&&t.pathname.replace(/\/[^/]+\.html?$/,"")===e):!1}function Dn(t){}function Qt(t){const e=tn(t),n=new ArrayBuffer(e.length),r=new DataView(n);for(let a=0;a<n.byteLength;a++)r.setUint8(a,e.charCodeAt(a));return n}const Qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function tn(t){t.length%4===0&&(t=t.replace(/==?$/,""));let e="",n=0,r=0;for(let a=0;a<t.length;a++)n<<=6,n|=Qe.indexOf(t[a]),r+=6,r===24&&(e+=String.fromCharCode((n&16711680)>>16),e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,e+=String.fromCharCode(n)):r===18&&(n>>=2,e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255)),e}const en=-1,nn=-2,rn=-3,an=-4,on=-5,sn=-6;function cn(t,e){if(typeof t=="number")return a(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const n=t,r=Array(n.length);function a(s,i=!1){if(s===en)return;if(s===rn)return NaN;if(s===an)return 1/0;if(s===on)return-1/0;if(s===sn)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],l=e==null?void 0:e[c];if(l)return r[s]=l(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const p=new Set;r[s]=p;for(let f=1;f<o.length;f+=1)p.add(a(o[f]));break;case"Map":const u=new Map;r[s]=u;for(let f=1;f<o.length;f+=2)u.set(a(o[f]),a(o[f+1]));break;case"RegExp":r[s]=new RegExp(o[1],o[2]);break;case"Object":r[s]=Object(o[1]);break;case"BigInt":r[s]=BigInt(o[1]);break;case"null":const w=Object.create(null);r[s]=w;for(let f=1;f<o.length;f+=2)w[o[f]]=a(o[f+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const f=globalThis[c],m=o[1],d=Qt(m),h=new f(d);r[s]=h;break}case"ArrayBuffer":{const f=o[1],m=Qt(f);r[s]=m;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(o.length);r[s]=c;for(let l=0;l<o.length;l+=1){const p=o[l];p!==nn&&(c[l]=a(p))}}else{const c={};r[s]=c;for(const l in o){const p=o[l];c[l]=a(p)}}return r[s]}return a(0)}const ye=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ye];const ln=new Set([...ye]);[...ln];function fn(t){return t.filter(e=>e!=null)}class bt{constructor(e,n){this.status=e,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}}class jt{constructor(e,n){this.status=e,this.location=n}}class $t extends Error{constructor(e,n,r){super(r),this.status=e,this.text=n}}const un="x-sveltekit-invalidated",hn="x-sveltekit-trailing-slash";function dt(t){return t instanceof bt||t instanceof $t?t.status:500}function dn(t){return t instanceof $t?t.text:"Internal Error"}let U,X,Ut;const pn=Jt.toString().includes("$$")||/function \w+\(\) \{\}/.test(Jt.toString());var tt,et,nt,rt,at,ot,st,it,ie,ct,ce,lt,le;pn?(U={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},X={current:null},Ut={current:!1}):(U=new(ie=class{constructor(){P(this,tt,C({}));P(this,et,C(null));P(this,nt,C(null));P(this,rt,C({}));P(this,at,C({id:null}));P(this,ot,C({}));P(this,st,C(-1));P(this,it,C(new URL("https://example.com")))}get data(){return O(A(this,tt))}set data(e){N(A(this,tt),e)}get form(){return O(A(this,et))}set form(e){N(A(this,et),e)}get error(){return O(A(this,nt))}set error(e){N(A(this,nt),e)}get params(){return O(A(this,rt))}set params(e){N(A(this,rt),e)}get route(){return O(A(this,at))}set route(e){N(A(this,at),e)}get state(){return O(A(this,ot))}set state(e){N(A(this,ot),e)}get status(){return O(A(this,st))}set status(e){N(A(this,st),e)}get url(){return O(A(this,it))}set url(e){N(A(this,it),e)}},tt=new WeakMap,et=new WeakMap,nt=new WeakMap,rt=new WeakMap,at=new WeakMap,ot=new WeakMap,st=new WeakMap,it=new WeakMap,ie),X=new(ce=class{constructor(){P(this,ct,C(null))}get current(){return O(A(this,ct))}set current(e){N(A(this,ct),e)}},ct=new WeakMap,ce),Ut=new(le=class{constructor(){P(this,lt,C(!1))}get current(){return O(A(this,lt))}set current(e){N(A(this,lt),e)}},lt=new WeakMap,le),we.v=()=>Ut.current=!0);function gn(t){Object.assign(U,t)}const mn="/__data.json",wn=".html__data.json";function yn(t){return t.endsWith(".html")?t.replace(/\.html$/,wn):t.replace(/\/$/,"")+mn}const _n=new Set(["icon","shortcut icon","apple-touch-icon"]),B=fe(he)??{},Z=fe(ue)??{},$={url:Zt({}),page:Zt({}),navigating:Ct(null),updated:Ze()};function Dt(t){B[t]=Nt()}function vn(t,e){let n=t+1;for(;B[n];)delete B[n],n+=1;for(n=e+1;Z[n];)delete Z[n],n+=1}function H(t){return location.href=t.href,new Promise(()=>{})}async function _e(){if("serviceWorker"in navigator){const t=await navigator.serviceWorker.getRegistration(x||"/");t&&await t.update()}}function te(){}let Ft,xt,pt,j,Pt,k;const gt=[],mt=[];let L=null;const ve=new Set,bn=new Set,Y=new Set;let v={branch:[],error:null,url:null},Vt=!1,wt=!1,ee=!0,Q=!1,K=!1,be=!1,Bt=!1,Ae,R,T,V;const J=new Set;async function Gn(t,e,n){var a,s,i,o;document.URL!==location.href&&(location.href=location.href),k=t,await((s=(a=t.hooks).init)==null?void 0:s.call(a)),Ft=Ye(t),j=document.documentElement,Pt=e,xt=t.nodes[0],pt=t.nodes[1],xt(),pt(),R=(i=history.state)==null?void 0:i[M],T=(o=history.state)==null?void 0:o[z],R||(R=T=Date.now(),history.replaceState({...history.state,[M]:R,[z]:T},""));const r=B[R];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await Pn(Pt,n):await Ln(k.hash?On(new URL(location.href)):location.href,{replaceState:!0}),xn()}function An(){gt.length=0,Bt=!1}function ke(t){mt.some(e=>e==null?void 0:e.snapshot)&&(Z[t]=mt.map(e=>{var n;return(n=e==null?void 0:e.snapshot)==null?void 0:n.capture()}))}function Se(t){var e;(e=Z[t])==null||e.forEach((n,r)=>{var a,s;(s=(a=mt[r])==null?void 0:a.snapshot)==null||s.restore(n)})}function ne(){Dt(R),zt(he,B),ke(T),zt(ue,Z)}async function Gt(t,e,n,r){return ut({type:"goto",url:pe(t),keepfocus:e.keepFocus,noscroll:e.noScroll,replace_state:e.replaceState,state:e.state,redirect_count:n,nav_token:r,accept:()=>{e.invalidateAll&&(Bt=!0),e.invalidate&&e.invalidate.forEach(Tn)}})}async function kn(t){if(t.id!==(L==null?void 0:L.id)){const e={};J.add(e),L={id:t.id,token:e,promise:Re({...t,preload:e}).then(n=>(J.delete(e),n.type==="loaded"&&n.state.error&&(L=null),n))}}return L.promise}async function Lt(t){var n;const e=(n=await kt(t,!1))==null?void 0:n.route;e&&await Promise.all([...e.layouts,e.leaf].map(r=>r==null?void 0:r[1]()))}function Ee(t,e,n){var s;v=t.state;const r=document.querySelector("style[data-sveltekit]");r&&r.remove(),Object.assign(U,t.props.page),Ae=new k.root({target:e,props:{...t.props,stores:$,components:mt},hydrate:n,sync:!1}),Se(T);const a={from:null,to:{params:v.params,route:{id:((s=v.route)==null?void 0:s.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};Y.forEach(i=>i(a)),wt=!0}function yt({url:t,params:e,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(x&&(t.pathname===x||t.pathname===x+"/"))o="always";else for(const f of n)(f==null?void 0:f.slash)!==void 0&&(o=f.slash);t.pathname=Oe(t.pathname,o),t.search=t.search;const c={type:"loaded",state:{url:t,params:e,branch:n,error:a,route:s},props:{constructors:fn(n).map(f=>f.node.component),page:Ht(U)}};i!==void 0&&(c.props.form=i);let l={},p=!U,u=0;for(let f=0;f<Math.max(n.length,v.branch.length);f+=1){const m=n[f],d=v.branch[f];(m==null?void 0:m.data)!==(d==null?void 0:d.data)&&(p=!0),m&&(l={...l,...m.data},p&&(c.props[`data_${u}`]=l),u+=1)}return(!v.url||t.href!==v.url.href||v.error!==a||i!==void 0&&i!==U.form||p)&&(c.props.page={error:a,params:e,route:{id:(s==null?void 0:s.id)??null},state:{},status:r,url:new URL(t),form:i??null,data:p?l:U.data}),c}async function Mt({loader:t,parent:e,url:n,params:r,route:a,server_data_node:s}){var p,u,w;let i=null,o=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await t();if((p=l.universal)!=null&&p.load){let f=function(...d){for(const h of d){const{href:y}=new URL(h,n);c.dependencies.add(y)}};const m={route:new Proxy(a,{get:(d,h)=>(o&&(c.route=!0),d[h])}),params:new Proxy(r,{get:(d,h)=>(o&&c.params.add(h),d[h])}),data:(s==null?void 0:s.data)??null,url:$e(n,()=>{o&&(c.url=!0)},d=>{o&&c.search_params.add(d)},k.hash),async fetch(d,h){let y;d instanceof Request?(y=d.url,h={body:d.method==="GET"||d.method==="HEAD"?void 0:await d.blob(),cache:d.cache,credentials:d.credentials,headers:[...d.headers].length?d.headers:void 0,integrity:d.integrity,keepalive:d.keepalive,method:d.method,mode:d.mode,redirect:d.redirect,referrer:d.referrer,referrerPolicy:d.referrerPolicy,signal:d.signal,...h}):y=d;const S=new URL(y,n);return o&&f(S.href),S.origin===n.origin&&(y=S.href.slice(n.origin.length)),wt?Ge(y,S.href,h):Be(y,h)},setHeaders:()=>{},depends:f,parent(){return o&&(c.parent=!0),e()},untrack(d){o=!1;try{return d()}finally{o=!0}}};i=await l.universal.load.call(null,m)??null}return{node:l,loader:t,server:s,universal:(u=l.universal)!=null&&u.load?{type:"data",data:i,uses:c}:null,data:i??(s==null?void 0:s.data)??null,slash:((w=l.universal)==null?void 0:w.trailingSlash)??(s==null?void 0:s.slash)}}function re(t,e,n,r,a,s){if(Bt)return!0;if(!a)return!1;if(a.parent&&t||a.route&&e||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==v.params[i])return!0;for(const i of a.dependencies)if(gt.some(o=>o(new URL(i))))return!0;return!1}function qt(t,e){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?e??null:null}function Sn(t,e){if(!t)return new Set(e.searchParams.keys());const n=new Set([...t.searchParams.keys(),...e.searchParams.keys()]);for(const r of n){const a=t.searchParams.getAll(r),s=e.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function ae({error:t,url:e,route:n,params:r}){return{type:"loaded",state:{error:t,url:e,route:n,params:r,branch:[]},props:{page:Ht(U),constructors:[]}}}async function Re({id:t,invalidating:e,url:n,params:r,route:a,preload:s}){if((L==null?void 0:L.id)===t)return J.delete(L.token),L.promise;const{errors:i,layouts:o,leaf:c}=a,l=[...o,c];i.forEach(g=>g==null?void 0:g().catch(()=>{})),l.forEach(g=>g==null?void 0:g[1]().catch(()=>{}));let p=null;const u=v.url?t!==_t(v.url):!1,w=v.route?a.id!==v.route.id:!1,f=Sn(v.url,n);let m=!1;const d=l.map((g,_)=>{var D;const b=v.branch[_],E=!!(g!=null&&g[0])&&((b==null?void 0:b.loader)!==g[1]||re(m,w,u,f,(D=b.server)==null?void 0:D.uses,r));return E&&(m=!0),E});if(d.some(Boolean)){try{p=await Le(n,d)}catch(g){const _=await q(g,{url:n,params:r,route:{id:t}});return J.has(s)?ae({error:_,url:n,params:r,route:a}):At({status:dt(g),error:_,url:n,route:a})}if(p.type==="redirect")return p}const h=p==null?void 0:p.nodes;let y=!1;const S=l.map(async(g,_)=>{var St;if(!g)return;const b=v.branch[_],E=h==null?void 0:h[_];if((!E||E.type==="skip")&&g[1]===(b==null?void 0:b.loader)&&!re(y,w,u,f,(St=b.universal)==null?void 0:St.uses,r))return b;if(y=!0,(E==null?void 0:E.type)==="error")throw E;return Mt({loader:g[1],url:n,params:r,route:a,parent:async()=>{var Wt;const Kt={};for(let Et=0;Et<_;Et+=1)Object.assign(Kt,(Wt=await S[Et])==null?void 0:Wt.data);return Kt},server_data_node:qt(E===void 0&&g[0]?{type:"skip"}:E??null,g[0]?b==null?void 0:b.server:void 0)})});for(const g of S)g.catch(()=>{});const I=[];for(let g=0;g<l.length;g+=1)if(l[g])try{I.push(await S[g])}catch(_){if(_ instanceof jt)return{type:"redirect",location:_.location};if(J.has(s))return ae({error:await q(_,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let b=dt(_),E;if(h!=null&&h.includes(_))b=_.status??b,E=_.error;else if(_ instanceof bt)E=_.body;else{if(await $.updated.check())return await _e(),await H(n);E=await q(_,{params:r,url:n,route:{id:a.id}})}const D=await En(g,I,i);return D?yt({url:n,params:r,branch:I.slice(0,D.idx).concat(D.node),status:b,error:E,route:a}):await Ue(n,{id:a.id},E,b)}else I.push(void 0);return yt({url:n,params:r,branch:I,status:200,error:null,route:a,form:e?void 0:null})}async function En(t,e,n){for(;t--;)if(n[t]){let r=t;for(;!e[r];)r-=1;try{return{idx:r+1,node:{node:await n[t](),loader:n[t],data:{},server:null,universal:null}}}catch{continue}}}async function At({status:t,error:e,url:n,route:r}){const a={};let s=null;if(k.server_loads[0]===0)try{const o=await Le(n,[!0]);if(o.type!=="data"||o.nodes[0]&&o.nodes[0].type!=="data")throw 0;s=o.nodes[0]??null}catch{(n.origin!==ft||n.pathname!==location.pathname||Vt)&&await H(n)}try{const o=await Mt({loader:xt,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:qt(s)}),c={node:await pt(),loader:pt,universal:null,server:null,data:null};return yt({url:n,params:a,branch:[o,c],status:t,error:e,route:null})}catch(o){if(o instanceof jt)return Gt(new URL(o.location,location.href),{},0);throw o}}async function Rn(t){let e;try{if(e=await k.hooks.reroute({url:new URL(t)})??t,typeof e=="string"){const n=new URL(t);k.hash?n.hash=e:n.pathname=e,e=n}}catch{return}return e}async function kt(t,e){if(t&&!vt(t,x,k.hash)){const n=await Rn(t);if(!n)return;const r=In(n);for(const a of Ft){const s=a.exec(r);if(s)return{id:_t(t),invalidating:e,route:a,params:je(s),url:t}}}}function In(t){return Ne(k.hash?t.hash.replace(/^#/,"").replace(/[?#].+/,""):t.pathname.slice(x.length))||"/"}function _t(t){return(k.hash?t.hash.replace(/^#/,""):t.pathname)+t.search}function Ie({url:t,type:e,intent:n,delta:r}){let a=!1;const s=xe(v,n,t,e);r!==void 0&&(s.navigation.delta=r);const i={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return Q||ve.forEach(o=>o(i)),a?null:s}async function ut({type:t,url:e,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:l=te,block:p=te}){const u=V;V=c;const w=await kt(e,!1),f=Ie({url:e,type:t,delta:n==null?void 0:n.delta,intent:w});if(!f){p(),V===c&&(V=u);return}const m=R,d=T;l(),Q=!0,wt&&$.navigating.set(X.current=f.navigation);let h=w&&await Re(w);if(!h){if(vt(e,x,k.hash))return await H(e);h=await Ue(e,{id:null},await q(new $t(404,"Not Found",`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(w==null?void 0:w.url)||e,V!==c)return f.reject(new Error("navigation aborted")),!1;if(h.type==="redirect")if(o>=20)h=await At({status:500,error:await q(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return await Gt(new URL(h.location,e).href,{},o+1,c),!1;else h.props.page.status>=400&&await $.updated.check()&&(await _e(),await H(e));if(An(),Dt(m),ke(d),h.props.page.url.pathname!==e.pathname&&(e.pathname=h.props.page.url.pathname),i=n?n.state:i,!n){const g=s?0:1,_={[M]:R+=g,[z]:T+=g,[de]:i};(s?history.replaceState:history.pushState).call(history,_,"",e),s||vn(R,T)}if(L=null,h.props.page.state=i,wt){v=h.state,h.props.page&&(h.props.page.url=e);const g=(await Promise.all(Array.from(bn,_=>_(f.navigation)))).filter(_=>typeof _=="function");if(g.length>0){let _=function(){g.forEach(b=>{Y.delete(b)})};g.push(_),g.forEach(b=>{Y.add(b)})}Ae.$set(h.props),gn(h.props.page),be=!0}else Ee(h,Pt,!1);const{activeElement:y}=document;await Ce();const S=n?n.scroll:a?Nt():null;if(ee){const g=e.hash&&document.getElementById(decodeURIComponent(k.hash?e.hash.split("#")[2]??"":e.hash.slice(1)));S?scrollTo(S.x,S.y):g?g.scrollIntoView():scrollTo(0,0)}const I=document.activeElement!==y&&document.activeElement!==document.body;!r&&!I&&Cn(),ee=!0,h.props.page&&Object.assign(U,h.props.page),Q=!1,t==="popstate"&&Se(T),f.fulfil(void 0),Y.forEach(g=>g(f.navigation)),$.navigating.set(X.current=null)}async function Ue(t,e,n,r){return t.origin===ft&&t.pathname===location.pathname&&!Vt?await At({status:r,error:n,url:t,route:e}):await H(t)}function Un(){let t,e,n;j.addEventListener("mousemove",o=>{const c=o.target;clearTimeout(t),t=setTimeout(()=>{s(c,F.hover)},20)});function r(o){o.defaultPrevented||s(o.composedPath()[0],F.tap)}j.addEventListener("mousedown",r),j.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const c of o)c.isIntersecting&&(Lt(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function s(o,c){const l=me(o,j),p=l===e&&c>=n;if(!l||p)return;const{url:u,external:w,download:f}=Tt(l,x,k.hash);if(w||f)return;const m=ht(l),d=u&&_t(v.url)===_t(u);if(!(m.reload||d))if(c<=m.preload_data){e=l,n=F.tap;const h=await kt(u,!1);if(!h)return;kn(h)}else c<=m.preload_code&&(e=l,n=c,Lt(u))}function i(){a.disconnect();for(const o of j.querySelectorAll("a")){const{url:c,external:l,download:p}=Tt(o,x,k.hash);if(l||p)continue;const u=ht(o);u.reload||(u.preload_code===F.viewport&&a.observe(o),u.preload_code===F.eager&&Lt(c))}}Y.add(i),i()}function q(t,e){if(t instanceof bt)return t.body;const n=dt(t),r=dn(t);return k.hooks.handleError({error:t,event:e,status:n,message:r})??{message:r}}function Ln(t,e={}){return t=new URL(pe(t)),t.origin!==ft?Promise.reject(new Error("goto: invalid URL")):Gt(t,e,0)}function Tn(t){if(typeof t=="function")gt.push(t);else{const{href:e}=new URL(t,location.href);gt.push(n=>n.href===e)}}function xn(){var e;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(ne(),!Q){const a=xe(v,void 0,null,"leave"),s={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};ve.forEach(i=>i(s))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ne()}),(e=navigator.connection)!=null&&e.saveData||Un(),j.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=me(n.composedPath()[0],j);if(!r)return;const{url:a,external:s,target:i,download:o}=Tt(r,x,k.hash);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=ht(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[p,u]=(k.hash?a.hash.replace(/^#/,""):a.href).split("#"),w=p===Rt(location);if(s||c.reload&&(!w||!u)){Ie({url:a,type:"link"})?Q=!0:n.preventDefault();return}if(u!==void 0&&w){const[,f]=v.url.href.split("#");if(f===u){if(n.preventDefault(),u===""||u==="top"&&r.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const m=r.ownerDocument.getElementById(decodeURIComponent(u));m&&(m.scrollIntoView(),m.focus())}return}if(K=!0,Dt(R),t(a),!c.replace_state)return;K=!1}n.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await ut({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),j.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const o=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(vt(o,x,!1))return;const c=n.target,l=ht(c);if(l.reload)return;n.preventDefault(),n.stopPropagation();const p=new FormData(c),u=a==null?void 0:a.getAttribute("name");u&&p.append(u,(a==null?void 0:a.getAttribute("value"))??""),o.search=new URLSearchParams(p).toString(),ut({type:"form",url:o,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??o.href===location.href})}),addEventListener("popstate",async n=>{var r;if((r=n.state)!=null&&r[M]){const a=n.state[M];if(V={},a===R)return;const s=B[a],i=n.state[de]??{},o=new URL(n.state[Xe]??location.href),c=n.state[z],l=v.url?Rt(location)===Rt(v.url):!1;if(c===T&&(be||l)){i!==U.state&&(U.state=i),t(o),B[R]=Nt(),s&&scrollTo(s.x,s.y),R=a;return}const u=a-R;await ut({type:"popstate",url:o,popped:{state:i,scroll:s,delta:u},accept:()=>{R=a,T=c},block:()=>{history.go(-u)},nav_token:V})}else if(!K){const a=new URL(location.href);t(a),k.hash&&location.reload()}}),addEventListener("hashchange",()=>{K&&(K=!1,history.replaceState({...history.state,[M]:++R,[z]:T},"",location.href))});for(const n of document.querySelectorAll("link"))_n.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&$.navigating.set(X.current=null)});function t(n){v.url=U.url=n,$.page.set(Ht(U)),$.page.notify()}}async function Pn(t,{status:e=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:c}){Vt=!0;const l=new URL(location.href);let p;({params:a={},route:s={id:null}}=await kt(l,!1)||{}),p=Ft.find(({id:f})=>f===s.id);let u,w=!0;try{const f=r.map(async(d,h)=>{const y=o[h];return y!=null&&y.uses&&(y.uses=Te(y.uses)),Mt({loader:k.nodes[d],url:l,params:a,route:s,parent:async()=>{const S={};for(let I=0;I<h;I+=1)Object.assign(S,(await f[I]).data);return S},server_data_node:qt(y)})}),m=await Promise.all(f);if(p){const d=p.layouts;for(let h=0;h<d.length;h++)d[h]||m.splice(h,0,void 0)}u=yt({url:l,params:a,branch:m,status:e,error:n,form:c,route:p??null})}catch(f){if(f instanceof jt){await H(new URL(f.location,location.href));return}u=await At({status:dt(f),error:await q(f,{url:l,params:a,route:s}),url:l,route:s}),t.textContent="",w=!1}u.props.page&&(u.props.page.state={}),Ee(u,t,w)}async function Le(t,e){var s;const n=new URL(t);n.pathname=yn(t.pathname),t.pathname.endsWith("/")&&n.searchParams.append(hn,"1"),n.searchParams.append(un,e.map(i=>i?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let i;throw(s=a.headers.get("content-type"))!=null&&s.includes("application/json")?i=await a.json():a.status===404?i="Not Found":a.status===500&&(i="Internal Error"),new bt(a.status,i)}return new Promise(async i=>{var w;const o=new Map,c=a.body.getReader(),l=new TextDecoder;function p(f){return cn(f,{...k.decoders,Promise:m=>new Promise((d,h)=>{o.set(m,{fulfil:d,reject:h})})})}let u="";for(;;){const{done:f,value:m}=await c.read();if(f&&!u)break;for(u+=!m&&u?`
|
|
2
|
-
`:l.decode(m,{stream:!0});;){const d=u.indexOf(`
|
|
3
|
-
`);if(d===-1)break;const h=JSON.parse(u.slice(0,d));if(u=u.slice(d+1),h.type==="redirect")return i(h);if(h.type==="data")(w=h.nodes)==null||w.forEach(y=>{(y==null?void 0:y.type)==="data"&&(y.uses=Te(y.uses),y.data=p(y.data))}),i(h);else if(h.type==="chunk"){const{id:y,data:S,error:I}=h,g=o.get(y);o.delete(y),I?g.reject(p(I)):g.fulfil(p(S))}}}})}function Te(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url),search_params:new Set((t==null?void 0:t.search_params)??[])}}function Cn(){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const e=document.body,n=e.getAttribute("tabindex");e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),n!==null?e.setAttribute("tabindex",n):e.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s<r.rangeCount;s+=1)a.push(r.getRangeAt(s));setTimeout(()=>{if(r.rangeCount===a.length){for(let s=0;s<r.rangeCount;s+=1){const i=a[s],o=r.getRangeAt(s);if(i.commonAncestorContainer!==o.commonAncestorContainer||i.startContainer!==o.startContainer||i.endContainer!==o.endContainer||i.startOffset!==o.startOffset||i.endOffset!==o.endOffset)return}r.removeAllRanges()}})}}}function xe(t,e,n,r){var c,l;let a,s;const i=new Promise((p,u)=>{a=p,s=u});return i.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((c=t.route)==null?void 0:c.id)??null},url:t.url},to:n&&{params:(e==null?void 0:e.params)??null,route:{id:((l=e==null?void 0:e.route)==null?void 0:l.id)??null},url:n},willUnload:!e,type:r,complete:i},fulfil:a,reject:s}}function Ht(t){return{data:t.data,error:t.error,form:t.form,params:t.params,route:t.route,state:t.state,status:t.status,url:t.url}}function On(t){const e=new URL(t);return e.hash=decodeURIComponent(t.hash),e}export{Gn as a,Dn as l,U as p,$ as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{e as Z,b as q,r as rt,p as nt,G as it,P as X,E as at,ah as st,ai as ot,aj as ft,ak as ut,ae as ht,q as vt,n as H,al as lt,am as z,an as Y,ao as gt,u as dt}from"./CDVeMiAl.js";import{d as ct,w as pt}from"./qSIFE6bv.js";import{b as mt,r as Et,g as wt}from"./D5aAvvqP.js";function Rt(f,o,l){Z(()=>{var h=q(()=>o(f,l==null?void 0:l())||{});if(l&&(h!=null&&h.update)){var d=!1,E={};rt(()=>{var u=l();nt(u),d&&it(E,u)&&(E=u,h.update(u))}),d=!0}if(h!=null&&h.destroy)return()=>h.destroy()})}const Tt=()=>performance.now(),k={tick:f=>requestAnimationFrame(f),now:()=>Tt(),tasks:new Set};function j(){const f=k.now();k.tasks.forEach(o=>{o.c(f)||(k.tasks.delete(o),o.f())}),k.tasks.size!==0&&k.tick(j)}function _t(f){let o;return k.tasks.size===0&&k.tick(j),{promise:new Promise(l=>{k.tasks.add(o={c:f,f:l})}),abort(){k.tasks.delete(o)}}}function G(f,o){pt(()=>{f.dispatchEvent(new CustomEvent(o))})}function Lt(f){if(f==="float")return"cssFloat";if(f==="offset")return"cssOffset";if(f.startsWith("--"))return f;const o=f.split("-");return o.length===1?o[0]:o[0]+o.slice(1).map(l=>l[0].toUpperCase()+l.slice(1)).join("")}function J(f){const o={},l=f.split(";");for(const h of l){const[d,E]=h.split(":");if(!d||E===void 0)break;const u=Lt(d.trim());o[u]=E.trim()}return o}const Dt=f=>f;function kt(f,o,l){var h=mt,d,E,u,p=null;h.a??(h.a={element:f,measure(){d=this.element.getBoundingClientRect()},apply(){if(u==null||u.abort(),E=this.element.getBoundingClientRect(),d.left!==E.left||d.right!==E.right||d.top!==E.top||d.bottom!==E.bottom){const m=o()(this.element,{from:d,to:E},l==null?void 0:l());u=U(this.element,m,void 0,1,()=>{u==null||u.abort(),u=void 0})}},fix(){if(!f.getAnimations().length){var{position:m,width:B,height:T}=getComputedStyle(f);if(m!=="absolute"&&m!=="fixed"){var D=f.style;p={position:D.position,width:D.width,height:D.height,transform:D.transform},D.position="absolute",D.width=B,D.height=T;var _=f.getBoundingClientRect();if(d.left!==_.left||d.top!==_.top){var L=`translate(${d.left-_.left}px, ${d.top-_.top}px)`;D.transform=D.transform?`${D.transform} ${L}`:L}}}},unfix(){if(p){var m=f.style;m.position=p.position,m.width=p.width,m.height=p.height,m.transform=p.transform}}}),h.a.element=f}function It(f,o,l,h){var d=(f&ut)!==0,E=(f<)!==0,u=d&&E,p=(f&ft)!==0,m=u?"both":d?"in":"out",B,T=o.inert,D=o.style.overflow,_,L;function e(){var a=gt,v=X;z(null),Y(null);try{return B??(B=l()(o,(h==null?void 0:h())??{},{direction:m}))}finally{z(a),Y(v)}}var t={is_global:p,in(){var a;if(o.inert=T,!d){L==null||L.abort(),(a=L==null?void 0:L.reset)==null||a.call(L);return}E||_==null||_.abort(),G(o,"introstart"),_=U(o,e(),L,1,()=>{G(o,"introend"),_==null||_.abort(),_=B=void 0,o.style.overflow=D})},out(a){if(!E){a==null||a(),B=void 0;return}o.inert=!0,G(o,"outrostart"),L=U(o,e(),_,0,()=>{G(o,"outroend"),a==null||a()})},stop:()=>{_==null||_.abort(),L==null||L.abort()}},i=X;if((i.transitions??(i.transitions=[])).push(t),d&&ct){var r=p;if(!r){for(var n=i.parent;n&&(n.f&at)!==0;)for(;(n=n.parent)&&(n.f&st)===0;);r=!n||(n.f&ot)!==0}r&&Z(()=>{q(()=>t.in())})}}function U(f,o,l,h,d){var E=h===1;if(ht(o)){var u,p=!1;return vt(()=>{if(!p){var i=o({direction:E?"in":"out"});u=U(f,i,l,h,d)}}),{abort:()=>{p=!0,u==null||u.abort()},deactivate:()=>u.deactivate(),reset:()=>u.reset(),t:()=>u.t()}}if(l==null||l.deactivate(),!(o!=null&&o.duration))return d(),{abort:H,deactivate:H,reset:H,t:()=>h};const{delay:m=0,css:B,tick:T,easing:D=Dt}=o;var _=[];if(E&&l===void 0&&(T&&T(0,1),B)){var L=J(B(0,1));_.push(L,L)}var e=()=>1-h,t=f.animate(_,{duration:m});return t.onfinish=()=>{var i=(l==null?void 0:l.t())??1-h;l==null||l.abort();var r=h-i,n=o.duration*Math.abs(r),a=[];if(n>0){var v=!1;if(B)for(var s=Math.ceil(n/16.666666666666668),g=0;g<=s;g+=1){var w=i+r*D(g/s),c=J(B(w,1-w));a.push(c),v||(v=c.overflow==="hidden")}v&&(f.style.overflow="hidden"),e=()=>{var A=t.currentTime;return i+r*D(A/n)},T&&_t(()=>{if(t.playState!=="running")return!1;var A=e();return T(A,1-A),!0})}t=f.animate(a,{duration:n,fill:"forwards"}),t.onfinish=()=>{e=()=>h,T==null||T(h,1-h),d()}},{abort:()=>{t&&(t.cancel(),t.effect=null,t.onfinish=H)},deactivate:()=>{d=H},reset:()=>{h===0&&(T==null||T(1,0))},t:()=>e()}}var $={exports:{}},V;function Bt(){return V||(V=1,function(f){function o(e){this.mode=h.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,i=this.data.length;t<i;t++){var r=[],n=this.data.charCodeAt(t);n>65536?(r[0]=240|(n&1835008)>>>18,r[1]=128|(n&258048)>>>12,r[2]=128|(n&4032)>>>6,r[3]=128|n&63):n>2048?(r[0]=224|(n&61440)>>>12,r[1]=128|(n&4032)>>>6,r[2]=128|n&63):n>128?(r[0]=192|(n&1984)>>>6,r[1]=128|n&63):r[0]=n,this.parsedData.push(r)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}o.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,i=this.parsedData.length;t<i;t++)e.put(this.parsedData[t],8)}};function l(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}l.prototype={addData:function(e){var t=new o(e);this.dataList.push(t),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++){this.modules[i]=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[i][r]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var i=-1;i<=7;i++)if(!(e+i<=-1||this.moduleCount<=e+i))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=i&&i<=6&&(r==0||r==6)||0<=r&&r<=6&&(i==0||i==6)||2<=i&&i<=4&&2<=r&&r<=4?this.modules[e+i][t+r]=!0:this.modules[e+i][t+r]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,i=0;i<8;i++){this.makeImpl(!0,i);var r=u.getLostPoint(this);(i==0||e>r)&&(e=r,t=i)}return t},createMovieClip:function(e,t,i){var r=e.createEmptyMovieClip(t,i),n=1;this.make();for(var a=0;a<this.modules.length;a++)for(var v=a*n,s=0;s<this.modules[a].length;s++){var g=s*n,w=this.modules[a][s];w&&(r.beginFill(0,100),r.moveTo(g,v),r.lineTo(g+n,v),r.lineTo(g+n,v+n),r.lineTo(g,v+n),r.endFill())}return r},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)this.modules[e][6]==null&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)this.modules[6][t]==null&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=u.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var i=0;i<e.length;i++){var r=e[t],n=e[i];if(this.modules[r][n]==null)for(var a=-2;a<=2;a++)for(var v=-2;v<=2;v++)a==-2||a==2||v==-2||v==2||a==0&&v==0?this.modules[r+a][n+v]=!0:this.modules[r+a][n+v]=!1}},setupTypeNumber:function(e){for(var t=u.getBCHTypeNumber(this.typeNumber),i=0;i<18;i++){var r=!e&&(t>>i&1)==1;this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=r}for(var i=0;i<18;i++){var r=!e&&(t>>i&1)==1;this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=r}},setupTypeInfo:function(e,t){for(var i=this.errorCorrectLevel<<3|t,r=u.getBCHTypeInfo(i),n=0;n<15;n++){var a=!e&&(r>>n&1)==1;n<6?this.modules[n][8]=a:n<8?this.modules[n+1][8]=a:this.modules[this.moduleCount-15+n][8]=a}for(var n=0;n<15;n++){var a=!e&&(r>>n&1)==1;n<8?this.modules[8][this.moduleCount-n-1]=a:n<9?this.modules[8][15-n-1+1]=a:this.modules[8][15-n-1]=a}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var i=-1,r=this.moduleCount-1,n=7,a=0,v=this.moduleCount-1;v>0;v-=2)for(v==6&&v--;;){for(var s=0;s<2;s++)if(this.modules[r][v-s]==null){var g=!1;a<e.length&&(g=(e[a]>>>n&1)==1);var w=u.getMask(t,r,v-s);w&&(g=!g),this.modules[r][v-s]=g,n--,n==-1&&(a++,n=7)}if(r+=i,r<0||this.moduleCount<=r){r-=i,i=-i;break}}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,i){for(var r=T.getRSBlocks(e,t),n=new D,a=0;a<i.length;a++){var v=i[a];n.put(v.mode,4),n.put(v.getLength(),u.getLengthInBits(v.mode,e)),v.write(n)}for(var s=0,a=0;a<r.length;a++)s+=r[a].dataCount;if(n.getLengthInBits()>s*8)throw new Error("code length overflow. ("+n.getLengthInBits()+">"+s*8+")");for(n.getLengthInBits()+4<=s*8&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=s*8||(n.put(l.PAD0,8),n.getLengthInBits()>=s*8));)n.put(l.PAD1,8);return l.createBytes(n,r)},l.createBytes=function(e,t){for(var i=0,r=0,n=0,a=new Array(t.length),v=new Array(t.length),s=0;s<t.length;s++){var g=t[s].dataCount,w=t[s].totalCount-g;r=Math.max(r,g),n=Math.max(n,w),a[s]=new Array(g);for(var c=0;c<a[s].length;c++)a[s][c]=255&e.buffer[c+i];i+=g;var A=u.getErrorCorrectPolynomial(w),M=new B(a[s],A.getLength()-1),R=M.mod(A);v[s]=new Array(A.getLength()-1);for(var c=0;c<v[s].length;c++){var y=c+R.getLength()-v[s].length;v[s][c]=y>=0?R.get(y):0}}for(var C=0,c=0;c<t.length;c++)C+=t[c].totalCount;for(var I=new Array(C),N=0,c=0;c<r;c++)for(var s=0;s<t.length;s++)c<a[s].length&&(I[N++]=a[s][c]);for(var c=0;c<n;c++)for(var s=0;s<t.length;s++)c<v[s].length&&(I[N++]=v[s][c]);return I};for(var h={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},d={L:1,M:0,Q:3,H:2},E={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},u={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;u.getBCHDigit(t)-u.getBCHDigit(u.G15)>=0;)t^=u.G15<<u.getBCHDigit(t)-u.getBCHDigit(u.G15);return(e<<10|t)^u.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;u.getBCHDigit(t)-u.getBCHDigit(u.G18)>=0;)t^=u.G18<<u.getBCHDigit(t)-u.getBCHDigit(u.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;e!=0;)t++,e>>>=1;return t},getPatternPosition:function(e){return u.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,i){switch(e){case E.PATTERN000:return(t+i)%2==0;case E.PATTERN001:return t%2==0;case E.PATTERN010:return i%3==0;case E.PATTERN011:return(t+i)%3==0;case E.PATTERN100:return(Math.floor(t/2)+Math.floor(i/3))%2==0;case E.PATTERN101:return t*i%2+t*i%3==0;case E.PATTERN110:return(t*i%2+t*i%3)%2==0;case E.PATTERN111:return(t*i%3+(t+i)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new B([1],0),i=0;i<e;i++)t=t.multiply(new B([1,p.gexp(i)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case h.MODE_NUMBER:return 10;case h.MODE_ALPHA_NUM:return 9;case h.MODE_8BIT_BYTE:return 8;case h.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case h.MODE_NUMBER:return 12;case h.MODE_ALPHA_NUM:return 11;case h.MODE_8BIT_BYTE:return 16;case h.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else if(t<41)switch(e){case h.MODE_NUMBER:return 14;case h.MODE_ALPHA_NUM:return 13;case h.MODE_8BIT_BYTE:return 16;case h.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}else throw new Error("type:"+t)},getLostPoint:function(e){for(var t=e.getModuleCount(),i=0,r=0;r<t;r++)for(var n=0;n<t;n++){for(var a=0,v=e.isDark(r,n),s=-1;s<=1;s++)if(!(r+s<0||t<=r+s))for(var g=-1;g<=1;g++)n+g<0||t<=n+g||s==0&&g==0||v==e.isDark(r+s,n+g)&&a++;a>5&&(i+=3+a-5)}for(var r=0;r<t-1;r++)for(var n=0;n<t-1;n++){var w=0;e.isDark(r,n)&&w++,e.isDark(r+1,n)&&w++,e.isDark(r,n+1)&&w++,e.isDark(r+1,n+1)&&w++,(w==0||w==4)&&(i+=3)}for(var r=0;r<t;r++)for(var n=0;n<t-6;n++)e.isDark(r,n)&&!e.isDark(r,n+1)&&e.isDark(r,n+2)&&e.isDark(r,n+3)&&e.isDark(r,n+4)&&!e.isDark(r,n+5)&&e.isDark(r,n+6)&&(i+=40);for(var n=0;n<t;n++)for(var r=0;r<t-6;r++)e.isDark(r,n)&&!e.isDark(r+1,n)&&e.isDark(r+2,n)&&e.isDark(r+3,n)&&e.isDark(r+4,n)&&!e.isDark(r+5,n)&&e.isDark(r+6,n)&&(i+=40);for(var c=0,n=0;n<t;n++)for(var r=0;r<t;r++)e.isDark(r,n)&&c++;var A=Math.abs(100*c/t/t-50)/5;return i+=A*10,i}},p={glog:function(e){if(e<1)throw new Error("glog("+e+")");return p.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return p.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},m=0;m<8;m++)p.EXP_TABLE[m]=1<<m;for(var m=8;m<256;m++)p.EXP_TABLE[m]=p.EXP_TABLE[m-4]^p.EXP_TABLE[m-5]^p.EXP_TABLE[m-6]^p.EXP_TABLE[m-8];for(var m=0;m<255;m++)p.LOG_TABLE[p.EXP_TABLE[m]]=m;function B(e,t){if(e.length==null)throw new Error(e.length+"/"+t);for(var i=0;i<e.length&&e[i]==0;)i++;this.num=new Array(e.length-i+t);for(var r=0;r<e.length-i;r++)this.num[r]=e[r+i]}B.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),i=0;i<this.getLength();i++)for(var r=0;r<e.getLength();r++)t[i+r]^=p.gexp(p.glog(this.get(i))+p.glog(e.get(r)));return new B(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=p.glog(this.get(0))-p.glog(e.get(0)),i=new Array(this.getLength()),r=0;r<this.getLength();r++)i[r]=this.get(r);for(var r=0;r<e.getLength();r++)i[r]^=p.gexp(p.glog(e.get(r))+t);return new B(i,0).mod(e)}};function T(e,t){this.totalCount=e,this.dataCount=t}T.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],T.getRSBlocks=function(e,t){var i=T.getRsBlockTable(e,t);if(i==null)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var r=i.length/3,n=[],a=0;a<r;a++)for(var v=i[a*3+0],s=i[a*3+1],g=i[a*3+2],w=0;w<v;w++)n.push(new T(s,g));return n},T.getRsBlockTable=function(e,t){switch(t){case d.L:return T.RS_BLOCK_TABLE[(e-1)*4+0];case d.M:return T.RS_BLOCK_TABLE[(e-1)*4+1];case d.Q:return T.RS_BLOCK_TABLE[(e-1)*4+2];case d.H:return T.RS_BLOCK_TABLE[(e-1)*4+3];default:return}};function D(){this.buffer=[],this.length=0}D.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var i=0;i<t;i++)this.putBit((e>>>t-i-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var _=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function L(e){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M"},typeof e=="string"&&(e={content:e}),e)for(var t in e)this.options[t]=e[t];if(typeof this.options.content!="string")throw new Error("Expected 'content' as string!");if(this.options.content.length===0)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");function i(g){switch(g){case"L":return d.L;case"M":return d.M;case"Q":return d.Q;case"H":return d.H;default:throw new Error("Unknwon error correction level: "+g)}}function r(g,w){for(var c=n(g),A=1,M=0,R=0,y=_.length;R<=y;R++){var C=_[R];if(!C)throw new Error("Content too long: expected "+M+" but got "+c);switch(w){case"L":M=C[0];break;case"M":M=C[1];break;case"Q":M=C[2];break;case"H":M=C[3];break;default:throw new Error("Unknwon error correction level: "+w)}if(c<=M)break;A++}if(A>_.length)throw new Error("Content too long");return A}function n(g){var w=encodeURI(g).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return w.length+(w.length!=g?3:0)}var a=this.options.content,v=r(a,this.options.ecl),s=i(this.options.ecl);this.qrcode=new l(v,s),this.qrcode.addData(a),this.qrcode.make()}L.prototype.svg=function(e){var t=this.options||{},i=this.qrcode.modules;typeof e>"u"&&(e={container:t.container||"svg"});for(var r=typeof t.pretty<"u"?!!t.pretty:!0,n=r?" ":"",a=r?`\r
|
|
2
|
-
`:"",v=t.width,s=t.height,g=i.length,w=v/(g+2*t.padding),c=s/(g+2*t.padding),A=typeof t.join<"u"?!!t.join:!1,M=typeof t.swap<"u"?!!t.swap:!1,R=typeof t.xmlDeclaration<"u"?!!t.xmlDeclaration:!0,y=typeof t.predefined<"u"?!!t.predefined:!1,C=y?n+'<defs><path id="qrmodule" d="M0 0 h'+c+" v"+w+' H0 z" style="fill:'+t.color+';shape-rendering:crispEdges;" /></defs>'+a:"",I=n+'<rect x="0" y="0" width="'+v+'" height="'+s+'" style="fill:'+t.background+';shape-rendering:crispEdges;"/>'+a,N="",K="",S=0;S<g;S++)for(var Q=0;Q<g;Q++){var tt=i[Q][S];if(tt){var P=Q*w+t.padding*w,x=S*c+t.padding*c;if(M){var et=P;P=x,x=et}if(A){var O=w+P,F=c+x;P=Number.isInteger(P)?Number(P):P.toFixed(2),x=Number.isInteger(x)?Number(x):x.toFixed(2),O=Number.isInteger(O)?Number(O):O.toFixed(2),F=Number.isInteger(F)?Number(F):F.toFixed(2),K+="M"+P+","+x+" V"+F+" H"+O+" V"+x+" H"+P+" Z "}else y?N+=n+'<use x="'+P.toString()+'" y="'+x.toString()+'" href="#qrmodule" />'+a:N+=n+'<rect x="'+P.toString()+'" y="'+x.toString()+'" width="'+w+'" height="'+c+'" style="fill:'+t.color+';shape-rendering:crispEdges;"/>'+a}}A&&(N=n+'<path x="0" y="0" style="fill:'+t.color+';shape-rendering:crispEdges;" d="'+K+'" />');var b="";switch(e.container){case"svg":R&&(b+='<?xml version="1.0" standalone="yes"?>'+a),b+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+v+'" height="'+s+'">'+a,b+=C+I+N,b+="</svg>";break;case"svg-viewbox":R&&(b+='<?xml version="1.0" standalone="yes"?>'+a),b+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 '+v+" "+s+'">'+a,b+=C+I+N,b+="</svg>";break;case"g":b+='<g width="'+v+'" height="'+s+'">'+a,b+=C+I+N,b+="</g>";break;default:b+=(C+I+N).replace(/^\s+/,"");break}return b},L.prototype.save=function(e,t){var i=this.svg();typeof t!="function"&&(t=function(n,a){});try{var r=Et;r.writeFile(e,i,t)}catch(n){t(n)}},f.exports=L}($)),$.exports}var At=Bt();const Ct=wt(At),yt=(f,{url:o,...l})=>{dt(()=>{var h=new Ct({color:"currentColor",background:"transparent",padding:0,join:!0,container:"svg-viewbox",...l,content:o}).svg();return f.innerHTML=h,()=>{f.innerHTML=""}})},bt=f=>f;function Pt(f){const o=f-1;return o*o*o+1}function W(f){const o=typeof f=="string"&&f.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return o?[parseFloat(o[1]),o[2]||"px"]:[f,"px"]}function Ot(f,{delay:o=0,duration:l=400,easing:h=bt}={}){const d=+getComputedStyle(f).opacity;return{delay:o,duration:l,easing:h,css:E=>`opacity: ${E*d}`}}function Ft(f,{delay:o=0,duration:l=400,easing:h=Pt,x:d=0,y:E=0,opacity:u=0}={}){const p=getComputedStyle(f),m=+p.opacity,B=p.transform==="none"?"":p.transform,T=m*(1-u),[D,_]=W(d),[L,e]=W(E);return{delay:o,duration:l,easing:h,css:(t,i)=>`
|
|
3
|
-
transform: ${B} translate(${(1-t)*D}${_}, ${(1-t)*L}${e});
|
|
4
|
-
opacity: ${m-T*i}`}}export{Rt as a,Ft as b,kt as c,Ot as f,yt as q,It as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as S,r as h,b as k,q,S as T}from"./CDVeMiAl.js";function t(r,i){return r===i||(r==null?void 0:r[T])===i}function A(r={},i,a,c){return S(()=>{var f,s;return h(()=>{f=s,s=[],k(()=>{r!==a(...s)&&(i(r,...s),f&&t(a(...f),r)&&i(null,...f))})}),()=>{q(()=>{s&&t(a(...s),r)&&i(null,...s)})}}),r}export{A as b};
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as f,E as i,f as o,n as p,g as c,h as d,i as h}from"./CDVeMiAl.js";function _(s,e,...t){var r=s,n=p,a;f(()=>{n!==(n=e())&&(a&&(c(a),a=null),a=o(()=>n(r,...t)))},i),d&&(r=h)}export{_ as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{am as L,an as S,ao as $,P as k,a0 as U,T as z,$ as G,q as Z,h as c,ap as T,d as J,aq as K,V as q,ar as D,Z as g,Y as A,i as u,as as E,at as Q,au as X,av as ee,C as B,aw as I,ax as R,ay as te,az as re,aA as ae,aB as ne,aC as oe,aD as ie,f as se,v as ue,c as le,y as de}from"./CDVeMiAl.js";function Ee(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const fe=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function be(e){return fe.includes(e)}const ce={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Te(e){return e=e.toLowerCase(),ce[e]??e}const _e=["touchstart","touchmove"];function ve(e){return _e.includes(e)}function pe(e){var t=$,r=k;L(null),S(null);try{return e()}finally{L(t),S(r)}}const F=new Set,M=new Set;function Ae(e){if(!c)return;e.onload&&e.removeAttribute("onload"),e.onerror&&e.removeAttribute("onerror");const t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function he(e,t,r,o={}){function n(a){if(o.capture||b.call(t,a),!a.cancelBubble)return pe(()=>r==null?void 0:r.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Z(()=>{t.addEventListener(e,n,o)}):t.addEventListener(e,n,o),n}function ke(e,t,r,o,n){var a={capture:o,passive:n},i=he(e,t,r,a);(t===document.body||t===window||t===document)&&G(()=>{t.removeEventListener(e,i,a)})}function Ne(e){for(var t=0;t<e.length;t++)F.add(e[t]);for(var r of M)r(e)}function b(e){var P;var t=this,r=t.ownerDocument,o=e.type,n=((P=e.composedPath)==null?void 0:P.call(e))||[],a=n[0]||e.target,i=0,_=e.__root;if(_){var d=n.indexOf(_);if(d!==-1&&(t===document||t===window)){e.__root=t;return}var m=n.indexOf(t);if(m===-1)return;d<=m&&(i=d)}if(a=n[i]||e.target,a!==t){U(e,"currentTarget",{configurable:!0,get(){return a||r}});var C=$,v=k;L(null),S(null);try{for(var s,l=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+o];if(y!==void 0&&(!a.disabled||e.target===a))if(z(y)){var[Y,...x]=y;Y.apply(a,[e,...x])}else y.call(a,e)}catch(N){s?l.push(N):s=N}if(e.cancelBubble||h===t||h===null)break;a=h}if(s){for(let N of l)queueMicrotask(()=>{throw N});throw s}}finally{e.__root=t,delete e.currentTarget,L(C),S(v)}}}let f;function ye(){f=void 0}function Le(e){let t=null,r=c;var o;if(c){for(t=u,f===void 0&&(f=E(document.head));f!==null&&(f.nodeType!==8||f.data!==q);)f=D(f);f===null?g(!1):f=A(D(f))}c||(o=document.head.appendChild(T()));try{J(()=>e(o),K)}finally{r&&(g(!0),f=u,A(t))}}function H(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function p(e,t){var r=k;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Se(e,t){var r=(t&X)!==0,o=(t&ee)!==0,n,a=!e.startsWith("<!>");return()=>{if(c)return p(u,null),u;n===void 0&&(n=H(a?e:"<!>"+e),r||(n=E(n)));var i=o||Q?document.importNode(n,!0):n.cloneNode(!0);if(r){var _=E(i),d=i.lastChild;p(_,d)}else p(i,i);return i}}function Ce(e,t,r="svg"){var o=!e.startsWith("<!>"),n=`<${r}>${o?e:"<!>"+e}</${r}>`,a;return()=>{if(c)return p(u,null),u;if(!a){var i=H(n),_=E(i);a=E(_)}var d=a.cloneNode(!0);return p(d,d),d}}function Re(e=""){if(!c){var t=T(e+"");return p(t,t),t}var r=u;return r.nodeType!==3&&(r.before(r=T()),A(r)),p(r,r),r}function De(){if(c)return p(u,null),u;var e=document.createDocumentFragment(),t=document.createComment(""),r=T();return e.append(t,r),p(t,r),e}function Ie(e,t){if(c){k.nodes_end=u,B();return}e!==null&&e.before(t)}let V=!0;function Me(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function me(e,t){return j(e,t)}function Oe(e,t){I(),t.intro=t.intro??!1;const r=t.target,o=c,n=u;try{for(var a=E(r);a&&(a.nodeType!==8||a.data!==q);)a=D(a);if(!a)throw R;g(!0),A(a),B();const i=j(e,{...t,anchor:a});if(u===null||u.nodeType!==8||u.data!==te)throw re(),R;return g(!1),i}catch(i){if(i===R)return t.recover===!1&&ae(),I(),ne(r),g(!1),me(e,t);throw i}finally{g(o),A(n),ye()}}const w=new Map;function j(e,{target:t,anchor:r,props:o={},events:n,context:a,intro:i=!0}){I();var _=new Set,d=v=>{for(var s=0;s<v.length;s++){var l=v[s];if(!_.has(l)){_.add(l);var h=ve(l);t.addEventListener(l,b,{passive:h});var y=w.get(l);y===void 0?(document.addEventListener(l,b,{passive:h}),w.set(l,1)):w.set(l,y+1)}}};d(oe(F)),M.add(d);var m=void 0,C=ie(()=>{var v=r??t.appendChild(T());return se(()=>{if(a){ue({});var s=le;s.c=a}n&&(o.$$events=n),c&&p(v,null),V=i,m=e(v,o)||{},V=!0,c&&(k.nodes_end=u),a&&de()}),()=>{var h;for(var s of _){t.removeEventListener(s,b);var l=w.get(s);--l===0?(document.removeEventListener(s,b),w.delete(s)):w.set(s,l)}M.delete(d),v!==r&&((h=v.parentNode)==null||h.removeChild(v))}});return O.set(m,C),m}let O=new WeakMap;function Pe(e,t){const r=O.get(e);return r?(O.delete(e),r(t)):Promise.resolve()}const we="5";var W;typeof window<"u"&&((W=window.__svelte??(window.__svelte={})).v??(W.v=new Set)).add(we);export{Ie as a,Re as b,De as c,V as d,Ne as e,ke as f,p as g,Oe as h,H as i,Le as j,Ee as k,he as l,me as m,Ce as n,Te as o,be as p,Ae as r,Me as s,Se as t,Pe as u,pe as w};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,u as a,c as t,a as c,b as u}from"./CDVeMiAl.js";function f(e){t===null&&o(),c&&t.l!==null?l(t).m.push(e):a(()=>{const n=u(e);if(typeof n=="function")return n})}function l(e){var n=e.l;return n.u??(n.u={a:[],b:[],m:[]})}export{f as o};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BWH--JS_.js","../chunks/qSIFE6bv.js","../chunks/CDVeMiAl.js","../chunks/CvUX3i4L.js","../chunks/EvVuwjft.js","../chunks/D5aAvvqP.js","../assets/LoadingIndicator.D0m6rSKQ.css","../chunks/C7I4vMbc.js","../chunks/DiaFwogD.js","../assets/0.Dl9__I4E.css","../nodes/1.D_c4RSZq.js","../chunks/D8ITvQqD.js","../chunks/ynvIH2CR.js","../nodes/2.DxFkPkVM.js","../chunks/DnG2xkSB.js","../chunks/BQ2eCqC3.js","../assets/PlayingTracker.BPTtFzSw.css","../assets/2.BtzFOBtk.css","../nodes/3.DHrglKgJ.js","../assets/3.VTEzhx9-.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
var z=r=>{throw TypeError(r)};var G=(r,e,s)=>e.has(r)||z("Cannot "+s);var l=(r,e,s)=>(G(r,e,"read from private field"),s?s.call(r):e.get(r)),L=(r,e,s)=>e.has(r)?z("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,s),T=(r,e,s,a)=>(G(r,e,"write to private field"),a?a.call(r,s):e.set(r,s),s);import{h as H,C as Q,d as X,E as Z,f as M,H as $,i as ee,I as S,aa as te,o as v,af as re,a0 as se,a1 as ne,v as ae,j as oe,u as ie,J as j,ag as ce,w as A,B as le,y as ue,z as fe,A as de,s as I,x as me}from"../chunks/CDVeMiAl.js";import{h as he,m as _e,u as ve,t as N,a as R,c as B,b as ge,s as ye}from"../chunks/qSIFE6bv.js";import{b as D,p as be,i as V}from"../chunks/CvUX3i4L.js";import{b as p}from"../chunks/DnG2xkSB.js";import{o as Ee}from"../chunks/ynvIH2CR.js";function q(r,e,s){H&&Q();var a=r,o,c;X(()=>{o!==(o=e())&&(c&&($(c),c=null),o&&(c=M(()=>s(a,o))))},Z),H&&(a=ee)}function Pe(r){return class extends Re{constructor(e){super({component:r,...e})}}}var g,f;class Re{constructor(e){L(this,g);L(this,f);var c;var s=new Map,a=(n,t)=>{var d=ne(t);return s.set(n,d),d};const o=new Proxy({...e.props||{},$$events:{}},{get(n,t){return v(s.get(t)??a(t,Reflect.get(n,t)))},has(n,t){return t===te?!0:(v(s.get(t)??a(t,Reflect.get(n,t))),Reflect.has(n,t))},set(n,t,d){return S(s.get(t)??a(t,d),d),Reflect.set(n,t,d)}});T(this,f,(e.hydrate?he:_e)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((c=e==null?void 0:e.props)!=null&&c.$$host)||e.sync===!1)&&re(),T(this,g,o.$$events);for(const n of Object.keys(l(this,f)))n==="$set"||n==="$destroy"||n==="$on"||se(this,n,{get(){return l(this,f)[n]},set(t){l(this,f)[n]=t},enumerable:!0});l(this,f).$set=n=>{Object.assign(o,n)},l(this,f).$destroy=()=>{ve(l(this,f))}}$set(e){l(this,f).$set(e)}$on(e,s){l(this,g)[e]=l(this,g)[e]||[];const a=(...o)=>s.call(this,...o);return l(this,g)[e].push(a),()=>{l(this,g)[e]=l(this,g)[e].filter(o=>o!==a)}}$destroy(){l(this,f).$destroy()}}g=new WeakMap,f=new WeakMap;const we="modulepreload",xe=function(r,e){return new URL(r,e).href},J={},O=function(e,s,a){let o=Promise.resolve();if(s&&s.length>0){const n=document.getElementsByTagName("link"),t=document.querySelector("meta[property=csp-nonce]"),d=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));o=Promise.allSettled(s.map(u=>{if(u=xe(u,a),u in J)return;J[u]=!0;const y=u.endsWith(".css"),C=y?'[rel="stylesheet"]':"";if(!!a)for(let b=n.length-1;b>=0;b--){const i=n[b];if(i.href===u&&(!y||i.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${C}`))return;const h=document.createElement("link");if(h.rel=y?"stylesheet":we,y||(h.as="script"),h.crossOrigin="",h.href=u,d&&h.setAttribute("nonce",d),document.head.appendChild(h),y)return new Promise((b,i)=>{h.addEventListener("load",b),h.addEventListener("error",()=>i(new Error(`Unable to preload CSS for ${u}`)))})}))}function c(n){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=n,window.dispatchEvent(t),!t.defaultPrevented)throw n}return o.then(n=>{for(const t of n||[])t.status==="rejected"&&c(t.reason);return e().catch(c)})},pe={};var ke=N('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Ae=N("<!> <!>",1);function Oe(r,e){ae(e,!0);let s=D(e,"components",23,()=>[]),a=D(e,"data_0",3,null),o=D(e,"data_1",3,null);oe(()=>e.stores.page.set(e.page)),ie(()=>{e.stores,e.page,e.constructors,s(),e.form,a(),o(),e.stores.page.notify()});let c=j(!1),n=j(!1),t=j(null);Ee(()=>{const i=e.stores.page.subscribe(()=>{v(c)&&(S(n,!0),ce().then(()=>{S(t,be(document.title||"untitled page"))}))});return S(c,!0),i});const d=I(()=>e.constructors[1]);var u=Ae(),y=A(u);{var C=i=>{var _=B();const w=I(()=>e.constructors[0]);var x=A(_);q(x,()=>v(w),(E,P)=>{p(P(E,{get data(){return a()},get form(){return e.form},children:(m,Le)=>{var U=B(),W=A(U);q(W,()=>v(d),(Y,K)=>{p(K(Y,{get data(){return o()},get form(){return e.form}}),k=>s()[1]=k,()=>{var k;return(k=s())==null?void 0:k[1]})}),R(m,U)},$$slots:{default:!0}}),m=>s()[0]=m,()=>{var m;return(m=s())==null?void 0:m[0]})}),R(i,_)},F=i=>{var _=B();const w=I(()=>e.constructors[0]);var x=A(_);q(x,()=>v(w),(E,P)=>{p(P(E,{get data(){return a()},get form(){return e.form}}),m=>s()[0]=m,()=>{var m;return(m=s())==null?void 0:m[0]})}),R(i,_)};V(y,i=>{e.constructors[1]?i(C):i(F,!1)})}var h=le(y,2);{var b=i=>{var _=ke(),w=fe(_);{var x=E=>{var P=ge();me(()=>ye(P,v(t))),R(E,P)};V(w,E=>{v(n)&&E(x)})}de(_),R(i,_)};V(h,i=>{v(c)&&i(b)})}R(r,u),ue()}const qe=Pe(Oe),Fe=[()=>O(()=>import("../nodes/0.BWH--JS_.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url),()=>O(()=>import("../nodes/1.D_c4RSZq.js"),__vite__mapDeps([10,1,2,7,11,12]),import.meta.url),()=>O(()=>import("../nodes/2.DxFkPkVM.js"),__vite__mapDeps([13,1,2,3,5,6,14,4,15,16,17]),import.meta.url),()=>O(()=>import("../nodes/3.DHrglKgJ.js"),__vite__mapDeps([18,1,2,3,8,5,6,15,16,19]),import.meta.url)],Ue=[0],ze={"/":[2],"/player":[3]},Se={handleError:({error:r})=>{console.error(r)},reroute:()=>{},transport:{}},Ce=Object.fromEntries(Object.entries(Se.transport).map(([r,e])=>[r,e.decode])),Ge=!1,He=(r,e)=>Ce[r](e);export{He as decode,Ce as decoders,ze as dictionary,Ge as hash,Se as hooks,pe as matchers,Fe as nodes,qe as root,Ue as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,a as r}from"../chunks/D8ITvQqD.js";export{o as load_css,r as start};
|
|
Binary file
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{g as $,i as dt,t as B,s as T,a as x,n as Z,f as ct,c as vt,j as mt}from"../chunks/qSIFE6bv.js";import{d as ft,h as tt,C as et,f as ht,i as at,ar as ut,az as gt,ax as _t,Y as yt,as as wt,g as bt,v as H,z as _,B as b,aF as E,A as u,x as S,a6 as xt,y as P,aE as U,o as D,s as K,u as Y,J as G,I as J,w as F,aG as zt}from"../chunks/CDVeMiAl.js";import{a as j,s as Q,b as q,i as I,r as X,p as rt,c as At}from"../chunks/CvUX3i4L.js";import{s as Ct}from"../chunks/EvVuwjft.js";import{e as k,a as st,d as p,h as qt,t as N,c as kt,l as St,j as It,k as V,f as Lt,m as Zt,L as Mt}from"../chunks/D5aAvvqP.js";import{i as nt}from"../chunks/C7I4vMbc.js";import{a as Tt,q as Dt,t as it,b as Ht,f as Pt,c as Rt}from"../chunks/DiaFwogD.js";function jt(d,t,r,y,g){var c=d,n="",o;ft(()=>{if(n===(n=t()??"")){tt&&et();return}o!==void 0&&(bt(o),o=void 0),n!==""&&(o=ht(()=>{if(tt){at.data;for(var s=et(),f=s;s!==null&&(s.nodeType!==8||s.data!=="");)f=s,s=ut(s);if(s===null)throw gt(),_t;$(at,f),c=yt(s);return}var l=n+"",v=dt(l);$(wt(v),v.lastChild),c.before(v)}))})}var Et=B(`<div class="content svelte-30zq06"><div class="options svelte-30zq06"><div class="options-left"><h1>This instance is not authenticated</h1> <p class="svelte-30zq06"> <a data-sveltekit-reload="" rel="external">Authenticate</a> or scan qr to authenticate via device</p></div> <div class="options-right"><span class="qr svelte-30zq06"></span></div> <div class="options-bottom svelte-30zq06"><p class="size-small-1 color-2 svelte-30zq06">Make sure that <em class="svelte-30zq06"> </em> is added as a Redirect URI in your
|
|
2
|
-
spotify app dashboard</p></div></div></div>`);function Bt(d,t){H(t,!1);const[r,y]=Q(),g=()=>j(st,"$address",r);nt();var c=Et(),n=_(c),o=_(n),s=b(_(o),2),f=_(s),l=b(f);E(),u(s),u(o);var v=b(o,2),w=_(v);Tt(w,(h,a)=>{var e;return(e=Dt)==null?void 0:e(h,a)},()=>({url:g().server("/spotify/start")})),u(v);var A=b(v,2),z=_(A),C=b(_(z)),i=_(C,!0);u(C),E(),u(z),u(A),u(n),u(c),S((h,a,e)=>{T(f,`${h??""} `),k(l,"href",a),T(i,e)},[()=>g().server("/spotify/start"),()=>g().server("/spotify/start"),()=>g().server("/spotify/token")],xt),x(d,c),P(),y()}function Ot(d){const t=d-1;return t*t*t+1}function Wt(d,{from:t,to:r},y={}){var{delay:g=0,duration:c=L=>Math.sqrt(L)*120,easing:n=Ot}=y,o=getComputedStyle(d),s=o.transform==="none"?"":o.transform,[f,l]=o.transformOrigin.split(" ").map(parseFloat);f/=d.clientWidth,l/=d.clientHeight;var v=Ft(d),w=d.clientWidth/r.width/v,A=d.clientHeight/r.height/v,z=t.left+t.width*f,C=t.top+t.height*l,i=r.left+r.width*f,h=r.top+r.height*l,a=(z-i)*w,e=(C-h)*A,m=t.width/r.width,R=t.height/r.height;return{delay:g,duration:typeof c=="function"?c(Math.sqrt(a*a+e*e)):c,easing:n,css:(L,M)=>{var O=M*a,W=M*e,ot=L+M*m,lt=L+M*R;return`transform: ${s} translate(${O}px, ${W}px) scale(${ot}, ${lt});`}}}function Ft(d){if("currentCSSZoom"in d)return d.currentCSSZoom;for(var t=d,r=1;t!==null;)r*=+getComputedStyle(t).zoom,t=t.parentElement;return r}var Vt=Z("<title> </title>"),Yt=Z("<desc> </desc>"),Gt=Z('<svg><!><!><path d="M256,176a80,80,0,1,0,80,80A80.09,80.09,0,0,0,256,176Zm0,112a32,32,0,1,1,32-32A32,32,0,0,1,256,288Z"></path><path d="M414.39,97.61A224,224,0,1,0,97.61,414.39,224,224,0,1,0,414.39,97.61ZM256,368A112,112,0,1,1,368,256,112.12,112.12,0,0,1,256,368Z"></path></svg>');function Jt(d,t){var i,h;H(t,!0);const r=U("iconCtx")??{};let y=q(t,"size",19,()=>r.size||"24"),g=q(t,"role",19,()=>r.role||"img"),c=q(t,"color",19,()=>r.color||"currentColor"),n=q(t,"ariaLabel",3,"disc"),o=X(t,["$$slots","$$events","$$legacy","size","role","color","title","desc","ariaLabel"]),s=`${((i=t.title)==null?void 0:i.id)||""} ${((h=t.desc)==null?void 0:h.id)||""}`;const f=K(()=>{var a,e;return!!((a=t.title)!=null&&a.id||(e=t.desc)!=null&&e.id)});var l=Gt();let v;var w=_(l);{var A=a=>{var e=Vt(),m=_(e,!0);u(e),S(()=>{k(e,"id",t.title.id),T(m,t.title.title)}),x(a,e)};I(w,a=>{var e;(e=t.title)!=null&&e.id&&t.title.title&&a(A)})}var z=b(w);{var C=a=>{var e=Yt(),m=_(e,!0);u(e),S(()=>{k(e,"id",t.desc.id),T(m,t.desc.desc)}),x(a,e)};I(z,a=>{var e;(e=t.desc)!=null&&e.id&&t.desc.desc&&a(C)})}E(2),u(l),S(()=>v=p(l,v,{xmlns:"http://www.w3.org/2000/svg",...o,role:g(),width:y(),height:y(),fill:c(),"aria-label":n(),"aria-describedby":D(f)?s:void 0,viewBox:"0 0 512 512"})),x(d,l),P()}var Nt=Z("<title> </title>"),Ut=Z("<desc> </desc>"),Kt=Z('<svg><!><!><path d="M256,56C145.72,56,56,145.72,56,256s89.72,200,200,200,200-89.72,200-200S366.28,56,256,56Zm0,82a26,26,0,1,1-26,26A26,26,0,0,1,256,138Zm48,226H216a16,16,0,0,1,0-32h28V244H228a16,16,0,0,1,0-32h32a16,16,0,0,1,16,16V332h28a16,16,0,0,1,0,32Z"></path></svg>');function Qt(d,t){var i,h;H(t,!0);const r=U("iconCtx")??{};let y=q(t,"size",19,()=>r.size||"24"),g=q(t,"role",19,()=>r.role||"img"),c=q(t,"color",19,()=>r.color||"currentColor"),n=q(t,"ariaLabel",3,"information circle"),o=X(t,["$$slots","$$events","$$legacy","size","role","color","title","desc","ariaLabel"]),s=`${((i=t.title)==null?void 0:i.id)||""} ${((h=t.desc)==null?void 0:h.id)||""}`;const f=K(()=>{var a,e;return!!((a=t.title)!=null&&a.id||(e=t.desc)!=null&&e.id)});var l=Kt();let v;var w=_(l);{var A=a=>{var e=Nt(),m=_(e,!0);u(e),S(()=>{k(e,"id",t.title.id),T(m,t.title.title)}),x(a,e)};I(w,a=>{var e;(e=t.title)!=null&&e.id&&t.title.title&&a(A)})}var z=b(w);{var C=a=>{var e=Ut(),m=_(e,!0);u(e),S(()=>{k(e,"id",t.desc.id),T(m,t.desc.desc)}),x(a,e)};I(z,a=>{var e;(e=t.desc)!=null&&e.id&&t.desc.desc&&a(C)})}E(),u(l),S(()=>v=p(l,v,{xmlns:"http://www.w3.org/2000/svg",...o,role:g(),width:y(),height:y(),fill:c(),"aria-label":n(),"aria-describedby":D(f)?s:void 0,viewBox:"0 0 512 512"})),x(d,l),P()}var Xt=Z("<title> </title>"),pt=Z("<desc> </desc>"),$t=Z('<svg><!><!><path d="M449.07,399.08,278.64,82.58c-12.08-22.44-44.26-22.44-56.35,0L51.87,399.08A32,32,0,0,0,80,446.25H420.89A32,32,0,0,0,449.07,399.08Zm-198.6-1.83a20,20,0,1,1,20-20A20,20,0,0,1,250.47,397.25ZM272.19,196.1l-5.74,122a16,16,0,0,1-32,0l-5.74-121.95v0a21.73,21.73,0,0,1,21.5-22.69h.21a21.74,21.74,0,0,1,21.73,22.7Z"></path></svg>');function te(d,t){var i,h;H(t,!0);const r=U("iconCtx")??{};let y=q(t,"size",19,()=>r.size||"24"),g=q(t,"role",19,()=>r.role||"img"),c=q(t,"color",19,()=>r.color||"currentColor"),n=q(t,"ariaLabel",3,"warning"),o=X(t,["$$slots","$$events","$$legacy","size","role","color","title","desc","ariaLabel"]),s=`${((i=t.title)==null?void 0:i.id)||""} ${((h=t.desc)==null?void 0:h.id)||""}`;const f=K(()=>{var a,e;return!!((a=t.title)!=null&&a.id||(e=t.desc)!=null&&e.id)});var l=$t();let v;var w=_(l);{var A=a=>{var e=Xt(),m=_(e,!0);u(e),S(()=>{k(e,"id",t.title.id),T(m,t.title.title)}),x(a,e)};I(w,a=>{var e;(e=t.title)!=null&&e.id&&t.title.title&&a(A)})}var z=b(w);{var C=a=>{var e=pt(),m=_(e,!0);u(e),S(()=>{k(e,"id",t.desc.id),T(m,t.desc.desc)}),x(a,e)};I(z,a=>{var e;(e=t.desc)!=null&&e.id&&t.desc.desc&&a(C)})}E(),u(l),S(()=>v=p(l,v,{xmlns:"http://www.w3.org/2000/svg",...o,role:g(),width:y(),height:y(),fill:c(),"aria-label":n(),"aria-describedby":D(f)?s:void 0,viewBox:"0 0 512 512"})),x(d,l),P()}var ee=B('<div class="item bg-color-3 color-bg svelte-1wdzwm7"><div class="item-icon svelte-1wdzwm7"><!> <!> <!></div> <div class="item-message size-small-2 svelte-1wdzwm7"><!></div></div>');function ae(d,t){H(t,!0);const r=q(t,"type",3,"info"),y=q(t,"time",3,2500);let g=G(0);Y(()=>()=>clearTimeout(D(g)));function c(){J(g,rt(window.setTimeout(()=>{t.onEnd(t.id)},y())))}var n=ee(),o=_(n),s=_(o);{var f=i=>{Jt(i,{})};I(s,i=>{r()==="track"&&i(f)})}var l=b(s,2);{var v=i=>{Qt(i,{})};I(l,i=>{r()==="info"&&i(v)})}var w=b(l,2);{var A=i=>{te(i,{})};I(w,i=>{r()==="error"&&i(A)})}u(o);var z=b(o,2),C=_(z);jt(C,()=>t.message),u(z),u(n),ct("introend",n,c),it(1,n,()=>Ht,()=>({y:-50})),it(2,n,()=>Pt),x(d,n),P()}var ie=B("<div><!></div>"),re=B('<div class="manager svelte-1r90u8r"></div>');function se(d,t){H(t,!1);const[r,y]=Q(),g=()=>j(N,"$toastItems",r);nt();var c=re();qt(c,13,g,n=>n.id,(n,o)=>{var s=ie(),f=_(s);ae(f,At({get onEnd(){return N.removeItem}},()=>D(o))),u(s),Rt(s,()=>Wt,null),x(n,s)}),u(c),x(d,c),P(),y()}var ne=B('<meta name="description" content="A frontend for social spotify-ing"> <meta property="og:title" content="Spotify Party"> <meta property="og:description" content="A frontend for social spotify-ing"> <meta property="og:type" content="website"> <meta property="og:url"> <meta property="og:image"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:title" content="Spotify Party"> <meta property="twitter:url"> <meta name="twitter:description" content="A frontend for social spotify-ing"> <meta name="twitter:image"> <meta name="theme-color" content="#0000000"> <link rel="icon" href="/favicon.ico"> <link rel="manifest" href="/manifest.json">',1),oe=B("<!> <!>",1);function ue(d,t){H(t,!0);const[r,y]=Q(),g=()=>j(Lt,"$api",r),c=()=>j(Zt,"$socket",r),n=()=>j(V,"$authenticated",r),o=()=>j(st,"$address",r);let s=G(!0),f=G(0);async function l(){clearTimeout(D(f));try{const{authenticated:i=!1}=await g().health();V.set(i)}catch{V.set(!1),J(f,rt(window.setTimeout(()=>{l()},5e3)))}}async function v(){try{await g().reauthenticate(),l()}catch{console.log("Something weird went wrong")}}Y(()=>{var i,h;(i=c())==null||i.on("message",a=>{N.addItem(a),a.message.includes("spotify/reauthenticate")&&n()&&v()}),(h=c())==null||h.on("reload",a=>{window.location.reload()})}),Y(()=>{kt.set(t.data.config),St.set(t.data.live),It.set(!0),l(),J(s,!1)});var w=vt();mt(i=>{var h=ne();zt.title="Spotify Party";var a=b(F(h),8),e=b(a,2),m=b(e,6),R=b(m,4);E(6),S((L,M,O,W)=>{k(a,"content",L),k(e,"content",M),k(m,"content",O),k(R,"content",W)},[()=>o().get("/"),()=>o().get("/social.jpg"),()=>o().get("/"),()=>o().get("/social.jpg")]),x(i,h)});var A=F(w);{var z=i=>{Mt(i,{floating:!0})},C=(i,h)=>{{var a=m=>{Bt(m,{})},e=m=>{var R=oe(),L=F(R);se(L,{});var M=b(L,2);Ct(M,()=>t.children),x(m,R)};I(i,m=>{n()?m(e,!1):m(a)},h)}};I(A,i=>{D(s)?i(z):i(C,!1)})}x(d,w),P(),y()}export{ue as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as g,a as h,s}from"../chunks/qSIFE6bv.js";import{i as v}from"../chunks/C7I4vMbc.js";import{v as l,w as d,x,y as _,z as o,A as p,B as $}from"../chunks/CDVeMiAl.js";import{s as k,p as i}from"../chunks/D8ITvQqD.js";const b={get error(){return i.error},get status(){return i.status}};k.updated.check;const m=b;var w=g("<h1> </h1> <p> </p>",1);function E(n,c){l(c,!1),v();var r=w(),t=d(r),f=o(t,!0);p(t);var e=$(t,2),u=o(e,!0);p(e),x(()=>{var a;s(f,m.status),s(u,(a=m.error)==null?void 0:a.message)}),h(n,r),_()}export{E as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as I,a as o,s as q,e as ct,t as F,c as Tt,f as Bt}from"../chunks/qSIFE6bv.js";import{v as J,aE as Y,z as c,B,aF as O,A as s,x as w,o as r,s as E,y as U,u as Mt,I as S,J as X,w as gt,n as lt}from"../chunks/CDVeMiAl.js";import{b as m,i as A,r as p,s as ft,a as st,c as ht,p as at}from"../chunks/CvUX3i4L.js";import{d as $,e as j,f as mt,s as nt,h as Zt,i as St,c as It,L as qt,t as Ft}from"../chunks/D5aAvvqP.js";import{b as Ht}from"../chunks/DnG2xkSB.js";import{s as kt}from"../chunks/EvVuwjft.js";import{I as Rt,P as jt}from"../chunks/BQ2eCqC3.js";var Et=I("<title> </title>"),Jt=I("<desc> </desc>"),Ut=I('<svg><!><!><path d="M321.94,98,158.82,237.78a24,24,0,0,0,0,36.44L321.94,414c15.57,13.34,39.62,2.28,39.62-18.22V116.18C361.56,95.68,337.51,84.62,321.94,98Z"></path></svg>');function Gt(y,t){var x,L;J(t,!0);const l=Y("iconCtx")??{};let n=m(t,"size",19,()=>l.size||"24"),u=m(t,"role",19,()=>l.role||"img"),C=m(t,"color",19,()=>l.color||"currentColor"),_=m(t,"ariaLabel",3,"caret back"),d=p(t,["$$slots","$$events","$$legacy","size","role","color","title","desc","ariaLabel"]),v=`${((x=t.title)==null?void 0:x.id)||""} ${((L=t.desc)==null?void 0:L.id)||""}`;const b=E(()=>{var a,e;return!!((a=t.title)!=null&&a.id||(e=t.desc)!=null&&e.id)});var i=Ut();let f;var h=c(i);{var Z=a=>{var e=Et(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.title.id),q(k,t.title.title)}),o(a,e)};A(h,a=>{var e;(e=t.title)!=null&&e.id&&t.title.title&&a(Z)})}var P=B(h);{var V=a=>{var e=Jt(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.desc.id),q(k,t.desc.desc)}),o(a,e)};A(P,a=>{var e;(e=t.desc)!=null&&e.id&&t.desc.desc&&a(V)})}O(),s(i),w(()=>f=$(i,f,{xmlns:"http://www.w3.org/2000/svg",...d,role:u(),width:n(),height:n(),fill:C(),"aria-label":_(),"aria-describedby":r(b)?v:void 0,viewBox:"0 0 512 512"})),o(y,i),U()}var Kt=I("<title> </title>"),Nt=I("<desc> </desc>"),Ot=I('<svg><!><!><path d="M208,432H160a16,16,0,0,1-16-16V96a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16V416A16,16,0,0,1,208,432Z"></path><path d="M352,432H304a16,16,0,0,1-16-16V96a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16V416A16,16,0,0,1,352,432Z"></path></svg>');function Qt(y,t){var x,L;J(t,!0);const l=Y("iconCtx")??{};let n=m(t,"size",19,()=>l.size||"24"),u=m(t,"role",19,()=>l.role||"img"),C=m(t,"color",19,()=>l.color||"currentColor"),_=m(t,"ariaLabel",3,"pause"),d=p(t,["$$slots","$$events","$$legacy","size","role","color","title","desc","ariaLabel"]),v=`${((x=t.title)==null?void 0:x.id)||""} ${((L=t.desc)==null?void 0:L.id)||""}`;const b=E(()=>{var a,e;return!!((a=t.title)!=null&&a.id||(e=t.desc)!=null&&e.id)});var i=Ot();let f;var h=c(i);{var Z=a=>{var e=Kt(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.title.id),q(k,t.title.title)}),o(a,e)};A(h,a=>{var e;(e=t.title)!=null&&e.id&&t.title.title&&a(Z)})}var P=B(h);{var V=a=>{var e=Nt(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.desc.id),q(k,t.desc.desc)}),o(a,e)};A(P,a=>{var e;(e=t.desc)!=null&&e.id&&t.desc.desc&&a(V)})}O(2),s(i),w(()=>f=$(i,f,{xmlns:"http://www.w3.org/2000/svg",...d,role:u(),width:n(),height:n(),fill:C(),"aria-label":_(),"aria-describedby":r(b)?v:void 0,viewBox:"0 0 512 512"})),o(y,i),U()}var Wt=I("<title> </title>"),Xt=I("<desc> </desc>"),Yt=I('<svg><!><!><path d="M133,440a35.37,35.37,0,0,1-17.5-4.67c-12-6.8-19.46-20-19.46-34.33V111c0-14.37,7.46-27.53,19.46-34.33a35.13,35.13,0,0,1,35.77.45L399.12,225.48a36,36,0,0,1,0,61L151.23,434.88A35.5,35.5,0,0,1,133,440Z"></path></svg>');function pt(y,t){var x,L;J(t,!0);const l=Y("iconCtx")??{};let n=m(t,"size",19,()=>l.size||"24"),u=m(t,"role",19,()=>l.role||"img"),C=m(t,"color",19,()=>l.color||"currentColor"),_=m(t,"ariaLabel",3,"play"),d=p(t,["$$slots","$$events","$$legacy","size","role","color","title","desc","ariaLabel"]),v=`${((x=t.title)==null?void 0:x.id)||""} ${((L=t.desc)==null?void 0:L.id)||""}`;const b=E(()=>{var a,e;return!!((a=t.title)!=null&&a.id||(e=t.desc)!=null&&e.id)});var i=Yt();let f;var h=c(i);{var Z=a=>{var e=Wt(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.title.id),q(k,t.title.title)}),o(a,e)};A(h,a=>{var e;(e=t.title)!=null&&e.id&&t.title.title&&a(Z)})}var P=B(h);{var V=a=>{var e=Xt(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.desc.id),q(k,t.desc.desc)}),o(a,e)};A(P,a=>{var e;(e=t.desc)!=null&&e.id&&t.desc.desc&&a(V)})}O(),s(i),w(()=>f=$(i,f,{xmlns:"http://www.w3.org/2000/svg",...d,role:u(),width:n(),height:n(),fill:C(),"aria-label":_(),"aria-describedby":r(b)?v:void 0,viewBox:"0 0 512 512"})),o(y,i),U()}var $t=I("<title> </title>"),te=I("<desc> </desc>"),ee=I('<svg><!><!><path d="M112,64a16,16,0,0,1,16,16V216.43L360.77,77.11a35.13,35.13,0,0,1,35.77-.44c12,6.8,19.46,20,19.46,34.33V401c0,14.37-7.46,27.53-19.46,34.33a35.14,35.14,0,0,1-35.77-.45L128,295.57V432a16,16,0,0,1-32,0V80A16,16,0,0,1,112,64Z"></path></svg>');function ae(y,t){var x,L;J(t,!0);const l=Y("iconCtx")??{};let n=m(t,"size",19,()=>l.size||"24"),u=m(t,"role",19,()=>l.role||"img"),C=m(t,"color",19,()=>l.color||"currentColor"),_=m(t,"ariaLabel",3,"play skip back"),d=p(t,["$$slots","$$events","$$legacy","size","role","color","title","desc","ariaLabel"]),v=`${((x=t.title)==null?void 0:x.id)||""} ${((L=t.desc)==null?void 0:L.id)||""}`;const b=E(()=>{var a,e;return!!((a=t.title)!=null&&a.id||(e=t.desc)!=null&&e.id)});var i=ee();let f;var h=c(i);{var Z=a=>{var e=$t(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.title.id),q(k,t.title.title)}),o(a,e)};A(h,a=>{var e;(e=t.title)!=null&&e.id&&t.title.title&&a(Z)})}var P=B(h);{var V=a=>{var e=te(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.desc.id),q(k,t.desc.desc)}),o(a,e)};A(P,a=>{var e;(e=t.desc)!=null&&e.id&&t.desc.desc&&a(V)})}O(),s(i),w(()=>f=$(i,f,{xmlns:"http://www.w3.org/2000/svg",...d,role:u(),width:n(),height:n(),fill:C(),"aria-label":_(),"aria-describedby":r(b)?v:void 0,viewBox:"0 0 512 512"})),o(y,i),U()}var ie=I("<title> </title>"),le=I("<desc> </desc>"),re=I('<svg><!><!><path d="M400,64a16,16,0,0,0-16,16V216.43L151.23,77.11a35.13,35.13,0,0,0-35.77-.44C103.46,83.47,96,96.63,96,111V401c0,14.37,7.46,27.53,19.46,34.33a35.14,35.14,0,0,0,35.77-.45L384,295.57V432a16,16,0,0,0,32,0V80A16,16,0,0,0,400,64Z"></path></svg>');function se(y,t){var x,L;J(t,!0);const l=Y("iconCtx")??{};let n=m(t,"size",19,()=>l.size||"24"),u=m(t,"role",19,()=>l.role||"img"),C=m(t,"color",19,()=>l.color||"currentColor"),_=m(t,"ariaLabel",3,"play skip forward"),d=p(t,["$$slots","$$events","$$legacy","size","role","color","title","desc","ariaLabel"]),v=`${((x=t.title)==null?void 0:x.id)||""} ${((L=t.desc)==null?void 0:L.id)||""}`;const b=E(()=>{var a,e;return!!((a=t.title)!=null&&a.id||(e=t.desc)!=null&&e.id)});var i=re();let f;var h=c(i);{var Z=a=>{var e=ie(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.title.id),q(k,t.title.title)}),o(a,e)};A(h,a=>{var e;(e=t.title)!=null&&e.id&&t.title.title&&a(Z)})}var P=B(h);{var V=a=>{var e=le(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.desc.id),q(k,t.desc.desc)}),o(a,e)};A(P,a=>{var e;(e=t.desc)!=null&&e.id&&t.desc.desc&&a(V)})}O(),s(i),w(()=>f=$(i,f,{xmlns:"http://www.w3.org/2000/svg",...d,role:u(),width:n(),height:n(),fill:C(),"aria-label":_(),"aria-describedby":r(b)?v:void 0,viewBox:"0 0 512 512"})),o(y,i),U()}var ce=I("<title> </title>"),ne=I("<desc> </desc>"),oe=I('<svg><!><!><path d="M208,512a24.84,24.84,0,0,1-23.34-16l-39.84-103.6a16.06,16.06,0,0,0-9.19-9.19L32,343.34a25,25,0,0,1,0-46.68l103.6-39.84a16.06,16.06,0,0,0,9.19-9.19L184.66,144a25,25,0,0,1,46.68,0l39.84,103.6a16.06,16.06,0,0,0,9.19,9.19l103,39.63A25.49,25.49,0,0,1,400,320.52a24.82,24.82,0,0,1-16,22.82l-103.6,39.84a16.06,16.06,0,0,0-9.19,9.19L231.34,496A24.84,24.84,0,0,1,208,512Zm66.85-254.84h0Z"></path><path d="M88,176a14.67,14.67,0,0,1-13.69-9.4L57.45,122.76a7.28,7.28,0,0,0-4.21-4.21L9.4,101.69a14.67,14.67,0,0,1,0-27.38L53.24,57.45a7.31,7.31,0,0,0,4.21-4.21L74.16,9.79A15,15,0,0,1,86.23.11,14.67,14.67,0,0,1,101.69,9.4l16.86,43.84a7.31,7.31,0,0,0,4.21,4.21L166.6,74.31a14.67,14.67,0,0,1,0,27.38l-43.84,16.86a7.28,7.28,0,0,0-4.21,4.21L101.69,166.6A14.67,14.67,0,0,1,88,176Z"></path><path d="M400,256a16,16,0,0,1-14.93-10.26l-22.84-59.37a8,8,0,0,0-4.6-4.6l-59.37-22.84a16,16,0,0,1,0-29.86l59.37-22.84a8,8,0,0,0,4.6-4.6L384.9,42.68a16.45,16.45,0,0,1,13.17-10.57,16,16,0,0,1,16.86,10.15l22.84,59.37a8,8,0,0,0,4.6,4.6l59.37,22.84a16,16,0,0,1,0,29.86l-59.37,22.84a8,8,0,0,0-4.6,4.6l-22.84,59.37A16,16,0,0,1,400,256Z"></path></svg>');function de(y,t){var x,L;J(t,!0);const l=Y("iconCtx")??{};let n=m(t,"size",19,()=>l.size||"24"),u=m(t,"role",19,()=>l.role||"img"),C=m(t,"color",19,()=>l.color||"currentColor"),_=m(t,"ariaLabel",3,"sparkles"),d=p(t,["$$slots","$$events","$$legacy","size","role","color","title","desc","ariaLabel"]),v=`${((x=t.title)==null?void 0:x.id)||""} ${((L=t.desc)==null?void 0:L.id)||""}`;const b=E(()=>{var a,e;return!!((a=t.title)!=null&&a.id||(e=t.desc)!=null&&e.id)});var i=oe();let f;var h=c(i);{var Z=a=>{var e=ce(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.title.id),q(k,t.title.title)}),o(a,e)};A(h,a=>{var e;(e=t.title)!=null&&e.id&&t.title.title&&a(Z)})}var P=B(h);{var V=a=>{var e=ne(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.desc.id),q(k,t.desc.desc)}),o(a,e)};A(P,a=>{var e;(e=t.desc)!=null&&e.id&&t.desc.desc&&a(V)})}O(3),s(i),w(()=>f=$(i,f,{xmlns:"http://www.w3.org/2000/svg",...d,role:u(),width:n(),height:n(),fill:C(),"aria-label":_(),"aria-describedby":r(b)?v:void 0,viewBox:"0 0 512 512"})),o(y,i),U()}async function ve(y,t,l){await t().skipBackward(),l()()}async function ue(y,t,l,n){S(t,!0),await l().play(),n()()}async function _e(y,t,l,n){S(t,!1),await l().pause(),n()()}async function be(y,t,l){await t().skipForward(),l()()}var ge=F('<button class="btn-reset"><!></button>'),fe=F('<button class="btn-reset"><!></button>'),he=F('<div class="controls-actions"><button class="btn-reset"><!></button> <!> <button class="btn-reset"><!></button></div>'),me=F('<div class="controls color-1 svelte-qlb6de"><div class="controls-top ellipsis svelte-qlb6de"> </div> <!></div>');function ke(y,t){J(t,!0);const[l,n]=ft(),u=()=>st(mt,"$api",l),C=m(t,"playing",3,!1),_=m(t,"onTrigger",3,()=>{}),d=m(t,"canControl",3,!0);let v=X(null),b=E(()=>r(v)??C());Mt(()=>{typeof C()=="boolean"&&S(v,null)});var i=me(),f=c(i),h=c(f,!0);s(f);var Z=B(f,2);{var P=V=>{var x=he(),L=c(x);L.__click=[ve,u,_];var a=c(L);ae(a,{}),s(L);var e=B(L,2);{var k=G=>{var K=ge();K.__click=[_e,v,u,_];var g=c(K);Qt(g,{}),s(K),o(G,K)},et=(G,K)=>{{var g=T=>{var D=fe();D.__click=[ue,v,u,_];var H=c(D);pt(H,{}),s(D),o(T,D)};A(G,T=>{r(b)===!1&&T(g)},K)}};A(e,G=>{r(b)===!0?G(k):G(et,!1)})}var tt=B(e,2);tt.__click=[be,u,_];var it=c(tt);se(it,{}),s(tt),s(x),o(V,x)};A(Z,V=>{d()&&V(P)})}s(i),w(()=>q(h,t.title)),o(y,i),U(),n()}ct(["click"]);var xe=F('<div class="item-action svelte-tze98h"><!></div>'),ye=F('<div><div class="item-image svelte-tze98h"><!></div> <div class="item-content svelte-tze98h"><span class="item-content-title ellipsis svelte-tze98h"> </span> <span class="item-content-subtitle ellipsis color-2 svelte-tze98h"> </span></div> <!></div>');function xt(y,t){J(t,!0);const l=m(t,"action",3,null);var n=ye();let u;var C=c(n),_=c(C);Rt(_,{get full(){return t.image.full.url},get low(){return t.image.low.url}}),s(C);var d=B(C,2),v=c(d),b=c(v,!0);s(v);var i=B(v,2),f=c(i,!0);s(i),s(d);var h=B(d,2);{var Z=P=>{var V=xe(),x=c(V);kt(x,l),s(V),o(P,V)};A(h,P=>{l()&&P(Z)})}s(n),w(P=>{u=nt(n,1,"item svelte-tze98h",null,u,P),j(n,"data-id",t.id),q(b,t.title),q(f,t.subtitle)},[()=>({withAction:!!l()})]),o(y,n),U()}var we=F('<div class="results-list-items svelte-n7b7z4"></div>'),Le=F('<div class="results-list svelte-n7b7z4"><button> </button> <!></div>');function rt(y,t){const l=m(t,"expanded",3,!1);var n=Le(),u=c(n);u.__click=function(...b){var i;(i=t.onActivate)==null||i.apply(this,b)};let C;var _=c(u,!0);s(u);var d=B(u,2);{var v=b=>{var i=we();Zt(i,21,()=>t.items,St,(f,h)=>{xt(f,ht(()=>r(h).normalised,{action:P=>{var V=Tt(),x=gt(V);kt(x,()=>t.action,()=>r(h).normalised),o(P,V)},$$slots:{action:!0}}))}),s(i),o(b,i)};A(d,b=>{l()&&b(v)})}s(n),w(b=>{C=nt(u,1,"btn-reset results-list-top svelte-n7b7z4",null,C,b),q(_,t.title)},[()=>({active:l()})]),o(y,n)}ct(["click"]);var ze=F('<div class="context-header svelte-40dkcl"><button class="context-header-action btn-reset svelte-40dkcl"><!></button> <div class="context-header-item svelte-40dkcl"><!></div></div>'),Ae=(y,t,l)=>t(l().uri,l().title),Ce=F('<button class="btn-reset select-track size-small-1 svelte-40dkcl">Add Track</button>'),Ve=(y,t,l)=>t(l()),De=F('<button class="btn-reset select-track size-small-1 svelte-40dkcl">View Album</button>'),Pe=(y,t,l)=>t(l()),Te=F('<button class="btn-reset select-track size-small-1 svelte-40dkcl">View Artist</button>'),Be=F('<div class="initial color-1 svelte-40dkcl">Search for a track to add</div>'),Me=F('<div class="page-content bg-color-3 svelte-40dkcl"><form class="page-content-top svelte-40dkcl"><label class="svelte-40dkcl"><input class="color-bg svelte-40dkcl" type="search" placeholder="URL, Track, Album, Artist..." name="q"></label> <button class="btn-reset svelte-40dkcl">Search</button></form> <div class="page-content-results svelte-40dkcl"><!> <!> <!> <!> <!> <!></div></div>'),Ze=F('<div class="warning svelte-40dkcl"><!> <p>Host has disabled adding for this party</p></div>'),Se=F('<!> <div><!> <!> <div class="outlink size-small-2 color-2 svelte-40dkcl"><a href="/player" class="svelte-40dkcl">View player</a></div></div>',1);function Je(y,t){J(t,!0);const[l,n]=ft(),u=()=>st(mt,"$api",l),C=()=>st(It,"$config",l);let _=X(null),d=X(!1),v=X("tracks"),b=X(null),i=X(null);async function f(g){try{S(d,!0),S(_,null);const{tracks:T,artists:D,albums:H}=await g();S(_,at({tracks:T,artists:D,albums:H}))}catch(T){console.error(T),Ft.addItem({message:"There was an error - Try refreshing",type:"error"})}finally{S(d,!1)}}let h=X(null);async function Z(g){var H;if(g.preventDefault(),!r(h))return;const D=(H=new FormData(r(h)).get("q"))==null?void 0:H.toString();D&&(S(b,null),f(()=>u().search(D)))}async function P(g,T){try{S(d,!0),await u().addTrack(g,T)}catch(D){console.error(D)}finally{S(d,!1)}}async function V(g){S(b,at(g)),f(()=>u().album(g.id)),S(v,"tracks")}async function x(g){S(b,at(g)),f(()=>u().artist(g.id)),S(v,"tracks")}var L=Se(),a=gt(L);jt(a,{get playing(){return r(i)},set playing(g){S(i,at(g))}});var e=B(a,2);let k;var et=c(e);{var tt=g=>{const T=E(()=>[r(i).track.normalised.title,r(i).track.normalised.subtitle].join(" - ")),D=E(()=>{var H;return(H=C().api)==null?void 0:H.canControl});ke(g,{get playing(){return r(i).isPlaying},get title(){return r(T)},get canControl(){return r(D)}})};A(et,g=>{r(i)&&!("noTrack"in r(i))&&g(tt)})}var it=B(et,2);{var G=g=>{var T=Me(),D=c(T),H=c(D),yt=c(H);s(H);var wt=B(H,2);s(D),Ht(D,z=>S(h,z),()=>r(h));var ot=B(D,2),dt=c(ot);{var Lt=z=>{qt(z,{floating:!0})};A(dt,z=>{r(d)&&z(Lt)})}var vt=B(dt,2);{var zt=z=>{var M=ze(),Q=c(M);Q.__click=Z;var W=c(Q);Gt(W,{size:"28"}),s(Q);var N=B(Q,2),R=c(N);xt(R,ht(()=>r(b))),s(N),s(M),o(z,M)};A(vt,z=>{r(b)&&z(zt)})}var ut=B(vt,2);{var At=z=>{const M=E(()=>r(v)==="tracks");rt(z,{title:"Tracks",onActivate:()=>S(v,"tracks"),get expanded(){return r(M)},get items(){return r(_).tracks},action:(W,N=lt)=>{var R=Ce();R.__click=[Ae,P,N],w(()=>R.disabled=r(d)),o(W,R)},$$slots:{action:!0}})};A(ut,z=>{var M;(M=r(_))!=null&&M.tracks&&z(At)})}var _t=B(ut,2);{var Ct=z=>{const M=E(()=>r(v)==="albums");rt(z,{title:"Albums",onActivate:()=>S(v,"albums"),get expanded(){return r(M)},get items(){return r(_).albums},action:(W,N=lt)=>{var R=De();R.__click=[Ve,V,N],w(()=>R.disabled=r(d)),o(W,R)},$$slots:{action:!0}})};A(_t,z=>{var M;(M=r(_))!=null&&M.albums&&z(Ct)})}var bt=B(_t,2);{var Vt=z=>{const M=E(()=>r(v)==="artists");rt(z,{title:"Artists",onActivate:()=>S(v,"artists"),get expanded(){return r(M)},get items(){return r(_).artists},action:(W,N=lt)=>{var R=Te();R.__click=[Pe,x,N],w(()=>R.disabled=r(d)),o(W,R)},$$slots:{action:!0}})};A(bt,z=>{var M;(M=r(_))!=null&&M.artists&&z(Vt)})}var Dt=B(bt,2);{var Pt=z=>{var M=Be();o(z,M)};A(Dt,z=>{r(_)||z(Pt)})}s(ot),s(T),w(()=>{yt.disabled=r(d),wt.disabled=r(d)}),Bt("submit",D,Z),o(g,T)},K=g=>{var T=Ze(),D=c(T);de(D,{}),O(2),s(T),o(g,T)};A(it,g=>{var T,D;(D=(T=C())==null?void 0:T.api)!=null&&D.canAdd?g(G):g(K,!1)})}O(2),s(e),w(g=>k=nt(e,1,"page bg-color-bg svelte-40dkcl",null,k,g),[()=>({loading:r(d)})]),o(y,L),U(),n()}ct(["click"]);export{Je as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as k,a as x,s as g}from"../chunks/qSIFE6bv.js";import{h as K,C as ue,D as fe,F as pe,G as me,d as _e,H as xe,f as ge,i as ke,U as be,v as he,u as M,w as qe,y as ye,I as P,o as e,J as O,B as i,z as t,A as r,x as ze,s as Q}from"../chunks/CDVeMiAl.js";import{i as $,s as we,p as Ie,a as R}from"../chunks/CvUX3i4L.js";import{t as Le,f as Te,a as Ae,q as Pe}from"../chunks/DiaFwogD.js";import{L as $e,s as Ee,c as Ne,a as Ce}from"../chunks/D5aAvvqP.js";import{P as De,I as Se}from"../chunks/BQ2eCqC3.js";function Ue(v,u,o){K&&ue();var f=v,b=be,p,a=fe()?pe:me;_e(()=>{a(b,b=u())&&(p&&xe(p),p=ge(()=>o(f)))}),K&&(f=ke)}const V=(v,u,o,f=!1)=>(v.addEventListener(u,o,f),()=>v.removeEventListener(u,o));var je=k('<div class="empty bg-color-3 color-1 svelte-z9xx2q">No Track playing currently</div>'),Be=k('<span class="svelte-z9xx2q"><!></span>'),Fe=k('<div class="badge bg-color-3 color-bg svelte-z9xx2q"><span class="headline-3">Add</span> <span class="badge-qr svelte-z9xx2q"></span></div>'),Ge=k('<div><div class="top svelte-z9xx2q"><div class="context color-1 svelte-z9xx2q"><span> </span> <span class="size-small-2"> </span></div></div> <div class="middle svelte-z9xx2q"><div class="middle-image svelte-z9xx2q"><!></div></div> <div class="bottom svelte-z9xx2q"><div class="left color-1 svelte-z9xx2q"><h1 class="title ellipsis svelte-z9xx2q"> </h1> <span class="headline-3"> </span></div> <div class="right svelte-z9xx2q"><!> <span class="size-small-1 color-3"> </span></div></div></div>'),He=k("<!> <!>",1);function Re(v,u){he(u,!0);const[o,f]=we(),b=()=>R(Ne,"$config",o),p=()=>R(Ce,"$address",o);let a=O(null),W=Q(()=>!e(a)||"noTrack"in e(a)?"":"normalised"in e(a).context?e(a).context.normalised.title:"album"in e(a).track?e(a).track.album:"show"in e(a).track?e(a).track.show:""),X=Q(()=>{var s,n,q,y;if(!e(a)||"noTrack"in e(a))return"";if(!e(a).isPlaying)return"Paused";switch((s=e(a).context)==null?void 0:s.type){case"album":return[e(a).track.number,e(a).context.total].join(" – ");default:return((y=(q=(n=e(a))==null?void 0:n.context)==null?void 0:q.normalised)==null?void 0:y.subtitle)??""}}),c=null;async function E(){let s=null;try{return c==null||c(),c=null,s=await navigator.wakeLock.request("screen"),console.log("Screen locked"),()=>{}}catch(n){if(n.code===0&&!c)return c=V(window,"focus",E),c;console.log(n)}}let h=O(!0);function Y(){let s=0;const n=V(document,"mousemove",()=>{clearTimeout(s),P(h,!1),s=window.setTimeout(()=>{P(h,!0)},2e3)});return()=>{n(),clearTimeout(s)}}M(()=>{document.documentElement.classList.toggle("idle",e(h))}),M(()=>{E(),Y()});var N=He(),C=qe(N);De(C,{get playing(){return e(a)},set playing(s){P(a,Ie(s))}});var ee=i(C,2);{var ae=s=>{$e(s,{floating:!0})},se=(s,n)=>{{var q=m=>{var _=je();x(m,_)},y=m=>{var _=Ge();let D;var z=t(_),S=t(z),w=t(S),te=t(w,!0);r(w);var U=i(w,2),re=t(U,!0);r(U),r(S),r(z);var I=i(z,2),j=t(I),le=t(j);Ue(le,()=>e(a).track.normalised.image.full.url,d=>{var l=Be(),A=t(l);Se(A,{get full(){return e(a).track.normalised.image.full.url},get low(){return e(a).track.normalised.image.low.url}}),r(l),Le(3,l,()=>Te),x(d,l)}),r(j),r(I);var B=i(I,2),L=t(B),T=t(L),ne=t(T,!0);r(T);var F=i(T,2),ie=t(F,!0);r(F),r(L);var G=i(L,2),H=t(G);{var oe=d=>{var l=Fe(),A=i(t(l),2);Ae(A,(de,ve)=>{var Z;return(Z=Pe)==null?void 0:Z(de,ve)},()=>({url:p().get("/")})),r(l),x(d,l)};$(H,d=>{var l;(l=b().api)!=null&&l.canAdd&&d(oe)})}var J=i(H,2),ce=t(J,!0);r(J),r(G),r(B),r(_),ze(d=>{D=Ee(_,1,"page bg-color-bg svelte-z9xx2q",null,D,d),g(te,e(W)),g(re,e(X)),g(ne,e(a).track.normalised.title),g(ie,e(a).track.normalised.subtitle),g(ce,p().naked)},[()=>({idle:e(h)})]),x(m,_)};$(s,m=>{"noTrack"in e(a)?m(q):m(y,!1)},n)}};$(ee,s=>{e(a)?s(se,!1):s(ae)})}x(v,N),ye(),f()}export{Re as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"0-DghaxOyi.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.server.js","../../../.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["import deepmerge from \"deepmerge\";\nimport dotenv from \"dotenv\";\nimport os from \"node:os\";\nconst DEFAULT_OPTIONS = {\n port: 3e3,\n origin: \"\",\n protocol: \"http://\",\n verbose: false,\n playerRoute: \"/player\",\n api: {\n market: \"GB\",\n searchQueryLimit: 10,\n centralisedPolling: true,\n centralisedPollingTimer: 5e3,\n canAdd: true,\n canControl: true\n },\n spotify: {\n client_id: \"\",\n client_secret: \"\",\n routePrefix: \"/spotify\",\n routeToken: \"/token\",\n authenticatedRedirect: \"/\",\n accessTokenJsonLocation: \"$HOME/.ambient/spotify_auth.json\",\n scope: []\n },\n plugins: [],\n pluginOptions: {},\n suppressErrors: []\n};\nconst getIp = () => {\n const [item] = Object.values(os.networkInterfaces()).flat().filter((item2) => item2 && item2.family === \"IPv4\" && !item2.internal);\n return item?.address;\n};\nconst expandAliases = (filePath) => {\n if (filePath.startsWith(\"~\")) {\n return os.homedir() + filePath.slice(0);\n }\n if (filePath.startsWith(\"$HOME\")) {\n return os.homedir() + filePath.slice(\"$HOME\".length);\n }\n return filePath;\n};\ndotenv.config();\nconst INJECTED_OPTIONS = {\n verbose: \"VERBOSE\" in process.env && process.env.VERBOSE?.toLowerCase() !== \"false\",\n origin: process.env.ORIGIN ?? getIp(),\n protocol: process.env.PROTOCOL ?? \"http://\",\n port: process.env.PORT ?? 3e3,\n spotify: {\n client_id: process.env.SPOTIFY_CLIENT_ID,\n client_secret: process.env.SPOTIFY_CLIENT_SECRET\n }\n};\nif (process.env.CONFIG) {\n console.log(`Loading config from ${expandAliases(process.env.CONFIG)}`);\n}\nconst USER_OPTIONS = await import(expandAliases(process.env.CONFIG ?? \"../ambient.config.js\")).then((module) => module.default).catch((e) => {\n if (process.env.CONFIG) {\n console.error(\"Config load error\");\n console.error(e);\n }\n return {};\n});\nif (INJECTED_OPTIONS.verbose ?? USER_OPTIONS.verbose) {\n console.log(`config`);\n console.log(USER_OPTIONS);\n}\nconst OPTIONS = deepmerge(DEFAULT_OPTIONS, deepmerge(INJECTED_OPTIONS, USER_OPTIONS));\nconst testServer = async (fetch) => {\n try {\n const { success } = await fetch({ path: \"/api/health\", protocol: \"http\" }).then(\n (resp) => resp.json()\n );\n return success;\n } catch {\n return false;\n }\n};\nasync function load({ fetch }) {\n const server = await testServer(fetch);\n const { plugins, ...config } = OPTIONS;\n return {\n live: !!server,\n config\n };\n}\nexport {\n load\n};\n","import * as server from '../entries/pages/_layout.server.js';\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/+layout.server.js\";\nexport const imports = [\"_app/immutable/nodes/0.BWH--JS_.js\",\"_app/immutable/chunks/qSIFE6bv.js\",\"_app/immutable/chunks/CDVeMiAl.js\",\"_app/immutable/chunks/CvUX3i4L.js\",\"_app/immutable/chunks/EvVuwjft.js\",\"_app/immutable/chunks/D5aAvvqP.js\",\"_app/immutable/chunks/C7I4vMbc.js\",\"_app/immutable/chunks/DiaFwogD.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.Dl9__I4E.css\",\"_app/immutable/assets/LoadingIndicator.D0m6rSKQ.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;AAGA,MAAM,eAAe,GAAG;AACxB,EAAE,IAAI,EAAE,GAAG;AACX,EAAE,MAAM,EAAE,EAAE;AACZ,EAAE,QAAQ,EAAE,SAAS;AACrB,EAAE,OAAO,EAAE,KAAK;AAChB,EAAE,WAAW,EAAE,SAAS;AACxB,EAAE,GAAG,EAAE;AACP,IAAI,MAAM,EAAE,IAAI;AAChB,IAAI,gBAAgB,EAAE,EAAE;AACxB,IAAI,kBAAkB,EAAE,IAAI;AAC5B,IAAI,uBAAuB,EAAE,GAAG;AAChC,IAAI,MAAM,EAAE,IAAI;AAChB,IAAI,UAAU,EAAE;AAChB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,SAAS,EAAE,EAAE;AACjB,IAAI,aAAa,EAAE,EAAE;AACrB,IAAI,WAAW,EAAE,UAAU;AAC3B,IAAI,UAAU,EAAE,QAAQ;AACxB,IAAI,qBAAqB,EAAE,GAAG;AAC9B,IAAI,uBAAuB,EAAE,kCAAkC;AAC/D,IAAI,KAAK,EAAE;AACX,GAAG;AACH,EAAE,OAAO,EAAE,EAAE;AACb,EAAE,aAAa,EAAE,EAAE;AACnB,EAAE,cAAc,EAAE;AAClB,CAAC;AACD,MAAM,KAAK,GAAG,MAAM;AACpB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,iBAAiB,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC,KAAK,KAAK,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;AACpI,EAAE,OAAO,IAAI,EAAE,OAAO;AACtB,CAAC;AACD,MAAM,aAAa,GAAG,CAAC,QAAQ,KAAK;AACpC,EAAE,IAAI,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;AAChC,IAAI,OAAO,EAAE,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;AAC3C;AACA,EAAE,IAAI,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;AACpC,IAAI,OAAO,EAAE,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;AACxD;AACA,EAAE,OAAO,QAAQ;AACjB,CAAC;AACD,MAAM,CAAC,MAAM,EAAE;AACf,MAAM,gBAAgB,GAAG;AACzB,EAAE,OAAO,EAAE,SAAS,IAAI,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,OAAO;AACrF,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,MAAM,IAAI,KAAK,EAAE;AACvC,EAAE,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,SAAS;AAC7C,EAAE,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG;AAC/B,EAAE,OAAO,EAAE;AACX,IAAI,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB;AAC5C,IAAI,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC;AAC/B;AACA,CAAC;AACD,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE;AACxB,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,oBAAoB,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACzE;AACA,MAAM,YAAY,GAAG,MAAM,OAAO,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,IAAI,sBAAsB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK;AAC7I,EAAE,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE;AAC1B,IAAI,OAAO,CAAC,KAAK,CAAC,mBAAmB,CAAC;AACtC,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;AACpB;AACA,EAAE,OAAO,EAAE;AACX,CAAC,CAAC;AACF,IAAI,gBAAgB,CAAC,OAAO,IAAI,YAAY,CAAC,OAAO,EAAE;AACtD,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC;AACvB,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC;AAC3B;AACA,MAAM,OAAO,GAAG,SAAS,CAAC,eAAe,EAAE,SAAS,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;AACrF,MAAM,UAAU,GAAG,OAAO,KAAK,KAAK;AACpC,EAAE,IAAI;AACN,IAAI,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,KAAK,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI;AACnF,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI;AACzB,KAAK;AACL,IAAI,OAAO,OAAO;AAClB,GAAG,CAAC,MAAM;AACV,IAAI,OAAO,KAAK;AAChB;AACA,CAAC;AACD,eAAe,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE;AAC/B,EAAE,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,KAAK,CAAC;AACxC,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,EAAE,GAAG,OAAO;AACxC,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM;AAClB,IAAI;AACJ,GAAG;AACH;;;;;;;ACpFY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8BAAoC,CAAC,EAAE;AAElG,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5S,MAAC,WAAW,GAAG,CAAC,sCAAsC,CAAC,qDAAqD;AAC5G,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const index = 1;
|
|
2
|
-
let component_cache;
|
|
3
|
-
const component = async () => component_cache ??= (await import('./error.svelte-DGl1DMvJ.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/1.D_c4RSZq.js","_app/immutable/chunks/qSIFE6bv.js","_app/immutable/chunks/CDVeMiAl.js","_app/immutable/chunks/C7I4vMbc.js","_app/immutable/chunks/D8ITvQqD.js","_app/immutable/chunks/ynvIH2CR.js"];
|
|
5
|
-
const stylesheets = [];
|
|
6
|
-
const fonts = [];
|
|
7
|
-
|
|
8
|
-
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=1-BJvQLIan.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1-BJvQLIan.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.D_c4RSZq.js\",\"_app/immutable/chunks/qSIFE6bv.js\",\"_app/immutable/chunks/CDVeMiAl.js\",\"_app/immutable/chunks/C7I4vMbc.js\",\"_app/immutable/chunks/D8ITvQqD.js\",\"_app/immutable/chunks/ynvIH2CR.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE;AACpG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACpO,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const index = 2;
|
|
2
|
-
let component_cache;
|
|
3
|
-
const component = async () => component_cache ??= (await import('./_page.svelte-CYugZxLe.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/2.DxFkPkVM.js","_app/immutable/chunks/qSIFE6bv.js","_app/immutable/chunks/CDVeMiAl.js","_app/immutable/chunks/CvUX3i4L.js","_app/immutable/chunks/D5aAvvqP.js","_app/immutable/chunks/DnG2xkSB.js","_app/immutable/chunks/EvVuwjft.js","_app/immutable/chunks/BQ2eCqC3.js"];
|
|
5
|
-
const stylesheets = ["_app/immutable/assets/2.BtzFOBtk.css","_app/immutable/assets/LoadingIndicator.D0m6rSKQ.css","_app/immutable/assets/PlayingTracker.BPTtFzSw.css"];
|
|
6
|
-
const fonts = [];
|
|
7
|
-
|
|
8
|
-
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=2-cxDj5MEl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"2-cxDj5MEl.js","sources":["../../../.svelte-kit/adapter-node/nodes/2.js"],"sourcesContent":["\n\nexport const index = 2;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/2.DxFkPkVM.js\",\"_app/immutable/chunks/qSIFE6bv.js\",\"_app/immutable/chunks/CDVeMiAl.js\",\"_app/immutable/chunks/CvUX3i4L.js\",\"_app/immutable/chunks/D5aAvvqP.js\",\"_app/immutable/chunks/DnG2xkSB.js\",\"_app/immutable/chunks/EvVuwjft.js\",\"_app/immutable/chunks/BQ2eCqC3.js\"];\nexport const stylesheets = [\"_app/immutable/assets/2.BtzFOBtk.css\",\"_app/immutable/assets/LoadingIndicator.D0m6rSKQ.css\",\"_app/immutable/assets/PlayingTracker.BPTtFzSw.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAkC,CAAC,EAAE;AAChG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5S,MAAC,WAAW,GAAG,CAAC,sCAAsC,CAAC,qDAAqD,CAAC,mDAAmD;AAChK,MAAC,KAAK,GAAG;;;;"}
|