@sockethub/examples 1.0.0-alpha.23 → 1.0.0-alpha.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.
- package/build/_app/immutable/assets/0.qOXUWaGZ.css +1 -0
- package/build/_app/immutable/chunks/{Cj_plMLy.js → 1avIAF2I.js} +1 -1
- package/build/_app/immutable/chunks/{C_USdH9H.js → 33lEaGXm.js} +2 -2
- package/build/_app/immutable/chunks/BLqyXFvH.js +1 -0
- package/build/_app/immutable/chunks/BSMEOyoG.js +1 -0
- package/build/_app/immutable/chunks/BVuLyJ7q.js +1 -0
- package/build/_app/immutable/chunks/C1MOh-XY.js +9 -0
- package/build/_app/immutable/chunks/C7DuqNbl.js +1 -0
- package/build/_app/immutable/chunks/CAT4ZdDs.js +1 -0
- package/build/_app/immutable/chunks/{M4yGBGmj.js → CT9Y_tQ4.js} +1 -1
- package/build/_app/immutable/chunks/CnmpubcX.js +1 -0
- package/build/_app/immutable/chunks/Cs24jlvn.js +36 -0
- package/build/_app/immutable/chunks/DYRq57vD.js +1 -0
- package/build/_app/immutable/chunks/EYcEpRKU.js +2 -0
- package/build/_app/immutable/chunks/{BwvUNwzv.js → hMyUYPEq.js} +1 -1
- package/build/_app/immutable/chunks/lzIpFC7n.js +1 -0
- package/build/_app/immutable/chunks/yWT4YlSI.js +1 -0
- package/build/_app/immutable/entry/app.ztAFZXMv.js +2 -0
- package/build/_app/immutable/entry/start._QPU_uWU.js +1 -0
- package/build/_app/immutable/nodes/{0.CJT5d6hv.js → 0.Df5wjAcn.js} +2 -2
- package/build/_app/immutable/nodes/{1.D_Qvl9oW.js → 1.IOrVTpza.js} +1 -1
- package/build/_app/immutable/nodes/2.BS3KT_lf.js +5 -0
- package/build/_app/immutable/nodes/3.DXNrVIwE.js +1 -0
- package/build/_app/immutable/nodes/{7.OXj7Z3m7.js → 4.BL1-bQ7L.js} +1 -1
- package/build/_app/immutable/nodes/5.1YpnKe2X.js +1 -0
- package/build/_app/immutable/nodes/6.C9NLPLub.js +2 -0
- package/build/_app/immutable/nodes/{3.BdhiUrXh.js → 7.D1TuxuLE.js} +1 -1
- package/build/_app/immutable/nodes/{4.C-DCROl2.js → 8.nRxJTb1X.js} +1 -1
- package/build/_app/immutable/nodes/{9.idLLS2yg.js → 9.ClqrhF8-.js} +1 -1
- package/build/_app/version.json +1 -1
- package/build/caldav.html +12 -12
- package/build/carddav.html +12 -12
- package/build/dummy.html +12 -12
- package/build/feeds.html +12 -12
- package/build/index.html +12 -12
- package/build/irc.html +12 -12
- package/build/metadata.html +12 -12
- package/build/xmpp.html +12 -12
- package/package.json +4 -4
- package/build/_app/immutable/assets/0.C4UYQlfe.css +0 -1
- package/build/_app/immutable/chunks/B7yWsbOZ.js +0 -43
- package/build/_app/immutable/chunks/BYPKMD8u.js +0 -1
- package/build/_app/immutable/chunks/BeOvm82p.js +0 -1
- package/build/_app/immutable/chunks/C7RIZnpe.js +0 -1
- package/build/_app/immutable/chunks/CD2k2u89.js +0 -1
- package/build/_app/immutable/chunks/CbROi3Jn.js +0 -1
- package/build/_app/immutable/chunks/DRQf9AgU.js +0 -1
- package/build/_app/immutable/chunks/DUJRAiM5.js +0 -1
- package/build/_app/immutable/chunks/Dku5k7NX.js +0 -1
- package/build/_app/immutable/chunks/Dm9HHmcs.js +0 -2
- package/build/_app/immutable/chunks/ODHyfvPn.js +0 -1
- package/build/_app/immutable/chunks/XtX2ckS1.js +0 -2
- package/build/_app/immutable/entry/app.DxiKDm2B.js +0 -2
- package/build/_app/immutable/entry/start.DuaOBoDH.js +0 -1
- package/build/_app/immutable/nodes/2.Clw8ij0T.js +0 -5
- package/build/_app/immutable/nodes/5.DFNCJ13Z.js +0 -2
- package/build/_app/immutable/nodes/6.C9POiypX.js +0 -1
- package/build/_app/immutable/nodes/8.BMBBLSi_.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{P as $,B as m,Q as j,R as K,S as q,T as C,U as F,V as G,W as y,N as Z,X as z,G as I,Y as H,b as D,g as b,Z as E,_ as Q,$ as g,a0 as V,a1 as N,h as W,a2 as X,a3 as J,a4 as x,a5 as A,q as k,e as ee,a6 as re,a7 as ne,a8 as se,a9 as ie,aa as ue,ab as te,ac as B,ad as L,ae as p}from"./CD2k2u89.js";import{B as ae}from"./DRQf9AgU.js";import{s as fe,g as le}from"./C7RIZnpe.js";function he(e,r,s=!1){m&&j();var n=new ae(e),i=s?K:0;function t(f,a){if(m){const h=q(e)===C;if(f===h){var l=F();G(l),n.anchor=l,y(!1),n.ensure(f,a),y(!0);return}}n.ensure(f,a)}$(()=>{var f=!1;r((a,l=!0)=>{f=!0,t(l,a)}),f||t(!1,null)},i)}let v=!1,w=Symbol();function Se(e,r,s){const n=s[r]??(s[r]={store:null,source:H(void 0),unsubscribe:I});if(n.store!==e&&!(w in s))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=I;else{var i=!0;n.unsubscribe=fe(e,t=>{i?n.source.v=t:D(n.source,t)}),i=!1}return e&&w in s?le(e):b(n.source)}function Pe(e,r){return e.set(r),r}function ge(){const e={};function r(){Z(()=>{for(var s in e)e[s].unsubscribe();z(e,w,{enumerable:!1,value:!0})})}return[e,r]}function we(e,r,s){return e.set(s),r}function Ee(){v=!0}function oe(e){var r=v;try{return v=!1,[e(),v]}finally{v=r}}const ce={get(e,r){if(!e.exclude.includes(r))return b(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,s){if(!(r in e.special)){var n=E;try{A(e.parent_effect),e.special[r]=de({get[r](){return e.props[r]}},r,N)}finally{A(n)}}return e.special[r](s),x(e.version),!0},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},deleteProperty(e,r){return e.exclude.includes(r)||(e.exclude.push(r),x(e.version)),!0},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function Oe(e,r){return new Proxy({props:e,exclude:r,special:{},version:Q(0),parent_effect:E},ce)}const _e={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let i=e.props[n];p(i)&&(i=i());const t=g(i,r);if(t&&t.set)return t.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const i=g(n,r);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,r){if(r===B||r===L)return!1;for(let s of e.props)if(p(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(p(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function Re(...e){return new Proxy({props:e},_e)}function de(e,r,s,n){var R;var i=!re||(s&ne)!==0,t=(s&se)!==0,f=(s&ue)!==0,a=n,l=!0,h=()=>(l&&(l=!1,a=f?ee(n):n),a),c;if(t){var U=B in e||L in e;c=((R=g(e,r))==null?void 0:R.set)??(U&&r in e?u=>e[r]=u:void 0)}var _,O=!1;t?[_,O]=oe(()=>e[r]):_=e[r],_===void 0&&n!==void 0&&(_=h(),c&&(i&&V(),c(_)));var o;if(i?o=()=>{var u=e[r];return u===void 0?h():(l=!0,u)}:o=()=>{var u=e[r];return u!==void 0&&(a=void 0),u===void 0?a:u},i&&(s&N)===0)return o;if(c){var Y=e.$$legacy;return function(u,S){return arguments.length>0?((!i||!S||Y||O)&&c(S?o():u),u):o()}}var P=!1,d=((s&ie)!==0?k:J)(()=>(P=!1,o()));t&&b(d);var M=E;return function(u,S){if(arguments.length>0){const T=S?b(d):i&&t?W(u):u;return D(d,T),P=!0,a!==void 0&&(a=T),u}return te&&P||(M.f&X)!==0?d.v:b(d)}}export{Se as a,Pe as b,we as c,Re as d,he as i,Oe as l,Ee as m,de as p,ge as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var s;const e=((s=globalThis.__sveltekit_4a10lu)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_4a10lu)==null?void 0:a.assets)??e??"";export{t as a,e as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{G as l,e as p,af as m,k as h,i as r,ag as g,ah as v,a6 as y}from"./CD2k2u89.js";function _(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function w(e,n,t){if(e==null)return n(void 0),l;const s=p(()=>e.subscribe(n,t));return s.unsubscribe?()=>s.unsubscribe():s}const i=[];function q(e,n=l){let t=null;const s=new Set;function o(c){if(m(e,c)&&(e=c,t)){const f=!i.length;for(const u of s)u[1](),i.push(u,e);if(f){for(let u=0;u<i.length;u+=2)i[u][0](i[u+1]);i.length=0}}}function a(c){o(c(e))}function b(c,f=l){const u=[c,f];return s.add(u),s.size===1&&(t=n(o,a)||l),c(e),()=>{s.delete(u),s.size===0&&t&&(t(),t=null)}}return{set:o,update:a,subscribe:b}}function E(e){let n;return w(e,t=>n=t)(),n}function z(e){r===null&&_(),y&&r.l!==null?d(r).m.push(e):h(()=>{const n=p(e);if(typeof n=="function")return n})}function k(e,n,{bubbles:t=!1,cancelable:s=!1}={}){return new CustomEvent(e,{detail:n,bubbles:t,cancelable:s})}function $(){const e=r;return e===null&&_(),(n,t,s)=>{var a;const o=(a=e.s.$$events)==null?void 0:a[n];if(o){const b=g(o)?o.slice():[o],c=k(n,t,s);for(const f of b)f.call(e.x,c);return!c.defaultPrevented}return!0}}function C(e){r===null&&_(),r.l===null&&v(),d(r).a.push(e)}function d(e){var n=e.l;return n.u??(n.u={a:[],b:[],m:[]})}export{C as a,$ as c,E as g,z as o,w as s,q as w};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var ln=Object.defineProperty;var dt=e=>{throw TypeError(e)};var un=(e,t,n)=>t in e?ln(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var B=(e,t,n)=>un(e,typeof t!="symbol"?t+"":t,n),Ke=(e,t,n)=>t.has(e)||dt("Cannot "+n);var y=(e,t,n)=>(Ke(e,t,"read from private field"),n?n.call(e):t.get(e)),Y=(e,t,n)=>t.has(e)?dt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),oe=(e,t,n,r)=>(Ke(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Q=(e,t,n)=>(Ke(e,t,"access private method"),n);var on=Array.isArray,cn=Array.prototype.indexOf,Qn=Array.from,er=Object.defineProperty,be=Object.getOwnPropertyDescriptor,_n=Object.getOwnPropertyDescriptors,vn=Object.prototype,dn=Array.prototype,bt=Object.getPrototypeOf,pt=Object.isExtensible;function tr(e){return typeof e=="function"}const nr=()=>{};function rr(e){return e()}function pn(e){for(var t=0;t<e.length;t++)e[t]()}function At(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function sr(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const A=2,Ie=4,Oe=8,nt=1<<24,q=16,H=32,ue=64,St=128,C=512,T=1024,D=2048,U=4096,j=8192,K=16384,rt=32768,ke=65536,ht=1<<17,Rt=1<<18,De=1<<19,xt=1<<20,fr=1<<25,Se=32768,Xe=1<<21,st=1<<22,$=1<<23,re=Symbol("$state"),ar=Symbol("legacy props"),ir=Symbol(""),ce=new class extends Error{constructor(){super(...arguments);B(this,"name","StaleReactionError");B(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},ft=3,Ot=8;function hn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function yn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function wn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function En(e){throw new Error("https://svelte.dev/e/effect_orphan")}function gn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ur(){throw new Error("https://svelte.dev/e/hydration_failed")}function or(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function cr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function mn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Tn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function bn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function _r(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const vr=1,dr=2,pr=4,hr=8,yr=16,wr=1,Er=2,gr=4,mr=8,Tr=16,br=1,Ar=2,An="[",Sn="[!",Rn="]",at={},E=Symbol(),Sr="http://www.w3.org/1999/xhtml",Rr="@attach";function it(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function xr(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Or(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let X=!1;function Dr(e){X=e}let g;function ye(e){if(e===null)throw it(),at;return g=e}function Nr(){return ye(W(g))}function Pr(e){if(X){if(W(g)!==null)throw it(),at;g=e}}function Cr(e=1){if(X){for(var t=e,n=g;t--;)n=W(n);g=n}}function Ir(e=!0){for(var t=0,n=g;;){if(n.nodeType===Ot){var r=n.data;if(r===Rn){if(t===0)return n;t-=1}else(r===An||r===Sn)&&(t+=1)}var s=W(n);e&&n.remove(),n=s}}function kr(e){if(!e||e.nodeType!==Ot)throw it(),at;return e.data}function Dt(e){return e===this.v}function xn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Nt(e){return!xn(e,this.v)}let Be=!1;function Fr(){Be=!0}let b=null;function Fe(e){b=e}function Mr(e,t=!1,n){b={p:b,i:!1,c:null,e:null,s:e,x:null,l:Be&&!t?{s:null,u:null,$:[]}:null}}function jr(e){var t=b,n=t.e;if(n!==null){t.e=null;for(var r of n)$t(r)}return t.i=!0,b=t.p,{}}function Ne(){return!Be||b!==null&&b.l===null}let ee=[];function Pt(){var e=ee;ee=[],pn(e)}function Ct(e){if(ee.length===0&&!Ae){var t=ee;queueMicrotask(()=>{t===ee&&Pt()})}ee.push(e)}function On(){for(;ee.length>0;)Pt()}function Dn(e){var t=h;if(t===null)return _.f|=$,e;if((t.f&rt)===0){if((t.f&St)===0)throw e;t.b.error(e)}else Me(e,t)}function Me(e,t){for(;t!==null;){if((t.f&St)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Nn=-7169;function S(e,t){e.f=e.f&Nn|t}function lt(e){(e.f&C)!==0||e.deps===null?S(e,T):S(e,U)}function It(e){if(e!==null)for(const t of e)(t.f&A)===0||(t.f&Se)===0||(t.f^=Se,It(t.deps))}function Pn(e,t,n){(e.f&D)!==0?t.add(e):(e.f&U)!==0&&n.add(e),It(e.deps),S(e,T)}const Ce=new Set;let p=null,$e=null,m=null,P=[],Ve=null,Ze=!1,Ae=!1;var ve,de,te,ne,xe,pe,he,I,We,Je,kt,Ft;const Ue=class Ue{constructor(){Y(this,I);B(this,"committed",!1);B(this,"current",new Map);B(this,"previous",new Map);Y(this,ve,new Set);Y(this,de,new Set);Y(this,te,0);Y(this,ne,0);Y(this,xe,null);Y(this,pe,new Set);Y(this,he,new Set);B(this,"skipped_effects",new Set);B(this,"is_fork",!1)}is_deferred(){return this.is_fork||y(this,ne)>0}process(t){var s;P=[],$e=null,this.apply();var n=[],r=[];for(const f of t)Q(this,I,We).call(this,f,n,r);this.is_fork||Q(this,I,kt).call(this),this.is_deferred()?(Q(this,I,Je).call(this,r),Q(this,I,Je).call(this,n)):($e=this,p=null,yt(r),yt(n),$e=null,(s=y(this,xe))==null||s.resolve()),m=null}capture(t,n){n!==E&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&$)===0&&(this.current.set(t,t.v),m==null||m.set(t,t.v))}activate(){p=this,this.apply()}deactivate(){p===this&&(p=null,m=null)}flush(){if(this.activate(),P.length>0){if(Mt(),p!==null&&p!==this)return}else y(this,te)===0&&this.process([]);this.deactivate()}discard(){for(const t of y(this,de))t(this);y(this,de).clear()}increment(t){oe(this,te,y(this,te)+1),t&&oe(this,ne,y(this,ne)+1)}decrement(t){oe(this,te,y(this,te)-1),t&&oe(this,ne,y(this,ne)-1),this.revive()}revive(){for(const t of y(this,pe))y(this,he).delete(t),S(t,D),ae(t);for(const t of y(this,he))S(t,U),ae(t);this.flush()}oncommit(t){y(this,ve).add(t)}ondiscard(t){y(this,de).add(t)}settled(){return(y(this,xe)??oe(this,xe,At())).promise}static ensure(){if(p===null){const t=p=new Ue;Ce.add(p),Ae||Ue.enqueue(()=>{p===t&&t.flush()})}return p}static enqueue(t){Ct(t)}apply(){}};ve=new WeakMap,de=new WeakMap,te=new WeakMap,ne=new WeakMap,xe=new WeakMap,pe=new WeakMap,he=new WeakMap,I=new WeakSet,We=function(t,n,r){t.f^=T;for(var s=t.first,f=null;s!==null;){var a=s.f,u=(a&(H|ue))!==0,i=u&&(a&T)!==0,l=i||(a&j)!==0||this.skipped_effects.has(s);if(!l&&s.fn!==null){u?s.f^=T:f!==null&&(a&(Ie|Oe|nt))!==0?f.b.defer_effect(s):(a&Ie)!==0?n.push(s):me(s)&&((a&q)!==0&&y(this,pe).add(s),ge(s));var o=s.first;if(o!==null){s=o;continue}}var c=s.parent;for(s=s.next;s===null&&c!==null;)c===f&&(f=null),s=c.next,c=c.parent}},Je=function(t){for(var n=0;n<t.length;n+=1)Pn(t[n],y(this,pe),y(this,he))},kt=function(){if(y(this,ne)===0){for(const t of y(this,ve))t();y(this,ve).clear()}y(this,te)===0&&Q(this,I,Ft).call(this)},Ft=function(){var s;if(Ce.size>1){this.previous.clear();var t=m,n=!0;for(const f of Ce){if(f===this){n=!1;continue}const a=[];for(const[i,l]of this.current){if(f.current.has(i))if(n&&l!==f.current.get(i))f.current.set(i,l);else continue;a.push(i)}if(a.length===0)continue;const u=[...f.current.keys()].filter(i=>!this.current.has(i));if(u.length>0){var r=P;P=[];const i=new Set,l=new Map;for(const o of a)jt(o,u,i,l);if(P.length>0){p=f,f.apply();for(const o of P)Q(s=f,I,We).call(s,o,[],[]);f.deactivate()}P=r}}p=null,m=t}this.committed=!0,Ce.delete(this)};let we=Ue;function Cn(e){var t=Ae;Ae=!0;try{for(var n;;){if(On(),P.length===0&&(p==null||p.flush(),P.length===0))return Ve=null,n;Mt()}}finally{Ae=t}}function Mt(){var e=se;Ze=!0;var t=null;try{var n=0;for(qe(!0);P.length>0;){var r=we.ensure();if(n++>1e3){var s,f;In()}r.process(P),z.clear()}}finally{Ze=!1,qe(e),Ve=null}}function In(){try{gn()}catch(e){Me(e,Ve)}}let k=null;function yt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(K|j))===0&&me(r)&&(k=new Set,ge(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?Wt(r):r.fn=null),(k==null?void 0:k.size)>0)){z.clear();for(const s of k){if((s.f&(K|j))!==0)continue;const f=[s];let a=s.parent;for(;a!==null;)k.has(a)&&(k.delete(a),f.push(a)),a=a.parent;for(let u=f.length-1;u>=0;u--){const i=f[u];(i.f&(K|j))===0&&ge(i)}}k.clear()}}k=null}}function jt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const f=s.f;(f&A)!==0?jt(s,t,n,r):(f&(st|q))!==0&&(f&D)===0&&Lt(s,t,r)&&(S(s,D),ae(s))}}function Lt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&A)!==0&&Lt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function ae(e){for(var t=Ve=e;t.parent!==null;){t=t.parent;var n=t.f;if(Ze&&t===h&&(n&q)!==0&&(n&Rt)===0)return;if((n&(ue|H))!==0){if((n&T)===0)return;t.f^=T}}P.push(t)}function kn(e,t,n,r){const s=Ne()?ut:jn;if(n.length===0&&e.length===0){r(t.map(s));return}var f=p,a=h,u=Fn();function i(){Promise.all(n.map(l=>Mn(l))).then(l=>{u();try{r([...t.map(s),...l])}catch(o){(a.f&K)===0&&Me(o,a)}f==null||f.deactivate(),je()}).catch(l=>{Me(l,a)})}e.length>0?Promise.all(e).then(()=>{u();try{return i()}finally{f==null||f.deactivate(),je()}}):i()}function Fn(){var e=h,t=_,n=b,r=p;return function(f=!0){Ee(e),Z(t),Fe(n),f&&(r==null||r.activate())}}function je(){Ee(null),Z(null),Fe(null)}function ut(e){var t=A|D,n=_!==null&&(_.f&A)!==0?_:null;return h!==null&&(h.f|=De),{ctx:b,deps:null,effects:null,equals:Dt,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:n??h,ac:null}}function Mn(e,t,n){let r=h;r===null&&hn();var s=r.b,f=void 0,a=ct(E),u=!_,i=new Map;return Gn(()=>{var d;var l=At();f=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{o===p&&o.committed&&o.deactivate(),je()})}catch(w){l.reject(w),je()}var o=p;if(u){var c=s.is_rendered();s.update_pending_count(1),o.increment(c),(d=i.get(o))==null||d.reject(ce),i.delete(o),i.set(o,l)}const v=(w,L=void 0)=>{if(o.activate(),L)L!==ce&&(a.f|=$,et(a,L));else{(a.f&$)!==0&&(a.f^=$),et(a,w);for(const[J,Pe]of i){if(i.delete(J),J===o)break;Pe.reject(ce)}}u&&(s.update_pending_count(-1),o.decrement(c))};l.promise.then(v,w=>v(null,w||"unknown"))}),Vn(()=>{for(const l of i.values())l.reject(ce)}),new Promise(l=>{function o(c){function v(){c===f?l(a):o(f)}c.then(v,v)}o(f)})}function Lr(e){const t=ut(e);return en(t),t}function jn(e){const t=ut(e);return t.equals=Nt,t}function Yt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)ie(t[n])}}function Ln(e){for(var t=e.parent;t!==null;){if((t.f&A)===0)return(t.f&K)===0?t:null;t=t.parent}return null}function ot(e){var t,n=h;Ee(Ln(e));try{e.f&=~Se,Yt(e),t=sn(e)}finally{Ee(n)}return t}function qt(e){var t=ot(e);if(!e.equals(t)&&(e.wv=nn(),(!(p!=null&&p.is_fork)||e.deps===null)&&(e.v=t,e.deps===null))){S(e,T);return}le||(m!==null?(Kt()||p!=null&&p.is_fork)&&m.set(e,t):lt(e))}let Qe=new Set;const z=new Map;let Ht=!1;function ct(e,t){var n={f:0,v:e,reactions:null,equals:Dt,rv:0,wv:0};return n}function V(e,t){const n=ct(e);return en(n),n}function Yr(e,t=!1,n=!0){var s;const r=ct(e);return t||(r.equals=Nt),Be&&n&&b!==null&&b.l!==null&&((s=b.l).s??(s.s=[])).push(r),r}function G(e,t,n=!1){_!==null&&(!F||(_.f&ht)!==0)&&Ne()&&(_.f&(A|q|st|ht))!==0&&!(x!=null&&x.includes(e))&&bn();let r=n?Te(t):t;return et(e,r)}function et(e,t){if(!e.equals(t)){var n=e.v;le?z.set(e,t):z.set(e,n),e.v=t;var r=we.ensure();if(r.capture(e,n),(e.f&A)!==0){const s=e;(e.f&D)!==0&&ot(s),lt(s)}e.wv=nn(),Ut(e,D),Ne()&&h!==null&&(h.f&T)!==0&&(h.f&(H|ue))===0&&(N===null?Xn([e]):N.push(e)),!r.is_fork&&Qe.size>0&&!Ht&&Yn()}return t}function Yn(){Ht=!1;var e=se;qe(!0);const t=Array.from(Qe);try{for(const n of t)(n.f&T)!==0&&S(n,U),me(n)&&ge(n)}finally{qe(e)}Qe.clear()}function qr(e,t=1){var n=_e(e),r=t===1?n++:n--;return G(e,n),r}function ze(e){G(e,e.v+1)}function Ut(e,t){var n=e.reactions;if(n!==null)for(var r=Ne(),s=n.length,f=0;f<s;f++){var a=n[f],u=a.f;if(!(!r&&a===h)){var i=(u&D)===0;if(i&&S(a,t),(u&A)!==0){var l=a;m==null||m.delete(l),(u&Se)===0&&(u&C&&(a.f|=Se),Ut(l,U))}else i&&((u&q)!==0&&k!==null&&k.add(a),ae(a))}}}function Te(e){if(typeof e!="object"||e===null||re in e)return e;const t=bt(e);if(t!==vn&&t!==dn)return e;var n=new Map,r=on(e),s=V(0),f=fe,a=u=>{if(fe===f)return u();var i=_,l=fe;Z(null),Tt(f);var o=u();return Z(i),Tt(l),o};return r&&n.set("length",V(e.length)),new Proxy(e,{defineProperty(u,i,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&mn();var o=n.get(i);return o===void 0?o=a(()=>{var c=V(l.value);return n.set(i,c),c}):G(o,l.value,!0),!0},deleteProperty(u,i){var l=n.get(i);if(l===void 0){if(i in u){const o=a(()=>V(E));n.set(i,o),ze(s)}}else G(l,E),ze(s);return!0},get(u,i,l){var d;if(i===re)return e;var o=n.get(i),c=i in u;if(o===void 0&&(!c||(d=be(u,i))!=null&&d.writable)&&(o=a(()=>{var w=Te(c?u[i]:E),L=V(w);return L}),n.set(i,o)),o!==void 0){var v=_e(o);return v===E?void 0:v}return Reflect.get(u,i,l)},getOwnPropertyDescriptor(u,i){var l=Reflect.getOwnPropertyDescriptor(u,i);if(l&&"value"in l){var o=n.get(i);o&&(l.value=_e(o))}else if(l===void 0){var c=n.get(i),v=c==null?void 0:c.v;if(c!==void 0&&v!==E)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return l},has(u,i){var v;if(i===re)return!0;var l=n.get(i),o=l!==void 0&&l.v!==E||Reflect.has(u,i);if(l!==void 0||h!==null&&(!o||(v=be(u,i))!=null&&v.writable)){l===void 0&&(l=a(()=>{var d=o?Te(u[i]):E,w=V(d);return w}),n.set(i,l));var c=_e(l);if(c===E)return!1}return o},set(u,i,l,o){var vt;var c=n.get(i),v=i in u;if(r&&i==="length")for(var d=l;d<c.v;d+=1){var w=n.get(d+"");w!==void 0?G(w,E):d in u&&(w=a(()=>V(E)),n.set(d+"",w))}if(c===void 0)(!v||(vt=be(u,i))!=null&&vt.writable)&&(c=a(()=>V(void 0)),G(c,Te(l)),n.set(i,c));else{v=c.v!==E;var L=a(()=>Te(l));G(c,L)}var J=Reflect.getOwnPropertyDescriptor(u,i);if(J!=null&&J.set&&J.set.call(o,l),!v){if(r&&typeof i=="string"){var Pe=n.get("length"),Ge=Number(i);Number.isInteger(Ge)&&Ge>=Pe.v&&G(Pe,Ge+1)}ze(s)}return!0},ownKeys(u){_e(s);var i=Reflect.ownKeys(u).filter(c=>{var v=n.get(c);return v===void 0||v.v!==E});for(var[l,o]of n)o.v!==E&&!(l in u)&&i.push(l);return i},setPrototypeOf(){Tn()}})}function wt(e){try{if(e!==null&&typeof e=="object"&&re in e)return e[re]}catch{}return e}function Hr(e,t){return Object.is(wt(e),wt(t))}var Et,qn,Bt,Vt;function Ur(){if(Et===void 0){Et=window,qn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Bt=be(t,"firstChild").get,Vt=be(t,"nextSibling").get,pt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),pt(n)&&(n.__t=void 0)}}function Le(e=""){return document.createTextNode(e)}function Ye(e){return Bt.call(e)}function W(e){return Vt.call(e)}function Br(e,t){if(!X)return Ye(e);var n=Ye(g);if(n===null)n=g.appendChild(Le());else if(t&&n.nodeType!==ft){var r=Le();return n==null||n.before(r),ye(r),r}return ye(n),n}function Vr(e,t=!1){if(!X){var n=Ye(e);return n instanceof Comment&&n.data===""?W(n):n}if(t&&(g==null?void 0:g.nodeType)!==ft){var r=Le();return g==null||g.before(r),ye(r),r}return g}function Gr(e,t=1,n=!1){let r=X?g:e;for(var s;t--;)s=r,r=W(r);if(!X)return r;if(n&&(r==null?void 0:r.nodeType)!==ft){var f=Le();return r===null?s==null||s.after(f):r.before(f),ye(f),f}return ye(r),r}function Hn(e){e.textContent=""}function Kr(){return!1}function $r(e,t){if(t){const n=document.body;e.autofocus=!0,Ct(()=>{document.activeElement===n&&e.focus()})}}function zr(e){X&&Ye(e)!==null&&Hn(e)}let gt=!1;function Un(){gt||(gt=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function _t(e){var t=_,n=h;Z(null),Ee(null);try{return e()}finally{Z(t),Ee(n)}}function Xr(e,t,n,r=n){e.addEventListener(t,()=>_t(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),Un()}function Gt(e){h===null&&(_===null&&En(),wn()),le&&yn()}function Bn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function M(e,t,n){var r=h;r!==null&&(r.f&j)!==0&&(e|=j);var s={ctx:b,deps:null,nodes:null,f:e|D|C,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{ge(s),s.f|=rt}catch(u){throw ie(s),u}else t!==null&&ae(s);var f=s;if(n&&f.deps===null&&f.teardown===null&&f.nodes===null&&f.first===f.last&&(f.f&De)===0&&(f=f.first,(e&q)!==0&&(e&ke)!==0&&f!==null&&(f.f|=ke)),f!==null&&(f.parent=r,r!==null&&Bn(f,r),_!==null&&(_.f&A)!==0&&(e&ue)===0)){var a=_;(a.effects??(a.effects=[])).push(f)}return s}function Kt(){return _!==null&&!F}function Vn(e){const t=M(Oe,null,!1);return S(t,T),t.teardown=e,t}function Zr(e){Gt();var t=h.f,n=!_&&(t&H)!==0&&(t&rt)===0;if(n){var r=b;(r.e??(r.e=[])).push(e)}else return $t(e)}function $t(e){return M(Ie|xt,e,!1)}function Wr(e){return Gt(),M(Oe|xt,e,!0)}function Jr(e){we.ensure();const t=M(ue|De,e,!0);return(n={})=>new Promise(r=>{n.outro?zn(t,()=>{ie(t),r(void 0)}):(ie(t),r(void 0))})}function Qr(e){return M(Ie,e,!1)}function es(e,t){var n=b,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=zt(()=>{e(),!r.ran&&(r.ran=!0,Wn(t))})}function ts(){var e=b;zt(()=>{for(var t of e.l.$){t.deps();var n=t.effect;(n.f&T)!==0&&n.deps!==null&&S(n,U),me(n)&&ge(n),t.ran=!1}})}function Gn(e){return M(st|De,e,!0)}function zt(e,t=0){return M(Oe|t,e,!0)}function ns(e,t=[],n=[],r=[]){kn(r,t,n,s=>{M(Oe,()=>e(...s.map(_e)),!0)})}function rs(e,t=0){var n=M(q|t,e,!0);return n}function ss(e,t=0){var n=M(nt|t,e,!0);return n}function fs(e){return M(H|De,e,!0)}function Xt(e){var t=e.teardown;if(t!==null){const n=le,r=_;mt(!0),Z(null);try{t.call(null)}finally{mt(n),Z(r)}}}function Zt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&_t(()=>{s.abort(ce)});var r=n.next;(n.f&ue)!==0?n.parent=null:ie(n,t),n=r}}function Kn(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&H)===0&&ie(t),t=n}}function ie(e,t=!0){var n=!1;(t||(e.f&Rt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&($n(e.nodes.start,e.nodes.end),n=!0),Zt(e,t&&!n),He(e,0),S(e,K);var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)f.stop();Xt(e);var s=e.parent;s!==null&&s.first!==null&&Wt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function $n(e,t){for(;e!==null;){var n=e===t?null:W(e);e.remove(),e=n}}function Wt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function zn(e,t,n=!0){var r=[];Jt(e,r,!0);var s=()=>{n&&ie(e),t&&t()},f=r.length;if(f>0){var a=()=>--f||s();for(var u of r)u.out(a)}else s()}function Jt(e,t,n){if((e.f&j)===0){e.f^=j;var r=e.nodes&&e.nodes.t;if(r!==null)for(const u of r)(u.is_global||n)&&t.push(u);for(var s=e.first;s!==null;){var f=s.next,a=(s.f&ke)!==0||(s.f&H)!==0&&(e.f&q)!==0;Jt(s,t,a?n:!1),s=f}}}function as(e){Qt(e,!0)}function Qt(e,t){if((e.f&j)!==0){e.f^=j,(e.f&T)===0&&(S(e,D),ae(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&ke)!==0||(n.f&H)!==0;Qt(n,s?t:!1),n=r}var f=e.nodes&&e.nodes.t;if(f!==null)for(const a of f)(a.is_global||t)&&a.in()}}function is(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:W(n);t.append(n),n=s}}let se=!1;function qe(e){se=e}let le=!1;function mt(e){le=e}let _=null,F=!1;function Z(e){_=e}let h=null;function Ee(e){h=e}let x=null;function en(e){_!==null&&(x===null?x=[e]:x.push(e))}let R=null,O=0,N=null;function Xn(e){N=e}let tn=1,Re=0,fe=Re;function Tt(e){fe=e}function nn(){return++tn}function me(e){var t=e.f;if((t&D)!==0)return!0;if(t&A&&(e.f&=-32769),(t&U)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var f=n[s];if(me(f)&&qt(f),f.wv>e.wv)return!0}(t&C)!==0&&m===null&&S(e,T)}return!1}function rn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(x!=null&&x.includes(e)))for(var s=0;s<r.length;s++){var f=r[s];(f.f&A)!==0?rn(f,t,!1):t===f&&(n?S(f,D):(f.f&T)!==0&&S(f,U),ae(f))}}function sn(e){var w;var t=R,n=O,r=N,s=_,f=x,a=b,u=F,i=fe,l=e.f;R=null,O=0,N=null,_=(l&(H|ue))===0?e:null,x=null,Fe(e.ctx),F=!1,fe=++Re,e.ac!==null&&(_t(()=>{e.ac.abort(ce)}),e.ac=null);try{e.f|=Xe;var o=e.fn,c=o(),v=e.deps;if(R!==null){var d;if(He(e,O),v!==null&&O>0)for(v.length=O+R.length,d=0;d<R.length;d++)v[O+d]=R[d];else e.deps=v=R;if(Kt()&&(e.f&C)!==0)for(d=O;d<v.length;d++)((w=v[d]).reactions??(w.reactions=[])).push(e)}else v!==null&&O<v.length&&(He(e,O),v.length=O);if(Ne()&&N!==null&&!F&&v!==null&&(e.f&(A|U|D))===0)for(d=0;d<N.length;d++)rn(N[d],e);return s!==null&&s!==e&&(Re++,N!==null&&(r===null?r=N:r.push(...N))),(e.f&$)!==0&&(e.f^=$),c}catch(L){return Dn(L)}finally{e.f^=Xe,R=t,O=n,N=r,_=s,x=f,Fe(a),F=u,fe=i}}function Zn(e,t){let n=t.reactions;if(n!==null){var r=cn.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&A)!==0&&(R===null||!R.includes(t))){var f=t;(f.f&C)!==0&&(f.f^=C,f.f&=-32769),lt(f),Yt(f),He(f,0)}}function He(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Zn(e,n[r])}function ge(e){var t=e.f;if((t&K)===0){S(e,T);var n=h,r=se;h=e,se=!0;try{(t&(q|nt))!==0?Kn(e):Zt(e),Xt(e);var s=sn(e);e.teardown=typeof s=="function"?s:null,e.wv=tn;var f}finally{se=r,h=n}}}async function ls(){await Promise.resolve(),Cn()}function us(){return we.ensure().settled()}function _e(e){var t=e.f,n=(t&A)!==0;if(_!==null&&!F){var r=h!==null&&(h.f&K)!==0;if(!r&&!(x!=null&&x.includes(e))){var s=_.deps;if((_.f&Xe)!==0)e.rv<Re&&(e.rv=Re,R===null&&s!==null&&s[O]===e?O++:R===null?R=[e]:R.includes(e)||R.push(e));else{(_.deps??(_.deps=[])).push(e);var f=e.reactions;f===null?e.reactions=[_]:f.includes(_)||f.push(_)}}}if(le&&z.has(e))return z.get(e);if(n){var a=e;if(le){var u=a.v;return((a.f&T)===0&&a.reactions!==null||an(a))&&(u=ot(a)),z.set(a,u),u}var i=(a.f&C)===0&&!F&&_!==null&&(se||(_.f&C)!==0),l=a.deps===null;me(a)&&(i&&(a.f|=C),qt(a)),i&&!l&&fn(a)}if(m!=null&&m.has(e))return m.get(e);if((e.f&$)!==0)throw e.v;return e.v}function fn(e){if(e.deps!==null){e.f|=C;for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),(t.f&A)!==0&&(t.f&C)===0&&fn(t)}}function an(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(z.has(t)||(t.f&A)!==0&&an(t))return!0;return!1}function Wn(e){var t=F;try{return F=!0,e()}finally{F=t}}function os(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(re in e)tt(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&re in n&&tt(n)}}}function tt(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{tt(e[r],t)}catch{}const n=bt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=_n(n);for(let s in r){const f=r[s].get;if(f)try{f.call(e)}catch{}}}}}export{be as $,fs as A,X as B,g as C,is as D,Kr as E,Fr as F,nr as G,zr as H,Xr as I,ls as J,zt as K,$e as L,Hr as M,Vn as N,Ct as O,rs as P,Nr as Q,ke as R,kr as S,Sn as T,Ir as U,ye as V,Dr as W,er as X,Yr as Y,h as Z,ct as _,jr as a,Hn as a$,cr as a0,gr as a1,K as a2,jn as a3,qr as a4,Ee as a5,Be as a6,Er as a7,mr as a8,wr as a9,Pn as aA,Z as aB,Fe as aC,Dn as aD,_ as aE,S as aF,D as aG,ae as aH,U as aI,et as aJ,Me as aK,_r as aL,De as aM,St as aN,Or as aO,_t as aP,Ye as aQ,qn as aR,br as aS,Ar as aT,rt as aU,ft as aV,Ur as aW,An as aX,W as aY,at as aZ,ur as a_,Tr as aa,le as ab,re as ac,ar as ad,tr as ae,xn as af,on as ag,or as ah,sr as ai,Qr as aj,Cn as ak,ss as al,xr as am,kn as an,Rr as ao,$r as ap,E as aq,Un as ar,Sr as as,bt as at,ir as au,_n as av,Kt as aw,ze as ax,Ot as ay,we as az,G as b,Qn as b0,Jr as b1,Rn as b2,it as b3,fr as b4,vr as b5,yr as b6,dr as b7,j as b8,pr as b9,hr as ba,$n as bb,Rt as bc,es as bd,ts as be,us as bf,Br as c,V as d,Wn as e,Vr as f,_e as g,Te as h,b as i,Wr as j,Zr as k,rr as l,pn as m,Cr as n,os as o,Mr as p,ut as q,Pr as r,Gr as s,ns as t,Lr as u,p as v,as as w,ie as x,zn as y,Le as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as a}from"./CD2k2u89.js";a();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var D=Object.defineProperty;var g=i=>{throw TypeError(i)};var C=(i,e,s)=>e in i?D(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s;var w=(i,e,s)=>C(i,typeof e!="symbol"?e+"":e,s),y=(i,e,s)=>e.has(i)||g("Cannot "+s);var t=(i,e,s)=>(y(i,e,"read from private field"),s?s.call(i):e.get(i)),l=(i,e,s)=>e.has(i)?g("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,s),M=(i,e,s,a)=>(y(i,e,"write to private field"),a?a.call(i,s):e.set(i,s),s);import{v as x,w as F,x as k,y as z,z as A,A as B,B as E,C as S,D as j,E as q}from"./CD2k2u89.js";var r,n,h,p,m,v,_;class I{constructor(e,s=!0){w(this,"anchor");l(this,r,new Map);l(this,n,new Map);l(this,h,new Map);l(this,p,new Set);l(this,m,!0);l(this,v,()=>{var e=x;if(t(this,r).has(e)){var s=t(this,r).get(e),a=t(this,n).get(s);if(a)F(a),t(this,p).delete(s);else{var c=t(this,h).get(s);c&&(t(this,n).set(s,c.effect),t(this,h).delete(s),c.fragment.lastChild.remove(),this.anchor.before(c.fragment),a=c.effect)}for(const[f,o]of t(this,r)){if(t(this,r).delete(f),f===e)break;const d=t(this,h).get(o);d&&(k(d.effect),t(this,h).delete(o))}for(const[f,o]of t(this,n)){if(f===s||t(this,p).has(f))continue;const d=()=>{if(Array.from(t(this,r).values()).includes(f)){var b=document.createDocumentFragment();j(o,b),b.append(A()),t(this,h).set(f,{effect:o,fragment:b})}else k(o);t(this,p).delete(f),t(this,n).delete(f)};t(this,m)||!a?(t(this,p).add(f),z(o,d,!1)):d()}}});l(this,_,e=>{t(this,r).delete(e);const s=Array.from(t(this,r).values());for(const[a,c]of t(this,h))s.includes(a)||(k(c.effect),t(this,h).delete(a))});this.anchor=e,M(this,m,s)}ensure(e,s){var a=x,c=q();if(s&&!t(this,n).has(e)&&!t(this,h).has(e))if(c){var f=document.createDocumentFragment(),o=A();f.append(o),t(this,h).set(e,{effect:B(()=>s(o)),fragment:f})}else t(this,n).set(e,B(()=>s(this.anchor)));if(t(this,r).set(a,e),c){for(const[d,u]of t(this,n))d===e?a.skipped_effects.delete(u):a.skipped_effects.add(u);for(const[d,u]of t(this,h))d===e?a.skipped_effects.delete(u.effect):a.skipped_effects.add(u.effect);a.oncommit(t(this,v)),a.ondiscard(t(this,_))}else E&&(this.anchor=S),t(this,v).call(this)}}r=new WeakMap,n=new WeakMap,h=new WeakMap,p=new WeakMap,m=new WeakMap,v=new WeakMap,_=new WeakMap;export{I as B};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as L,v as _,J as H,B as P,e as J,K as p,L as K,M as W,N as F,O as j,c as f,g,u as Q,r as u,t as E,f as M,G as z,s as y}from"./CD2k2u89.js";import{d as R,f as b,a as m,c as T,s as C}from"./Dm9HHmcs.js";import{a as U,s as X,c as D}from"./XtX2ckS1.js";import{i as N,a as Y,s as Z}from"./BYPKMD8u.js";import{f as $,L as ee}from"./B7yWsbOZ.js";import{I as ae}from"./M4yGBGmj.js";function ue(e,s,t=s){var d=new WeakSet;L(e,"input",async l=>{var o=l?e.defaultValue:e.value;if(o=A(e)?B(o):o,t(o),_!==null&&d.add(_),await H(),o!==(o=s())){var a=e.selectionStart,v=e.selectionEnd,n=e.value.length;if(e.value=o??"",v!==null){var r=e.value.length;a===v&&v===n&&r>n?(e.selectionStart=r,e.selectionEnd=r):(e.selectionStart=a,e.selectionEnd=Math.min(v,r))}}}),(P&&e.defaultValue!==e.value||J(s)==null&&e.value)&&(t(A(e)?B(e.value):e.value),_!==null&&d.add(_)),p(()=>{var l=s();if(e===document.activeElement){var o=K??_;if(d.has(o))return}A(e)&&l===B(e.value)||e.type==="date"&&!l&&!e.value||l!==e.value&&(e.value=l??"")})}const S=new Set;function me(e,s,t,d,l=d){var o=t.getAttribute("type")==="checkbox",a=e;let v=!1;if(s!==null)for(var n of s)a=a[n]??(a[n]=[]);a.push(t),L(t,"change",()=>{var r=t.__value;o&&(r=I(a,r,t.checked)),l(r)},()=>l(o?[]:null)),p(()=>{var r=d();if(P&&t.defaultChecked!==t.checked){v=!0;return}o?(r=r||[],t.checked=r.includes(t.__value)):t.checked=W(t.__value,r)}),F(()=>{var r=a.indexOf(t);r!==-1&&a.splice(r,1)}),S.has(a)||(S.add(a),j(()=>{a.sort((r,c)=>r.compareDocumentPosition(c)===4?-1:1),S.delete(a)})),j(()=>{if(v){var r;if(o)r=I(a,r,t.checked);else{var c=a.find(i=>i.checked);r=c==null?void 0:c.__value}l(r)}})}function I(e,s,t){for(var d=new Set,l=0;l<e.length;l+=1)e[l].checked&&d.add(e[l].__value);return t||d.delete(s),Array.from(d)}function A(e){var s=e.type;return s==="number"||s==="range"}function B(e){return e===""?null:+e}var re=b('<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 9v3.75m0-10.036A11.959 11.959 0 013.598 6 11.99 11.99 0 003 9.75c0 5.592 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.57-.598-3.75A11.959 11.959 0 0112 2.704z"></path><path stroke-linecap="round" stroke-linejoin="round" d="M12 15.75h.007v.008H12v-.008z"></path></svg> <span class="text-xs">Not Connected</span></div>'),te=b("<button><!></button>");function _e(e,s){const t=()=>Y($,"$connected",d),[d,l]=Z(),o=Q(()=>t()?!!s.disabled:!0);var a=te();a.__click=function(...c){var i;(i=s.buttonAction)==null||i.apply(this,c)};var v=f(a);{var n=c=>{var i=re();m(c,i)},r=c=>{var i=T(),h=M(i);D(h,()=>s.children??z),m(c,i)};N(v,c=>{!t()&&g(o)?c(n):c(r,!1)})}u(a),E(()=>{U(a,1,`inline-flex items-center justify-center px-6 py-3 text-sm font-semibold border border-transparent rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:cursor-not-allowed transition-all duration-200 ${g(o)&&!t()?"bg-red-100 text-red-700 border-red-200 hover:bg-red-100":g(o)?"bg-gray-100 text-gray-500 border-gray-200 hover:bg-gray-100":"text-white bg-blue-600 hover:bg-blue-700 focus:ring-blue-500"}`),a.disabled=g(o),X(a,"title",t()?"":"Please connect to Sockethub first")}),m(e,a),l()}R(["click"]);var se=b('<p class="text-lg text-gray-600 leading-relaxed"> </p>'),oe=b("<title> </title> <!>",1),le=b('<!> <div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 space-y-8"><div class="bg-white shadow-sm border border-gray-200 rounded-xl p-8"><div class="space-y-8"><!></div></div></div> <div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 mt-8"><!></div>',1);function be(e,s){var t=le(),d=M(t);ae(d,{get title(){return s.title},children:(c,i)=>{var h=oe(),x=M(h),O=f(x,!0);u(x);var V=y(x,2);{var q=k=>{var w=se(),G=f(w,!0);u(w),E(()=>C(G,s.description)),m(k,w)};N(V,k=>{s.description&&k(q)})}E(()=>C(O,s.title)),m(c,h)}});var l=y(d,2),o=f(l),a=f(o),v=f(a);D(v,()=>s.children??z),u(a),u(o),u(l);var n=y(l,2),r=f(n);ee(r,{}),u(n),m(e,t)}export{be as B,_e as S,me as a,ue as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as c,a as o,c as R,d as te}from"./Dm9HHmcs.js";import{p as L,s as j,c as h,r as p,t as se,a as D,g as r,u as V,e as _,f as J,k as ae,d as H,n as U,b as S}from"./CD2k2u89.js";import{r as X,a as oe,d as re}from"./XtX2ckS1.js";import{b as Y,S as G}from"./DUJRAiM5.js";import{p as I,s as O,c as F,a as q,i as T}from"./BYPKMD8u.js";import{T as ne}from"./C_USdH9H.js";import{b as ie,a as K,c as Q,d as le,s as W}from"./B7yWsbOZ.js";var ce=c('<div class="pb-4"><label for="actor-id-input" class="pr-3">Actor ID</label> <input id="actor-id-input" type="text"/></div>');function Ae(w,e){L(e,!0);let t=I(e,"value",15),b=I(e,"class",3,"bg-white border border-solid border-gray-300 rounded");var d=ce(),s=j(h(d),2);X(s),p(d),se(()=>oe(s,1,re(b()))),Y(s,t),o(w,d),D()}function ze(w,e){L(e,!0);const t=()=>q(e.sockethubState,"$sockethubState",b),[b,d]=O();async function s(a){await ie();const v={"@context":await Q(e.context),type:"credentials",actor:K(e.actor),object:JSON.parse(a)};return new Promise((x,m)=>{le.socket.emit("credentials",v,u=>{if(u!=null&&u.error){m(new Error(u.error));return}F(e.sockethubState,_(t).credentialsSet=!0,_(t)),x()})})}{let a=V(()=>!t().actorSet||t().credentialsSet||!1);ne(w,{title:"Credentials",get obj(){return e.credentials},buttonText:"Set Credentials",submitData:s,get disabled(){return r(a)}})}D(),d()}var de=c('<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>'),ve=c('<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>'),ue=c('<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>'),me=c('<div class="w-full flex justify-end"><!></div>');function Be(w,e){L(e,!0);const t=()=>q(e.sockethubState,"$sockethubState",b),[b,d]=O();let s=I(e,"disabled",3,!1),a=V(()=>s()||!t().credentialsSet||t().connected||e.connecting);var v=me(),x=h(v);G(x,{get disabled(){return r(a)},buttonAction:async()=>{await e.onConnect()},children:(m,u)=>{var k=R(),y=J(k);{var M=i=>{var C=de();o(i,C)},n=i=>{var C=R(),B=J(C);{var A=g=>{var l=ve();o(g,l)},P=g=>{var l=ue();o(g,l)};T(B,g=>{t().connected?g(A):g(P,!1)},!0)}o(i,C)};T(y,i=>{e.connecting?i(M):i(n,!1)})}o(m,k)}}),p(v),o(w,v),D(),d()}var ge=c('<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>'),fe=c('<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>'),he=c('<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>'),pe=c('<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="sockethub@irc.libera.chat, kosmos-random@kosmos.chat"/> <p class="text-gray-500 text-xs">💡 IRC: channel@server (e.g. sockethub@irc.libera.chat); include # in name when sending (e.g. #sockethub) | XMPP: room@server.com</p></div> <div class="flex justify-end"><!></div></div></div>');function Pe(w,e){L(e,!0);const t=()=>q(e.sockethubState,"$sockethubState",b),[b,d]=O();let s=I(e,"room",15),a=H(!1),v=H("");ae(()=>{s()!==r(v)&&F(e.sockethubState,_(t).joined=!1,_(t))});async function x(){return S(a,!0),await W({"@context":await Q(e.context),type:"join",actor:K(e.actor),target:{id:s(),name:s(),type:"room"}}).catch(()=>{F(e.sockethubState,_(t).joined=!1,_(t)),S(a,!1)}).then(()=>{S(v,s(),!0),F(e.sockethubState,_(t).joined=!0,_(t)),S(a,!1)})}var m=pe(),u=j(h(m),2),k=h(u),y=j(h(k),2);X(y),U(2),p(k);var M=j(k,2),n=h(M);{let i=V(()=>!t().connected||t().joined||r(a));G(n,{get disabled(){return r(i)},buttonAction:x,children:(C,B)=>{var A=R(),P=J(A);{var g=f=>{var E=ge();o(f,E)},l=f=>{var E=R(),Z=J(E);{var $=z=>{var N=fe();o(z,N)},ee=z=>{var N=he();o(z,N)};T(Z,z=>{t().joined?z($):z(ee,!1)},!0)}o(f,E)};T(P,f=>{r(a)?f(g):f(l,!1)})}o(C,A)}})}p(M),p(u),p(m),Y(y,s),o(w,m),D(),d()}var we=c('<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>'),be=c('<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>'),xe=c('<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 Re(w,e){L(e,!0);const t=()=>q(e.sockethubState,"$sockethubState",b),[b,d]=O();let s=H(""),a=H(!1);async function v(){if(!r(s).trim())return;S(a,!0);const n=r(s).trim();console.log("send message: ",n);try{await W({"@context":await Q(e.context),type:"send",actor:K(e.actor),object:{type:"message",content:n},target:{id:e.room,name:e.room,type:"room"}}),S(s,"")}catch(i){console.error("Failed to send message:",i)}finally{S(a,!1)}}var x=xe(),m=j(h(x),2),u=h(m),k=j(h(u),2),y=h(k);X(y),y.__keydown=n=>{n.key==="Enter"&&!r(a)&&t().connected&&v()};var M=j(y,2);{let n=V(()=>!t().connected||r(a)||!r(s).trim());G(M,{get disabled(){return r(n)},buttonAction:v,children:(i,C)=>{var B=R(),A=J(B);{var P=l=>{var f=we();o(l,f)},g=l=>{var f=be();o(l,f)};T(A,l=>{r(a)?l(P):l(g,!1)})}o(i,B)}})}p(k),U(2),p(u),p(m),p(x),Y(y,()=>r(s),n=>S(s,n)),o(w,x),D(),d()}te(["keydown"]);export{Ae as A,ze as C,Be as P,Pe as R,Re as S};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var Ie=Object.defineProperty;var pe=t=>{throw TypeError(t)};var Le=(t,e,r)=>e in t?Ie(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ee=(t,e,r)=>Le(t,typeof e!="symbol"?e+"":e,r),te=(t,e,r)=>e.has(t)||pe("Cannot "+r);var s=(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,n)=>(te(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),p=(t,e,r)=>(te(t,e,"access private method"),r);import{aw as Ce,g as we,_ as Re,K as Fe,e as Me,ax as ge,O as de,C as v,B as E,Z as M,P as Pe,Q as Ne,ay as he,T as Ve,A as I,az as G,y as re,z as U,aA as Be,a5 as Q,aB as B,aC as ve,aD as Ye,aE as ie,i as Ae,D as xe,aF as me,aG as We,aH as ye,aI as He,aJ as Ue,x as se,V as j,n as je,U as qe,aK as Ee,aL as ze,R as Ge,aM as Xe,aN as $e,aO as Ke,X as Qe,aP as Ze,aQ as ne,aR as Je,aS as et,aT as tt,aU as rt,aV as st,aW as ae,aX as it,aY as nt,aZ as oe,W as X,a_ as at,a$ as ot,b0 as ut,b1 as lt,p as ft,b2 as ct,b3 as dt,a as ht}from"./CD2k2u89.js";function _t(t){let e=0,r=Re(0),n;return()=>{Ce()&&(we(r),Fe(()=>(e===0&&(n=Me(()=>t(()=>ge(r)))),e+=1,()=>{de(()=>{e-=1,e===0&&(n==null||n(),n=void 0,ge(r))})})))}}var pt=Ge|Xe|$e;function gt(t,e,r){new vt(t,e,r)}var g,q,b,L,T,y,h,w,A,D,C,S,F,Y,x,k,Z,l,Se,De,ue,$,K,le;class vt{constructor(e,r,n){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,L);f(this,T);f(this,y,null);f(this,h,null);f(this,w,null);f(this,A,null);f(this,D,null);f(this,C,0);f(this,S,0);f(this,F,!1);f(this,Y,new Set);f(this,x,new Set);f(this,k,null);f(this,Z,_t(()=>(a(this,k,Re(s(this,C))),()=>{a(this,k,null)})));a(this,g,e),a(this,b,r),a(this,L,n),this.parent=M.b,this.is_pending=!!s(this,b).pending,a(this,T,Pe(()=>{if(M.b=this,E){const i=s(this,q);Ne(),i.nodeType===he&&i.data===Ve?p(this,l,De).call(this):(p(this,l,Se).call(this),s(this,S)===0&&(this.is_pending=!1))}else{var o=p(this,l,ue).call(this);try{a(this,y,I(()=>n(o)))}catch(i){this.error(i)}s(this,S)>0?p(this,l,K).call(this):this.is_pending=!1}return()=>{var i;(i=s(this,D))==null||i.remove()}},pt)),E&&a(this,g,v)}defer_effect(e){Be(e,s(this,Y),s(this,x))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!s(this,b).pending}update_pending_count(e){p(this,l,le).call(this,e),a(this,C,s(this,C)+e),s(this,k)&&Ue(s(this,k),s(this,C))}get_effect_pending(){return s(this,Z).call(this),we(s(this,k))}error(e){var r=s(this,b).onerror;let n=s(this,b).failed;if(s(this,F)||!r&&!n)throw e;s(this,y)&&(se(s(this,y)),a(this,y,null)),s(this,h)&&(se(s(this,h)),a(this,h,null)),s(this,w)&&(se(s(this,w)),a(this,w,null)),E&&(j(s(this,q)),je(),j(qe()));var o=!1,i=!1;const u=()=>{if(o){Ke();return}o=!0,i&&ze(),G.ensure(),a(this,C,0),s(this,w)!==null&&re(s(this,w),()=>{a(this,w,null)}),this.is_pending=this.has_pending_snippet(),a(this,y,p(this,l,$).call(this,()=>(a(this,F,!1),I(()=>s(this,L).call(this,s(this,g)))))),s(this,S)>0?p(this,l,K).call(this):this.is_pending=!1};var m=ie;try{B(null),i=!0,r==null||r(e,u),i=!1}catch(_){Ee(_,s(this,T)&&s(this,T).parent)}finally{B(m)}n&&de(()=>{a(this,w,p(this,l,$).call(this,()=>{G.ensure(),a(this,F,!0);try{return I(()=>{n(s(this,g),()=>e,()=>u)})}catch(_){return Ee(_,s(this,T).parent),null}finally{a(this,F,!1)}}))})}}g=new WeakMap,q=new WeakMap,b=new WeakMap,L=new WeakMap,T=new WeakMap,y=new WeakMap,h=new WeakMap,w=new WeakMap,A=new WeakMap,D=new WeakMap,C=new WeakMap,S=new WeakMap,F=new WeakMap,Y=new WeakMap,x=new WeakMap,k=new WeakMap,Z=new WeakMap,l=new WeakSet,Se=function(){try{a(this,y,I(()=>s(this,L).call(this,s(this,g))))}catch(e){this.error(e)}},De=function(){const e=s(this,b).pending;e&&(a(this,h,I(()=>e(s(this,g)))),G.enqueue(()=>{var r=p(this,l,ue).call(this);a(this,y,p(this,l,$).call(this,()=>(G.ensure(),I(()=>s(this,L).call(this,r))))),s(this,S)>0?p(this,l,K).call(this):(re(s(this,h),()=>{a(this,h,null)}),this.is_pending=!1)}))},ue=function(){var e=s(this,g);return this.is_pending&&(a(this,D,U()),s(this,g).before(s(this,D)),e=s(this,D)),e},$=function(e){var r=M,n=ie,o=Ae;Q(s(this,T)),B(s(this,T)),ve(s(this,T).ctx);try{return e()}catch(i){return Ye(i),null}finally{Q(r),B(n),ve(o)}},K=function(){const e=s(this,b).pending;s(this,y)!==null&&(a(this,A,document.createDocumentFragment()),s(this,A).append(s(this,D)),xe(s(this,y),s(this,A))),s(this,h)===null&&a(this,h,I(()=>e(s(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,S,s(this,S)+e),s(this,S)===0){this.is_pending=!1;for(const n of s(this,Y))me(n,We),ye(n);for(const n of s(this,x))me(n,He),ye(n);s(this,Y).clear(),s(this,x).clear(),s(this,h)&&re(s(this,h),()=>{a(this,h,null)}),s(this,A)&&(s(this,g).before(s(this,A)),a(this,A,null))}};function St(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 Dt(t){return mt.includes(t)}const yt={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 kt(t){return t=t.toLowerCase(),yt[t]??t}const Et=["touchstart","touchmove"];function bt(t){return Et.includes(t)}const ke=new Set,fe=new Set;function Ot(t,e,r,n={}){function o(i){if(n.capture||H.call(e,i),!i.cancelBubble)return Ze(()=>r==null?void 0:r.call(this,i))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?de(()=>{e.addEventListener(t,o,n)}):e.addEventListener(t,o,n),o}function It(t){for(var e=0;e<t.length;e++)ke.add(t[e]);for(var r of fe)r(t)}let be=null;function H(t){var _e;var e=this,r=e.ownerDocument,n=t.type,o=((_e=t.composedPath)==null?void 0:_e.call(t))||[],i=o[0]||t.target;be=t;var u=0,m=be===t&&t.__root;if(m){var _=o.indexOf(m);if(_!==-1&&(e===document||e===window)){t.__root=e;return}var P=o.indexOf(e);if(P===-1)return;_<=P&&(u=_)}if(i=o[u]||t.target,i!==e){Qe(t,"currentTarget",{configurable:!0,get(){return i||r}});var J=ie,R=M;B(null),Q(null);try{for(var c,d=[];i!==null;){var N=i.assignedSlot||i.parentNode||i.host||null;try{var W=i["__"+n];W!=null&&(!i.disabled||t.target===i)&&W.call(i,t)}catch(z){c?d.push(z):c=z}if(t.cancelBubble||N===e||N===null)break;i=N}if(c){for(let z of d)queueMicrotask(()=>{throw z});throw c}}finally{t.__root=e,delete t.currentTarget,B(J),Q(R)}}}function Tt(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function O(t,e){var r=M;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function Lt(t,e){var r=(e&et)!==0,n=(e&tt)!==0,o,i=!t.startsWith("<!>");return()=>{if(E)return O(v,null),v;o===void 0&&(o=Tt(i?t:"<!>"+t),r||(o=ne(o)));var u=n||Je?document.importNode(o,!0):o.cloneNode(!0);if(r){var m=ne(u),_=u.lastChild;O(m,_)}else O(u,u);return u}}function Ct(t=""){if(!E){var e=U(t+"");return O(e,e),e}var r=v;return r.nodeType!==st&&(r.before(r=U()),j(r)),O(r,r),r}function Ft(){if(E)return O(v,null),v;var t=document.createDocumentFragment(),e=document.createComment(""),r=U();return t.append(e,r),O(e,r),t}function Mt(t,e){if(E){var r=M;((r.f&rt)===0||r.nodes.end===null)&&(r.nodes.end=v),Ne();return}t!==null&&t.before(e)}function Pt(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 wt(t,e){return Oe(t,e)}function Vt(t,e){ae(),e.intro=e.intro??!1;const r=e.target,n=E,o=v;try{for(var i=ne(r);i&&(i.nodeType!==he||i.data!==it);)i=nt(i);if(!i)throw oe;X(!0),j(i);const u=Oe(t,{...e,anchor:i});return X(!1),u}catch(u){if(u instanceof Error&&u.message.split(`
|
|
2
|
-
`).some(m=>m.startsWith("https://svelte.dev/e/")))throw u;return u!==oe&&console.warn("Failed to hydrate: ",u),e.recover===!1&&at(),ae(),ot(r),X(!1),wt(t,e)}finally{X(n),j(o)}}const V=new Map;function Oe(t,{target:e,anchor:r,props:n={},events:o,context:i,intro:u=!0}){ae();var m=new Set,_=R=>{for(var c=0;c<R.length;c++){var d=R[c];if(!m.has(d)){m.add(d);var N=bt(d);e.addEventListener(d,H,{passive:N});var W=V.get(d);W===void 0?(document.addEventListener(d,H,{passive:N}),V.set(d,1)):V.set(d,W+1)}}};_(ut(ke)),fe.add(_);var P=void 0,J=lt(()=>{var R=r??e.appendChild(U());return gt(R,{pending:()=>{}},c=>{if(i){ft({});var d=Ae;d.c=i}if(o&&(n.$$events=o),E&&O(c,null),P=t(c,n)||{},E&&(M.nodes.end=v,v===null||v.nodeType!==he||v.data!==ct))throw dt(),oe;i&&ht()}),()=>{var N;for(var c of m){e.removeEventListener(c,H);var d=V.get(c);--d===0?(document.removeEventListener(c,H),V.delete(c)):V.set(c,d)}fe.delete(_),R!==r&&((N=R.parentNode)==null||N.removeChild(R))}});return ce.set(P,J),P}let ce=new WeakMap;function Bt(t,e){const r=ce.get(t);return r?(ce.delete(t),r(e)):Promise.resolve()}const Rt="5";var Te;typeof window<"u"&&((Te=window.__svelte??(window.__svelte={})).v??(Te.v=new Set)).add(Rt);export{Mt as a,Ot as b,Ft as c,It as d,Dt as e,Lt as f,O as g,Vt as h,St as i,Tt as j,wt as m,kt as n,Pt as s,Ct as t,Bt as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var Ht=t=>{throw TypeError(t)};var Ue=(t,e,n)=>e.has(t)||Ht("Cannot "+n);var w=(t,e,n)=>(Ue(t,e,"read from private field"),n?n.call(t):e.get(t)),L=(t,e,n)=>e.has(t)?Ht("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n);import{d as T,g as I,b as O,J as ht,bf as Te}from"./CD2k2u89.js";import{w as $t,o as Xt}from"./C7RIZnpe.js";import{a as Ie,b as U}from"./BeOvm82p.js";class jt{constructor(e,n){this.status=e,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}}class Nt{constructor(e,n){this.status=e,this.location=n}}class Dt extends Error{constructor(e,n,r){super(r),this.status=e,this.text=n}}new URL("sveltekit-internal://");function Oe(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function Pe(t){return t.split("%25").map(decodeURI).join("%25")}function Ce(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}function xt({href:t}){return t.split("#")[0]}function $e(...t){let e=5381;for(const n of t)if(typeof n=="string"){let r=n.length;for(;r;)e=e*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)e=e*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}new TextEncoder;new TextDecoder;function je(t){const e=atob(t),n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n}const Ne=window.fetch;window.fetch=(t,e)=>((t instanceof Request?t.method:(e==null?void 0:e.method)||"GET")!=="GET"&&Y.delete(Vt(t)),Ne(t,e));const Y=new Map;function De(t,e){const n=Vt(t,e),r=document.querySelector(n);if(r!=null&&r.textContent){r.remove();let{body:a,...s}=JSON.parse(r.textContent);const o=r.getAttribute("data-ttl");return o&&Y.set(n,{body:a,init:s,ttl:1e3*Number(o)}),r.getAttribute("data-b64")!==null&&(a=je(a)),Promise.resolve(new Response(a,s))}return window.fetch(t,e)}function Ve(t,e,n){if(Y.size>0){const r=Vt(t,n),a=Y.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n==null?void 0:n.cache))return new Response(a.body,a.init);Y.delete(r)}}return window.fetch(e,n)}function Vt(t,e){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(t instanceof Request?t.url:t)}]`;if(e!=null&&e.headers||e!=null&&e.body){const a=[];e.headers&&a.push([...new Headers(e.headers)].join(",")),e.body&&(typeof e.body=="string"||ArrayBuffer.isView(e.body))&&a.push(e.body),r+=`[data-hash="${$e(...a)}"]`}return r}const qe=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Be(t){const e=[];return{pattern:t==="/"?/^\/$/:new RegExp(`^${Me(t).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return e.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return e.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const o=r.split(/\[(.+?)\](?!\])/);return"/"+o.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return At(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return At(String.fromCharCode(...c.slice(2).split("-").map(_=>parseInt(_,16))));const d=qe.exec(c),[,u,y,f,h]=d;return e.push({name:f,matcher:h,optional:!!u,rest:!!y,chained:y?l===1&&o[0]==="":!1}),y?"([^]*?)":u?"([^/]*)?":"([^/]+?)"}return At(c)}).join("")}).join("")}/?$`),params:e}}function Ke(t){return t!==""&&!/^\([^)]+\)$/.test(t)}function Me(t){return t.slice(1).split("/").filter(Ke)}function Fe(t,e,n){const r={},a=t.slice(1),s=a.filter(i=>i!==void 0);let o=0;for(let i=0;i<e.length;i+=1){const c=e[i];let l=a[i-o];if(c.chained&&c.rest&&o&&(l=a.slice(i-o,i+1).filter(d=>d).join("/"),o=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=e[i+1],u=a[i+1];d&&!d.rest&&d.optional&&u&&c.chained&&(o=0),!d&&!u&&Object.keys(r).length===s.length&&(o=0);continue}if(c.optional&&c.chained){o++;continue}return}if(!o)return r}function At(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ge({nodes:t,server_loads:e,dictionary:n,matchers:r}){const a=new Set(e);return Object.entries(n).map(([i,[c,l,d]])=>{const{pattern:u,params:y}=Be(i),f={id:i,exec:h=>{const _=u.exec(h);if(_)return Fe(_,y,r)},errors:[1,...d||[]].map(h=>t[h]),layouts:[0,...l||[]].map(o),leaf:s(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(i){const c=i<0;return c&&(i=~i),[c,t[i]]}function o(i){return i===void 0?i:[a.has(i),t[i]]}}function ce(t,e=JSON.parse){try{return e(sessionStorage[t])}catch{}}function Qt(t,e,n=JSON.stringify){const r=n(e);try{sessionStorage[t]=r}catch{}}const We="1787731458417",le="sveltekit:snapshot",fe="sveltekit:scroll",ue="sveltekit:states",Ye="sveltekit:pageurl",F="sveltekit:history",z="sveltekit:navigation",D={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},qt=location.origin;function de(t){if(t instanceof URL)return t;let e=document.baseURI;if(!e){const n=document.getElementsByTagName("base");e=n.length?n[0].href:document.URL}return new URL(t,e)}function kt(){return{x:pageXOffset,y:pageYOffset}}function M(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const Zt={...D,"":D.hover};function he(t){let e=t.assignedSlot??t.parentNode;return(e==null?void 0:e.nodeType)===11&&(e=e.host),e}function pe(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=he(t)}}function Tt(t,e,n){let r;try{if(r=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const i=location.hash.split("#")[1]||"/";r.hash=`#${i}${r.hash}`}}catch{}const a=t instanceof SVGAElement?t.target.baseVal:t.target,s=!r||!!a||St(r,e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(r==null?void 0:r.origin)===qt&&t.hasAttribute("download");return{url:r,external:s,target:a,download:o}}function pt(t){let e=null,n=null,r=null,a=null,s=null,o=null,i=t;for(;i&&i!==document.documentElement;)r===null&&(r=M(i,"preload-code")),a===null&&(a=M(i,"preload-data")),e===null&&(e=M(i,"keepfocus")),n===null&&(n=M(i,"noscroll")),s===null&&(s=M(i,"reload")),o===null&&(o=M(i,"replacestate")),i=he(i);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Zt[r??"off"],preload_data:Zt[a??"off"],keepfocus:c(e),noscroll:c(n),reload:c(s),replace_state:c(o)}}function te(t){const e=$t(t);let n=!0;function r(){n=!0,e.update(o=>o)}function a(o){n=!1,e.set(o)}function s(o){let i;return e.subscribe(c=>{(i===void 0||n&&c!==i)&&o(i=c)})}return{notify:r,set:a,subscribe:s}}const ge={v:()=>{}};function Je(){const{set:t,subscribe:e}=$t(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Ie}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const o=(await a.json()).version!==We;return o&&(t(!0),ge.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:e,check:r}}function St(t,e,n){return t.origin!==qt||!t.pathname.startsWith(e)?!0:n?t.pathname!==location.pathname:!1}function Rn(t){}const me=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...me];const ze=new Set([...me]);[...ze];function He(t){return t.filter(e=>e!=null)}function Bt(t){return t instanceof jt||t instanceof Dt?t.status:500}function Xe(t){return t instanceof Dt?t.text:"Internal Error"}let R,H,Lt;const Qe=Xt.toString().includes("$$")||/function \w+\(\) \{\}/.test(Xt.toString());var et,nt,at,rt,ot,st,it,ct,oe,lt,se,ft,ie;Qe?(R={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},H={current:null},Lt={current:!1}):(R=new(oe=class{constructor(){L(this,et,T({}));L(this,nt,T(null));L(this,at,T(null));L(this,rt,T({}));L(this,ot,T({id:null}));L(this,st,T({}));L(this,it,T(-1));L(this,ct,T(new URL("https://example.com")))}get data(){return I(w(this,et))}set data(e){O(w(this,et),e)}get form(){return I(w(this,nt))}set form(e){O(w(this,nt),e)}get error(){return I(w(this,at))}set error(e){O(w(this,at),e)}get params(){return I(w(this,rt))}set params(e){O(w(this,rt),e)}get route(){return I(w(this,ot))}set route(e){O(w(this,ot),e)}get state(){return I(w(this,st))}set state(e){O(w(this,st),e)}get status(){return I(w(this,it))}set status(e){O(w(this,it),e)}get url(){return I(w(this,ct))}set url(e){O(w(this,ct),e)}},et=new WeakMap,nt=new WeakMap,at=new WeakMap,rt=new WeakMap,ot=new WeakMap,st=new WeakMap,it=new WeakMap,ct=new WeakMap,oe),H=new(se=class{constructor(){L(this,lt,T(null))}get current(){return I(w(this,lt))}set current(e){O(w(this,lt),e)}},lt=new WeakMap,se),Lt=new(ie=class{constructor(){L(this,ft,T(!1))}get current(){return I(w(this,ft))}set current(e){O(w(this,ft),e)}},ft=new WeakMap,ie),ge.v=()=>Lt.current=!0);function Ze(t){Object.assign(R,t)}const tn=new Set(["icon","shortcut icon","apple-touch-icon"]),q=ce(fe)??{},X=ce(le)??{},N={url:te({}),page:te({}),navigating:$t(null),updated:Je()};function Kt(t){q[t]=kt()}function en(t,e){let n=t+1;for(;q[n];)delete q[n],n+=1;for(n=e+1;X[n];)delete X[n],n+=1}function Q(t,e=!1){return e?location.replace(t.href):location.href=t.href,new Promise(()=>{})}async function _e(){if("serviceWorker"in navigator){const t=await navigator.serviceWorker.getRegistration(U||"/");t&&await t.update()}}function ee(){}let Mt,It,gt,C,Ot,b;const mt=[],_t=[];let v=null;function Pt(){var t;(t=v==null?void 0:v.fork)==null||t.then(e=>e==null?void 0:e.discard()),v=null}const dt=new Map,we=new Set,nn=new Set,J=new Set;let m={branch:[],error:null,url:null},ve=!1,wt=!1,ne=!0,Z=!1,W=!1,ye=!1,Ft=!1,be,S,A,V;const vt=new Set,ae=new Map;async function Un(t,e,n){var s,o,i,c,l;(s=globalThis.__sveltekit_4a10lu)!=null&&s.data&&globalThis.__sveltekit_4a10lu.data,document.URL!==location.href&&(location.href=location.href),b=t,await((i=(o=t.hooks).init)==null?void 0:i.call(o)),Mt=Ge(t),C=document.documentElement,Ot=e,It=t.nodes[0],gt=t.nodes[1],It(),gt(),S=(c=history.state)==null?void 0:c[F],A=(l=history.state)==null?void 0:l[z],S||(S=A=Date.now(),history.replaceState({...history.state,[F]:S,[z]:A},""));const r=q[S];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await _n(Ot,n)):(await G({type:"enter",url:de(b.hash?yn(new URL(location.href)):location.href),replace_state:!0}),a()),mn()}function an(){mt.length=0,Ft=!1}function ke(t){_t.some(e=>e==null?void 0:e.snapshot)&&(X[t]=_t.map(e=>{var n;return(n=e==null?void 0:e.snapshot)==null?void 0:n.capture()}))}function Se(t){var e;(e=X[t])==null||e.forEach((n,r)=>{var a,s;(s=(a=_t[r])==null?void 0:a.snapshot)==null||s.restore(n)})}function re(){Kt(S),Qt(fe,q),ke(A),Qt(le,X)}async function rn(t,e,n,r){let a;e.invalidateAll&&Pt(),await G({type:"goto",url:de(t),keepfocus:e.keepFocus,noscroll:e.noScroll,replace_state:e.replaceState,state:e.state,redirect_count:n,nav_token:r,accept:()=>{e.invalidateAll&&(Ft=!0,a=[...ae.keys()]),e.invalidate&&e.invalidate.forEach(gn)}}),e.invalidateAll&&ht().then(ht).then(()=>{ae.forEach(({resource:s},o)=>{var i;a!=null&&a.includes(o)&&((i=s.refresh)==null||i.call(s))})})}async function on(t){if(t.id!==(v==null?void 0:v.id)){Pt();const e={};vt.add(e),v={id:t.id,token:e,promise:Re({...t,preload:e}).then(n=>(vt.delete(e),n.type==="loaded"&&n.state.error&&Pt(),n)),fork:null}}return v.promise}async function Ut(t){var n;const e=(n=await Et(t,!1))==null?void 0:n.route;e&&await Promise.all([...e.layouts,e.leaf].map(r=>r==null?void 0:r[1]()))}async function Ee(t,e,n){var a;m=t.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(R,t.props.page),be=new b.root({target:e,props:{...t.props,stores:N,components:_t},hydrate:n,sync:!1}),await Promise.resolve(),Se(A),n){const s={from:null,to:{params:m.params,route:{id:((a=m.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};J.forEach(o=>o(s))}wt=!0}function yt({url:t,params:e,branch:n,status:r,error:a,route:s,form:o}){let i="never";if(U&&(t.pathname===U||t.pathname===U+"/"))i="always";else for(const f of n)(f==null?void 0:f.slash)!==void 0&&(i=f.slash);t.pathname=Oe(t.pathname,i),t.search=t.search;const c={type:"loaded",state:{url:t,params:e,branch:n,error:a,route:s},props:{constructors:He(n).map(f=>f.node.component),page:zt(R)}};o!==void 0&&(c.props.form=o);let l={},d=!R,u=0;for(let f=0;f<Math.max(n.length,m.branch.length);f+=1){const h=n[f],_=m.branch[f];(h==null?void 0:h.data)!==(_==null?void 0:_.data)&&(d=!0),h&&(l={...l,...h.data},d&&(c.props[`data_${u}`]=l),u+=1)}return(!m.url||t.href!==m.url.href||m.error!==a||o!==void 0&&o!==R.form||d)&&(c.props.page={error:a,params:e,route:{id:(s==null?void 0:s.id)??null},state:{},status:r,url:new URL(t),form:o??null,data:d?l:R.data}),c}async function Gt({loader:t,parent:e,url:n,params:r,route:a,server_data_node:s}){var l,d;let o=null;const i={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await t();return{node:c,loader:t,server:s,universal:(l=c.universal)!=null&&l.load?{type:"data",data:o,uses:i}:null,data:o??(s==null?void 0:s.data)??null,slash:((d=c.universal)==null?void 0:d.trailingSlash)??(s==null?void 0:s.slash)}}function sn(t,e,n){let r=t instanceof Request?t.url:t;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=wt?Ve(r,a.href,e):De(r,e);return{resolved:a,promise:s}}function cn(t,e,n,r,a,s){if(Ft)return!0;if(!a)return!1;if(a.parent&&t||a.route&&e||a.url&&n)return!0;for(const o of a.search_params)if(r.has(o))return!0;for(const o of a.params)if(s[o]!==m.params[o])return!0;for(const o of a.dependencies)if(mt.some(i=>i(new URL(o))))return!0;return!1}function Wt(t,e){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?e??null:null}function ln(t,e){if(!t)return new Set(e.searchParams.keys());const n=new Set([...t.searchParams.keys(),...e.searchParams.keys()]);for(const r of n){const a=t.searchParams.getAll(r),s=e.searchParams.getAll(r);a.every(o=>s.includes(o))&&s.every(o=>a.includes(o))&&n.delete(r)}return n}function fn({error:t,url:e,route:n,params:r}){return{type:"loaded",state:{error:t,url:e,route:n,params:r,branch:[]},props:{page:zt(R),constructors:[]}}}async function Re({id:t,invalidating:e,url:n,params:r,route:a,preload:s}){if((v==null?void 0:v.id)===t)return vt.delete(v.token),v.promise;const{errors:o,layouts:i,leaf:c}=a,l=[...i,c];o.forEach(g=>g==null?void 0:g().catch(()=>{})),l.forEach(g=>g==null?void 0:g[1]().catch(()=>{}));const d=m.url?t!==bt(m.url):!1,u=m.route?a.id!==m.route.id:!1,y=ln(m.url,n);let f=!1;const h=l.map(async(g,p)=>{var $;if(!g)return;const k=m.branch[p];return g[1]===(k==null?void 0:k.loader)&&!cn(f,u,d,y,($=k.universal)==null?void 0:$.uses,r)?k:(f=!0,Gt({loader:g[1],url:n,params:r,route:a,parent:async()=>{var ut;const P={};for(let B=0;B<p;B+=1)Object.assign(P,(ut=await h[B])==null?void 0:ut.data);return P},server_data_node:Wt(g[0]?{type:"skip"}:null,g[0]?k==null?void 0:k.server:void 0)}))});for(const g of h)g.catch(()=>{});const _=[];for(let g=0;g<l.length;g+=1)if(l[g])try{_.push(await h[g])}catch(p){if(p instanceof Nt)return{type:"redirect",location:p.location};if(vt.has(s))return fn({error:await tt(p,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let k=Bt(p),x;if(p instanceof jt)x=p.body;else{if(await N.updated.check())return await _e(),await Q(n);x=await tt(p,{params:r,url:n,route:{id:a.id}})}const $=await un(g,_,o);return $?yt({url:n,params:r,branch:_.slice(0,$.idx).concat($.node),status:k,error:x,route:a}):await Ae(n,{id:a.id},x,k)}else _.push(void 0);return yt({url:n,params:r,branch:_,status:200,error:null,route:a,form:e?void 0:null})}async function un(t,e,n){for(;t--;)if(n[t]){let r=t;for(;!e[r];)r-=1;try{return{idx:r+1,node:{node:await n[t](),loader:n[t],data:{},server:null,universal:null}}}catch{continue}}}async function Yt({status:t,error:e,url:n,route:r}){const a={};let s=null;try{const o=await Gt({loader:It,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Wt(s)}),i={node:await gt(),loader:gt,universal:null,server:null,data:null};return yt({url:n,params:a,branch:[o,i],status:t,error:e,route:null})}catch(o){if(o instanceof Nt)return rn(new URL(o.location,location.href),{},0);throw o}}async function dn(t){const e=t.href;if(dt.has(e))return dt.get(e);let n;try{const r=(async()=>{let a=await b.hooks.reroute({url:new URL(t),fetch:async(s,o)=>sn(s,o,t).promise})??t;if(typeof a=="string"){const s=new URL(t);b.hash?s.hash=a:s.pathname=a,a=s}return a})();dt.set(e,r),n=await r}catch{dt.delete(e);return}return n}async function Et(t,e){if(t&&!St(t,U,b.hash)){const n=await dn(t);if(!n)return;const r=hn(n);for(const a of Mt){const s=a.exec(r);if(s)return{id:bt(t),invalidating:e,route:a,params:Ce(s),url:t}}}}function hn(t){return Pe(b.hash?t.hash.replace(/^#/,"").replace(/[?#].+/,""):t.pathname.slice(U.length))||"/"}function bt(t){return(b.hash?t.hash.replace(/^#/,""):t.pathname)+t.search}function xe({url:t,type:e,intent:n,delta:r,event:a}){let s=!1;const o=Jt(m,n,t,e);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const i={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return Z||we.forEach(c=>c(i)),s?null:o}async function G({type:t,url:e,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:o={},redirect_count:i=0,nav_token:c={},accept:l=ee,block:d=ee,event:u}){var B;const y=V;V=c;const f=await Et(e,!1),h=t==="enter"?Jt(m,f,e,t):xe({url:e,type:t,delta:n==null?void 0:n.delta,intent:f,event:u});if(!h){d(),V===c&&(V=y);return}const _=S,g=A;l(),Z=!0,wt&&h.navigation.type!=="enter"&&N.navigating.set(H.current=h.navigation);let p=f&&await Re(f);if(!p){if(St(e,U,b.hash))return await Q(e,s);p=await Ae(e,{id:null},await tt(new Dt(404,"Not Found",`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404,s)}if(e=(f==null?void 0:f.url)||e,V!==c)return h.reject(new Error("navigation aborted")),!1;if(p.type==="redirect"){if(i<20){await G({type:t,url:new URL(p.location,e),popped:n,keepfocus:r,noscroll:a,replace_state:s,state:o,redirect_count:i+1,nav_token:c}),h.fulfil(void 0);return}p=await Yt({status:500,error:await tt(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}})}else p.props.page.status>=400&&await N.updated.check()&&(await _e(),await Q(e,s));if(an(),Kt(_),ke(g),p.props.page.url.pathname!==e.pathname&&(e.pathname=p.props.page.url.pathname),o=n?n.state:o,!n){const E=s?0:1,K={[F]:S+=E,[z]:A+=E,[ue]:o};(s?history.replaceState:history.pushState).call(history,K,"",e),s||en(S,A)}const k=f&&(v==null?void 0:v.id)===f.id?v.fork:null;v=null,p.props.page.state=o;let x;if(wt){const E=(await Promise.all(Array.from(nn,j=>j(h.navigation)))).filter(j=>typeof j=="function");if(E.length>0){let j=function(){E.forEach(Rt=>{J.delete(Rt)})};E.push(j),E.forEach(Rt=>{J.add(Rt)})}m=p.state,p.props.page&&(p.props.page.url=e);const K=k&&await k;K?x=K.commit():(be.$set(p.props),Ze(p.props.page),x=(B=Te)==null?void 0:B()),ye=!0}else await Ee(p,Ot,!1);const{activeElement:$}=document;await x,await ht(),await ht();let P=n?n.scroll:a?kt():null;if(ne){const E=e.hash&&document.getElementById(Le(e));if(P)scrollTo(P.x,P.y);else if(E){E.scrollIntoView();const{top:K,left:j}=E.getBoundingClientRect();P={x:pageXOffset+j,y:pageYOffset+K}}else scrollTo(0,0)}const ut=document.activeElement!==$&&document.activeElement!==document.body;!r&&!ut&&vn(e,P),ne=!0,p.props.page&&Object.assign(R,p.props.page),Z=!1,t==="popstate"&&Se(A),h.fulfil(void 0),J.forEach(E=>E(h.navigation)),N.navigating.set(H.current=null)}async function Ae(t,e,n,r,a){return t.origin===qt&&t.pathname===location.pathname&&!ve?await Yt({status:r,error:n,url:t,route:e}):await Q(t,a)}function pn(){let t,e,n;C.addEventListener("mousemove",i=>{const c=i.target;clearTimeout(t),t=setTimeout(()=>{s(c,D.hover)},20)});function r(i){i.defaultPrevented||s(i.composedPath()[0],D.tap)}C.addEventListener("mousedown",r),C.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(i=>{for(const c of i)c.isIntersecting&&(Ut(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function s(i,c){const l=pe(i,C),d=l===e&&c>=n;if(!l||d)return;const{url:u,external:y,download:f}=Tt(l,U,b.hash);if(y||f)return;const h=pt(l),_=u&&bt(m.url)===bt(u);if(!(h.reload||_))if(c<=h.preload_data){e=l,n=D.tap;const g=await Et(u,!1);if(!g)return;on(g)}else c<=h.preload_code&&(e=l,n=c,Ut(u))}function o(){a.disconnect();for(const i of C.querySelectorAll("a")){const{url:c,external:l,download:d}=Tt(i,U,b.hash);if(l||d)continue;const u=pt(i);u.reload||(u.preload_code===D.viewport&&a.observe(i),u.preload_code===D.eager&&Ut(c))}}J.add(o),o()}function tt(t,e){if(t instanceof jt)return t.body;const n=Bt(t),r=Xe(t);return b.hooks.handleError({error:t,event:e,status:n,message:r})??{message:r}}function gn(t){if(typeof t=="function")mt.push(t);else{const{href:e}=new URL(t,location.href);mt.push(n=>n.href===e)}}function mn(){var e;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(re(),!Z){const a=Jt(m,void 0,null,"leave"),s={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};we.forEach(o=>o(s))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&re()}),(e=navigator.connection)!=null&&e.saveData||pn(),C.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=pe(n.composedPath()[0],C);if(!r)return;const{url:a,external:s,target:o,download:i}=Tt(r,U,b.hash);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const c=pt(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||i)return;const[d,u]=(b.hash?a.hash.replace(/^#/,""):a.href).split("#"),y=d===xt(location);if(s||c.reload&&(!y||!u)){xe({url:a,type:"link",event:n})?Z=!0:n.preventDefault();return}if(u!==void 0&&y){const[,f]=m.url.href.split("#");if(f===u){if(n.preventDefault(),u===""||u==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const h=r.ownerDocument.getElementById(decodeURIComponent(u));h&&(h.scrollIntoView(),h.focus())}return}if(W=!0,Kt(S),t(a),!c.replace_state)return;W=!1}n.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await G({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href,event:n})}),C.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const i=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(St(i,U,!1))return;const c=n.target,l=pt(c);if(l.reload)return;n.preventDefault(),n.stopPropagation();const d=new FormData(c,a);i.search=new URLSearchParams(d).toString(),G({type:"form",url:i,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??i.href===location.href,event:n})}),addEventListener("popstate",async n=>{var r;if(!Ct){if((r=n.state)!=null&&r[F]){const a=n.state[F];if(V={},a===S)return;const s=q[a],o=n.state[ue]??{},i=new URL(n.state[Ye]??location.href),c=n.state[z],l=m.url?xt(location)===xt(m.url):!1;if(c===A&&(ye||l)){o!==R.state&&(R.state=o),t(i),q[S]=kt(),s&&scrollTo(s.x,s.y),S=a;return}const u=a-S;await G({type:"popstate",url:i,popped:{state:o,scroll:s,delta:u},accept:()=>{S=a,A=c},block:()=>{history.go(-u)},nav_token:V,event:n})}else if(!W){const a=new URL(location.href);t(a),b.hash&&location.reload()}}}),addEventListener("hashchange",()=>{W&&(W=!1,history.replaceState({...history.state,[F]:++S,[z]:A},"",location.href))});for(const n of document.querySelectorAll("link"))tn.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&N.navigating.set(H.current=null)});function t(n){m.url=R.url=n,N.page.set(zt(R)),N.page.notify()}}async function _n(t,{status:e=200,error:n,node_ids:r,params:a,route:s,server_route:o,data:i,form:c}){ve=!0;const l=new URL(location.href);let d;({params:a={},route:s={id:null}}=await Et(l,!1)||{}),d=Mt.find(({id:f})=>f===s.id);let u,y=!0;try{const f=r.map(async(_,g)=>{const p=i[g];return p!=null&&p.uses&&(p.uses=wn(p.uses)),Gt({loader:b.nodes[_],url:l,params:a,route:s,parent:async()=>{const k={};for(let x=0;x<g;x+=1)Object.assign(k,(await f[x]).data);return k},server_data_node:Wt(p)})}),h=await Promise.all(f);if(d){const _=d.layouts;for(let g=0;g<_.length;g++)_[g]||h.splice(g,0,void 0)}u=yt({url:l,params:a,branch:h,status:e,error:n,form:c,route:d??null})}catch(f){if(f instanceof Nt){await Q(new URL(f.location,location.href));return}u=await Yt({status:Bt(f),error:await tt(f,{url:l,params:a,route:s}),url:l,route:s}),t.textContent="",y=!1}u.props.page&&(u.props.page.state={}),await Ee(u,t,y)}function wn(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url),search_params:new Set((t==null?void 0:t.search_params)??[])}}let Ct=!1;function vn(t,e=null){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=Le(t);if(r&&document.getElementById(r)){const{x:s,y:o}=e??kt();setTimeout(()=>{const i=history.state;Ct=!0,location.replace(`#${r}`),b.hash&&location.replace(t.hash),history.replaceState(i,"",t.hash),scrollTo(s,o),Ct=!1})}else{const s=document.body,o=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),o!==null?s.setAttribute("tabindex",o):s.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const s=[];for(let o=0;o<a.rangeCount;o+=1)s.push(a.getRangeAt(o));setTimeout(()=>{if(a.rangeCount===s.length){for(let o=0;o<a.rangeCount;o+=1){const i=s[o],c=a.getRangeAt(o);if(i.commonAncestorContainer!==c.commonAncestorContainer||i.startContainer!==c.startContainer||i.endContainer!==c.endContainer||i.startOffset!==c.startOffset||i.endOffset!==c.endOffset)return}a.removeAllRanges()}})}}}function Jt(t,e,n,r){var c,l;let a,s;const o=new Promise((d,u)=>{a=d,s=u});return o.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((c=t.route)==null?void 0:c.id)??null},url:t.url},to:n&&{params:(e==null?void 0:e.params)??null,route:{id:((l=e==null?void 0:e.route)==null?void 0:l.id)??null},url:n},willUnload:!e,type:r,complete:o},fulfil:a,reject:s}}function zt(t){return{data:t.data,error:t.error,form:t.form,params:t.params,route:t.route,state:t.state,status:t.status,url:t.url}}function yn(t){const e=new URL(t);return e.hash=decodeURIComponent(t.hash),e}function Le(t){let e;if(b.hash){const[,,n]=t.hash.split("#",3);e=n??""}else e=t.hash.slice(1);return decodeURIComponent(e)}export{Un as a,Rn as l,R as p,N as s};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{P as m,R as x,al as Y,x as q,A as D,aj as $,B as p,ag as rr,am as ir,M as ar,N as fr,I as tr,v as P,L as er,an as ur,g as sr,ao as lr,W as U,ap as or,aq as cr,O as nr,ar as vr,as as dr,at as br,au as gr,av as hr}from"./CD2k2u89.js";import{B as _r}from"./DRQf9AgU.js";import{i as Ar,b as Sr,d as pr,n as Nr,e as Tr}from"./Dm9HHmcs.js";function Rr(r,f,...i){var a=new _r(r);m(()=>{const t=f()??null;a.ensure(t,t&&(e=>t(e,...i)))},x)}function Er(r,f){var i=void 0,a;Y(()=>{i!==(i=f())&&(a&&(q(a),a=null),i&&(a=D(()=>{$(()=>i(r))})))})}function K(r){var f,i,a="";if(typeof r=="string"||typeof r=="number")a+=r;else if(typeof r=="object")if(Array.isArray(r)){var t=r.length;for(f=0;f<t;f++)r[f]&&(i=K(r[f]))&&(a&&(a+=" "),a+=i)}else for(i in r)r[i]&&(a&&(a+=" "),a+=i);return a}function Lr(){for(var r,f,i=0,a="",t=arguments.length;i<t;i++)(r=arguments[i])&&(f=K(r))&&(a&&(a+=" "),a+=f);return a}function Ir(r){return typeof r=="object"?Lr(r):r??""}const V=[...`
|
|
2
|
-
\r\f \v\uFEFF`];function Or(r,f,i){var a=r==null?"":""+r;if(f&&(a=a?a+" "+f:f),i){for(var t in i)if(i[t])a=a?a+" "+t:t;else if(a.length)for(var e=t.length,u=0;(u=a.indexOf(t,u))>=0;){var l=u+e;(u===0||V.includes(a[u-1]))&&(l===a.length||V.includes(a[l]))?a=(u===0?"":a.substring(0,u))+a.substring(l+1):u=l}}return a===""?null:a}function F(r,f=!1){var i=f?" !important;":";",a="";for(var t in r){var e=r[t];e!=null&&e!==""&&(a+=" "+t+": "+e+i)}return a}function y(r){return r[0]!=="-"||r[1]!=="-"?r.toLowerCase():r}function Cr(r,f){if(f){var i="",a,t;if(Array.isArray(f)?(a=f[0],t=f[1]):a=f,r){r=String(r).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var e=!1,u=0,l=!1,n=[];a&&n.push(...Object.keys(a).map(y)),t&&n.push(...Object.keys(t).map(y));var v=0,h=-1;const T=r.length;for(var d=0;d<T;d++){var s=r[d];if(l?s==="/"&&r[d-1]==="*"&&(l=!1):e?e===s&&(e=!1):s==="/"&&r[d+1]==="*"?l=!0:s==='"'||s==="'"?e=s:s==="("?u++:s===")"&&u--,!l&&e===!1&&u===0){if(s===":"&&h===-1)h=d;else if(s===";"||d===T-1){if(h!==-1){var N=y(r.substring(v,h).trim());if(!n.includes(N)){s!==";"&&d++;var S=r.substring(v,d).trim();i+=" "+S+";"}}v=d+1,h=-1}}}}return a&&(i+=F(a)),t&&(i+=F(t,!0)),i=i.trim(),i===""?null:i}return r==null?null:String(r)}function wr(r,f,i,a,t,e){var u=r.__className;if(p||u!==i||u===void 0){var l=Or(i,a,e);(!p||l!==r.getAttribute("class"))&&(l==null?r.removeAttribute("class"):f?r.className=l:r.setAttribute("class",l)),r.__className=i}else if(e&&t!==e)for(var n in e){var v=!!e[n];(t==null||v!==!!t[n])&&r.classList.toggle(n,v)}return e}function j(r,f={},i,a){for(var t in i){var e=i[t];f[t]!==e&&(i[t]==null?r.style.removeProperty(t):r.style.setProperty(t,e,a))}}function Mr(r,f,i,a){var t=r.__style;if(p||t!==f){var e=Cr(f,a);(!p||e!==r.getAttribute("style"))&&(e==null?r.removeAttribute("style"):r.style.cssText=e),r.__style=f}else a&&(Array.isArray(a)?(j(r,i==null?void 0:i[0],a[0]),j(r,i==null?void 0:i[1],a[1],"important")):j(r,i,a));return a}function w(r,f,i=!1){if(r.multiple){if(f==null)return;if(!rr(f))return ir();for(var a of r.options)a.selected=f.includes(O(a));return}for(a of r.options){var t=O(a);if(ar(t,f)){a.selected=!0;return}}(!i||f!==void 0)&&(r.selectedIndex=-1)}function W(r){var f=new MutationObserver(()=>{w(r,r.__value)});f.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),fr(()=>{f.disconnect()})}function Br(r,f,i=f){var a=new WeakSet,t=!0;tr(r,"change",e=>{var u=e?"[selected]":":checked",l;if(r.multiple)l=[].map.call(r.querySelectorAll(u),O);else{var n=r.querySelector(u)??r.querySelector("option:not([disabled])");l=n&&O(n)}i(l),P!==null&&a.add(P)}),$(()=>{var e=f();if(r===document.activeElement){var u=er??P;if(a.has(u))return}if(w(r,e,t),t&&e===void 0){var l=r.querySelector(":checked");l!==null&&(e=O(l),i(e))}r.__value=e,t=!1}),W(r)}function O(r){return"__value"in r?r.__value:r.value}const C=Symbol("class"),I=Symbol("style"),z=Symbol("is custom element"),G=Symbol("is html");function kr(r){if(p){var f=!1,i=()=>{if(!f){if(f=!0,r.hasAttribute("value")){var a=r.value;M(r,"value",null),r.value=a}if(r.hasAttribute("checked")){var t=r.checked;M(r,"checked",null),r.checked=t}}};r.__on_r=i,nr(i),vr()}}function Pr(r,f){f?r.hasAttribute("selected")||r.setAttribute("selected",""):r.removeAttribute("selected")}function M(r,f,i,a){var t=Z(r);p&&(t[f]=r.getAttribute(f),f==="src"||f==="srcset"||f==="href"&&r.nodeName==="LINK")||t[f]!==(t[f]=i)&&(f==="loading"&&(r[gr]=i),i==null?r.removeAttribute(f):typeof i!="string"&&J(r).includes(f)?r[f]=i:r.setAttribute(f,i))}function yr(r,f,i,a,t=!1,e=!1){if(p&&t&&r.tagName==="INPUT"){var u=r,l=u.type==="checkbox"?"defaultChecked":"defaultValue";l in i||kr(u)}var n=Z(r),v=n[z],h=!n[G];let d=p&&v;d&&U(!1);var s=f||{},N=r.tagName==="OPTION";for(var S in f)S in i||(i[S]=null);i.class?i.class=Ir(i.class):i.class=null,i[I]&&(i.style??(i.style=null));var T=J(r);for(const o in i){let c=i[o];if(N&&o==="value"&&c==null){r.value=r.__value="",s[o]=c;continue}if(o==="class"){var L=r.namespaceURI==="http://www.w3.org/1999/xhtml";wr(r,L,c,a,f==null?void 0:f[C],i[C]),s[o]=c,s[C]=i[C];continue}if(o==="style"){Mr(r,c,f==null?void 0:f[I],i[I]),s[o]=c,s[I]=i[I];continue}var _=s[o];if(!(c===_&&!(c===void 0&&r.hasAttribute(o)))){s[o]=c;var R=o[0]+o[1];if(R!=="$$")if(R==="on"){const A={},E="$$"+o;let b=o.slice(2);var k=Tr(b);if(Ar(b)&&(b=b.slice(0,-7),A.capture=!0),!k&&_){if(c!=null)continue;r.removeEventListener(b,s[E],A),s[E]=null}if(c!=null)if(k)r[`__${b}`]=c,pr([b]);else{let Q=function(X){s[o].call(this,X)};s[E]=Sr(b,r,Q,A)}else k&&(r[`__${b}`]=void 0)}else if(o==="style")M(r,o,c);else if(o==="autofocus")or(r,!!c);else if(!v&&(o==="__value"||o==="value"&&c!=null))r.value=r.__value=c;else if(o==="selected"&&N)Pr(r,c);else{var g=o;h||(g=Nr(g));var B=g==="defaultValue"||g==="defaultChecked";if(c==null&&!v&&!B)if(n[o]=null,g==="value"||g==="checked"){let A=r;const E=f===void 0;if(g==="value"){let b=A.defaultValue;A.removeAttribute(g),A.defaultValue=b,A.value=A.__value=E?b:null}else{let b=A.defaultChecked;A.removeAttribute(g),A.defaultChecked=b,A.checked=E?b:!1}}else r.removeAttribute(o);else B||T.includes(g)&&(v||typeof c!="string")?(r[g]=c,g in n&&(n[g]=cr)):typeof c!="function"&&M(r,g,c)}}}return d&&U(!0),s}function Ur(r,f,i=[],a=[],t=[],e,u=!1,l=!1){ur(t,i,a,n=>{var v=void 0,h={},d=r.nodeName==="SELECT",s=!1;if(Y(()=>{var S=f(...n.map(sr)),T=yr(r,v,S,e,u,l);s&&d&&"value"in S&&w(r,S.value);for(let _ of Object.getOwnPropertySymbols(h))S[_]||q(h[_]);for(let _ of Object.getOwnPropertySymbols(S)){var L=S[_];_.description===lr&&(!v||L!==v[_])&&(h[_]&&q(h[_]),h[_]=D(()=>Er(r,()=>L))),T[_]=L}v=T}),d){var N=r;$(()=>{w(N,v.value,!0),W(N)})}s=!0})}function Z(r){return r.__attributes??(r.__attributes={[z]:r.nodeName.includes("-"),[G]:r.namespaceURI===dr})}var H=new Map;function J(r){var f=r.getAttribute("is")||r.nodeName,i=H.get(f);if(i)return i;H.set(f,i=[]);for(var a,t=r,e=Element.prototype;e!==t;){a=hr(t);for(var u in a)a[u].set&&i.push(u);t=br(t)}return i}export{C,wr as a,Br as b,Rr as c,Ir as d,Ur as e,kr as r,M as s};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CJT5d6hv.js","../chunks/Dm9HHmcs.js","../chunks/CD2k2u89.js","../chunks/XtX2ckS1.js","../chunks/DRQf9AgU.js","../chunks/B7yWsbOZ.js","../chunks/CbROi3Jn.js","../chunks/C7RIZnpe.js","../chunks/BYPKMD8u.js","../chunks/Cj_plMLy.js","../assets/sockethub.Bpv0Wt6b.css","../chunks/BeOvm82p.js","../chunks/ODHyfvPn.js","../assets/0.C4UYQlfe.css","../nodes/1.D_Qvl9oW.js","../nodes/2.Clw8ij0T.js","../chunks/M4yGBGmj.js","../nodes/3.BdhiUrXh.js","../chunks/DUJRAiM5.js","../chunks/BwvUNwzv.js","../nodes/4.C-DCROl2.js","../chunks/C_USdH9H.js","../nodes/5.DFNCJ13Z.js","../chunks/Dku5k7NX.js","../nodes/6.C9POiypX.js","../nodes/7.OXj7Z3m7.js","../nodes/8.BMBBLSi_.js","../nodes/9.idLLS2yg.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var U=e=>{throw TypeError(e)};var G=(e,t,r)=>t.has(e)||U("Cannot "+r);var m=(e,t,r)=>(G(e,t,"read from private field"),r?r.call(e):t.get(e)),S=(e,t,r)=>t.has(e)?U("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),j=(e,t,r,o)=>(G(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r);import{B as z,Q as H,P as Z,R as $,aj as tt,K as et,e as rt,O as st,ac as at,b as x,ad as nt,g,ak as ot,X as it,Y as ct,p as ut,j as lt,k as mt,d as D,J as ft,f as w,s as dt,a as _t,c as ht,r as vt,u as I,t as gt}from"../chunks/CD2k2u89.js";import{h as Et,m as yt,u as Pt,f as M,a as A,c as V,t as Rt,s as bt}from"../chunks/Dm9HHmcs.js";import{o as Ot}from"../chunks/C7RIZnpe.js";import{p as C,i as B}from"../chunks/BYPKMD8u.js";import{B as kt}from"../chunks/DRQf9AgU.js";function q(e,t,r){z&&H();var o=new kt(e);Z(()=>{var n=t()??null;o.ensure(n,n&&(i=>r(i,n)))},$)}function J(e,t){return e===t||(e==null?void 0:e[at])===t}function Y(e={},t,r,o){return tt(()=>{var n,i;return et(()=>{n=i,i=[],rt(()=>{e!==r(...i)&&(t(e,...i),n&&J(r(...n),e)&&t(null,...n))})}),()=>{st(()=>{i&&J(r(...i),e)&&t(null,...i)})}}),e}function At(e){return class extends Lt{constructor(t){super({component:e,...t})}}}var E,f;class Lt{constructor(t){S(this,E);S(this,f);var i;var r=new Map,o=(a,s)=>{var u=ct(s,!1,!1);return r.set(a,u),u};const n=new Proxy({...t.props||{},$$events:{}},{get(a,s){return g(r.get(s)??o(s,Reflect.get(a,s)))},has(a,s){return s===nt?!0:(g(r.get(s)??o(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,u){return x(r.get(s)??o(s,u),u),Reflect.set(a,s,u)}});j(this,f,(t.hydrate?Et:yt)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((i=t==null?void 0:t.props)!=null&&i.$$host)||t.sync===!1)&&ot(),j(this,E,n.$$events);for(const a of Object.keys(m(this,f)))a==="$set"||a==="$destroy"||a==="$on"||it(this,a,{get(){return m(this,f)[a]},set(s){m(this,f)[a]=s},enumerable:!0});m(this,f).$set=a=>{Object.assign(n,a)},m(this,f).$destroy=()=>{Pt(m(this,f))}}$set(t){m(this,f).$set(t)}$on(t,r){m(this,E)[t]=m(this,E)[t]||[];const o=(...n)=>r.call(this,...n);return m(this,E)[t].push(o),()=>{m(this,E)[t]=m(this,E)[t].filter(n=>n!==o)}}$destroy(){m(this,f).$destroy()}}E=new WeakMap,f=new WeakMap;const Tt="modulepreload",pt=function(e,t){return new URL(e,t).href},K={},h=function(t,r,o){let n=Promise.resolve();if(r&&r.length>0){let a=function(l){return Promise.all(l.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};const s=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),L=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));n=a(r.map(l=>{if(l=pt(l,o),l in K)return;K[l]=!0;const v=l.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(o)for(let P=s.length-1;P>=0;P--){const c=s[P];if(c.href===l&&(!v||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${y}`))return;const _=document.createElement("link");if(_.rel=v?"stylesheet":Tt,v||(_.as="script"),_.crossOrigin="",_.href=l,L&&_.setAttribute("nonce",L),document.head.appendChild(_),v)return new Promise((P,c)=>{_.addEventListener("load",P),_.addEventListener("error",()=>c(Error(`Unable to preload CSS for ${l}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return n.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})},Ft={};var wt=M('<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>'),xt=M("<!> <!>",1);function St(e,t){ut(t,!0);let r=C(t,"components",23,()=>[]),o=C(t,"data_0",3,null),n=C(t,"data_1",3,null);lt(()=>t.stores.page.set(t.page)),mt(()=>{t.stores,t.page,t.constructors,r(),t.form,o(),n(),t.stores.page.notify()});let i=D(!1),a=D(!1),s=D(null);Ot(()=>{const c=t.stores.page.subscribe(()=>{g(i)&&(x(a,!0),ft().then(()=>{x(s,document.title||"untitled page",!0)}))});return x(i,!0),c});const u=I(()=>t.constructors[1]);var L=xt(),l=w(L);{var v=c=>{const R=I(()=>t.constructors[0]);var b=V(),T=w(b);q(T,()=>g(R),(O,k)=>{Y(k(O,{get data(){return o()},get form(){return t.form},get params(){return t.page.params},children:(d,Dt)=>{var F=V(),Q=w(F);q(Q,()=>g(u),(W,X)=>{Y(X(W,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),p=>r()[1]=p,()=>{var p;return(p=r())==null?void 0:p[1]})}),A(d,F)},$$slots:{default:!0}}),d=>r()[0]=d,()=>{var d;return(d=r())==null?void 0:d[0]})}),A(c,b)},y=c=>{const R=I(()=>t.constructors[0]);var b=V(),T=w(b);q(T,()=>g(R),(O,k)=>{Y(k(O,{get data(){return o()},get form(){return t.form},get params(){return t.page.params}}),d=>r()[0]=d,()=>{var d;return(d=r())==null?void 0:d[0]})}),A(c,b)};B(l,c=>{t.constructors[1]?c(v):c(y,!1)})}var _=dt(l,2);{var P=c=>{var R=wt(),b=ht(R);{var T=O=>{var k=Rt();gt(()=>bt(k,g(s))),A(O,k)};B(b,O=>{g(a)&&O(T)})}vt(R),A(c,R)};B(_,c=>{g(i)&&c(P)})}A(e,L),_t()}const Ut=At(St),Gt=[()=>h(()=>import("../nodes/0.CJT5d6hv.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),()=>h(()=>import("../nodes/1.D_Qvl9oW.js"),__vite__mapDeps([14,1,2,6,9,12,7,11]),import.meta.url),()=>h(()=>import("../nodes/2.Clw8ij0T.js"),__vite__mapDeps([15,1,2,6,3,4,11,16]),import.meta.url),()=>h(()=>import("../nodes/3.BdhiUrXh.js"),__vite__mapDeps([17,1,2,5,6,7,8,4,3,9,10,18,16,19]),import.meta.url),()=>h(()=>import("../nodes/4.C-DCROl2.js"),__vite__mapDeps([20,1,2,8,4,7,21,3,18,5,6,9,10,16,19]),import.meta.url),()=>h(()=>import("../nodes/5.DFNCJ13Z.js"),__vite__mapDeps([22,1,2,8,4,7,3,18,5,6,9,10,16,21,23]),import.meta.url),()=>h(()=>import("../nodes/6.C9POiypX.js"),__vite__mapDeps([24,1,2,8,4,7,21,3,18,5,6,9,10,16,19]),import.meta.url),()=>h(()=>import("../nodes/7.OXj7Z3m7.js"),__vite__mapDeps([25,1,2,8,4,7,5,6,3,9,10,18,16,19]),import.meta.url),()=>h(()=>import("../nodes/8.BMBBLSi_.js"),__vite__mapDeps([26,1,2,8,4,7,21,3,18,5,6,9,10,16,23,19]),import.meta.url),()=>h(()=>import("../nodes/9.idLLS2yg.js"),__vite__mapDeps([27,1,2,8,4,7,5,6,3,9,10,18,16,19]),import.meta.url)],Jt=[],Kt={"/":[2],"/caldav":[9],"/carddav":[7],"/dummy":[3],"/feeds":[6],"/irc":[8],"/metadata":[4],"/xmpp":[5]},N={handleError:({error:e})=>{console.error(e)},reroute:()=>{},transport:{}},jt=Object.fromEntries(Object.entries(N.transport).map(([e,t])=>[e,t.decode])),Mt=Object.fromEntries(Object.entries(N.transport).map(([e,t])=>[e,t.encode])),Nt=!1,Qt=(e,t)=>jt[e](t);export{Qt as decode,jt as decoders,Kt as dictionary,Mt as encoders,Nt as hash,N as hooks,Ft as matchers,Gt as nodes,Ut as root,Jt as server_loads};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,a as r}from"../chunks/ODHyfvPn.js";export{o as load_css,r as start};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{f as y,a as k}from"../chunks/Dm9HHmcs.js";import"../chunks/CbROi3Jn.js";import{s as e,f as S,c as a,r,n as _,t as P}from"../chunks/CD2k2u89.js";import{s as t}from"../chunks/XtX2ckS1.js";import{b as s}from"../chunks/BeOvm82p.js";import{I as A}from"../chunks/M4yGBGmj.js";var C=y(`<title>Sockethub Examples</title> <div class="space-y-6"><div class="bg-blue-50 border-l-4 border-blue-400 p-4 rounded-r-lg"><h2 class="text-xl font-semibold text-blue-800 mb-2">What is Sockethub?</h2> <p class="text-blue-700 mb-3">Sockethub is a <strong>protocol gateway</strong> that bridges web applications with various internet protocols
|
|
2
|
-
like IRC, XMPP, RSS/ATOM feeds, and more. Instead of implementing each protocol directly in your web app,
|
|
3
|
-
you send standardized <strong>ActivityStreams</strong> messages to Sockethub, which handles the protocol-specific details.</p> <p class="text-blue-700">Think of it as a universal translator that lets your web application communicate with
|
|
4
|
-
chat servers, feed readers, and other internet services using a single, consistent API.</p></div> <div class="bg-green-50 border-l-4 border-green-400 p-4 rounded-r-lg"><h2 class="text-xl font-semibold text-green-800 mb-2">Key Concepts</h2> <div class="space-y-3"><div><h3 class="font-semibold text-green-700">🎭 Actor</h3> <p class="text-green-600 text-sm">Your identity on a platform (e.g., IRC nickname, XMPP username, feed URL)</p></div> <div><h3 class="font-semibold text-green-700">🔧 Platform</h3> <p class="text-green-600 text-sm">A protocol handler (IRC, XMPP, Feeds, etc.) that runs as a separate process</p></div> <div><h3 class="font-semibold text-green-700">📝 ActivityStreams</h3> <p class="text-green-600 text-sm">Standardized JSON format for describing activities like "send message", "connect", "fetch"</p></div> <div><h3 class="font-semibold text-green-700">🔐 Credentials</h3> <p class="text-green-600 text-sm">Connection details securely stored per session (servers, passwords, API keys)</p></div></div></div> <div class="bg-yellow-50 border-l-4 border-yellow-400 p-4 rounded-r-lg"><h2 class="text-xl font-semibold text-yellow-800 mb-2">How It Works</h2> <ol class="text-yellow-700 space-y-2 text-sm"><li><span class="font-semibold">1.</span> Your web app connects to Sockethub via WebSocket</li> <li><span class="font-semibold">2.</span> You define an actor and send ActivityStreams messages (<code>credentials</code>, <code>connect</code>, <code>join</code>, …) with full actor objects</li> <li><span class="font-semibold">3.</span> Sockethub routes messages to the appropriate platform</li> <li><span class="font-semibold">4.</span> Platform handles protocol-specific communication</li> <li><span class="font-semibold">5.</span> Results are sent back to your web app as ActivityStreams</li></ol></div> <div class="bg-purple-50 border-l-4 border-purple-400 p-4 rounded-r-lg"><h2 class="text-xl font-semibold text-purple-800 mb-2">Explore the Examples</h2> <p class="text-purple-700 mb-3">Each example demonstrates a different platform. Start with <strong>Dummy</strong> to understand
|
|
5
|
-
the basic flow, then explore real-world protocols:</p> <div class="grid gap-3 text-sm"><a class="block p-3 bg-white rounded border hover:bg-purple-50 transition-colors border-l-4 border-l-green-400"><div class="flex items-center justify-between"><div><div class="font-semibold text-purple-800">🔧 Dummy Platform</div> <div class="text-purple-600">Learn the basics with simple echo/fail examples</div></div> <span class="text-xs bg-green-100 text-green-700 px-2 py-1 rounded">Start Here</span></div></a> <div class="grid md:grid-cols-2 gap-3"><a class="block p-3 bg-white rounded border hover:bg-purple-50 transition-colors"><div class="font-semibold text-purple-800">📰 RSS/ATOM Feeds</div> <div class="text-purple-600">Fetch and parse web feeds</div></a> <a class="block p-3 bg-white rounded border hover:bg-purple-50 transition-colors"><div class="font-semibold text-purple-800">🔍 Metadata</div> <div class="text-purple-600">Extract metadata from web pages</div></a></div> <div class="grid md:grid-cols-2 gap-3"><a class="block p-3 bg-white rounded border hover:bg-purple-50 transition-colors"><div class="font-semibold text-purple-800">📅 CalDAV Calendars</div> <div class="text-purple-600">Discover calendars and create events or tasks</div></a> <a class="block p-3 bg-white rounded border hover:bg-purple-50 transition-colors"><div class="font-semibold text-purple-800">👤 CardDAV Contacts</div> <div class="text-purple-600">Discover address books and find contacts</div></a></div> <div class="grid md:grid-cols-2 gap-3"><a class="block p-3 bg-white rounded border hover:bg-purple-50 transition-colors border-l-4 border-l-orange-400"><div class="flex items-center justify-between"><div><div class="font-semibold text-purple-800">💬 IRC Chat</div> <div class="text-purple-600">Connect to IRC servers and channels</div></div> <span class="text-xs bg-orange-100 text-orange-700 px-2 py-1 rounded">Advanced</span></div></a> <a class="block p-3 bg-white rounded border hover:bg-purple-50 transition-colors border-l-4 border-l-orange-400"><div class="flex items-center justify-between"><div><div class="font-semibold text-purple-800">📨 XMPP Messaging</div> <div class="text-purple-600">Send and receive XMPP messages</div></div> <span class="text-xs bg-orange-100 text-orange-700 px-2 py-1 rounded">Advanced</span></div></a></div></div></div> <div class="text-center text-gray-600 text-sm bg-gray-50 p-4 rounded-lg">💡 <strong>Tip:</strong> Watch the connection status at the top and the activity log at the bottom of each example to understand what's happening behind the scenes.</div></div>`,1);function X(h){A(h,{title:"Sockethub Examples",children:(u,I)=>{var d=C(),l=e(S(d),2),n=e(a(l),6),c=e(a(n),4),p=a(c),o=e(p,2),v=a(o),x=e(v,2);r(o);var i=e(o,2),b=a(i),f=e(b,2);r(i);var m=e(i,2),g=a(m),w=e(g,2);r(m),r(c),r(n),_(2),r(l),P(()=>{t(p,"href",`${s??""}/dummy`),t(v,"href",`${s??""}/feeds`),t(x,"href",`${s??""}/metadata`),t(b,"href",`${s??""}/caldav`),t(f,"href",`${s??""}/carddav`),t(g,"href",`${s??""}/irc`),t(w,"href",`${s??""}/xmpp`)}),k(u,d)}})}export{X as component};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{f as k,a as y}from"../chunks/Dm9HHmcs.js";import{p as Q,a as T,s as t,f as U,c as n,g as e,u as P,r as d,n as W,d as S,t as Z,b as m,e as c}from"../chunks/CD2k2u89.js";import{s as ee,b as te,m as re,a as J,i as oe,c as _}from"../chunks/BYPKMD8u.js";import{r as se}from"../chunks/XtX2ckS1.js";import{B as ae,b as ne}from"../chunks/DUJRAiM5.js";import{A as de}from"../chunks/C_USdH9H.js";import{A as ce,C as ie,P as le,R as me,S as pe}from"../chunks/Dku5k7NX.js";import{I as ge,s as ue,c as be}from"../chunks/B7yWsbOZ.js";import{w as R}from"../chunks/C7RIZnpe.js";var ve=k('<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>'),he=k('<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>'),fe=k(`<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. 🎭 Actor:</strong> JSON object with <code>id</code>, <code>type</code>, and <code>name</code></div> <div><strong>2. 🔐 Set Credentials:</strong> Your XMPP login secret, sent through the password field</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> <label class="block text-sm font-medium text-gray-700 mb-1" for="xmpp-password-input">Password</label> <input id="xmpp-password-input" type="password" class="w-full border border-gray-300 rounded-md px-3 py-2 text-sm mb-3" placeholder="your XMPP password or compatible bearer token"/> <p class="text-gray-600 text-xs mb-3">💡 If your deployment accepts a bearer-style token in the SASL PLAIN password
|
|
2
|
-
slot, enter that token here. Sockethub's XMPP platform still submits it as <code>password</code>.</p> <!> <p class="text-gray-600 text-sm mt-2">🔐 Sockethub's XMPP platform accepts a single <code>password</code> field.</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 Ae(F,Y){Q(Y,!0);const p=()=>J(M,"$actorIdStore",w),s=()=>J(o,"$sockethubState",w),[w,B]=ee(),M=R("user@jabber.org");let g=S(!1),u=S("123456"),X=P(()=>`${p()}/SockethubExample`),b=S("kosmos-random@kosmos.chat");const o=R({actorSet:!1,credentialsSet:!1,connected:!1,joined:!1});let a=P(()=>({id:e(X),type:"person",name:e(X)})),L=P(()=>({type:"credentials",userAddress:p(),resource:"SockethubExample",password:e(u)}));async function N(){m(g,!0);try{await ue({"@context":await be("xmpp"),type:"connect",actor:{id:e(a).id,type:e(a).type,name:e(a).name}}),_(o,c(s).connected=!0,c(s))}catch(v){console.error(v),_(o,c(s).connected=!1,c(s)),_(o,c(s).joined=!1,c(s))}finally{m(g,!1)}}ae(F,{title:"XMPP Platform Example",description:"Connect to XMPP servers (Jabber), join multi-user chats, and exchange messages using Sockethub's XMPP platform.",children:(v,xe)=>{var C=fe(),A=t(U(C),2),h=n(A),I=t(n(h),2);ce(I,{get value(){return re(),p()},set value(r){te(M,r)}});var O=t(I,4);de(O,{get actor(){return e(a)},get sockethubState(){return o}}),d(h);var f=t(h,2),l=t(n(f),4);se(l);var V=t(l,4);ie(V,{context:"xmpp",get credentials(){return e(L)},get actor(){return e(a)},get sockethubState(){return o}}),W(2),d(f);var x=t(f,2),q=t(n(x),2);le(q,{get sockethubState(){return o},get connecting(){return e(g)},onConnect:N}),d(x);var z=t(x,2);{var D=r=>{var i=ve(),$=t(n(i),2),E=n($);me(E,{get actor(){return e(a)},get sockethubState(){return o},context:"xmpp",get room(){return e(b)},set room(K){m(b,K,!0)}});var j=t(E,2);ge(j,{});var H=t(j,2);pe(H,{context:"xmpp",get actor(){return e(a)},get sockethubState(){return o},get room(){return e(b)}}),d($),d(i),y(r,i)},G=r=>{var i=he();y(r,i)};oe(z,r=>{s().connected?r(D):r(G,!1)})}d(A),Z(()=>l.disabled=s().credentialsSet),ne(l,()=>e(u),r=>m(u,r)),y(v,C)}}),T(),B()}export{Ae as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as w,t as E,a as p,s as O}from"../chunks/Dm9HHmcs.js";import{p as P,a as j,s as a,f as B,c,b as f,d as y,g as e,u as _,n as M,r as n,t as C}from"../chunks/CD2k2u89.js";import{s as W,i as H,a as Y}from"../chunks/BYPKMD8u.js";import{A as q}from"../chunks/C_USdH9H.js";import{B as z,S as D}from"../chunks/DUJRAiM5.js";import{F as G}from"../chunks/BwvUNwzv.js";import{s as I,a as J,c as K}from"../chunks/B7yWsbOZ.js";import{w as N}from"../chunks/C7RIZnpe.js";var Q=w('<div class="bg-red-50 border border-red-200 text-red-800 rounded-lg p-4 text-sm" role="alert"><p class="font-semibold mb-1">Fetch failed</p> <p class="font-mono text-xs whitespace-pre-wrap break-words"> </p></div>'),V=w('<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">The feed URL is the actor <code>id</code> with <code>type: "feed"</code>.</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/> Sockethub sends a <code>fetch</code> activity with the feed URL as the actor and returns a collection of entries.</p></div> <!> <div class="w-full text-right"><!></div></div>',1);function ce(k,F){P(F,!0);const $=()=>Y(m,"$sockethubState",A),[A,R]=W(),m=N({actorSet:!1});let o=y("https://sockethub.org/feed.xml"),d=y(null);const h=_(()=>({id:e(o),type:"feed",name:e(o)}));async function L(){f(d,null);try{await I({"@context":await K("feeds"),type:"fetch",actor:J(e(h))})}catch(r){f(d,r instanceof Error?r.message:String(r),!0)}}z(k,{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:(r,X)=>{var v=V(),u=a(B(v),2),b=c(u);G(b,{label:"Feed URL",id:"URL",placeholder:"https://example.com/feed.xml",get value(){return e(o)},set value(t){f(o,t,!0)}});var g=a(b,4);q(g,{get actor(){return e(h)},get sockethubState(){return m}});var x=a(g,4);{var T=t=>{var s=Q(),i=a(c(s),2),l=c(i,!0);n(i),n(s),C(()=>O(l,e(d))),p(t,s)};H(x,t=>{e(d)&&t(T)})}var S=a(x,2),U=c(S);{let t=_(()=>!$().actorSet);D(U,{buttonAction:L,get disabled(){return e(t)},children:(s,i)=>{M();var l=E("Fetch Feed");p(s,l)}})}n(S),n(u),p(r,v)}}),j(),R()}export{ce as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as w,a as C}from"../chunks/Dm9HHmcs.js";import{p as ee,a as te,s as t,f as re,c as s,g as e,u as B,r as a,b as l,d as v,e as c}from"../chunks/CD2k2u89.js";import{s as oe,b as se,m as ae,a as q,i as ne,c as S}from"../chunks/BYPKMD8u.js";import{A as de}from"../chunks/C_USdH9H.js";import{A as ce,C as ie,P as le,R as me,S as ve}from"../chunks/Dku5k7NX.js";import{B as ue}from"../chunks/DUJRAiM5.js";import{F as z}from"../chunks/BwvUNwzv.js";import{I as ge,s as pe,c as be}from"../chunks/B7yWsbOZ.js";import{w as N}from"../chunks/C7RIZnpe.js";var fe=w('<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=w('<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=w('<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. 🎭 Actor:</strong> JSON object with <code>id</code>, <code>type</code>, and <code>name</code></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> Confirm your actor</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(O,D){ee(D,!0);const m=()=>q(k,"$actorIdStore",I),n=()=>q(o,"$sockethubState",I),[I,G]=oe(),k=N(`sh-${(Math.random()+1).toString(36).substring(7)}`);let u=v("chat.freenode.net"),g=v(6697),p=v("#sh-random"),b=v(!1);const o=N({actorSet:!1,credentialsSet:!1,connected:!1,joined:!1});let d=B(()=>({id:m(),type:"person",name:m()})),H=B(()=>({type:"credentials",nick:m(),server:e(u),port:e(g),secure:!0}));async function K(){l(b,!0);try{await pe({"@context":await be("irc"),type:"connect",actor:{id:e(d).id,type:e(d).type,name:e(d).name}}),S(o,c(n).connected=!0,c(n))}catch(f){console.error(f),S(o,c(n).connected=!1,c(n)),S(o,c(n).joined=!1,c(n))}finally{l(b,!1)}}ue(O,{title:"IRC Platform Example",description:"Connect to IRC servers, join channels, and send messages using Sockethub's IRC platform.",children:(f,_e)=>{var R=xe(),j=t(re(R),2),h=s(j),$=t(s(h),2),P=s($);ce(P,{get value(){return ae(),m()},set value(r){se(k,r)}});var L=t(P,2);de(L,{get actor(){return e(d)},get sockethubState(){return o}}),a($),a(h);var x=t(h,2),A=t(s(x),2),_=s(A),F=s(_);z(F,{label:"IRC Server",id:"server",placeholder:"irc.libera.chat",get value(){return e(u)},set value(r){l(u,r,!0)}});var Q=t(F,2);z(Q,{label:"Port",id:"port",type:"number",placeholder:"6697",get value(){return e(g)},set value(r){l(g,r,!0)}}),a(_);var T=t(_,4);ie(T,{context:"irc",get credentials(){return e(H)},get actor(){return e(d)},get sockethubState(){return o}}),a(A),a(x);var y=t(x,2),U=t(s(y),2);le(U,{get sockethubState(){return o},get connecting(){return e(b)},onConnect:K}),a(y);var V=t(y,2);{var W=r=>{var i=fe(),E=t(s(i),2),M=s(E);me(M,{get actor(){return e(d)},get sockethubState(){return o},context:"irc",get room(){return e(p)},set room(Z){l(p,Z,!0)}});var J=t(M,2);ge(J,{});var Y=t(J,2);ve(Y,{context:"irc",get actor(){return e(d)},get sockethubState(){return o},get room(){return e(p)}}),a(E),a(i),C(r,i)},X=r=>{var i=he();C(r,i)};ne(V,r=>{n().connected?r(W):r(X,!1)})}a(j),C(f,R)}}),te(),G()}export{Pe as component};
|