@deslop/deploy 0.1.1263 → 0.1.1267
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/route-CavKqo_R.js","assets/react-COyt-gOi.js","assets/rolldown-runtime-WkwZ5CU-.js","assets/schema-Dt7oxOOd.js","assets/effect-BYxovlWD.js","assets/-expose-Bh9ChY6U.js","assets/(home)-
|
|
2
|
-
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{Ct as t,Dt as n,Et as r,St as i,Tt as a,_t as o,a as s,at as c,bt as l,c as u,dt as d,ft as f,gt as p,ht as m,it as h,mt as g,o as _,pt as v,rt as ee,st as y,t as te,ut as ne,vt as b,wt as x,xt as S,yt as C}from"./schema-Dt7oxOOd.js";import{a as w,o as T}from"./react-COyt-gOi.js";import{bt as E,ct as D,lt as O,nt as k}from"./effect-BYxovlWD.js";var A=`Error preloading route! ☝️`;function j(e,t){if(e)return typeof e==`string`?e:e[t]}function M(e){return e?.scriptFormat??`module`}function N(e,t,n){let r=P(t),i=j(n,`script`)??r.crossOrigin;return{...M(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,fetchPriority:`low`,...i?{crossOrigin:i}:{}}}function P(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function F(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function re(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function ie(e,t,n,r){let i=f(e),a=[],o=[];for(let e of i)for(let t of Array.isArray(e.scripts)?e.scripts:[]){if(!t)continue;let{children:e,...i}=t;a.push({tag:`script`,attrs:{...i,...r,nonce:n},children:e})}if(t)for(let e of i)for(let r of t.routes[e.routeId]?.scripts??[])o.push({tag:`script`,attrs:{...r.attrs,nonce:n},children:r.children});return[a,o]}function I([e,t],n){return n?[...n.before,...e,...t,n.boundary]:[...e,...t]}var L=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=g:this.parentRoute||l();let r=n?g:t?.path;r&&r!==`/`&&(r=b(r));let i=t?.id||r,a=n?g:p((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:p(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=C(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>v({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},ae=class{constructor({id:e}){this.notFound=e=>m({routeId:this.id,...e}),this.redirect=e=>v({from:this.id,...e}),this.id=e}},oe=class extends L{constructor(e){super(e)}};function R(e){return c({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function z(e){let{select:t,...n}=e;return c({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function B(e){return c({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function V(e){return c({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}var H=e(T(),1);function U(e){let t=n();return H.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function W(e){return c({...e,select:t=>e.select?e.select(t.context):t.context})}var G=w();function se(...e){let t=H.useRef(e),n=t.current;return e.forEach((e,t)=>{S(n[t],e,!1,!0)||(n[t]=e)}),t.current}function K(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(A)})}function ce(e,t){let n=typeof e==`string`&&x(e);if(n)return t.has(n)?e:null}function le(e,t,n,r){let i=o(e.pathname,r),a=o(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!S(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function ue(e,t,r){let i=n(),a=H.useRef(null),o=H.useCallback(e=>{if(a.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:s,to:c,preload:l,preloadDelay:u,disabled:f,target:p,onClick:m,onBlur:h,onFocus:g,onMouseEnter:_,onMouseLeave:v,onTouchStart:ee}=e,[y,te,b]=se(e.search,e.params,s),S=H.useContext(d),C=(i.stores._linkScopes??={})[S]??=ne(i,S),[w,T,E]=H.useMemo(()=>{let t=ce(c,i.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},r,a,o,s=()=>{let e=C[0]();if(e!==r){n._fromLocation=e;let t=i.buildLocation(n),o=he(t,i,f),s=f||o&&!x(o)?le(e,t,b,i.basepath):void 0;a&&a[0]===o&&a[1]===s||(a=[o,s]),r=e}return a};return[n,s,b?.includeHash&&(()=>{let e=s();return e[1]?o??=[e[0],!1]:e})]},[i,C,e.from,e.hash,e.href,c,y,te,e.state,e.mask,e.unsafeRelative,b,f]),[D,O]=H.useSyncExternalStore(C[1],T,E||T),k=O===void 0&&D,A=f||D===void 0,j=H.useRef(!1),M=e.reloadDocument||k||A?!1:l??i.options.defaultPreload,N=u??i.options.defaultPreloadDelay??0,P=H.useCallback(e=>{let t=e?.isIntersecting;t??M===`intent`?N?a.t??=setTimeout(()=>{a.t=void 0,K(i,w)},N):K(i,w):t===!1&&J(a)},[i,w,a,M,N]);H.useEffect(()=>{if(!M)return;M===`render`&&!j.current&&(j.current=!0,K(i,w));let e=!0,t;return M===`viewport`&&a.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&P(t.pop())},{rootMargin:`100px`}),t.observe(a.current)),()=>{e=!1,t?.disconnect(),J(a)}},[i,w,M,P,a]);let F=pe(e,r);if(F.ref=t?o:a,k)return F.href=k,F;let re=t=>{let n=p??t.currentTarget.getAttribute(`target`);A||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),J(a),i.navigate({...e,_fromLocation:w._fromLocation}))},ie=()=>{M===`intent`&&K(i,w)},I=()=>{M===`intent`&&J(a)};return F.onClick=Y(m,re),F.onBlur=Y(h,I),F.onFocus=Y(g,P),F.onMouseEnter=Y(_,P),F.onMouseLeave=Y(v,I),F.onTouchStart=Y(ee,ie),me(F,e,O,D,A,r)}var de={},fe={className:`active`},q=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function pe(e,t){let n={};for(let r in e)q.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function me(e,n,r,i,a,o){let{activeProps:s,inactiveProps:c,className:l,style:u,target:d}=n,f=t(r?s:c,{})??(r?fe:de);Object.assign(e,f),e.href=i,o!==`a`&&(e.disabled=a),e.target=d;let p=f.style;(u||p)&&(e.style=u&&p?{...u,...p}:u||p);let m=f.className;return(l||m)&&(e.className=l?m?`${l} ${m}`:l:m),a&&(e.role=`link`,e[`aria-disabled`]=!0),r&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var J=e=>{clearTimeout(e.t),e.t=void 0},Y=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function he(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!a(i,t.protocolAllowlist))return i}var X=H.memo(H.forwardRef((e,t)=>{let n=e._asChild||`a`,r=ue(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return H.createElement(n,r,i)}),ge);function ge(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!q.has(r)||!S(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}function _e(e){return new ve({id:e})}var ve=class extends ae{constructor({id:e}){super({id:e}),this.useMatch=e=>c({...e,from:this.id}),this.useRouteContext=e=>W({...e,from:this.id}),this.useSearch=e=>V({...e,from:this.id}),this.useParams=e=>B({...e,from:this.id}),this.useLoaderDeps=e=>z({...e,from:this.id,strict:!1}),this.useLoaderData=e=>R({...e,from:this.id,strict:!1}),this.useNavigate=()=>U({from:n().routesById[this.id].fullPath}),this.notFound=e=>m({routeId:this.id,...e}),this.Link=H.forwardRef((e,t)=>{let r=n().routesById[this.id].fullPath;return(0,G.jsx)(X,{ref:t,from:r,...e})})}},ye=class extends L{constructor(e){super(e),this.useMatch=e=>c({...e,from:this.id}),this.useRouteContext=e=>W({...e,from:this.id}),this.useSearch=e=>V({...e,from:this.id}),this.useParams=e=>B({...e,from:this.id}),this.useLoaderDeps=e=>z({...e,from:this.id}),this.useLoaderData=e=>R({...e,from:this.id}),this.useNavigate=()=>U({from:this.fullPath}),this.Link=H.forwardRef((e,t)=>(0,G.jsx)(X,{ref:t,from:this.fullPath,...e}))}};function be(e){return new ye(e)}var xe=class extends oe{constructor(e){super(e),this.useMatch=e=>c({...e,from:this.id}),this.useRouteContext=e=>W({...e,from:this.id}),this.useSearch=e=>V({...e,from:this.id}),this.useParams=e=>B({...e,from:this.id}),this.useLoaderDeps=e=>z({...e,from:this.id}),this.useLoaderData=e=>R({...e,from:this.id}),this.useNavigate=()=>U({from:this.fullPath}),this.Link=H.forwardRef((e,t)=>(0,G.jsx)(X,{ref:t,from:this.fullPath,...e}))}};function Se(e){return new xe(e)}function Z(e){return e=>{let t=be(e);return t.isRoot=!1,t}}function Ce(e,t){let n,i,a,o=()=>(n||=(a=void 0,e().then(e=>{n=void 0,s.preload=void 0,i=e[t??`default`]}).catch(e=>{n=void 0,a=e})),n),s=function(e){if(a){if(r(a)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${a.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw a}if(!i){if(h)h(o());else throw o()}return H.createElement(i,e)};return s.preload=o,s}function we(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function Te(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e,a=H.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(e.tag){case`title`:return(0,G.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,G.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,G.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,G.jsx)(`style`,{...t,dangerouslySetInnerHTML:a,nonce:r});case`script`:return(0,G.jsx)(Ee,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function Ee({attrs:e,children:t,preventScriptHoist:r}){n();let i=ee(),a=H.useMemo(()=>t===void 0?void 0:{__html:t},[t]),o=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(H.useEffect(()=>{if(!o){if(e?.src){let t=document.createElement(`a`);t.href=e.src;let n=t.href;for(let e of document.scripts)if(e.src===n)return;let r=document.createElement(`script`);return we(r,e),document.head.appendChild(r),()=>r.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.scripts){if(e.hasAttribute(`src`))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,we(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,o]),o&&typeof t==`string`)return(0,G.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:a});if(!i){if(e?.src)return(0,G.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,G.jsx)(`script`,{...e,dangerouslySetInnerHTML:a,suppressHydrationWarning:!0})}return null}function De(e,t,n,r){n=f(n);let a=n.map(e=>e.meta).filter(e=>e!==void 0),o=[],s={},c;for(let e=a.length-1;e>=0;e--){let n=a[e];for(let e=n.length-1;e>=0;e--){let r=n[e];if(r){if(r.title)c||={tag:`title`,children:r.title};else if(`script:ld+json`in r)try{let e=JSON.stringify(r[`script:ld+json`]);o.push({tag:`script`,attrs:{type:`application/ld+json`},children:i(e)})}catch{}else{let e=r.name??r.property;if(e){if(s[e])continue;s[e]=!0}o.push({tag:`meta`,attrs:{...r,nonce:t}})}}}}c&&o.push(c),t&&o.push({tag:`meta`,attrs:{property:`csp-nonce`,content:t}}),o.reverse();let l=n.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:t}})),u=e.ssr?.manifest,d=[];u&&(n.forEach(e=>{(u.routes[e.routeId]?.css)?.forEach(e=>{let n=re(e);d.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:j(r,`stylesheet`)??n.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),u.inlineStyle&&d.push({tag:`style`,attrs:{...u.inlineStyle.attrs,nonce:t},children:u.inlineStyle.children,inlineCss:!0}));let p=[];u&&n.forEach(e=>{u.routes[e.routeId]?.preloads?.forEach(e=>{p.push({tag:`link`,attrs:{...N(u,e,r),nonce:t}})})});let m=n.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`style`,attrs:{...n,nonce:t},children:e})),h=n.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`script`,attrs:{...n,nonce:t},children:e})),g=[];return F(g,o),g.push(...p),F(g,l),g.push(...d),F(g,m),F(g,h),g}var Oe=e=>{let t=n(),r=t.options.ssr?.nonce,i=H.useCallback(n=>De(t,r,n,e),[e,r,t]);return y(t.stores.matches,i,{compare:S})};function ke(e){let t=Oe(e.assetCrossOrigin),r=n().options.ssr?.nonce;return(0,G.jsx)(G.Fragment,{children:t.map(e=>(0,H.createElement)(Te,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:r}))})}var Ae={suppressHydrationWarning:!0},je=()=>{let e=n(),t=e.options.ssr?.nonce,r=n=>{let r=ie(n,e.ssr?.manifest,t,Ae);for(let e of r[1])if(typeof e.attrs?.src==`string`){let t=e;t.preventScriptHoist=!0}return r};return Me(y(e.stores.matches,e=>I(r(e)),{compare:S}))};function Me(e){return(0,G.jsx)(G.Fragment,{children:e.map((e,t)=>(0,H.createElement)(Te,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var Ne=Se({shellComponent:e=>(0,G.jsxs)(`div`,{className:`bg-background text-foreground pt-safe-top pr-safe-right pl-safe-left flex h-dvh w-dvw flex-col`,children:[(0,G.jsx)(ke,{}),(0,G.jsx)(je,{}),e.children]})}),Pe=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),Fe=function(e){return`/`+e},Ie={},Le=function(e){return e.pathname.endsWith(`.css`)},Re=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Q=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=Fe(t,n);let r=s(t),i=Le(r);return Re(Ie,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:Pe,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ze=Z(`/(home)`)({component:Ce(()=>Q(()=>import(`./route-CavKqo_R.js`),__vite__mapDeps([0,1,2,3,4,5])),`component`)}),Be=()=>Q(()=>import(`./(home)-BuKTFjkX.js`),__vite__mapDeps([6,2,1,5,4,3])),Ve=k([`apps`,`machine`,`process`]),He=O({app:E(D),machine:E(D),pane:E(Ve),range:E(te.fields.minutes)}),Ue=Z(`/(home)/`)({component:Ce(Be,`component`),validateSearch:u(He)}),We=Z(`/(home)/monitor`)({beforeLoad:()=>{throw v({replace:!0,to:`/`})}}),$=ze.update({id:`/(home)`,getParentRoute:()=>Ne}),Ge=Ue.update({id:`/`,path:`/`,getParentRoute:()=>$}),Ke={homeMonitorRoute:We.update({id:`/monitor`,path:`/monitor`,getParentRoute:()=>$}),homeIndexRoute:Ge},qe={homeRouteRoute:$._addFileChildren(Ke)},Je=Ne._addFileChildren(qe)._addFileTypes(),Ye=s(Je);_(Ye);export{_e as t};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/route-CavKqo_R.js","assets/react-COyt-gOi.js","assets/rolldown-runtime-WkwZ5CU-.js","assets/schema-Dt7oxOOd.js","assets/effect-BYxovlWD.js","assets/-expose-Bh9ChY6U.js","assets/(home)-BRBR9qdq.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{Ct as t,Dt as n,Et as r,St as i,Tt as a,_t as o,a as s,at as c,bt as l,c as u,dt as d,ft as f,gt as p,ht as m,it as h,mt as g,o as _,pt as v,rt as ee,st as y,t as te,ut as ne,vt as b,wt as x,xt as S,yt as C}from"./schema-Dt7oxOOd.js";import{a as w,o as T}from"./react-COyt-gOi.js";import{bt as E,ct as D,lt as O,nt as k}from"./effect-BYxovlWD.js";var A=`Error preloading route! ☝️`;function j(e,t){if(e)return typeof e==`string`?e:e[t]}function M(e){return e?.scriptFormat??`module`}function N(e,t,n){let r=P(t),i=j(n,`script`)??r.crossOrigin;return{...M(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,fetchPriority:`low`,...i?{crossOrigin:i}:{}}}function P(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function F(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function re(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function ie(e,t,n,r){let i=f(e),a=[],o=[];for(let e of i)for(let t of Array.isArray(e.scripts)?e.scripts:[]){if(!t)continue;let{children:e,...i}=t;a.push({tag:`script`,attrs:{...i,...r,nonce:n},children:e})}if(t)for(let e of i)for(let r of t.routes[e.routeId]?.scripts??[])o.push({tag:`script`,attrs:{...r.attrs,nonce:n},children:r.children});return[a,o]}function I([e,t],n){return n?[...n.before,...e,...t,n.boundary]:[...e,...t]}var L=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=g:this.parentRoute||l();let r=n?g:t?.path;r&&r!==`/`&&(r=b(r));let i=t?.id||r,a=n?g:p((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:p(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=C(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>v({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},ae=class{constructor({id:e}){this.notFound=e=>m({routeId:this.id,...e}),this.redirect=e=>v({from:this.id,...e}),this.id=e}},oe=class extends L{constructor(e){super(e)}};function R(e){return c({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function z(e){let{select:t,...n}=e;return c({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function B(e){return c({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function V(e){return c({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}var H=e(T(),1);function U(e){let t=n();return H.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function W(e){return c({...e,select:t=>e.select?e.select(t.context):t.context})}var G=w();function se(...e){let t=H.useRef(e),n=t.current;return e.forEach((e,t)=>{S(n[t],e,!1,!0)||(n[t]=e)}),t.current}function K(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(A)})}function ce(e,t){let n=typeof e==`string`&&x(e);if(n)return t.has(n)?e:null}function le(e,t,n,r){let i=o(e.pathname,r),a=o(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!S(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function ue(e,t,r){let i=n(),a=H.useRef(null),o=H.useCallback(e=>{if(a.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:s,to:c,preload:l,preloadDelay:u,disabled:f,target:p,onClick:m,onBlur:h,onFocus:g,onMouseEnter:_,onMouseLeave:v,onTouchStart:ee}=e,[y,te,b]=se(e.search,e.params,s),S=H.useContext(d),C=(i.stores._linkScopes??={})[S]??=ne(i,S),[w,T,E]=H.useMemo(()=>{let t=ce(c,i.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},r,a,o,s=()=>{let e=C[0]();if(e!==r){n._fromLocation=e;let t=i.buildLocation(n),o=he(t,i,f),s=f||o&&!x(o)?le(e,t,b,i.basepath):void 0;a&&a[0]===o&&a[1]===s||(a=[o,s]),r=e}return a};return[n,s,b?.includeHash&&(()=>{let e=s();return e[1]?o??=[e[0],!1]:e})]},[i,C,e.from,e.hash,e.href,c,y,te,e.state,e.mask,e.unsafeRelative,b,f]),[D,O]=H.useSyncExternalStore(C[1],T,E||T),k=O===void 0&&D,A=f||D===void 0,j=H.useRef(!1),M=e.reloadDocument||k||A?!1:l??i.options.defaultPreload,N=u??i.options.defaultPreloadDelay??0,P=H.useCallback(e=>{let t=e?.isIntersecting;t??M===`intent`?N?a.t??=setTimeout(()=>{a.t=void 0,K(i,w)},N):K(i,w):t===!1&&J(a)},[i,w,a,M,N]);H.useEffect(()=>{if(!M)return;M===`render`&&!j.current&&(j.current=!0,K(i,w));let e=!0,t;return M===`viewport`&&a.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&P(t.pop())},{rootMargin:`100px`}),t.observe(a.current)),()=>{e=!1,t?.disconnect(),J(a)}},[i,w,M,P,a]);let F=pe(e,r);if(F.ref=t?o:a,k)return F.href=k,F;let re=t=>{let n=p??t.currentTarget.getAttribute(`target`);A||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),J(a),i.navigate({...e,_fromLocation:w._fromLocation}))},ie=()=>{M===`intent`&&K(i,w)},I=()=>{M===`intent`&&J(a)};return F.onClick=Y(m,re),F.onBlur=Y(h,I),F.onFocus=Y(g,P),F.onMouseEnter=Y(_,P),F.onMouseLeave=Y(v,I),F.onTouchStart=Y(ee,ie),me(F,e,O,D,A,r)}var de={},fe={className:`active`},q=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function pe(e,t){let n={};for(let r in e)q.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function me(e,n,r,i,a,o){let{activeProps:s,inactiveProps:c,className:l,style:u,target:d}=n,f=t(r?s:c,{})??(r?fe:de);Object.assign(e,f),e.href=i,o!==`a`&&(e.disabled=a),e.target=d;let p=f.style;(u||p)&&(e.style=u&&p?{...u,...p}:u||p);let m=f.className;return(l||m)&&(e.className=l?m?`${l} ${m}`:l:m),a&&(e.role=`link`,e[`aria-disabled`]=!0),r&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var J=e=>{clearTimeout(e.t),e.t=void 0},Y=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function he(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!a(i,t.protocolAllowlist))return i}var X=H.memo(H.forwardRef((e,t)=>{let n=e._asChild||`a`,r=ue(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return H.createElement(n,r,i)}),ge);function ge(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!q.has(r)||!S(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}function _e(e){return new ve({id:e})}var ve=class extends ae{constructor({id:e}){super({id:e}),this.useMatch=e=>c({...e,from:this.id}),this.useRouteContext=e=>W({...e,from:this.id}),this.useSearch=e=>V({...e,from:this.id}),this.useParams=e=>B({...e,from:this.id}),this.useLoaderDeps=e=>z({...e,from:this.id,strict:!1}),this.useLoaderData=e=>R({...e,from:this.id,strict:!1}),this.useNavigate=()=>U({from:n().routesById[this.id].fullPath}),this.notFound=e=>m({routeId:this.id,...e}),this.Link=H.forwardRef((e,t)=>{let r=n().routesById[this.id].fullPath;return(0,G.jsx)(X,{ref:t,from:r,...e})})}},ye=class extends L{constructor(e){super(e),this.useMatch=e=>c({...e,from:this.id}),this.useRouteContext=e=>W({...e,from:this.id}),this.useSearch=e=>V({...e,from:this.id}),this.useParams=e=>B({...e,from:this.id}),this.useLoaderDeps=e=>z({...e,from:this.id}),this.useLoaderData=e=>R({...e,from:this.id}),this.useNavigate=()=>U({from:this.fullPath}),this.Link=H.forwardRef((e,t)=>(0,G.jsx)(X,{ref:t,from:this.fullPath,...e}))}};function be(e){return new ye(e)}var xe=class extends oe{constructor(e){super(e),this.useMatch=e=>c({...e,from:this.id}),this.useRouteContext=e=>W({...e,from:this.id}),this.useSearch=e=>V({...e,from:this.id}),this.useParams=e=>B({...e,from:this.id}),this.useLoaderDeps=e=>z({...e,from:this.id}),this.useLoaderData=e=>R({...e,from:this.id}),this.useNavigate=()=>U({from:this.fullPath}),this.Link=H.forwardRef((e,t)=>(0,G.jsx)(X,{ref:t,from:this.fullPath,...e}))}};function Se(e){return new xe(e)}function Z(e){return e=>{let t=be(e);return t.isRoot=!1,t}}function Ce(e,t){let n,i,a,o=()=>(n||=(a=void 0,e().then(e=>{n=void 0,s.preload=void 0,i=e[t??`default`]}).catch(e=>{n=void 0,a=e})),n),s=function(e){if(a){if(r(a)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${a.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw a}if(!i){if(h)h(o());else throw o()}return H.createElement(i,e)};return s.preload=o,s}function we(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function Te(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e,a=H.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(e.tag){case`title`:return(0,G.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,G.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,G.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,G.jsx)(`style`,{...t,dangerouslySetInnerHTML:a,nonce:r});case`script`:return(0,G.jsx)(Ee,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function Ee({attrs:e,children:t,preventScriptHoist:r}){n();let i=ee(),a=H.useMemo(()=>t===void 0?void 0:{__html:t},[t]),o=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(H.useEffect(()=>{if(!o){if(e?.src){let t=document.createElement(`a`);t.href=e.src;let n=t.href;for(let e of document.scripts)if(e.src===n)return;let r=document.createElement(`script`);return we(r,e),document.head.appendChild(r),()=>r.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.scripts){if(e.hasAttribute(`src`))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,we(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,o]),o&&typeof t==`string`)return(0,G.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:a});if(!i){if(e?.src)return(0,G.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,G.jsx)(`script`,{...e,dangerouslySetInnerHTML:a,suppressHydrationWarning:!0})}return null}function De(e,t,n,r){n=f(n);let a=n.map(e=>e.meta).filter(e=>e!==void 0),o=[],s={},c;for(let e=a.length-1;e>=0;e--){let n=a[e];for(let e=n.length-1;e>=0;e--){let r=n[e];if(r){if(r.title)c||={tag:`title`,children:r.title};else if(`script:ld+json`in r)try{let e=JSON.stringify(r[`script:ld+json`]);o.push({tag:`script`,attrs:{type:`application/ld+json`},children:i(e)})}catch{}else{let e=r.name??r.property;if(e){if(s[e])continue;s[e]=!0}o.push({tag:`meta`,attrs:{...r,nonce:t}})}}}}c&&o.push(c),t&&o.push({tag:`meta`,attrs:{property:`csp-nonce`,content:t}}),o.reverse();let l=n.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:t}})),u=e.ssr?.manifest,d=[];u&&(n.forEach(e=>{(u.routes[e.routeId]?.css)?.forEach(e=>{let n=re(e);d.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:j(r,`stylesheet`)??n.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),u.inlineStyle&&d.push({tag:`style`,attrs:{...u.inlineStyle.attrs,nonce:t},children:u.inlineStyle.children,inlineCss:!0}));let p=[];u&&n.forEach(e=>{u.routes[e.routeId]?.preloads?.forEach(e=>{p.push({tag:`link`,attrs:{...N(u,e,r),nonce:t}})})});let m=n.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`style`,attrs:{...n,nonce:t},children:e})),h=n.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`script`,attrs:{...n,nonce:t},children:e})),g=[];return F(g,o),g.push(...p),F(g,l),g.push(...d),F(g,m),F(g,h),g}var Oe=e=>{let t=n(),r=t.options.ssr?.nonce,i=H.useCallback(n=>De(t,r,n,e),[e,r,t]);return y(t.stores.matches,i,{compare:S})};function ke(e){let t=Oe(e.assetCrossOrigin),r=n().options.ssr?.nonce;return(0,G.jsx)(G.Fragment,{children:t.map(e=>(0,H.createElement)(Te,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:r}))})}var Ae={suppressHydrationWarning:!0},je=()=>{let e=n(),t=e.options.ssr?.nonce,r=n=>{let r=ie(n,e.ssr?.manifest,t,Ae);for(let e of r[1])if(typeof e.attrs?.src==`string`){let t=e;t.preventScriptHoist=!0}return r};return Me(y(e.stores.matches,e=>I(r(e)),{compare:S}))};function Me(e){return(0,G.jsx)(G.Fragment,{children:e.map((e,t)=>(0,H.createElement)(Te,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var Ne=Se({shellComponent:e=>(0,G.jsxs)(`div`,{className:`bg-background text-foreground pt-safe-top pr-safe-right pl-safe-left flex h-dvh w-dvw flex-col`,children:[(0,G.jsx)(ke,{}),(0,G.jsx)(je,{}),e.children]})}),Pe=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),Fe=function(e){return`/`+e},Ie={},Le=function(e){return e.pathname.endsWith(`.css`)},Re=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Q=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=Fe(t,n);let r=s(t),i=Le(r);return Re(Ie,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:Pe,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ze=Z(`/(home)`)({component:Ce(()=>Q(()=>import(`./route-CavKqo_R.js`),__vite__mapDeps([0,1,2,3,4,5])),`component`)}),Be=()=>Q(()=>import(`./(home)-BRBR9qdq.js`),__vite__mapDeps([6,2,1,5,4,3])),Ve=k([`apps`,`machine`,`process`]),He=O({app:E(D),machine:E(D),pane:E(Ve),range:E(te.fields.minutes)}),Ue=Z(`/(home)/`)({component:Ce(Be,`component`),validateSearch:u(He)}),We=Z(`/(home)/monitor`)({beforeLoad:()=>{throw v({replace:!0,to:`/`})}}),$=ze.update({id:`/(home)`,getParentRoute:()=>Ne}),Ge=Ue.update({id:`/`,path:`/`,getParentRoute:()=>$}),Ke={homeMonitorRoute:We.update({id:`/monitor`,path:`/monitor`,getParentRoute:()=>$}),homeIndexRoute:Ge},qe={homeRouteRoute:$._addFileChildren(Ke)},Je=Ne._addFileChildren(qe)._addFileTypes(),Ye=s(Je);_(Ye);export{_e as t};
|
package/dist/client/index.html
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<link rel="manifest" href="/manifest.webmanifest" />
|
|
16
16
|
|
|
17
17
|
<title>deploy</title>
|
|
18
|
-
<script type="module" crossorigin src="/assets/index-
|
|
18
|
+
<script type="module" crossorigin src="/assets/index-CUoncAk5.js"></script>
|
|
19
19
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-WkwZ5CU-.js">
|
|
20
20
|
<link rel="modulepreload" crossorigin href="/assets/effect-BYxovlWD.js">
|
|
21
21
|
<link rel="modulepreload" crossorigin href="/assets/react-COyt-gOi.js">
|
package/dist/server.js
CHANGED
|
@@ -75537,7 +75537,7 @@ const fromDuplex = (open, options) => withFiber((fiber) => {
|
|
|
75537
75537
|
writer
|
|
75538
75538
|
}));
|
|
75539
75539
|
});
|
|
75540
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
75540
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/constants.js
|
|
75541
75541
|
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
75542
75542
|
const BINARY_TYPES = [
|
|
75543
75543
|
"nodebuffer",
|
|
@@ -75559,7 +75559,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
75559
75559
|
NOOP: () => {}
|
|
75560
75560
|
};
|
|
75561
75561
|
}));
|
|
75562
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
75562
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/buffer-util.js
|
|
75563
75563
|
var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
75564
75564
|
const { websocketMask, websocketUnmask } = __require("http");
|
|
75565
75565
|
const { EMPTY_BUFFER } = require_constants();
|
|
@@ -75667,7 +75667,7 @@ var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
75667
75667
|
};
|
|
75668
75668
|
} catch (e) {}
|
|
75669
75669
|
}));
|
|
75670
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
75670
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/limiter.js
|
|
75671
75671
|
var require_limiter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
75672
75672
|
const kDone = Symbol("kDone");
|
|
75673
75673
|
const kRun = Symbol("kRun");
|
|
@@ -75717,7 +75717,7 @@ var require_limiter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
75717
75717
|
};
|
|
75718
75718
|
module.exports = Limiter;
|
|
75719
75719
|
}));
|
|
75720
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
75720
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/permessage-deflate.js
|
|
75721
75721
|
var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
75722
75722
|
const zlib = __require("zlib");
|
|
75723
75723
|
const bufferUtil = require_buffer_util();
|
|
@@ -76052,7 +76052,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
76052
76052
|
this[kCallback](err);
|
|
76053
76053
|
}
|
|
76054
76054
|
}));
|
|
76055
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
76055
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/validation.js
|
|
76056
76056
|
var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
76057
76057
|
const { isUtf8 } = __require("buffer");
|
|
76058
76058
|
const { hasBlob } = require_constants();
|
|
@@ -76247,7 +76247,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
76247
76247
|
};
|
|
76248
76248
|
} catch (e) {}
|
|
76249
76249
|
}));
|
|
76250
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
76250
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/receiver.js
|
|
76251
76251
|
var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
76252
76252
|
const { Writable } = __require("stream");
|
|
76253
76253
|
const PerMessageDeflate = require_permessage_deflate();
|
|
@@ -76547,6 +76547,7 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
76547
76547
|
data = this.consume(this._payloadLength);
|
|
76548
76548
|
if (this._masked && (this._mask[0] | this._mask[1] | this._mask[2] | this._mask[3]) !== 0) unmask(data, this._mask);
|
|
76549
76549
|
}
|
|
76550
|
+
this._mask = void 0;
|
|
76550
76551
|
if (this._opcode > 7) {
|
|
76551
76552
|
this.controlMessage(data, cb);
|
|
76552
76553
|
return;
|
|
@@ -76709,7 +76710,7 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
76709
76710
|
};
|
|
76710
76711
|
module.exports = Receiver;
|
|
76711
76712
|
}));
|
|
76712
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
76713
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/sender.js
|
|
76713
76714
|
var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
76714
76715
|
const { Duplex } = __require("stream");
|
|
76715
76716
|
const { randomFillSync } = __require("crypto");
|
|
@@ -77207,7 +77208,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
77207
77208
|
sender.onerror(err);
|
|
77208
77209
|
}
|
|
77209
77210
|
}));
|
|
77210
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
77211
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/event-target.js
|
|
77211
77212
|
var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
77212
77213
|
const { kForOnEventAttribute, kListener } = require_constants();
|
|
77213
77214
|
const kCode = Symbol("kCode");
|
|
@@ -77437,7 +77438,7 @@ var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
77437
77438
|
else listener.call(thisArg, event);
|
|
77438
77439
|
}
|
|
77439
77440
|
}));
|
|
77440
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
77441
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/extension.js
|
|
77441
77442
|
var require_extension = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
77442
77443
|
const { tokenChars } = require_validation();
|
|
77443
77444
|
/**
|
|
@@ -77582,12 +77583,13 @@ var require_extension = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
77582
77583
|
parse
|
|
77583
77584
|
};
|
|
77584
77585
|
}));
|
|
77585
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
77586
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/websocket.js
|
|
77586
77587
|
var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
77587
77588
|
const EventEmitter = __require("events");
|
|
77588
77589
|
const https = __require("https");
|
|
77589
77590
|
const http = __require("http");
|
|
77590
77591
|
const net = __require("net");
|
|
77592
|
+
const querystring = __require("querystring");
|
|
77591
77593
|
const tls = __require("tls");
|
|
77592
77594
|
const { randomBytes, createHash } = __require("crypto");
|
|
77593
77595
|
const { Duplex, Readable } = __require("stream");
|
|
@@ -78146,8 +78148,10 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
78146
78148
|
} catch {
|
|
78147
78149
|
throw new SyntaxError(`Invalid URL: ${address}`);
|
|
78148
78150
|
}
|
|
78149
|
-
if (parsedUrl.protocol === "http:"
|
|
78150
|
-
|
|
78151
|
+
if (parsedUrl.protocol === "http:" || parsedUrl.protocol === "https:") {
|
|
78152
|
+
parsedUrl = new URL(parsedUrl);
|
|
78153
|
+
parsedUrl.protocol = parsedUrl.protocol === "http:" ? "ws:" : "wss:";
|
|
78154
|
+
}
|
|
78151
78155
|
websocket._url = parsedUrl.href;
|
|
78152
78156
|
const isSecure = parsedUrl.protocol === "wss:";
|
|
78153
78157
|
const isIpcUrl = parsedUrl.protocol === "ws+unix:";
|
|
@@ -78200,7 +78204,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
78200
78204
|
if (opts.protocolVersion < 13) opts.headers["Sec-WebSocket-Origin"] = opts.origin;
|
|
78201
78205
|
else opts.headers.Origin = opts.origin;
|
|
78202
78206
|
}
|
|
78203
|
-
if (parsedUrl.username || parsedUrl.password) opts.auth = `${parsedUrl.username}:${parsedUrl.password}`;
|
|
78207
|
+
if (parsedUrl.username || parsedUrl.password) opts.auth = `${querystring.unescape(parsedUrl.username)}:${querystring.unescape(parsedUrl.password)}`;
|
|
78204
78208
|
if (isIpcUrl) {
|
|
78205
78209
|
const i = opts.path.indexOf(":");
|
|
78206
78210
|
if (i === -1) {
|
|
@@ -78416,8 +78420,12 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
78416
78420
|
function receiverOnConclude(code, reason) {
|
|
78417
78421
|
const websocket = this[kWebSocket];
|
|
78418
78422
|
websocket._closeFrameReceived = true;
|
|
78419
|
-
websocket._closeMessage = reason;
|
|
78420
78423
|
websocket._closeCode = code;
|
|
78424
|
+
if (reason.length === 0) websocket._closeMessage = EMPTY_BUFFER;
|
|
78425
|
+
else {
|
|
78426
|
+
websocket._closeMessage = Buffer.allocUnsafeSlow(reason.length);
|
|
78427
|
+
websocket._closeMessage.set(reason);
|
|
78428
|
+
}
|
|
78421
78429
|
if (websocket._socket[kWebSocket] === void 0) return;
|
|
78422
78430
|
websocket._socket.removeListener("data", socketOnData);
|
|
78423
78431
|
process.nextTick(resume, websocket._socket);
|
|
@@ -78585,7 +78593,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
78585
78593
|
}
|
|
78586
78594
|
}
|
|
78587
78595
|
}));
|
|
78588
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
78596
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/stream.js
|
|
78589
78597
|
var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
78590
78598
|
require_websocket();
|
|
78591
78599
|
const { Duplex } = __require("stream");
|
|
@@ -78700,7 +78708,7 @@ var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
78700
78708
|
}
|
|
78701
78709
|
module.exports = createWebSocketStream;
|
|
78702
78710
|
}));
|
|
78703
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
78711
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/subprotocol.js
|
|
78704
78712
|
var require_subprotocol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
78705
78713
|
const { tokenChars } = require_validation();
|
|
78706
78714
|
/**
|
|
@@ -78738,7 +78746,7 @@ var require_subprotocol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
78738
78746
|
}
|
|
78739
78747
|
module.exports = { parse };
|
|
78740
78748
|
}));
|
|
78741
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
78749
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/websocket-server.js
|
|
78742
78750
|
var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
78743
78751
|
const EventEmitter = __require("events");
|
|
78744
78752
|
const http = __require("http");
|
|
@@ -91821,7 +91829,7 @@ String$6.check(isPattern(/^\d+(?:,\d+)*$/u));
|
|
|
91821
91829
|
function flagsOf(settings) {
|
|
91822
91830
|
return map$9(settings, (setting, key) => pipe(String$1(setting.flag), withSchema(setting.schema), withFallbackConfig(schema$1(setting.schema, key)), withDescription(`${setting.description} [${key}]`), optional));
|
|
91823
91831
|
}
|
|
91824
|
-
const
|
|
91832
|
+
const configProvider = fnUntraced(function* (given, defaultPort) {
|
|
91825
91833
|
const port = given["PORT"] ?? `${defaultPort}`;
|
|
91826
91834
|
const url = given["APP_URL"] ?? `http://localhost:${port}`;
|
|
91827
91835
|
if (given["AUTH_URL"] !== void 0 && new URL(url).protocol !== "https:") return yield* AppError.make({ message: "With --auth, set --url to the app's HTTPS origin" });
|
|
@@ -91867,12 +91875,12 @@ function runApp(app) {
|
|
|
91867
91875
|
};
|
|
91868
91876
|
const root = pipe(make$5(name), withSharedFlags(flagsOf(settings)));
|
|
91869
91877
|
const given = map$5(root, (input) => getSomes$1(input));
|
|
91870
|
-
return yield* pipe(root, withHandler((input) => flatMap$2(
|
|
91878
|
+
return yield* pipe(root, withHandler((input) => flatMap$2(configProvider(getSomes$1(input), metadata.config.port), (values) => provideService(server(app), ConfigProvider, values))), withSubcommands([pipe(make$5("service"), withSubcommands([
|
|
91871
91879
|
make$5("install", {}, fnUntraced(function* () {
|
|
91872
91880
|
const fs = yield* FileSystem;
|
|
91873
91881
|
const path = yield* Path$1;
|
|
91874
91882
|
const flags = yield* given;
|
|
91875
|
-
yield*
|
|
91883
|
+
yield* configProvider(flags, metadata.config.port);
|
|
91876
91884
|
const entry = path.join(yield* activate(name, yield* fs.realPath(packageRoot)), "dist", "server.js");
|
|
91877
91885
|
const args = flatten$3(collect$2(flags, (key, value) => [`--${settings[key]?.flag ?? key}`, value]));
|
|
91878
91886
|
yield* output(yield* install(name, [
|
|
@@ -92985,7 +92993,7 @@ function appShares(current, previous) {
|
|
|
92985
92993
|
}
|
|
92986
92994
|
// src/services/metrics/service.ts
|
|
92987
92995
|
const CGROUP = "/sys/fs/cgroup";
|
|
92988
|
-
const
|
|
92996
|
+
const HOURLY_FILE_PREFIX = "metrics-";
|
|
92989
92997
|
var Metrics = class Metrics extends Service$1()("@deslop/deploy/services/metrics/service/Metrics") {
|
|
92990
92998
|
static layer = effect(Metrics, gen(function* () {
|
|
92991
92999
|
const fs = yield* FileSystem;
|
|
@@ -92994,7 +93002,7 @@ var Metrics = class Metrics extends Service$1()("@deslop/deploy/services/metrics
|
|
|
92994
93002
|
const base = yield* KeyValueStore;
|
|
92995
93003
|
const store = toSchemaStore(base, ArraySchema(Sample));
|
|
92996
93004
|
const now = yield* currentTimeMillis;
|
|
92997
|
-
const saved = yield* forEach$1(filter$3(yield* base.keys, (key) => startsWith(
|
|
93005
|
+
const saved = yield* forEach$1(filter$3(yield* base.keys, (key) => startsWith(HOURLY_FILE_PREFIX)(key) && !endsWith(".tmp")(key)), (key) => pipe(store.get(key), orElseSucceed(() => none())), { concurrency: 8 });
|
|
92998
93006
|
const state = yield* make$44(sort(filter$3(flatten$3(getSomes(saved)), (value) => value.time >= now - 6048e5), mapInput(Number$6, (value) => value.time)));
|
|
92999
93007
|
const previous = yield* make$44(none());
|
|
93000
93008
|
const lastApps = yield* make$44(none());
|
|
@@ -93114,11 +93122,11 @@ var Metrics = class Metrics extends Service$1()("@deslop/deploy/services/metrics
|
|
|
93114
93122
|
const time = yield* currentTimeMillis;
|
|
93115
93123
|
const buckets = yield* getAndSet(dirty, []);
|
|
93116
93124
|
const samples = yield* get$1(state);
|
|
93117
|
-
yield* pipe(forEach$1(buckets, (bucket) => store.set(`${
|
|
93125
|
+
yield* pipe(forEach$1(buckets, (bucket) => store.set(`${HOURLY_FILE_PREFIX}${bucket}`, filter$3(samples, (entry) => Math.floor(entry.time / 36e5) === bucket)), {
|
|
93118
93126
|
concurrency: 1,
|
|
93119
93127
|
discard: true
|
|
93120
93128
|
}), onError(() => update$1(dirty, (pending) => dedupe([...pending, ...buckets]))));
|
|
93121
|
-
yield* forEach$1(filter$3(yield* base.keys, (key) => startsWith(
|
|
93129
|
+
yield* forEach$1(filter$3(yield* base.keys, (key) => startsWith(HOURLY_FILE_PREFIX)(key) && (endsWith(".tmp")(key) || exists(parse$3(slice$1(8)(key)), (bucket) => bucket < Math.floor(time / 36e5) - 168))), (key) => base.remove(key), {
|
|
93122
93130
|
concurrency: 1,
|
|
93123
93131
|
discard: true
|
|
93124
93132
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deslop/deploy",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1267",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/MP281X/deslop.git",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": ">=26"
|
|
40
40
|
},
|
|
41
|
-
"fingerprint": "
|
|
41
|
+
"fingerprint": "ebe6e164f697be6b47c451a04da33e84dbfada082e954083847da3dbfd68db28"
|
|
42
42
|
}
|