studiograph 1.3.23 → 1.3.25

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.
Files changed (90) hide show
  1. package/dist/cli/commands/deploy.js +16 -10
  2. package/dist/cli/commands/deploy.js.map +1 -1
  3. package/dist/cli/setup-wizard.d.ts +76 -0
  4. package/dist/cli/setup-wizard.js +1 -1
  5. package/dist/cli/setup-wizard.js.map +1 -1
  6. package/dist/core/user-config.d.ts +3 -3
  7. package/dist/core/user-config.js +7 -8
  8. package/dist/core/user-config.js.map +1 -1
  9. package/dist/web/_app/immutable/assets/2.CTYRPjeo.css +1 -0
  10. package/dist/web/_app/immutable/assets/3.CHSDCrUY.css +1 -0
  11. package/dist/web/_app/immutable/assets/{3.Bxy1xbfc.css → 4.BG3bIPWj.css} +1 -1
  12. package/dist/web/_app/immutable/assets/{4.aFSdMTV2.css → 5.DFeGxLYf.css} +1 -1
  13. package/dist/web/_app/immutable/assets/dialog-close.FS8bdfxr.css +1 -0
  14. package/dist/web/_app/immutable/chunks/{B9qu8IU_.js → 4GXyim5f.js} +1 -1
  15. package/dist/web/_app/immutable/chunks/9v38mVqb.js +1 -0
  16. package/dist/web/_app/immutable/chunks/AnfEg8V4.js +1 -0
  17. package/dist/web/_app/immutable/chunks/B97Kx4RB.js +1 -0
  18. package/dist/web/_app/immutable/chunks/{2BuoqS97.js → BB_5th5W.js} +2 -2
  19. package/dist/web/_app/immutable/chunks/{CbWA7IDo.js → BLp0X8Gk.js} +1 -1
  20. package/dist/web/_app/immutable/chunks/BNVCPAnF.js +1 -0
  21. package/dist/web/_app/immutable/chunks/BSywCyUT.js +1 -0
  22. package/dist/web/_app/immutable/chunks/BfdyRejn.js +4 -0
  23. package/dist/web/_app/immutable/chunks/Bjfzvir2.js +5 -0
  24. package/dist/web/_app/immutable/chunks/C3jqHcRB.js +1 -0
  25. package/dist/web/_app/immutable/chunks/CA7sXyoK.js +1 -0
  26. package/dist/web/_app/immutable/chunks/CIrpUKyW.js +1 -0
  27. package/dist/web/_app/immutable/chunks/CNX0zDnV.js +1 -0
  28. package/dist/web/_app/immutable/chunks/{BYMNYbod.js → CYrVHOHA.js} +1 -1
  29. package/dist/web/_app/immutable/chunks/Cd9--YY2.js +1 -0
  30. package/dist/web/_app/immutable/chunks/Ceu3bj1o.js +1 -0
  31. package/dist/web/_app/immutable/chunks/CgErnhBW.js +1 -0
  32. package/dist/web/_app/immutable/chunks/Cm4_WKoN.js +1 -0
  33. package/dist/web/_app/immutable/chunks/CqwkWwtq.js +1 -0
  34. package/dist/web/_app/immutable/chunks/CrgPkghk.js +1 -0
  35. package/dist/web/_app/immutable/chunks/DKX4rCEq.js +1 -0
  36. package/dist/web/_app/immutable/chunks/DLGVnhPm.js +2 -0
  37. package/dist/web/_app/immutable/chunks/DZaKuUr5.js +1 -0
  38. package/dist/web/_app/immutable/chunks/DoQdsI-P.js +2 -0
  39. package/dist/web/_app/immutable/chunks/DvFfSfZL.js +1 -0
  40. package/dist/web/_app/immutable/chunks/FefWW-qv.js +1 -0
  41. package/dist/web/_app/immutable/chunks/JPu9c3TR.js +1 -0
  42. package/dist/web/_app/immutable/chunks/OKhOOfKB.js +1 -0
  43. package/dist/web/_app/immutable/chunks/PPVm8Dsz.js +1 -0
  44. package/dist/web/_app/immutable/chunks/{BONf5_Rr.js → WSUKABI_.js} +1 -1
  45. package/dist/web/_app/immutable/chunks/Zx02i7Iu.js +1 -0
  46. package/dist/web/_app/immutable/entry/app.Bq1NB047.js +2 -0
  47. package/dist/web/_app/immutable/entry/start.DA1YOkiR.js +1 -0
  48. package/dist/web/_app/immutable/nodes/0.CKOxr9P8.js +10 -0
  49. package/dist/web/_app/immutable/nodes/1.D8qAd-OR.js +1 -0
  50. package/dist/web/_app/immutable/nodes/2.BOf8Xf5k.js +84 -0
  51. package/dist/web/_app/immutable/nodes/3.BHZOHJN_.js +1 -0
  52. package/dist/web/_app/immutable/nodes/4.BoQFRRjC.js +11 -0
  53. package/dist/web/_app/immutable/nodes/5.Cub_8D0M.js +4 -0
  54. package/dist/web/_app/immutable/nodes/6.YVH12Ymy.js +2 -0
  55. package/dist/web/_app/immutable/nodes/7.D_ihde4k.js +2 -0
  56. package/dist/web/_app/immutable/nodes/8.BFb6tIm-.js +1 -0
  57. package/dist/web/_app/immutable/nodes/9.CC-zIeqf.js +1 -0
  58. package/dist/web/_app/version.json +1 -1
  59. package/dist/web/index.html +13 -10
  60. package/package.json +1 -1
  61. package/dist/web/_app/immutable/assets/2.DRZ4qWy8.css +0 -1
  62. package/dist/web/_app/immutable/assets/AppShell.B5bKOpwF.css +0 -1
  63. package/dist/web/_app/immutable/chunks/5Q3iZDZU.js +0 -1
  64. package/dist/web/_app/immutable/chunks/BODLxJgV.js +0 -1
  65. package/dist/web/_app/immutable/chunks/BnE0Rldz.js +0 -91
  66. package/dist/web/_app/immutable/chunks/C1-cwUjT.js +0 -1
  67. package/dist/web/_app/immutable/chunks/C6O5NX2h.js +0 -2
  68. package/dist/web/_app/immutable/chunks/CBPCy2wh.js +0 -1
  69. package/dist/web/_app/immutable/chunks/CTpBBS5W.js +0 -2
  70. package/dist/web/_app/immutable/chunks/D2e_f7WK.js +0 -1
  71. package/dist/web/_app/immutable/chunks/Da6P0VJZ.js +0 -1
  72. package/dist/web/_app/immutable/chunks/DbMgkTYM.js +0 -1
  73. package/dist/web/_app/immutable/chunks/DfAt9W4x.js +0 -1
  74. package/dist/web/_app/immutable/chunks/DkBrGIdc.js +0 -1
  75. package/dist/web/_app/immutable/chunks/Dn9jmZhf.js +0 -1
  76. package/dist/web/_app/immutable/chunks/VncLXI-e.js +0 -1
  77. package/dist/web/_app/immutable/entry/app.jf3HYIR8.js +0 -2
  78. package/dist/web/_app/immutable/entry/start.DpjIgtFj.js +0 -1
  79. package/dist/web/_app/immutable/nodes/0.CFcVto3C.js +0 -10
  80. package/dist/web/_app/immutable/nodes/1.kwWUR70L.js +0 -1
  81. package/dist/web/_app/immutable/nodes/2.CDdU9S1E.js +0 -1
  82. package/dist/web/_app/immutable/nodes/3.BfKpWeS4.js +0 -11
  83. package/dist/web/_app/immutable/nodes/4.CbKVrNwa.js +0 -4
  84. package/dist/web/_app/immutable/nodes/5.BuNwdHzP.js +0 -2
  85. package/dist/web/_app/immutable/nodes/6.ZwV9BJkM.js +0 -1
  86. package/dist/web/_app/immutable/nodes/7.MVZNtYbB.js +0 -2
  87. package/dist/web/_app/immutable/nodes/8.CqsLiYjT.js +0 -1
  88. /package/dist/web/_app/immutable/assets/{5.CquhUpOu.css → 6.CquhUpOu.css} +0 -0
  89. /package/dist/web/_app/immutable/assets/{6.CT4xL4K3.css → 8.CT4xL4K3.css} +0 -0
  90. /package/dist/web/_app/immutable/assets/{8.BUrHkYry.css → 9.BUrHkYry.css} +0 -0
