⛅ Sync 2026-10-04 22:17:19

This commit is contained in:
github-actions[bot] committed 2026-10-04 22:17:19 +08:00
1 parent d132e566f2
commit aef2d67550
143 files changed
+442 -212

No files matched your search

+2 -2
View File
@@ -1,8 +1,8 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=7z
PKG_VERSION:=26.02
PKG_RELEASE:=3
PKG_VERSION:=26.03
PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)$(subst .,,$(PKG_VERSION))-src.tar.xz
PKG_SOURCE_URL:=https://7-zip.org/a/
+5 -5
View File
@@ -3,17 +3,17 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=honk
PKG_VERSION:=2026.10.4_pre1
PKG_RELEASE:=7
PKG_VERSION:=2026.10.4_pre3
PKG_RELEASE:=8
# Raw upstream release tag. It keeps the dots in qualifiers (e.g. v0.0.1.beta.49)
# because that is what the GitHub release asset name uses.
HONK_RELEASE_TAG:=debug.2026.10.4.native-api.1
HONK_RELEASE_TAG:=debug.2026.10.4.native-api.3
HONK_ASSET_TAG:=debug
# SHA256 of each release tarball, kept in sync by scripts/update_honk_version.sh.
HONK_HASH_X86_64:=dfeab5ca18744563c0cb672069fc548744360e3f4b2f35d7be3cfbfef96dbf6c
HONK_HASH_AARCH64:=a17fd9ee544b7671f57defc4c030a7a3620c1ebfdf329e6e2a22050223ddad9e
HONK_HASH_X86_64:=55aa17f673e2908cb8bd537cae2542a0f4c9dc370bf70ad0d9263b48b3bab692
HONK_HASH_AARCH64:=ac9f1ad0ce7666291915020c4e547ddd4c4cf8c358d12d0ff10c4acde8f69712
PKG_LICENSE:=AGPL-3.0-only
PKG_LICENSE_FILE:=LICENSE
+1 -1
View File
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-honk
PKG_VERSION:=1.1.4
PKG_RELEASE:=11
PKG_RELEASE:=12
LUCI_TITLE:=LuCI support for honk
LUCI_PKGARCH:=all
@@ -0,0 +1 @@
import{h0 as e,fV as t,dl as a,g7 as n,bs as r,dm as s,fF as o,dx as i,fL as l,h1 as c,go as d,fT as u,h2 as p,dw as f,h3 as g,dy as b,dA as m,dE as h,dF as y,dK as v,gJ as _,dO as w,dP as k,eZ as x,s as S,y as j,at as C,gX as P,W as M,gZ as N,a3 as D,bT as K,h4 as E,L as A,h5 as z,h6 as T,aO as F,g$ as L,h7 as R,g_ as I,h8 as $,h9 as q,ha as O,c8 as G,hb as X,hc as B,aB as V,ab as W,X as U,cO as Y,cn as H,hd as J,fb as Z,R as Q,bF as ee,cZ as te,dQ as ae,c$ as ne,aP as re,bO as se,dR as oe,d0 as ie,d2 as le,d3 as ce,bZ as de,f7 as ue,eP as pe,C as fe,T as ge,he as be,hf as me,hg as he,N as ye,aS as ve,eQ as _e,hh as we,J as ke,eR as xe,hi as Se,eS as je}from"./index-CmbH0woS.js";import{r as Ce,$ as Pe,j as Me}from"./vendor-react-64fcanlc.js";import{c as Ne,d as De,$ as Ke,a as Ee}from"./Select-BcN72K3H.js";function Ae(n,r,s){const{isSelected:o}=r,{isPressed:i,buttonProps:l}=e({...n,onPress:t(r.toggle,n.onPress)},s);return{isPressed:i,isSelected:o,isDisabled:n.isDisabled||!1,buttonProps:a(l,{"aria-pressed":o})}}function ze(e,t,a){let{isDisabled:d}=e,{toolbarProps:u}=function(e,t){const{"aria-label":a,"aria-labelledby":d,orientation:u="horizontal"}=e;let[p,f]=Ce.useState(!1);n(()=>{f(!(!t.current||!t.current.parentElement?.closest('[role="toolbar"]')))});const{direction:g}=r(),b="rtl"===g&&"horizontal"===u;let m=c(t);const h=Ce.useRef(null);return{toolbarProps:{...s(e,{labelable:!0}),role:p?"group":"toolbar","aria-orientation":u,"aria-label":a,"aria-labelledby":null==a?d:void 0,onKeyDownCapture:p?void 0:e=>{if(o(e.currentTarget,i(e))){if("horizontal"===u&&"ArrowRight"===e.key||"vertical"===u&&"ArrowDown"===e.key)b?m.focusPrevious():m.focusNext();else{if(!("horizontal"===u&&"ArrowLeft"===e.key||"vertical"===u&&"ArrowUp"===e.key))return"Tab"===e.key?(h.current=l(),void(e.shiftKey?m.focusFirst():m.focusLast())):void 0;b?m.focusNext():m.focusPrevious()}e.stopPropagation(),e.preventDefault()}},onFocusCapture:p?void 0:e=>{h.current&&!o(e.currentTarget,e.relatedTarget)&&o(t.current,i(e))&&(h.current?.focus(),h.current=null)},onBlurCapture:p?void 0:e=>{o(e.currentTarget,e.relatedTarget)||h.current||(h.current=i(e))}}}}(e,a);return{groupProps:{...u,role:"single"===t.selectionMode?"radiogroup":u.role,"aria-disabled":d}}}function Te(e){let{onMoveStart:t,onMove:a,onMoveEnd:n}=e,r=Ce.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:s,removeGlobalListener:o}=d(),l=Ce.useCallback((e,n,s,o)=>{0===s&&0===o||(r.current.didMove||(r.current.didMove=!0,t?.({type:"movestart",pointerType:n,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),a?.({type:"move",pointerType:n,deltaX:s,deltaY:o,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))},[t,a,r]),c=u(l),b=Ce.useCallback((e,t)=>{p(),r.current.didMove&&n?.({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},[n,r]),m=u(b);return{moveProps:Ce.useMemo(()=>{let e={},t=()=>{g(),r.current.didMove=!1};{let a=e=>{if(e.pointerId===r.current.id){let t=e.pointerType||"mouse";c(e,t,e.pageX-(r.current.lastPosition?.pageX??0),e.pageY-(r.current.lastPosition?.pageY??0)),r.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},n=e=>{if(e.pointerId===r.current.id){let t=e.pointerType||"mouse";m(e,t),r.current.id=null;let s=f(i(e));o(s,"pointermove",a,!1),o(s,"pointerup",n,!1),o(s,"pointercancel",n,!1)}};e.onPointerDown=e=>{if(0===e.button&&null==r.current.id){t(),e.stopPropagation(),e.preventDefault(),r.current.lastPosition={pageX:e.pageX,pageY:e.pageY},r.current.id=e.pointerId;let o=f(i(e));s(o,"pointermove",a,!1),s(o,"pointerup",n,!1),s(o,"pointercancel",n,!1)}}}let a=(e,a,n)=>{t(),c(e,"keyboard",a,n),m(e,"keyboard")};return e.onKeyDown=e=>{switch(e.key){case"Left":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),a(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault(),e.stopPropagation(),a(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault(),e.stopPropagation(),a(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault(),e.stopPropagation(),a(e,0,1)}},e},[s,o,r])}}const Fe=Ce.createContext({}),Le=Ce.createContext(null),Re=Ce.forwardRef(function(e,t){[e,t]=m(e,t,Fe);let n=function(e){let{selectionMode:t="single",disallowEmptySelection:a,isDisabled:n=!1}=e,[r,s]=b(Ce.useMemo(()=>e.selectedKeys?new Set(e.selectedKeys):void 0,[e.selectedKeys]),Ce.useMemo(()=>e.defaultSelectedKeys?new Set(e.defaultSelectedKeys):new Set,[e.defaultSelectedKeys]),e.onSelectionChange);return{selectionMode:t,isDisabled:n,selectedKeys:r,setSelectedKeys:s,toggleKey(e){let n;"multiple"===t?(n=new Set(r),n.has(e)&&(!a||n.size>1)?n.delete(e):n.add(e)):n=new Set(r.has(e)&&!a?[]:[e]),s(n)},setSelected(e,t){t!==r.has(e)&&this.toggleKey(e)}}}(e),{groupProps:r}=ze(e,n,t),o=h({...e,values:{orientation:e.orientation||"horizontal",isDisabled:n.isDisabled,state:n},defaultClassName:"react-aria-ToggleButtonGroup"}),i=s(e,{global:!0});return Pe.createElement(y.div,{...a(i,o,r),ref:t,slot:e.slot||void 0,"dataLine truncated
@@ -1 +1 @@
import{j as r}from"./vendor-react-64fcanlc.js";import{I as a}from"./index-BgFj_VXE.js";function o(o){return r.jsx(a,{...o,children:r.jsx("path",{fill:"currentColor",d:"M10 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m0 15.5a7 7 0 1 1 0-14 7 7 0 0 1 0 14m3.75-7.75h-3v-3a.75.75 0 0 0-1.5 0v3h-3a.75.75 0 0 0 0 1.5h3v3a.75.75 0 0 0 1.5 0v-3h3a.75.75 0 0 0 0-1.5"})})}export{o as A};
import{j as r}from"./vendor-react-64fcanlc.js";import{I as a}from"./index-CmbH0woS.js";function o(o){return r.jsx(a,{...o,children:r.jsx("path",{fill:"currentColor",d:"M10 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m0 15.5a7 7 0 1 1 0-14 7 7 0 0 1 0 14m3.75-7.75h-3v-3a.75.75 0 0 0-1.5 0v3h-3a.75.75 0 0 0 0 1.5h3v3a.75.75 0 0 0 1.5 0v-3h3a.75.75 0 0 0 0-1.5"})})}export{o as A};
@@ -1 +0,0 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{F as a,H as s}from"./index-BgFj_VXE.js";import{h as n}from"./format-s2EANuUb.js";import{z as o,b8 as i,b9 as l,ba as r,bb as u,bc as h,bd as m,be as c,bf as d}from"./activity-D06xJ7oH.js";import{G as p,C as x}from"./AreaCurve-DQSHOSpG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./logs-BxISynQ4.js";import"./Select-CkiGmyVC.js";import"./array-C0VuvQyb.js";const f=[30,60,120,300,600,900,1800,3600,7200,21600,43200,86400].map(e=>1e3*e);function b(t,a){const[s,n]=e.useState([]),o=e.useRef("");return e.useLayoutEffect(()=>{const e=[a,...t].join("\0");if(e===o.current)return;o.current=e;const s=document.createElement("span");s.className="rp-area-tick",Object.assign(s.style,{position:"absolute",top:"-20000px",whiteSpace:"pre"}),document.body.appendChild(s),n(t.map(e=>{s.textContent=e;const{width:t,height:a}=s.getBoundingClientRect();return{width:t,height:a}})),s.remove()},[t,a]),s}function g({label:g,series:M,timestamps:y,fmt:j,locale:v,height:w=150,baseline:k="zero",window:C,fill:D,bare:F=!1,inset:N=2}){const S=a(),$=o(),L=e.useId(),[T,A]=s(Math.round,120),{tip:B,showAt:E,hide:P}=i(),[z,I]=e.useState(null),H=z&&z.index<y.length?z.index:null,K=C?C.until-C.since:y.length?y[y.length-1]-y[0]:0,O=C?.since,R=C?.until,W=e.useMemo(()=>void 0!==O&&void 0!==R?function(e,t){const a=t-e,s=f.find(e=>a/e<=6)??f[f.length-1],n=s>=864e5?6e4*new Date(t).getTimezoneOffset():0,o=[];for(let i=Math.ceil((e-n)/s)*s+n;i<=t;i+=s)i-e>=.04*a&&t-i>=.04*a&&o.push(i);return{ticks:o,step:s}}(O,R):void 0,[O,R]),G=W?W.step<6e4:K<18e4,_=W?W.step>=864e5:K>1296e5,q=e.useMemo(()=>new Intl.DateTimeFormat(v,_?{month:"numeric",day:"numeric"}:G?{hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}:{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}),[v,G,_]),{yDomain:J,yTicks:Q}=e.useMemo(()=>{const e=M.flatMap(e=>e.values.filter(e=>null!==e));let t=0,a=(e=>{const t=Math.pow(10,Math.floor(Math.log10(e))),a=e/t;return([1,1.2,1.5,2,2.5,3,4,5,6,8,10].find(e=>a<=e)??10)*t})(1.08*Math.max(1,...e));if("auto"===k&&e.length){const s=Math.min(...e),n=Math.max(...e),o=(e=>{const t=Math.pow(10,Math.floor(Math.log10(Math.max(e,1e-9)))),a=e/t;return(a<=1?.2:a<=2?.5:a<=5?1:2)*t})(Math.max(n-s,.02*n,1));t=Math.max(0,Math.floor(s/o)*o-o),a=Math.ceil(n/o)*o+o}return{yDomain:[t,a],yTicks:"auto"===k?[t,(t+a)/2,a]:[a/2,a]}},[M,k]),U=e.useMemo(()=>{const e=y.length-1;return W?W.ticks:[...new Set((G?[0,Math.round(e/2),e]:[0,Math.round(e/3),Math.round(2*e/3),e]).map(e=>y[e]))]},[W,G,y]),V=e.useMemo(()=>void 0!==O&&void 0!==R?[O,R]:[Math.min(...y),Math.max(...y)],[O,R,y]),X=A?.width??0,Y=A?.height??w,Z=F?N:20,ee=F?2:8,te=Y-(F?2:30),ae=X-(F?N:64),se=e.useMemo(()=>[Math.min(V[0],...y),Math.max(V[1],...y)],[V,y]),ne=e.useCallback(e=>l(e,se,[Z,ae]),[se,Z,ae]),oe=e.useCallback(e=>l(e,J,[te,ee]),[J,te,ee]),ie=e.useMemo(()=>y.map(ne),[y,ne]),le=e.useMemo(()=>M.map(e=>y.map((t,a)=>null==e.values[a]?null:{x:ie[a],y:oe(e.values[a])})),[M,y,ie,oe]),re={x:Z,y:ee,width:ae-Z,height:te-ee},ue=(e,t)=>I({index:e,y:t}),he=()=>{I(null),P()};e.useLayoutEffect(()=>{null!==H&&M.some(e=>null!=e.values[H])?E({x:ie[H],y:z?.y??(ee+te)/2,width:X,bounds:F&&T.current?r(T.current):re,label:n(v).format(y[H]),lines:M.filter(e=>null!=e.values[H]).sort((e,t)=>e.label<t.label?-1:e.label>t.label?1:0).map(e=>S("ui.valuePair",{label:e.label,value:j(e.values[H])}))}):P()});const me=u(y.length,ue,he),ce=e.useMemo(()=>U.map(e=>q.format(e)),[U,q]),de=e.useMemo(()=>Q.map(j),[Q,j]),pe=b(ce,v),xe=b(de,v),fe=W?h(U.map(ne),pe.map(e=>e.width),0,X,16,!0):U.map((e,t)=>({index:t,position:ne(e)})),be=h(Q.map(oe),xe.map(e=>e.height),0,Y,5,!1),ge=[...new Set([...(F?Q:be.map(e=>Q[e.index])).map(oe),ee,te])];return t.jsx("div",{ref:T,style:{height:w,width:"100%",flex:D?"1 0 auto":void 0,position:"relative"},onPointerLeave:me.onPointerLeave,children:y.length>0&&A&&t.jsxs(t.Fragment,{children:[t.jsx(m,{tip:B}),t.jsxs("svg",{className:"rp-activity-surface",width:X,height:Y,viewBox:`0 0 ${X} ${Y}`,style:{display:"block"},role:"application","aria-label":g,tabIndex:0,onFocus:me.onFocus,onBlur:me.onBlur,onKeyDown:me.onKeyDown,onPointerMove:e=>{const{x:t,y:a}=c(e,e.currentTarget,{width:X,height:Y});if(t<Z||t>ae||a<ee||a>te)return void he();const s=d(ie,t);ue(s,a)},children:[t.jsx("g",{className:"rp-area-grid",children:ge.map(e=>t.jsx("line",{x1:Z,x2:ae,y1:e,y2:e,stroke:$["hl-med"],strokeDasharray:"2 4",fill:"none"},e))}),t.jsx("defs",{children:M.map((e,a)=>t.jsx(p,{id:L+a,color:e.color},e.label))}),M.map((e,a)=>t.jsx(x,{points:le[a],baseline:oe(Math.max(0,J[0])),color:e.color,id:L+a,strokeWidth:2},e.label)),null!==H&&t.jsx("path",{d:`M${ie[H]},${ee}L${ie[H]},${te}`,stroke:$.subtle,strokeDasharray:"3 3",fill:"none",pointerEvents:"none"}),!F&&t.jsxs(t.Fragment,{children:[t.jsx("g",{children:fe.map(({index:e,position:a})=>t.jsx("text",{x:a,y:te+8,className:"rp-area-tick",fill:$.subtle,textAnchor:"middle",children:t.jsx("tspan",{x:a,dy:"0.71em",children:ce[e]})},e))})Line truncated
@@ -0,0 +1 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{C as a,E as s,hv as n,fc as l,hw as o}from"./index-CmbH0woS.js";import{u as i,bb as r,bc as c,bd as u,be as h,bf as m,bg as d,bh as p,bi as x}from"./activity-CiEWAlFW.js";import{G as f,C as M}from"./AreaCurve-DQSHOSpG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./ActionGroup-D3mQjUsw.js";import"./Select-BcN72K3H.js";import"./array-C0VuvQyb.js";const b=[30,60,120,300,600,900,1800,3600,7200,21600,43200,86400].map(e=>1e3*e);function g(t,a){const[s,n]=e.useState([]),l=e.useRef("");return e.useLayoutEffect(()=>{const e=[a,...t].join("\0");if(e===l.current)return;l.current=e;const s=document.createElement("span");s.className="rp-area-tick",Object.assign(s.style,{position:"absolute",top:"-20000px",whiteSpace:"pre"}),document.body.appendChild(s),n(t.map(e=>{s.textContent=e;const{width:t,height:a}=s.getBoundingClientRect();return{width:t,height:a}})),s.remove()},[t,a]),s}function y({label:y,series:v,timestamps:j,fmt:w,locale:k,height:C=150,baseline:D="zero",window:N,fill:S,bare:$=!1,inset:A=2}){const E=a(),L=i(),B=e.useId(),[F,P]=s(Math.round,120),{tip:T,showAt:z,hide:G}=r(),[I,K]=e.useState(null),O=I&&I.index<j.length?I.index:null,R=N?N.until-N.since:j.length?j[j.length-1]-j[0]:0,W=N?.since,H=N?.until,_=e.useMemo(()=>void 0!==W&&void 0!==H?function(e,t){const a=t-e,s=b.find(e=>a/e<=6)??b[b.length-1],n=s>=864e5?6e4*new Date(t).getTimezoneOffset():0,l=[];for(let o=Math.ceil((e-n)/s)*s+n;o<=t;o+=s)o-e>=.04*a&&t-o>=.04*a&&l.push(o);return{ticks:l,step:s}}(W,H):void 0,[W,H]),q=_?_.step<6e4:R<18e4,J=_?_.step>=864e5:R>1296e5,Q=e.useMemo(()=>J?n(k):l(k,q),[k,q,J]),{yDomain:U,yTicks:V}=e.useMemo(()=>{const e=v.flatMap(e=>e.values.filter(e=>null!==e));let t=0,a=(e=>{const t=Math.pow(10,Math.floor(Math.log10(e))),a=e/t;return([1,1.2,1.5,2,2.5,3,4,5,6,8,10].find(e=>a<=e)??10)*t})(1.08*Math.max(1,...e));if("auto"===D&&e.length){const s=Math.min(...e),n=Math.max(...e),l=(e=>{const t=Math.pow(10,Math.floor(Math.log10(Math.max(e,1e-9)))),a=e/t;return(a<=1?.2:a<=2?.5:a<=5?1:2)*t})(Math.max(n-s,.02*n,1));t=Math.max(0,Math.floor(s/l)*l-l),a=Math.ceil(n/l)*l+l}return{yDomain:[t,a],yTicks:"auto"===D?[t,(t+a)/2,a]:[a/2,a]}},[v,D]),X=e.useMemo(()=>{const e=j.length-1;return _?_.ticks:[...new Set((q?[0,Math.round(e/2),e]:[0,Math.round(e/3),Math.round(2*e/3),e]).map(e=>j[e]))]},[_,q,j]),Y=e.useMemo(()=>void 0!==W&&void 0!==H?[W,H]:[Math.min(...j),Math.max(...j)],[W,H,j]),Z=P?.width??0,ee=P?.height??C,te=$?A:20,ae=$?2:8,se=ee-($?2:30),ne=Z-($?A:64),le=e.useMemo(()=>[Math.min(Y[0],...j),Math.max(Y[1],...j)],[Y,j]),oe=e.useCallback(e=>c(e,le,[te,ne]),[le,te,ne]),ie=e.useCallback(e=>c(e,U,[se,ae]),[U,se,ae]),re=e.useMemo(()=>j.map(oe),[j,oe]),ce=e.useMemo(()=>v.map(e=>j.map((t,a)=>null==e.values[a]?null:{x:re[a],y:ie(e.values[a])})),[v,j,re,ie]),ue={x:te,y:ae,width:ne-te,height:se-ae},he=(e,t)=>K({index:e,y:t}),me=()=>{K(null),G()};e.useLayoutEffect(()=>{null!==O&&v.some(e=>null!=e.values[O])?z({x:re[O],y:I?.y??(ae+se)/2,width:Z,bounds:$&&F.current?u(F.current):ue,label:o(k).format(j[O]),lines:v.filter(e=>null!=e.values[O]).sort((e,t)=>e.label<t.label?-1:e.label>t.label?1:0).map(e=>E("ui.valuePair",{label:e.label,value:w(e.values[O])}))}):G()});const de=h(j.length,he,me),pe=e.useMemo(()=>X.map(e=>Q.format(e)),[X,Q]),xe=e.useMemo(()=>V.map(w),[V,w]),fe=g(pe,k),Me=g(xe,k),be=_?m(X.map(oe),fe.map(e=>e.width),0,Z,16,!0):function(e,t,a){const s=a=>[e[a]-(t[a]??0)/2,e[a]+(t[a]??0)/2],n=e.length-1,l=[];let o=1/0;for(let i=n;i>=0;i--){const[t,r]=s(i);r+a>o||i>0&&i<n&&t<s(0)[1]+a||(l.unshift({index:i,position:e[i]}),o=t)}return l}(X.map(oe),fe.map(e=>e.width),8),ge=m(V.map(ie),Me.map(e=>e.height),0,ee,5,!1),ye=[...new Set([...($?V:ge.map(e=>V[e.index])).map(ie),ae,se])];return t.jsx("div",{ref:F,style:{height:C,width:"100%",flex:S?"1 0 auto":void 0,position:"relative"},onPointerLeave:de.onPointerLeave,children:j.length>0&&P&&t.jsxs(t.Fragment,{children:[t.jsx(d,{tip:T}),t.jsxs("svg",{className:"rp-activity-surface",width:Z,height:ee,viewBox:`0 0 ${Z} ${ee}`,style:{display:"block"},role:"application","aria-label":y,tabIndex:0,onFocus:de.onFocus,onBlur:de.onBlur,onKeyDown:de.onKeyDown,onPointerMove:e=>{const{x:t,y:a}=p(e,e.currentTarget,{width:Z,height:ee});if(t<te||t>ne||a<ae||a>se)return void me();const s=x(re,t);he(s,a)},children:[t.jsx("g",{className:"rp-area-grid",children:ye.map(e=>t.jsx("line",{x1:te,x2:ne,y1:e,y2:e,stroke:L["hl-med"],strokeDasharray:"2 4",fill:"none"},e))}),t.jsx("defs",{children:v.map((e,a)=>t.jsx(f,{id:B+a,color:e.color},e.label))}),v.map((e,a)=>t.jsx(M,{points:ce[a],baseline:ie(Math.max(0,U[0])),color:e.color,id:B+a,strokeWidth:2},e.label)),null!==O&&t.jsx("path",{d:`M${re[O]},${ae}L${re[O]},${se}`,stroke:L.subtle,strokeDasharray:"3 3",fill:"none",pointerEvents:"none"}),!$&&t.jsxs(t.Fragment,{children:[t.jsx("g",{children:be.map(({index:e,position:a})=>t.jsx("text",{x:a,y:se+8,className:"rp-area-tick",fill:L.subtle,textAnchor:"middle",children:t.jsx("tspan",{xLine truncated
@@ -0,0 +1 @@
import{fT as e,gI as t,dl as i,gJ as a,dz as l,gK as s,gL as n,fG as r,fH as o,fJ as d,g7 as c,dv as u,fS as m,fI as f,du as v,dA as p,dB as g,dC as b,dL as h,dM as R,dN as I,dO as M,dP as P,dE as S,dm as y,dF as C,aY as V}from"./index-CmbH0woS.js";import{r as x,$ as E}from"./vendor-react-64fcanlc.js";function $(t,i){const a=x.useRef(!0),l=x.useRef(null);let s=e(t);x.useEffect(()=>(a.current=!0,()=>{a.current=!1}),[]),x.useEffect(()=>{let e=l.current;a.current?a.current=!1:e&&!i.some((t,i)=>!Object.is(t,e[i]))||s(),l.current=i},i)}function D(e,a,l){let{labelProps:s,inputProps:n,descriptionProps:r,errorMessageProps:o,isSelected:d,isPressed:c,isDisabled:u,isReadOnly:m,isInvalid:f,validationErrors:v,validationDetails:p}=t(e,a,l),{isIndeterminate:g}=e;return x.useEffect(()=>{l.current&&(l.current.indeterminate=!!g)}),{labelProps:i(s,x.useMemo(()=>({onMouseDown:e=>e.preventDefault()}),[])),inputProps:n,descriptionProps:r,errorMessageProps:o,isSelected:d,isPressed:c,isDisabled:u,isReadOnly:m,isInvalid:f,validationErrors:v,validationDetails:p}}const B=new WeakMap;var O;function F(e,t){let{getRowText:i=e=>t.collection.getTextValue?.(e)??t.collection.getItem(e)?.textValue}=e,a=o((l=O)&&l.__esModule?l.default:l,"@react-aria/grid");var l;let s=t.selectionManager.rawSelection,n=x.useRef(s),r=x.useCallback(()=>{if(!t.selectionManager.isFocused||s===n.current)return void(n.current=s);let e=k(s,n.current),l=k(n.current,s),r="replace"===t.selectionManager.selectionBehavior,o=[];if(1===t.selectionManager.selectedKeys.size&&r){let e=t.selectionManager.selectedKeys.keys().next().value;if(null!=e&&t.collection.getItem(e)){let t=i(e);t&&o.push(a.format("selectedItem",{item:t}))}}else if(1===e.size&&0===l.size){let t=e.keys().next().value;if(null!=t){let e=i(t);e&&o.push(a.format("selectedItem",{item:e}))}}else if(1===l.size&&0===e.size){let e=l.keys().next().value;if(null!=e&&t.collection.getItem(e)){let t=i(e);t&&o.push(a.format("deselectedItem",{item:t}))}}"multiple"===t.selectionManager.selectionMode&&(0===o.length||"all"===s||s.size>1||"all"===n.current||n.current?.size>1)&&o.push("all"===s?a.format("selectedAll"):a.format("selectedCount",{count:s.size})),o.length>0&&d(o.join(" ")),n.current=s},[s,t.selectionManager.selectedKeys,t.selectionManager.isFocused,t.selectionManager.selectionBehavior,t.selectionManager.selectionMode,t.collection,i,a]);$(()=>{if(!t.selectionManager.isFocused){let e=requestAnimationFrame(r);return()=>cancelAnimationFrame(e)}r()},[s,t.selectionManager.isFocused])}function k(e,t){let i=new Set;if("all"===e||"all"===t)return i;for(let a of e.keys())t.has(a)||i.add(a);return i}function T(e,t){let i=t?.isDisabled,[a,l]=x.useState(!1);return c(()=>{if(e?.current&&!i){let t=()=>{if(e.current){let t=u(e.current,{tabbable:!0});l(!!t.nextNode())}};t();let i=new MutationObserver(t);return i.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{i.disconnect()}}}),!i&&a}function w(e){let t=o((i=O)&&i.__esModule?i.default:i,"@react-aria/grid");var i;let a=m(),l=("pointer"===a||"virtual"===a||null==a)&&"undefined"!=typeof window&&"ontouchstart"in window,s=x.useMemo(()=>{let i,a=e.selectionManager.selectionMode,s=e.selectionManager.selectionBehavior;return l&&(i=t.format("longPressToSelect")),"replace"===s&&"none"!==a&&e.hasItemActions?i:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,l]);return f(s)}function A(e,t){let{key:i}=e,a=t.selectionManager,l=v(),s=!t.selectionManager.canSelectItem(i),n=t.selectionManager.isSelected(i);var r;return{checkboxProps:{id:l,"aria-label":o((r=O)&&r.__esModule?r.default:r,"@react-aria/grid").format("select"),isSelected:n,isDisabled:s,onChange:()=>a.toggleSelection(i)}}}O={"ar-AE":r,"bg-BG":r,"cs-CZ":r,"da-DK":r,"de-DE":r,"el-GR":r,"en-US":{deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."},"es-ES":r,"et-EE":r,"fi-FI":r,"fr-FR":r,"he-IL":r,"hr-HR":r,"hu-HU":r,"it-IT":r,"ja-JP":r,"ko-KR":r,"lt-LT":r,"lv-LV":r,"nb-NO":r,"nl-NL":r,"pl-PL":r,"pt-BR":r,"pt-PT":r,"ro-RO":r,"ru-RU":r,"sk-SK":r,"sl-SI":r,"sr-SP":r,"sv-SE":r,"tr-TR":r,"uk-UA":r,"zh-CN":{deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`},"zh-TW":{deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>Line truncated
@@ -0,0 +1 @@
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{$ as a}from"./Checkbox-f7Je53QZ.js";import{el as r,I as i,d5 as l,cT as n,J as c}from"./index-CmbH0woS.js";function d({label:i,description:l,isSelected:n,onChange:c,isDisabled:d}){const o=e.useId(),t=e.useId();return s.jsxs(a,{className:"rp-radio rp-checkbox",isSelected:n,onChange:c,isDisabled:d,"aria-labelledby":o,"aria-describedby":l?t:void 0,children:[s.jsx("span",{className:"rp-checkbox-mark",children:s.jsx(r,{})}),s.jsxs("span",{className:"rp-radio-text",children:[s.jsx("span",{id:o,children:i}),l&&s.jsx("span",{id:t,className:"rp-note",children:l})]})]})}function o(e){return s.jsx(i,{...e,children:s.jsx("path",{fill:"currentColor",d:"M17.78 1.757C16.51.716 14.555.858 13.33 2.08L3.079 12.334c-.32.32-.559.717-.69 1.15l-1.384 4.584c-.08.265-.007.552.188.747.142.143.334.22.53.22q.11 0 .217-.032l4.582-1.384c.434-.13.832-.368 1.151-.688L18.028 6.575c.648-.647.993-1.545.948-2.46s-.482-1.775-1.195-2.358M2.846 17.163l.98-3.246q.042-.135.113-.257l2.41 2.409q-.123.07-.259.114zM16.966 5.516l-9.525 9.526-2.475-2.476 9.425-9.425c.386-.387.896-.586 1.39-.586.38 0 .752.119 1.05.362.392.321.621.772.646 1.272.025.494-.161.977-.51 1.327"})})}function t({children:e}){return s.jsx("div",{className:"rp-toolbar",children:e})}function h({children:e,negate:a,onNegate:r,negateLabel:i,removeLabel:d,onRemove:o,isDisabled:h,removeDisabled:x}){return s.jsxs(l,{children:[e,s.jsxs(t,{children:[s.jsx(n,{isDisabled:h,isSelected:a,onChange:r,children:i}),s.jsx("span",{className:"rp-grow"}),s.jsx(c,{small:!0,isDisabled:h||x,onPress:o,children:d})]})]})}export{d as C,o as E,h as a,t as b};
@@ -1 +0,0 @@
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{f as a}from"./useGridSelectionCheckbox-BxnCShqN.js";import{f9 as r,I as i,dD as n,dr as l,O as c}from"./index-BgFj_VXE.js";function d({label:i,description:n,isSelected:l,onChange:c,isDisabled:d}){const o=e.useId(),t=e.useId();return s.jsxs(a,{className:"rp-radio rp-checkbox",isSelected:l,onChange:c,isDisabled:d,"aria-labelledby":o,"aria-describedby":n?t:void 0,children:[s.jsx("span",{className:"rp-checkbox-mark",children:s.jsx(r,{})}),s.jsxs("span",{className:"rp-radio-text",children:[s.jsx("span",{id:o,children:i}),n&&s.jsx("span",{id:t,className:"rp-note",children:n})]})]})}function o(e){return s.jsx(i,{...e,children:s.jsx("path",{fill:"currentColor",d:"M17.78 1.757C16.51.716 14.555.858 13.33 2.08L3.079 12.334c-.32.32-.559.717-.69 1.15l-1.384 4.584c-.08.265-.007.552.188.747.142.143.334.22.53.22q.11 0 .217-.032l4.582-1.384c.434-.13.832-.368 1.151-.688L18.028 6.575c.648-.647.993-1.545.948-2.46s-.482-1.775-1.195-2.358M2.846 17.163l.98-3.246q.042-.135.113-.257l2.41 2.409q-.123.07-.259.114zM16.966 5.516l-9.525 9.526-2.475-2.476 9.425-9.425c.386-.387.896-.586 1.39-.586.38 0 .752.119 1.05.362.392.321.621.772.646 1.272.025.494-.161.977-.51 1.327"})})}function t({children:e}){return s.jsx("div",{className:"rp-toolbar",children:e})}function h({children:e,negate:a,onNegate:r,negateLabel:i,removeLabel:d,onRemove:o,isDisabled:h,removeDisabled:x}){return s.jsxs(n,{children:[e,s.jsxs(t,{children:[s.jsx(l,{isDisabled:h,isSelected:a,onChange:r,children:i}),s.jsx("span",{className:"rp-grow"}),s.jsx(c,{small:!0,isDisabled:h||x,onPress:o,children:d})]})]})}export{d as C,o as E,h as a,t as b};
@@ -0,0 +1 @@
import{r as e,j as n}from"./vendor-react-64fcanlc.js";import{s as r,h as i,j as s,ez as a,Z as t,C as o,aF as l,P as c,W as d,Y as u,X as f,df as p,a1 as m,cE as g,w as h,d_ as b,cG as v,ai as x,eA as y,eB as j,a4 as k,e0 as w,r as S,cC as C,dd as N,eC as R,eD as D,ea as M,eE as O,am as E,al as T,at as A,ch as L,eF as P,eG as F,a3 as _,dc as q,eH as I,L as $,bT as H,bd as B,J as K,aV as V,K as W,c4 as U,A as z,aS as G,az as J,d6 as Q,bG as Y,d5 as X,ec as Z,d4 as ee,M as ne,D as re,U as ie,ek as se,c5 as ae,eI as te,eJ as oe,eK as le,eL as ce,eM as de,cj as ue,eN as fe,a0 as pe,de as me,d8 as ge,cf as he,eO as be,ce as ve,eP as xe,by as ye,eQ as je,eR as ke,eS as we,V as Se,aY as Ce,aQ as Ne,T as Re}from"./index-CmbH0woS.js";import{e as De,u as Me,L as Oe,A as Ee,M as Te,S as Ae}from"./ActionGroup-D3mQjUsw.js";import{T as Le}from"./Tabs-BzeNgTje.js";import{T as Pe}from"./Toolbar-B9K5nAyx.js";import{r as Fe,E as _e,D as qe}from"./activity-CiEWAlFW.js";import{s as Ie,c as $e,r as He,a as Be,b as Ke,d as Ve,e as We,f as Ue,g as ze,h as Ge,v as Je,i as Qe,j as Ye,k as Xe,l as Ze,m as en,n as nn,w as rn}from"./nav-M7R_HvZ0.js";import{u as sn,c as an}from"./flows-BMReQznn.js";import{d as tn}from"./files-Dt8K7QfP.js";import{D as on}from"./Table-Cfbaho6J.js";import{T as ln}from"./TimeCell-D0UB-mKs.js";import{A as cn}from"./AddCircle-JwHCi_at.js";import{S as dn,a as un,E as fn,C as pn,b as mn,l as gn,c as hn,h as bn,d as vn,r as xn,e as yn,f as jn,g as kn,i as wn,j as Sn,s as Cn,k as Nn,t as Rn,m as Dn,n as Mn,o as On,p as En,q as Tn,u as An,v as Ln,w as Pn,x as Fn,y as _n,z as qn,D as In,R as $n,A as Hn,B as Bn,F as Kn,G as Vn,H as Wn,I as Un,J as zn,K as Gn,L as Jn}from"./vendor-editor-BRV-W12m.js";import{d as Qn,s as Yn}from"./daeTokens-BVtuNnWZ.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BcN72K3H.js";import"./Checkbox-f7Je53QZ.js";import"./Virtualizer-itu1Kg0o.js";import"./index-DUM-iwa2.js";function Xn(e,n,a,t="main"){if(!a.daeText)return[];const{blocks:o,tokens:l}=r(e),c=a.globalSettings;return o.flatMap(r=>{if(r.name===c?.name){const a=o.filter(e=>e.name===c.name).indexOf(r),t=i(e,r,l);return t.filter(e=>1===t.filter(n=>n.name===e.name).length&&c.fields.some(n=>n.key===e.name)).map(i=>({kind:r.name,from:i.from,to:i.to,label:i.name,line:e.slice(0,i.from).split("\n").length,href:s("config",{tab:"global",source:n,section:String(a),field:i.name})}))}const a=Ie[r.name];return"subscription"===r.name?"main"!==t?[]:Fe(e).filter(e=>e.from>r.open&&e.to<=r.close).map(e=>({kind:r.name,from:e.from,to:e.to,label:e.tag,line:e.line,href:s("nodes",{editSubscriptionTag:e.tag})})):"dns"===r.name?r.children.filter(e=>"routing"===e.name).flatMap(e=>e.children.filter(e=>"request"===e.name||"response"===e.name).map(e=>({kind:r.name,from:e.from,to:e.to,label:e.name,line:e.line+1,href:a}))):a?[{kind:r.name,from:r.from,to:r.to,label:r.name,line:r.line+1,href:a}]:[]})}const Zn=()=>{};const er=new Map;function nr({go:n,query:r}){const i=o(),s=l[c()],a=d(),S=a.data?.resources,C=u(f(S,"config",{whileLoading:!0})),N=function(n){const r=o(),i=t(n),s=e.useMemo(()=>{const e=y(i.error);return e?e.diagnostics??[]:null},[i.error]);return e.useEffect(()=>{if(i.error)if(s){const e=j(s);k("negative",e?r("config.writeRestart",{n:e}):r("ui.writeInvalid",{n:s.filter(e=>"error"===e.level).length}))}else w(i.error,r,r("ui.writeFailed"))},[i.error,s,r]),{...i,diagnostics:s}}(C.refetch),R=e.useMemo(()=>new URLSearchParams(r),[r]),D=e.useMemo(()=>C.data?.sources??[],[C.data]),M=D.find(e=>"main"===e.kind)??null,O=D.find(e=>e.id===R.get("source"))??D[0]??null,E=O?.id??null,T=(e,i)=>n("config",h(r,{tab:"source",source:e,line:null===i?null:String(i)})),A=Number(R.get("line"))||null,L=C.data?.diagnostics??[],P=e.useMemo(()=>{const e=C.data?.diagnostics??[];return{error:e.filter(e=>"error"===e.level).length,warning:e.filter(e=>"warning"===e.level).length}},[C.data]),F=f(S,"config_validate",{whileLoading:!1})&&(S?.config_validate.modes??[]).includes("full"),_=!0===S?.config.writable,q=p(D),I=m().data,$=e.useMemo(()=>De(I),[I]),H=$e(!!$.globalSettings,a.data),B=O?He(O,_,q(O),$,i):null,K=!!O&&!B,[V,W]=e.useState(er),[U,z]=e.useState(null),G=U??P.error,J=R.has("source")||void 0===M?.content?"source":"modules",Q=g("validate"===R.get("tab")?h(r,{tab:"source"}):r,H.map(e=>e.id),J),Y=O?{source:O,sources:D,open:T,diagnostics:L,canValidate:F&&("main"===O.kind||"include"===O.kind),canWrite:K,readOnly:B,isComplete:q,editor:N,focusLine:A,generation:C.data?.generation_id??"",focusDiagnostics:"validate"===R.get("tab"),diagnosticsChoice:V.get(O.id)??null,chooseDiagnostics:e=>W(n=>new Map(n).set(O.id,e)),reportErrors:z}:null,X=!0===S?.config.create&&!0===S.config.writable?{sources:D,refetch:C.refetch,open:e=>T(e,null)}:null;return{error:a.error??C.error,reload:()=>{a.refetch(),C.refetch()},loading:C.loading&&!C.data,ready:!!C.data,tabsReady:!!C.data||H.some(e=>"history"===e.id),metadata:C.data?Ke(C.data.revision,i):[],redacted:!!C.data?.secrets_redacted,tabs:H.maLine truncated
@@ -1 +0,0 @@
import{r as e,j as n}from"./vendor-react-64fcanlc.js";import{s as r,h as i,j as s,fn as a,a2 as t,F as o,aC as l,V as c,$ as d,a1 as u,a0 as f,dL as p,a5 as g,dc as m,w as h,eQ as b,de as v,ag as x,fo as y,fp as j,a8 as w,eS as k,r as S,da as C,cC as N,fq as R,fr as D,f0 as O,fs as M,ap as T,c0 as E,ft as P,fu as A,a7 as L,dJ as F,fv as _,L as q,bD as $,b4 as I,O as H,aS as B,P as V,bP as W,D as K,aP as U,au as z,cD as G,bs as Q,dD as J,cE as Y,dC as Z,Q as X,G as ee,Y as ne,f8 as re,bQ as ie,fw as se,fx as ae,fy as te,fz as oe,fA as le,c2 as ce,fB as de,b_ as ue,fC as fe,bZ as pe,fD as ge,bk as me,fE as he,fF as be,fG as ve,Z as xe,aV as ye,aN as je,T as we}from"./index-BgFj_VXE.js";import{e as ke,u as Se,L as Ce,A as Ne,M as Re,S as De}from"./logs-BxISynQ4.js";import{T as Oe}from"./Tabs-CD2lZase.js";import{T as Me}from"./Toolbar-CIBfeuEz.js";import{r as Te,a0 as Ee,D as Pe}from"./activity-D06xJ7oH.js";import{d as Ae,c as Le,r as Fe,e as _e,f as qe,g as $e,h as Ie,i as He,j as Be,k as Ve,v as We,l as Ke,m as Ue,n as ze,o as Ge,p as Qe,s as Je,w as Ye}from"./nav-BidFSCY-.js";import{u as Ze,a as Xe}from"./flows-xKlsDqlH.js";import{d as en}from"./files-Dt8K7QfP.js";import{D as nn}from"./Table-Dprh3Btz.js";import{T as rn}from"./TimeCell-B4WLB8Ou.js";import{l as sn,b as an}from"./format-s2EANuUb.js";import{A as tn}from"./AddCircle-prR7q573.js";import{S as on,a as ln,E as cn,C as dn,b as un,l as fn,c as pn,h as gn,d as mn,r as hn,e as bn,f as vn,g as xn,i as yn,j as jn,s as wn,k as kn,t as Sn,m as Cn,n as Nn,o as Rn,p as Dn,q as On,u as Mn,v as Tn,w as En,x as Pn,y as An,z as Ln,D as Fn,R as _n,A as qn,B as $n,F as In,G as Hn,H as Bn,I as Vn,J as Wn,K as Kn,L as Un}from"./vendor-editor-BRV-W12m.js";import{d as zn,s as Gn}from"./daeTokens-BVtuNnWZ.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-CkiGmyVC.js";import"./useGridSelectionCheckbox-BxnCShqN.js";import"./Virtualizer-CZl-q5wo.js";import"./index-DUM-iwa2.js";function Qn(e,n,a,t="main"){if(!a.daeText)return[];const{blocks:o,tokens:l}=r(e),c=a.globalSettings;return o.flatMap(r=>{if(r.name===c?.name){const a=o.filter(e=>e.name===c.name).indexOf(r),t=i(e,r,l);return t.filter(e=>1===t.filter(n=>n.name===e.name).length&&c.fields.some(n=>n.key===e.name)).map(i=>({kind:r.name,from:i.from,to:i.to,label:i.name,line:e.slice(0,i.from).split("\n").length,href:s("config",{tab:"global",source:n,section:String(a),field:i.name})}))}const a=Ae[r.name];return"subscription"===r.name?"main"!==t?[]:Te(e).filter(e=>e.from>r.open&&e.to<=r.close).map(e=>({kind:r.name,from:e.from,to:e.to,label:e.tag,line:e.line,href:s("nodes",{editSubscriptionTag:e.tag})})):"dns"===r.name?r.children.filter(e=>"routing"===e.name).flatMap(e=>e.children.filter(e=>"request"===e.name||"response"===e.name).map(e=>({kind:r.name,from:e.from,to:e.to,label:e.name,line:e.line+1,href:a}))):a?[{kind:r.name,from:r.from,to:r.to,label:r.name,line:r.line+1,href:a}]:[]})}const Jn=()=>{};const Yn=new Map;function Zn({go:n,query:r}){const i=o(),s=l[c()],a=d(),S=a.data?.resources,C=u(f(S,"config",{whileLoading:!0})),N=function(n){const r=o(),i=t(n),s=e.useMemo(()=>{const e=y(i.error);return e?e.diagnostics??[]:null},[i.error]);return e.useEffect(()=>{if(i.error)if(s){const e=j(s);w("negative",e?r("config.writeRestart",{n:e}):r("ui.writeInvalid",{n:s.filter(e=>"error"===e.level).length}))}else k(i.error,r,r("ui.writeFailed"))},[i.error,s,r]),{...i,diagnostics:s}}(C.refetch),R=e.useMemo(()=>new URLSearchParams(r),[r]),D=e.useMemo(()=>C.data?.sources??[],[C.data]),O=D.find(e=>"main"===e.kind)??null,M=D.find(e=>e.id===R.get("source"))??D[0]??null,T=M?.id??null,E=(e,i)=>n("config",h(r,{tab:"source",source:e,line:null===i?null:String(i)})),P=Number(R.get("line"))||null,A=C.data?.diagnostics??[],L=e.useMemo(()=>{const e=C.data?.diagnostics??[];return{error:e.filter(e=>"error"===e.level).length,warning:e.filter(e=>"warning"===e.level).length}},[C.data]),F=f(S,"config_validate",{whileLoading:!1})&&(S?.config_validate.modes??[]).includes("full"),_=!0===S?.config.writable,q=p(D),$=g().data,I=e.useMemo(()=>ke($),[$]),H=Le(!!I.globalSettings,a.data),B=M?Fe(M,_,q(M),I,i):null,V=!!M&&!B,[W,K]=e.useState(Yn),[U,z]=e.useState(null),G=U??L.error,Q=R.has("source")||void 0===O?.content?"source":"modules",J=m("validate"===R.get("tab")?h(r,{tab:"source"}):r,H.map(e=>e.id),Q),Y=M?{source:M,sources:D,open:E,diagnostics:A,canValidate:F&&("main"===M.kind||"include"===M.kind),canWrite:V,readOnly:B,isComplete:q,editor:N,focusLine:P,generation:C.data?.generation_id??"",focusDiagnostics:"validate"===R.get("tab"),diagnosticsChoice:W.get(M.id)??null,chooseDiagnostics:e=>K(n=>new Map(n).set(M.id,e)),reportErrors:z}:null,Z=!0===S?.config.create&&!0===S.config.writable?{sources:D,refetch:C.refetch,open:e=>E(e,null)}:null;return{error:a.error??C.error,reload:()=>{a.refetch(),C.refetch()},loading:C.loading&&!C.data,ready:!!C.data,tabsReady:!!C.data||H.some(e=>"history"===e.id),metadata:C.data?qe(C.data.revision,i):[],redacted:!!C.data?.secrets_Line truncated
@@ -0,0 +1 @@
import{r as e,j as n}from"./vendor-react-64fcanlc.js";import{O as t}from"./OutboundTag-DROnordp.js";import{bb as o,C as s,aF as l,P as a,al as i,o as r,aW as c,M as u,K as d,ai as p,as as m,y as b,ab as h,cu as g,aS as f,N as w,T as v,cv as y,w as x,cw as j,ae as _,cx as k,cy as C,aj as S,am as A,W as L,X as N,Y as T,ac as M,cz as R,i as F,cA as O,aB as P,a7 as W,cB as D,b_ as U,cC as q,co as E,cD as H,cE as I,cF as Q,aa as V,aG as B,cG as G,a4 as J,cH as K,bd as z,cI as X,cJ as Y,bT as Z,cK as $,c5 as ee,O as ne,J as te,cL as oe,bQ as se,aQ as le,V as ae,bG as ie}from"./index-CmbH0woS.js";import{R as re,d as ce,h as ue,c as de,u as pe,S as me,L as be,M as he}from"./ActionGroup-D3mQjUsw.js";import{T as ge}from"./Tabs-BzeNgTje.js";import{T as fe}from"./Toolbar-B9K5nAyx.js";import{u as we,D as ve,U as ye,F as xe,S as je,d as _e,B as ke,L as Ce,f as Se,h as Ae,i as Le,j as Ne,p as Te,o as Me,k as Re,l as Fe}from"./activity-CiEWAlFW.js";import{S as Oe}from"./SearchSelect-CuaWhoLz.js";import{D as Pe}from"./Table-Cfbaho6J.js";import{T as We}from"./TimeCell-D0UB-mKs.js";import{Q as De,u as Ue,r as qe,R as Ee}from"./useQuickRule-C0zoMd-O.js";import{u as He}from"./outbounds-CUyNhEhE.js";import{c as Ie,d as Qe,e as Ve}from"./files-Dt8K7QfP.js";import{w as Be}from"./labels-D8xxfRTQ.js";import{u as Ge}from"./flows-BMReQznn.js";import{c as Je}from"./nav-BO8viH9G.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Tag-fyQjN-Xw.js";import"./Select-BcN72K3H.js";import"./Checkbox-f7Je53QZ.js";import"./SearchList-CJ8rQxgu.js";import"./Virtualizer-itu1Kg0o.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-JwHCi_at.js";const Ke=[0,2,3,1,4,5,6,7],ze=e.memo(function({records:t,outbounds:p,latency:m,latencyError:b,retryLatency:h,truncated:g,uncounted:f,onSelect:w}){const v=s(),y=we(),x=l[a()],j=e.useCallback(e=>i(e,x),[x]),_=e.useMemo(()=>function(e,n){const t=new Map;let s=0;for(const o of e){if(null===o.upload_bytes||null===o.download_bytes){s++;continue}const e={id:o.id,up:Number(o.upload_bytes),down:Number(o.download_bytes),name:o.domain||o.dst||o.id},n=t.get(o.outbound);n?n.push(e):t.set(o.outbound,[e])}const l=[...t].map(([e,n])=>({outbound:e,points:n})).sort((e,t)=>o(n)(e.outbound??"",t.outbound??""));let a,i=-1n;for(const o of e){if(null===o.upload_bytes||null===o.download_bytes)continue;const e=BigInt(o.upload_bytes)+BigInt(o.download_bytes);e>i&&(i=e,a={id:o.id,up:Number(o.upload_bytes),down:Number(o.download_bytes),name:o.domain||o.dst||o.id,outbound:o.outbound})}return{series:l,unknown:s,heaviest:a,placed:e.length-s}}(t,x),[t,x]),k=e.useMemo(()=>{const e=p.filter(e=>"block"!==e);return _.series.map(n=>{return{id:n.outbound??"",label:r(n.outbound,v),color:(t=n.outbound,"block"===t?y.negative:y.cat[Ke[Math.max(0,e.indexOf(t))%Ke.length]]),points:n.points.map(e=>({id:e.id,x:e.up,y:e.down,name:e.name,detail:v("conn.chart.point",{download:j(e.down),upload:j(e.up)})}))};var t})},[_,p,y,v,j]),C=_.heaviest?[{label:v("conn.chart.busiest"),icon:n.jsx(c,{}),tint:"c3",value:_.heaviest.name,caption:r(_.heaviest.outbound,v)},{label:v("ui.download"),value:j(_.heaviest.down),icon:n.jsx(ve,{}),tint:"c1"},{label:v("ui.upload"),value:j(_.heaviest.up),icon:n.jsx(ye,{}),tint:"c4"}]:[],S=_.unknown?v("conn.chart.sampleUnknown",{n:t.length,unknown:_.unknown}):v("conn.chart.sample",{n:t.length});return n.jsxs("div",{className:"rp-chart-page",children:[n.jsx(xe,{facts:C,lead:!0}),n.jsxs(u,{title:v("conn.chart.title"),help:f?{title:v("conn.chart.title"),text:v("ui.trafficUncounted")}:void 0,note:S,children:[g&&n.jsx("p",{className:"rp-note",children:v("conn.truncated")}),_.placed>0&&n.jsxs(n.Fragment,{children:[n.jsx(je,{label:v("conn.chart.title"),series:k,fmt:j,onSelect:w,regions:{above:v("conn.chart.moreDown"),below:v("conn.chart.moreUp")}}),n.jsx(_e,{series:k}),n.jsx("p",{className:"rp-note",children:v("conn.chart.hint")})]})]}),m?n.jsx(Xe,{latency:m}):b&&n.jsx(u,{title:v("ui.nodeLatency"),children:n.jsx(d,{error:b,onRetry:h})})]})});function Xe({latency:e}){const t=s(),o=we(),i=e=>m(e,t),r=l[a()],c=n=>!e.chains||n?o.cat[0]:o.muted;return n.jsx(u,{title:t("ui.nodeLatency"),note:t("conn.latency.sample",{n:e.samples.length,missing:e.missing}),children:e.samples.length?n.jsxs(n.Fragment,{children:[n.jsx("p",{className:"rp-note",children:t("conn.latency.percentiles",{p50:i(e.p50),p90:i(e.p90)})}),null!==e.weightedP50&&n.jsx("p",{className:"rp-note",children:e.unplaced?t("conn.latency.weightedUnplaced",{p50:i(e.weightedP50),n:e.unplaced}):t("conn.latency.weighted",{p50:i(e.weightedP50)})}),n.jsx(ke,{label:t("ui.nodeLatency"),points:e.samples.map(e=>({id:e.node,nodeName:!0,value:e.value,color:c(e.connections>0),lines:[e.name,i(e.value),...e.connections?[t("conn.chart.sample",{n:e.connections})]:[]]})),fmt:i}),e.chains&&n.jsxs("div",{className:"rp-legend",children:[n.jsx(Ce,{swatch:c(!0),label:t("conn.latency.inUse"),value:p(e.used,r)}),n.jsx(Ce,{swatch:c(!1),label:t("conn.latency.others"),value:p(e.samples.lengLine truncated
@@ -1 +0,0 @@
import{r as e,j as n}from"./vendor-react-64fcanlc.js";import{O as t}from"./OutboundTag-jvAhyeqj.js";import{F as o,aC as s,V as l,o as a,aT as r,Q as i,P as c,ag as d,x as u,aa as p,d3 as m,O as b,aP as h,N as g,T as f,d4 as w,w as v,cP as y,ad as x,d5 as j,d6 as _,$ as k,a0 as C,a1 as S,ab as A,d7 as N,i as L,d8 as T,av as M,am as R,d9 as P,bK as F,da as O,c7 as q,db as D,dc as W,dd as U,a9 as E,de as V,a8 as H,df as I,b4 as Q,dg as B,dh as G,bD as K,di as J,bQ as z,U as Z,dj as $,bB as X,aN as Y,Z as ee,bs as ne}from"./index-BgFj_VXE.js";import{R as te,d as oe,h as se,c as le,u as ae,S as re,L as ie,M as ce}from"./logs-BxISynQ4.js";import{T as de}from"./Tabs-CD2lZase.js";import{T as ue}from"./Toolbar-CIBfeuEz.js";import{z as pe,D as me,U as be,F as he,A as ge,B as fe,C as we,L as ve,E as ye,G as xe,H as je,I as _e,J as ke,K as Ce,M as Se}from"./activity-D06xJ7oH.js";import{S as Ae}from"./SearchSelect-CO6FsBaz.js";import{d as Ne,b as Le,c as Te,a as Me,l as Re}from"./format-s2EANuUb.js";import{D as Pe}from"./Table-Dprh3Btz.js";import{T as Fe}from"./TimeCell-B4WLB8Ou.js";import{A as Oe}from"./AddCircle-prR7q573.js";import{u as qe,r as De,R as We}from"./useQuickRule-fWQicp9K.js";import{u as Ue}from"./outbounds-BApwKyMu.js";import{c as Ee,d as Ve,e as He}from"./files-Dt8K7QfP.js";import{w as Ie}from"./labels-DPpd4zRF.js";import{u as Qe}from"./flows-xKlsDqlH.js";import{c as Be}from"./nav-Wiib71Wo.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Tag-PTwIjtR6.js";import"./Select-CkiGmyVC.js";import"./useGridSelectionCheckbox-BxnCShqN.js";import"./SearchList-Bhc2_bS4.js";import"./Virtualizer-CZl-q5wo.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";const Ge=[0,2,3,1,4,5,6,7],Ke=e.memo(function({records:t,outbounds:d,latency:u,latencyError:p,retryLatency:m,truncated:b,onSelect:h}){const g=o(),f=pe(),w=s[l()],v=e.useCallback(e=>Le(e,w),[w]),y=e.useMemo(()=>function(e,n){const t=new Map;let o=0;for(const r of e){if(null===r.upload_bytes||null===r.download_bytes){o++;continue}const e={id:r.id,up:Number(r.upload_bytes),down:Number(r.download_bytes),name:r.domain||r.dst||r.id},n=t.get(r.outbound);n?n.push(e):t.set(r.outbound,[e])}const s=[...t].map(([e,n])=>({outbound:e,points:n})).sort((e,t)=>Ne(n)(e.outbound??"",t.outbound??""));let l,a=-1n;for(const r of e){if(null===r.upload_bytes||null===r.download_bytes)continue;const e=BigInt(r.upload_bytes)+BigInt(r.download_bytes);e>a&&(a=e,l={id:r.id,up:Number(r.upload_bytes),down:Number(r.download_bytes),name:r.domain||r.dst||r.id,outbound:r.outbound})}return{series:s,unknown:o,heaviest:l,placed:e.length-o}}(t,w),[t,w]),x=e.useMemo(()=>{const e=d.filter(e=>"block"!==e);return y.series.map(n=>{return{id:n.outbound??"",label:a(n.outbound,g),color:(t=n.outbound,"block"===t?f.negative:f.cat[Ge[Math.max(0,e.indexOf(t))%Ge.length]]),points:n.points.map(e=>({id:e.id,x:e.up,y:e.down,name:e.name,detail:g("conn.chart.point",{download:v(e.down),upload:v(e.up)})}))};var t})},[y,d,f,g,v]),j=y.heaviest?[{label:g("conn.chart.busiest"),icon:n.jsx(r,{}),tint:"c3",value:y.heaviest.name,caption:a(y.heaviest.outbound,g)},{label:g("conn.chart.down"),value:v(y.heaviest.down),icon:n.jsx(me,{}),tint:"c1"},{label:g("conn.chart.up"),value:v(y.heaviest.up),icon:n.jsx(be,{}),tint:"c4"}]:[],_=y.unknown?g("conn.chart.sampleUnknown",{n:t.length,unknown:y.unknown}):g("conn.chart.sample",{n:t.length});return n.jsxs("div",{className:"rp-chart-page",children:[n.jsx(he,{facts:j,lead:!0}),n.jsxs(i,{title:g("conn.chart.title"),note:_,children:[b&&n.jsx("p",{className:"rp-note",children:g("conn.truncated")}),y.placed>0&&n.jsxs(n.Fragment,{children:[n.jsx(ge,{label:g("conn.chart.title"),series:x,fmt:v,onSelect:h,regions:{above:g("conn.chart.moreDown"),below:g("conn.chart.moreUp")}}),n.jsx(fe,{series:x}),n.jsx("p",{className:"rp-note",children:g("conn.chart.hint")})]})]}),u?n.jsx(Je,{latency:u}):p&&n.jsx(i,{title:g("ui.nodeLatency"),children:n.jsx(c,{error:p,onRetry:m})})]})});function Je({latency:e}){const t=o(),a=pe(),r=e=>Te(e,t),c=s[l()],u=n=>!e.chains||n?a.cat[0]:a.muted;return n.jsx(i,{title:t("ui.nodeLatency"),note:t("conn.latency.sample",{n:e.samples.length,missing:e.missing}),children:e.samples.length?n.jsxs(n.Fragment,{children:[n.jsx("p",{className:"rp-note",children:t("conn.latency.percentiles",{p50:r(e.p50),p90:r(e.p90)})}),null!==e.weightedP50&&n.jsx("p",{className:"rp-note",children:e.unplaced?t("conn.latency.weightedUnplaced",{p50:r(e.weightedP50),n:e.unplaced}):t("conn.latency.weighted",{p50:r(e.weightedP50)})}),n.jsx(we,{label:t("ui.nodeLatency"),points:e.samples.map(e=>({id:e.node,nodeName:!0,value:e.value,color:u(e.connections>0),lines:[e.name,r(e.value),...e.connections?[t("conn.chart.sample",{n:e.connections})]:[]]})),fmt:r}),e.chains&&n.jsxs("div",{className:"rp-legend",children:[n.jsx(ve,{swatch:u(!0),label:t("conn.latency.inUse"),value:d(e.used,c)}),n.jsx(ve,{swatch:u(!1),label:t("conn.latency.others"),value:d(e.samples.length-e.used,c)})]}),n.jsx("p",{className:"rp-noteLine truncated
@@ -1 +1 @@
import{av as e,aB as l,ad as r,F as a,T as s,Z as n}from"./index-BgFj_VXE.js";import{j as o}from"./vendor-react-64fcanlc.js";const t={userspace_tcp:"flow.userspaceTcp",userspace_udp:"flow.userspaceUdp",kernel_direct:"flow.kernelDirect",kernel_block:"flow.kernelBlock",dns_intercept:"flow.dnsIntercept",kernel_bypass:"flow.kernelBypass"},c={full:"flow.full",partial:"flow.partialVisibility",none:"ui.none"};function p(a,s,n){const o=Object.entries(a.coverage).filter(([,e])=>"full"!==e),p=e(a.dropped_records),i=p?s("flow.dropped",{n:p}):null;return o.length||i?{summary:o.length?s("flow.coverageSummary",{n:o.length}):null,detail:l(n,o.map(([e,l])=>s("ui.valuePair",{label:r(t,e,s),value:r(c,l,s)}))),dropped:i}:null}function i({view:e}){const l=a();return o.jsxs("div",{className:"rp-cluster",role:"group","aria-label":l("flow.coverage"),children:[e.summary&&o.jsx(s,{text:e.detail,children:o.jsx(n,{small:!0,tone:"warn",children:e.summary})}),e.dropped&&o.jsx(n,{small:!0,tone:"warn",children:e.dropped})]})}export{i as C,p as c};
import{aB as e,aE as l,ae as r,C as a,T as s,V as n}from"./index-CmbH0woS.js";import{j as o}from"./vendor-react-64fcanlc.js";const t={userspace_tcp:"flow.userspaceTcp",userspace_udp:"flow.userspaceUdp",kernel_direct:"flow.kernelDirect",kernel_block:"flow.kernelBlock",dns_intercept:"flow.dnsIntercept",kernel_bypass:"flow.kernelBypass"},c={full:"flow.full",partial:"flow.partialVisibility",none:"ui.none"};function p(a,s,n){const o=Object.entries(a.coverage).filter(([,e])=>"full"!==e),p=e(a.dropped_records),i=p?s("flow.dropped",{n:p}):null;return o.length||i?{summary:o.length?s("flow.coverageSummary",{n:o.length}):null,detail:l(n,o.map(([e,l])=>s("ui.valuePair",{label:r(t,e,s),value:r(c,l,s)}))),dropped:i}:null}function i({view:e}){const l=a();return o.jsxs("div",{className:"rp-cluster",role:"group","aria-label":l("flow.coverage"),children:[e.summary&&o.jsx(s,{text:e.detail,children:o.jsx(n,{small:!0,tone:"warn",children:e.summary})}),e.dropped&&o.jsx(n,{small:!0,tone:"warn",children:e.dropped})]})}export{i as C,p as c};
@@ -1 +1 @@
import{j as c}from"./vendor-react-64fcanlc.js";import{I as r}from"./index-BgFj_VXE.js";function l(l){return c.jsxs(r,{...l,children:[c.jsx("path",{fill:"currentColor",d:"M8.249 15.021c-.4 0-.733-.317-.748-.72l-.25-6.5c-.017-.414.307-.763.72-.779H8c.4 0 .733.317.748.72l.25 6.5c.017.414-.307.763-.72.778zM11.751 15.021h-.03c-.413-.016-.737-.365-.72-.779l.25-6.5c.015-.403.348-.72.748-.72h.03c.413.016.737.365.72.779l-.25 6.5c-.015.403-.348.72-.748.72"}),c.jsx("path",{fill:"currentColor",d:"M17 4h-3.5v-.75C13.5 2.01 12.49 1 11.25 1h-2.5C7.51 1 6.5 2.01 6.5 3.25V4H3c-.414 0-.75.336-.75.75s.336.75.75.75h.52l.422 10.342C3.99 17.052 4.98 18 6.19 18h7.62c1.211 0 2.2-.948 2.248-2.158L16.48 5.5H17c.414 0 .75-.336.75-.75S17.414 4 17 4m-9-.75c0-.413.337-.75.75-.75h2.5c.413 0 .75.337.75.75V4H8zm6.56 12.531c-.017.404-.346.719-.75.719H6.19c-.404 0-.733-.315-.75-.719L5.02 5.5h9.96z"})]})}export{l as D};
import{j as c}from"./vendor-react-64fcanlc.js";import{I as r}from"./index-CmbH0woS.js";function l(l){return c.jsxs(r,{...l,children:[c.jsx("path",{fill:"currentColor",d:"M8.249 15.021c-.4 0-.733-.317-.748-.72l-.25-6.5c-.017-.414.307-.763.72-.779H8c.4 0 .733.317.748.72l.25 6.5c.017.414-.307.763-.72.778zM11.751 15.021h-.03c-.413-.016-.737-.365-.72-.779l.25-6.5c.015-.403.348-.72.748-.72h.03c.413.016.737.365.72.779l-.25 6.5c-.015.403-.348.72-.748.72"}),c.jsx("path",{fill:"currentColor",d:"M17 4h-3.5v-.75C13.5 2.01 12.49 1 11.25 1h-2.5C7.51 1 6.5 2.01 6.5 3.25V4H3c-.414 0-.75.336-.75.75s.336.75.75.75h.52l.422 10.342C3.99 17.052 4.98 18 6.19 18h7.62c1.211 0 2.2-.948 2.248-2.158L16.48 5.5H17c.414 0 .75-.336.75-.75S17.414 4 17 4m-9-.75c0-.413.337-.75.75-.75h2.5c.413 0 .75.337.75.75V4H8zm6.56 12.531c-.017.404-.346.719-.75.719H6.19c-.404 0-.733-.315-.75-.719L5.02 5.5h9.96z"})]})}export{l as D};
@@ -0,0 +1 @@
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{cg as a,u as t,ab as n,ae as r,as as l,am as i,ai as d,ad as c,aB as o,bT as u,C as m,at as h,W as p,cC as x,a3 as g,cE as y,X as f,Y as b,w as j,j as v,cG as w,aF as _,P as N,cM as T,co as S,cN as C,b_ as q,cJ as k,a4 as R,cK as M,bd as L,cO as F,cn as A,aU as E,az as D,A as P,K as W,cP as O,cQ as U,cR as H,M as B,D as K,aT as I,T as Q,bH as $,cS as G,c5 as J,cT as V,J as z,cU as X,aS as Y,bG as Z,V as ee,aQ as se,cV as ae,bQ as te,cL as ne}from"./index-CmbH0woS.js";import{D as re}from"./Delete-CQeLz6oG.js";import{s as le,q as ie,u as de,v as ce,C as oe,F as ue,B as me,L as he,W as pe,x as xe,D as ge}from"./activity-CiEWAlFW.js";import{q as ye,f as fe,j as be,k as je,S as ve,L as we,A as _e}from"./ActionGroup-D3mQjUsw.js";import{T as Ne}from"./Tabs-BzeNgTje.js";import{T as Te}from"./Toolbar-B9K5nAyx.js";import{D as Se}from"./Table-Cfbaho6J.js";import{T as Ce}from"./TimeCell-D0UB-mKs.js";import{$ as qe}from"./SearchList-CJ8rQxgu.js";import{c as ke,d as Re,e as Me}from"./files-Dt8K7QfP.js";import{d as Le}from"./nav-C4ZPdNvM.js";import{a as Fe,u as Ae,R as Ee,Q as De}from"./useQuickRule-C0zoMd-O.js";/* empty css */import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BcN72K3H.js";import"./Checkbox-f7Je53QZ.js";import"./Virtualizer-itu1Kg0o.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-JwHCi_at.js";import"./SearchSelect-CuaWhoLz.js";import"./flows-BMReQznn.js";function Pe(e,s,a,t,r){return{domain:e,dip:null,sip:(r&&n(r))??null,outbound:null,matched:null,dns:{type:s,answers:Fe(a),upstream:t,query:{name:e,type:s}}}}const We=(e,s,a)=>({domain:null,dip:e,sip:null,outbound:null,matched:null,dns:{type:a,answers:[e],upstream:null,query:{name:s,type:a}}}),Oe={forced:"dns.route.forced","dns.routing":"dns.route.rules",default:"dns.route.default"};function Ue(e,s){return{fields:[[s("ui.state"),e.status],[s("ui.upstream"),e.upstream??"—"],[s("dns.routeSource"),r(Oe,e.route.source,s)],[s("dns.routeRule"),e.route.rule??"—"],[s("ui.elapsed"),l(e.elapsed_ms,s)]],answers:(e.answers??[]).map(e=>s("dns.answer",{name:e.name,type:e.type,ttl:e.ttl,data:e.data})),cacheText:s(e.cached?"dns.hit":"dns.miss"),cacheTone:e.cached?void 0:"warn"}}function He(e,s,a){return e?a instanceof u&&503===a.status?"unavailable":s?"ready":a?"error":"loading":"unlisted"}const Be=[{id:"full",label:"rule.kind.domain"},{id:"suffix",label:"rule.kind.domainSuffix"},{id:"keyword",label:"rule.kind.domainKeyword"},{id:"regex",label:"dns.matchRegex"}],Ke=e=>e.trim().toLowerCase().replace(/\.$/,"");function Ie(e,s){if(!s.trim())return()=>!0;if("regex"===e){const e=function(e){try{return new RegExp(e,"iu")}catch{return null}}(s);return e&&(s=>e.test(Ke(s)))}if("keyword"===e){const e=s.trim().toLowerCase();return s=>Ke(s).includes(e)}const a=Ke(s),t="suffix"===e&&a.startsWith("."),n=t?a.slice(1):a;return n?"full"===e?e=>Ke(e)===n:e=>{const s=Ke(e);return s.endsWith("."+n)||!t&&s===n}:null}function Qe({go:s,query:n}){const r=m(),l=h(),i=p(),d=e.useMemo(()=>new URLSearchParams(n),[n]),[c,o]=e.useState(d.get("domain")??""),[u,_]=e.useState(d.get("type")??"A"),[N,T]=e.useState(!1);x(d.get("domain"),e=>o(e??"")),x(d.get("type"),e=>_(e??"A"));const[S,C]=e.useState(null),{busy:q,error:k,run:R}=g({rethrow:!0}),M=i.data?.resources,L=e.useMemo(()=>function(e,s,a,t,n,r){const l=s?.dns_query.record_types??[],i="all"===a?l.length>0:l.includes(a);return{types:l,choices:[...l.map(e=>({id:e,label:e})),{id:"all",label:r("dns.allTypes")}],disabled:n||!s?.dns_query.available||!i||!t.trim(),reason:!s||n?null:s.dns_query.available?i?null:r("all"===a?"dns.noTypes":"dns.typeUnsupported"):r("dns.queryUnavailable"),showCache:!!s?.dns_cache.available,cards:e?.results.map(s=>({id:s.type,title:`${e.domain} ${s.type}`,...Ue(s,r),seed:Pe(e.domain,s.type,s.answers??[],s.upstream,null),answerSeeds:(s.answers??[]).map(a=>Fe([a]).length?{address:a.data,seed:We(a.data,e.domain,s.type)}:null)}))??[],tabs:Le(s).map(e=>({id:e.id,label:r(e.titleKey)}))}}(S,M,u,c,!!q,r),[S,M,u,c,q,r]),F=L.tabs.map(e=>e.id),A=d.has("domain")||d.has("device"),E=F.includes("log")?A?"log":"stats":F.includes("query")?"query":F[0]??"query",D=y(n,F,E),P=f(M,"config",{whileLoading:!1}),W=b("query"===D&&P&&f(M,"dns_query",{whileLoading:!1})),O=e.useMemo(()=>P?function(e,s){const n=[...new Set((e??[]).flatMap(e=>e.content?a(e.content).map(t):[]))];return n.length?[{id:"",label:s("dns.upstreamAuto")},...n.map(e=>({id:e,label:e}))]:[]}(W.data?.sources,r):[],[P,W.data,r]),[U,H]=e.useState(""),B=O.some(e=>e.id===U)?U:"";W.data&&U&&!B&&H("");const K=async(e={domain:c,type:u})=>{try{await R("query",async s=>{const a=await ye(l.dnsQuery,e.domain.trim(),"all"===e.type?L.types:[e.type],M?.dns_query.limits?.max_types_per_request??1,s,N?"bypass":"normal",B||void 0);return s.aborted||C(a),a})}catch{}},I=f(M,"dns_query",{whileLoading:!1})&&L.types.length>0,Q=Ae(s,{queryAgain:I?e=>{const a=L.types.includes(e.type)?e.type:"allLine truncated
@@ -1 +0,0 @@
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{b$ as a,u as t,aa as n,ad as r,ag as l,ac as i,bD as d,av as o,F as c,ap as u,$ as m,da as h,a7 as p,dc as g,a0 as x,a1 as y,w as f,j as b,de as j,aC as v,V as w,dk as _,c7 as N,dl as T,bK as S,dh as q,a8 as C,di as k,b4 as R,c6 as M,aR as F,au as A,D,P as L,dm as P,dn as W,dp as E,Q as O,G as U,aQ as H,T as B,dq as K,bQ as Q,dr as $,O as I,ds as V,aP as G,bs as z,Z as X,aN as Y,dt as Z,bB as J,dj as ee}from"./index-BgFj_VXE.js";import{A as se}from"./AddCircle-prR7q573.js";import{D as ae}from"./Delete-DA-ArqRQ.js";import{Q as te,R as ne,z as re,T as le,V as ie,F as de,C as oe,L as ce,X as ue,Y as me,D as he}from"./activity-D06xJ7oH.js";import{q as pe,f as ge,j as xe,k as ye,S as fe,L as be,A as je}from"./logs-BxISynQ4.js";import{T as ve}from"./Tabs-CD2lZase.js";import{T as we}from"./Toolbar-CIBfeuEz.js";import{D as _e}from"./Table-Dprh3Btz.js";import{T as Ne}from"./TimeCell-B4WLB8Ou.js";import{$ as Te}from"./SearchList-Bhc2_bS4.js";import{c as Se,d as qe,e as Ce}from"./files-Dt8K7QfP.js";import{c as ke,l as Re}from"./format-s2EANuUb.js";import{d as Me}from"./nav-KYKfR_0p.js";import{a as Fe,u as Ae,R as De}from"./useQuickRule-fWQicp9K.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-CkiGmyVC.js";import"./useGridSelectionCheckbox-BxnCShqN.js";import"./Virtualizer-CZl-q5wo.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./SearchSelect-CO6FsBaz.js";import"./flows-xKlsDqlH.js";function Le(e,s,a,t,r){return{domain:e,dip:null,sip:(r&&n(r))??null,outbound:null,matched:null,dns:{type:s,answers:Fe(a),upstream:t,query:{name:e,type:s}}}}const Pe=(e,s,a)=>({domain:null,dip:e,sip:null,outbound:null,matched:null,dns:{type:a,answers:[e],upstream:null,query:{name:s,type:a}}}),We={forced:"dns.route.forced","dns.routing":"dns.route.rules",default:"dns.route.default"};function Ee(e,s){return{fields:[[s("ui.state"),e.status],[s("ui.upstream"),e.upstream??"—"],[s("dns.routeSource"),r(We,e.route.source,s)],[s("dns.routeRule"),e.route.rule??"—"],[s("ui.elapsed"),ke(e.elapsed_ms,s)]],answers:(e.answers??[]).map(e=>s("dns.answer",{name:e.name,type:e.type,ttl:e.ttl,data:e.data})),cacheText:s(e.cached?"dns.hit":"dns.miss"),cacheTone:e.cached?void 0:"warn"}}function Oe(e,s,a){return e?a instanceof d&&503===a.status?"unavailable":s?"ready":a?"error":"loading":"unlisted"}const Ue=[{id:"full",label:"rule.kind.domain"},{id:"suffix",label:"rule.kind.domainSuffix"},{id:"keyword",label:"rule.kind.domainKeyword"},{id:"regex",label:"dns.matchRegex"}],He=e=>e.trim().toLowerCase().replace(/\.$/,"");function Be(e,s){if(!s.trim())return()=>!0;if("regex"===e){const e=function(e){try{return new RegExp(e,"iu")}catch{return null}}(s);return e&&(s=>e.test(He(s)))}if("keyword"===e){const e=s.trim().toLowerCase();return s=>He(s).includes(e)}const a=He(s),t="suffix"===e&&a.startsWith("."),n=t?a.slice(1):a;return n?"full"===e?e=>He(e)===n:e=>{const s=He(e);return s.endsWith("."+n)||!t&&s===n}:null}function Ke({go:s,query:n}){const r=c(),l=u(),i=m(),d=e.useMemo(()=>new URLSearchParams(n),[n]),[o,v]=e.useState(d.get("domain")??""),[w,_]=e.useState(d.get("type")??"A"),[N,T]=e.useState(!1);h(d.get("domain"),e=>v(e??"")),h(d.get("type"),e=>_(e??"A"));const[S,q]=e.useState(null),{busy:C,error:k,run:R}=p({rethrow:!0}),M=i.data?.resources,F=e.useMemo(()=>function(e,s,a,t,n,r){const l=s?.dns_query.record_types??[],i="all"===a?l.length>0:l.includes(a);return{types:l,choices:[...l.map(e=>({id:e,label:e})),{id:"all",label:r("dns.allTypes")}],disabled:n||!s?.dns_query.available||!i||!t.trim(),reason:!s||n?null:s.dns_query.available?i?null:r("all"===a?"dns.noTypes":"dns.typeUnsupported"):r("dns.queryUnavailable"),showCache:!!s?.dns_cache.available,cards:e?.results.map(s=>({id:s.type,title:`${e.domain} ${s.type}`,...Ee(s,r),seed:Le(e.domain,s.type,s.answers??[],s.upstream,null),answerSeeds:(s.answers??[]).map(a=>Fe([a]).length?{address:a.data,seed:Pe(a.data,e.domain,s.type)}:null)}))??[],tabs:Me(s).map(e=>({id:e.id,label:r(e.titleKey)}))}}(S,M,w,o,!!C,r),[S,M,w,o,C,r]),A=F.tabs.map(e=>e.id),D=d.has("domain")||d.has("device"),L=A.includes("log")?D?"log":"stats":A.includes("query")?"query":A[0]??"query",P=g(n,A,L),W=x(M,"config",{whileLoading:!1}),E=y("query"===P&&W&&x(M,"dns_query",{whileLoading:!1})),O=e.useMemo(()=>W?function(e,s){const n=[...new Set((e??[]).flatMap(e=>e.content?a(e.content).map(t):[]))];return n.length?[{id:"",label:s("dns.upstreamAuto")},...n.map(e=>({id:e,label:e}))]:[]}(E.data?.sources,r):[],[W,E.data,r]),[U,H]=e.useState(""),B=O.some(e=>e.id===U)?U:"";E.data&&U&&!B&&H("");const K=async(e={domain:o,type:w})=>{try{await R("query",async s=>{const a=await pe(l.dnsQuery,e.domain.trim(),"all"===e.type?F.types:[e.type],M?.dns_query.limits?.max_types_per_request??1,s,N?"bypass":"normal",B||void 0);return s.aborted||q(a),a})}catch{}},Q=x(M,"dns_query",{whileLoading:!1})&&F.types.length>0,$=Ae(s,{queryAgain:Q?e=>{const a=F.types.includes(e.type)?e.type:"all";sLine truncated
@@ -0,0 +1 @@
import{r as n,j as t}from"./vendor-react-64fcanlc.js";import{C as e,E as r}from"./index-CmbH0woS.js";import{bb as o,bj as a,be as i,bg as u}from"./activity-CiEWAlFW.js";import{w as l,c,a as s}from"./array-C0VuvQyb.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./ActionGroup-D3mQjUsw.js";import"./Select-BcN72K3H.js";const f=Math.abs,h=Math.atan2,y=Math.cos,p=Math.max,d=Math.min,x=Math.sin,g=Math.sqrt,v=1e-12,m=Math.PI,M=m/2,A=2*m;function j(n){return n>=1?M:n<=-1?-M:Math.asin(n)}function b(n){return n.innerRadius}function w(n){return n.outerRadius}function P(n){return n.startAngle}function R(n){return n.endAngle}function T(n){return n&&n.padAngle}function L(n,t,e,r,o,a,i){var u=n-e,l=t-r,c=(i?a:-a)/g(u*u+l*l),s=c*l,f=-c*u,h=n+s,y=t+f,d=e+s,x=r+f,v=(h+d)/2,m=(y+x)/2,M=d-h,A=x-y,j=M*M+A*A,b=o-a,w=h*x-d*y,P=(A<0?-1:1)*g(p(0,b*b*j-w*w)),R=(w*A-M*P)/j,T=(-w*M-A*P)/j,L=(w*A+M*P)/j,$=(-w*M+A*P)/j,B=R-v,E=T-m,I=L-v,N=$-m;return B*B+E*E>I*I+N*N&&(R=L,T=$),{cx:R,cy:T,x01:-s,y01:-f,x11:R*(o/b-1),y11:T*(o/b-1)}}function $(){var n=b,t=w,e=c(0),r=null,o=P,a=R,i=T,u=null,s=l(p);function p(){var l,c,p,b=+n.apply(this,arguments),w=+t.apply(this,arguments),P=o.apply(this,arguments)-M,R=a.apply(this,arguments)-M,T=f(R-P),$=R>P;if(u||(u=l=s()),w<b&&(c=w,w=b,b=c),w>v)if(T>A-v)u.moveTo(w*y(P),w*x(P)),u.arc(0,0,w,P,R,!$),b>v&&(u.moveTo(b*y(R),b*x(R)),u.arc(0,0,b,R,P,$));else{var B,E,I=P,N=R,S=P,k=R,C=T,D=T,F=i.apply(this,arguments)/2,K=F>v&&(r?+r.apply(this,arguments):g(b*b+w*w)),q=d(f(w-b)/2,+e.apply(this,arguments)),G=q,H=q;if(K>v){var V=j(K/b*x(F)),_=j(K/w*x(F));(C-=2*V)>v?(S+=V*=$?1:-1,k-=V):(C=0,S=k=(P+R)/2),(D-=2*_)>v?(I+=_*=$?1:-1,N-=_):(D=0,I=N=(P+R)/2)}var z=w*y(I),J=w*x(I),O=b*y(k),Q=b*x(k);if(q>v){var U,W=w*y(N),X=w*x(N),Y=b*y(S),Z=b*x(S);if(T<m)if(U=function(n,t,e,r,o,a,i,u){var l=e-n,c=r-t,s=i-o,f=u-a,h=f*l-s*c;if(!(h*h<v))return[n+(h=(s*(t-a)-f*(n-o))/h)*l,t+h*c]}(z,J,Y,Z,W,X,O,Q)){var nn=z-U[0],tn=J-U[1],en=W-U[0],rn=X-U[1],on=1/x(((p=(nn*en+tn*rn)/(g(nn*nn+tn*tn)*g(en*en+rn*rn)))>1?0:p<-1?m:Math.acos(p))/2),an=g(U[0]*U[0]+U[1]*U[1]);G=d(q,(b-an)/(on-1)),H=d(q,(w-an)/(on+1))}else G=H=0}D>v?H>v?(B=L(Y,Z,z,J,w,H,$),E=L(W,X,O,Q,w,H,$),u.moveTo(B.cx+B.x01,B.cy+B.y01),H<q?u.arc(B.cx,B.cy,H,h(B.y01,B.x01),h(E.y01,E.x01),!$):(u.arc(B.cx,B.cy,H,h(B.y01,B.x01),h(B.y11,B.x11),!$),u.arc(0,0,w,h(B.cy+B.y11,B.cx+B.x11),h(E.cy+E.y11,E.cx+E.x11),!$),u.arc(E.cx,E.cy,H,h(E.y11,E.x11),h(E.y01,E.x01),!$))):(u.moveTo(z,J),u.arc(0,0,w,I,N,!$)):u.moveTo(z,J),b>v&&C>v?G>v?(B=L(O,Q,W,X,b,-G,$),E=L(z,J,Y,Z,b,-G,$),u.lineTo(B.cx+B.x01,B.cy+B.y01),G<q?u.arc(B.cx,B.cy,G,h(B.y01,B.x01),h(E.y01,E.x01),!$):(u.arc(B.cx,B.cy,G,h(B.y01,B.x01),h(B.y11,B.x11),!$),u.arc(0,0,b,h(B.cy+B.y11,B.cx+B.x11),h(E.cy+E.y11,E.cx+E.x11),$),u.arc(E.cx,E.cy,G,h(E.y11,E.x11),h(E.y01,E.x01),!$))):u.arc(0,0,b,k,S,$):u.lineTo(O,Q)}else u.moveTo(0,0);if(u.closePath(),l)return u=null,l+""||null}return p.centroid=function(){var e=(+n.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-m/2;return[y(r)*e,x(r)*e]},p.innerRadius=function(t){return arguments.length?(n="function"==typeof t?t:c(+t),p):n},p.outerRadius=function(n){return arguments.length?(t="function"==typeof n?n:c(+n),p):t},p.cornerRadius=function(n){return arguments.length?(e="function"==typeof n?n:c(+n),p):e},p.padRadius=function(n){return arguments.length?(r=null==n?null:"function"==typeof n?n:c(+n),p):r},p.startAngle=function(n){return arguments.length?(o="function"==typeof n?n:c(+n),p):o},p.endAngle=function(n){return arguments.length?(a="function"==typeof n?n:c(+n),p):a},p.padAngle=function(n){return arguments.length?(i="function"==typeof n?n:c(+n),p):i},p.context=function(n){return arguments.length?(u=null==n?null:n,p):u},p}function B(n,t){return t<n?-1:t>n?1:t>=n?0:NaN}function E(n){return n}function I({label:l,rows:f}){const h=e(),[y,p]=r(Math.round,120),{tip:d,showAt:x,hide:g}=o(),[v,m]=n.useState(null),M=f.filter(n=>null!==n.value&&n.value>0),j=p?.width??0,b=p?.height??0,w=a(M.map(n=>n.value)),P=function(){var n=E,t=B,e=null,r=c(0),o=c(A),a=c(0);function i(i){var u,l,c,f,h,y=(i=s(i)).length,p=0,d=new Array(y),x=new Array(y),g=+r.apply(this,arguments),v=Math.min(A,Math.max(-A,o.apply(this,arguments)-g)),m=Math.min(Math.abs(v)/y,a.apply(this,arguments)),M=m*(v<0?-1:1);for(u=0;u<y;++u)(h=x[d[u]=u]=+n(i[u],u,i))>0&&(p+=h);for(null!=t?d.sort(function(n,e){return t(x[n],x[e])}):null!=e&&d.sort(function(n,t){return e(i[n],i[t])}),u=0,c=p?(v-y*M)/p:0;u<y;++u,g=f)l=d[u],f=g+((h=x[l])>0?h*c:0)+M,x[l]={data:i[l],index:u,value:h,startAngle:g,endAngle:f,padAngle:m};return x}return i.value=function(t){return arguments.length?(n="function"==typeof t?t:c(+t),i):n},i.sortValues=function(n){return arguments.length?(t=n,e=null,i):t},i.sort=function(n){return arguments.length?(e=n,t=null,i):e},i.startAngle=function(n){return arguments.length?(r="function"==typeof n?n:c(+n),i):r},i.endAngle=function(n){return arguments.length?(o="function"==typeof n?n:c(+n),i):o},Line truncated
@@ -1 +0,0 @@
import{r as n,j as t}from"./vendor-react-64fcanlc.js";import{F as e,H as r}from"./index-BgFj_VXE.js";import{b8 as o,bg as a,bb as i,bd as l}from"./activity-D06xJ7oH.js";import{w as u,c,a as s}from"./array-C0VuvQyb.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./logs-BxISynQ4.js";import"./Select-CkiGmyVC.js";import"./format-s2EANuUb.js";const f=Math.abs,h=Math.atan2,y=Math.cos,p=Math.max,d=Math.min,x=Math.sin,g=Math.sqrt,v=1e-12,m=Math.PI,M=m/2,A=2*m;function b(n){return n>=1?M:n<=-1?-M:Math.asin(n)}function j(n){return n.innerRadius}function w(n){return n.outerRadius}function P(n){return n.startAngle}function R(n){return n.endAngle}function T(n){return n&&n.padAngle}function L(n,t,e,r,o,a,i){var l=n-e,u=t-r,c=(i?a:-a)/g(l*l+u*u),s=c*u,f=-c*l,h=n+s,y=t+f,d=e+s,x=r+f,v=(h+d)/2,m=(y+x)/2,M=d-h,A=x-y,b=M*M+A*A,j=o-a,w=h*x-d*y,P=(A<0?-1:1)*g(p(0,j*j*b-w*w)),R=(w*A-M*P)/b,T=(-w*M-A*P)/b,L=(w*A+M*P)/b,$=(-w*M+A*P)/b,B=R-v,F=T-m,I=L-v,N=$-m;return B*B+F*F>I*I+N*N&&(R=L,T=$),{cx:R,cy:T,x01:-s,y01:-f,x11:R*(o/j-1),y11:T*(o/j-1)}}function $(){var n=j,t=w,e=c(0),r=null,o=P,a=R,i=T,l=null,s=u(p);function p(){var u,c,p,j=+n.apply(this,arguments),w=+t.apply(this,arguments),P=o.apply(this,arguments)-M,R=a.apply(this,arguments)-M,T=f(R-P),$=R>P;if(l||(l=u=s()),w<j&&(c=w,w=j,j=c),w>v)if(T>A-v)l.moveTo(w*y(P),w*x(P)),l.arc(0,0,w,P,R,!$),j>v&&(l.moveTo(j*y(R),j*x(R)),l.arc(0,0,j,R,P,$));else{var B,F,I=P,N=R,S=P,k=R,D=T,E=T,H=i.apply(this,arguments)/2,K=H>v&&(r?+r.apply(this,arguments):g(j*j+w*w)),q=d(f(w-j)/2,+e.apply(this,arguments)),C=q,V=q;if(K>v){var _=b(K/j*x(H)),z=b(K/w*x(H));(D-=2*_)>v?(S+=_*=$?1:-1,k-=_):(D=0,S=k=(P+R)/2),(E-=2*z)>v?(I+=z*=$?1:-1,N-=z):(E=0,I=N=(P+R)/2)}var G=w*y(I),J=w*x(I),O=j*y(k),Q=j*x(k);if(q>v){var U,W=w*y(N),X=w*x(N),Y=j*y(S),Z=j*x(S);if(T<m)if(U=function(n,t,e,r,o,a,i,l){var u=e-n,c=r-t,s=i-o,f=l-a,h=f*u-s*c;if(!(h*h<v))return[n+(h=(s*(t-a)-f*(n-o))/h)*u,t+h*c]}(G,J,Y,Z,W,X,O,Q)){var nn=G-U[0],tn=J-U[1],en=W-U[0],rn=X-U[1],on=1/x(((p=(nn*en+tn*rn)/(g(nn*nn+tn*tn)*g(en*en+rn*rn)))>1?0:p<-1?m:Math.acos(p))/2),an=g(U[0]*U[0]+U[1]*U[1]);C=d(q,(j-an)/(on-1)),V=d(q,(w-an)/(on+1))}else C=V=0}E>v?V>v?(B=L(Y,Z,G,J,w,V,$),F=L(W,X,O,Q,w,V,$),l.moveTo(B.cx+B.x01,B.cy+B.y01),V<q?l.arc(B.cx,B.cy,V,h(B.y01,B.x01),h(F.y01,F.x01),!$):(l.arc(B.cx,B.cy,V,h(B.y01,B.x01),h(B.y11,B.x11),!$),l.arc(0,0,w,h(B.cy+B.y11,B.cx+B.x11),h(F.cy+F.y11,F.cx+F.x11),!$),l.arc(F.cx,F.cy,V,h(F.y11,F.x11),h(F.y01,F.x01),!$))):(l.moveTo(G,J),l.arc(0,0,w,I,N,!$)):l.moveTo(G,J),j>v&&D>v?C>v?(B=L(O,Q,W,X,j,-C,$),F=L(G,J,Y,Z,j,-C,$),l.lineTo(B.cx+B.x01,B.cy+B.y01),C<q?l.arc(B.cx,B.cy,C,h(B.y01,B.x01),h(F.y01,F.x01),!$):(l.arc(B.cx,B.cy,C,h(B.y01,B.x01),h(B.y11,B.x11),!$),l.arc(0,0,j,h(B.cy+B.y11,B.cx+B.x11),h(F.cy+F.y11,F.cx+F.x11),$),l.arc(F.cx,F.cy,C,h(F.y11,F.x11),h(F.y01,F.x01),!$))):l.arc(0,0,j,k,S,$):l.lineTo(O,Q)}else l.moveTo(0,0);if(l.closePath(),u)return l=null,u+""||null}return p.centroid=function(){var e=(+n.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-m/2;return[y(r)*e,x(r)*e]},p.innerRadius=function(t){return arguments.length?(n="function"==typeof t?t:c(+t),p):n},p.outerRadius=function(n){return arguments.length?(t="function"==typeof n?n:c(+n),p):t},p.cornerRadius=function(n){return arguments.length?(e="function"==typeof n?n:c(+n),p):e},p.padRadius=function(n){return arguments.length?(r=null==n?null:"function"==typeof n?n:c(+n),p):r},p.startAngle=function(n){return arguments.length?(o="function"==typeof n?n:c(+n),p):o},p.endAngle=function(n){return arguments.length?(a="function"==typeof n?n:c(+n),p):a},p.padAngle=function(n){return arguments.length?(i="function"==typeof n?n:c(+n),p):i},p.context=function(n){return arguments.length?(l=null==n?null:n,p):l},p}function B(n,t){return t<n?-1:t>n?1:t>=n?0:NaN}function F(n){return n}function I({label:u,rows:f}){const h=e(),[y,p]=r(Math.round,120),{tip:d,showAt:x,hide:g}=o(),[v,m]=n.useState(null),M=f.filter(n=>null!==n.value&&n.value>0),b=p?.width??0,j=p?.height??0,w=a(M.map(n=>n.value)),P=function(){var n=F,t=B,e=null,r=c(0),o=c(A),a=c(0);function i(i){var l,u,c,f,h,y=(i=s(i)).length,p=0,d=new Array(y),x=new Array(y),g=+r.apply(this,arguments),v=Math.min(A,Math.max(-A,o.apply(this,arguments)-g)),m=Math.min(Math.abs(v)/y,a.apply(this,arguments)),M=m*(v<0?-1:1);for(l=0;l<y;++l)(h=x[d[l]=l]=+n(i[l],l,i))>0&&(p+=h);for(null!=t?d.sort(function(n,e){return t(x[n],x[e])}):null!=e&&d.sort(function(n,t){return e(i[n],i[t])}),l=0,c=p?(v-y*M)/p:0;l<y;++l,g=f)u=d[l],f=g+((h=x[u])>0?h*c:0)+M,x[u]={data:i[u],index:l,value:h,startAngle:g,endAngle:f,padAngle:m};return x}return i.value=function(t){return arguments.length?(n="function"==typeof t?t:c(+t),i):n},i.sortValues=function(n){return arguments.length?(t=n,e=null,i):t},i.sort=function(n){return arguments.length?(e=n,t=null,i):e},i.startAngle=function(n){return arguments.length?(r="function"==typeof n?n:c(+n),i):r},i.endAngle=function(n){return arguments.length?(o="function"==tLine truncated
@@ -0,0 +1 @@
import{r as e,$ as t,a as r,j as n}from"./vendor-react-64fcanlc.js";import{fS as o,gk as i,fJ as a,fF as s,dx as l,gl as d,gm as c,gn as p,fL as u,fG as g,fH as f,go as m,fI as h,gp as y,gq as D,fT as v,g7 as b,gr as w,gs as x,g8 as T,fQ as k,gt as E,bs as P,du as K,dl as O,bZ as S,aY as C,c$ as I,gd as j,aU as A,bD as R,J as M,E as B,C as L,m as F,gu as $,p as z,R as N,gv as V,gw as X,gx as Y,bJ as H,cT as U,l as q,W as J,O as G,dO as W,c9 as _,dd as Z,d6 as Q,ec as ee,gy as te,Q as re,gz as ne,gA as oe,bw as ie,gB as ae,gC as se,bR as le,gD as de,gE as ce,a4 as pe,b5 as ue}from"./index-CmbH0woS.js";import{aS as ge,aT as fe,aU as me,aV as he,aW as ye,aX as De,aY as ve,aZ as be,a_ as we,a$ as xe,b0 as Te,b1 as ke,b2 as Ee,b3 as Pe,b4 as Ke,b5 as Oe,b6 as Se,b7 as Ce,b8 as Ie,b9 as je,ba as Ae}from"./activity-CiEWAlFW.js";import{$ as Re,a as Me}from"./GridList-ByMoT8kr.js";import{k as Be}from"./Select-BcN72K3H.js";import{D as Le}from"./Delete-CQeLz6oG.js";import{S as Fe,u as $e,$ as ze}from"./ActionGroup-D3mQjUsw.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Checkbox-f7Je53QZ.js";var Ne=function(e){return e[e.none=0]="none",e[e.cancel=0]="cancel",e[e.move=1]="move",e[e.copy=2]="copy",e[e.link=4]="link",e[e.all=7]="all",e}({});const Ve={...Ne,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},Xe=Ue(Ve);Xe[7]="all";const Ye={none:"cancel",link:"link",copy:"copy",move:"move"},He=Ue(Ye);function Ue(e){let t={};for(let r in e)t[e[r]]=r;return t}const qe=new Set(["text/plain","text/uri-list","text/html"]),Je="application/vnd.react-aria.items+json",Ge="application/octet-stream",We=new WeakMap,_e=Symbol();function Ze(e){let t=new Set;for(let r of e)for(let e of Object.keys(r))t.add(e);return t}function Qe(e){return e||(e="virtual"),"pointer"===e&&(e="virtual"),"virtual"===e&&"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(pointer: coarse)").matches&&(e="touch"),e}function et(){return Qe(o())}function tt(){return Qe(i())}class rt{constructor(e){this.types=new Set;let t=!1;for(let r of e.items)r.type!==Je&&("file"===r.kind&&(t=!0),r.type?this.types.add(r.type):this.types.add(Ge));this.includesUnknownTypes=!t&&e.types.includes("Files")}has(e){if(Array.isArray(e))return e.some(e=>this.has(e));if(this.includesUnknownTypes||e===_e&&this.types.has(Ge)||"*/*"===e)return!0;if("string"==typeof e){if(e.endsWith("/*")){for(let t of this.types)if(t.startsWith(e.slice(0,-2)))return!0;return!1}return this.types.has(e)}return!1}}function nt(e){if(!e)throw new Error("No file provided");return{kind:"file",type:e.type||Ge,name:e.name,getText:()=>{return"function"==typeof(t=e).text?t.text():new Promise((e,r)=>{let n=new FileReader;n.onload=()=>{e(n.result)},n.onerror=r,n.readAsText(t)});var t},getFile:()=>Promise.resolve(e)}}function ot(e){return{kind:"directory",name:e.name,getEntries:()=>async function*(e){let t,r=e.createReader();do{t=await new Promise((e,t)=>{r.readEntries(e,t)});for(let e of t)if(e.isFile){let t=await it(e);yield nt(t)}else e.isDirectory&&(yield ot(e))}while(t.length>0)}(e)}}function it(e){return new Promise((t,r)=>e.file(t,r))}let at,st={draggingKeys:new Set};function lt(e){st.dropCollectionRef=e}function dt(){st={draggingKeys:new Set}}function ct(e){let{draggingCollectionRef:t,dropCollectionRef:r}=st;return null!=t?.current&&t.current===(e?.current||r?.current)}function pt(e){at=e}let ut=Ne.none;function gt(e){ut=e}let ft=new Map,mt=new Map,ht=null,yt=new Set;function Dt(e){return ft.set(e.element,e),ht?.updateValidDropTargets(),()=>{ft.delete(e.element),ht?.updateValidDropTargets()}}function vt(){let[t,r]=e.useState(ht);return e.useEffect(()=>{let e=()=>r(ht);return yt.add(e),()=>{yt.delete(e)}},[]),t}function bt(){return!!ht}const wt=["pointerdown","pointermove","pointerenter","pointerleave","pointerover","pointerout","pointerup","mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","touchstart","touchmove","touchend","focusin","focusout"],xt=["pointerup","mouseup","touchend"],Tt={keyboard:"dragStartedKeyboard",touch:"dragStartedTouch",virtual:"dragStartedVirtual"};class kt{constructor(e,t){this.validDropTargets=[],this.currentDropTarget=null,this.currentDropItem=null,this.dropOperation=null,this.mutationObserver=null,this.restoreAriaHidden=null,this.isVirtualClick=!1,this.dragTarget=e,this.stringFormatter=t,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.cancelEvent=this.cancelEvent.bind(this),this.initialFocused=!1}setup(){document.addEventListener("keydown",this.onKeyDown,!0),document.addEventListener("keyup",this.onKeyUp,!0),window.addEventListener("focus",this.onFocus,!0),window.addEventListener("blur",this.onBlur,!0),document.addEventListener("click",this.onClick,!0),document.addEventListener("pointerdown",this.onPointerDown,!0);for(let Line truncated
@@ -1 +0,0 @@
.rp-sortable-row{outline:none;min-inline-size:0;position:relative}.rp-sortable-row[data-focus-visible]{outline:none}.rp-sortable-row:is([data-focus-visible],[data-selected]):before{content:"";inset:calc(0px - var(--rp-sortable-gap,var(--rp-space-2)) - var(--rp-focus-width));border:var(--rp-focus-width) solid var(--rp-focus-color);pointer-events:none;position:absolute}.rp-sortable-grid{outline:none}.rp-sortable-row>[role=gridcell]{display:contents}.rp-sortable-grid[data-drop-target]{outline:2px dashed var(--rp-accent)}.rp-sortable-grid .rp-dashboard-tools{background:0 0;inset-block-start:calc(var(--rp-line-caption) / 2 - var(--rp-space-1));inset-inline-end:0;translate:0 -50%}.rp-sortable-grid .rp-widget-label{padding-inline-end:calc(var(--rp-control) + var(--rp-space-2))}.rp-sortable-row[data-module=divider] .rp-dashboard-tools{background:var(--rp-surface);padding-inline-start:var(--rp-space-1);inset-block-start:50%}.rp-widget-gallery-grid{gap:var(--rp-space-4);grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));display:grid}.rp-widget-gallery-tile{gap:var(--rp-space-3);min-inline-size:0;padding:var(--rp-space-4);border:1px solid var(--rp-line);border-radius:var(--rp-r-lg);flex-direction:column;display:flex}.rp-widget-gallery-tile>.rp-cluster{margin-block-start:auto}.rp-widget-gallery-tile[data-added]{background:var(--rp-fill);--rp-subtle:var(--rp-subtle-text)}.rp-widget-gallery-frame{pointer-events:none;block-size:200px;overflow:hidden;mask-image:linear-gradient(#000 80%,#0000)}.rp-widget-gallery-presets{align-items:flex-start;gap:var(--rp-space-3) var(--rp-preset-gap);flex-wrap:wrap;display:flex}.rp-widget-gallery-preset{gap:var(--rp-space-1);flex-direction:column;min-inline-size:0;display:flex}.rp-widget-gallery-thumb{position:relative;overflow:hidden}.rp-widget-gallery-thumb-card{transform-origin:0 0;pointer-events:none;container:rp-tile/inline-size}.rp-widget-gallery-thumb-card:dir(rtl){transform-origin:100% 0}.rp-widget-gallery-thumb-add{border-radius:var(--rp-r-lg);cursor:pointer;background:0 0;border:0;position:absolute;inset:0}.rp-widget-gallery-thumb-add[data-hovered]{outline:2px solid var(--rp-line);outline-offset:2px}.rp-widget-gallery-thumb-add[data-focus-visible]{outline:2px solid var(--rp-accent);outline-offset:2px}.rp-widget-gallery-thumb-add[data-disabled]{cursor:default;outline:none}
@@ -1 +0,0 @@
import{r as e,$ as t,a as r,j as n}from"./vendor-react-64fcanlc.js";import{c8 as o,c9 as i,ca as a,cb as s,cc as l,cd as d,ce as c,cf as p,cg as u,ch as g,ci as f,cj as m,ck as h,cl as y,cm as D,cn as v,co as b,cp as w,cq as x,cr as T,cs as k,bf as E,ct as P,cu as K,cv as O,bJ as S,aV as C,cw as I,cx as j,aR as A,bo as R,O as M,H as B,F as L,aZ as F,cy as $,m as N,R as z,cz as V,cA as H,bv as X,l as Y,$ as U,U as q,cB as G,bU as J,cC as W,cD as _,cE as Z,cF as Q,X as ee,cG as te,cH as re,bj as ne,cI as oe,cJ as ie,bu as ae,cK as se,cL as le,a8 as de}from"./index-BgFj_VXE.js";import{u as ce,b as pe,s as ue,d as ge,c as fe,S as me,W as he,p as ye,m as De,e as ve,f as be,h as we,i as xe,j as Te,k as ke,l as Ee,n as Pe,P as Ke,o as Oe}from"./activity-D06xJ7oH.js";import{$ as Se,a as Ce}from"./GridList-BUQihjaB.js";import{$ as Ie}from"./Select-CkiGmyVC.js";import{D as je}from"./Delete-DA-ArqRQ.js";import{S as Ae,u as Re,$ as Me}from"./logs-BxISynQ4.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./format-s2EANuUb.js";import"./useGridSelectionCheckbox-BxnCShqN.js";var Be=function(e){return e[e.none=0]="none",e[e.cancel=0]="cancel",e[e.move=1]="move",e[e.copy=2]="copy",e[e.link=4]="link",e[e.all=7]="all",e}({});const Le={...Be,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},Fe=ze(Le);Fe[7]="all";const $e={none:"cancel",link:"link",copy:"copy",move:"move"},Ne=ze($e);function ze(e){let t={};for(let r in e)t[e[r]]=r;return t}const Ve=new Set(["text/plain","text/uri-list","text/html"]),He="application/vnd.react-aria.items+json",Xe="application/octet-stream",Ye=new WeakMap,Ue=Symbol();function qe(e){let t=new Set;for(let r of e)for(let e of Object.keys(r))t.add(e);return t}function Ge(e){return e||(e="virtual"),"pointer"===e&&(e="virtual"),"virtual"===e&&"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(pointer: coarse)").matches&&(e="touch"),e}function Je(){return Ge(o())}function We(){return Ge(i())}class _e{constructor(e){this.types=new Set;let t=!1;for(let r of e.items)r.type!==He&&("file"===r.kind&&(t=!0),r.type?this.types.add(r.type):this.types.add(Xe));this.includesUnknownTypes=!t&&e.types.includes("Files")}has(e){if(Array.isArray(e))return e.some(e=>this.has(e));if(this.includesUnknownTypes||e===Ue&&this.types.has(Xe)||"*/*"===e)return!0;if("string"==typeof e){if(e.endsWith("/*")){for(let t of this.types)if(t.startsWith(e.slice(0,-2)))return!0;return!1}return this.types.has(e)}return!1}}function Ze(e){if(!e)throw new Error("No file provided");return{kind:"file",type:e.type||Xe,name:e.name,getText:()=>{return"function"==typeof(t=e).text?t.text():new Promise((e,r)=>{let n=new FileReader;n.onload=()=>{e(n.result)},n.onerror=r,n.readAsText(t)});var t},getFile:()=>Promise.resolve(e)}}function Qe(e){return{kind:"directory",name:e.name,getEntries:()=>async function*(e){let t,r=e.createReader();do{t=await new Promise((e,t)=>{r.readEntries(e,t)});for(let e of t)if(e.isFile){let t=await et(e);yield Ze(t)}else e.isDirectory&&(yield Qe(e))}while(t.length>0)}(e)}}function et(e){return new Promise((t,r)=>e.file(t,r))}let tt,rt={draggingKeys:new Set};function nt(e){rt.dropCollectionRef=e}function ot(){rt={draggingKeys:new Set}}function it(e){let{draggingCollectionRef:t,dropCollectionRef:r}=rt;return null!=t?.current&&t.current===(e?.current||r?.current)}function at(e){tt=e}let st=Be.none;function lt(e){st=e}let dt=new Map,ct=new Map,pt=null,ut=new Set;function gt(e){return dt.set(e.element,e),pt?.updateValidDropTargets(),()=>{dt.delete(e.element),pt?.updateValidDropTargets()}}function ft(){let[t,r]=e.useState(pt);return e.useEffect(()=>{let e=()=>r(pt);return ut.add(e),()=>{ut.delete(e)}},[]),t}function mt(){return!!pt}const ht=["pointerdown","pointermove","pointerenter","pointerleave","pointerover","pointerout","pointerup","mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","touchstart","touchmove","touchend","focusin","focusout"],yt=["pointerup","mouseup","touchend"],Dt={keyboard:"dragStartedKeyboard",touch:"dragStartedTouch",virtual:"dragStartedVirtual"};class vt{constructor(e,t){this.validDropTargets=[],this.currentDropTarget=null,this.currentDropItem=null,this.dropOperation=null,this.mutationObserver=null,this.restoreAriaHidden=null,this.isVirtualClick=!1,this.dragTarget=e,this.stringFormatter=t,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.cancelEvent=this.cancelEvent.bind(this),this.initialFocused=!1}setup(){document.addEventListener("keydown",this.onKeyDown,!0),document.addEventListener("keyup",this.onKeyUp,!0),window.addEventListener("focus",this.onFocus,!0),window.addEventListener("blur",this.onBlur,!0),document.addEventListener("click",this.onClick,!0),document.addEventListener("pointerdown",this.onPointerDown,!0);for(let e of ht)document.addEventLine truncated
@@ -0,0 +1 @@
.rp-dashboard-body{display:contents}.rp-dashboard-tools{z-index:1;gap:var(--rp-space-2);border-radius:var(--rp-r-md);background:var(--rp-base);display:flex;position:absolute;inset-block-start:var(--rp-space-3);inset-inline-end:var(--rp-space-3)}.rp-dashboard-tools [slot=drag]{touch-action:none;cursor:grab}.rp-grip:before{content:"";inline-size:calc(var(--rp-space-1) / var(--rp-preview-scale,1));block-size:calc(var(--rp-space-6) / var(--rp-preview-scale,1));border-radius:var(--rp-r-pill);background:var(--rp-subtle);box-shadow:0 0 0 calc(var(--rp-space-half) / var(--rp-preview-scale,1)) var(--rp-base)}.rp-sortable-row{outline:none;min-inline-size:0;position:relative}.rp-sortable-row[data-focus-visible]{outline:none}.rp-sortable-row:is([data-focus-visible],[data-selected]):before{content:"";inset:calc(0px - var(--rp-sortable-gap,var(--rp-space-2)) - var(--rp-focus-width));border:var(--rp-focus-width) solid var(--rp-focus-color);pointer-events:none;position:absolute}.rp-sortable-grid{outline:none}.rp-sortable-row>[role=gridcell]{display:contents}.rp-sortable-grid[data-drop-target]{outline:2px dashed var(--rp-accent)}.rp-sortable-grid .rp-dashboard-tools{background:0 0;inset-block-start:calc(var(--rp-line-caption) / 2 - var(--rp-space-1));inset-inline-end:0;translate:0 -50%}.rp-sortable-grid .rp-widget-label{padding-inline-end:calc(var(--rp-control) + var(--rp-space-2))}.rp-sortable-row[data-module=divider] .rp-dashboard-tools{background:var(--rp-surface);padding-inline-start:var(--rp-space-1);inset-block-start:50%}.rp-widget-gallery-grid{gap:var(--rp-space-4);grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));display:grid}.rp-widget-gallery-tile{gap:var(--rp-space-3);min-inline-size:0;padding:var(--rp-space-4);border:1px solid var(--rp-line);border-radius:var(--rp-r-lg);flex-direction:column;display:flex}.rp-widget-gallery-tile>.rp-cluster{margin-block-start:auto}.rp-widget-gallery-tile[data-added]{background:var(--rp-fill);--rp-subtle:var(--rp-subtle-text)}.rp-widget-gallery-frame{pointer-events:none;block-size:200px;overflow:hidden;mask-image:linear-gradient(#000 80%,#0000)}.rp-widget-gallery-presets{align-items:flex-start;gap:var(--rp-space-3) var(--rp-preset-gap);flex-wrap:wrap;display:flex}.rp-widget-gallery-preset{gap:var(--rp-space-1);flex-direction:column;min-inline-size:0;display:flex}.rp-widget-gallery-thumb{position:relative;overflow:hidden}.rp-widget-gallery-thumb-card{transform-origin:0 0;pointer-events:none;container:rp-tile/inline-size}.rp-widget-gallery-thumb-card:dir(rtl){transform-origin:100% 0}.rp-widget-gallery-thumb-add{border-radius:var(--rp-r-lg);cursor:pointer;background:0 0;border:0;position:absolute;inset:0}.rp-widget-gallery-thumb-add[data-hovered]{outline:2px solid var(--rp-line);outline-offset:2px}.rp-widget-gallery-thumb-add[data-focus-visible]{outline:2px solid var(--rp-accent);outline-offset:2px}.rp-widget-gallery-thumb-add[data-disabled]{cursor:default;outline:none}
@@ -1 +0,0 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{ad as n,ak as s,ai as r,j as a,ap as i,F as o,aC as l,V as d,$ as c,da as m,ar as u,as as p,f_ as v,f$ as f,T as h,aN as j,bs as x,G as w,Z as b,O as g,P as k}from"./index-BgFj_VXE.js";import{v as y,L as T}from"./logs-BxISynQ4.js";import{T as N}from"./Toolbar-CIBfeuEz.js";import{D as _}from"./Table-Dprh3Btz.js";import{d as C,e as O}from"./files-Dt8K7QfP.js";import{l as H}from"./format-s2EANuUb.js";import{O as S,D as F}from"./activity-D06xJ7oH.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-CkiGmyVC.js";import"./useGridSelectionCheckbox-BxnCShqN.js";import"./Virtualizer-CZl-q5wo.js";const R={buffer_overflow:["event.gap.overflow","event.gapHelp.overflow"],evicted:["event.gap.evicted","event.gapHelp.evicted"]};function W(e,t){const n="flow.gap"===e.event&&Object.hasOwn(R,e.data.reason)?R[e.data.reason]:void 0;return n&&{title:t(n[0]),text:t(n[1])}}function D(e,t){const n=e=>e?[{id:"flow",label:t("event.viewFlow"),href:a("flows",{tab:"records",id:e})}]:[];switch(e.event){case"flow.updated":return n(e.data.resource_id);case"flow.gap":return[...n(e.data.resource_id),{id:"recording",label:t("ui.recordingSettings"),href:S}];case"generation.changed":return[{id:"config",label:t("event.viewConfig"),href:a("config")}];default:return[]}}const K=new WeakMap;function M(e,t,a,i,o,l,d,c,m=!1,u=()=>!1){const p="without-runtime"===t||c.includes(t)?t:"all",v=e.filter(e=>"all"===p||("without-runtime"===p?"runtime.updated"!==e.event:e.event===p)).slice(0,o);return{kind:p,rows:v.map(e=>function(e,t,a,i){const o=K.get(e);if(o&&o.locale===t)return o.row;const l=i?{key:"event.lostHistory"}:r(e,a),d={id:e.id,timestamp:H(e.data.observed_at,t),iso:e.data.observed_at,kind:e.event,kindText:n(s,e.event,a),summary:a(l.key,l.params),help:W(e,a),links:D(e,a)};return K.set(e,{locale:t,row:d}),d}(e,l,d,u(e))),kinds:[{id:"without-runtime",label:d("event.withoutRuntime")},{id:"all",label:d("event.allKinds")},...c.map(e=>({id:e,label:n(s,e,d)}))],status:m&&!1!==i?{tone:"err",text:d("event.disconnected")}:{tone:a?"ok":null===i?"muted":"warn",text:d(!1===i?"event.unavailable":a?"event.connected":null===i?"ui.loading":"event.reconnecting")},limitText:d("event.limit",{n:o}),shown:v}}function P(){const t=i(),n=o(),s=l[d()],r=c(),a=r.data?.resources.events.kinds,[h,j]=e.useState("without-runtime"),x="all"!==h&&"runtime.updated"!==h&&a?.includes(h),w=y("without-runtime"!==h&&!x),b=e.useMemo(()=>M(w.events,h,w.connected,w.available,f,s,n,a??[],!!w.error,v),[w.events,h,w.connected,w.available,w.error,s,n,a]);return m(b.kind,j),{...b,setKind:j,cursor:w.cursor,error:w.error,retry:()=>{u().then(()=>p(t))},loading:!w.error&&!w.connected&&!1!==w.available&&!w.events.length,export:()=>{return C(O("doona-events","json"),(e=b.shown,JSON.stringify(e,null,2)+"\n"),"application/json");var e}}}function V(){const n=o(),s=P(),r=e.useMemo(()=>[{id:"t",label:n("ui.time"),minWidth:200,grow:0,drop:1,render:e=>t.jsx(h,{className:"rp-code",text:e.iso,children:e.timestamp})},{id:"k",label:n("event.kind"),minWidth:224,drop:2,render:e=>t.jsx(h,{text:e.kind,children:e.kindText})},{id:"m",label:n("event.summary"),minWidth:240,isRowHeader:!0,render:e=>t.jsx(j,{fill:!0,help:e.help,children:t.jsx(h,{children:e.summary})})}],[n]),a=e.useCallback(e=>t.jsxs(t.Fragment,{children:[t.jsx(x,{inline:!0,items:[[n("ui.time"),e.timestamp],[n("event.kind"),e.kindText],[n("event.summary"),e.summary]]}),e.links.length>0&&t.jsx("div",{className:"rp-cluster",children:e.links.map(e=>t.jsx(w,{appearance:"button",small:!0,href:e.href,children:e.label},e.id))})]}),[n]);return t.jsxs("div",{className:"rp-page",children:[t.jsxs(N,{page:!0,children:[t.jsx(T,{label:n("event.kind"),side:!0,value:s.kind,onChange:s.setKind,items:s.kinds}),t.jsx(b,{small:!0,tone:s.status.tone,children:s.status.text}),s.cursor&&t.jsx(h,{text:s.cursor,children:t.jsx("span",{className:"rp-label",children:n("event.cursor")})}),t.jsx("span",{className:"rp-label",children:s.limitText}),t.jsx("span",{className:"rp-grow"}),t.jsxs(g,{isDisabled:!s.rows.length,onPress:s.export,children:[t.jsx(F,{}),n("event.export")]})]}),s.error&&t.jsx(k,{error:s.error,onRetry:s.retry}),t.jsx(_,{label:n("nav.events"),stream:!0,flow:!0,loading:s.loading,rows:s.rows,empty:n("event.empty"),cols:r,detail:a})]})}export{V as Events};
@@ -0,0 +1 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{ae as n,an as r,ap as s,am as a,j as i,at as o,C as l,aF as d,P as c,W as m,cC as u,av as p,aw as v,fa as h,fb as f,T as x,aQ as j,bG as w,D as b,V as g,J as k,K as y}from"./index-CmbH0woS.js";import{v as T,L as C}from"./ActionGroup-D3mQjUsw.js";import{T as N}from"./Toolbar-B9K5nAyx.js";import{D as H}from"./Table-Cfbaho6J.js";import{d as _,e as D}from"./files-Dt8K7QfP.js";import{n as W,D as K}from"./activity-CiEWAlFW.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BcN72K3H.js";import"./Checkbox-f7Je53QZ.js";import"./Virtualizer-itu1Kg0o.js";const S={buffer_overflow:["event.gap.overflow","event.gapHelp.overflow"],evicted:["event.gap.evicted","event.gapHelp.evicted"]};function F(e,t){const n="flow.gap"===e.event&&Object.hasOwn(S,e.data.reason)?S[e.data.reason]:void 0;return n&&{title:t(n[0]),text:t(n[1])}}function G(e,t){const n=e=>e?[{id:"flow",label:t("event.viewFlow"),href:i("flows",{tab:"records",id:e})}]:[];switch(e.event){case"flow.updated":return n(e.data.resource_id);case"flow.gap":return[...n(e.data.resource_id),{id:"recording",label:t("ui.recordingSettings"),href:W}];case"generation.changed":return[{id:"config",label:t("event.viewConfig"),href:i("config")}];default:return[]}}const M=new WeakMap;function O(e,t,i,o,l,d,c,m,u=!1,p=()=>!1){const v="without-runtime"===t||m.includes(t)?t:"all",h=e.filter(e=>"all"===v||("without-runtime"===v?"runtime.updated"!==e.event:e.event===v)).slice(0,l);return{kind:v,rows:h.map(e=>function(e,t,i,o){const l=M.get(e);if(l&&l.locale===t)return l.row;const d=o?{key:"event.lostHistory"}:s(e,i),c={id:e.id,timestamp:a(e.data.observed_at,t),iso:e.data.observed_at,kind:e.event,kindText:n(r,e.event,i),summary:i(d.key,d.params),help:F(e,i),links:G(e,i)};return M.set(e,{locale:t,row:c}),c}(e,d,c,p(e))),kinds:[{id:"without-runtime",label:c("event.withoutRuntime")},{id:"all",label:c("event.allKinds")},...m.map(e=>({id:e,label:n(r,e,c)}))],status:u&&!1!==o?{tone:"err",text:c("event.disconnected")}:{tone:i?"ok":null===o?"muted":"warn",text:c(!1===o?"event.unavailable":i?"event.connected":null===o?"ui.loading":"event.reconnecting")},limitText:c("event.limit",{n:l}),shown:h}}function R(){const t=o(),n=l(),r=d[c()],s=m(),a=s.data?.resources.events.kinds,[i,x]=e.useState("without-runtime"),j="all"!==i&&"runtime.updated"!==i&&a?.includes(i),w=T("without-runtime"!==i&&!j),b=e.useMemo(()=>O(w.events,i,w.connected,w.available,f,r,n,a??[],!!w.error,h),[w.events,i,w.connected,w.available,w.error,r,n,a]);return u(b.kind,x),{...b,setKind:x,cursor:w.cursor,error:w.error,retry:()=>{p().then(()=>v(t))},loading:!w.error&&!w.connected&&!1!==w.available&&!w.events.length,export:()=>{return _(D("doona-events","json"),(e=b.shown,JSON.stringify(e,null,2)+"\n"),"application/json");var e}}}function J(){const n=l(),r=R(),s=e.useMemo(()=>[{id:"t",label:n("ui.time"),minWidth:212,grow:0,drop:1,render:e=>t.jsx(x,{className:"rp-code",text:e.iso,children:e.timestamp})},{id:"k",label:n("event.kind"),minWidth:224,drop:2,render:e=>t.jsx(x,{text:e.kind,children:e.kindText})},{id:"m",label:n("event.summary"),minWidth:240,isRowHeader:!0,render:e=>t.jsx(j,{fill:!0,help:e.help,children:t.jsx(x,{children:e.summary})})}],[n]),a=e.useCallback(e=>t.jsxs(t.Fragment,{children:[t.jsx(w,{inline:!0,items:[[n("ui.time"),e.timestamp],[n("event.kind"),e.kindText],[n("event.summary"),e.summary]]}),e.links.length>0&&t.jsx("div",{className:"rp-cluster",children:e.links.map(e=>t.jsx(b,{appearance:"button",small:!0,href:e.href,children:e.label},e.id))})]}),[n]);return t.jsxs("div",{className:"rp-page",children:[t.jsxs(N,{page:!0,children:[t.jsx(C,{label:n("event.kind"),side:!0,value:r.kind,onChange:r.setKind,items:r.kinds}),t.jsx(g,{small:!0,tone:r.status.tone,children:r.status.text}),r.cursor&&t.jsx(x,{text:r.cursor,children:t.jsx("span",{className:"rp-label",children:n("event.cursor")})}),t.jsx("span",{className:"rp-label",children:r.limitText}),t.jsx("span",{className:"rp-grow"}),t.jsxs(k,{isDisabled:!r.rows.length,onPress:r.export,children:[t.jsx(K,{}),n("event.export")]})]}),r.error&&t.jsx(y,{error:r.error,onRetry:r.retry}),t.jsx(H,{label:n("nav.events"),stream:!0,flow:!0,loading:r.loading,rows:r.rows,empty:n("event.empty"),cols:s,detail:a})]})}export{J as Events};
@@ -1 +0,0 @@
import{r as e,j as a}from"./vendor-react-64fcanlc.js";import{F as s,V as l,dG as i,aC as n,fi as o,cD as r,O as t}from"./index-BgFj_VXE.js";import{S as c}from"./SearchSelect-CO6FsBaz.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-CkiGmyVC.js";import"./SearchList-Bhc2_bS4.js";import"./Virtualizer-CZl-q5wo.js";function m({name:r,value:t,automaticFlag:m,onChange:d}){const f=s(),g=l(),j=e.useMemo(()=>i(n[g]),[g]),p=o(r),u=j.find(e=>e.flag===m),h=u?f("flags.detected",{region:u.label}):f("flags.automatic");return a.jsx("div",{className:"rp-list",children:a.jsx(c,{label:f("flags.region"),description:f(p?"flags.embedded":"flags.help"),isDisabled:p,searchLabel:f("flags.search"),value:p?"automatic":t,onChange:d,sections:[{id:"flags",items:[{id:"automatic",label:h,flag:m},{id:"none",label:f("flags.none"),flag:null},...j]}]})})}function d({name:e,onClose:l,...i}){const n=s();return a.jsxs(r,{narrow:!0,title:n("flags.edit"),isOpen:!0,onOpenChange:e=>{e||l()},footer:()=>a.jsx(t,{onPress:l,children:n("ui.close")}),children:[a.jsx("p",{className:"rp-note",children:e}),a.jsx(m,{name:e,...i})]})}export{m as FlagField,d as FlagPicker};
@@ -0,0 +1 @@
import{r as e,j as a}from"./vendor-react-64fcanlc.js";import{C as s,P as l,d9 as n,aF as o,eu as i,d6 as r,J as t}from"./index-CmbH0woS.js";import{S as c}from"./SearchSelect-CuaWhoLz.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BcN72K3H.js";import"./SearchList-CJ8rQxgu.js";import"./Virtualizer-itu1Kg0o.js";function m({name:r,value:t,automaticFlag:m,onChange:d}){const f=s(),g=l(),j=e.useMemo(()=>n(o[g]),[g]),p=i(r),u=j.find(e=>e.flag===m),h=u?f("flags.detected",{region:u.label}):f("flags.automatic");return a.jsx("div",{className:"rp-list",children:a.jsx(c,{label:f("flags.region"),description:f(p?"flags.embedded":"flags.help"),isDisabled:p,searchLabel:f("flags.search"),value:p?"automatic":t,onChange:d,sections:[{id:"flags",items:[{id:"automatic",label:h,flag:m},{id:"none",label:f("flags.none"),flag:null},...j]}]})})}function d({name:e,onClose:l,...n}){const o=s();return a.jsxs(r,{narrow:!0,title:o("flags.edit"),isOpen:!0,onOpenChange:e=>{e||l()},footer:()=>a.jsx(t,{onPress:l,children:o("ui.close")}),children:[a.jsx("p",{className:"rp-note",children:e}),a.jsx(m,{name:e,...n})]})}export{m as FlagField,d as FlagPicker};
@@ -0,0 +1 @@
.rp-topology{min-width:0;overflow:hidden}.rp-tree{gap:var(--rp-space-2);overscroll-behavior-x:contain;flex-direction:column;min-width:0;display:flex;overflow-x:auto}.rp-tree-hint{color:var(--rp-subtle);font-size:var(--rp-text-xs);line-height:16px;display:none}@media (width<=599.98px){.rp-tree-hint{display:block}}.rp-tree-captions{height:16px;position:relative}.rp-tree-captions>.rp-label{text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;position:absolute;top:0}.rp-tree-canvas{position:relative}.rp-tree-links{pointer-events:none;fill:none;stroke:var(--rp-muted);stroke-linecap:round;position:absolute;inset:0;overflow:visible}.rp-tree-links path{opacity:.55;transition:opacity var(--rp-duration) var(--rp-ease)}.rp-tree-links path[data-kind=direct]{stroke:var(--rp-positive)}.rp-tree-links path[data-kind=block]{stroke:var(--rp-negative)}.rp-tree-links path[data-kind=group]{stroke:var(--rp-iris)}.rp-tree-links path[data-kind=node]{stroke:var(--rp-accent)}.rp-tree-links path[data-state=active]{opacity:1}.rp-tree-links path[data-state=dim]{opacity:.1}.rp-tree-tile{box-sizing:border-box;align-items:center;gap:var(--rp-space-2);height:36px;padding:0 var(--rp-space-2h);border-radius:var(--rp-r-md);background:var(--rp-overlay);color:var(--rp-text);font:inherit;font-size:var(--rp-text-sm);text-align:start;cursor:pointer;border:2px solid #0000;line-height:16px;display:flex;position:absolute}.rp-tree-tile.dim{opacity:.35}.rp-tree-tile[data-hovered]{background:var(--rp-hl-med)}.rp-tree-tile[data-selected]{border-color:var(--rp-accent);background:var(--rp-selected)}.rp-tree-tile[data-focus-visible]{outline:var(--rp-focus-width) solid var(--rp-focus-color);outline-offset:calc(-1 * var(--rp-focus-width));border-color:#0000}.rp-tree-tile .l{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.rp-tree-tile[data-stage=rule] .l{font-family:var(--rp-font-mono);font-size:var(--rp-text-xs);font-variant-ligatures:none}.rp-tree-tile .s{font-size:var(--rp-text-xs);color:var(--rp-subtle);margin-inline-start:var(--rp-space-2)}.rp-tree-tile .s.ok{color:var(--rp-positive-text)}.rp-tree-tile .s.warn{color:var(--rp-notice-text)}.rp-tree-tile .s.err{color:var(--rp-negative-text)}.rp-tree-tile .c{font-variant-numeric:tabular-nums;color:var(--rp-subtle);flex:none;font-weight:700}
@@ -1 +0,0 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{O as n}from"./OutboundTag-jvAhyeqj.js";import{l as a,i as o,u as s,c as r,R as l,S as i,L as d}from"./logs-BxISynQ4.js";import{i as u,aa as c,al as p,an as m,am as f,dc as g,de as w,w as h,d5 as b,ad as v,d7 as j,d8 as x,aC as y,j as k,aB as _,o as M,ag as N,F as L,V as S,K as C,O as P,N as T,bJ as O,aP as F,$ as R,a0 as H,bK as q,dh as E,db as W,D,P as $,T as A,aW as I,G as U,bB as B,bs as K,au as G,Q as J}from"./index-BgFj_VXE.js";import{M as Q,H as V,N as z,K as X,O as Y,G as Z}from"./activity-D06xJ7oH.js";import{w as ee}from"./labels-DPpd4zRF.js";import{l as te,c as ne}from"./format-s2EANuUb.js";import{c as ae,C as oe}from"./Coverage-VYQXivNr.js";import{f as se}from"./nav-D44ro1l_.js";import{T as re}from"./Tabs-CD2lZase.js";import{T as le}from"./Toolbar-CIBfeuEz.js";import{D as ie}from"./Table-Dprh3Btz.js";import{T as de}from"./TimeCell-B4WLB8Ou.js";import{A as ue}from"./AddCircle-prR7q573.js";import{b as ce,u as pe,c as me}from"./flows-xKlsDqlH.js";import{u as fe}from"./outbounds-BApwKyMu.js";import{u as ge,R as we}from"./useQuickRule-fWQicp9K.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Tag-PTwIjtR6.js";import"./Select-CkiGmyVC.js";import"./useGridSelectionCheckbox-BxnCShqN.js";import"./Virtualizer-CZl-q5wo.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./SearchSelect-CO6FsBaz.js";import"./SearchList-Bhc2_bS4.js";const he=["client","rule","outbound","node"];function be(e,t){if(e.rule_id)return null!==e.rule_generation_id&&e.rule_generation_id===t?e.rule_id:e.rule_id+"\0"+e.rule_expression}function ve(e,t,n,a){switch(t){case"client":{const t=c(e.input?.src??void 0);return{label:t??"unknown",unknown:!t}}case"rule":return e.rule_expression?{label:e.rule_expression,unknown:!1,key:be(e,a)}:{label:"unknown",unknown:!0};case"outbound":return e.outbound?{label:e.outbound,unknown:!1}:{label:"unknown",unknown:!0};case"node":{if(u(e.outbound))return null;const t=e.chain.at(-1)??null;return t?{label:n.get(t)??t,unknown:!1,key:t}:{label:"unknown",unknown:!0}}}}const je=(e,t)=>V(e,t.unknown?"":t.key??t.label),xe=e=>Q(e,he)?.kind,ye=new Map;function ke(e,t,n){const a=xe(t);return a?e.filter(e=>{const o=ve(e,a,ye,n?.generation_id);return null!==o&&je(a,o)===t}):[]}function _e(e,t,n,a){const o=Q(e,he);if(!o||""===o.value)return a(null);const{kind:s,value:r}=o;return"rule"===s?r.includes("\0")?r.slice(r.indexOf("\0")+1):t.find(e=>e.rule_id===r)?.expression??r:"node"===s?n.get(r)??r:"client"===s?r:a(r)}function Me(e,t,n,a,o="rule"){const s=(e=>new Map(e.map(e=>[e.id,e.name])))(n),r=new Map(t.map(e=>[e.id,e])),l=new Map(t.map(e=>[e.name,e])),i=new Map(n.map(e=>[e.id,e])),d=new Map,c=new Map,g=new Map,w=new Map,h=(e,t)=>{const n=e+">"+t;let a=w.get(n);return a||w.set(n,a={source:e,target:t,count:0}),a},b=(e,t,n=!1)=>{const a=je("node",{key:e,label:t,unknown:n});let o=g.get(a);if(!o){const s=n?void 0:i.get(e),r=s&&m(s);g.set(a,o={id:a,label:t,count:0,unknown:n||void 0,latency:f(r),unavailable:"unavailable"===r?.state})}return o},v=(e,t=!1)=>{const n=je("outbound",{label:e,unknown:t});let a=c.get(n);if(a)return a;const o=t?void 0:l.get(e),d=t?{groups:[],member:null}:p(e,o?.selection.tcp_member_id?"tcp":"udp",l,r,i),m=d.groups.map(e=>({name:e.name,kind:e.policy.kind,policy:e.policy.native})),f=d.member;return a={id:n,label:e,count:0,unknown:t||void 0,kind:t?"unknown":u(e)?e:m.length?"group":"unknown",groups:m,node:f&&b(f,s.get(f)??f).id},c.set(n,a),a.node&&h(n,a.node),a},j=(e,t,n=!1)=>{let a=d.get(e);return a||d.set(e,a={id:e,label:t,count:0,unknown:n||void 0,outbound:null,must:!1}),a};if("rule"===o)for(const u of a?.rules??[]){const e=j(je("rule",{key:u.rule_id,label:u.expression}),u.expression);e.must=u.must,u.outbound&&(e.outbound=v(u.outbound).id,h(e.id,e.outbound))}const x=[o,"outbound","node"];for(const u of e){let e;for(const t of x){const n=ve(u,t,s,a?.generation_id);if(!n)break;const o="outbound"===t?v(n.label,n.unknown):"node"===t?b(n.key??n.label,n.label,n.unknown):j(je(t,n),n.label,n.unknown);o.count++,e&&h(e.id,o.id).count++,e=o}}for(const u of t)v(u.name);const y=new Set([...d.values()].map(e=>e.outbound)),k=new Set([...c.values()].flatMap(e=>e.groups.slice(1).map(e=>e.name))),_=[...c.values()].filter(e=>e.count||y.has(e.id)||!k.has(e.label)),M=new Set(_.map(e=>e.id)),N=[...w.values()].filter(e=>M.has(e.source)||M.has(e.target)),L=new Set(N.map(e=>e.target));return{by:o,leaves:[...d.values()],outbounds:_,nodes:[...g.values()].filter(e=>L.has(e.id)),links:N}}const Ne=new WeakMap;function Le(e){const t=Ne.get(e);if(t)return t;const n=new Map,a=new Map,o=new Map;for(const l of e.links){for(const[e,t]of[[n,l.source],[a,l.target]]){let n=e.get(t);n||e.set(t,n=[]),n.push(l)}(!o.has(l.source)||o.get(l.source).count<l.count)&&o.set(l.source,l)}const s=new Map;for(const l of[...e.leaves,...e.outbounds]){const e=("groups"in l?l.node:l.outbound)??o.get(l.id)?.target;e&&s.set(l.id,e)}const r={outgoing:n,incoming:a,parents:s};retuLine truncated
@@ -1 +0,0 @@
.rp-topology{min-width:0;overflow:hidden}.rp-tree{gap:var(--rp-space-2);overscroll-behavior-x:contain;flex-direction:column;min-width:0;display:flex;overflow-x:auto}.rp-tree-hint{color:var(--rp-subtle);font-size:var(--rp-text-xs);line-height:16px;display:none}@media (width<=600px){.rp-tree-hint{display:block}}.rp-tree-captions{height:16px;position:relative}.rp-tree-captions>.rp-label{text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;position:absolute;top:0}.rp-tree-canvas{position:relative}.rp-tree-links{pointer-events:none;fill:none;stroke:var(--rp-muted);stroke-linecap:round;position:absolute;inset:0;overflow:visible}.rp-tree-links path{opacity:.55;transition:opacity var(--rp-duration) var(--rp-ease)}.rp-tree-links path[data-kind=direct]{stroke:var(--rp-positive)}.rp-tree-links path[data-kind=block]{stroke:var(--rp-negative)}.rp-tree-links path[data-kind=group]{stroke:var(--rp-iris)}.rp-tree-links path[data-kind=node]{stroke:var(--rp-accent)}.rp-tree-links path[data-state=active]{opacity:1}.rp-tree-links path[data-state=dim]{opacity:.1}.rp-tree-tile{box-sizing:border-box;align-items:center;gap:var(--rp-space-2);height:36px;padding:0 var(--rp-space-2h);border-radius:var(--rp-r-md);background:var(--rp-overlay);color:var(--rp-text);font:inherit;font-size:var(--rp-text-sm);text-align:start;cursor:pointer;border:2px solid #0000;line-height:16px;display:flex;position:absolute}.rp-tree-tile.dim{opacity:.35}.rp-tree-tile[data-hovered]{background:var(--rp-hl-med)}.rp-tree-tile[data-selected]{border-color:var(--rp-accent);background:var(--rp-selected)}.rp-tree-tile[data-focus-visible]{outline:var(--rp-focus-width) solid var(--rp-focus-color);outline-offset:calc(-1 * var(--rp-focus-width));border-color:#0000}.rp-tree-tile .l{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.rp-tree-tile[data-stage=rule] .l{font-family:var(--rp-font-mono);font-size:var(--rp-text-xs);font-variant-ligatures:none}.rp-tree-tile .s{font-size:var(--rp-text-xs);color:var(--rp-subtle);margin-inline-start:var(--rp-space-2)}.rp-tree-tile .s.ok{color:var(--rp-positive-text)}.rp-tree-tile .s.warn{color:var(--rp-notice-text)}.rp-tree-tile .s.err{color:var(--rp-negative-text)}.rp-tree-tile .c{font-variant-numeric:tabular-nums;color:var(--rp-subtle);flex:none;font-weight:700}.rp-impact-section{gap:var(--rp-space-2);flex-direction:column;min-width:0;display:flex}.rp-impact{gap:var(--rp-space-2);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.rp-impact.grid{gap:var(--rp-space-2) var(--rp-space-6);grid-template-columns:repeat(auto-fill,minmax(min(100%,176px),1fr));display:grid}.rp-impact>li{align-items:flex-start;gap:var(--rp-space-1);flex-direction:column;min-width:0;display:flex}.rp-impact>li>.rp-cluster{gap:var(--rp-space-2);max-width:100%}.rp-impact>li>.rp-cluster>.rp-note{flex:none}
@@ -0,0 +1 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{O as n}from"./OutboundTag-DROnordp.js";import{l as a,i as o,u as s,c as r,R as l,S as i,L as d}from"./ActionGroup-D3mQjUsw.js";import{i as u,ab as c,ao as p,a8 as m,a7 as f,cE as g,cG as w,w as h,cx as b,ae as v,cz as j,cA as x,aF as y,am as k,j as _,aE as M,o as N,as as L,ai as S,C as T,P as C,G as P,J as F,N as O,bZ as R,aS as E,W as H,X as W,b_ as q,cJ as D,cD as A,A as I,K as $,T as G,aZ as J,D as U,bQ as Q,bG as z,az as B,M as K}from"./index-CmbH0woS.js";import{l as V,i as Z,m as X,o as Y,n as ee,h as te}from"./activity-CiEWAlFW.js";import{w as ne}from"./labels-D8xxfRTQ.js";import{c as ae,C as oe}from"./Coverage-P-BXHg4t.js";import{f as se}from"./nav-Y_78QUku.js";import{T as re}from"./Tabs-BzeNgTje.js";import{T as le}from"./Toolbar-B9K5nAyx.js";import{D as ie}from"./Table-Cfbaho6J.js";import{T as de}from"./TimeCell-D0UB-mKs.js";import{a as ue,u as ce,b as pe}from"./flows-BMReQznn.js";import{u as me}from"./outbounds-CUyNhEhE.js";import{u as fe,Q as ge,R as we}from"./useQuickRule-C0zoMd-O.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Tag-fyQjN-Xw.js";import"./Select-BcN72K3H.js";import"./Checkbox-f7Je53QZ.js";import"./Virtualizer-itu1Kg0o.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-JwHCi_at.js";import"./SearchSelect-CuaWhoLz.js";import"./SearchList-CJ8rQxgu.js";const he=["client","rule","outbound","node"];function be(e,t){if(e.rule_id)return null!==e.rule_generation_id&&e.rule_generation_id===t?e.rule_id:e.rule_id+"\0"+e.rule_expression}function ve(e,t,n,a){switch(t){case"client":{const t=c(e.input?.src??void 0);return{label:t??"unknown",unknown:!t}}case"rule":return e.rule_expression?{label:e.rule_expression,unknown:!1,key:be(e,a)}:{label:"unknown",unknown:!0};case"outbound":return e.outbound?{label:e.outbound,unknown:!1}:{label:"unknown",unknown:!0};case"node":{if(u(e.outbound))return null;const t=e.chain.at(-1)??null;return t?{label:n.get(t)??t,unknown:!1,key:t}:{label:"unknown",unknown:!0}}}}const je=(e,t)=>Z(e,t.unknown?"":t.key??t.label),xe=e=>V(e,he)?.kind,ye=new Map;function ke(e,t,n){const a=xe(t);return a?e.filter(e=>{const o=ve(e,a,ye,n?.generation_id);return null!==o&&je(a,o)===t}):[]}function _e(e,t,n,a){const o=V(e,he);if(!o||""===o.value)return a(null);const{kind:s,value:r}=o;return"rule"===s?r.includes("\0")?r.slice(r.indexOf("\0")+1):t.find(e=>e.rule_id===r)?.expression??r:"node"===s?n.get(r)??r:"client"===s?r:a(r)}function Me(e,t,n,a,o="rule"){const s=(e=>new Map(e.map(e=>[e.id,e.name])))(n),r=new Map(t.map(e=>[e.id,e])),l=new Map(t.map(e=>[e.name,e])),i=new Map(n.map(e=>[e.id,e])),d=new Map,c=new Map,g=new Map,w=new Map,h=(e,t)=>{const n=e+">"+t;let a=w.get(n);return a||w.set(n,a={source:e,target:t,count:0}),a},b=(e,t,n=!1)=>{const a=je("node",{key:e,label:t,unknown:n});let o=g.get(a);if(!o){const s=n?void 0:i.get(e),r=s&&m(s);g.set(a,o={id:a,label:t,count:0,unknown:n||void 0,latency:f(r),unavailable:"unavailable"===r?.state})}return o},v=(e,t=!1)=>{const n=je("outbound",{label:e,unknown:t});let a=c.get(n);if(a)return a;const o=t?void 0:l.get(e),d=t?{groups:[],member:null}:p(e,o?.selection.tcp_member_id?"tcp":"udp",l,r,i),m=d.groups.map(e=>({name:e.name,kind:e.policy.kind,policy:e.policy.native})),f=d.member;return a={id:n,label:e,count:0,unknown:t||void 0,kind:t?"unknown":u(e)?e:m.length?"group":"unknown",groups:m,node:f&&b(f,s.get(f)??f).id},c.set(n,a),a.node&&h(n,a.node),a},j=(e,t,n=!1)=>{let a=d.get(e);return a||d.set(e,a={id:e,label:t,count:0,unknown:n||void 0,outbound:null,must:!1}),a};if("rule"===o)for(const u of a?.rules??[]){const e=j(je("rule",{key:u.rule_id,label:u.expression}),u.expression);e.must=u.must,u.outbound&&(e.outbound=v(u.outbound).id,h(e.id,e.outbound))}const x=[o,"outbound","node"];for(const u of e){let e;for(const t of x){const n=ve(u,t,s,a?.generation_id);if(!n)break;const o="outbound"===t?v(n.label,n.unknown):"node"===t?b(n.key??n.label,n.label,n.unknown):j(je(t,n),n.label,n.unknown);o.count++,e&&h(e.id,o.id).count++,e=o}}for(const u of t)v(u.name);const y=new Set([...d.values()].map(e=>e.outbound)),k=new Set([...c.values()].flatMap(e=>e.groups.slice(1).map(e=>e.name))),_=[...c.values()].filter(e=>e.count||y.has(e.id)||!k.has(e.label)),M=new Set(_.map(e=>e.id)),N=[...w.values()].filter(e=>M.has(e.source)||M.has(e.target)),L=new Set(N.map(e=>e.target));return{by:o,leaves:[...d.values()],outbounds:_,nodes:[...g.values()].filter(e=>L.has(e.id)),links:N}}const Ne=new WeakMap;function Le(e){const t=Ne.get(e);if(t)return t;const n=new Map,a=new Map,o=new Map;for(const l of e.links){for(const[e,t]of[[n,l.source],[a,l.target]]){let n=e.get(t);n||e.set(t,n=[]),n.push(l)}(!o.has(l.source)||o.get(l.source).count<l.count)&&o.set(l.source,l)}const s=new Map;for(const l of[...e.leaves,...e.outbounds]){const e=("groups"in l?l.node:l.outbound)??o.get(l.id)?.target;e&&s.set(l.id,e)}const r={outgoing:n,incoming:a,parents:s};return Ne.set(e,r),r}const Se={not_instrumenteLine truncated
@@ -1 +0,0 @@
import{dP as e,ct as t,dQ as r,cu as o,bf as a,dR as i,dS as l,dT as n,dU as s,dV as d,cg as c,dW as u,dX as p,dY as g,dZ as y,cp as f,cc as v,d_ as b,cb as h,d$ as m,e0 as k,e1 as D,e2 as w,e3 as E,e4 as P,e5 as M,e6 as x,cB as S,e7 as A,e8 as K,e9 as C,ea as T,eb as B,ec as N,ed as I,ee as F,ef as R,eg as V,eh as L,ei as H,ej as U,ek as O,el as z,em as $,en as j,eo as G}from"./index-BgFj_VXE.js";import{$ as W,a as _,b as q,c as Q,d as X,e as Y}from"./useGridSelectionCheckbox-BxnCShqN.js";import{d as Z,e as J,f as ee,g as te,h as re,i as oe,j as ae}from"./Select-CkiGmyVC.js";import{r as ie,$ as le}from"./vendor-react-64fcanlc.js";const ne=new WeakMap;function se(e,t){let{id:r}=ne.get(e)??{};if(!r)throw new Error("Unknown list");return`${r}-${function(e){return"string"==typeof e?e.replace(/\s*/g,""):""+e}(t)}`}const de={ltr:"ArrowRight",rtl:"ArrowLeft"},ce={ltr:"ArrowLeft",rtl:"ArrowRight"};function ue(e,t,r){let{node:m,isVirtualized:k,focusMode:D="row",allowsArrowNavigation:w}=e,{direction:E}=a(),{onAction:P,linkBehavior:M,keyboardNavigationBehavior:x,shouldSelectOnPressUp:S}=ne.get(t),A=i(),K=ie.useRef(null),C=()=>{if(null!==r.current){if("child"===D){if(d(r.current)&&r.current!==c(u(r.current)))return;let e=p(r.current,{tabbable:!0}).firstChild();if(e)return g(e),void y(e,{containingElement:f(e)})}(null!=K.current&&m.key!==K.current||!d(r.current))&&g(r.current)}},T={},B=e.hasChildItems,N=t.selectionManager.isLink(m.key);if(null!=m&&"expandedKeys"in t){let e=t.collection.getChildren?.(m.key);B=B||[...e??[]].length>1,null==P&&!N&&"none"===t.selectionManager.selectionMode&&B&&(P=()=>t.toggleKey(m.key));let r=B?t.expandedKeys.has(m.key):void 0,o=1,a=m.index;if(m.level>=0&&null!=m?.parentKey){let e=t.collection.getItem(m.parentKey);if(e){let r=function(e,t){let r=t.getChildren?.(e.key),o=r?Array.from(r):[],a=o.length>0?o[0]:null,i=[];for(;a;)i.push(a),a=null!=a.nextKey?t.getItem(a.nextKey):null;return i}(e,t.collection);o=[...r].filter(e=>"item"===e.type).length,a>0&&"item"!==r[0].type&&(a-=1)}}else o=[...t.collection].filter(e=>0===e.level&&"item"===e.type).length;T={"aria-expanded":r,"aria-level":m.level+1,"aria-posinset":a+1,"aria-setsize":o}}let{itemProps:I,...F}=l({selectionManager:t.selectionManager,key:m.key,ref:r,isVirtualized:k,shouldSelectOnPressUp:e.shouldSelectOnPressUp||S,onAction:P||m.props?.onAction?n(m.props?.onAction,P?()=>P(m.key):void 0):void 0,focus:C,linkBehavior:M}),R=s(m.props),V=F.hasAction?R:{},L=o(I,V,{role:"row",onKeyDownCapture:"arrow"===x||w?e=>{let o=c(u(r.current));if(!h(e.currentTarget,v(e))||!r.current||!o)return;let a=p(r.current);if(a.currentNode=o,!pe(e,t,m,B,E,o,r.current,w))switch(e.key){case"ArrowLeft":if("arrow"===x){let t="rtl"===E?a.nextNode():a.previousNode();if(t)e.preventDefault(),e.stopPropagation(),g(t),y(t,{containingElement:f(r.current)});else if(e.preventDefault(),e.stopPropagation(),"rtl"===E)g(r.current),y(r.current,{containingElement:f(r.current)});else{a.currentNode=r.current;let e=ge(a);e&&(g(e),y(e,{containingElement:f(r.current)}))}}break;case"ArrowRight":if("arrow"===x){let t="rtl"===E?a.previousNode():a.nextNode();if(t)e.preventDefault(),e.stopPropagation(),g(t),y(t,{containingElement:f(r.current)});else if(e.preventDefault(),e.stopPropagation(),"ltr"===E)g(r.current),y(r.current,{containingElement:f(r.current)});else{a.currentNode=r.current;let e=ge(a);e&&(g(e),y(e,{containingElement:f(r.current)}))}}break;case"ArrowUp":case"ArrowDown":!e.altKey&&h(r.current,v(e))&&(e.stopPropagation(),e.preventDefault(),r.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}}:void 0,onFocus:e=>{K.current=m.key,v(e)===r.current?"child"===D&&e.relatedTarget&&h(r.current,e.relatedTarget)||requestAnimationFrame(()=>{"child"===D&&c(u(r.current))===r.current&&C()}):b()||t.selectionManager.setFocusedKey(m.key)},"aria-label":m["aria-label"]||m.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(m.key)?t.selectionManager.isSelected(m.key):void 0,"aria-disabled":t.selectionManager.isDisabled(m.key)||void 0,"aria-labelledby":A&&(m["aria-label"]||m.textValue)?`${se(t,m.key)} ${A}`:void 0,id:se(t,m.key)});"child"===D&&w&&"tab"===x&&(L.tabIndex=-1);let H=L.onKeyDown;if(L.onKeyDown=e=>{(e=>{let o=c(u(r.current));if(h(e.currentTarget,v(e))&&r.current&&o){if("tab"===x){if(v(e)!==r.current&&"Tab"!==e.key)return void e.stopPropagation();if(pe(e,t,m,B,E,o,r.current,w))return}if("Tab"===e.key&&"tab"===x){let t=p(r.current,{tabbable:!0});t.currentNode=o,(e.shiftKey?t.previousNode():t.nextNode())&&e.stopPropagation()}}})(e),e.isPropagationStopped()||H?.(e)},k){let{collection:e}=t,r=[...e];L["aria-rowindex"]=r.find(e=>"section"===e.type)?[...e.getKeys()].filter(t=>"section"!==e.getItem(t)?.type).findIndex(e=>e===m.key)+1:m.index+1}return{rowProps:{...o(L,T)},gridCellProps:{role:"gridcell","aria-colindex":1},descriptionProps:{id:A},...F}}function pe(e,t,r,o,a,i,l,n){if(!("expandedKeys"in t)||!n&&i!==l)return!1;if(e.key===de[a]&&t.selectLine truncated
@@ -0,0 +1 @@
import{gF as e,du as t,dm as r,dl as o,bs as a,gG as i,eT as l,fV as n,fW as s,fK as d,fL as c,fM as u,dv as g,fN as p,fP as f,fQ as y,dx as v,fO as b,fF as h,eY as m,gH as k,dL as D,f1 as w,dP as E,dO as P,fU as M,dE as x,dF as S,dG as A,g5 as K,dI as C,f6 as T,f$ as N,g1 as B,eZ as F,g6 as I,dA as L,e_ as R,eX as V,fE as H,g0 as O,g2 as U,dK as z,gb as $,gc as G,f5 as W}from"./index-CmbH0woS.js";import{b as _,a as j,c as q,e as Q,f as X,g as Y}from"./Checkbox-f7Je53QZ.js";import{l as Z,f as J,b as ee,m as te,g as re,i as oe,h as ae}from"./Select-BcN72K3H.js";import{r as ie,$ as le}from"./vendor-react-64fcanlc.js";const ne=new WeakMap;function se(e,t){let{id:r}=ne.get(e)??{};if(!r)throw new Error("Unknown list");return`${r}-${function(e){return"string"==typeof e?e.replace(/\s*/g,""):""+e}(t)}`}const de={ltr:"ArrowRight",rtl:"ArrowLeft"},ce={ltr:"ArrowLeft",rtl:"ArrowRight"};function ue(e,t,r){let{node:m,isVirtualized:k,focusMode:D="row",allowsArrowNavigation:w}=e,{direction:E}=a(),{onAction:P,linkBehavior:M,keyboardNavigationBehavior:x,shouldSelectOnPressUp:S}=ne.get(t),A=i(),K=ie.useRef(null),C=()=>{if(null!==r.current){if("child"===D){if(d(r.current)&&r.current!==c(u(r.current)))return;let e=g(r.current,{tabbable:!0}).firstChild();if(e)return p(e),void f(e,{containingElement:y(e)})}(null!=K.current&&m.key!==K.current||!d(r.current))&&p(r.current)}},T={},N=e.hasChildItems,B=t.selectionManager.isLink(m.key);if(null!=m&&"expandedKeys"in t){let e=t.collection.getChildren?.(m.key);N=N||[...e??[]].length>1,null==P&&!B&&"none"===t.selectionManager.selectionMode&&N&&(P=()=>t.toggleKey(m.key));let r=N?t.expandedKeys.has(m.key):void 0,o=1,a=m.index;if(m.level>=0&&null!=m?.parentKey){let e=t.collection.getItem(m.parentKey);if(e){let r=function(e,t){let r=t.getChildren?.(e.key),o=r?Array.from(r):[],a=o.length>0?o[0]:null,i=[];for(;a;)i.push(a),a=null!=a.nextKey?t.getItem(a.nextKey):null;return i}(e,t.collection);o=[...r].filter(e=>"item"===e.type).length,a>0&&"item"!==r[0].type&&(a-=1)}}else o=[...t.collection].filter(e=>0===e.level&&"item"===e.type).length;T={"aria-expanded":r,"aria-level":m.level+1,"aria-posinset":a+1,"aria-setsize":o}}let{itemProps:F,...I}=l({selectionManager:t.selectionManager,key:m.key,ref:r,isVirtualized:k,shouldSelectOnPressUp:e.shouldSelectOnPressUp||S,onAction:P||m.props?.onAction?n(m.props?.onAction,P?()=>P(m.key):void 0):void 0,focus:C,linkBehavior:M}),L=s(m.props),R=I.hasAction?L:{},V=o(F,R,{role:"row",onKeyDownCapture:"arrow"===x||w?e=>{let o=c(u(r.current));if(!h(e.currentTarget,v(e))||!r.current||!o)return;let a=g(r.current);if(a.currentNode=o,!ge(e,t,m,N,E,o,r.current,w))switch(e.key){case"ArrowLeft":if("arrow"===x){let t="rtl"===E?a.nextNode():a.previousNode();if(t)e.preventDefault(),e.stopPropagation(),p(t),f(t,{containingElement:y(r.current)});else if(e.preventDefault(),e.stopPropagation(),"rtl"===E)p(r.current),f(r.current,{containingElement:y(r.current)});else{a.currentNode=r.current;let e=pe(a);e&&(p(e),f(e,{containingElement:y(r.current)}))}}break;case"ArrowRight":if("arrow"===x){let t="rtl"===E?a.previousNode():a.nextNode();if(t)e.preventDefault(),e.stopPropagation(),p(t),f(t,{containingElement:y(r.current)});else if(e.preventDefault(),e.stopPropagation(),"ltr"===E)p(r.current),f(r.current,{containingElement:y(r.current)});else{a.currentNode=r.current;let e=pe(a);e&&(p(e),f(e,{containingElement:y(r.current)}))}}break;case"ArrowUp":case"ArrowDown":!e.altKey&&h(r.current,v(e))&&(e.stopPropagation(),e.preventDefault(),r.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}}:void 0,onFocus:e=>{K.current=m.key,v(e)===r.current?"child"===D&&e.relatedTarget&&h(r.current,e.relatedTarget)||requestAnimationFrame(()=>{"child"===D&&c(u(r.current))===r.current&&C()}):b()||t.selectionManager.setFocusedKey(m.key)},"aria-label":m["aria-label"]||m.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(m.key)?t.selectionManager.isSelected(m.key):void 0,"aria-disabled":t.selectionManager.isDisabled(m.key)||void 0,"aria-labelledby":A&&(m["aria-label"]||m.textValue)?`${se(t,m.key)} ${A}`:void 0,id:se(t,m.key)});"child"===D&&w&&"tab"===x&&(V.tabIndex=-1);let H=V.onKeyDown;if(V.onKeyDown=e=>{(e=>{let o=c(u(r.current));if(h(e.currentTarget,v(e))&&r.current&&o){if("tab"===x){if(v(e)!==r.current&&"Tab"!==e.key)return void e.stopPropagation();if(ge(e,t,m,N,E,o,r.current,w))return}if("Tab"===e.key&&"tab"===x){let t=g(r.current,{tabbable:!0});t.currentNode=o,(e.shiftKey?t.previousNode():t.nextNode())&&e.stopPropagation()}}})(e),e.isPropagationStopped()||H?.(e)},k){let{collection:e}=t,r=[...e];V["aria-rowindex"]=r.find(e=>"section"===e.type)?[...e.getKeys()].filter(t=>"section"!==e.getItem(t)?.type).findIndex(e=>e===m.key)+1:m.index+1}return{rowProps:{...o(V,T)},gridCellProps:{role:"gridcell","aria-colindex":1},descriptionProps:{id:A},...I}}function ge(e,t,r,o,a,i,l,n){if(!("expandedKeys"in t)||!n&&i!==l)return!1;if(e.key===de[a]&&t.selectionManager.focusLine truncated
@@ -1,2 +0,0 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./LoginShowcase-B3T5ZpRs.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-BgFj_VXE.js","./index-h-bbwFHc.css","./format-s2EANuUb.js"])))=>i.map(i=>d[i]);
import{F as e,V as n,bC as t,Y as r,bD as s,bE as o,b4 as a,bF as i,bG as l,bH as c,bI as u,bJ as d,bK as p,G as m,j as g,bL as f,bM as h,bN as x,bO as w,P as j,D as k,bP as b,bQ as y,O as v,E as T,_ as S}from"./index-BgFj_VXE.js";import{r as N,j as E}from"./vendor-react-64fcanlc.js";import{D as C,s as _,d as D,a as L,o as P}from"./auth-B7tMStu6.js";import"./_commonjsHelpers-CXUWDbkB.js";const q=/^[A-Za-z0-9_.-]{1,64}$/;async function A(e,n){try{return _(await D(e,n))}catch(t){if(!function(e){return e instanceof SyntaxError||e instanceof s&&(404===e.status||401===e.status&&(!e.code||"authentication_required"===e.code))}(t))throw t;return t instanceof s&&404===t.status?await L(e,n)?"token":"no-api":"token"}}function I(e,n,t){try{const{profiles:r,activeId:s}=l(),o=function(e,n,t,r){return e.some(e=>e.id===n&&u(e.api)===u(t))?e.map(e=>e.id===n?{...e,token:r.trim()}:e):null}(r,e,n,t);if(!o)return"login.stale";c({profiles:o,activeId:s})}catch{return"settings.saveError"}return null}async function R(e,n,t,r){let o;try{o=await P(n,t,r)}catch(a){return function(e){if(!(e instanceof s))return null;if("invalid_credentials"===e.code)return{key:"login.invalidCredentials"};if("setup_required"===e.code)return{key:"login.needsSetup",switchTo:"setup"};if("setup_already_completed"===e.code)return{key:"login.alreadySetUp",switchTo:"login"};if("permission_denied"===e.code)return{key:"login.setupPeer"};if("rate_limited"===e.code){const n=e.retryAfter??60;return{key:"login.rateLimited",params:{n:n},wait:n}}return null}(a)??{error:a}}try{i(e,n,o.token)}catch{return{key:"settings.saveError"}}return null}function F(e,n){const{kind:t,failure:r,attempt:s,ended:o,rejected:a}=e;return"no-api"===t?null:null!==r?{tone:"negative",text:"string"==typeof r?r:n(r.key,r.params),focus:!0,id:s}:o?{tone:"informative",text:n("login.sessionEnded"),focus:!1,id:0}:a&&"token"===t?{tone:"negative",text:n("login.rejected"),focus:!1,id:0}:null}const H=e=>"string"!=typeof e&&"login.rateLimited"===e.key;function O(s,i,l,c,u){const d=e(),p=n(),[m]=N.useState(()=>t(s,i)),[g,f]=N.useState(null),h=u?"no-api":g,[x,w]=N.useState({attempt:0,error:null});N.useEffect(()=>{if(u)return;const e=new AbortController;return A(i,e.signal).then(e=>f(e),n=>{e.signal.aborted||w(e=>({...e,error:n instanceof Error?n:new Error(String(n))}))}),()=>e.abort()},[i,x.attempt,u]);const[j,k]=N.useState(""),b=o(i),[y,v]=N.useState(b?C.username:""),[T,S]=N.useState(b?C.password:""),[E,_]=N.useState(""),[D,L]=N.useState(!1),[P,O]=N.useState(!1),[U,z]=N.useState({}),[M,V]=N.useState(null),[G,Z]=N.useState(0),[B,J]=N.useState(0),[K,Q]=N.useState(Date.now);N.useEffect(()=>{if(B<=K)return;const e=setTimeout(()=>Q(Date.now()),(B-K)%1e3||1e3);return()=>clearTimeout(e)},[B,K]);const Y=function(e,n){return Math.max(0,Math.ceil((e-n)/1e3))}(B,K),$=(e,n)=>t=>{n(t),U[e]&&z(({[e]:n,...t})=>t)},W=async e=>{const n=function(e,n,t,r){const s={};n?q.test(n)||(s.username="login.badUsername"):s.username="login.usernameRequired";const o=[...t].length;return o?"setup"===e&&o<8?s.password="login.passwordShort":o>128||(new TextEncoder).encode(t).length>512?s.password="login.passwordLong":"setup"===e&&t!==r&&(s.confirm="login.mismatch"):s.password="login.passwordRequired",s}(e,y,T,E);if(z(n),Object.keys(n).length)return;O(!0);const t=await R(s,i,e,{username:y,password:T});if(t)if(O(!1),"error"in t)V(d("login.failed",{error:a(t.error,d)}));else{if(t.wait){const e=Date.now();Q(e),J(e+1e3*t.wait)}t.switchTo&&(f(t.switchTo),_("")),V(t)}else location.reload()},X="setup"===h||"login"===h,ee=e=>U[e]?d(U[e]):void 0;return{kind:h,discoveryError:x.error,retryDiscovery:()=>w(e=>({attempt:e.attempt+1,error:null})),title:d("no-api"===h?"login.noApiTitle":"setup"===h?"login.setupTitle":"token"===h?"login.title":"login.passwordTitle"),note:"no-api"===h?d("login.noApiNote"):d("setup"===h?"login.setupNote":"login"===h?"login.connectedTo":"login.note",{backend:l}),demoNote:b&&"login"===h?d("login.demoNote",C):null,alert:F({kind:h,failure:M&&!Y&&H(M)?null:M,attempt:G,ended:m,rejected:c},d),busy:P,token:j,setToken:k,username:y,setUsername:$("username",v),usernameError:ee("username"),password:T,setPassword:$("password",S),passwordError:ee("password"),confirm:E,setConfirm:$("confirm",_),confirmError:ee("confirm"),submit:()=>{P||Y||null===h||"no-api"===h||(V(null),Z(e=>e+1),X?W(h):(()=>{if(!j.trim())return;const e=I(s,i,j);e?V({key:e}):location.reload()})())},canSubmit:null!==h&&"no-api"!==h&&!Y&&(X||!!j.trim()),submitText:Y?d("login.retryIn",{n:Y}):d("setup"===h?"login.create":"login"===h?"login.signIn":"login.submit"),secretType:D?"text":"password",toggle:()=>L(e=>!e),toggleText:d(X?D?"login.hidePassword":"login.showPassword":D?"settings.hideToken":"settings.showToken"),guideHref:r(p),requirementsHref:r(p,"no-native-api")}}function U({className:e,...n}){return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:10,viewBox:"0 0 12 12","aria-hidden":"true",focusable:"false",className:d("rp-icon rp-link-out",e),...n,chilLine truncated
@@ -0,0 +1,2 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./LoginShowcase-BdKK3a87.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-CmbH0woS.js","./index-suuKbZt8.css"])))=>i.map(i=>d[i]);
import{C as e,P as n,bS as t,U as r,bT as s,bU as o,bd as a,bV as i,bW as l,bX as c,bY as u,bZ as d,b_ as p,b$ as m,D as g,j as f,c0 as h,c1 as x,c2 as w,c3 as j,K as k,A as y,c4 as b,c5 as v,J as T,B as S,_ as N}from"./index-CmbH0woS.js";import{r as E,j as _}from"./vendor-react-64fcanlc.js";import{D as C,s as D,d as L,a as A,o as P}from"./auth-aj_VNWTT.js";import"./_commonjsHelpers-CXUWDbkB.js";const q=/^[A-Za-z0-9_.-]{1,64}$/;async function R(e,n){try{return D(await L(e,n))}catch(t){if(!function(e){return e instanceof SyntaxError||e instanceof s&&(404===e.status||401===e.status&&(!e.code||"authentication_required"===e.code))}(t))throw t;return t instanceof s&&404===t.status?await A(e,n)?"token":"no-api":"token"}}function I(e,n,t){try{const{profiles:r,activeId:s}=l(),o=function(e,n,t,r){return e.some(e=>e.id===n&&u(e.api)===u(t))?e.map(e=>e.id===n?{...e,token:r.trim()}:e):null}(r,e,n,t);if(!o)return"login.stale";c({profiles:o,activeId:s})}catch{return"settings.saveError"}return null}async function U(e,n,t,r){let o;try{o=await P(n,t,r)}catch(a){return function(e){if(!(e instanceof s))return null;if("invalid_credentials"===e.code)return{key:"login.invalidCredentials"};if("setup_required"===e.code)return{key:"login.needsSetup",switchTo:"setup"};if("setup_already_completed"===e.code)return{key:"login.alreadySetUp",switchTo:"login"};if("permission_denied"===e.code)return{key:"login.setupPeer"};if("rate_limited"===e.code){const n=e.retryAfter??60;return{key:"login.rateLimited",params:{n:n},wait:n}}return null}(a)??{error:a}}try{i(e,n,o.token)}catch{return{key:"settings.saveError"}}return null}function H(e,n){const{kind:t,failure:r,attempt:s,ended:o,rejected:a}=e;return"no-api"===t?null:null!==r?{tone:"negative",text:"string"==typeof r?r:n(r.key,r.params),focus:!0,id:s}:o?{tone:"informative",text:n("login.sessionEnded"),focus:!1,id:0}:a&&"token"===t?{tone:"negative",text:n("login.rejected"),focus:!1,id:0}:null}const F=e=>"string"!=typeof e&&"login.rateLimited"===e.key;function z(s,i,l,c,u){const d=e(),p=n(),[m]=E.useState(()=>t(s,i)),[g,f]=E.useState(null),h=u?"no-api":g,[x,w]=E.useState({attempt:0,error:null});E.useEffect(()=>{if(u)return;const e=new AbortController;return R(i,e.signal).then(e=>f(e),n=>{e.signal.aborted||w(e=>({...e,error:n instanceof Error?n:new Error(String(n))}))}),()=>e.abort()},[i,x.attempt,u]);const[j,k]=E.useState(""),y=o(i),[b,v]=E.useState(y?C.username:""),[T,S]=E.useState(y?C.password:""),[N,_]=E.useState(""),[D,L]=E.useState(!1),[A,P]=E.useState(!1),[z,V]=E.useState({}),[Z,B]=E.useState(null),[M,O]=E.useState(0),[$,J]=E.useState(0),[K,W]=E.useState(Date.now);E.useEffect(()=>{if($<=K)return;const e=setTimeout(()=>W(Date.now()),($-K)%1e3||1e3);return()=>clearTimeout(e)},[$,K]);const X=function(e,n){return Math.max(0,Math.ceil((e-n)/1e3))}($,K),Y=(e,n)=>t=>{n(t),z[e]&&V(({[e]:n,...t})=>t)},G=async e=>{const n=function(e,n,t,r){const s={};n?q.test(n)||(s.username="login.badUsername"):s.username="login.usernameRequired";const o=[...t].length;return o?"setup"===e&&o<8?s.password="login.passwordShort":o>128||(new TextEncoder).encode(t).length>512?s.password="login.passwordLong":"setup"===e&&t!==r&&(s.confirm="login.mismatch"):s.password="login.passwordRequired",s}(e,b,T,N);if(V(n),Object.keys(n).length)return;P(!0);const t=await U(s,i,e,{username:b,password:T});if(t)if(P(!1),"error"in t)B(d("login.failed",{error:a(t.error,d)}));else{if(t.wait){const e=Date.now();W(e),J(e+1e3*t.wait)}t.switchTo&&(f(t.switchTo),_("")),B(t)}else location.reload()},Q="setup"===h||"login"===h,ee=e=>z[e]?d(z[e]):void 0;return{kind:h,discoveryError:x.error,retryDiscovery:()=>w(e=>({attempt:e.attempt+1,error:null})),title:d("no-api"===h?"login.noApiTitle":"setup"===h?"login.setupTitle":"token"===h?"login.title":"login.passwordTitle"),note:"no-api"===h?d("login.noApiNote"):d("setup"===h?"login.setupNote":"login"===h?"login.connectedTo":"login.note",{backend:l}),demoNote:y&&"login"===h?d("login.demoNote",C):null,alert:H({kind:h,failure:Z&&!X&&F(Z)?null:Z,attempt:M,ended:m,rejected:c},d),busy:A,token:j,setToken:k,username:b,setUsername:Y("username",v),usernameError:ee("username"),password:T,setPassword:Y("password",S),passwordError:ee("password"),confirm:N,setConfirm:Y("confirm",_),confirmError:ee("confirm"),submit:()=>{A||X||null===h||"no-api"===h||(B(null),O(e=>e+1),Q?G(h):(()=>{if(!j.trim())return;const e=I(s,i,j);e?B({key:e}):location.reload()})())},canSubmit:null!==h&&"no-api"!==h&&!X&&(Q||!!j.trim()),submitText:X?d("login.retryIn",{n:X}):d("setup"===h?"login.create":"login"===h?"login.signIn":"login.submit"),secretType:D?"text":"password",toggle:()=>L(e=>!e),toggleText:d(Q?D?"login.hidePassword":"login.showPassword":D?"settings.hideToken":"settings.showToken"),guideHref:r(p),requirementsHref:r(p,"no-native-api")}}function V({className:e,...n}){return _.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:10,viewBox:"0 0 12 12","aria-hidden":"true",focusable:"false",className:d("rp-icon rp-link-out",e),.Line truncated
@@ -1 +0,0 @@
import{j as e,r as t}from"./vendor-react-64fcanlc.js";import{F as n,V as o,bK as a,aC as r,aV as i}from"./index-BgFj_VXE.js";import{g as l}from"./format-s2EANuUb.js";import"./_commonjsHelpers-CXUWDbkB.js";function c({label:t,className:n,isDisabled:o,ref:a,canvasRef:r}){return e.jsx("button",{ref:a,type:"button",className:n,"aria-label":t,disabled:o,children:e.jsx("canvas",{ref:r})})}const s=[["ink","M657 1228c-12-4-23-14-28-26-1-4-2-4-4-4-22 4-36 3-49-3-11-6-18-16-20-27-2-11 3-23 12-34 3-3 6-6 6-6 0 0-7-1-15-1-34-2-70-7-100-14-49-12-98-36-134-67l-5-4-12 4c-20 7-36 9-60 9-21 0-43-4-57-10-13-5-25-16-30-25-5-10-4-23 3-34 4-6 16-18 24-22l6-4-3-8c-2-5-2-9-2-12 1-6 5-15 9-18 4-5 16-13 21-14 3-1 5-2 6-2 0-1-1-6-3-12-21-73-6-145 45-212l7-10-12-2c-15-1-23-3-34-7-24-9-40-29-40-49 0-19 7-34 36-72 15-21 27-39 35-54 11-19 10-17 5-28-2-4-5-11-6-14-2-8-3-32-1-43 4-28 18-59 42-90l3-5-6-4c-11-9-20-21-23-32-2-6-2-9-2-17 1-9 1-10 4-18 6-11 15-20 29-27 14-7 24-10 47-15 1 0 3-3 7-11 19-37 51-71 88-94 12-8 32-18 44-22 10-3 29-8 33-8 1 0 5-2 8-5 11-8 25-14 39-16 12-2 49-1 63 2 21 4 34 9 45 19 8 7 10 9 15 18 4 7 4 7 13 12 34 18 63 46 86 81 10 16 20 38 26 57 4 12 8 34 10 48 2 13 2 43 0 56l-1 10 6 7c8 8 14 19 18 28 3 9 4 24 2 33-3 14-14 27-29 35-9 5-19 7-31 8l-9 1 0 8c0 4 0 15 0 25 0 16-1 31-5 47l0 3 14 0c27 0 58 5 83 14 21 9 51 25 68 39 3 2 6 5 7 5 0 1 6-2 14-6 27-14 49-17 69-11 26 8 38 34 27 64-2 5-3 9-3 10 0 0 4 1 8 3 14 7 24 19 29 34 8 22 0 45-24 73l-5 6 3 9c6 26 8 63 5 89-2 14-7 33-12 48-9 22-26 52-43 72-10 13-34 36-47 46-28 22-59 39-93 52-16 7-44 16-47 16-1 0-1 1-1 3 9 31 7 61-3 81-8 16-19 27-33 34-9 4-14 5-25 5-15 0-28-4-39-13l-6-5-7 6c-9 7-18 13-26 16-9 3-27 4-35 1z"],["paper","M582 1098c-44-2-79-6-117-16-55-14-102-41-141-81-42-43-67-93-75-148-2-14-1-43 1-56 6-30 16-57 32-82 8-12 24-33 32-42 6-7 7-7 17-10 58-18 110-56 126-92 2-5 2-9 3-16 1-14-2-21-15-33-13-14-21-24-33-39-18-26-28-35-45-43-11-5-21-7-33-7-13 0-23 2-33 7-6 3-9 3-9 3-4-6-4-28-2-42 5-23 18-49 37-73 14-18 37-39 56-53 5-4 6-4 11-4 41 1 105 13 154 28 32 9 72 25 104 42 18 9 51 27 66 37 8 5 8 5 11 13 7 16 13 37 16 56 2 11 2 41 1 54-4 39-19 74-44 104-8 9-10 14-9 20 1 5 7 10 13 12 7 2 14-1 24-11 10-11 22-29 32-48 3-5 4-7 6-7 2-1 14-1 27-1 22 0 24 0 37 2 34 8 68 24 98 48 13 11 15 12 20 12 5 0 7-1 16-7 22-14 41-21 53-18 13 3 16 15 7 32-2 5-6 11-8 15-4 8-4 14 0 19 4 5 7 6 17 7 15 1 23 5 27 14 3 6 3 15 0 22-2 6-10 18-20 30-9 11-11 15-8 24 3 10 6 33 7 52 0 26-2 47-10 70-18 53-57 101-111 135-40 25-87 43-144 54-66 14-132 19-194 17z"],["ink","M517 445c-7-2-13-6-18-12-7-7-9-14-9-25 0-7 0-8 3-15 7-13 17-21 31-22 23-1 43 18 41 40-2 19-17 33-36 35-4 0-9-1-12-1z"],["yellow","M541 220c-13-3-27-7-41-9-6-1-14-3-17-3l-5-1 2-6c3-15 13-40 23-59 20-39 43-66 64-73 11-3 56-1 74 4 7 1 13 4 17 7 3 3 3 4-1 4-5 0-17 4-24 7-35 18-62 59-79 118-2 8-4 14-4 14 0 0-4-1-9-3z"],["yellow","M446 203c-4-1-19-1-35-2-16 0-29 0-29-1 0-1 6-12 12-20 22-34 53-62 87-78 10-5 32-13 33-12 0 0-2 3-6 8-19 27-38 69-47 102-1 4-1 4-5 4-3 0-7-1-10-1z"],["yellow","M569 226c13-58 39-102 70-119 14-7 21-6 40 1 53 23 96 73 113 132 9 29 11 67 7 95-71-43-149-81-230-109z"],["yellow","M780 426c-1-2-5-19-5-19 0-1 3 0 8 0 6 0 8 0 10-2 5-4 3-6-21-21-50-32-74-46-109-63-71-36-143-57-225-67-48-6-99-5-107 1-4 3-5 5-2 7 1 2 3 2 10 3l8 0-4 4c-3 3-9 8-13 12l-9 8-4-2c-6-4-13-11-16-17-3-5-4-12-3-17 2-8 11-17 22-22 22-10 60-14 101-12 63 3 121 16 167 36 71 31 145 67 214 105 17 10 27 31 23 45-1 5-6 12-10 15-6 4-15 6-25 7-8 0-10 0-10-1z"],["yellow","M251 640c-19-4-32-16-32-29 0-10 5-19 23-43 26-34 37-50 50-75 6-12 9-17 13-20 12-11 29-13 45-7 11 5 17 10 37 36 9 13 19 25 24 30 5 5 10 10 12 13 2 3 2 5 2 10 0 5-1 8-4 12-17 29-73 61-123 71-14 3-38 4-47 2z"],["yellow","M226 1028c-12-1-24-5-31-10-12-8-13-16-2-27 5-5 19-13 30-17 7-3 11-6 11-8 0-3-1-5-8-9-7-6-10-10-10-14 0-4 1-5 4-8 2-2 6-4 9-5 3-1 5-2 5-2 1 0 4 7 8 14 15 29 28 49 49 72 4 5 7 8 7 9-1 1-21 5-29 6-13 1-31 1-43-1z"],["yellow","M663 1201c-7-4-9-12-7-24 1-7 1-8 0-10-3-4-7-4-15-1-18 7-40 10-48 7-5-2-8-6-8-11 0-7 8-16 29-30l10-7 19 0c22-1 52-4 78-7 18-3 57-9 65-11 6-2 11-1 14 1 2 3 4 7 5 20 4 39-13 70-39 68-9-1-16-5-29-17-14-12-14-12-27 1-11 11-20 18-28 21-7 3-15 3-19 0z"]],u=940,d=1192,m=1.4,f=52,h=22,p=1/120,g=1500,b=48,x=Math.max(114.4,117.63333333333333),w=3e5/860,M=43.68*u/d/2,v=21.84;function y(e,t){let n=0;for(;e>=1e3&&n<t.length-1;n++)e/=1e3;return[e,n]}function k(e,t){const n=["unit.megabyte","unit.gigabyte","unit.terabyte","unit.petabyte"],[o,a]=y(e,n);return l(o,t,n[a],a?2:1)}function R(e){return e<6?[100,150,200,300,450,650][e]:[1,1.5,2.5,4,6][(e-6)%5]*Math.pow(10,3+Math.floor((e-6)/5))}function T(e){const t=Math.pow(.9,e);return{speed:w-(w-110)*t,gap:x+(205-x)*t,space:200+70*t,swing:e<6?0:34*(1-Math.pow(.8,e-5)),drift:e>=6}}function S(e,t,n){const o=t.getContext("2d");if(!o)return{setText(){},destroy(){}};const a=matchMedia("(prefers-reduced-motion: reduce)"),r=document.documentElement,i=s.map(([e,t])=>[e,new Path2D(t)]);let c,x="",w=U(),S=1,P=0,E=0,j=0,L=0,z=0,A=0,$=0,B=[],D=0,F=0Line truncated
@@ -0,0 +1 @@
import{j as e,r as t}from"./vendor-react-64fcanlc.js";import{bI as n,C as o,P as a,b_ as r,aF as i,aY as l}from"./index-CmbH0woS.js";import"./_commonjsHelpers-CXUWDbkB.js";function c({label:t,className:n,isDisabled:o,ref:a,canvasRef:r}){return e.jsx("button",{ref:a,type:"button",className:n,"aria-label":t,disabled:o,children:e.jsx("canvas",{ref:r})})}const s=[["ink","M657 1228c-12-4-23-14-28-26-1-4-2-4-4-4-22 4-36 3-49-3-11-6-18-16-20-27-2-11 3-23 12-34 3-3 6-6 6-6 0 0-7-1-15-1-34-2-70-7-100-14-49-12-98-36-134-67l-5-4-12 4c-20 7-36 9-60 9-21 0-43-4-57-10-13-5-25-16-30-25-5-10-4-23 3-34 4-6 16-18 24-22l6-4-3-8c-2-5-2-9-2-12 1-6 5-15 9-18 4-5 16-13 21-14 3-1 5-2 6-2 0-1-1-6-3-12-21-73-6-145 45-212l7-10-12-2c-15-1-23-3-34-7-24-9-40-29-40-49 0-19 7-34 36-72 15-21 27-39 35-54 11-19 10-17 5-28-2-4-5-11-6-14-2-8-3-32-1-43 4-28 18-59 42-90l3-5-6-4c-11-9-20-21-23-32-2-6-2-9-2-17 1-9 1-10 4-18 6-11 15-20 29-27 14-7 24-10 47-15 1 0 3-3 7-11 19-37 51-71 88-94 12-8 32-18 44-22 10-3 29-8 33-8 1 0 5-2 8-5 11-8 25-14 39-16 12-2 49-1 63 2 21 4 34 9 45 19 8 7 10 9 15 18 4 7 4 7 13 12 34 18 63 46 86 81 10 16 20 38 26 57 4 12 8 34 10 48 2 13 2 43 0 56l-1 10 6 7c8 8 14 19 18 28 3 9 4 24 2 33-3 14-14 27-29 35-9 5-19 7-31 8l-9 1 0 8c0 4 0 15 0 25 0 16-1 31-5 47l0 3 14 0c27 0 58 5 83 14 21 9 51 25 68 39 3 2 6 5 7 5 0 1 6-2 14-6 27-14 49-17 69-11 26 8 38 34 27 64-2 5-3 9-3 10 0 0 4 1 8 3 14 7 24 19 29 34 8 22 0 45-24 73l-5 6 3 9c6 26 8 63 5 89-2 14-7 33-12 48-9 22-26 52-43 72-10 13-34 36-47 46-28 22-59 39-93 52-16 7-44 16-47 16-1 0-1 1-1 3 9 31 7 61-3 81-8 16-19 27-33 34-9 4-14 5-25 5-15 0-28-4-39-13l-6-5-7 6c-9 7-18 13-26 16-9 3-27 4-35 1z"],["paper","M582 1098c-44-2-79-6-117-16-55-14-102-41-141-81-42-43-67-93-75-148-2-14-1-43 1-56 6-30 16-57 32-82 8-12 24-33 32-42 6-7 7-7 17-10 58-18 110-56 126-92 2-5 2-9 3-16 1-14-2-21-15-33-13-14-21-24-33-39-18-26-28-35-45-43-11-5-21-7-33-7-13 0-23 2-33 7-6 3-9 3-9 3-4-6-4-28-2-42 5-23 18-49 37-73 14-18 37-39 56-53 5-4 6-4 11-4 41 1 105 13 154 28 32 9 72 25 104 42 18 9 51 27 66 37 8 5 8 5 11 13 7 16 13 37 16 56 2 11 2 41 1 54-4 39-19 74-44 104-8 9-10 14-9 20 1 5 7 10 13 12 7 2 14-1 24-11 10-11 22-29 32-48 3-5 4-7 6-7 2-1 14-1 27-1 22 0 24 0 37 2 34 8 68 24 98 48 13 11 15 12 20 12 5 0 7-1 16-7 22-14 41-21 53-18 13 3 16 15 7 32-2 5-6 11-8 15-4 8-4 14 0 19 4 5 7 6 17 7 15 1 23 5 27 14 3 6 3 15 0 22-2 6-10 18-20 30-9 11-11 15-8 24 3 10 6 33 7 52 0 26-2 47-10 70-18 53-57 101-111 135-40 25-87 43-144 54-66 14-132 19-194 17z"],["ink","M517 445c-7-2-13-6-18-12-7-7-9-14-9-25 0-7 0-8 3-15 7-13 17-21 31-22 23-1 43 18 41 40-2 19-17 33-36 35-4 0-9-1-12-1z"],["yellow","M541 220c-13-3-27-7-41-9-6-1-14-3-17-3l-5-1 2-6c3-15 13-40 23-59 20-39 43-66 64-73 11-3 56-1 74 4 7 1 13 4 17 7 3 3 3 4-1 4-5 0-17 4-24 7-35 18-62 59-79 118-2 8-4 14-4 14 0 0-4-1-9-3z"],["yellow","M446 203c-4-1-19-1-35-2-16 0-29 0-29-1 0-1 6-12 12-20 22-34 53-62 87-78 10-5 32-13 33-12 0 0-2 3-6 8-19 27-38 69-47 102-1 4-1 4-5 4-3 0-7-1-10-1z"],["yellow","M569 226c13-58 39-102 70-119 14-7 21-6 40 1 53 23 96 73 113 132 9 29 11 67 7 95-71-43-149-81-230-109z"],["yellow","M780 426c-1-2-5-19-5-19 0-1 3 0 8 0 6 0 8 0 10-2 5-4 3-6-21-21-50-32-74-46-109-63-71-36-143-57-225-67-48-6-99-5-107 1-4 3-5 5-2 7 1 2 3 2 10 3l8 0-4 4c-3 3-9 8-13 12l-9 8-4-2c-6-4-13-11-16-17-3-5-4-12-3-17 2-8 11-17 22-22 22-10 60-14 101-12 63 3 121 16 167 36 71 31 145 67 214 105 17 10 27 31 23 45-1 5-6 12-10 15-6 4-15 6-25 7-8 0-10 0-10-1z"],["yellow","M251 640c-19-4-32-16-32-29 0-10 5-19 23-43 26-34 37-50 50-75 6-12 9-17 13-20 12-11 29-13 45-7 11 5 17 10 37 36 9 13 19 25 24 30 5 5 10 10 12 13 2 3 2 5 2 10 0 5-1 8-4 12-17 29-73 61-123 71-14 3-38 4-47 2z"],["yellow","M226 1028c-12-1-24-5-31-10-12-8-13-16-2-27 5-5 19-13 30-17 7-3 11-6 11-8 0-3-1-5-8-9-7-6-10-10-10-14 0-4 1-5 4-8 2-2 6-4 9-5 3-1 5-2 5-2 1 0 4 7 8 14 15 29 28 49 49 72 4 5 7 8 7 9-1 1-21 5-29 6-13 1-31 1-43-1z"],["yellow","M663 1201c-7-4-9-12-7-24 1-7 1-8 0-10-3-4-7-4-15-1-18 7-40 10-48 7-5-2-8-6-8-11 0-7 8-16 29-30l10-7 19 0c22-1 52-4 78-7 18-3 57-9 65-11 6-2 11-1 14 1 2 3 4 7 5 20 4 39-13 70-39 68-9-1-16-5-29-17-14-12-14-12-27 1-11 11-20 18-28 21-7 3-15 3-19 0z"]],u=940,d=1192,f=1.4,m=52,h=22,p=1/120,g=1500,b=48,x=Math.max(114.4,117.63333333333333),w=3e5/860,M=43.68*u/d/2,v=21.84;function y(e,t){let n=0;for(;e>=1e3&&n<t.length-1;n++)e/=1e3;return[e,n]}function k(e,t){const o=["unit.megabyte","unit.gigabyte","unit.terabyte","unit.petabyte"],[a,r]=y(e,o);return n(a,t,o[r],r?2:1)}function R(e){return e<6?[100,150,200,300,450,650][e]:[1,1.5,2.5,4,6][(e-6)%5]*Math.pow(10,3+Math.floor((e-6)/5))}function T(e){const t=Math.pow(.9,e);return{speed:w-(w-110)*t,gap:x+(205-x)*t,space:200+70*t,swing:e<6?0:34*(1-Math.pow(.8,e-5)),drift:e>=6}}function S(e,t,o){const a=t.getContext("2d");if(!a)return{setText(){},destroy(){}};const r=matchMedia("(prefers-reduced-motion: reduce)"),i=document.documentElement,l=s.map(([e,t])=>[e,new Path2D(t)]);let c,x="",w=Q(),S=1,P=0,E=0,L=0,j=0,z=0,A=0,$=0,B=[],D=0,F=0,N=0,O=0,C=0,H=!1,I=0,K=0,W=0,V=0Line truncated
@@ -1 +0,0 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{bS as r,F as s,aC as l,V as o,c1 as a,O as n,f9 as i,dp as c,g0 as d,Q as g,ad as m,$ as u,a5 as p,dk as f,c$ as h,T as x,Z as v,bs as b,bQ as j,dr as w,P as y}from"./index-BgFj_VXE.js";import{b5 as M,z as T,F as k,b6 as N,D as $}from"./activity-D06xJ7oH.js";import{w as C,x as S,L as O,A as F}from"./logs-BxISynQ4.js";import{T as R}from"./Toolbar-CIBfeuEz.js";import{D as A}from"./Table-Dprh3Btz.js";import{d as D,e as P}from"./files-Dt8K7QfP.js";import{r as W}from"./recorder-BHyqDNp5.js";import{l as L}from"./format-s2EANuUb.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-CkiGmyVC.js";import"./useGridSelectionCheckbox-BxnCShqN.js";import"./Virtualizer-CZl-q5wo.js";const V=new WeakMap;function _(e){let t=V.get(e);return void 0===t&&V.set(e,t=Date.parse(e.ts)),t}const z=[...r].reverse();function B({records:m,offered:u,minimum:p,setMinimum:f}){const h=s(),x=l[o()],v=T(),b=e.useMemo(()=>function(e,t,r,s=24){const l=r?z.indexOf(r):z.length-1,o=z.filter((e,r)=>t.includes(e)&&r<=l),a=e.map(_).filter(Number.isFinite);if(!a.length)return{rows:o.map(e=>({level:e,counts:[]})),buckets:[],width:0,busiest:null};const n=Math.min(...a),i=Math.max(...a),c=M(n,i,s),d=c.length>1?c[1]-c[0]:Math.max(i-n,6e4),g=new Map(o.map(e=>[e,new Array(c.length).fill(0)])),m=new Array(c.length).fill(0),u=new Array(c.length).fill(0);for(const x of e){const e=_(x),t=g.get(x.level);if(!t||!Number.isFinite(e))continue;const r=Math.min(c.length-1,Math.floor((e-c[0])/d));t[r]++,m[r]++,"error"===x.level&&u[r]++}const p=e=>e.reduce((t,r,s)=>r>e[t]?s:t,0),f=u.reduce((e,t)=>e+t,0),h=p(f?u:m);return{rows:o.map(e=>({level:e,counts:g.get(e)})),buckets:c,width:d,busiest:{start:c[h],count:f?u[h]:m[h],errors:f}}}(m,u,p),[m,u,p]),j=e.useMemo(()=>new Intl.DateTimeFormat(x,{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}),[x]),w=e.useCallback(e=>`${j.format(e)}–${j.format(e+b.width)}`,[j,b.width]),y=e.useMemo(()=>{const e=r.map(e=>{const r=h(a[e]);return[e,{text:r,label:t.jsxs(n,{quiet:!0,small:!0,className:e===p?"current":void 0,label:h(e===p?"log.chart.current":"log.chart.minimum",{level:r}),onPress:()=>f(e),children:[e===p&&t.jsx(i,{}),r]})}]});return new Map(e)},[p,f,h]),$=e.useMemo(()=>{const e={error:v.negative,warn:v.notice,info:v.info,debug:v.subtle,trace:v.muted},t=b.buckets.map(w);return{columns:b.buckets.map(e=>j.format(e)),rows:b.rows.map(r=>{const{text:s,label:l}=y.get(r.level);return{id:r.level,color:e[r.level],label:l,counts:r.counts,titles:r.counts.map((e,r)=>h("log.chart.cell",{time:t[r],level:s,n:e}))}})}},[b,w,j,y,v,h]);if(!m.length)return null;const C=b.busiest,S=C?C.errors?[{label:h("log.chart.errors"),value:h("log.chart.count",{n:C.errors}),icon:t.jsx(c,{}),tone:"negative"},{label:h("log.chart.peakErrors"),icon:t.jsx(d,{}),tint:"c1",value:w(C.start),caption:h("log.chart.count",{n:C.count})}]:[{label:h("log.chart.errors"),value:h("log.chart.count",{n:0}),icon:t.jsx(c,{}),tint:"c5"},{label:h("log.chart.peak"),icon:t.jsx(d,{}),tint:"c1",value:w(C.start),caption:h("log.chart.count",{n:C.count})}]:[];return t.jsxs("div",{className:"rp-chart-page",children:[t.jsx(k,{facts:S}),t.jsx(g,{title:h("log.chart.title"),note:h("log.chart.sample",{n:m.length}),children:t.jsx(N,{label:h("log.chart.title"),columns:$.columns,rows:$.rows})})]})}const E={trace:"muted",debug:"neutral",info:"info",warn:"warn",error:"err"},H=new WeakMap;function J(e,t,s,l,o,n=new Set,i){return{rows:e.flatMap(e=>{const t=function(e,t,r){const s=H.get(e);if(s&&s.locale===t)return s.row;const l={id:e.id,timestamp:L(e.ts,t),iso:e.ts,levelText:m(a,e.level,r),tone:E[e.level],target:e.target,gap:!1,message:e.message+(e.fields?" "+Object.entries(e.fields).map(([e,t])=>`${e}=${"string"==typeof t?t:JSON.stringify(t)}`).join(" "):"")};return H.set(e,{locale:t,row:l}),l}(e,l,o);return n.has(e)?[{...t,id:`gap ${e.id}`,timestamp:"",iso:"",levelText:"",target:"",gap:!0,message:o("log.gap")},t]:[t]}),levels:t.map(e=>{return{id:e,label:(t=e,i&&r.indexOf(t)<r.indexOf(i)?o("log.levelNotRecorded",{level:m(a,e,o)}):m(a,e,o))};var t}),recordedText:i?o("log.recorded",{level:m(a,i,o)}):null,exportBase:`${s||"engine"}-log`}}function Q(e,t,r){return r(W(e,t,{forbidden:"log.emptyForbidden",off:"log.emptyNotRecorded",filtered:"log.emptyFiltered",empty:"log.empty"}))}function q(e,t,r,s,l,o){return t?{tone:"err",text:o("log.disconnected")}:r?{tone:"neutral",text:o(s>l?"log.pausedOverflow":"log.paused",{n:Math.min(s,l)})}:{tone:e?"ok":"warn",text:o(e?"log.connected":"log.reconnecting")}}const G=[];function I({go:t}){const r=s(),a=l[o()],n=u(),i=p(),[c,d]=e.useState("info"),g=e.useCallback(e=>d(e),[]),[m,x]=e.useState(""),[v,b]=e.useState(!1),j=n.data?.resources.logs,w=j?.filters?.includes("target")??!1,y=f(w?m.trim():""),M=function(e,t=[]){return t.includes(e)?e:t.includes("info")?"info":t[0]}(c,j?.levels),T=C({level:M,target:y,paused:v}),k=h(n.data?.resources.runtime_settings.available??!1).data,N=k?.log?.level,$=e.useMemo(()=>J(T.recoLine truncated
@@ -0,0 +1 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{c7 as r,C as s,aF as a,P as l,fc as o,ci as n,J as i,el as c,cR as g,fd as d,M as u,ae as m,am as p,W as f,a1 as h,cM as x,cp as v,T as b,V as j,bG as w,c5 as M,cT as y,K as T}from"./index-CmbH0woS.js";import{aP as k,u as N,F as $,aQ as C,D as S}from"./activity-CiEWAlFW.js";import{w as A,x as R,L as O,A as W}from"./ActionGroup-D3mQjUsw.js";import{T as D}from"./Toolbar-B9K5nAyx.js";import{D as F}from"./Table-Cfbaho6J.js";import{d as P,e as L}from"./files-Dt8K7QfP.js";import{r as E}from"./recorder-BHyqDNp5.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BcN72K3H.js";import"./Checkbox-f7Je53QZ.js";import"./Virtualizer-itu1Kg0o.js";const G=new WeakMap;function H(e){let t=G.get(e);return void 0===t&&G.set(e,t=Date.parse(e.ts)),t}const J=[...r].reverse();function _({records:m,offered:p,minimum:f,setMinimum:h}){const x=s(),v=a[l()],b=N(),j=e.useMemo(()=>function(e,t,r,s=24){const a=r?J.indexOf(r):J.length-1,l=J.filter((e,r)=>t.includes(e)&&r<=a),o=e.map(H).filter(Number.isFinite);if(!o.length)return{rows:l.map(e=>({level:e,counts:[]})),buckets:[],width:0,busiest:null};const n=Math.min(...o),i=Math.max(...o),c=k(n,i,s),g=c.length>1?c[1]-c[0]:Math.max(i-n,6e4),d=new Map(l.map(e=>[e,new Array(c.length).fill(0)])),u=new Array(c.length).fill(0),m=new Array(c.length).fill(0);for(const x of e){const e=H(x),t=d.get(x.level);if(!t||!Number.isFinite(e))continue;const r=Math.min(c.length-1,Math.floor((e-c[0])/g));t[r]++,u[r]++,"error"===x.level&&m[r]++}const p=e=>e.reduce((t,r,s)=>r>e[t]?s:t,0),f=m.reduce((e,t)=>e+t,0),h=p(f?m:u);return{rows:l.map(e=>({level:e,counts:d.get(e)})),buckets:c,width:g,busiest:{start:c[h],count:f?m[h]:u[h],errors:f}}}(m,p,f),[m,p,f]),w=e.useMemo(()=>o(v),[v]),M=e.useCallback(e=>`${w.format(e)}–${w.format(e+j.width)}`,[w,j.width]),y=e.useMemo(()=>{const e=r.map(e=>{const r=x(n[e]);return[e,{text:r,label:t.jsxs(i,{quiet:!0,small:!0,className:e===f?"current":void 0,label:x(e===f?"log.chart.current":"log.chart.minimum",{level:r}),onPress:()=>h(e),children:[e===f&&t.jsx(c,{}),r]})}]});return new Map(e)},[f,h,x]),T=e.useMemo(()=>{const e={error:b.negative,warn:b.notice,info:b.info,debug:b.subtle,trace:b.muted},t=j.buckets.map(M);return{columns:j.buckets.map(e=>w.format(e)),rows:j.rows.map(r=>{const{text:s,label:a}=y.get(r.level);return{id:r.level,color:e[r.level],label:a,counts:r.counts,titles:r.counts.map((e,r)=>x("log.chart.cell",{time:t[r],level:s,n:e}))}})}},[j,M,w,y,b,x]);if(!m.length)return null;const S=j.busiest,A=S?S.errors?[{label:x("log.chart.errors"),value:x("log.chart.count",{n:S.errors}),icon:t.jsx(g,{}),tone:"negative"},{label:x("log.chart.peakErrors"),icon:t.jsx(d,{}),tint:"c1",value:M(S.start),caption:x("log.chart.count",{n:S.count})}]:[{label:x("log.chart.errors"),value:x("log.chart.count",{n:0}),icon:t.jsx(g,{}),tint:"c5"},{label:x("log.chart.peak"),icon:t.jsx(d,{}),tint:"c1",value:M(S.start),caption:x("log.chart.count",{n:S.count})}]:[];return t.jsxs("div",{className:"rp-chart-page",children:[t.jsx($,{facts:A}),t.jsx(u,{title:x("log.chart.title"),note:x("log.chart.sample",{n:m.length}),children:t.jsx(C,{label:x("log.chart.title"),columns:T.columns,rows:T.rows})})]})}const B={trace:"muted",debug:"neutral",info:"info",warn:"warn",error:"err"},V=new WeakMap;function q(e,t,s,a,l,o=new Set,i){return{rows:e.flatMap(e=>{const t=function(e,t,r){const s=V.get(e);if(s&&s.locale===t)return s.row;const a={id:e.id,timestamp:p(e.ts,t),iso:e.ts,levelText:m(n,e.level,r),tone:B[e.level],target:e.target,gap:!1,message:e.message+(e.fields?" "+Object.entries(e.fields).map(([e,t])=>`${e}=${"string"==typeof t?t:JSON.stringify(t)}`).join(" "):"")};return V.set(e,{locale:t,row:a}),a}(e,a,l);return o.has(e)?[{...t,id:`gap ${e.id}`,timestamp:"",iso:"",levelText:"",target:"",gap:!0,message:l("log.gap")},t]:[t]}),levels:t.map(e=>{return{id:e,label:(t=e,i&&r.indexOf(t)<r.indexOf(i)?l("log.levelNotRecorded",{level:m(n,e,l)}):m(n,e,l))};var t}),recordedText:i?l("log.recorded",{level:m(n,i,l)}):null,exportBase:`${s||"engine"}-log`}}function z(e,t,r){return r(E(e,t,{forbidden:"log.emptyForbidden",off:"log.emptyNotRecorded",filtered:"log.emptyFiltered",empty:"log.empty"}))}function K(e,t,r,s,a,l){return t?{tone:"err",text:l("log.disconnected")}:r?{tone:"neutral",text:l(s>a?"log.pausedOverflow":"log.paused",{n:Math.min(s,a)})}:{tone:e?"ok":"warn",text:l(e?"log.connected":"log.reconnecting")}}const Q=[];function U({go:t}){const r=s(),o=a[l()],n=f(),i=h(),[c,g]=e.useState("info"),d=e.useCallback(e=>g(e),[]),[u,m]=e.useState(""),[p,b]=e.useState(!1),j=n.data?.resources.logs,w=j?.filters?.includes("target")??!1,M=x(w?u.trim():""),y=function(e,t=[]){return t.includes(e)?e:t.includes("info")?"info":t[0]}(c,j?.levels),T=A({level:y,target:M,paused:p}),k=v(n.data?.resources.runtime_settings.available??!1).data,N=k?.log?.level,$=e.useMemo(()=>q(T.records,j?.levels??[],i.data?.engine.name,o,r,T.gaps,N),[T.records,T.gaps,j,i.data,o,r,N]);return{...$,empty:zLine truncated
@@ -1 +0,0 @@
import{r as e,j as n}from"./vendor-react-64fcanlc.js";import{aC as a,V as r,$ as s,a0 as o,F as i,P as t,D as l,au as d,dm as c,dp as u,Q as m,aB as p,G as g,N as h,bK as b,T as v,aP as f,Z as j,O as y,dt as x,dq as k,dg as w,I as N,aG as P,fa as S,aW as M,bQ as C,bs as A,fb as T,fc as F,U as L,a8 as G,eS as R,a4 as D,di as O,da as _,fd as q,j as W,b4 as I,ag as E,fe as H,e as Q,d as U,b9 as B,ff as K,fg as V,cC as J,a5 as $,a1 as z,dL as X,r as Z,w as Y,fh as ee,b6 as ne,b8 as ae,aq as re,de as se,dc as oe,dM as ie,dK as te,dr as le,aN as de,cD as ce,dF as ue,f2 as me,cE as pe}from"./index-BgFj_VXE.js";import{T as ge}from"./Tabs-CD2lZase.js";import{c as he,d as be}from"./format-s2EANuUb.js";import{c as ve,u as fe,b as je,S as ye,M as xe,A as ke,L as we,o as Ne,p as Pe,r as Se,e as Me}from"./logs-BxISynQ4.js";import{aw as Ce,q as Ae,ax as Te,ay as Fe,V as Le,F as Ge,az as Re,aA as De,aB as Oe,aC as _e,aD as qe,aE as We,aF as Ie,aG as Ee,aH as He,aI as Qe,aJ as Ue,aK as Be,aL as Ke,aM as Ve,ah as Je,r as $e,aN as ze,aO as Xe,a as Ze,aP as Ye,aQ as en,aR as nn,aS as an,aT as rn,aU as sn,aV as on,aW as tn,aX as ln,aY as dn,aZ as cn,a_ as un,a$ as mn,b0 as pn,af as gn,b1 as hn,b2 as bn,b3 as vn,b4 as fn}from"./activity-D06xJ7oH.js";import{T as jn}from"./Toolbar-CIBfeuEz.js";import{D as yn,c as xn}from"./Table-Dprh3Btz.js";import{T as kn}from"./TimeCell-B4WLB8Ou.js";import{P as wn}from"./ProbeOptionsDialog-DbXtrnP-.js";import{F as Nn,T as Pn,L as Sn}from"./Tag-PTwIjtR6.js";import{FlagField as Mn}from"./FlagPicker-DvzEtm7E.js";import{S as Cn}from"./SearchSelect-CO6FsBaz.js";import{u as An}from"./outbounds-BApwKyMu.js";import{$ as Tn}from"./SearchList-Bhc2_bS4.js";import{a as Fn,p as Ln}from"./probe-CvLYPWKB.js";import{n as Gn}from"./nav-4gpXURa5.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./useGridSelectionCheckbox-BxnCShqN.js";import"./Select-CkiGmyVC.js";import"./Virtualizer-CZl-q5wo.js";function Rn(a,r){return a.split("{names}").map((a,s)=>n.jsxs(e.Fragment,{children:[s>0&&r,a]},s))}function Dn(a,r,s,o){const i=p(r,["",""]),t=a.slice(0,6).map((a,r)=>n.jsxs(e.Fragment,{children:[r>0&&i,n.jsx(g,{appearance:"link",layout:"inline",href:o.get(a.id)??_e([a.id]),children:n.jsx(h,{name:a.name})})]},a.id));if(a.length<=6)return t;const l=n.jsx(g,{appearance:"link",layout:"inline",href:_e(a.map(e=>e.id)),children:s("nodes.latency.more",{n:a.length-6})});return s("nodes.latency.andMore",{names:"{names}",more:"{more}"}).split(/(\{names\}|\{more\})/).map((a,r)=>n.jsx(e.Fragment,{children:"{names}"===a?t:"{more}"===a?l:a},r))}function On(){const p=i(),g=r(),{nodes:h,by:b,setBy:v,view:f,hrefs:j}=function(){const n=a[r()],i=s().data?.resources,t=ve(o(i,"nodes",{whileLoading:!0})),l=fe(o(i,"groups",{whileLoading:!1})),d=je(o(i,"providers",{whileLoading:!0})),[c,u]=e.useState("group"),m=e.useMemo(()=>Ce(t.data??[],l.data,c,n),[t.data,l.data,c,n]),p=e.useMemo(()=>new Map((t.data??[]).map(e=>[e.id,Ae(e,d.data?.providers??[],!0)])),[t.data,d.data]);return{nodes:t,by:c,setBy:u,view:m,hrefs:p}}();if(h.error&&!h.data)return n.jsx(t,{error:h.error,onRetry:h.refetch});if(!h.data)return n.jsx(l,{});if(!h.data.length)return n.jsx(d,{children:p("ui.empty")});const y=Te(f),{measured:x,down:k}=Fe(f),w=x.length?[{label:p("nodes.latency.lowest"),icon:n.jsx(c,{}),tint:"c2",value:x[0].name,nodeName:!0,valueRole:"name",caption:he(x[0].latest,p)},{label:p("nodes.latency.highest"),icon:n.jsx(Le,{}),tint:"c4",value:x[x.length-1].name,nodeName:!0,valueRole:"name",caption:he(x[x.length-1].latest,p)},{label:p("nodes.latency.unavailable"),value:p("nodes.latency.count",{n:k}),icon:n.jsx(u,{}),tint:"c5",tone:k?"negative":void 0}]:[],N=e=>{const n=e.filter(e=>"unavailable"===e.state),a=e.filter(e=>"unmeasured"===e.state);return[...n.length?[Rn(p("nodes.latency.unavailableList",{n:n.length,names:"{names}"}),Dn(n,g,p,j))]:[],...a.length?[Rn(p("nodes.latency.unmeasuredList",{n:a.length,names:"{names}"}),Dn(a,g,p,j))]:[]]};return n.jsxs("div",{className:"rp-chart-page",children:[n.jsx(Ge,{facts:w}),n.jsx(m,{title:p("ui.nodeLatency"),note:p("nodes.latency.sample",{n:h.data.length}),aside:n.jsx(ye,{label:p("nodes.latency.by"),value:b,onChange:e=>v(e),items:[["group",p("nodes.latency.byGroup")],["protocol",p("nodes.latency.byProtocol")]]}),children:n.jsx(Re,{label:p("ui.nodeLatency"),max:Oe(f),fmt:e=>he(e,p),showAll:e=>p("nodes.latency.showAll",{n:e}),legend:[{kind:"dot",label:p("nodes.latency.latest")},...y.moving||y.avg10?[{kind:"ring",label:p("nodes.latency.average")},{kind:"line",label:p("nodes.latency.range")},{kind:"dot",label:p("nodes.latency.slower"),tone:"notice"}]:[]],groups:f.map(e=>({id:e.id,label:e.label??p("group"===b?"nodes.latency.noGroup":"nodes.latency.noProtocol"),rows:e.rows.map(e=>De(e,p,j.get(e.id))),notes:N(e.missing)}))})})]})}function _n(e,n){const a=e=>e.isRowHeader||e.id===n;return[...e.filter(a),...e.filter(e=>!a(e)&&!e.drop),...e.filter(e=>!a(e)&&e.drop)]}function qn({model:a}){const r=i(),s=b(w),{canManage:o,editing:t,busy:l,Line truncated
@@ -0,0 +1 @@
import{j as e,r as n}from"./vendor-react-64fcanlc.js";import{T as a,cU as s,C as r,A as o,az as i,aF as t,P as l,W as d,X as c,K as u,as as m,cP as p,cR as g,M as h,aE as v,D as b,N as f,bG as j,J as x,cV as y,aS as k,V as w,cS as N,I as P,b_ as S,aJ as C,em as M,aZ as A,c5 as T,en as F,eo as G,cI as L,O as R,a4 as D,e0 as O,a0 as q,cK as _,cC as E,bb as I,ep as H,j as Q,bd as B,ai as K,eq as U,e as W,d as J,bj as V,er as z,es as Y,dc as $,dd as X,a1 as Z,Y as ee,df as ne,r as ae,w as se,et as re,bf as oe,bi as ie,au as te,cG as le,cE as de,dg as ce,de as ue,cT as me,aQ as pe,d6 as ge,d8 as he,ee as ve,ec as be}from"./index-CmbH0woS.js";import{T as fe}from"./Tabs-BzeNgTje.js";import{c as je,u as xe,b as ye,S as ke,M as we,A as Ne,L as Pe,o as Se,p as Ce,r as Me,e as Ae}from"./ActionGroup-D3mQjUsw.js";import{ae as Te,a2 as Fe,af as Ge,ag as Le,C as Re,F as De,ah as Oe,ai as qe,aj as _e,ak as Ee,al as Ie,am as He,an as Qe,ao as Be,ap as Ke,aq as Ue,ar as We,as as Je,at as Ve,au as ze,_ as Ye,r as $e,av as Xe,aw as Ze,a as en,ax as nn,ay as an,az as sn,aA as rn,aB as on,aC as tn,aD as ln,aE as dn,aF as cn,aG as un,aH as mn,aI as pn,aJ as gn,aK as hn,Y as vn,aL as bn,aM as fn,aN as jn,aO as xn}from"./activity-CiEWAlFW.js";import{T as yn}from"./Toolbar-B9K5nAyx.js";import{T as kn}from"./TimeCell-D0UB-mKs.js";import{a as wn,$ as Nn}from"./GridList-ByMoT8kr.js";import{P as Pn}from"./ProbeOptionsDialog-DgWCU4Y0.js";import{D as Sn,c as Cn}from"./Table-Cfbaho6J.js";import{F as Mn,T as An,L as Tn}from"./Tag-fyQjN-Xw.js";import{FlagField as Fn}from"./FlagPicker-v8i5Q7lf.js";import{S as Gn}from"./SearchSelect-CuaWhoLz.js";import{u as Ln}from"./outbounds-CUyNhEhE.js";import{$ as Rn}from"./SearchList-CJ8rQxgu.js";import{a as Dn,p as On}from"./probe-D0sWIaS4.js";import{n as qn}from"./nav-ClMHrgx_.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Checkbox-f7Je53QZ.js";import"./Select-BcN72K3H.js";import"./Virtualizer-itu1Kg0o.js";function _n({label:n,items:a,selected:s,onSelect:t,loading:l,empty:d,children:c}){const u=r();return e.jsx(Nn,{className:"rp-cardview","aria-label":n,layout:"grid",items:a,dependencies:[c],selectionMode:"single",selectionBehavior:"replace",disallowEmptySelection:!0,selectedKeys:s?[s]:[],onSelectionChange:e=>{if("all"===e)return;const n=[...e][0];null!=n&&t(String(n))},renderEmptyState:()=>l?e.jsx(o,{}):e.jsx(i,{children:d??u("ui.empty")}),children:c})}function En({id:n,title:r,titleFull:o,meta:i,actions:t,children:l}){return e.jsxs(wn,{id:n,textValue:r,className:s("rp-cardview-card"),children:[e.jsxs("div",{className:"rp-cardview-head",children:[e.jsx(a,{className:"rp-cardview-title",text:o,children:r}),t&&e.jsx("span",{className:"rp-cardview-actions",children:t})]}),i&&e.jsx("div",{className:"rp-cardview-meta",children:i}),l]})}function In(a,s){return a.split("{names}").map((a,r)=>e.jsxs(n.Fragment,{children:[r>0&&s,a]},r))}function Hn(a,s,r,o){const i=v(s,["",""]),t=a.slice(0,6).map((a,s)=>e.jsxs(n.Fragment,{children:[s>0&&i,e.jsx(b,{appearance:"link",layout:"inline",href:o.get(a.id)??Ee([a.id]),children:e.jsx(f,{name:a.name})})]},a.id));if(a.length<=6)return t;const l=e.jsx(b,{appearance:"link",layout:"inline",href:Ee(a.map(e=>e.id)),children:r("nodes.latency.more",{n:a.length-6})});return r("nodes.latency.andMore",{names:"{names}",more:"{more}"}).split(/(\{names\}|\{more\})/).map((a,s)=>e.jsx(n.Fragment,{children:"{names}"===a?t:"{more}"===a?l:a},s))}function Qn(){const a=r(),s=l(),{nodes:v,by:b,setBy:f,view:j,hrefs:x}=function(){const e=t[l()],a=d().data?.resources,s=je(c(a,"nodes",{whileLoading:!0})),r=xe(c(a,"groups",{whileLoading:!1})),o=ye(c(a,"providers",{whileLoading:!0})),[i,u]=n.useState("group"),m=n.useMemo(()=>Te(s.data??[],r.data,i,e),[s.data,r.data,i,e]),p=n.useMemo(()=>new Map((s.data??[]).map(e=>[e.id,Fe(e,o.data?.providers??[],!0)])),[s.data,o.data]);return{nodes:s,by:i,setBy:u,view:m,hrefs:p}}();if(v.error&&!v.data)return e.jsx(u,{error:v.error,onRetry:v.refetch});if(!v.data)return e.jsx(o,{});if(!v.data.length)return e.jsx(i,{children:a("ui.empty")});const y=Ge(j),{measured:k,down:w}=Le(j),N=k.length?[{label:a("nodes.latency.lowest"),icon:e.jsx(p,{}),tint:"c2",value:k[0].name,nodeName:!0,valueRole:"name",caption:m(k[0].latest,a)},{label:a("nodes.latency.highest"),icon:e.jsx(Re,{}),tint:"c4",value:k[k.length-1].name,nodeName:!0,valueRole:"name",caption:m(k[k.length-1].latest,a)},{label:a("ui.unavailable"),value:a("nodes.latency.count",{n:w}),icon:e.jsx(g,{}),tint:"c5",tone:w?"negative":void 0}]:[],P=e=>{const n=e.filter(e=>"unavailable"===e.state),r=e.filter(e=>"unmeasured"===e.state);return[...n.length?[In(a("nodes.latency.unavailableList",{n:n.length,names:"{names}"}),Hn(n,s,a,x))]:[],...r.length?[In(a("nodes.latency.unmeasuredList",{n:r.length,names:"{names}"}),Hn(r,s,a,x))]:[]]};return e.jsxs("div",{className:"rp-chart-page",children:[e.jsx(De,{facts:N}),e.jsx(h,{title:a("ui.nodeLatency"),note:a("nodes.latency.sample",{n:v.data.length}),aside:e.jsx(ke,{label:a("nodes.latLine truncated
@@ -0,0 +1 @@
import{j as r}from"./vendor-react-64fcanlc.js";import"./index-CmbH0woS.js";import{L as e}from"./Tag-fyQjN-Xw.js";function o({label:o,href:s}){return s?r.jsx(e,{href:s,children:o}):o}export{o as O};
@@ -1 +0,0 @@
import{j as r}from"./vendor-react-64fcanlc.js";import"./index-BgFj_VXE.js";import{L as e}from"./Tag-PTwIjtR6.js";function o({label:o,href:s}){return s?r.jsx(e,{href:s,children:o}):o}export{o as O};
@@ -0,0 +1 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{aB as a,ad as s,bl as r,bm as i,bn as o,bp as n,am as l,al as c,aq as d,bg as p,ah as u,j as v,ai as m,C as h,P as f,aF as g,W as x,aG as b,X as j,aI as y,aH as w,a1 as k,cp as _,cq as N,V as H,K as S,D as R,bG as A,T as L,cr as C,M as I,aS as D,cs as F,az as V,aQ as W,aY as E,A as P,Q as q,J as B,ct as M}from"./index-CmbH0woS.js";import{d as G,e as O}from"./files-Dt8K7QfP.js";import{b as T,e as z,c as J,D as K}from"./activity-CiEWAlFW.js";import{e as Q,A as U}from"./ActionGroup-D3mQjUsw.js";import{D as X,t as Y}from"./Table-Cfbaho6J.js";import{D as Z}from"./DaeCode-DEjXqvav.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BcN72K3H.js";import"./Checkbox-f7Je53QZ.js";import"./Virtualizer-itu1Kg0o.js";import"./daeTokens-BVtuNnWZ.js";const $={connections:v("connections",{tab:"list"}),flows:v("flows",{tab:"records"}),routing_trace:v("rules",{tab:"trace"}),dns_query:v("dns",{tab:"query"}),dns_cache:v("dns",{tab:"cache"}),dns_log:v("dns",{tab:"log"}),events:v("events"),probes:v("nodes",{tab:"latency"}),traffic_history:v("activity"),memory_history:v("activity"),runtime_outbounds:v("activity"),logs:v("logs"),providers:v("nodes"),rules:v("rules",{tab:"list"}),config:v("config"),config_validate:v("config",{tab:"source",panel:"diagnostics"}),runtime_settings:v("settings",{card:"runtime"}),geodata:v("settings",{card:"geodata"})},ee={ebpf:"ov.v.ebpf",userspace:"ov.v.userspace",mock:"ov.v.mock",active:"ov.v.active",degraded:"ov.v.degraded",detached:"ov.v.detached",failed:"ov.v.failed",disabled:"ov.v.disabled",full:"ov.v.full",partial:"ov.v.partial",none:"ov.v.none",real:"ov.v.real",loaded:"ov.v.loaded",not_loaded:"ov.v.notLoaded",attached:"ov.v.attached",partially_attached:"ov.v.partiallyAttached",published:"ov.v.published",not_published:"ov.v.notPublished",healthy:"ov.v.healthy",ready:"ov.v.ready",error:"ov.v.error",unknown:"ov.v.unknown",ingress:"ov.v.ingress",egress:"ov.v.egress"};function te(e,t){return ee[e]?t(ee[e]):e}function ae(e,t,a,s,r=!1,i=[]){const o=e.ebpf,n=o?.maps?.conn_state,l=(e,t)=>{const s=function(e,t,a){return"degraded"===e?{title:a("ov.v.degraded"),text:a(t?"ov.degradedHelp.runtime":"ov.degradedHelp.datapath")}:"unknown"===e?{title:a("ov.v.unknown"),text:a("ov.unknownHelp")}:void 0}(t,r,a);return s?{label:a(e),value:te(t,a),help:s}:[a(e),te(t,a)]},c=o?.maps?.state??"unknown",d=o&&function(e,t,a,s){if("unknown"!==e||!t.length)return;const r=new Intl.ListFormat(s,{type:"conjunction"}).format(t);return{title:a("ov.v.notVerified"),text:a("ov.notVerifiedHelp",{hooks:r})}}(o.hooks,i,a,s);return[l("ov.f.kind",e.kind),l("ov.f.state",e.state),..."partial"===e.visibility&&o?[]:[l("ov.f.visibility",e.visibility)],...o?[l("ov.f.backend",o.backend),l("ov.f.programs",o.programs),d?{label:a("ov.f.hooks"),value:a("ov.v.notVerified"),help:d}:l("ov.f.hooks",o.hooks),l("ov.f.routing",o.routing.state),l("ov.f.health",o.health),..."partial"===c&&n&&!n.occupancy_known?[[a("ov.f.maps"),a("ov.mapCapacity",{capacity:m(n.capacity,s)})]]:[l("ov.f.maps",c),[a("ov.f.connState"),n?.occupancy_known&&null!==n.occupancy?a("ui.fraction",{part:m(n.occupancy,s),whole:m(n.capacity,s)}):n?a("ov.occupancyUnknown",{capacity:m(n.capacity,s)}):t]]]:[]]}const se={service:"ov.v.cgroupService",shared:"ov.v.cgroupShared"},re={service:"ov.cgroupHelp.service",shared:"ov.cgroupHelp.shared"};function ie(e,t,s,r=[],i=!1){const o=e.cgroup?.scope,n=e=>{const t=a(e??null);return null===t?"—":m(t,s)},l=[["ov.f.rss",c(e.process?.rss_bytes??null,s)],["ov.f.cgroupCurrent",c(e.cgroup?.current_bytes??null,s)],["ov.f.cgroupLimit",i&&null===e.cgroup?.limit_bytes?t("ov.noLimit"):c(e.cgroup?.limit_bytes??null,s)],["ov.f.cgroupScope",o&&"unknown"!==o?t(se[o]):"—"],["ov.f.oomHigh",n(e.cgroup?.events?.high)],["ov.f.oom",n(e.cgroup?.events?.oom)],["ov.f.oomKill",n(e.cgroup?.events?.oom_kill)],["ov.f.ebpfBytes",c(e.kernel?.ebpf_bytes??null,s)]],d=[...r,..."unknown"===o?["ov.f.cgroupScope"]:[],...e.kernel?[]:["ov.f.ebpfBytes"]];return l.filter(([e])=>!d.includes(e)).map(([e,a])=>"ov.f.cgroupScope"===e&&o&&"unknown"!==o?{label:t(e),value:a,help:{title:t(e),text:t("ui.valuePair",{label:a,value:t(re[o])})}}:[t(e),a])}const oe={status:"overview-status",limits:"overview-limits",datapath:"overview-datapath"};function ne(t=""){const v=h(),H=f(),S=g[H],R=x(),A=R.data?.resources,L=b(j(A,"runtime",{whileLoading:!1})),C=y(j(A,"datapath",{whileLoading:!1})),I=w(j(A,"runtime_memory",{whileLoading:!1})),D=k(),F=_(j(A,"runtime_settings",{whileLoading:!1})),V=N(L.data,R.data,L.refetch),[W,E]=e.useState(!1),P=e.useMemo(()=>({capabilities:R.data,runtime:L.data,version:D.data,memory:I.data,datapath:C.data}),[R.data,L.data,D.data,I.data,C.data]),q=e.useMemo(()=>R.data?J(R.data,D.data,v,H,F.data?.recording):[],[R.data,D.data,v,H,F.data?.recording]),B=q.length>0,M=!!C.data,K=R.loading||L.loading||D.loading||I.loading||C.loading||F.loading,U=e.useRef(null),X=new URLSearchParams(t).get("card");e.useEffect(()=>{U.currLine truncated
@@ -1 +0,0 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{ac as a,bb as r,bc as s,c_ as o,aj as i,j as n,ag as l,av as c,F as d,V as p,aC as u,$ as v,aD as m,a0 as h,aF as f,aE as g,a5 as x,c$ as b,d0 as j,Z as y,P as w,G as k,bs as _,T as N,d1 as S,Q as H,aP as R,au as F,aQ as L,aN as A,aV as C,D as P,X as V,O as D,d2 as E}from"./index-BgFj_VXE.js";import{d as I,e as W}from"./files-Dt8K7QfP.js";import{v as O,x as B,y as q,z as M,D as Q}from"./activity-D06xJ7oH.js";import{b as T,l as z,e as G,f as U}from"./format-s2EANuUb.js";import{e as $,A as J}from"./logs-BxISynQ4.js";import{D as K,t as X}from"./Table-Dprh3Btz.js";import{D as Z}from"./DaeCode-DEjXqvav.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-CkiGmyVC.js";import"./useGridSelectionCheckbox-BxnCShqN.js";import"./Virtualizer-CZl-q5wo.js";import"./daeTokens-BVtuNnWZ.js";const Y={connections:n("connections",{tab:"list"}),flows:n("flows",{tab:"records"}),routing_trace:n("rules",{tab:"trace"}),dns_query:n("dns",{tab:"query"}),dns_cache:n("dns",{tab:"cache"}),dns_log:n("dns",{tab:"log"}),events:n("events"),probes:n("nodes",{tab:"latency"}),traffic_history:n("activity"),memory_history:n("activity"),runtime_outbounds:n("activity"),logs:n("logs"),providers:n("nodes"),rules:n("rules",{tab:"list"}),config:n("config"),config_validate:n("config",{tab:"source",panel:"diagnostics"}),runtime_settings:n("settings",{card:"runtime"}),geodata:n("settings",{card:"geodata"})},ee={ebpf:"ov.v.ebpf",userspace:"ov.v.userspace",mock:"ov.v.mock",active:"ov.v.active",degraded:"ov.v.degraded",detached:"ov.v.detached",failed:"ov.v.failed",disabled:"ov.v.disabled",full:"ov.v.full",partial:"ov.v.partial",none:"ov.v.none",real:"ov.v.real",loaded:"ov.v.loaded",not_loaded:"ov.v.notLoaded",attached:"ov.v.attached",partially_attached:"ov.v.partiallyAttached",published:"ov.v.published",not_published:"ov.v.notPublished",healthy:"ov.v.healthy",ready:"ov.v.ready",error:"ov.v.error",unknown:"ov.v.unknown",ingress:"ov.v.ingress",egress:"ov.v.egress"};function te(e,t){return ee[e]?t(ee[e]):e}function ae(e,t,a,r,s=!1,o=[]){const i=e.ebpf,n=i?.maps?.conn_state,c=(e,t)=>{const r=function(e,t,a){return"degraded"===e?{title:a("ov.v.degraded"),text:a(t?"ov.degradedHelp.runtime":"ov.degradedHelp.datapath")}:"unknown"===e?{title:a("ov.v.unknown"),text:a("ov.unknownHelp")}:void 0}(t,s,a);return r?{label:a(e),value:te(t,a),help:r}:[a(e),te(t,a)]},d=i?.maps?.state??"unknown",p=i&&function(e,t,a,r){if("unknown"!==e||!t.length)return;const s=new Intl.ListFormat(r,{type:"conjunction"}).format(t);return{title:a("ov.v.notVerified"),text:a("ov.notVerifiedHelp",{hooks:s})}}(i.hooks,o,a,r);return[c("ov.f.kind",e.kind),c("ov.f.state",e.state),..."partial"===e.visibility&&i?[]:[c("ov.f.visibility",e.visibility)],...i?[c("ov.f.backend",i.backend),c("ov.f.programs",i.programs),p?{label:a("ov.f.hooks"),value:a("ov.v.notVerified"),help:p}:c("ov.f.hooks",i.hooks),c("ov.f.routing",i.routing.state),c("ov.f.health",i.health),..."partial"===d&&n&&!n.occupancy_known?[[a("ov.f.maps"),a("ov.mapCapacity",{capacity:l(n.capacity,r)})]]:[c("ov.f.maps",d),[a("ov.f.connState"),n?.occupancy_known&&null!==n.occupancy?a("ui.fraction",{part:l(n.occupancy,r),whole:l(n.capacity,r)}):n?a("ov.occupancyUnknown",{capacity:l(n.capacity,r)}):t]]]:[]]}const re={service:"ov.v.cgroupService",shared:"ov.v.cgroupShared"},se={service:"ov.cgroupHelp.service",shared:"ov.cgroupHelp.shared"};function oe(e,t,a,r=[],s=!1){const o=e.cgroup?.scope,i=e=>{const t=c(e??null);return null===t?"—":l(t,a)},n=[["ov.f.rss",T(e.process?.rss_bytes??null,a)],["ov.f.cgroupCurrent",T(e.cgroup?.current_bytes??null,a)],["ov.f.cgroupLimit",s&&null===e.cgroup?.limit_bytes?t("ov.noLimit"):T(e.cgroup?.limit_bytes??null,a)],["ov.f.cgroupScope",o&&"unknown"!==o?t(re[o]):"—"],["ov.f.oomHigh",i(e.cgroup?.events?.high)],["ov.f.oom",i(e.cgroup?.events?.oom)],["ov.f.oomKill",i(e.cgroup?.events?.oom_kill)],["ov.f.ebpfBytes",T(e.kernel?.ebpf_bytes??null,a)]],d=[...r,..."unknown"===o?["ov.f.cgroupScope"]:[],...e.kernel?[]:["ov.f.ebpfBytes"]];return n.filter(([e])=>!d.includes(e)).map(([e,a])=>"ov.f.cgroupScope"===e&&o&&"unknown"!==o?{label:t(e),value:a,help:{title:t(e),text:t("ui.valuePair",{label:a,value:t(se[o])})}}:[t(e),a])}const ie={status:"overview-status",limits:"overview-limits",datapath:"overview-datapath"};function ne(t=""){const n=d(),c=p(),y=u[c],w=v(),k=w.data?.resources,_=m(h(k,"runtime",{whileLoading:!1})),N=f(h(k,"datapath",{whileLoading:!1})),S=g(h(k,"runtime_memory",{whileLoading:!1})),H=x(),R=b(h(k,"runtime_settings",{whileLoading:!1})),F=j(_.data,w.data,_.refetch),[L,A]=e.useState(!1),C=e.useMemo(()=>({capabilities:w.data,runtime:_.data,version:H.data,memory:S.data,datapath:N.data}),[w.data,_.data,H.data,S.data,N.data]),P=e.useMemo(()=>w.data?q(w.data,H.data,n,c,R.data?.recording):[],[w.data,H.data,n,c,R.data?.recording]),V=P.length>0,D=!!N.data,E=w.loading||_.loading||H.loading||S.loading||N.loading||R.loading,Q=e.useRef(null),J=new URLSearchParamsLine truncated
@@ -1 +0,0 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{P as n}from"./ProbeOptionsDialog-DbXtrnP-.js";import{C as i,a as s,b as r,E as l}from"./ConditionRow-CmAHHzfr.js";import{A as a}from"./AddCircle-prR7q573.js";import{bf as o,F as d,du as c,j as u,I as p,N as m,w as h,b4 as g,dv as f,ad as b,am as y,b5 as v,c3 as x,dw as j,bd as w,ag as k,aC as S,V as N,bJ as C,K as M,au as I,bQ as _,U as D,dr as O,dx as E,dy as P,cw as L,bz as z,dz as R,dA as T,dB as $,cZ as q,O as K,aW as F,bP as H,G as A,dC as V,dD as G,cD as J,dE as B,dF as U,aS as Q,bs as W,d9 as Y,ap as Z,q as X,b2 as ee,s as te,u as ne,d as ie,dG as se,b6 as re,dH as le,dI as ae,g as oe,$ as de,a0 as ce,a1 as ue,dJ as pe,cC as me,a_ as he,c5 as ge,r as fe,L as be,c4 as ye,a8 as ve,dK as xe,aL as je,an as we,dL as ke,aR as Se,da as Ne,a4 as Ce,dM as Me,P as Ie,dq as _e,D as De,dN as Oe,Q as Ee,Z as Pe,T as Le,dO as ze,aP as Re,aN as Te}from"./index-BgFj_VXE.js";import{T as $e,a as qe,L as Ke}from"./Tag-PTwIjtR6.js";import{D as Fe}from"./DaeCode-DEjXqvav.js";import{N as He,i as Ae,L as Ve,c as Ge,b as Je,u as Be,g as Ue,m as Qe,S as We,M as Ye}from"./logs-BxISynQ4.js";import{T as Ze}from"./Toolbar-CIBfeuEz.js";import{$ as Xe,S as et}from"./SearchList-Bhc2_bS4.js";import{N as tt,Z as nt,_ as it,$ as st,a0 as rt,a1 as lt,a2 as at,a3 as ot,r as dt,a4 as ct,a5 as ut,a6 as pt,a7 as mt,a8 as ht,a9 as gt,aa as ft,ab as bt,ac as yt,ad as vt,ae as xt,af as jt,ag as wt,ah as kt,ai as St,aj as Nt,ak as Ct}from"./activity-D06xJ7oH.js";import{d as Mt}from"./format-s2EANuUb.js";import{$ as It,a as _t}from"./GridList-BUQihjaB.js";import{$ as Dt,a as Ot,b as Et,c as Pt,d as Lt}from"./Virtualizer-CZl-q5wo.js";import{a as zt,c as Rt}from"./Select-CkiGmyVC.js";import{S as Tt}from"./SearchSelect-CO6FsBaz.js";import{p as $t}from"./probe-CvLYPWKB.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./useGridSelectionCheckbox-BxnCShqN.js";import"./daeTokens-BVtuNnWZ.js";const qt={minItemSize:new Ot(200,200),maxItemSize:new Ot(1/0,1/0),preserveAspectRatio:!1,minSpace:new Ot(18,18),maxSpace:1/0,maxColumns:1/0,dropIndicatorThickness:2,loaderHeight:48};class Kt extends Dt{shouldInvalidateLayoutOptions(e,t){return e.maxColumns!==t.maxColumns||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.preserveAspectRatio!==t.preserveAspectRatio||!(e.minItemSize||qt.minItemSize).equals(t.minItemSize||qt.minItemSize)||!(e.maxItemSize||qt.maxItemSize).equals(t.maxItemSize||qt.maxItemSize)||!(e.minSpace||qt.minSpace).equals(t.minSpace||qt.minSpace)||e.maxHorizontalSpace!==t.maxHorizontalSpace||e.loaderHeight!==t.loaderHeight||e.direction!==t.direction}update(e){let{minItemSize:t=qt.minItemSize,maxItemSize:n=qt.maxItemSize,preserveAspectRatio:i=qt.preserveAspectRatio,minSpace:s=qt.minSpace,maxHorizontalSpace:r=qt.maxSpace,maxColumns:l=qt.maxColumns,dropIndicatorThickness:a=qt.dropIndicatorThickness,loaderHeight:o=qt.loaderHeight,direction:d="ltr"}=e.layoutOptions||{};this.dropIndicatorThickness=a,this.direction=d;let c=this.virtualizer.size.width,u=Math.min(n.width,c),p=Number.isFinite(n.height)?n.height:Math.floor(t.height/t.width*u),m=Math.floor(c/(t.width+s.width)),h=Math.max(1,Math.min(l,m));this.numColumns=h;let g=c-s.width*Math.max(0,h),f=Math.floor(g/h);f=Math.max(t.width,Math.min(u,f));let b=(f-t.width)/Math.max(1,u-t.width),y=t.height+Math.floor((p-t.height)*b);y=Math.max(t.height,Math.min(p,y));let v=Math.min(Math.max(r,s.width),Math.floor((c-h*f)/(h+1)));this.gap=new Ot(v,s.height),this.margin=Math.floor((c-h*f-v*(h+1))/2);let x=this.virtualizer.collection,j=x.size,w=x.getLastKey();for(let D=0;D<2&&null!=w;D++){let e=x.getItem(w);if("skeleton"===e?.type){j++;break}w=x.getKeyBefore(w)}let k=Math.ceil(j/h),S=x[Symbol.iterator](),N=k>0?s.height:0,C=new Map,M=null,I=0;for(let D=0;D<k;D++){let t=0,n=[];for(let s=0;s<h;s++){let r=M||S.next().value;if(!r)break;if("loader"===r.type)continue;"skeleton"===r.type&&(M=r);let l=M?`${M.key}-${I++}`:r.key,a=this.layoutInfos.get(l),o=r;M&&(o=a&&a.content.key===l?a.content:{...M,key:l});let d=v+s*(f+v)+this.margin,c=y,u=!i;a&&u&&(c=a.rect.height,u=e.layoutOptionsChanged||e.sizeChanged||a.estimatedSize||a.content!==o);let p=new Pt(d,N,f,c),m=new Et(r.type,l,p);m.estimatedSize=u,m.allowOverflow=!0,m.content=o,C.set(l,m),n.push(m),t=Math.max(t,m.rect.height)}for(let e of n)e.rect.height=t;N+=t+s.height,M&&D===k-1&&N<this.virtualizer.size.height&&k++}let _=x.getItem(x.getLastKey());if("loader"===_?.type){(I>0||!_.props.isLoading)&&(o=0);let e=new Pt(v,N,c-2*v,o),t=new Et("loader",_.key,e);C.set(_.key,t),N=t.rect.maxY}this.layoutInfos=C,this.contentSize=new Ot(this.virtualizer.size.width,N)}getLayoutInfo(e){return this.layoutInfos.get(e)||null}getContentSize(){return this.contentSize}getVisibleLayoutInfos(e){let t=[];for(let n of this.layoutInfos.values())(n.rect.intersects(e)||this.virtualizer.isPersistedKey(n.key)||"loader"===n.type)&&t.push(n);return t}updateItemSize(e,t){let n=this.layoutInfos.get(e);if(!t||!n)return!1;if(t.height!==n.rect.Line truncated
@@ -0,0 +1 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{P as n}from"./ProbeOptionsDialog-DgWCU4Y0.js";import{C as i,a as s,b as r,E as l}from"./ConditionRow-B2vbKntf.js";import{A as a}from"./AddCircle-JwHCi_at.js";import{bs as o,C as d,cW as c,j as u,I as p,N as m,w as h,bd as g,cX as f,ae as b,a7 as y,be as v,ck as x,cY as j,bq as k,bb as w,ai as S,aF as N,P as M,bZ as C,G as _,az as I,c5 as D,O as E,cT as O,cZ as L,c_ as P,c$ as z,bO as R,d0 as T,d1 as $,d2 as q,d3 as K,J as F,aZ as H,c4 as A,D as V,d4 as G,d5 as J,d6 as U,d7 as B,d8 as Y,aV as W,bG as X,cB as Q,at as Z,q as ee,ba as te,s as ne,u as ie,d as se,d9 as re,bf as le,da as ae,db as oe,g as de,W as ce,X as ue,Y as pe,dc as me,dd as he,b6 as ge,cm as fe,r as be,L as ye,cl as ve,a4 as xe,de as je,aO as ke,a8 as we,df as Se,aU as Ne,cC as Me,a0 as Ce,dg as _e,K as Ie,cS as De,A as Ee,dh as Oe,M as Le,V as Pe,T as ze,di as Re,aS as Te,aQ as $e}from"./index-CmbH0woS.js";import{T as qe,a as Ke,L as Fe}from"./Tag-fyQjN-Xw.js";import{D as He}from"./DaeCode-DEjXqvav.js";import{N as Ae,i as Ve,L as Ge,c as Je,b as Ue,u as Be,g as Ye,m as We,S as Xe,M as Qe}from"./ActionGroup-D3mQjUsw.js";import{T as Ze}from"./Toolbar-B9K5nAyx.js";import{$ as et,S as tt}from"./SearchList-CJ8rQxgu.js";import{m as nt,y as it,z as st,A as rt,E as lt,G as at,H as ot,I as dt,J as ct,r as ut,K as pt,M as mt,N as ht,O as gt,P as ft,Q as bt,R as yt,T as vt,V as xt,X as jt,Y as kt,Z as wt,_ as St,$ as Nt,a0 as Mt,a1 as Ct}from"./activity-CiEWAlFW.js";import{$ as _t,a as It}from"./GridList-ByMoT8kr.js";import{$ as Dt,a as Et,b as Ot,c as Lt,d as Pt}from"./Virtualizer-itu1Kg0o.js";import{$ as zt,a as Rt}from"./Select-BcN72K3H.js";import{S as Tt}from"./SearchSelect-CuaWhoLz.js";import{p as $t}from"./probe-D0sWIaS4.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Checkbox-f7Je53QZ.js";import"./daeTokens-BVtuNnWZ.js";const qt={minItemSize:new Et(200,200),maxItemSize:new Et(1/0,1/0),preserveAspectRatio:!1,minSpace:new Et(18,18),maxSpace:1/0,maxColumns:1/0,dropIndicatorThickness:2,loaderHeight:48};class Kt extends Dt{shouldInvalidateLayoutOptions(e,t){return e.maxColumns!==t.maxColumns||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.preserveAspectRatio!==t.preserveAspectRatio||!(e.minItemSize||qt.minItemSize).equals(t.minItemSize||qt.minItemSize)||!(e.maxItemSize||qt.maxItemSize).equals(t.maxItemSize||qt.maxItemSize)||!(e.minSpace||qt.minSpace).equals(t.minSpace||qt.minSpace)||e.maxHorizontalSpace!==t.maxHorizontalSpace||e.loaderHeight!==t.loaderHeight||e.direction!==t.direction}update(e){let{minItemSize:t=qt.minItemSize,maxItemSize:n=qt.maxItemSize,preserveAspectRatio:i=qt.preserveAspectRatio,minSpace:s=qt.minSpace,maxHorizontalSpace:r=qt.maxSpace,maxColumns:l=qt.maxColumns,dropIndicatorThickness:a=qt.dropIndicatorThickness,loaderHeight:o=qt.loaderHeight,direction:d="ltr"}=e.layoutOptions||{};this.dropIndicatorThickness=a,this.direction=d;let c=this.virtualizer.size.width,u=Math.min(n.width,c),p=Number.isFinite(n.height)?n.height:Math.floor(t.height/t.width*u),m=Math.floor(c/(t.width+s.width)),h=Math.max(1,Math.min(l,m));this.numColumns=h;let g=c-s.width*Math.max(0,h),f=Math.floor(g/h);f=Math.max(t.width,Math.min(u,f));let b=(f-t.width)/Math.max(1,u-t.width),y=t.height+Math.floor((p-t.height)*b);y=Math.max(t.height,Math.min(p,y));let v=Math.min(Math.max(r,s.width),Math.floor((c-h*f)/(h+1)));this.gap=new Et(v,s.height),this.margin=Math.floor((c-h*f-v*(h+1))/2);let x=this.virtualizer.collection,j=x.size,k=x.getLastKey();for(let D=0;D<2&&null!=k;D++){let e=x.getItem(k);if("skeleton"===e?.type){j++;break}k=x.getKeyBefore(k)}let w=Math.ceil(j/h),S=x[Symbol.iterator](),N=w>0?s.height:0,M=new Map,C=null,_=0;for(let D=0;D<w;D++){let t=0,n=[];for(let s=0;s<h;s++){let r=C||S.next().value;if(!r)break;if("loader"===r.type)continue;"skeleton"===r.type&&(C=r);let l=C?`${C.key}-${_++}`:r.key,a=this.layoutInfos.get(l),o=r;C&&(o=a&&a.content.key===l?a.content:{...C,key:l});let d=v+s*(f+v)+this.margin,c=y,u=!i;a&&u&&(c=a.rect.height,u=e.layoutOptionsChanged||e.sizeChanged||a.estimatedSize||a.content!==o);let p=new Lt(d,N,f,c),m=new Ot(r.type,l,p);m.estimatedSize=u,m.allowOverflow=!0,m.content=o,M.set(l,m),n.push(m),t=Math.max(t,m.rect.height)}for(let e of n)e.rect.height=t;N+=t+s.height,C&&D===w-1&&N<this.virtualizer.size.height&&w++}let I=x.getItem(x.getLastKey());if("loader"===I?.type){(_>0||!I.props.isLoading)&&(o=0);let e=new Lt(v,N,c-2*v,o),t=new Ot("loader",I.key,e);M.set(I.key,t),N=t.rect.maxY}this.layoutInfos=M,this.contentSize=new Et(this.virtualizer.size.width,N)}getLayoutInfo(e){return this.layoutInfos.get(e)||null}getContentSize(){return this.contentSize}getVisibleLayoutInfos(e){let t=[];for(let n of this.layoutInfos.values())(n.rect.intersects(e)||this.virtualizer.isPersistedKey(n.key)||"loader"===n.type)&&t.push(n);return t}updateItemSize(e,t){let n=this.layoutInfos.get(e);if(!t||!n)return!1;if(t.height!==n.rect.height){let i=n.copy();return i.rect.height=t.height,i.estimateLine truncated
@@ -1 +0,0 @@
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{F as o,cD as i,dE as a,dr as r,O as c}from"./index-BgFj_VXE.js";import{s as n,t,L as l}from"./logs-BxISynQ4.js";function d({model:d}){const m=o(),h=e.useId(),p=n(),[u,b]=e.useState(t(d.choices,p.choice)?.id??""),[j,x]=e.useState(p.cold),[f,g]=e.useState(p.leaves),v=d.busy||!d.choices.some(e=>e.id===u);return s.jsx(i,{narrow:!0,isOpen:!0,onOpenChange:e=>!e&&d.close(),title:m("probe.title"),description:d.name,footer:()=>s.jsxs(s.Fragment,{children:[s.jsx(c,{onPress:d.close,children:m("ui.cancel")}),s.jsx(c,{accent:!0,type:"submit",form:h,isDisabled:v,children:m("probe.submit")})]}),children:s.jsxs(a,{id:h,onSubmit:e=>{e.preventDefault(),v||d.submit({...p,choice:u,cold:j,leaves:f})},children:[s.jsx(l,{label:m("probe.kind"),value:u,onChange:b,items:d.choices.map(e=>({id:e.id,label:m(e.label)}))}),s.jsx(r,{isSelected:j,onChange:x,children:m("probe.cold")}),d.group&&s.jsx(r,{isSelected:f,onChange:g,children:m("probe.leaves")})]})})}export{d as P};
@@ -0,0 +1 @@
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{C as o,d6 as i,d7 as a,cT as c,J as n}from"./index-CmbH0woS.js";import{s as r,t,L as l}from"./ActionGroup-D3mQjUsw.js";function d({model:d}){const m=o(),p=e.useId(),h=r(),[u,b]=e.useState(t(d.choices,h.choice)?.id??""),[j,x]=e.useState(h.cold),[f,g]=e.useState(h.leaves),v=d.busy||!d.choices.some(e=>e.id===u);return s.jsx(i,{narrow:!0,isOpen:!0,onOpenChange:e=>!e&&d.close(),title:m("probe.title"),description:d.name,footer:()=>s.jsxs(s.Fragment,{children:[s.jsx(n,{onPress:d.close,children:m("ui.cancel")}),s.jsx(n,{accent:!0,type:"submit",form:p,isDisabled:v,children:m("probe.submit")})]}),children:s.jsxs(a,{id:p,onSubmit:e=>{e.preventDefault(),v||d.submit({...h,choice:u,cold:j,leaves:f})},children:[s.jsx(l,{label:m("probe.kind"),value:u,onChange:b,items:d.choices.map(e=>({id:e.id,label:m(e.label)}))}),s.jsx(c,{isSelected:j,onChange:x,children:m("probe.cold")}),d.group&&s.jsx(c,{isSelected:f,onChange:g,children:m("probe.leaves")})]})})}export{d as P};
@@ -0,0 +1 @@
import{r as e,$ as s,j as n}from"./vendor-react-64fcanlc.js";import{dj as i,dk as r,dl as l,dm as a,dn as t,dp as o,dq as d,bs as u,dr as c,ds as p,dt as m,du as f,dv as h,dw as b,dx as g,dy as v,dz as x,dA as y,dB as k,dC as w,dD as j,dE as _,dF as N,dG as S,dH as C,dI as M,dJ as D,dK as P,dL as q,dM as R,dN as H,dO as I,dP as E,aY as L,dQ as O,dR as A,bZ as F,dS as T,s as W,u as V,cE as $,a8 as Q,as as U,aE as B,ae as G,i as K,o as J,j as Z,X as Y,dT as z,am as X,aF as ee,dU as se,dV as ne,dW as ie,dX as re,dY as le,k as ae,ai as te,w as oe,dZ as de,d_ as ue,ba as ce,d$ as pe,co as me,cC as fe,C as he,P as be,at as ge,W as ve,a3 as xe,a4 as ye,cK as ke,ao as we,e0 as je,Z as _e,dd as Ne,e1 as Se,e2 as Ce,e3 as Me,e4 as De,e5 as Pe,Y as qe,cp as Re,e6 as He,e7 as Ie,e8 as Ee,e9 as Le,r as Oe,ea as Ae,eb as Fe,a1 as Te,df as We,bT as Ve,av as $e,M as Qe,c4 as Ue,d4 as Be,cT as Ge,J as Ke,ec as Je,ed as Ze,d5 as Ye,aQ as ze,V as Xe,d7 as es,c5 as ss,ee as ns,K as is,dh as rs,aS as ls,ef as as,D as ts,aZ as os,cS as ds,T as us,cD as cs,cG as ps,A as ms,cU as fs,bG as hs}from"./index-CmbH0woS.js";import{u as bs,r as gs,a as vs,c as xs}from"./flows-BMReQznn.js";import{u as ys,c as ks,o as ws,b as js,q as _s,e as Ns,L as Ss,S as Cs,R as Ms}from"./ActionGroup-D3mQjUsw.js";import{a2 as Ds,a3 as Ps,a4 as qs,h as Rs,a5 as Hs,a6 as Is,a7 as Es,a8 as Ls,a9 as Os,aa as As,ab as Fs,ac as Ts,w as Ws,ad as Vs,s as $s}from"./activity-CiEWAlFW.js";import{c as Qs,C as Us}from"./Coverage-P-BXHg4t.js";import{w as Bs}from"./labels-D8xxfRTQ.js";import{r as Gs}from"./nav-B4reXXdB.js";import{d as Ks,b as Js,c as Zs,e as Ys,u as zs,R as Xs}from"./useQuickRule-C0zoMd-O.js";import{r as en}from"./recorder-BHyqDNp5.js";import{a as sn,p as nn}from"./probe-D0sWIaS4.js";import{T as rn}from"./Tabs-BzeNgTje.js";import{T as ln}from"./Toolbar-B9K5nAyx.js";import{D as an}from"./Table-Cfbaho6J.js";import{D as tn}from"./DaeCode-DEjXqvav.js";import{C as on,a as dn,E as un}from"./ConditionRow-B2vbKntf.js";/* empty css */import{S as cn}from"./SearchSelect-CuaWhoLz.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BcN72K3H.js";import"./AddCircle-JwHCi_at.js";import"./Checkbox-f7Je53QZ.js";import"./Virtualizer-itu1Kg0o.js";import"./daeTokens-BVtuNnWZ.js";import"./SearchList-CJ8rQxgu.js";const pn=new WeakMap;let mn=Math.round(1e10*Math.random()),fn=0;const hn=e.createContext(null),bn=e.createContext(null),gn=e.createContext(null),vn=e.forwardRef(function(n,i){[n,i]=y(n,i,hn);let{validationBehavior:r}=k(w)||{},t=n.validationBehavior??r??"native",o=function(s){let n=e.useMemo(()=>s.name||`radio-group-${mn}-${++fn}`,[s.name]),[i,r]=v(s.value,s.defaultValue??null,s.onChange),[l]=e.useState(i),[a,t]=e.useState(null),o=x({...s,value:i}),d=o.displayValidation.isInvalid;return{...o,name:n,selectedValue:i,defaultSelectedValue:void 0!==s.value?l:s.defaultValue??null,setSelectedValue:e=>{s.isReadOnly||s.isDisabled||(r(e),o.commitValidation())},lastFocusedValue:a,setLastFocusedValue:t,isDisabled:s.isDisabled||!1,isReadOnly:s.isReadOnly||!1,isRequired:s.isRequired||!1,validationState:s.validationState||(d?"invalid":null),isInvalid:d}}({...n,validationBehavior:t}),[d,q]=j(!n["aria-label"]&&!n["aria-labelledby"]),{radioGroupProps:R,labelProps:H,descriptionProps:I,errorMessageProps:E,...L}=function(e,s){let{name:n,form:i,isReadOnly:r,isRequired:t,isDisabled:o,orientation:d="vertical",validationBehavior:v="aria"}=e,{direction:x}=u(),{isInvalid:y,validationErrors:k,validationDetails:w}=s.displayValidation,{labelProps:j,fieldProps:_,descriptionProps:N,errorMessageProps:S}=c({...e,labelElementType:"span",isInvalid:s.isInvalid,errorMessage:e.errorMessage||k}),C=a(e,{labelable:!0}),{focusWithinProps:M}=p({onBlurWithin(n){e.onBlur?.(n),s.selectedValue||s.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});function D(e,n){let i,r=h(n.currentTarget,{from:g(n),accept:e=>e instanceof b(e).HTMLInputElement&&"radio"===e.type});return"next"===e?(i=r.nextNode(),i||(r.currentNode=n.currentTarget,i=r.firstChild())):(i=r.previousNode(),i||(r.currentNode=n.currentTarget,i=r.lastChild())),!!i&&(i.focus(),s.setSelectedValue(i.value),!0)}let{keyboardProps:P}=m({shortcuts:{ArrowRight:e=>D("rtl"===x&&"vertical"!==d?"prev":"next",e),ArrowLeft:e=>D("rtl"===x&&"vertical"!==d?"next":"prev",e),ArrowDown:e=>D("next",e),ArrowUp:e=>D("prev",e)},allowRepeats:!0}),q=f(n);return pn.set(s,{name:q,form:i,descriptionId:N.id,errorMessageId:S.id,validationBehavior:v}),{radioGroupProps:l(C,{role:"radiogroup",...P,"aria-invalid":s.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":r||void 0,"aria-required":t||void 0,"aria-disabled":o||void 0,"aria-orientation":d,..._,...M}),labelProps:j,descriptionProps:N,errorMessageProps:S,isInvalid:y,validationErrors:k,validationDetails:w}}({...n,label:q,validationBehavior:t},o),O=_({...n,values:{orientation:n.orientation||"vertical",isDisabled:o.isDisabled,isReadOnly:o.isReadOnly,isReqLine truncated
@@ -1 +0,0 @@
import{r as e,$ as s,j as n}from"./vendor-react-64fcanlc.js";import{ep as i,eq as r,cu as l,dQ as a,er as t,es as o,et as d,bf as u,eu as c,ev as p,ew as m,ct as f,dX as h,ex as b,cc as g,ey as v,ez as x,d$ as y,eA as k,eB as w,eC as j,e8 as _,e9 as N,ea as S,eD as C,ec as M,eE as P,el as D,e4 as q,eF as R,eG as H,cB as I,e6 as E,aV as L,eH as O,eI as A,bJ as F,eJ as T,s as W,u as V,dc as $,an as Q,aB as B,ad as U,i as G,o as J,j as K,a0 as Z,eK as z,aC as X,eL as Y,eM as ee,eN as se,cR as ne,eO as ie,k as re,ag as le,w as ae,eP as te,eQ as oe,b2 as de,eR as ue,c7 as ce,da as pe,F as me,V as fe,ap as he,$ as be,a7 as ge,a8 as ve,di as xe,al as ye,eS as ke,a2 as we,cC as je,eT as _e,eU as Ne,eV as Se,eW as Ce,eX as Me,a1 as Pe,c$ as De,eY as qe,eZ as Re,e_ as He,e$ as Ie,r as Ee,f0 as Le,f1 as Oe,a5 as Ae,dL as Fe,bD as Te,ar as We,Q as Ve,bP as $e,dC as Qe,dr as Be,O as Ue,cE as Ge,aN as Je,Z as Ke,dE as Ze,bQ as ze,f2 as Xe,P as Ye,dN as es,aP as ss,f3 as ns,G as is,aW as rs,dq as ls,T as as,db as ts,de as os,D as ds,ds as us,bs as cs}from"./index-BgFj_VXE.js";import{u as ps,r as ms,b as fs,a as hs}from"./flows-xKlsDqlH.js";import{u as bs,c as gs,o as vs,b as xs,q as ys,e as ks,L as ws,S as js,R as _s}from"./logs-BxISynQ4.js";import{q as Ns,al as Ss,am as Cs,G as Ms,an as Ps,ao as Ds,ap as qs,aq as Rs,ar as Hs,as as Is,at as Es,au as Ls,w as Os,av as As,Q as Fs}from"./activity-D06xJ7oH.js";import{c as Ts,l as Ws}from"./format-s2EANuUb.js";import{c as Vs,C as $s}from"./Coverage-VYQXivNr.js";import{w as Qs}from"./labels-DPpd4zRF.js";import{r as Bs}from"./nav-CsTMInze.js";import{d as Us,b as Gs,c as Js,e as Ks,u as Zs,R as zs}from"./useQuickRule-fWQicp9K.js";import{r as Xs}from"./recorder-BHyqDNp5.js";import{a as Ys,p as en}from"./probe-CvLYPWKB.js";import{T as sn}from"./Tabs-CD2lZase.js";import{T as nn}from"./Toolbar-CIBfeuEz.js";import{D as rn}from"./Table-Dprh3Btz.js";import{D as ln}from"./DaeCode-DEjXqvav.js";import{C as an,a as tn,E as on}from"./ConditionRow-CmAHHzfr.js";import{S as dn}from"./SearchSelect-CO6FsBaz.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-CkiGmyVC.js";import"./useGridSelectionCheckbox-BxnCShqN.js";import"./Virtualizer-CZl-q5wo.js";import"./daeTokens-BVtuNnWZ.js";import"./SearchList-Bhc2_bS4.js";const un=new WeakMap;let cn=Math.round(1e10*Math.random()),pn=0;const mn=e.createContext(null),fn=e.createContext(null),hn=e.createContext(null),bn=e.forwardRef(function(n,i){[n,i]=y(n,i,mn);let{validationBehavior:r}=k(w)||{},t=n.validationBehavior??r??"native",o=function(s){let n=e.useMemo(()=>s.name||`radio-group-${cn}-${++pn}`,[s.name]),[i,r]=v(s.value,s.defaultValue??null,s.onChange),[l]=e.useState(i),[a,t]=e.useState(null),o=x({...s,value:i}),d=o.displayValidation.isInvalid;return{...o,name:n,selectedValue:i,defaultSelectedValue:void 0!==s.value?l:s.defaultValue??null,setSelectedValue:e=>{s.isReadOnly||s.isDisabled||(r(e),o.commitValidation())},lastFocusedValue:a,setLastFocusedValue:t,isDisabled:s.isDisabled||!1,isReadOnly:s.isReadOnly||!1,isRequired:s.isRequired||!1,validationState:s.validationState||(d?"invalid":null),isInvalid:d}}({...n,validationBehavior:t}),[d,q]=j(!n["aria-label"]&&!n["aria-labelledby"]),{radioGroupProps:R,labelProps:H,descriptionProps:I,errorMessageProps:E,...L}=function(e,s){let{name:n,form:i,isReadOnly:r,isRequired:t,isDisabled:o,orientation:d="vertical",validationBehavior:v="aria"}=e,{direction:x}=u(),{isInvalid:y,validationErrors:k,validationDetails:w}=s.displayValidation,{labelProps:j,fieldProps:_,descriptionProps:N,errorMessageProps:S}=c({...e,labelElementType:"span",isInvalid:s.isInvalid,errorMessage:e.errorMessage||k}),C=a(e,{labelable:!0}),{focusWithinProps:M}=p({onBlurWithin(n){e.onBlur?.(n),s.selectedValue||s.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});function P(e,n){let i,r=h(n.currentTarget,{from:g(n),accept:e=>e instanceof b(e).HTMLInputElement&&"radio"===e.type});return"next"===e?(i=r.nextNode(),i||(r.currentNode=n.currentTarget,i=r.firstChild())):(i=r.previousNode(),i||(r.currentNode=n.currentTarget,i=r.lastChild())),!!i&&(i.focus(),s.setSelectedValue(i.value),!0)}let{keyboardProps:D}=m({shortcuts:{ArrowRight:e=>P("rtl"===x&&"vertical"!==d?"prev":"next",e),ArrowLeft:e=>P("rtl"===x&&"vertical"!==d?"next":"prev",e),ArrowDown:e=>P("next",e),ArrowUp:e=>P("prev",e)},allowRepeats:!0}),q=f(n);return un.set(s,{name:q,form:i,descriptionId:N.id,errorMessageId:S.id,validationBehavior:v}),{radioGroupProps:l(C,{role:"radiogroup",...D,"aria-invalid":s.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":r||void 0,"aria-required":t||void 0,"aria-disabled":o||void 0,"aria-orientation":d,..._,...M}),labelProps:j,descriptionProps:N,errorMessageProps:S,isInvalid:y,validationErrors:k,validationDetails:w}}({...n,label:q,validationBehavior:t},o),O=_({...n,values:{orientation:n.orientation||"vertical",isDisabled:o.isDisabled,isReadOnly:o.isReadOnly,isRequired:o.isRequired,isInvalid:o.isInvLine truncated
@@ -0,0 +1 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{X as s,gM as a,w as i,gN as r,gO as n,aa as o,cw as l,aE as d,ae as u,gP as c,ai as p,aF as m,dX as f,gQ as g,gR as h,gS as y,fh as b,C as v,P as j,W as K,Y as x,a1 as w,gT as M,d6 as $,gf as k,c5 as S,J as q,aZ as C,K as L,A as _,az as N,fy as R,d3 as I}from"./index-CmbH0woS.js";import{$ as O,e as P,a as A}from"./Select-BcN72K3H.js";import{d as E,c as G,u as Q,b as T,e as W}from"./ActionGroup-D3mQjUsw.js";import{u as z,c as F}from"./flows-BMReQznn.js";import{c as V,n as X,o as Y,p as H}from"./nav-M7R_HvZ0.js";import{d as J}from"./nav-C4ZPdNvM.js";import{r as Z,a as B}from"./nav-B4reXXdB.js";import{f as D}from"./nav-Y_78QUku.js";import{b as U,r as ee,g as te,d as se}from"./nav--g10gPaM.js";import{c as ae}from"./nav-BO8viH9G.js";import{n as ie,a as re}from"./nav-ClMHrgx_.js";import{a2 as ne}from"./activity-CiEWAlFW.js";import"./_commonjsHelpers-CXUWDbkB.js";const oe=e=>s(e,"groups",{whileLoading:!1})&&!0===e?.config.writable?[{id:"policies:new",titleKey:"group.newGroup",parentKey:"nav.policies",route:"policies",params:{new:"1"},aliases:["group editor"]}]:[],le=e=>e.trim().toLowerCase().replace(/\s+/g," "),de=(e,t,s,a,i,r="",n)=>({hit:{id:t,label:s,description:a,route:i,query:r,...n&&{open:n}},keys:[...new Set(e.flatMap(e=>null==e?[]:[le(e)]))]}),ue=(e,t,s,a,i)=>{const{route:r,query:n}=b(i);return de(e,t,s,a,r,n)};function ce(e,t,s){const a=[{title:e(t),parent:s&&e(s)}];for(const i of g)h(i.id)&&a.push({title:y(i.id,t),parent:s&&y(i.id,s)});return a.flatMap(({title:e,parent:t})=>t?[e,t+" "+e]:[e])}function pe(e,t){let s=3;for(const a of e){if(a===t)return 0;a.startsWith(t)?s=1:3===s&&a.includes(t)&&(s=2)}return s}function me(t,h){const y=v(),b=j(),[$,k]=e.useState(""),S=K(),q=S.data?.resources,C=E(void 0,s(q,"connections",{whileLoading:!1})),L=G(s(q,"nodes",{whileLoading:!1})),_=Q(s(q,"groups",{whileLoading:!1})),N=T(s(q,"providers",{whileLoading:!1})),R=x(s(q,"config",{whileLoading:!1})),I=z(s(q,"rules",{whileLoading:!1})),O=F(s(q,"dns_rules",{whileLoading:!1})),P=[S,C,L,_,N,R,I,O],A=W(w().data),me=!!A.globalSettings,[fe,ge]=e.useState(0);e.useEffect(()=>{let e=!0;for(const t of g)M(t.id).then(()=>e&&ge(e=>e+1),()=>{});return()=>{e=!1}},[]);const he=e.useMemo(()=>function(e,t,s){const r=t=>n(t,e),o=e?.resources,l=[...ae().map(e=>({path:"connections",params:{tab:e.id},titleKey:e.titleKey})),...ie(o).map(e=>({path:"nodes",params:{tab:e.id},titleKey:e.titleKey})),...D(o).map(e=>({path:"flows",params:{tab:e.id},titleKey:e.titleKey})),...Z(o).map(e=>({path:"rules",params:{tab:e.id},titleKey:e.titleKey})),...J(o).map(e=>({path:"dns",params:{tab:e.id},titleKey:e.titleKey})),...V(s,e).map(e=>({path:"config",params:{tab:e.id},titleKey:e.titleKey,aliases:e.aliases})),...U(o).map(e=>({path:"settings",params:{card:e.id},titleKey:e.titleKey,aliases:e.aliases}))],d=e=>a.find(t=>t.path===e).nav.titleKey;return[...a.filter(e=>e.nav&&r(e.path)).map(e=>de(ce(t,e.nav.titleKey),`page:${e.path}?`,t(e.nav.titleKey),void 0,e.path)),...l.filter(e=>r(e.path)).map(e=>{const s=i("",e.params);return de([...ce(t,e.titleKey,d(e.path)),...e.aliases??[]],`page:${e.path}?${s}`,t(e.titleKey),t(d(e.path)),e.path,s)})]}(S.data,y,me),[S.data,y,me,fe]),ye=e.useMemo(()=>function(e,t){const s=e?.resources,a=new Map(U(s).map(e=>[e.id,e])),r=new Set(s?.runtime_settings.available?s.runtime_settings.fields??[]:[]),n=Object.entries(ee).filter(([e])=>r.has(e)).map(([e,t])=>({id:e,labelKey:t,card:"runtime",aliases:void 0})),o=te(s);return[...se.filter(e=>!e.sources||o),...n].flatMap(e=>{const s=a.get(e.card);return s?[de([...ce(t,e.labelKey),...e.aliases??[]],`setting:${e.id}`,t(e.labelKey),t(s.titleKey),"settings",i("",{card:e.card,field:e.id}))]:[]})}(S.data,y),[S.data,y,fe]),be=e.useMemo(()=>function(e,t,a){return e&&s(t?.resources,"config",{whileLoading:!1})?e.fields.map(e=>de([...ce(a,e.label),e.key],`global:${e.key}`,a(e.label),a(X[e.group]),"config",i("",{tab:"global",field:e.key}))):[]}(A.globalSettings,S.data,y),[A.globalSettings,S.data,y,fe]),ve=e.useMemo(()=>function(e,t){const s=e?.resources;return[...B(s),...oe(s),...re(s),...Y(e),...r].filter(t=>null===t.route||n(t.route,e)).map(e=>de([...ce(t,e.titleKey,e.parentKey),...(e.aliasKeys??[]).flatMap(e=>ce(t,e)),...e.aliases??[]],`feature:${e.id}`,t(e.titleKey),e.parentKey&&t(e.parentKey),e.route,i("",e.params??{}),e.open))}(S.data,y),[S.data,y,fe]),je=e.useMemo(()=>function(e,t,s){return H(e,t,s).map(e=>ue([e.kind,e.summary],`module:${e.id}`,e.kind,e.range,e.href))}(R.data,A,y),[R.data,A,y]),Ke=e.useMemo(()=>function(e,t){return o(e).map(e=>de([e.domain,e.dst,e.src],`connection:${e.id}`,e.domain||e.dst||e.src||e.id,l(e,t),"connections",i("",{id:e.id})))}(C.data,y),[C.data,y]),xe=e.useMemo(()=>function(e,t,s){const a=t?.providers??[];return(e??[]).map(e=>ue([e.name],`node:${e.id}`,e.name,d(s,e.group_ids)||void 0,ne(e,a,!0)))}(L.data,N.data,b),[L.data,N.data,b]),we=e.useMemo(()=>function(e){return(e??[]).map(e=>de([e.name],`group:${e.iLine truncated
@@ -1 +0,0 @@
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{a0 as t,cM as a,w as i,cN as r,cO as n,a9 as o,cP as l,aB as d,ad as c,cQ as u,ag as p,aC as m,cR as f,cS as h,cT as g,cU as y,cV as b,F as v,V as j,$ as K,a1 as x,a5 as w,cW as M,cD as $,cX as k,bQ as q,O as L,aW as S,P as C,D as _,au as N,cY as I,cZ as O}from"./index-BgFj_VXE.js";import{a as R,b as P,c as Q}from"./Select-CkiGmyVC.js";import{d as V,c as G,u as T,b as W,e as D}from"./logs-BxISynQ4.js";import{u as E,a as F}from"./flows-xKlsDqlH.js";import{c as H,s as z,a as A,b as B}from"./nav-BidFSCY-.js";import{d as J}from"./nav-KYKfR_0p.js";import{r as U,a as X}from"./nav-CsTMInze.js";import{f as Y}from"./nav-D44ro1l_.js";import{s as Z,r as ee,g as se,a as te}from"./nav-Ct52fcy8.js";import{c as ae}from"./nav-Wiib71Wo.js";import{n as ie,a as re}from"./nav-4gpXURa5.js";import{q as ne}from"./activity-D06xJ7oH.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./format-s2EANuUb.js";const oe=e=>t(e,"groups",{whileLoading:!1})&&!0===e?.config.writable?[{id:"policies:new",titleKey:"group.newGroup",parentKey:"nav.policies",route:"policies",params:{new:"1"},aliases:["group editor"]}]:[],le=e=>e.trim().toLowerCase().replace(/\s+/g," "),de=(e,s,t,a,i,r="",n)=>({hit:{id:s,label:t,description:a,route:i,query:r,...n&&{open:n}},keys:[...new Set(e.flatMap(e=>null==e?[]:[le(e)]))]}),ce=(e,s,t,a,i)=>{const{route:r,query:n}=b(i);return de(e,s,t,a,r,n)};function ue(e,s,t){const a=[{title:e(s),parent:t&&e(t)}];for(const i of h)g(i.id)&&a.push({title:y(i.id,s),parent:t&&y(i.id,t)});return a.flatMap(({title:e,parent:s})=>s?[e,s+" "+e]:[e])}function pe(e,s){let t=3;for(const a of e){if(a===s)return 0;a.startsWith(s)?t=1:3===t&&a.includes(s)&&(t=2)}return t}function me(s,g){const y=v(),b=j(),[$,k]=e.useState(""),q=K(),L=q.data?.resources,S=V(void 0,t(L,"connections",{whileLoading:!1})),C=G(t(L,"nodes",{whileLoading:!1})),_=T(t(L,"groups",{whileLoading:!1})),N=W(t(L,"providers",{whileLoading:!1})),I=x(t(L,"config",{whileLoading:!1})),O=E(t(L,"rules",{whileLoading:!1})),R=F(t(L,"dns_rules",{whileLoading:!1})),P=[q,S,C,_,N,I,O,R],Q=D(w().data),me=!!Q.globalSettings,[fe,he]=e.useState(0);e.useEffect(()=>{let e=!0;for(const s of h)M(s.id).then(()=>e&&he(e=>e+1),()=>{});return()=>{e=!1}},[]);const ge=e.useMemo(()=>function(e,s,t){const r=s=>n(s,e),o=e?.resources,l=[...ae().map(e=>({path:"connections",params:{tab:e.id},titleKey:e.titleKey})),...ie(o).map(e=>({path:"nodes",params:{tab:e.id},titleKey:e.titleKey})),...Y(o).map(e=>({path:"flows",params:{tab:e.id},titleKey:e.titleKey})),...U(o).map(e=>({path:"rules",params:{tab:e.id},titleKey:e.titleKey})),...J(o).map(e=>({path:"dns",params:{tab:e.id},titleKey:e.titleKey})),...H(t,e).map(e=>({path:"config",params:{tab:e.id},titleKey:e.titleKey,aliases:e.aliases})),...Z(o).map(e=>({path:"settings",params:{card:e.id},titleKey:e.titleKey,aliases:e.aliases}))],d=e=>a.find(s=>s.path===e).nav.titleKey;return[...a.filter(e=>e.nav&&r(e.path)).map(e=>de(ue(s,e.nav.titleKey),`page:${e.path}?`,s(e.nav.titleKey),void 0,e.path)),...l.filter(e=>r(e.path)).map(e=>{const t=i("",e.params);return de([...ue(s,e.titleKey,d(e.path)),...e.aliases??[]],`page:${e.path}?${t}`,s(e.titleKey),s(d(e.path)),e.path,t)})]}(q.data,y,me),[q.data,y,me,fe]),ye=e.useMemo(()=>function(e,s){const t=e?.resources,a=new Map(Z(t).map(e=>[e.id,e])),r=new Set(t?.runtime_settings.available?t.runtime_settings.fields??[]:[]),n=Object.entries(ee).filter(([e])=>r.has(e)).map(([e,s])=>({id:e,labelKey:s,card:"runtime",aliases:void 0})),o=se(t);return[...te.filter(e=>!e.sources||o),...n].flatMap(e=>{const t=a.get(e.card);return t?[de([...ue(s,e.labelKey),...e.aliases??[]],`setting:${e.id}`,s(e.labelKey),s(t.titleKey),"settings",i("",{card:e.card,field:e.id}))]:[]})}(q.data,y),[q.data,y,fe]),be=e.useMemo(()=>function(e,s,a){return e&&t(s?.resources,"config",{whileLoading:!1})?e.fields.map(e=>de([...ue(a,e.label),e.key],`global:${e.key}`,a(e.label),a(z[e.group]),"config",i("",{tab:"global",field:e.key}))):[]}(Q.globalSettings,q.data,y),[Q.globalSettings,q.data,y,fe]),ve=e.useMemo(()=>function(e,s){const t=e?.resources;return[...X(t),...oe(t),...re(t),...A(e),...r].filter(s=>null===s.route||n(s.route,e)).map(e=>de([...ue(s,e.titleKey,e.parentKey),...(e.aliasKeys??[]).flatMap(e=>ue(s,e)),...e.aliases??[]],`feature:${e.id}`,s(e.titleKey),e.parentKey&&s(e.parentKey),e.route,i("",e.params??{}),e.open))}(q.data,y),[q.data,y,fe]),je=e.useMemo(()=>function(e,s,t){return B(e,s,t).map(e=>ce([e.kind,e.summary],`module:${e.id}`,e.kind,e.range,e.href))}(I.data,Q,y),[I.data,Q,y]),Ke=e.useMemo(()=>function(e,s){return o(e).map(e=>de([e.domain,e.dst,e.src],`connection:${e.id}`,e.domain||e.dst||e.src||e.id,l(e,s),"connections",i("",{id:e.id})))}(S.data,y),[S.data,y]),xe=e.useMemo(()=>function(e,s,t){const a=s?.providers??[];return(e??[]).map(e=>ce([e.name],`node:${e.id}`,e.name,d(t,e.group_ids)||void 0,ne(e,a,!0)))}(C.data,N.data,b),[C.data,N.data,b]),we=e.useMemo(()=>function(e){return(e??[]).map(e=>dLine truncated
@@ -1 +0,0 @@
import{r as e,j as a}from"./vendor-react-64fcanlc.js";import{ei as t,W as r,cX as s,bQ as l}from"./index-BgFj_VXE.js";import{d as n,e as i}from"./Virtualizer-CZl-q5wo.js";function o(a){let r=t({usage:"search",...a}),s=e.useCallback((e,a)=>0===a.length||(e=e.normalize("NFC"),a=a.normalize("NFC"),0===r.compare(e.slice(0,a.length),a)),[r]),l=e.useCallback((e,a)=>0===a.length||(e=e.normalize("NFC"),a=a.normalize("NFC"),0===r.compare(e.slice(-a.length),a)),[r]),n=e.useCallback((e,a)=>{if(0===a.length)return!0;e=e.normalize("NFC");let t=0,s=(a=a.normalize("NFC")).length;for(;t+s<=e.length;t++){let l=e.slice(t,t+s);if(0===r.compare(a,l))return!0}return!1},[r]);return e.useMemo(()=>({startsWith:s,endsWith:l,contains:n}),[s,l,n])}function c({label:e,children:t}){const{contains:c}=o({sensitivity:"base"});return a.jsx(r,{value:null,children:a.jsxs(s,{filter:c,children:[a.jsx(l,{search:!0,label:e,autoFocus:!0,className:"rp-menu-search"}),a.jsx(n,{layout:i,layoutOptions:{estimatedRowHeight:32,estimatedHeadingHeight:26},children:t})]})})}const u=Object.freeze(Object.defineProperty({__proto__:null,SearchList:c},Symbol.toStringTag,{value:"Module"}));export{o as $,c as S,u as a};
@@ -0,0 +1 @@
import{r as e,j as a}from"./vendor-react-64fcanlc.js";import{fE as t,ge as r,gf as s,c5 as l}from"./index-CmbH0woS.js";import{d as n,e as i}from"./Virtualizer-itu1Kg0o.js";function o(a){let r=t({usage:"search",...a}),s=e.useCallback((e,a)=>0===a.length||(e=e.normalize("NFC"),a=a.normalize("NFC"),0===r.compare(e.slice(0,a.length),a)),[r]),l=e.useCallback((e,a)=>0===a.length||(e=e.normalize("NFC"),a=a.normalize("NFC"),0===r.compare(e.slice(-a.length),a)),[r]),n=e.useCallback((e,a)=>{if(0===a.length)return!0;e=e.normalize("NFC");let t=0,s=(a=a.normalize("NFC")).length;for(;t+s<=e.length;t++){let l=e.slice(t,t+s);if(0===r.compare(a,l))return!0}return!1},[r]);return e.useMemo(()=>({startsWith:s,endsWith:l,contains:n}),[s,l,n])}function c({label:e,children:t}){const{contains:c}=o({sensitivity:"base"});return a.jsx(r,{value:null,children:a.jsxs(s,{filter:c,children:[a.jsx(l,{search:!0,label:e,autoFocus:!0,className:"rp-menu-search"}),a.jsx(n,{layout:i,layoutOptions:{estimatedRowHeight:32,estimatedHeadingHeight:26},children:t})]})})}const u=Object.freeze(Object.defineProperty({__proto__:null,SearchList:c},Symbol.toStringTag,{value:"Module"}));export{o as $,c as S,u as a};
@@ -1 +0,0 @@
import{r as s,j as e}from"./vendor-react-64fcanlc.js";import{dx as a,eH as l,cw as r,aM as i,bz as c,eI as t,dz as d,cY as n,bJ as o,dB as p,cZ as m}from"./index-BgFj_VXE.js";import{k as j,l as x,a as h,b,c as f}from"./Select-CkiGmyVC.js";import{S as u}from"./SearchList-Bhc2_bS4.js";const N=s=>e.jsxs(f,{id:s.id,className:"rp-item",textValue:s.keywords?`${s.label} ${s.keywords}`:s.label,children:[e.jsx(p,{}),e.jsx(m,{i:s,children:s.desc&&e.jsx(t,{slot:"description",className:o("desc",s.tone),children:s.desc})})]},s.id);function v({label:p,searchLabel:m,sections:f,value:v,onChange:S,isDisabled:g,description:k,side:y,size:z}){const w=s.useRef(null),C=s.useRef(null),R=a(z),D=f.flatMap(s=>s.items).find(s=>s.id===v);return e.jsxs(j,{className:o("rp-picker",y?"rp-cluster":"rp-field"),selectedKey:v,onSelectionChange:s=>{null!=s&&S(String(s))},isDisabled:g,children:[e.jsxs("div",{ref:w,className:y?"rp-cluster":"rp-field",children:[e.jsx(l,{className:y?"rp-label":"lbl",children:p}),e.jsxs(r,{ref:C,className:"rp-selectbtn","data-size":R,children:[e.jsx(x,{children:()=>D?e.jsx(i,{i:D}):v}),e.jsx(c,{})]})]}),k&&e.jsx(t,{slot:"description",className:"rp-label",children:k}),e.jsx(d,{className:"rp-popover rp-search-popover",placement:"bottom start",triggerRef:y?C:w,children:e.jsx(u,{label:m,children:e.jsx(h,{className:"rp-menu-scroll rp-overlay-scroll",children:f.map(s=>s.title?e.jsxs(b,{id:s.id,children:[e.jsx(n,{className:"rp-sec-h",children:s.title}),s.items.map(N)]},s.id):s.items.map(N))})})})]})}export{v as S};
@@ -0,0 +1 @@
import{r as s,j as e}from"./vendor-react-64fcanlc.js";import{cZ as a,dQ as l,c$ as r,aP as i,bO as c,dR as d,d0 as t,fy as n,bZ as o,d2 as p,d3 as m}from"./index-CmbH0woS.js";import{c as j,d as h,$ as x,e as f,a as b}from"./Select-BcN72K3H.js";import{S as u}from"./SearchList-CJ8rQxgu.js";const N=s=>e.jsxs(b,{id:s.id,className:"rp-item",textValue:s.keywords?`${s.label} ${s.keywords}`:s.label,children:[e.jsx(p,{}),e.jsx(m,{i:s,children:s.desc&&e.jsx(d,{slot:"description",className:o("desc",s.tone),children:s.desc})})]},s.id);function v({label:p,searchLabel:m,sections:b,value:v,onChange:S,isDisabled:g,description:y,side:R,size:$}){const k=s.useRef(null),C=s.useRef(null),w=a($),z=b.flatMap(s=>s.items).find(s=>s.id===v);return e.jsxs(j,{className:o("rp-picker",R?"rp-cluster":"rp-field"),selectedKey:v,onSelectionChange:s=>{null!=s&&S(String(s))},isDisabled:g,children:[e.jsxs("div",{ref:k,className:R?"rp-cluster":"rp-field",children:[e.jsx(l,{className:R?"rp-label":"lbl",children:p}),e.jsxs(r,{ref:C,className:"rp-selectbtn","data-size":w,children:[e.jsx(h,{children:()=>z?e.jsx(i,{i:z}):v}),e.jsx(c,{})]})]}),y&&e.jsx(d,{slot:"description",className:"rp-label",children:y}),e.jsx(t,{className:"rp-popover rp-search-popover",placement:"bottom start",triggerRef:R?C:k,children:e.jsx(u,{label:m,children:e.jsx(x,{className:"rp-menu-scroll rp-overlay-scroll",children:b.map(s=>s.title?e.jsxs(f,{id:s.id,children:[e.jsx(n,{className:"rp-sec-h",children:s.title}),s.items.map(N)]},s.id):s.items.map(N))})})})]})}export{v as S};
@@ -0,0 +1 @@
import{bs as e,dm as t,gF as l,ds as o,du as a,hj as s,dl as i,gG as r,hk as n,eT as d,fV as c,dP as u,fO as p,eU as g,fE as f,g0 as y,hl as v,dt as m,hm as h,dr as b,fF as D,gt as P,fU as M,dn as S,dp as K,dx as E,fG as k,fX as C,fZ as F,fY as B,dA as x,e_ as I,eX as w,g3 as R,hn as A,eY as V,gH as T,dL as O,ho as U,dE as z,dF as H,dG as L,dI as N,eZ as q,g6 as W,f$ as _,f1 as j,dO as $,g2 as G,hp as Z,hq as J,dK as X,dD as Y,hr as Q,gb as ee,gc as te,f5 as le,hs as oe,dy as ae,dz as se,e$ as ie,dB as re,fH as ne,dC as de,dN as ce,dH as ue,g5 as pe,ht as ge,hu as fe,dJ as ye}from"./index-CmbH0woS.js";import{r as ve,$ as me}from"./vendor-react-64fcanlc.js";const he=new WeakMap;function be(e,l,o){let{key:a}=e,s=he.get(l),f=e.isDisabled??l.selectionManager.isDisabled(a),y=e.isSelected??l.selectionManager.isSelected(a),v=e.shouldSelectOnPressUp??s?.shouldSelectOnPressUp,m=e.shouldFocusOnHover??s?.shouldFocusOnHover,h=e.shouldUseVirtualFocus??s?.shouldUseVirtualFocus,b=e.isVirtualized??s?.isVirtualized,D=r(),P=r(),M={role:"option","aria-disabled":f||void 0,"aria-selected":"none"!==l.selectionManager.selectionMode?y:void 0,"aria-label":e["aria-label"],"aria-labelledby":D,"aria-describedby":P},S=l.collection.getItem(a);if(b){let e=Number(S?.index);M["aria-posinset"]=Number.isNaN(e)?void 0:e+1,M["aria-setsize"]=n(l.collection)}let K=s?.onAction?()=>s?.onAction?.(a):void 0,E=function(e,t){let l=he.get(e);if(!l)throw new Error("Unknown list");return`${l.id}-option-${o=t,"string"==typeof o?o.replace(/\s*/g,""):""+o}`;var o}(l,a),{itemProps:k,isPressed:C,isFocused:F,hasAction:B,allowsSelection:x}=d({selectionManager:l.selectionManager,key:a,ref:o,shouldSelectOnPressUp:v,allowsDifferentPressOrigin:v&&m,isVirtualized:b,shouldUseVirtualFocus:h,isDisabled:f,onAction:K||S?.props?.onAction?c(S?.props?.onAction,K):void 0,linkBehavior:s?.linkBehavior,UNSTABLE_itemBehavior:s?.UNSTABLE_itemBehavior,id:E}),{hoverProps:I}=u({isDisabled:f||!m,onHoverStart(){p()||(l.selectionManager.setFocused(!0),l.selectionManager.setFocusedKey(a))}}),w=t(S?.props);delete w.id;let R=g(S?.props);return{optionProps:{...M,...i(w,k,I,R),id:E},labelProps:{id:D},descriptionProps:{id:P},isFocused:F,isFocusVisible:F&&l.selectionManager.isFocused&&p(),isSelected:y,isDisabled:f,isPressed:C,allowsSelection:x,hasAction:B}}const De=new WeakMap;function Pe(e){let{state:t,triggerRef:l,label:o,name:a,form:s,isDisabled:i}=e,r=ve.useRef(null),n=ve.useRef(null),{containerProps:d,selectProps:c}=function(e,t,l){let o=De.get(t)||{},{autoComplete:a,name:s=o.name,form:i=o.form,isDisabled:r=o.isDisabled}=e,{validationBehavior:n,isRequired:d}=o,{visuallyHiddenProps:c}=M({style:{position:"fixed",top:0,left:0}});S(e.selectRef,t.defaultValue,t.setValue),K({validationBehavior:n,focus:()=>l.current?.focus()},t,e.selectRef);let u=t.setValue,p=ve.useCallback(e=>{let t=E(e);t.multiple?u(Array.from(t.selectedOptions,e=>e.value)):u(e.currentTarget.value)},[u]);return{containerProps:{...c,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:a,disabled:r,multiple:"multiple"===t.selectionManager.selectionMode,required:"native"===n&&d,name:s,form:i,value:t.value??"",onChange:p,onInput:p}}}({...e,selectRef:t.collection.size<=300?r:n},t,l),u=Array.isArray(t.value)?t.value:[t.value];if(t.collection.size<=300)return me.createElement("div",{...d,"data-testid":"hidden-select-container"},me.createElement("label",null,o,me.createElement("select",{...c,ref:r},me.createElement("option",{value:"",label:" "}," "),[...t.collection.getKeys()].map(e=>{let l=t.collection.getItem(e);if(l&&"item"===l.type)return me.createElement("option",{key:l.key,value:l.key},l.textValue)}),0===t.collection.size&&a&&u.map((e,t)=>me.createElement("option",{key:t,value:e??""})))));if(a){let e=De.get(t)||{},{validationBehavior:l}=e;0===u.length&&(u=[null]);let o=u.map((e,t)=>{let o={type:"hidden",autoComplete:c.autoComplete,name:a,form:s,disabled:i,value:e??""};return"native"===l?me.createElement("input",{key:t,...o,ref:0===t?n:null,style:{display:"none"},type:"text",required:0===t&&c.required,onChange:()=>{}}):me.createElement("input",{key:t,...o,ref:0===t?n:null})});return me.createElement(me.Fragment,null,o)}return null}var Me;Me={"ar-AE":k,"bg-BG":k,"cs-CZ":k,"da-DK":k,"de-DE":k,"el-GR":k,"en-US":{selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"},"es-ES":k,"et-EE":k,"fi-FI":k,"fr-FR":k,"he-IL":k,"hr-HR":k,"hu-HU":k,"it-IT":k,"ja-JP":k,"ko-KR":k,"lt-LT":k,"lv-LV":k,"nb-NO":k,"nl-NL":k,"pl-PL":k,"pt-BR":k,"pt-PT":k,"ro-RO":k,"ru-RU":k,"sk-SK":k,"sl-SI":k,"sr-SP":k,"sv-SE":k,"tr-TR":k,"uk-UA":k,"zh-CN":{colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"},"zh-TW":{colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizeLine truncated
@@ -1 +0,0 @@
import{ch as e,dQ as t,dP as l,ev as o,ct as a,gY as s,cu as i,dR as r,gZ as n,dS as c,dT as d,e6 as u,d_ as p,fP as g,gl as f,go as y,gn as v,d$ as m,e0 as b,e1 as h,gs as D,g_ as P,e2 as M,e3 as S,e4 as K,ew as k,g$ as E,e8 as C,e9 as F,ea as B,ec as x,eg as I,eh as w,ee as R,bf as A,ei as V,e5 as T,ej as z,cB as O,ek as U,h0 as L,h1 as H,el as N,eC as q,h2 as W,em as _,en as j,eo as $,h3 as G,h4 as Z,eu as J,cb as Q,cs as Y,e7 as X,er as ee,es as te,cc as le,h5 as oe,ey as ae,ez as se,fS as ie,eA as re,ci as ne,eB as ce,eG as de,eD as ue,eb as pe,h6 as ge,h7 as fe,eE as ye}from"./index-BgFj_VXE.js";import{r as ve,$ as me}from"./vendor-react-64fcanlc.js";var be;be={"ar-AE":e,"bg-BG":e,"cs-CZ":e,"da-DK":e,"de-DE":e,"el-GR":e,"en-US":{selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"},"es-ES":e,"et-EE":e,"fi-FI":e,"fr-FR":e,"he-IL":e,"hr-HR":e,"hu-HU":e,"it-IT":e,"ja-JP":e,"ko-KR":e,"lt-LT":e,"lv-LV":e,"nb-NO":e,"nl-NL":e,"pl-PL":e,"pt-BR":e,"pt-PT":e,"ro-RO":e,"ru-RU":e,"sk-SK":e,"sl-SI":e,"sr-SP":e,"sv-SE":e,"tr-TR":e,"uk-UA":e,"zh-CN":{colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"},"zh-TW":{colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"}};const he=ve.createContext({}),De=ve.createContext(null),Pe=ve.forwardRef(function(e,t){let{render:l}=ve.useContext(De);return me.createElement(me.Fragment,null,l(e,t))});function Me(e,t){let l=e?.renderDropIndicator,o=e?.isVirtualDragging?.(),a=ve.useCallback(e=>{if(o||t?.isDropTarget(e))return l?l(e):me.createElement(Pe,{target:e})},[t?.target,o,l]);return e?.useDropIndicator?a:void 0}function Se(e,t,l){let o=e.focusedKey,a=null;if(t?.isVirtualDragging?.()&&"item"===l?.target?.type&&(a=l.target.key,"after"===l.target.dropPosition)){let e=l.collection.getKeyAfter(a),t=null;if(null!=e){let o=l.collection.getItem(a)?.level??0;for(;null!=e;){let a=l.collection.getItem(e);if(!a)break;if("item"===a.type){if((a.level??0)<=o)break;t=e,e=l.collection.getKeyAfter(e)}else e=l.collection.getKeyAfter(e)}}a=e??t??a}return ve.useMemo(()=>new Set([o,a].filter(e=>null!=e)),[o,a])}const Ke=new WeakMap;function ke(e,l,o){let{key:a}=e,s=Ke.get(l),f=e.isDisabled??l.selectionManager.isDisabled(a),y=e.isSelected??l.selectionManager.isSelected(a),v=e.shouldSelectOnPressUp??s?.shouldSelectOnPressUp,m=e.shouldFocusOnHover??s?.shouldFocusOnHover,b=e.shouldUseVirtualFocus??s?.shouldUseVirtualFocus,h=e.isVirtualized??s?.isVirtualized,D=r(),P=r(),M={role:"option","aria-disabled":f||void 0,"aria-selected":"none"!==l.selectionManager.selectionMode?y:void 0,"aria-label":e["aria-label"],"aria-labelledby":D,"aria-describedby":P},S=l.collection.getItem(a);if(h){let e=Number(S?.index);M["aria-posinset"]=Number.isNaN(e)?void 0:e+1,M["aria-setsize"]=n(l.collection)}let K=s?.onAction?()=>s?.onAction?.(a):void 0,k=function(e,t){let l=Ke.get(e);if(!l)throw new Error("Unknown list");return`${l.id}-option-${o=t,"string"==typeof o?o.replace(/\s*/g,""):""+o}`;var o}(l,a),{itemProps:E,isPressed:C,isFocused:F,hasAction:B,allowsSelection:x}=c({selectionManager:l.selectionManager,key:a,ref:o,shouldSelectOnPressUp:v,allowsDifferentPressOrigin:v&&m,isVirtualized:h,shouldUseVirtualFocus:b,isDisabled:f,onAction:K||S?.props?.onAction?d(S?.props?.onAction,K):void 0,linkBehavior:s?.linkBehavior,UNSTABLE_itemBehavior:s?.UNSTABLE_itemBehavior,id:k}),{hoverProps:I}=u({isDisabled:f||!m,onHoverStart(){p()||(l.selectionManager.setFocused(!0),l.selectionManager.setFocusedKey(a))}}),w=t(S?.props);delete w.id;let R=g(S?.props);return{optionProps:{...M,...i(w,E,I,R),id:k},labelProps:{id:D},descriptionProps:{id:P},isFocused:F,isFocusVisible:F&&l.selectionManager.isFocused&&p(),isSelected:y,isDisabled:f,isPressed:C,allowsSelection:x,hasAction:B}}class Ee{constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let l of e.childNodes)t(l)};for(let s of e)t(s);let l=null,o=0,a=0;for(let[s,i]of this.keyMap)l?(l.nextKey=s,i.prevKey=l.key):(this.firstKey=s,i.prevKey=void 0),"item"===i.type&&(i.index=o++),"section"!==i.type&&"item"!==i.type||a++,l=i,l.nextKey=void 0;this._size=a,this.lastKey=l?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return t?.childNodes||[]}}function Ce(e){let{filter:t,layoutDelegate:l}=e,o=f(e),a=ve.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=ve.Line truncated
@@ -1 +0,0 @@
import{r as e,a as s,j as t}from"./vendor-react-64fcanlc.js";import{aB as a,j as i,Y as n,ag as r,bD as l,g1 as o,g2 as d,F as c,g3 as g,cC as u,fh as p,bI as m,bE as h,a8 as f,bG as b,cV as v,bU as x,g4 as j,bH as y,x as k,g5 as w,$ as N,a5 as _,aG as S,g6 as C,g7 as P,g8 as R,g9 as I,ga as D,di as L,aC as T,V as U,c$ as H,a0 as E,bS as F,ad as q,c1 as O,eS as A,Q as M,P as V,G as z,D as B,bP as G,bQ as W,Z as $,dq as K,O as J,bb as Q,bc as Y,gb as X,dr as Z,aS as ee,dC as se,bs as te,T as ae,cE as ie,bz as ne,gc as re,gd as le,ge as oe,gf as de,gg as ce}from"./index-BgFj_VXE.js";import{e as ge,L as ue,y as pe,u as me,s as he,z as fe,B as be,t as ve}from"./logs-BxISynQ4.js";import{T as xe}from"./Toolbar-CIBfeuEz.js";import{S as je}from"./SearchSelect-CO6FsBaz.js";import{d as ye,c as ke}from"./auth-B7tMStu6.js";import{b as we,r as Ne}from"./format-s2EANuUb.js";import{g as _e,r as Se,c as Ce,b as Pe,d as Re}from"./nav-Ct52fcy8.js";import{b7 as Ie}from"./activity-D06xJ7oH.js";import{D as De}from"./Table-Dprh3Btz.js";import{T as Le}from"./TimeCell-B4WLB8Ou.js";import{g as Te,v as Ue}from"./geodata-X0pHz03D.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-CkiGmyVC.js";import"./SearchList-Bhc2_bS4.js";import"./Virtualizer-CZl-q5wo.js";import"./useGridSelectionCheckbox-BxnCShqN.js";const He={record_flows:{state:"flows"},record_logs:{state:"logs"},record_dns_log:{state:"dns_log"}},Ee=Object.keys(He),Fe={record_flows:"settings.record.autoFlows",record_logs:"settings.record.autoLogs",record_dns_log:"settings.record.autoDnsLog"},qe={on:"settings.record.on",off:"settings.record.off"};function Oe(e,s,t,a){const i=!!t&&!t.allowed;return{id:e,label:a(Se[e]),value:s,items:["auto","on","off"].map(s=>({id:s,label:a("auto"===s?Fe[e]:qe[s])})),disabled:i,tone:i?"muted":t?.active?"ok":"neutral",status:a(i?"settings.recordingForbidden":t?.active?"settings.recordingActive":"settings.recordingIdle")}}function Ae(e,s){if(!e)return null;const t=e.grace_remaining_seconds??0;return t>0?s("settings.recordingGrace",{n:t}):e.events?s(e.events.active?"settings.recordingEvents":"settings.recordingDetached"):null}const Me=(e,s,t)=>"auto"===e&&null!==s?t("settings.recordFlowsAuto",{n:s}):null,Ve={"log.buffered_records":{read:e=>e.log?.buffered_records,write:(e,s)=>{(e.log??={}).buffered_records=s}},"dns_log.max_records":{read:e=>e.dns_log?.max_records,write:(e,s)=>{(e.dns_log??={}).max_records=s}},"flows.max_flows":{read:e=>e.flows?.max_flows,write:(e,s)=>{(e.flows??={}).max_flows=s}},"flows.retention_seconds":{read:e=>e.flows?.retention_seconds,write:(e,s)=>{(e.flows??={}).retention_seconds=s}}},ze=Object.keys(Ve);function Be(e,s,t,a,i,n){return{id:e,value:s,label:n(Se[e]),invalid:!/^\d+$/.test(s)||Number(s)<t||void 0!==a&&Number(s)>a,description:void 0===a?n("settings.rangeMin",{min:r(t,i)}):n("settings.range",{min:r(t,i),max:r(a,i)})}}function Ge(e,s){return e.map(e=>({id:e.kind,kind:e.kind,size:we(e.size_bytes,s),modifiedAt:e.modified_at,sha:e.sha256.slice(0,12),shaTitle:e.sha256,source:e.source_redacted??"—"}))}function We(e,s){return e?null:s("settings.noProfile")}function $e({busy:e,invalid:s},t){return!e&&s?t("settings.runtimeInvalid",{field:s}):null}function Ke({busy:e,loaded:s,failed:t},a){return e||s||!t?null:a("settings.geodataUnread")}function Je(e,s,t,r){const l=e?.resources;if(!l?.geodata.available||!0!==l.geodata.can_update||_e(l))return null;const o=ge(s),d=o.reason("geodata",e);if("no-download-urls"!==d?.code)return null;return{text:t("settings.geodataFromConfig",{keys:a(r,d.settings.map(e=>o.settingName(e.key)))}),docs:{href:n(r,"state-db"),text:t("ov.lim.docsStateDb")},config:l.config.available?{href:i("config",{tab:"source"}),text:t("nav.config")}:void 0}}async function Qe(e,s,t,a){try{const a=await o(e,s).discovery(t);if(!a||!Number.isInteger(a.api_major)||a.api_major<1)throw new l(200,"invalid_discovery","Missing API version");return{version:String(a.api_major),password:"password"===a.auth.mode}}catch(i){const n=function(e,s,t,a,i=""){return s.aborted&&"TimeoutError"===s.reason?.name?{key:"settings.timeout"}:s.aborted?null:e instanceof l?401===e.status?{key:i?"settings.tokenRejected":"settings.unauthorized"}:"empty_response"===e.code?{key:"settings.nonJson"}:"invalid_discovery"===e.code?{key:"settings.invalidResponse"}:{key:"settings.httpError",params:{status:e.status}}:e instanceof SyntaxError?{key:"settings.nonJson"}:e instanceof TypeError&&new URL(t).origin!==a?{key:"settings.cors"}:{key:"settings.network"}}(i,t,e,a,s);return n&&{failure:n,requestId:i instanceof l?i.requestId:null}}}function Ye(e){const s=new URLSearchParams(e),t=s.get("api");return t?{api:t,token:s.get("token")??""}:null}function Xe(t,a=d){const i=c(),[n]=e.useState(g),[r,l]=e.useState(n.api??""),[o,w]=e.useState(n.token),[N,_]=e.useState(!1),[S,C]=e.useState(null),{pending:P,running:R,cancel:I,run:D}=function(){const[s,t]=e.useState(!1),a=e.useRef(null),i=e.useCallback(()=>{const e=a.current;a.current=null,e?.abort()},[]);return e.usLine truncated
@@ -0,0 +1 @@
import{r as e,a as s,j as t}from"./vendor-react-64fcanlc.js";import{al as a,aE as i,j as n,U as r,ai as l,bT as o,fe as d,ff as c,C as g,fg as u,dd as p,et as m,bY as h,bU as f,a4 as b,bW as v,fh as x,c9 as j,fi as y,bX as k,y as N,fj as w,W as _,a1 as S,aJ as C,fk as P,fl as R,fm as I,fn as D,fo as L,cK as T,aF as U,P as H,cp as F,X as E,c7 as A,ae as q,ci as M,e0 as O,M as V,K as W,D as z,ay as B,A as G,c4 as K,c5 as $,V as J,cS as Y,J as X,bl as Q,bm as Z,fp as ee,fq as se,cT as te,aV as ae,d4 as ie,bG as ne,T as re,ec as le,bO as oe,fr as de,fs as ce,ft as ge,fu as ue,fv as pe}from"./index-CmbH0woS.js";import{e as me,L as he,y as fe,u as be,s as ve,z as xe,B as je,t as ye}from"./ActionGroup-D3mQjUsw.js";import{T as ke}from"./Toolbar-B9K5nAyx.js";import{S as Ne}from"./SearchSelect-CuaWhoLz.js";import{d as we,c as _e}from"./auth-aj_VNWTT.js";import{g as Se,r as Ce,c as Pe,s as Re,a as Ie}from"./nav--g10gPaM.js";import{aR as De}from"./activity-CiEWAlFW.js";import{D as Le}from"./Table-Cfbaho6J.js";import{T as Te}from"./TimeCell-D0UB-mKs.js";import{g as Ue,v as He}from"./geodata-X0pHz03D.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BcN72K3H.js";import"./SearchList-CJ8rQxgu.js";import"./Virtualizer-itu1Kg0o.js";import"./Checkbox-f7Je53QZ.js";const Fe={record_flows:{state:"flows"},record_logs:{state:"logs"},record_dns_log:{state:"dns_log"}},Ee=Object.keys(Fe),Ae={record_flows:"settings.record.autoFlows",record_logs:"settings.record.autoLogs",record_dns_log:"settings.record.autoDnsLog"},qe={on:"settings.record.on",off:"settings.record.off"};function Me(e,s,t,a){const i=!!t&&!t.allowed;return{id:e,label:a(Ce[e]),value:s,items:["auto","on","off"].map(s=>({id:s,label:a("auto"===s?Ae[e]:qe[s])})),disabled:i,tone:i?"muted":t?.active?"ok":"neutral",status:a(i?"settings.recordingForbidden":t?.active?"settings.recordingActive":"settings.recordingIdle")}}function Oe(e,s){if(!e)return null;const t=e.grace_remaining_seconds??0;return t>0?s("settings.recordingGrace",{n:t}):e.events?s(e.events.active?"settings.recordingEvents":"settings.recordingDetached"):null}const Ve=(e,s,t)=>"auto"===e&&null!==s?t("settings.recordFlowsAuto",{n:s}):null,We={"log.buffered_records":{read:e=>e.log?.buffered_records,write:(e,s)=>{(e.log??={}).buffered_records=s}},"dns_log.max_records":{read:e=>e.dns_log?.max_records,write:(e,s)=>{(e.dns_log??={}).max_records=s}},"flows.max_flows":{read:e=>e.flows?.max_flows,write:(e,s)=>{(e.flows??={}).max_flows=s}},"flows.retention_seconds":{read:e=>e.flows?.retention_seconds,write:(e,s)=>{(e.flows??={}).retention_seconds=s}}},ze=Object.keys(We);function Be(e,s,t,a,i,n){return{id:e,value:s,label:n(Ce[e]),invalid:!/^\d+$/.test(s)||Number(s)<t||void 0!==a&&Number(s)>a,description:void 0===a?n("settings.rangeMin",{min:l(t,i)}):n("settings.range",{min:l(t,i),max:l(a,i)})}}function Ge(e,s){return e.map(e=>({id:e.kind,kind:e.kind,size:a(e.size_bytes,s),modifiedAt:e.modified_at,sha:e.sha256.slice(0,12),shaTitle:e.sha256,source:e.source_redacted??"—"}))}function Ke(e,s){return e?null:s("settings.noProfile")}function $e({busy:e,invalid:s},t){return!e&&s?t("settings.runtimeInvalid",{field:s}):null}function Je({busy:e,loaded:s,failed:t},a){return e||s||!t?null:a("settings.geodataUnread")}function Ye(e,s,t,a){const l=e?.resources;if(!l?.geodata.available||!0!==l.geodata.can_update||Se(l))return null;const o=me(s),d=o.reason("geodata",e);if("no-download-urls"!==d?.code)return null;return{text:t("settings.geodataFromConfig",{keys:i(a,d.settings.map(e=>o.settingName(e.key)))}),docs:{href:r(a,"state-db"),text:t("ov.lim.docsStateDb")},config:l.config.available?{href:n("config",{tab:"source"}),text:t("nav.config")}:void 0}}async function Xe(e,s,t,a){try{const a=await d(e,s).discovery(t);if(!a||!Number.isInteger(a.api_major)||a.api_major<1)throw new o(200,"invalid_discovery","Missing API version");return{version:String(a.api_major),password:"password"===a.auth.mode}}catch(i){const n=function(e,s,t,a,i=""){return s.aborted&&"TimeoutError"===s.reason?.name?{key:"settings.timeout"}:s.aborted?null:e instanceof o?401===e.status?{key:i?"settings.tokenRejected":"settings.unauthorized"}:"empty_response"===e.code?{key:"settings.nonJson"}:"invalid_discovery"===e.code?{key:"settings.invalidResponse"}:{key:"settings.httpError",params:{status:e.status}}:e instanceof SyntaxError?{key:"settings.nonJson"}:e instanceof TypeError&&new URL(t).origin!==a?{key:"settings.cors"}:{key:"settings.network"}}(i,t,e,a,s);return n&&{failure:n,requestId:i instanceof o?i.requestId:null}}}function Qe(e){const s=new URLSearchParams(e),t=s.get("api");return t?{api:t,token:s.get("token")??""}:null}function Ze(t,a=c){const i=g(),[n]=e.useState(u),[r,l]=e.useState(n.api??""),[o,d]=e.useState(n.token),[w,_]=e.useState(!1),[S,C]=e.useState(null),{pending:P,running:R,cancel:I,run:D}=function(){const[s,t]=e.useState(!1),a=e.useRef(null),i=e.useCallback(()=>{const e=a.current;a.current=null,e?.abort()},[]);return e.useEffect(()=>i,[i]),{pending:s,runnLine truncated
@@ -1 +0,0 @@
import{r as t,j as e}from"./vendor-react-64fcanlc.js";import{h as s}from"./format-s2EANuUb.js";import{H as i}from"./index-BgFj_VXE.js";import{z as r,b8 as a,b9 as o,ba as l,bd as n,be as h,bf as m}from"./activity-D06xJ7oH.js";import{G as u,C as c}from"./AreaCurve-DQSHOSpG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./logs-BxISynQ4.js";import"./Select-CkiGmyVC.js";import"./array-C0VuvQyb.js";function d({values:d,timestamps:p,color:x,fmt:f,locale:j,height:b=32,floor:v=0,inset:M=0,lines:g}){const y=t.useId(),w=r(),[k,C]=t.useState(null),[$,A]=i(Math.round,120),{tip:H,showAt:L,hide:P}=a(),S=t.useMemo(()=>d.filter(t=>null!==t),[d]),W=S.length>1,z=t.useMemo(()=>[v>0?0:.85*Math.min(...S),Math.max(1.05*Math.max(...S)||1,v)],[S,v]),B=A?.width??0,E=(A?.height??b)-2,F=t.useMemo(()=>{const t=[Math.min(...p),Math.max(...p)];return p.map(e=>o(e,t,[M,Math.max(M,B-M)]))},[p,B,M]),G=t.useCallback(t=>o(t,z,[E,2]),[z,E]),I=t.useMemo(()=>d.map((t,e)=>null===t?null:{x:F[e],y:G(t)}),[d,F,G]);return t.useLayoutEffect(()=>{null!==k&&null!=d[k]&&f&&j&&$.current&&A?L({x:F[k],y:G(d[k]),width:A.width,bounds:l($.current),label:s(j).format(p[k]),lines:g?.(k)??[f(d[k])]}):P()}),e.jsx("div",{ref:$,style:{height:`var(--rp-spark-fill, ${b}px)`,width:"100%",position:"relative"},"aria-hidden":!!W||void 0,onPointerLeave:()=>C(null),children:W&&A&&e.jsxs(e.Fragment,{children:[e.jsx(n,{tip:H}),e.jsxs("svg",{className:"rp-activity-surface",width:A.width,height:A.height,viewBox:`0 0 ${A.width} ${A.height}`,style:{display:"block",position:"absolute",inset:0},onPointerMove:t=>{const e=h(t,t.currentTarget,A);C(e.x<0||e.x>A.width||e.y<2||e.y>A.height-2?null:m(F,e.x))},children:[e.jsx("defs",{children:e.jsx(u,{id:y,color:x})}),e.jsx(c,{points:I,baseline:G(Math.max(0,z[0])),color:x,id:y,strokeWidth:1.5}),null!==k&&null!=d[k]&&e.jsx("circle",{cx:F[k],cy:G(d[k]),r:4,fill:x,stroke:w.base,strokeWidth:2})]})]})})}export{d as SparkPlot};
@@ -0,0 +1 @@
import{r as t,j as e}from"./vendor-react-64fcanlc.js";import{E as s,hw as i}from"./index-CmbH0woS.js";import{u as a,bb as r,bc as o,bd as l,bg as h,bh as n,bi as d}from"./activity-CiEWAlFW.js";import{G as m,C as u}from"./AreaCurve-DQSHOSpG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./ActionGroup-D3mQjUsw.js";import"./Select-BcN72K3H.js";import"./array-C0VuvQyb.js";function c({values:c,timestamps:x,color:p,fmt:j,locale:y,height:b=32,floor:f=0,inset:g=0,lines:v}){const w=t.useId(),M=a(),[k,C]=t.useState(null),[A,$]=s(Math.round,120),{tip:E,showAt:G,hide:L}=r(),P=t.useMemo(()=>c.filter(t=>null!==t),[c]),S=P.length>1,W=t.useMemo(()=>[f>0?0:.85*Math.min(...P),Math.max(1.05*Math.max(...P)||1,f)],[P,f]),B=$?.width??0,D=($?.height??b)-2,F=t.useMemo(()=>{const t=[Math.min(...x),Math.max(...x)];return x.map(e=>o(e,t,[g,Math.max(g,B-g)]))},[x,B,g]),H=t.useCallback(t=>o(t,W,[D,2]),[W,D]),I=t.useMemo(()=>c.map((t,e)=>null===t?null:{x:F[e],y:H(t)}),[c,F,H]);return t.useLayoutEffect(()=>{null!==k&&null!=c[k]&&j&&y&&A.current&&$?G({x:F[k],y:H(c[k]),width:$.width,bounds:l(A.current),label:i(y).format(x[k]),lines:v?.(k)??[j(c[k])]}):L()}),e.jsxs("div",{ref:A,style:{height:`var(--rp-spark-fill, ${b}px)`,width:"100%",position:"relative"},"aria-hidden":!!S||void 0,onPointerLeave:()=>C(null),children:[$&&!S&&e.jsx("svg",{"aria-hidden":!0,width:$.width,height:$.height,style:{display:"block",position:"absolute",inset:0},children:e.jsx("line",{x1:g,x2:$.width-g,y1:D,y2:D,stroke:M["hl-med"],strokeDasharray:"2 4"})}),S&&$&&e.jsxs(e.Fragment,{children:[e.jsx(h,{tip:E}),e.jsxs("svg",{className:"rp-activity-surface",width:$.width,height:$.height,viewBox:`0 0 ${$.width} ${$.height}`,style:{display:"block",position:"absolute",inset:0},onPointerMove:t=>{const e=n(t,t.currentTarget,$);C(e.x<0||e.x>$.width||e.y<2||e.y>$.height-2?null:d(F,e.x))},children:[e.jsx("defs",{children:e.jsx(m,{id:w,color:p})}),e.jsx(u,{points:I,baseline:H(Math.max(0,W[0])),color:p,id:w,strokeWidth:1.5}),null!==k&&null!=c[k]&&e.jsx("circle",{cx:F[k],cy:H(c[k]),r:4,fill:p,stroke:M.base,strokeWidth:2})]})]})]})}export{c as SparkPlot};
@@ -0,0 +1 @@
import{r as e,$ as t,b as l,j as n}from"./vendor-react-64fcanlc.js";import{fz as i,fA as o,fB as r,fC as s,fD as a,fE as d,bs as u,eV as c,du as h,dm as y,fF as f,dx as p,dl as g,fG as m,fH as b,fI as w,fJ as v,eT as x,dv as k,fK as C,fL as K,fM as I,fN as S,fO as M,fP as R,fQ as E,dj as z,dk as D,fR as P,dt as N,fS as H,fT as W,fU as A,fV as T,eW as F,fW as V,fX as B,fY as L,fZ as j,dy as O,dA as $,eX as U,e_ as _,f_ as q,f$ as Y,dL as X,dM as G,f1 as Z,g0 as J,dO as Q,dE as ee,dG as te,g1 as le,g2 as ne,dK as ie,g3 as oe,g4 as re,dP as se,eY as ae,f6 as de,dF as ue,g5 as ce,eZ as he,g6 as ye,g7 as fe,g8 as pe,g9 as ge,ga as me,f3 as be,gb as we,gc as ve,f5 as xe,C as ke,G as Ce,b_ as Ke,A as Ie,az as Se,c$ as Me,gd as Re,cI as Ee,aY as ze,bO as De,bZ as Pe,T as Ne}from"./index-CmbH0woS.js";import{b as He,a as We,c as Ae,d as Te,e as Fe,f as Ve,g as Be}from"./Checkbox-f7Je53QZ.js";import{f as Le,g as je,h as Oe,i as $e,j as Ue}from"./Select-BcN72K3H.js";import{$ as _e}from"./ActionGroup-D3mQjUsw.js";import{e as qe,a as Ye,c as Xe,b as Ge,d as Ze}from"./Virtualizer-itu1Kg0o.js";class Je{constructor(e){if(this.collection=e.collection,this.disabledKeys=e.disabledKeys,this.disabledBehavior=e.disabledBehavior||"all",this.direction=e.direction,this.collator=e.collator,!e.layout&&!e.ref)throw new Error("Either a layout or a ref must be specified.");this.layoutDelegate=e.layoutDelegate||(e.layout?new Qe(e.layout):new i(e.ref)),this.focusMode=e.focusMode??"row"}isCell(e){return"cell"===e.type}isRow(e){return"row"===e.type||"item"===e.type}isDisabled(e){return"all"===this.disabledBehavior&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&"selection"!==e.props?.disabledBehavior}findPreviousKey(e,t,l=!1){let n=null!=e?this.collection.getKeyBefore(e):this.collection.getLastKey();for(;null!=n;){let e=this.collection.getItem(n);if(!e)return null;if((l||!this.isDisabled(e))&&(!t||t(e)))return n;n=this.collection.getKeyBefore(n)}return null}findNextKey(e,t,l=!1){let n=null!=e?this.collection.getKeyAfter(e):this.collection.getFirstKey();for(;null!=n;){let e=this.collection.getItem(n);if(!e)return null;if((l||!this.isDisabled(e))&&(!t||t(e)))return n;if(n=this.collection.getKeyAfter(n),null==n)return null}return null}getKeyForItemInRowByIndex(e,t=0){if(t<0)return null;let l=this.collection.getItem(e);if(!l)return null;let n=0;for(let i of o(l,this.collection)){if(i.colSpan&&i.colSpan+n>t)return i.key??null;if(i.colSpan&&(n=n+i.colSpan-1),n===t)return i.key??null;n++}return null}getKeyBelow(e,t){let l=e,n=this.collection.getItem(l);if(!n)return null;if(this.isCell(n)&&(l=n.parentKey??null),null==l)return null;if(l=this.findNextKey(l,e=>"item"===e.type,t?.includeDisabled),null!=l){if(this.isCell(n)){let e=n.colIndex?n.colIndex:n.index;return this.getKeyForItemInRowByIndex(l,e)}if("row"===this.focusMode)return l}return null}getKeyAbove(e,t){let l=e,n=this.collection.getItem(l);if(!n)return null;if(this.isCell(n)&&(l=n.parentKey??null),null==l)return null;if(l=this.findPreviousKey(l,e=>"item"===e.type,t?.includeDisabled),null!=l){if(this.isCell(n)){let e=n.colIndex?n.colIndex:n.index;return this.getKeyForItemInRowByIndex(l,e)}if("row"===this.focusMode)return l}return null}getKeyRightOf(e){let t=this.collection.getItem(e);if(!t)return null;if(this.isRow(t)){let e=o(t,this.collection);return("rtl"===this.direction?r(e)?.key:s(e)?.key)??null}if(this.isCell(t)&&null!=t.parentKey){let l=this.collection.getItem(t.parentKey);if(!l)return null;let n=o(l,this.collection),i=("rtl"===this.direction?a(n,t.index-1):a(n,t.index+1))??null;return i?i.key??null:"row"===this.focusMode?t.parentKey??null:("rtl"===this.direction?this.getFirstKey(e):this.getLastKey(e))??null}return null}getKeyLeftOf(e){let t=this.collection.getItem(e);if(!t)return null;if(this.isRow(t)){let e=o(t,this.collection);return("rtl"===this.direction?s(e)?.key:r(e)?.key)??null}if(this.isCell(t)&&null!=t.parentKey){let l=this.collection.getItem(t.parentKey);if(!l)return null;let n=o(l,this.collection),i=("rtl"===this.direction?a(n,t.index+1):a(n,t.index-1))??null;return i?i.key??null:"row"===this.focusMode?t.parentKey??null:("rtl"===this.direction?this.getLastKey(e):this.getFirstKey(e))??null}return null}getFirstKey(e,t){let l,n=e??null;if(null!=n){if(l=this.collection.getItem(n),!l)return null;if(this.isCell(l)&&!t&&null!=l.parentKey){let e=this.collection.getItem(l.parentKey);return e?s(o(e,this.collection))?.key??null:null}}if(n=this.findNextKey(void 0,e=>"item"===e.type),null!=n&&(l&&this.isCell(l)&&t||"cell"===this.focusMode)){let e=this.collection.getItem(n);if(!e)return null;n=s(o(e,this.collection))?.key??null}return n}getLastKey(e,t){let l,n=e??null;if(null!=n){if(l=this.collection.getItem(n),!l)return null;if(this.isCell(l)&&!t&&null!=l.parentKey){let e=this.collection.getItem(l.parentKey);if(!e)return null;let t=o(e,this.collection);return r(t)?.key??null}}if(n=this.findPreviousKey(void 0,e=>"item"===e.type),null!=n&&(l&&this.isCell(l)&&t||"cell"===this.focusMLine truncated
@@ -1 +0,0 @@
import{r as e,$ as t,b as l,j as n}from"./vendor-react-64fcanlc.js";import{gj as i,gk as o,gl as r,gm as s,gn as a,go as d,ey as c,gp as u,gq as h,ei as y,bf as p,fR as g,ct as f,dQ as m,cb as b,cc as w,cu as v,ch as x,ci as k,cj as C,ca as K,dS as I,dX as S,dV as M,cg as R,dW as E,dY as z,d_ as D,dZ as P,cp as N,ep as H,eq as W,gr as T,dT as A,fQ as F,dU as V,ew as B,c8 as L,ck as j,e7 as O,d$ as $,e1 as U,e0 as _,gs as q,e5 as X,e8 as Y,e4 as G,cl as J,co as Q,gt as Z,e9 as ee,gu as te,ee as le,eF as ne,ej as ie,cB as oe,ea as re,ef as se,ek as ae,el as de,gv as ce,e6 as ue,e2 as he,ed as ye,gw as pe,eb as ge,eg as fe,eh as me,fV as be,em as we,en as ve,eo as xe,F as ke,K as Ce,bK as Ke,D as Ie,au as Se,cw as Me,cx as Re,dg as Ee,aV as ze,bz as De,bJ as Pe,T as Ne}from"./index-BgFj_VXE.js";import{$ as He,a as We,b as Te,g as Ae,c as Fe,d as Ve,e as Be}from"./useGridSelectionCheckbox-BxnCShqN.js";import{e as Le,i as je,h as Oe,j as $e,m as Ue}from"./Select-CkiGmyVC.js";import{$ as _e}from"./logs-BxISynQ4.js";import{e as qe,a as Xe,c as Ye,b as Ge,d as Je}from"./Virtualizer-CZl-q5wo.js";class Qe{setup(e,t,l){this.delegate=e,this.state=t,this.direction=l}getDropTargetFromPoint(e,t,l){let n=this.delegate.getDropTargetFromPoint(e,t,l);return n&&"root"!==n.type?this.resolveDropTarget(n,e,t,l):n}resolveDropTarget(e,t,l,n){let i=this.pointerTracking,o=l-i.lastY,r=t-i.lastX,s=i.yDirection,a=i.xDirection;if(Math.abs(o)>5&&(s=o>0?"down":"up",i.yDirection=s,i.lastY=l),Math.abs(r)>10&&(a=r>0?"right":"left",i.xDirection=a,i.lastX=t),"before"===e.dropPosition){let t=this.state.collection.getKeyBefore(e.key);for(;null!=t;){let e=this.state.collection.getItem(t);if("item"===e?.type)break;t=e?.parentKey??null}if(null!=t){let l={type:"item",key:t,dropPosition:"after"};n(l)&&(e=l)}}let d,c=this.getPotentialTargets(e,n);return 0===c.length?{type:"root"}:(c.length>1?d=this.selectTarget(c,e,t,l,s,a):(d=c[0],i.boundaryContext=null),d)}getPotentialTargets(e,t){if("on"===e.dropPosition)return[e];let l=e,n=this.state.collection,i=n.getItem(l.key);for(;i&&"item"!==i?.type&&null!=i.nextKey;)l.key=i.nextKey,i=n.getItem(i.nextKey);let o=[l];if(i&&i.hasChildNodes&&this.state.expandedKeys.has(i.key)&&n.getChildren&&"after"===l.dropPosition){let e=null!=i.firstChildKey?n.getItem(i.firstChildKey):null;for(;e&&"item"!==e.type;)e=null!=e.nextKey?n.getItem(e.nextKey):null;if("item"===e?.type){const l={type:"item",key:e.key,dropPosition:"before"};return t(l)?[l]:[]}}if(null!=i?.nextKey)return[e];let r=i?.parentKey,s=[];for(;null!=r;){let e=n.getItem(r),l=null!=e?.nextKey?n.getItem(e.nextKey):null;if(!l||l.parentKey!==r){if("item"===e?.type){let e={type:"item",key:r,dropPosition:"after"};t(e)&&s.push(e)}if(l)break}r=e?.parentKey}if(s.length>0&&o.push(...s),1===o.length){let e=n.getKeyAfter(l.key),o=null!=e?n.getItem(e):null;if(null!=e&&o&&i&&null!=o.level&&null!=i.level&&o.level>i.level){let l={type:"item",key:e,dropPosition:"before"};if(t(l))return[l]}}return o.filter(t)}selectTarget(e,t,l,n,i,o){if(e.length<2)return e[0];let r=this.pointerTracking,s=this.state.collection.getItem(t.key),a=s?.parentKey;if(null==a)return e[0];if(!r.boundaryContext||r.boundaryContext.parentKey!==a){let t="up"===r.yDirection?e.length-1:0;r.boundaryContext={parentKey:a,preferredTargetIndex:t,lastSwitchY:n,lastSwitchX:l}}let d=r.boundaryContext,c=Math.abs(l-d.lastSwitchX);if(Math.abs(n-d.lastSwitchY)>5&&i){let t=d.preferredTargetIndex||0;"down"===i&&0===t?d.preferredTargetIndex=e.length-1:"up"===i&&t===e.length-1&&(d.preferredTargetIndex=0),r.xDirection=null}if(c>10&&o){let t=d.preferredTargetIndex||0;"left"===o?"ltr"===this.direction?t<e.length-1&&(d.preferredTargetIndex=t+1,d.lastSwitchX=l):t>0&&(d.preferredTargetIndex=t-1,d.lastSwitchX=l):"right"===o&&("ltr"===this.direction?t>0&&(d.preferredTargetIndex=t-1,d.lastSwitchX=l):t<e.length-1&&(d.preferredTargetIndex=t+1,d.lastSwitchX=l)),r.yDirection=null}return e[Math.max(0,Math.min(d.preferredTargetIndex||0,e.length-1))]}constructor(){this.delegate=null,this.state=null,this.direction="ltr",this.pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null}}}class Ze{constructor(e){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=e?.columnCount,this.rows=[];let t=n=>{let i=this.keyMap.get(n.key);e.visitNode&&(n=e.visitNode(n)),this.keyMap.set(n.key,n);let o=new Set,r=null,s=!1;if("item"===n.type)for(let e of n.childNodes)if(void 0!==e.props?.colSpan){s=!0;break}for(let e of n.childNodes)"cell"===e.type&&s&&(e.colspan=e.props?.colSpan,e.colSpan=e.props?.colSpan,e.colIndex=r?(r.colIndex??r.index)+(r.colSpan??1):e.index),"cell"===e.type&&null==e.parentKey&&(e.parentKey=n.key),o.add(e.key),r?(r.nextKey=e.key,e.prevKey=r.key):e.prevKey=null,t(e),r=e;if(r&&(r.nextKey=null),i)for(let e of i.childNodes)o.has(e.key)||l(e)},l=e=>{this.keyMap.delete(e.key);for(let t of e.childNodes)this.keyMap.get(t.key)===t&&l(t)},n=null;for(let[i,o]of e.items.entries()){let e={...o,level:o.level??0,key:o.key??Line truncated
@@ -0,0 +1 @@
import{r as e,$ as t,j as s}from"./vendor-react-64fcanlc.js";import{eT as i,dm as l,eU as a,dk as o,dl as n,bs as r,eV as d,du as c,eW as u,dy as b,eX as f,eY as h,dL as p,dO as y,dP as v,dE as g,dF as m,eZ as K,dA as x,e_ as S,e$ as P,f0 as D,f1 as C,dB as E,dK as w,f2 as F,f3 as M,dG as N,f4 as k,f5 as j,f6 as I,f7 as L,f8 as R,f9 as T}from"./index-CmbH0woS.js";import{a as V}from"./Checkbox-f7Je53QZ.js";import{b as H}from"./Select-BcN72K3H.js";import{T as z}from"./Toolbar-B9K5nAyx.js";const A=new WeakMap;function O(e,t,s){if(!e)return"";return"string"==typeof t&&(t=t.replace(/\s+/g,"")),`${A.get(e)}-${s}-${t}`}class B{constructor(e,t,s,i=new Set){this.collection=e,this.flipDirection="rtl"===t,this.disabledKeys=i,this.tabDirection="horizontal"===s}getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){return this.disabledKeys.has(e)||!!this.collection.getItem(e)?.props?.isDisabled}getFirstKey(){let e=this.collection.getFirstKey();return null!=e&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return null!=e&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do{t=this.collection.getKeyAfter(t),null==t&&(t=this.collection.getFirstKey())}while(null!=t&&this.isDisabled(t)&&t!==e);return t}getPreviousKey(e){let t=e;do{t=this.collection.getKeyBefore(t),null==t&&(t=this.collection.getLastKey())}while(null!=t&&this.isDisabled(t)&&t!==e);return t}}function $(t){let s=function(t){let[s,i]=b(t.selectedKey,t.defaultSelectedKey??null,t.onSelectionChange),l=e.useMemo(()=>null!=s?[s]:[],[s]),{collection:a,disabledKeys:o,selectionManager:n}=H({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:l,onSelectionChange:e=>{if("all"===e)return;let l=e.values().next().value??null;l===s&&t.onSelectionChange&&t.onSelectionChange(l),i(l)}}),r=null!=s?a.getItem(s):null;return{collection:a,disabledKeys:o,selectionManager:n,selectedKey:s,setSelectedKey:i,selectedItem:r}}({...t,onSelectionChange:t.onSelectionChange?e=>{null!=e&&t.onSelectionChange?.(e)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:t.defaultSelectedKey??W(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set)??void 0}),{selectionManager:i,collection:l,selectedKey:a}=s,o=e.useRef(a);return e.useEffect(()=>{let e=a;null!=t.selectedKey||!i.isEmpty&&null!=e&&l.getItem(e)||(e=W(l,s.disabledKeys),null!=e&&i.setSelectedKeys([e])),(null!=e&&null==i.focusedKey||!i.isFocused&&e!==o.current)&&i.setFocusedKey(e),o.current=e}),{...s,isDisabled:t.isDisabled||!1}}function W(e,t){let s=null;if(e){for(s=e.getFirstKey();null!=s&&(t.has(s)||e.getItem(s)?.props?.isDisabled)&&s!==e.getLastKey();)s=e.getKeyAfter(s);null!=s&&(t.has(s)||e.getItem(s)?.props?.isDisabled)&&s===e.getLastKey()&&(s=e.getFirstKey())}return s}const U=e.createContext(null),G=e.createContext(null),X=e.forwardRef(function(s,i){[s,i]=x(s,i,U);let{children:l,orientation:a="horizontal"}=s;return l=e.useMemo(()=>"function"==typeof l?l({orientation:a,defaultChildren:null}):l,[l,a]),t.createElement(S,{content:l},e=>t.createElement(Y,{props:s,collection:e,tabsRef:i}))});function Y({props:s,tabsRef:i,collection:a}){let{orientation:o="horizontal"}=s,r=$({...s,collection:a,children:void 0}),{focusProps:d,isFocused:c,isFocusVisible:u}=y({within:!0}),b=e.useMemo(()=>({orientation:o,isFocusWithin:c,isFocusVisible:u}),[o,c,u]),f=g({...s,defaultClassName:"react-aria-Tabs",values:b}),h=l(s,{global:!0});return t.createElement(m.div,{...n(h,f,d),ref:i,slot:s.slot||void 0,"data-focused":c||void 0,"data-orientation":o,"data-focus-visible":u||void 0,"data-disabled":r.isDisabled||void 0},t.createElement(N,{values:[[U,s],[G,r]]},f.children))}const Z=e.forwardRef(function(s,i){return e.useContext(G)?t.createElement(_,{props:s,forwardedRef:i}):t.createElement(f,s)});function _({props:s,forwardedRef:i}){let a=e.useContext(G),{CollectionRoot:o}=e.useContext(C),{orientation:b="horizontal",keyboardActivation:f="automatic"}=E(U),h=p(i),{tabListProps:y}=function(t,s,i){let{orientation:l="horizontal",keyboardActivation:a="automatic"}=t,{collection:o,selectionManager:b,disabledKeys:f}=s,{direction:h}=r(),p=e.useMemo(()=>new B(o,h,l,f),[o,f,l,h]),{collectionProps:y}=d({ref:i,selectionManager:b,keyboardDelegate:p,selectOnFocus:"automatic"===a,disallowEmptySelection:!0,scrollRef:i,linkBehavior:"selection"}),v=c();A.set(s,v);let g=u({...t,id:v});return{tabListProps:{...n(y,g),role:"tablist","aria-orientation":l,tabIndex:void 0}}}({...s,orientation:b,keyboardActivation:f},a,h),v=g({...s,children:null,defaultClassName:"react-aria-TabList",values:{orientation:b,state:a}}),K=l(s,{global:!0});return delete K.id,t.createElement(m.div,{...n(K,v,y),ref:h,"data-orientation":b||void 0Line truncated
@@ -1 +0,0 @@
import{r as e,$ as t,j as s}from"./vendor-react-64fcanlc.js";import{dS as i,dQ as l,fP as a,eq as o,cu as n,fQ as r,bf as d,fR as c,ct as u,ey as b,e1 as f,e2 as h,e4 as p,cB as y,e6 as g,e8 as v,e9 as m,eg as K,d$ as S,e0 as x,fS as P,fT as D,e5 as C,eA as E,el as w,fU as F,fV as M,ea as N,fW as j,eo as k,ed as I,fX as R,dx as L,fY as V,fZ as T}from"./index-BgFj_VXE.js";import{a as H}from"./useGridSelectionCheckbox-BxnCShqN.js";import{f as z}from"./Select-CkiGmyVC.js";import{T as A}from"./Toolbar-CIBfeuEz.js";const B=new WeakMap;function O(e,t,s){if(!e)return"";return"string"==typeof t&&(t=t.replace(/\s+/g,"")),`${B.get(e)}-${s}-${t}`}class ${constructor(e,t,s,i=new Set){this.collection=e,this.flipDirection="rtl"===t,this.disabledKeys=i,this.tabDirection="horizontal"===s}getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){return this.disabledKeys.has(e)||!!this.collection.getItem(e)?.props?.isDisabled}getFirstKey(){let e=this.collection.getFirstKey();return null!=e&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return null!=e&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do{t=this.collection.getKeyAfter(t),null==t&&(t=this.collection.getFirstKey())}while(null!=t&&this.isDisabled(t)&&t!==e);return t}getPreviousKey(e){let t=e;do{t=this.collection.getKeyBefore(t),null==t&&(t=this.collection.getLastKey())}while(null!=t&&this.isDisabled(t)&&t!==e);return t}}function W(t){let s=function(t){let[s,i]=b(t.selectedKey,t.defaultSelectedKey??null,t.onSelectionChange),l=e.useMemo(()=>null!=s?[s]:[],[s]),{collection:a,disabledKeys:o,selectionManager:n}=z({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:l,onSelectionChange:e=>{if("all"===e)return;let l=e.values().next().value??null;l===s&&t.onSelectionChange&&t.onSelectionChange(l),i(l)}}),r=null!=s?a.getItem(s):null;return{collection:a,disabledKeys:o,selectionManager:n,selectedKey:s,setSelectedKey:i,selectedItem:r}}({...t,onSelectionChange:t.onSelectionChange?e=>{null!=e&&t.onSelectionChange?.(e)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:t.defaultSelectedKey??U(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set)??void 0}),{selectionManager:i,collection:l,selectedKey:a}=s,o=e.useRef(a);return e.useEffect(()=>{let e=a;null!=t.selectedKey||!i.isEmpty&&null!=e&&l.getItem(e)||(e=U(l,s.disabledKeys),null!=e&&i.setSelectedKeys([e])),(null!=e&&null==i.focusedKey||!i.isFocused&&e!==o.current)&&i.setFocusedKey(e),o.current=e}),{...s,isDisabled:t.isDisabled||!1}}function U(e,t){let s=null;if(e){for(s=e.getFirstKey();null!=s&&(t.has(s)||e.getItem(s)?.props?.isDisabled)&&s!==e.getLastKey();)s=e.getKeyAfter(s);null!=s&&(t.has(s)||e.getItem(s)?.props?.isDisabled)&&s===e.getLastKey()&&(s=e.getFirstKey())}return s}const Q=e.createContext(null),q=e.createContext(null),G=e.forwardRef(function(s,i){[s,i]=S(s,i,Q);let{children:l,orientation:a="horizontal"}=s;return l=e.useMemo(()=>"function"==typeof l?l({orientation:a,defaultChildren:null}):l,[l,a]),t.createElement(x,{content:l},e=>t.createElement(X,{props:s,collection:e,tabsRef:i}))});function X({props:s,tabsRef:i,collection:a}){let{orientation:o="horizontal"}=s,r=W({...s,collection:a,children:void 0}),{focusProps:d,isFocused:c,isFocusVisible:u}=y({within:!0}),b=e.useMemo(()=>({orientation:o,isFocusWithin:c,isFocusVisible:u}),[o,c,u]),f=v({...s,defaultClassName:"react-aria-Tabs",values:b}),h=l(s,{global:!0});return t.createElement(m.div,{...n(h,f,d),ref:i,slot:s.slot||void 0,"data-focused":c||void 0,"data-orientation":o,"data-focus-visible":u||void 0,"data-disabled":r.isDisabled||void 0},t.createElement(N,{values:[[Q,s],[q,r]]},f.children))}const Y=e.forwardRef(function(s,i){return e.useContext(q)?t.createElement(Z,{props:s,forwardedRef:i}):t.createElement(f,s)});function Z({props:s,forwardedRef:i}){let a=e.useContext(q),{CollectionRoot:o}=e.useContext(C),{orientation:b="horizontal",keyboardActivation:f="automatic"}=E(Q),h=p(i),{tabListProps:y}=function(t,s,i){let{orientation:l="horizontal",keyboardActivation:a="automatic"}=t,{collection:o,selectionManager:b,disabledKeys:f}=s,{direction:h}=d(),p=e.useMemo(()=>new $(o,h,l,f),[o,f,l,h]),{collectionProps:y}=c({ref:i,selectionManager:b,keyboardDelegate:p,selectOnFocus:"automatic"===a,disallowEmptySelection:!0,scrollRef:i,linkBehavior:"selection"}),g=u();B.set(s,g);let v=r({...t,id:g});return{tabListProps:{...n(y,v),role:"tablist","aria-orientation":l,tabIndex:void 0}}}({...s,orientation:b,keyboardActivation:f},a,h),g=v({...s,children:null,defaultClassName:"react-aria-TabList",values:{orientation:b,state:a}}),K=l(s,{global:!0});return delete K.id,t.createElement(m.div,{...n(K,g,y),ref:h,"datLine truncated
@@ -1 +1 @@
import{r as e,j as n,a as t}from"./vendor-react-64fcanlc.js";import{V as r,aB as l,G as s,fj as a,cw as c,fk as o,bJ as u}from"./index-BgFj_VXE.js";function i({children:e,tone:t,action:r}){return n.jsxs("span",{className:u("rp-tag",t),children:[n.jsx("span",{className:"rp-tag-label",children:e}),r]})}function g({label:e,children:t}){return n.jsx("div",{className:"rp-tags",role:"group","aria-label":e,children:t})}function h({href:e,children:t}){return n.jsx(s,{href:e,className:"rp-tag rp-tag-link",children:n.jsx("span",{className:"rp-tag-label",children:t})})}function f(e,n,t,r){const l=e=>e<=t+.01,s=e.reduce((e,n)=>[...e,e[e.length-1]+n+r],[0]);if(l(s[e.length]-r))return e.length;let a=e.length-1;for(;a>0&&!l(s[a]+n(e.length-a));)a--;return a}function d({count:t,label:r,names:l}){const[s,u]=e.useState(!1);return n.jsxs(a,{delay:400,isOpen:s,onOpenChange:u,shouldCloseOnPress:!1,children:[n.jsx(c,{className:"rp-tag rp-tag-more","aria-label":r,onPress:e=>u(n=>"touch"!==e.pointerType||!n),children:n.jsxs("span",{className:"rp-tag-label",children:["+",t]})}),n.jsx(o,{children:l})]})}const p=e=>n=>e.more[String(n).length-1],m=new Map;let b=null;function j(e){const n=e.filter(e=>null!==e);n.length&&t.flushSync(()=>n.forEach(e=>e()))}function x({label:t,items:s,more:a}){const c=r(),o=e.useRef(null),u=e.useRef(null),i=e.useRef(new Set),g=`${c}\n${s.map(e=>e.label).join("\n")}`,[x,y]=e.useState({key:g,count:null}),w=x.key===g?x.count:null;e.useLayoutEffect(()=>{const e=o.current;if(null!==w||!e?.getClientRects().length)return;const n=[...e.children].map(e=>e.getBoundingClientRect().width),t={key:g,tags:n.slice(0,s.length),more:n.slice(s.length),gap:Number.parseFloat(getComputedStyle(e).columnGap)||0};u.current=t,y({key:g,count:f(t.tags,p(t),e.getBoundingClientRect().width,t.gap)})},[x,g,w,s.length]),e.useLayoutEffect(()=>{const e=o.current;if(!e)return;const n=()=>y({key:g,count:null});m.set(e,{remeasure:n,read:()=>{const t=u.current;if(!e.getClientRects().length)return null;const r=[...e.children].filter(e=>!e.classList.contains("rp-tag-more"));if(t?.key!==g||r.some((e,n)=>Math.abs(e.getBoundingClientRect().width-t.tags[n])>.5))return n;const l=f(t.tags,p(t),e.getBoundingClientRect().width,t.gap);return l===w?null:()=>y({key:g,count:l})}});const t=(b||(b=new ResizeObserver(e=>{j([...new Set(e.map(e=>e.target.closest(".rp-tags[data-fit]")))].map(e=>(e&&m.get(e)?.read())??null))}),document.fonts?.addEventListener("loadingdone",()=>j([...m.values()].map(e=>e.remeasure)))),b),r=new Set([e,...e.children]);for(const l of i.current)r.has(l)||t.unobserve(l);for(const l of r)i.current.has(l)||t.observe(l);i.current=r}),e.useLayoutEffect(()=>{const e=o.current,n=i;return()=>{e&&m.delete(e);for(const e of n.current)b?.unobserve(e);n.current=new Set}},[]);const R=l(c,s.map(e=>e.label)),S=null===w?0:s.length-w,k=null===w&&s.length?Array.from({length:String(s.length).length},(e,n)=>10**(n+1)-1):[];return n.jsxs("div",{ref:o,className:"rp-tags",role:"group","aria-label":t,"data-fit":"",children:[s.slice(0,w??s.length).map(e=>n.jsx(h,{href:e.href,children:e.label},e.id)),k.map(e=>n.jsx(d,{count:e,label:a(e),names:R},e)),S>0&&n.jsx(d,{count:S,label:a(S),names:R})]})}export{x as F,h as L,g as T,i as a};
import{r as e,j as n,a as t}from"./vendor-react-64fcanlc.js";import{P as r,aE as l,D as s,ev as a,c$ as c,ew as o,bZ as u}from"./index-CmbH0woS.js";function i({children:e,tone:t,action:r}){return n.jsxs("span",{className:u("rp-tag",t),children:[n.jsx("span",{className:"rp-tag-label",children:e}),r]})}function g({label:e,children:t}){return n.jsx("div",{className:"rp-tags",role:"group","aria-label":e,children:t})}function h({href:e,children:t}){return n.jsx(s,{href:e,className:"rp-tag rp-tag-link",children:n.jsx("span",{className:"rp-tag-label",children:t})})}function d(e,n,t,r){const l=e=>e<=t+.01,s=e.reduce((e,n)=>[...e,e[e.length-1]+n+r],[0]);if(l(s[e.length]-r))return e.length;let a=e.length-1;for(;a>0&&!l(s[a]+n(e.length-a));)a--;return a}function f({count:t,label:r,names:l}){const[s,u]=e.useState(!1);return n.jsxs(a,{delay:400,isOpen:s,onOpenChange:u,shouldCloseOnPress:!1,children:[n.jsx(c,{className:"rp-tag rp-tag-more","aria-label":r,onPress:e=>u(n=>"touch"!==e.pointerType||!n),children:n.jsxs("span",{className:"rp-tag-label",children:["+",t]})}),n.jsx(o,{children:l})]})}const p=e=>n=>e.more[String(n).length-1],m=new Map;let b=null;function j(e){const n=e.filter(e=>null!==e);n.length&&t.flushSync(()=>n.forEach(e=>e()))}function x({label:t,items:s,more:a}){const c=r(),o=e.useRef(null),u=e.useRef(null),i=e.useRef(new Set),g=`${c}\n${s.map(e=>e.label).join("\n")}`,[x,y]=e.useState({key:g,count:null}),w=x.key===g?x.count:null;e.useLayoutEffect(()=>{const e=o.current;if(null!==w||!e?.getClientRects().length)return;const n=[...e.children].map(e=>e.getBoundingClientRect().width),t={key:g,tags:n.slice(0,s.length),more:n.slice(s.length),gap:Number.parseFloat(getComputedStyle(e).columnGap)||0};u.current=t,y({key:g,count:d(t.tags,p(t),e.getBoundingClientRect().width,t.gap)})},[x,g,w,s.length]),e.useLayoutEffect(()=>{const e=o.current;if(!e)return;const n=()=>y({key:g,count:null});m.set(e,{remeasure:n,read:()=>{const t=u.current;if(!e.getClientRects().length)return null;const r=[...e.children].filter(e=>!e.classList.contains("rp-tag-more"));if(t?.key!==g||r.some((e,n)=>Math.abs(e.getBoundingClientRect().width-t.tags[n])>.5))return n;const l=d(t.tags,p(t),e.getBoundingClientRect().width,t.gap);return l===w?null:()=>y({key:g,count:l})}});const t=(b||(b=new ResizeObserver(e=>{j([...new Set(e.map(e=>e.target.closest(".rp-tags[data-fit]")))].map(e=>(e&&m.get(e)?.read())??null))}),document.fonts?.addEventListener("loadingdone",()=>j([...m.values()].map(e=>e.remeasure)))),b),r=new Set([e,...e.children]);for(const l of i.current)r.has(l)||t.unobserve(l);for(const l of r)i.current.has(l)||t.observe(l);i.current=r}),e.useLayoutEffect(()=>{const e=o.current,n=i;return()=>{e&&m.delete(e);for(const e of n.current)b?.unobserve(e);n.current=new Set}},[]);const v=l(c,s.map(e=>e.label)),R=null===w?0:s.length-w,S=null===w&&s.length?Array.from({length:String(s.length).length},(e,n)=>10**(n+1)-1):[];return n.jsxs("div",{ref:o,className:"rp-tags",role:"group","aria-label":t,"data-fit":"",children:[s.slice(0,w??s.length).map(e=>n.jsx(h,{href:e.href,children:e.label},e.id)),S.map(e=>n.jsx(f,{count:e,label:a(e),names:v},e)),R>0&&n.jsx(f,{count:R,label:a(R),names:v})]})}export{x as F,h as L,g as T,i as a};
@@ -1 +0,0 @@
import{j as r}from"./vendor-react-64fcanlc.js";import{r as s,l as a}from"./format-s2EANuUb.js";import{aC as o,V as t,gb as e,T as i}from"./index-BgFj_VXE.js";function m({at:m}){const n=o[t()],f=e();return r.jsx(i,{text:m?a(m,n):void 0,children:s(m,n,f)})}export{m as T};
@@ -0,0 +1 @@
import{j as a}from"./vendor-react-64fcanlc.js";import{aF as s,P as r,fq as t,T as o,fp as e,am as n}from"./index-CmbH0woS.js";function i({at:i}){const f=s[r()],m=t();return a.jsx(o,{text:i?n(i,f):void 0,children:e(i,f,m)})}export{i as T};
@@ -0,0 +1 @@
import{j as a}from"./vendor-react-64fcanlc.js";import{bZ as r}from"./index-CmbH0woS.js";function o({page:o,className:e,children:s,...t}){return a.jsx("div",{...t,className:r("rp-toolbar",e),"data-page-toolbar":o||void 0,children:s})}export{o as T};
@@ -1 +0,0 @@
import{j as a}from"./vendor-react-64fcanlc.js";import{bJ as r,W as e}from"./index-BgFj_VXE.js";function o({page:o,className:s,children:t,...i}){const n=a.jsx("div",{...i,className:r("rp-toolbar",s),"data-page-toolbar":o||void 0,children:t});return o?a.jsx(e,{value:"L",children:n}):n}export{o as T};
@@ -1 +1 @@
import{gm as t,bf as e,cc as i,cb as n,gx as s,gy as o,dW as r,ck as l,cl as a,gt as h,gz as d,e5 as u,gA as c}from"./index-BgFj_VXE.js";import{r as y,$ as g,a as f}from"./vendor-react-64fcanlc.js";class p{constructor(t=0,e=0){this.x=t,this.y=e}copy(){return new p(this.x,this.y)}equals(t){return this.x===t.x&&this.y===t.y}isOrigin(){return 0===this.x&&0===this.y}}class w{constructor(t=0,e=0,i=0,n=0){this.x=t,this.y=e,this.width=i,this.height=n}get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new p(this.x,this.y)}get topRight(){return new p(this.maxX,this.y)}get bottomLeft(){return new p(this.x,this.maxY)}get bottomRight(){return new p(this.maxX,this.maxY)}intersects(t){return this.area>0&&t.area>0&&this.x<=t.x+t.width&&t.x<=this.x+this.width&&this.y<=t.y+t.height&&t.y<=this.y+this.height}containsRect(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.maxX&&this.maxY>=t.maxY}containsPoint(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.x&&this.maxY>=t.y}getCornerInRect(t){for(let e of["topLeft","topRight","bottomLeft","bottomRight"])if(t.containsPoint(this[e]))return e;return null}equals(t){return t.x===this.x&&t.y===this.y&&t.width===this.width&&t.height===this.height}pointEquals(t){return this.x===t.x&&this.y===t.y}sizeEquals(t){return this.width===t.width&&this.height===t.height}union(t){let e=Math.min(this.x,t.x),i=Math.min(this.y,t.y),n=Math.max(this.maxX,t.maxX)-e,s=Math.max(this.maxY,t.maxY)-i;return new w(e,i,n,s)}intersection(t){if(!this.intersects(t))return new w(0,0,0,0);let e=Math.max(this.x,t.x),i=Math.max(this.y,t.y);return new w(e,i,Math.min(this.maxX,t.maxX)-e,Math.min(this.maxY,t.maxY)-i)}copy(){return new w(this.x,this.y,this.width,this.height)}}class z{constructor(t=0,e=0){this.width=Math.max(t,0),this.height=Math.max(e,0)}copy(){return new z(this.width,this.height)}equals(t){return this.width===t.width&&this.height===t.height}get area(){return this.width*this.height}}let v=0;class m{constructor(t,e){this.virtualizer=t,this.key=++v,this.viewType=e,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}getReusableView(t){let e=this.reusableViews.get(t);return e&&e.length>0?e.shift():new b(this.virtualizer,this,t)}reuseChild(t){t.prepareForReuse();let e=this.reusableViews.get(t.viewType);e||(e=[],this.reusableViews.set(t.viewType,e)),e.push(t)}}class S extends m{constructor(t){super(t,"root")}}class b extends m{constructor(t,e,i){super(t,i),this.parent=e}}class x{setVisibleRect(t){let e=performance.now()-this.startTime;e<500&&(t.x!==this.visibleRect.x&&e>0&&(this.velocity.x=(t.x-this.visibleRect.x)/e),t.y!==this.visibleRect.y&&e>0&&(this.velocity.y=(t.y-this.visibleRect.y)/e)),this.startTime=performance.now(),this.visibleRect=t}getOverscannedRect(){let t=this.visibleRect.copy(),e=this.visibleRect.height/3;t.height+=e,this.velocity.y<0&&(t.y-=e);let i=this.visibleRect.width/3;return t.width+=i,this.velocity.x<0&&(t.x-=i),t}constructor(){this.startTime=0,this.velocity=new p(0,0),this.visibleRect=new w}}function I(t){return"x"===t?"width":"height"}function R(t,e,i,n,s){if("start"===i)return t[n]<=s;let o=I(n);return e[o]-(t[n]+t[o])<=s}function C(t,e,i,n,s,o,r,l,a,h){let d=t=>"x"===e?new w(t,a.y,a.width,a.height):new w(a.x,t,a.width,a.height);if(i){let t=function(t,e,i,n,s){let o=i(t.key);if(!o)return null;let r=o.rect[t.corner][e]-n[e]-t.offset;if(0===r)return null;let l=n[e]+r,a=I(e),h=Math.max(0,s[a]-n[a]),d=Math.max(0,Math.min(h,l));return d!==n[e]?d:null}(i,e,l,a,h);if(null!=t)return d(t)}if(n&&!s&&(!o||r>0)){let i=d(function(t,e,i,n){if("start"===t)return 0;let s=I(e);return Math.max(0,i[s]-n[s])}(t,e,h,a));return i.equals(a)?null:i}return null}class k{reset(){this.hasSnappedToEdge=!1,this.hadEstimatedVisibleItems=!1,this.wasNearAnchorEdge=!1}captureBeforeLayout(t,e,i){return t?function(t,e,i,n,s=()=>!0){let o=I(e),r=null;for(let[l,a]of n){if(!a||!s(a))continue;let n=a.rect.intersection(i)[o];if(a.rect.area>0&&n>=4){let n=a.rect.getCornerInRect(i)??"topLeft",s=a.rect[n][e]-i[e];(!r||("end"===t?s<r.offset:s>r.offset))&&(r={key:l,corner:n,offset:s})}}return r}(t.edge,t.axis,i,e,t.isAnchorable):null}resolveAfterLayout(t){let{anchorInfo:e,anchor:i,postLayoutInfos:n,previousVisibleRect:s,previousContentSize:o,contentSize:r,itemSizeChanged:l,isScrolling:a,getLayoutInfo:h}=t;if(!e)return null;let d=this.hadEstimatedVisibleItems,u=this.wasNearAnchorEdge,c=!1;for(let z of n.values())if(z.estimatedSize){c=!0;break}if(this.hadEstimatedVisibleItems=c,d||(this.wasNearAnchorEdge=R(s,o,e.edge,e.axis,e.threshold)),0===s.area)return null;let y="x"===e.axis?"width":"height",g=r[y]-o[y],f=!this.hasSnappedToEdge;if(this.hasSnappedToEdge=!0,!f&&0===g&&!l)return null;let p=f||d&&u||R(s,o,e.edge,e.axis,e.threshold);d||(this.wasNearAnchorEdge=p);let w=f||d&&u?null:i;return C(e.edge,e.axis,w,p,a,l,g,h,sLine truncated
import{fA as t,bs as e,dx as i,fF as n,gg as s,gh as o,fM as r,fT as l,g7 as a,g9 as h,gi as d,f1 as u,gj as c}from"./index-CmbH0woS.js";import{r as y,$ as g,a as f}from"./vendor-react-64fcanlc.js";class p{constructor(t=0,e=0){this.x=t,this.y=e}copy(){return new p(this.x,this.y)}equals(t){return this.x===t.x&&this.y===t.y}isOrigin(){return 0===this.x&&0===this.y}}class w{constructor(t=0,e=0,i=0,n=0){this.x=t,this.y=e,this.width=i,this.height=n}get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new p(this.x,this.y)}get topRight(){return new p(this.maxX,this.y)}get bottomLeft(){return new p(this.x,this.maxY)}get bottomRight(){return new p(this.maxX,this.maxY)}intersects(t){return this.area>0&&t.area>0&&this.x<=t.x+t.width&&t.x<=this.x+this.width&&this.y<=t.y+t.height&&t.y<=this.y+this.height}containsRect(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.maxX&&this.maxY>=t.maxY}containsPoint(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.x&&this.maxY>=t.y}getCornerInRect(t){for(let e of["topLeft","topRight","bottomLeft","bottomRight"])if(t.containsPoint(this[e]))return e;return null}equals(t){return t.x===this.x&&t.y===this.y&&t.width===this.width&&t.height===this.height}pointEquals(t){return this.x===t.x&&this.y===t.y}sizeEquals(t){return this.width===t.width&&this.height===t.height}union(t){let e=Math.min(this.x,t.x),i=Math.min(this.y,t.y),n=Math.max(this.maxX,t.maxX)-e,s=Math.max(this.maxY,t.maxY)-i;return new w(e,i,n,s)}intersection(t){if(!this.intersects(t))return new w(0,0,0,0);let e=Math.max(this.x,t.x),i=Math.max(this.y,t.y);return new w(e,i,Math.min(this.maxX,t.maxX)-e,Math.min(this.maxY,t.maxY)-i)}copy(){return new w(this.x,this.y,this.width,this.height)}}class z{constructor(t=0,e=0){this.width=Math.max(t,0),this.height=Math.max(e,0)}copy(){return new z(this.width,this.height)}equals(t){return this.width===t.width&&this.height===t.height}get area(){return this.width*this.height}}let v=0;class m{constructor(t,e){this.virtualizer=t,this.key=++v,this.viewType=e,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}getReusableView(t){let e=this.reusableViews.get(t);return e&&e.length>0?e.shift():new b(this.virtualizer,this,t)}reuseChild(t){t.prepareForReuse();let e=this.reusableViews.get(t.viewType);e||(e=[],this.reusableViews.set(t.viewType,e)),e.push(t)}}class S extends m{constructor(t){super(t,"root")}}class b extends m{constructor(t,e,i){super(t,i),this.parent=e}}class x{setVisibleRect(t){let e=performance.now()-this.startTime;e<500&&(t.x!==this.visibleRect.x&&e>0&&(this.velocity.x=(t.x-this.visibleRect.x)/e),t.y!==this.visibleRect.y&&e>0&&(this.velocity.y=(t.y-this.visibleRect.y)/e)),this.startTime=performance.now(),this.visibleRect=t}getOverscannedRect(){let t=this.visibleRect.copy(),e=this.visibleRect.height/3;t.height+=e,this.velocity.y<0&&(t.y-=e);let i=this.visibleRect.width/3;return t.width+=i,this.velocity.x<0&&(t.x-=i),t}constructor(){this.startTime=0,this.velocity=new p(0,0),this.visibleRect=new w}}function I(t){return"x"===t?"width":"height"}function R(t,e,i,n,s){if("start"===i)return t[n]<=s;let o=I(n);return e[o]-(t[n]+t[o])<=s}function C(t,e,i,n,s,o,r,l,a,h){let d=t=>"x"===e?new w(t,a.y,a.width,a.height):new w(a.x,t,a.width,a.height);if(i){let t=function(t,e,i,n,s){let o=i(t.key);if(!o)return null;let r=o.rect[t.corner][e]-n[e]-t.offset;if(0===r)return null;let l=n[e]+r,a=I(e),h=Math.max(0,s[a]-n[a]),d=Math.max(0,Math.min(h,l));return d!==n[e]?d:null}(i,e,l,a,h);if(null!=t)return d(t)}if(n&&!s&&(!o||r>0)){let i=d(function(t,e,i,n){if("start"===t)return 0;let s=I(e);return Math.max(0,i[s]-n[s])}(t,e,h,a));return i.equals(a)?null:i}return null}class k{reset(){this.hasSnappedToEdge=!1,this.hadEstimatedVisibleItems=!1,this.wasNearAnchorEdge=!1}captureBeforeLayout(t,e,i){return t?function(t,e,i,n,s=()=>!0){let o=I(e),r=null;for(let[l,a]of n){if(!a||!s(a))continue;let n=a.rect.intersection(i)[o];if(a.rect.area>0&&n>=4){let n=a.rect.getCornerInRect(i)??"topLeft",s=a.rect[n][e]-i[e];(!r||("end"===t?s<r.offset:s>r.offset))&&(r={key:l,corner:n,offset:s})}}return r}(t.edge,t.axis,i,e,t.isAnchorable):null}resolveAfterLayout(t){let{anchorInfo:e,anchor:i,postLayoutInfos:n,previousVisibleRect:s,previousContentSize:o,contentSize:r,itemSizeChanged:l,isScrolling:a,getLayoutInfo:h}=t;if(!e)return null;let d=this.hadEstimatedVisibleItems,u=this.wasNearAnchorEdge,c=!1;for(let z of n.values())if(z.estimatedSize){c=!0;break}if(this.hadEstimatedVisibleItems=c,d||(this.wasNearAnchorEdge=R(s,o,e.edge,e.axis,e.threshold)),0===s.area)return null;let y="x"===e.axis?"width":"height",g=r[y]-o[y],f=!this.hasSnappedToEdge;if(this.hasSnappedToEdge=!0,!f&&0===g&&!l)return null;let p=f||d&&u||R(s,o,e.edge,e.axis,e.threshold);d||(this.wasNearAnchorEdge=p);let w=f||d&&u?null:i;return C(e.edge,e.axis,w,p,a,l,g,h,sLine truncated
@@ -1 +0,0 @@
.rp-page-heading{justify-content:space-between;align-items:center;gap:var(--rp-space-3);min-inline-size:0;min-block-size:var(--rp-control-lg);flex-wrap:wrap;display:flex}.rp-page-actions{align-items:center;gap:var(--rp-space-2);flex-wrap:wrap;justify-content:flex-end;min-inline-size:0;margin-inline-start:auto;display:flex}.rp-page-actions>*{flex:none}.rp-dashboard{gap:var(--rp-space-6);flex-direction:column;display:flex}.rp-dashboard-cell{flex-direction:column;min-inline-size:0;display:flex}.rp-dashboard-cell>.rp-card,.rp-dashboard-body>.rp-card{flex:1}.rp-module-content{min-inline-size:0;container-type:inline-size}.rp-module-actions{gap:var(--rp-space-2);flex-wrap:wrap;align-self:flex-start;align-items:center;display:flex}.rp-module-actions>button{flex:none}.rp-module-option{gap:var(--rp-space-2) var(--rp-space-3);flex-wrap:wrap;align-items:center;display:flex}.rp-module-option>:last-child{flex:0 auto;max-inline-size:100%}.rp-module-content .rp-kv .k,.rp-module-content .rp-kv .v{white-space:normal;overflow-wrap:normal;min-inline-size:0}.rp-module-content .rp-donut .r .n{text-overflow:clip;white-space:normal;overflow-wrap:normal;min-inline-size:0;overflow:visible}@container (width<=480px){.rp-module-content .rp-markerplot .axis,.rp-module-content .rp-markerplot .row{grid-template-columns:minmax(var(--rp-space-16), 1fr) minmax(var(--rp-space-16), 1fr) auto;gap:var(--rp-space-2)}.rp-module-content .rp-markerplot .row .track,.rp-module-content .rp-markerplot .axis .scale{grid-area:auto}.rp-module-content .rp-markerplot .axis>span:empty{display:block}.rp-module-content .rp-markerplot .scale>span:not(:first-child,:last-child){display:none}}@container (width<=380px){.rp-module-content .rp-donut .lst{flex-basis:100%}.rp-module-content .rp-donut .r{grid-template-columns:var(--rp-space-2) minmax(0, 1fr) calc(var(--rp-space-8) + var(--rp-space-1));gap:var(--rp-space-1);display:grid}.rp-module-content .rp-donut .r .n{grid-column:2/-1}.rp-module-content .rp-donut .r>span:not([class]){grid-column:2}}.rp-module-content .rp-donut .r{flex-shrink:0}.rp-module-content .rp-markerplot .note{overflow-wrap:normal}.rp-module-content[data-size=small] .rp-bar .top{flex-direction:column;align-items:start}.rp-module-content[data-size=small] .rp-donut .box{aspect-ratio:1;block-size:auto;max-inline-size:100%}.rp-module-option{flex-direction:column;align-items:start}.rp-module-inspector{gap:var(--rp-space-4);flex-direction:column;display:flex}.rp-dash-section{--rp-dash-gap:var(--rp-space-3);gap:var(--rp-dash-gap);grid-template-columns:minmax(0,1fr);align-items:stretch;display:grid}.rp-dash-section>*{container:rp-tile/inline-size}.rp-dash-section[data-profile=metrics],.rp-dash-section[data-profile=extensions]{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-dash-section[data-profile=metrics]>:is([data-foot=end],[data-size=large]){grid-column:1/-1}@media (width<=599.98px){.rp-dash-section[data-profile=extensions]{grid-template-columns:minmax(0,1fr)}}@media (width>=600px) and (width<=1279.98px){.rp-dash-section[data-profile=extensions]>[data-size=large]{grid-column:1/-1}}@media (width>=640px){.rp-dash-section[data-profile=quick]{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-dash-section[data-profile=quick]>[data-foot=lead]{grid-column:1/-1}}@media (width>=1024px){.rp-dash-section[data-profile=traffic]{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}.rp-dash-section[data-profile=details]{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-dash-section[data-profile=details]>:is([data-foot=end],[data-size=large]){grid-column:1/-1}}@media (width>=1100px){.rp-dash-section[data-profile=quick]{grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr))}.rp-dash-section[data-profile=quick]>[data-foot=lead]{grid-column:auto}.rp-dash-section[data-profile=metrics]{grid-template-columns:repeat(6,minmax(0,1fr))}.rp-dash-section[data-profile=metrics]>*{grid-column:span 2}.rp-dash-section[data-profile=metrics]>:is([data-foot=tail],[data-foot=end]){grid-column:span 3}.rp-dash-section[data-profile=metrics]>[data-size=large]{grid-column:span 4}}@media (width>=1280px){.rp-dash-section[data-profile=metrics]{grid-template-columns:repeat(5,minmax(0,1fr))}.rp-dash-section[data-profile=metrics]>:is(*,[data-foot]){grid-column:span 1}.rp-dash-section[data-profile=metrics]>[data-size=large]{grid-column:span 2}.rp-dash-section:is([data-profile=traffic],[data-profile=details],[data-profile=extensions]){grid-template-columns:repeat(12,minmax(0,1fr))}.rp-dash-section:is([data-profile=traffic],[data-profile=details],[data-profile=extensions])>*,.rp-dash-section[data-profile=details]>[data-foot=end]{grid-column:span 4}.rp-dash-section[data-profile=traffic]>:nth-child(odd of .rp-dashboard-cell),.rp-dash-section:is([data-profile=details],[data-profile=extensions])>[data-size=large]{grid-column:span 8}.rp-dash-section[data-profile=extensions]>[data-size=small]{grid-column:span 2}}.rp-dash-section[data-profile]>.rp-dashboard-cell[data-size=wide]{grid-column:1/-1}.rp-dLine truncated
@@ -0,0 +1,2 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AreaChart-BzUHpDKh.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-CmbH0woS.js","./index-suuKbZt8.css","./AreaCurve-DQSHOSpG.js","./array-C0VuvQyb.js","./ActionGroup-D3mQjUsw.js","./Select-BcN72K3H.js","./Sparkline-CZuc0EWA.js","./Donut-DQsAiHCN.js","./Editors-B0Mv3GSe.js","./GridList-ByMoT8kr.js","./Checkbox-f7Je53QZ.js","./Delete-CQeLz6oG.js","./Editors-rPgk_VZK.css","./index-1QTpRTgX.js","./geodata-X0pHz03D.js","./auth-FMvOBMnI.js","./auth-aj_VNWTT.js"])))=>i.map(i=>d[i]);
import{r as e,j as t,a as n}from"./vendor-react-64fcanlc.js";import{i as a,s as r,q as s,u as o,b as i,a as l,r as c,c as d,d as u,L as m,e as p,f as h,g as f,h as g,j as b,n as v,k as x,o as y,w,l as j,m as k,p as _,t as M,v as N,x as S,y as C,z as L,R as A,A as P,I as $,B as E,C as O,D as R,_ as z,N as T,T as H,E as D,F as I,G as q,H as B,J as F,K as W,M as G,S as U,O as V,P as K,Q as Z,U as J,V as X,W as Y,X as Q,Y as ee,Z as te,$ as ne,a0 as ae,a1 as re,a2 as se,a3 as oe,a4 as ie,a5 as le,a6 as ce,a7 as de,a8 as ue,a9 as me,aa as pe,ab as he,ac as fe,ad as ge,ae as be,af as ve,ag as xe,ah as ye,ai as we,aj as je,ak as ke,al as _e,am as Me,an as Ne,ao as Se,ap as Ce,aq as Le,ar as Ae,as as Pe,at as $e,au as Ee,av as Oe,aw as Re,ax as ze,ay as Te,az as He,aA as De,aB as Ie,aC as qe,aD as Be,aE as Fe,aF as We,aG as Ge,aH as Ue,aI as Ve,aJ as Ke,aK as Ze,aL as Je,aM as Xe,aN as Ye,aO as Qe,aP as et,aQ as tt,aR as nt,aS as at,aT as rt,aU as st,aV as ot,aW as it,aX as lt,aY as ct,aZ as dt,a_ as ut,a$ as mt,b0 as pt,b1 as ht,b2 as ft,b3 as gt,b4 as bt,b5 as vt,b6 as xt,b7 as yt,b8 as wt,b9 as jt,ba as kt,bb as _t,bc as Mt,bd as Nt,be as St,bf as Ct,bg as Lt,bh as At,bi as Pt,bj as $t,bk as Et,bl as Ot,bm as Rt,bn as zt,bo as Tt,bp as Ht,bq as Dt,br as It,bs as qt,bt as Bt,bu as Ft,bv as Wt,bw as Gt,bx as Ut,by as Vt,bz as Kt,bA as Zt,bB as Jt,bC as Xt,bD as Yt,bE as Qt,bF as en,bG as tn,bH as nn,bI as an,bJ as rn,bK as sn,bL as on,bM as ln,bN as cn,bO as dn,bP as un,bQ as mn,bR as pn}from"./index-CmbH0woS.js";import{W as hn,S as fn,u as gn,e as bn,l as vn,a as xn,b as yn,c as wn,d as jn,V as kn,C as _n,$ as Mn,f as Nn,g as Sn,M as Cn}from"./ActionGroup-D3mQjUsw.js";const Ln={blockAds:!1,blockQuic:!0,networkManagerDirect:!0},An=["# NetworkManager","pname(NetworkManager) -> direct"],Pn=["# dae presets: the LAN and multicast stay off the proxy","dip(224.0.0.0/3, 'ff00::/8') -> direct","dip(geoip:private) -> direct"],$n=["# Block UDP/443","l4proto(udp) && dport(443) -> block"],En=[...An,...Pn,...$n],On=["# Ads","domain(geosite:category-ads-all) -> block"],Rn=["# Google China services and mainland games","domain(geosite:google-cn, geosite:category-games@cn) -> direct"],zn=["# Mainland China","domain(geosite:cn) -> direct","dip(geoip:cn) -> direct"],Tn=e=>["# Telegram",`domain(geosite:telegram) -> ${e}`,`dip(geoip:telegram) -> ${e}`],Hn=e=>["# Overseas media",`domain(geosite:youtube, geosite:netflix, geosite:disney, geosite:hbo, geosite:primevideo, geosite:twitch, geosite:spotify) -> ${e}`],Dn=e=>["# GFW list",`domain(geosite:gfw) -> ${e}`],In="filter: !name('direct', 'block')",qn=(e,t,n,a=n[0])=>({name:e,label:t,lines:[`filter: group(${n.map(s).join(", ")})`,In,"policy: select",`default: ${s(a)}`]}),Bn=(e,t,n,a,r)=>({name:e,label:t,flag:n,lines:[`filter: name(regex: ${s(a)})${r?` && !name(regex: ${s(r)})`:""}`,"policy: min_moving_avg"]}),Fn={proxy:"rule.template.group.proxy",auto:"rule.template.group.auto",hk:["rule.template.group.hk","🇭🇰","港|HK|Hong Kong|HongKong"],jp:["rule.template.group.jp","🇯🇵","日|JP|Japan|Tokyo"],us:["rule.template.group.us","🇺🇸","美|US|United States|America"],tw:["rule.template.group.tw","🇹🇼","台|臺|TW|Taiwan"],sg:["rule.template.group.sg","🇸🇬","新加坡|獅城|狮城|SG|Singapore"],kr:["rule.template.group.kr","🇰🇷","韓|韩|KR|Korea"],cn:["rule.template.group.cn","🇨🇳",String.raw`(?i)回国|回國|中国|中國|大陆|大陸|(?:^|[^A-Za-z])(?:China|Mainland|CN)(?:[^A-Za-z]|$)`,String.raw`(?i)香港|澳门|澳門|台湾|台灣|臺灣|(?:^|[^A-Za-z])(?:HK|MO|TW)(?:[^A-Za-z]|$)|Hong ?Kong|Macau|Macao|Taiwan`],telegram:"rule.template.group.telegram",media:"rule.template.group.media",apple:"rule.template.group.apple",ai:"rule.template.group.ai",youtube:"rule.template.group.youtube",netflix:"rule.template.group.netflix",bahamut:"rule.template.group.bahamut"},Wn=qn("proxy",Fn.proxy,["auto"]),Gn={name:"auto",label:Fn.auto,lines:[In,"policy: min_moving_avg"]},Un=["hk","jp","us","tw","sg","kr"].map(e=>Bn(e,Fn[e][0],Fn[e][1],Fn[e][2])),Vn=[...Un,Bn("cn",...Fn.cn)],Kn=(e,t,n=["proxy","auto"],a)=>qn(e,t,n,a),Zn={global:{rules:[...En],fallback:"{group}",groups:[]},bypass:{rules:[...En,...Rn,...zn],fallback:"{group}",groups:[]},gfw:{rules:[...En,...Tn("{group}"),...Dn("{group}")],fallback:"direct",groups:[]},homebound:{rules:[...En,"# Mainland China","domain(geosite:cn) -> cn","dip(geoip:cn) -> cn"],fallback:"direct",groups:[Vn.at(-1)]},single:{rules:[...En,...Rn,...Tn("proxy"),...Hn("proxy"),...Dn("proxy"),...zn],fallback:"proxy",groups:[Wn,Gn]},services:{rules:[...En,...Rn,"# Microsoft","domain(geosite:microsoft) -> direct","# Apple","domain(geosite:apple) -> apple",...Tn("telegram"),...Hn("media"),...Dn("proxy"),...zn],fallback:"proxy",groups:[Wn,Gn,Kn("telegram",Fn.telegram),Kn("media",Fn.media),Kn("apple",Fn.apple)]},regions:{rules:[...En,...Rn,"# Microsoft","domain(geosite:microsoft) -> direct","# Apple","domain(geosite:apple) -> direct",...Tn("telegLine truncated
@@ -1,2 +0,0 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AreaChart-8u_BHC3w.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-BgFj_VXE.js","./index-h-bbwFHc.css","./format-s2EANuUb.js","./AreaCurve-DQSHOSpG.js","./array-C0VuvQyb.js","./logs-BxISynQ4.js","./Select-CkiGmyVC.js","./Sparkline-B6w2i-1G.js","./Donut-ICRrmfL0.js","./Editors-CF-H0sca.js","./GridList-BUQihjaB.js","./useGridSelectionCheckbox-BxnCShqN.js","./Delete-DA-ArqRQ.js","./Editors-BWyc5snq.css","./index-D3-KABFr.js","./geodata-X0pHz03D.js","./auth-9NIU4RkK.js","./auth-B7tMStu6.js"])))=>i.map(i=>d[i]);
import{r as e,j as t,a as n}from"./vendor-react-64fcanlc.js";import{i as a,s as r,q as s,u as o,b as i,a as l,r as c,c as d,d as u,L as m,e as p,f as h,g as f,h as g,j as b,n as x,k as v,o as y,w,l as j,m as k,p as _,t as M,v as N,x as S,y as C,z as A,A as L,B as P,C as $,R,D as E,I as O,E as z,F as T,G as D,_ as I,N as H,T as q,H as B,J as F,K as W,M as G,O as U,P as V,Q as K,S as Z,U as J,V as X,W as Y,X as Q,Y as ee,Z as te,$ as ne,a0 as ae,a1 as re,a2 as se,a3 as oe,a4 as ie,a5 as le,a6 as ce,a7 as de,a8 as ue,a9 as me,aa as pe,ab as he,ac as fe,ad as ge,ae as be,af as xe,ag as ve,ah as ye,ai as we,aj as je,ak as ke,al as _e,am as Me,an as Ne,ao as Se,ap as Ce,aq as Ae,ar as Le,as as Pe,at as $e,au as Re,av as Ee,aw as Oe,ax as ze,ay as Te,az as De,aA as Ie,aB as He,aC as qe,aD as Be,aE as Fe,aF as We,aG as Ge,aH as Ue,aI as Ve,aJ as Ke,aK as Ze,aL as Je,aM as Xe,aN as Ye,aO as Qe,aP as et,aQ as tt,aR as nt,aS as at,aT as rt,aU as st,aV as ot,aW as it,aX as lt,aY as ct,aZ as dt,a_ as ut,a$ as mt,b0 as pt,b1 as ht,b2 as ft,b3 as gt,b4 as bt,b5 as xt,b6 as vt,b7 as yt,b8 as wt,b9 as jt,ba as kt,bb as _t,bc as Mt,bd as Nt,be as St,bf as Ct,bg as At,bh as Lt,bi as Pt,bj as $t,bk as Rt,bl as Et,bm as Ot,bn as zt,bo as Tt,bp as Dt,bq as It,br as Ht,bs as qt,bt as Bt,bu as Ft,bv as Wt,bw as Gt,bx as Ut,by as Vt,bz as Kt,bA as Zt,bB as Jt}from"./index-BgFj_VXE.js";import{W as Xt,S as Yt,u as Qt,e as en,l as tn,a as nn,b as an,c as rn,d as sn,C as on,$ as ln,f as cn,g as dn,M as un}from"./logs-BxISynQ4.js";import{f as mn,a as pn,b as hn,l as fn,c as gn,d as bn,e as xn,g as vn}from"./format-s2EANuUb.js";const yn={blockAds:!1,blockQuic:!0,networkManagerDirect:!0},wn=["# NetworkManager","pname(NetworkManager) -> direct"],jn=["# dae presets: the LAN and multicast stay off the proxy","dip(224.0.0.0/3, 'ff00::/8') -> direct","dip(geoip:private) -> direct"],kn=["# Block UDP/443","l4proto(udp) && dport(443) -> block"],_n=[...wn,...jn,...kn],Mn=["# Ads","domain(geosite:category-ads-all) -> block"],Nn=["# Google China services and mainland games","domain(geosite:google-cn, geosite:category-games@cn) -> direct"],Sn=["# Mainland China","domain(geosite:cn) -> direct","dip(geoip:cn) -> direct"],Cn=e=>["# Telegram",`domain(geosite:telegram) -> ${e}`,`dip(geoip:telegram) -> ${e}`],An=e=>["# Overseas media",`domain(geosite:youtube, geosite:netflix, geosite:disney, geosite:hbo, geosite:primevideo, geosite:twitch, geosite:spotify) -> ${e}`],Ln=e=>["# GFW list",`domain(geosite:gfw) -> ${e}`],Pn="filter: !name('direct', 'block')",$n=(e,t,n,a=n[0])=>({name:e,label:t,lines:[`filter: group(${n.map(s).join(", ")})`,Pn,"policy: select",`default: ${s(a)}`]}),Rn=(e,t,n,a,r)=>({name:e,label:t,flag:n,lines:[`filter: name(regex: ${s(a)})${r?` && !name(regex: ${s(r)})`:""}`,"policy: min_moving_avg"]}),En={proxy:"rule.template.group.proxy",auto:"rule.template.group.auto",hk:["rule.template.group.hk","🇭🇰","港|HK|Hong Kong|HongKong"],jp:["rule.template.group.jp","🇯🇵","日|JP|Japan|Tokyo"],us:["rule.template.group.us","🇺🇸","美|US|United States|America"],tw:["rule.template.group.tw","🇹🇼","台|臺|TW|Taiwan"],sg:["rule.template.group.sg","🇸🇬","新加坡|獅城|狮城|SG|Singapore"],kr:["rule.template.group.kr","🇰🇷","韓|韩|KR|Korea"],cn:["rule.template.group.cn","🇨🇳",String.raw`(?i)回国|回國|中国|中國|大陆|大陸|(?:^|[^A-Za-z])(?:China|Mainland|CN)(?:[^A-Za-z]|$)`,String.raw`(?i)香港|澳门|澳門|台湾|台灣|臺灣|(?:^|[^A-Za-z])(?:HK|MO|TW)(?:[^A-Za-z]|$)|Hong ?Kong|Macau|Macao|Taiwan`],telegram:"rule.template.group.telegram",media:"rule.template.group.media",apple:"rule.template.group.apple",ai:"rule.template.group.ai",youtube:"rule.template.group.youtube",netflix:"rule.template.group.netflix",bahamut:"rule.template.group.bahamut"},On=$n("proxy",En.proxy,["auto"]),zn={name:"auto",label:En.auto,lines:[Pn,"policy: min_moving_avg"]},Tn=["hk","jp","us","tw","sg","kr"].map(e=>Rn(e,En[e][0],En[e][1],En[e][2])),Dn=[...Tn,Rn("cn",...En.cn)],In=(e,t,n=["proxy","auto"],a)=>$n(e,t,n,a),Hn={global:{rules:[..._n],fallback:"{group}",groups:[]},bypass:{rules:[..._n,...Nn,...Sn],fallback:"{group}",groups:[]},gfw:{rules:[..._n,...Cn("{group}"),...Ln("{group}")],fallback:"direct",groups:[]},homebound:{rules:[..._n,"# Mainland China","domain(geosite:cn) -> cn","dip(geoip:cn) -> cn"],fallback:"direct",groups:[Dn.at(-1)]},single:{rules:[..._n,...Nn,...Cn("proxy"),...An("proxy"),...Ln("proxy"),...Sn],fallback:"proxy",groups:[On,zn]},services:{rules:[..._n,...Nn,"# Microsoft","domain(geosite:microsoft) -> direct","# Apple","domain(geosite:apple) -> apple",...Cn("telegram"),...An("media"),...Ln("proxy"),...Sn],fallback:"proxy",groups:[On,zn,In("telegram",En.telegram),In("media",En.media),In("apple",En.apple)]},regions:{rules:[..._n,...Nn,"# Microsoft","domain(geosite:microsoft) -> direct","# Apple","domain(geosite:apple) -> direct",...Cn("telegram"),"# OpenAI","domain(geosite:openai) -> ai","# NetEase Music",Line truncated
@@ -0,0 +1 @@
.rp-dashboard{gap:var(--rp-space-6);flex-direction:column;display:flex}.rp-dashboard-cell{flex-direction:column;min-inline-size:0;display:flex}.rp-dashboard-cell>.rp-card,.rp-dashboard-body>.rp-card{flex:1}.rp-module-actions{gap:var(--rp-space-2);flex-wrap:wrap;align-self:flex-start;align-items:center;display:flex}.rp-module-actions>button{flex:none}.rp-module-option{gap:var(--rp-space-2) var(--rp-space-3);flex-flow:column wrap;align-items:start;display:flex}.rp-module-option>:last-child{flex:0 auto;max-inline-size:100%}.rp-module-inspector{gap:var(--rp-space-4);flex-direction:column;display:flex}.rp-dash-section{--rp-dash-gap:var(--rp-space-3);gap:var(--rp-dash-gap);grid-template-columns:minmax(0,1fr);align-items:stretch;display:grid}.rp-dash-section>*{container:rp-tile/inline-size}.rp-dash-section[data-profile=metrics],.rp-dash-section[data-profile=extensions]{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-dash-section[data-profile=metrics]>:is([data-foot=end],[data-size=large]){grid-column:1/-1}@media (width<=599.98px){.rp-dash-section[data-profile=extensions]{grid-template-columns:minmax(0,1fr)}}@media (width>=600px) and (width<=1279.98px){.rp-dash-section[data-profile=extensions]>[data-size=large]{grid-column:1/-1}}@media (width>=640px){.rp-dash-section[data-profile=quick]{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-dash-section[data-profile=quick]>[data-foot=lead]{grid-column:1/-1}}@media (width>=1024px){.rp-dash-section[data-profile=traffic]{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}.rp-dash-section[data-profile=details]{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-dash-section[data-profile=details]>:is([data-foot=end],[data-size=large]){grid-column:1/-1}}@media (width>=1100px){.rp-dash-section[data-profile=quick]{grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr))}.rp-dash-section[data-profile=quick]>[data-foot=lead]{grid-column:auto}.rp-dash-section[data-profile=metrics]{grid-template-columns:repeat(6,minmax(0,1fr))}.rp-dash-section[data-profile=metrics]>*{grid-column:span 2}.rp-dash-section[data-profile=metrics]>:is([data-foot=tail],[data-foot=end]){grid-column:span 3}.rp-dash-section[data-profile=metrics]>[data-size=large]{grid-column:span 4}}@media (width>=1280px){.rp-dash-section[data-profile=metrics]{grid-template-columns:repeat(5,minmax(0,1fr))}.rp-dash-section[data-profile=metrics]>:is(*,[data-foot]){grid-column:span 1}.rp-dash-section[data-profile=metrics]>[data-size=large]{grid-column:span 2}.rp-dash-section:is([data-profile=traffic],[data-profile=details],[data-profile=extensions]){grid-template-columns:repeat(12,minmax(0,1fr))}.rp-dash-section:is([data-profile=traffic],[data-profile=details],[data-profile=extensions])>*,.rp-dash-section[data-profile=details]>[data-foot=end]{grid-column:span 4}.rp-dash-section[data-profile=traffic]>:nth-child(odd of .rp-dashboard-cell),.rp-dash-section:is([data-profile=details],[data-profile=extensions])>[data-size=large]{grid-column:span 8}.rp-dash-section[data-profile=extensions]>[data-size=small]{grid-column:span 2}}.rp-dash-section[data-profile]>.rp-dashboard-cell[data-size=wide]{grid-column:1/-1}.rp-dash-section{--rp-dash-snap:none}@media (width>=768px){.rp-dash-section{--rp-dash-snap:6}.rp-dash-section:is([data-grid],[data-fit]){grid-template-columns:repeat(420,minmax(0,1fr));column-gap:0;margin-inline-start:calc(0px - var(--rp-dash-gap))}.rp-dash-section:is([data-grid],[data-fit])[data-profile]>.rp-dashboard-cell{grid-column:span var(--rp-chosen,var(--rp-span));margin-inline-start:var(--rp-dash-gap)}.rp-dash-section:is([data-grid],[data-fit])[data-profile]>.rp-dashboard-cell:not([data-width],[data-size=wide]){margin-inline-start:calc(var(--rp-dash-gap) * (1 - var(--rp-shift,0)));margin-inline-end:calc(var(--rp-dash-gap) * var(--rp-trim,0))}.rp-dash-section>*{--rp-span:210}.rp-dash-section:is([data-profile=traffic],[data-profile=details])>*,.rp-dash-section[data-profile=quick]>[data-foot=lead],.rp-dash-section[data-profile=metrics]>:is([data-foot=end],[data-size=large]),.rp-dash-section[data-profile=extensions]>[data-size=large]{--rp-span:420}.rp-dash-section>:is([data-width="1/5"],[data-width="1/4"],[data-width="1/3"]){--rp-chosen:140}.rp-dash-section>[data-width="1/2"]{--rp-chosen:210}.rp-dash-section>[data-width="2/3"]{--rp-chosen:280}.rp-dash-section>[data-width=full]{--rp-chosen:420}}@media (width>=1024px){.rp-dash-section[data-profile=traffic]>*{--rp-span:140}.rp-dash-section[data-profile=traffic]>:nth-child(odd of .rp-dashboard-cell){--rp-span:280}.rp-dash-section[data-profile=details]>*{--rp-span:210}.rp-dash-section[data-profile=details]>:is([data-foot=end],[data-size=large]){--rp-span:420}}@media (width>=1024px) and (width<=1279.98px){.rp-dash-section[data-profile=traffic]>:nth-child(odd of .rp-dashboard-cell){--rp-trim:1 / 3}.rp-dash-section[data-profile=traffic]>:nth-child(2n of .rp-dashboard-cell){--rp-shift:1 / 3}}@media (width>=1100px){.rp-dash-section[data-profile=quick]>*{--rp-span:120}.rp-dash-sectiLine truncated
@@ -1 +1 @@
import{D as e}from"./auth-B7tMStu6.js";import{bD as t,bU as o}from"./index-BgFj_VXE.js";import"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";const r="demo-session-";function n(){return{mode:"password",setup_required:!1}}const s={auth_setup:"/api/v1/auth/setup",auth_login:"/api/v1/auth/login"};function a(n,s){if("setup"===n)throw new t(409,"setup_already_completed","Setup already completed");if(s.username!==e.username||s.password!==e.password)throw new t(401,"invalid_credentials","Invalid credentials");return{token:r+o(),expires_at:new Date(Date.now()+432e5).toISOString()}}function i(e){return!!e?.startsWith(r)}function u(e){return{...e,discovery:async t=>{const o=await e.discovery(t);return"status"in o?{...o,links:{...o.links,...s,auth_logout:"/api/v1/auth/logout"},auth:{mode:"password",setup_required:!1,anonymous_loopback:!1}}:o}}}function d(e){const o=()=>Promise.reject(new t(401,"authentication_required","Authentication required")),r=async e=>(e?.throwIfAborted(),{name:"daeuniverse/native",api_major:1,links:{...s},auth:{mode:"password",setup_required:!1}});return new Proxy(e,{get:(e,t,n)=>"discovery"===t?r:"function"==typeof Reflect.get(e,t,n)?o:void 0})}export{n as mockDiscovery,a as mockOpenSession,i as mockSessionValid,d as refuseWithoutSession,u as withPasswordAuth};
import{D as e}from"./auth-aj_VNWTT.js";import{bT as t,c9 as o}from"./index-CmbH0woS.js";import"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";const r="demo-session-";function n(){return{mode:"password",setup_required:!1}}const s={auth_setup:"/api/v1/auth/setup",auth_login:"/api/v1/auth/login"};function a(n,s){if("setup"===n)throw new t(409,"setup_already_completed","Setup already completed");if(s.username!==e.username||s.password!==e.password)throw new t(401,"invalid_credentials","Invalid credentials");return{token:r+o(),expires_at:new Date(Date.now()+432e5).toISOString()}}function i(e){return!!e?.startsWith(r)}function u(e){return{...e,discovery:async t=>{const o=await e.discovery(t);return"status"in o?{...o,links:{...o.links,...s,auth_logout:"/api/v1/auth/logout"},auth:{mode:"password",setup_required:!1,anonymous_loopback:!1}}:o}}}function d(e){const o=()=>Promise.reject(new t(401,"authentication_required","Authentication required")),r=async e=>(e?.throwIfAborted(),{name:"daeuniverse/native",api_major:1,links:{...s},auth:{mode:"password",setup_required:!1}});return new Proxy(e,{get:(e,t,n)=>"discovery"===t?r:"function"==typeof Reflect.get(e,t,n)?o:void 0})}export{n as mockDiscovery,a as mockOpenSession,i as mockSessionValid,d as refuseWithoutSession,u as withPasswordAuth};
@@ -1,2 +1,2 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./auth-9NIU4RkK.js","./index-BgFj_VXE.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-h-bbwFHc.css"])))=>i.map(i=>d[i]);
import{bE as a,gh as t,gi as o,L as n,_ as e}from"./index-BgFj_VXE.js";const i=(a,t)=>new URL(a.replace(/\/+$/,"")+t,globalThis.location?.href),s=()=>e(()=>import("./auth-9NIU4RkK.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),r={username:"demo",password:"demo"};async function c(e,r){if(a(e))return(await s()).mockDiscovery();const c=await t(i(e,"/api"),{headers:{Accept:"application/json"},cache:"no-store",signal:r});if(!c.ok)throw await o(c);const p=await c.json();if("dae/honk-native"===p.name)throw new n("login.engineOutdated");return p.auth}async function p(a,o){return 404!==(await t(i(a,"/api/v1/capabilities"),{headers:{Accept:"application/json"},cache:"no-store",signal:o})).status}function u(a){return"password"!==a.mode?"token":a.setup_required?"setup":"login"}async function h(n,e,r,c){if(a(n))return(await s()).mockOpenSession(e,r);const p=await t(i(n,`/api/v1/auth/${e}`),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(r),cache:"no-store",signal:c},"setup"===e);if(!p.ok)throw await o(p,"POST");return p.json()}async function d(n,e,s){if(a(n))return;const r=await t(i(n,"/api/v1/auth/logout"),{method:"POST",headers:{Accept:"application/json",Authorization:"Bearer "+e},cache:"no-store",signal:s});if(!r.ok&&401!==r.status)throw await o(r,"POST")}export{r as D,p as a,d as c,c as d,h as o,u as s};
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./auth-FMvOBMnI.js","./index-CmbH0woS.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-suuKbZt8.css"])))=>i.map(i=>d[i]);
import{bU as a,fw as t,fx as o,L as n,_ as e}from"./index-CmbH0woS.js";const i=(a,t)=>new URL(a.replace(/\/+$/,"")+t,globalThis.location?.href),s=()=>e(()=>import("./auth-FMvOBMnI.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),r={username:"demo",password:"demo"};async function c(e,r){if(a(e))return(await s()).mockDiscovery();const c=await t(i(e,"/api"),{headers:{Accept:"application/json"},cache:"no-store",signal:r});if(!c.ok)throw await o(c);const p=await c.json();if("dae/honk-native"===p.name)throw new n("login.engineOutdated");return p.auth}async function p(a,o){return 404!==(await t(i(a,"/api/v1/capabilities"),{headers:{Accept:"application/json"},cache:"no-store",signal:o})).status}function u(a){return"password"!==a.mode?"token":a.setup_required?"setup":"login"}async function h(n,e,r,c){if(a(n))return(await s()).mockOpenSession(e,r);const p=await t(i(n,`/api/v1/auth/${e}`),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(r),cache:"no-store",signal:c},"setup"===e);if(!p.ok)throw await o(p,"POST");return p.json()}async function w(n,e,s){if(a(n))return;const r=await t(i(n,"/api/v1/auth/logout"),{method:"POST",headers:{Accept:"application/json",Authorization:"Bearer "+e},cache:"no-store",signal:s});if(!r.ok&&401!==r.status)throw await o(r,"POST")}export{r as D,p as a,w as c,c as d,h as o,u as s};
@@ -1 +1 @@
import{ap as e,fK as n,eK as t,fL as s,$ as r,fM as a,fN as o,aL as i,fO as l}from"./index-BgFj_VXE.js";async function u(e,{input:n,resolve:r,recordTypes:a},o){if("query"!==r)return{traces:[await e.routingTrace({input:n,resolve:r},o)],query:null};const i=await e.dnsQuery(n.domain,a,o),l=[...new Set(["A","AAAA"].flatMap(e=>i.results.filter(n=>n.type===e).map(t).find(Boolean)??[]))],u=[];for(const t of l.length?l:[null])u.push(await e.routingTrace({input:t?{...n,dst_ip:t}:n,resolve:"none"},o));if(u.some(e=>e.instance_id!==u[0].instance_id||e.generation_id!==u[0].generation_id))throw s(409,"snapshot_unavailable","The routing generation changed during simulation; retry the query","ui.errGenerationChanged");return{traces:u,query:i}}function c({connection_id:t,network:s="all",state:u="all"}={},c=!0,f=!1){const d=e(),{data:p,error:w}=r(),y=a(p,p?.resources.flows.max_page_size);return n({key:["flows",{connection_id:t,network:s,state:u,limit:y}],every:i.lists,fetch:e=>l(n=>d.flows({network:s,state:u,connection_id:t,cursor:n,limit:y,detail:"full"},e),(e,n)=>e?(e.flows.push(...n.flows),e):{...n,flows:[...n.flows]})},{...o(p,w,c),paused:f})}function f(t){const s=e();return n({key:["flow",{id:t}],fetch:e=>t?s.flow(t,e):Promise.resolve(null),acceptEvent:e=>"flow.updated"!==e.event||e.data.resource_id===t},{enabled:null!==t})}function d(t=!0){const s=e();return n({key:["rules"],every:0,fetch:e=>s.rules(e)},{enabled:t})}function p(t=!0){const s=e();return n({key:["dnsRules"],every:0,fetch:e=>s.dnsRules(e)},{enabled:t})}export{p as a,c as b,f as c,u as r,d as u};
import{at as e,gX as n,dT as t,gY as s,W as r,gZ as a,g_ as o,aO as i,g$ as l}from"./index-CmbH0woS.js";async function u(e,{input:n,resolve:r,recordTypes:a},o){if("query"!==r)return{traces:[await e.routingTrace({input:n,resolve:r},o)],query:null};const i=await e.dnsQuery(n.domain,a,o),l=[...new Set(["A","AAAA"].flatMap(e=>i.results.filter(n=>n.type===e).map(t).find(Boolean)??[]))],u=[];for(const t of l.length?l:[null])u.push(await e.routingTrace({input:t?{...n,dst_ip:t}:n,resolve:"none"},o));if(u.some(e=>e.instance_id!==u[0].instance_id||e.generation_id!==u[0].generation_id))throw s(409,"snapshot_unavailable","The routing generation changed during simulation; retry the query","ui.errGenerationChanged");return{traces:u,query:i}}function c({connection_id:t,network:s="all",state:u="all"}={},c=!0,d=!1){const f=e(),{data:w,error:p}=r(),g=a(w,w?.resources.flows.max_page_size);return n({key:["flows",{connection_id:t,network:s,state:u,limit:g}],every:i.lists,fetch:e=>l(n=>f.flows({network:s,state:u,connection_id:t,cursor:n,limit:g,detail:"full"},e),(e,n)=>e?(e.flows.push(...n.flows),e):{...n,flows:[...n.flows]})},{...o(w,p,c),paused:d})}function d(t){const s=e();return n({key:["flow",{id:t}],fetch:e=>t?s.flow(t,e):Promise.resolve(null),acceptEvent:e=>"flow.updated"!==e.event||e.data.resource_id===t},{enabled:null!==t})}function f(t=!0){const s=e();return n({key:["rules"],every:0,fetch:e=>s.rules(e)},{enabled:t})}function w(t=!0){const s=e();return n({key:["dnsRules"],every:0,fetch:e=>s.dnsRules(e)},{enabled:t})}export{c as a,d as b,w as c,u as r,f as u};
@@ -0,0 +1 @@
@font-face{font-family:Noto Sans TC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-tc-cyrillic-wght-normal-DHeihy9e.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans TC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-tc-vietnamese-wght-normal-B77OGAeV.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans TC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-tc-latin-ext-wght-normal-BFabhjDY.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans TC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-tc-latin-wght-normal-CjMECRfU.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;ascent-override:100%;descent-override:20%;line-gap-override:0%}
@@ -1 +0,0 @@
import{fl as t,av as n,cU as e,h8 as r,cS as u,ag as i}from"./index-BgFj_VXE.js";const a=new Map;function o(t,n,e=Date.now()){if(!t)return"—";const r=Math.floor((Date.parse(t)-e)/1e3);if(!Number.isFinite(r))return"—";let u=a.get(n);return u||a.set(n,u=new Intl.RelativeTimeFormat(n,{numeric:"auto"})),Math.abs(r)<60?u.format(r,"second"):Math.abs(r)<3600?u.format(Math.trunc(r/60),"minute"):Math.abs(r)<86400?u.format(Math.trunc(r/3600),"hour"):u.format(Math.trunc(r/86400),"day")}const s=t=>u.find(n=>n.locale===t)?.id??r,c=new Map;function l(t,r){if(null===t)return"—";const u=n(t);if(null===u)return"—";const i=u/86400n,a=u%86400n/3600n,o=u%3600n/60n,l=(t,n)=>{const e=r+"/"+n;let u=c.get(e);return u||c.set(e,u=new Intl.NumberFormat(r,{style:"unit",unit:n,unitDisplay:"short"})),u.format(t)};return i>0n?e(s(r),"ui.duration.dayHour",{days:l(i,"day"),hours:l(a,"hour")}):a>0n?e(s(r),"ui.duration.hourMinute",{hours:l(a,"hour"),minutes:l(o,"minute")}):o>0n?l(o,"minute"):l(u,"second")}const m=new Map;function f(t){let n=m.get(t);return n||m.set(t,n=new Intl.DateTimeFormat(t,{dateStyle:"short",timeStyle:"medium"})),n}function b(t,n){if(!t)return"—";const e=Date.parse(t);return Number.isFinite(e)?f(n).format(e):t}const y=["unit.byte","unit.kilobyte","unit.megabyte","unit.gigabyte","unit.terabyte","unit.petabyte","unit.exabyte"],d=["unit.bytePerSecond","unit.kilobytePerSecond","unit.megabytePerSecond","unit.gigabytePerSecond","unit.terabytePerSecond","unit.petabytePerSecond","unit.exabytePerSecond"];function h(t,n,r,u=0){return e(s(n),r,{n:i(t,n,u)})}function g(t,e,r){const u="number"==typeof t?Number.isFinite(t)&&t>=0?BigInt(Math.round(t)):null:"bigint"==typeof t?t:n(t);if(null===u||u<0n)return"—";let i=0,a=1n;for(;i<r.length-1&&u+a/2n>=1000n*a;)i++,a*=1000n;const o=(10n*u+a/2n)/a;return i>0&&u<10n*a&&o%10n!=0n?h(Number(o)/10,e,r[i],1):h((u+a/2n)/a,e,r[i])}function p(t,n){return g(t,n,y)}function M(t,n){return g(t,n,d)}const S=new Map;function w(t){let n=S.get(t);return n||S.set(t,n=new Intl.Collator(t,{numeric:!0,sensitivity:"base"}).compare),n}const P=(n,e)=>null==n?"—":e("ui.latency",{n:t(n)});function F(t,n){return null==t?"—":n("ui.percent",{n:t},"n",{n:1})}export{M as a,p as b,P as c,w as d,l as e,F as f,h as g,f as h,b as l,o as r};
@@ -0,0 +1 @@
.rp-impact-section{gap:var(--rp-space-2);flex-direction:column;min-width:0;display:flex}.rp-impact{gap:var(--rp-space-2);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.rp-impact.grid{gap:var(--rp-space-2) var(--rp-space-6);grid-template-columns:repeat(auto-fill,minmax(min(100%,176px),1fr));display:grid}.rp-impact>li{align-items:flex-start;gap:var(--rp-space-1);flex-direction:column;min-width:0;display:flex}.rp-impact>li>.rp-cluster{gap:var(--rp-space-2);max-width:100%}.rp-impact>li>.rp-cluster>.rp-note{flex:none}
@@ -0,0 +1 @@
import{c6 as e,c7 as t,s as n,bT as o,c8 as r,c9 as a,ca as i,u as s,cb as l,cc as d,cd as c,f as u,ce as p,cf as _,a as m,cg as f,ch as g,r as h,ci as b,cj as w,b9 as v,ck as y,bc as k,b7 as x,h as S,cl as I,cm as A,q,g as M,cn as N,ab as $,co as C}from"./index-CmbH0woS.js";import{t as D,w as O,g as R,r as j,a as E}from"./activity-CiEWAlFW.js";import{n as T}from"./ActionGroup-D3mQjUsw.js";import{d as L,v as P,g as z}from"./geodata-X0pHz03D.js";import{mockSessionValid as G,withPasswordAuth as U,refuseWithoutSession as H}from"./auth-FMvOBMnI.js";import"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BcN72K3H.js";import"./auth-aj_VNWTT.js";const B=Date.now(),F=e=>new Date(B-1e3*e).toISOString(),J=e=>new Date(B+1e3*e).toISOString(),W=F(0),V="mock-instance-1",X="40",Q={"x-honk":{config_export:{available:!0},config_import:{available:!0,replace_required:!0},config_revisions:{available:!0,can_activate:!0,max_revisions:50}}},K={extensions:Q,observed_at:W,profiles:["base","full_transparency"],limits:{max_request_target_bytes:4096,max_header_bytes:16384,max_json_body_bytes:65536},resources:{...Q,runtime:{available:!0},runtime_memory:{available:!0,metrics:["process.rss_bytes","cgroup.current_bytes","cgroup.limit_bytes","cgroup.events.high","cgroup.events.oom","cgroup.events.oom_kill","kernel.ebpf_bytes"]},datapath:{available:!0,kinds:["ebpf"],details:["attachments","maps"]},runtime_outbounds:{available:!0},traffic_history:{available:!0,max_window_seconds:604800,max_points:360},memory_history:{available:!0,max_window_seconds:604800,max_points:720},nodes:{available:!0,can_manage:!0},providers:{available:!0,can_refresh:!0,can_manage:!0,create_options:{update_interval:86400,user_agent:"honk/0.0.1-alpha",cache:!0},max_page_size:1e3},geodata:{available:!0,can_update:!0,assets:["geosite","geoip"],configurable_sources:!0,checksum:"sha256sum",max_urls:4,interval_hours:{min:1,max:168,default:24},lifecycle:{file_values:"start",overrides_persist:!0}},rules:{available:!0,max_rules:4096},config:{available:!0,writable:!0,create:!0,max_bytes:1048576,max_sources:32},config_validate:{available:!0,modes:["syntax","full"],max_bytes:1048576,max_sources:32},logs:{available:!0,levels:[...t],filters:["level","target"],retention_seconds:86400,min_buffered_records:64,max_buffered_records:4096},dns_log:{available:!0,min_records:64,max_records:2048,max_page_size:500},dns_rules:{available:!0,max_rules:1024},runtime_settings:{available:!0,fields:["log.level","log.buffered_records","dns_log.max_records","flows.max_flows","flows.retention_seconds","record_flows","record_logs","record_dns_log","geodata"]},groups:{available:!0,config_patch:!0,selection:!0,max_patch_operations:32},probes:{available:!0,targets:["node","group"],kinds:["tcp_connect","http","dns"],transports:["tcp","udp"],ip_versions:["ipv4","ipv6"],limits:{max_members_per_job:64,max_results_per_job:256,max_active_jobs:4,max_queued_jobs:16,max_concurrent_per_target:1,job_timeout_ms:3e4,per_principal_requests_per_minute:60,global_requests_per_minute:120}},connections:{available:!0,can_close:!0,max_bulk_close:200},flows:{available:!0,recording:"auto",scopes:["userspace_tcp","userspace_udp","kernel_direct","kernel_block","dns_intercept","kernel_bypass"],min_flows:64,max_flows:4096,max_steps_per_flow:64,retention_seconds:300,snapshot_ttl_seconds:60,max_page_size:1e3},routing_trace:{available:!0,resolve_modes:["none","live"],max_addresses:16,max_rule_steps:128,timeout_ms:5e3,per_principal_requests_per_minute:60,global_requests_per_minute:120},events:{available:!0,kinds:[...e],retention_seconds:300,max_buffered_events:1024,max_clients:16,heartbeat_seconds:15},dns_query:{available:!0,record_types:["A","AAAA","HTTPS"],limits:{max_types_per_request:8,query_timeout_ms:5e3,max_response_bytes:65536,per_principal_requests_per_minute:60,global_requests_per_minute:120}},dns_cache:{available:!0,read:!0,delete_entry:!0,delete_name:!0,flush:!0,entry_kinds:["positive","negative"]},operations:{available:!0,retention_seconds:300},reload:{available:!0},suspend:{available:!0},resume:{available:!0}}},Y={...K.resources};delete Y["x-honk"];const Z={...K,extensions:{},profiles:["base"],resources:{...Y,groups:{...K.resources.groups,config_patch:!1},runtime_outbounds:{available:!1},traffic_history:{available:!1},memory_history:{available:!1},logs:{available:!1},dns_log:{available:!1},dns_rules:{available:!1},runtime_settings:{available:!1},geodata:{available:!1},rules:{available:!1},nodes:{available:!0,can_manage:!1},providers:{available:!0,can_refresh:!1,can_manage:!1,max_page_size:1e3},config:{available:!1,create:!1},config_validate:{available:!1},flows:{...K.resources.flows,available:!1},routing_trace:{...K.resources.routing_trace,available:!1},events:{...K.resources.events,available:!1}}},ee={...K,extensions:{},profiles:["base"],resources:{...Object.fromEntries(Object.keys(Y).map(e=>[e,{available:!1}])),runtime:{available:!0},connections:{available:!0,can_close:!1,max_bulk_closeLine truncated
@@ -1,2 +0,0 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./fonts-sc-Dyn9aW84.css","./fonts-tc-D9rvq3k7.css","./SearchList-Bhc2_bS4.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./Virtualizer-CZl-q5wo.js","./index-D3-KABFr.js","./activity-D06xJ7oH.js","./logs-BxISynQ4.js","./Select-CkiGmyVC.js","./format-s2EANuUb.js","./activity-6eX5ba7W.css","./geodata-X0pHz03D.js","./auth-9NIU4RkK.js","./auth-B7tMStu6.js","./SearchDialog-lJhZ2e4h.js","./flows-xKlsDqlH.js","./nav-BidFSCY-.js","./nav-KYKfR_0p.js","./nav-CsTMInze.js","./nav-D44ro1l_.js","./nav-Ct52fcy8.js","./nav-Wiib71Wo.js","./nav-4gpXURa5.js","./Overview-DwLMYJiG.js","./files-Dt8K7QfP.js","./Table-Dprh3Btz.js","./useGridSelectionCheckbox-BxnCShqN.js","./DaeCode-DEjXqvav.js","./daeTokens-BVtuNnWZ.js","./Connections-CjRavXMq.js","./OutboundTag-jvAhyeqj.js","./Tag-PTwIjtR6.js","./Tabs-CD2lZase.js","./Toolbar-CIBfeuEz.js","./SearchSelect-CO6FsBaz.js","./TimeCell-B4WLB8Ou.js","./AddCircle-prR7q573.js","./useQuickRule-fWQicp9K.js","./outbounds-BApwKyMu.js","./labels-DPpd4zRF.js","./Flows-Bc5zvW8x.js","./Coverage-VYQXivNr.js","./Flows-Bgp2RBuw.css","./Dns-muAKZqBa.js","./Delete-DA-ArqRQ.js","./Policies-8HLSs6CT.js","./ProbeOptionsDialog-DbXtrnP-.js","./ConditionRow-CmAHHzfr.js","./GridList-BUQihjaB.js","./probe-CvLYPWKB.js","./Rules-DlWozzHL.js","./recorder-BHyqDNp5.js","./Nodes-3yvkRhfS.js","./FlagPicker-DvzEtm7E.js","./Config-kDn1yln4.js","./vendor-editor-BRV-W12m.js","./index-DUM-iwa2.js","./Events-DhkgQmOB.js","./Logs-kFCPXU2U.js","./Settings-DVKP5cdM.js","./Editors-CF-H0sca.js","./Editors-BWyc5snq.css","./Login-Dmoi1b-S.js"])))=>i.map(i=>d[i]);
import{$ as e,r as t,c as n,s as r,a as i,b as o,j as s,d as a}from"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const l={},c=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=function(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e}))))};const i=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),s=o?.nonce||o?.getAttribute("nonce");r=e(t.map(e=>{if(e=function(e,t){return new URL(e,t).href}(e,n),e in l)return;l[e]=!0;const t=e.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(!!n)for(let n=i.length-1;n>=0;n--){const r=i[n];if(r.href===e&&(!t||"stylesheet"===r.rel))return}else if(document.querySelector(`link[href="${e}"]${r}`))return;const o=document.createElement("link");return o.rel=t?"stylesheet":"modulepreload",t||(o.as="script"),o.crossOrigin="",o.href=e,s&&o.setAttribute("nonce",s),document.head.appendChild(o),t?new Promise((t,n)=>{o.addEventListener("load",t),o.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${e}`)))}):void 0}))}function i(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(const e of t||[])"rejected"===e.status&&i(e.reason);return e().catch(i)})};function u(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}const d="undefined"!=typeof document?e.useLayoutEffect:()=>{},f={prefix:String(Math.round(1e10*Math.random())),current:0},p=e.createContext(f),h=e.createContext(!1);let m=new WeakMap;const g="function"==typeof e.useId?function(n){let r=e.useId(),[i]=t.useState(x());return n||`${i?"react-aria":`react-aria${f.prefix}`}-${r}`}:function(n){let r=t.useContext(p),i=function(n=!1){let r=t.useContext(p),i=t.useRef(null);if(null===i.current&&!n){let t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(t){let e=m.get(t);null==e?m.set(t,{id:r.current,state:t.memoizedState}):t.memoizedState!==e.state&&(r.current=e.id,m.delete(t))}i.current=++r.current}return i.current}(!!n),o=`react-aria${r.prefix}`;return n||`${o}-${i}`};function y(){return!1}function v(){return!0}function b(e){return()=>{}}function x(){return"function"==typeof e.useSyncExternalStore?e.useSyncExternalStore(b,y,v):t.useContext(h)}let w,k=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),E=new Map;"undefined"!=typeof FinalizationRegistry&&(w=new FinalizationRegistry(e=>{E.delete(e)}));let C=new WeakMap;function S(e){let[n,r]=t.useState(e),i=t.useRef(null),o=g(n),s=t.useRef(null),a=C.get(s);if(w&&a!==o&&(null!=a&&w.unregister(s),w.register(s,o,s),C.set(s,o)),k){const e=E.get(o);e&&!e.includes(i)?e.push(i):E.set(o,[i])}return d(()=>{let e=o;return()=>{w&&(w.unregister(s),C.delete(s)),E.delete(e)}},[o]),t.useEffect(()=>{let e=i.current;return e&&r(e),()=>{e&&(i.current=null)}}),o}function P(e,t){if(e===t)return e;let n=E.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=E.get(t);return r?(r.forEach(t=>t.current=e),e):t}function T(e=[]){let n=S(),[r,i]=function(e){let[n,r]=t.useState(e),i=t.useRef(n),o=t.useRef(null),s=t.useRef(()=>{if(!o.current)return;let e=o.current.next();e.done?o.current=null:i.current===e.value?s.current():r(e.value)});d(()=>{i.current=n,o.current&&s.current()});let a=t.useCallback(e=>{o.current=e(i.current),s.current()},[s]);return[n,a]}(n),o=t.useCallback(()=>{i(function*(){yield n,yield document.getElementById(n)?n:void 0})},[n,i]);return d(o,[n,o,...e]),r}function j(...e){return 1===e.length&&e[0]?e[0]:t=>{let n=!1;const r=e.map(e=>{const r=M(e,t);return n||="function"==typeof r,r});if(n)return()=>{r.forEach((t,n)=>{"function"==typeof t?t():M(e[n],null)})}}}function M(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function N(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let i=e[r];for(let e in i){let r=t[e],o=i[e];"function"==typeof r&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=u(r,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof r||"string"!=typeof o?"id"===e&&r&&o?t.id=P(r,o):"ref"===e&&r&&o?t.ref=j(r,o):t[e]=void 0!==o?o:r:t[e]=n(r,o)}}return t}function R(e){const n=t.useRef(null),r=t.useRLine truncated
@@ -0,0 +1,2 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./fonts-C5_wsAqZ.css","./fonts-sc-Dyn9aW84.css","./fonts-tc-D9rvq3k7.css","./index-1QTpRTgX.js","./activity-CiEWAlFW.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./ActionGroup-D3mQjUsw.js","./Select-BcN72K3H.js","./activity-DGTe7ypp.css","./geodata-X0pHz03D.js","./auth-FMvOBMnI.js","./auth-aj_VNWTT.js","./SearchList-CJ8rQxgu.js","./Virtualizer-itu1Kg0o.js","./SearchDialog-Tt_d8nCa.js","./flows-BMReQznn.js","./nav-M7R_HvZ0.js","./nav-C4ZPdNvM.js","./nav-B4reXXdB.js","./nav-Y_78QUku.js","./nav--g10gPaM.js","./nav-BO8viH9G.js","./nav-ClMHrgx_.js","./Overview-DApn2wLB.js","./files-Dt8K7QfP.js","./Table-Cfbaho6J.js","./Checkbox-f7Je53QZ.js","./DaeCode-DEjXqvav.js","./daeTokens-BVtuNnWZ.js","./Connections-CSIoFtNR.js","./OutboundTag-DROnordp.js","./Tag-fyQjN-Xw.js","./Tabs-BzeNgTje.js","./Toolbar-B9K5nAyx.js","./SearchSelect-CuaWhoLz.js","./TimeCell-D0UB-mKs.js","./useQuickRule-C0zoMd-O.js","./AddCircle-JwHCi_at.js","./outbounds-CUyNhEhE.js","./labels-D8xxfRTQ.js","./Flows-CqGEdGAH.js","./Coverage-P-BXHg4t.js","./Flows-B78_vhjx.css","./Dns-Bob4nl8K.js","./Delete-CQeLz6oG.js","./impact-B8feJDtJ.css","./Policies-tb2W73QS.js","./ProbeOptionsDialog-DgWCU4Y0.js","./ConditionRow-B2vbKntf.js","./GridList-ByMoT8kr.js","./probe-D0sWIaS4.js","./Rules-Cgdd89Jz.js","./recorder-BHyqDNp5.js","./Nodes-DO1v6ZqD.js","./FlagPicker-v8i5Q7lf.js","./Config-VXcentxY.js","./vendor-editor-BRV-W12m.js","./index-DUM-iwa2.js","./Events-DtW4Lnh_.js","./Logs-qpBcXApl.js","./Settings-DsKkgemk.js","./Editors-B0Mv3GSe.js","./Editors-rPgk_VZK.css","./Login-JV4gA0qA.js"])))=>i.map(i=>d[i]);
import{r as e,$ as t,c as n,s as r,a as i,b as o,j as s,d as a}from"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const l={},c=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=function(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e}))))};const i=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),s=o?.nonce||o?.getAttribute("nonce");r=e(t.map(e=>{if(e=function(e,t){return new URL(e,t).href}(e,n),e in l)return;l[e]=!0;const t=e.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(!!n)for(let n=i.length-1;n>=0;n--){const r=i[n];if(r.href===e&&(!t||"stylesheet"===r.rel))return}else if(document.querySelector(`link[href="${e}"]${r}`))return;const o=document.createElement("link");return o.rel=t?"stylesheet":"modulepreload",t||(o.as="script"),o.crossOrigin="",o.href=e,s&&o.setAttribute("nonce",s),document.head.appendChild(o),t?new Promise((t,n)=>{o.addEventListener("load",t),o.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${e}`)))}):void 0}))}function i(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(const e of t||[])"rejected"===e.status&&i(e.reason);return e().catch(i)})};class u{constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}}class d extends u{filter(e,t,n){let[r,i]=y(e,t,this.firstChildKey,n),o=this.clone();return o.firstChildKey=r,o.lastChildKey=i,o}}class f extends u{static{this.type="header"}}class p extends u{static{this.type="loader"}}class h extends d{static{this.type="item"}filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}}class m extends d{static{this.type="section"}filter(e,t,n){let r=super.filter(e,t,n);if(r&&null!==r.lastChildKey){let t=e.getItem(r.lastChildKey);if(t&&"header"!==t.type)return r}return null}}class g{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=null!=this.firstKey?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=null!=e.nextKey?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=null!=n?.firstChildKey?t.get(n.firstChildKey):null;for(;r;)yield r,r=null!=r.nextKey?t.get(r.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(null!=t.prevKey){for(t=this.keyMap.get(t.prevKey);t&&"item"!==t.type&&null!=t.lastChildKey;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if("item"!==t.type&&null!=t.firstChildKey)return t.firstChildKey;for(;t;){if(null!=t.nextKey)return t.nextKey;if(null==t.parentKey)return null;t=this.keyMap.get(t.parentKey)}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=null!=this.lastKey?this.keyMap.get(this.lastKey):null;for(;null!=e?.lastChildKey;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw new Error("Not implemented")}clone(){let e=new(0,this.constructor);return e.keyMap=new Map(this.keyMap),e.firstKey=this.firstKey,e.lastKey=this.lastKey,e.itemCount=this.itemCount,e}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");"item"===e.type&&null==this.keyMap.get(e.key)&&thisLine truncated
@@ -1 +0,0 @@
import{bR as e,bS as t,s as n,bD as o,bT as r,bU as a,bV as i,u as s,bW as l,bX as d,bY as c,f as u,bZ as p,b_ as _,a as m,b$ as f,c0 as g,r as h,c1 as b,c2 as w,b1 as v,c3 as y,b3 as k,a$ as x,h as S,c4 as I,c5 as A,q,g as $,c6 as M,aa as N,c7 as C}from"./index-BgFj_VXE.js";import{t as D,w as O,g as j,r as R,a as E}from"./activity-D06xJ7oH.js";import{n as T}from"./logs-BxISynQ4.js";import{d as L,v as P,g as z}from"./geodata-X0pHz03D.js";import{mockSessionValid as U,withPasswordAuth as G,refuseWithoutSession as H}from"./auth-9NIU4RkK.js";import"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./format-s2EANuUb.js";import"./Select-CkiGmyVC.js";import"./auth-B7tMStu6.js";const B=Date.now(),F=e=>new Date(B-1e3*e).toISOString(),J=e=>new Date(B+1e3*e).toISOString(),W=F(0),V="mock-instance-1",X="40",Q={"x-honk":{config_export:{available:!0},config_import:{available:!0,replace_required:!0},config_revisions:{available:!0,can_activate:!0,max_revisions:50}}},K={extensions:Q,observed_at:W,profiles:["base","full_transparency"],limits:{max_request_target_bytes:4096,max_header_bytes:16384,max_json_body_bytes:65536},resources:{...Q,runtime:{available:!0},runtime_memory:{available:!0,metrics:["process.rss_bytes","cgroup.current_bytes","cgroup.limit_bytes","cgroup.events.high","cgroup.events.oom","cgroup.events.oom_kill","kernel.ebpf_bytes"]},datapath:{available:!0,kinds:["ebpf"],details:["attachments","maps"]},runtime_outbounds:{available:!0},traffic_history:{available:!0,max_window_seconds:604800,max_points:360},memory_history:{available:!0,max_window_seconds:604800,max_points:720},nodes:{available:!0,can_manage:!0},providers:{available:!0,can_refresh:!0,can_manage:!0,create_options:{update_interval:86400,user_agent:"honk/0.0.1-alpha",cache:!0},max_page_size:1e3},geodata:{available:!0,can_update:!0,assets:["geosite","geoip"],configurable_sources:!0,checksum:"sha256sum",max_urls:4,interval_hours:{min:1,max:168,default:24},lifecycle:{file_values:"start",overrides_persist:!0}},rules:{available:!0,max_rules:4096},config:{available:!0,writable:!0,create:!0,max_bytes:1048576,max_sources:32},config_validate:{available:!0,modes:["syntax","full"],max_bytes:1048576,max_sources:32},logs:{available:!0,levels:[...t],filters:["level","target"],retention_seconds:86400,min_buffered_records:64,max_buffered_records:4096},dns_log:{available:!0,min_records:64,max_records:2048,max_page_size:500},dns_rules:{available:!0,max_rules:1024},runtime_settings:{available:!0,fields:["log.level","log.buffered_records","dns_log.max_records","flows.max_flows","flows.retention_seconds","record_flows","record_logs","record_dns_log","geodata"]},groups:{available:!0,config_patch:!0,selection:!0,max_patch_operations:32},probes:{available:!0,targets:["node","group"],kinds:["tcp_connect","http","dns"],transports:["tcp","udp"],ip_versions:["ipv4","ipv6"],limits:{max_members_per_job:64,max_results_per_job:256,max_active_jobs:4,max_queued_jobs:16,max_concurrent_per_target:1,job_timeout_ms:3e4,per_principal_requests_per_minute:60,global_requests_per_minute:120}},connections:{available:!0,can_close:!0,max_bulk_close:200},flows:{available:!0,recording:"auto",scopes:["userspace_tcp","userspace_udp","kernel_direct","kernel_block","dns_intercept","kernel_bypass"],min_flows:64,max_flows:4096,max_steps_per_flow:64,retention_seconds:300,snapshot_ttl_seconds:60,max_page_size:1e3},routing_trace:{available:!0,resolve_modes:["none","live"],max_addresses:16,max_rule_steps:128,timeout_ms:5e3,per_principal_requests_per_minute:60,global_requests_per_minute:120},events:{available:!0,kinds:[...e],retention_seconds:300,max_buffered_events:1024,max_clients:16,heartbeat_seconds:15},dns_query:{available:!0,record_types:["A","AAAA","HTTPS"],limits:{max_types_per_request:8,query_timeout_ms:5e3,max_response_bytes:65536,per_principal_requests_per_minute:60,global_requests_per_minute:120}},dns_cache:{available:!0,read:!0,delete_entry:!0,delete_name:!0,flush:!0,entry_kinds:["positive","negative"]},operations:{available:!0,retention_seconds:300},reload:{available:!0},suspend:{available:!0},resume:{available:!0}}},Y={...K.resources};delete Y["x-honk"];const Z={...K,extensions:{},profiles:["base"],resources:{...Y,groups:{...K.resources.groups,config_patch:!1},runtime_outbounds:{available:!1},traffic_history:{available:!1},memory_history:{available:!1},logs:{available:!1},dns_log:{available:!1},dns_rules:{available:!1},runtime_settings:{available:!1},geodata:{available:!1},rules:{available:!1},nodes:{available:!0,can_manage:!1},providers:{available:!0,can_refresh:!1,can_manage:!1,max_page_size:1e3},config:{available:!1,create:!1},config_validate:{available:!1},flows:{...K.resources.flows,available:!1},routing_trace:{...K.resources.routing_trace,available:!1},events:{...K.resources.events,available:!1}}},ee={...K,extensions:{},profiles:["base"],resources:{...Object.fromEntries(Object.keys(Y).map(e=>[e,{available:!1}])),runtime:{available:!0},connections:{available:!0,can_cLine truncated
@@ -1 +0,0 @@
@font-face{font-family:Noto Sans TC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-tc-cyrillic-wght-normal-DHeihy9e.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans TC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-tc-vietnamese-wght-normal-B77OGAeV.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans TC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-tc-latin-ext-wght-normal-BFabhjDY.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans TC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-tc-latin-wght-normal-CjMECRfU.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Twemoji Country Flags;src:url(./TwemojiCountryFlags-Bymva2JV.woff2)format("woff2");font-display:swap;unicode-range:U+1F1E6-1F1FF,U+1F3F4,U+E0061-E007A,U+E007F}:root{--rp-node-flag-edge:drop-shadow(0 0 .5px #00000059)}:root[data-scheme=dark]{--rp-node-flag-edge:none}.rp-truncate.rp-node-name{display:inline-block}.rp-node-flag{filter:var(--rp-node-flag-edge);-webkit-user-select:none;user-select:none;margin-inline-end:var(--rp-space-1);display:inline-block}.rp-node-flag:before{content:attr(data-flag)}.rp-il:has(>.rp-node-flag){gap:var(--rp-space-1)}.rp-il>.rp-node-flag{flex-shrink:0;inline-size:1.25em;margin-inline-end:0}:root,:root[data-family=rose-pine]{--rp-base:#faf4ed;--rp-surface:#fffaf3;--rp-overlay:#f2e9e1;--rp-muted:#9893a5;--rp-subtle:#797593;--rp-text:#464261;--rp-love:#b4637a;--rp-gold:#ea9d34;--rp-rose:#d7827e;--rp-pine:#286983;--rp-foam:#56949f;--rp-iris:#907aa9;--rp-c1:var(--rp-pine);--rp-c2:var(--rp-foam);--rp-c3:var(--rp-iris);--rp-c4:var(--rp-gold);--rp-c5:var(--rp-rose);--rp-c6:var(--rp-love);--rp-c7:var(--rp-pine);--rp-c8:var(--rp-foam);--rp-hl-low:#f4ede8;--rp-hl-med:#dfdad9;--rp-hl-high:#cecacd;--rp-shadow:0 1px 2px #57527914}:root[data-family=rose-pine]{--rp-negative-text:var(--rp-text);--rp-notice-text:var(--rp-text);--rp-on-notice:var(--rp-text);--rp-positive-text:var(--rp-text);--rp-accent-tile-text:var(--rp-text);--rp-info-tile-text:var(--rp-text);--rp-subtle-text:var(--rp-text)}:root[data-family=rose-pine][data-scheme=dark],:root[data-flavour=moon][data-scheme=dark]{--rp-base:#232136;--rp-surface:#2a273f;--rp-overlay:#393552;--rp-muted:#6e6a86;--rp-subtle:#908caa;--rp-text:#e0def4;--rp-love:#eb6f92;--rp-gold:#f6c177;--rp-rose:#ea9a97;--rp-pine:#3e8fb0;--rp-foam:#9ccfd8;--rp-iris:#c4a7e7;--rp-c1:var(--rp-pine);--rp-c2:var(--rp-foam);--rp-c3:var(--rp-iris);--rp-c4:var(--rp-gold);--rp-c5:var(--rp-rose);--rp-c6:var(--rp-love);--rp-c7:var(--rp-pine);--rp-c8:var(--rp-foam);--rp-hl-low:#2a283e;--rp-hl-med:#44415a;--rp-hl-high:#56526e;--rp-shadow:0 1px 2px #0000004d;--rp-line:var(--rp-hl-med);--rp-fill:var(--rp-hl-med);--rp-on-accent:#191724;--rp-on-notice:var(--rp-on-accent);--rp-accent-text:var(--rp-text);--rp-negative-text:var(--rp-negative);--rp-notice-text:var(--rp-notice);--rp-positive-text:var(--rp-positive);--rp-info-text:var(--rp-text);--rp-negative-tile-text:var(--rp-text)}:root[data-flavour=main][data-scheme=dark]{--rp-base:#191724;--rp-surface:#1f1d2e;--rp-overlay:#26233a;--rp-muted:#6e6a86;--rp-subtle:#908caa;--rp-text:#e0def4;--rp-love:#eb6f92;--rp-gold:#f6c177;--rp-rose:#ebbcba;--rp-pine:#31748f;--rp-foam:#9ccfd8;--rp-iris:#c4a7e7;--rp-c1:var(--rp-pine);--rp-c2:var(--rp-foam);--rp-c3:var(--rp-iris);--rp-c4:var(--rp-gold);--rp-c5:var(--rp-rose);--rp-c6:var(--rp-love);--rp-c7:var(--rp-pine);--rp-c8:var(--rp-foam);--rp-hl-low:#21202e;--rp-hl-med:#403d52;--rp-hl-high:#524f67;--rp-shadow:0 1px 2px #00000059;--rp-on-accent:#fff;--rp-on-positive:var(--rp-base);--rp-on-negative:var(--rp-base);--rp-on-notice:var(--rp-base);--rp-negative-tile-text:var(--rp-negative)}:root[data-family=catppuccin]{--rp-base:#e6e9ef;--rp-surface:#eff1f5;--rp-overlay:#dce0e8;--rp-muted:#9ca0b0;--rp-subtle:#6c6f85;--rp-text:#4c4f69;--rp-love:#d20f39;--rp-gold:#df8e1d;--rp-rose:#fe640b;--rp-pine:#1e66f5;--rp-foam:#179299;--rp-iris:#8839ef;--rp-c1:#1e66f5;--rp-c2:#179299;--rp-c3:#8839ef;--rp-c4:#fe640b;--rp-c5:#40a02b;--rp-c6:#ea76cb;--rp-c7:#df8e1d;--rp-c8:#d20f39;--rp-hl-low:#dce0e8;--rp-hl-med:#ccd0da;--rp-hl-high:#bcc0cc;--rpLine truncated
@@ -0,0 +1 @@
@font-face{font-family:Twemoji Country Flags;src:url(./TwemojiCountryFlags-Bymva2JV.woff2)format("woff2");font-display:swap;unicode-range:U+1F1E6-1F1FF,U+1F3F4,U+E0061-E007A,U+E007F}:root{--rp-node-flag-edge:drop-shadow(0 0 .5px #00000059)}:root[data-scheme=dark]{--rp-node-flag-edge:none}.rp-truncate.rp-node-name{display:inline-block}.rp-node-flag{filter:var(--rp-node-flag-edge);-webkit-user-select:none;user-select:none;margin-inline-end:var(--rp-space-1);display:inline-block}.rp-node-flag:before{content:attr(data-flag)}.rp-il:has(>.rp-node-flag){gap:var(--rp-space-1)}.rp-il>.rp-node-flag{flex-shrink:0;inline-size:1.25em;margin-inline-end:0}:root,:root[data-family=rose-pine]{--rp-base:#faf4ed;--rp-surface:#fffaf3;--rp-overlay:#f2e9e1;--rp-muted:#9893a5;--rp-subtle:#797593;--rp-text:#464261;--rp-love:#b4637a;--rp-gold:#ea9d34;--rp-rose:#d7827e;--rp-pine:#286983;--rp-foam:#56949f;--rp-iris:#907aa9;--rp-c1:var(--rp-pine);--rp-c2:var(--rp-foam);--rp-c3:var(--rp-iris);--rp-c4:var(--rp-gold);--rp-c5:var(--rp-rose);--rp-c6:var(--rp-love);--rp-c7:var(--rp-pine);--rp-c8:var(--rp-foam);--rp-hl-low:#f4ede8;--rp-hl-med:#dfdad9;--rp-hl-high:#cecacd;--rp-shadow:0 1px 2px #57527914}:root[data-family=rose-pine]{--rp-negative-text:var(--rp-text);--rp-notice-text:var(--rp-text);--rp-positive-text:var(--rp-text);--rp-accent-tile-text:var(--rp-text);--rp-info-tile-text:var(--rp-text);--rp-subtle-text:var(--rp-text)}:root[data-family=rose-pine][data-scheme=dark],:root[data-flavour=moon][data-scheme=dark]{--rp-base:#232136;--rp-surface:#2a273f;--rp-overlay:#393552;--rp-muted:#6e6a86;--rp-subtle:#908caa;--rp-text:#e0def4;--rp-love:#eb6f92;--rp-gold:#f6c177;--rp-rose:#ea9a97;--rp-pine:#3e8fb0;--rp-foam:#9ccfd8;--rp-iris:#c4a7e7;--rp-c1:var(--rp-pine);--rp-c2:var(--rp-foam);--rp-c3:var(--rp-iris);--rp-c4:var(--rp-gold);--rp-c5:var(--rp-rose);--rp-c6:var(--rp-love);--rp-c7:var(--rp-pine);--rp-c8:var(--rp-foam);--rp-hl-low:#2a283e;--rp-hl-med:#44415a;--rp-hl-high:#56526e;--rp-shadow:0 1px 2px #0000004d;--rp-line:var(--rp-hl-med);--rp-fill:var(--rp-hl-med);--rp-on-accent:#191724;--rp-on-notice:var(--rp-on-accent);--rp-accent-text:var(--rp-text);--rp-negative-text:var(--rp-negative);--rp-notice-text:var(--rp-notice);--rp-positive-text:var(--rp-positive);--rp-info-text:var(--rp-text);--rp-negative-tile-text:var(--rp-text)}:root[data-flavour=main][data-scheme=dark]{--rp-base:#191724;--rp-surface:#1f1d2e;--rp-overlay:#26233a;--rp-muted:#6e6a86;--rp-subtle:#908caa;--rp-text:#e0def4;--rp-love:#eb6f92;--rp-gold:#f6c177;--rp-rose:#ebbcba;--rp-pine:#31748f;--rp-foam:#9ccfd8;--rp-iris:#c4a7e7;--rp-c1:var(--rp-pine);--rp-c2:var(--rp-foam);--rp-c3:var(--rp-iris);--rp-c4:var(--rp-gold);--rp-c5:var(--rp-rose);--rp-c6:var(--rp-love);--rp-c7:var(--rp-pine);--rp-c8:var(--rp-foam);--rp-hl-low:#21202e;--rp-hl-med:#403d52;--rp-hl-high:#524f67;--rp-shadow:0 1px 2px #00000059;--rp-on-accent:#fff;--rp-on-positive:var(--rp-base);--rp-on-negative:var(--rp-base);--rp-on-notice:var(--rp-base);--rp-negative-tile-text:var(--rp-negative)}:root[data-family=catppuccin]{--rp-base:#e6e9ef;--rp-surface:#eff1f5;--rp-overlay:#dce0e8;--rp-muted:#9ca0b0;--rp-subtle:#6c6f85;--rp-text:#4c4f69;--rp-love:#d20f39;--rp-gold:#df8e1d;--rp-rose:#fe640b;--rp-pine:#1e66f5;--rp-foam:#179299;--rp-iris:#8839ef;--rp-c1:#1e66f5;--rp-c2:#179299;--rp-c3:#8839ef;--rp-c4:#fe640b;--rp-c5:#40a02b;--rp-c6:#ea76cb;--rp-c7:#df8e1d;--rp-c8:#d20f39;--rp-hl-low:#dce0e8;--rp-hl-med:#ccd0da;--rp-hl-high:#bcc0cc;--rp-shadow:0 1px 2px #4c4f691a;--rp-on-accent:#fff;--rp-accent-text:var(--rp-text);--rp-negative-text:var(--rp-text);--rp-notice-text:var(--rp-text);--rp-positive-text:var(--rp-text);--rp-info-text:var(--rp-text);--rp-subtle-text:var(--rp-text)}:root[data-family=catppuccin][data-scheme=dark],:root[data-flavour=mocha][data-scheme=dark]{--rp-base:#181825;--rp-surface:#1e1e2e;--rp-overlay:#313244;--rp-muted:#6c7086;--rp-subtle:#a6adc8;--rp-text:#cdd6f4;--rp-love:#f38ba8;--rp-gold:#f9e2af;--rp-rose:#fab387;--rp-pine:#89b4fa;--rp-foam:#94e2d5;--rp-iris:#cba6f7;--rp-c1:#89b4fa;--rp-c2:#94e2d5;--rp-c3:#cba6f7;--rp-c4:#fab387;--rp-c5:#a6e3a1;--rp-c6:#f5c2e7;--rp-c7:#f9e2af;--rp-c8:#f38ba8;--rp-hl-low:#313244;--rp-hl-med:#45475a;--rp-hl-high:#585b70;--rp-shadow:0 1px 2px #00000059;--rp-on-accent:var(--rp-surface);--rp-on-notice:var(--rp-on-accent);--rp-accent-text:var(--rp-accent);--rp-negative-text:var(--rp-negative);--rp-notice-text:var(--rp-notice);--rp-positive-text:var(--rp-positive);--rp-info-text:var(--rp-info);--rp-negative-tile-text:var(--rp-text);--rp-subtle-text:var(--rp-subtle)}:root[data-flavour=frappe][data-scheme=dark]{--rp-base:#292c3c;--rp-surface:#303446;--rp-overlay:#414559;--rp-muted:#737994;--rp-subtle:#a5adce;--rp-text:#c6d0f5;--rp-love:#e78284;--rp-gold:#e5c890;--rp-rose:#ef9f76;--rp-pine:#8caaee;--rp-foam:#81c8be;--rp-iris:#ca9ee6;--rp-c1:#8caaee;--rp-c2:#81c8be;--rp-c3:#ca9ee6;--rp-c4:#ef9f76;--rp-c5:#a6d189;--rp-c6:#f4b8e4;--rp-c7:#e5c890;--rp-c8:#e78284;--rp-hl-low:#414559;--Line truncated
@@ -0,0 +1 @@
const e={kernel:"flow.v.kernel",userspace:"ov.v.userspace",matched:"flow.v.matched",other_family_trusted:"flow.v.otherFamilyTrusted",failed:"flow.v.failed",not_required:"flow.v.notRequired",unavailable:"flow.v.unavailable",pass:"flow.v.pass",redirect:"flow.v.redirect",hold:"flow.v.hold",arm_direct:"flow.v.armDirect",activate_direct:"flow.v.activateDirect",activate_proxy:"flow.v.activateProxy",drop:"flow.v.drop",started:"flow.v.started",succeeded:"flow.v.succeeded",cancelled:"flow.v.cancelled",transport_ready:"flow.v.transportReady",target_request_sent:"flow.v.targetRequestSent",target_confirmed:"flow.v.targetConfirmed",first_reply:"flow.v.firstReply",terminal:"flow.v.terminal",unknown:"ui.unknown",route_selected:"flow.v.routeSelected",no_new_routing_input:"flow.v.noNewRoutingInput",reply_received:"flow.v.replyReceived",hit:"flow.v.hit",miss:"flow.v.miss",stale:"flow.v.stale",bypass:"flow.v.bypass",hosts:"flow.v.hosts",coalesced:"flow.v.coalesced",cache:"flow.v.cache",upstream:"ui.upstream",lan:"flow.v.lan",wan:"flow.v.wan",tls_sni:"flow.v.tlsSni",http_host:"flow.v.httpHost",quic_sni:"flow.v.quicSni",dns_mapping:"flow.v.dnsMapping",explicit:"flow.v.explicit"},t=t=>null==t?"—":e[t]?{key:e[t]}:t;export{t as w};
@@ -1 +0,0 @@
const e={kernel:"flow.v.kernel",userspace:"flow.v.userspace",matched:"flow.v.matched",other_family_trusted:"flow.v.otherFamilyTrusted",failed:"flow.v.failed",not_required:"flow.v.notRequired",unavailable:"flow.v.unavailable",pass:"flow.v.pass",redirect:"flow.v.redirect",hold:"flow.v.hold",arm_direct:"flow.v.armDirect",activate_direct:"flow.v.activateDirect",activate_proxy:"flow.v.activateProxy",drop:"flow.v.drop",started:"flow.v.started",succeeded:"flow.v.succeeded",cancelled:"flow.v.cancelled",transport_ready:"flow.v.transportReady",target_request_sent:"flow.v.targetRequestSent",target_confirmed:"flow.v.targetConfirmed",first_reply:"flow.v.firstReply",terminal:"flow.v.terminal",unknown:"ui.unknown",route_selected:"flow.v.routeSelected",no_new_routing_input:"flow.v.noNewRoutingInput",reply_received:"flow.v.replyReceived",hit:"flow.v.hit",miss:"flow.v.miss",stale:"flow.v.stale",bypass:"flow.v.bypass",hosts:"flow.v.hosts",coalesced:"flow.v.coalesced",cache:"flow.v.cache",upstream:"ui.upstream",lan:"flow.v.lan",wan:"flow.v.wan",tls_sni:"flow.v.tlsSni",http_host:"flow.v.httpHost",quic_sni:"flow.v.quicSni",dns_mapping:"flow.v.dnsMapping",explicit:"flow.v.explicit"},l=l=>null==l?"—":e[l]?{key:e[l]}:l;export{l as w};
@@ -0,0 +1 @@
const e=JSON.parse('{"about.contract":"Contract commit","about.credits":"Fonts Noto Sans TC/SC (OFL); icons Adobe Spectrum (Apache-2.0); palettes from Rosé Pine, Catppuccin, Nord, Kary Pro Colors, Ant Design, Arco Design and Semi Design.","about.duck":"Pet me","about.license":"License","about.privacy":"doona talks only to the backend you connect it to. It collects no data and sends nothing anywhere else.","about.quack":"Honk!","about.tagline":"Web UI for {engine}","about.title":"About doona","act.active":"Active connections","act.cgroup":"cgroup used","act.chooseRoutingMode":"Choose a routing mode","act.cpu":"CPU usage","act.cpuHelp":"The share of one CPU core that the process uses. A value above 100% means it uses more than one core.","act.d7":"7 d","act.devices":"Devices","act.domains":"Domains","act.emptyHistory":"No history samples yet","act.global":"Global outbound","act.globalMissing":"Global mode needs an outbound","act.groupFollow":"Automatic","act.groupPickHelp":"By default, this card follows the group with the most connections; choosing a group changes only this card.","act.h1":"1 h","act.h24":"24 h","act.h6":"6 h","act.historyRange":"History range","act.issues":"Notifications","act.latency":"Latency","act.limited":{"one":"{n} feature is off","other":"{n} features are off"},"act.live":"Live","act.m10":"10 min","act.memory":"Memory","act.mode":"Outbound mode","act.modeApplied":"Outbound mode written to the configuration and reloaded: {mode}","act.modeInterleaved":"An ordinary rule comes before a must rule in the routing block. Move the must rules to the top of the routing block, then change the outbound mode.","act.modeNoRouting":"The main configuration has no routing section","act.modeReadOnly":"Read-only","act.modeReadOnlyAction":"Make the main file writable by honk and keep native_api in its own include file.","act.modeReadOnlyReason":"honk requires configuration writes and authenticated control. It marks the main config file read-only if it contains a secret field or nested block in native_api or clash_api, or an active listener secret.","act.modeUnavailable":"Not provided by this backend","act.modeWhyReadOnly":"Why is the mode read-only?","act.noConnections":"This backend does not provide connections","act.noHistory":"This backend does not provide history","act.noIssues":"No issues require attention","act.noOutbounds":"This backend does not provide outbound counters","act.noRoutingMode":"No routing rules configured","act.noSubscriptions":"No subscriptions yet","act.noticeGap":"{reason}, records dropped since recording started: {n}","act.noticeRepeat":{"one":"{n} time","other":"{n} times"},"act.outUsage":"Outbound downloads","act.rankingEmpty":"No connections to rank","act.rankingScope":"Ranked by download totals for visible connections. Shares use all visible data.","act.rankingTruncated":"The connection list is truncated. Rankings cover only the retrieved data.","act.readOnlyDocs":"Read-only config files","act.rss":"Resident memory","act.sampling":"Sampling","act.setup.checkConnection":"Check connection","act.setup.chooseRules":"Choose rules","act.setup.complete":"Complete","act.setup.connection":"Check the connection","act.setup.connectionHint":"Measure the selected node.","act.setup.dismiss":"Dismiss","act.setup.incomplete":"Incomplete","act.setup.nodes":"Add a subscription or nodes","act.setup.nodesHint":"Import proxy nodes.","act.setup.rules":"Choose routing rules","act.setup.rulesHint":"Select a routing template.","act.setup.title":"Getting started","act.since":"Since {time}","act.topDevices":"Top traffic","act.traffic":"Traffic","act.truncated":"Truncated","act.viewAll":"View all","act.viewDetails":"View details","cm.all":"All","cm.byWord":"By word","cm.commands":"Editing commands","cm.completions":"Completions","cm.controlCharacter":"Control character","cm.currentMatch":"Current match","cm.find":"Find","cm.findReplace":"Find and replace","cm.go":"Go","cm.gotoLine":"Go to line","cm.matchCase":"Match case","cm.next":"Next","cm.onLine":"On line","cm.previous":"Previous","cm.redo":"Redo","cm.regexp":"Regexp","cm.replace":"Replace","cm.replaceAll":"Replace all","cm.replaceOne":"Replace","cm.replacedMatches":"Matches replaced: $","cm.replacedOnLine":"Replaced match on line $","cm.selectionDeleted":"Selection deleted","cm.toggleComment":"Toggle comment","cm.undo":"Undo","config.acceptedDiagnostics":"Diagnostics kept for the accepted configuration (generation {generation})","config.atFile":"{file} line {line}: {message}","config.atLine":"Line {line}: {message}","config.backendDetail":"{text}. Backend message: {message}","config.backendText":"Details","config.backup.export":"Export configuration","config.backup.exportFailed":"Export failed: {error}","config.backup.exportHelp":"Exports accepted configuration. Listener secrets are omitted; other credentials may remain. Review before sharing.","config.backup.import":"Import server files","config.backup.importHelp":"Reads the file tree specified Line truncated
@@ -1 +0,0 @@
const e=JSON.parse('{"about.api":"API","about.contract":"Contract commit","about.credits":"Fonts Noto Sans TC/SC (OFL); icons Adobe Spectrum (Apache-2.0); palettes from Rosé Pine, Catppuccin, Nord, Kary Pro Colors, Ant Design, Arco Design and Semi Design.","about.duck":"Pet me","about.engine":"Engine","about.license":"License","about.privacy":"doona talks only to the backend you connect it to. It collects no data and sends nothing anywhere else.","about.quack":"Honk!","about.tagline":"Web UI for {engine}","about.title":"About doona","act.active":"Active connections","act.cgroup":"cgroup used","act.chooseRoutingMode":"Choose a routing mode","act.cpu":"CPU usage","act.cpuHelp":"The share of one CPU core that the process uses. A value above 100% means it uses more than one core.","act.d7":"7 d","act.devices":"Devices","act.domains":"Domains","act.download":"Download","act.emptyHistory":"No history samples yet","act.global":"Global outbound","act.globalMissing":"Global mode needs an outbound","act.groupFollow":"Automatic","act.groupPickHelp":"By default, this card follows the group with the most connections; choosing a group changes only this card.","act.h1":"1 h","act.h24":"24 h","act.h6":"6 h","act.historyRange":"History range","act.issues":"Notifications","act.latency":"Latency","act.limited":{"one":"{n} feature is off","other":"{n} features are off"},"act.live":"Live","act.m10":"10 min","act.memory":"Memory","act.mode":"Outbound mode","act.modeApplied":"Outbound mode written to the configuration and reloaded: {mode}","act.modeInterleaved":"An ordinary rule comes before a must rule in the routing block. Move the must rules to the top of the routing block, then change the outbound mode.","act.modeNoRouting":"The main configuration has no routing section","act.modeReadOnly":"Read-only","act.modeReadOnlyAction":"Make the main file writable by honk and keep native_api in its own include file.","act.modeReadOnlyReason":"honk requires configuration writes and authenticated control. It marks the main config file read-only if it contains a secret field or nested block in native_api or clash_api, or an active listener secret.","act.modeUnavailable":"Not provided by this backend","act.modeWhyReadOnly":"Why is the mode read-only?","act.noConnections":"This backend does not provide connections","act.noHistory":"This backend does not provide history","act.noIssues":"No issues require attention","act.noOutbounds":"This backend does not provide outbound counters","act.noRoutingMode":"No routing rules configured","act.noSubscriptions":"No subscriptions yet","act.noticeRepeat":{"one":"{n} time","other":"{n} times"},"act.outUsage":"Outbound downloads","act.rankingEmpty":"No connections to rank","act.rankingScope":"Ranked by download totals for visible connections. Shares use all visible data.","act.rankingTruncated":"The connection list is truncated. Rankings cover only the retrieved data.","act.readOnlyDocs":"Read-only config files","act.rss":"Resident memory","act.sampling":"Sampling","act.setup.checkConnection":"Check connection","act.setup.chooseRules":"Choose rules","act.setup.complete":"Complete","act.setup.connection":"Check the connection","act.setup.connectionHint":"Measure the selected node.","act.setup.dismiss":"Dismiss","act.setup.incomplete":"Incomplete","act.setup.nodes":"Add a subscription or nodes","act.setup.nodesHint":"Import proxy nodes.","act.setup.rules":"Choose routing rules","act.setup.rulesHint":"Select a routing template.","act.setup.title":"Getting started","act.since":"Since {time}","act.topDevices":"Top traffic","act.traffic":"Traffic","act.truncated":"Truncated","act.unavailable":"Unavailable","act.unknown":"Unknown","act.upload":"Upload","act.viewAll":"View all","act.viewDetails":"View details","cm.all":"All","cm.byWord":"By word","cm.commands":"Editing commands","cm.completions":"Completions","cm.controlCharacter":"Control character","cm.currentMatch":"Current match","cm.find":"Find","cm.findReplace":"Find and replace","cm.go":"Go","cm.gotoLine":"Go to line","cm.matchCase":"Match case","cm.next":"Next","cm.onLine":"On line","cm.previous":"Previous","cm.redo":"Redo","cm.regexp":"Regexp","cm.replace":"Replace","cm.replaceAll":"Replace all","cm.replaceOne":"Replace","cm.replacedMatches":"Matches replaced: $","cm.replacedOnLine":"Replaced match on line $","cm.selectionDeleted":"Selection deleted","cm.toggleComment":"Toggle comment","cm.undo":"Undo","config.acceptedDiagnostics":"Diagnostics kept for the accepted configuration (generation {generation})","config.atFile":"{file} line {line}: {message}","config.atLine":"Line {line}: {message}","config.backendDetail":"{text}. Backend message: {message}","config.backendText":"Details","config.backup.export":"Export configuration","config.backup.exportFailed":"Export failed: {error}","config.backup.exportHelp":"Exports accepted configuration. Listener secrets are omitted; other credentials may remain. Review before sharing.","config.backup.import":"ImportLine truncated
@@ -0,0 +1 @@
const e=JSON.parse('{"about.contract":"契约提交","about.credits":"字体 Noto Sans TC/SC(OFL);图标 Adobe Spectrum(Apache-2.0);配色来自 Rosé Pine、Catppuccin、Nord、Kary Pro Colors、Ant Design、Arco Design 与 Semi Design。","about.duck":"摸摸我","about.license":"许可证","about.privacy":"doona 只与你连接的后端通信,不收集数据,也不发送到其他地方。","about.quack":"嘎!","about.tagline":"{engine} 的 Web 界面","about.title":"关于 doona","act.active":"活动连接","act.cgroup":"cgroup 已用","act.chooseRoutingMode":"选择分流方式","act.cpu":"CPU 使用率","act.cpuHelp":"进程占用单个 CPU 核心的百分比。超过 100% 表示使用了一个以上的核心。","act.d7":"7 天","act.devices":"设备","act.domains":"域名","act.emptyHistory":"暂无历史样本","act.global":"全局出站","act.globalMissing":"全局模式须指定出站","act.groupFollow":"自动","act.groupPickHelp":"默认跟随连接最多的策略组,选择组只会更改此卡片。","act.h1":"1 小时","act.h24":"24 小时","act.h6":"6 小时","act.historyRange":"历史范围","act.issues":"通知与问题","act.latency":"延迟","act.limited":"{n} 项功能未开启","act.live":"实时","act.m10":"10 分钟","act.memory":"内存","act.mode":"出站模式","act.modeApplied":"出站模式已写入配置并重载:{mode}","act.modeInterleaved":"routing 区段有普通规则排在 must 规则前面。请先把 must 规则移到 routing 区段最前面,再切换出站模式。","act.modeNoRouting":"主配置未包含 routing 区段","act.modeReadOnly":"只读","act.modeReadOnlyAction":"请确认 honk 对主配置文件有写入权限,并将 native_api 设置放在独立的 include 文件。","act.modeReadOnlyReason":"honk 须允许配置写入,且控制端已设置身份验证。主配置若含 native_api 或 clash_api 的密钥字段或嵌套区块,会标记为只读。配置含当前的监听密钥时也一样。","act.modeUnavailable":"此后端不提供","act.modeWhyReadOnly":"查看只读原因","act.noConnections":"此后端不提供连接","act.noHistory":"此后端不提供历史数据","act.noIssues":"当前没有需要处理的问题","act.noOutbounds":"此后端不提供出站统计","act.noRoutingMode":"尚未配置分流规则","act.noSubscriptions":"尚无订阅","act.noticeGap":"{reason},本次记录期间累计丢弃:{n}","act.noticeRepeat":"重复 {n} 次","act.outUsage":"出站下载量","act.rankingEmpty":"当前没有可排行的连接","act.rankingScope":"按当前可见连接的下载量排序,占比以全部可见数据计算。","act.rankingTruncated":"连接列表已截断,排行仅涵盖已获取的数据。","act.readOnlyDocs":"只读的配置文件","act.rss":"常驻内存","act.sampling":"采样中","act.setup.checkConnection":"检查连接","act.setup.chooseRules":"选择规则","act.setup.complete":"已完成","act.setup.connection":"检查连接","act.setup.connectionHint":"测试当前节点延迟。","act.setup.dismiss":"不再显示","act.setup.incomplete":"未完成","act.setup.nodes":"添加订阅或节点","act.setup.nodesHint":"导入代理节点。","act.setup.rules":"选择路由规则","act.setup.rulesHint":"选择路由模板。","act.setup.title":"开始使用","act.since":"自 {time} 起","act.topDevices":"流量排行","act.traffic":"流量","act.truncated":"已截断","act.viewAll":"查看全部","act.viewDetails":"查看详情","cm.all":"全部","cm.byWord":"整词","cm.commands":"编辑命令","cm.completions":"补全建议","cm.controlCharacter":"控制字符","cm.currentMatch":"当前匹配项","cm.find":"查找","cm.findReplace":"查找和替换","cm.go":"跳转","cm.gotoLine":"跳转到行","cm.matchCase":"区分大小写","cm.next":"下一个","cm.onLine":"行号","cm.previous":"上一个","cm.redo":"重做","cm.regexp":"正则表达式","cm.replace":"替换","cm.replaceAll":"全部替换","cm.replaceOne":"替换","cm.replacedMatches":"已替换 $ 处","cm.replacedOnLine":"已替换第 $ 行的匹配项","cm.selectionDeleted":"已删除选区","cm.toggleComment":"切换注释","cm.undo":"撤销","config.acceptedDiagnostics":"生效配置(generation {generation})保留的诊断","config.atFile":"{file} 第 {line} 行:{message}","config.atLine":"第 {line} 行:{message}","config.backendDetail":"{text}。后端消息:{message}","config.backendText":"详细","config.backup.export":"导出配置","config.backup.exportFailed":"无法导出:{error}","config.backup.exportHelp":"导出已接受的配置。不含 listener secrets,但可能保留其他凭据;分享前请检查。","config.backup.import":"导入服务器文件","config.backup.importHelp":"重新读取启动时 -c 指定的文件树,验证后替换数据库配置并立即应用。此操作不会上传本地文件。","config.backup.importTitle":"用服务器文件替换配置?","config.backup.imported":"已导入Line truncated
@@ -1 +0,0 @@
const e=JSON.parse('{"about.api":"API","about.contract":"契约提交","about.credits":"字体 Noto Sans TC/SC(OFL);图标 Adobe Spectrum(Apache-2.0);配色来自 Rosé Pine、Catppuccin、Nord、Kary Pro Colors、Ant Design、Arco Design 与 Semi Design。","about.duck":"摸摸我","about.engine":"引擎","about.license":"许可证","about.privacy":"doona 只与你连接的后端通信,不收集数据,也不发送到其他地方。","about.quack":"嘎!","about.tagline":"{engine} 的 Web 界面","about.title":"关于 doona","act.active":"活动连接","act.cgroup":"cgroup 已用","act.chooseRoutingMode":"选择分流方式","act.cpu":"CPU 使用率","act.cpuHelp":"进程占用单个 CPU 核心的百分比。超过 100% 表示使用了一个以上的核心。","act.d7":"7 天","act.devices":"设备","act.domains":"域名","act.download":"下载","act.emptyHistory":"暂无历史样本","act.global":"全局出站","act.globalMissing":"全局模式须指定出站","act.groupFollow":"自动","act.groupPickHelp":"默认跟随连接最多的策略组,选择组只会更改此卡片。","act.h1":"1 小时","act.h24":"24 小时","act.h6":"6 小时","act.historyRange":"历史范围","act.issues":"通知与问题","act.latency":"延迟","act.limited":"{n} 项功能未开启","act.live":"实时","act.m10":"10 分钟","act.memory":"内存","act.mode":"出站模式","act.modeApplied":"出站模式已写入配置并重载:{mode}","act.modeInterleaved":"routing 区段有普通规则排在 must 规则前面。请先把 must 规则移到 routing 区段最前面,再切换出站模式。","act.modeNoRouting":"主配置未包含 routing 区段","act.modeReadOnly":"只读","act.modeReadOnlyAction":"请确认 honk 对主配置文件有写入权限,并将 native_api 设置放在独立的 include 文件。","act.modeReadOnlyReason":"honk 须允许配置写入,且控制端已设置身份验证。主配置若含 native_api 或 clash_api 的密钥字段或嵌套区块,会标记为只读。配置含当前的监听密钥时也一样。","act.modeUnavailable":"此后端不提供","act.modeWhyReadOnly":"查看只读原因","act.noConnections":"此后端不提供连接","act.noHistory":"此后端不提供历史数据","act.noIssues":"当前没有需要处理的问题","act.noOutbounds":"此后端不提供出站统计","act.noRoutingMode":"尚未配置分流规则","act.noSubscriptions":"尚无订阅","act.noticeRepeat":"重复 {n} 次","act.outUsage":"出站下载量","act.rankingEmpty":"当前没有可排行的连接","act.rankingScope":"按当前可见连接的下载量排序,占比以全部可见数据计算。","act.rankingTruncated":"连接列表已截断,排行仅涵盖已获取的数据。","act.readOnlyDocs":"只读的配置文件","act.rss":"常驻内存","act.sampling":"采样中","act.setup.checkConnection":"检查连接","act.setup.chooseRules":"选择规则","act.setup.complete":"已完成","act.setup.connection":"检查连接","act.setup.connectionHint":"测试当前节点延迟。","act.setup.dismiss":"不再显示","act.setup.incomplete":"未完成","act.setup.nodes":"添加订阅或节点","act.setup.nodesHint":"导入代理节点。","act.setup.rules":"选择路由规则","act.setup.rulesHint":"选择路由模板。","act.setup.title":"开始使用","act.since":"自 {time} 起","act.topDevices":"流量排行","act.traffic":"流量","act.truncated":"已截断","act.unavailable":"不可用","act.unknown":"未知","act.upload":"上传","act.viewAll":"查看全部","act.viewDetails":"查看详情","cm.all":"全部","cm.byWord":"整词","cm.commands":"编辑命令","cm.completions":"补全建议","cm.controlCharacter":"控制字符","cm.currentMatch":"当前匹配项","cm.find":"查找","cm.findReplace":"查找和替换","cm.go":"跳转","cm.gotoLine":"跳转到行","cm.matchCase":"区分大小写","cm.next":"下一个","cm.onLine":"行号","cm.previous":"上一个","cm.redo":"重做","cm.regexp":"正则表达式","cm.replace":"替换","cm.replaceAll":"全部替换","cm.replaceOne":"替换","cm.replacedMatches":"已替换 $ 处","cm.replacedOnLine":"已替换第 $ 行的匹配项","cm.selectionDeleted":"已删除选区","cm.toggleComment":"切换注释","cm.undo":"撤销","config.acceptedDiagnostics":"生效配置(generation {generation})保留的诊断","config.atFile":"{file} 第 {line} 行:{message}","config.atLine":"第 {line} 行:{message}","config.backendDetail":"{text}。后端消息:{message}","config.backendText":"详细","config.backup.export":"导出配置","config.backup.exportFailed":"无法导出:{error}","config.backup.exportHelp":"导出已接受的配置。不含 listener secrets,但可能保留其他凭据;分享前请检查。","config.backup.import":"导入服务器文件","config.backup.importHelp":"重新读取启动时 -c 指定的文件树,验证后替换数据库配置并立即应用。此操作不会上传本地文件。","config.backup.importTitleLine truncated
@@ -0,0 +1 @@
const e=JSON.parse('{"about.contract":"契約提交","about.credits":"字型 Noto Sans TC/SC(OFL);圖示 Adobe Spectrum(Apache-2.0);配色來自 Rosé Pine、Catppuccin、Nord、Kary Pro Colors、Ant Design、Arco Design 與 Semi Design。","about.duck":"摸摸我","about.license":"授權","about.privacy":"doona 只與你連線的後端通訊,不收集資料,也不傳送到其他地方。","about.quack":"嘎!","about.tagline":"{engine} 的 Web 介面","about.title":"關於 doona","act.active":"活動連線","act.cgroup":"cgroup 已用","act.chooseRoutingMode":"選擇分流方式","act.cpu":"CPU 使用率","act.cpuHelp":"行程佔用單一 CPU 核心的百分比。超過 100% 表示使用了一個以上的核心。","act.d7":"7 天","act.devices":"裝置","act.domains":"網域","act.emptyHistory":"尚無歷史樣本","act.global":"全域出站","act.globalMissing":"全域模式須指定出站","act.groupFollow":"自動","act.groupPickHelp":"預設跟隨連線最多的策略群組,選擇群組只會變更此卡片。","act.h1":"1 小時","act.h24":"24 小時","act.h6":"6 小時","act.historyRange":"歷史範圍","act.issues":"通知與問題","act.latency":"延遲","act.limited":"{n} 項功能未開啟","act.live":"即時","act.m10":"10 分鐘","act.memory":"記憶體","act.mode":"出站模式","act.modeApplied":"出站模式已寫入組態並重載:{mode}","act.modeInterleaved":"routing 區段有一般規則排在 must 規則前面。請先把 must 規則移到 routing 區段最前面,再切換出站模式。","act.modeNoRouting":"主組態未包含 routing 區段","act.modeReadOnly":"唯讀","act.modeReadOnlyAction":"請確認 honk 對主設定檔有寫入權限,並將 native_api 設定放在獨立的 include 檔案。","act.modeReadOnlyReason":"honk 須允許組態寫入,且控制端已設定驗證。主組態若含 native_api 或 clash_api 的密鑰欄位或巢狀區塊,會標記為唯讀。組態含目前的監聽密鑰時也一樣。","act.modeUnavailable":"此後端不提供","act.modeWhyReadOnly":"檢視唯讀原因","act.noConnections":"此後端不提供連線","act.noHistory":"此後端不提供歷史資料","act.noIssues":"目前沒有需要處理的問題","act.noOutbounds":"此後端不提供出站統計","act.noRoutingMode":"尚未設定分流規則","act.noSubscriptions":"尚無訂閱","act.noticeGap":"{reason},本次記錄期間累計捨棄:{n}","act.noticeRepeat":"重複 {n} 次","act.outUsage":"出站下載量","act.rankingEmpty":"目前沒有可排行的連線","act.rankingScope":"依目前可見連線的下載量排序,佔比以全部可見資料計算。","act.rankingTruncated":"連線清單已截斷,排行僅涵蓋已取得的資料。","act.readOnlyDocs":"唯讀的設定檔","act.rss":"常駐記憶體","act.sampling":"取樣中","act.setup.checkConnection":"檢查連線","act.setup.chooseRules":"選擇規則","act.setup.complete":"已完成","act.setup.connection":"檢查連線","act.setup.connectionHint":"測試目前節點延遲。","act.setup.dismiss":"不再顯示","act.setup.incomplete":"未完成","act.setup.nodes":"新增訂閱或節點","act.setup.nodesHint":"匯入代理節點。","act.setup.rules":"選擇路由規則","act.setup.rulesHint":"選擇路由範本。","act.setup.title":"開始使用","act.since":"自 {time} 起","act.topDevices":"流量排行","act.traffic":"流量","act.truncated":"已截斷","act.viewAll":"檢視全部","act.viewDetails":"檢視詳情","cm.all":"全部","cm.byWord":"整字","cm.commands":"編輯指令","cm.completions":"補全建議","cm.controlCharacter":"控制字元","cm.currentMatch":"目前相符項目","cm.find":"尋找","cm.findReplace":"尋找與取代","cm.go":"前往","cm.gotoLine":"前往行","cm.matchCase":"區分大小寫","cm.next":"下一個","cm.onLine":"行號","cm.previous":"上一個","cm.redo":"重做","cm.regexp":"正規表示式","cm.replace":"取代","cm.replaceAll":"全部取代","cm.replaceOne":"取代","cm.replacedMatches":"已取代 $ 處","cm.replacedOnLine":"已取代第 $ 行的相符項目","cm.selectionDeleted":"已刪除選取範圍","cm.toggleComment":"切換註解","cm.undo":"復原","config.acceptedDiagnostics":"生效組態(generation {generation})保留的診斷","config.atFile":"{file} 第 {line} 行:{message}","config.atLine":"第 {line} 行:{message}","config.backendDetail":"{text}。後端訊息:{message}","config.backendText":"詳細","config.backup.export":"匯出組態","config.backup.exportFailed":"無法匯出:{error}","config.backup.exportHelp":"匯出已接受的組態。listener secrets 不包含在內,但可能保留其他憑證;分享前請檢查。","config.backup.import":"匯入伺服器檔案","config.backup.importHelp":"重新讀取啟動時 -c 指定的檔案樹,驗證後取代資料庫組態並立即套用。此操作不會上傳本機檔案。","config.backup.importTitle":"以伺服器檔案取代組態?","config.backup.importeLine truncated
@@ -1 +0,0 @@
const e=JSON.parse('{"about.api":"API","about.contract":"契約提交","about.credits":"字型 Noto Sans TC/SC(OFL);圖示 Adobe Spectrum(Apache-2.0);配色來自 Rosé Pine、Catppuccin、Nord、Kary Pro Colors、Ant Design、Arco Design 與 Semi Design。","about.duck":"摸摸我","about.engine":"引擎","about.license":"授權","about.privacy":"doona 只與你連線的後端通訊,不收集資料,也不傳送到其他地方。","about.quack":"嘎!","about.tagline":"{engine} 的 Web 介面","about.title":"關於 doona","act.active":"活動連線","act.cgroup":"cgroup 已用","act.chooseRoutingMode":"選擇分流方式","act.cpu":"CPU 使用率","act.cpuHelp":"行程佔用單一 CPU 核心的百分比。超過 100% 表示使用了一個以上的核心。","act.d7":"7 天","act.devices":"裝置","act.domains":"網域","act.download":"下載","act.emptyHistory":"尚無歷史樣本","act.global":"全域出站","act.globalMissing":"全域模式須指定出站","act.groupFollow":"自動","act.groupPickHelp":"預設跟隨連線最多的策略群組,選擇群組只會變更此卡片。","act.h1":"1 小時","act.h24":"24 小時","act.h6":"6 小時","act.historyRange":"歷史範圍","act.issues":"通知與問題","act.latency":"延遲","act.limited":"{n} 項功能未開啟","act.live":"即時","act.m10":"10 分鐘","act.memory":"記憶體","act.mode":"出站模式","act.modeApplied":"出站模式已寫入組態並重載:{mode}","act.modeInterleaved":"routing 區段有一般規則排在 must 規則前面。請先把 must 規則移到 routing 區段最前面,再切換出站模式。","act.modeNoRouting":"主組態未包含 routing 區段","act.modeReadOnly":"唯讀","act.modeReadOnlyAction":"請確認 honk 對主設定檔有寫入權限,並將 native_api 設定放在獨立的 include 檔案。","act.modeReadOnlyReason":"honk 須允許組態寫入,且控制端已設定驗證。主組態若含 native_api 或 clash_api 的密鑰欄位或巢狀區塊,會標記為唯讀。組態含目前的監聽密鑰時也一樣。","act.modeUnavailable":"此後端不提供","act.modeWhyReadOnly":"檢視唯讀原因","act.noConnections":"此後端不提供連線","act.noHistory":"此後端不提供歷史資料","act.noIssues":"目前沒有需要處理的問題","act.noOutbounds":"此後端不提供出站統計","act.noRoutingMode":"尚未設定分流規則","act.noSubscriptions":"尚無訂閱","act.noticeRepeat":"重複 {n} 次","act.outUsage":"出站下載量","act.rankingEmpty":"目前沒有可排行的連線","act.rankingScope":"依目前可見連線的下載量排序,佔比以全部可見資料計算。","act.rankingTruncated":"連線清單已截斷,排行僅涵蓋已取得的資料。","act.readOnlyDocs":"唯讀的設定檔","act.rss":"常駐記憶體","act.sampling":"取樣中","act.setup.checkConnection":"檢查連線","act.setup.chooseRules":"選擇規則","act.setup.complete":"已完成","act.setup.connection":"檢查連線","act.setup.connectionHint":"測試目前節點延遲。","act.setup.dismiss":"不再顯示","act.setup.incomplete":"未完成","act.setup.nodes":"新增訂閱或節點","act.setup.nodesHint":"匯入代理節點。","act.setup.rules":"選擇路由規則","act.setup.rulesHint":"選擇路由範本。","act.setup.title":"開始使用","act.since":"自 {time} 起","act.topDevices":"流量排行","act.traffic":"流量","act.truncated":"已截斷","act.unavailable":"無法使用","act.unknown":"未知","act.upload":"上傳","act.viewAll":"檢視全部","act.viewDetails":"檢視詳情","cm.all":"全部","cm.byWord":"整字","cm.commands":"編輯指令","cm.completions":"補全建議","cm.controlCharacter":"控制字元","cm.currentMatch":"目前相符項目","cm.find":"尋找","cm.findReplace":"尋找與取代","cm.go":"前往","cm.gotoLine":"前往行","cm.matchCase":"區分大小寫","cm.next":"下一個","cm.onLine":"行號","cm.previous":"上一個","cm.redo":"重做","cm.regexp":"正規表示式","cm.replace":"取代","cm.replaceAll":"全部取代","cm.replaceOne":"取代","cm.replacedMatches":"已取代 $ 處","cm.replacedOnLine":"已取代第 $ 行的相符項目","cm.selectionDeleted":"已刪除選取範圍","cm.toggleComment":"切換註解","cm.undo":"復原","config.acceptedDiagnostics":"生效組態(generation {generation})保留的診斷","config.atFile":"{file} 第 {line} 行:{message}","config.atLine":"第 {line} 行:{message}","config.backendDetail":"{text}。後端訊息:{message}","config.backendText":"詳細","config.backup.export":"匯出組態","config.backup.exportFailed":"無法匯出:{error}","config.backup.exportHelp":"匯出已接受的組態。listener secrets 不包含在內,但可能保留其他憑證;分享前請檢查。","config.backup.import":"匯入伺服器檔案","config.backup.importHelp":"重新讀取啟動時 -c 指定的檔案樹,驗證後取代資料庫組態並立即套用。此操作不會上傳本機檔案。","config.Line truncated
@@ -1 +0,0 @@
import{cv as e,ck as t,gF as a,ex as n,cc as r,gG as s,gH as o,dT as i,cu as l,cl as c,bf as d,dQ as u,cb as p,cg as f,gI as g,ey as b,d$ as m,e8 as y,e9 as h,el as v,gC as _,cB as w,e6 as k,eg as x,dx as S,eH as j,cw as C,aM as P,bz as M,eI as D,dz as N,dB as K,cZ as E,bJ as A,fX as z,fD as L,F as T,T as F,gJ as I,gK as R,gL as $,N as q,aP as G,fE as O,gM as X,O as B,fF as U,gN as W,fG as V,s as Y,x as H,ap as J,fK as Q,$ as Z,fM as ee,a7 as te,bD as ae,gO as ne,L as re,gP as se,gQ as oe,aL as ie,fO as le,gR as ce,fN as de,gS as ue,gT as pe,gU as fe,bT as ge,gV as be,gW as me,av as ye,aa as he,a0 as ve,c6 as _e,gX as we,f$ as ke,R as xe,br as Se}from"./index-BgFj_VXE.js";import{r as je,$ as Ce,j as Pe}from"./vendor-react-64fcanlc.js";import{k as Me,l as De,a as Ne,c as Ke}from"./Select-CkiGmyVC.js";function Ee(o){let{onMoveStart:i,onMove:l,onMoveEnd:c}=o,d=je.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:u,removeGlobalListener:p}=e(),f=je.useCallback((e,t,a,n)=>{0===a&&0===n||(d.current.didMove||(d.current.didMove=!0,i?.({type:"movestart",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),l?.({type:"move",pointerType:t,deltaX:a,deltaY:n,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))},[i,l,d]),g=t(f),b=je.useCallback((e,t)=>{a(),d.current.didMove&&c?.({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},[c,d]),m=t(b);return{moveProps:je.useMemo(()=>{let e={},t=()=>{s(),d.current.didMove=!1};{let a=e=>{if(e.pointerId===d.current.id){let t=e.pointerType||"mouse";g(e,t,e.pageX-(d.current.lastPosition?.pageX??0),e.pageY-(d.current.lastPosition?.pageY??0)),d.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},s=e=>{if(e.pointerId===d.current.id){let t=e.pointerType||"mouse";m(e,t),d.current.id=null;let o=n(r(e));p(o,"pointermove",a,!1),p(o,"pointerup",s,!1),p(o,"pointercancel",s,!1)}};e.onPointerDown=e=>{if(0===e.button&&null==d.current.id){t(),e.stopPropagation(),e.preventDefault(),d.current.lastPosition={pageX:e.pageX,pageY:e.pageY},d.current.id=e.pointerId;let o=n(r(e));u(o,"pointermove",a,!1),u(o,"pointerup",s,!1),u(o,"pointercancel",s,!1)}}}let a=(e,a,n)=>{t(),g(e,"keyboard",a,n),m(e,"keyboard")};return e.onKeyDown=e=>{switch(e.key){case"Left":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),a(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault(),e.stopPropagation(),a(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault(),e.stopPropagation(),a(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault(),e.stopPropagation(),a(e,0,1)}},e},[u,p,d])}}function Ae(e,t,a){const{isSelected:n}=t,{isPressed:r,buttonProps:s}=o({...e,onPress:i(t.toggle,e.onPress)},a);return{isPressed:r,isSelected:n,isDisabled:e.isDisabled||!1,buttonProps:l(s,{"aria-pressed":n})}}function ze(e,t,a){let{isDisabled:n}=e,{toolbarProps:s}=function(e,t){const{"aria-label":a,"aria-labelledby":n,orientation:s="horizontal"}=e;let[o,i]=je.useState(!1);c(()=>{i(!(!t.current||!t.current.parentElement?.closest('[role="toolbar"]')))});const{direction:l}=d(),b="rtl"===l&&"horizontal"===s;let m=g(t);const y=je.useRef(null);return{toolbarProps:{...u(e,{labelable:!0}),role:o?"group":"toolbar","aria-orientation":s,"aria-label":a,"aria-labelledby":null==a?n:void 0,onKeyDownCapture:o?void 0:e=>{if(p(e.currentTarget,r(e))){if("horizontal"===s&&"ArrowRight"===e.key||"vertical"===s&&"ArrowDown"===e.key)b?m.focusPrevious():m.focusNext();else{if(!("horizontal"===s&&"ArrowLeft"===e.key||"vertical"===s&&"ArrowUp"===e.key))return"Tab"===e.key?(y.current=f(),void(e.shiftKey?m.focusFirst():m.focusLast())):void 0;b?m.focusNext():m.focusPrevious()}e.stopPropagation(),e.preventDefault()}},onFocusCapture:o?void 0:e=>{y.current&&!p(e.currentTarget,e.relatedTarget)&&p(t.current,r(e))&&(y.current?.focus(),y.current=null)},onBlurCapture:o?void 0:e=>{p(e.currentTarget,e.relatedTarget)||y.current||(y.current=r(e))}}}}(e,a);return{groupProps:{...s,role:"single"===t.selectionMode?"radiogroup":s.role,"aria-disabled":n}}}const Le=je.createContext({}),Te=je.createContext(null),Fe=je.forwardRef(function(e,t){[e,t]=m(e,t,Le);let a=function(e){let{selectionMode:t="single",disallowEmptySelection:a,isDisabled:n=!1}=e,[r,s]=b(je.useMemo(()=>e.selectedKeys?new Set(e.selectedKeys):void 0,[e.selectedKeys]),je.useMemo(()=>e.defaultSelectedKeys?new Set(e.defaultSelectedKeys):new Set,[e.defaultSelectedKeys]),e.onSelectionChange);return{selectionMode:t,isDisabled:n,selectedKeys:r,setSelectedKeys:s,toggleKey(e){let n;"multiple"===t?(n=new Set(r),n.has(e)&&(!a||n.size>1)?n.delete(e):n.add(e)):n=new Set(r.has(e)&&!a?[]:[e]),s(n)},setSelected(e,t){t!==r.has(e)&&this.toggleKey(e)}}}(e),{groupProps:n}=ze(e,a,t),r=y({...e,values:{orientation:e.orientation||"horizontal",isDisabled:a.isDisabled,state:a},defaultClassName:"react-aria-ToggleButtonGroup"}),s=u(e,{global:!0});return Ce.createElement(h.div,{...l(s,r,n),ref:t,slot:e.slot||void 0,"data-orientaLine truncated
@@ -0,0 +1 @@
const e=[{id:"backend",titleKey:"settings.backend"},{id:"runtime",titleKey:"settings.runtime"},{id:"geodata",titleKey:"settings.geodata",aliases:["geodata","geoip","geosite"]},{id:"appearance",titleKey:"settings.appearance"},{id:"probes",titleKey:"settings.probes"},{id:"about",titleKey:"settings.about"}],a=a=>e.filter(e=>"geodata"!==e.id||a?.geodata.available),t=e=>`settings-${e}`;function s(a){return{headingId:t(a),titleKey:e.find(e=>e.id===a).titleKey}}const i=[{id:"profile",card:"backend",labelKey:"settings.profile"},{id:"addProfile",card:"backend",labelKey:"settings.addProfile"},{id:"renameProfile",card:"backend",labelKey:"settings.renameProfile"},{id:"deleteProfile",card:"backend",labelKey:"settings.deleteProfile"},{id:"signOut",card:"backend",labelKey:"settings.signOut",aliases:["logout","log out"]},{id:"api",card:"backend",labelKey:"ui.backendUrl",aliases:["url","api"]},{id:"token",card:"backend",labelKey:"login.token",aliases:["password"]},{id:"test",card:"backend",labelKey:"settings.test"},{id:"lang",card:"appearance",labelKey:"ui.lang",aliases:["language","locale"]},{id:"dateFormat",card:"appearance",labelKey:"settings.dateFormat",aliases:["date"]},{id:"timeFormat",card:"appearance",labelKey:"settings.timeFormat",aliases:["clock","12-hour","24-hour","am pm"]},{id:"palette",card:"appearance",labelKey:"ui.palette",aliases:["theme","color"]},{id:"scheme",card:"appearance",labelKey:"settings.scheme",aliases:["dark mode","light mode"]},{id:"wordmark",card:"appearance",labelKey:"ui.wordmark"},{id:"toastPlacement",card:"appearance",labelKey:"settings.toastPlacement",aliases:["toast"]},{id:"startPage",card:"appearance",labelKey:"settings.startPage",aliases:["start page","home page"]},{id:"countryFlags",card:"appearance",labelKey:"settings.countryFlags",aliases:["flags"]},{id:"sparklines",card:"appearance",labelKey:"settings.sparklines",aliases:["sparklines"]},{id:"mirrored",card:"appearance",labelKey:"settings.mirror",aliases:["rtl"]},{id:"probeMethod",card:"probes",labelKey:"settings.probeMethod"},{id:"probeFamily",card:"probes",labelKey:"settings.probeFamily",aliases:["ipv4","ipv6"]},{id:"probeWarmth",card:"probes",labelKey:"settings.probeWarmth"},{id:"probeMembers",card:"probes",labelKey:"settings.probeMembers"},{id:"geodataSource",card:"geodata",labelKey:"settings.geodataSource",sources:!0},{id:"geodataCustomUrls",card:"geodata",labelKey:"settings.geodataCustomUrls",sources:!0},{id:"geodataRoute",card:"geodata",labelKey:"settings.geodataRoute",sources:!0},{id:"geodataChecksum",card:"geodata",labelKey:"settings.geodataVerifyChecksum",sources:!0},{id:"geodataAutoUpdate",card:"geodata",labelKey:"settings.geodataAutoUpdate",sources:!0},{id:"geodataUpdate",card:"geodata",labelKey:"settings.geodataUpdateNow"},{id:"geodataReset",card:"geodata",labelKey:"settings.geodataReset"}],d={"log.level":"settings.logLevel","log.buffered_records":"settings.logBuffer","dns_log.max_records":"settings.dnsLogSize","flows.max_flows":"settings.flowsMax","flows.retention_seconds":"settings.flowsRetention",record_flows:"settings.recordFlows",record_logs:"settings.recordLogs",record_dns_log:"settings.recordDnsLog"};function l(e){return!0===e?.geodata.available&&!0===e.geodata.configurable_sources&&e.runtime_settings.available&&(e.runtime_settings.fields??[]).includes("geodata")}export{e as a,a as b,t as c,i as d,l as g,d as r,s};
Loaded 100 of 143 files, more files were not shown because too many files have changed in this diff. Show more