mirror of
https://github.com/dmduran12/pymc_console-dist.git
synced 2026-08-08 09:53:11 +02:00
Sync build v0.9.297
Automated sync from private repository. Commit: 8625af259fe35a6456bbb58ad68067ce77e4d58e
This commit is contained in:
Vendored
+1
-1
@@ -1 +1 @@
|
||||
0.9.296
|
||||
0.9.297
|
||||
|
||||
+3
-3
File diff suppressed because one or more lines are too long
@@ -1,6 +0,0 @@
|
||||
import{d as p,r as e,cl as f,j as m,cm as A}from"./index-C1ZF7cAz.js";import{A as h}from"./index-DCNWD5GU.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const y=[["path",{d:"M6 18.5a3.5 3.5 0 1 0 7 0c0-1.57.92-2.52 2.04-3.46",key:"1qngmn"}],["path",{d:"M6 8.5c0-.75.13-1.47.36-2.14",key:"b06bma"}],["path",{d:"M8.8 3.15A6.5 6.5 0 0 1 19 8.5c0 1.63-.44 2.81-1.09 3.76",key:"g10hsz"}],["path",{d:"M12.5 6A2.5 2.5 0 0 1 15 8.5M10 13a2 2 0 0 0 1.82-1.18",key:"ygzou7"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],E=p("ear-off",y),j=e.memo(function({value:t,format:a,prefix:s,suffix:i,className:r,priority:c="medium"}){const[n,u]=e.useState(!1),[d,o]=e.useState(t);e.useEffect(()=>f(()=>{u(!0),o(0)},c),[c]),e.useEffect(()=>{n&&o(t)},[n,t]);const l=`${s??""}${t.toLocaleString(void 0,a)}${i??""}`;return n?m.jsx(h,{className:`${r??""} overflow-hidden`,format:a,prefix:s,suffix:i,transition:A.numberTicker,children:d}):m.jsx("span",{className:r,children:l})});export{j as A,E};
|
||||
@@ -0,0 +1,6 @@
|
||||
import{d as _,r as s,cj as A,j as f,ck as w}from"./index-DhkG1Nx9.js";import{A as x}from"./index-Bx_G2nLG.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const E=[["path",{d:"M6 18.5a3.5 3.5 0 1 0 7 0c0-1.57.92-2.52 2.04-3.46",key:"1qngmn"}],["path",{d:"M6 8.5c0-.75.13-1.47.36-2.14",key:"b06bma"}],["path",{d:"M8.8 3.15A6.5 6.5 0 0 1 19 8.5c0 1.63-.44 2.81-1.09 3.76",key:"g10hsz"}],["path",{d:"M12.5 6A2.5 2.5 0 0 1 15 8.5M10 13a2 2 0 0 0 1.82-1.18",key:"ygzou7"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],$=_("ear-off",E),r={spreadingFactor:7,bandwidthHz:125e3,codingRate:5,preambleLength:8,crcEnabled:!0,explicitHeader:!0};function b(t){let e=2;const n=t.route??t.route_type;return(n===0||n===3)&&(e+=4),t.path_length!=null?e+=t.path_length:Array.isArray(t.original_path)&&(e+=t.original_path.length),e}function L(t){if(t._byteLength!==void 0)return t._byteLength;if(t.raw_packet){const e=t.raw_packet;if(/^[0-9a-fA-F]+$/.test(e)&&e.length%2===0)return e.length/2;if(/^[A-Za-z0-9+/=]+$/.test(e)){const n=(e.match(/=+$/)||[""])[0].length;return Math.floor(e.length*3/4)-n}return e.length}if(t.length&&t.length>0)return t.length+b(t);if(t.payload_length&&t.payload_length>0)return t.payload_length+b(t);if(t.payload){const e=t.payload;return/^[0-9a-fA-F]+$/.test(e)&&e.length%2===0?e.length/2:e.length}return 32}function z(t,e={}){const n=e.spreadingFactor??r.spreadingFactor,a=e.bandwidthHz??r.bandwidthHz,l=e.codingRate??r.codingRate,c=e.preambleLength??r.preambleLength??8,d=e.crcEnabled??r.crcEnabled?1:0,i=e.explicitHeader??r.explicitHeader?0:1,h=n>=11&&a<=125e3?1:0,u=a/1e3,o=Math.pow(2,n)/u,g=(c+4.25)*o,m=Math.max(8*t-4*n+28+16*d-20*i,0),p=4*(n-2*h),y=(8+Math.ceil(m/p)*l)*o;return g+y}function R(t,e={}){if(t.airtime_ms!==void 0&&t.airtime_ms>0)return t.airtime_ms;const n=L(t);return z(n,e)}function j(t){var n;const e=(n=t==null?void 0:t.config)==null?void 0:n.radio;return{spreadingFactor:(e==null?void 0:e.spreading_factor)??r.spreadingFactor,bandwidthHz:(e==null?void 0:e.bandwidth)??r.bandwidthHz,codingRate:(e==null?void 0:e.coding_rate)??r.codingRate,preambleLength:(e==null?void 0:e.preamble_length)??r.preambleLength,crcEnabled:!0,explicitHeader:!0}}const P=s.memo(function({value:e,format:n,prefix:a,suffix:l,className:c,priority:d="medium"}){const[i,h]=s.useState(!1),[u,o]=s.useState(e);s.useEffect(()=>A(()=>{h(!0),o(0)},d),[d]),s.useEffect(()=>{i&&o(e)},[i,e]);const g=`${a??""}${e.toLocaleString(void 0,n)}${l??""}`;return i?f.jsx(x,{className:`${c??""} overflow-hidden`,format:n,prefix:a,suffix:l,transition:w.numberTicker,children:u}):f.jsx("span",{className:c,children:g})});export{P as A,$ as E,L as a,R as g,j as r};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as h,r as u,j as e,c as t}from"./index-C1ZF7cAz.js";import{e as f,g as p,a as g,b as j,f as b}from"./chat-utils-BzC-Ehs-.js";/**
|
||||
import{d as h,r as u,j as e,c as t}from"./index-DhkG1Nx9.js";import{e as f,g as p,a as g,b as j,f as b}from"./chat-utils-DA-kxQ-o.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+32
File diff suppressed because one or more lines are too long
-32
File diff suppressed because one or more lines are too long
Vendored
+2
-2
@@ -1,6 +1,6 @@
|
||||
import{d as l,r as m,j as s,ac as x,dw as h,c as p,ad as f,dP as g,B as o}from"./index-C1ZF7cAz.js";import{T as j}from"./triangle-alert-B3ZB2VPZ.js";/**
|
||||
import{d as l,r as m,j as s,ag as x,dt as h,c as g,ah as p,dN as f,B as o}from"./index-DhkG1Nx9.js";import{T as j}from"./triangle-alert-D8NErBXC.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const u=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],M=l("trash-2",u),y={danger:"text-sys-red",warning:"text-sys-indigo",default:"text-sys-blue"},C={danger:"danger",warning:"warning",default:"primary"};function N({isOpen:t,title:n="Confirm",message:r,confirmLabel:i="Confirm",cancelLabel:c="Cancel",variant:e="default",onConfirm:d,onCancel:a}){return s.jsxs(x,{open:t,onClose:a,size:"sm",children:[s.jsx(h,{icon:s.jsx(j,{className:p("w-5 h-5",y[e])}),title:n,onClose:a}),s.jsx(f,{children:s.jsx("p",{className:"text-sm text-fg-secondary",children:r})}),s.jsxs(g,{children:[s.jsx(o,{color:"muted",onClick:a,className:"flex-1",children:c}),s.jsx(o,{color:C[e],onClick:d,className:"flex-1",children:i})]})]})}const w=m.memo(N);export{w as C,M as T};
|
||||
*/const u=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],M=l("trash-2",u),y={danger:"text-sys-red",warning:"text-sys-indigo",default:"text-sys-blue"},C={danger:"danger",warning:"warning",default:"primary"};function N({isOpen:t,title:n="Confirm",message:r,confirmLabel:i="Confirm",cancelLabel:c="Cancel",variant:e="default",onConfirm:d,onCancel:a}){return s.jsxs(x,{open:t,onClose:a,size:"sm",children:[s.jsx(h,{icon:s.jsx(j,{className:g("w-5 h-5",y[e])}),title:n,onClose:a}),s.jsx(p,{children:s.jsx("p",{className:"text-sm text-fg-secondary",children:r})}),s.jsxs(f,{children:[s.jsx(o,{color:"muted",onClick:a,className:"flex-1",children:c}),s.jsx(o,{color:C[e],onClick:d,className:"flex-1",children:i})]})]})}const A=m.memo(N);export{A as C,M as T};
|
||||
-52
File diff suppressed because one or more lines are too long
+52
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as L0,_ as ta,r as R,fg as ra,cW as e0,Z as j0,fh as Fo,fi as gs,fj as na,bG as oa,bM as ia,j as p,bO as sa,c as I0,a0 as ps,m as u0,ae as ys,A as R0,b as Ur,B as Ot,cX as la,bI as so,M as Po,S as Qo,cN as xs,L as Oo,bh as ws,ac as aa,R as vs,bc as dn,ad as ua,w as zo,b8 as gi,fk as ks,y as ca,E as fa,cV as ha,fl as da,a9 as bs,bj as pi,bl as ma,x as Ho,bK as ga,aD as pa,ed as Cs,fm as ya,bP as xa,fn as wa,fo as Es,$ as hn,b_ as va,fp as Ss,fq as ka,fr as ba,ah as Ms,q as y0,fs as Bs,by as Ca,fe as Ea,bB as Sa,cL as Ds,cO as Ma,H as Ba,ft as Da,ep as _a,fu as lo}from"./index-C1ZF7cAz.js";import{u as _s,b as Ar,S as X0,L as t0,P as Ta,c as Ra,M as ja,d as Ia,B as La}from"./BasemapLayer-CfNM-FKA.js";import{u as Ts,r as Rs,e as yi,f as xi,g as Na}from"./consumer-registry-CFnLzQEu.js";import{L as On,c as Fa}from"./link-scoring-BoRGGDM6.js";import{T as Go,C as Pa}from"./ConfirmModal-Cf30hpC_.js";import{b as Qa,e as Oa,a as js,m as wi,f as za,d as Ha,M as Ga,g as Ua,E as Va,u as Wa,G as Ya,h as Ka,i as Za,j as $a,D as qa}from"./DeepAnalysisModal-X0cTTPp0.js";import{H as Ja,A as un,Z as Xa,D as vi,p as Au,c as eu,u as ur}from"./useMapViewStore-px_sYTaN.js";import{R as Is}from"./refresh-cw-BjBvU2VX.js";import{E as Ls}from"./target-D0wbrQMn.js";import{F as tu}from"./funnel-zG3cM6J7.js";import{P as ru}from"./plus-BvRrZnfw.js";import{C as nu,a as Ns,b as ko,c as ou}from"./easing-BGz60jqS.js";import{D as iu}from"./download-DbDw1ZiV.js";import{W as su}from"./wifi-BBDEuc94.js";import{C as Fs}from"./SignalIndicator-BDLlaquA.js";import{C as lu}from"./chevron-right-DzbDJf-i.js";import{T as au,P as uu,R as cu}from"./Contacts-BwzeErAl.js";import{c as fu}from"./node-types-BJeLdOcD.js";import{H as ki,C as Lr,N as hu,a as du}from"./badge-colors-BNUqIXCA.js";import{L as mu}from"./LightSparkline-7x8sYJi9.js";import{M as gu}from"./map-pin-DEktgLFN.js";import"./triangle-alert-B3ZB2VPZ.js";import"./database-CdKnhwkJ.js";import"./index-DCNWD5GU.js";import"./usePipelineStore-BEu0jDzA.js";import"./ping-C4M-6OVJ.js";import"./PageLayout-sd81yog0.js";import"./listbox-vfp6JG3P.js";import"./element-movement-CuySBNA6.js";import"./TimeRangeStepper-CxA2aT1o.js";import"./chat-utils-BzC-Ehs-.js";import"./CollisionExplorerModal-Bm7X5dgz.js";import"./monitor-smartphone-BQ_i3P0U.js";import"./DataBox-BADtaCfB.js";import"./circle-question-mark-CxqvWhsl.js";import"./network-4dDTHizq.js";import"./activity-Bmh45lNn.js";import"./search-CtlrlrHK.js";/**
|
||||
import{d as L0,a1 as ta,r as R,ff as ra,cU as e0,Z as j0,fg as Fo,fh as gs,fi as na,bH as oa,bN as ia,j as p,bP as sa,c as I0,a3 as ps,m as u0,ai as ys,A as R0,b as Ur,B as Ot,cV as la,bJ as so,M as Po,S as Qo,cL as xs,L as Oo,e as ws,ag as aa,R as vs,bf as dn,ah as ua,y as zo,bb as gi,fj as ks,D as ca,G as fa,cT as ha,fk as da,ad as bs,bl as pi,bn as ma,z as Ho,bL as ga,aG as pa,eb as Cs,fl as ya,bQ as xa,fm as wa,fn as Es,a2 as hn,b_ as va,fo as Ss,fp as ka,fq as ba,al as Ms,v as y0,fr as Bs,bz as Ca,fd as Ea,bC as Sa,cJ as Ds,cM as Ma,K as Ba,fs as Da,en as _a,ft as lo}from"./index-DhkG1Nx9.js";import{u as _s,b as Ar,S as X0,L as t0,P as Ta,c as Ra,M as ja,d as Ia,B as La}from"./BasemapLayer-CfNeG6Jg.js";import{u as Ts,r as Rs,e as yi,f as xi,g as Na}from"./consumer-registry-CTQIn0m9.js";import{L as On,c as Fa}from"./link-scoring-Ctdu509L.js";import{T as Go,C as Pa}from"./ConfirmModal-BoB1If6b.js";import{b as Qa,e as Oa,a as js,m as wi,f as za,d as Ha,M as Ga,g as Ua,E as Va,u as Wa,G as Ya,h as Ka,i as Za,j as $a,D as qa}from"./DeepAnalysisModal-DuvRb3Nu.js";import{H as Ja,A as un,Z as Xa,D as vi,p as Au,c as eu,u as ur}from"./useMapViewStore-BMqcaUNl.js";import{R as Is}from"./refresh-cw-CA_1u8Jn.js";import{E as Ls}from"./target-BiAgFlf5.js";import{F as tu}from"./funnel-Dr2cCUci.js";import{P as ru}from"./plus-Pe5yI_FS.js";import{C as nu,a as Ns,b as ko,c as ou}from"./easing-Ch_Y3tms.js";import{D as iu}from"./download-d0PZoGJ2.js";import{W as su}from"./wifi-u03iIDZF.js";import{C as Fs}from"./SignalIndicator-DEXVYOhU.js";import{C as lu}from"./chevron-right-na13OQfy.js";import{T as au,P as uu,R as cu}from"./Contacts-DPHkM_MR.js";import{c as fu}from"./node-types-CgBRFpS8.js";import{H as ki,C as Lr,N as hu,a as du}from"./badge-colors-BNUqIXCA.js";import{L as mu}from"./LightSparkline-Bg_XrgTS.js";import{M as gu}from"./map-pin-BHGohRD7.js";import"./triangle-alert-D8NErBXC.js";import"./database-DE8k8U0g.js";import"./index-Bx_G2nLG.js";import"./usePipelineStore-B9ir1Xwp.js";import"./ping-CLlM2Uim.js";import"./PageLayout-BkUTZXJb.js";import"./listbox-CyP6uw8j.js";import"./element-movement-BPGrReFv.js";import"./TimeRangeStepper-RSPVaByt.js";import"./chat-utils-DA-kxQ-o.js";import"./CollisionExplorerModal-Cs8y9_83.js";import"./monitor-smartphone-jV9bAwUA.js";import"./DataBox-BMesbbaF.js";import"./circle-question-mark--xh93QHC.js";import"./network-DBF70fah.js";import"./activity-BG24yKp1.js";import"./search-BmkxxIVP.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
-54
File diff suppressed because one or more lines are too long
+55
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{r as u,j as a,c as r,w as T,x as N}from"./index-C1ZF7cAz.js";const E={standard:"w-3 h-3",compact:"w-2.5 h-2.5",responsive:"w-2.5 h-2.5 sm:w-3 sm:h-3"};function k(t){var s;if(typeof window<"u"&&(window.isSecureContext||window.location.protocol==="https:"||window.location.hostname==="localhost")&&((s=navigator.clipboard)!=null&&s.writeText))return navigator.clipboard.writeText(t).catch(()=>{}),!0;try{const{scrollX:o,scrollY:i}=window,e=document.createElement("textarea");e.value=t,e.style.cssText="position:fixed;left:-9999px;top:-9999px;opacity:0;pointer-events:none",e.setAttribute("readonly",""),document.body.appendChild(e),e.focus({preventScroll:!0}),e.select(),e.setSelectionRange(0,t.length);const l=document.execCommand("copy");return document.body.removeChild(e),window.scrollTo(o,i),l}catch(o){return console.error("Copy failed:",o),!1}}function $({children:t,copyValue:x,copy:s=!1,size:o="standard",className:i,title:e,color:l,truncate:d}){const[m,y]=u.useState(!1),[S,w]=u.useState(!1),f=u.useRef(null),c=x??(typeof t=="string"?t:""),C=E[o],h=(()=>{if(!d||typeof t!="string")return t;const n=t,[p,g]=d===!0?[6,4]:d;return n.length<=p+g+3?n:`${n.slice(0,p)}…${n.slice(-g)}`})(),j=u.useCallback(n=>{if(!s)return;n.preventDefault(),n.stopPropagation(),f.current&&clearTimeout(f.current);const p=k(c);y(!0),f.current=setTimeout(()=>y(!1),2e3),p||console.warn("Copy may have failed for:",c.slice(0,16)+"...")},[s,c]),v=o==="compact"?"data-box-compact":o==="responsive"?"data-box-responsive":"",b=s?e||`Click to copy: ${c}`:e;return s?a.jsxs("button",{type:"button",onClick:j,onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),className:r("data-box interactive",v,"cursor-pointer select-none gap-1","hover-bg",l,i),title:b,"aria-label":`Copy ${c}`,children:[a.jsx("span",{className:r("transition-colors duration-200",m?"text-sys-green":""),children:h}),a.jsx("span",{className:r("flex items-center justify-center",o==="compact"?"w-3 h-3":"w-3.5 h-3.5"),children:m?a.jsx(T,{className:r("text-sys-green",C)}):a.jsx(N,{className:r("transition-opacity duration-200",S?"opacity-70":"opacity-40",C)})})]}):a.jsx("span",{className:r("data-box",v,l,i),title:b,children:h})}export{$ as D};
|
||||
import{r as u,j as a,c as r,y as T,z as N}from"./index-DhkG1Nx9.js";const E={standard:"w-3 h-3",compact:"w-2.5 h-2.5",responsive:"w-2.5 h-2.5 sm:w-3 sm:h-3"};function k(t){var s;if(typeof window<"u"&&(window.isSecureContext||window.location.protocol==="https:"||window.location.hostname==="localhost")&&((s=navigator.clipboard)!=null&&s.writeText))return navigator.clipboard.writeText(t).catch(()=>{}),!0;try{const{scrollX:o,scrollY:i}=window,e=document.createElement("textarea");e.value=t,e.style.cssText="position:fixed;left:-9999px;top:-9999px;opacity:0;pointer-events:none",e.setAttribute("readonly",""),document.body.appendChild(e),e.focus({preventScroll:!0}),e.select(),e.setSelectionRange(0,t.length);const l=document.execCommand("copy");return document.body.removeChild(e),window.scrollTo(o,i),l}catch(o){return console.error("Copy failed:",o),!1}}function $({children:t,copyValue:x,copy:s=!1,size:o="standard",className:i,title:e,color:l,truncate:d}){const[m,y]=u.useState(!1),[S,w]=u.useState(!1),f=u.useRef(null),c=x??(typeof t=="string"?t:""),C=E[o],h=(()=>{if(!d||typeof t!="string")return t;const n=t,[p,g]=d===!0?[6,4]:d;return n.length<=p+g+3?n:`${n.slice(0,p)}…${n.slice(-g)}`})(),j=u.useCallback(n=>{if(!s)return;n.preventDefault(),n.stopPropagation(),f.current&&clearTimeout(f.current);const p=k(c);y(!0),f.current=setTimeout(()=>y(!1),2e3),p||console.warn("Copy may have failed for:",c.slice(0,16)+"...")},[s,c]),v=o==="compact"?"data-box-compact":o==="responsive"?"data-box-responsive":"",b=s?e||`Click to copy: ${c}`:e;return s?a.jsxs("button",{type:"button",onClick:j,onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),className:r("data-box interactive",v,"cursor-pointer select-none gap-1","hover-bg",l,i),title:b,"aria-label":`Copy ${c}`,children:[a.jsx("span",{className:r("transition-colors duration-200",m?"text-sys-green":""),children:h}),a.jsx("span",{className:r("flex items-center justify-center",o==="compact"?"w-3 h-3":"w-3.5 h-3.5"),children:m?a.jsx(T,{className:r("text-sys-green",C)}):a.jsx(N,{className:r("transition-opacity duration-200",S?"opacity-70":"opacity-40",C)})})]}):a.jsx("span",{className:r("data-box",v,l,i),title:b,children:h})}export{$ as D};
|
||||
+4
-4
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{r as b,j as c,c as d}from"./index-C1ZF7cAz.js";const g={hero:{mobile:12},"hero-tall":{mobile:12},"hero-auto":{mobile:12},panel:{mobile:12,md:6},feature:{mobile:12,md:6,lg:4},standard:{mobile:12,sm:6,lg:4,xl:3},compact:{mobile:6,lg:3},widget:{mobile:6,sm:4,md:3,lg:2},auto:{mobile:12}},p={hero:"bento-row-hero","hero-tall":"bento-row-hero-tall","hero-auto":"bento-row-hero-auto",panel:"bento-row-panel",feature:"bento-row-feature",standard:"bento-row-standard",compact:"bento-row-compact",widget:"bento-row-widget",auto:"bento-row-auto"};function w({template:o,children:r,className:e,gap:n}){const t=g[o],m=p[o],a=n==="none"?"gap-0":n==="sm"?"bento-gap-sm":n==="lg"?"bento-gap-lg":"bento-gap",i=b.Children.map(r,l=>!b.isValidElement(l)||l.type===u?l:c.jsx(u,{span:t.mobile,sm:t.sm,md:t.md,lg:t.lg,xl:t.xl,children:l}));return c.jsx("div",{className:d("bento-row",m,a,e),children:i})}function s(o,r=""){const e=r?`${r}:`:"";return o==="full"?`${e}col-span-full`:o==="auto"?`${e}col-auto`:o===1.5?`${e}bento-col-1-5`:`${e}bento-col-${o}`}function u({children:o,span:r,sm:e,md:n,lg:t,xl:m,ratio:a,className:i}){const l=d("bento-cell",s(r),e&&s(e,"sm"),n&&s(n,"md"),t&&s(t,"lg"),m&&s(m,"xl"),i);return c.jsx("div",{className:l,"data-ratio":a??void 0,style:a?{"--cell-ratio":a}:void 0,children:o})}export{u as C,w as R};
|
||||
import{r as b,j as c,c as d}from"./index-DhkG1Nx9.js";const g={hero:{mobile:12},"hero-tall":{mobile:12},"hero-auto":{mobile:12},panel:{mobile:12,md:6},feature:{mobile:12,md:6,lg:4},standard:{mobile:12,sm:6,lg:4,xl:3},compact:{mobile:6,lg:3},widget:{mobile:6,sm:4,md:3,lg:2},auto:{mobile:12}},p={hero:"bento-row-hero","hero-tall":"bento-row-hero-tall","hero-auto":"bento-row-hero-auto",panel:"bento-row-panel",feature:"bento-row-feature",standard:"bento-row-standard",compact:"bento-row-compact",widget:"bento-row-widget",auto:"bento-row-auto"};function w({template:o,children:r,className:e,gap:n}){const t=g[o],m=p[o],a=n==="none"?"gap-0":n==="sm"?"bento-gap-sm":n==="lg"?"bento-gap-lg":"bento-gap",i=b.Children.map(r,l=>!b.isValidElement(l)||l.type===u?l:c.jsx(u,{span:t.mobile,sm:t.sm,md:t.md,lg:t.lg,xl:t.xl,children:l}));return c.jsx("div",{className:d("bento-row",m,a,e),children:i})}function s(o,r=""){const e=r?`${r}:`:"";return o==="full"?`${e}col-span-full`:o==="auto"?`${e}col-auto`:o===1.5?`${e}bento-col-1-5`:`${e}bento-col-${o}`}function u({children:o,span:r,sm:e,md:n,lg:t,xl:m,ratio:a,className:i}){const l=d("bento-cell",s(r),e&&s(e,"sm"),n&&s(n,"md"),t&&s(t,"lg"),m&&s(m,"xl"),i);return c.jsx("div",{className:l,"data-ratio":a??void 0,style:a?{"--cell-ratio":a}:void 0,children:o})}export{u as C,w as R};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{r as l,j as t,Z as O}from"./index-C1ZF7cAz.js";import{b as F,c as x}from"./keycap-sfx-ByZp-njj.js";const R={a:"24,3 76,3 83,7 76,11 24,11 17,7",b:"88,22 93,27 93,71 88,76 83,71 83,27",c:"88,106 93,111 93,155 88,160 83,155 83,111",d:"24,171 76,171 83,175 76,179 24,179 17,175",e:"12,106 17,111 17,155 12,160 7,155 7,111",f:"12,22 17,27 17,71 12,76 7,71 7,27",g:"24,86 76,86 83,91 76,96 24,96 17,91"},w=Object.keys(R),N={0:"abcdef",1:"bc",2:"abdeg",3:"abcdg",4:"bcfg",5:"acdfg",6:"acdefg",7:"abc",8:"abcdefg",9:"abcdfg",A:"abcefg",B:"cdefg",C:"adef",D:"bcdeg",E:"adefg",F:"aefg",G:"acdef",H:"bcefg",I:"ef",J:"bcde",L:"def",M:"abcefg",N:"ceg",O:"abcdef",P:"abefg",Q:"abcfg",R:"eg",S:"acdfg",T:"defg",U:"bcdef",V:"cde",Y:"bcdfg",Z:"abdeg",a:"abcefg",b:"cdefg",c:"deg",d:"bcdeg",e:"adefg",f:"aefg",g:"abcdfg",h:"cefg",i:"c",j:"bcde",l:"def",m:"abcef",n:"ceg",o:"cdeg",p:"abefg",r:"eg",s:"acdfg",t:"defg",u:"cde",v:"cde",y:"bcdfg"," ":"",_:"d","-":"g","=":"dg","°":"abfg",'"':"bf","'":"f","(":"adef",")":"abcd","[":"adef","]":"abcd","!":"bc",".":"d"},C=6,D=56,L=2;function B(){return w.filter(()=>Math.random()>.45).join("")}function $(r,i){const n=Array.from(r).map(a=>N[a.toUpperCase()]??N[a]??""),d=Math.max(0,(i??0)-r.length);for(let a=0;a<d;a++)n.push("");return n}function Y({text:r,color:i="currentColor",size:n=18,minChars:d,noCycle:a=!1,className:S}){const h=Math.round(n*.5494505494505495),M=document.documentElement.dataset.mode==="light"?.08:.16,[T,f]=l.useState(null);l.useEffect(()=>{if(a)return;const e=$(r,d),o=e.length,g=C+(o-1)*L;let y=0,b,E=!1;const k=()=>{if(!E){if(y++,y>=g){f(null);return}f(e.map((j,_)=>{const v=C+_*L;return y>=v?j:B()})),b=setTimeout(k,D)}};return k(),()=>{E=!0,clearTimeout(b)}},[r,d,a]);const c=(e,o)=>t.jsx("svg",{viewBox:"0 0 100 182",width:h,height:n,className:"seven-seg__char","aria-hidden":"true",children:w.map(g=>t.jsx("polygon",{points:R[g],fill:i,stroke:i,strokeWidth:4,strokeLinejoin:"round",opacity:e.includes(g)?1:M},g))},o),s=$(r,d),u=T??s;return t.jsxs("span",{className:`seven-seg${S?` ${S}`:""}`,children:[u.map((e,o)=>c(e,`${o}-${e}`)),t.jsx("span",{className:"sr-only",children:r})]})}const G={grey:"/assets/keycap.svg",red:"/assets/keycap-red.svg"},I=O[900],P="#FFDEB0";function Z({icon:r,variant:i="grey",onClick:n,onPress:d,sentDuration:a=2e3,title:S,disabled:h=!1,className:m,iconColor:M=I,iconActiveColor:T=P,indicators:f}){const c=!!d,[s,u]=l.useState("idle"),[e,o]=l.useState(!1),g=l.useRef(),y=c?s==="held":e,b=c&&(s==="sending"||s==="sent"),E=c?s==="held"||s==="sending":e;l.useEffect(()=>()=>clearTimeout(g.current),[]);const k=l.useCallback(()=>{h||b||(F(),c?u("held"):o(!0))},[h,b,c]),j=l.useCallback(async()=>{if(c){if(s!=="held")return;x(),u("sending");const p=await d();u(p?"sent":"idle"),p&&(g.current=setTimeout(()=>u("idle"),a))}else{if(!e)return;o(!1),x(),n==null||n()}},[c,s,d,a,e,n]),_=l.useCallback(()=>{c?s==="held"&&(x(),u("idle")):(e&&x(),o(!1))},[c,s,e]),v=t.jsx("button",{onMouseDown:k,onMouseUp:j,onMouseLeave:_,onTouchStart:k,onTouchEnd:j,onTouchCancel:_,disabled:h||b,className:`keycap-btn${i==="red"?" keycap-btn--red-cap":""}${E?" keycap-btn--pressed":""}${m&&!f?` ${m}`:""}`,title:S,children:t.jsxs("div",{className:"keycap-wrap",children:[t.jsx("img",{src:G[i],alt:"",className:"keycap-btn__img",draggable:!1}),t.jsx("span",{className:"keycap-icon-overlay",style:{color:y||s==="sending"?T:M},children:r})]})});return f!=null&&f.length?t.jsxs("div",{className:`keycap-group${m?` ${m}`:""}`,children:[v,t.jsx("div",{className:"indicator-key-pair",children:f.map(p=>{const A=p.trackPress?s:p.active?"active":"idle";return t.jsxs("div",{className:`indicator-key${A!=="idle"?` indicator-key--${A}`:""}`,children:[t.jsx("span",{className:"indicator-key__label",children:p.label}),t.jsx("span",{className:"indicator-key__led"})]},p.label)})})]}):v}export{Z as K,Y as S};
|
||||
import{r as l,j as t,Z as O}from"./index-DhkG1Nx9.js";import{b as F,c as x}from"./keycap-sfx-ByZp-njj.js";const R={a:"24,3 76,3 83,7 76,11 24,11 17,7",b:"88,22 93,27 93,71 88,76 83,71 83,27",c:"88,106 93,111 93,155 88,160 83,155 83,111",d:"24,171 76,171 83,175 76,179 24,179 17,175",e:"12,106 17,111 17,155 12,160 7,155 7,111",f:"12,22 17,27 17,71 12,76 7,71 7,27",g:"24,86 76,86 83,91 76,96 24,96 17,91"},w=Object.keys(R),N={0:"abcdef",1:"bc",2:"abdeg",3:"abcdg",4:"bcfg",5:"acdfg",6:"acdefg",7:"abc",8:"abcdefg",9:"abcdfg",A:"abcefg",B:"cdefg",C:"adef",D:"bcdeg",E:"adefg",F:"aefg",G:"acdef",H:"bcefg",I:"ef",J:"bcde",L:"def",M:"abcefg",N:"ceg",O:"abcdef",P:"abefg",Q:"abcfg",R:"eg",S:"acdfg",T:"defg",U:"bcdef",V:"cde",Y:"bcdfg",Z:"abdeg",a:"abcefg",b:"cdefg",c:"deg",d:"bcdeg",e:"adefg",f:"aefg",g:"abcdfg",h:"cefg",i:"c",j:"bcde",l:"def",m:"abcef",n:"ceg",o:"cdeg",p:"abefg",r:"eg",s:"acdfg",t:"defg",u:"cde",v:"cde",y:"bcdfg"," ":"",_:"d","-":"g","=":"dg","°":"abfg",'"':"bf","'":"f","(":"adef",")":"abcd","[":"adef","]":"abcd","!":"bc",".":"d"},C=6,D=56,L=2;function B(){return w.filter(()=>Math.random()>.45).join("")}function $(r,i){const n=Array.from(r).map(a=>N[a.toUpperCase()]??N[a]??""),d=Math.max(0,(i??0)-r.length);for(let a=0;a<d;a++)n.push("");return n}function Y({text:r,color:i="currentColor",size:n=18,minChars:d,noCycle:a=!1,className:S}){const h=Math.round(n*.5494505494505495),M=document.documentElement.dataset.mode==="light"?.08:.16,[T,f]=l.useState(null);l.useEffect(()=>{if(a)return;const e=$(r,d),o=e.length,g=C+(o-1)*L;let y=0,b,E=!1;const k=()=>{if(!E){if(y++,y>=g){f(null);return}f(e.map((j,_)=>{const v=C+_*L;return y>=v?j:B()})),b=setTimeout(k,D)}};return k(),()=>{E=!0,clearTimeout(b)}},[r,d,a]);const c=(e,o)=>t.jsx("svg",{viewBox:"0 0 100 182",width:h,height:n,className:"seven-seg__char","aria-hidden":"true",children:w.map(g=>t.jsx("polygon",{points:R[g],fill:i,stroke:i,strokeWidth:4,strokeLinejoin:"round",opacity:e.includes(g)?1:M},g))},o),s=$(r,d),u=T??s;return t.jsxs("span",{className:`seven-seg${S?` ${S}`:""}`,children:[u.map((e,o)=>c(e,`${o}-${e}`)),t.jsx("span",{className:"sr-only",children:r})]})}const G={grey:"/assets/keycap.svg",red:"/assets/keycap-red.svg"},I=O[900],P="#FFDEB0";function Z({icon:r,variant:i="grey",onClick:n,onPress:d,sentDuration:a=2e3,title:S,disabled:h=!1,className:m,iconColor:M=I,iconActiveColor:T=P,indicators:f}){const c=!!d,[s,u]=l.useState("idle"),[e,o]=l.useState(!1),g=l.useRef(),y=c?s==="held":e,b=c&&(s==="sending"||s==="sent"),E=c?s==="held"||s==="sending":e;l.useEffect(()=>()=>clearTimeout(g.current),[]);const k=l.useCallback(()=>{h||b||(F(),c?u("held"):o(!0))},[h,b,c]),j=l.useCallback(async()=>{if(c){if(s!=="held")return;x(),u("sending");const p=await d();u(p?"sent":"idle"),p&&(g.current=setTimeout(()=>u("idle"),a))}else{if(!e)return;o(!1),x(),n==null||n()}},[c,s,d,a,e,n]),_=l.useCallback(()=>{c?s==="held"&&(x(),u("idle")):(e&&x(),o(!1))},[c,s,e]),v=t.jsx("button",{onMouseDown:k,onMouseUp:j,onMouseLeave:_,onTouchStart:k,onTouchEnd:j,onTouchCancel:_,disabled:h||b,className:`keycap-btn${i==="red"?" keycap-btn--red-cap":""}${E?" keycap-btn--pressed":""}${m&&!f?` ${m}`:""}`,title:S,children:t.jsxs("div",{className:"keycap-wrap",children:[t.jsx("img",{src:G[i],alt:"",className:"keycap-btn__img",draggable:!1}),t.jsx("span",{className:"keycap-icon-overlay",style:{color:y||s==="sending"?T:M},children:r})]})});return f!=null&&f.length?t.jsxs("div",{className:`keycap-group${m?` ${m}`:""}`,children:[v,t.jsx("div",{className:"indicator-key-pair",children:f.map(p=>{const A=p.trackPress?s:p.active?"active":"idle";return t.jsxs("div",{className:`indicator-key${A!=="idle"?` indicator-key--${A}`:""}`,children:[t.jsx("span",{className:"indicator-key__label",children:p.label}),t.jsx("span",{className:"indicator-key__led"})]},p.label)})})]}):v}export{Z as K,Y as S};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{r as m,j as u}from"./index-C1ZF7cAz.js";const a="var(--sparkline-critical)",C="var(--sparkline-poor)",L="var(--sparkline-fair)",g="var(--sparkline-good)",y="var(--sparkline-excellent)",$="var(--fg-muted)";function j(o){if(o.length===0)return a;const r=o.slice(-4),e=r.reduce((t,c)=>t+c.count,0),n=e/r.length,l=o.reduce((t,c)=>t+c.count,0)/o.length;if(e===0)return a;if(l>0){const t=n/l;return t>=1.2?y:t>=.8?g:t>=.4?L:t>=.1?C:a}return e>=10?y:e>=5?g:e>=2?L:e>=1?C:a}function h(o,r,e,n=2){if(o.length<2)return"";const s=o.map(i=>i.count),l=Math.max(...s,1),t=Math.min(...s),c=l-t||1,p=r-n*2,O=e-n*2,x=s.map((i,f)=>({x:n+f/(s.length-1)*p,y:n+O-(i-t)/c*O}));let k=`M ${x[0].x.toFixed(1)} ${x[0].y.toFixed(1)}`;for(let i=1;i<x.length;i++){const f=x[i-1],v=x[i],R=(f.x+v.x)/2;k+=` Q ${R.toFixed(1)} ${f.y.toFixed(1)} ${v.x.toFixed(1)} ${v.y.toFixed(1)}`}return k}const A=m.memo(function({data:r,width:e=48,height:n=16,color:s,isLoading:l=!1,className:t=""}){const c=m.useMemo(()=>h(r,e,n),[r,e,n]),p=m.useMemo(()=>s??(r.length>0?j(r):$),[s,r]);return l&&r.length<2?u.jsx("div",{className:`flex items-center justify-center ${t}`,style:{width:e,height:n},children:u.jsx("div",{className:"rounded animate-pulse bg-subtle-fill-hover",style:{width:e-8,height:n-6}})}):r.length<2?u.jsx("svg",{width:e,height:n,viewBox:`0 0 ${e} ${n}`,className:t,"aria-hidden":"true",children:u.jsx("line",{x1:4,y1:n/2,x2:e-4,y2:n/2,stroke:a,strokeWidth:1.5,strokeDasharray:"3,2"})}):u.jsx("svg",{width:e,height:n,viewBox:`0 0 ${e} ${n}`,preserveAspectRatio:"none",className:t,"aria-hidden":"true",style:{maxWidth:"100%"},children:u.jsx("path",{d:c,fill:"none",stroke:p,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})})});export{A as L};
|
||||
import{r as m,j as u}from"./index-DhkG1Nx9.js";const a="var(--sparkline-critical)",C="var(--sparkline-poor)",L="var(--sparkline-fair)",g="var(--sparkline-good)",y="var(--sparkline-excellent)",$="var(--fg-muted)";function j(o){if(o.length===0)return a;const r=o.slice(-4),e=r.reduce((t,c)=>t+c.count,0),n=e/r.length,l=o.reduce((t,c)=>t+c.count,0)/o.length;if(e===0)return a;if(l>0){const t=n/l;return t>=1.2?y:t>=.8?g:t>=.4?L:t>=.1?C:a}return e>=10?y:e>=5?g:e>=2?L:e>=1?C:a}function h(o,r,e,n=2){if(o.length<2)return"";const s=o.map(i=>i.count),l=Math.max(...s,1),t=Math.min(...s),c=l-t||1,p=r-n*2,O=e-n*2,x=s.map((i,f)=>({x:n+f/(s.length-1)*p,y:n+O-(i-t)/c*O}));let k=`M ${x[0].x.toFixed(1)} ${x[0].y.toFixed(1)}`;for(let i=1;i<x.length;i++){const f=x[i-1],v=x[i],R=(f.x+v.x)/2;k+=` Q ${R.toFixed(1)} ${f.y.toFixed(1)} ${v.x.toFixed(1)} ${v.y.toFixed(1)}`}return k}const A=m.memo(function({data:r,width:e=48,height:n=16,color:s,isLoading:l=!1,className:t=""}){const c=m.useMemo(()=>h(r,e,n),[r,e,n]),p=m.useMemo(()=>s??(r.length>0?j(r):$),[s,r]);return l&&r.length<2?u.jsx("div",{className:`flex items-center justify-center ${t}`,style:{width:e,height:n},children:u.jsx("div",{className:"rounded animate-pulse bg-subtle-fill-hover",style:{width:e-8,height:n-6}})}):r.length<2?u.jsx("svg",{width:e,height:n,viewBox:`0 0 ${e} ${n}`,className:t,"aria-hidden":"true",children:u.jsx("line",{x1:4,y1:n/2,x2:e-4,y2:n/2,stroke:a,strokeWidth:1.5,strokeDasharray:"3,2"})}):u.jsx("svg",{width:e,height:n,viewBox:`0 0 ${e} ${n}`,preserveAspectRatio:"none",className:t,"aria-hidden":"true",style:{maxWidth:"100%"},children:u.jsx("path",{d:c,fill:"none",stroke:p,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})})});export{A as L};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
-11
@@ -1,11 +0,0 @@
|
||||
import{d as g,db as y,dc as f,D as j,dd as L,de as v,r as o,df as N,j as e,dg as m,F as w,B as b,c as n,dh as k,d0 as C,m as S,di as E}from"./index-C1ZF7cAz.js";import{P,a as R,B,C as I}from"./PageLayout-sd81yog0.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const D=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],M=g("circle-play",D);/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const T=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],_=g("circle-stop",T),F=o.memo(function({log:t}){return e.jsx(S.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.15,ease:"easeOut"},className:"p-3 bg-subtle-fill/80 radius-inner depth-stroke-raised hover:bg-subtle-fill-strong transition-base",children:e.jsxs("div",{className:"flex items-baseline gap-3",children:[e.jsx("span",{className:n("type-data-sm w-14 shrink-0",E(t.level)),children:t.level}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"type-data-sm text-fg-primary break-words whitespace-pre-wrap",children:t.message}),e.jsx("p",{className:"type-data-xs text-fg-muted mt-1",children:new Date(t.timestamp).toLocaleString()})]})]})})});function G({showDebug:s,onToggle:t}){return e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:n("type-data-sm",s?"text-sys-orange":"text-sys-cyan"),children:s?"DEBUG":"INFO"}),e.jsx(C,{enabled:s,onChange:t,size:"sm"})]})}function $(){const s=y(),t=f(),c=j(),i=L(),x=v(),[r,h]=o.useState(!1),u=o.useCallback(()=>{h(a=>!a)},[]),d=r?s:s.filter(a=>a.level!=="DEBUG"),l=o.useRef(i);return l.current=i,o.useEffect(()=>{if(!c)return;l.current();const a=setInterval(()=>l.current(),N.logs);return()=>clearInterval(a)},[c]),e.jsxs(P,{children:[e.jsx(R,{title:"System Logs",icon:e.jsx(m,{}),controls:e.jsx(G,{showDebug:r,onToggle:u})}),e.jsx(B,{children:e.jsxs(I,{neomorphic:!0,noPadding:!0,children:[e.jsx(w,{listHeader:!0,icon:e.jsx(m,{className:"icon-sm"}),title:"Log Entries",actions:e.jsx(b,{plain:!0,color:c?"danger":"primary",onClick:()=>x(!c),title:c?"Pause":"Resume",className:n(!c&&"animate-pulse-slow"),children:c?e.jsx(_,{"data-slot":"icon",className:"!w-5 !h-5"}):e.jsx(M,{"data-slot":"icon",className:"!w-5 !h-5"})})}),e.jsx("div",{className:"space-y-2 max-h-[calc(100dvh-226px)] sm:max-h-[calc(100dvh-234px)] lg:max-h-[calc(100vh-194px)] overflow-y-auto p-4",children:t&&s.length===0?e.jsx(k,{count:10}):d.length===0?e.jsx("div",{className:"text-center py-12 text-fg-muted",children:s.length===0?"No logs available":"No logs match selected filters"}):d.map((a,p)=>e.jsx(F,{log:a},`${a.timestamp}-${p}`))})]})})]})}export{$ as default};
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
import{d as g,d8 as y,d9 as f,F as j,da as L,db as v,r as o,dc as N,j as e,dd as m,H as w,B as b,c as n,de as k,c_ as C,m as S,df as E}from"./index-DhkG1Nx9.js";import{P,a as R,B,C as I}from"./PageLayout-BkUTZXJb.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const _=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],M=g("circle-play",_);/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const T=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],D=g("circle-stop",T),F=o.memo(function({log:a}){return e.jsx(S.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.15,ease:"easeOut"},className:"p-3 bg-subtle-fill/80 radius-inner depth-stroke-raised hover:bg-subtle-fill-strong transition-base",children:e.jsxs("div",{className:"flex items-baseline gap-3",children:[e.jsx("span",{className:n("type-data-sm w-14 shrink-0",E(a.level)),children:a.level}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"type-data-sm text-fg-primary break-words whitespace-pre-wrap",children:a.message}),e.jsx("p",{className:"type-data-xs text-fg-muted mt-1",children:new Date(a.timestamp).toLocaleString()})]})]})})});function H({showDebug:s,onToggle:a}){return e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:n("type-data-sm",s?"text-sys-orange":"text-sys-cyan"),children:s?"DEBUG":"INFO"}),e.jsx(C,{enabled:s,onChange:a,size:"sm"})]})}function $(){const s=y(),a=f(),c=j(),i=L(),x=v(),[r,u]=o.useState(!1),h=o.useCallback(()=>{u(t=>!t)},[]),d=r?s:s.filter(t=>t.level!=="DEBUG"),l=o.useRef(i);return l.current=i,o.useEffect(()=>{if(!c)return;l.current();const t=setInterval(()=>l.current(),N.logs);return()=>clearInterval(t)},[c]),e.jsxs(P,{children:[e.jsx(R,{title:"System Logs",icon:e.jsx(m,{}),controls:e.jsx(H,{showDebug:r,onToggle:h})}),e.jsx(B,{ready:!0,children:e.jsxs(I,{neomorphic:!0,noPadding:!0,children:[e.jsx(w,{listHeader:!0,icon:e.jsx(m,{className:"icon-sm"}),title:"Log Entries",actions:e.jsx(b,{plain:!0,color:c?"danger":"primary",onClick:()=>x(!c),title:c?"Pause":"Resume",className:n(!c&&"animate-pulse-slow"),children:c?e.jsx(D,{"data-slot":"icon",className:"!w-5 !h-5"}):e.jsx(M,{"data-slot":"icon",className:"!w-5 !h-5"})})}),e.jsx("div",{className:"space-y-2 max-h-[calc(100dvh-226px)] sm:max-h-[calc(100dvh-234px)] lg:max-h-[calc(100vh-194px)] overflow-y-auto p-4",children:a&&s.length===0?e.jsx(k,{count:10}):d.length===0?e.jsx("div",{className:"text-center py-12 text-fg-muted",children:s.length===0?"No logs available":"No logs match selected filters"}):d.map((t,p)=>e.jsx(F,{log:t},`${t.timestamp}-${p}`))})]})})]})}export{$ as default};
|
||||
+3
-3
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{j as s,F as i,R as d,cJ as c}from"./index-C1ZF7cAz.js";import{C as n}from"./PageLayout-sd81yog0.js";import{D as m}from"./DataBox-BADtaCfB.js";function j({nodeName:e,repeaterVersion:a,coreVersion:t,localHash:r,publicKey:l}){return s.jsxs(n,{neomorphic:!0,children:[s.jsx(i,{icon:s.jsx(d,{}),title:"Node Information"}),s.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-3 sm:gap-4",children:[s.jsxs("div",{className:"min-w-0 col-span-2 sm:col-span-1",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Node Name"}),s.jsx("p",{className:"type-body text-fg-primary mt-0.5 sm:mt-1 truncate",title:e,children:e})]}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Repeater"}),s.jsxs("p",{className:"type-data text-fg-primary mt-0.5 sm:mt-1 truncate",title:`v${a}`,children:["v",a]})]}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Core"}),s.jsxs("p",{className:"type-data text-fg-primary mt-0.5 sm:mt-1 truncate",title:`v${t}`,children:["v",t]})]}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Console"}),s.jsxs("p",{className:"type-data text-fg-primary mt-0.5 sm:mt-1 truncate",title:`v${c}`,children:["v",c]})]}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Local Hash"}),s.jsx("div",{className:"mt-0.5 sm:mt-1",children:r?s.jsx(m,{copy:!0,size:"compact",children:r}):s.jsx("span",{className:"type-data-sm text-fg-secondary",children:"N/A"})})]})]}),l&&s.jsxs("div",{className:"mt-3 sm:mt-4 pt-3 sm:pt-4 border-t border-edge-subtle",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Public Key"}),s.jsx("div",{className:"mt-0.5 sm:mt-1",children:s.jsx(m,{copy:!0,size:"responsive",children:l})})]})]})}export{j as N};
|
||||
import{j as s,H as i,R as d,cH as c}from"./index-DhkG1Nx9.js";import{C as n}from"./PageLayout-BkUTZXJb.js";import{D as m}from"./DataBox-BMesbbaF.js";function j({nodeName:e,repeaterVersion:a,coreVersion:t,localHash:r,publicKey:l}){return s.jsxs(n,{neomorphic:!0,children:[s.jsx(i,{icon:s.jsx(d,{}),title:"Node Information"}),s.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-3 sm:gap-4",children:[s.jsxs("div",{className:"min-w-0 col-span-2 sm:col-span-1",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Node Name"}),s.jsx("p",{className:"type-body text-fg-primary mt-0.5 sm:mt-1 truncate",title:e,children:e})]}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Repeater"}),s.jsxs("p",{className:"type-data text-fg-primary mt-0.5 sm:mt-1 truncate",title:`v${a}`,children:["v",a]})]}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Core"}),s.jsxs("p",{className:"type-data text-fg-primary mt-0.5 sm:mt-1 truncate",title:`v${t}`,children:["v",t]})]}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Console"}),s.jsxs("p",{className:"type-data text-fg-primary mt-0.5 sm:mt-1 truncate",title:`v${c}`,children:["v",c]})]}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Local Hash"}),s.jsx("div",{className:"mt-0.5 sm:mt-1",children:r?s.jsx(m,{copy:!0,size:"compact",children:r}):s.jsx("span",{className:"type-data-sm text-fg-secondary",children:"N/A"})})]})]}),l&&s.jsxs("div",{className:"mt-3 sm:mt-4 pt-3 sm:pt-4 border-t border-edge-subtle",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Public Key"}),s.jsx("div",{className:"mt-0.5 sm:mt-1",children:s.jsx(m,{copy:!0,size:"responsive",children:l})})]})]})}export{j as N};
|
||||
-67
File diff suppressed because one or more lines are too long
+66
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{j as e,q as o,c as x,ak as d,r,fc as f}from"./index-DhkG1Nx9.js";function p({children:a,className:s}){return e.jsx("div",{className:x("section-gap",s),children:a})}function j({children:a,className:s,ready:t}){const n=d(),i=t??n,[m,c]=r.useState(!1);return r.useEffect(()=>{if(!i){c(!1);return}let l=!1;return requestAnimationFrame(()=>{requestAnimationFrame(()=>{l||r.startTransition(()=>c(!0))})}),()=>{l=!0}},[i]),e.jsx(f.Provider,{value:m,children:e.jsx("div",{className:x("bento-section",s),children:a})})}function g({title:a,icon:s,controls:t,subtitle:n}){return e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 min-h-9",children:[e.jsxs("h1",{className:"type-title text-fg-primary flex items-baseline gap-2 sm:gap-3 min-w-0",children:[s&&e.jsx("span",{className:"text-icon-page-title flex-shrink-0 translate-y-[0.1em] [&>svg]:h-[1em] [&>svg]:w-[1em] [&>svg]:stroke-[1.5]",children:s}),e.jsx("span",{className:"truncate",children:a})]}),t&&e.jsx("div",{className:"flex items-center gap-2 flex-shrink-0",children:t})]}),n&&e.jsx("div",{children:n})]})}function h({size:a,...s}){return e.jsx(o,{...s})}export{j as B,h as C,p as P,g as a};
|
||||
-1
@@ -1 +0,0 @@
|
||||
import{j as e,o as r,c as t}from"./index-C1ZF7cAz.js";function l({children:a,className:s}){return e.jsx("div",{className:t("section-gap",s),children:a})}function x({children:a,className:s}){return e.jsx("div",{className:t("bento-section",s),children:a})}function m({title:a,icon:s,controls:n,subtitle:i}){return e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 min-h-9",children:[e.jsxs("h1",{className:"type-title text-fg-primary flex items-baseline gap-2 sm:gap-3 min-w-0",children:[s&&e.jsx("span",{className:"text-icon-page-title flex-shrink-0 translate-y-[0.1em] [&>svg]:h-[1em] [&>svg]:w-[1em] [&>svg]:stroke-[1.5]",children:s}),e.jsx("span",{className:"truncate",children:a})]}),n&&e.jsx("div",{className:"flex items-center gap-2 flex-shrink-0",children:n})]}),i&&e.jsx("div",{children:i})]})}function d({size:a,...s}){return e.jsx(r,{...s})}export{x as B,d as C,l as P,m as a};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3
-3
File diff suppressed because one or more lines are too long
+3
-3
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as s,r as m,c as l,j as r,bZ as j,b_ as k,b$ as _}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as s,r as m,c as l,j as r,bZ as j,b_ as k,b$ as _}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
-41
File diff suppressed because one or more lines are too long
+41
File diff suppressed because one or more lines are too long
-16
File diff suppressed because one or more lines are too long
+16
File diff suppressed because one or more lines are too long
+70
-70
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as t}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as t}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as e}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as e}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as o}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as o}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1 +1 @@
|
||||
(function(){"use strict";function C(c,y,r,M,n,f,T){const i=c.length;if(i===0)return null;const a=new Uint32Array(i),I=new Int32Array(i);let o=0;for(let e=0;e<i;e++){const t=c[e];t>=n&&t<=f&&r[e]>0&&(a[o]=e,I[o]=Math.floor((t-n)/300),o++)}if(o===0)return null;const d=new Map;for(let e=0;e<o;e++){const t=I[e];let s=d.get(t);s||(s=[],d.set(t,s)),s.push(e)}const u=new Float64Array(o);if(T==="share")for(let e=0;e<o;e++)u[e]=r[a[e]];else for(const[,e]of d){let t=0,s=0;for(const m of e){const g=y[a[m]];t+=g,g>s&&(s=g)}const b=t/3e5*100;if(s>0)for(const m of e)u[m]=y[a[m]]/s*b}let h=c[a[0]],A=c[a[0]];for(let e=1;e<o;e++){const t=c[a[e]];t<h&&(h=t),t>A&&(A=t)}const k=f-n||1,l=new Float64Array(o);for(let e=0;e<o;e++)l[e]=u[e];l.sort();const x=l[0],V=l[o-1],O=l[Math.floor(o*.05)],B=l[Math.floor(o*.5)],F=l[Math.min(Math.ceil(o*.95),o-1)],w=new Map;for(let e=0;e<o;e++){const t=Math.round(u[e]*100)/100;w.set(t,(w.get(t)??0)+1)}const N=w.size,R=[...w.entries()].sort((e,t)=>t[1]-e[1]).slice(0,5).map(([e,t])=>({value:e,count:t,percent:t/o*100})),D=0;let p;if(T==="share")p=200;else{const t=Math.ceil(V/5)*5;t<=10?p=10:p=t+5}const S=new Float32Array(o*2),_=new Float32Array(o),E=new Uint8Array(o),U=new Float32Array(o);for(let e=0;e<o;e++){const t=a[e],s=(c[t]-n)/k,m=1-Math.max(0,Math.min(p,u[e]))/p;S[e*2]=s,S[e*2+1]=m,_[e]=u[e],E[e]=M[t]<255?M[t]:255,U[e]=c[t]}return{points:S,rawValues:_,packetTypes:E,timestamps:U,count:o,minTime:h,maxTime:A,minValue:D,maxValue:p,rawMinValue:x,rawMaxValue:V,p5:O,p50:B,p95:F,uniqueValues:N,topValues:R}}self.onmessage=c=>{const{type:y,payload:r}=c.data;if(y!=="compute")return;const M=performance.now();try{const n=C(r.timestamps,r.airtimeMs,r.byteSizes,r.packetTypes,r.startTs,r.endTs,r.mode);if(!n){const a={type:"error",error:"No packets in time range"};self.postMessage(a);return}const f=performance.now()-M,T={type:"result",payload:n,computeTimeMs:f},i=[n.points.buffer,n.rawValues.buffer,n.packetTypes.buffer,n.timestamps.buffer];self.postMessage(T,i)}catch(n){const f={type:"error",error:n instanceof Error?n.message:String(n)};self.postMessage(f)}}})();
|
||||
(function(){"use strict";function C(c,y,r,M,n,f,T){const i=c.length;if(i===0)return null;const a=new Uint32Array(i),I=new Int32Array(i);let o=0;for(let e=0;e<i;e++){const t=c[e];t>=n&&t<=f&&r[e]>0&&(a[o]=e,I[o]=Math.floor((t-n)/300),o++)}if(o===0)return null;const d=new Map;for(let e=0;e<o;e++){const t=I[e];let s=d.get(t);s||(s=[],d.set(t,s)),s.push(e)}const u=new Float64Array(o);if(T==="share")for(let e=0;e<o;e++)u[e]=r[a[e]];else for(const[,e]of d){let t=0,s=0;for(const m of e){const g=y[a[m]];t+=g,g>s&&(s=g)}const b=t/3e5*100;if(s>0)for(const m of e)u[m]=y[a[m]]/s*b}let h=c[a[0]],A=c[a[0]];for(let e=1;e<o;e++){const t=c[a[e]];t<h&&(h=t),t>A&&(A=t)}const k=f-n||1,l=new Float64Array(o);for(let e=0;e<o;e++)l[e]=u[e];l.sort();const x=l[0],V=l[o-1],O=l[Math.floor(o*.05)],B=l[Math.floor(o*.5)],F=l[Math.min(Math.ceil(o*.95),o-1)],w=new Map;for(let e=0;e<o;e++){const t=Math.round(u[e]*100)/100;w.set(t,(w.get(t)??0)+1)}const N=w.size,R=[...w.entries()].sort((e,t)=>t[1]-e[1]).slice(0,5).map(([e,t])=>({value:e,count:t,percent:t/o*100})),D=0;let p;if(T==="share")p=240;else{const t=Math.ceil(V/5)*5;t<=10?p=10:p=t+5}const S=new Float32Array(o*2),_=new Float32Array(o),E=new Uint8Array(o),U=new Float32Array(o);for(let e=0;e<o;e++){const t=a[e],s=(c[t]-n)/k,m=1-Math.max(0,Math.min(p,u[e]))/p;S[e*2]=s,S[e*2+1]=m,_[e]=u[e],E[e]=M[t]<255?M[t]:255,U[e]=c[t]}return{points:S,rawValues:_,packetTypes:E,timestamps:U,count:o,minTime:h,maxTime:A,minValue:D,maxValue:p,rawMinValue:x,rawMaxValue:V,p5:O,p50:B,p95:F,uniqueValues:N,topValues:R}}self.onmessage=c=>{const{type:y,payload:r}=c.data;if(y!=="compute")return;const M=performance.now();try{const n=C(r.timestamps,r.airtimeMs,r.byteSizes,r.packetTypes,r.startTs,r.endTs,r.mode);if(!n){const a={type:"error",error:"No packets in time range"};self.postMessage(a);return}const f=performance.now()-M,T={type:"result",payload:n,computeTimeMs:f},i=[n.points.buffer,n.rawValues.buffer,n.packetTypes.buffer,n.timestamps.buffer];self.postMessage(T,i)}catch(n){const f={type:"error",error:n instanceof Error?n.message:String(n)};self.postMessage(f)}}})();
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{cW as a,r as l}from"./index-C1ZF7cAz.js";const s=[a.green,a.blue,a.amber,a.pink,a.purple,a.cyan,a.orange,a.teal];function m(e){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return s[Math.abs(n)%s.length]}const i=new RegExp("(?:\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F)","gu");function u(e){const n=e.match(i);if(n&&n.length>0){const t=n[0],o=e.replace(i,"").trim();return{emoji:t,cleanName:o||e}}return{emoji:null,cleanName:e}}function f(e){const{cleanName:n}=u(e),t=n.split(/[\s-_]+/).filter(Boolean);if(t.length>=2){const r=Array.from(t[0])[0]||"",c=Array.from(t[1])[0]||"";return(r+c).toUpperCase()}return Array.from(n).slice(0,2).join("").toUpperCase()}function p(e){return new Date(e*1e3).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1})}function g(e){const n=/@\[([^\]]+)\]/g,t=[];let o=0,r;for(;(r=n.exec(e))!==null;)r.index>o&&t.push(e.slice(o,r.index)),t.push(l.createElement("span",{key:r.index,className:"font-extrabold text-white"},r[1])),o=r.index+r[0].length;return o<e.length&&t.push(e.slice(o)),t.length>0?t:e}export{f as a,p as b,u as e,g as f,m as g};
|
||||
import{cU as a,r as l}from"./index-DhkG1Nx9.js";const s=[a.green,a.blue,a.amber,a.pink,a.purple,a.cyan,a.orange,a.teal];function m(e){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return s[Math.abs(n)%s.length]}const i=new RegExp("(?:\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F)","gu");function u(e){const n=e.match(i);if(n&&n.length>0){const t=n[0],o=e.replace(i,"").trim();return{emoji:t,cleanName:o||e}}return{emoji:null,cleanName:e}}function f(e){const{cleanName:n}=u(e),t=n.split(/[\s-_]+/).filter(Boolean);if(t.length>=2){const r=Array.from(t[0])[0]||"",c=Array.from(t[1])[0]||"";return(r+c).toUpperCase()}return Array.from(n).slice(0,2).join("").toUpperCase()}function p(e){return new Date(e*1e3).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1})}function g(e){const n=/@\[([^\]]+)\]/g,t=[];let o=0,r;for(;(r=n.exec(e))!==null;)r.index>o&&t.push(e.slice(o,r.index)),t.push(l.createElement("span",{key:r.index,className:"font-extrabold text-white"},r[1])),o=r.index+r[0].length;return o<e.length&&t.push(e.slice(o)),t.length>0?t:e}export{f as a,p as b,u as e,g as f,m as g};
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as o}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as o}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as c}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as c}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as c}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as c}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{a7 as n,r as i}from"./index-C1ZF7cAz.js";const p=t=>(t.type??t.payload_type)===n.ADVERT,l=t=>(t.type??t.payload_type)===n.TRACE,h=t=>(t.type??t.payload_type)===n.TXT_MSG,_=t=>(t.type??t.payload_type)===n.PATH,d=t=>(t.type??t.payload_type)===n.ACK,g=t=>{const e=t.type??t.payload_type;return e===n.GRP_TXT||e===n.GRP_DATA},m=t=>(t.path_length??(Array.isArray(t.original_path)?t.original_path.length:0))>0,A=t=>!!t.src_hash,T=t=>t.airtime_ms!=null,c=new Set,o=new Map;function a(t,e){return`${t}|${e}`}function u(t,e){const s=a(t,e);o.set(s,(o.get(s)??0)+1)}function y(t,e){const s=a(t,e),r=o.get(s)??0;r>1?o.set(s,r-1):o.delete(s)}function C(t){for(const e of t){const s=a(e.target,e.fn);c.has(s)||c.add(s)}}function P(t){i.useEffect(()=>{for(const e of t)u(e.target,e.fn);return()=>{for(const e of t)y(e.target,e.fn)}},[t])}export{m as a,A as b,h as c,d,p as e,l as f,_ as g,T as h,g as i,C as r,P as u};
|
||||
import{ab as n,r as i}from"./index-DhkG1Nx9.js";const p=t=>(t.type??t.payload_type)===n.ADVERT,l=t=>(t.type??t.payload_type)===n.TRACE,h=t=>(t.type??t.payload_type)===n.TXT_MSG,_=t=>(t.type??t.payload_type)===n.PATH,d=t=>(t.type??t.payload_type)===n.ACK,g=t=>{const e=t.type??t.payload_type;return e===n.GRP_TXT||e===n.GRP_DATA},m=t=>(t.path_length??(Array.isArray(t.original_path)?t.original_path.length:0))>0,A=t=>!!t.src_hash,T=t=>t.airtime_ms!=null,c=new Set,o=new Map;function a(t,e){return`${t}|${e}`}function u(t,e){const s=a(t,e);o.set(s,(o.get(s)??0)+1)}function y(t,e){const s=a(t,e),r=o.get(s)??0;r>1?o.set(s,r-1):o.delete(s)}function C(t){for(const e of t){const s=a(e.target,e.fn);c.has(s)||c.add(s)}}function P(t){i.useEffect(()=>{for(const e of t)u(e.target,e.fn);return()=>{for(const e of t)y(e.target,e.fn)}},[t])}export{m as a,A as b,h as c,d,p as e,l as f,_ as g,T as h,g as i,C as r,P as u};
|
||||
@@ -0,0 +1 @@
|
||||
(function(){"use strict";function k(f,g,o,L,i,B,N,z,E,U,m,s){const d=m*60/s,J=Math.floor(Date.now()/1e3),x=Math.floor(J/d)*d,_=x-m*60,p=new Array(s),w=new Array(s),A=new Array(s),u=new Array(s),I=new Array(s),W=new Float64Array(s),q=new Float64Array(s),R=new Uint32Array(s),D=new Array(s),F=new Array(s),G=new Array(s),M=new Array(s),O={},h={},v={};let X=0,b=0,S=0;for(let e=0;e<s;e++){const r=_+e*d,t=r+d,a={bucket:e,start:r,end:t,count:0,airtime_ms:0,avg_snr:0,avg_rssi:0};p[e]={...a},w[e]={...a},A[e]={...a},u[e]={...a},I[e]={...a},D[e]=new Set,F[e]={start:r,end:t,bytesByType:{},totalBytes:0},G[e]={start:r,end:t,bytesByType:{},totalBytes:0},M[e]={start:r,end:t,bytesByType:{},totalBytes:0}}const K=f.length;for(let e=0;e<K;e++){const r=f[e];if(r<_||r>x)continue;const t=Math.floor((r-_)/d);if(t<0||t>=s)continue;const a=g[e],T=i[e],V=B[e],j=N[e],n=L[e],y=o[e];if(T===1?(A[t].count++,A[t].airtime_ms+=a):T===2||V&&T!==1?(u[t].count++,u[t].airtime_ms+=a):j&&(I[t].count++,I[t].airtime_ms+=a),T!==1){p[t].count++,p[t].airtime_ms+=a,W[t]+=z[e],q[t]+=E[e],R[t]++;const c=U[e];D[t].has(c)||(D[t].add(c),w[t].count++,w[t].airtime_ms+=a);const P=F[t];P.bytesByType[n]=(P.bytesByType[n]??0)+y,P.totalBytes+=y,O[n]=(O[n]??0)+y,S+=y}if(T===2||V&&T!==1){const c=G[t];c.bytesByType[n]=(c.bytesByType[n]??0)+y,c.totalBytes+=y,h[n]=(h[n]??0)+y,X++}if(j){const c=M[t];c.bytesByType[n]=(c.bytesByType[n]??0)+y,c.totalBytes+=y,v[n]=(v[n]??0)+y,b++}}for(let e=0;e<s;e++)R[e]>0&&(p[e].avg_snr=W[e]/R[e],p[e].avg_rssi=q[e]/R[e]);const H=e=>Object.keys(e).map(r=>parseInt(r,10)).filter(r=>e[r]>0).sort((r,t)=>e[t]-e[r]),l=m/60;return{time_range_minutes:m,bucket_count:s,bucket_duration_seconds:d,start_time:_,end_time:x,received:p,unique_received:w,transmitted:A,forwarded:u,dropped:I,receivedBytesBuckets:F,receivedActiveTypes:H(O),receivedTotalByType:O,forwardedBytesBuckets:G,forwardedActiveTypes:H(h),forwardedTotalByType:h,forwardedRatePerHour:l>0?Math.round(X/l):0,totalForwardedCount:X,droppedBytesBuckets:M,droppedActiveTypes:H(v),droppedTotalByType:v,droppedRatePerHour:l>0?Math.round(b/l):0,totalDroppedCount:b,totalReceivedBytes:S,kbPerHour:l>0?Math.round(S/1024/l):0}}self.onmessage=f=>{const{type:g,payload:o}=f.data;if(g!=="compute")return;const L=performance.now();try{const i=k(o.timestamps,o.airtimeMs,o.byteSizes,o.payloadTypes,o.origins,o.transmitted,o.dropped,o.snrValues,o.rssiValues,o.hashIndices,o.rangeMinutes,o.bucketCount),B=performance.now()-L,N={type:"result",payload:i,computeTimeMs:B};self.postMessage(N)}catch(i){const B={type:"error",error:i instanceof Error?i.message:String(i)};self.postMessage(B)}}})();
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as e}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as e}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as o}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as o}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
import{d as s,fv as a}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as s,fu as a}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const c=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],t=s("compass",c),o=a(.65,0,.35,1),n=a(.33,1,.68,1),u=a(.33,.67,.67,1),i=a(.76,0,.24,1);export{t as C,n as a,o as b,u as c,i as e};
|
||||
*/const c=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],t=s("compass",c),o=a(.65,0,.35,1),u=a(.33,1,.68,1),n=a(.33,.67,.67,1),i=a(.76,0,.24,1);export{t as C,u as a,o as b,n as c,i as e};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as o,aj as v,cp as h,e1 as b,e2 as w,cG as x,aX as c,a_ as R}from"./index-C1ZF7cAz.js";function y(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function j(e=y){return o.useCallback((t,r)=>{if(typeof e=="string"){let u=e;return(t==null?void 0:t[u])===(r==null?void 0:r[u])}return e(t,r)},[e])}var $=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))($||{});function N(e){let t=o.useRef(null),r=v(l=>{t.current=l.pointerType,!h(l.currentTarget)&&l.pointerType==="mouse"&&l.button===$.Left&&(l.preventDefault(),e(l))}),u=v(l=>{t.current!=="mouse"&&(h(l.currentTarget)||e(l))});return{onPointerDown:r,onClick:u}}var S=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(S||{});const z={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},I=200,k=5;function F(e,{trigger:t,action:r,close:u,select:l}){let n=o.useRef(null),i=o.useRef(null),a=o.useRef(null);b(e&&t!==null,"pointerdown",s=>{w(s==null?void 0:s.target)&&t!=null&&t.contains(s.target)&&(i.current=s.x,a.current=s.y,n.current=s.timeStamp)}),b(e&&t!==null,"pointerup",s=>{var d,f;let p=n.current;if(p===null||(n.current=null,!x(s.target))||Math.abs(s.x-((d=i.current)!=null?d:s.x))<k&&Math.abs(s.y-((f=a.current)!=null?f:s.y))<k)return;let g=r(s);switch(g.kind){case 0:return;case 1:{s.timeStamp-p>I&&(l(g.target),u());break}case 2:{u();break}}},{capture:!0})}function m(e){return[e.screenX,e.screenY]}function P(){let e=o.useRef([-1,-1]);return{wasMoved(t){let r=m(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=m(t)}}}function L({children:e,freeze:t},r){let u=E(t,e);return o.isValidElement(u)?o.cloneElement(u,{ref:r}):c.createElement(c.Fragment,null,u)}const X=c.forwardRef(L);function E(e,t){let[r,u]=o.useState(t);return!e&&r!==t&&u(t),e?r:t}function T(e){throw new Error("Unexpected object: "+e)}var C=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(C||{});function A(e,t){let r=t.resolveItems();if(r.length<=0)return null;let u=t.resolveActiveIndex(),l=u??-1;switch(e.focus){case 0:{for(let n=0;n<r.length;++n)if(!t.resolveDisabled(r[n],n,r))return n;return u}case 1:{l===-1&&(l=r.length);for(let n=l-1;n>=0;--n)if(!t.resolveDisabled(r[n],n,r))return n;return u}case 2:{for(let n=l+1;n<r.length;++n)if(!t.resolveDisabled(r[n],n,r))return n;return u}case 3:{for(let n=r.length-1;n>=0;--n)if(!t.resolveDisabled(r[n],n,r))return n;return u}case 4:{for(let n=0;n<r.length;++n)if(t.resolveId(r[n],n,r)===e.id)return n;return u}case 5:return null;default:T(e)}}const B={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function D(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}function G(e,t,r){let u=R();if(t.kind==="Tracked"){let l=function(){n!==D(e)&&(u.dispose(),r())},{position:n}=t,i=new ResizeObserver(l);i.observe(e),u.add(()=>i.disconnect()),u.addEventListener(window,"scroll",l,{passive:!0}),u.addEventListener(window,"resize",l)}return()=>u.dispose()}export{F as L,z as S,B as a,D as b,C as c,X as d,P as e,A as f,$ as g,j as h,G as p,N as s,E as u};
|
||||
import{r as o,am as v,cn as b,d$ as h,e0 as w,cE as x,a_ as c,b1 as R}from"./index-DhkG1Nx9.js";function y(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function N(e=y){return o.useCallback((t,r)=>{if(typeof e=="string"){let u=e;return(t==null?void 0:t[u])===(r==null?void 0:r[u])}return e(t,r)},[e])}var $=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))($||{});function j(e){let t=o.useRef(null),r=v(l=>{t.current=l.pointerType,!b(l.currentTarget)&&l.pointerType==="mouse"&&l.button===$.Left&&(l.preventDefault(),e(l))}),u=v(l=>{t.current!=="mouse"&&(b(l.currentTarget)||e(l))});return{onPointerDown:r,onClick:u}}var S=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(S||{});const z={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},E=200,k=5;function F(e,{trigger:t,action:r,close:u,select:l}){let n=o.useRef(null),i=o.useRef(null),a=o.useRef(null);h(e&&t!==null,"pointerdown",s=>{w(s==null?void 0:s.target)&&t!=null&&t.contains(s.target)&&(i.current=s.x,a.current=s.y,n.current=s.timeStamp)}),h(e&&t!==null,"pointerup",s=>{var d,f;let g=n.current;if(g===null||(n.current=null,!x(s.target))||Math.abs(s.x-((d=i.current)!=null?d:s.x))<k&&Math.abs(s.y-((f=a.current)!=null?f:s.y))<k)return;let p=r(s);switch(p.kind){case 0:return;case 1:{s.timeStamp-g>E&&(l(p.target),u());break}case 2:{u();break}}},{capture:!0})}function m(e){return[e.screenX,e.screenY]}function P(){let e=o.useRef([-1,-1]);return{wasMoved(t){let r=m(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=m(t)}}}function I({children:e,freeze:t},r){let u=L(t,e);return o.isValidElement(u)?o.cloneElement(u,{ref:r}):c.createElement(c.Fragment,null,u)}const A=c.forwardRef(I);function L(e,t){let[r,u]=o.useState(t);return!e&&r!==t&&u(t),e?r:t}function T(e){throw new Error("Unexpected object: "+e)}var C=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(C||{});function B(e,t){let r=t.resolveItems();if(r.length<=0)return null;let u=t.resolveActiveIndex(),l=u??-1;switch(e.focus){case 0:{for(let n=0;n<r.length;++n)if(!t.resolveDisabled(r[n],n,r))return n;return u}case 1:{l===-1&&(l=r.length);for(let n=l-1;n>=0;--n)if(!t.resolveDisabled(r[n],n,r))return n;return u}case 2:{for(let n=l+1;n<r.length;++n)if(!t.resolveDisabled(r[n],n,r))return n;return u}case 3:{for(let n=r.length-1;n>=0;--n)if(!t.resolveDisabled(r[n],n,r))return n;return u}case 4:{for(let n=0;n<r.length;++n)if(t.resolveId(r[n],n,r)===e.id)return n;return u}case 5:return null;default:T(e)}}const H={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function D(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}function O(e,t,r){let u=R();if(t.kind==="Tracked"){let l=function(){n!==D(e)&&(u.dispose(),r())},{position:n}=t,i=new ResizeObserver(l);i.observe(e),u.add(()=>i.disconnect()),u.addEventListener(window,"scroll",l,{passive:!0}),u.addEventListener(window,"resize",l)}return()=>u.dispose()}export{F as L,z as S,H as a,D as b,C as c,A as d,P as e,B as f,$ as g,N as h,O as p,j as s,L as u};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as e}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as e}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as e}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as e}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
File diff suppressed because one or more lines are too long
-271
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+271
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as e}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as e}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as a}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as a}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
@@ -1 +0,0 @@
|
||||
import{$ as L,b_ as w,cW as x}from"./index-C1ZF7cAz.js";function R(n){if(Array.isArray(n))return n;if(typeof n=="string"&&n.startsWith("["))try{const a=JSON.parse(n);return Array.isArray(a)?a:[]}catch{return[]}return[]}function A(n,a,S){const i=new Map;for(const t of a){const r=L(t);i.has(r)||i.set(r,t)}const f=new Map,u=new Map;for(const t of n){const r=t.route??t.route_type;if(!w(r))continue;const c=R(t.original_path);if(c.length===0)continue;const o=c.map(e=>e.toUpperCase());if(!t.transmitted&&o.length>=2){const e=o[o.length-2];if(e){const s=i.get(e);s&&u.set(s,(u.get(s)??0)+1)}}if(o.includes(S))for(const e of o){if(e===S)continue;const s=i.get(e);s&&f.set(s,(f.get(s)??0)+1)}}let h=0,p=0;for(const t of a)h=Math.max(h,f.get(t)??0),p=Math.max(p,u.get(t)??0);const M=new Map;let d=0,g=0,m=0;for(const t of a){const r=f.get(t)??0,c=u.get(t)??0,o=h>0?Math.round(r/h*100):0,l=p>0?Math.round(c/p*100):0,e=o+l;M.set(t,{hash:t,listenerCount:r,loudCount:c,listenerScore:o,loudScore:l,blendedScore:e}),d=Math.max(d,o),g=Math.max(g,l),m=Math.max(m,e)}return{scores:M,maxListenerScore:d,maxLoudScore:g,maxBlendedScore:m}}const C={YELLOW:x.amber,GREEN:x.green,RED:x.red,GRAY:"#505050"};export{C as L,A as c};
|
||||
@@ -0,0 +1 @@
|
||||
import{a2 as L,b_ as w,cU as x}from"./index-DhkG1Nx9.js";function R(n){if(Array.isArray(n))return n;if(typeof n=="string"&&n.startsWith("["))try{const a=JSON.parse(n);return Array.isArray(a)?a:[]}catch{return[]}return[]}function A(n,a,S){const i=new Map;for(const t of a){const r=L(t);i.has(r)||i.set(r,t)}const f=new Map,u=new Map;for(const t of n){const r=t.route??t.route_type;if(!w(r))continue;const c=R(t.original_path);if(c.length===0)continue;const o=c.map(e=>e.toUpperCase());if(!t.transmitted&&o.length>=2){const e=o[o.length-2];if(e){const s=i.get(e);s&&u.set(s,(u.get(s)??0)+1)}}if(o.includes(S))for(const e of o){if(e===S)continue;const s=i.get(e);s&&f.set(s,(f.get(s)??0)+1)}}let h=0,p=0;for(const t of a)h=Math.max(h,f.get(t)??0),p=Math.max(p,u.get(t)??0);const M=new Map;let d=0,g=0,m=0;for(const t of a){const r=f.get(t)??0,c=u.get(t)??0,o=h>0?Math.round(r/h*100):0,l=p>0?Math.round(c/p*100):0,e=o+l;M.set(t,{hash:t,listenerCount:r,loudCount:c,listenerScore:o,loudScore:l,blendedScore:e}),d=Math.max(d,o),g=Math.max(g,l),m=Math.max(m,e)}return{scores:M,maxListenerScore:d,maxLoudScore:g,maxBlendedScore:m}}const C={YELLOW:x.amber,GREEN:x.green,RED:x.red,GRAY:"#505050"};export{C as L,A as c};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as e}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as e}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as e}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as e}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{bK as a}from"./index-C1ZF7cAz.js";function o(r){var t;const e=((t=r.contact_type)==null?void 0:t.toLowerCase())??"";return e==="room server"||e==="room_server"||e==="room"||e==="server"?{type:"room_server",isRepeater:r.is_repeater===!0,isCompanion:!1,isRoomServer:!0,isClient:!1,label:"Room Server",badgeText:"ROOM"}:e==="companion"||e==="chat node"||e==="chat_node"||e==="chat"?{type:"companion",isRepeater:!1,isCompanion:!0,isRoomServer:!1,isClient:!1,label:"Companion",badgeText:"COMP"}:e==="client"||e==="cli"?{type:"companion",isRepeater:!1,isCompanion:!1,isRoomServer:!1,isClient:!0,label:"Client",badgeText:"CLI"}:e==="repeater"||e==="rep"?{type:"repeater",isRepeater:!0,isCompanion:!1,isRoomServer:!1,isClient:!1,label:"Repeater",badgeText:"RPT"}:r.is_repeater===!0?{type:"repeater",isRepeater:!0,isCompanion:!1,isRoomServer:!1,isClient:!1,label:"Repeater",badgeText:"RPT"}:{type:"unknown",isRepeater:!1,isCompanion:!1,isRoomServer:!1,isClient:!1,label:"Unknown",badgeText:""}}function n(r){switch(r){case a.GRP_TXT:case a.TXT_MSG:case a.REQ:case a.ANON_REQ:return"companion";case a.TRACE:case a.PATH:return"repeater";case a.GRP_DATA:return"room_server";default:return"unknown"}}function i(r){switch(r){case 1:return"companion";case 2:return"repeater";case 3:return"room_server";default:return"unknown"}}export{o as c,n as i,i as m};
|
||||
import{bL as a}from"./index-DhkG1Nx9.js";function o(r){var t;const e=((t=r.contact_type)==null?void 0:t.toLowerCase())??"";return e==="room server"||e==="room_server"||e==="room"||e==="server"?{type:"room_server",isRepeater:r.is_repeater===!0,isCompanion:!1,isRoomServer:!0,isClient:!1,label:"Room Server",badgeText:"ROOM"}:e==="companion"||e==="chat node"||e==="chat_node"||e==="chat"?{type:"companion",isRepeater:!1,isCompanion:!0,isRoomServer:!1,isClient:!1,label:"Companion",badgeText:"COMP"}:e==="client"||e==="cli"?{type:"companion",isRepeater:!1,isCompanion:!1,isRoomServer:!1,isClient:!0,label:"Client",badgeText:"CLI"}:e==="repeater"||e==="rep"?{type:"repeater",isRepeater:!0,isCompanion:!1,isRoomServer:!1,isClient:!1,label:"Repeater",badgeText:"RPT"}:r.is_repeater===!0?{type:"repeater",isRepeater:!0,isCompanion:!1,isRoomServer:!1,isClient:!1,label:"Repeater",badgeText:"RPT"}:{type:"unknown",isRepeater:!1,isCompanion:!1,isRoomServer:!1,isClient:!1,label:"Unknown",badgeText:""}}function n(r){switch(r){case a.GRP_TXT:case a.TXT_MSG:case a.REQ:case a.ANON_REQ:return"companion";case a.TRACE:case a.PATH:return"repeater";case a.GRP_DATA:return"room_server";default:return"unknown"}}function i(r){switch(r){case 1:return"companion";case 2:return"repeater";case 3:return"room_server";default:return"unknown"}}export{o as c,n as i,i as m};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{dF as i}from"./index-C1ZF7cAz.js";async function d(e,r=10){return i("/api/ping_neighbor",{method:"POST",body:JSON.stringify({target_id:e,timeout:r})})}const u=["Chat Node","Repeater","Room Server","Hybrid Node","Unknown"];async function f(e){const r=e.toLowerCase();for(const o of u)try{const s=await i(`/api/adverts_by_contact_type?contact_type=${encodeURIComponent(o)}&hours=168`),t=s.success&&s.data?s.data:s,n=(Array.isArray(t)?t:[]).find(c=>c.node_name&&c.node_name.toLowerCase()===r);if(n&&n.pubkey)return`0x${n.pubkey.substring(0,2)}`}catch{continue}return null}function p(e){return e.rtt_ms>500||e.rssi<-120?"Poor":e.rtt_ms>250||e.rssi<-100?"Fair":e.rtt_ms>100||e.rssi<-80?"Good":"Excellent"}async function m(e,r=10){if(r<1||r>60)return{success:!1,error:"Timeout must be 1-60 seconds"};let o;const s=e.match(/^(0x)?([0-9a-fA-F]{1,2})$/);if(s)o=`0x${s[2].padStart(2,"0")}`;else{const n=await f(e);if(!n)return{success:!1,error:`Node '${e}' not found`};o=n}const t=await d(o,r);if(!t.success||!t.data)return{success:!1,error:t.error||"Ping failed"};const a=p(t.data);return{success:!0,data:{...t.data,quality:a}}}export{m as a,d as p};
|
||||
import{dC as i}from"./index-DhkG1Nx9.js";async function d(e,r=10){return i("/api/ping_neighbor",{method:"POST",body:JSON.stringify({target_id:e,timeout:r})})}const u=["Chat Node","Repeater","Room Server","Hybrid Node","Unknown"];async function f(e){const r=e.toLowerCase();for(const o of u)try{const s=await i(`/api/adverts_by_contact_type?contact_type=${encodeURIComponent(o)}&hours=168`),t=s.success&&s.data?s.data:s,n=(Array.isArray(t)?t:[]).find(c=>c.node_name&&c.node_name.toLowerCase()===r);if(n&&n.pubkey)return`0x${n.pubkey.substring(0,2)}`}catch{continue}return null}function p(e){return e.rtt_ms>500||e.rssi<-120?"Poor":e.rtt_ms>250||e.rssi<-100?"Fair":e.rtt_ms>100||e.rssi<-80?"Good":"Excellent"}async function m(e,r=10){if(r<1||r>60)return{success:!1,error:"Timeout must be 1-60 seconds"};let o;const s=e.match(/^(0x)?([0-9a-fA-F]{1,2})$/);if(s)o=`0x${s[2].padStart(2,"0")}`;else{const n=await f(e);if(!n)return{success:!1,error:`Node '${e}' not found`};o=n}const t=await d(o,r);if(!t.success||!t.data)return{success:!1,error:t.error||"Ping failed"};const a=p(t.data);return{success:!0,data:{...t.data,quality:a}}}export{m as a,d as p};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as e}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as e}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as e}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as e}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as c}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as c}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as c}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as c}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as e}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as e}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
@@ -1 +0,0 @@
|
||||
(function(){"use strict";function S(e){return e?e.startsWith("0x")||e.startsWith("0X")?e.slice(2,4).toUpperCase():e.slice(0,2).toUpperCase():""}function m(e){if(!e)return null;if(Array.isArray(e))return e;if(typeof e=="string")try{const r=JSON.parse(e);return Array.isArray(r)?r:null}catch{return null}return null}function E(e,r){const d=Date.now(),i=d-6048e5,s=new Map;for(const t of r){const n=S(t);n&&(s.has(n)||s.set(n,new Set),s.get(n).add(t))}const c=new Map,f=new Map;for(const t of r)c.set(t,new Map),f.set(t,d);for(const t of e){const n=t.timestamp??0,p=n>1e12?n:n*1e3;if(p<i)continue;const a=new Set,M=t.forwarded_path??t.original_path,o=m(M);if(o&&o.length>0)for(const l of o){const h=String(l).toUpperCase();s.has(h)&&a.add(h)}if((!o||o.length===0)&&t.src_hash){const l=S(t.src_hash);s.has(l)&&a.add(l)}if(a.size>0){const l=Math.floor((p-i)/216e5),h=Math.max(0,Math.min(27,l));for(const y of a){const U=s.get(y);for(const g of U){const _=c.get(g);_.set(h,(_.get(h)||0)+1);const k=f.get(g);p<k&&f.set(g,p)}}}}const u=new Map;for(const t of r){const n=c.get(t),p=f.get(t);if(n.size===0){u.set(t,[]);continue}const a=Math.max(0,Math.floor((p-i)/216e5)),M=[];for(let o=a;o<28;o++)M.push({idx:o-a,count:n.get(o)||0,timestamp:i+o*216e5});u.set(t,M)}return u}self.onmessage=e=>{const{type:r,payload:d}=e.data;if(r!=="compute"){self.postMessage({type:"error",error:`Unknown message type: ${r}`});return}const i=performance.now();try{const{packets:s,nodeHashes:c}=d,f=E(s,c),u=performance.now()-i,t={type:"result",payload:{sparklineEntries:Array.from(f.entries())},computeTimeMs:u,packetCount:s.length,nodeCount:c.length};self.postMessage(t)}catch(s){const c={type:"error",error:s instanceof Error?s.message:"Unknown error in sparkline worker"};self.postMessage(c)}}})();
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{dF as t}from"./index-C1ZF7cAz.js";async function a(){return t("/api/transport_keys")}async function e(o){return t("/api/transport_keys",{method:"POST",body:JSON.stringify(o)})}async function s(o,r){return t(`/api/transport_key/${o}`,{method:"PUT",body:JSON.stringify(r)})}async function c(o){return t(`/api/transport_key/${o}`,{method:"DELETE"})}async function i(){return t("/api/global_flood_policy")}async function y(o){return t("/api/global_flood_policy",{method:"POST",body:JSON.stringify({global_flood_allow:o})})}async function l(o){return t("/api/restart_service",{method:"POST",body:"{}",signal:o})}async function p(){return t("/api/check_pymc_console")}export{i as a,e as b,p as c,c as d,a as g,l as r,y as s,s as u};
|
||||
import{dC as t}from"./index-DhkG1Nx9.js";async function a(){return t("/api/transport_keys")}async function e(o){return t("/api/transport_keys",{method:"POST",body:JSON.stringify(o)})}async function s(o,r){return t(`/api/transport_key/${o}`,{method:"PUT",body:JSON.stringify(r)})}async function c(o){return t(`/api/transport_key/${o}`,{method:"DELETE"})}async function i(){return t("/api/global_flood_policy")}async function y(o){return t("/api/global_flood_policy",{method:"POST",body:JSON.stringify({global_flood_allow:o})})}async function l(o){return t("/api/restart_service",{method:"POST",body:"{}",signal:o})}async function p(){return t("/api/check_pymc_console")}export{i as a,e as b,p as c,c as d,a as g,l as r,y as s,s as u};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as c}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as c}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as e}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as e}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
Vendored
+3
-3
@@ -1,11 +1,11 @@
|
||||
import{d as T,r as A,j as b,cm as E,bh as D}from"./index-C1ZF7cAz.js";import{A as H}from"./index-DCNWD5GU.js";/**
|
||||
import{d as b,r as A,j as I,ck as E,e as D}from"./index-DhkG1Nx9.js";import{A as H}from"./index-Bx_G2nLG.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],P=T("house",M);/**
|
||||
*/const M=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],P=b("house",M);/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const N=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],C=T("zap",N),z=400;function G({value:a,format:o,prefix:t,className:n,style:s}){const[e,u]=A.useState("waiting");if(A.useEffect(()=>{const l=setTimeout(()=>u("mounted"),z);return()=>clearTimeout(l)},[]),A.useEffect(()=>{if(e==="mounted"){const l=requestAnimationFrame(()=>u("animating"));return()=>cancelAnimationFrame(l)}},[e]),e==="waiting"){const l=0 .toLocaleString(void 0,o);return b.jsxs("span",{className:n,style:s,children:[t,l]})}return b.jsx(H,{className:n,style:s,format:o,prefix:t,transition:E.numberReveal,children:e==="animating"?a:0})}function O(a,o){let t;try{t=a()}catch{return}return{getItem:s=>{var e;const u=m=>m===null?null:JSON.parse(m,void 0),l=(e=t.getItem(s))!=null?e:null;return l instanceof Promise?l.then(u):u(l)},setItem:(s,e)=>t.setItem(s,JSON.stringify(e,void 0)),removeItem:s=>t.removeItem(s)}}const y=a=>o=>{try{const t=a(o);return t instanceof Promise?t:{then(n){return y(n)(t)},catch(n){return this}}}catch(t){return{then(n){return this},catch(n){return y(n)(t)}}}},R=(a,o)=>(t,n,s)=>{let e={storage:O(()=>localStorage),partialize:r=>r,version:0,merge:(r,h)=>({...h,...r}),...o},u=!1;const l=new Set,m=new Set;let d=e.storage;if(!d)return a((...r)=>{console.warn(`[zustand persist middleware] Unable to update item '${e.name}', the given storage is currently unavailable.`),t(...r)},n,s);const p=()=>{const r=e.partialize({...n()});return d.setItem(e.name,{state:r,version:e.version})},F=s.setState;s.setState=(r,h)=>(F(r,h),p());const v=a((...r)=>(t(...r),p()),n,s);s.getInitialState=()=>v;let g;const _=()=>{var r,h;if(!d)return;u=!1,l.forEach(i=>{var c;return i((c=n())!=null?c:v)});const f=((h=e.onRehydrateStorage)==null?void 0:h.call(e,(r=n())!=null?r:v))||void 0;return y(d.getItem.bind(d))(e.name).then(i=>{if(i)if(typeof i.version=="number"&&i.version!==e.version){if(e.migrate){const c=e.migrate(i.state,i.version);return c instanceof Promise?c.then(S=>[!0,S]):[!0,c]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,i.state];return[!1,void 0]}).then(i=>{var c;const[S,L]=i;if(g=e.merge(L,(c=n())!=null?c:v),t(g,!0),S)return p()}).then(()=>{f==null||f(g,void 0),g=n(),u=!0,m.forEach(i=>i(g))}).catch(i=>{f==null||f(void 0,i)})};return s.persist={setOptions:r=>{e={...e,...r},r.storage&&(d=r.storage)},clearStorage:()=>{d==null||d.removeItem(e.name)},getOptions:()=>e,rehydrate:()=>_(),hasHydrated:()=>u,onHydrate:r=>(l.add(r),()=>{l.delete(r)}),onFinishHydration:r=>(m.add(r),()=>{m.delete(r)})},e.skipHydration||_(),g||v},k=R,w=["repeater","companion","room_server","hubs","direct"],I={showTopology:!1,showNeighborLines:!0,show3DTerrain:!1,showMinCut:!1,showLinkQuality:!1,nodeFilters:[...w]},J=D()(k(a=>({viewState:null,setViewState:o=>a({viewState:o,lastSavedAt:Date.now()}),toggles:I,setToggle:(o,t)=>a(n=>({toggles:{...n.toggles,[o]:t},lastSavedAt:Date.now()})),setToggles:o=>a(t=>({toggles:{...t.toggles,...o},lastSavedAt:Date.now()})),hasAnalyzed:!1,setHasAnalyzed:o=>a({hasAnalyzed:o,lastSavedAt:Date.now()}),modalMapOpen:!1,setModalMapOpen:o=>a({modalMapOpen:o}),lastSavedAt:null,reset:()=>a({viewState:null,toggles:I,hasAnalyzed:!1,lastSavedAt:null})}),{name:"pymc-map-view",version:2,migrate:(a,o)=>{const t=a,n=t.toggles??{};if(o===0){const s=n.nodeFilter;let e=[...w];return s==="hubs"?e=["hubs"]:s==="direct"&&(e=["direct"]),{...t,toggles:{...n,nodeFilters:e,nodeFilter:void 0}}}if(o===1){const s=n.nodeFilters,e=s&&s.length>0?s:[...w];return{...t,toggles:{...n,nodeFilters:e}}}return a},partialize:a=>({viewState:a.viewState,toggles:a.toggles,hasAnalyzed:a.hasAnalyzed,lastSavedAt:a.lastSavedAt})}));export{w as A,G as D,P as H,C as Z,O as c,k as p,J as u};
|
||||
*/const N=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],C=b("zap",N),z=400;function G({value:a,format:o,prefix:t,className:n,style:s}){const[e,u]=A.useState("waiting");if(A.useEffect(()=>{const l=setTimeout(()=>u("mounted"),z);return()=>clearTimeout(l)},[]),A.useEffect(()=>{if(e==="mounted"){const l=requestAnimationFrame(()=>u("animating"));return()=>cancelAnimationFrame(l)}},[e]),e==="waiting"){const l=0 .toLocaleString(void 0,o);return I.jsxs("span",{className:n,style:s,children:[t,l]})}return I.jsx(H,{className:n,style:s,format:o,prefix:t,transition:E.numberReveal,children:e==="animating"?a:0})}function O(a,o){let t;try{t=a()}catch{return}return{getItem:s=>{var e;const u=m=>m===null?null:JSON.parse(m,void 0),l=(e=t.getItem(s))!=null?e:null;return l instanceof Promise?l.then(u):u(l)},setItem:(s,e)=>t.setItem(s,JSON.stringify(e,void 0)),removeItem:s=>t.removeItem(s)}}const y=a=>o=>{try{const t=a(o);return t instanceof Promise?t:{then(n){return y(n)(t)},catch(n){return this}}}catch(t){return{then(n){return this},catch(n){return y(n)(t)}}}},R=(a,o)=>(t,n,s)=>{let e={storage:O(()=>localStorage),partialize:r=>r,version:0,merge:(r,h)=>({...h,...r}),...o},u=!1;const l=new Set,m=new Set;let d=e.storage;if(!d)return a((...r)=>{console.warn(`[zustand persist middleware] Unable to update item '${e.name}', the given storage is currently unavailable.`),t(...r)},n,s);const p=()=>{const r=e.partialize({...n()});return d.setItem(e.name,{state:r,version:e.version})},F=s.setState;s.setState=(r,h)=>(F(r,h),p());const v=a((...r)=>(t(...r),p()),n,s);s.getInitialState=()=>v;let g;const _=()=>{var r,h;if(!d)return;u=!1,l.forEach(i=>{var c;return i((c=n())!=null?c:v)});const f=((h=e.onRehydrateStorage)==null?void 0:h.call(e,(r=n())!=null?r:v))||void 0;return y(d.getItem.bind(d))(e.name).then(i=>{if(i)if(typeof i.version=="number"&&i.version!==e.version){if(e.migrate){const c=e.migrate(i.state,i.version);return c instanceof Promise?c.then(S=>[!0,S]):[!0,c]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,i.state];return[!1,void 0]}).then(i=>{var c;const[S,L]=i;if(g=e.merge(L,(c=n())!=null?c:v),t(g,!0),S)return p()}).then(()=>{f==null||f(g,void 0),g=n(),u=!0,m.forEach(i=>i(g))}).catch(i=>{f==null||f(void 0,i)})};return s.persist={setOptions:r=>{e={...e,...r},r.storage&&(d=r.storage)},clearStorage:()=>{d==null||d.removeItem(e.name)},getOptions:()=>e,rehydrate:()=>_(),hasHydrated:()=>u,onHydrate:r=>(l.add(r),()=>{l.delete(r)}),onFinishHydration:r=>(m.add(r),()=>{m.delete(r)})},e.skipHydration||_(),g||v},k=R,w=["repeater","companion","room_server","hubs","direct"],T={showTopology:!1,showNeighborLines:!0,show3DTerrain:!1,showMinCut:!1,showLinkQuality:!1,nodeFilters:[...w]},J=D()(k(a=>({viewState:null,setViewState:o=>a({viewState:o,lastSavedAt:Date.now()}),toggles:T,setToggle:(o,t)=>a(n=>({toggles:{...n.toggles,[o]:t},lastSavedAt:Date.now()})),setToggles:o=>a(t=>({toggles:{...t.toggles,...o},lastSavedAt:Date.now()})),hasAnalyzed:!1,setHasAnalyzed:o=>a({hasAnalyzed:o,lastSavedAt:Date.now()}),modalMapOpen:!1,setModalMapOpen:o=>a({modalMapOpen:o}),lastSavedAt:null,reset:()=>a({viewState:null,toggles:T,hasAnalyzed:!1,lastSavedAt:null})}),{name:"pymc-map-view",version:2,migrate:(a,o)=>{const t=a,n=t.toggles??{};if(o===0){const s=n.nodeFilter;let e=[...w];return s==="hubs"?e=["hubs"]:s==="direct"&&(e=["direct"]),{...t,toggles:{...n,nodeFilters:e,nodeFilter:void 0}}}if(o===1){const s=n.nodeFilters,e=s&&s.length>0?s:[...w];return{...t,toggles:{...n,nodeFilters:e}}}return a},partialize:a=>({viewState:a.viewState,toggles:a.toggles,hasAnalyzed:a.hasAnalyzed,lastSavedAt:a.lastSavedAt})}));export{w as A,G as D,P as H,C as Z,O as c,k as p,J as u};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{d as e}from"./index-C1ZF7cAz.js";/**
|
||||
import{d as e}from"./index-DhkG1Nx9.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
Vendored
+2
-2
@@ -39,8 +39,8 @@
|
||||
--font-data: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
|
||||
}
|
||||
</style>
|
||||
<script type="module" crossorigin src="/assets/index-C1ZF7cAz.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-DWhIzXT2.css">
|
||||
<script type="module" crossorigin src="/assets/index-DhkG1Nx9.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-DySMpv2s.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pymc_console",
|
||||
"version": "0.9.296",
|
||||
"version": "0.9.297",
|
||||
"description": "Vite + React Dashboard for pyMC_Repeater",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
|
||||
Reference in New Issue
Block a user