@@ -1 +0,0 @@
1
- import{e as Y,f as _e,g as d,an as ee,a0 as Se,_ as Q,ao as ve,a2 as we,ah as be,ap as Ie,ak as te,aq as $e,ar as xe,m as Ae,h as M,k as G,q as Ce,z as Ne,as as ke,at as K,B as Oe,a3 as He,D as ne,j as J,o as L,C as De,au as Re,av as C,X as ce,Z as fe,aw as X,ax as Pe,ay as Me,Y as Be,a5 as Fe,i as Ue,az as de,aA as ze,s as u,y as w,Q as se,L as re,x as Le}from"./CbWA7IDo.js";import{i as Ve}from"./DfAt9W4x.js";import{a as ie,u as oe,w as A}from"./DkBrGIdc.js";import{b as qe}from"./CTpBBS5W.js";function Et(e,t){return t}function We(e,t,n){for(var s=[],i=t.length,a,o=t.length,g=0;g<i;g++){let v=t[g];fe(v,()=>{if(a){if(a.pending.delete(v),a.done.add(v),a.pending.size===0){var h=e.outrogroups;Z(K(a.done)),h.delete(a),h.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var c=s.length===0&&n!==null;if(c){var T=n,f=T.parentNode;Me(f),f.append(T),e.items.clear()}Z(t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Z(e,t=!0){for(var n=0;n<e.length;n++)Be(e[n],t)}var ae;function _t(e,t,n,s,i,a=null){var o=e,g=new Map,c=(t&de)!==0;if(c){var T=e;o=M?G(Ce(T)):T.appendChild(Y())}M&&Ne();var f=null,v=be(()=>{var l=n();return ke(l)?l:l==null?[]:K(l)}),h,y=!0;function p(){r.fallback=f,Ye(r,h,o,t,s),f!==null&&(h.length===0?(f.f&C)===0?ce(f):(f.f^=C,U(f,null,o)):fe(f,()=>{f=null}))}var m=_e(()=>{h=d(v);var l=h.length;let x=!1;if(M){var D=Oe(o)===He;D!==(l===0)&&(o=ne(),G(o),J(!1),x=!0)}for(var I=new Set,k=Se,R=we(),b=0;b<l;b+=1){M&&L.nodeType===De&&L.data===Re&&(o=L,x=!0,J(!1));var O=h[b],P=s(O,b),S=y?null:g.get(P);S?(S.v&&ee(S.v,O),S.i&&ee(S.i,b),R&&k.unskip_effect(S.e)):(S=Ge(g,y?o:ae??=Y(),O,P,b,i,t,n),y||(S.e.f|=C),g.set(P,S)),I.add(P)}if(l===0&&a&&!f&&(y?f=Q(()=>a(o)):(f=Q(()=>a(ae??=Y())),f.f|=C)),l>I.size&&ve(),M&&l>0&&G(ne()),!y)if(R){for(const[Te,Ee]of g)I.has(Te)||k.skip_effect(Ee.e);k.oncommit(p),k.ondiscard(()=>{})}else p();x&&J(!0),d(v)}),r={effect:m,items:g,outrogroups:null,fallback:f};y=!1,M&&(o=L)}function B(e){for(;e!==null&&(e.f&Pe)===0;)e=e.next;return e}function Ye(e,t,n,s,i){var a=(s&ze)!==0,o=t.length,g=e.items,c=B(e.effect.first),T,f=null,v,h=[],y=[],p,m,r,l;if(a)for(l=0;l<o;l+=1)p=t[l],m=i(p,l),r=g.get(m).e,(r.f&C)===0&&(r.nodes?.a?.measure(),(v??=new Set).add(r));for(l=0;l<o;l+=1){if(p=t[l],m=i(p,l),r=g.get(m).e,e.outrogroups!==null)for(const S of e.outrogroups)S.pending.delete(r),S.done.delete(r);if((r.f&C)!==0)if(r.f^=C,r===c)U(r,null,n);else{var x=f?f.next:c;r===e.effect.last&&(e.effect.last=r.prev),r.prev&&(r.prev.next=r.next),r.next&&(r.next.prev=r.prev),N(e,f,r),N(e,r,x),U(r,x,n),f=r,h=[],y=[],c=B(f.next);continue}if((r.f&X)!==0&&(ce(r),a&&(r.nodes?.a?.unfix(),(v??=new Set).delete(r))),r!==c){if(T!==void 0&&T.has(r)){if(h.length<y.length){var D=y[0],I;f=D.prev;var k=h[0],R=h[h.length-1];for(I=0;I<h.length;I+=1)U(h[I],D,n);for(I=0;I<y.length;I+=1)T.delete(y[I]);N(e,k.prev,R.next),N(e,f,k),N(e,R,D),c=D,f=R,l-=1,h=[],y=[]}else T.delete(r),U(r,c,n),N(e,r.prev,r.next),N(e,r,f===null?e.effect.first:f.next),N(e,f,r),f=r;continue}for(h=[],y=[];c!==null&&c!==r;)(T??=new Set).add(c),y.push(c),c=B(c.next);if(c===null)continue}(r.f&C)===0&&h.push(r),f=r,c=B(r.next)}if(e.outrogroups!==null){for(const S of e.outrogroups)S.pending.size===0&&(Z(K(S.done)),e.outrogroups?.delete(S));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||T!==void 0){var b=[];if(T!==void 0)for(r of T)(r.f&X)===0&&b.push(r);for(;c!==null;)(c.f&X)===0&&c!==e.fallback&&b.push(c),c=B(c.next);var O=b.length;if(O>0){var P=(s&de)!==0&&o===0?n:null;if(a){for(l=0;l<O;l+=1)b[l].nodes?.a?.measure();for(l=0;l<O;l+=1)b[l].nodes?.a?.fix()}We(e,b,P)}}a&&Fe(()=>{if(v!==void 0)for(r of v)r.nodes?.a?.apply()})}function Ge(e,t,n,s,i,a,o,g){var c=(o&$e)!==0?(o&xe)===0?Ae(n,!1,!1):te(n):null,T=(o&Ie)!==0?te(i):null;return{v:c,i:T,e:Q(()=>(a(t,c??n,T??i,g),()=>{e.delete(s)}))}}function U(e,t,n){if(e.nodes)for(var s=e.nodes.start,i=e.nodes.end,a=t&&(t.f&C)===0?t.nodes.start:n;s!==null;){var o=Ue(s);if(a.before(s),s===i)return;s=o}}function N(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Je(){let e=w(null),t=w(null),n=w(null),s=w(null),i=w("entity"),a=w(null),o=w("general");function g(p,m){d(e)&&(d(e)!==p||d(n)!==m)&&ie(d(e)).catch(()=>{})}function c(p,m,r,l){g(p,r),u(e,p,!0),u(t,m,!0),u(n,r,!0),u(s,l??null,!0)}function T(){u(i,"entity")}function f(){u(i,"graph")}function v(){u(i,"settings"),u(o,"general")}function h(p,m,r){d(n)===r&&d(e)===p?(u(e,null),u(t,null),u(n,null)):(u(e,p,!0),u(t,m,!0),u(n,r,!0)),u(s,null)}function y(){d(e)&&ie(d(e)).catch(()=>{}),u(e,null),u(t,null),u(n,null),u(s,null)}return{get selectedRepo(){return d(e)},get selectedType(){return d(t)},get selectedId(){return d(n)},get selectedSubPath(){return d(s)},get activeView(){return d(i)},get entityPath(){return d(e)&&d(t)&&d(n)?`/${d(e)}/${d(t)}/${d(n)}`:null},get hoveredEntityId(){return d(a)},set hoveredEntityId(p){u(a,p,!0)},get settingsTab(){return d(o)},set settingsTab(p){u(o,p,!0)},select:c,deselect:y,selectOnGraph:h,showEntity:T,showGraph:f,showSettings:v}}const F=Je();function St(...e){return e.filter(Boolean).join(" ")}const Xe=typeof document<"u";let ue=0;class Qe{#e=w(se([]));get toasts(){return d(this.#e)}set toasts(t){u(this.#e,t,!0)}#t=w(se([]));get heights(){return d(this.#t)}set heights(t){u(this.#t,t,!0)}#n=t=>{const n=this.toasts.findIndex(s=>s.id===t);return n===-1?null:n};addToast=t=>{Xe&&this.toasts.unshift(t)};updateToast=({id:t,data:n,type:s,message:i})=>{const a=this.toasts.findIndex(g=>g.id===t),o=this.toasts[a];this.toasts[a]={...o,...n,id:t,title:i,type:s,updated:!0}};create=t=>{const{message:n,...s}=t,i=typeof t?.id=="number"||t.id&&t.id?.length>0?t.id:ue++,a=t.dismissible!==void 0?t.dismissible:t.dismissable!==void 0?t.dismissable:!0,o=t.type===void 0?"default":t.type;return re(()=>{this.toasts.find(c=>c.id===i)?this.updateToast({id:i,data:t,type:o,message:n,dismissible:a}):this.addToast({...s,id:i,title:n,dismissible:a,type:o})}),i};dismiss=t=>(re(()=>{if(t===void 0){this.toasts=this.toasts.map(s=>({...s,dismiss:!0}));return}const n=this.toasts.findIndex(s=>s.id===t);this.toasts[n]&&(this.toasts[n]={...this.toasts[n],dismiss:!0})}),t);remove=t=>{if(t===void 0){this.toasts=[];return}const n=this.#n(t);if(n!==null)return this.toasts.splice(n,1),t};message=(t,n)=>this.create({...n,type:"default",message:t});error=(t,n)=>this.create({...n,type:"error",message:t});success=(t,n)=>this.create({...n,type:"success",message:t});info=(t,n)=>this.create({...n,type:"info",message:t});warning=(t,n)=>this.create({...n,type:"warning",message:t});loading=(t,n)=>this.create({...n,type:"loading",message:t});promise=(t,n)=>{if(!n)return;let s;n.loading!==void 0&&(s=this.create({...n,promise:t,type:"loading",message:typeof n.loading=="string"?n.loading:n.loading()}));const i=t instanceof Promise?t:t();let a=s!==void 0;return i.then(o=>{if(typeof o=="object"&&o&&"ok"in o&&typeof o.ok=="boolean"&&!o.ok){a=!1;const g=Ze(o);this.create({id:s,type:"error",message:g})}else if(n.success!==void 0){a=!1;const g=typeof n.success=="function"?n.success(o):n.success;this.create({id:s,type:"success",message:g})}}).catch(o=>{if(n.error!==void 0){a=!1;const g=typeof n.error=="function"?n.error(o):n.error;this.create({id:s,type:"error",message:g})}}).finally(()=>{a&&(this.dismiss(s),s=void 0),n.finally?.()}),s};custom=(t,n)=>{const s=n?.id||ue++;return this.create({component:t,id:s,...n}),s};removeHeight=t=>{this.heights=this.heights.filter(n=>n.toastId!==t)};setHeight=t=>{const n=this.#n(t.toastId);if(n===null){this.heights.push(t);return}this.heights[n]=t};reset=()=>{this.toasts=[],this.heights=[]}}function Ze(e){return e&&typeof e=="object"&&"status"in e?`HTTP error! Status: ${e.status}`:`Error! ${e}`}const $=new Qe;function je(e,t){return $.create({message:e,...t})}class vt{#e=Le(()=>$.toasts.filter(t=>!t.dismiss));get toasts(){return d(this.#e)}}const Ke=je,_=Object.assign(Ke,{success:$.success,info:$.info,warning:$.warning,error:$.error,custom:$.custom,message:$.message,promise:$.promise,dismiss:$.dismiss,loading:$.loading,getActiveToasts:()=>$.toasts.filter(e=>!e.dismiss)}),et=800;function tt(){let e=w(!1),t=w(null),n=w(null),s=null,i=null,a=!1;function o(h,y,p,m){s&&s.repo===h&&s.type===y&&s.id===p?(m.data!==void 0&&(s.payload.data=m.data),m.content!==void 0&&(s.payload.content=m.content)):s={repo:h,type:y,id:p,payload:{...m}},g()}function g(){i&&clearTimeout(i),i=setTimeout(c,et)}async function c(){if(i=null,!a&&s){const{repo:h,type:y,id:p,payload:m}=s;s=null,a=!0,u(e,!0),u(n,null);try{if(await oe(h,y,p,m),u(t,new Date,!0),m.data?.name){const l=A.repos.find(x=>x.name===h)?.entities.find(x=>x.id===p);l&&(l.title=m.data.name)}}catch(r){u(n,r.message??"Save failed",!0);const l=r.status??r.statusCode;(!l||l>=500)&&(s={repo:h,type:y,id:p,payload:m})}finally{u(e,!1),a=!1,s&&c()}}}function T(){i&&(clearTimeout(i),i=null),s&&c()}async function f(h,y,p,m){u(e,!0),u(n,null);try{const r=await oe(h,y,p,m);return u(t,new Date,!0),r}catch(r){return u(n,r.message??"Save failed",!0),null}finally{u(e,!1)}}function v(){u(n,null),u(t,null),s=null,i&&(clearTimeout(i),i=null)}return{get saving(){return d(e)},get lastSaved(){return d(t)},get error(){return d(n)},get hasPending(){return!!(s||a)},scheduleAutoSave:o,flush:T,saveEntity:f,reset:v}}const nt=tt();let E=null,he=null,pe=null,ge=[],q=null,V=1e3,W=w(!1),ye=w(null);const H=new Map,z={},j={};function le(e,t){H.delete(e);const n=t.entities.length,s=n===1?`${e} updated ${t.entities[0]}`:`${e} updated ${n} entities`;_(s)}function st(e){for(const[t,n]of H)n.repo===e&&(clearTimeout(n.timer),H.delete(t))}function rt(e){const t=qe.user?.displayName;if(e.type==="sync_progress"){const n=z[e.repo];if(n){const s=e.message.trim(),i=s.match(/^Syncing from source:\s*(.+)$/i);i&&(j[e.repo]=`Syncing ${i[1].trim()}…`);const a=j[e.repo]??`Syncing ${e.repo}…`;_.loading(a,{id:n,description:s,duration:36e5})}return}if(e.type==="entity_change"){if(t&&e.actor===t&&e.source==="api"){A.refreshEntities(e.repo);return}if(A.refreshEntities(e.repo),F.selectedRepo===e.repo&&F.selectedType===e.entityType&&F.selectedId===e.entityId){nt.hasPending?_(`${e.actor} also saved changes to this entity`):Ve();return}const s=H.get(e.actor);if(s)clearTimeout(s.timer),s.entities.includes(e.entityId)||s.entities.push(e.entityId),s.timer=setTimeout(()=>le(e.actor,s),1e4);else{const i={entities:[e.entityId],repo:e.repo,timer:setTimeout(()=>le(e.actor,i),1e4)};H.set(e.actor,i)}return}if(e.type==="session_commit"){if(t&&e.actor===t){u(ye,e.timestamp,!0);return}const n=e.entities.length,s=n===1?`${e.actor} saved changes to ${e.entities[0]}`:`${e.actor} saved ${n} changes in ${e.repo}`;_(s),A.refreshEntities(e.repo);return}if(e.type==="sync_complete"){if(st(e.repo),!z[e.repo]){const n=e.created+e.updated+e.deleted,s=n===0?`Sync complete · no changes in ${e.repo}`:`Sync complete · ${n} ${n===1?"entity":"entities"} from ${e.source}`;_.success(s)}A.refreshEntities(e.repo);return}if(e.type==="collection_created"){_(`${e.actor} created collection ${e.repo}`),A.refreshEntities(e.repo);return}if(e.type==="collection_deleted"){_(`${e.actor} deleted collection ${e.repo}`);return}if(e.type==="repo_sync"){_(`${e.actor} pushed to ${e.repo}`),A.refreshEntities(e.repo);return}if(e.type==="presence"){he?.(e);return}if(e.type==="online"){pe?.(e);return}if(e.type==="access_granted"||e.type==="access_revoked"){e.type==="access_revoked"&&F.selectedRepo===e.repo&&F.deselect(),A.load();return}}function me(){if(typeof window>"u"||E&&(E.readyState===WebSocket.OPEN||E.readyState===WebSocket.CONNECTING))return;const t=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;E=new WebSocket(t),E.binaryType="arraybuffer",E.onopen=()=>{u(W,!0),V=1e3,A.refreshAll();for(const n of ge)n()},E.onmessage=n=>{if(!(n.data instanceof ArrayBuffer))try{const s=JSON.parse(n.data);if(s?.type==="ping"){E?.send(JSON.stringify({type:"pong"}));return}const i=s;i.type&&i.type!=="toast"&&rt(i)}catch{}},E.onclose=()=>{u(W,!1),E=null,q=setTimeout(()=>{V=Math.min(V*2,1e4),me()},V)},E.onerror=()=>{}}function it(){q&&(clearTimeout(q),q=null),E&&(E.close(),E=null),u(W,!1);for(const[,e]of H)clearTimeout(e.timer);H.clear()}function ot(e,t=4e3){_(e,{duration:t})}function at(e,t){const n=crypto.randomUUID();return t?.loading?_.loading(e,{id:n,duration:36e5}):_(e,{id:n}),n}function ut(e,t,n){if(n?.loading){_.loading(t,{id:e});return}/failed|error/i.test(t)?_.error(t,{id:e,duration:n?.duration??6e3}):_.success(t,{id:e,duration:n?.duration??4e3})}function lt(e){const t=crypto.randomUUID();z[e]=t,_.loading(`Syncing ${e}…`,{id:t,duration:36e5})}function ct(e,t,n){const s=z[e];s&&(delete z[e],delete j[e],n?_.error(t,{id:s,duration:6e3}):_.success(t,{id:s,duration:4e3}))}function ft(e){he=e}function dt(e){pe=e}function ht(e){ge.push(e)}function pt(e){E?.readyState===WebSocket.OPEN&&E.send(JSON.stringify(e))}const wt={get connected(){return d(W)},get lastAutoSaved(){return d(ye)},get ws(){return E},connect:me,disconnect:it,showToast:ot,showPersistentToast:at,updateToast:ut,startSyncToast:lt,finishSyncToast:ct,send:pt,setPresenceHandler:ft,setOnlineHandler:dt,addConnectHandler:ht};export{vt as S,nt as a,St as c,_t as e,Et as i,F as n,wt as r,$ as t};
@@ -1,2 +0,0 @@
1
- import{aE as ie,g as K,a4 as oe,ak as Q,L as le,aF as U,a5 as N,o as l,h as _,ab as m,aG as q,f as ue,z as $,a3 as fe,aH as z,_ as y,e as R,aI as x,Z as C,a1 as ce,aJ as G,aK as de,aL as X,aM as he,aN as _e,am as M,aO as O,aP as J,aQ as pe,aR as ee,G as te,an as ve,Y as F,k as A,n as ge,D as me,aS as D,A as ye,E as be,aT as Ee,aU as Te,aV as we,U as Ne,aW as Re,aX as Ae,q as S,aY as Se,aZ as De,a_ as Le,a$ as ke,b0 as Me,b1 as Oe,C as B,b2 as P,F as Ie,i as xe,b3 as V,j as L,b4 as Ce,ay as Fe,b5 as Pe,at as Ve,p as We,au as Ye,b6 as He,b as $e}from"./CbWA7IDo.js";function Be(t){let e=0,r=Q(0),s;return()=>{ie()&&(K(r),oe(()=>(e===0&&(s=le(()=>t(()=>U(r)))),e+=1,()=>{N(()=>{e-=1,e===0&&(s?.(),s=void 0,U(r))})})))}}var je=ye|be;function Ue(t,e,r,s){new qe(t,e,r,s)}class qe{parent;is_pending=!1;transform_error;#t;#v=_?l:null;#s;#u;#e;#a=null;#r=null;#n=null;#i=null;#f=0;#l=0;#c=!1;#d=new Set;#h=new Set;#o=null;#y=Be(()=>(this.#o=Q(this.#f),()=>{this.#o=null}));constructor(e,r,s,a){this.#t=e,this.#s=r,this.#u=n=>{var i=m;i.b=this,i.f|=q,s(n)},this.parent=m.b,this.transform_error=a??this.parent?.transform_error??(n=>n),this.#e=ue(()=>{if(_){const n=this.#v;$();const i=n.data===fe;if(n.data.startsWith(z)){const o=JSON.parse(n.data.slice(z.length));this.#E(o)}else i?this.#T():this.#b()}else this.#g()},je),_&&(this.#t=l)}#b(){try{this.#a=y(()=>this.#u(this.#t))}catch(e){this.error(e)}}#E(e){const r=this.#s.failed;r&&(this.#n=y(()=>{r(this.#t,()=>e,()=>()=>{})}))}#T(){const e=this.#s.pending;e&&(this.is_pending=!0,this.#r=y(()=>e(this.#t)),N(()=>{var r=this.#i=document.createDocumentFragment(),s=R();r.append(s),this.#a=this.#p(()=>(x.ensure(),y(()=>this.#u(s)))),this.#l===0&&(this.#t.before(r),this.#i=null,C(this.#r,()=>{this.#r=null}),this.#_())}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#l=0,this.#f=0,this.#a=y(()=>{this.#u(this.#t)}),this.#l>0){var e=this.#i=document.createDocumentFragment();ce(this.#a,e);const r=this.#s.pending;this.#r=y(()=>r(this.#t))}else this.#_()}catch(r){this.error(r)}}#_(){this.is_pending=!1;for(const e of this.#d)G(e,de),X(e);for(const e of this.#h)G(e,he),X(e);this.#d.clear(),this.#h.clear()}defer_effect(e){_e(e,this.#d,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#s.pending}#p(e){var r=m,s=ee,a=te;M(this.#e),O(this.#e),J(this.#e.ctx);try{return e()}catch(n){return pe(n),null}finally{M(r),O(s),J(a)}}#m(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(e);return}this.#l+=e,this.#l===0&&(this.#_(),this.#r&&C(this.#r,()=>{this.#r=null}),this.#i&&(this.#t.before(this.#i),this.#i=null))}update_pending_count(e){this.#m(e),this.#f+=e,!(!this.#o||this.#c)&&(this.#c=!0,N(()=>{this.#c=!1,this.#o&&ve(this.#o,this.#f)}))}get_effect_pending(){return this.#y(),K(this.#o)}error(e){var r=this.#s.onerror;let s=this.#s.failed;if(!r&&!s)throw e;this.#a&&(F(this.#a),this.#a=null),this.#r&&(F(this.#r),this.#r=null),this.#n&&(F(this.#n),this.#n=null),_&&(A(this.#v),ge(),A(me()));var a=!1,n=!1;const i=()=>{if(a){Te();return}a=!0,n&&Ee(),this.#n!==null&&C(this.#n,()=>{this.#n=null}),this.#p(()=>{x.ensure(),this.#g()})},f=o=>{try{n=!0,r?.(o,i),n=!1}catch(u){D(u,this.#e&&this.#e.parent)}s&&(this.#n=this.#p(()=>{x.ensure();try{return y(()=>{var u=m;u.b=this,u.f|=q,s(this.#t,()=>o,()=>i)})}catch(u){return D(u,this.#e.parent),null}}))};N(()=>{var o;try{o=this.transform_error(e)}catch(u){D(u,this.#e&&this.#e.parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(f,u=>D(u,this.#e&&this.#e.parent)):f(o)})}}function st(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const ze=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function at(t){return ze.includes(t)}const Ge={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 it(t){return t=t.toLowerCase(),Ge[t]??t}const Xe=["touchstart","touchmove"];function Je(t){return Xe.includes(t)}const Ze=["textarea","script","style","title"];function ot(t){return Ze.includes(t)}const w=Symbol("events"),re=new Set,W=new Set;function ne(t,e,r,s={}){function a(n){if(s.capture||Y.call(e,n),!n.cancelBubble)return we(()=>r?.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?N(()=>{e.addEventListener(t,a,s)}):e.addEventListener(t,a,s),a}function lt(t,e,r,s={}){var a=ne(e,t,r,s);return()=>{t.removeEventListener(e,a,s)}}function ut(t,e,r,s,a){var n={capture:s,passive:a},i=ne(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Re(()=>{e.removeEventListener(t,i,n)})}function ft(t,e,r){(e[w]??={})[t]=r}function ct(t){for(var e=0;e<t.length;e++)re.add(t[e]);for(var r of W)r(t)}let Z=null;function Y(t){var e=this,r=e.ownerDocument,s=t.type,a=t.composedPath?.()||[],n=a[0]||t.target;Z=t;var i=0,f=Z===t&&t[w];if(f){var o=a.indexOf(f);if(o!==-1&&(e===document||e===window)){t[w]=e;return}var u=a.indexOf(e);if(u===-1)return;o<=u&&(i=o)}if(n=a[i]||t.target,n!==e){Ne(t,"currentTarget",{configurable:!0,get(){return n||r}});var b=ee,T=m;O(null),M(null);try{for(var g,d=[];n!==null;){var c=n.assignedSlot||n.parentNode||n.host||null;try{var h=n[w]?.[s];h!=null&&(!n.disabled||t.target===n)&&h.call(n,t)}catch(p){g?d.push(p):g=p}if(t.cancelBubble||c===e||c===null)break;n=c}if(g){for(let p of d)queueMicrotask(()=>{throw p});throw g}}finally{t[w]=e,delete t.currentTarget,O(b),M(T)}}}const Ke=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function Qe(t){return Ke?.createHTML(t)??t}function se(t){var e=Ae("template");return e.innerHTML=Qe(t.replaceAll("<!>","<!---->")),e.content}function v(t,e){var r=m;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function dt(t,e){var r=(e&De)!==0,s=(e&Le)!==0,a,n=!t.startsWith("<!>");return()=>{if(_)return v(l,null),l;a===void 0&&(a=se(n?t:"<!>"+t),r||(a=S(a)));var i=s||Se?document.importNode(a,!0):a.cloneNode(!0);if(r){var f=S(i),o=i.lastChild;v(f,o)}else v(i,i);return i}}function et(t,e,r="svg"){var s=!t.startsWith("<!>"),a=`<${r}>${s?t:"<!>"+t}</${r}>`,n;return()=>{if(_)return v(l,null),l;if(!n){var i=se(a),f=S(i);n=S(f)}var o=n.cloneNode(!0);return v(o,o),o}}function ht(t,e){return et(t,e,"svg")}function _t(t=""){if(!_){var e=R(t+"");return v(e,e),e}var r=l;return r.nodeType!==ke?(r.before(r=R()),A(r)):Me(r),v(r,r),r}function pt(){if(_)return v(l,null),l;var t=document.createDocumentFragment(),e=document.createComment(""),r=R();return t.append(e,r),v(e,r),t}function vt(t,e){if(_){var r=m;((r.f&Oe)===0||r.nodes.end===null)&&(r.nodes.end=l),$();return}t!==null&&t.before(e)}function gt(){if(_&&l&&l.nodeType===B&&l.textContent?.startsWith("$")){const t=l.textContent.substring(1);return $(),t}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function mt(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=`${r}`)}function tt(t,e){return ae(t,e)}function yt(t,e){P(),e.intro=e.intro??!1;const r=e.target,s=_,a=l;try{for(var n=S(r);n&&(n.nodeType!==B||n.data!==Ie);)n=xe(n);if(!n)throw V;L(!0),A(n);const i=ae(t,{...e,anchor:n});return L(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
- `).some(f=>f.startsWith("https://svelte.dev/e/")))throw i;return i!==V&&console.warn("Failed to hydrate: ",i),e.recover===!1&&Ce(),P(),Fe(r),L(!1),tt(t,e)}finally{L(s),A(a)}}const k=new Map;function ae(t,{target:e,anchor:r,props:s={},events:a,context:n,intro:i=!0,transformError:f}){P();var o=void 0,u=Pe(()=>{var b=r??e.appendChild(R());Ue(b,{pending:()=>{}},d=>{We({});var c=te;if(n&&(c.c=n),a&&(s.$$events=a),_&&v(d,null),o=t(d,s)||{},_&&(m.nodes.end=l,l===null||l.nodeType!==B||l.data!==Ye))throw He(),V;$e()},f);var T=new Set,g=d=>{for(var c=0;c<d.length;c++){var h=d[c];if(!T.has(h)){T.add(h);var p=Je(h);for(const I of[e,document]){var E=k.get(I);E===void 0&&(E=new Map,k.set(I,E));var j=E.get(h);j===void 0?(I.addEventListener(h,Y,{passive:p}),E.set(h,1)):E.set(h,j+1)}}}};return g(Ve(re)),W.add(g),()=>{for(var d of T)for(const p of[e,document]){var c=k.get(p),h=c.get(d);--h==0?(p.removeEventListener(d,Y),c.delete(d),c.size===0&&k.delete(p)):c.set(d,h)}W.delete(g),b!==r&&b.parentNode?.removeChild(b)}});return H.set(o,u),o}let H=new WeakMap;function bt(t,e){const r=H.get(t);return r?(H.delete(t),r(e)):Promise.resolve()}const rt="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(rt);export{vt as a,dt as b,pt as c,ft as d,ut as e,ht as f,ct as g,yt as h,st as i,ne as j,at as k,Be as l,tt as m,it as n,lt as o,v as p,ot as q,gt as r,mt as s,_t as t,bt as u};
@@ -1 +0,0 @@
1
- import{a as p,s as $,f as h}from"./C6O5NX2h.js";import{i as M}from"./D2e_f7WK.js";import{p as I,l as c,a as P,g as i,c as m,n as Z,r as _,b as k,m as u,s as g,d as n,t as B}from"./CbWA7IDo.js";import{l as v,p as b,i as C}from"./Da6P0VJZ.js";import{a as N}from"./CTpBBS5W.js";var R=h("<title> </title>"),V=h('<svg><!><path d="M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm0,26A12,12,0,0,1,16,4V16l8.4812,8.4814A11.9625,11.9625,0,0,1,16,28Z"></path></svg>');function F(x,t){const e=v(t,["children","$$slots","$$events","$$legacy"]),w=v(e,["size","title"]);I(t,!1);const a=u(),d=u();let f=b(t,"size",8,16),s=b(t,"title",8,void 0);c(()=>(n(e),n(s())),()=>{g(a,e["aria-label"]||e["aria-labelledby"]||s())}),c(()=>(i(a),n(e)),()=>{g(d,{"aria-hidden":i(a)?void 0:!0,role:i(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),P(),M();var r=V();N(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...i(d),...w}));var y=m(r);{var z=l=>{var o=R(),A=m(o,!0);_(o),B(()=>$(A,s())),p(l,o)};C(y,l=>{s()&&l(z)})}Z(),_(r),p(x,r),k()}export{F as I};
@@ -1,2 +0,0 @@
1
- import{f as fe,A as ne,b7 as Q,Y as H,_ as m,P as x,h as y,as as oe,b8 as le,b9 as ce,aW as de,ba as ve,bb as he,bc as be,g as O,bd as ge,be as pe,bf as C,j as D,bg as _e,bh as Ae,a5 as Se,bi as Te,bj as ye,y as M,s as d}from"./CbWA7IDo.js";import{B as Ee}from"./Da6P0VJZ.js";import{i as Ne,d as we,g as Oe,j as Pe,n as je,k as ke}from"./C6O5NX2h.js";function rt(e,r,...t){var a=new Ee(e);fe(()=>{const s=r()??null;a.ensure(s,s&&(u=>s(u,...t)))},ne)}function Ie(e,r){var t=void 0,a;Q(()=>{t!==(t=r())&&(a&&(H(a),a=null),t&&(a=m(()=>{x(()=>t(e))})))})}function ee(e){var r,t,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(t=ee(e[r]))&&(a&&(a+=" "),a+=t)}else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}function Le(){for(var e,r,t=0,a="",s=arguments.length;t<s;t++)(e=arguments[t])&&(r=ee(e))&&(a&&(a+=" "),a+=r);return a}function Ce(e){return typeof e=="object"?Le(e):e??""}const K=[...`
2
- \r\f \v\uFEFF`];function Me(e,r,t){var a=e==null?"":""+e;if(r&&(a=a?a+" "+r:r),t){for(var s of Object.keys(t))if(t[s])a=a?a+" "+s:s;else if(a.length)for(var u=s.length,n=0;(n=a.indexOf(s,n))>=0;){var l=n+u;(n===0||K.includes(a[n-1]))&&(l===a.length||K.includes(a[l]))?a=(n===0?"":a.substring(0,n))+a.substring(l+1):n=l}}return a===""?null:a}function W(e,r=!1){var t=r?" !important;":";",a="";for(var s of Object.keys(e)){var u=e[s];u!=null&&u!==""&&(a+=" "+s+": "+u+t)}return a}function G(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Re(e,r){if(r){var t="",a,s;if(Array.isArray(r)?(a=r[0],s=r[1]):a=r,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var u=!1,n=0,l=!1,h=[];a&&h.push(...Object.keys(a).map(G)),s&&h.push(...Object.keys(s).map(G));var c=0,p=-1;const N=e.length;for(var v=0;v<N;v++){var i=e[v];if(l?i==="/"&&e[v-1]==="*"&&(l=!1):u?u===i&&(u=!1):i==="/"&&e[v+1]==="*"?l=!0:i==='"'||i==="'"?u=i:i==="("?n++:i===")"&&n--,!l&&u===!1&&n===0){if(i===":"&&p===-1)p=v;else if(i===";"||v===N-1){if(p!==-1){var E=G(e.substring(c,p).trim());if(!h.includes(E)){i!==";"&&v++;var S=e.substring(c,v).trim();t+=" "+S+";"}}c=v+1,p=-1}}}}return a&&(t+=W(a)),s&&(t+=W(s,!0)),t=t.trim(),t===""?null:t}return e==null?null:String(e)}function Ue(e,r,t,a,s,u){var n=e.__className;if(y||n!==t||n===void 0){var l=Me(t,a,u);(!y||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):r?e.className=l:e.setAttribute("class",l)),e.__className=t}else if(u&&s!==u)for(var h in u){var c=!!u[h];(s==null||c!==!!s[h])&&e.classList.toggle(h,c)}return u}function B(e,r={},t,a){for(var s in t){var u=t[s];r[s]!==u&&(t[s]==null?e.style.removeProperty(s):e.style.setProperty(s,u,a))}}function $e(e,r,t,a){var s=e.__style;if(y||s!==r){var u=Re(r,a);(!y||u!==e.getAttribute("style"))&&(u==null?e.removeAttribute("style"):e.style.cssText=u),e.__style=r}else a&&(Array.isArray(a)?(B(e,t?.[0],a[0]),B(e,t?.[1],a[1],"important")):B(e,t,a));return a}function F(e,r,t=!1){if(e.multiple){if(r==null)return;if(!oe(r))return le();for(var a of e.options)a.selected=r.includes(q(a));return}for(a of e.options){var s=q(a);if(ce(s,r)){a.selected=!0;return}}(!t||r!==void 0)&&(e.selectedIndex=-1)}function Ge(e){var r=new MutationObserver(()=>{F(e,e.__value)});r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),de(()=>{r.disconnect()})}function q(e){return"__value"in e?e.__value:e.value}const I=Symbol("class"),L=Symbol("style"),te=Symbol("is custom element"),re=Symbol("is html"),Be=C?"link":"LINK",He=C?"input":"INPUT",Fe=C?"option":"OPTION",Je=C?"select":"SELECT",Ve=C?"progress":"PROGRESS";function Ye(e){if(y){var r=!1,t=()=>{if(!r){if(r=!0,e.hasAttribute("value")){var a=e.value;$(e,"value",null),e.value=a}if(e.hasAttribute("checked")){var s=e.checked;$(e,"checked",null),e.checked=s}}};e.__on_r=t,Se(t),Te()}}function at(e,r){var t=J(e);t.value===(t.value=r??void 0)||e.value===r&&(r!==0||e.nodeName!==Ve)||(e.value=r??"")}function ze(e,r){r?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function $(e,r,t,a){var s=J(e);y&&(s[r]=e.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&e.nodeName===Be)||s[r]!==(s[r]=t)&&(r==="loading"&&(e[ye]=t),t==null?e.removeAttribute(r):typeof t!="string"&&ae(e).includes(r)?e[r]=t:e.setAttribute(r,t))}function De(e,r,t,a,s=!1,u=!1){if(y&&s&&e.nodeName===He){var n=e,l=n.type==="checkbox"?"defaultChecked":"defaultValue";l in t||Ye(n)}var h=J(e),c=h[te],p=!h[re];let v=y&&c;v&&D(!1);var i=r||{},E=e.nodeName===Fe;for(var S in r)S in t||(t[S]=null);t.class?t.class=Ce(t.class):(a||t[I])&&(t.class=null),t[L]&&(t.style??=null);var N=ae(e);for(const f in t){let o=t[f];if(E&&f==="value"&&o==null){e.value=e.__value="",i[f]=o;continue}if(f==="class"){var k=e.namespaceURI==="http://www.w3.org/1999/xhtml";Ue(e,k,o,a,r?.[I],t[I]),i[f]=o,i[I]=t[I];continue}if(f==="style"){$e(e,o,r?.[L],t[L]),i[f]=o,i[L]=t[L];continue}var _=i[f];if(!(o===_&&!(o===void 0&&e.hasAttribute(f)))){i[f]=o;var V=f[0]+f[1];if(V!=="$$")if(V==="on"){const A={},P="$$"+f;let g=f.slice(2);var Y=ke(g);if(Ne(g)&&(g=g.slice(0,-7),A.capture=!0),!Y&&_){if(o!=null)continue;e.removeEventListener(g,i[P],A),i[P]=null}if(Y)we(g,e,o),Oe([g]);else if(o!=null){let ue=function(ie){i[f].call(this,ie)};i[P]=Pe(g,e,ue,A)}}else if(f==="style")$(e,f,o);else if(f==="autofocus")_e(e,!!o);else if(!c&&(f==="__value"||f==="value"&&o!=null))e.value=e.__value=o;else if(f==="selected"&&E)ze(e,o);else{var b=f;p||(b=je(b));var z=b==="defaultValue"||b==="defaultChecked";if(o==null&&!c&&!z)if(h[f]=null,b==="value"||b==="checked"){let A=e;const P=r===void 0;if(b==="value"){let g=A.defaultValue;A.removeAttribute(b),A.defaultValue=g,A.value=A.__value=P?g:null}else{let g=A.defaultChecked;A.removeAttribute(b),A.defaultChecked=g,A.checked=P?g:!1}}else e.removeAttribute(f);else z||N.includes(b)&&(c||typeof o!="string")?(e[b]=o,b in h&&(h[b]=Ae)):typeof o!="function"&&$(e,b,o)}}}return v&&D(!0),i}function st(e,r,t=[],a=[],s=[],u,n=!1,l=!1){ve(s,t,a,h=>{var c=void 0,p={},v=e.nodeName===Je,i=!1;if(Q(()=>{var S=r(...h.map(O)),N=De(e,c,S,u,n,l);i&&v&&"value"in S&&F(e,S.value);for(let _ of Object.getOwnPropertySymbols(p))S[_]||H(p[_]);for(let _ of Object.getOwnPropertySymbols(S)){var k=S[_];_.description===ge&&(!c||k!==c[_])&&(p[_]&&H(p[_]),p[_]=m(()=>Ie(e,()=>k))),N[_]=k}c=N}),v){var E=e;x(()=>{F(E,c.value,!0),Ge(E)})}i=!0})}function J(e){return e.__attributes??={[te]:e.nodeName.includes("-"),[re]:e.namespaceURI===he}}var X=new Map;function ae(e){var r=e.getAttribute("is")||e.nodeName,t=X.get(r);if(t)return t;X.set(r,t=[]);for(var a,s=e,u=Element.prototype;u!==s;){a=pe(s);for(var n in a)a[n].set&&t.push(n);s=be(s)}return t}const Ke="";class se extends Error{constructor(r,t){super(t),this.status=r,this.name="ApiError"}}async function T(e,r){const t={...r?.headers};r?.body&&(t["Content-Type"]=t["Content-Type"]??"application/json");const a=await fetch(`${Ke}${e}`,{...r,headers:t});if(!a.ok){const s=await a.json().catch(()=>({error:a.statusText}));throw a.status===401&&typeof window<"u"&&!e.startsWith("/api/auth/")&&window.location.pathname!=="/login"&&(window.location.href="/login"),new se(a.status,s.error??a.statusText)}return a.json()}const ut=Object.freeze(Object.defineProperty({__proto__:null,ApiError:se,apiFetch:T},Symbol.toStringTag,{value:"Module"}));function We(){return T("/api/auth/status")}function qe(){return T("/api/auth/me")}function Xe(e,r){return T("/api/auth/login",{method:"POST",body:JSON.stringify({email:e,password:r})})}function Ze(){return T("/api/auth/logout",{method:"POST"})}function Qe(e,r,t){return T("/api/auth/setup",{method:"POST",body:JSON.stringify({email:e,password:r,displayName:t})})}function it(){return T("/api/auth/users")}function ft(e,r,t,a){return T("/api/auth/users",{method:"POST",body:JSON.stringify({email:e,password:r,displayName:t,role:a})})}function nt(e){return T(`/api/auth/users/${e}`,{method:"DELETE"})}function ot(e,r){return T(`/api/auth/users/${e}/password`,{method:"PATCH",body:JSON.stringify({password:r})})}let j=M(null),R=M(!1),U=M(!1),w=M(!0),Z=M("");const me={get user(){return O(j)},get authEnabled(){return O(R)},get needsSetup(){return O(U)},get loading(){return O(w)},get workspaceName(){return O(Z)},async checkAuth(){d(w,!0);try{const e=await We();if(d(R,e.authEnabled,!0),d(U,e.userCount===0),e.workspaceName&&d(Z,e.workspaceName,!0),O(U))return d(w,!1),{authenticated:!1,authEnabled:!1,needsSetup:!0};if(!e.authEnabled)return d(w,!1),{authenticated:!0,authEnabled:!1,needsSetup:!1};try{const{user:r}=await qe();return d(j,r,!0),d(w,!1),{authenticated:!0,authEnabled:!0,needsSetup:!1}}catch{return d(j,null),d(w,!1),{authenticated:!1,authEnabled:!0,needsSetup:!1}}}catch{return d(w,!1),{authenticated:!0,authEnabled:!1,needsSetup:!1}}},async login(e,r){const{user:t}=await Xe(e,r);return d(j,t,!0),d(R,!0),t},async setup(e,r,t){const{user:a}=await Qe(e,r,t);return d(j,a,!0),d(R,!0),d(U,!1),a},async logout(){await Ze(),d(j,null)}},lt=Object.freeze(Object.defineProperty({__proto__:null,auth:me},Symbol.toStringTag,{value:"Module"}));export{L as S,st as a,me as b,T as c,rt as d,Ue as e,Le as f,at as g,$e as h,Ce as i,nt as j,ot as k,it as l,ft as m,ut as n,lt as o,Ye as r,$ as s};
@@ -1 +0,0 @@
1
- import{G as d,I as g,J as c,K as i,L as m,M as b,g as p,d as v,N as h,O as k}from"./CbWA7IDo.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let f=()=>v(s.s);if(n){let a=0,t={};const _=h(()=>{let l=!1;const r=s.s;for(const o in r)r[o]!==t[o]&&(t[o]=r[o],l=!0);return l&&a++,a});f=()=>p(_)}e.b.length&&g(()=>{u(s,f),c(e.b)}),i(()=>{const a=m(()=>e.m.map(b));return()=>{for(const t of a)typeof t=="function"&&t()}}),e.a.length&&i(()=>{u(s,f),c(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}k();export{x as i};
@@ -1 +0,0 @@
1
- import{X as C,Y as g,Z as U,e as D,_ as E,a0 as q,h as x,o as M,a1 as z,a2 as H,f as Z,z as $,A as G,B as Q,F as X,a3 as J,D as V,k as W,j as I,P as k,a4 as ee,L as Y,a5 as re,a6 as R,a7 as A,a8 as se,a9 as y,g as S,Q as te,s as ie,aa as ne,ab as m,ac as ae,ad as fe,ae as ue,af as ce,ag as oe,N as le,ah as de,ai as _,S as j,aj as pe,ak as he,al as L,am as N}from"./CbWA7IDo.js";class _e{anchor;#r=new Map;#s=new Map;#e=new Map;#t=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#n=e=>{if(this.#r.has(e)){var t=this.#r.get(e),s=this.#s.get(t);if(s)C(s),this.#t.delete(t);else{var i=this.#e.get(t);i&&(this.#s.set(t,i.effect),this.#e.delete(t),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),s=i.effect)}for(const[n,f]of this.#r){if(this.#r.delete(n),n===e)break;const a=this.#e.get(f);a&&(g(a.effect),this.#e.delete(f))}for(const[n,f]of this.#s){if(n===t||this.#t.has(n))continue;const a=()=>{if(Array.from(this.#r.values()).includes(n)){var o=document.createDocumentFragment();z(f,o),o.append(D()),this.#e.set(n,{effect:f,fragment:o})}else g(f);this.#t.delete(n),this.#s.delete(n)};this.#i||!s?(this.#t.add(n),U(f,a,!1)):a()}}};#a=e=>{this.#r.delete(e);const t=Array.from(this.#r.values());for(const[s,i]of this.#e)t.includes(s)||(g(i.effect),this.#e.delete(s))};ensure(e,t){var s=q,i=H();if(t&&!this.#s.has(e)&&!this.#e.has(e))if(i){var n=document.createDocumentFragment(),f=D();n.append(f),this.#e.set(e,{effect:E(()=>t(f)),fragment:n})}else this.#s.set(e,E(()=>t(this.anchor)));if(this.#r.set(s,e),i){for(const[a,u]of this.#s)a===e?s.unskip_effect(u):s.skip_effect(u);for(const[a,u]of this.#e)a===e?s.unskip_effect(u.effect):s.skip_effect(u.effect);s.oncommit(this.#n),s.ondiscard(this.#a)}else x&&(this.anchor=M),this.#n(s)}}function xe(r,e,t=!1){var s;x&&(s=M,$());var i=new _e(r),n=t?G:0;function f(a,u){if(x){var o=Q(s),l;if(o===X?l=0:o===J?l=!1:l=parseInt(o.substring(1)),a!==l){var v=V();W(v),i.anchor=v,I(!1),i.ensure(a,u),I(!0);return}}i.ensure(a,u)}Z(()=>{var a=!1;e((u,o=0)=>{a=!0,f(o,u)}),a||f(!1,null)},n)}function B(r,e){return r===e||r?.[R]===e}function Ae(r={},e,t,s){return k(()=>{var i,n;return ee(()=>{i=n,n=[],Y(()=>{r!==t(...n)&&(e(r,...n),i&&B(t(...i),r)&&e(null,...i))})}),()=>{re(()=>{n&&B(t(...n),r)&&e(null,...n)})}}),r}let P=!1;function ve(r){var e=P;try{return P=!1,[r(),P]}finally{P=e}}const be={get(r,e){if(!r.exclude.includes(e))return r.props[e]},set(r,e){return!1},getOwnPropertyDescriptor(r,e){if(!r.exclude.includes(e)&&e in r.props)return{enumerable:!0,configurable:!0,value:r.props[e]}},has(r,e){return r.exclude.includes(e)?!1:e in r.props},ownKeys(r){return Reflect.ownKeys(r.props).filter(e=>!r.exclude.includes(e))}};function Re(r,e,t){return new Proxy({props:r,exclude:e},be)}const Pe={get(r,e){if(!r.exclude.includes(e))return S(r.version),e in r.special?r.special[e]():r.props[e]},set(r,e,t){if(!(e in r.special)){var s=m;try{N(r.parent_effect),r.special[e]=we({get[e](){return r.props[e]}},e,y)}finally{N(s)}}return r.special[e](t),L(r.version),!0},getOwnPropertyDescriptor(r,e){if(!r.exclude.includes(e)&&e in r.props)return{enumerable:!0,configurable:!0,value:r.props[e]}},deleteProperty(r,e){return r.exclude.includes(e)||(r.exclude.push(e),L(r.version)),!0},has(r,e){return r.exclude.includes(e)?!1:e in r.props},ownKeys(r){return Reflect.ownKeys(r.props).filter(e=>!r.exclude.includes(e))}};function me(r,e){return new Proxy({props:r,exclude:e,special:{},version:he(0),parent_effect:m},Pe)}const Se={get(r,e){let t=r.props.length;for(;t--;){let s=r.props[t];if(_(s)&&(s=s()),typeof s=="object"&&s!==null&&e in s)return s[e]}},set(r,e,t){let s=r.props.length;for(;s--;){let i=r.props[s];_(i)&&(i=i());const n=A(i,e);if(n&&n.set)return n.set(t),!0}return!1},getOwnPropertyDescriptor(r,e){let t=r.props.length;for(;t--;){let s=r.props[t];if(_(s)&&(s=s()),typeof s=="object"&&s!==null&&e in s){const i=A(s,e);return i&&!i.configurable&&(i.configurable=!0),i}}},has(r,e){if(e===R||e===j)return!1;for(let t of r.props)if(_(t)&&(t=t()),t!=null&&e in t)return!0;return!1},ownKeys(r){const e=[];for(let t of r.props)if(_(t)&&(t=t()),!!t){for(const s in t)e.includes(s)||e.push(s);for(const s of Object.getOwnPropertySymbols(t))e.includes(s)||e.push(s)}return e}};function Oe(...r){return new Proxy({props:r},Se)}function we(r,e,t,s){var i=!ue||(t&ce)!==0,n=(t&fe)!==0,f=(t&pe)!==0,a=s,u=!0,o=()=>(u&&(u=!1,a=f?Y(s):s),a),l;if(n){var v=R in r||j in r;l=A(r,e)?.set??(v&&e in r?c=>r[e]=c:void 0)}var p,O=!1;n?[p,O]=ve(()=>r[e]):p=r[e],p===void 0&&s!==void 0&&(p=o(),l&&(i&&se(),l(p)));var d;if(i?d=()=>{var c=r[e];return c===void 0?o():(u=!0,c)}:d=()=>{var c=r[e];return c!==void 0&&(a=void 0),c===void 0?a:c},i&&(t&y)===0)return d;if(l){var F=r.$$legacy;return(function(c,b){return arguments.length>0?((!i||!b||F||O)&&l(b?d():c),c):d()})}var w=!1,h=((t&oe)!==0?le:de)(()=>(w=!1,d()));n&&S(h);var K=m;return(function(c,b){if(arguments.length>0){const T=b?S(h):i&&n?te(c):c;return ie(h,T),w=!0,a!==void 0&&(a=T),c}return ne&&w||(K.f&ae)!==0?h.v:S(h)})}export{_e as B,Ae as b,xe as i,me as l,we as p,Re as r,Oe as s};
@@ -1 +0,0 @@
1
- import{f as E,h as y,z as g,A as k,B as w,D as P,k as S,j as _,F as A,o as R}from"./CbWA7IDo.js";import{B as T}from"./Da6P0VJZ.js";function C(f,c,a){var l;y&&(l=R,g());var i=new T(f);E(()=>{var n=c()??null;if(y){var r=w(l),t=r===A,h=n!==null;if(t!==h){var m=P();S(m),i.anchor=m,_(!1),i.ensure(n,n&&(e=>a(e,n))),_(!0);return}}i.ensure(n,n&&(e=>a(e,n)))},k)}const b="modulepreload",N=function(f,c){return new URL(f,c).href},p={},L=function(c,a,l){let i=Promise.resolve();if(a&&a.length>0){let m=function(e){return Promise.all(e.map(o=>Promise.resolve(o).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};const r=document.getElementsByTagName("link"),t=document.querySelector("meta[property=csp-nonce]"),h=t?.nonce||t?.getAttribute("nonce");i=m(a.map(e=>{if(e=N(e,l),e in p)return;p[e]=!0;const o=e.endsWith(".css"),u=o?'[rel="stylesheet"]':"";if(l)for(let d=r.length-1;d>=0;d--){const v=r[d];if(v.href===e&&(!o||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${e}"]${u}`))return;const s=document.createElement("link");if(s.rel=o?"stylesheet":b,o||(s.as="script"),s.crossOrigin="",s.href=e,h&&s.setAttribute("nonce",h),document.head.appendChild(s),o)return new Promise((d,v)=>{s.addEventListener("load",d),s.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${e}`)))})}))}function n(r){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=r,window.dispatchEvent(t),!t.defaultPrevented)throw r}return i.then(r=>{for(const t of r||[])t.status==="rejected"&&n(t.reason);return c().catch(n)})};export{L as _,C as c};
@@ -1 +0,0 @@
1
- import{aD as me,bz as yt,V as Me,y as A,g as U,s as P,W as re,bA as bt}from"./CbWA7IDo.js";const V=[];function Ue(e,t=me){let n=null;const r=new Set;function a(o){if(yt(e,o)&&(e=o,n)){const l=!V.length;for(const c of r)c[1](),V.push(c,e);if(l){for(let c=0;c<V.length;c+=2)V[c][0](V[c+1]);V.length=0}}}function i(o){a(o(e))}function s(o,l=me){const c=[o,l];return r.add(c),r.size===1&&(n=t(a,i)||me),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:a,update:i,subscribe:s}}class Pe{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Te{constructor(t,n){this.status=t,this.location=n}}class Ie extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function kt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Et(e){return e.split("%25").map(decodeURI).join("%25")}function St(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function we({href:e}){return e.split("#")[0]}function Rt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(s,o){if(o==="get"||o==="getAll"||o==="has")return(c,...d)=>(n(c),s[o](c,...d));t();const l=Reflect.get(s,o);return typeof l=="function"?l.bind(s):l}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const s of i)Object.defineProperty(a,s,{get(){return t(),e[s]},enumerable:!0,configurable:!0});return a}function xt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*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;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function Lt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const At=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&G.delete(Oe(e)),At(e,t));const G=new Map;function Ut(e,t){const n=Oe(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...i}=JSON.parse(r.textContent);const s=r.getAttribute("data-ttl");return s&&G.set(n,{body:a,init:i,ttl:1e3*Number(s)}),r.getAttribute("data-b64")!==null&&(a=Lt(a)),Promise.resolve(new Response(a,i))}return window.fetch(e,t)}function Pt(e,t,n){if(G.size>0){const r=Oe(e,n),a=G.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);G.delete(r)}}return window.fetch(t,n)}function Oe(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${xt(...a)}"]`}return r}const Tt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function It(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${$t(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const s=r.split(/\[(.+?)\](?!\])/);return"/"+s.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return ve(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return ve(String.fromCharCode(...l.slice(2).split("-").map(w=>parseInt(w,16))));const d=Tt.exec(l),[,p,f,u,h]=d;return t.push({name:u,matcher:h,optional:!!p,rest:!!f,chained:f?c===1&&s[0]==="":!1}),f?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return ve(l)}).join("")}).join("")}/?$`),params:t}}function Ot(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function $t(e){return e.slice(1).split("/").filter(Ot)}function jt(e,t,n){const r={},a=e.slice(1),i=a.filter(o=>o!==void 0);let s=0;for(let o=0;o<t.length;o+=1){const l=t[o];let c=a[o-s];if(l.chained&&l.rest&&s&&(c=a.slice(o-s,o+1).filter(d=>d).join("/"),s=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||n[l.matcher](c)){r[l.name]=c;const d=t[o+1],p=a[o+1];d&&!d.rest&&d.optional&&p&&l.chained&&(s=0),!d&&!p&&Object.keys(r).length===i.length&&(s=0);continue}if(l.optional&&l.chained){s++;continue}return}if(!s)return r}function ve(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ct({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[l,c,d]])=>{const{pattern:p,params:f}=It(o),u={id:o,exec:h=>{const w=p.exec(h);if(w)return jt(w,f,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...c||[]].map(s),leaf:i(l)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(o){const l=o<0;return l&&(o=~o),[l,e[o]]}function s(o){return o===void 0?o:[a.has(o),e[o]]}}function Ze(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function We(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const x=globalThis.__sveltekit_1npupjl?.base??"",Nt=globalThis.__sveltekit_1npupjl?.assets??x??"",qt="1774419172832",et="sveltekit:snapshot",tt="sveltekit:scroll",nt="sveltekit:states",Dt="sveltekit:pageurl",K="sveltekit:history",W="sveltekit:navigation",N={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},pe=location.origin;function $e(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function q(){return{x:pageXOffset,y:pageYOffset}}function B(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const He={...N,"":N.hover};function rt(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function at(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=rt(e)}}function Ee(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!a||ge(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),s=r?.origin===pe&&e.hasAttribute("download");return{url:r,external:i,target:a,download:s}}function ae(e){let t=null,n=null,r=null,a=null,i=null,s=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=B(o,"preload-code")),a===null&&(a=B(o,"preload-data")),t===null&&(t=B(o,"keepfocus")),n===null&&(n=B(o,"noscroll")),i===null&&(i=B(o,"reload")),s===null&&(s=B(o,"replacestate")),o=rt(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:He[r??"off"],preload_data:He[a??"off"],keepfocus:l(t),noscroll:l(n),reload:l(i),replace_state:l(s)}}function Je(e){const t=Ue(e);let n=!0;function r(){n=!0,t.update(s=>s)}function a(s){n=!1,t.set(s)}function i(s){let o;return t.subscribe(l=>{(o===void 0||n&&l!==o)&&s(o=l)})}return{notify:r,set:a,subscribe:i}}const ot={v:()=>{}};function Vt(){const{set:e,subscribe:t}=Ue(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Nt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const s=(await a.json()).version!==qt;return s&&(e(!0),ot.v(),clearTimeout(n)),s}catch{return!1}}return{subscribe:t,check:r}}function ge(e,t,n){return e.origin!==pe||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function dn(e){}const st=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...st];const Bt=new Set([...st]);[...Bt];function Kt(e){return e.filter(t=>t!=null)}function je(e){return e instanceof Pe||e instanceof Ie?e.status:500}function zt(e){return e instanceof Ie?e.text:"Internal Error"}let b,H,ye;const Ft=Me.toString().includes("$$")||/function \w+\(\) \{\}/.test(Me.toString());Ft?(b={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},H={current:null},ye={current:!1}):(b=new class{#e=A({});get data(){return U(this.#e)}set data(t){P(this.#e,t)}#t=A(null);get form(){return U(this.#t)}set form(t){P(this.#t,t)}#n=A(null);get error(){return U(this.#n)}set error(t){P(this.#n,t)}#r=A({});get params(){return U(this.#r)}set params(t){P(this.#r,t)}#a=A({id:null});get route(){return U(this.#a)}set route(t){P(this.#a,t)}#o=A({});get state(){return U(this.#o)}set state(t){P(this.#o,t)}#s=A(-1);get status(){return U(this.#s)}set status(t){P(this.#s,t)}#i=A(new URL("https://example.com"));get url(){return U(this.#i)}set url(t){P(this.#i,t)}},H=new class{#e=A(null);get current(){return U(this.#e)}set current(t){P(this.#e,t)}},ye=new class{#e=A(!1);get current(){return U(this.#e)}set current(t){P(this.#e,t)}},ot.v=()=>ye.current=!0);function it(e){Object.assign(b,e)}const Ye={spanContext(){return Gt},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Gt={traceId:"",spanId:"",traceFlags:0},Mt=new Set(["icon","shortcut icon","apple-touch-icon"]),C=Ze(tt)??{},J=Ze(et)??{},j={url:Je({}),page:Je({}),navigating:Ue(null),updated:Vt()};function Ce(e){C[e]=q()}function Wt(e,t){let n=e+1;for(;C[n];)delete C[n],n+=1;for(n=t+1;J[n];)delete J[n],n+=1}function Y(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function lt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(x||"/");e&&await e.update()}}function Se(){}let Ne,Re,oe,T,xe,v;const se=[],ie=[];let L=null;function le(){L?.fork?.then(e=>e?.discard()),L=null}const ne=new Map,ct=new Set,Ht=new Set,M=new Set;let m={branch:[],error:null,url:null},ut=!1,ce=!1,Xe=!0,X=!1,F=!1,ft=!1,Z=!1,qe,y,R,I;const ue=new Set;let be;const fe=new Map;async function _n(e,t,n){globalThis.__sveltekit_1npupjl?.data&&globalThis.__sveltekit_1npupjl.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Ne=Ct(e),T=document.documentElement,xe=t,Re=e.nodes[0],oe=e.nodes[1],Re(),oe(),y=history.state?.[K],R=history.state?.[W],y||(y=R=Date.now(),history.replaceState({...history.state,[K]:y,[W]:R},""));const r=C[y];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await sn(xe,n)):(await z({type:"enter",url:$e(v.hash?un(new URL(location.href)):location.href),replace_state:!0}),a()),on()}async function Jt(e=!0,t=!0){if(await(be||=Promise.resolve()),!be)return;be=null;const n=I={},r=await ee(m.url,!0);if(le(),Z&&fe.forEach(({resource:a})=>{a.refresh?.()}),e){const a=b.state,i=r&&await Ke(r);if(!i||n!==I)return;if(i.type==="redirect")return De(new URL(i.location,m.url).href,{replaceState:!0},1,n);t||(i.props.page.state=a),it(i.props.page),m=i.state,Le(),qe.$set(i.props)}else Le();await Promise.all([...fe.values()].map(({resource:a})=>a)).catch(Se)}function Le(){se.length=0,Z=!1}function dt(e){ie.some(t=>t?.snapshot)&&(J[e]=ie.map(t=>t?.snapshot?.capture()))}function ht(e){J[e]?.forEach((t,n)=>{ie[n]?.snapshot?.restore(t)})}function Qe(){Ce(y),We(tt,C),dt(R),We(et,J)}async function De(e,t,n,r){let a;t.invalidateAll&&le(),await z({type:"goto",url:$e(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Z=!0,a=[...fe.keys()]),t.invalidate&&t.invalidate.forEach(an)}}),t.invalidateAll&&re().then(re).then(()=>{fe.forEach(({resource:i},s)=>{a?.includes(s)&&i.refresh?.()})})}async function Yt(e){if(e.id!==L?.id){le();const t={};ue.add(t),L={id:e.id,token:t,promise:Ke({...e,preload:t}).then(n=>(ue.delete(t),n.type==="loaded"&&n.state.error&&le(),n)),fork:null}}return L.promise}async function ke(e){const t=(await ee(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function pt(e,t,n){m=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(b,e.props.page),qe=new v.root({target:t,props:{...e.props,stores:j,components:ie},hydrate:n,sync:!1}),await Promise.resolve(),ht(R),n){const a={from:null,to:{params:m.params,route:{id:m.route?.id??null},url:new URL(location.href),scroll:C[y]??q()},willUnload:!1,type:"enter",complete:Promise.resolve()};M.forEach(i=>i(a))}ce=!0}function de({url:e,params:t,branch:n,status:r,error:a,route:i,form:s}){let o="never";if(x&&(e.pathname===x||e.pathname===x+"/"))o="always";else for(const u of n)u?.slash!==void 0&&(o=u.slash);e.pathname=kt(e.pathname,o),e.search=e.search;const l={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:i},props:{constructors:Kt(n).map(u=>u.node.component),page:Ge(b)}};s!==void 0&&(l.props.form=s);let c={},d=!b,p=0;for(let u=0;u<Math.max(n.length,m.branch.length);u+=1){const h=n[u],w=m.branch[u];h?.data!==w?.data&&(d=!0),h&&(c={...c,...h.data},d&&(l.props[`data_${p}`]=c),p+=1)}return(!m.url||e.href!==m.url.href||m.error!==a||s!==void 0&&s!==b.form||d)&&(l.props.page={error:a,params:t,route:{id:i?.id??null},state:{},status:r,url:new URL(e),form:s??null,data:d?c:b.data}),l}async function Ve({loader:e,parent:t,url:n,params:r,route:a,server_data_node:i}){let s=null,o=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();if(c.universal?.load){let d=function(...f){for(const u of f){const{href:h}=new URL(u,n);l.dependencies.add(h)}};const p={tracing:{enabled:!1,root:Ye,current:Ye},route:new Proxy(a,{get:(f,u)=>(o&&(l.route=!0),f[u])}),params:new Proxy(r,{get:(f,u)=>(o&&l.params.add(u),f[u])}),data:i?.data??null,url:Rt(n,()=>{o&&(l.url=!0)},f=>{o&&l.search_params.add(f)},v.hash),async fetch(f,u){f instanceof Request&&(u={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f?.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...u});const{resolved:h,promise:w}=gt(f,u,n);return o&&d(h.href),w},setHeaders:()=>{},depends:d,parent(){return o&&(l.parent=!0),t()},untrack(f){o=!1;try{return f()}finally{o=!0}}};s=await c.universal.load.call(null,p)??null}return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:s,uses:l}:null,data:s??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function gt(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const i=ce?Pt(r,a.href,t):Ut(r,t);return{resolved:a,promise:i}}function Xt(e,t,n,r,a,i){if(Z)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const s of a.search_params)if(r.has(s))return!0;for(const s of a.params)if(i[s]!==m.params[s])return!0;for(const s of a.dependencies)if(se.some(o=>o(new URL(s))))return!0;return!1}function Be(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Qt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),i=t.searchParams.getAll(r);a.every(s=>i.includes(s))&&i.every(s=>a.includes(s))&&n.delete(r)}return n}function Zt({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Ge(b),constructors:[]}}}async function Ke({id:e,invalidating:t,url:n,params:r,route:a,preload:i}){if(L?.id===e)return ue.delete(L.token),L.promise;const{errors:s,layouts:o,leaf:l}=a,c=[...o,l];s.forEach(_=>_?.().catch(()=>{})),c.forEach(_=>_?.[1]().catch(()=>{}));const d=m.url?e!==he(m.url):!1,p=m.route?a.id!==m.route.id:!1,f=Qt(m.url,n);let u=!1;const h=c.map(async(_,g)=>{if(!_)return;const E=m.branch[g];return _[1]===E?.loader&&!Xt(u,p,d,f,E.universal?.uses,r)?E:(u=!0,Ve({loader:_[1],url:n,params:r,route:a,parent:async()=>{const O={};for(let $=0;$<g;$+=1)Object.assign(O,(await h[$])?.data);return O},server_data_node:Be(_[0]?{type:"skip"}:null,_[0]?E?.server:void 0)}))});for(const _ of h)_.catch(()=>{});const w=[];for(let _=0;_<c.length;_+=1)if(c[_])try{w.push(await h[_])}catch(g){if(g instanceof Te)return{type:"redirect",location:g.location};if(ue.has(i))return Zt({error:await Q(g,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let E=je(g),S;if(g instanceof Pe)S=g.body;else{if(await j.updated.check())return await lt(),await Y(n);S=await Q(g,{params:r,url:n,route:{id:a.id}})}const O=await en(_,w,s);return O?de({url:n,params:r,branch:w.slice(0,O.idx).concat(O.node),status:E,error:S,route:a}):await mt(n,{id:a.id},S,E)}else w.push(void 0);return de({url:n,params:r,branch:w,status:200,error:null,route:a,form:t?void 0:null})}async function en(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function ze({status:e,error:t,url:n,route:r}){const a={};let i=null;try{const s=await Ve({loader:Re,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Be(i)}),o={node:await oe(),loader:oe,universal:null,server:null,data:null};return de({url:n,params:a,branch:[s,o],status:e,error:t,route:null})}catch(s){if(s instanceof Te)return De(new URL(s.location,location.href),{},0);throw s}}async function tn(e){const t=e.href;if(ne.has(t))return ne.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(i,s)=>gt(i,s,e).promise})??e;if(typeof a=="string"){const i=new URL(e);v.hash?i.hash=a:i.pathname=a,a=i}return a})();ne.set(t,r),n=await r}catch{ne.delete(t);return}return n}async function ee(e,t){if(e&&!ge(e,x,v.hash)){const n=await tn(e);if(!n)return;const r=nn(n);for(const a of Ne){const i=a.exec(r);if(i)return{id:he(e),invalidating:t,route:a,params:St(i),url:e}}}}function nn(e){return Et(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(x.length))||"/"}function he(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function _t({url:e,type:t,intent:n,delta:r,event:a,scroll:i}){let s=!1;const o=Fe(m,n,e,t,i??null);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const l={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return X||ct.forEach(c=>c(l)),s?null:o}async function z({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s={},redirect_count:o=0,nav_token:l={},accept:c=Se,block:d=Se,event:p}){const f=I;I=l;const u=await ee(t,!1),h=e==="enter"?Fe(m,u,t,e):_t({url:t,type:e,delta:n?.delta,intent:u,scroll:n?.scroll,event:p});if(!h){d(),I===l&&(I=f);return}const w=y,_=R;c(),X=!0,ce&&h.navigation.type!=="enter"&&j.navigating.set(H.current=h.navigation);let g=u&&await Ke(u);if(!g){if(ge(t,x,v.hash))return await Y(t,i);g=await mt(t,{id:null},await Q(new Ie(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,I!==l)return h.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(o<20){await z({type:e,url:new URL(g.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s,redirect_count:o+1,nav_token:l}),h.fulfil(void 0);return}g=await ze({status:500,error:await Q(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await j.updated.check()&&(await lt(),await Y(t,i));if(Le(),Ce(w),dt(_),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),s=n?n.state:s,!n){const k=i?0:1,te={[K]:y+=k,[W]:R+=k,[nt]:s};(i?history.replaceState:history.pushState).call(history,te,"",t),i||Wt(y,R)}const E=u&&L?.id===u.id?L.fork:null;L=null,g.props.page.state=s;let S;if(ce){const k=(await Promise.all(Array.from(Ht,D=>D(h.navigation)))).filter(D=>typeof D=="function");if(k.length>0){let D=function(){k.forEach(_e=>{M.delete(_e)})};k.push(D),k.forEach(_e=>{M.add(_e)})}m=g.state,g.props.page&&(g.props.page.url=t);const te=E&&await E;te?S=te.commit():(qe.$set(g.props),it(g.props.page),S=bt?.()),ft=!0}else await pt(g,xe,!1);const{activeElement:O}=document;await S,await re(),await re();let $=null;if(Xe){const k=n?n.scroll:a?q():null;k?scrollTo(k.x,k.y):($=t.hash&&document.getElementById(wt(t)))?$.scrollIntoView():scrollTo(0,0)}const vt=document.activeElement!==O&&document.activeElement!==document.body;!r&&!vt&&cn(t,!$),Xe=!0,g.props.page&&Object.assign(b,g.props.page),X=!1,e==="popstate"&&ht(R),h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=q()),M.forEach(k=>k(h.navigation)),j.navigating.set(H.current=null)}async function mt(e,t,n,r,a){return e.origin===pe&&e.pathname===location.pathname&&!ut?await ze({status:r,error:n,url:e,route:t}):await Y(e,a)}function rn(){let e,t={element:void 0,href:void 0},n;T.addEventListener("mousemove",o=>{const l=o.target;clearTimeout(e),e=setTimeout(()=>{i(l,N.hover)},20)});function r(o){o.defaultPrevented||i(o.composedPath()[0],N.tap)}T.addEventListener("mousedown",r),T.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const l of o)l.isIntersecting&&(ke(new URL(l.target.href)),a.unobserve(l.target))},{threshold:0});async function i(o,l){const c=at(o,T),d=c===t.element&&c?.href===t.href&&l>=n;if(!c||d)return;const{url:p,external:f,download:u}=Ee(c,x,v.hash);if(f||u)return;const h=ae(c),w=p&&he(m.url)===he(p);if(!(h.reload||w))if(l<=h.preload_data){t={element:c,href:c.href},n=N.tap;const _=await ee(p,!1);if(!_)return;Yt(_)}else l<=h.preload_code&&(t={element:c,href:c.href},n=l,ke(p))}function s(){a.disconnect();for(const o of T.querySelectorAll("a")){const{url:l,external:c,download:d}=Ee(o,x,v.hash);if(c||d)continue;const p=ae(o);p.reload||(p.preload_code===N.viewport&&a.observe(o),p.preload_code===N.eager&&ke(l))}}M.add(s),s()}function Q(e,t){if(e instanceof Pe)return e.body;const n=je(e),r=zt(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function mn(e,t={}){return e=new URL($e(e)),e.origin!==pe?Promise.reject(new Error("goto: invalid URL")):De(e,t,0)}function an(e){if(typeof e=="function")se.push(e);else{const{href:t}=new URL(e,location.href);se.push(n=>n.href===t)}}function wn(){return Z=!0,Jt()}function on(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Qe(),!X){const r=Fe(m,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};ct.forEach(i=>i(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Qe()}),navigator.connection?.saveData||rn(),T.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=at(t.composedPath()[0],T);if(!n)return;const{url:r,external:a,target:i,download:s}=Ee(n,x,v.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const o=ae(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;const[c,d]=(v.hash?r.hash.replace(/^#/,""):r.href).split("#"),p=c===we(location);if(a||o.reload&&(!p||!d)){_t({url:r,type:"link",event:t})?X=!0:t.preventDefault();return}if(d!==void 0&&p){const[,f]=m.url.href.split("#");if(f===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(d));u&&(u.scrollIntoView(),u.focus())}return}if(F=!0,Ce(y),e(r),!o.replace_state)return;F=!1}t.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await z({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href,event:t})}),T.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const s=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ge(s,x,!1))return;const o=t.target,l=ae(o);if(l.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(o,r);s.search=new URLSearchParams(c).toString(),z({type:"form",url:s,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??s.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ae){if(t.state?.[K]){const n=t.state[K];if(I={},n===y)return;const r=C[n],a=t.state[nt]??{},i=new URL(t.state[Dt]??location.href),s=t.state[W],o=m.url?we(location)===we(m.url):!1;if(s===R&&(ft||o)){a!==b.state&&(b.state=a),e(i),C[y]=q(),r&&scrollTo(r.x,r.y),y=n;return}const c=n-y;await z({type:"popstate",url:i,popped:{state:a,scroll:r,delta:c},accept:()=>{y=n,R=s},block:()=>{history.go(-c)},nav_token:I,event:t})}else if(!F){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{F&&(F=!1,history.replaceState({...history.state,[K]:++y,[W]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Mt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&j.navigating.set(H.current=null)});function e(t){m.url=b.url=t,j.page.set(Ge(b)),j.page.notify()}}async function sn(e,{status:t=200,error:n,node_ids:r,params:a,route:i,server_route:s,data:o,form:l}){ut=!0;const c=new URL(location.href);let d;({params:a={},route:i={id:null}}=await ee(c,!1)||{}),d=Ne.find(({id:u})=>u===i.id);let p,f=!0;try{const u=r.map(async(w,_)=>{const g=o[_];return g?.uses&&(g.uses=ln(g.uses)),Ve({loader:v.nodes[w],url:c,params:a,route:i,parent:async()=>{const E={};for(let S=0;S<_;S+=1)Object.assign(E,(await u[S]).data);return E},server_data_node:Be(g)})}),h=await Promise.all(u);if(d){const w=d.layouts;for(let _=0;_<w.length;_++)w[_]||h.splice(_,0,void 0)}p=de({url:c,params:a,branch:h,status:t,error:n,form:l,route:d??null})}catch(u){if(u instanceof Te){await Y(new URL(u.location,location.href));return}p=await ze({status:je(u),error:await Q(u,{url:c,params:a,route:i}),url:c,route:i}),e.textContent="",f=!1}p.props.page&&(p.props.page.state={}),await pt(p,e,f)}function ln(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Ae=!1;function cn(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=wt(e);if(r&&document.getElementById(r)){const{x:i,y:s}=q();setTimeout(()=>{const o=history.state;Ae=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(o,"",e),t&&scrollTo(i,s),Ae=!1})}else{const i=document.body,s=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),s!==null?i.setAttribute("tabindex",s):i.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const i=[];for(let s=0;s<a.rangeCount;s+=1)i.push(a.getRangeAt(s));setTimeout(()=>{if(a.rangeCount===i.length){for(let s=0;s<a.rangeCount;s+=1){const o=i[s],l=a.getRangeAt(s);if(o.commonAncestorContainer!==l.commonAncestorContainer||o.startContainer!==l.startContainer||o.endContainer!==l.endContainer||o.startOffset!==l.startOffset||o.endOffset!==l.endOffset)return}a.removeAllRanges()}})}}}function Fe(e,t,n,r,a=null){let i,s;const o=new Promise((c,d)=>{i=c,s=d});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:q()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:a},willUnload:!t,type:r,complete:o},fulfil:i,reject:s}}function Ge(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function un(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function wt(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{_n as a,mn as g,wn as i,dn as l,b as p,j as s};
@@ -1 +0,0 @@
1
- import{y as p,Q as w,s as c,g as o,x as nt}from"./CbWA7IDo.js";import{c as f}from"./CTpBBS5W.js";function ot(){return f("/api/workspace")}function rt(a){return f("/api/workspace",{method:"PUT",body:JSON.stringify(a)})}function gt(){return f("/api/workspace/mcp-config")}function v(){return f("/api/repos")}function at(a,i,u){return f("/api/repos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:a,description:i,...u?{private:!0}:{}})})}function it(a,i){return f(`/api/repos/${encodeURIComponent(a)}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:i})})}function st(a){return f(`/api/repos/${encodeURIComponent(a)}`,{method:"DELETE"})}function lt(){return f("/api/apps")}function ct(a){return f(`/api/repos/${encodeURIComponent(a)}/entities?summary=true`)}function Ct(a,i,u){return f(`/api/repos/${encodeURIComponent(a)}/entities/${encodeURIComponent(i)}/${encodeURIComponent(u)}`)}function ht(a,i,u,m,l){return f(`/api/repos/${encodeURIComponent(a)}/entities`,{method:"POST",body:JSON.stringify({entityType:i,entityId:u,data:m,content:l})})}function wt(a,i,u){return f(`/api/repos/${encodeURIComponent(a)}/entities/${encodeURIComponent(i)}/${encodeURIComponent(u)}`,{method:"DELETE"})}function Et(a,i,u,m){return f(`/api/repos/${encodeURIComponent(a)}/entities/${encodeURIComponent(i)}/${encodeURIComponent(u)}`,{method:"PUT",body:JSON.stringify(m)})}function $t(a){return f(`/api/repos/${encodeURIComponent(a)}/commit`,{method:"POST"})}function ut(a){return a.replace(/-/g," ").replace(/\b\w/g,i=>i.toUpperCase())}const dt="#e05050";function O(a){if(typeof document>"u")return;const i=a||dt,u=parseInt(i.slice(1,3),16),m=parseInt(i.slice(3,5),16),l=parseInt(i.slice(5,7),16),E=[document.documentElement,document.querySelector("[data-theme]")].filter(Boolean);for(const g of E)g.style.setProperty("--color-accent",i),g.style.setProperty("--color-accent-hover",pt(i,15)),g.style.setProperty("--color-accent-muted",`rgba(${u}, ${m}, ${l}, 0.08)`),g.style.setProperty("--color-link",_(i,15)),g.style.setProperty("--color-badge-bg",`rgba(${u}, ${m}, ${l}, 0.1)`),g.style.setProperty("--color-badge-text",_(i,20))}function pt(a,i){const u=Math.max(0,Math.round(parseInt(a.slice(1,3),16)*(1-i/100))),m=Math.max(0,Math.round(parseInt(a.slice(3,5),16)*(1-i/100))),l=Math.max(0,Math.round(parseInt(a.slice(5,7),16)*(1-i/100)));return`#${u.toString(16).padStart(2,"0")}${m.toString(16).padStart(2,"0")}${l.toString(16).padStart(2,"0")}`}function _(a,i){const u=Math.min(255,Math.round(parseInt(a.slice(1,3),16)+(255-parseInt(a.slice(1,3),16))*i/100)),m=Math.min(255,Math.round(parseInt(a.slice(3,5),16)+(255-parseInt(a.slice(3,5),16))*i/100)),l=Math.min(255,Math.round(parseInt(a.slice(5,7),16)+(255-parseInt(a.slice(5,7),16))*i/100));return`#${u.toString(16).padStart(2,"0")}${m.toString(16).padStart(2,"0")}${l.toString(16).padStart(2,"0")}`}function ft(){let a=p(""),i=p(null),u=p(null),m=p(!1),l=p(w([]));const E={};let g=p(w([])),R=p(!1),M=p(null),y=p(w({})),U=w({}),A=w({}),S=w({}),F=p(0),P=p(null),C=p(""),k=null,$=p(0),I=p(0),x=p("alpha");async function W(){c(R,!0),c(M,null),c($,0),c(I,0);try{const[t,e,n]=await Promise.all([v(),lt().catch(()=>[]),ot().catch(()=>({name:""}))]);c(g,e,!0),c(a,n.name,!0),c(i,n.about??null,!0),c(u,n.accent_color??null,!0),c(m,!0),O(o(u)),c(l,t.map(r=>({name:r.name,type:r.type,private:r.private,sync:r.sync,count:null,entities:[],loading:!1,loaded:!1})),!0),await Promise.all(o(l).map(r=>b(r.name)))}catch(t){c(M,t.message,!0)}finally{c(R,!1)}}function J(t,e,n){const r=o(l).find(s=>s.name===t);r&&(r.entities=r.entities.filter(s=>!(s.id===n&&s.entityType===e)),r.count=r.entities.length)}async function Q(t){o(l).find(n=>n.name===t)&&await b(t,!0)}async function D(){c($,0),c(I,0),await Promise.all(o(l).map(t=>b(t.name,!0)))}async function b(t,e=!1){const n=o(l).find(s=>s.name===t);if(!n||n.loading||!e&&n.loaded)return;const r=(E[t]??0)+1;E[t]=r,e||(n.loading=!0);try{const s=await ct(t);if(E[t]!==r)return;let h=0,L=0;for(const d of s)h+=d.document?.wikilinks?.length??0,L+=d.subContentCount??0;c($,o($)+h),c(I,o(I)+L),n.entities=s.filter(d=>!d.id.toLowerCase().startsWith("readme")).map(d=>({id:d.id,title:d.data?.name??ut(d.id),entityType:d.entityType,repo:t,hasSubContent:!!d.hasSubContent,wikilinks:d.document?.wikilinks??[],createdAt:d.data?.created_at??null,updatedAt:d.data?.updated_at??null})).sort((d,et)=>d.title.localeCompare(et.title)),n.count=n.entities.length,n.loaded=!0}catch(s){console.error(`Failed to load entities for ${t}:`,s)}finally{n.loading=!1}}function j(t){o(y)[t]=!o(y)[t]}function q(t){return o(y)[t]??!1}function T(t,e,n){return`${t}/${e}/${n}`}function B(t,e,n){const r=T(t,e,n),s=U[r]??!1;U[r]=!s,!s&&!A[r]?.loaded&&V(t,e,n)}function H(t,e,n){return U[T(t,e,n)]??!1}function K(t,e,n){return A[T(t,e,n)]??{entries:[],loading:!1,loaded:!1}}async function V(t,e,n){const r=T(t,e,n);A[r]={entries:[],loading:!1,loaded:!0}}function z(t){const e=o(C).trim().toLowerCase();if(!e)return t;const n=[];for(const r of t){const s=r.entities.filter(h=>h.title.toLowerCase().includes(e)||h.id.toLowerCase().includes(e));s.length>0&&n.push({...r,entities:s,count:s.length})}return n}function G(t){if(t&&!o(C)?k={...o(y)}:!t&&o(C)&&k&&(c(y,k,!0),k=null),c(C,t,!0),t){const e=t.trim().toLowerCase();for(const n of o(l)){const r=n.entities.some(s=>s.title.toLowerCase().includes(e)||s.id.toLowerCase().includes(e));o(y)[n.name]=r}}}function X(t){const e=t.startsWith("type:");S[t]=!(S[t]??e)}function Y(t){return S[t]??!1}function Z(t){return S[t]===!1}const N=nt(()=>o(l).reduce((t,e)=>t+(e.count??0),0));function tt(t){return o(g).find(e=>e.entityTypes.includes(t))}return{get name(){return o(a)},get about(){return o(i)},get accentColor(){return o(u)},get nameLoaded(){return o(m)},async updateWorkspace(t){t.accent_color!==void 0&&(c(u,t.accent_color,!0),O(t.accent_color)),await rt(t),t.name?.trim()&&c(a,t.name.trim(),!0),typeof t.about=="string"&&c(i,t.about,!0)},get repos(){return o(l)},get apps(){return o(g)},get loading(){return o(R)},get error(){return o(M)},get totalEntities(){return o(N)},get totalLinks(){return o($)},get totalFiles(){return o(I)},get sortedRepos(){const t=[...o(l)].sort((e,n)=>e.name.localeCompare(n.name));return z(t)},get filteredIds(){const t=o(C).trim().toLowerCase();if(!t)return null;const e=new Set;for(const n of o(l))for(const r of n.entities)(r.title.toLowerCase().includes(t)||r.id.toLowerCase().includes(t))&&e.add(r.id);return e},get filterQuery(){return o(C)},setFilterQuery:G,get sortMode(){return o(x)},set sortMode(t){c(x,t,!0)},get recentEntities(){const t=o(C).trim().toLowerCase();let e=[];for(const n of o(l))for(const r of n.entities)t&&!r.title.toLowerCase().includes(t)&&!r.id.toLowerCase().includes(t)||e.push(r);return e.sort((n,r)=>{const s=n.updatedAt??"";return(r.updatedAt??"").localeCompare(s)})},get sidebarScrollTop(){return o(F)},set sidebarScrollTop(t){c(F,t,!0)},get lastAutoExpandedFor(){return o(P)},set lastAutoExpandedFor(t){c(P,t,!0)},load:W,loadEntities:b,removeEntity:J,refreshEntities:Q,refreshAll:D,toggleRepo:j,isExpanded:q,toggleEntity:B,isEntityExpanded:H,getEntityContents:K,toggleFolder:X,isFolderExpanded:Y,isFolderCollapsed:Z,getAppForEntityType:tt,async renameCollectionTo(t,e){await it(t,e);const n=o(l).find(r=>r.name===t);n&&(n.name=e,o(y)[t]&&(o(y)[e]=!0,delete o(y)[t]))},async removeCollection(t){await st(t),c(l,o(l).filter(e=>e.name!==t),!0),delete o(y)[t]},async addCollection(t,e,n){await at(t,e,n);const r=await v();c(l,r.map(s=>o(l).find(L=>L.name===s.name)??{name:s.name,type:s.type,private:s.private,count:null,entities:[],loading:!1,loaded:!1}),!0),o(y)[t]=!0,await b(t)}}}const It=ft();export{$t as a,gt as b,ht as c,wt as d,Ct as f,Et as u,It as w};
@@ -1 +0,0 @@
1
- import{a as i,s as T,f as P,b as h,c as Y}from"./C6O5NX2h.js";import{p as k,l as M,s as A,d as V,g as b,a as Z,c as p,n as j,r as f,b as D,m as C,t as G,R as q,v as u,u as E}from"./CbWA7IDo.js";import{a as F,s as I,d as J}from"./CTpBBS5W.js";import{l as B,p as z,i as g}from"./Da6P0VJZ.js";import{i as K}from"./D2e_f7WK.js";import{n as L}from"./C1-cwUjT.js";import{B as Q}from"./VncLXI-e.js";var S=P("<title> </title>"),U=P('<svg><!><path d="M17.74,30,16,29l4-7h6a2,2,0,0,0,2-2V8a2,2,0,0,0-2-2H6A2,2,0,0,0,4,8V20a2,2,0,0,0,2,2h9v2H6a4,4,0,0,1-4-4V8A4,4,0,0,1,6,4H26a4,4,0,0,1,4,4V20a4,4,0,0,1-4,4H21.16Z"></path><path d="M8 10H24V12H8z"></path><path d="M8 16H18V18H8z"></path></svg>');function W(y,t){const s=B(t,["children","$$slots","$$events","$$legacy"]),_=B(s,["size","title"]);k(t,!1);const r=C(),l=C();let c=z(t,"size",8,16),o=z(t,"title",8,void 0);M(()=>(V(s),V(o())),()=>{A(r,s["aria-label"]||s["aria-labelledby"]||o())}),M(()=>(b(r),V(s)),()=>{A(l,{"aria-hidden":b(r)?void 0:!0,role:b(r)?"img":void 0,focusable:Number(s.tabindex)===0?!0:void 0})}),Z(),K();var n=U();F(n,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:c(),height:c(),...b(l),..._}));var w=p(n);{var x=d=>{var v=S(),m=p(v,!0);f(v),G(()=>T(m,o())),i(d,v)};g(w,d=>{o()&&d(x)})}j(3),f(n),i(y,n),D()}var X=h('<span class="toggle-btn active svelte-r6dy5f" aria-current="page"><span class="toggle-label">Details</span></span>'),$=h('<a class="toggle-btn svelte-r6dy5f"><span class="toggle-label">Details</span></a>'),aa=h('<span class="toggle-btn active svelte-r6dy5f" aria-current="page"><span class="toggle-label">Graph</span></span>'),ea=h('<a class="toggle-btn svelte-r6dy5f" href="/graph"><span class="toggle-label">Graph</span></a>'),ta=h('<div class="view-toolbar svelte-r6dy5f"><div></div> <div class="view-toggles svelte-r6dy5f"><!> <!></div> <div class="toolbar-right svelte-r6dy5f"><!> <!></div></div>');function ca(y,t){k(t,!0);let s=z(t,"activeView",3,"entity");const _=q("chat");var r=ta(),l=u(p(r),2),c=p(l);{var o=a=>{var e=X();i(a,e)},n=a=>{var e=$();G(()=>I(e,"href",L.entityPath??"/")),i(a,e)};g(c,a=>{s()==="entity"?a(o):a(n,!1)})}var w=u(c,2);{var x=a=>{var e=aa();i(a,e)},d=a=>{var e=ea();i(a,e)};g(w,a=>{s()==="graph"?a(x):a(d,!1)})}f(l);var v=u(l,2),m=p(v);{var R=a=>{var e=Y(),H=E(e);J(H,()=>t.right),i(a,e)};g(m,a=>{t.right&&a(R)})}var N=u(m,2);{var O=a=>{Q(a,{variant:"accent",size:"icon",class:"chat-toggle",title:"Open Agent",get onclick(){return _.toggle},children:(e,H)=>{W(e,{size:14})},$$slots:{default:!0}})};g(N,a=>{_.open||a(O)})}f(v),f(r),i(y,r),D()}export{ca as V};
@@ -1 +0,0 @@
1
- import{c as mr,a as pe,b as Ve}from"./C6O5NX2h.js";import{aB as fr,a0 as te,W as pr,L as br,a4 as gr,aC as hr,h as vr,p as Ke,u as yr,b as Ye,c as _e,aD as Ie,r as Ne}from"./CbWA7IDo.js";import{f as xr,a as we,d as Ee}from"./CTpBBS5W.js";import{p as Q,i as wr,b as ke,r as qe}from"./Da6P0VJZ.js";function kr(e,r,o=r){var t=new WeakSet;fr(e,"input",async n=>{var s=n?e.defaultValue:e.value;if(s=ve(e)?ye(s):s,o(s),te!==null&&t.add(te),await pr(),s!==(s=r())){var a=e.selectionStart,m=e.selectionEnd,d=e.value.length;if(e.value=s??"",m!==null){var f=e.value.length;a===m&&m===d&&f>d?(e.selectionStart=f,e.selectionEnd=f):(e.selectionStart=a,e.selectionEnd=Math.min(m,f))}}}),(vr&&e.defaultValue!==e.value||br(r)==null&&e.value)&&(o(ve(e)?ye(e.value):e.value),te!==null&&t.add(te)),gr(()=>{var n=r();if(e===document.activeElement){var s=hr??te;if(t.has(s))return}ve(e)&&n===ye(e.value)||e.type==="date"&&!n&&!e.value||n!==e.value&&(e.value=n??"")})}function ve(e){var r=e.type;return r==="number"||r==="range"}function ye(e){return e===""?null:+e}const Cr=(e,r)=>{const o=new Array(e.length+r.length);for(let t=0;t<e.length;t++)o[t]=e[t];for(let t=0;t<r.length;t++)o[e.length+t]=r[t];return o},zr=(e,r)=>({classGroupId:e,validator:r}),Xe=(e=new Map,r=null,o)=>({nextPart:e,validators:r,classGroupId:o}),be="-",Oe=[],Sr="arbitrary..",Ar=e=>{const r=Vr(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Mr(a);const m=a.split(be),d=m[0]===""&&m.length>1?1:0;return Je(m,d,r)},getConflictingClassGroupIds:(a,m)=>{if(m){const d=t[a],f=o[a];return d?f?Cr(f,d):d:f||Oe}return o[a]||Oe}}},Je=(e,r,o)=>{if(e.length-r===0)return o.classGroupId;const n=e[r],s=o.nextPart.get(n);if(s){const f=Je(e,r+1,s);if(f)return f}const a=o.validators;if(a===null)return;const m=r===0?e.join(be):e.slice(r).join(be),d=a.length;for(let f=0;f<d;f++){const z=a[f];if(z.validator(m))return z.classGroupId}},Mr=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),o=r.indexOf(":"),t=r.slice(0,o);return t?Sr+t:void 0})(),Vr=e=>{const{theme:r,classGroups:o}=e;return Tr(o,r)},Tr=(e,r)=>{const o=Xe();for(const t in e){const n=e[t];Te(n,o,t,r)}return o},Te=(e,r,o,t)=>{const n=e.length;for(let s=0;s<n;s++){const a=e[s];Gr(a,r,o,t)}},Gr=(e,r,o,t)=>{if(typeof e=="string"){Pr(e,r,o);return}if(typeof e=="function"){Rr(e,r,o,t);return}_r(e,r,o,t)},Pr=(e,r,o)=>{const t=e===""?r:He(r,e);t.classGroupId=o},Rr=(e,r,o,t)=>{if(Ir(e)){Te(e(t),r,o,t);return}r.validators===null&&(r.validators=[]),r.validators.push(zr(o,e))},_r=(e,r,o,t)=>{const n=Object.entries(e),s=n.length;for(let a=0;a<s;a++){const[m,d]=n[a];Te(d,He(r,m),o,t)}},He=(e,r)=>{let o=e;const t=r.split(be),n=t.length;for(let s=0;s<n;s++){const a=t[s];let m=o.nextPart.get(a);m||(m=Xe(),o.nextPart.set(a,m)),o=m}return o},Ir=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Nr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),t=Object.create(null);const n=(s,a)=>{o[s]=a,r++,r>e&&(r=0,t=o,o=Object.create(null))};return{get(s){let a=o[s];if(a!==void 0)return a;if((a=t[s])!==void 0)return n(s,a),a},set(s,a){s in o?o[s]=a:n(s,a)}}},Ce="!",Le=":",Er=[],je=(e,r,o,t,n)=>({modifiers:e,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:t,isExternal:n}),Or=e=>{const{prefix:r,experimentalParseClassName:o}=e;let t=n=>{const s=[];let a=0,m=0,d=0,f;const z=n.length;for(let k=0;k<z;k++){const G=n[k];if(a===0&&m===0){if(G===Le){s.push(n.slice(d,k)),d=k+1;continue}if(G==="/"){f=k;continue}}G==="["?a++:G==="]"?a--:G==="("?m++:G===")"&&m--}const S=s.length===0?n:n.slice(d);let A=S,g=!1;S.endsWith(Ce)?(A=S.slice(0,-1),g=!0):S.startsWith(Ce)&&(A=S.slice(1),g=!0);const _=f&&f>d?f-d:void 0;return je(s,g,A,_)};if(r){const n=r+Le,s=t;t=a=>a.startsWith(n)?s(a.slice(n.length)):je(Er,!1,a,void 0,!0)}if(o){const n=t;t=s=>o({className:s,parseClassName:n})}return t},Lr=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((o,t)=>{r.set(o,1e6+t)}),o=>{const t=[];let n=[];for(let s=0;s<o.length;s++){const a=o[s],m=a[0]==="[",d=r.has(a);m||d?(n.length>0&&(n.sort(),t.push(...n),n=[]),t.push(a)):n.push(a)}return n.length>0&&(n.sort(),t.push(...n)),t}},jr=e=>({cache:Nr(e.cacheSize),parseClassName:Or(e),sortModifiers:Lr(e),...Ar(e)}),Br=/\s+/,Fr=(e,r)=>{const{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:n,sortModifiers:s}=r,a=[],m=e.trim().split(Br);let d="";for(let f=m.length-1;f>=0;f-=1){const z=m[f],{isExternal:S,modifiers:A,hasImportantModifier:g,baseClassName:_,maybePostfixModifierPosition:k}=o(z);if(S){d=z+(d.length>0?" "+d:d);continue}let G=!!k,O=t(G?_.substring(0,k):_);if(!O){if(!G){d=z+(d.length>0?" "+d:d);continue}if(O=t(_),!O){d=z+(d.length>0?" "+d:d);continue}G=!1}const j=A.length===0?"":A.length===1?A[0]:s(A).join(":"),I=g?j+Ce:j,K=I+O;if(a.indexOf(K)>-1)continue;a.push(K);const P=n(O,G);for(let F=0;F<P.length;++F){const J=P[F];a.push(I+J)}d=z+(d.length>0?" "+d:d)}return d},Wr=(...e)=>{let r=0,o,t,n="";for(;r<e.length;)(o=e[r++])&&(t=Qe(o))&&(n&&(n+=" "),n+=t);return n},Qe=e=>{if(typeof e=="string")return e;let r,o="";for(let t=0;t<e.length;t++)e[t]&&(r=Qe(e[t]))&&(o&&(o+=" "),o+=r);return o},ze=(e,...r)=>{let o,t,n,s;const a=d=>{const f=r.reduce((z,S)=>S(z),e());return o=jr(f),t=o.cache.get,n=o.cache.set,s=m,m(d)},m=d=>{const f=t(d);if(f)return f;const z=Fr(d,o);return n(d,z),z};return s=a,(...d)=>s(Wr(...d))},Ur=[],V=e=>{const r=o=>o[e]||Ur;return r.isThemeGetter=!0,r},Ze=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$e=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Dr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Kr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Xr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Y=e=>Dr.test(e),b=e=>!!e&&!Number.isNaN(Number(e)),q=e=>!!e&&Number.isInteger(Number(e)),xe=e=>e.endsWith("%")&&b(e.slice(0,-1)),U=e=>Kr.test(e),er=()=>!0,Hr=e=>Yr.test(e)&&!qr.test(e),Ge=()=>!1,Qr=e=>Xr.test(e),Zr=e=>Jr.test(e),$r=e=>!l(e)&&!i(e),et=e=>X(e,or,Ge),l=e=>Ze.test(e),H=e=>X(e,sr,Hr),Be=e=>X(e,it,b),rt=e=>X(e,ar,er),tt=e=>X(e,nr,Ge),Fe=e=>X(e,rr,Ge),ot=e=>X(e,tr,Zr),de=e=>X(e,lr,Qr),i=e=>$e.test(e),oe=e=>Z(e,sr),st=e=>Z(e,nr),We=e=>Z(e,rr),nt=e=>Z(e,or),at=e=>Z(e,tr),ue=e=>Z(e,lr,!0),lt=e=>Z(e,ar,!0),X=(e,r,o)=>{const t=Ze.exec(e);return t?t[1]?r(t[1]):o(t[2]):!1},Z=(e,r,o=!1)=>{const t=$e.exec(e);return t?t[1]?r(t[1]):o:!1},rr=e=>e==="position"||e==="percentage",tr=e=>e==="image"||e==="url",or=e=>e==="length"||e==="size"||e==="bg-size",sr=e=>e==="length",it=e=>e==="number",nr=e=>e==="family-name",ar=e=>e==="number"||e==="weight",lr=e=>e==="shadow",Se=()=>{const e=V("color"),r=V("font"),o=V("text"),t=V("font-weight"),n=V("tracking"),s=V("leading"),a=V("breakpoint"),m=V("container"),d=V("spacing"),f=V("radius"),z=V("shadow"),S=V("inset-shadow"),A=V("text-shadow"),g=V("drop-shadow"),_=V("blur"),k=V("perspective"),G=V("aspect"),O=V("ease"),j=V("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...K(),i,l],F=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto","contain","none"],u=()=>[i,l,d],R=()=>[Y,"full","auto",...u()],ee=()=>[q,"none","subgrid",i,l],re=()=>["auto",{span:["full",q,i,l]},q,i,l],$=()=>[q,"auto",i,l],ne=()=>["auto","min","max","fr",i,l],h=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],v=()=>["start","end","center","stretch","center-safe","end-safe"],p=()=>["auto",...u()],y=()=>[Y,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...u()],x=()=>[Y,"screen","full","dvw","lvw","svw","min","max","fit",...u()],C=()=>[Y,"screen","full","lh","dvh","lvh","svh","min","max","fit",...u()],c=()=>[e,i,l],B=()=>[...K(),We,Fe,{position:[i,l]}],N=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",nt,et,{size:[i,l]}],W=()=>[xe,oe,H],w=()=>["","none","full",f,i,l],M=()=>["",b,oe,H],ae=()=>["solid","dashed","dotted","double"],Pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>[b,xe,We,Fe],Re=()=>["","none",_,i,l],le=()=>["none",b,i,l],ie=()=>["none",b,i,l],he=()=>[b,i,l],ce=()=>[Y,"full",...u()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[U],breakpoint:[U],color:[er],container:[U],"drop-shadow":[U],ease:["in","out","in-out"],font:[$r],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[U],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[U],shadow:[U],spacing:["px",b],text:[U],"text-shadow":[U],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Y,l,i,G]}],container:["container"],columns:[{columns:[b,l,i,m]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[q,"auto",i,l]}],basis:[{basis:[Y,"full","auto",m,...u()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[b,Y,"auto","initial","none",l]}],grow:[{grow:["",b,i,l]}],shrink:[{shrink:["",b,i,l]}],order:[{order:[q,"first","last","none",i,l]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:u()}],"gap-x":[{"gap-x":u()}],"gap-y":[{"gap-y":u()}],"justify-content":[{justify:[...h(),"normal"]}],"justify-items":[{"justify-items":[...v(),"normal"]}],"justify-self":[{"justify-self":["auto",...v()]}],"align-content":[{content:["normal",...h()]}],"align-items":[{items:[...v(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...v(),{baseline:["","last"]}]}],"place-content":[{"place-content":h()}],"place-items":[{"place-items":[...v(),"baseline"]}],"place-self":[{"place-self":["auto",...v()]}],p:[{p:u()}],px:[{px:u()}],py:[{py:u()}],ps:[{ps:u()}],pe:[{pe:u()}],pbs:[{pbs:u()}],pbe:[{pbe:u()}],pt:[{pt:u()}],pr:[{pr:u()}],pb:[{pb:u()}],pl:[{pl:u()}],m:[{m:p()}],mx:[{mx:p()}],my:[{my:p()}],ms:[{ms:p()}],me:[{me:p()}],mbs:[{mbs:p()}],mbe:[{mbe:p()}],mt:[{mt:p()}],mr:[{mr:p()}],mb:[{mb:p()}],ml:[{ml:p()}],"space-x":[{"space-x":u()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":u()}],"space-y-reverse":["space-y-reverse"],size:[{size:y()}],"inline-size":[{inline:["auto",...x()]}],"min-inline-size":[{"min-inline":["auto",...x()]}],"max-inline-size":[{"max-inline":["none",...x()]}],"block-size":[{block:["auto",...C()]}],"min-block-size":[{"min-block":["auto",...C()]}],"max-block-size":[{"max-block":["none",...C()]}],w:[{w:[m,"screen",...y()]}],"min-w":[{"min-w":[m,"screen","none",...y()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[a]},...y()]}],h:[{h:["screen","lh",...y()]}],"min-h":[{"min-h":["screen","lh","none",...y()]}],"max-h":[{"max-h":["screen","lh",...y()]}],"font-size":[{text:["base",o,oe,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,lt,rt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xe,l]}],"font-family":[{font:[st,tt,r]}],"font-features":[{"font-features":[l]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,i,l]}],"line-clamp":[{"line-clamp":[b,"none",i,Be]}],leading:[{leading:[s,...u()]}],"list-image":[{"list-image":["none",i,l]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",i,l]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c()}],"text-color":[{text:c()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[b,"from-font","auto",i,H]}],"text-decoration-color":[{decoration:c()}],"underline-offset":[{"underline-offset":[b,"auto",i,l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i,l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",i,l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:B()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},q,i,l],radial:["",i,l],conic:[q,i,l]},at,ot]}],"bg-color":[{bg:c()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:c()}],"gradient-via":[{via:c()}],"gradient-to":[{to:c()}],rounded:[{rounded:w()}],"rounded-s":[{"rounded-s":w()}],"rounded-e":[{"rounded-e":w()}],"rounded-t":[{"rounded-t":w()}],"rounded-r":[{"rounded-r":w()}],"rounded-b":[{"rounded-b":w()}],"rounded-l":[{"rounded-l":w()}],"rounded-ss":[{"rounded-ss":w()}],"rounded-se":[{"rounded-se":w()}],"rounded-ee":[{"rounded-ee":w()}],"rounded-es":[{"rounded-es":w()}],"rounded-tl":[{"rounded-tl":w()}],"rounded-tr":[{"rounded-tr":w()}],"rounded-br":[{"rounded-br":w()}],"rounded-bl":[{"rounded-bl":w()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-bs":[{"border-bs":M()}],"border-w-be":[{"border-be":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:c()}],"border-color-x":[{"border-x":c()}],"border-color-y":[{"border-y":c()}],"border-color-s":[{"border-s":c()}],"border-color-e":[{"border-e":c()}],"border-color-bs":[{"border-bs":c()}],"border-color-be":[{"border-be":c()}],"border-color-t":[{"border-t":c()}],"border-color-r":[{"border-r":c()}],"border-color-b":[{"border-b":c()}],"border-color-l":[{"border-l":c()}],"divide-color":[{divide:c()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[b,i,l]}],"outline-w":[{outline:["",b,oe,H]}],"outline-color":[{outline:c()}],shadow:[{shadow:["","none",z,ue,de]}],"shadow-color":[{shadow:c()}],"inset-shadow":[{"inset-shadow":["none",S,ue,de]}],"inset-shadow-color":[{"inset-shadow":c()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c()}],"ring-offset-w":[{"ring-offset":[b,H]}],"ring-offset-color":[{"ring-offset":c()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":c()}],"text-shadow":[{"text-shadow":["none",A,ue,de]}],"text-shadow-color":[{"text-shadow":c()}],opacity:[{opacity:[b,i,l]}],"mix-blend":[{"mix-blend":[...Pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Pe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[b]}],"mask-image-linear-from-pos":[{"mask-linear-from":T()}],"mask-image-linear-to-pos":[{"mask-linear-to":T()}],"mask-image-linear-from-color":[{"mask-linear-from":c()}],"mask-image-linear-to-color":[{"mask-linear-to":c()}],"mask-image-t-from-pos":[{"mask-t-from":T()}],"mask-image-t-to-pos":[{"mask-t-to":T()}],"mask-image-t-from-color":[{"mask-t-from":c()}],"mask-image-t-to-color":[{"mask-t-to":c()}],"mask-image-r-from-pos":[{"mask-r-from":T()}],"mask-image-r-to-pos":[{"mask-r-to":T()}],"mask-image-r-from-color":[{"mask-r-from":c()}],"mask-image-r-to-color":[{"mask-r-to":c()}],"mask-image-b-from-pos":[{"mask-b-from":T()}],"mask-image-b-to-pos":[{"mask-b-to":T()}],"mask-image-b-from-color":[{"mask-b-from":c()}],"mask-image-b-to-color":[{"mask-b-to":c()}],"mask-image-l-from-pos":[{"mask-l-from":T()}],"mask-image-l-to-pos":[{"mask-l-to":T()}],"mask-image-l-from-color":[{"mask-l-from":c()}],"mask-image-l-to-color":[{"mask-l-to":c()}],"mask-image-x-from-pos":[{"mask-x-from":T()}],"mask-image-x-to-pos":[{"mask-x-to":T()}],"mask-image-x-from-color":[{"mask-x-from":c()}],"mask-image-x-to-color":[{"mask-x-to":c()}],"mask-image-y-from-pos":[{"mask-y-from":T()}],"mask-image-y-to-pos":[{"mask-y-to":T()}],"mask-image-y-from-color":[{"mask-y-from":c()}],"mask-image-y-to-color":[{"mask-y-to":c()}],"mask-image-radial":[{"mask-radial":[i,l]}],"mask-image-radial-from-pos":[{"mask-radial-from":T()}],"mask-image-radial-to-pos":[{"mask-radial-to":T()}],"mask-image-radial-from-color":[{"mask-radial-from":c()}],"mask-image-radial-to-color":[{"mask-radial-to":c()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":K()}],"mask-image-conic-pos":[{"mask-conic":[b]}],"mask-image-conic-from-pos":[{"mask-conic-from":T()}],"mask-image-conic-to-pos":[{"mask-conic-to":T()}],"mask-image-conic-from-color":[{"mask-conic-from":c()}],"mask-image-conic-to-color":[{"mask-conic-to":c()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",i,l]}],filter:[{filter:["","none",i,l]}],blur:[{blur:Re()}],brightness:[{brightness:[b,i,l]}],contrast:[{contrast:[b,i,l]}],"drop-shadow":[{"drop-shadow":["","none",g,ue,de]}],"drop-shadow-color":[{"drop-shadow":c()}],grayscale:[{grayscale:["",b,i,l]}],"hue-rotate":[{"hue-rotate":[b,i,l]}],invert:[{invert:["",b,i,l]}],saturate:[{saturate:[b,i,l]}],sepia:[{sepia:["",b,i,l]}],"backdrop-filter":[{"backdrop-filter":["","none",i,l]}],"backdrop-blur":[{"backdrop-blur":Re()}],"backdrop-brightness":[{"backdrop-brightness":[b,i,l]}],"backdrop-contrast":[{"backdrop-contrast":[b,i,l]}],"backdrop-grayscale":[{"backdrop-grayscale":["",b,i,l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b,i,l]}],"backdrop-invert":[{"backdrop-invert":["",b,i,l]}],"backdrop-opacity":[{"backdrop-opacity":[b,i,l]}],"backdrop-saturate":[{"backdrop-saturate":[b,i,l]}],"backdrop-sepia":[{"backdrop-sepia":["",b,i,l]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":u()}],"border-spacing-x":[{"border-spacing-x":u()}],"border-spacing-y":[{"border-spacing-y":u()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",i,l]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[b,"initial",i,l]}],ease:[{ease:["linear","initial",O,i,l]}],delay:[{delay:[b,i,l]}],animate:[{animate:["none",j,i,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,i,l]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:ie()}],"scale-x":[{"scale-x":ie()}],"scale-y":[{"scale-y":ie()}],"scale-z":[{"scale-z":ie()}],"scale-3d":["scale-3d"],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[i,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":["translate-none"],accent:[{accent:c()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i,l]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mbs":[{"scroll-mbs":u()}],"scroll-mbe":[{"scroll-mbe":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pbs":[{"scroll-pbs":u()}],"scroll-pbe":[{"scroll-pbe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",i,l]}],fill:[{fill:["none",...c()]}],"stroke-w":[{stroke:[b,oe,H,Be]}],stroke:[{stroke:["none",...c()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ct=(e,{cacheSize:r,prefix:o,experimentalParseClassName:t,extend:n={},override:s={}})=>(se(e,"cacheSize",r),se(e,"prefix",o),se(e,"experimentalParseClassName",t),me(e.theme,s.theme),me(e.classGroups,s.classGroups),me(e.conflictingClassGroups,s.conflictingClassGroups),me(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),se(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),fe(e.theme,n.theme),fe(e.classGroups,n.classGroups),fe(e.conflictingClassGroups,n.conflictingClassGroups),fe(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),ir(e,n,"orderSensitiveModifiers"),e),se=(e,r,o)=>{o!==void 0&&(e[r]=o)},me=(e,r)=>{if(r)for(const o in r)se(e,o,r[o])},fe=(e,r)=>{if(r)for(const o in r)ir(e,r,o)},ir=(e,r,o)=>{const t=r[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t)},dt=(e,...r)=>typeof e=="function"?ze(Se,e,...r):ze(()=>ct(Se(),e),...r),cr=ze(Se);function Ae(...e){return cr(xr(e))}var ut=/\s+/g,mt=e=>typeof e!="string"||!e?e:e.replace(ut," ").trim(),ge=(...e)=>{const r=[],o=t=>{if(!t&&t!==0&&t!==0n)return;if(Array.isArray(t)){for(let s=0,a=t.length;s<a;s++)o(t[s]);return}const n=typeof t;if(n==="string"||n==="number"||n==="bigint"){if(n==="number"&&t!==t)return;r.push(String(t))}else if(n==="object"){const s=Object.keys(t);for(let a=0,m=s.length;a<m;a++){const d=s[a];t[d]&&r.push(d)}}};for(let t=0,n=e.length;t<n;t++){const s=e[t];s!=null&&o(s)}return r.length>0?mt(r.join(" ")):void 0},Ue=e=>e===!1?"false":e===!0?"true":e===0?"0":e,E=e=>{if(!e||typeof e!="object")return!0;for(const r in e)return!1;return!0},ft=(e,r)=>{if(e===r)return!0;if(!e||!r)return!1;const o=Object.keys(e),t=Object.keys(r);if(o.length!==t.length)return!1;for(let n=0;n<o.length;n++){const s=o[n];if(!t.includes(s)||e[s]!==r[s])return!1}return!0},pt=(e,r)=>{for(const o in r)if(Object.prototype.hasOwnProperty.call(r,o)){const t=r[o];o in e?e[o]=ge(e[o],t):e[o]=t}return e},dr=(e,r)=>{for(let o=0;o<e.length;o++){const t=e[o];Array.isArray(t)?dr(t,r):t&&r.push(t)}},ur=(...e)=>{const r=[];dr(e,r);const o=[];for(let t=0;t<r.length;t++)r[t]&&o.push(r[t]);return o},Me=(e,r)=>{const o={};for(const t in e){const n=e[t];if(t in r){const s=r[t];Array.isArray(n)||Array.isArray(s)?o[t]=ur(s,n):typeof n=="object"&&typeof s=="object"&&n&&s?o[t]=Me(n,s):o[t]=s+" "+n}else o[t]=n}for(const t in r)t in e||(o[t]=r[t]);return o},bt={twMerge:!0,twMergeConfig:{}};function gt(){let e=null,r={},o=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(t){e=t},get cachedTwMergeConfig(){return r},set cachedTwMergeConfig(t){r=t},get didTwMergeConfigChange(){return o},set didTwMergeConfigChange(t){o=t},reset(){e=null,r={},o=!1}}}var D=gt(),ht=e=>{const r=(t,n)=>{const{extend:s=null,slots:a={},variants:m={},compoundVariants:d=[],compoundSlots:f=[],defaultVariants:z={}}=t,S={...bt,...n},A=s?.base?ge(s.base,t?.base):t?.base,g=s?.variants&&!E(s.variants)?Me(m,s.variants):m,_=s?.defaultVariants&&!E(s.defaultVariants)?{...s.defaultVariants,...z}:z;!E(S.twMergeConfig)&&!ft(S.twMergeConfig,D.cachedTwMergeConfig)&&(D.didTwMergeConfigChange=!0,D.cachedTwMergeConfig=S.twMergeConfig);const k=E(s?.slots),G=E(a)?{}:{base:ge(t?.base,k&&s?.base),...a},O=k?G:pt({...s?.slots},E(G)?{base:t?.base}:G),j=E(s?.compoundVariants)?d:ur(s?.compoundVariants,d),I=P=>{if(E(g)&&E(a)&&k)return e(A,P?.class,P?.className)(S);if(j&&!Array.isArray(j))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof j}`);if(f&&!Array.isArray(f))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof f}`);const F=(h,v=g,p=null,y=null)=>{const x=v[h];if(!x||E(x))return null;const C=y?.[h]??P?.[h];if(C===null)return null;const c=Ue(C);if(typeof c=="object")return null;const B=_?.[h],N=c??Ue(B);return x[N||"false"]},J=()=>{if(!g)return null;const h=Object.keys(g),v=[];for(let p=0;p<h.length;p++){const y=F(h[p],g);y&&v.push(y)}return v},u=(h,v)=>{if(!g||typeof g!="object")return null;const p=[];for(const y in g){const x=F(y,g,h,v),C=h==="base"&&typeof x=="string"?x:x&&x[h];C&&p.push(C)}return p},R={};for(const h in P){const v=P[h];v!==void 0&&(R[h]=v)}const ee=(h,v)=>{const p=typeof P?.[h]=="object"?{[h]:P[h]?.initial}:{};return{..._,...R,...p,...v}},re=(h=[],v)=>{const p=[],y=h.length;for(let x=0;x<y;x++){const{class:C,className:c,...B}=h[x];let N=!0;const L=ee(null,v);for(const W in B){const w=B[W],M=L[W];if(Array.isArray(w)){if(!w.includes(M)){N=!1;break}}else{if((w==null||w===!1)&&(M==null||M===!1))continue;if(M!==w){N=!1;break}}}N&&(C&&p.push(C),c&&p.push(c))}return p},$=h=>{const v=re(j,h);if(!Array.isArray(v))return v;const p={},y=e;for(let x=0;x<v.length;x++){const C=v[x];if(typeof C=="string")p.base=y(p.base,C)(S);else if(typeof C=="object")for(const c in C)p[c]=y(p[c],C[c])(S)}return p},ne=h=>{if(f.length<1)return null;const v={},p=ee(null,h);for(let y=0;y<f.length;y++){const{slots:x=[],class:C,className:c,...B}=f[y];if(!E(B)){let N=!0;for(const L in B){const W=p[L],w=B[L];if(W===void 0||(Array.isArray(w)?!w.includes(W):w!==W)){N=!1;break}}if(!N)continue}for(let N=0;N<x.length;N++){const L=x[N];v[L]||(v[L]=[]),v[L].push([C,c])}}return v};if(!E(a)||!k){const h={};if(typeof O=="object"&&!E(O)){const v=e;for(const p in O)h[p]=y=>{const x=$(y),C=ne(y);return v(O[p],u(p,y),x?x[p]:void 0,C?C[p]:void 0,y?.class,y?.className)(S)}}return h}return e(A,J(),re(j),P?.class,P?.className)(S)},K=()=>{if(!(!g||typeof g!="object"))return Object.keys(g)};return I.variantKeys=K(),I.extend=s,I.base=A,I.slots=O,I.variants=g,I.defaultVariants=_,I.compoundSlots=f,I.compoundVariants=j,I};return{tv:r,createTV:t=>(n,s)=>r(n,s?Me(t,s):t)}},vt=e=>E(e)?cr:dt({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),yt=(e,r)=>{const o=ge(e);return!o||!(r?.twMerge??!0)?o:((!D.cachedTwMerge||D.didTwMergeConfigChange)&&(D.didTwMergeConfigChange=!1,D.cachedTwMerge=vt(D.cachedTwMergeConfig)),D.cachedTwMerge(o)||void 0)},xt=(...e)=>r=>yt(e,r),{tv:wt}=ht(xt);const De=wt({base:"inline-flex shrink-0 items-center justify-center gap-1.5 rounded-[4px] font-normal whitespace-nowrap transition-[color,background] duration-150 cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",variants:{variant:{default:"bg-[var(--color-bg-surface)] text-[var(--color-text-primary)] border border-[var(--color-border)] hover:bg-[var(--color-bg-hover)]",ghost:"bg-transparent text-[var(--color-text-tertiary)] hover:text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-hover)]",outline:"bg-transparent text-[var(--color-text-secondary)] border border-[var(--color-border)] hover:bg-[var(--color-bg-hover)]",accent:"bg-[var(--color-accent)] text-white hover:bg-[var(--color-accent-hover)] border border-transparent",destructive:"bg-[var(--color-destructive)] text-white hover:bg-[var(--color-destructive-hover)]",link:"text-[var(--color-accent)] underline-offset-4 hover:underline"},size:{default:"h-7 px-3 text-xs",sm:"h-6 px-2 text-[12px]",lg:"h-8 px-4 text-sm",icon:"size-7 p-0"}},defaultVariants:{variant:"default",size:"default"}});var kt=Ve("<a><!></a>"),Ct=Ve("<button><!></button>");function Tt(e,r){Ke(r,!0);let o=Q(r,"variant",3,"default"),t=Q(r,"size",3,"default"),n=Q(r,"ref",15,null),s=Q(r,"href",3,void 0),a=Q(r,"type",3,"button"),m=qe(r,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]);var d=mr(),f=yr(d);{var z=A=>{var g=kt();we(g,k=>({class:k,href:r.disabled?void 0:s(),"aria-disabled":r.disabled,role:r.disabled?"link":void 0,tabindex:r.disabled?-1:void 0,...m}),[()=>Ae(De({variant:o(),size:t()}),r.class)]);var _=_e(g);Ee(_,()=>r.children??Ie),Ne(g),ke(g,k=>n(k),()=>n()),pe(A,g)},S=A=>{var g=Ct();we(g,k=>({class:k,type:a(),disabled:r.disabled,...m}),[()=>Ae(De({variant:o(),size:t()}),r.class)]);var _=_e(g);Ee(_,()=>r.children??Ie),Ne(g),ke(g,k=>n(k),()=>n()),pe(A,g)};wr(f,A=>{s()?A(z):A(S,!1)})}pe(e,d),Ye()}var zt=Ve("<input/>");function Gt(e,r){Ke(r,!0);let o=Q(r,"ref",15,null),t=Q(r,"value",15),n=qe(r,["$$slots","$$events","$$legacy","class","ref","value"]);var s=zt();we(s,a=>({class:a,...n}),[()=>Ae("h-8 w-full rounded-md border border-[var(--color-border)] bg-[var(--color-bg)] px-2.5 text-[14px] text-[var(--color-text-primary)] font-[inherit] outline-none transition-colors placeholder:text-[var(--color-text-tertiary)] focus:border-[var(--color-accent,#e05050)] disabled:cursor-not-allowed disabled:opacity-50",r.class)],void 0,void 0,void 0,!0),ke(s,a=>o(a),()=>o()),kr(s,t),pe(e,s),Ye()}export{Tt as B,Gt as I,De as a,kr as b,Ae as c,wt as t};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CFcVto3C.js","../chunks/DbMgkTYM.js","../chunks/CbWA7IDo.js","../chunks/Da6P0VJZ.js","../chunks/C6O5NX2h.js","../chunks/CTpBBS5W.js","../chunks/BODLxJgV.js","../chunks/DfAt9W4x.js","../chunks/DkBrGIdc.js","../chunks/C1-cwUjT.js","../chunks/D2e_f7WK.js","../chunks/CBPCy2wh.js","../assets/0.D8EoqqcB.css","../nodes/1.kwWUR70L.js","../nodes/2.CDdU9S1E.js","../chunks/BnE0Rldz.js","../chunks/VncLXI-e.js","../assets/AppShell.B5bKOpwF.css","../chunks/Dn9jmZhf.js","../assets/ViewToolbar.39HnhXNY.css","../assets/2.DRZ4qWy8.css","../nodes/3.BfKpWeS4.js","../chunks/5Q3iZDZU.js","../chunks/CqkleIqs.js","../assets/3.Bxy1xbfc.css","../nodes/4.CbKVrNwa.js","../assets/4.aFSdMTV2.css","../nodes/5.BuNwdHzP.js","../assets/5.CquhUpOu.css","../nodes/6.ZwV9BJkM.js","../assets/6.CT4xL4K3.css","../nodes/7.MVZNtYbB.js","../assets/7.BMfme7ZM.css","../nodes/8.CqsLiYjT.js","../assets/8.BUrHkYry.css"])))=>i.map(i=>d[i]);
2
- import{c as b,_ as u}from"../chunks/DbMgkTYM.js";import{s as y,S as W,g as m,T as Y,U as q,m as z,p as B,I as F,K as H,V as J,W as N,u as E,v as Q,b as X,y as p,c as Z,r as $,x as P,t as tt}from"../chunks/CbWA7IDo.js";import{h as et,m as rt,u as st,a as h,c as O,b as V,t as at,s as ot}from"../chunks/C6O5NX2h.js";import{p as R,i as x,b as A}from"../chunks/Da6P0VJZ.js";function nt(a){return class extends it{constructor(t){super({component:a,...t})}}}class it{#e;#t;constructor(t){var s=new Map,n=(e,r)=>{var c=z(r,!1,!1);return s.set(e,c),c};const i=new Proxy({...t.props||{},$$events:{}},{get(e,r){return m(s.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===W?!0:(m(s.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,c){return y(s.get(r)??n(r,c),c),Reflect.set(e,r,c)}});this.#t=(t.hydrate?et:rt)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Y(),this.#e=i.$$events;for(const e of Object.keys(this.#t))e==="$set"||e==="$destroy"||e==="$on"||q(this,e,{get(){return this.#t[e]},set(r){this.#t[e]=r},enumerable:!0});this.#t.$set=e=>{Object.assign(i,e)},this.#t.$destroy=()=>{st(this.#t)}}$set(t){this.#t.$set(t)}$on(t,s){this.#e[t]=this.#e[t]||[];const n=(...i)=>s.call(this,...i);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(i=>i!==n)}}$destroy(){this.#t.$destroy()}}const gt={};var ct=V('<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>'),ut=V("<!> <!>",1);function mt(a,t){B(t,!0);let s=R(t,"components",23,()=>[]),n=R(t,"data_0",3,null),i=R(t,"data_1",3,null);F(()=>t.stores.page.set(t.page)),H(()=>{t.stores,t.page,t.constructors,s(),t.form,n(),i(),t.stores.page.notify()});let e=p(!1),r=p(!1),c=p(null);J(()=>{const o=t.stores.page.subscribe(()=>{m(e)&&(y(r,!0),N().then(()=>{y(c,document.title||"untitled page",!0)}))});return y(e,!0),o});const j=P(()=>t.constructors[1]);var I=ut(),L=E(I);{var w=o=>{const _=P(()=>t.constructors[0]);var d=O(),v=E(d);b(v,()=>m(_),(l,f)=>{A(f(l,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(g,dt)=>{var T=O(),M=E(T);b(M,()=>m(j),(G,K)=>{A(K(G,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),U=>s()[1]=U,()=>s()?.[1])}),h(g,T)},$$slots:{default:!0}}),g=>s()[0]=g,()=>s()?.[0])}),h(o,d)},k=o=>{const _=P(()=>t.constructors[0]);var d=O(),v=E(d);b(v,()=>m(_),(l,f)=>{A(f(l,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),g=>s()[0]=g,()=>s()?.[0])}),h(o,d)};x(L,o=>{t.constructors[1]?o(w):o(k,!1)})}var C=Q(L,2);{var S=o=>{var _=ct(),d=Z(_);{var v=l=>{var f=at();tt(()=>ot(f,m(c))),h(l,f)};x(d,l=>{m(r)&&l(v)})}$(_),h(o,_)};x(C,o=>{m(e)&&o(S)})}h(a,I),X()}const Et=nt(mt),yt=[()=>u(()=>import("../nodes/0.CFcVto3C.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),()=>u(()=>import("../nodes/1.kwWUR70L.js"),__vite__mapDeps([13,4,2,10,7]),import.meta.url),()=>u(()=>import("../nodes/2.CDdU9S1E.js"),__vite__mapDeps([14,4,2,10,3,15,5,1,9,7,8,16,17,18,19,20]),import.meta.url),()=>u(()=>import("../nodes/3.BfKpWeS4.js"),__vite__mapDeps([21,8,2,5,3,4,1,9,7,15,10,16,17,18,19,22,23,11,24]),import.meta.url),()=>u(()=>import("../nodes/4.CbKVrNwa.js"),__vite__mapDeps([25,8,2,5,3,4,15,1,9,7,10,16,17,26]),import.meta.url),()=>u(()=>import("../nodes/5.BuNwdHzP.js"),__vite__mapDeps([27,4,2,15,3,5,1,9,7,8,10,16,17,18,19,28]),import.meta.url),()=>u(()=>import("../nodes/6.ZwV9BJkM.js"),__vite__mapDeps([29,4,2,3,6,7,5,16,30]),import.meta.url),()=>u(()=>import("../nodes/7.MVZNtYbB.js"),__vite__mapDeps([31,4,2,10,15,3,5,1,9,7,8,16,17,22,32]),import.meta.url),()=>u(()=>import("../nodes/8.CqsLiYjT.js"),__vite__mapDeps([33,4,2,3,6,7,5,8,16,34]),import.meta.url)],bt=[],pt={"/":[2],"/graph":[5],"/login":[6],"/settings":[7],"/setup":[8],"/[repo]/[type]/[id]":[3],"/[repo]/[type]/[id]/edit":[4]},D={handleError:(({error:a})=>{console.error(a)}),reroute:(()=>{}),transport:{}},_t=Object.fromEntries(Object.entries(D.transport).map(([a,t])=>[a,t.decode])),Pt=Object.fromEntries(Object.entries(D.transport).map(([a,t])=>[a,t.encode])),Ot=!1,Rt=(a,t)=>_t[a](t);export{Rt as decode,_t as decoders,pt as dictionary,Pt as encoders,Ot as hash,D as hooks,gt as matchers,yt as nodes,Et as root,bt as server_loads};
@@ -1 +0,0 @@
1
- import{l as o,a as r}from"../chunks/DfAt9W4x.js";export{o as load_css,r as start};
@@ -1,10 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/2BuoqS97.js","../chunks/DbMgkTYM.js","../chunks/CbWA7IDo.js","../chunks/Da6P0VJZ.js","../chunks/CqkleIqs.js","../chunks/DnL9f0lc.js","../chunks/CX_61fY8.js","../chunks/CscoF-YL.js","../chunks/D7ZqAKi9.js","../chunks/C7VoTosa.js","../chunks/CrdV0ttd.js"])))=>i.map(i=>d[i]);
2
- import{c as Ft,_ as Ut}from"../chunks/DbMgkTYM.js";import{a as s,b as it,l as $t,o as yt,d as Yt,e as fn,c as B,g as hn,t as We,s as kt,f as at}from"../chunks/C6O5NX2h.js";import{p as Mt,c as W,r as R,t as Y,b as At,bn as mn,R as Ze,bo as Le,y as k,Q as Vt,K as lt,s as r,g as e,L as Gt,V as He,v as Nt,x as g,aD as _t,u as A,I as tn,bp as Re,l as zt,a as fe,n as he,m as Dt,d as ct,w as gn,$ as vn}from"../chunks/CbWA7IDo.js";import{i as wt,e as bt,s as C,h as Pe,d as st,a as te,S as wn,b as se}from"../chunks/CTpBBS5W.js";import{h as bn}from"../chunks/BODLxJgV.js";import{g as Ce}from"../chunks/DfAt9W4x.js";import{w as je}from"../chunks/DkBrGIdc.js";import{e as Oe,t as X,c as vt,S as _n,n as yn,r as Ue}from"../chunks/C1-cwUjT.js";import{p as S,i as z,b as en,s as de,r as nn,l as Lt}from"../chunks/Da6P0VJZ.js";import{i as me}from"../chunks/D2e_f7WK.js";import{I as xn}from"../chunks/CBPCy2wh.js";const In=Array(12).fill(0);var Tn=it('<div class="sonner-loading-bar"></div>'),En=it('<div><div class="sonner-spinner"></div></div>');function Sn(o,t){Mt(t,!0);var n=En(),i=W(n);Oe(i,23,()=>In,(a,l)=>`spinner-bar-${l}`,(a,l)=>{var u=Tn();s(a,u)}),R(i),R(n),Y(a=>{bt(n,1,a),C(n,"data-visible",t.visible)},[()=>wt(["sonner-loading-wrapper",t.class].filter(Boolean).join(" "))]),s(o,n),At()}const Mn=typeof window<"u"?window:void 0;function An(o){let t=o.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class Bn{#e;#t;constructor(t,n){this.#e=t,this.#t=$t(n)}get current(){return this.#t(),this.#e()}}const Pn=/\(.+\)/,Cn=new Set(["all","print","screen","and","or","not","only"]);class kn extends Bn{constructor(t,n){let i=Pn.test(t)||t.split(/[\s,]+/).some(l=>Cn.has(l.trim()))?t:`(${t})`;const a=window.matchMedia(i);super(()=>a.matches,l=>yt(a,"change",l))}}let zn=class{#e;#t;constructor(t={}){const{window:n=Mn,document:i=n?.document}=t;n!==void 0&&(this.#e=i,this.#t=$t(a=>{const l=yt(n,"focusin",a),u=yt(n,"focusout",a);return()=>{l(),u()}}))}get current(){return this.#t?.(),this.#e?An(this.#e):null}};new zn;class Dn{#e;#t;constructor(t){this.#e=t,this.#t=Symbol(t)}get key(){return this.#t}exists(){return mn(this.#t)}get(){const t=Ze(this.#t);if(t===void 0)throw new Error(`Context "${this.#e}" not found`);return t}getOr(t){const n=Ze(this.#t);return n===void 0?t:n}set(t){return Le(this.#t,t)}}const Ln=new Dn("<Toaster/>");function le(o){return o.label!==void 0}function On(){let o=k(Vt(typeof document<"u"?document.hidden:!1));return lt(()=>yt(document,"visibilitychange",()=>{r(o,document.hidden,!0)})),{get current(){return e(o)}}}const Ye=4e3,Hn=14,Rn=45,pn=200,Fn=.05,Nn={toast:"",title:"",description:"",loader:"",closeButton:"",cancelButton:"",actionButton:"",action:"",warning:"",error:"",success:"",default:"",info:"",loading:""};function Vn(o){const[t,n]=o.split("-"),i=[];return t&&i.push(t),n&&i.push(n),i}function qe(o){return 1/(1.5+Math.abs(o)/20)}var Wn=it("<div><!></div>"),Zn=it('<button data-close-button=""><!></button>'),jn=it('<div data-icon=""><!> <!></div>'),Un=it('<div data-description=""><!></div>'),Yn=it('<button data-button="" data-cancel=""> </button>'),qn=it('<button data-button=""> </button>'),Kn=it('<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>',1),Qn=it('<li aria-atomic="true" data-sonner-toast=""><!> <!></li>');function Xn(o,t){Mt(t,!0);const n=m=>{var w=B(),T=A(w);{var L=M=>{var K=Wn(),pt=W(K);st(pt,()=>t.loadingIcon),R(K),Y(Qt=>{bt(K,1,Qt),C(K,"data-visible",e(p)==="loading")},[()=>wt(vt(e(ot)?.loader,t.toast?.classes?.loader,"sonner-loader"))]),s(M,K)},O=M=>{{let K=g(()=>vt(e(ot)?.loader,t.toast.classes?.loader)),pt=g(()=>e(p)==="loading");Sn(M,{get class(){return e(K)},get visible(){return e(pt)}})}};z(T,M=>{t.loadingIcon?M(L):M(O,!1)})}s(m,w)};let i=S(t,"cancelButtonStyle",3,""),a=S(t,"actionButtonStyle",3,""),l=S(t,"descriptionClass",3,""),u=S(t,"unstyled",3,!1),v=S(t,"defaultRichColors",3,!1);const d={...Nn};let _=k(!1),P=k(!1),D=k(!1),I=k(!1),q=k(!1),U=k(0),rt=k(0),Bt=t.toast.duration||t.duration||Ye,et=k(void 0),G=k(null),qt=k(null);const ve=g(()=>t.index===0),we=g(()=>t.index+1<=t.visibleToasts),p=g(()=>t.toast.type),nt=g(()=>t.toast.dismissible!==void 0?t.toast.dismissible!==!1:t.toast.dismissable!==!1),Wt=g(()=>t.toast.class||""),Ot=g(()=>t.toast.descriptionClass||""),xt=g(()=>X.heights.findIndex(m=>m.toastId===t.toast.id)||0),It=g(()=>t.toast.closeButton??t.closeButton),Ht=g(()=>t.toast.duration??t.duration??Ye);let Pt=null;const ee=g(()=>t.position.split("-")),be=g(()=>X.heights.reduce((m,w,T)=>T>=e(xt)?m:m+w.height,0)),_e=On(),ye=g(()=>t.toast.invert||t.invert),Kt=g(()=>e(p)==="loading"),ot=g(()=>({...d,...t.classes})),xe=g(()=>t.toast.title),Ie=g(()=>t.toast.description);let Tt=k(0),ne=k(0);const Zt=g(()=>Math.round(e(xt)*Hn+e(be)));lt(()=>{e(xe),e(Ie);let m;t.expanded||t.expandByDefault?m=1:m=1-t.index*Fn;const w=Gt(()=>e(et));if(w===void 0)return;w.style.setProperty("height","auto");const T=w.offsetHeight,L=w.getBoundingClientRect().height,O=Math.round(L/m+Number.EPSILON&100)/100;w.style.removeProperty("height");let M;Math.abs(O-T)<1?M=O:M=T,r(rt,M,!0),X.setHeight({toastId:t.toast.id,height:M})});function c(){r(P,!0),r(U,e(Zt),!0),X.removeHeight(t.toast.id),setTimeout(()=>{X.remove(t.toast.id)},pn)}let N;const ht=g(()=>t.toast.promise&&e(p)==="loading"||t.toast.duration===Number.POSITIVE_INFINITY);function mt(){r(Tt,new Date().getTime(),!0),N=setTimeout(()=>{t.toast.onAutoClose?.(t.toast),c()},Bt)}function Rt(){if(e(ne)<e(Tt)){const m=new Date().getTime()-e(Tt);Bt=Bt-m}r(ne,new Date().getTime(),!0)}lt(()=>{t.toast.updated&&(clearTimeout(N),Bt=e(Ht),mt())}),lt(()=>(e(ht)||(t.expanded||t.interacting||t.pauseWhenPageIsHidden&&_e.current?Rt():mt()),()=>clearTimeout(N))),He(()=>{r(_,!0);const m=e(et)?.getBoundingClientRect().height;return r(rt,m,!0),X.setHeight({toastId:t.toast.id,height:m}),()=>{X.removeHeight(t.toast.id)}}),lt(()=>{t.toast.delete&&Gt(()=>{c(),t.toast.onDismiss?.(t.toast)})});const Te=m=>{if(e(Kt))return;r(U,e(Zt),!0);const w=m.target;w.setPointerCapture(m.pointerId),w.tagName!=="BUTTON"&&(r(D,!0),Pt={x:m.clientX,y:m.clientY})},Ne=()=>{if(e(I)||!e(nt))return;Pt=null;const m=Number(e(et)?.style.getPropertyValue("--swipe-amount-x").replace("px","")||0),w=Number(e(et)?.style.getPropertyValue("--swipe-amount-y").replace("px","")||0),T=new Date().getTime()-0,L=e(G)==="x"?m:w,O=Math.abs(L)/T;if(Math.abs(L)>=Rn||O>.11){r(U,e(Zt),!0),t.toast.onDismiss?.(t.toast),e(G)==="x"?r(qt,m>0?"right":"left",!0):r(qt,w>0?"down":"up",!0),c(),r(I,!0);return}else e(et)?.style.setProperty("--swipe-amount-x","0px"),e(et)?.style.setProperty("--swipe-amount-y","0px");r(q,!1),r(D,!1),r(G,null)},oe=m=>{if(!Pt||!e(nt)||(window.getSelection()?.toString().length??-1)>0)return;const T=m.clientY-Pt.y,L=m.clientX-Pt.x,O=t.swipeDirections??Vn(t.position);!e(G)&&(Math.abs(L)>1||Math.abs(T)>1)&&r(G,Math.abs(L)>Math.abs(T)?"x":"y",!0);let M={x:0,y:0};if(e(G)==="y"){if(O.includes("top")||O.includes("bottom"))if(O.includes("top")&&T<0||O.includes("bottom")&&T>0)M.y=T;else{const K=T*qe(T);M.y=Math.abs(K)<Math.abs(T)?K:T}}else if(e(G)==="x"&&(O.includes("left")||O.includes("right")))if(O.includes("left")&&L<0||O.includes("right")&&L>0)M.x=L;else{const K=L*qe(L);M.x=Math.abs(K)<Math.abs(L)?K:L}(Math.abs(M.x)>0||Math.abs(M.y)>0)&&r(q,!0),e(et)?.style.setProperty("--swipe-amount-x",`${M.x}px`),e(et)?.style.setProperty("--swipe-amount-y",`${M.y}px`)},gt=()=>{r(D,!1),r(G,null),Pt=null},Et=g(()=>t.toast.icon?t.toast.icon:e(p)==="success"?t.successIcon:e(p)==="error"?t.errorIcon:e(p)==="warning"?t.warningIcon:e(p)==="info"?t.infoIcon:e(p)==="loading"?t.loadingIcon:null);var h=Qn();C(h,"tabindex",0);let jt;var ie=W(h);{var Ve=m=>{var w=Zn(),T=W(w);st(T,()=>t.closeIcon??_t),R(w),Y(L=>{C(w,"aria-label",t.closeButtonAriaLabel),C(w,"data-disabled",e(Kt)),bt(w,1,L)},[()=>wt(vt(e(ot)?.closeButton,t.toast?.classes?.closeButton))]),Yt("click",w,()=>{e(Kt)||!e(nt)||(c(),t.toast.onDismiss?.(t.toast))}),s(m,w)};z(ie,m=>{e(It)&&!t.toast.component&&e(p)!=="loading"&&t.closeIcon!==null&&m(Ve)})}var Ee=Nt(ie,2);{var Se=m=>{const w=g(()=>t.toast.component);var T=B(),L=A(T);Ft(L,()=>e(w),(O,M)=>{M(O,de(()=>t.toast.componentProps,{closeToast:c}))}),s(m,T)},Me=m=>{var w=Kn(),T=A(w);{var L=y=>{var E=jn(),f=W(E);{var H=b=>{var x=B(),tt=A(x);{var V=Ct=>{var re=B(),Be=A(re);Ft(Be,()=>t.toast.icon,(Q,$)=>{$(Q,{})}),s(Ct,re)},ft=Ct=>{n(Ct)};z(tt,Ct=>{t.toast.icon?Ct(V):Ct(ft,!1)})}s(b,x)};z(f,b=>{(t.toast.promise||e(p)==="loading")&&b(H)})}var j=Nt(f,2);{var F=b=>{var x=B(),tt=A(x);{var V=Q=>{var $=B(),St=A($);Ft(St,()=>t.toast.icon,(un,dn)=>{dn(un,{})}),s(Q,$)},ft=Q=>{var $=B(),St=A($);st(St,()=>t.successIcon??_t),s(Q,$)},Ct=Q=>{var $=B(),St=A($);st(St,()=>t.errorIcon??_t),s(Q,$)},re=Q=>{var $=B(),St=A($);st(St,()=>t.warningIcon??_t),s(Q,$)},Be=Q=>{var $=B(),St=A($);st(St,()=>t.infoIcon??_t),s(Q,$)};z(tt,Q=>{t.toast.icon?Q(V):e(p)==="success"?Q(ft,1):e(p)==="error"?Q(Ct,2):e(p)==="warning"?Q(re,3):e(p)==="info"&&Q(Be,4)})}s(b,x)};z(j,b=>{t.toast.type!=="loading"&&b(F)})}R(E),Y(b=>bt(E,1,b),[()=>wt(vt(e(ot)?.icon,t.toast?.classes?.icon))]),s(y,E)};z(T,y=>{(e(p)||t.toast.icon||t.toast.promise)&&t.toast.icon!==null&&(e(Et)!==null||t.toast.icon)&&y(L)})}var O=Nt(T,2),M=W(O),K=W(M);{var pt=y=>{var E=B(),f=A(E);{var H=F=>{const b=g(()=>t.toast.title);var x=B(),tt=A(x);Ft(tt,()=>e(b),(V,ft)=>{ft(V,de(()=>t.toast.componentProps))}),s(F,x)},j=F=>{var b=We();Y(()=>kt(b,t.toast.title)),s(F,b)};z(f,F=>{typeof t.toast.title!="string"?F(H):F(j,!1)})}s(y,E)};z(K,y=>{t.toast.title&&y(pt)})}R(M);var Qt=Nt(M,2);{var Ae=y=>{var E=Un(),f=W(E);{var H=F=>{const b=g(()=>t.toast.description);var x=B(),tt=A(x);Ft(tt,()=>e(b),(V,ft)=>{ft(V,de(()=>t.toast.componentProps))}),s(F,x)},j=F=>{var b=We();Y(()=>kt(b,t.toast.description)),s(F,b)};z(f,F=>{typeof t.toast.description!="string"?F(H):F(j,!1)})}R(E),Y(F=>bt(E,1,F),[()=>wt(vt(l(),e(Ot),e(ot)?.description,t.toast.classes?.description))]),s(y,E)};z(Qt,y=>{t.toast.description&&y(Ae)})}R(O);var ae=Nt(O,2);{var ut=y=>{var E=B(),f=A(E);{var H=b=>{var x=B(),tt=A(x);Ft(tt,()=>t.toast.cancel,(V,ft)=>{ft(V,{})}),s(b,x)},j=b=>{var x=Yn(),tt=W(x,!0);R(x),Y(V=>{Pe(x,t.toast.cancelButtonStyle??i()),bt(x,1,V),kt(tt,t.toast.cancel.label)},[()=>wt(vt(e(ot)?.cancelButton,t.toast?.classes?.cancelButton))]),Yt("click",x,V=>{le(t.toast.cancel)&&e(nt)&&(t.toast.cancel?.onClick?.(V),c())}),s(b,x)},F=g(()=>le(t.toast.cancel));z(f,b=>{typeof t.toast.cancel=="function"?b(H):e(F)&&b(j,1)})}s(y,E)};z(ae,y=>{t.toast.cancel&&y(ut)})}var J=Nt(ae,2);{var dt=y=>{var E=B(),f=A(E);{var H=b=>{var x=B(),tt=A(x);Ft(tt,()=>t.toast.action,(V,ft)=>{ft(V,{})}),s(b,x)},j=b=>{var x=qn(),tt=W(x,!0);R(x),Y(V=>{Pe(x,t.toast.actionButtonStyle??a()),bt(x,1,V),kt(tt,t.toast.action.label)},[()=>wt(vt(e(ot)?.actionButton,t.toast?.classes?.actionButton))]),Yt("click",x,V=>{le(t.toast.action)&&(t.toast.action?.onClick(V),!V.defaultPrevented&&c())}),s(b,x)},F=g(()=>le(t.toast.action));z(f,b=>{typeof t.toast.action=="function"?b(H):e(F)&&b(j,1)})}s(y,E)};z(J,y=>{t.toast.action&&y(dt)})}Y((y,E)=>{bt(O,1,y),bt(M,1,E)},[()=>wt(vt(e(ot)?.content,t.toast?.classes?.content)),()=>wt(vt(e(ot)?.title,t.toast?.classes?.title))]),s(m,w)};z(Ee,m=>{t.toast.component?m(Se):m(Me,!1)})}R(h),en(h,m=>r(et,m),()=>e(et)),Y((m,w,T)=>{bt(h,1,m),C(h,"aria-live",t.toast.important?"assertive":"polite"),C(h,"data-rich-colors",t.toast.richColors??v()),C(h,"data-styled",!(t.toast.component||t.toast.unstyled||u())),C(h,"data-mounted",e(_)),C(h,"data-promise",w),C(h,"data-swiped",e(q)),C(h,"data-removed",e(P)),C(h,"data-visible",e(we)),C(h,"data-y-position",e(ee)[0]),C(h,"data-x-position",e(ee)[1]),C(h,"data-index",t.index),C(h,"data-front",e(ve)),C(h,"data-swiping",e(D)),C(h,"data-dismissible",e(nt)),C(h,"data-type",e(p)),C(h,"data-invert",e(ye)),C(h,"data-swipe-out",e(I)),C(h,"data-swipe-direction",e(qt)),C(h,"data-expanded",T),jt=Pe(h,`${t.style} ${t.toast.style}`,jt,{"--index":t.index,"--toasts-before":t.index,"--z-index":X.toasts.length-t.index,"--offset":`${e(P)?e(U):e(Zt)}px`,"--initial-height":t.expandByDefault?"auto":`${e(rt)}px`})},[()=>wt(vt(t.class,e(Wt),e(ot)?.toast,t.toast?.classes?.toast,e(ot)?.[e(p)],t.toast?.classes?.[e(p)])),()=>!!t.toast.promise,()=>!!(t.expanded||t.expandByDefault&&e(_))]),Yt("pointermove",h,oe),Yt("pointerup",h,Ne),Yt("pointerdown",h,Te),fn("dragend",h,gt),s(o,h),At()}hn(["pointermove","pointerup","pointerdown","click"]);var Gn=at('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>');function Jn(o){var t=Gn();s(o,t)}var $n=at('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>');function to(o){var t=$n();s(o,t)}var eo=at('<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>');function no(o){var t=eo();s(o,t)}var oo=at('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>');function io(o){var t=oo();s(o,t)}var ao=at('<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');function ro(o){var t=ao();s(o,t)}const so=3,on="24px",an="16px",lo=4e3,co=356,uo=14,ke="dark",ce="light";function fo(o,t){const n={};return[o,t].forEach((i,a)=>{const l=a===1,u=l?"--mobile-offset":"--offset",v=l?an:on;function d(_){["top","right","bottom","left"].forEach(P=>{n[`${u}-${P}`]=typeof _=="number"?`${_}px`:_})}typeof i=="number"||typeof i=="string"?d(i):typeof i=="object"?["top","right","bottom","left"].forEach(_=>{const P=i[_];P===void 0?n[`${u}-${_}`]=v:n[`${u}-${_}`]=typeof P=="number"?`${P}px`:P}):d(v)}),n}var ho=it("<ol></ol>"),mo=it('<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-nbs0zk"><!></section>');function go(o,t){Mt(t,!0);function n(c){return c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ke:ce}let i=S(t,"invert",3,!1),a=S(t,"position",3,"bottom-right"),l=S(t,"hotkey",19,()=>["altKey","KeyT"]),u=S(t,"expand",3,!1),v=S(t,"closeButton",3,!1),d=S(t,"offset",3,on),_=S(t,"mobileOffset",3,an),P=S(t,"theme",3,"light"),D=S(t,"richColors",3,!1),I=S(t,"duration",3,lo),q=S(t,"visibleToasts",3,so),U=S(t,"toastOptions",19,()=>({})),rt=S(t,"dir",7,"auto"),Bt=S(t,"gap",3,uo),et=S(t,"pauseWhenPageIsHidden",3,!1),G=S(t,"containerAriaLabel",3,"Notifications"),qt=S(t,"closeButtonAriaLabel",3,"Close toast"),ve=nn(t,["$$slots","$$events","$$legacy","invert","position","hotkey","expand","closeButton","offset","mobileOffset","theme","richColors","duration","visibleToasts","toastOptions","dir","gap","pauseWhenPageIsHidden","loadingIcon","successIcon","errorIcon","warningIcon","closeIcon","infoIcon","containerAriaLabel","class","closeButtonAriaLabel","onblur","onfocus","onmouseenter","onmousemove","onmouseleave","ondragend","onpointerdown","onpointerup"]);function we(){if(rt()!=="auto")return rt();if(typeof window>"u"||typeof document>"u")return"ltr";const c=document.documentElement.getAttribute("dir");return c==="auto"||!c?(Gt(()=>rt(window.getComputedStyle(document.documentElement).direction??"ltr")),rt()):(Gt(()=>rt(c)),c)}const p=g(()=>Array.from(new Set([a(),...X.toasts.filter(c=>c.position).map(c=>c.position)].filter(Boolean))));let nt=k(!1),Wt=k(!1),Ot=k(Vt(n(P()))),xt=k(void 0),It=k(null),Ht=k(!1);const Pt=g(()=>l().join("+").replace(/Key/g,"").replace(/Digit/g,""));lt(()=>{X.toasts.length<=1&&r(nt,!1)}),lt(()=>{const c=X.toasts.filter(N=>N.dismiss&&!N.delete);if(c.length>0){const N=X.toasts.map(ht=>c.find(Rt=>Rt.id===ht.id)?{...ht,delete:!0}:ht);X.toasts=N}}),lt(()=>()=>{e(xt)&&e(It)&&(e(It).focus({preventScroll:!0}),r(It,null),r(Ht,!1))}),He(()=>(X.reset(),yt(document,"keydown",N=>{l().every(mt=>N[mt]||N.code===mt)&&(r(nt,!0),e(xt)?.focus()),N.code==="Escape"&&(document.activeElement===e(xt)||e(xt)?.contains(document.activeElement))&&r(nt,!1)}))),lt(()=>{if(P()!=="system"&&r(Ot,P()),typeof window<"u"){P()==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?r(Ot,ke):r(Ot,ce));const c=window.matchMedia("(prefers-color-scheme: dark)"),N=({matches:ht})=>{P()==="system"&&r(Ot,ht?ke:ce,!0)};"addEventListener"in c?c.addEventListener("change",N):c.addListener(N)}});const ee=c=>{t.onblur?.(c),e(Ht)&&!c.currentTarget.contains(c.relatedTarget)&&(r(Ht,!1),e(It)&&(e(It).focus({preventScroll:!0}),r(It,null)))},be=c=>{t.onfocus?.(c),!(c.target instanceof HTMLElement&&c.target.dataset.dismissible==="false")&&(e(Ht)||(r(Ht,!0),r(It,c.relatedTarget,!0)))},_e=c=>{t.onpointerdown?.(c),!(c.target instanceof HTMLElement&&c.target.dataset.dismissible==="false")&&r(Wt,!0)},ye=c=>{t.onmouseenter?.(c),r(nt,!0)},Kt=c=>{t.onmouseleave?.(c),e(Wt)||r(nt,!1)},ot=c=>{t.onmousemove?.(c),r(nt,!0)},xe=c=>{t.ondragend?.(c),r(nt,!1)},Ie=c=>{t.onpointerup?.(c),r(Wt,!1)};Ln.set(new _n);var Tt=mo();C(Tt,"tabindex",-1);var ne=W(Tt);{var Zt=c=>{var N=B(),ht=A(N);Oe(ht,18,()=>e(p),mt=>mt,(mt,Rt,Te,Ne)=>{const oe=g(()=>{const[h,jt]=Rt.split("-");return{y:h,x:jt}}),gt=g(()=>fo(d(),_()));var Et=ho();te(Et,h=>({tabindex:-1,dir:h,class:t.class,"data-sonner-toaster":!0,"data-sonner-theme":e(Ot),"data-y-position":e(oe).y,"data-x-position":e(oe).x,style:t.style,onblur:ee,onfocus:be,onmouseenter:ye,onmousemove:ot,onmouseleave:Kt,ondragend:xe,onpointerdown:_e,onpointerup:Ie,...ve,[wn]:{"--front-toast-height":`${X.heights[0]?.height}px`,"--width":`${co}px`,"--gap":`${Bt()}px`,"--offset-top":e(gt)["--offset-top"],"--offset-right":e(gt)["--offset-right"],"--offset-bottom":e(gt)["--offset-bottom"],"--offset-left":e(gt)["--offset-left"],"--mobile-offset-top":e(gt)["--mobile-offset-top"],"--mobile-offset-right":e(gt)["--mobile-offset-right"],"--mobile-offset-bottom":e(gt)["--mobile-offset-bottom"],"--mobile-offset-left":e(gt)["--mobile-offset-left"]}}),[we],void 0,void 0,"svelte-nbs0zk"),Oe(Et,23,()=>X.toasts.filter(h=>!h.position&&e(Te)===0||h.position===Rt),h=>h.id,(h,jt,ie,Ve)=>{{const Ee=ut=>{var J=B(),dt=A(J);{var y=f=>{var H=B(),j=A(H);st(j,()=>t.successIcon??_t),s(f,H)},E=f=>{Jn(f)};z(dt,f=>{t.successIcon?f(y):t.successIcon!==null&&f(E,1)})}s(ut,J)},Se=ut=>{var J=B(),dt=A(J);{var y=f=>{var H=B(),j=A(H);st(j,()=>t.errorIcon??_t),s(f,H)},E=f=>{to(f)};z(dt,f=>{t.errorIcon?f(y):t.errorIcon!==null&&f(E,1)})}s(ut,J)},Me=ut=>{var J=B(),dt=A(J);{var y=f=>{var H=B(),j=A(H);st(j,()=>t.warningIcon??_t),s(f,H)},E=f=>{no(f)};z(dt,f=>{t.warningIcon?f(y):t.warningIcon!==null&&f(E,1)})}s(ut,J)},m=ut=>{var J=B(),dt=A(J);{var y=f=>{var H=B(),j=A(H);st(j,()=>t.infoIcon??_t),s(f,H)},E=f=>{io(f)};z(dt,f=>{t.infoIcon?f(y):t.infoIcon!==null&&f(E,1)})}s(ut,J)},w=ut=>{var J=B(),dt=A(J);{var y=f=>{var H=B(),j=A(H);st(j,()=>t.closeIcon??_t),s(f,H)},E=f=>{ro(f)};z(dt,f=>{t.closeIcon?f(y):t.closeIcon!==null&&f(E,1)})}s(ut,J)};let T=g(()=>U()?.duration??I()),L=g(()=>U()?.class??""),O=g(()=>U()?.descriptionClass||""),M=g(()=>U()?.style??""),K=g(()=>U().classes||{}),pt=g(()=>U().unstyled??!1),Qt=g(()=>U()?.cancelButtonStyle??""),Ae=g(()=>U()?.actionButtonStyle??""),ae=g(()=>U()?.closeButtonAriaLabel??qt());Xn(h,{get index(){return e(ie)},get toast(){return e(jt)},get defaultRichColors(){return D()},get duration(){return e(T)},get class(){return e(L)},get descriptionClass(){return e(O)},get invert(){return i()},get visibleToasts(){return q()},get closeButton(){return v()},get interacting(){return e(Wt)},get position(){return Rt},get style(){return e(M)},get classes(){return e(K)},get unstyled(){return e(pt)},get cancelButtonStyle(){return e(Qt)},get actionButtonStyle(){return e(Ae)},get closeButtonAriaLabel(){return e(ae)},get expandByDefault(){return u()},get expanded(){return e(nt)},get pauseWhenPageIsHidden(){return et()},get loadingIcon(){return t.loadingIcon},successIcon:Ee,errorIcon:Se,warningIcon:Me,infoIcon:m,closeIcon:w,$$slots:{successIcon:!0,errorIcon:!0,warningIcon:!0,infoIcon:!0,closeIcon:!0}})}}),R(Et),en(Et,h=>r(xt,h),()=>e(xt)),Y(()=>Et.dir=Et.dir),s(mt,Et)}),s(c,N)};z(ne,c=>{X.toasts.length>0&&c(Zt)})}R(Tt),Y(()=>C(Tt,"aria-label",`${G()??""} ${e(Pt)??""}`)),s(o,Tt),At()}const rn=typeof window<"u"?window:void 0;function vo(o){let t=o.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}let wo=class{#e;#t;constructor(t={}){const{window:n=rn,document:i=n?.document}=t;n!==void 0&&(this.#e=i,this.#t=$t(a=>{const l=yt(n,"focusin",a),u=yt(n,"focusout",a);return()=>{l(),u()}}))}get current(){return this.#t?.(),this.#e?vo(this.#e):null}};new wo;function bo(o,t){switch(o){case"post":lt(t);break;case"pre":tn(t);break}}function sn(o,t,n,i={}){const{lazy:a=!1}=i;let l=!a,u=Array.isArray(o)?[]:void 0;bo(t,()=>{const v=Array.isArray(o)?o.map(_=>_()):o();if(!l){l=!0,u=v;return}const d=Gt(()=>n(v,u));return u=v,d})}function pe(o,t,n){sn(o,"post",t,n)}function _o(o,t,n){sn(o,"pre",t,n)}pe.pre=_o;function yo(o,t){switch(o){case"local":return t.localStorage;case"session":return t.sessionStorage}}class ln{#e;#t;#o;#n;#a;#i=k(0);constructor(t,n,i={}){const{storage:a="local",serializer:l={serialize:JSON.stringify,deserialize:JSON.parse},syncTabs:u=!0,window:v=rn}=i;if(this.#e=n,this.#t=t,this.#o=l,v===void 0)return;const d=yo(a,v);this.#n=d;const _=d.getItem(t);_!==null?this.#e=this.#r(_):this.#s(n),u&&a==="local"&&(this.#a=$t(()=>yt(v,"storage",this.#l)))}get current(){this.#a?.(),e(this.#i);const t=this.#r(this.#n?.getItem(this.#t))??this.#e,n=new WeakMap,i=a=>{if(a===null||a?.constructor.name==="Date"||typeof a!="object")return a;let l=n.get(a);return l||(l=new Proxy(a,{get:(u,v)=>(e(this.#i),i(Reflect.get(u,v))),set:(u,v,d)=>(r(this.#i,e(this.#i)+1),Reflect.set(u,v,d),this.#s(t),!0)}),n.set(a,l)),l};return i(t)}set current(t){this.#s(t),r(this.#i,e(this.#i)+1)}#l=t=>{t.key!==this.#t||t.newValue===null||(this.#e=this.#r(t.newValue),r(this.#i,e(this.#i)+1))};#r(t){try{return this.#o.deserialize(t)}catch(n){console.error(`Error when parsing "${t}" from persisted store "${this.#t}"`,n);return}}#s(t){try{t!=null&&this.#n?.setItem(this.#t,this.#o.serialize(t))}catch(n){console.error(`Error when writing value from persisted store "${this.#t}" to ${this.#n}`,n)}}}function Ke(o){return o.filter(t=>t.length>0)}const cn={getItem:o=>null,setItem:(o,t)=>{}},ge=typeof document<"u";function xo(o){return typeof o=="function"}function Io(o){return o!==null&&typeof o=="object"}const Jt=Symbol("box"),Fe=Symbol("is-writable");function To(o){return Io(o)&&Jt in o}function Eo(o){return Z.isBox(o)&&Fe in o}function Z(o){let t=k(Vt(o));return{[Jt]:!0,[Fe]:!0,get current(){return e(t)},set current(n){r(t,n,!0)}}}function So(o,t){const n=g(o);return t?{[Jt]:!0,[Fe]:!0,get current(){return e(n)},set current(i){t(i)}}:{[Jt]:!0,get current(){return o()}}}function Mo(o){return Z.isBox(o)?o:xo(o)?Z.with(o):Z(o)}function Ao(o){return Object.entries(o).reduce((t,[n,i])=>Z.isBox(i)?(Z.isWritableBox(i)?Object.defineProperty(t,n,{get(){return i.current},set(a){i.current=a}}):Object.defineProperty(t,n,{get(){return i.current}}),t):Object.assign(t,{[n]:i}),{})}function Bo(o){return Z.isWritableBox(o)?{[Jt]:!0,get current(){return o.current}}:o}Z.from=Mo;Z.with=So;Z.flatten=Ao;Z.readonly=Bo;Z.isBox=To;Z.isWritableBox=Eo;function Po(o,t){const n=RegExp(o,"g");return i=>{if(typeof i!="string")throw new TypeError(`expected an argument of type string, but got ${typeof i}`);return i.match(n)?i.replace(n,t):i}}const Co=Po(/[A-Z]/,o=>`-${o.toLowerCase()}`);function ko(o){if(!o||typeof o!="object"||Array.isArray(o))throw new TypeError(`expected an argument of type object, but got ${typeof o}`);return Object.keys(o).map(t=>`${Co(t)}: ${o[t]};`).join(`
3
- `)}function zo(o={}){return ko(o).replace(`
4
- `," ")}const Do={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};zo(Do);const Lo=typeof window<"u"?window:void 0;function Oo(o){let t=o.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class Ho{#e;#t;constructor(t={}){const{window:n=Lo,document:i=n?.document}=t;n!==void 0&&(this.#e=i,this.#t=$t(a=>{const l=yt(n,"focusin",a),u=yt(n,"focusout",a);return()=>{l(),u()}}))}get current(){return this.#t?.(),this.#e?Oo(this.#e):null}}new Ho;const ze=Z("mode-watcher-mode"),De=Z("mode-watcher-theme"),Ro=["dark","light","system"];function Qe(o){return typeof o!="string"?!1:Ro.includes(o)}class po{#e="system";#t=ge?localStorage:cn;#o=this.#t.getItem(ze.current);#n=Qe(this.#o)?this.#o:this.#e;#a=k(Vt(this.#i()));#i(t=this.#n){return new ln(ze.current,t,{serializer:{serialize:n=>n,deserialize:n=>Qe(n)?n:this.#e}})}constructor(){Re(()=>pe.pre(()=>ze.current,(t,n)=>{const i=e(this.#a).current;r(this.#a,this.#i(i),!0),n&&localStorage.removeItem(n)}))}get current(){return e(this.#a).current}set current(t){e(this.#a).current=t}}class Fo{#e=void 0;#t=!0;#o=k(Vt(this.#e));#n=typeof window<"u"&&typeof window.matchMedia=="function"?new kn("prefers-color-scheme: light"):{current:!1};query(){ge&&r(this.#o,this.#n.current?"light":"dark",!0)}tracking(t){this.#t=t}constructor(){Re(()=>{tn(()=>{this.#t&&this.query()})}),this.query=this.query.bind(this),this.tracking=this.tracking.bind(this)}get current(){return e(this.#o)}}const Xe=new po,No=new Fo;class Vo{#e=ge?localStorage:cn;#t=this.#e.getItem(De.current);#o=this.#t===null||this.#t===void 0?"":this.#t;#n=k(Vt(this.#a()));#a(t=this.#o){return new ln(De.current,t,{serializer:{serialize:n=>typeof n!="string"?"":n,deserialize:n=>n}})}constructor(){Re(()=>pe.pre(()=>De.current,(t,n)=>{const i=e(this.#n).current;r(this.#n,this.#a(i),!0),n&&localStorage.removeItem(n)}))}get current(){return e(this.#n).current}set current(t){e(this.#n).current=t}}new Vo;let Ge,Je,$e=!1,Xt=null;function Wo(){return Xt||(Xt=document.createElement("style"),Xt.appendChild(document.createTextNode(`* {
5
- -webkit-transition: none !important;
6
- -moz-transition: none !important;
7
- -o-transition: none !important;
8
- -ms-transition: none !important;
9
- transition: none !important;
10
- }`)),Xt)}function Zo(o,t=!1){if(typeof document>"u")return;if(!$e){$e=!0,o();return}if(typeof window<"u"&&window.__vitest_worker__){o();return}clearTimeout(Ge),clearTimeout(Je);const i=Wo(),a=()=>document.head.appendChild(i),l=()=>{i.parentNode&&document.head.removeChild(i)};function u(){o(),window.requestAnimationFrame(l)}if(typeof window.requestAnimationFrame<"u"){a(),t?u():window.requestAnimationFrame(()=>{u()});return}a(),Ge=window.setTimeout(()=>{o(),Je=window.setTimeout(l,16)},16)}const ue=Z(void 0),jo=Z(!0),Uo=Z(!1),Yo=Z([]),qo=Z([]);function Ko(){const o=g(()=>{if(!ge)return;const t=Xe.current==="system"?No.current:Xe.current,n=Ke(Yo.current),i=Ke(qo.current);function a(){const l=document.documentElement,u=document.querySelector('meta[name="theme-color"]');t==="light"?(n.length&&l.classList.remove(...n),i.length&&l.classList.add(...i),l.style.colorScheme="light",u&&ue.current&&u.setAttribute("content",ue.current.light)):(i.length&&l.classList.remove(...i),n.length&&l.classList.add(...n),l.style.colorScheme="dark",u&&ue.current&&u.setAttribute("content",ue.current.dark))}return jo.current?Zo(a,Uo.current):a(),t});return{get current(){return e(o)}}}const Qo=Ko();var Xo=at("<title> </title>"),Go=at('<svg><!><path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"></path><path fill="none" d="M14 21.591 9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z" data-icon-path="inner-path"></path></svg>');function Jo(o,t){const n=Lt(t,["children","$$slots","$$events","$$legacy"]),i=Lt(n,["size","title"]);Mt(t,!1);const a=Dt(),l=Dt();let u=S(t,"size",8,16),v=S(t,"title",8,void 0);zt(()=>(ct(n),ct(v())),()=>{r(a,n["aria-label"]||n["aria-labelledby"]||v())}),zt(()=>(e(a),ct(n)),()=>{r(l,{"aria-hidden":e(a)?void 0:!0,role:e(a)?"img":void 0,focusable:Number(n.tabindex)===0?!0:void 0})}),fe(),me();var d=Go();te(d,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:u(),height:u(),...e(l),...i}));var _=W(d);{var P=D=>{var I=Xo(),q=W(I,!0);R(I),Y(()=>kt(q,v())),s(D,I)};z(_,D=>{v()&&D(P)})}he(2),R(d),s(o,d),At()}var $o=at("<title> </title>"),ti=at('<svg><!><path fill="none" d="M14.9 7.2H17.1V24.799H14.9z" data-icon-path="inner-path" transform="rotate(-45 16 16)"></path><path d="M16,2A13.914,13.914,0,0,0,2,16,13.914,13.914,0,0,0,16,30,13.914,13.914,0,0,0,30,16,13.914,13.914,0,0,0,16,2Zm5.4449,21L9,10.5557,10.5557,9,23,21.4448Z"></path></svg>');function ei(o,t){const n=Lt(t,["children","$$slots","$$events","$$legacy"]),i=Lt(n,["size","title"]);Mt(t,!1);const a=Dt(),l=Dt();let u=S(t,"size",8,16),v=S(t,"title",8,void 0);zt(()=>(ct(n),ct(v())),()=>{r(a,n["aria-label"]||n["aria-labelledby"]||v())}),zt(()=>(e(a),ct(n)),()=>{r(l,{"aria-hidden":e(a)?void 0:!0,role:e(a)?"img":void 0,focusable:Number(n.tabindex)===0?!0:void 0})}),fe(),me();var d=ti();te(d,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:u(),height:u(),...e(l),...i}));var _=W(d);{var P=D=>{var I=$o(),q=W(I,!0);R(I),Y(()=>kt(q,v())),s(D,I)};z(_,D=>{v()&&D(P)})}he(2),R(d),s(o,d),At()}var ni=at("<title> </title>"),oi=at('<svg><!><path fill="none" d="M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z" data-icon-path="inner-path"></path><path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,6a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"></path></svg>');function ii(o,t){const n=Lt(t,["children","$$slots","$$events","$$legacy"]),i=Lt(n,["size","title"]);Mt(t,!1);const a=Dt(),l=Dt();let u=S(t,"size",8,16),v=S(t,"title",8,void 0);zt(()=>(ct(n),ct(v())),()=>{r(a,n["aria-label"]||n["aria-labelledby"]||v())}),zt(()=>(e(a),ct(n)),()=>{r(l,{"aria-hidden":e(a)?void 0:!0,role:e(a)?"img":void 0,focusable:Number(n.tabindex)===0?!0:void 0})}),fe(),me();var d=oi();te(d,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:u(),height:u(),...e(l),...i}));var _=W(d);{var P=D=>{var I=ni(),q=W(I,!0);R(I),Y(()=>kt(q,v())),s(D,I)};z(_,D=>{v()&&D(P)})}he(2),R(d),s(o,d),At()}var ai=at("<title> </title>"),ri=at('<svg><!><path fill="none" d="M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z" data-icon-path="inner-path"></path><path d="M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"></path><path d="M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"></path></svg>');function si(o,t){const n=Lt(t,["children","$$slots","$$events","$$legacy"]),i=Lt(n,["size","title"]);Mt(t,!1);const a=Dt(),l=Dt();let u=S(t,"size",8,16),v=S(t,"title",8,void 0);zt(()=>(ct(n),ct(v())),()=>{r(a,n["aria-label"]||n["aria-labelledby"]||v())}),zt(()=>(e(a),ct(n)),()=>{r(l,{"aria-hidden":e(a)?void 0:!0,role:e(a)?"img":void 0,focusable:Number(n.tabindex)===0?!0:void 0})}),fe(),me();var d=ri();te(d,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:u(),height:u(),...e(l),...i}));var _=W(d);{var P=D=>{var I=ai(),q=W(I,!0);R(I),Y(()=>kt(q,v())),s(D,I)};z(_,D=>{v()&&D(P)})}he(3),R(d),s(o,d),At()}function li(o,t){Mt(t,!0);let n=nn(t,["$$slots","$$events","$$legacy"]);go(o,de({get theme(){return Qo.current},class:"toaster group",style:"--normal-bg: var(--color-bg-elevated); --normal-text: var(--color-text-primary); --normal-border: var(--color-border-strong);"},()=>n,{loadingIcon:d=>{xn(d,{class:"size-4 animate-spin"})},successIcon:d=>{Jo(d,{class:"size-4"})},errorIcon:d=>{ei(d,{class:"size-4"})},infoIcon:d=>{ii(d,{class:"size-4"})},warningIcon:d=>{si(d,{class:"size-4"})},$$slots:{loadingIcon:!0,successIcon:!0,errorIcon:!0,infoIcon:!0,warningIcon:!0}})),At()}var ci=it('<div style="display: contents;"><!> <!></div>');function Ti(o,t){Mt(t,!0);const n=typeof localStorage<"u"?localStorage.getItem("theme"):null;let i=k(Vt(n==="light"?"light":"dark"));Le("theme",{get current(){return e(i)},toggle(){r(i,e(i)==="dark"?"light":"dark",!0),localStorage.setItem("theme",e(i))}});const l=typeof localStorage<"u"?localStorage.getItem("chatOpen"):null;let u=k(l==="true");Le("chat",{get open(){return e(u)},toggle(){r(u,!e(u)),localStorage.setItem("chatOpen",String(e(u)))},close(){r(u,!1),localStorage.setItem("chatOpen","false")}}),lt(()=>{document.documentElement.setAttribute("data-theme",e(i))});let d=k(null);lt(()=>{if(se.loading)return;const I=se.user?.email??(se.authEnabled?null:"__open__");I&&I!==e(d)&&(e(d)!==null&&yn.deselect(),r(d,I,!0),je.load(),Ue.connect()),!I&&e(d)&&(r(d,null),Ue.disconnect())}),He(async()=>{const I=window.location.pathname,q=I==="/login",U=I==="/setup",{authenticated:rt,authEnabled:Bt,needsSetup:et}=await se.checkAuth();if(et&&!U){Ce("/setup");return}if(Bt&&!rt&&!q){Ce("/login");return}if(rt&&(q||U)){Ce("/");return}q||U||(Ut(()=>import("../chunks/2BuoqS97.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).catch(()=>{}),Promise.all([Ut(()=>import("../chunks/CX_61fY8.js"),[],import.meta.url),Ut(()=>import("../chunks/DnL9f0lc.js").then(G=>G.i),__vite__mapDeps([5,6]),import.meta.url),Ut(()=>import("../chunks/CscoF-YL.js"),__vite__mapDeps([7,6,5,8,9,10]),import.meta.url),Ut(()=>import("../chunks/D7ZqAKi9.js"),__vite__mapDeps([8,9,6,5]),import.meta.url),Ut(()=>import("../chunks/C7VoTosa.js").then(G=>G.i),[],import.meta.url)]).catch(()=>{}),window.addEventListener("sg-theme-change",G=>{r(i,G.detail,!0)}))});var _=ci();bn("12qhfyh",I=>{gn(()=>{vn.title=(je.name||"Studiograph")??""})});var P=W(_);st(P,()=>t.children);var D=Nt(P,2);li(D,{}),R(_),Y(()=>C(_,"data-theme",e(i))),s(o,_),At()}export{Ti as component};
@@ -1 +0,0 @@
1
- import{a as u,b as h,s as a}from"../chunks/C6O5NX2h.js";import{i as g}from"../chunks/D2e_f7WK.js";import{p as v,u as l,t as d,b as _,c as e,r as o,v as x}from"../chunks/CbWA7IDo.js";import{s as b,p}from"../chunks/DfAt9W4x.js";const $={get error(){return p.error},get status(){return p.status}};b.updated.check;const m=$;var k=h("<h1> </h1> <p> </p>",1);function y(i,c){v(c,!1),g();var t=k(),r=l(t),n=e(r,!0);o(r);var s=x(r,2),f=e(s,!0);o(s),d(()=>{a(n,m.status),a(f,m.error?.message)}),u(i,t),_()}export{y as component};
@@ -1 +0,0 @@
1
- import{a as s,s as _,b as l}from"../chunks/C6O5NX2h.js";import{i as g}from"../chunks/D2e_f7WK.js";import{p as u,b,u as w,v as $,c as i,n as x,r as m,t as y}from"../chunks/CbWA7IDo.js";import{i as S}from"../chunks/Da6P0VJZ.js";import{A as V}from"../chunks/BnE0Rldz.js";import{V as k}from"../chunks/Dn9jmZhf.js";import{w as p}from"../chunks/DkBrGIdc.js";import{n as A}from"../chunks/C1-cwUjT.js";var E=l('<h2 class="svelte-1uha8ag"> </h2>'),L=l('<!> <div class="welcome svelte-1uha8ag"><!> <p class="svelte-1uha8ag">Select an entity from the sidebar to get started.</p></div>',1);function F(n,f){u(f,!1),A.showEntity(),g(),V(n,{children:(v,P)=>{var e=L(),o=w(e);k(o,{activeView:"entity"});var r=$(o,2),c=i(r);{var d=a=>{var t=E(),h=i(t);m(t),y(()=>_(h,`Welcome to ${(p.name||"Studiograph")??""}`)),s(a,t)};S(c,a=>{p.nameLoaded&&a(d)})}x(2),m(r),s(v,e)},$$slots:{default:!0}}),b()}export{F as component};