studiograph 1.3.19 → 1.3.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/types.d.ts +3 -0
- package/dist/core/types.js +1 -0
- package/dist/core/types.js.map +1 -1
- package/dist/server/chrome/chrome.css +4 -8
- package/dist/server/index.js +15 -2
- package/dist/server/index.js.map +1 -1
- package/dist/web/_app/immutable/assets/0.D8EoqqcB.css +1 -0
- package/dist/web/_app/immutable/assets/2.DRZ4qWy8.css +1 -0
- package/dist/web/_app/immutable/assets/{3.C-bIa9M8.css → 3.Bxy1xbfc.css} +1 -1
- package/dist/web/_app/immutable/assets/{4.BhKgiXd2.css → 4.aFSdMTV2.css} +1 -1
- package/dist/web/_app/immutable/assets/{5.CydFyZSu.css → 5.CquhUpOu.css} +1 -1
- package/dist/web/_app/immutable/assets/{6.kqeOo0OW.css → 6.CT4xL4K3.css} +1 -1
- package/dist/web/_app/immutable/assets/{7.CseIx7qQ.css → 7.BMfme7ZM.css} +1 -1
- package/dist/web/_app/immutable/assets/{8.BYpFDZHK.css → 8.BUrHkYry.css} +1 -1
- package/dist/web/_app/immutable/assets/AppShell.DVyh4lcT.css +1 -0
- package/dist/web/_app/immutable/assets/ViewToolbar.39HnhXNY.css +1 -0
- package/dist/web/_app/immutable/chunks/{BpUdqMox.js → 1YZNbPuF.js} +1 -1
- package/dist/web/_app/immutable/chunks/{DKQjBKyp.js → B340SUKR.js} +1 -1
- package/dist/web/_app/immutable/chunks/{BVmVTxxa.js → BAoPZe8v.js} +1 -1
- package/dist/web/_app/immutable/chunks/BBKhbmnU.js +1 -0
- package/dist/web/_app/immutable/chunks/BWbpPmKt.js +1 -0
- package/dist/web/_app/immutable/chunks/{BaUG0bh_.js → BXo5rIdU.js} +2 -2
- package/dist/web/_app/immutable/chunks/C5Jg9_3k.js +1 -0
- package/dist/web/_app/immutable/chunks/{CIZkRAuY.js → CGoS23Dn.js} +1 -1
- package/dist/web/_app/immutable/chunks/Cd2AAfar.js +1 -0
- package/dist/web/_app/immutable/chunks/CkwRiDze.js +1 -0
- package/dist/web/_app/immutable/chunks/DDuM5_bq.js +1 -0
- package/dist/web/_app/immutable/chunks/DJumtN6X.js +2 -0
- package/dist/web/_app/immutable/chunks/DP5Y1V5j.js +1 -0
- package/dist/web/_app/immutable/chunks/DZ7uBozP.js +91 -0
- package/dist/web/_app/immutable/chunks/{CnKc_Tae.js → DZnk0U6X.js} +1 -1
- package/dist/web/_app/immutable/chunks/{BUSlXG5Y.js → DbczE2vm.js} +1 -1
- package/dist/web/_app/immutable/chunks/{DJKRyj_1.js → SzjCv9g2.js} +1 -1
- package/dist/web/_app/immutable/chunks/VEgGCdut.js +2 -0
- package/dist/web/_app/immutable/chunks/wnPynj2h.js +1 -0
- package/dist/web/_app/immutable/entry/app.CYqJAlgF.js +2 -0
- package/dist/web/_app/immutable/entry/start.B54V0Wim.js +1 -0
- package/dist/web/_app/immutable/nodes/0.Co4P2A7g.js +10 -0
- package/dist/web/_app/immutable/nodes/1.Bc1MepEl.js +1 -0
- package/dist/web/_app/immutable/nodes/2.Dr5HuxKS.js +1 -0
- package/dist/web/_app/immutable/nodes/3.BsRqdsFZ.js +11 -0
- package/dist/web/_app/immutable/nodes/{4.CD5YzRYT.js → 4.DMp14d8b.js} +2 -2
- package/dist/web/_app/immutable/nodes/5.DG8tGegE.js +2 -0
- package/dist/web/_app/immutable/nodes/6.C_Uuh3Y1.js +1 -0
- package/dist/web/_app/immutable/nodes/7.D6ZnjxHd.js +2 -0
- package/dist/web/_app/immutable/nodes/8.CXi6tI0R.js +1 -0
- package/dist/web/_app/version.json +1 -1
- package/dist/web/index.html +11 -11
- package/package.json +1 -1
- package/dist/web/_app/immutable/assets/0.CupILLQs.css +0 -1
- package/dist/web/_app/immutable/assets/2.DRHi7ABa.css +0 -1
- package/dist/web/_app/immutable/assets/AppShell.D3hRAjzT.css +0 -1
- package/dist/web/_app/immutable/assets/ChatPanel.CP-_8txt.css +0 -1
- package/dist/web/_app/immutable/chunks/0x0awhVy.js +0 -2
- package/dist/web/_app/immutable/chunks/8FUQuwgM.js +0 -1
- package/dist/web/_app/immutable/chunks/Bl1mtM70.js +0 -1
- package/dist/web/_app/immutable/chunks/C7R6dA2m.js +0 -1
- package/dist/web/_app/immutable/chunks/CbJfRYJV.js +0 -1
- package/dist/web/_app/immutable/chunks/DKIqe64p.js +0 -64
- package/dist/web/_app/immutable/chunks/DVuLyxG5.js +0 -1
- package/dist/web/_app/immutable/chunks/DxxhVGi2.js +0 -1
- package/dist/web/_app/immutable/chunks/EDLlAC9C.js +0 -2
- package/dist/web/_app/immutable/chunks/Scb_NG-a.js +0 -28
- package/dist/web/_app/immutable/chunks/glgUBDR2.js +0 -1
- package/dist/web/_app/immutable/entry/app.DjTkwlaQ.js +0 -2
- package/dist/web/_app/immutable/entry/start.Bupokdng.js +0 -1
- package/dist/web/_app/immutable/nodes/0.Q3C-jhjE.js +0 -10
- package/dist/web/_app/immutable/nodes/1.BPCfgPXb.js +0 -1
- package/dist/web/_app/immutable/nodes/2.Bdsd2uts.js +0 -1
- package/dist/web/_app/immutable/nodes/3.Doh56lgy.js +0 -11
- package/dist/web/_app/immutable/nodes/5.DN4bEWf-.js +0 -2
- package/dist/web/_app/immutable/nodes/6.BfA9chPb.js +0 -1
- package/dist/web/_app/immutable/nodes/7.DhU0-U33.js +0 -2
- package/dist/web/_app/immutable/nodes/8.wSRycWoC.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as Y,f as _e,g as d,an as ee,_ as Se,Z,ao as ve,a1 as we,ah as Ie,ap as be,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 Q,B as Oe,a2 as He,D as ne,j as J,o as L,C as De,au as Re,av as C,W as ce,Y as fe,aw as X,ax as Pe,ay as Me,X as Be,a4 as Fe,i as Ue,az as de,aA as ze,s as u,y as w,a9 as se,L as re,V as Le}from"./Cd2AAfar.js";import{i as Ve}from"./CGoS23Dn.js";import{e as ie,u as oe,w as A,c as We}from"./VEgGCdut.js";function Tt(e,t){return t}function qe(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;j(Q(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()}j(t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function j(e,t=!0){for(var n=0;n<e.length;n++)Be(e[n],t)}var ae;function Et(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=Ie(()=>{var l=n();return ke(l)?l:l==null?[]:Q(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 b=new Set,k=Se,R=we(),I=0;I<l;I+=1){M&&L.nodeType===De&&L.data===Re&&(o=L,x=!0,J(!1));var O=h[I],P=s(O,I),S=y?null:g.get(P);S?(S.v&&ee(S.v,O),S.i&&ee(S.i,I),R&&k.unskip_effect(S.e)):(S=Ge(g,y?o:ae??=Y(),O,P,I,i,t,n),y||(S.e.f|=C),g.set(P,S)),b.add(P)}if(l===0&&a&&!f&&(y?f=Z(()=>a(o)):(f=Z(()=>a(ae??=Y())),f.f|=C)),l>b.size&&ve(),M&&l>0&&G(ne()),!y)if(R){for(const[Te,Ee]of g)b.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],b;f=D.prev;var k=h[0],R=h[h.length-1];for(b=0;b<h.length;b+=1)U(h[b],D,n);for(b=0;b<y.length;b+=1)T.delete(y[b]);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&&(j(Q(S.done)),e.outrogroups?.delete(S));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||T!==void 0){var I=[];if(T!==void 0)for(r of T)(r.f&X)===0&&I.push(r);for(;c!==null;)(c.f&X)===0&&c!==e.fallback&&I.push(c),c=B(c.next);var O=I.length;if(O>0){var P=(s&de)!==0&&o===0?n:null;if(a){for(l=0;l<O;l+=1)I[l].nodes?.a?.measure();for(l=0;l<O;l+=1)I[l].nodes?.a?.fix()}qe(e,I,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&be)!==0?te(i):null;return{v:c,i:T,e:Z(()=>(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 _t(...e){return e.filter(Boolean).join(" ")}const Xe=typeof document<"u";let ue=0;class Ze{#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=je(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 je(e){return e&&typeof e=="object"&&"status"in e?`HTTP error! Status: ${e.status}`:`Error! ${e}`}const $=new Ze;function Ke(e,t){return $.create({message:e,...t})}class St{#e=Le(()=>$.toasts.filter(t=>!t.dismiss));get toasts(){return d(this.#e)}}const Qe=Ke,_=Object.assign(Qe,{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=[],W=null,V=1e3,q=w(!1),ye=w(null);const H=new Map,z={},K={};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=We.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&&(K[e.repo]=`Syncing ${i[1].trim()}…`);const a=K[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(q,!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(q,!1),E=null,W=setTimeout(()=>{V=Math.min(V*2,1e4),me()},V)},E.onerror=()=>{}}function it(){W&&(clearTimeout(W),W=null),E&&(E.close(),E=null),u(q,!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 K[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 vt={get connected(){return d(q)},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{St as S,nt as a,_t as c,Et as e,Tt as i,F as n,vt as r,$ as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as p,s as $,f as h}from"./DJumtN6X.js";import{i as M}from"./BWbpPmKt.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"./Cd2AAfar.js";import{l as v,p as b,i as C}from"./BBKhbmnU.js";import{a as N}from"./VEgGCdut.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};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{aE as ie,g as K,a3 as oe,ak as Q,L as le,aF as q,a4 as N,o as l,h as _,ab as m,aG as U,f as ue,z as $,a2 as fe,aH as z,Z as y,e as R,aI as x,Y as C,a0 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,X as F,k as S,n as ge,D as me,aS as D,A as ye,E as be,aT as Ee,aU as Te,aV as we,S as Ne,aW as Re,aX as Se,q as A,aY as Ae,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"./Cd2AAfar.js";function Be(t){let e=0,r=Q(0),s;return()=>{ie()&&(K(r),oe(()=>(e===0&&(s=le(()=>t(()=>q(r)))),e+=1,()=>{N(()=>{e-=1,e===0&&(s?.(),s=void 0,q(r))})})))}}var je=ye|be;function qe(t,e,r,s){new Ue(t,e,r,s)}class Ue{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|=U,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),_&&(S(this.#v),ge(),S(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|=U,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=Se("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=A(a)));var i=s||Ae?document.importNode(a,!0):a.cloneNode(!0);if(r){var f=A(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=A(i);n=A(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()),S(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=A(r);n&&(n.nodeType!==B||n.data!==Ie);)n=xe(n);if(!n)throw V;L(!0),S(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),S(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());qe(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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as y,f as o,H as u,E as _,h as t,C as g,i,j as l,k as d,o as p,q as m}from"./Cd2AAfar.js";function C(n,r){let s=null,E=t;var a;if(t){s=p;for(var e=m(document.head);e!==null&&(e.nodeType!==g||e.data!==n);)e=i(e);if(e===null)l(!1);else{var f=i(e);e.remove(),d(f)}}t||(a=document.head.appendChild(y()));try{o(()=>r(a),u|_)}finally{E&&(l(!0),d(s))}}export{C as h};
|