@sockethub/examples 1.0.0-alpha.12 → 1.0.0-alpha.13

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 (48) hide show
  1. package/README.md +36 -148
  2. package/build/_app/immutable/assets/{0.DWIWvKCl.css → 0.GKlhshq0.css} +1 -1
  3. package/build/_app/immutable/chunks/{Cf7Xaqef.js → B5Mgq-ia.js} +1 -1
  4. package/build/_app/immutable/chunks/{B1Dg8LdY.js → BAMCB3hl.js} +1 -1
  5. package/build/_app/immutable/chunks/{P3PHXZz3.js → BB3nrZKK.js} +2 -2
  6. package/build/_app/immutable/chunks/{B-2myMF5.js → BPmfLl8P.js} +1 -1
  7. package/build/_app/immutable/chunks/Bh9jqwq3.js +2 -0
  8. package/build/_app/immutable/chunks/CE_Br0Li.js +36 -0
  9. package/build/_app/immutable/chunks/{CARmnL8B.js → CF0IgWN3.js} +1 -1
  10. package/build/_app/immutable/chunks/{CC-fhLYv.js → CLc0OQ-M.js} +1 -1
  11. package/build/_app/immutable/chunks/CLcl1K30.js +1 -0
  12. package/build/_app/immutable/chunks/{D_xw8KSE.js → CPsRFLIg.js} +1 -1
  13. package/build/_app/immutable/chunks/DTPsrcK7.js +4 -0
  14. package/build/_app/immutable/chunks/{Ciq9INsC.js → DT_OQU4t.js} +1 -1
  15. package/build/_app/immutable/chunks/{DOKWDPrU.js → De6kqrZW.js} +1 -1
  16. package/build/_app/immutable/chunks/{BFNCz1gq.js → DhU_U-a9.js} +1 -1
  17. package/build/_app/immutable/chunks/Dm-WrFn1.js +1 -0
  18. package/build/_app/immutable/chunks/aGNzqrdP.js +1 -0
  19. package/build/_app/immutable/entry/{app.C9H-zozU.js → app.44tyicEj.js} +2 -2
  20. package/build/_app/immutable/entry/start.D_PJ6UtD.js +1 -0
  21. package/build/_app/immutable/nodes/{0.DcZ2dsmt.js → 0.COBjogKI.js} +1 -1
  22. package/build/_app/immutable/nodes/{1.C6aP9uS2.js → 1.ZmYfbvuo.js} +1 -1
  23. package/build/_app/immutable/nodes/{2.BPwYaw3N.js → 2.B-c8MtqI.js} +3 -3
  24. package/build/_app/immutable/nodes/3.DKOfQDif.js +2 -0
  25. package/build/_app/immutable/nodes/{6.BSB3XMkK.js → 4.PE7b6wi8.js} +1 -1
  26. package/build/_app/immutable/nodes/5.Cc6bNRTx.js +1 -0
  27. package/build/_app/immutable/nodes/6.D0DWXXhX.js +1 -0
  28. package/build/_app/immutable/nodes/7.CFhuHlBr.js +1 -0
  29. package/build/_app/version.json +1 -1
  30. package/build/dummy.html +12 -12
  31. package/build/feeds.html +12 -12
  32. package/build/index.html +12 -12
  33. package/build/irc.html +12 -12
  34. package/build/metadata-test.html +16 -0
  35. package/build/metadata.html +12 -12
  36. package/build/xmpp.html +12 -12
  37. package/package.json +5 -4
  38. package/build/_app/immutable/chunks/BnKTx64M.js +0 -1
  39. package/build/_app/immutable/chunks/CihmTBhe.js +0 -66
  40. package/build/_app/immutable/chunks/Dcal-xrT.js +0 -4
  41. package/build/_app/immutable/chunks/DqdrLdzV.js +0 -2
  42. package/build/_app/immutable/chunks/FDiY3NYw.js +0 -1
  43. package/build/_app/immutable/chunks/UKP-Z6jI.js +0 -1
  44. package/build/_app/immutable/entry/start.vRxtmFzd.js +0 -1
  45. package/build/_app/immutable/nodes/3.BGd6WCa1.js +0 -1
  46. package/build/_app/immutable/nodes/4.G9Lcgqeg.js +0 -1
  47. package/build/_app/immutable/nodes/5.B4MUA0zQ.js +0 -1
  48. package/build/_app/immutable/nodes/7.IHPDEcKQ.js +0 -1
