@neuralnomads/codenomad 0.2.1-dev → 0.2.3-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/events/bus.js +7 -1
- package/dist/index.js +7 -0
- package/dist/server/http-server.js +6 -0
- package/dist/workspaces/instance-events.js +150 -0
- package/dist/workspaces/manager.js +67 -3
- package/dist/workspaces/runtime.js +1 -1
- package/package.json +1 -1
- package/public/assets/{index-CT0FFSoK.css → index-CMK1bVZN.css} +1 -19
- package/public/assets/index-Cpjhgy_m.js +1 -0
- package/public/assets/loading-DHeOnB4V.css +1 -0
- package/public/assets/loading-RQiQAlea.js +1 -0
- package/public/assets/main-BToBcvrm.js +147 -0
- package/public/assets/main-HAZkIolJ.css +19 -0
- package/public/index.html +9 -19
- package/public/loading.html +24 -0
- package/public/assets/index-CnGM1I1e.js +0 -147
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const l of r.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(i){if(i.ep)return;i.ep=!0;const r=n(i);fetch(i.href,r)}})();const y={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return ne(this.context.count)},getNextContextId(){return ne(this.context.count++)}};function ne(e){const t=String(e),n=t.length-1;return y.context.id+(n?String.fromCharCode(96+n):"")+t}function Se(e){y.context=e}const Ee=!1,Ce=(e,t)=>e===t,V=Symbol("solid-proxy"),ce=typeof Proxy=="function",Pe=Symbol("solid-track"),_={equals:Ce};let ue=we;const P=1,G=2,ae={owned:null,cleanups:null,context:null,owner:null};var d=null;let q=null,Oe=null,g=null,w=null,C=null,K=0;function D(e,t){const n=g,s=d,i=e.length===0,r=t===void 0?s:t,l=i?ae:{owned:null,cleanups:null,context:r?r.context:null,owner:r},o=i?e:()=>e(()=>p(()=>j(l)));d=l,g=null;try{return T(o,!0)}finally{g=n,d=s}}function de(e,t){t=t?Object.assign({},_,t):_;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},s=i=>(typeof i=="function"&&(i=i(n.value)),me(n,i));return[ye.bind(n),s]}function gt(e,t,n){const s=X(e,t,!0,P);M(s)}function N(e,t,n){const s=X(e,t,!1,P);M(s)}function he(e,t,n){ue=Ie;const s=X(e,t,!1,P);(!n||!n.render)&&(s.user=!0),C?C.push(s):M(s)}function b(e,t,n){n=n?Object.assign({},_,n):_;const s=X(e,t,!0,0);return s.observers=null,s.observerSlots=null,s.comparator=n.equals||void 0,M(s),ye.bind(s)}function yt(e){return T(e,!1)}function p(e){if(g===null)return e();const t=g;g=null;try{return e()}finally{g=t}}function mt(e,t,n){const s=Array.isArray(e);let i,r=n&&n.defer;return l=>{let o;if(s){o=Array(e.length);for(let u=0;u<e.length;u++)o[u]=e[u]()}else o=e();if(r)return r=!1,l;const f=p(()=>t(o,i,l));return i=o,f}}function wt(e){he(()=>p(e))}function Y(e){return d===null||(d.cleanups===null?d.cleanups=[e]:d.cleanups.push(e)),e}function bt(){return g}function se(){return d}function Ne(e,t){const n=d,s=g;d=e,g=null;try{return T(t,!0)}catch(i){te(i)}finally{d=n,g=s}}function pt(e,t){const n=Symbol("context");return{id:n,Provider:ke(n),defaultValue:e}}function At(e){let t;return d&&d.context&&(t=d.context[e.id])!==void 0?t:e.defaultValue}function ge(e){const t=b(e),n=b(()=>z(t()));return n.toArray=()=>{const s=n();return Array.isArray(s)?s:s!=null?[s]:[]},n}function ye(){if(this.sources&&this.state)if(this.state===P)M(this);else{const e=w;w=null,T(()=>H(this),!1),w=e}if(g){const e=this.observers?this.observers.length:0;g.sources?(g.sources.push(this),g.sourceSlots.push(e)):(g.sources=[this],g.sourceSlots=[e]),this.observers?(this.observers.push(g),this.observerSlots.push(g.sources.length-1)):(this.observers=[g],this.observerSlots=[g.sources.length-1])}return this.value}function me(e,t,n){let s=e.value;return(!e.comparator||!e.comparator(s,t))&&(e.value=t,e.observers&&e.observers.length&&T(()=>{for(let i=0;i<e.observers.length;i+=1){const r=e.observers[i],l=q&&q.running;l&&q.disposed.has(r),(l?!r.tState:!r.state)&&(r.pure?w.push(r):C.push(r),r.observers&&be(r)),l||(r.state=P)}if(w.length>1e6)throw w=[],new Error},!1)),t}function M(e){if(!e.fn)return;j(e);const t=K;Te(e,e.value,t)}function Te(e,t,n){let s;const i=d,r=g;g=d=e;try{s=e.fn(t)}catch(l){return e.pure&&(e.state=P,e.owned&&e.owned.forEach(j),e.owned=null),e.updatedAt=n+1,te(l)}finally{g=r,d=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?me(e,s):e.value=s,e.updatedAt=n)}function X(e,t,n,s=P,i){const r={fn:e,state:s,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:d,context:d?d.context:null,pure:n};return d===null||d!==ae&&(d.owned?d.owned.push(r):d.owned=[r]),r}function B(e){if(e.state===0)return;if(e.state===G)return H(e);if(e.suspense&&p(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<K);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===P)M(e);else if(e.state===G){const s=w;w=null,T(()=>H(e,t[0]),!1),w=s}}function T(e,t){if(w)return e();let n=!1;t||(w=[]),C?n=!0:C=[],K++;try{const s=e();return $e(n),s}catch(s){n||(C=null),w=null,te(s)}}function $e(e){if(w&&(we(w),w=null),e)return;const t=C;C=null,t.length&&T(()=>ue(t),!1)}function we(e){for(let t=0;t<e.length;t++)B(e[t])}function Ie(e){let t,n=0;for(t=0;t<e.length;t++){const s=e[t];s.user?e[n++]=s:B(s)}if(y.context){if(y.count){y.effects||(y.effects=[]),y.effects.push(...e.slice(0,n));return}Se()}for(y.effects&&!y.count&&(e=[...y.effects,...e],n+=y.effects.length,delete y.effects),t=0;t<n;t++)B(e[t])}function H(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const s=e.sources[n];if(s.sources){const i=s.state;i===P?s!==t&&(!s.updatedAt||s.updatedAt<K)&&B(s):i===G&&H(s,t)}}}function be(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=G,n.pure?w.push(n):C.push(n),n.observers&&be(n))}}function j(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),s=e.sourceSlots.pop(),i=n.observers;if(i&&i.length){const r=i.pop(),l=n.observerSlots.pop();s<i.length&&(r.sourceSlots[l]=s,i[s]=r,n.observerSlots[s]=l)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)j(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)j(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function Le(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function te(e,t=d){throw Le(e)}function z(e){if(typeof e=="function"&&!e.length)return z(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const s=z(e[n]);Array.isArray(s)?t.push.apply(t,s):t.push(s)}return t}return e}function ke(e,t){return function(s){let i;return N(()=>i=p(()=>(d.context={...d.context,[e]:s.value},ge(()=>s.children))),void 0),i}}const Me=Symbol("fallback");function ie(e){for(let t=0;t<e.length;t++)e[t]()}function De(e,t,n={}){let s=[],i=[],r=[],l=0,o=t.length>1?[]:null;return Y(()=>ie(r)),()=>{let f=e()||[],u=f.length,a,c;return f[Pe],p(()=>{let m,S,O,v,F,A,x,E,I;if(u===0)l!==0&&(ie(r),r=[],s=[],i=[],l=0,o&&(o=[])),n.fallback&&(s=[Me],i[0]=D(xe=>(r[0]=xe,n.fallback())),l=1);else if(l===0){for(i=new Array(u),c=0;c<u;c++)s[c]=f[c],i[c]=D(h);l=u}else{for(O=new Array(u),v=new Array(u),o&&(F=new Array(u)),A=0,x=Math.min(l,u);A<x&&s[A]===f[A];A++);for(x=l-1,E=u-1;x>=A&&E>=A&&s[x]===f[E];x--,E--)O[E]=i[x],v[E]=r[x],o&&(F[E]=o[x]);for(m=new Map,S=new Array(E+1),c=E;c>=A;c--)I=f[c],a=m.get(I),S[c]=a===void 0?-1:a,m.set(I,c);for(a=A;a<=x;a++)I=s[a],c=m.get(I),c!==void 0&&c!==-1?(O[c]=i[a],v[c]=r[a],o&&(F[c]=o[a]),c=S[c],m.set(I,c)):r[a]();for(c=A;c<u;c++)c in O?(i[c]=O[c],r[c]=v[c],o&&(o[c]=F[c],o[c](c))):i[c]=D(h);i=i.slice(0,l=u),s=f.slice(0)}return i});function h(m){if(r[c]=m,o){const[S,O]=de(c);return o[c]=O,t(f[c],S)}return t(f[c])}}}function xt(e,t){return p(()=>e(t||{}))}function U(){return!0}const J={get(e,t,n){return t===V?n:e.get(t)},has(e,t){return t===V?!0:e.has(t)},set:U,deleteProperty:U,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:U,deleteProperty:U}},ownKeys(e){return e.keys()}};function W(e){return(e=typeof e=="function"?e():e)?e:{}}function je(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function St(...e){let t=!1;for(let l=0;l<e.length;l++){const o=e[l];t=t||!!o&&V in o,e[l]=typeof o=="function"?(t=!0,b(o)):o}if(ce&&t)return new Proxy({get(l){for(let o=e.length-1;o>=0;o--){const f=W(e[o])[l];if(f!==void 0)return f}},has(l){for(let o=e.length-1;o>=0;o--)if(l in W(e[o]))return!0;return!1},keys(){const l=[];for(let o=0;o<e.length;o++)l.push(...Object.keys(W(e[o])));return[...new Set(l)]}},J);const n={},s=Object.create(null);for(let l=e.length-1;l>=0;l--){const o=e[l];if(!o)continue;const f=Object.getOwnPropertyNames(o);for(let u=f.length-1;u>=0;u--){const a=f[u];if(a==="__proto__"||a==="constructor")continue;const c=Object.getOwnPropertyDescriptor(o,a);if(!s[a])s[a]=c.get?{enumerable:!0,configurable:!0,get:je.bind(n[a]=[c.get.bind(o)])}:c.value!==void 0?c:void 0;else{const h=n[a];h&&(c.get?h.push(c.get.bind(o)):c.value!==void 0&&h.push(()=>c.value))}}}const i={},r=Object.keys(s);for(let l=r.length-1;l>=0;l--){const o=r[l],f=s[o];f&&f.get?Object.defineProperty(i,o,f):i[o]=f?f.value:void 0}return i}function Re(e,...t){const n=t.length;if(ce&&V in e){const i=n>1?t.flat():t[0],r=t.map(l=>new Proxy({get(o){return l.includes(o)?e[o]:void 0},has(o){return l.includes(o)&&o in e},keys(){return l.filter(o=>o in e)}},J));return r.push(new Proxy({get(l){return i.includes(l)?void 0:e[l]},has(l){return i.includes(l)?!1:l in e},keys(){return Object.keys(e).filter(l=>!i.includes(l))}},J)),r}const s=[];for(let i=0;i<=n;i++)s[i]={};for(const i of Object.getOwnPropertyNames(e)){let r=n;for(let f=0;f<t.length;f++)if(t[f].includes(i)){r=f;break}const l=Object.getOwnPropertyDescriptor(e,i);!l.get&&!l.set&&l.enumerable&&l.writable&&l.configurable?s[r][i]=l.value:Object.defineProperty(s[r],i,l)}return s}let ve=0;function Et(){return y.context?y.getNextContextId():`cl-${ve++}`}const pe=e=>`Stale read from <${e}>.`;function Ct(e){const t="fallback"in e&&{fallback:()=>e.fallback};return b(De(()=>e.each,e.children,t||void 0))}function Pt(e){const t=e.keyed,n=b(()=>e.when,void 0,void 0),s=t?n:b(n,void 0,{equals:(i,r)=>!i==!r});return b(()=>{const i=s();if(i){const r=e.children;return typeof r=="function"&&r.length>0?p(()=>r(t?i:()=>{if(!p(s))throw pe("Show");return n()})):r}return e.fallback},void 0,void 0)}function Ot(e){const t=ge(()=>e.children),n=b(()=>{const s=t(),i=Array.isArray(s)?s:[s];let r=()=>{};for(let l=0;l<i.length;l++){const o=l,f=i[l],u=r,a=b(()=>u()?void 0:f.when,void 0,void 0),c=f.keyed?a:b(a,void 0,{equals:(h,m)=>!h==!m});r=()=>u()||(c()?[o,a,f]:void 0)}return r});return b(()=>{const s=n()();if(!s)return e.fallback;const[i,r,l]=s,o=l.children;return typeof o=="function"&&o.length>0?p(()=>o(l.keyed?r():()=>{var u;if(((u=p(n)())==null?void 0:u[0])!==i)throw pe("Match");return r()})):o},void 0,void 0)}function Nt(e){return e}const Fe=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],Ue=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...Fe]),Ve=new Set(["innerHTML","textContent","innerText","children"]),_e=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Ge=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function Be(e,t){const n=Ge[e];return typeof n=="object"?n[t]?n.$:void 0:n}const He=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Ke=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Xe={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Tt=e=>b(()=>e());function qe(e,t,n){let s=n.length,i=t.length,r=s,l=0,o=0,f=t[i-1].nextSibling,u=null;for(;l<i||o<r;){if(t[l]===n[o]){l++,o++;continue}for(;t[i-1]===n[r-1];)i--,r--;if(i===l){const a=r<s?o?n[o-1].nextSibling:n[r-o]:f;for(;o<r;)e.insertBefore(n[o++],a)}else if(r===o)for(;l<i;)(!u||!u.has(t[l]))&&t[l].remove(),l++;else if(t[l]===n[r-1]&&n[o]===t[i-1]){const a=t[--i].nextSibling;e.insertBefore(n[o++],t[l++].nextSibling),e.insertBefore(n[--r],a),t[i]=n[r]}else{if(!u){u=new Map;let c=o;for(;c<r;)u.set(n[c],c++)}const a=u.get(t[l]);if(a!=null)if(o<a&&a<r){let c=l,h=1,m;for(;++c<i&&c<r&&!((m=u.get(t[c]))==null||m!==a+h);)h++;if(h>a-o){const S=t[l];for(;o<a;)e.insertBefore(n[o++],S)}else e.replaceChild(n[o++],t[l++])}else l++;else t[l++].remove()}}}const re="_$DX_DELEGATE";function $t(e,t,n,s={}){let i;return D(r=>{i=r,t===document?e():Z(t,e(),t.firstChild?null:void 0,n)},s.owner),()=>{i(),t.textContent=""}}function It(e,t,n,s){let i;const r=()=>{const o=s?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return o.innerHTML=e,n?o.content.firstChild.firstChild:s?o.firstChild:o.content.firstChild},l=t?()=>p(()=>document.importNode(i||(i=r()),!0)):()=>(i||(i=r())).cloneNode(!0);return l.cloneNode=l,l}function We(e,t=window.document){const n=t[re]||(t[re]=new Set);for(let s=0,i=e.length;s<i;s++){const r=e[s];n.has(r)||(n.add(r),t.addEventListener(r,ot))}}function Q(e,t,n){$(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Ye(e,t,n,s){$(e)||(s==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,s))}function ze(e,t,n){$(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}function Je(e,t){$(e)||(t==null?e.removeAttribute("class"):e.className=t)}function Qe(e,t,n,s){if(s)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const i=n[0];e.addEventListener(t,n[0]=r=>i.call(e,n[1],r))}else e.addEventListener(t,n,typeof n!="function"&&n)}function Ze(e,t,n={}){const s=Object.keys(t||{}),i=Object.keys(n);let r,l;for(r=0,l=i.length;r<l;r++){const o=i[r];!o||o==="undefined"||t[o]||(oe(e,o,!1),delete n[o])}for(r=0,l=s.length;r<l;r++){const o=s[r],f=!!t[o];!o||o==="undefined"||n[o]===f||!f||(oe(e,o,!0),n[o]=f)}return n}function et(e,t,n){if(!t)return n?Q(e,"style"):t;const s=e.style;if(typeof t=="string")return s.cssText=t;typeof n=="string"&&(s.cssText=n=void 0),n||(n={}),t||(t={});let i,r;for(r in n)t[r]==null&&s.removeProperty(r),delete n[r];for(r in t)i=t[r],i!==n[r]&&(s.setProperty(r,i),n[r]=i);return n}function Lt(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t)}function tt(e,t={},n,s){const i={};return s||N(()=>i.children=R(e,t.children,i.children)),N(()=>typeof t.ref=="function"&&nt(t.ref,e)),N(()=>st(e,t,n,!0,i,!0)),i}function nt(e,t,n){return p(()=>e(t,n))}function Z(e,t,n,s){if(n!==void 0&&!s&&(s=[]),typeof t!="function")return R(e,t,s,n);N(i=>R(e,t(),i,n),s)}function st(e,t,n,s,i={},r=!1){t||(t={});for(const l in i)if(!(l in t)){if(l==="children")continue;i[l]=le(e,l,null,i[l],n,r,t)}for(const l in t){if(l==="children")continue;const o=t[l];i[l]=le(e,l,o,i[l],n,r,t)}}function it(e){let t,n;return!$()||!(t=y.registry.get(n=lt()))?e():(y.completed&&y.completed.add(t),y.registry.delete(n),t)}function $(e){return!!y.context&&!0&&(!e||e.isConnected)}function rt(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function oe(e,t,n){const s=t.trim().split(/\s+/);for(let i=0,r=s.length;i<r;i++)e.classList.toggle(s[i],n)}function le(e,t,n,s,i,r,l){let o,f,u,a,c;if(t==="style")return et(e,n,s);if(t==="classList")return Ze(e,n,s);if(n===s)return s;if(t==="ref")r||n(e);else if(t.slice(0,3)==="on:"){const h=t.slice(3);s&&e.removeEventListener(h,s,typeof s!="function"&&s),n&&e.addEventListener(h,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const h=t.slice(10);s&&e.removeEventListener(h,s,!0),n&&e.addEventListener(h,n,!0)}else if(t.slice(0,2)==="on"){const h=t.slice(2).toLowerCase(),m=He.has(h);if(!m&&s){const S=Array.isArray(s)?s[0]:s;e.removeEventListener(h,S)}(m||n)&&(Qe(e,h,n,m),m&&We([h]))}else if(t.slice(0,5)==="attr:")Q(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")ze(e,t.slice(5),n);else if((c=t.slice(0,5)==="prop:")||(u=Ve.has(t))||!i&&((a=Be(t,e.tagName))||(f=Ue.has(t)))||(o=e.nodeName.includes("-")||"is"in l)){if(c)t=t.slice(5),f=!0;else if($(e))return n;t==="class"||t==="className"?Je(e,n):o&&!f&&!u?e[rt(t)]=n:e[a||t]=n}else{const h=i&&t.indexOf(":")>-1&&Xe[t.split(":")[0]];h?Ye(e,h,t,n):Q(e,_e[t]||t,n)}return n}function ot(e){let t=e.target;const n=`$$${e.type}`,s=e.target,i=e.currentTarget,r=f=>Object.defineProperty(e,"target",{configurable:!0,value:f}),l=()=>{const f=t[n];if(f&&!t.disabled){const u=t[`${n}Data`];if(u!==void 0?f.call(t,u,e):f.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&r(t.host),!0},o=()=>{for(;l()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),e.composedPath){const f=e.composedPath();r(f[0]);for(let u=0;u<f.length-2&&(t=f[u],!!l());u++){if(t._$host){t=t._$host,o();break}if(t.parentNode===i)break}}else o();r(s)}function R(e,t,n,s,i){const r=$(e);if(r){!n&&(n=[...e.childNodes]);let f=[];for(let u=0;u<n.length;u++){const a=n[u];a.nodeType===8&&a.data.slice(0,2)==="!$"?a.remove():f.push(a)}n=f}for(;typeof n=="function";)n=n();if(t===n)return n;const l=typeof t,o=s!==void 0;if(e=o&&n[0]&&n[0].parentNode||e,l==="string"||l==="number"){if(r||l==="number"&&(t=t.toString(),t===n))return n;if(o){let f=n[0];f&&f.nodeType===3?f.data!==t&&(f.data=t):f=document.createTextNode(t),n=L(e,n,s,f)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||l==="boolean"){if(r)return n;n=L(e,n,s)}else{if(l==="function")return N(()=>{let f=t();for(;typeof f=="function";)f=f();n=R(e,f,n,s)}),()=>n;if(Array.isArray(t)){const f=[],u=n&&Array.isArray(n);if(ee(f,t,n,i))return N(()=>n=R(e,f,n,s,!0)),()=>n;if(r){if(!f.length)return n;if(s===void 0)return n=[...e.childNodes];let a=f[0];if(a.parentNode!==e)return n;const c=[a];for(;(a=a.nextSibling)!==s;)c.push(a);return n=c}if(f.length===0){if(n=L(e,n,s),o)return n}else u?n.length===0?fe(e,f,s):qe(e,n,f):(n&&L(e),fe(e,f));n=f}else if(t.nodeType){if(r&&t.parentNode)return n=o?[t]:t;if(Array.isArray(n)){if(o)return n=L(e,n,s,t);L(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function ee(e,t,n,s){let i=!1;for(let r=0,l=t.length;r<l;r++){let o=t[r],f=n&&n[e.length],u;if(!(o==null||o===!0||o===!1))if((u=typeof o)=="object"&&o.nodeType)e.push(o);else if(Array.isArray(o))i=ee(e,o,f)||i;else if(u==="function")if(s){for(;typeof o=="function";)o=o();i=ee(e,Array.isArray(o)?o:[o],Array.isArray(f)?f:[f])||i}else e.push(o),i=!0;else{const a=String(o);f&&f.nodeType===3&&f.data===a?e.push(f):e.push(document.createTextNode(a))}}return i}function fe(e,t,n=null){for(let s=0,i=t.length;s<i;s++)e.insertBefore(t[s],n)}function L(e,t,n,s){if(n===void 0)return e.textContent="";const i=s||document.createTextNode("");if(t.length){let r=!1;for(let l=t.length-1;l>=0;l--){const o=t[l];if(i!==o){const f=o.parentNode===e;!r&&!l?f?e.replaceChild(i,o):e.insertBefore(i,n):f&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}function lt(){return y.getNextContextId()}const ft="http://www.w3.org/2000/svg";function Ae(e,t=!1,n=void 0){return t?document.createElementNS(ft,e):document.createElement(e,{is:n})}function kt(e){const{useShadow:t}=e,n=document.createTextNode(""),s=()=>e.mount||document.body,i=se();let r,l=!!y.context;return he(()=>{l&&(se().user=l=!1),r||(r=Ne(i,()=>b(()=>e.children)));const o=s();if(o instanceof HTMLHeadElement){const[f,u]=de(!1),a=()=>u(!0);D(c=>Z(o,()=>f()?c():r(),null)),Y(a)}else{const f=Ae(e.isSVG?"g":"div",e.isSVG),u=t&&f.attachShadow?f.attachShadow({mode:"open"}):f;Object.defineProperty(f,"_$host",{get(){return n.parentNode},configurable:!0}),Z(u,r),o.appendChild(f),e.ref&&e.ref(f),Y(()=>o.removeChild(f))}},void 0,{render:!l}),n}function ct(e,t){const n=b(e);return b(()=>{const s=n();switch(typeof s){case"function":return p(()=>s(t));case"string":const i=Ke.has(s),r=y.context?it():Ae(s,i,p(()=>t.is));return tt(r,t,i),r}})}function Mt(e){const[,t]=Re(e,["component"]);return ct(()=>e.component,t)}function ut(){if(typeof window>"u")return"web";const e=window;return typeof e.electronAPI<"u"?"electron":typeof e.__TAURI__<"u"||typeof navigator<"u"&&/tauri/i.test(navigator.userAgent)?"tauri":"web"}function at(){if(typeof navigator>"u")return"desktop";const e=navigator.userAgentData;if(e!=null&&e.mobile)return"mobile";const t=navigator.userAgent.toLowerCase();return/android|iphone|ipad|ipod|blackberry|mini|windows phone|mobile|silk/.test(t)?"mobile":"desktop"}let k=null;function dt(){if(k)return k;if(k={host:ut(),platform:at()},typeof console<"u"){const e=`[runtime] host=${k.host} platform=${k.platform}`;console.info(e)}return k}const ht=dt(),Dt=()=>ht.host==="tauri";export{Pe as $,Q as A,We as B,Lt as C,Mt as D,Qe as E,Ct as F,ht as G,gt as H,ge as I,y as J,$t as K,Dt as L,Nt as M,kt as P,Pt as S,N as a,b,he as c,D as d,de as e,xt as f,wt as g,mt as h,pt as i,At as j,Tt as k,Et as l,St as m,V as n,Y as o,yt as p,bt as q,Z as r,Re as s,It as t,p as u,et as v,Je as w,Ot as x,tt as y,nt as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{color-scheme:dark}body{margin:0;min-height:100vh;background-color:var(--surface-base, #0f141f);color:var(--text-primary, #cfd4dc);font-family:var(--font-family-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);display:flex;align-items:center;justify-content:center;padding:32px}button{border:none;background:none;font:inherit;color:inherit}.loading-wrapper{display:flex;flex-direction:column;align-items:center;gap:24px;max-width:520px;width:100%;text-align:center}.loading-logo{width:180px;height:auto;filter:drop-shadow(0 20px 60px rgba(0,0,0,.45))}.loading-heading{display:flex;flex-direction:column;gap:4px}.loading-title{font-size:2.8rem;font-weight:600;margin:0;color:var(--text-primary, #f4f6fb)}.loading-status{margin:0;font-size:1rem;color:var(--text-muted, #aeb3c4)}.loading-card{margin-top:12px;width:100%;max-width:420px;padding:22px;border-radius:18px;background:#0d1018d9;border:1px solid rgba(255,255,255,.08);box-shadow:0 25px 60px #0000008c}.loading-row{display:flex;align-items:center;justify-content:center;gap:14px;font-size:.95rem}.spinner{width:20px;height:20px;border-radius:50%;border:2px solid rgba(255,255,255,.18);border-top-color:#6ce3ff;animation:spin .9s linear infinite}.phrase-controls{margin-top:12px;font-size:.9rem;color:var(--text-muted, #8f96a9)}.phrase-controls button{color:#8fb5ff;cursor:pointer}.loading-error{margin-top:12px;color:#ff9ea9;font-size:.95rem}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{K as k,f as I,B as S,e as _,g as T,L as P,o as x,t as w,A as U,r as g,S as L,k as N,G as $}from"./index-Cpjhgy_m.js";const M="/assets/CodeNomad-Icon-bmTWNPXy.png";var H=w("<div class=loading-wrapper role=status aria-live=polite><img alt=CodeNomad class=loading-logo width=180 height=180><div class=loading-heading><h1 class=loading-title>CodeNomad</h1></div><div class=loading-card><div class=loading-row><div class=spinner aria-hidden=true></div><span></span></div><div class=phrase-controls><button type=button>Show another"),W=w("<p class=loading-status>"),z=w("<div class=loading-error>");const A=["Warming up the AI neurons…","Convincing the AI to stop daydreaming…","Polishing the AI’s code goggles…","Asking the AI to stop reorganizing your files…","Feeding the AI additional coffee…","Teaching the AI not to delete node_modules (again)…","Telling the AI to act natural before you arrive…","Asking the AI to please stop rewriting history…","Letting the AI stretch before its coding sprint…","Persuading the AI to give you keyboard control…"];function v(n){const l=A.filter(p=>p!==n),c=l.length>0?l:A,a=Math.floor(Math.random()*c.length);return c[a]}function b(n){n&&window.location.replace(n)}function D(){if(typeof window>"u")return null;const n=window.__TAURI__;return!n||!n.event||!n.invoke?null:n}function F(){typeof document>"u"||(document.documentElement.dataset.runtimeHost=$.host,document.documentElement.dataset.runtimePlatform=$.platform)}function G(){const[n,l]=_(v()),[c,a]=_(null),[p,s]=_(null),C=()=>l(v(n()));return T(()=>{F(),l(v());const d=[];async function h(t){if(!(!t||!t.event||!t.invoke))try{const i=await t.event.listen("cli:ready",e=>{const r=(e==null?void 0:e.payload)||{};a(null),s(null),b(r.url)}),f=await t.event.listen("cli:error",e=>{const r=(e==null?void 0:e.payload)||{};r.error&&(a(r.error),s("Encountered an issue"))}),m=await t.event.listen("cli:status",e=>{const r=(e==null?void 0:e.payload)||{};if(r.state==="error"&&r.error){a(r.error),s("Encountered an issue");return}r.state&&r.state!=="ready"&&(a(null),s(null))});d.push(i,f,m);const o=await t.invoke("cli_get_status");(o==null?void 0:o.state)==="ready"&&o.url?b(o.url):(o==null?void 0:o.state)==="error"&&o.error&&(a(o.error),s("Encountered an issue"))}catch(i){a(String(i)),s("Encountered an issue")}}P()&&h(D()),x(()=>{d.forEach(t=>{try{t()}catch{}})})}),(()=>{var d=H(),h=d.firstChild,t=h.nextSibling;t.firstChild;var i=t.nextSibling,f=i.firstChild,m=f.firstChild,o=m.nextSibling,e=f.nextSibling,r=e.firstChild;return U(h,"src",M),g(t,I(L,{get when(){return p()},children:y=>(()=>{var u=W();return g(u,y),u})()}),null),g(o,n),r.$$click=C,g(i,(()=>{var y=N(()=>!!c());return()=>y()&&(()=>{var u=z();return g(u,c),u})()})(),null),d})()}const E=document.getElementById("loading-root");if(!E)throw new Error("Loading root element not found");k(()=>I(G,{}),E);S(["click"]);
|