@reddb-io/ui 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/build/_app/immutable/assets/0.CEQwbG0J.css +1 -0
  2. package/build/_app/immutable/chunks/C-kqMbRi.js +1 -0
  3. package/build/_app/immutable/chunks/{CLBx21Hz.js → C3SGj6Qd.js} +2 -2
  4. package/build/_app/immutable/chunks/{DV9PDoM3.js → C9pP73gT.js} +1 -1
  5. package/build/_app/immutable/chunks/{CJFJ501n.js → CEBul73-.js} +1 -1
  6. package/build/_app/immutable/chunks/CHvQYbpl.js +1 -0
  7. package/build/_app/immutable/chunks/{8zg2gJwV.js → CXuFZWQe.js} +1 -1
  8. package/build/_app/immutable/chunks/CgIoFKBK.js +1 -0
  9. package/build/_app/immutable/chunks/D02PB2u7.js +1 -0
  10. package/build/_app/immutable/chunks/D6XJvoMn.js +404 -0
  11. package/build/_app/immutable/chunks/DLDgyIn5.js +1164 -0
  12. package/build/_app/immutable/chunks/{Bq4DTWK2.js → DN7v3Tar.js} +1 -1
  13. package/build/_app/immutable/entry/{app.BDog2y0J.js → app.BBk9O_OI.js} +2 -2
  14. package/build/_app/immutable/entry/start.C9qfj9ex.js +1 -0
  15. package/build/_app/immutable/nodes/0.BBf1ZyjL.js +2 -0
  16. package/build/_app/immutable/nodes/1.BmVeJAGw.js +1 -0
  17. package/build/_app/immutable/nodes/{10.D_FCLs0Z.js → 10.DZmZgLvj.js} +1 -1
  18. package/build/_app/immutable/nodes/{12.DPE6v6Zf.js → 12.CzMvqoYS.js} +2 -2
  19. package/build/_app/immutable/nodes/15.CRwZaU1B.js +60 -0
  20. package/build/_app/version.json +1 -1
  21. package/build/index.html +13 -13
  22. package/dist/embed/{AnalyticsView-D8z1Nsed.js → AnalyticsView-BWwvQS2I.js} +849 -849
  23. package/dist/embed/{AnalyticsView-D8z1Nsed.js.map → AnalyticsView-BWwvQS2I.js.map} +1 -1
  24. package/dist/embed/RedUiEmbedRoot-DAB-6DEr.js +35587 -0
  25. package/dist/embed/RedUiEmbedRoot-DAB-6DEr.js.map +1 -0
  26. package/dist/embed/event-BvRbkLjD.js +46 -0
  27. package/dist/embed/event-BvRbkLjD.js.map +1 -0
  28. package/dist/embed/index-BVxMkfHe.js +8 -0
  29. package/dist/embed/index-BVxMkfHe.js.map +1 -0
  30. package/dist/embed/index-Bgo4yw4C.js +856 -0
  31. package/dist/embed/index-Bgo4yw4C.js.map +1 -0
  32. package/dist/embed/{index-client-BeiP-va5.js → index-client-BHUUkI8H.js} +121 -120
  33. package/dist/embed/{index-client-BeiP-va5.js.map → index-client-BHUUkI8H.js.map} +1 -1
  34. package/dist/embed/index.js +1 -1
  35. package/dist/embed/{sigma.esm-qqKBpvin.js → sigma.esm-BOgYLguI.js} +2 -2
  36. package/dist/embed/{sigma.esm-qqKBpvin.js.map → sigma.esm-BOgYLguI.js.map} +1 -1
  37. package/dist/embed/window-ZR8_mM8o.js +1889 -0
  38. package/dist/embed/window-ZR8_mM8o.js.map +1 -0
  39. package/package.json +5 -3
  40. package/src/app.css +5 -0
  41. package/src/lib/ConnectDropdown.svelte +60 -3
  42. package/src/lib/DevConsole.svelte +155 -0
  43. package/src/lib/ErrorBoundary.fixture.svelte +11 -0
  44. package/src/lib/ErrorBoundary.fixtures.svelte.ts +5 -0
  45. package/src/lib/ErrorBoundary.svelte +78 -0
  46. package/src/lib/ErrorBoundaryCrashChild.fixture.svelte +9 -0
  47. package/src/lib/LoadingOverlay.svelte +109 -0
  48. package/src/lib/StatusBar.svelte +19 -1
  49. package/src/lib/Workspace.svelte +118 -2
  50. package/src/lib/connections.svelte.ts +95 -1
  51. package/src/lib/embed/RedUiEmbedRoot.svelte +13 -8
  52. package/src/lib/embed/index.ts +34 -1
  53. package/src/lib/index.ts +7 -0
  54. package/src/lib/loading.svelte.ts +142 -0
  55. package/src/lib/reddb/client.ts +133 -15
  56. package/src/lib/reddb/desktop-error.ts +89 -0
  57. package/src/lib/reddb/dev-console.ts +186 -0
  58. package/src/lib/reddb/index.ts +2 -0
  59. package/src/lib/reddb/local-url-provider.ts +4 -8
  60. package/src/lib/reddb/tauri-encrypted-store.ts +4 -9
  61. package/src/lib/tabs.svelte.ts +5 -0
  62. package/src/lib/workspace-session.ts +81 -0
  63. package/build/_app/immutable/assets/0.DgbuWrJy.css +0 -1
  64. package/build/_app/immutable/chunks/85-Fh5Zp.js +0 -404
  65. package/build/_app/immutable/chunks/CnD4hwxC.js +0 -1106
  66. package/build/_app/immutable/chunks/DQCYUNtS.js +0 -1
  67. package/build/_app/immutable/entry/start.D1J45dq5.js +0 -1
  68. package/build/_app/immutable/nodes/0.BTrC4th2.js +0 -1
  69. package/build/_app/immutable/nodes/1.Ds1Tbjsm.js +0 -1
  70. package/build/_app/immutable/nodes/15.CcJlZGxa.js +0 -60
  71. package/dist/embed/RedUiEmbedRoot-CtqTd_FG.js +0 -31302
  72. package/dist/embed/RedUiEmbedRoot-CtqTd_FG.js.map +0 -1
  73. package/dist/embed/index-w1Qo_uW0.js +0 -677
  74. package/dist/embed/index-w1Qo_uW0.js.map +0 -1