@@ -1,4 +0,0 @@
1
- import{f as y,a as v,s as A,t as C}from"./DqdrLdzV.js";import{p as h,G,t as S,a as w,b as k,d as R,f as W,c as u,r as b,s as f,g as r,u as q,n as z}from"./Ciq9INsC.js";import{p as _,i as E,b as F,s as H}from"./Cf7Xaqef.js";import{s as O,r as I}from"./P3PHXZz3.js";import{b as T,S as K}from"./BFNCz1gq.js";import{a as L}from"./CihmTBhe.js";var M=y(`<textarea class="form-control block w-full px-3 py-1.5 text-base font-normal
2
- text-gray-700 bg-white bg-clip-padding border border-solid
3
- border-gray-300 rounded transition ease-in-out m-0 focus:text-gray-700
4
- focus:bg-white focus:border-blue-600 focus:outline-none" rows="5"></textarea>`);function Q(s,t){h(t,!0);let o=_(t,"data",15);var e=M();G(e),S(()=>O(e,"id",`json-object-${t.title??""}`)),T(e,o),v(s,e),w()}var U=y('<div class="w-full p-2"><label for="server" class="inline-block text-gray-900 font-bold w-32">Password</label> <input id="server" type="password" class="border-4"/></div>'),V=y('<div class="w-full"><label class="form-label inline-block text-gray-900 font-bold mb-2"> </label> <!></div> <!> <div class="w-full text-right"><!></div>',1);function X(s,t){h(t,!0);let o=_(t,"buttonText",3,"Send"),e=_(t,"obj",15),a=R("unset");e().password&&(k(a,e().password,!0),e(e().password=void 0,!0));const m=q(()=>JSON.stringify(e(),null,3));async function g(){console.log("PASSWORD: ",r(a)),r(a)!=="unset"&&e(e().password=r(a),!0),t.submitData(JSON.stringify(e()))}var i=V(),x=W(i),c=u(x),D=u(c,!0);b(c);var J=f(c,2);Q(J,{get title(){return t.title},get data(){return r(m)}}),b(x);var j=f(x,2);{var N=n=>{var d=U(),l=f(u(d),2);I(l),b(d),T(l,()=>r(a),B=>k(a,B)),v(n,d)};E(j,n=>{r(a)!=="unset"&&n(N)})}var p=f(j,2),P=u(p);K(P,{get disabled(){return t.disabled},buttonAction:g,children:(n,d)=>{z();var l=C();S(()=>A(l,o())),v(n,l)}}),b(p),S(()=>{O(c,"for",`json-object-${t.title??""}`),A(D,t.title)}),v(s,i),w()}function rt(s,t){h(t,!0);const o=()=>F(t.sockethubState,"$sockethubState",e),[e,a]=H();function m(g){const i=JSON.parse(g);console.log("creating activity object: ",i),L.ActivityStreams.Object.create(i),t.sockethubState.set({actorSet:!0,credentialsSet:!1,connected:!1,joined:!1})}X(s,{title:"Activity Stream Actor",get obj(){return t.actor},buttonText:"Activity Object Create",submitData:m,get disabled(){return o().actorSet}}),w(),a()}export{rt as A,X as T};
@@ -1,2 +0,0 @@
1
- var Me=Object.defineProperty;var pe=t=>{throw TypeError(t)};var Oe=(t,e,r)=>e in t?Me(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ee=(t,e,r)=>Oe(t,typeof e!="symbol"?e+"":e,r),te=(t,e,r)=>e.has(t)||pe("Cannot "+r);var n=(t,e,r)=>(te(t,e,"read from private field"),r?r.call(t):e.get(t)),f=(t,e,r)=>e.has(t)?pe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),a=(t,e,r,i)=>(te(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r),p=(t,e,r)=>(te(t,e,"access private method"),r);import{aw as Ie,g as we,X as Ne,J as Ce,e as Fe,ax as ge,ai as de,B as v,A as E,W as F,L as Pe,M as Re,ay as he,P as Ve,z as M,az as G,x as re,y as U,aA as Be,a3 as Q,aB as B,aC as ve,aD as Ye,aE as se,h as Se,C as xe,aF as ye,aG as We,aH as me,aI as He,aJ as Ue,w as ne,R as j,n as je,Q as qe,aK as Ee,aL as ze,N as Ge,aM as Xe,aN as $e,aO as Je,U as Qe,aP as Ke,T as Ze,aQ as ie,aR as et,aS as tt,aT as rt,aU as nt,aV as st,aW as ae,aX as it,aY as at,aZ as oe,S as X,a_ as ot,a$ as ut,b0 as lt,b1 as ft,p as ct,b2 as dt,b3 as ht,a as _t}from"./Ciq9INsC.js";function pt(t){let e=0,r=Ne(0),i;return()=>{Ie()&&(we(r),Ce(()=>(e===0&&(i=Fe(()=>t(()=>ge(r)))),e+=1,()=>{de(()=>{e-=1,e===0&&(i==null||i(),i=void 0,ge(r))})})))}}var gt=Ge|Xe|$e;function vt(t,e,r){new yt(t,e,r)}var g,q,b,O,T,m,h,w,S,k,I,A,C,Y,x,D,K,l,Ae,ke,ue,$,J,le;class yt{constructor(e,r,i){f(this,l);ee(this,"parent");ee(this,"is_pending",!1);f(this,g);f(this,q,E?v:null);f(this,b);f(this,O);f(this,T);f(this,m,null);f(this,h,null);f(this,w,null);f(this,S,null);f(this,k,null);f(this,I,0);f(this,A,0);f(this,C,!1);f(this,Y,new Set);f(this,x,new Set);f(this,D,null);f(this,K,pt(()=>(a(this,D,Ne(n(this,I))),()=>{a(this,D,null)})));a(this,g,e),a(this,b,r),a(this,O,i),this.parent=F.b,this.is_pending=!!n(this,b).pending,a(this,T,Pe(()=>{if(F.b=this,E){const s=n(this,q);Re(),s.nodeType===he&&s.data===Ve?p(this,l,ke).call(this):(p(this,l,Ae).call(this),n(this,A)===0&&(this.is_pending=!1))}else{var o=p(this,l,ue).call(this);try{a(this,m,M(()=>i(o)))}catch(s){this.error(s)}n(this,A)>0?p(this,l,J).call(this):this.is_pending=!1}return()=>{var s;(s=n(this,k))==null||s.remove()}},gt)),E&&a(this,g,v)}defer_effect(e){Be(e,n(this,Y),n(this,x))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!n(this,b).pending}update_pending_count(e){p(this,l,le).call(this,e),a(this,I,n(this,I)+e),n(this,D)&&Ue(n(this,D),n(this,I))}get_effect_pending(){return n(this,K).call(this),we(n(this,D))}error(e){var r=n(this,b).onerror;let i=n(this,b).failed;if(n(this,C)||!r&&!i)throw e;n(this,m)&&(ne(n(this,m)),a(this,m,null)),n(this,h)&&(ne(n(this,h)),a(this,h,null)),n(this,w)&&(ne(n(this,w)),a(this,w,null)),E&&(j(n(this,q)),je(),j(qe()));var o=!1,s=!1;const u=()=>{if(o){Je();return}o=!0,s&&ze(),G.ensure(),a(this,I,0),n(this,w)!==null&&re(n(this,w),()=>{a(this,w,null)}),this.is_pending=this.has_pending_snippet(),a(this,m,p(this,l,$).call(this,()=>(a(this,C,!1),M(()=>n(this,O).call(this,n(this,g)))))),n(this,A)>0?p(this,l,J).call(this):this.is_pending=!1};var y=se;try{B(null),s=!0,r==null||r(e,u),s=!1}catch(_){Ee(_,n(this,T)&&n(this,T).parent)}finally{B(y)}i&&de(()=>{a(this,w,p(this,l,$).call(this,()=>{G.ensure(),a(this,C,!0);try{return M(()=>{i(n(this,g),()=>e,()=>u)})}catch(_){return Ee(_,n(this,T).parent),null}finally{a(this,C,!1)}}))})}}g=new WeakMap,q=new WeakMap,b=new WeakMap,O=new WeakMap,T=new WeakMap,m=new WeakMap,h=new WeakMap,w=new WeakMap,S=new WeakMap,k=new WeakMap,I=new WeakMap,A=new WeakMap,C=new WeakMap,Y=new WeakMap,x=new WeakMap,D=new WeakMap,K=new WeakMap,l=new WeakSet,Ae=function(){try{a(this,m,M(()=>n(this,O).call(this,n(this,g))))}catch(e){this.error(e)}},ke=function(){const e=n(this,b).pending;e&&(a(this,h,M(()=>e(n(this,g)))),G.enqueue(()=>{var r=p(this,l,ue).call(this);a(this,m,p(this,l,$).call(this,()=>(G.ensure(),M(()=>n(this,O).call(this,r))))),n(this,A)>0?p(this,l,J).call(this):(re(n(this,h),()=>{a(this,h,null)}),this.is_pending=!1)}))},ue=function(){var e=n(this,g);return this.is_pending&&(a(this,k,U()),n(this,g).before(n(this,k)),e=n(this,k)),e},$=function(e){var r=F,i=se,o=Se;Q(n(this,T)),B(n(this,T)),ve(n(this,T).ctx);try{return e()}catch(s){return Ye(s),null}finally{Q(r),B(i),ve(o)}},J=function(){const e=n(this,b).pending;n(this,m)!==null&&(a(this,S,document.createDocumentFragment()),n(this,S).append(n(this,k)),xe(n(this,m),n(this,S))),n(this,h)===null&&a(this,h,M(()=>e(n(this,g))))},le=function(e){var r;if(!this.has_pending_snippet()){this.parent&&p(r=this.parent,l,le).call(r,e);return}if(a(this,A,n(this,A)+e),n(this,A)===0){this.is_pending=!1;for(const i of n(this,Y))ye(i,We),me(i);for(const i of n(this,x))ye(i,He),me(i);n(this,Y).clear(),n(this,x).clear(),n(this,h)&&re(n(this,h),()=>{a(this,h,null)}),n(this,S)&&(n(this,g).before(n(this,S)),a(this,S,null))}};function Dt(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const mt=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Lt(t){return mt.includes(t)}const Et={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 Mt(t){return t=t.toLowerCase(),Et[t]??t}const bt=["touchstart","touchmove"];function Tt(t){return bt.includes(t)}const De=new Set,fe=new Set;function wt(t,e,r,i={}){function o(s){if(i.capture||H.call(e,s),!s.cancelBubble)return Ke(()=>r==null?void 0:r.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?de(()=>{e.addEventListener(t,o,i)}):e.addEventListener(t,o,i),o}function Ot(t,e,r,i,o){var s={capture:i,passive:o},u=wt(t,e,r,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ze(()=>{e.removeEventListener(t,u,s)})}function It(t){for(var e=0;e<t.length;e++)De.add(t[e]);for(var r of fe)r(t)}let be=null;function H(t){var _e;var e=this,r=e.ownerDocument,i=t.type,o=((_e=t.composedPath)==null?void 0:_e.call(t))||[],s=o[0]||t.target;be=t;var u=0,y=be===t&&t.__root;if(y){var _=o.indexOf(y);if(_!==-1&&(e===document||e===window)){t.__root=e;return}var P=o.indexOf(e);if(P===-1)return;_<=P&&(u=_)}if(s=o[u]||t.target,s!==e){Qe(t,"currentTarget",{configurable:!0,get(){return s||r}});var Z=se,N=F;B(null),Q(null);try{for(var c,d=[];s!==null;){var R=s.assignedSlot||s.parentNode||s.host||null;try{var W=s["__"+i];W!=null&&(!s.disabled||t.target===s)&&W.call(s,t)}catch(z){c?d.push(z):c=z}if(t.cancelBubble||R===e||R===null)break;s=R}if(c){for(let z of d)queueMicrotask(()=>{throw z});throw c}}finally{t.__root=e,delete t.currentTarget,B(Z),Q(N)}}}function Nt(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function L(t,e){var r=F;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function Ct(t,e){var r=(e&tt)!==0,i=(e&rt)!==0,o,s=!t.startsWith("<!>");return()=>{if(E)return L(v,null),v;o===void 0&&(o=Nt(s?t:"<!>"+t),r||(o=ie(o)));var u=i||et?document.importNode(o,!0):o.cloneNode(!0);if(r){var y=ie(u),_=u.lastChild;L(y,_)}else L(u,u);return u}}function Ft(t=""){if(!E){var e=U(t+"");return L(e,e),e}var r=v;return r.nodeType!==st&&(r.before(r=U()),j(r)),L(r,r),r}function Pt(){if(E)return L(v,null),v;var t=document.createDocumentFragment(),e=document.createComment(""),r=U();return t.append(e,r),L(e,r),t}function Vt(t,e){if(E){var r=F;((r.f&nt)===0||r.nodes.end===null)&&(r.nodes.end=v),Re();return}t!==null&&t.before(e)}function Bt(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=r,t.nodeValue=r+"")}function Rt(t,e){return Le(t,e)}function Yt(t,e){ae(),e.intro=e.intro??!1;const r=e.target,i=E,o=v;try{for(var s=ie(r);s&&(s.nodeType!==he||s.data!==it);)s=at(s);if(!s)throw oe;X(!0),j(s);const u=Le(t,{...e,anchor:s});return X(!1),u}catch(u){if(u instanceof Error&&u.message.split(`
2
- `).some(y=>y.startsWith("https://svelte.dev/e/")))throw u;return u!==oe&&console.warn("Failed to hydrate: ",u),e.recover===!1&&ot(),ae(),ut(r),X(!1),Rt(t,e)}finally{X(i),j(o)}}const V=new Map;function Le(t,{target:e,anchor:r,props:i={},events:o,context:s,intro:u=!0}){ae();var y=new Set,_=N=>{for(var c=0;c<N.length;c++){var d=N[c];if(!y.has(d)){y.add(d);var R=Tt(d);e.addEventListener(d,H,{passive:R});var W=V.get(d);W===void 0?(document.addEventListener(d,H,{passive:R}),V.set(d,1)):V.set(d,W+1)}}};_(lt(De)),fe.add(_);var P=void 0,Z=ft(()=>{var N=r??e.appendChild(U());return vt(N,{pending:()=>{}},c=>{if(s){ct({});var d=Se;d.c=s}if(o&&(i.$$events=o),E&&L(c,null),P=t(c,i)||{},E&&(F.nodes.end=v,v===null||v.nodeType!==he||v.data!==dt))throw ht(),oe;s&&_t()}),()=>{var R;for(var c of y){e.removeEventListener(c,H);var d=V.get(c);--d===0?(document.removeEventListener(c,H),V.delete(c)):V.set(c,d)}fe.delete(_),N!==r&&((R=N.parentNode)==null||R.removeChild(N))}});return ce.set(P,Z),P}let ce=new WeakMap;function xt(t,e){const r=ce.get(t);return r?(ce.delete(t),r(e)):Promise.resolve()}const St="5";var Te;typeof window<"u"&&((Te=window.__svelte??(window.__svelte={})).v??(Te.v=new Set)).add(St);export{Vt as a,wt as b,Pt as c,It as d,Ot as e,Ct as f,Lt as g,Yt as h,Dt as i,L as j,Nt as k,Rt as m,Mt as n,Bt as s,Ft as t,xt as u};
@@ -1 +0,0 @@
1
- import{f as d,a as r,c as R,e as $}from"./DqdrLdzV.js";import{p as L,s as C,c as g,r as f,t as ee,a as D,g as i,u as F,e as A,f as J,n as G,d as U,b as S}from"./Ciq9INsC.js";import{r as N,a as te,c as se}from"./P3PHXZz3.js";import{b as O,S as X}from"./BFNCz1gq.js";import{p as E,s as H,c as q,b as I,i as T}from"./Cf7Xaqef.js";import{T as ae}from"./Dcal-xrT.js";import{c as Y,a as oe,s as K}from"./CihmTBhe.js";var re=d('<div class="pb-4"><label for="actor-id-input" class="pr-3">Actor ID</label> <input id="actor-id-input" type="text"/></div>');function Se(h,e){L(e,!0);let t=E(e,"value",15),p=E(e,"class",3,"bg-white border border-solid border-gray-300 rounded");var v=re(),s=C(g(v),2);N(s),f(v),ee(()=>te(s,1,se(p()))),O(s,t),r(h,v),D()}function Ce(h,e){L(e,!0);const t=()=>I(e.sockethubState,"$sockethubState",p),[p,v]=H();function s(a){const u={"@context":Y(e.context),type:"credentials",actor:e.actor.id,object:JSON.parse(a)};console.log("sending credentials: ",u),oe.socket.emit("credentials",u,n=>{if(n!=null&&n.error)throw new Error(n.error);q(e.sockethubState,A(t).credentialsSet=!0,A(t))})}{let a=F(()=>!t().actorSet||t().credentialsSet||!1);ae(h,{title:"Credentials",get obj(){return e.credentials},buttonText:"Set Credentials",submitData:s,get disabled(){return i(a)}})}D(),v()}var ne=d('<div class="flex items-center space-x-2"><svg class="animate-spin h-4 w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg> <span>Connecting...</span></div>'),ie=d('<div class="flex items-center space-x-2"><svg class="h-4 w-4 text-green-500" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span>Connected</span></div>'),le=d('<div class="flex items-center space-x-2"><svg class="h-4 w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244"></path></svg> <span>Connect</span></div>'),ce=d('<div class="w-full flex justify-end"><!></div>');function je(h,e){L(e,!0);const t=()=>I(e.sockethubState,"$sockethubState",p),[p,v]=H();let s=E(e,"disabled",3,!1),a=F(()=>s()||!t().credentialsSet||t().connected||e.connecting);var u=ce(),n=g(u);X(n,{get disabled(){return i(a)},get buttonAction(){return e.onConnect},children:(k,y)=>{var w=R(),x=J(w);{var z=c=>{var j=ne();r(c,j)},l=c=>{var j=R(),_=J(j);{var B=m=>{var o=ie();r(m,o)},P=m=>{var o=le();r(m,o)};T(_,m=>{t().connected?m(B):m(P,!1)},!0)}r(c,j)};T(x,c=>{e.connecting?c(z):c(l,!1)})}r(k,w)}}),f(u),r(h,u),D(),v()}var de=d('<div class="flex items-center space-x-2"><svg class="animate-spin h-4 w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg> <span>Joining...</span></div>'),ve=d('<div class="flex items-center space-x-2"><svg class="h-4 w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span>Joined</span></div>'),ue=d('<div class="flex items-center space-x-2"><svg class="h-4 w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15"></path></svg> <span>Join Room</span></div>'),me=d('<div class="bg-gradient-to-r from-indigo-50 to-purple-50 border border-indigo-200 rounded-xl p-6 shadow-sm"><h4 class="text-lg font-bold text-indigo-900 mb-4 flex items-center"><span class="mr-2">🏠</span> Join Chat Room</h4> <div class="space-y-4"><div class="w-full space-y-2"><label for="room" class="block text-sm font-semibold text-gray-700">Room/Channel</label> <input id="room" class="w-full px-4 py-3 border border-gray-300 rounded-lg shadow-sm focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 transition-colors duration-200 text-gray-900 placeholder-gray-500" placeholder="#general, kosmos-random@kosmos.chat"/> <p class="text-gray-500 text-xs">💡 IRC: Use #channel-name | XMPP: Use room@server.com</p></div> <div class="flex justify-end"><!></div></div></div>');function Me(h,e){L(e,!0);const t=()=>I(e.sockethubState,"$sockethubState",p),[p,v]=H();let s=E(e,"room",15),a=U(!1);async function u(){return S(a,!0),await K({"@context":Y(e.context),type:"join",actor:e.actor.id,target:{id:s(),name:s(),type:"room"}}).catch(()=>{q(e.sockethubState,A(t).joined=!1,A(t)),S(a,!1)}).then(()=>{q(e.sockethubState,A(t).joined=!0,A(t)),S(a,!1)})}var n=me(),k=C(g(n),2),y=g(k),w=C(g(y),2);N(w),G(2),f(y);var x=C(y,2),z=g(x);{let l=F(()=>!t().connected||t().joined||i(a));X(z,{get disabled(){return i(l)},buttonAction:u,children:(c,j)=>{var _=R(),B=J(_);{var P=o=>{var b=de();r(o,b)},m=o=>{var b=R(),Q=J(b);{var W=M=>{var V=ve();r(M,V)},Z=M=>{var V=ue();r(M,V)};T(Q,M=>{t().joined?M(W):M(Z,!1)},!0)}r(o,b)};T(B,o=>{i(a)?o(P):o(m,!1)})}r(c,_)}})}f(x),f(k),f(n),O(w,s),r(h,n),D(),v()}var ge=d('<div class="flex items-center space-x-2"><svg class="animate-spin h-4 w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg> <span class="hidden sm:inline">Sending...</span></div>'),fe=d('<div class="flex items-center space-x-2"><svg class="h-4 w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M6 12L3.269 3.126A59.768 59.768 0 0121.485 12 59.77 59.77 0 013.27 20.876L5.999 12zm0 0h7.5"></path></svg> <span class="hidden sm:inline">Send</span></div>'),he=d('<div class="bg-gradient-to-r from-green-50 to-emerald-50 border border-green-200 rounded-xl p-6 shadow-sm"><h4 class="text-lg font-bold text-green-900 mb-4 flex items-center"><span class="mr-2">💬</span> Send Message</h4> <div class="space-y-4"><div class="w-full space-y-2"><label for="sendMessage" class="block text-sm font-semibold text-gray-700">Your Message</label> <div class="flex space-x-3"><input id="sendMessage" class="flex-1 px-4 py-3 border border-gray-300 rounded-lg shadow-sm focus:ring-2 focus:ring-green-500 focus:border-green-500 transition-colors duration-200 text-gray-900 placeholder-gray-500" placeholder="Type your message here..."/> <!></div> <p class="text-gray-500 text-xs">💡 Press Enter to send quickly</p></div></div></div>');function Ae(h,e){L(e,!0);const t=()=>I(e.sockethubState,"$sockethubState",p),[p,v]=H();let s=U(""),a=U(!1);async function u(){if(!i(s).trim())return;S(a,!0);const l=i(s).trim();console.log("send message: ",l);try{await K({"@context":Y(e.context),type:"send",actor:e.actor.id,object:{type:"message",content:l},target:{id:e.room,name:e.room,type:"room"}}),S(s,"")}catch(c){console.error("Failed to send message:",c)}finally{S(a,!1)}}var n=he(),k=C(g(n),2),y=g(k),w=C(g(y),2),x=g(w);N(x);var z=C(x,2);{let l=F(()=>!t().connected||i(a)||!i(s).trim());X(z,{get disabled(){return i(l)},buttonAction:u,children:(c,j)=>{var _=R(),B=J(_);{var P=o=>{var b=ge();r(o,b)},m=o=>{var b=fe();r(o,b)};T(B,o=>{i(a)?o(P):o(m,!1)})}r(c,_)}})}f(w),G(2),f(y),f(k),f(n),O(x,()=>i(s),l=>S(s,l)),$("keydown",x,l=>{l.key==="Enter"&&!i(a)&&t().connected&&u()}),r(h,n),D(),v()}export{Se as A,Ce as C,je as P,Me as R,Ae as S};
@@ -1 +0,0 @@
1
- var s;const e=((s=globalThis.__sveltekit_4h0jh5)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_4h0jh5)==null?void 0:a.assets)??e??"";export{t as a,e as b};
@@ -1 +0,0 @@
1
- import{l as o,a as r}from"../chunks/B1Dg8LdY.js";export{o as load_css,r as start};
@@ -1 +0,0 @@
1
- import{f as y,a as f,t as w}from"../chunks/DqdrLdzV.js";import{p as F,a as k,s as o,f as A,c as p,b as R,d as _,g as e,u as T,r as m,n as O}from"../chunks/Ciq9INsC.js";import{w as L}from"../chunks/CARmnL8B.js";import{A as P}from"../chunks/Dcal-xrT.js";import{B as U,S as $}from"../chunks/BFNCz1gq.js";import{F as M}from"../chunks/DOKWDPrU.js";import{s as j,c as B}from"../chunks/CihmTBhe.js";var E=y('<div class="bg-green-50 border-l-4 border-green-400 p-4 rounded-r-lg mb-6"><h3 class="text-lg font-semibold text-green-800 mb-2">📰 How Feed Processing Works</h3> <p class="text-green-700 text-sm mb-3">This example shows how Sockethub can fetch and parse RSS/ATOM feeds from any website.</p> <div class="text-green-700 text-sm space-y-1"><div><strong>🌐 Fetching:</strong> Sockethub downloads the feed content from the URL</div> <div><strong>🔍 Parsing:</strong> Content is parsed from RSS/ATOM format</div> <div><strong>📝 Converting:</strong> Each feed entry becomes an ActivityStreams object</div> <div><strong>📊 Results:</strong> You receive an array of structured feed entries</div></div></div> <div class="space-y-4"><!> <p class="text-gray-600 text-sm">⬆️ Try different RSS/ATOM feeds: news sites, blogs, podcasts, etc.</p> <!> <div class="bg-blue-50 border border-blue-200 p-3 rounded-lg"><p class="text-blue-700 text-sm"><strong>💡 What happens when you click Fetch:</strong><br/> The feed URL becomes the "actor" (like a website identity), and Sockethub sends a "fetch" activity to download and parse the feed content.</p></div> <div class="w-full text-right"><!></div></div>',1);function J(h,g){F(g,!0);const v=L({actorSet:!1});let t=_("https://sockethub.org/feed.xml");const a=T(()=>({type:"website",id:e(t)}));function u(s){return{"@context":B("feeds"),type:s,actor:e(a)}}async function b(){j(u("fetch"))}U(h,{title:"Feeds Platform Example",description:"The feeds platform takes an RSS/ATOM feed URL, fetches and parses it, and returns an array of Activity Objects for each entry.",children:(s,C)=>{var n=E(),d=o(A(n),2),i=p(d);M(i,{label:"Feed URL",id:"URL",placeholder:"https://example.com/feed.xml",get value(){return e(t)},set value(r){R(t,r,!0)}});var c=o(i,4);P(c,{get actor(){return e(a)},get sockethubState(){return v}});var l=o(c,4),x=p(l);$(x,{buttonAction:b,children:(r,W)=>{O();var S=w("Fetch Feed");f(r,S)}}),m(l),m(d),f(s,n)}}),k()}export{J as component};
@@ -1 +0,0 @@
1
- import{f as y,a as C}from"../chunks/DqdrLdzV.js";import{p as ee,a as te,s as e,f as re,c as n,g as o,u as q,r as d,b as l,d as S,e as a}from"../chunks/Ciq9INsC.js";import{s as se,a as oe,m as ae,b as z,i as ne,c as v}from"../chunks/Cf7Xaqef.js";import{A as de}from"../chunks/Dcal-xrT.js";import{A as ce,C as ie,P as le,R as ve,S as me}from"../chunks/FDiY3NYw.js";import{B as ue}from"../chunks/BFNCz1gq.js";import{F as N}from"../chunks/DOKWDPrU.js";import{I as ge,s as pe,c as fe}from"../chunks/CihmTBhe.js";import{w as Y}from"../chunks/CARmnL8B.js";var be=y('<div class="bg-gradient-to-r from-emerald-50 to-green-50 border border-emerald-200 rounded-xl p-6 shadow-sm"><h4 class="text-lg font-bold text-emerald-900 mb-4 flex items-center"><span class="mr-3 w-8 h-8 bg-emerald-600 text-white rounded-full flex items-center justify-center text-sm font-bold">4</span> Join Channel and Chat</h4> <div class="space-y-6"><!> <!> <!></div></div>'),he=y('<div class="bg-gradient-to-r from-gray-50 to-slate-50 border border-gray-200 rounded-xl p-6 text-center shadow-sm"><div class="flex items-center justify-center mb-3"><span class="w-8 h-8 bg-gray-400 text-white rounded-full flex items-center justify-center text-sm font-bold">4</span></div> <p class="text-gray-600 font-medium">Connect to the IRC server to access chat features</p> <p class="text-gray-500 text-sm mt-1">Complete steps 1-3 above to unlock this section</p></div>'),xe=y('<div class="bg-orange-50 border-l-4 border-orange-400 p-4 rounded-r-lg mb-6"><h3 class="text-lg font-semibold text-orange-800 mb-2">💬 IRC Connection Process</h3> <p class="text-orange-700 text-sm mb-3">IRC (Internet Relay Chat) requires several steps to get connected and chatting.</p> <div class="text-orange-700 text-sm space-y-1"><div><strong>1. 🎭 Set Actor:</strong> Choose your IRC nickname</div> <div><strong>2. 🔐 Set Credentials:</strong> Provide server connection details</div> <div><strong>3. 🔌 Connect:</strong> Establish connection to IRC server</div> <div><strong>4. 🏠 Join Room:</strong> Enter a channel to start chatting</div> <div><strong>5. 💬 Send Messages:</strong> Chat with other users</div></div></div> <div class="space-y-6"><div class="bg-gradient-to-r from-green-50 to-emerald-50 border border-green-200 rounded-xl p-6 shadow-sm"><h4 class="text-lg font-bold text-green-900 mb-4 flex items-center"><span class="mr-3 w-8 h-8 bg-green-600 text-white rounded-full flex items-center justify-center text-sm font-bold">1</span> Choose Your IRC Nickname</h4> <div class="space-y-4"><!> <!></div></div> <div class="bg-gradient-to-r from-blue-50 to-sky-50 border border-blue-200 rounded-xl p-6 shadow-sm"><h4 class="text-lg font-bold text-blue-900 mb-4 flex items-center"><span class="mr-3 w-8 h-8 bg-blue-600 text-white rounded-full flex items-center justify-center text-sm font-bold">2</span> Configure Server Connection</h4> <div class="space-y-4"><div class="grid md:grid-cols-2 gap-4"><!> <!></div> <div class="bg-blue-100 border border-blue-200 rounded-lg p-3"><p class="text-blue-800 text-sm">💡 <strong>Popular IRC networks:</strong> irc.libera.chat, irc.oftc.net, irc.rizon.net</p></div> <!></div></div> <div class="bg-gradient-to-r from-purple-50 to-violet-50 border border-purple-200 rounded-xl p-6 shadow-sm"><h4 class="text-lg font-bold text-purple-900 mb-4 flex items-center"><span class="mr-3 w-8 h-8 bg-purple-600 text-white rounded-full flex items-center justify-center text-sm font-bold">3</span> Connect to Server</h4> <!></div> <!></div>',1);function Pe(D,G){ee(G,!0);const c=()=>z(I,"$actorIdStore",w),r=()=>z(s,"$sockethubState",w),[w,H]=se(),I=Y(`sh-${(Math.random()+1).toString(36).substring(7)}`);let g=S("chat.freenode.net"),p=S(6697),k="#sh-random",m=S(!1);const s=Y({actorSet:!1,credentialsSet:!1,connected:!1,joined:!1});let u=q(()=>({id:c(),type:"person",name:c()})),K=q(()=>({type:"credentials",nick:c(),server:o(g),port:o(p),secure:!0}));function R(){v(s,a(r).actorSet=!1,a(r)),v(s,a(r).credentialsSet=!1,a(r)),v(s,a(r).connected=!1,a(r)),v(s,a(r).joined=!1,a(r)),l(m,!1)}async function L(){l(m,!0),await pe({"@context":fe("irc"),type:"connect",actor:c()}).catch(()=>{R()}).then(()=>{v(s,a(r).connected=!0,a(r)),l(m,!1)},f=>{console.error(f),R()})}ue(D,{title:"IRC Platform Example",description:"Connect to IRC servers, join channels, and send messages using Sockethub's IRC platform.",children:(f,_e)=>{var j=xe(),$=e(re(j),2),b=n($),P=e(n(b),2),A=n(P);ce(A,{get value(){return ae(),c()},set value(t){oe(I,t)}});var O=e(A,2);de(O,{get actor(){return o(u)},get sockethubState(){return s}}),d(P),d(b);var h=e(b,2),F=e(n(h),2),x=n(F),E=n(x);N(E,{label:"IRC Server",id:"server",placeholder:"irc.libera.chat",get value(){return o(g)},set value(t){l(g,t,!0)}});var Q=e(E,2);N(Q,{label:"Port",id:"port",type:"number",placeholder:"6697",get value(){return o(p)},set value(t){l(p,t,!0)}}),d(x);var T=e(x,4);ie(T,{context:"irc",get credentials(){return o(K)},get actor(){return o(u)},get sockethubState(){return s}}),d(F),d(h);var _=e(h,2),U=e(n(_),2);le(U,{get sockethubState(){return s},get connecting(){return o(m)},onConnect:L}),d(_);var V=e(_,2);{var W=t=>{var i=be(),M=e(n(i),2),B=n(M);ve(B,{get actor(){return o(u)},get sockethubState(){return s},room:k,context:"irc"});var J=e(B,2);ge(J,{});var Z=e(J,2);me(Z,{context:"irc",get actor(){return o(u)},get sockethubState(){return s},room:k}),d(M),d(i),C(t,i)},X=t=>{var i=he();C(t,i)};ne(V,t=>{r().connected?t(W):t(X,!1)})}d($),C(f,j)}}),te(),H()}export{Pe as component};
@@ -1 +0,0 @@
1
- import{f as S,t as k,a as p}from"../chunks/DqdrLdzV.js";import{p as y,a as _,s as r,f as F,c as m,b as A,d as E,g as t,u as L,n as P,r as u}from"../chunks/Ciq9INsC.js";import{w as R}from"../chunks/CARmnL8B.js";import{A as $}from"../chunks/Dcal-xrT.js";import{B as T,S as U}from"../chunks/BFNCz1gq.js";import{F as B}from"../chunks/DOKWDPrU.js";import{s as M,c as O}from"../chunks/CihmTBhe.js";var W=S('<div class="bg-purple-50 border-l-4 border-purple-400 p-4 rounded-r-lg mb-6"><h3 class="text-lg font-semibold text-purple-800 mb-2">🔍 How Metadata Extraction Works</h3> <p class="text-purple-700 text-sm mb-3">This example shows how Sockethub can extract structured metadata from any web page.</p> <div class="text-purple-700 text-sm space-y-1"><div><strong>🌐 Fetching:</strong> Sockethub downloads the web page content</div> <div><strong>🔍 Scanning:</strong> Searches for Open Graph, Twitter Cards, JSON-LD, and meta tags</div> <div><strong>📊 Extracting:</strong> Pulls out titles, descriptions, images, and other metadata</div> <div><strong>📋 Returning:</strong> Provides structured data about the page</div></div></div> <div class="space-y-4"><!> <p class="text-gray-600 text-sm">⬆️ Try different websites: news articles, social media posts, product pages, etc.</p> <!> <div class="bg-blue-50 border border-blue-200 p-3 rounded-lg"><p class="text-blue-700 text-sm"><strong>💡 What happens when you click Fetch:</strong><br/> The website URL becomes the "actor", and Sockethub sends a "fetch" activity to download the page and extract all available metadata like page titles, descriptions, and social media preview data.</p></div> <div class="w-full text-right"><!></div></div>',1);function I(h,g){y(g,!0);const b=R({actorSet:!1});let e=E("https://sockethub.org"),o=L(()=>({id:t(e),type:"website"}));function v(a){return{"@context":O("metadata"),type:a,actor:t(o)}}async function f(){M(v("fetch"))}T(h,{title:"Metadata Platform Example",description:"Sockethub's metadata platform takes a URL, fetches and parses it for any metadata.",children:(a,j)=>{var i=W(),d=r(F(i),2),n=m(d);B(n,{label:"Website URL",id:"URL",placeholder:"https://example.com",get value(){return t(e)},set value(s){A(e,s,!0)}});var c=r(n,4);$(c,{get actor(){return t(o)},get sockethubState(){return b}});var l=r(c,4),x=m(l);U(x,{buttonAction:f,children:(s,C)=>{P();var w=k("Extract Metadata");p(s,w)}}),u(l),u(d),p(a,i)}}),_()}export{I as component};
@@ -1 +0,0 @@
1
- import{f as P,a as f}from"../chunks/DqdrLdzV.js";import{p as L,a as N,s as r,f as O,c as n,g as o,u as x,r as c,n as Q,d as T,b as E,e as s}from"../chunks/Ciq9INsC.js";import{s as V,a as W,m as Z,b as I,i as ee,c as d}from"../chunks/Cf7Xaqef.js";import{A as te}from"../chunks/Dcal-xrT.js";import{A as re,C as se,P as oe,R as ae,S as ne}from"../chunks/FDiY3NYw.js";import{B as ce}from"../chunks/BFNCz1gq.js";import{I as ie,s as de,c as le}from"../chunks/CihmTBhe.js";import{w as j}from"../chunks/CARmnL8B.js";var ge=P('<div class="bg-white border border-gray-200 rounded-lg p-4"><h4 class="font-semibold text-gray-800 mb-3">Step 4 & 5: Join Room and Chat</h4> <div class="space-y-4"><!> <!> <!></div></div>'),me=P('<div class="bg-gray-50 border border-gray-200 rounded-lg p-4 text-center"><p class="text-gray-500">Connect to the XMPP server to access chat features</p></div>'),ue=P('<div class="bg-indigo-50 border-l-4 border-indigo-400 p-4 rounded-r-lg mb-6"><h3 class="text-lg font-semibold text-indigo-800 mb-2">📨 XMPP Connection Process</h3> <p class="text-indigo-700 text-sm mb-3">XMPP (Extensible Messaging and Presence Protocol) is a real-time communication protocol used by services like Jabber.</p> <div class="text-indigo-700 text-sm space-y-1"><div><strong>1. 🎭 Set Actor:</strong> Your XMPP address (e.g., user@jabber.org)</div> <div><strong>2. 🔐 Set Credentials:</strong> Your XMPP login and password</div> <div><strong>3. 🔌 Connect:</strong> Establish connection to XMPP server</div> <div><strong>4. 🏠 Join Room:</strong> Enter a multi-user chat room</div> <div><strong>5. 💬 Send Messages:</strong> Chat with other users in real-time</div></div></div> <div class="space-y-6"><div class="bg-white border border-gray-200 rounded-lg p-4"><h4 class="font-semibold text-gray-800 mb-3">Step 1: Set Your XMPP Address</h4> <!> <p class="text-gray-600 text-sm mt-2">💡 Format: username@server.com (e.g., user@jabber.org, alice@conversations.im)</p> <!></div> <div class="bg-white border border-gray-200 rounded-lg p-4"><h4 class="font-semibold text-gray-800 mb-3">Step 2: Set Your Credentials</h4> <!> <p class="text-gray-600 text-sm mt-2">🔐 Use your actual XMPP account credentials to connect</p></div> <div class="bg-white border border-gray-200 rounded-lg p-4"><h4 class="font-semibold text-gray-800 mb-3">Step 3: Connect to XMPP Server</h4> <!></div> <!></div>',1);function ye(J,R){L(R,!0);const g=()=>I(_,"$actorIdStore",S),e=()=>I(t,"$sockethubState",S),[S,Y]=V(),_=j("user@jabber.org");let m=T(!1),u=x(()=>`${g()}/SockethubExample`);const y="kosmos-random@kosmos.chat",t=j({actorSet:!1,credentialsSet:!1,connected:!1,joined:!1});let l=x(()=>({id:o(u),type:"person",name:o(u)})),F=x(()=>({type:"credentials",userAddress:g(),password:"123456",resource:"SockethubExample"}));function k(){d(t,s(e).actorSet=!1,s(e)),d(t,s(e).credentialsSet=!1,s(e)),d(t,s(e).connected=!1,s(e)),d(t,s(e).joined=!1,s(e)),E(m,!1)}async function B(){return E(m,!0),await de({"@context":le("xmpp"),type:"connect",actor:o(u)}).then(()=>{d(t,s(e).connected=!0,s(e))},v=>{console.error(v),k()}).catch(()=>{k()})}ce(J,{title:"XMPP Platform Example",description:"Connect to XMPP servers (Jabber), join multi-user chats, and exchange messages using Sockethub's XMPP platform.",children:(v,ve)=>{var M=ue(),C=r(O(M),2),p=n(C),X=r(n(p),2);re(X,{get value(){return Z(),g()},set value(a){W(_,a)}});var U=r(X,4);te(U,{get actor(){return o(l)},get sockethubState(){return t}}),c(p);var b=r(p,2),q=r(n(b),2);se(q,{context:"xmpp",get credentials(){return o(F)},get actor(){return o(l)},get sockethubState(){return t}}),Q(2),c(b);var h=r(b,2),z=r(n(h),2);oe(z,{get sockethubState(){return t},get connecting(){return o(m)},onConnect:B}),c(h);var D=r(h,2);{var G=a=>{var i=ge(),w=r(n(i),2),$=n(w);ae($,{get actor(){return o(l)},get sockethubState(){return t},room:y,context:"xmpp"});var A=r($,2);ie(A,{});var K=r(A,2);ne(K,{context:"xmpp",get actor(){return o(l)},get sockethubState(){return t},room:y}),c(w),c(i),f(a,i)},H=a=>{var i=me();f(a,i)};ee(D,a=>{e().connected?a(G):a(H,!1)})}c(C),f(v,M)}}),N(),Y()}export{ye as component};