@@ -1,2 +1,2 @@
1
1
  var Ve=Object.defineProperty;var Ee=t=>{throw TypeError(t)};var Be=(t,e,r)=>e in t?Ve(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var X=(t,e,r)=>Be(t,typeof e!="symbol"?e+"":e,r),ae=(t,e,r)=>e.has(t)||Ee("Cannot "+r);var s=(t,e,r)=>(ae(t,e,"read from private field"),r?r.call(t):e.get(t)),_=(t,e,r)=>e.has(t)?Ee("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),f=(t,e,r,n)=>(ae(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),p=(t,e,r)=>(ae(t,e,"access private method"),r);import{an as Ye,at as De,bf as je,bK as qe,aI as Te,ba as j,by as Me,aE as d,aF as N,Y as F,c as we,a2 as ze,aD as be,s as Ge,t as Ne,a3 as H,ab as q,b5 as oe,ac as W,a$ as Qe,ae as Ue,bo as re,bp as se,bq as Ae,e as Xe,aB as Je,Z as Oe,a8 as Le,aK as Ke,aj as fe,br as z,b2 as Ze,bx as et,aM as J,n as tt,m as rt,bE as st,bD as nt,af as it,bQ as at,bF as ot,aa as ft,ay as L,aQ as ut,T as Ce,M as lt,R as ct,f as ye,Q as dt,a_ as ht,O as Re,aJ as le,r as _t,az as pt,q as ce,bs as K,aG as vt,a7 as gt,a9 as mt,a0 as bt,b9 as yt,p as Et,aH as Tt,b6 as wt}from"./CGFL56WJ.js";function Nt(t){let e=0,r=Me(0),n;return()=>{Ye()&&(De(r),je(()=>(e===0&&(n=qe(()=>t(()=>Te(r)))),e+=1,()=>{j(()=>{e-=1,e===0&&(n==null||n(),n=void 0,Te(r))})})))}}var At=tt|rt;function Rt(t,e,r,n){new kt(t,e,r,n)}var T,G,A,V,m,R,v,w,S,B,C,Y,Q,U,D,ne,u,Fe,xe,Ie,de,ee,te,he,_e;class kt{constructor(e,r,n,o){_(this,u);X(this,"parent");X(this,"is_pending",!1);X(this,"transform_error");_(this,T);_(this,G,N?d:null);_(this,A);_(this,V);_(this,m);_(this,R,null);_(this,v,null);_(this,w,null);_(this,S,null);_(this,B,0);_(this,C,0);_(this,Y,!1);_(this,Q,new Set);_(this,U,new Set);_(this,D,null);_(this,ne,Nt(()=>(f(this,D,Me(s(this,B))),()=>{f(this,D,null)})));var i;f(this,T,e),f(this,A,r),f(this,V,a=>{var h=F;h.b=this,h.f|=we,n(a)}),this.parent=F.b,this.transform_error=o??((i=this.parent)==null?void 0:i.transform_error)??(a=>a),f(this,m,ze(()=>{if(N){const a=s(this,G);be();const h=a.data===Ge;if(a.data.startsWith(Ne)){const c=JSON.parse(a.data.slice(Ne.length));p(this,u,xe).call(this,c)}else h?p(this,u,Ie).call(this):p(this,u,Fe).call(this)}else p(this,u,de).call(this)},At)),N&&f(this,T,d)}defer_effect(e){Ue(e,s(this,Q),s(this,U))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!s(this,A).pending}update_pending_count(e,r){p(this,u,he).call(this,e,r),f(this,B,s(this,B)+e),!(!s(this,D)||s(this,Y))&&(f(this,Y,!0),j(()=>{f(this,Y,!1),s(this,D)&&Ke(s(this,D),s(this,B))}))}get_effect_pending(){return s(this,ne).call(this),De(s(this,D))}error(e){var r;if(!s(this,A).onerror&&!s(this,A).failed)throw e;(r=W)!=null&&r.is_fork?(s(this,R)&&W.skip_effect(s(this,R)),s(this,v)&&W.skip_effect(s(this,v)),s(this,w)&&W.skip_effect(s(this,w)),W.on_fork_commit(()=>{p(this,u,_e).call(this,e)})):p(this,u,_e).call(this,e)}}T=new WeakMap,G=new WeakMap,A=new WeakMap,V=new WeakMap,m=new WeakMap,R=new WeakMap,v=new WeakMap,w=new WeakMap,S=new WeakMap,B=new WeakMap,C=new WeakMap,Y=new WeakMap,Q=new WeakMap,U=new WeakMap,D=new WeakMap,ne=new WeakMap,u=new WeakSet,Fe=function(){try{f(this,R,H(()=>s(this,V).call(this,s(this,T))))}catch(e){this.error(e)}},xe=function(e){const r=s(this,A).failed;r&&f(this,w,H(()=>{r(s(this,T),()=>e,()=>()=>{})}))},Ie=function(){const e=s(this,A).pending;e&&(this.is_pending=!0,f(this,v,H(()=>e(s(this,T)))),j(()=>{var r=f(this,S,document.createDocumentFragment()),n=q();r.append(n),f(this,R,p(this,u,te).call(this,()=>H(()=>s(this,V).call(this,n)))),s(this,C)===0&&(s(this,T).before(r),f(this,S,null),oe(s(this,v),()=>{f(this,v,null)}),p(this,u,ee).call(this,W))}))},de=function(){try{if(this.is_pending=this.has_pending_snippet(),f(this,C,0),f(this,B,0),f(this,R,H(()=>{s(this,V).call(this,s(this,T))})),s(this,C)>0){var e=f(this,S,document.createDocumentFragment());Qe(s(this,R),e);const r=s(this,A).pending;f(this,v,H(()=>r(s(this,T))))}else p(this,u,ee).call(this,W)}catch(r){this.error(r)}},ee=function(e){this.is_pending=!1,e.transfer_effects(s(this,Q),s(this,U))},te=function(e){var r=F,n=Oe,o=Le;re(s(this,m)),se(s(this,m)),Ae(s(this,m).ctx);try{return Xe.ensure(),e()}catch(i){return Je(i),null}finally{re(r),se(n),Ae(o)}},he=function(e,r){var n;if(!this.has_pending_snippet()){this.parent&&p(n=this.parent,u,he).call(n,e,r);return}f(this,C,s(this,C)+e),s(this,C)===0&&(p(this,u,ee).call(this,r),s(this,v)&&oe(s(this,v),()=>{f(this,v,null)}),s(this,S)&&(s(this,T).before(s(this,S)),f(this,S,null)))},_e=function(e){s(this,R)&&(fe(s(this,R)),f(this,R,null)),s(this,v)&&(fe(s(this,v)),f(this,v,null)),s(this,w)&&(fe(s(this,w)),f(this,w,null)),N&&(z(s(this,G)),Ze(),z(et()));var r=s(this,A).onerror;let n=s(this,A).failed;var o=!1,i=!1;const a=()=>{if(o){nt();return}o=!0,i&&st(),s(this,w)!==null&&oe(s(this,w),()=>{f(this,w,null)}),p(this,u,te).call(this,()=>{p(this,u,de).call(this)})},h=l=>{try{i=!0,r==null||r(l,a),i=!1}catch(c){J(c,s(this,m)&&s(this,m).parent)}n&&f(this,w,p(this,u,te).call(this,()=>{try{return H(()=>{var c=F;c.b=this,c.f|=we,n(s(this,T),()=>l,()=>a)})}catch(c){return J(c,s(this,m).parent),null}}))};j(()=>{var l;try{l=this.transform_error(e)}catch(c){J(c,s(this,m)&&s(this,m).parent);return}l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(h,c=>J(c,s(this,m)&&s(this,m).parent)):h(l)})};function Ht(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const St=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Wt(t){return St.includes(t)}const Dt={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 $t(t){return t=t.toLowerCase(),Dt[t]??t}const Mt=["touchstart","touchmove"];function Ot(t){return Mt.includes(t)}const Lt=["textarea","script","style","title"];function Vt(t){return Lt.includes(t)}const $=Symbol("events"),Pe=new Set,pe=new Set;function He(t,e,r,n={}){function o(i){if(n.capture||ve.call(e,i),!i.cancelBubble)return at(()=>r==null?void 0:r.call(this,i))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?j(()=>{e.addEventListener(t,o,n)}):e.addEventListener(t,o,n),o}function Bt(t,e,r,n={}){var o=He(e,t,r,n);return()=>{t.removeEventListener(e,o,n)}}function Yt(t,e,r,n,o){var i={capture:n,passive:o},a=He(t,e,r,i);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ot(()=>{e.removeEventListener(t,a,i)})}function jt(t,e,r){(e[$]??(e[$]={}))[t]=r}function qt(t){for(var e=0;e<t.length;e++)Pe.add(t[e]);for(var r of pe)r(t)}let ke=null;function ve(t){var I,E;var e=this,r=e.ownerDocument,n=t.type,o=((I=t.composedPath)==null?void 0:I.call(t))||[],i=o[0]||t.target;ke=t;var a=0,h=ke===t&&t[$];if(h){var l=o.indexOf(h);if(l!==-1&&(e===document||e===window)){t[$]=e;return}var c=o.indexOf(e);if(c===-1)return;l<=c&&(a=l)}if(i=o[a]||t.target,i!==e){it(t,"currentTarget",{configurable:!0,get(){return i||r}});var M=Oe,x=F;se(null),re(null);try{for(var O,b=[];i!==null;){var g=i.assignedSlot||i.parentNode||i.host||null;try{var y=(E=i[$])==null?void 0:E[n];y!=null&&(!i.disabled||t.target===i)&&y.call(i,t)}catch(P){O?b.push(P):O=P}if(t.cancelBubble||g===e||g===null)break;i=g}if(O){for(let P of b)queueMicrotask(()=>{throw P});throw O}}finally{t[$]=e,delete t.currentTarget,se(M),re(x)}}}var Se;const ue=((Se=globalThis==null?void 0:globalThis.window)==null?void 0:Se.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function Ct(t){return(ue==null?void 0:ue.createHTML(t))??t}function We(t){var e=ft("template");return e.innerHTML=Ct(t.replaceAll("<!>","<!---->")),e.content}function k(t,e){var r=F;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function zt(t,e){var r=(e&Ce)!==0,n=(e&lt)!==0,o,i=!t.startsWith("<!>");return()=>{if(N)return k(d,null),d;o===void 0&&(o=We(i?t:"<!>"+t),r||(o=L(o)));var a=n||ut?document.importNode(o,!0):o.cloneNode(!0);if(r){var h=L(a),l=a.lastChild;k(h,l)}else k(a,a);return a}}function Ft(t,e,r="svg"){var n=!t.startsWith("<!>"),o=(e&Ce)!==0,i=`<${r}>${n?t:"<!>"+t}</${r}>`,a;return()=>{if(N)return k(d,null),d;if(!a){var h=We(i),l=L(h);if(o)for(a=document.createDocumentFragment();L(l);)a.appendChild(L(l));else a=L(l)}var c=a.cloneNode(!0);if(o){var M=L(c),x=c.lastChild;k(M,x)}else k(c,c);return c}}function Gt(t,e){return Ft(t,e,"svg")}function Qt(t=""){if(!N){var e=q(t+"");return k(e,e),e}var r=d;return r.nodeType!==dt?(r.before(r=q()),z(r)):ht(r),k(r,r),r}function Ut(){if(N)return k(d,null),d;var t=document.createDocumentFragment(),e=document.createComment(""),r=q();return t.append(e,r),k(e,r),t}function Xt(t,e){if(N){var r=F;((r.f&ct)===0||r.nodes.end===null)&&(r.nodes.end=d),be();return}t!==null&&t.before(e)}function Jt(){var t,e;if(N&&d&&d.nodeType===ye&&((t=d.textContent)!=null&&t.startsWith("$"))){const r=d.textContent.substring(1);return be(),r}return(e=window.__svelte??(window.__svelte={})).uid??(e.uid=1),`c${window.__svelte.uid++}`}let ge=!0;function Kt(t){ge=t}function Zt(t,e){var n;var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t[n=Re]??(t[n]=t.nodeValue))&&(t[Re]=r,t.nodeValue=`${r}`)}function xt(t,e){return $e(t,e)}function er(t,e){le(),e.intro=e.intro??!1;const r=e.target,n=N,o=d;try{for(var i=L(r);i&&(i.nodeType!==ye||i.data!==_t);)i=pt(i);if(!i)throw ce;K(!0),z(i);const a=$e(t,{...e,anchor:i});return K(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(h=>h.startsWith("https://svelte.dev/e/")))throw a;return a!==ce&&console.warn("Failed to hydrate: ",a),e.recover===!1&&vt(),le(),gt(r),K(!1),xt(t,e)}finally{K(n),z(o)}}const Z=new Map;function $e(t,{target:e,anchor:r,props:n={},events:o,context:i,intro:a=!0,transformError:h}){le();var l=void 0,c=mt(()=>{var M=r??e.appendChild(q());Rt(M,{pending:()=>{}},b=>{yt({});var g=Le;if(i&&(g.c=i),o&&(n.$$events=o),N&&k(b,null),ge=a,l=t(b,n)||{},ge=!0,N&&(F.nodes.end=d,d===null||d.nodeType!==ye||d.data!==Et))throw Tt(),ce;wt()},h);var x=new Set,O=b=>{for(var g=0;g<b.length;g++){var y=b[g];if(!x.has(y)){x.add(y);var I=Ot(y);for(const ie of[e,document]){var E=Z.get(ie);E===void 0&&(E=new Map,Z.set(ie,E));var P=E.get(y);P===void 0?(ie.addEventListener(y,ve,{passive:I}),E.set(y,1)):E.set(y,P+1)}}}};return O(bt(Pe)),pe.add(O),()=>{var I;for(var b of x)for(const E of[e,document]){var g=Z.get(E),y=g.get(b);--y==0?(E.removeEventListener(b,ve),g.delete(b),g.size===0&&Z.delete(E)):g.set(b,y)}pe.delete(O),M!==r&&((I=M.parentNode)==null||I.removeChild(M))}});return me.set(l,c),l}let me=new WeakMap;function tr(t,e){const r=me.get(t);return r?(me.delete(t),r(e)):Promise.resolve()}export{Xt as a,k as b,Wt as c,Ut as d,Nt as e,He as f,qt as g,jt as h,Yt as i,zt as j,Gt as k,er as l,Ht as m,Vt as n,xt as o,$t as p,Bt as q,Jt as r,Kt as s,Zt as t,ge as u,Qt as v,tr as w};
2
+ `).some(h=>h.startsWith("https://svelte.dev/e/")))throw a;return a!==ce&&console.warn("Failed to hydrate: ",a),e.recover===!1&&vt(),le(),gt(r),K(!1),xt(t,e)}finally{K(n),z(o)}}const Z=new Map;function $e(t,{target:e,anchor:r,props:n={},events:o,context:i,intro:a=!0,transformError:h}){le();var l=void 0,c=mt(()=>{var M=r??e.appendChild(q());Rt(M,{pending:()=>{}},b=>{yt({});var g=Le;if(i&&(g.c=i),o&&(n.$$events=o),N&&k(b,null),ge=a,l=t(b,n)||{},ge=!0,N&&(F.nodes.end=d,d===null||d.nodeType!==ye||d.data!==Et))throw Tt(),ce;wt()},h);var x=new Set,O=b=>{for(var g=0;g<b.length;g++){var y=b[g];if(!x.has(y)){x.add(y);var I=Ot(y);for(const ie of[e,document]){var E=Z.get(ie);E===void 0&&(E=new Map,Z.set(ie,E));var P=E.get(y);P===void 0?(ie.addEventListener(y,ve,{passive:I}),E.set(y,1)):E.set(y,P+1)}}}};return O(bt(Pe)),pe.add(O),()=>{var I;for(var b of x)for(const E of[e,document]){var g=Z.get(E),y=g.get(b);--y==0?(E.removeEventListener(b,ve),g.delete(b),g.size===0&&Z.delete(E)):g.set(b,y)}pe.delete(O),M!==r&&((I=M.parentNode)==null||I.removeChild(M))}});return me.set(l,c),l}let me=new WeakMap;function tr(t,e){const r=me.get(t);return r?(me.delete(t),r(e)):Promise.resolve()}export{Xt as a,k as b,Rt as c,Wt as d,Ut as e,Nt as f,He as g,qt as h,jt as i,Yt as j,zt as k,Gt as l,er as m,Ht as n,Vt as o,xt as p,$t as q,Bt as r,Jt as s,Kt as t,Zt as u,ge as v,Qt as w,tr as x};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BTrC4th2.js","../chunks/Bzak7iHL.js","../chunks/CGFL56WJ.js","../chunks/DIeogL5L.js","../chunks/Bq4DTWK2.js","../chunks/85-Fh5Zp.js","../chunks/69_IOA4Y.js","../chunks/BRIMmWzq.js","../chunks/DCJ0QyYH.js","../chunks/Btd6PFkC.js","../chunks/CLBx21Hz.js","../assets/EmptyState.RXcH7ryE.css","../chunks/DQCYUNtS.js","../chunks/8zg2gJwV.js","../chunks/CnD4hwxC.js","../assets/Workspace.DM2E1WiF.css","../assets/0.DgbuWrJy.css","../nodes/1.Ds1Tbjsm.js","../nodes/2.CAG5_cGP.js","../nodes/3.CAG5_cGP.js","../nodes/4.CAG5_cGP.js","../nodes/5.CAG5_cGP.js","../nodes/6.CAG5_cGP.js","../nodes/7.CAG5_cGP.js","../nodes/8.CAG5_cGP.js","../nodes/9.CAG5_cGP.js","../nodes/10.D_FCLs0Z.js","../chunks/DRlh90Cv.js","../chunks/BgOTHNR5.js","../nodes/11.CAG5_cGP.js","../nodes/12.DPE6v6Zf.js","../nodes/13.CAG5_cGP.js","../nodes/14.CAG5_cGP.js","../nodes/15.CcJlZGxa.js","../assets/15.Dblyk0Kr.css"])))=>i.map(i=>d[i]);
2
- var q=e=>{throw TypeError(e)};var G=(e,t,r)=>t.has(e)||q("Cannot "+r);var i=(e,t,r)=>(G(e,t,"read from private field"),r?r.call(e):t.get(e)),L=(e,t,r)=>t.has(e)?q("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),A=(e,t,r,n)=>(G(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);import{p as D,c as I,b as T,_ as o}from"../chunks/BRIMmWzq.js";import{bm as y,L as Q,at as l,as as U,af as W,b0 as X,b9 as Z,bP as $,bO as tt,bH as et,aq as R,bw as rt,b6 as at,bz as V,a6 as st,bg as ot,bG as it,bN as w}from"../chunks/CGFL56WJ.js";import{l as nt,o as _t,w as mt,a as p,d as x,j as M,v as ct,t as ut}from"../chunks/Bq4DTWK2.js";import"../chunks/Bzak7iHL.js";import{a as lt}from"../chunks/Btd6PFkC.js";import{i as k}from"../chunks/DCJ0QyYH.js";function dt(e){return class extends ft{constructor(t){super({component:e,...t})}}}var d,m;class ft{constructor(t){L(this,d);L(this,m);var E;var r=new Map,n=(a,s)=>{var f=X(s,!1,!1);return r.set(a,f),f};const u=new Proxy({...t.props||{},$$events:{}},{get(a,s){return l(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===Q?!0:(l(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,f){return y(r.get(s)??n(s,f),f),Reflect.set(a,s,f)}});A(this,m,(t.hydrate?nt:_t)(t.component,{target:t.target,anchor:t.anchor,props:u,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!((E=t==null?void 0:t.props)!=null&&E.$$host)||t.sync===!1)&&U(),A(this,d,u.$$events);for(const a of Object.keys(i(this,m)))a==="$set"||a==="$destroy"||a==="$on"||W(this,a,{get(){return i(this,m)[a]},set(s){i(this,m)[a]=s},enumerable:!0});i(this,m).$set=a=>{Object.assign(u,a)},i(this,m).$destroy=()=>{mt(i(this,m))}}$set(t){i(this,m).$set(t)}$on(t,r){i(this,d)[t]=i(this,d)[t]||[];const n=(...u)=>r.call(this,...u);return i(this,d)[t].push(n),()=>{i(this,d)[t]=i(this,d)[t].filter(u=>u!==n)}}$destroy(){i(this,m).$destroy()}}d=new WeakMap,m=new WeakMap;const Dt={};var vt=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>'),ht=M("<!> <!>",1);function gt(e,t){Z(t,!0);let r=D(t,"components",23,()=>[]),n=D(t,"data_0",3,null),u=D(t,"data_1",3,null);$(()=>t.stores.page.set(t.page)),tt(()=>{t.stores,t.page,t.constructors,r(),t.form,n(),u(),t.stores.page.notify()});let E=V(!1),a=V(!1),s=V(null);lt(()=>{const _=t.stores.page.subscribe(()=>{l(E)&&(y(a,!0),et().then(()=>{y(s,document.title||"untitled page",!0)}))});return y(E,!0),_});const f=w(()=>t.constructors[1]);var j=ht(),C=R(j);{var H=_=>{const v=w(()=>t.constructors[0]);var h=x(),P=R(h);I(P,()=>l(v),(g,b)=>{T(b(g,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(c,bt)=>{var S=x(),F=R(S);I(F,()=>l(f),(J,K)=>{T(K(J,{get data(){return u()},get form(){return t.form},get params(){return t.page.params}}),O=>r()[1]=O,()=>{var O;return(O=r())==null?void 0:O[1]})}),p(c,S)},$$slots:{default:!0}}),c=>r()[0]=c,()=>{var c;return(c=r())==null?void 0:c[0]})}),p(_,h)},N=_=>{const v=w(()=>t.constructors[0]);var h=x(),P=R(h);I(P,()=>l(v),(g,b)=>{T(b(g,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),c=>r()[0]=c,()=>{var c;return(c=r())==null?void 0:c[0]})}),p(_,h)};k(C,_=>{t.constructors[1]?_(H):_(N,-1)})}var Y=rt(C,2);{var B=_=>{var v=vt(),h=st(v);{var P=g=>{var b=ct();it(()=>ut(b,l(s))),p(g,b)};k(h,g=>{l(a)&&g(P)})}ot(v),p(_,v)};k(Y,_=>{l(E)&&_(B)})}p(e,j),at()}const It=dt(gt),Tt=[()=>o(()=>import("../nodes/0.BTrC4th2.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url),()=>o(()=>import("../nodes/1.Ds1Tbjsm.js"),__vite__mapDeps([17,1,2,3,4,13,12,9]),import.meta.url),()=>o(()=>import("../nodes/2.CAG5_cGP.js"),__vite__mapDeps([18,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/3.CAG5_cGP.js"),__vite__mapDeps([19,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/4.CAG5_cGP.js"),__vite__mapDeps([20,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/5.CAG5_cGP.js"),__vite__mapDeps([21,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/6.CAG5_cGP.js"),__vite__mapDeps([22,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/7.CAG5_cGP.js"),__vite__mapDeps([23,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/8.CAG5_cGP.js"),__vite__mapDeps([24,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/9.CAG5_cGP.js"),__vite__mapDeps([25,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/10.D_FCLs0Z.js"),__vite__mapDeps([26,1,9,2,3,4,8,27,5,6,7,10,11,28,13,12]),import.meta.url),()=>o(()=>import("../nodes/11.CAG5_cGP.js"),__vite__mapDeps([29,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/12.DPE6v6Zf.js"),__vite__mapDeps([30,1,2,3,4,8,28,10]),import.meta.url),()=>o(()=>import("../nodes/13.CAG5_cGP.js"),__vite__mapDeps([31,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/14.CAG5_cGP.js"),__vite__mapDeps([32,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/15.CcJlZGxa.js"),__vite__mapDeps([33,1,6,3,9,2,4,28,7,8,5,10,11,14,15,27,34]),import.meta.url)],Vt=[],wt={"/":[2],"/analytics":[3],"/appearance":[4],"/ask":[5],"/cluster":[8],"/collections":[9],"/c/[collection]":[6],"/c/[collection]/p/[subpage]":[7],"/graph":[10],"/query":[11],"/redwire-ws-spike":[12],"/security":[13],"/settings":[14],"/shadow-dom-spike":[15]},z={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},Et=Object.fromEntries(Object.entries(z.transport).map(([e,t])=>[e,t.decode])),xt=Object.fromEntries(Object.entries(z.transport).map(([e,t])=>[e,t.encode])),kt=!1,jt=(e,t)=>Et[e](t);export{jt as decode,Et as decoders,wt as dictionary,xt as encoders,kt as hash,z as hooks,Dt as matchers,Tt as nodes,It as root,Vt as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BBf1ZyjL.js","../chunks/Bzak7iHL.js","../chunks/CGFL56WJ.js","../chunks/DIeogL5L.js","../chunks/DN7v3Tar.js","../chunks/D6XJvoMn.js","../chunks/69_IOA4Y.js","../chunks/BRIMmWzq.js","../chunks/DCJ0QyYH.js","../chunks/Btd6PFkC.js","../chunks/C3SGj6Qd.js","../assets/EmptyState.RXcH7ryE.css","../chunks/CgIoFKBK.js","../chunks/CXuFZWQe.js","../chunks/DLDgyIn5.js","../assets/Workspace.DM2E1WiF.css","../assets/0.CEQwbG0J.css","../nodes/1.BmVeJAGw.js","../nodes/2.CAG5_cGP.js","../nodes/3.CAG5_cGP.js","../nodes/4.CAG5_cGP.js","../nodes/5.CAG5_cGP.js","../nodes/6.CAG5_cGP.js","../nodes/7.CAG5_cGP.js","../nodes/8.CAG5_cGP.js","../nodes/9.CAG5_cGP.js","../nodes/10.DZmZgLvj.js","../chunks/DRlh90Cv.js","../chunks/BgOTHNR5.js","../nodes/11.CAG5_cGP.js","../nodes/12.CzMvqoYS.js","../nodes/13.CAG5_cGP.js","../nodes/14.CAG5_cGP.js","../nodes/15.CRwZaU1B.js","../assets/15.Dblyk0Kr.css"])))=>i.map(i=>d[i]);
2
+ var q=e=>{throw TypeError(e)};var G=(e,t,r)=>t.has(e)||q("Cannot "+r);var i=(e,t,r)=>(G(e,t,"read from private field"),r?r.call(e):t.get(e)),L=(e,t,r)=>t.has(e)?q("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),A=(e,t,r,n)=>(G(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);import{p as D,c as I,b as T,_ as o}from"../chunks/BRIMmWzq.js";import{bm as y,L as Q,at as l,as as U,af as W,b0 as X,b9 as Z,bP as $,bO as tt,bH as et,aq as R,bw as rt,b6 as at,bz as V,a6 as st,bg as ot,bG as it,bN as w}from"../chunks/CGFL56WJ.js";import{m as nt,p as _t,x as mt,a as b,e as x,k as M,w as ct,u as ut}from"../chunks/DN7v3Tar.js";import"../chunks/Bzak7iHL.js";import{a as lt}from"../chunks/Btd6PFkC.js";import{i as k}from"../chunks/DCJ0QyYH.js";function dt(e){return class extends ft{constructor(t){super({component:e,...t})}}}var d,m;class ft{constructor(t){L(this,d);L(this,m);var E;var r=new Map,n=(a,s)=>{var f=X(s,!1,!1);return r.set(a,f),f};const u=new Proxy({...t.props||{},$$events:{}},{get(a,s){return l(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===Q?!0:(l(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,f){return y(r.get(s)??n(s,f),f),Reflect.set(a,s,f)}});A(this,m,(t.hydrate?nt:_t)(t.component,{target:t.target,anchor:t.anchor,props:u,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!((E=t==null?void 0:t.props)!=null&&E.$$host)||t.sync===!1)&&U(),A(this,d,u.$$events);for(const a of Object.keys(i(this,m)))a==="$set"||a==="$destroy"||a==="$on"||W(this,a,{get(){return i(this,m)[a]},set(s){i(this,m)[a]=s},enumerable:!0});i(this,m).$set=a=>{Object.assign(u,a)},i(this,m).$destroy=()=>{mt(i(this,m))}}$set(t){i(this,m).$set(t)}$on(t,r){i(this,d)[t]=i(this,d)[t]||[];const n=(...u)=>r.call(this,...u);return i(this,d)[t].push(n),()=>{i(this,d)[t]=i(this,d)[t].filter(u=>u!==n)}}$destroy(){i(this,m).$destroy()}}d=new WeakMap,m=new WeakMap;const Dt={};var vt=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>'),ht=M("<!> <!>",1);function gt(e,t){Z(t,!0);let r=D(t,"components",23,()=>[]),n=D(t,"data_0",3,null),u=D(t,"data_1",3,null);$(()=>t.stores.page.set(t.page)),tt(()=>{t.stores,t.page,t.constructors,r(),t.form,n(),u(),t.stores.page.notify()});let E=V(!1),a=V(!1),s=V(null);lt(()=>{const _=t.stores.page.subscribe(()=>{l(E)&&(y(a,!0),et().then(()=>{y(s,document.title||"untitled page",!0)}))});return y(E,!0),_});const f=w(()=>t.constructors[1]);var j=ht(),C=R(j);{var H=_=>{const v=w(()=>t.constructors[0]);var h=x(),P=R(h);I(P,()=>l(v),(g,p)=>{T(p(g,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(c,pt)=>{var S=x(),F=R(S);I(F,()=>l(f),(J,K)=>{T(K(J,{get data(){return u()},get form(){return t.form},get params(){return t.page.params}}),O=>r()[1]=O,()=>{var O;return(O=r())==null?void 0:O[1]})}),b(c,S)},$$slots:{default:!0}}),c=>r()[0]=c,()=>{var c;return(c=r())==null?void 0:c[0]})}),b(_,h)},N=_=>{const v=w(()=>t.constructors[0]);var h=x(),P=R(h);I(P,()=>l(v),(g,p)=>{T(p(g,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),c=>r()[0]=c,()=>{var c;return(c=r())==null?void 0:c[0]})}),b(_,h)};k(C,_=>{t.constructors[1]?_(H):_(N,-1)})}var Y=rt(C,2);{var B=_=>{var v=vt(),h=st(v);{var P=g=>{var p=ct();it(()=>ut(p,l(s))),b(g,p)};k(h,g=>{l(a)&&g(P)})}ot(v),b(_,v)};k(Y,_=>{l(E)&&_(B)})}b(e,j),at()}const It=dt(gt),Tt=[()=>o(()=>import("../nodes/0.BBf1ZyjL.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url),()=>o(()=>import("../nodes/1.BmVeJAGw.js"),__vite__mapDeps([17,1,2,3,4,13,12,9]),import.meta.url),()=>o(()=>import("../nodes/2.CAG5_cGP.js"),__vite__mapDeps([18,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/3.CAG5_cGP.js"),__vite__mapDeps([19,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/4.CAG5_cGP.js"),__vite__mapDeps([20,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/5.CAG5_cGP.js"),__vite__mapDeps([21,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/6.CAG5_cGP.js"),__vite__mapDeps([22,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/7.CAG5_cGP.js"),__vite__mapDeps([23,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/8.CAG5_cGP.js"),__vite__mapDeps([24,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/9.CAG5_cGP.js"),__vite__mapDeps([25,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/10.DZmZgLvj.js"),__vite__mapDeps([26,1,9,2,3,4,8,27,5,6,7,10,11,28,13,12]),import.meta.url),()=>o(()=>import("../nodes/11.CAG5_cGP.js"),__vite__mapDeps([29,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/12.CzMvqoYS.js"),__vite__mapDeps([30,1,2,3,4,8,28,10]),import.meta.url),()=>o(()=>import("../nodes/13.CAG5_cGP.js"),__vite__mapDeps([31,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/14.CAG5_cGP.js"),__vite__mapDeps([32,1,6,3]),import.meta.url),()=>o(()=>import("../nodes/15.CRwZaU1B.js"),__vite__mapDeps([33,1,6,3,9,2,4,28,7,8,5,10,11,14,15,27,34]),import.meta.url)],Vt=[],wt={"/":[2],"/analytics":[3],"/appearance":[4],"/ask":[5],"/cluster":[8],"/collections":[9],"/c/[collection]":[6],"/c/[collection]/p/[subpage]":[7],"/graph":[10],"/query":[11],"/redwire-ws-spike":[12],"/security":[13],"/settings":[14],"/shadow-dom-spike":[15]},z={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},Et=Object.fromEntries(Object.entries(z.transport).map(([e,t])=>[e,t.decode])),xt=Object.fromEntries(Object.entries(z.transport).map(([e,t])=>[e,t.encode])),kt=!1,jt=(e,t)=>Et[e](t);export{jt as decode,Et as decoders,wt as dictionary,xt as encoders,kt as hash,z as hooks,Dt as matchers,Tt as nodes,It as root,Vt as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,s as r}from"../chunks/CgIoFKBK.js";export{o as load_css,r as start};
@@ -0,0 +1,2 @@
1
+ import"../chunks/Bzak7iHL.js";import{aq as w,b3 as T,a6 as c,b2 as K,bg as d,bw as x,at as s,bG as j,bN as _,b9 as Q,b6 as U}from"../chunks/CGFL56WJ.js";import{h as V,e as y,c as X,a as p,u as M,i as P,k as q}from"../chunks/DN7v3Tar.js";import{D as B,e as C}from"../chunks/D6XJvoMn.js";import{i as G}from"../chunks/DCJ0QyYH.js";import{g as Z,b as v}from"../chunks/CgIoFKBK.js";import{p as z}from"../chunks/CXuFZWQe.js";import{R as $,t as D,p as ee,W as te}from"../chunks/DLDgyIn5.js";const ae=!1,re=!1,oe="never",xe=Object.freeze(Object.defineProperty({__proto__:null,prerender:ae,ssr:re,trailingSlash:oe},Symbol.toStringTag,{value:"Module"}));var ne=q('<pre class="m-0 max-h-52 w-full max-w-2xl overflow-auto rounded-lg border border-line-1 bg-bg-1 p-3 text-left font-mono text-[11px] leading-relaxed text-fg-3"> </pre>'),se=q(`<div role="alert" class="flex h-full w-full flex-col items-center justify-center gap-5 overflow-auto bg-bg-0 px-6 py-10 text-center"><div class="flex flex-col items-center gap-2"><!> <h1 class="type-h2 m-0 text-fg-0">Something crashed while rendering</h1> <p class="m-0 max-w-lg text-[13px] leading-relaxed text-fg-2">The workspace hit an unexpected error. Your connection is untouched —
2
+ retry the render, or reload the window to start clean.</p></div> <p class="m-0 max-w-lg break-words font-mono text-[12px] text-accent"> </p> <!> <div class="flex items-center gap-2"><button type="button" class="inline-flex h-9 items-center gap-1.5 rounded-lg bg-accent px-3 text-[12px] font-medium text-white hover:bg-accent/90"><!> Retry render</button> <button type="button" class="inline-flex h-9 items-center gap-1.5 rounded-lg border border-line-1 bg-bg-1 px-3 text-[12px] font-medium text-fg-1 hover:bg-bg-2"><!> Reload window</button></div></div>`);function ie(e,r){function o(){typeof window<"u"&&window.location.reload()}function i(a){return a instanceof Error?a.message||a.name:String(a)}function h(a){return a instanceof Error&&a.stack?a.stack:null}var g=y(),k=w(g);X(k,{failed:(m,t=T,n=T)=>{var f=se(),R=c(f),H=c(R);C(H,{class:"size-8 text-fg-3",strokeWidth:1.4}),K(4),d(R);var S=x(R,2),L=c(S,!0);d(S);var E=x(S,2);{var N=l=>{var u=ne(),I=c(u,!0);d(u),j(J=>M(I,J),[()=>h(t())]),p(l,u)},Y=_(()=>h(t()));G(E,l=>{s(Y)&&l(N)})}var O=x(E,2),b=c(O),A=c(b);C(A,{class:"size-3.5",strokeWidth:2}),K(),d(b);var W=x(b,2),F=c(W);$(F,{class:"size-3.5",strokeWidth:2}),K(),d(W),d(O),d(f),j(l=>M(L,l),[()=>i(t())]),P("click",b,function(...l){var u;(u=n())==null||u.apply(this,l)}),P("click",W,o),p(m,f)}},m=>{var t=y(),n=w(t);B(n,()=>r.children),p(m,t)}),p(e,g)}V(["click"]);function le(e){return e instanceof MouseEvent?e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey:!1}function ce(){const e=_(()=>ee(z.url.pathname.slice(v.length)||"/"));return{get view(){return s(e).view},get collection(){return s(e).collection},get subpage(){return s(e).subpage},get path(){return z.url.pathname},href:r=>v+D(r),go:(r,o,i)=>{le(o)||(o==null||o.preventDefault(),Z(v+D(r),{replaceState:i??!1}))}}}function ve(e,r){Q(r,!0);const o=ce(),i=_(()=>z.url.pathname.slice(v.length)||"/"),h=_(()=>s(i)==="/graph"||s(i)==="/shadow-dom-spike"||s(i)==="/redwire-ws-spike");var g=y(),k=w(g);{var a=t=>{var n=y(),f=w(n);B(f,()=>r.children),p(t,n)},m=t=>{ie(t,{children:(n,f)=>{te(n,{get router(){return o}})}})};G(k,t=>{s(h)?t(a):t(m,-1)})}p(e,g),U()}export{ve as component,xe as universal};
@@ -0,0 +1 @@
1
+ import"../chunks/Bzak7iHL.js";import{b9 as u,aq as b,bw as v,bG as c,b6 as g,a6 as s,bg as o}from"../chunks/CGFL56WJ.js";import{a as l,k as _,u as p}from"../chunks/DN7v3Tar.js";import{p as m}from"../chunks/CXuFZWQe.js";var x=_("<h1> </h1> <p> </p>",1);function E(i,f){u(f,!0);var a=x(),r=b(a),h=s(r,!0);o(r);var t=v(r,2),n=s(t,!0);o(t),c(()=>{var e;p(h,m.status),p(n,(e=m.error)==null?void 0:e.message)}),l(i,a),g()}export{E as component};
@@ -1,4 +1,4 @@
1
- import"../chunks/Bzak7iHL.js";import{a as Lt}from"../chunks/Btd6PFkC.js";import{aq as j,b9 as Nt,b6 as zt,bm as g,al as It,$ as jt,a6 as i,at as n,bg as s,bz as V,bw as m,b2 as Ve,bG as I,bN as re}from"../chunks/CGFL56WJ.js";import{d as ae,a as x,g as Et,j as S,t as y,h as Y,i as Gt,v as Le}from"../chunks/Bq4DTWK2.js";import{i as T}from"../chunks/DCJ0QyYH.js";import{k as At}from"../chunks/DRlh90Cv.js";import{I as he,x as _e,i as Ft,F as Ye,e as Mt,E as Rt,b as Tt,L as Pt,G as Ot,l as Pe,p as Oe}from"../chunks/85-Fh5Zp.js";import{h as Dt}from"../chunks/BgOTHNR5.js";import{e as Ke,j as Qe,r as Ut,d as qt,k as Bt}from"../chunks/CLBx21Hz.js";import{l as ye,s as $e,b as Jt}from"../chunks/BRIMmWzq.js";import{p as Ht}from"../chunks/8zg2gJwV.js";import"../chunks/69_IOA4Y.js";function Vt(e,t){const o=ye(t,["children","$$slots","$$events","$$legacy"]);/**
1
+ import"../chunks/Bzak7iHL.js";import{a as Lt}from"../chunks/Btd6PFkC.js";import{aq as j,b9 as Nt,b6 as zt,bm as g,al as It,$ as jt,a6 as i,at as n,bg as s,bz as V,bw as m,b2 as Ve,bG as I,bN as re}from"../chunks/CGFL56WJ.js";import{e as ae,a as x,h as Et,k as S,u as y,i as Y,j as Gt,w as Le}from"../chunks/DN7v3Tar.js";import{i as T}from"../chunks/DCJ0QyYH.js";import{k as At}from"../chunks/DRlh90Cv.js";import{I as he,C as _e,i as Ft,F as Ye,e as Mt,E as Rt,b as Tt,L as Pt,G as Ot,m as Pe,s as Oe}from"../chunks/D6XJvoMn.js";import{h as Dt}from"../chunks/BgOTHNR5.js";import{e as Ke,j as Qe,r as Ut,d as qt,k as Bt}from"../chunks/C3SGj6Qd.js";import{l as ye,s as $e,b as Jt}from"../chunks/BRIMmWzq.js";import{p as Ht}from"../chunks/CXuFZWQe.js";import"../chunks/69_IOA4Y.js";function Vt(e,t){const o=ye(t,["children","$$slots","$$events","$$legacy"]);/**
2
2
  * @license lucide-svelte v0.475.0 - ISC
3
3
  *
4
4
  * ISC License
@@ -1,3 +1,3 @@
1
- import"../chunks/Bzak7iHL.js";import{b9 as J,bw as o,a6 as r,bG as R,at as s,bm as W,b6 as V,bz as l,bN as X,al as Y,$ as Z,bg as a,be as ee}from"../chunks/CGFL56WJ.js";import{g as te,t as b,h as re,a as x,j as u}from"../chunks/Bq4DTWK2.js";import{i as k}from"../chunks/DCJ0QyYH.js";import{h as ae}from"../chunks/BgOTHNR5.js";import{d as E,r as Q}from"../chunks/CLBx21Hz.js";const oe="/redwire",se={Query:1,Result:2,Error:3,QueryBinary:7,Hello:16,HelloAck:17,AuthResponse:19,AuthOk:20,AuthFail:21,Bye:22};new Map(Object.entries(se).map(([i,t])=>[t,i]));function ne(i){const t=new URL(i);return t.protocol==="wss:"||(t.protocol==="https:"?t.protocol="wss:":t.protocol==="http:"&&(t.protocol="ws:"),(t.pathname==="/"||t.pathname==="")&&(t.pathname=oe)),t.toString()}var le=u('<section class="rounded border border-line-1 bg-bg-1 p-4 text-[12px] text-fg-3">Enable with <span class="text-fg-1">VITE_REDWIRE_WS_SPIKE=1</span> or run in dev mode.</section>'),ie=u('<section class="rounded border border-danger/50 bg-bg-1 p-4 text-[12px] text-danger"><pre class="m-0 whitespace-pre-wrap"> </pre></section>'),de=u('<section class="rounded border border-line-1 bg-bg-1 p-4"><div class="mb-2 text-[12px] font-semibold text-fg-2">Decoded result</div> <pre class="m-0 max-h-[520px] overflow-auto text-[11px] leading-5 text-fg-2"> </pre></section>'),pe=u(`<main class="min-h-screen bg-bg-0 text-fg-1"><div class="mx-auto flex max-w-5xl flex-col gap-5 px-5 py-6 font-mono"><header class="flex flex-col gap-2 border-b border-line-1 pb-4"><div class="text-[11px] uppercase tracking-wide text-fg-3">Dev spike</div> <h1 class="text-xl font-semibold">RedWire over WebSocket</h1> <p class="max-w-3xl text-[12px] leading-5 text-fg-3">Opens a WSS RedWire endpoint, negotiates the versioned subprotocol, completes bearer auth,
1
+ import"../chunks/Bzak7iHL.js";import{b9 as J,bw as o,a6 as r,bG as R,at as s,bm as k,b6 as V,bz as l,bN as X,al as Y,$ as Z,bg as a,be as ee}from"../chunks/CGFL56WJ.js";import{h as te,u as b,i as re,a as x,k as u}from"../chunks/DN7v3Tar.js";import{i as W}from"../chunks/DCJ0QyYH.js";import{h as ae}from"../chunks/BgOTHNR5.js";import{d as E,r as Q}from"../chunks/C3SGj6Qd.js";const oe="/redwire",se={Query:1,Result:2,Error:3,QueryBinary:7,Hello:16,HelloAck:17,AuthResponse:19,AuthOk:20,AuthFail:21,Bye:22};new Map(Object.entries(se).map(([i,t])=>[t,i]));function ne(i){const t=new URL(i);return t.protocol==="wss:"||(t.protocol==="https:"?t.protocol="wss:":t.protocol==="http:"&&(t.protocol="ws:"),(t.pathname==="/"||t.pathname==="")&&(t.pathname=oe)),t.toString()}var le=u('<section class="rounded border border-line-1 bg-bg-1 p-4 text-[12px] text-fg-3">Enable with <span class="text-fg-1">VITE_REDWIRE_WS_SPIKE=1</span> or run in dev mode.</section>'),ie=u('<section class="rounded border border-danger/50 bg-bg-1 p-4 text-[12px] text-danger"><pre class="m-0 whitespace-pre-wrap"> </pre></section>'),de=u('<section class="rounded border border-line-1 bg-bg-1 p-4"><div class="mb-2 text-[12px] font-semibold text-fg-2">Decoded result</div> <pre class="m-0 max-h-[520px] overflow-auto text-[11px] leading-5 text-fg-2"> </pre></section>'),pe=u(`<main class="min-h-screen bg-bg-0 text-fg-1"><div class="mx-auto flex max-w-5xl flex-col gap-5 px-5 py-6 font-mono"><header class="flex flex-col gap-2 border-b border-line-1 pb-4"><div class="text-[11px] uppercase tracking-wide text-fg-3">Dev spike</div> <h1 class="text-xl font-semibold">RedWire over WebSocket</h1> <p class="max-w-3xl text-[12px] leading-5 text-fg-3">Opens a WSS RedWire endpoint, negotiates the versioned subprotocol, completes bearer auth,
2
2
  sends one binary framed query, and decodes the result. This route is isolated from the
3
- production transport path.</p></header> <!> <section class="grid gap-4 md:grid-cols-[1fr_1fr]"><label class="flex flex-col gap-1 text-[12px] text-fg-2">Endpoint origin or WSS URL <input class="h-9 rounded border border-line-2 bg-bg-1 px-2 text-fg-1 outline-none focus:border-accent"/></label> <label class="flex flex-col gap-1 text-[12px] text-fg-2">Bearer token <input class="h-9 rounded border border-line-2 bg-bg-1 px-2 text-fg-1 outline-none focus:border-accent" type="password"/></label></section> <label class="flex flex-col gap-1 text-[12px] text-fg-2">Query <textarea class="min-h-28 rounded border border-line-2 bg-bg-1 p-2 text-fg-1 outline-none focus:border-accent"></textarea></label> <div class="flex flex-wrap items-center gap-3"><button type="button" class="h-9 rounded border border-accent bg-accent px-3 text-[12px] font-semibold text-bg-0 disabled:cursor-not-allowed disabled:opacity-50"> </button> <div class="text-[11px] text-fg-3">Resolved endpoint: <span class="text-fg-2"> </span></div></div> <!> <!></div></main>`);function ve(i,t){J(t,!0);let c=l("https://localhost:5055"),A=l(""),D=l("SELECT 1"),U=l(!1),H=l(null),I=l(null);const j=X(()=>s(c).trim()?ne(s(c).trim()):"");async function F(){}var f=pe();ae("1ot6nxx",e=>{Y(()=>{Z.title="RedWire WS spike"})});var O=r(f),T=o(r(O),2);{var K=e=>{var n=le();x(e,n)};k(T,e=>{e(K)})}var g=o(T,2),v=r(g),m=o(r(v));Q(m),a(v);var $=o(v,2),h=o(r($));Q(h),a($),a(g);var _=o(g,2),w=o(r(_));ee(w),a(_);var S=o(_,2),d=r(S),M=r(d,!0);a(d);var q=o(d,2),B=o(r(q)),N=r(B,!0);a(B),a(q),a(S);var L=o(S,2);{var P=e=>{var n=ie(),p=r(n),y=r(p,!0);a(p),a(n),R(()=>b(y,s(I))),x(e,n)};k(L,e=>{s(I)&&e(P)})}var z=o(L,2);{var C=e=>{var n=de(),p=o(r(n),2),y=r(p,!0);a(p),a(n),R(G=>b(y,G),[()=>JSON.stringify(s(H),null,2)]),x(e,n)};k(z,e=>{s(H)&&e(C)})}a(O),a(f),R(e=>{m.disabled=!0,h.disabled=!0,w.disabled=!0,d.disabled=e,b(M,s(U)?"Running":"Run WSS query"),b(N,s(j)||"n/a")},[()=>!0]),E(m,()=>s(c),e=>W(c,e)),E(h,()=>s(A),e=>W(A,e)),E(w,()=>s(D),e=>W(D,e)),re("click",d,F),x(i,f),V()}te(["click"]);export{ve as component};
3
+ production transport path.</p></header> <!> <section class="grid gap-4 md:grid-cols-[1fr_1fr]"><label class="flex flex-col gap-1 text-[12px] text-fg-2">Endpoint origin or WSS URL <input class="h-9 rounded border border-line-2 bg-bg-1 px-2 text-fg-1 outline-none focus:border-accent"/></label> <label class="flex flex-col gap-1 text-[12px] text-fg-2">Bearer token <input class="h-9 rounded border border-line-2 bg-bg-1 px-2 text-fg-1 outline-none focus:border-accent" type="password"/></label></section> <label class="flex flex-col gap-1 text-[12px] text-fg-2">Query <textarea class="min-h-28 rounded border border-line-2 bg-bg-1 p-2 text-fg-1 outline-none focus:border-accent"></textarea></label> <div class="flex flex-wrap items-center gap-3"><button type="button" class="h-9 rounded border border-accent bg-accent px-3 text-[12px] font-semibold text-bg-0 disabled:cursor-not-allowed disabled:opacity-50"> </button> <div class="text-[11px] text-fg-3">Resolved endpoint: <span class="text-fg-2"> </span></div></div> <!> <!></div></main>`);function ve(i,t){J(t,!0);let c=l("https://localhost:5055"),A=l(""),D=l("SELECT 1"),U=l(!1),H=l(null),I=l(null);const F=X(()=>s(c).trim()?ne(s(c).trim()):"");async function K(){}var f=pe();ae("1ot6nxx",e=>{Y(()=>{Z.title="RedWire WS spike"})});var O=r(f),T=o(r(O),2);{var M=e=>{var n=le();x(e,n)};W(T,e=>{e(M)})}var g=o(T,2),v=r(g),m=o(r(v));Q(m),a(v);var $=o(v,2),h=o(r($));Q(h),a($),a(g);var _=o(g,2),w=o(r(_));ee(w),a(_);var S=o(_,2),d=r(S),N=r(d,!0);a(d);var q=o(d,2),B=o(r(q)),P=r(B,!0);a(B),a(q),a(S);var L=o(S,2);{var j=e=>{var n=ie(),p=r(n),y=r(p,!0);a(p),a(n),R(()=>b(y,s(I))),x(e,n)};W(L,e=>{s(I)&&e(j)})}var z=o(L,2);{var C=e=>{var n=de(),p=o(r(n),2),y=r(p,!0);a(p),a(n),R(G=>b(y,G),[()=>JSON.stringify(s(H),null,2)]),x(e,n)};W(z,e=>{s(H)&&e(C)})}a(O),a(f),R(e=>{m.disabled=!0,h.disabled=!0,w.disabled=!0,d.disabled=e,b(N,s(U)?"Running":"Run WSS query"),b(P,s(F)||"n/a")},[()=>!0]),E(m,()=>s(c),e=>k(c,e)),E(h,()=>s(A),e=>k(A,e)),E(w,()=>s(D),e=>k(D,e)),re("click",d,K),x(i,f),V()}te(["click"]);export{ve as component};