mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-04 04:33:56 +08:00
🏅 Sync 2026-10-31 01:51:46
This commit is contained in:
1 parent
b7ebf9532e
commit
e48981c4a4
149 files changed
+406
-208
No files matched your search
+1
-1
@@ -1 +1 @@
|
||||
import{j as r}from"./vendor-react-64fcanlc.js";import{I as a}from"./index-tt2n9Zk_.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-DFPUSiWe.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
-1
@@ -1 +1 @@
|
||||
import{j as e,r as s}from"./vendor-react-64fcanlc.js";import{fz as l,fA as n,fB as a,co as c,cz as t,cq as i,bz as r,eZ as o,cp as u,dv as d,fC as p,dw as h,cr as m,u as x,b5 as b,fD as j,bt as f,cs as v,fE as g,ct as y,cu as C,fF as N,cv as A,T as S,I as M,bi as k,dZ as w,B as L}from"./index-tt2n9Zk_.js";import{a as q,b as I}from"./ItemText-EZM3RrYN.js";const D=e=>e>12,z=({orientation:s="vertical"})=>e.jsx(l,{orientation:s,className:"vertical"===s?"rp-vrule":"rp-hrule"}),H=e=>s=>{if("all"===s)return;const l=[...s][0];null!=l&&e(String(l))};function P({item:s,children:l,onAction:n}){return e.jsxs(A,{id:s.id,className:"rp-item",textValue:s.label,onAction:n,children:[e.jsx(q,{}),e.jsx(I,{i:s,children:l})]})}function $({children:l,content:n,label:x,quiet:b,small:j,size:f,chevron:v=!0,isDisabled:g,appearance:y,placement:C="bottom end",count:N,onIntent:A}){const S=N?e.jsx("span",{className:"rp-count","aria-hidden":"true",children:N}):null,M=a(g),[k,w]=s.useState(!1),L=c(),q=t(f),I=s.useRef(null),D=e.jsxs(i,{ref:I,className:y?"rp-select":o({quiet:b,small:j,icon:!v}),"data-size":q,"aria-label":x,"aria-describedby":M?.id,isDisabled:g,onHoverStart:A,onFocus:A,children:[l,S,v&&e.jsx(r,{className:"rp-chev"})]});return e.jsxs(u,{children:[v&&!M?D:e.jsxs(d,{delay:400,isOpen:k,onOpenChange:w,children:[e.jsx(p,{children:e.jsx("span",{className:"rp-tipwrap",tabIndex:g?0:-1,"data-passive":g?void 0:"",onPointerDown:e=>{g&&"touch"===e.pointerType&&w(e=>!e)},children:D})}),e.jsx(h,{triggerRef:I,children:M?.text??x})]}),e.jsx(m,{className:"rp-popover rp-list-popover",placement:C,boundaryElement:L,children:n})]})}function B({label:s,labelledBy:l,sections:n,headers:a=!0,focusedByCaller:c,onAction:t,searchLabel:i,actions:r=[]}){const o="function"==typeof n?n():n,u=!!i&&D(E(o)),d=e.jsxs(v,{"aria-label":s,"aria-labelledby":l??"",className:u?"rp-menu-scroll":void 0,autoFocus:!c&&void 0,children:[o.map(s=>e.jsxs(y,{"aria-label":a&&!s.hideHeader?void 0:s.title,selectionMode:s.selectionMode??"single",selectedKeys:[`/choice-${s.value}`],onSelectionChange:s.onChange&&H(e=>s.onChange(e.slice(8))),children:[a&&!s.hideHeader&&e.jsx(C,{className:"rp-sec-h",children:s.title}),s.items.map(s=>e.jsx(P,{item:{...s,id:`/choice-${s.id}`},onAction:t&&(()=>t(s.id))},s.id))]},s.title)),r.length>0&&e.jsx(z,{orientation:"horizontal"}),r.map(s=>e.jsx(O,{...s},s.label))]});return u?e.jsx(N,{label:i,children:d}):d}const E=e=>e.reduce((e,s)=>e+s.items.length,0);function F(e,s){for(const l of e){const n=l.items.find(e=>e.id===l.value);if(n)return e.length>1&&!l.plain&&n.label!==l.title?s("ui.sectionChoice",{section:l.title,item:n.label}):n.label}return""}const O=({label:s,icon:l,onAction:n})=>e.jsxs(A,{className:"rp-item rp-subitem",textValue:s,onAction:n,shouldCloseOnSelect:!0,children:[e.jsx("span",{className:"ic",children:l}),e.jsx(S,{children:s})]}),V=({id:s,label:l,icon:n,sections:a})=>{const c=x();return e.jsxs(A,{id:s,className:"rp-item rp-subitem",textValue:l,children:[e.jsx("span",{className:"ic",children:n}),e.jsx(S,{children:l}),e.jsxs("span",{className:"desc",children:[F(a,c),e.jsx(r,{className:"rp-chev-end"})]})]})};function R({label:l,submenus:n,actions:a=[]}){const c="function"==typeof n?n():n,t=x(),o=b(j),[u,d]="rtl"===f().direction?["ArrowLeft","ArrowRight"]:["ArrowRight","ArrowLeft"],[{open:p,left:h},y]=s.useState({open:null,left:null}),C=s.useRef(null),N=s.useId(),A=e=>{C.current?.focus(),y({open:e,left:null==e?p:null})};if(s.useEffect(()=>{const e=C.current;if(!e||null==p&&null==h)return;const s=null==p?`[data-key="${CSS.escape(`/submenu-${h}`)}"]`:'[aria-checked="true"], [role="menuitem"]',l=requestAnimationFrame(()=>{document.activeElement===e&&e.querySelector(s)?.focus()});return()=>cancelAnimationFrame(l)},[p,h]),!o)return e.jsxs(v,{"aria-label":l,"aria-labelledby":"",children:[c.map(s=>"sections"in s?e.jsxs(g,{children:[e.jsx(V,{id:`/submenu-${s.label}`,...s}),e.jsx(m,{className:"rp-popover rp-list-popover",offset:-4,crossOffset:-9,children:e.jsx(B,{...s,headers:s.sections.length>1})})]},s.label):e.jsx(O,{...s},s.label)),a.map(s=>e.jsx(O,{...s},s.label))]});const S=null==p?null:c.find(e=>e.label===p);if(S&&"sections"in S){const s=()=>A(null),l=e=>{e.key!==d&&"Escape"!==e.key||(e.preventDefault(),e.stopPropagation(),s())};return e.jsxs("div",{ref:C,className:"rp-drill",tabIndex:-1,onKeyDownCapture:l,children:[e.jsxs(i,{className:"rp-item rp-drill-back","aria-label":t("ui.back"),onPress:s,children:[e.jsx(r,{className:"rp-chev-start"}),e.jsx("span",{id:N,children:S.label})]}),e.jsx(B,{...S,labelledBy:N,headers:S.sections.length>1,focusedByCaller:!0})]})}const M=e=>c.find(s=>`/submenu-${s.label}`===e&&"sections"in s)?.label??null;return e.jsx("div",{ref:C,className:"rp-drill",tabIndex:-1,onKeyDownCapture:e=>{const s=M(e.target.dataset.key);e.key===u&&null!=s&&(e.preventDefault(),A(s))},children:e.jsxs(v,{"aria-label":l,"aria-labelledby":"",autoFocus:null==h&&void 0,shouldCloseOnSelect:!1,onAction:e=>{const s=M(String(e));null!=s&&A(s)},cLine truncated
|
||||
import{j as e,r as s}from"./vendor-react-64fcanlc.js";import{fz as l,fA as n,fB as a,co as c,cz as t,cq as i,bz as r,eZ as o,cp as u,dv as d,fC as p,dw as h,cr as m,u as x,b5 as b,fD as j,bt as f,cs as v,fE as g,ct as y,cu as C,fF as N,cv as A,T as S,I as M,bi as k,dZ as w,B as L}from"./index-DFPUSiWe.js";import{a as q,b as I}from"./ItemText-u3CUc_6I.js";const D=e=>e>12,z=({orientation:s="vertical"})=>e.jsx(l,{orientation:s,className:"vertical"===s?"rp-vrule":"rp-hrule"}),H=e=>s=>{if("all"===s)return;const l=[...s][0];null!=l&&e(String(l))};function P({item:s,children:l,onAction:n}){return e.jsxs(A,{id:s.id,className:"rp-item",textValue:s.label,onAction:n,children:[e.jsx(q,{}),e.jsx(I,{i:s,children:l})]})}function $({children:l,content:n,label:x,quiet:b,small:j,size:f,chevron:v=!0,isDisabled:g,appearance:y,placement:C="bottom end",count:N,onIntent:A}){const S=N?e.jsx("span",{className:"rp-count","aria-hidden":"true",children:N}):null,M=a(g),[k,w]=s.useState(!1),L=c(),q=t(f),I=s.useRef(null),D=e.jsxs(i,{ref:I,className:y?"rp-select":o({quiet:b,small:j,icon:!v}),"data-size":q,"aria-label":x,"aria-describedby":M?.id,isDisabled:g,onHoverStart:A,onFocus:A,children:[l,S,v&&e.jsx(r,{className:"rp-chev"})]});return e.jsxs(u,{children:[v&&!M?D:e.jsxs(d,{delay:400,isOpen:k,onOpenChange:w,children:[e.jsx(p,{children:e.jsx("span",{className:"rp-tipwrap",tabIndex:g?0:-1,"data-passive":g?void 0:"",onPointerDown:e=>{g&&"touch"===e.pointerType&&w(e=>!e)},children:D})}),e.jsx(h,{triggerRef:I,children:M?.text??x})]}),e.jsx(m,{className:"rp-popover rp-list-popover",placement:C,boundaryElement:L,children:n})]})}function B({label:s,labelledBy:l,sections:n,headers:a=!0,focusedByCaller:c,onAction:t,searchLabel:i,actions:r=[]}){const o="function"==typeof n?n():n,u=!!i&&D(E(o)),d=e.jsxs(v,{"aria-label":s,"aria-labelledby":l??"",className:u?"rp-menu-scroll":void 0,autoFocus:!c&&void 0,children:[o.map(s=>e.jsxs(y,{"aria-label":a&&!s.hideHeader?void 0:s.title,selectionMode:s.selectionMode??"single",selectedKeys:[`/choice-${s.value}`],onSelectionChange:s.onChange&&H(e=>s.onChange(e.slice(8))),children:[a&&!s.hideHeader&&e.jsx(C,{className:"rp-sec-h",children:s.title}),s.items.map(s=>e.jsx(P,{item:{...s,id:`/choice-${s.id}`},onAction:t&&(()=>t(s.id))},s.id))]},s.title)),r.length>0&&e.jsx(z,{orientation:"horizontal"}),r.map(s=>e.jsx(O,{...s},s.label))]});return u?e.jsx(N,{label:i,children:d}):d}const E=e=>e.reduce((e,s)=>e+s.items.length,0);function F(e,s){for(const l of e){const n=l.items.find(e=>e.id===l.value);if(n)return e.length>1&&!l.plain&&n.label!==l.title?s("ui.sectionChoice",{section:l.title,item:n.label}):n.label}return""}const O=({label:s,icon:l,onAction:n})=>e.jsxs(A,{className:"rp-item rp-subitem",textValue:s,onAction:n,shouldCloseOnSelect:!0,children:[e.jsx("span",{className:"ic",children:l}),e.jsx(S,{children:s})]}),V=({id:s,label:l,icon:n,sections:a})=>{const c=x();return e.jsxs(A,{id:s,className:"rp-item rp-subitem",textValue:l,children:[e.jsx("span",{className:"ic",children:n}),e.jsx(S,{children:l}),e.jsxs("span",{className:"desc",children:[F(a,c),e.jsx(r,{className:"rp-chev-end"})]})]})};function R({label:l,submenus:n,actions:a=[]}){const c="function"==typeof n?n():n,t=x(),o=b(j),[u,d]="rtl"===f().direction?["ArrowLeft","ArrowRight"]:["ArrowRight","ArrowLeft"],[{open:p,left:h},y]=s.useState({open:null,left:null}),C=s.useRef(null),N=s.useId(),A=e=>{C.current?.focus(),y({open:e,left:null==e?p:null})};if(s.useEffect(()=>{const e=C.current;if(!e||null==p&&null==h)return;const s=null==p?`[data-key="${CSS.escape(`/submenu-${h}`)}"]`:'[aria-checked="true"], [role="menuitem"]',l=requestAnimationFrame(()=>{document.activeElement===e&&e.querySelector(s)?.focus()});return()=>cancelAnimationFrame(l)},[p,h]),!o)return e.jsxs(v,{"aria-label":l,"aria-labelledby":"",children:[c.map(s=>"sections"in s?e.jsxs(g,{children:[e.jsx(V,{id:`/submenu-${s.label}`,...s}),e.jsx(m,{className:"rp-popover rp-list-popover",offset:-4,crossOffset:-9,children:e.jsx(B,{...s,headers:s.sections.length>1})})]},s.label):e.jsx(O,{...s},s.label)),a.map(s=>e.jsx(O,{...s},s.label))]});const S=null==p?null:c.find(e=>e.label===p);if(S&&"sections"in S){const s=()=>A(null),l=e=>{e.key!==d&&"Escape"!==e.key||(e.preventDefault(),e.stopPropagation(),s())};return e.jsxs("div",{ref:C,className:"rp-drill",tabIndex:-1,onKeyDownCapture:l,children:[e.jsxs(i,{className:"rp-item rp-drill-back","aria-label":t("ui.back"),onPress:s,children:[e.jsx(r,{className:"rp-chev-start"}),e.jsx("span",{id:N,children:S.label})]}),e.jsx(B,{...S,labelledBy:N,headers:S.sections.length>1,focusedByCaller:!0})]})}const M=e=>c.find(s=>`/submenu-${s.label}`===e&&"sections"in s)?.label??null;return e.jsx("div",{ref:C,className:"rp-drill",tabIndex:-1,onKeyDownCapture:e=>{const s=M(e.target.dataset.key);e.key===u&&null!=s&&(e.preventDefault(),A(s))},children:e.jsxs(v,{"aria-label":l,"aria-labelledby":"",autoFocus:null==h&&void 0,shouldCloseOnSelect:!1,onAction:e=>{const s=M(String(e));null!=s&&A(s)},cLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{u as a,g as s,gh as n,dD as o,gi as i}from"./index-tt2n9Zk_.js";import{a as l,aU as r,aV as c,aW as h,aX as m,aY as u,aZ as p,a_ as d,a$ as x,b0 as f}from"./activity-St9WlHNk.js";import{G as M,C as g}from"./AreaCurve-DQSHOSpG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-CWX2Nx2b.js";import"./logs-DlBF9FTI.js";import"./Select-DO5D4JEL.js";import"./ItemText-EZM3RrYN.js";import"./AppearanceControls-D6ckn4zJ.js";import"./array-C0VuvQyb.js";const j=[30,60,120,300,600,900,1800,3600,7200,21600,43200,86400].map(e=>1e3*e);function y(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 v({label:v,series:b,timestamps:w,fmt:k,locale:C,height:D=150,baseline:$="zero",window:N,fill:S,bare:T=!1,inset:A=2}){const L=a(),B=l(),E=e.useId(),[F,I]=s(Math.round,120),{tip:P,showAt:W,hide:z}=r(),[K,O]=e.useState(null),R=K&&K.index<w.length?K.index:null,_=N?N.until-N.since:w.length?w[w.length-1]-w[0]:0,G=N?.since,H=N?.until,U=e.useMemo(()=>void 0!==G&&void 0!==H?function(e,t){const a=t-e,s=j.find(e=>a/e<=6)??j[j.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}}(G,H):void 0,[G,H]),V=U?U.step<6e4:_<18e4,X=U?U.step>=864e5:_>1296e5,Y=e.useMemo(()=>X?n(C):o(C,V),[C,V,X]),{yDomain:Z,yTicks:q}=e.useMemo(()=>{const e=b.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"===$&&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"===$?[t,(t+a)/2,a]:[a/2,a]}},[b,$]),J=e.useMemo(()=>{const e=w.length-1;return U?U.ticks:[...new Set((V?[0,Math.round(e/2),e]:[0,Math.round(e/3),Math.round(2*e/3),e]).map(e=>w[e]))]},[U,V,w]),Q=e.useMemo(()=>void 0!==G&&void 0!==H?[G,H]:[Math.min(...w),Math.max(...w)],[G,H,w]),ee=I?.width??0,te=I?.height??D,ae=T?A:20,se=T?2:8,ne=te-(T?2:30),oe=ee-(T?A:64),ie=e.useMemo(()=>[Math.min(Q[0],...w),Math.max(Q[1],...w)],[Q,w]),le=e.useCallback(e=>c(e,ie,[ae,oe]),[ie,ae,oe]),re=e.useCallback(e=>c(e,Z,[ne,se]),[Z,ne,se]),ce=e.useMemo(()=>w.map(le),[w,le]),he=e.useMemo(()=>b.map(e=>w.map((t,a)=>null==e.values[a]?null:{x:ce[a],y:re(e.values[a])})),[b,w,ce,re]),me={x:ae,y:se,width:oe-ae,height:ne-se},ue=(e,t)=>O({index:e,y:t}),pe=()=>{O(null),z()};e.useLayoutEffect(()=>{null!==R&&b.some(e=>null!=e.values[R])?W({x:ce[R],y:K?.y??(se+ne)/2,width:ee,bounds:T&&F.current?m(F.current):me,label:i(C).format(w[R]),lines:h(b,R,k,L)}):z()});const de=u(w.length,ue,pe),xe=e.useMemo(()=>J.map(e=>Y.format(e)),[J,Y]),fe=e.useMemo(()=>q.map(k),[q,k]),Me=y(xe,C),ge=y(fe,C),je=U?p(J.map(le),Me.map(e=>e.width),0,ee,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,o=[];let i=1/0;for(let l=n;l>=0;l--){const[t,r]=s(l);r+a>i||l>0&&l<n&&t<s(0)[1]+a||(o.unshift({index:l,position:e[l]}),i=t)}return o}(J.map(le),Me.map(e=>e.width),8),ye=p(q.map(re),ge.map(e=>e.height),0,te,5,!1),ve=[...new Set([...(T?q:ye.map(e=>q[e.index])).map(re),se,ne])];return t.jsx("div",{ref:F,style:{height:D,width:"100%",flex:S?"1 0 auto":void 0,position:"relative"},onPointerLeave:de.onPointerLeave,children:w.length>0&&I&&t.jsxs(t.Fragment,{children:[t.jsx(d,{tip:P}),t.jsxs("svg",{className:"rp-activity-surface",width:ee,height:te,viewBox:`0 0 ${ee} ${te}`,style:{display:"block"},role:"application","aria-label":v,tabIndex:0,onFocus:de.onFocus,onBlur:de.onBlur,onKeyDown:de.onKeyDown,onPointerMove:e=>{const{x:t,y:a}=x(e,e.currentTarget,{width:ee,height:te});if(t<ae||t>oe||a<se||a>ne)return void pe();const s=f(ce,t);ue(s,a)},children:[t.jsx("g",{className:"rp-area-grid",children:ve.map(e=>t.jsx("line",{x1:ae,x2:oe,y1:e,y2:e,stroke:B["hl-med"],strokeDasharray:"2 4",fill:"none"},e))}),t.jsx("defs",{children:b.map((e,a)=>t.jsx(M,{id:E+a,color:e.color},e.label))}),b.map((e,a)=>t.jsx(g,{points:he[a],baseline:re(Math.max(0,Z[0])),color:e.color,id:E+a,strokeWidth:2},e.label)),null!==R&&t.jsx("path",{d:`M${ce[R]},${se}L${ce[R]},${ne}`,stroke:B.subtle,strokeDasharray:"3 3",fill:"none",pointerEvents:"none"}),!T&&t.jsxs(t.Fragment,{children:[t.jsx("g",{children:je.map(({index:e,position:a})=>t.jsx("text",{x:a,y:ne+8,className:"rp-area-tick",fill:B.subtle,textAnchor:"middle",children:t.jsx("tspan",{x:a,dy:"0.71em",children:xe[Line truncated
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{u as a,g as s,gh as n,dD as o,gi as i}from"./index-DFPUSiWe.js";import{a as l,aU as r,aV as c,aW as h,aX as m,aY as u,aZ as p,a_ as d,a$ as x,b0 as f}from"./activity-pUN0wcVd.js";import{G as M,C as g}from"./AreaCurve-DQSHOSpG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-HzIJdCpg.js";import"./logs-lI5kXcWp.js";import"./Select-BFkb6iie.js";import"./ItemText-u3CUc_6I.js";import"./AppearanceControls-Bpq6OQjk.js";import"./array-C0VuvQyb.js";const j=[30,60,120,300,600,900,1800,3600,7200,21600,43200,86400].map(e=>1e3*e);function y(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 v({label:v,series:b,timestamps:w,fmt:k,locale:C,height:D=150,baseline:$="zero",window:N,fill:S,bare:A=!1,inset:L=2}){const T=a(),B=l(),E=e.useId(),[F,z]=s(Math.round,120),{tip:I,showAt:P,hide:W}=r(),[K,O]=e.useState(null),R=K&&K.index<w.length?K.index:null,U=N?N.until-N.since:w.length?w[w.length-1]-w[0]:0,_=N?.since,G=N?.until,H=e.useMemo(()=>void 0!==_&&void 0!==G?function(e,t){const a=t-e,s=j.find(e=>a/e<=6)??j[j.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}}(_,G):void 0,[_,G]),V=H?H.step<6e4:U<18e4,X=H?H.step>=864e5:U>1296e5,Y=e.useMemo(()=>X?n(C):o(C,V),[C,V,X]),{yDomain:Z,yTicks:q}=e.useMemo(()=>{const e=b.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"===$&&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"===$?[t,(t+a)/2,a]:[a/2,a]}},[b,$]),J=e.useMemo(()=>{const e=w.length-1;return H?H.ticks:[...new Set((V?[0,Math.round(e/2),e]:[0,Math.round(e/3),Math.round(2*e/3),e]).map(e=>w[e]))]},[H,V,w]),Q=e.useMemo(()=>void 0!==_&&void 0!==G?[_,G]:[Math.min(...w),Math.max(...w)],[_,G,w]),ee=z?.width??0,te=z?.height??D,ae=A?L:20,se=A?2:8,ne=te-(A?2:30),oe=ee-(A?L:64),ie=e.useMemo(()=>[Math.min(Q[0],...w),Math.max(Q[1],...w)],[Q,w]),le=e.useCallback(e=>c(e,ie,[ae,oe]),[ie,ae,oe]),re=e.useCallback(e=>c(e,Z,[ne,se]),[Z,ne,se]),ce=e.useMemo(()=>w.map(le),[w,le]),he=e.useMemo(()=>b.map(e=>w.map((t,a)=>null==e.values[a]?null:{x:ce[a],y:re(e.values[a])})),[b,w,ce,re]),me={x:ae,y:se,width:oe-ae,height:ne-se},ue=(e,t)=>O({index:e,y:t}),pe=()=>{O(null),W()};e.useLayoutEffect(()=>{null!==R&&b.some(e=>null!=e.values[R])?P({x:ce[R],y:K?.y??(se+ne)/2,width:ee,bounds:A&&F.current?m(F.current):me,label:i(C).format(w[R]),lines:h(b,R,k,T)}):W()});const de=u(w.length,ue,pe),xe=e.useMemo(()=>J.map(e=>Y.format(e)),[J,Y]),fe=e.useMemo(()=>q.map(k),[q,k]),Me=y(xe,C),ge=y(fe,C),je=H?p(J.map(le),Me.map(e=>e.width),0,ee,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,o=[];let i=1/0;for(let l=n;l>=0;l--){const[t,r]=s(l);r+a>i||l>0&&l<n&&t<s(0)[1]+a||(o.unshift({index:l,position:e[l]}),i=t)}return o}(J.map(le),Me.map(e=>e.width),8),ye=p(q.map(re),ge.map(e=>e.height),0,te,5,!1),ve=[...new Set([...(A?q:ye.map(e=>q[e.index])).map(re),se,ne])];return t.jsx("div",{ref:F,style:{height:D,width:"100%",flex:S?"1 0 auto":void 0,position:"relative"},onPointerLeave:de.onPointerLeave,children:w.length>0&&z&&t.jsxs(t.Fragment,{children:[t.jsx(d,{tip:I}),t.jsxs("svg",{className:"rp-activity-surface",width:ee,height:te,viewBox:`0 0 ${ee} ${te}`,style:{display:"block"},role:"application","aria-label":v,tabIndex:0,onFocus:de.onFocus,onBlur:de.onBlur,onKeyDown:de.onKeyDown,onPointerMove:e=>{const{x:t,y:a}=x(e,e.currentTarget,{width:ee,height:te});if(t<ae||t>oe||a<se||a>ne)return void pe();const s=f(ce,t);ue(s,a)},children:[t.jsx("g",{className:"rp-area-grid",children:ve.map(e=>t.jsx("line",{x1:ae,x2:oe,y1:e,y2:e,stroke:B["hl-med"],strokeDasharray:"2 4",fill:"none"},e))}),t.jsx("defs",{children:b.map((e,a)=>t.jsx(M,{id:E+a,color:e.color},e.label))}),b.map((e,a)=>t.jsx(g,{points:he[a],baseline:re(Math.max(0,Z[0])),color:e.color,id:E+a,strokeWidth:2},e.label)),null!==R&&t.jsx("path",{d:`M${ce[R]},${se}L${ce[R]},${ne}`,stroke:B.subtle,strokeDasharray:"3 3",fill:"none",pointerEvents:"none"}),!A&&t.jsxs(t.Fragment,{children:[t.jsx("g",{children:je.map(({index:e,position:a})=>t.jsx("text",{x:a,y:ne+8,className:"rp-area-tick",fill:B.subtle,textAnchor:"middle",children:t.jsx("tspan",{x:a,dy:"0.71em",children:xe[Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{a,$ as s}from"./GridList-2xKNlEZe.js";import{T as i,cn as r,u as t,S as l,ah as c}from"./index-tt2n9Zk_.js";function n({label:a,items:i,selected:r,onSelect:n,loading:d,empty:o,children:m}){const p=t();return e.jsx(s,{className:"rp-cardview","aria-label":a,layout:"grid",items:i,dependencies:[m],selectionMode:"single",selectionBehavior:"replace",disallowEmptySelection:!0,selectedKeys:r?[r]:[],onSelectionChange:e=>{if("all"===e)return;const a=[...e][0];null!=a&&n(String(a))},renderEmptyState:()=>d?e.jsx(l,{shape:"cards",count:3,height:224,grid:!0}):e.jsx(c,{children:o??p("ui.empty")}),children:m})}function d({id:s,title:t,titleFull:l,meta:c,actions:n,children:d}){return e.jsxs(a,{id:s,textValue:t,className:r("rp-cardview-card"),children:[e.jsxs("div",{className:"rp-cardview-head",children:[e.jsx(i,{className:"rp-cardview-title",text:l,children:t}),n&&e.jsx("span",{className:"rp-cardview-actions",children:n})]}),c&&e.jsx("div",{className:"rp-cardview-meta",children:c}),d]})}export{d as C,n as a};
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{a,$ as s}from"./GridList-BuXKU7Uk.js";import{T as i,cn as r,u as t,S as l,ah as c}from"./index-DFPUSiWe.js";function n({label:a,items:i,selected:r,onSelect:n,loading:d,empty:o,children:m}){const p=t();return e.jsx(s,{className:"rp-cardview","aria-label":a,layout:"grid",items:i,dependencies:[m],selectionMode:"single",selectionBehavior:"replace",disallowEmptySelection:!0,selectedKeys:r?[r]:[],onSelectionChange:e=>{if("all"===e)return;const a=[...e][0];null!=a&&n(String(a))},renderEmptyState:()=>d?e.jsx(l,{shape:"cards",count:3,height:224,grid:!0}):e.jsx(c,{children:o??p("ui.empty")}),children:m})}function d({id:s,title:t,titleFull:l,meta:c,actions:n,children:d}){return e.jsxs(a,{id:s,textValue:t,className:r("rp-cardview-card"),children:[e.jsxs("div",{className:"rp-cardview-head",children:[e.jsx(i,{className:"rp-cardview-title",text:l,children:t}),n&&e.jsx("span",{className:"rp-cardview-actions",children:n})]}),c&&e.jsx("div",{className:"rp-cardview-meta",children:c}),d]})}export{d as C,n as a};
|
||||
@@ -0,0 +1 @@
|
||||
import{r as s,j as e}from"./vendor-react-64fcanlc.js";import{g as a}from"./useGridSelectionCheckbox-wMhI-U-R.js";import{C as i}from"./ItemText-u3CUc_6I.js";import{dj as r}from"./index-DFPUSiWe.js";function d({label:d,description:o,isSelected:l,onChange:c,isDisabled:n,slot:t}){const p=s.useId(),m=s.useId(),x=r({isDisabled:n});return e.jsxs(a,{className:"rp-radio rp-checkbox",slot:t,isSelected:l,onChange:c,isDisabled:x.isDisabled,"aria-labelledby":d?p:void 0,"aria-describedby":o?m:void 0,children:[e.jsx("span",{className:"rp-checkbox-mark",children:e.jsx(i,{})}),d&&e.jsxs("span",{className:"rp-radio-text",children:[e.jsx("span",{id:p,children:d}),o&&e.jsx("span",{id:m,className:"rp-note",children:o})]})]})}export{d as C};
|
||||
@@ -0,0 +1 @@
|
||||
import{j as e,r as s}from"./vendor-react-64fcanlc.js";import{I as i,cC as l,cm as a,B as r,ce as n}from"./index-DFPUSiWe.js";import{C as c}from"./Checkbox-xU-Ds7Hn.js";function d(s){return e.jsx(i,{...s,children:e.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 o({children:s}){return e.jsx(n,{children:s})}function t({children:s,negate:i,onNegate:n,negateLabel:c,removeLabel:d,onRemove:t,isDisabled:b,removeDisabled:h}){return e.jsxs(l,{children:[s,e.jsxs(o,{children:[e.jsx(a,{isDisabled:b,isSelected:i,onChange:n,children:c}),e.jsx("span",{className:"rp-grow"}),e.jsx(r,{small:!0,isDisabled:b||h,onPress:t,children:d})]})]})}function b({label:i,hideLabel:l=!1,items:a,value:r,onChange:n,isDisabled:d}){const o=s.useId();return e.jsxs("div",{className:"rp-checkbox-set",role:"group","aria-labelledby":o,children:[e.jsx("span",{id:o,className:"rp-label",hidden:l,children:i}),e.jsx("div",{className:"rp-checkbox-options",children:a.map(s=>e.jsx(c,{label:s.label,description:s.description,isSelected:r.includes(s.id),isDisabled:d||s.isDisabled,onChange:e=>n(e?[...r,s.id]:r.filter(e=>e!==s.id))},s.id))})]})}export{b as C,d as E,t as a,o as b};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,j as r}from"./vendor-react-64fcanlc.js";import{bR as t,gs as o,bQ as n,fe as a,bu as c,u as s,ce as i,dt as l,B as d,cs as p,cv as m}from"./index-tt2n9Zk_.js";import{S as u,a as f,E as g,C as b,b as v,l as h,c as x,h as y,d as k,r as w,e as j,f as C,g as R,i as A,j as L,s as E,k as M,t as F,m as N,n as O,o as S,p as $,q as B,u as D,v as q,w as I,x as T,y as V,z as H,D as K,R as z,A as G,B as P,F as U,G as W,H as J,I as Q,J as _,K as X,L as Y}from"./vendor-editor-50h2cCk6.js";import{d as Z,s as ee}from"./daeTokens-BVtuNnWZ.js";import{s as re}from"./nodes-CWX2Nx2b.js";import{M as te}from"./AppearanceControls-D6ckn4zJ.js";import{n as oe,A as ne}from"./logs-DlBF9FTI.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./index-DUM-iwa2.js";import"./ItemText-EZM3RrYN.js";import"./Select-DO5D4JEL.js";const ae=u.define({name:"dae",languageData:{commentTokens:{line:"#"},closeBrackets:{brackets:["(","{","'",'"']}},startState:ee,token:Z}),ce=["global","subscription","node","group","dns","routing"].map(e=>({label:e,type:"keyword"})),se=n.map(e=>({label:e,type:"property",apply:e+": "})),ie=["domain","dip","sip","dport","sport","l4proto","ipversion","pname","mac","dscp","qname","qtype","upstream"].map(e=>({label:e,type:"function",apply:e+"("})),le=["geosite","geoip","suffix","full","keyword","regex"].map(e=>({label:e,type:"constant",apply:e+":"})),de=o.map(e=>({label:e,type:"constant"})),pe=t.map(e=>({label:e,type:"keyword"})),me=["asis","reject"].map(e=>({label:e,type:"keyword"})),ue=["accept","reject"].map(e=>({label:e,type:"keyword"})),fe=[{label:"fallback",type:"keyword",apply:"fallback: "},{label:"include",type:"keyword",apply:"include "}],ge=e=>e.map(e=>({label:e.name,apply:e.written,type:"variable"}));function be(e){return f({override:[r=>function(e,r){const t=e.matchBefore(/[\w.-]*/);if(!t)return null;const o=e.state.doc.lineAt(e.pos),n=o.text.slice(0,e.pos-o.from),a=/->\s*[\w.-]*$/.test(n)||/^\s*fallback:\s*[\w.-]*$/.test(n);if(t.from===t.to&&!e.explicit&&!a)return null;const c=e.state.doc.sliceString(0,e.pos),{blocks:s,tokens:i}=re(c),l=i.at(-1);if(l?.to===e.pos&&("quoted"===l.kind||"comment"===l.kind))return null;const d=[],p=r=>r.close===e.pos;for(let f=s.find(p);f;f=f.children.find(p))d.push(f.name);const m=d[0];let u;if(a){const{groups:e,upstreams:t}=r();u="dns"!==m?[...ge(e),...pe]:[...ge(t),...d.includes("response")?ue:me]}else if(/\b(domain|dip|sip|qname)\(\s*[\w.-]*$/.test(n))u=le;else if(void 0===m)u=ce.map(e=>({...e,apply:(r,t,o,n)=>{const a=e.label+" {\n \n}";r.dispatch({changes:{from:o,to:n,insert:a},selection:{anchor:o+e.label.length+4}})}}));else if("routing"===m||"dns"===m)u=[...ie,...fe];else if("global"===m)u=se;else{if("group"!==m)return null;u=/\bpolicy\s*:\s*[\w.-]*$/.test(n)?de:[...de.map(e=>({...e,apply:"policy: "+e.label})),{label:"filter",type:"property",apply:"filter: "}]}return{from:t.from,options:u,validFor:/^[\w.-]*$/}}(r,e)]})}function ve(e){let r=!1;const t=r=>(r.state.readOnly&&e(),!1);return g.domEventHandlers({keydown:(e,r)=>function(e){return"Backspace"===e.key||"Delete"===e.key||"Enter"===e.key||1===[...e.key].length&&!e.ctrlKey&&!e.metaKey}(e)&&t(r),paste:(e,r)=>t(r),cut:(e,r)=>t(r),pointerdown:e=>(r="touch"===e.pointerType,!1),click:(e,o)=>r&&t(o)})}const he=[["Completions","cm.completions"],["Find","cm.find"],["Replace","cm.replace"],["next","cm.next"],["previous","cm.previous"],["all","cm.all"],["match case","cm.matchCase"],["regexp","cm.regexp"],["by word","cm.byWord"],["replace","cm.replaceOne"],["replace all","cm.replaceAll"],["close","ui.close"],["Go to line","cm.gotoLine"],["go","cm.go"],["current match","cm.currentMatch"],["replaced $ matches","cm.replacedMatches"],["replaced match on line $","cm.replacedOnLine"],["on line","cm.onLine"],["Selection deleted","cm.selectionDeleted"],["Control character","cm.controlCharacter"]],xe=e=>v.phrases.of(Object.fromEntries(he.map(([r,t])=>[r,e(t)]))),ye=g.theme({"&":{backgroundColor:"var(--rp-base)",color:"var(--rp-text)",border:"1px solid var(--rp-hl-high)",borderRadius:"var(--rp-r-md)",fontSize:"var(--rp-text-sm)"},"&.cm-focused":{outline:"none",borderColor:"var(--rp-text)"},".cm-scroller":{fontFamily:"var(--rp-font-mono)",lineHeight:"var(--rp-line-body)",fontVariantLigatures:"none",borderRadius:"calc(var(--rp-r-md) - 1px)"},".cm-content":{padding:"var(--rp-space-2) 0",caretColor:"var(--rp-text)"},".cm-line":{padding:"0 var(--rp-space-3)"},".cm-gutters":{backgroundColor:"var(--rp-base)",color:"var(--rp-muted)",border:"none"},".cm-lineNumbers .cm-gutterElement":{padding:"0 var(--rp-space-2) 0 var(--rp-space-3)",minWidth:"40px"},".cm-activeLine, .cm-focusLine":{backgroundColor:"color-mix(in srgb, var(--rp-hl-med) 60%, transparent)"},".cm-activeLineGutter":{backgroundColor:"transparent",color:"var(--rp-text)"},".cm-selectionBackground, &.cm-focused .cm-selectionBackground, ::selection":{backgroundColor:"var(--rp-hl-high)"},".cm-cursor":{borderLeftColor:"var(--rp-text)"},".cm-matchingBracket":{backgroundColor:"color-mLine truncated
|
||||
import{r as e,j as r}from"./vendor-react-64fcanlc.js";import{bR as t,gs as o,bQ as n,fe as a,bu as c,u as s,ce as i,dt as l,B as d,cs as p,cv as m}from"./index-DFPUSiWe.js";import{S as u,a as f,E as g,C as b,b as v,l as h,c as x,h as y,d as k,r as w,e as j,f as C,g as R,i as A,j as L,s as E,k as M,t as F,m as N,n as O,o as S,p as $,q as B,u as D,v as q,w as I,x as T,y as H,z as V,D as K,R as U,A as z,B as G,F as P,G as W,H as J,I as Q,J as X,K as _,L as Y}from"./vendor-editor-50h2cCk6.js";import{d as Z,s as ee}from"./daeTokens-BVtuNnWZ.js";import{s as re}from"./nodes-HzIJdCpg.js";import{M as te}from"./AppearanceControls-Bpq6OQjk.js";import{n as oe,A as ne}from"./logs-lI5kXcWp.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./index-DUM-iwa2.js";import"./ItemText-u3CUc_6I.js";import"./Select-BFkb6iie.js";const ae=u.define({name:"dae",languageData:{commentTokens:{line:"#"},closeBrackets:{brackets:["(","{","'",'"']}},startState:ee,token:Z}),ce=["global","subscription","node","group","dns","routing"].map(e=>({label:e,type:"keyword"})),se=n.map(e=>({label:e,type:"property",apply:e+": "})),ie=["domain","dip","sip","dport","sport","l4proto","ipversion","pname","mac","dscp","qname","qtype","upstream"].map(e=>({label:e,type:"function",apply:e+"("})),le=["geosite","geoip","suffix","full","keyword","regex"].map(e=>({label:e,type:"constant",apply:e+":"})),de=o.map(e=>({label:e,type:"constant"})),pe=t.map(e=>({label:e,type:"keyword"})),me=["asis","reject"].map(e=>({label:e,type:"keyword"})),ue=["accept","reject"].map(e=>({label:e,type:"keyword"})),fe=[{label:"fallback",type:"keyword",apply:"fallback: "},{label:"include",type:"keyword",apply:"include "}],ge=e=>e.map(e=>({label:e.name,apply:e.written,type:"variable"}));function be(e){return f({override:[r=>function(e,r){const t=e.matchBefore(/[\w.-]*/);if(!t)return null;const o=e.state.doc.lineAt(e.pos),n=o.text.slice(0,e.pos-o.from),a=/->\s*[\w.-]*$/.test(n)||/^\s*fallback:\s*[\w.-]*$/.test(n);if(t.from===t.to&&!e.explicit&&!a)return null;const c=e.state.doc.sliceString(0,e.pos),{blocks:s,tokens:i}=re(c),l=i.at(-1);if(l?.to===e.pos&&("quoted"===l.kind||"comment"===l.kind))return null;const d=[],p=r=>r.close===e.pos;for(let f=s.find(p);f;f=f.children.find(p))d.push(f.name);const m=d[0];let u;if(a){const{groups:e,upstreams:t}=r();u="dns"!==m?[...ge(e),...pe]:[...ge(t),...d.includes("response")?ue:me]}else if(/\b(domain|dip|sip|qname)\(\s*[\w.-]*$/.test(n))u=le;else if(void 0===m)u=ce.map(e=>({...e,apply:(r,t,o,n)=>{const a=e.label+" {\n \n}";r.dispatch({changes:{from:o,to:n,insert:a},selection:{anchor:o+e.label.length+4}})}}));else if("routing"===m||"dns"===m)u=[...ie,...fe];else if("global"===m)u=se;else{if("group"!==m)return null;u=/\bpolicy\s*:\s*[\w.-]*$/.test(n)?de:[...de.map(e=>({...e,apply:"policy: "+e.label})),{label:"filter",type:"property",apply:"filter: "}]}return{from:t.from,options:u,validFor:/^[\w.-]*$/}}(r,e)]})}function ve(e){let r=!1;const t=r=>(r.state.readOnly&&e(),!1);return g.domEventHandlers({keydown:(e,r)=>function(e){return"Backspace"===e.key||"Delete"===e.key||"Enter"===e.key||1===[...e.key].length&&!e.ctrlKey&&!e.metaKey}(e)&&t(r),paste:(e,r)=>t(r),cut:(e,r)=>t(r),pointerdown:e=>(r="touch"===e.pointerType,!1),click:(e,o)=>r&&t(o)})}const he=[["Completions","cm.completions"],["Find","cm.find"],["Replace","cm.replace"],["next","cm.next"],["previous","cm.previous"],["all","cm.all"],["match case","cm.matchCase"],["regexp","cm.regexp"],["by word","cm.byWord"],["replace","cm.replaceOne"],["replace all","cm.replaceAll"],["close","ui.close"],["Go to line","cm.gotoLine"],["go","cm.go"],["current match","cm.currentMatch"],["replaced $ matches","cm.replacedMatches"],["replaced match on line $","cm.replacedOnLine"],["on line","cm.onLine"],["Selection deleted","cm.selectionDeleted"],["Control character","cm.controlCharacter"]],xe=e=>v.phrases.of(Object.fromEntries(he.map(([r,t])=>[r,e(t)]))),ye=g.theme({"&":{backgroundColor:"var(--rp-base)",color:"var(--rp-text)",border:"1px solid var(--rp-hl-high)",borderRadius:"var(--rp-r-md)",fontSize:"var(--rp-text-sm)"},"&.cm-focused":{outline:"none",borderColor:"var(--rp-text)"},".cm-scroller":{fontFamily:"var(--rp-font-mono)",lineHeight:"var(--rp-line-body)",fontVariantLigatures:"none",borderRadius:"calc(var(--rp-r-md) - 1px)"},".cm-content":{padding:"var(--rp-space-2) 0",caretColor:"var(--rp-text)"},".cm-line":{padding:"0 var(--rp-space-3)"},".cm-gutters":{backgroundColor:"var(--rp-base)",color:"var(--rp-muted)",border:"none"},".cm-lineNumbers .cm-gutterElement":{padding:"0 var(--rp-space-2) 0 var(--rp-space-3)",minWidth:"40px"},".cm-activeLine, .cm-focusLine":{backgroundColor:"color-mix(in srgb, var(--rp-hl-med) 60%, transparent)"},".cm-activeLineGutter":{backgroundColor:"transparent",color:"var(--rp-text)"},".cm-selectionBackground, &.cm-focused .cm-selectionBackground, ::selection":{backgroundColor:"var(--rp-hl-high)"},".cm-cursor":{borderLeftColor:"var(--rp-text)"},".cm-matchingBracket":{backgroundColor:"color-mLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{$ as a}from"./useGridSelectionCheckbox-EoqO9l1F.js";import{C as r}from"./ItemText-EZM3RrYN.js";import{dj as i,I as n,cC as l,cm as c,B as d,ce as o}from"./index-tt2n9Zk_.js";function t({label:n,description:l,isSelected:c,onChange:d,isDisabled:o}){const t=e.useId(),x=e.useId(),h=i({isDisabled:o});return s.jsxs(a,{className:"rp-radio rp-checkbox",isSelected:c,onChange:d,isDisabled:h.isDisabled,"aria-labelledby":t,"aria-describedby":l?x: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:t,children:n}),l&&s.jsx("span",{id:x,className:"rp-note",children:l})]})]})}function x(e){return s.jsx(n,{...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 h({children:e}){return s.jsx(o,{children:e})}function j({children:e,negate:a,onNegate:r,negateLabel:i,removeLabel:n,onRemove:o,isDisabled:t,removeDisabled:x}){return s.jsxs(l,{children:[e,s.jsxs(h,{children:[s.jsx(c,{isDisabled:t,isSelected:a,onChange:r,children:i}),s.jsx("span",{className:"rp-grow"}),s.jsx(d,{small:!0,isDisabled:t||x,onPress:o,children:n})]})]})}export{t as C,x as E,j as a,h as b};
|
||||
@@ -1,2 +0,0 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CodeEditor-Do6bv1iP.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-tt2n9Zk_.js","./index-kgf32cc4.css","./vendor-editor-50h2cCk6.js","./index-DUM-iwa2.js","./daeTokens-BVtuNnWZ.js","./nodes-CWX2Nx2b.js","./AppearanceControls-D6ckn4zJ.js","./ItemText-EZM3RrYN.js","./logs-DlBF9FTI.js","./Select-DO5D4JEL.js"])))=>i.map(i=>d[i]);
|
||||
import{r as e,j as n}from"./vendor-react-64fcanlc.js";import{h as i,u as s,an as a,ao as r,r as t,t as o,y as l,c9 as c,w as d,cb as u,Z as g,D as f,aL as p,c7 as m,cI as h,dx as b,dy as x,a3 as v,a2 as j,ab as y,am as w,A as k,cH as N,dz as S,v as C,aM as D,aV as P,B as T,aB as _,E as O,bm as E,ah as R,b7 as M,cC as H,m as A,C as F,c as L,bC as I,dA as $,bJ as q,ce as K,bK as U,ay as V,dt as W,a as B,b as z,x as J,aN as G,cE as Q,aE as Y,aH as Z,p as X,_ as ee,T as ne}from"./index-tt2n9Zk_.js";import{a as ie,u as se,x as ae,c as re,J as te,O as oe,B as le,K as ce,D as de,p as ue,P as ge,S as fe,L as pe}from"./logs-DlBF9FTI.js";import{T as me}from"./Tabs-DWzcwxse.js";import{aG as he,a1 as be,a9 as xe,aH as ve,x as je,aI as ye,aJ as we,a7 as ke,D as Ne}from"./activity-St9WlHNk.js";import{s as Se,P as Ce,N as De,e as Pe,r as Te,ah as _e,ai as Oe,aj as Ee,ak as Re,L as Me,al as He}from"./nodes-CWX2Nx2b.js";import{s as Ae,c as Fe,r as Le,a as Ie,b as $e,d as qe,e as Ke,f as Ue,g as Ve,h as We,v as Be,i as ze,j as Je,k as Ge,l as Qe,m as Ye,n as Ze,o as Xe,w as en}from"./nav-BBKOedXV.js";import{u as nn,c as sn}from"./flows-GETlXTEg.js";import{d as an}from"./files-Dt8K7QfP.js";import{c as rn}from"./limitHint-Da336AR0.js";import{D as tn}from"./Table-CNIdPyPm.js";import{T as on}from"./TimeCell-CIxTaFhT.js";import{N as ln,t as cn}from"./NumberField-DT8-IUla.js";import{A as dn}from"./AddCircle-DSnjUOi9.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-DO5D4JEL.js";import"./ItemText-EZM3RrYN.js";import"./AppearanceControls-D6ckn4zJ.js";import"./useGridSelectionCheckbox-EoqO9l1F.js";import"./Virtualizer-Bm8y6eIs.js";function un(e,n,s,a="main"){if(!s.daeText)return[];const{blocks:r,tokens:t}=Se(e),o=s.globalSettings;return r.flatMap(s=>{if(s.name===o?.name){const a=r.filter(e=>e.name===o.name).indexOf(s),l=Ce(e,s,t);return l.filter(e=>1===l.filter(n=>n.name===e.name).length&&o.fields.some(n=>n.key===e.name)).map(r=>({kind:s.name,from:r.from,to:r.to,label:r.name,line:e.slice(0,r.from).split("\n").length,href:i("config",{tab:"global",source:n,section:String(a),field:r.name})}))}const l=Ae[s.name];return"subscription"===s.name?"main"!==a?[]:De(e).filter(e=>e.from>s.open&&e.to<=s.close).map(e=>({kind:s.name,from:e.from,to:e.to,label:e.tag,line:e.line,href:i("nodes",{editSubscriptionTag:e.tag})})):"dns"===s.name?s.children.filter(e=>"routing"===e.name).flatMap(e=>e.children.filter(e=>"request"===e.name||"response"===e.name).map(e=>({kind:s.name,from:e.from,to:e.to,label:e.name,line:e.line+1,href:l}))):l?[{kind:s.name,from:s.from,to:s.to,label:s.name,line:s.line+1,href:l}]:[]})}const gn=()=>{};const fn=new Map;function pn({go:n,query:i}){const m=s(),h=a(),b=r[h],x=t(),v=x.data?.resources,j=se(o(v,"config",{whileLoading:!0})),y=function(n){const i=s(),a=ie(n),r=e.useMemo(()=>{const e=xe(a.error);return e?e.diagnostics??[]:null},[a.error]);return e.useEffect(()=>{if(a.error)if(r){const e=ve(r);f("negative",e?i("config.writeRestart",{n:e}):i("ui.writeInvalid",{n:r.filter(e=>"error"===e.level).length}))}else p(a.error,i,i("ui.writeFailed"))},[a.error,r,i]),{...a,diagnostics:r}}(j.refetch),w=e.useMemo(()=>new URLSearchParams(i),[i]),k=e.useMemo(()=>j.data?.sources??[],[j.data]),N=k.find(e=>"main"===e.kind)??null,S=k.find(e=>e.id===w.get("source"))??k[0]??null,C=S?.id??null,D=(e,s)=>n("config",d(i,{tab:"source",source:e,line:null===s?null:String(s)})),P=Number(w.get("line"))||null,T=j.data?.diagnostics??[],_=e.useMemo(()=>{const e=j.data?.diagnostics??[];return{error:e.filter(e=>"error"===e.level).length,warning:e.filter(e=>"warning"===e.level).length}},[j.data]),O=o(v,"config_validate",{whileLoading:!1})&&(v?.config_validate.modes??[]).includes("full"),E=!0===v?.config.writable,R=ae(k),M=l().data,H=e.useMemo(()=>Pe(M),[M]),A=Fe(!!H.globalSettings,x.data),F=x.data&&rn("config",x.data,M,m,h),L=S?Le(S,E,R(S),H,m,F):null,I=!!S&&!L,[$,q]=e.useState(fn),[K,U]=e.useState(null),V=K??_.error,W=w.has("source")||void 0===N?.content?"source":"modules",B=c("validate"===w.get("tab")?d(i,{tab:"source"}):i,A.map(e=>e.id),W),z=S?{source:S,sources:k,open:D,diagnostics:T,canValidate:O&&("main"===S.kind||"include"===S.kind),canWrite:I,readOnly:L,isComplete:R,editor:y,focusLine:P,generation:j.data?.generation_id??"",focusDiagnostics:"validate"===w.get("tab"),diagnosticsChoice:$.get(S.id)??null,chooseDiagnostics:e=>q(n=>new Map(n).set(S.id,e)),reportErrors:U}:null,J=!0===v?.config.create&&!0===v.config.writable?{sources:k,refetch:j.refetch,open:e=>D(e,null)}:null;return{error:x.error??j.error,reload:()=>{x.refetch(),j.refetch()},loading:j.loading&&!j.data,ready:!!j.data,tabsReady:!!j.data||A.some(e=>"history"===e.id),metadata:j.data?$e(j.data.revision,m):[],redacted:!!j.data?.secrets_redacted,tabs:A.map(e=>({id:e.id,label:"source"===e.id&&V?m("ui.aside",{text:m(e.titleKey),note:g(V,b)}):m(e.titleKey)})),tab:B,setTab:e=>n("config",d(u(i,e,null),{field:null})),selectedId:C??"",select:e=>n("config",d(i,{source:e,line:null})),sourceProps:z,newSouLine truncated
|
||||
@@ -0,0 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CodeEditor-DW62W8R0.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-DFPUSiWe.js","./index-BnzLYrTn.css","./vendor-editor-50h2cCk6.js","./index-DUM-iwa2.js","./daeTokens-BVtuNnWZ.js","./nodes-HzIJdCpg.js","./AppearanceControls-Bpq6OQjk.js","./ItemText-u3CUc_6I.js","./logs-lI5kXcWp.js","./Select-BFkb6iie.js"])))=>i.map(i=>d[i]);
|
||||
import{r as e,j as n}from"./vendor-react-64fcanlc.js";import{h as i,u as s,an as a,ao as r,r as t,t as o,y as l,c9 as c,w as d,cb as u,Z as g,D as f,aL as p,c7 as m,cI as h,dx as b,dy as x,a3 as v,a2 as j,ab as y,am as w,A as k,cH as N,dz as S,v as C,aM as D,aV as P,B as T,aB as _,E as O,bm as R,ah as E,b7 as M,cC as A,m as H,C as L,c as F,bC as I,dA as $,bJ as q,ce as K,bK as V,ay as W,dt as U,a as B,b as z,x as J,aN as Z,cE as G,aE as Q,bZ as X,aH as Y,p as ee,_ as ne,T as ie}from"./index-DFPUSiWe.js";import{a as se,u as ae,x as re,c as te,J as oe,O as le,B as ce,K as de,D as ue,p as ge,P as fe,S as pe,L as me}from"./logs-lI5kXcWp.js";import{T as he}from"./Tabs-HxpCyCLR.js";import{aI as be,a1 as xe,a9 as ve,aJ as je,x as ye,aK as we,aL as ke,a7 as Ne,D as Se}from"./activity-pUN0wcVd.js";import{s as Ce,P as De,N as Pe,e as Te,r as _e,aj as Oe,ak as Re,al as Ee,am as Me,L as Ae,an as He}from"./nodes-HzIJdCpg.js";import{s as Le,c as Fe,r as Ie,a as $e,b as qe,d as Ke,e as Ve,f as We,g as Ue,h as Be,v as ze,i as Je,j as Ze,k as Ge,l as Qe,m as Xe,n as Ye,o as en,w as nn}from"./nav-C6jMmQ4d.js";import{u as sn,c as an}from"./flows-Cd1KbGP2.js";import{d as rn}from"./files-Dt8K7QfP.js";import{c as tn}from"./limitHint-drqGf1xh.js";import{D as on}from"./Table-6xnX6eUx.js";import{T as ln}from"./TimeCell-CRwMWdtu.js";import{N as cn,t as dn}from"./NumberField-kCp6sey7.js";import{A as un}from"./AddCircle-V0Kluz-m.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BFkb6iie.js";import"./ItemText-u3CUc_6I.js";import"./AppearanceControls-Bpq6OQjk.js";import"./useGridSelectionCheckbox-wMhI-U-R.js";import"./Virtualizer-BH6NJSXn.js";import"./Checkbox-xU-Ds7Hn.js";function gn(e,n,s,a="main"){if(!s.daeText)return[];const{blocks:r,tokens:t}=Ce(e),o=s.globalSettings;return r.flatMap(s=>{if(s.name===o?.name){const a=r.filter(e=>e.name===o.name).indexOf(s),l=De(e,s,t);return l.filter(e=>1===l.filter(n=>n.name===e.name).length&&o.fields.some(n=>n.key===e.name)).map(r=>({kind:s.name,from:r.from,to:r.to,label:r.name,line:e.slice(0,r.from).split("\n").length,href:i("config",{tab:"global",source:n,section:String(a),field:r.name})}))}const l=Le[s.name];return"subscription"===s.name?"main"!==a?[]:Pe(e).filter(e=>e.from>s.open&&e.to<=s.close).map(e=>({kind:s.name,from:e.from,to:e.to,label:e.tag,line:e.line,href:i("nodes",{editSubscriptionTag:e.tag})})):"dns"===s.name?s.children.filter(e=>"routing"===e.name).flatMap(e=>e.children.filter(e=>"request"===e.name||"response"===e.name).map(e=>({kind:s.name,from:e.from,to:e.to,label:e.name,line:e.line+1,href:l}))):l?[{kind:s.name,from:s.from,to:s.to,label:s.name,line:s.line+1,href:l}]:[]})}const fn=()=>{};const pn=new Map;function mn({go:n,query:i}){const m=s(),h=a(),b=r[h],x=t(),v=x.data?.resources,j=ae(o(v,"config",{whileLoading:!0})),y=function(n){const i=s(),a=se(n),r=e.useMemo(()=>{const e=ve(a.error);return e?e.diagnostics??[]:null},[a.error]);return e.useEffect(()=>{if(a.error)if(r){const e=je(r);f("negative",e?i("config.writeRestart",{n:e}):i("ui.writeInvalid",{n:r.filter(e=>"error"===e.level).length}))}else p(a.error,i,i("ui.writeFailed"))},[a.error,r,i]),{...a,diagnostics:r}}(j.refetch),w=e.useMemo(()=>new URLSearchParams(i),[i]),k=e.useMemo(()=>j.data?.sources??[],[j.data]),N=k.find(e=>"main"===e.kind)??null,S=k.find(e=>e.id===w.get("source"))??k[0]??null,C=S?.id??null,D=(e,s)=>n("config",d(i,{tab:"source",source:e,line:null===s?null:String(s)})),P=Number(w.get("line"))||null,T=j.data?.diagnostics??[],_=e.useMemo(()=>{const e=j.data?.diagnostics??[];return{error:e.filter(e=>"error"===e.level).length,warning:e.filter(e=>"warning"===e.level).length}},[j.data]),O=o(v,"config_validate",{whileLoading:!1})&&(v?.config_validate.modes??[]).includes("full"),R=!0===v?.config.writable,E=re(k),M=l().data,A=e.useMemo(()=>Te(M),[M]),H=Fe(!!A.globalSettings,x.data),L=x.data&&tn("config",x.data,M,m,h),F=S?Ie(S,R,E(S),A,m,L):null,I=!!S&&!F,[$,q]=e.useState(pn),[K,V]=e.useState(null),W=K??_.error,U=w.has("source")||void 0===N?.content?"source":"modules",B=c("validate"===w.get("tab")?d(i,{tab:"source"}):i,H.map(e=>e.id),U),z=S?{source:S,sources:k,open:D,diagnostics:T,canValidate:O&&("main"===S.kind||"include"===S.kind),canWrite:I,readOnly:F,isComplete:E,editor:y,focusLine:P,generation:j.data?.generation_id??"",focusDiagnostics:"validate"===w.get("tab"),diagnosticsChoice:$.get(S.id)??null,chooseDiagnostics:e=>q(n=>new Map(n).set(S.id,e)),reportErrors:V}:null,J=!0===v?.config.create&&!0===v.config.writable?{sources:k,refetch:j.refetch,open:e=>D(e,null)}:null;return{error:x.error??j.error,reload:()=>{x.refetch(),j.refetch()},loading:j.loading&&!j.data,ready:!!j.data,tabsReady:!!j.data||H.some(e=>"history"===e.id),metadata:j.data?qe(j.data.revision,m):[],redacted:!!j.data?.secrets_redacted,tabs:H.map(e=>({id:e.id,label:"source"===e.id&&W?m("ui.aside",{text:m(e.titleKey),note:g(W,b)}):m(e.titleKey)})),tab:B,setTab:e=>n("config",d(u(i,e,null),{field:null})),selectedId:C??"",select:e=>n("config",d(i,{soLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{r as e,j as n}from"./vendor-react-64fcanlc.js";import{i as t,I as o,a as s}from"./ipLookup-D4aKj_sQ.js";import{N as l,O as a}from"./NodePath-C2It1vc3.js";import{aU as r,u as i,ao as c,an as u,a2 as d,o as p,aC as m,C as b,E as h,Z as g,aa as f,s as w,O as v,b$ as y,T as x,bT as j,w as k,c0 as _,V as C,c1 as S,c2 as A,a0 as L,a3 as N,r as M,t as T,Q as R,c3 as O,a8 as P,c4 as F,aj as U,H as W,c5 as q,b5 as D,c6 as V,b6 as E,c7 as H,bW as I,c8 as Q,c9 as B,ca as K,M as G,ap as J,cb as Z,D as $,cc as z,aV as X,aM as Y,cd as ee,ce as ne,bK as te,B as oe,cf as se,bA as le,ay as ae}from"./index-tt2n9Zk_.js";import{R as re,B as ie,u as ce,h as ue,o as de,g as pe,c as me,S as be,p as he,L as ge,n as fe,K as we}from"./logs-DlBF9FTI.js";import{C as ve}from"./AppearanceControls-D6ckn4zJ.js";import{T as ye}from"./Tabs-DWzcwxse.js";import{a as xe,D as je,U as ke,F as _e,S as Ce,b as Se,B as Ae,L as Le,t as Ne,r as Me,d as Te,f as Re,p as Oe,o as Pe,k as Fe,g as Ue}from"./activity-St9WlHNk.js";import{S as We}from"./SearchSelect-OEHKvvM7.js";import{D as qe}from"./Table-CNIdPyPm.js";import{T as De}from"./TimeCell-CIxTaFhT.js";import{Q as Ve,u as Ee,R as He}from"./useQuickRule-DGnvKUbx.js";import{u as Ie}from"./outbounds-DLdbuVA3.js";import{c as Qe,d as Be,e as Ke}from"./files-Dt8K7QfP.js";import{w as Ge}from"./labels-D8xxfRTQ.js";import{u as Je}from"./flows-GETlXTEg.js";import{r as Ze}from"./rule-C_tGvS3P.js";import{c as $e}from"./nav-BO8viH9G.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./LinkOut-XZA33RqA.js";import"./Tag-D7lhqmBG.js";import"./Select-DO5D4JEL.js";import"./ItemText-EZM3RrYN.js";import"./nodes-CWX2Nx2b.js";import"./useGridSelectionCheckbox-EoqO9l1F.js";import"./SearchList-D3Aknep5.js";import"./Virtualizer-Bm8y6eIs.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-DSnjUOi9.js";const ze=[0,2,3,1,4,5,6,7],Xe=e.memo(function({records:t,outbounds:o,latency:s,latencyError:l,retryLatency:a,truncated:g,uncounted:f,onSelect:w}){const v=i(),y=xe(),x=c[u()],j=e.useCallback(e=>d(e,x),[x]),k=e.useMemo(()=>function(e,n){const t=new Map;let o,s=0,l=-1n;for(const a of e){if(null===a.upload_bytes||null===a.download_bytes){s++;continue}const e={id:a.id,up:Number(a.upload_bytes),down:Number(a.download_bytes),name:a.domain||a.dst||a.id},n=t.get(a.outbound);n?n.push(e):t.set(a.outbound,[e]);const r=BigInt(a.upload_bytes)+BigInt(a.download_bytes);r>l&&(l=r,o={...e,outbound:a.outbound})}return{series:[...t].map(([e,n])=>({outbound:e,points:n})).sort((e,t)=>r(n)(e.outbound??"",t.outbound??"")),unknown:s,heaviest:o,placed:e.length-s}}(t,x),[t,x]),_=e.useMemo(()=>{const e=o.filter(e=>"block"!==e);return k.series.map(n=>{return{id:n.outbound??"",label:p(n.outbound,v),color:(t=n.outbound,"block"===t?y.negative:y.cat[ze[Math.max(0,e.indexOf(t))%ze.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})},[k,o,y,v,j]),C=k.heaviest?[{label:v("conn.chart.busiest"),icon:n.jsx(m,{}),tint:"c3",value:k.heaviest.name,caption:p(k.heaviest.outbound,v)},{label:v("ui.download"),value:j(k.heaviest.down),icon:n.jsx(je,{}),tint:"c1"},{label:v("ui.upload"),value:j(k.heaviest.up),icon:n.jsx(ke,{}),tint:"c4"}]:[],S=k.unknown?v("conn.chart.sampleUnknown",{n:t.length,unknown:k.unknown}):v("conn.chart.sample",{n:t.length});return n.jsxs("div",{className:"rp-chart-page",children:[n.jsx(_e,{facts:C,lead:!0}),n.jsxs(b,{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")}),k.placed>0&&n.jsxs(n.Fragment,{children:[n.jsx(Ce,{label:v("conn.chart.title"),series:_,fmt:j,onSelect:w,regions:{above:v("conn.chart.moreDown"),below:v("conn.chart.moreUp")}}),n.jsx(Se,{series:_}),n.jsx("p",{className:"rp-note",children:v("conn.chart.hint")})]})]}),s?n.jsx(Ye,{latency:s}):l&&n.jsx(b,{title:v("ui.nodeLatency"),children:n.jsx(h,{error:l,onRetry:a})})]})});function Ye({latency:e}){const t=i(),o=xe(),s=e=>f(e,t),l=c[u()],a=n=>!e.chains||n?o.cat[0]:o.muted;return n.jsx(b,{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:s(e.p50),p90:s(e.p90)})}),null!==e.weightedP50&&n.jsx("p",{className:"rp-note",children:e.unplaced?t("conn.latency.weightedUnplaced",{p50:s(e.weightedP50),n:e.unplaced}):t("conn.latency.weighted",{p50:s(e.weightedP50)})}),n.jsx(Ae,{label:t("ui.nodeLatency"),points:e.samples.map(e=>({id:e.node,nodeName:!0,value:e.value,color:a(e.connections>0),lines:[e.name,s(e.value),...e.connections?[t("conn.chart.sample",{n:e.connections})]:[]]})),fmt:s}),e.chains&&n.jsxs("div",{className:"rp-legend",children:[n.jsx(Le,{swatch:a(!0),label:t("conn.latency.inUse"),value:g(e.used,l)}),n.jsx(Le,{swatch:a(!1),label:t("conn.latency.others"),value:gLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as n}from"./vendor-react-64fcanlc.js";import{i as t,I as o,a as s}from"./ipLookup-47nEpvjK.js";import{N as l,O as a}from"./NodePath-DCKKYRsk.js";import{aU as r,u as i,ao as c,an as u,a2 as d,o as p,aC as m,C as b,E as h,Z as g,aa as f,s as w,O as v,b$ as y,T as x,bT as j,w as k,c0 as _,V as C,c1 as S,c2 as A,a0 as L,a3 as N,r as M,t as T,Q as R,c3 as P,a8 as O,c4 as F,aj as U,H as W,c5 as q,b5 as D,c6 as V,b6 as E,c7 as H,bW as I,c8 as Q,c9 as B,ca as K,M as G,ap as J,cb as Z,D as $,cc as z,aV as X,aM as Y,cd as ee,ce as ne,bK as te,B as oe,cf as se,bA as le,ay as ae}from"./index-DFPUSiWe.js";import{R as re,B as ie,u as ce,h as ue,o as de,g as pe,c as me,S as be,p as he,L as ge,n as fe,K as we}from"./logs-lI5kXcWp.js";import{C as ve}from"./AppearanceControls-Bpq6OQjk.js";import{T as ye}from"./Tabs-HxpCyCLR.js";import{a as xe,D as je,U as ke,F as _e,S as Ce,b as Se,B as Ae,L as Le,t as Ne,r as Me,d as Te,f as Re,p as Pe,o as Oe,k as Fe,g as Ue}from"./activity-pUN0wcVd.js";import{S as We}from"./SearchSelect-CsXd0DEh.js";import{D as qe}from"./Table-6xnX6eUx.js";import{T as De}from"./TimeCell-CRwMWdtu.js";import{Q as Ve,u as Ee,R as He}from"./useQuickRule-BGNvNXBX.js";import{u as Ie}from"./outbounds-BMHzxQr8.js";import{c as Qe,d as Be,e as Ke}from"./files-Dt8K7QfP.js";import{w as Ge}from"./labels-D8xxfRTQ.js";import{u as Je}from"./flows-Cd1KbGP2.js";import{r as Ze}from"./rule-D1hMywhM.js";import{c as $e}from"./nav-BO8viH9G.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./LinkOut-B50sd8cz.js";import"./Tag-BZqiYh1Z.js";import"./Select-BFkb6iie.js";import"./ItemText-u3CUc_6I.js";import"./nodes-HzIJdCpg.js";import"./useGridSelectionCheckbox-wMhI-U-R.js";import"./SearchList-C88Y6c53.js";import"./Virtualizer-BH6NJSXn.js";import"./Checkbox-xU-Ds7Hn.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-V0Kluz-m.js";const ze=[0,2,3,1,4,5,6,7],Xe=e.memo(function({records:t,outbounds:o,latency:s,latencyError:l,retryLatency:a,truncated:g,uncounted:f,onSelect:w}){const v=i(),y=xe(),x=c[u()],j=e.useCallback(e=>d(e,x),[x]),k=e.useMemo(()=>function(e,n){const t=new Map;let o,s=0,l=-1n;for(const a of e){if(null===a.upload_bytes||null===a.download_bytes){s++;continue}const e={id:a.id,up:Number(a.upload_bytes),down:Number(a.download_bytes),name:a.domain||a.dst||a.id},n=t.get(a.outbound);n?n.push(e):t.set(a.outbound,[e]);const r=BigInt(a.upload_bytes)+BigInt(a.download_bytes);r>l&&(l=r,o={...e,outbound:a.outbound})}return{series:[...t].map(([e,n])=>({outbound:e,points:n})).sort((e,t)=>r(n)(e.outbound??"",t.outbound??"")),unknown:s,heaviest:o,placed:e.length-s}}(t,x),[t,x]),_=e.useMemo(()=>{const e=o.filter(e=>"block"!==e);return k.series.map(n=>{return{id:n.outbound??"",label:p(n.outbound,v),color:(t=n.outbound,"block"===t?y.negative:y.cat[ze[Math.max(0,e.indexOf(t))%ze.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})},[k,o,y,v,j]),C=k.heaviest?[{label:v("conn.chart.busiest"),icon:n.jsx(m,{}),tint:"c3",value:k.heaviest.name,caption:p(k.heaviest.outbound,v)},{label:v("ui.download"),value:j(k.heaviest.down),icon:n.jsx(je,{}),tint:"c1"},{label:v("ui.upload"),value:j(k.heaviest.up),icon:n.jsx(ke,{}),tint:"c4"}]:[],S=k.unknown?v("conn.chart.sampleUnknown",{n:t.length,unknown:k.unknown}):v("conn.chart.sample",{n:t.length});return n.jsxs("div",{className:"rp-chart-page",children:[n.jsx(_e,{facts:C,lead:!0}),n.jsxs(b,{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")}),k.placed>0&&n.jsxs(n.Fragment,{children:[n.jsx(Ce,{label:v("conn.chart.title"),series:_,fmt:j,onSelect:w,regions:{above:v("conn.chart.moreDown"),below:v("conn.chart.moreUp")}}),n.jsx(Se,{series:_}),n.jsx("p",{className:"rp-note",children:v("conn.chart.hint")})]})]}),s?n.jsx(Ye,{latency:s}):l&&n.jsx(b,{title:v("ui.nodeLatency"),children:n.jsx(h,{error:l,onRetry:a})})]})});function Ye({latency:e}){const t=i(),o=xe(),s=e=>f(e,t),l=c[u()],a=n=>!e.chains||n?o.cat[0]:o.muted;return n.jsx(b,{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:s(e.p50),p90:s(e.p90)})}),null!==e.weightedP50&&n.jsx("p",{className:"rp-note",children:e.unplaced?t("conn.latency.weightedUnplaced",{p50:s(e.weightedP50),n:e.unplaced}):t("conn.latency.weighted",{p50:s(e.weightedP50)})}),n.jsx(Ae,{label:t("ui.nodeLatency"),points:e.samples.map(e=>({id:e.node,nodeName:!0,value:e.value,color:a(e.connections>0),lines:[e.name,s(e.value),...e.connections?[t("conn.chart.sample",{n:e.connections})]:[]]})),fmt:s}),e.chains&&n.jsxs("div",{className:"rp-legend",children:[n.jsx(Le,{swatch:a(!0),label:t("conn.latency.inUse"),value:g(e.used,l)}),n.jsx(Le,{swatch:a(!1),label:tLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as c,j as r}from"./vendor-react-64fcanlc.js";import{u as s,dA as o,D as l,I as t}from"./index-tt2n9Zk_.js";function a(){const r=s();return c.useCallback(async c=>{const s=await o(c);l(s?"positive":"negative",r(s?"ui.recordCopied":"ui.recordCopyFailed"))},[r])}function e(c){return r.jsxs(t,{...c,children:[r.jsx("path",{fill:"currentColor",d:"m11.75,18h-7.5c-1.24023,0-2.25-1.00977-2.25-2.25v-7.5c0-1.24023,1.00977-2.25,2.25-2.25.41406,0,.75.33594.75.75s-.33594.75-.75.75c-.41309,0-.75.33691-.75.75v7.5c0,.41309.33691.75.75.75h7.5c.41309,0,.75-.33691.75-.75,0-.41406.33594-.75.75-.75s.75.33594.75.75c0,1.24023-1.00977,2.25-2.25,2.25Z"}),r.jsx("path",{fill:"currentColor",d:"m6.75,5c-.41406,0-.75-.33594-.75-.75,0-1.24023,1.00977-2.25,2.25-2.25.41406,0,.75.33594.75.75s-.33594.75-.75.75c-.41309,0-.75.33691-.75.75,0,.41406-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m13,3.5h-2c-.41406,0-.75-.33594-.75-.75s.33594-.75.75-.75h2c.41406,0,.75.33594.75.75s-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m13,14h-2c-.41406,0-.75-.33594-.75-.75s.33594-.75.75-.75h2c.41406,0,.75.33594.75.75s-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m15.75,14c-.41406,0-.75-.33594-.75-.75s.33594-.75.75-.75c.41309,0,.75-.33691.75-.75,0-.41406.33594-.75.75-.75s.75.33594.75.75c0,1.24023-1.00977,2.25-2.25,2.25Z"}),r.jsx("path",{fill:"currentColor",d:"m17.25,5c-.41406,0-.75-.33594-.75-.75,0-.41309-.33691-.75-.75-.75-.41406,0-.75-.33594-.75-.75s.33594-.75.75-.75c1.24023,0,2.25,1.00977,2.25,2.25,0,.41406-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m17.25,9.75c-.41406,0-.75-.33594-.75-.75v-2c0-.41406.33594-.75.75-.75s.75.33594.75.75v2c0,.41406-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m6.75,9.75c-.41406,0-.75-.33594-.75-.75v-2c0-.41406.33594-.75.75-.75s.75.33594.75.75v2c0,.41406-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m8.25,14c-1.24023,0-2.25-1.00977-2.25-2.25,0-.41406.33594-.75.75-.75s.75.33594.75.75c0,.41309.33691.75.75.75.41406,0,.75.33594.75.75s-.33594.75-.75.75Z"})]})}export{e as C,a as u};
|
||||
import{r as c,j as r}from"./vendor-react-64fcanlc.js";import{u as s,dA as o,D as l,I as t}from"./index-DFPUSiWe.js";function a(){const r=s();return c.useCallback(async c=>{const s=await o(c);l(s?"positive":"negative",r(s?"ui.recordCopied":"ui.recordCopyFailed"))},[r])}function e(c){return r.jsxs(t,{...c,children:[r.jsx("path",{fill:"currentColor",d:"m11.75,18h-7.5c-1.24023,0-2.25-1.00977-2.25-2.25v-7.5c0-1.24023,1.00977-2.25,2.25-2.25.41406,0,.75.33594.75.75s-.33594.75-.75.75c-.41309,0-.75.33691-.75.75v7.5c0,.41309.33691.75.75.75h7.5c.41309,0,.75-.33691.75-.75,0-.41406.33594-.75.75-.75s.75.33594.75.75c0,1.24023-1.00977,2.25-2.25,2.25Z"}),r.jsx("path",{fill:"currentColor",d:"m6.75,5c-.41406,0-.75-.33594-.75-.75,0-1.24023,1.00977-2.25,2.25-2.25.41406,0,.75.33594.75.75s-.33594.75-.75.75c-.41309,0-.75.33691-.75.75,0,.41406-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m13,3.5h-2c-.41406,0-.75-.33594-.75-.75s.33594-.75.75-.75h2c.41406,0,.75.33594.75.75s-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m13,14h-2c-.41406,0-.75-.33594-.75-.75s.33594-.75.75-.75h2c.41406,0,.75.33594.75.75s-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m15.75,14c-.41406,0-.75-.33594-.75-.75s.33594-.75.75-.75c.41309,0,.75-.33691.75-.75,0-.41406.33594-.75.75-.75s.75.33594.75.75c0,1.24023-1.00977,2.25-2.25,2.25Z"}),r.jsx("path",{fill:"currentColor",d:"m17.25,5c-.41406,0-.75-.33594-.75-.75,0-.41309-.33691-.75-.75-.75-.41406,0-.75-.33594-.75-.75s.33594-.75.75-.75c1.24023,0,2.25,1.00977,2.25,2.25,0,.41406-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m17.25,9.75c-.41406,0-.75-.33594-.75-.75v-2c0-.41406.33594-.75.75-.75s.75.33594.75.75v2c0,.41406-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m6.75,9.75c-.41406,0-.75-.33594-.75-.75v-2c0-.41406.33594-.75.75-.75s.75.33594.75.75v2c0,.41406-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m8.25,14c-1.24023,0-2.25-1.00977-2.25-2.25,0-.41406.33594-.75.75-.75s.75.33594.75.75c0,.41309.33691.75.75.75.41406,0,.75.33594.75.75s-.33594.75-.75.75Z"})]})}export{e as C,a as u};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{aj as e,b1 as l,V as r,u as s,T as a}from"./index-tt2n9Zk_.js";import{j as n}from"./vendor-react-64fcanlc.js";import{L as o}from"./logs-DlBF9FTI.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(s,a,n){const o=Object.entries(s.coverage).filter(([,e])=>"full"!==e),p=e(s.dropped_records),i=p?a("flow.dropped",{n:p}):null;return o.length||i?{summary:o.length?a("flow.coverageSummary",{n:o.length}):null,detail:l(n,o.map(([e,l])=>a("ui.valuePair",{label:r(t,e,a),value:r(c,l,a)}))),dropped:i}:null}function i({view:e}){const l=s();return n.jsxs("div",{className:"rp-cluster",role:"group","aria-label":l("flow.coverage"),children:[e.summary&&n.jsx(a,{text:e.detail,children:n.jsx(o,{small:!0,tone:"warn",children:e.summary})}),e.dropped&&n.jsx(o,{small:!0,tone:"warn",children:e.dropped})]})}export{i as C,p as c};
|
||||
import{aj as e,b1 as l,V as r,u as s,T as a}from"./index-DFPUSiWe.js";import{j as n}from"./vendor-react-64fcanlc.js";import{L as o}from"./logs-lI5kXcWp.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(s,a,n){const o=Object.entries(s.coverage).filter(([,e])=>"full"!==e),p=e(s.dropped_records),i=p?a("flow.dropped",{n:p}):null;return o.length||i?{summary:o.length?a("flow.coverageSummary",{n:o.length}):null,detail:l(n,o.map(([e,l])=>a("ui.valuePair",{label:r(t,e,a),value:r(c,l,a)}))),dropped:i}:null}function i({view:e}){const l=s();return n.jsxs("div",{className:"rp-cluster",role:"group","aria-label":l("flow.coverage"),children:[e.summary&&n.jsx(a,{text:e.detail,children:n.jsx(o,{small:!0,tone:"warn",children:e.summary})}),e.dropped&&n.jsx(o,{small:!0,tone:"warn",children:e.dropped})]})}export{i as C,p as c};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as c}from"./vendor-react-64fcanlc.js";import{I as r}from"./index-tt2n9Zk_.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-DFPUSiWe.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};
|
||||
@@ -1 +0,0 @@
|
||||
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{O as a,bW as t,V as n,aa as r,a3 as l,Z as i,U as d,aj as c,aM as o,u,ab as m,r as h,c7 as p,A as x,c9 as g,t as y,w as f,h as b,cb as j,ao as v,an as w,cg as _,ch as N,b5 as k,c6 as S,D as C,cd as T,aV as q,ci as M,bV as R,aA as L,ah as A,E as F,cj as E,bj as D,ck as W,C as P,c as O,S as U,ag as B,T as H,bJ as K,cl as I,ce as $,bK as V,cm as Q,B as J,cn as Z,ay as z,bA as G,cf as Y}from"./index-tt2n9Zk_.js";import{D as X}from"./Delete-XRP-Yofb.js";import{s as ee,j as se,a as ae,l as te,C as ne,F as re,B as le,L as ie,W as de,m as ce,n as oe,D as ue}from"./activity-St9WlHNk.js";import{i as me,I as he,a as pe}from"./ipLookup-D4aKj_sQ.js";import{u as xe,s as ge,k as ye,t as fe,v as be,i as je,S as ve,j as we,p as _e,B as Ne,K as ke,L as Se,A as Ce}from"./logs-DlBF9FTI.js";import{T as Te}from"./Tabs-DWzcwxse.js";import{D as qe}from"./Table-CNIdPyPm.js";import{T as Me}from"./TimeCell-CIxTaFhT.js";import{c as Re,d as Le,e as Ae}from"./files-Dt8K7QfP.js";import{d as Fe}from"./nav-xLy0j69-.js";import{a as Ee}from"./rule-C_tGvS3P.js";import{d as De,u as We}from"./nodes-CWX2Nx2b.js";import{u as Pe,R as Oe,Q as Ue}from"./useQuickRule-DGnvKUbx.js";/* empty css */import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-EZM3RrYN.js";import"./AppearanceControls-D6ckn4zJ.js";import"./LinkOut-XZA33RqA.js";import"./Select-DO5D4JEL.js";import"./useGridSelectionCheckbox-EoqO9l1F.js";import"./Virtualizer-Bm8y6eIs.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-DSnjUOi9.js";import"./SearchSelect-OEHKvvM7.js";import"./SearchList-D3Aknep5.js";import"./flows-GETlXTEg.js";function Be(e,s,t,n,r){return{domain:e,dip:null,sip:(r&&a(r))??null,outbound:null,matched:null,dns:{type:s,answers:Ee(t),upstream:n,query:{name:e,type:s}}}}const He=(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}}}),Ke={forced:"dns.route.forced","dns.routing":"dns.route.rules",default:"dns.route.default"};function Ie(e,s,a){return{fields:[[a("ui.state"),e.status],[a("ui.upstream"),e.upstream??"—"],[a("dns.routeSource"),n(Ke,e.route.source,a)],[a("dns.routeRule"),e.route.rule??"—"],[a("ui.elapsed"),r(e.elapsed_ms,a)]],answers:(e.answers??[]).map(e=>{const n=Ee([e])[0],r=n?t(n):void 0;return{data:e.data,name:(l=e.name,i=s,l.replace(/\.$/,"").toLowerCase()===i.replace(/\.$/,"").toLowerCase()?null:e.name),type:e.type,ttl:a("dns.ttl",{ttl:e.ttl}),lookup:r&&me(r)?r:null};var l,i}),cacheText:a(e.cached?"dns.hit":"dns.miss"),cacheTone:e.cached?void 0:"warn"}}function $e(e,s,a){return e?a instanceof o&&503===a.status?"unavailable":s?"ready":a?"error":"loading":"unlisted"}const Ve=[{id:"full",label:"rule.kind.domain"},{id:"suffix",label:"rule.kind.domainSuffix"},{id:"keyword",label:"rule.kind.domainKeyword"},{id:"regex",label:"dns.matchRegex"}],Qe=e=>e.trim().toLowerCase().replace(/\.$/,"");function Je(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(Qe(s)))}if("keyword"===e){const e=s.trim().toLowerCase();return s=>Qe(s).includes(e)}const a=Qe(s),t="suffix"===e&&a.startsWith("."),n=t?a.slice(1):a;return n?"full"===e?e=>Qe(e)===n:e=>{const s=Qe(e);return s.endsWith("."+n)||!t&&s===n}:null}function Ze({go:s,query:a}){const t=u(),n=m(),r=h(),l=e.useMemo(()=>new URLSearchParams(a),[a]),[i,d]=e.useState(l.get("domain")??""),[c,o]=e.useState(l.get("type")??"A"),[v,w]=e.useState(!1);p(l.get("domain"),e=>d(e??"")),p(l.get("type"),e=>o(e??"A"));const[_,N]=e.useState(null),{busy:k,error:S,run:C}=x({rethrow:!0}),T=r.data?.resources,q=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}`,...Ie(s,e.domain,r),seed:Be(e.domain,s.type,s.answers??[],s.upstream,null),answerSeeds:(s.answers??[]).map(a=>Ee([a]).length?{address:a.data,seed:He(a.data,e.domain,s.type)}:null)}))??[],tabs:Fe(s).map(e=>({id:e.id,label:r(e.titleKey)}))}}(_,T,c,i,!!k,t),[_,T,c,i,k,t]),M=q.tabs.map(e=>e.id),R=l.has("domain")||l.has("device"),L=M.includes("log")?R?"log":"stats":M.includes("query")?"query":M[0]??"query",A=g(a,M,L),F=y(T,"config",{whileLoading:!1}),E=xe("query"===A&&F&&y(T,"dns_query",{whileLoading:!1})),D=e.useMemo(()=>F?function(e,s){const a=[...new Set((e??[]).flatMap(e=>e.content?De(e.content).map(We):[]))];return a.length?[{id:"",label:s("dns.upstreamAuto")},...a.map(e=>({id:e,label:e}))]:[]}(E.data?.sources,t):[],[F,E.data,t]),[W,P]=e.useState(""),O=D.some(e=>e.id===W)?W:"";E.data&&W&&!O&&P("");const U=asLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{O as a,bW as t,V as n,aa as r,a3 as l,Z as i,U as d,aj as c,aM as o,u,ab as m,r as h,c7 as p,A as x,c9 as g,t as y,w as f,h as b,cb as j,ao as v,an as w,cg as _,ch as N,b5 as k,c6 as S,D as C,cd as T,aV as q,ci as M,bV as R,aA as L,ah as A,E as F,cj as E,bj as D,ck as P,C as W,c as O,S as U,ag as B,T as H,bJ as K,cl as I,ce as $,bK as V,cm as Q,B as J,cn as z,ay as G,bA as X,cf as Y}from"./index-DFPUSiWe.js";import{D as Z}from"./Delete-DIaM96Pb.js";import{s as ee,j as se,a as ae,l as te,C as ne,F as re,B as le,L as ie,W as de,m as ce,n as oe,D as ue}from"./activity-pUN0wcVd.js";import{i as me,I as he,a as pe}from"./ipLookup-47nEpvjK.js";import{u as xe,s as ge,k as ye,t as fe,v as be,i as je,S as ve,j as we,p as _e,B as Ne,K as ke,L as Se,A as Ce}from"./logs-lI5kXcWp.js";import{T as Te}from"./Tabs-HxpCyCLR.js";import{D as qe}from"./Table-6xnX6eUx.js";import{T as Me}from"./TimeCell-CRwMWdtu.js";import{c as Re,d as Le,e as Ae}from"./files-Dt8K7QfP.js";import{d as Fe}from"./nav-Bw7F3lhF.js";import{a as Ee}from"./rule-D1hMywhM.js";import{d as De,u as Pe}from"./nodes-HzIJdCpg.js";import{u as We,R as Oe,Q as Ue}from"./useQuickRule-BGNvNXBX.js";/* empty css */import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-u3CUc_6I.js";import"./AppearanceControls-Bpq6OQjk.js";import"./LinkOut-B50sd8cz.js";import"./Select-BFkb6iie.js";import"./useGridSelectionCheckbox-wMhI-U-R.js";import"./Virtualizer-BH6NJSXn.js";import"./Checkbox-xU-Ds7Hn.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-V0Kluz-m.js";import"./SearchSelect-CsXd0DEh.js";import"./SearchList-C88Y6c53.js";import"./flows-Cd1KbGP2.js";function Be(e,s,t,n,r){return{domain:e,dip:null,sip:(r&&a(r))??null,outbound:null,matched:null,dns:{type:s,answers:Ee(t),upstream:n,query:{name:e,type:s}}}}const He=(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}}}),Ke={forced:"dns.route.forced","dns.routing":"dns.route.rules",default:"dns.route.default"};function Ie(e,s,a){return{fields:[[a("ui.state"),e.status],[a("ui.upstream"),e.upstream??"—"],[a("dns.routeSource"),n(Ke,e.route.source,a)],[a("dns.routeRule"),e.route.rule??"—"],[a("ui.elapsed"),r(e.elapsed_ms,a)]],answers:(e.answers??[]).map(e=>{const n=Ee([e])[0],r=n?t(n):void 0;return{data:e.data,name:(l=e.name,i=s,l.replace(/\.$/,"").toLowerCase()===i.replace(/\.$/,"").toLowerCase()?null:e.name),type:e.type,ttl:a("dns.ttl",{ttl:e.ttl}),lookup:r&&me(r)?r:null};var l,i}),cacheText:a(e.cached?"dns.hit":"dns.miss"),cacheTone:e.cached?void 0:"warn"}}function $e(e,s,a){return e?a instanceof o&&503===a.status?"unavailable":s?"ready":a?"error":"loading":"unlisted"}const Ve=[{id:"full",label:"rule.kind.domain"},{id:"suffix",label:"rule.kind.domainSuffix"},{id:"keyword",label:"rule.kind.domainKeyword"},{id:"regex",label:"dns.matchRegex"}],Qe=e=>e.trim().toLowerCase().replace(/\.$/,"");function Je(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(Qe(s)))}if("keyword"===e){const e=s.trim().toLowerCase();return s=>Qe(s).includes(e)}const a=Qe(s),t="suffix"===e&&a.startsWith("."),n=t?a.slice(1):a;return n?"full"===e?e=>Qe(e)===n:e=>{const s=Qe(e);return s.endsWith("."+n)||!t&&s===n}:null}function ze({go:s,query:a}){const t=u(),n=m(),r=h(),l=e.useMemo(()=>new URLSearchParams(a),[a]),[i,d]=e.useState(l.get("domain")??""),[c,o]=e.useState(l.get("type")??"A"),[v,w]=e.useState(!1);p(l.get("domain"),e=>d(e??"")),p(l.get("type"),e=>o(e??"A"));const[_,N]=e.useState(null),{busy:k,error:S,run:C}=x({rethrow:!0}),T=r.data?.resources,q=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}`,...Ie(s,e.domain,r),seed:Be(e.domain,s.type,s.answers??[],s.upstream,null),answerSeeds:(s.answers??[]).map(a=>Ee([a]).length?{address:a.data,seed:He(a.data,e.domain,s.type)}:null)}))??[],tabs:Fe(s).map(e=>({id:e.id,label:r(e.titleKey)}))}}(_,T,c,i,!!k,t),[_,T,c,i,k,t]),M=q.tabs.map(e=>e.id),R=l.has("domain")||l.has("device"),L=M.includes("log")?R?"log":"stats":M.includes("query")?"query":M[0]??"query",A=g(a,M,L),F=y(T,"config",{whileLoading:!1}),E=xe("query"===A&&F&&y(T,"dns_query",{whileLoading:!1})),D=e.useMemo(()=>F?function(e,s){const a=[...new Set((e??[]).flatMap(e=>e.content?De(e.content).map(Pe):[]))];return a.length?[{id:"",label:s("dns.upstreamAuto")},...a.map(e=>({id:e,label:e}))]:[]}(E.data?.sources,t):[],[F,E.data,t]),[P,W]=e.useState(""),O=D.some(e=>e.id===P)?P:"";Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as n,j as t}from"./vendor-react-64fcanlc.js";import{u as e,g as r}from"./index-tt2n9Zk_.js";import{aU as o,b1 as a,aY as i,a_ as l}from"./activity-St9WlHNk.js";import{w as u,c,a as s}from"./array-C0VuvQyb.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-CWX2Nx2b.js";import"./logs-DlBF9FTI.js";import"./Select-DO5D4JEL.js";import"./ItemText-EZM3RrYN.js";import"./AppearanceControls-D6ckn4zJ.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 w(n){return n.innerRadius}function b(n){return n.outerRadius}function T(n){return n.startAngle}function P(n){return n.endAngle}function R(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,j=M*M+A*A,w=o-a,b=h*x-d*y,T=(A<0?-1:1)*g(p(0,w*w*j-b*b)),P=(b*A-M*T)/j,R=(-b*M-A*T)/j,L=(b*A+M*T)/j,I=(-b*M+A*T)/j,$=P-v,B=R-m,N=L-v,S=I-m;return $*$+B*B>N*N+S*S&&(P=L,R=I),{cx:P,cy:R,x01:-s,y01:-f,x11:P*(o/w-1),y11:R*(o/w-1)}}function I(){var n=w,t=b,e=c(0),r=null,o=T,a=P,i=R,l=null,s=u(p);function p(){var u,c,p,w=+n.apply(this,arguments),b=+t.apply(this,arguments),T=o.apply(this,arguments)-M,P=a.apply(this,arguments)-M,R=f(P-T),I=P>T;if(l||(l=u=s()),b<w&&(c=b,b=w,w=c),b>v)if(R>A-v)l.moveTo(b*y(T),b*x(T)),l.arc(0,0,b,T,P,!I),w>v&&(l.moveTo(w*y(P),w*x(P)),l.arc(0,0,w,P,T,I));else{var $,B,N=T,S=P,k=T,D=P,E=R,F=R,K=i.apply(this,arguments)/2,_=K>v&&(r?+r.apply(this,arguments):g(w*w+b*b)),q=d(f(b-w)/2,+e.apply(this,arguments)),C=q,H=q;if(_>v){var U=j(_/w*x(K)),V=j(_/b*x(K));(E-=2*U)>v?(k+=U*=I?1:-1,D-=U):(E=0,k=D=(T+P)/2),(F-=2*V)>v?(N+=V*=I?1:-1,S-=V):(F=0,N=S=(T+P)/2)}var Y=b*y(N),z=b*x(N),G=w*y(D),J=w*x(D);if(q>v){var O,Q=b*y(S),W=b*x(S),X=w*y(k),Z=w*x(k);if(R<m)if(O=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]}(Y,z,X,Z,Q,W,G,J)){var nn=Y-O[0],tn=z-O[1],en=Q-O[0],rn=W-O[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(O[0]*O[0]+O[1]*O[1]);C=d(q,(w-an)/(on-1)),H=d(q,(b-an)/(on+1))}else C=H=0}F>v?H>v?($=L(X,Z,Y,z,b,H,I),B=L(Q,W,G,J,b,H,I),l.moveTo($.cx+$.x01,$.cy+$.y01),H<q?l.arc($.cx,$.cy,H,h($.y01,$.x01),h(B.y01,B.x01),!I):(l.arc($.cx,$.cy,H,h($.y01,$.x01),h($.y11,$.x11),!I),l.arc(0,0,b,h($.cy+$.y11,$.cx+$.x11),h(B.cy+B.y11,B.cx+B.x11),!I),l.arc(B.cx,B.cy,H,h(B.y11,B.x11),h(B.y01,B.x01),!I))):(l.moveTo(Y,z),l.arc(0,0,b,N,S,!I)):l.moveTo(Y,z),w>v&&E>v?C>v?($=L(G,J,Q,W,w,-C,I),B=L(Y,z,X,Z,w,-C,I),l.lineTo($.cx+$.x01,$.cy+$.y01),C<q?l.arc($.cx,$.cy,C,h($.y01,$.x01),h(B.y01,B.x01),!I):(l.arc($.cx,$.cy,C,h($.y01,$.x01),h($.y11,$.x11),!I),l.arc(0,0,w,h($.cy+$.y11,$.cx+$.x11),h(B.cy+B.y11,B.cx+B.x11),I),l.arc(B.cx,B.cy,C,h(B.y11,B.x11),h(B.y01,B.x01),!I))):l.arc(0,0,w,D,k,I):l.lineTo(G,J)}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 $(n,t){return t<n?-1:t>n?1:t>=n?0:NaN}function B(n){return n}function N({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),j=p?.width??0,w=p?.height??0,b=a(M.map(n=>n.value)),T=function(){var n=B,t=$,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(+nLine truncated
|
||||
import{r as n,j as t}from"./vendor-react-64fcanlc.js";import{u as e,g as r}from"./index-DFPUSiWe.js";import{aU as o,b1 as a,aY as i,a_ as l}from"./activity-pUN0wcVd.js";import{w as u,c,a as s}from"./array-C0VuvQyb.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-HzIJdCpg.js";import"./logs-lI5kXcWp.js";import"./Select-BFkb6iie.js";import"./ItemText-u3CUc_6I.js";import"./AppearanceControls-Bpq6OQjk.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 w(n){return n.innerRadius}function b(n){return n.outerRadius}function P(n){return n.startAngle}function T(n){return n.endAngle}function R(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,j=M*M+A*A,w=o-a,b=h*x-d*y,P=(A<0?-1:1)*g(p(0,w*w*j-b*b)),T=(b*A-M*P)/j,R=(-b*M-A*P)/j,L=(b*A+M*P)/j,I=(-b*M+A*P)/j,$=T-v,B=R-m,N=L-v,S=I-m;return $*$+B*B>N*N+S*S&&(T=L,R=I),{cx:T,cy:R,x01:-s,y01:-f,x11:T*(o/w-1),y11:R*(o/w-1)}}function I(){var n=w,t=b,e=c(0),r=null,o=P,a=T,i=R,l=null,s=u(p);function p(){var u,c,p,w=+n.apply(this,arguments),b=+t.apply(this,arguments),P=o.apply(this,arguments)-M,T=a.apply(this,arguments)-M,R=f(T-P),I=T>P;if(l||(l=u=s()),b<w&&(c=b,b=w,w=c),b>v)if(R>A-v)l.moveTo(b*y(P),b*x(P)),l.arc(0,0,b,P,T,!I),w>v&&(l.moveTo(w*y(T),w*x(T)),l.arc(0,0,w,T,P,I));else{var $,B,N=P,S=T,k=P,D=T,E=R,F=R,K=i.apply(this,arguments)/2,U=K>v&&(r?+r.apply(this,arguments):g(w*w+b*b)),_=d(f(b-w)/2,+e.apply(this,arguments)),q=_,z=_;if(U>v){var C=j(U/w*x(K)),H=j(U/b*x(K));(E-=2*C)>v?(k+=C*=I?1:-1,D-=C):(E=0,k=D=(P+T)/2),(F-=2*H)>v?(N+=H*=I?1:-1,S-=H):(F=0,N=S=(P+T)/2)}var V=b*y(N),Y=b*x(N),G=w*y(D),J=w*x(D);if(_>v){var O,Q=b*y(S),W=b*x(S),X=w*y(k),Z=w*x(k);if(R<m)if(O=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]}(V,Y,X,Z,Q,W,G,J)){var nn=V-O[0],tn=Y-O[1],en=Q-O[0],rn=W-O[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(O[0]*O[0]+O[1]*O[1]);q=d(_,(w-an)/(on-1)),z=d(_,(b-an)/(on+1))}else q=z=0}F>v?z>v?($=L(X,Z,V,Y,b,z,I),B=L(Q,W,G,J,b,z,I),l.moveTo($.cx+$.x01,$.cy+$.y01),z<_?l.arc($.cx,$.cy,z,h($.y01,$.x01),h(B.y01,B.x01),!I):(l.arc($.cx,$.cy,z,h($.y01,$.x01),h($.y11,$.x11),!I),l.arc(0,0,b,h($.cy+$.y11,$.cx+$.x11),h(B.cy+B.y11,B.cx+B.x11),!I),l.arc(B.cx,B.cy,z,h(B.y11,B.x11),h(B.y01,B.x01),!I))):(l.moveTo(V,Y),l.arc(0,0,b,N,S,!I)):l.moveTo(V,Y),w>v&&E>v?q>v?($=L(G,J,Q,W,w,-q,I),B=L(V,Y,X,Z,w,-q,I),l.lineTo($.cx+$.x01,$.cy+$.y01),q<_?l.arc($.cx,$.cy,q,h($.y01,$.x01),h(B.y01,B.x01),!I):(l.arc($.cx,$.cy,q,h($.y01,$.x01),h($.y11,$.x11),!I),l.arc(0,0,w,h($.cy+$.y11,$.cx+$.x11),h(B.cy+B.y11,B.cx+B.x11),I),l.arc(B.cx,B.cy,q,h(B.y11,B.x11),h(B.y01,B.x01),!I))):l.arc(0,0,w,D,k,I):l.lineTo(G,J)}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 $(n,t){return t<n?-1:t>n?1:t>=n?0:NaN}function B(n){return n}function N({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),j=p?.width??0,w=p?.height??0,b=a(M.map(n=>n.value)),P=function(){var n=B,t=$,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(+nLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,$ as t,a as r,j as n}from"./vendor-react-64fcanlc.js";import{eG as o,gj as i,ev as a,er as s,cZ as l,gk as d,gl as c,gm as p,ex as u,es as g,et as f,eu as m,eH as h,eS as y,gn as D,go as v,eT as b,eC as w,gp as x,g2 as T,fS as k,bt as E,cW as P,cO as K,f4 as O,I as S,aE as C,cq as I,eZ as j,aA as A,bw as R,B as M,g as B,u as L,R as F,cm as $,r as z,dd as N,bO as V,cI as H,dt as X,b7 as Y,m as q,gq as U,P as G,gr as J,D as W}from"./index-tt2n9Zk_.js";import{b2 as _,b3 as Z,b4 as Q,b5 as ee,b6 as te,b7 as re,b8 as ne,b9 as oe,ba as ie,bb as ae,bc as se,bd as le,be as de,bf as ce,bg as pe,bh as ue,bi as ge,bj as fe,bk as me,bl as he,bm as ye,bn as De,bo as ve,bp as be,bq as we,br as xe,bs as Te,bt as ke,bu as Ee,bv as Pe,bw as Ke,bx as Oe,by as Se,bz as Ce,bA as Ie,bB as je,bC as Ae}from"./activity-St9WlHNk.js";import{$ as Re,a as Me}from"./GridList-2xKNlEZe.js";import{m as Be}from"./Select-DO5D4JEL.js";import{D as Le}from"./Delete-XRP-Yofb.js";import{S as Fe,c as $e,$ as ze}from"./logs-DlBF9FTI.js";import{C as Ne}from"./AppearanceControls-D6ckn4zJ.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-CWX2Nx2b.js";import"./ItemText-EZM3RrYN.js";import"./useGridSelectionCheckbox-EoqO9l1F.js";var Ve=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 He={...Ve,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},Xe=Ue(He);Xe[7]="all";const Ye={none:"cancel",link:"link",copy:"copy",move:"move"},qe=Ue(Ye);function Ue(e){let t={};for(let r in e)t[e[r]]=r;return t}const Ge=new Set(["text/plain","text/uri-list","text/html"]),Je="application/vnd.react-aria.items+json",We="application/octet-stream",_e=new WeakMap,Ze=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 et(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 tt(){return et(o())}function rt(){return et(i())}class nt{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(We));this.includesUnknownTypes=!t&&e.types.includes("Files")}has(e){if(Array.isArray(e))return e.some(e=>this.has(e));if(this.includesUnknownTypes||e===Ze&&this.types.has(We)||"*/*"===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 ot(e){if(!e)throw new Error("No file provided");return{kind:"file",type:e.type||We,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 it(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 at(e);yield ot(t)}else e.isDirectory&&(yield it(e))}while(t.length>0)}(e)}}function at(e){return new Promise((t,r)=>e.file(t,r))}let st,lt={draggingKeys:new Set};function dt(e){lt.dropCollectionRef=e}function ct(){lt={draggingKeys:new Set}}function pt(e){let{draggingCollectionRef:t,dropCollectionRef:r}=lt;return null!=t?.current&&t.current===(e?.current||r?.current)}function ut(e){st=e}let gt=Ve.none;function ft(e){gt=e}let mt=new Map,ht=new Map,yt=null,Dt=new Set;function vt(e){return mt.set(e.element,e),yt?.updateValidDropTargets(),()=>{mt.delete(e.element),yt?.updateValidDropTargets()}}function bt(){let[t,r]=e.useState(yt);return e.useEffect(()=>{let e=()=>r(yt);return Dt.add(e),()=>{Dt.delete(e)}},[]),t}function wt(){return!!yt}const xt=["pointerdown","pointermove","pointerenter","pointerleave","pointerover","pointerout","pointerup","mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","touchstart","touchmove","touchend","focusin","focusout"],Tt=["pointerup","mouseup","touchend"],kt={keyboard:"dragStartedKeyboard",touch:"dragStartedTouch",virtual:"dragStartedVirtual"};class Et{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)Line truncated
|
||||
import{r as e,$ as t,a as r,j as n}from"./vendor-react-64fcanlc.js";import{eG as o,gj as i,ev as a,er as s,cZ as l,gk as d,gl as c,gm as p,ex as u,es as g,et as f,eu as m,eH as h,eS as y,gn as D,go as v,eT as b,eC as w,gp as x,g2 as T,fS as k,bt as E,cW as P,cO as K,f4 as O,I as S,aE as C,cq as I,eZ as j,aA as A,bw as R,B as M,g as B,u as L,R as F,cm as $,r as z,dd as N,bO as V,cI as H,dt as X,b7 as Y,m as q,gq as U,P as G,gr as J,D as W}from"./index-DFPUSiWe.js";import{b2 as _,b3 as Z,b4 as Q,b5 as ee,b6 as te,b7 as re,b8 as ne,b9 as oe,ba as ie,bb as ae,bc as se,bd as le,be as de,bf as ce,bg as pe,bh as ue,bi as ge,bj as fe,bk as me,bl as he,bm as ye,bn as De,bo as ve,bp as be,bq as we,br as xe,bs as Te,bt as ke,bu as Ee,bv as Pe,bw as Ke,bx as Oe,by as Se,bz as Ce,bA as Ie,bB as je,bC as Ae}from"./activity-pUN0wcVd.js";import{$ as Re,a as Me}from"./GridList-BuXKU7Uk.js";import{m as Be}from"./Select-BFkb6iie.js";import{D as Le}from"./Delete-DIaM96Pb.js";import{S as Fe,c as $e,$ as ze}from"./logs-lI5kXcWp.js";import{C as Ne}from"./AppearanceControls-Bpq6OQjk.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-HzIJdCpg.js";import"./ItemText-u3CUc_6I.js";import"./useGridSelectionCheckbox-wMhI-U-R.js";var Ve=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 He={...Ve,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},Xe=Ue(He);Xe[7]="all";const Ye={none:"cancel",link:"link",copy:"copy",move:"move"},qe=Ue(Ye);function Ue(e){let t={};for(let r in e)t[e[r]]=r;return t}const Ge=new Set(["text/plain","text/uri-list","text/html"]),Je="application/vnd.react-aria.items+json",We="application/octet-stream",_e=new WeakMap,Ze=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 et(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 tt(){return et(o())}function rt(){return et(i())}class nt{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(We));this.includesUnknownTypes=!t&&e.types.includes("Files")}has(e){if(Array.isArray(e))return e.some(e=>this.has(e));if(this.includesUnknownTypes||e===Ze&&this.types.has(We)||"*/*"===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 ot(e){if(!e)throw new Error("No file provided");return{kind:"file",type:e.type||We,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 it(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 at(e);yield ot(t)}else e.isDirectory&&(yield it(e))}while(t.length>0)}(e)}}function at(e){return new Promise((t,r)=>e.file(t,r))}let st,lt={draggingKeys:new Set};function dt(e){lt.dropCollectionRef=e}function ct(){lt={draggingKeys:new Set}}function pt(e){let{draggingCollectionRef:t,dropCollectionRef:r}=lt;return null!=t?.current&&t.current===(e?.current||r?.current)}function ut(e){st=e}let gt=Ve.none;function ft(e){gt=e}let mt=new Map,ht=new Map,yt=null,Dt=new Set;function vt(e){return mt.set(e.element,e),yt?.updateValidDropTargets(),()=>{mt.delete(e.element),yt?.updateValidDropTargets()}}function bt(){let[t,r]=e.useState(yt);return e.useEffect(()=>{let e=()=>r(yt);return Dt.add(e),()=>{Dt.delete(e)}},[]),t}function wt(){return!!yt}const xt=["pointerdown","pointermove","pointerenter","pointerleave","pointerover","pointerout","pointerup","mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","touchstart","touchmove","touchend","focusin","focusout"],Tt=["pointerup","mouseup","touchend"],kt={keyboard:"dragStartedKeyboard",touch:"dragStartedTouch",virtual:"dragStartedVirtual"};class Et{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)Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{V as s,a4 as n,a6 as r,a3 as a,h as i,ab as o,u as l,ao as d,an as c,r as m,c7 as u,ad as p,ae as v,dB as h,dC as j,T as x,ay as f,B as b,c as g,ce as w,E as k}from"./index-DFPUSiWe.js";import{e as y,Q as C,K as T,p as N,L as _}from"./logs-lI5kXcWp.js";import{D as S}from"./Table-6xnX6eUx.js";import{d as W,e as H}from"./files-Dt8K7QfP.js";import{i as R,D as K}from"./activity-pUN0wcVd.js";import{u as O,C as D}from"./Copy-DRn0jPgo.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BFkb6iie.js";import"./ItemText-u3CUc_6I.js";import"./AppearanceControls-Bpq6OQjk.js";import"./nodes-HzIJdCpg.js";import"./useGridSelectionCheckbox-wMhI-U-R.js";import"./Virtualizer-BH6NJSXn.js";import"./Checkbox-xU-Ds7Hn.js";const M={buffer_overflow:["event.gap.overflow","event.gapHelp.overflow"],evicted:["event.gap.evicted","event.gapHelp.evicted"]};function P(e,t){const s="flow.gap"===e.event&&Object.hasOwn(M,e.data.reason)?M[e.data.reason]:void 0;return s&&{title:t(s[0]),text:t(s[1])}}function V(e,t,s){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),...s?.runtime_settings.available?[{id:"recording",label:t("ui.recordingSettings"),href:R}]:[]];case"generation.changed":return s?.config.available?[{id:"config",label:t("event.viewConfig"),href:i("config")}]:[];default:return[]}}const B=new WeakMap;function F(e,t,i,o,l,d,c,m,u=!1,p=()=>!1,v){const h="without-runtime"===t||m.includes(t)?t:"all",j=e.filter(e=>"all"===h||("without-runtime"===h?"runtime.updated"!==e.event:e.event===h)).slice(0,l);return{kind:h,rows:j.map(e=>function(e,t,i,o,l){const d=B.get(e);if(d&&d.locale===t&&d.resources===l)return d.row;const c=o?{key:"event.lostHistory"}:r(e,i),m={id:y(e),timestamp:a(e.data.observed_at,t),iso:e.data.observed_at,kind:e.event,kindText:s(n,e.event,i),summary:i(c.key,c.params),help:P(e,i),links:V(e,i,l),event:e};return B.set(e,{locale:t,resources:l,row:m}),m}(e,d,c,p(e),v)),kinds:[{id:"without-runtime",label:c("event.withoutRuntime")},{id:"all",label:c("event.allKinds")},...m.map(e=>({id:e,label:s(n,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:j}}function J(){const t=o(),s=l(),n=d[c()],r=m(),a=r.data?.resources,i=a?.events.kinds,[x,f]=e.useState("without-runtime"),b="all"!==x&&"runtime.updated"!==x&&i?.includes(x),g=C("without-runtime"!==x&&!b),w=e.useMemo(()=>F(g.events,x,g.connected,g.available,j,n,s,i??[],!!g.error,h,a),[g.events,x,g.connected,g.available,g.error,n,s,i,a]);return u(w.kind,f),{...w,setKind:f,cursor:g.cursor,error:g.error,retry:()=>{p().then(()=>v(t))},loading:!g.error&&!g.connected&&!1!==g.available&&!g.events.length,export:()=>{return W(H("doona-events","json"),(e=w.shown,JSON.stringify(e,null,2)+"\n"),"application/json");var e}}}function L(){const s=l(),n=J(),r=O(),a=e.useMemo(()=>[{id:"t",label:s("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:s("event.kind"),minWidth:224,drop:2,render:e=>t.jsx(x,{text:e.kind,children:e.kindText})},{id:"m",label:s("event.summary"),minWidth:176,isRowHeader:!0,render:e=>t.jsx(f,{fill:!0,help:e.help,children:t.jsx(x,{children:e.summary})})},{id:"actions",actions:!0,label:s("ui.actions"),hideLabel:!0,minWidth:64,grow:0,render:e=>t.jsx(b,{small:!0,quiet:!0,icon:!0,label:s("ui.copyRecord"),onPress:()=>{r((e=>JSON.stringify(e,null,2))(e.event))},children:t.jsx(D,{})})}],[s,r]),i=e.useCallback(e=>t.jsxs(t.Fragment,{children:[t.jsx(T,{inline:!0,items:[[s("ui.time"),e.timestamp],[s("event.kind"),e.kindText],[s("event.summary"),e.summary]]}),e.links.length>0&&t.jsx("div",{className:"rp-cluster",children:e.links.map(e=>t.jsx(g,{appearance:"button",href:e.href,children:e.label},e.id))})]}),[s]);return t.jsxs("div",{className:"rp-page",children:[t.jsxs(w,{page:!0,children:[t.jsx(N,{label:s("event.kind"),side:!0,value:n.kind,onChange:n.setKind,items:n.kinds}),t.jsx(_,{small:!0,tone:n.status.tone,children:n.status.text}),n.cursor&&t.jsx(x,{text:n.cursor,children:t.jsx("span",{className:"rp-label",children:s("event.cursor")})}),t.jsx("span",{className:"rp-label",children:n.limitText}),t.jsx("span",{className:"rp-grow"}),t.jsxs(b,{isDisabled:!n.rows.length,onPress:n.export,children:[t.jsx(K,{}),s("event.export")]})]}),n.error&&t.jsx(k,{error:n.error,onRetry:n.retry}),t.jsx(S,{label:s("nav.events"),stream:!0,flow:!0,loading:n.loading,rows:n.rows,empty:s("event.empty"),cols:a,detail:i})]})}export{L as Events};
|
||||
@@ -1 +0,0 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{V as n,a4 as s,a6 as r,a3 as a,h as i,ab as o,u as l,ao as d,an as c,r as u,c7 as m,ad as p,ae as v,dB as h,dC as j,T as x,ay as f,B as b,c as g,ce as w,E as k}from"./index-tt2n9Zk_.js";import{e as y,Q as T,K as C,p as N,L as S}from"./logs-DlBF9FTI.js";import{D as _}from"./Table-CNIdPyPm.js";import{d as H,e as O}from"./files-Dt8K7QfP.js";import{i as W,D as K}from"./activity-St9WlHNk.js";import{u as R,C as D}from"./Copy-8L85FkPb.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-DO5D4JEL.js";import"./ItemText-EZM3RrYN.js";import"./AppearanceControls-D6ckn4zJ.js";import"./nodes-CWX2Nx2b.js";import"./useGridSelectionCheckbox-EoqO9l1F.js";import"./Virtualizer-Bm8y6eIs.js";const M={buffer_overflow:["event.gap.overflow","event.gapHelp.overflow"],evicted:["event.gap.evicted","event.gapHelp.evicted"]};function B(e,t){const n="flow.gap"===e.event&&Object.hasOwn(M,e.data.reason)?M[e.data.reason]:void 0;return n&&{title:t(n[0]),text:t(n[1])}}function F(e,t,n){const s=e=>e?[{id:"flow",label:t("event.viewFlow"),href:i("flows",{tab:"records",id:e})}]:[];switch(e.event){case"flow.updated":return s(e.data.resource_id);case"flow.gap":return[...s(e.data.resource_id),...n?.runtime_settings.available?[{id:"recording",label:t("ui.recordingSettings"),href:W}]:[]];case"generation.changed":return n?.config.available?[{id:"config",label:t("event.viewConfig"),href:i("config")}]:[];default:return[]}}const J=new WeakMap;function L(e,t,i,o,l,d,c,u,m=!1,p=()=>!1,v){const h="without-runtime"===t||u.includes(t)?t:"all",j=e.filter(e=>"all"===h||("without-runtime"===h?"runtime.updated"!==e.event:e.event===h)).slice(0,l);return{kind:h,rows:j.map(e=>function(e,t,i,o,l){const d=J.get(e);if(d&&d.locale===t&&d.resources===l)return d.row;const c=o?{key:"event.lostHistory"}:r(e,i),u={id:y(e),timestamp:a(e.data.observed_at,t),iso:e.data.observed_at,kind:e.event,kindText:n(s,e.event,i),summary:i(c.key,c.params),help:B(e,i),links:F(e,i,l),event:e};return J.set(e,{locale:t,resources:l,row:u}),u}(e,d,c,p(e),v)),kinds:[{id:"without-runtime",label:c("event.withoutRuntime")},{id:"all",label:c("event.allKinds")},...u.map(e=>({id:e,label:n(s,e,c)}))],status:m&&!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:j}}function P(){const t=o(),n=l(),s=d[c()],r=u(),a=r.data?.resources,i=a?.events.kinds,[x,f]=e.useState("without-runtime"),b="all"!==x&&"runtime.updated"!==x&&i?.includes(x),g=T("without-runtime"!==x&&!b),w=e.useMemo(()=>L(g.events,x,g.connected,g.available,j,s,n,i??[],!!g.error,h,a),[g.events,x,g.connected,g.available,g.error,s,n,i,a]);return m(w.kind,f),{...w,setKind:f,cursor:g.cursor,error:g.error,retry:()=>{p().then(()=>v(t))},loading:!g.error&&!g.connected&&!1!==g.available&&!g.events.length,export:()=>{return H(O("doona-events","json"),(e=w.shown,JSON.stringify(e,null,2)+"\n"),"application/json");var e}}}function Q(){const n=l(),s=P(),r=R(),a=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:176,isRowHeader:!0,render:e=>t.jsx(f,{fill:!0,help:e.help,children:t.jsx(x,{children:e.summary})})},{id:"actions",actions:!0,label:n("ui.actions"),hideLabel:!0,minWidth:64,grow:0,render:e=>t.jsx(b,{small:!0,quiet:!0,icon:!0,label:n("ui.copyRecord"),onPress:()=>{r((e=>JSON.stringify(e,null,2))(e.event))},children:t.jsx(D,{})})}],[n,r]),i=e.useCallback(e=>t.jsxs(t.Fragment,{children:[t.jsx(C,{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(g,{appearance:"button",href:e.href,children:e.label},e.id))})]}),[n]);return t.jsxs("div",{className:"rp-page",children:[t.jsxs(w,{page:!0,children:[t.jsx(N,{label:n("event.kind"),side:!0,value:s.kind,onChange:s.setKind,items:s.kinds}),t.jsx(S,{small:!0,tone:s.status.tone,children:s.status.text}),s.cursor&&t.jsx(x,{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(b,{isDisabled:!s.rows.length,onPress:s.export,children:[t.jsx(K,{}),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:a,detail:i})]})}export{Q as Events};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,j as a}from"./vendor-react-64fcanlc.js";import{u as s,an as l,cF as o,ao as t,du as n,b7 as i,B as r}from"./index-tt2n9Zk_.js";import{S as c}from"./SearchSelect-OEHKvvM7.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-DO5D4JEL.js";import"./ItemText-EZM3RrYN.js";import"./SearchList-D3Aknep5.js";import"./Virtualizer-Bm8y6eIs.js";function m({name:i,value:r,automaticFlag:m,onChange:d}){const f=s(),g=l(),p=e.useMemo(()=>o(t[g]),[g]),j=n(i),u=p.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(j?"flags.embedded":"flags.help"),isDisabled:j,searchLabel:f("flags.search"),value:j?"automatic":r,onChange:d,sections:[{id:"flags",items:[{id:"automatic",label:h,flag:m},{id:"none",label:f("flags.none"),flag:null},...p]}]})})}function d({name:e,onClose:l,...o}){const t=s();return a.jsxs(i,{narrow:!0,title:t("flags.edit"),isOpen:!0,onOpenChange:e=>{e||l()},footer:()=>a.jsx(r,{onPress:l,children:t("ui.close")}),children:[a.jsx("p",{className:"rp-note",children:e}),a.jsx(m,{name:e,...o})]})}export{m as FlagField,d as FlagPicker};
|
||||
import{r as e,j as a}from"./vendor-react-64fcanlc.js";import{u as s,an as l,cF as o,ao as t,du as n,b7 as i,B as r}from"./index-DFPUSiWe.js";import{S as c}from"./SearchSelect-CsXd0DEh.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BFkb6iie.js";import"./ItemText-u3CUc_6I.js";import"./SearchList-C88Y6c53.js";import"./Virtualizer-BH6NJSXn.js";function m({name:i,value:r,automaticFlag:m,onChange:d}){const f=s(),g=l(),p=e.useMemo(()=>o(t[g]),[g]),j=n(i),u=p.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(j?"flags.embedded":"flags.help"),isDisabled:j,searchLabel:f("flags.search"),value:j?"automatic":r,onChange:d,sections:[{id:"flags",items:[{id:"automatic",label:h,flag:m},{id:"none",label:f("flags.none"),flag:null},...p]}]})})}function d({name:e,onClose:l,...o}){const t=s();return a.jsxs(i,{narrow:!0,title:t("flags.edit"),isOpen:!0,onOpenChange:e=>{e||l()},footer:()=>a.jsx(r,{onPress:l,children:t("ui.close")}),children:[a.jsx("p",{className:"rp-note",children:e}),a.jsx(m,{name:e,...o})]})}export{m as FlagField,d as FlagPicker};
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{N as n,O as a}from"./NodePath-DCKKYRsk.js";import{l as o,q as s,B as r,c as l,g as i,K as d,R as u,S as c,p}from"./logs-lI5kXcWp.js";import{a8 as m,O as f,a5 as g,J as w,H as h,c9 as b,cb as j,w as x,c1 as v,V as y,c3 as k,c4 as _,ao as M,a3 as S,h as N,b1 as L,o as C,aa as T,Z as P,u as R,an as F,j as O,B as H,N as q,b9 as E,r as $,t as W,b5 as A,c6 as D,b6 as I,c8 as B,S as V,ah as U,aH as J,E as K,T as z,ce as G,aF as Q,c as Z,bA as X,C as Y}from"./index-DFPUSiWe.js";import{g as ee,d as te,h as ne,o as ae,i as oe,r as se}from"./activity-pUN0wcVd.js";import{w as re}from"./labels-D8xxfRTQ.js";import{c as le,C as ie}from"./Coverage-BRhvKmi_.js";import{f as de}from"./nav-CISoRdvs.js";import{T as ue}from"./Tabs-HxpCyCLR.js";import{s as ce,D as pe}from"./Table-6xnX6eUx.js";import{T as me}from"./TimeCell-CRwMWdtu.js";import{a as fe,u as ge,b as we}from"./flows-Cd1KbGP2.js";import{u as he}from"./outbounds-BMHzxQr8.js";import{u as be,Q as je,R as xe}from"./useQuickRule-BGNvNXBX.js";import{$ as ve}from"./GridList-BuXKU7Uk.js";import{$ as ye,a as ke}from"./Virtualizer-BH6NJSXn.js";import{C as _e}from"./CardView-CwlxcqMf.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Tag-BZqiYh1Z.js";import"./Select-BFkb6iie.js";import"./ItemText-u3CUc_6I.js";import"./AppearanceControls-Bpq6OQjk.js";import"./nodes-HzIJdCpg.js";import"./useGridSelectionCheckbox-wMhI-U-R.js";import"./Checkbox-xU-Ds7Hn.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-V0Kluz-m.js";import"./SearchSelect-CsXd0DEh.js";import"./SearchList-C88Y6c53.js";import"./rule-D1hMywhM.js";const Me=["client","rule","outbound","node"];function Se(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 Ne(e,t,n,a){switch(t){case"client":{const t=f(e.input?.src??void 0);return{label:t??"unknown",unknown:!t}}case"rule":return e.rule_expression?{label:e.rule_expression,unknown:!1,key:Se(e,a)}:{label:"unknown",unknown:!0};case"outbound":return e.outbound?{label:e.outbound,unknown:!1}:{label:"unknown",unknown:!0};case"node":{if(m(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 Le=(e,t)=>te(e,t.unknown?"":t.key??t.label),Ce=e=>ee(e,Me)?.kind,Te=new Map;function Pe(e,t,n){const a=Ce(t);return a?e.filter(e=>{const o=Ne(e,a,Te,n?.generation_id);return null!==o&&Le(a,o)===t}):[]}function Re(e,t,n,a){const o=ee(e,Me);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 Fe(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,u=new Map,c=new Map,p=new Map,f=(e,t)=>{const n=e+">"+t;let a=p.get(n);return a||p.set(n,a={source:e,target:t,count:0}),a},b=(e,t,n=!1)=>{const a=Le("node",{key:e,label:t,unknown:n});let o=c.get(a);if(!o){const s=n?void 0:i.get(e),r=s&&w(s);c.set(a,o={id:a,label:t,count:0,unknown:n||void 0,latency:h(r),unavailable:"unavailable"===r?.state})}return o},j=(e,t=!1)=>{const n=Le("outbound",{label:e,unknown:t});let a=u.get(n);if(a)return a;const o=t?void 0:l.get(e),d=t?{groups:[],member:null}:g(e,o?.selection.tcp_member_id?"tcp":"udp",l,r,i),c=d.groups.map(e=>({name:e.name,kind:e.policy.kind,policy:e.policy.native})),p=d.member;return a={id:n,label:e,count:0,unknown:t||void 0,kind:t?"unknown":m(e)?e:c.length?"group":"unknown",groups:c,node:p&&b(p,s.get(p)??p).id},u.set(n,a),a.node&&f(n,a.node),a},x=(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 m of a?.rules??[]){const e=x(Le("rule",{key:m.rule_id,label:m.expression}),m.expression);e.must=m.must,m.outbound&&(e.outbound=j(m.outbound).id,f(e.id,e.outbound))}const v=[o,"outbound","node"];for(const m of e){let e;for(const t of v){const n=Ne(m,t,s,a?.generation_id);if(!n)break;const o="outbound"===t?j(n.label,n.unknown):"node"===t?b(n.key??n.label,n.label,n.unknown):x(Le(t,n),n.label,n.unknown);o.count++,e&&f(e.id,o.id).count++,e=o}}for(const m of t)j(m.name);const y=new Set([...d.values()].map(e=>e.outbound)),k=new Set([...u.values()].flatMap(e=>e.groups.slice(1).map(e=>e.name))),_=[...u.values()].filter(e=>e.count||y.has(e.id)||!k.has(e.label)),M=new Set(_.map(e=>e.id)),S=[...p.values()].filter(e=>M.has(e.source)||M.has(e.target)),N=new Set(S.map(e=>e.target));return{by:o,leaves:[...d.values()],outbounds:_,nodes:[...c.values()].filter(e=>N.has(e.id)),links:S}}const Oe=new WeakMap;function He(e){const t=Oe.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.souLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{N as n,O as a}from"./NodePath-C2It1vc3.js";import{l as o,q as s,B as r,c as l,g as i,K as d,R as u,S as c,p}from"./logs-DlBF9FTI.js";import{a8 as m,O as f,a5 as g,J as w,H as h,c9 as b,cb as j,w as v,c1 as x,V as y,c3 as k,c4 as _,ao as M,a3 as S,h as N,b1 as L,o as C,aa as T,Z as P,u as R,an as F,j as O,B as H,N as q,b9 as E,r as $,t as W,b5 as A,c6 as D,b6 as I,c8 as B,S as V,ah as U,aH as J,E as K,T as Q,ce as z,aF as G,c as Z,bA as X,C as Y}from"./index-tt2n9Zk_.js";import{g as ee,d as te,h as ne,o as ae,i as oe,r as se}from"./activity-St9WlHNk.js";import{w as re}from"./labels-D8xxfRTQ.js";import{c as le,C as ie}from"./Coverage-D0M5eSx-.js";import{f as de}from"./nav-CMiyhHuu.js";import{T as ue}from"./Tabs-DWzcwxse.js";import{s as ce,D as pe}from"./Table-CNIdPyPm.js";import{T as me}from"./TimeCell-CIxTaFhT.js";import{a as fe,u as ge,b as we}from"./flows-GETlXTEg.js";import{u as he}from"./outbounds-DLdbuVA3.js";import{u as be,Q as je,R as ve}from"./useQuickRule-DGnvKUbx.js";import{$ as xe}from"./GridList-2xKNlEZe.js";import{$ as ye,a as ke}from"./Virtualizer-Bm8y6eIs.js";import{C as _e}from"./CardView-DB4CLM1X.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Tag-D7lhqmBG.js";import"./Select-DO5D4JEL.js";import"./ItemText-EZM3RrYN.js";import"./AppearanceControls-D6ckn4zJ.js";import"./nodes-CWX2Nx2b.js";import"./useGridSelectionCheckbox-EoqO9l1F.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-DSnjUOi9.js";import"./SearchSelect-OEHKvvM7.js";import"./SearchList-D3Aknep5.js";import"./rule-C_tGvS3P.js";const Me=["client","rule","outbound","node"];function Se(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 Ne(e,t,n,a){switch(t){case"client":{const t=f(e.input?.src??void 0);return{label:t??"unknown",unknown:!t}}case"rule":return e.rule_expression?{label:e.rule_expression,unknown:!1,key:Se(e,a)}:{label:"unknown",unknown:!0};case"outbound":return e.outbound?{label:e.outbound,unknown:!1}:{label:"unknown",unknown:!0};case"node":{if(m(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 Le=(e,t)=>te(e,t.unknown?"":t.key??t.label),Ce=e=>ee(e,Me)?.kind,Te=new Map;function Pe(e,t,n){const a=Ce(t);return a?e.filter(e=>{const o=Ne(e,a,Te,n?.generation_id);return null!==o&&Le(a,o)===t}):[]}function Re(e,t,n,a){const o=ee(e,Me);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 Fe(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,u=new Map,c=new Map,p=new Map,f=(e,t)=>{const n=e+">"+t;let a=p.get(n);return a||p.set(n,a={source:e,target:t,count:0}),a},b=(e,t,n=!1)=>{const a=Le("node",{key:e,label:t,unknown:n});let o=c.get(a);if(!o){const s=n?void 0:i.get(e),r=s&&w(s);c.set(a,o={id:a,label:t,count:0,unknown:n||void 0,latency:h(r),unavailable:"unavailable"===r?.state})}return o},j=(e,t=!1)=>{const n=Le("outbound",{label:e,unknown:t});let a=u.get(n);if(a)return a;const o=t?void 0:l.get(e),d=t?{groups:[],member:null}:g(e,o?.selection.tcp_member_id?"tcp":"udp",l,r,i),c=d.groups.map(e=>({name:e.name,kind:e.policy.kind,policy:e.policy.native})),p=d.member;return a={id:n,label:e,count:0,unknown:t||void 0,kind:t?"unknown":m(e)?e:c.length?"group":"unknown",groups:c,node:p&&b(p,s.get(p)??p).id},u.set(n,a),a.node&&f(n,a.node),a},v=(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 m of a?.rules??[]){const e=v(Le("rule",{key:m.rule_id,label:m.expression}),m.expression);e.must=m.must,m.outbound&&(e.outbound=j(m.outbound).id,f(e.id,e.outbound))}const x=[o,"outbound","node"];for(const m of e){let e;for(const t of x){const n=Ne(m,t,s,a?.generation_id);if(!n)break;const o="outbound"===t?j(n.label,n.unknown):"node"===t?b(n.key??n.label,n.label,n.unknown):v(Le(t,n),n.label,n.unknown);o.count++,e&&f(e.id,o.id).count++,e=o}}for(const m of t)j(m.name);const y=new Set([...d.values()].map(e=>e.outbound)),k=new Set([...u.values()].flatMap(e=>e.groups.slice(1).map(e=>e.name))),_=[...u.values()].filter(e=>e.count||y.has(e.id)||!k.has(e.label)),M=new Set(_.map(e=>e.id)),S=[...p.values()].filter(e=>M.has(e.source)||M.has(e.target)),N=new Set(S.map(e=>e.target));return{by:o,leaves:[...d.values()],outbounds:_,nodes:[...c.values()].filter(e=>N.has(e.id)),links:S}}const Oe=new WeakMap;function He(e){const t=Oe.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.soLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{fG as e,cW as t,cP as r,cO as o,bt as a,fI as i,e0 as l,eE as n,eF as s,ew as d,ex as c,ey as u,cX as p,ez as g,eB as f,eC as y,cZ as v,eA as b,er as h,e5 as m,fL as k,db as D,ea as w,de as E,dd as P,eI as M,d4 as x,d5 as S,d6 as A,eQ as K,d8 as C,ef as T,eK as N,eM as B,e6 as I,eR as F,d0 as R,e7 as L,e4 as V,eq as H,eL as O,eN as z,da as U,eW as $,eX as G,ee as W}from"./index-tt2n9Zk_.js";import{b as j,a as _,c as q,e as X,f as Q,g as Z}from"./useGridSelectionCheckbox-EoqO9l1F.js";import{k as J,f as Y,e as ee,l as te,g as re,i as oe,h as ae}from"./Select-DO5D4JEL.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 f(e,{containingElement:y(e)})}(null!=K.current&&m.key!==K.current||!d(r.current))&&g(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: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),L=F.hasAction?R:{},V=o(I,L,{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,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(),g(t),f(t,{containingElement:y(r.current)});else if(e.preventDefault(),e.stopPropagation(),"rtl"===E)g(r.current),f(r.current,{containingElement:y(r.current)});else{a.currentNode=r.current;let e=ge(a);e&&(g(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(),g(t),f(t,{containingElement:y(r.current)});else if(e.preventDefault(),e.stopPropagation(),"ltr"===E)g(r.current),f(r.current,{containingElement:y(r.current)});else{a.currentNode=r.current;let e=ge(a);e&&(g(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(pe(e,t,m,N,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];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},...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
|
||||
import{fG as e,cW as t,cP as r,cO as o,bt as a,fI as i,e0 as l,eE as n,eF as s,ew as d,ex as c,ey as u,cX as p,ez as g,eB as f,eC as y,cZ as v,eA as b,er as h,e5 as m,fL as k,db as D,ea as w,de as E,dd as P,eI as M,d4 as x,d5 as S,d6 as A,eQ as K,d8 as C,ef as T,eK as N,eM as B,e6 as I,eR as F,d0 as R,e7 as L,e4 as V,eq as H,eL as O,eN as U,da as z,eW as $,eX as G,ee as W}from"./index-DFPUSiWe.js";import{a as j,$ as _,b as q,d as X,e as Q,f as Z}from"./useGridSelectionCheckbox-wMhI-U-R.js";import{k as J,f as Y,e as ee,l as te,g as re,i as oe,h as ae}from"./Select-BFkb6iie.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 f(e,{containingElement:y(e)})}(null!=K.current&&m.key!==K.current||!d(r.current))&&g(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: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),L=F.hasAction?R:{},V=o(I,L,{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,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(),g(t),f(t,{containingElement:y(r.current)});else if(e.preventDefault(),e.stopPropagation(),"rtl"===E)g(r.current),f(r.current,{containingElement:y(r.current)});else{a.currentNode=r.current;let e=ge(a);e&&(g(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(),g(t),f(t,{containingElement:y(r.current)});else if(e.preventDefault(),e.stopPropagation(),"ltr"===E)g(r.current),f(r.current,{containingElement:y(r.current)});else{a.currentNode=r.current;let e=ge(a);e&&(g(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(pe(e,t,m,N,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];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},...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
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as s}from"./vendor-react-64fcanlc.js";import{I as e,cw as a,N as l,T as c}from"./index-tt2n9Zk_.js";function r(a){return s.jsx(e,{...a,children:s.jsx("path",{fill:"currentColor",d:"M7.864 15.734c-.222 0-.433-.098-.576-.27l-3.747-4.497c-.266-.319-.222-.792.096-1.057.317-.265.79-.223 1.056.096l3.154 3.786 7.44-9.469c.255-.326.728-.382 1.052-.127.326.256.383.728.127 1.053L8.454 15.447c-.14.179-.352.284-.579.287z"})})}const t=()=>s.jsx(r,{className:"rp-check-mark"}),i=({i:e,cut:a,reserveFlag:r=!1})=>{const t="path"===a?e.label.lastIndexOf("/")+1:0;return s.jsxs("span",{className:"rp-il",children:[(e.flag||r&&void 0!==e.flag)&&s.jsx("span",{className:"rp-node-flag","data-flag":e.flag,"aria-hidden":"true"}),e.icon&&s.jsx("span",{className:"ic",children:e.icon}),e.nodeName?s.jsx(l,{name:e.label,cut:"start"===a?a:void 0}):t?s.jsxs(c,{className:"rp-path",text:e.label,children:[s.jsx("span",{className:"rp-truncate rp-truncate-start",children:s.jsx("bdi",{children:e.label.slice(0,t)})}),s.jsx("bdi",{children:e.label.slice(t)})]}):s.jsx(c,{cut:"start"===a?a:void 0,tooltipText:e.label,children:e.label})]})},n=({i:e,children:l})=>s.jsxs("span",{className:"rp-item-text",children:[s.jsx(a,{slot:"label",elementType:"span",children:s.jsx(i,{i:e,reserveFlag:!0})}),l??(e.desc&&s.jsx(a,{slot:"description",className:e.aside?"desc aside":"desc",children:e.desc}))]});export{r as C,i as I,t as a,n as b};
|
||||
import{j as s}from"./vendor-react-64fcanlc.js";import{I as e,cw as a,N as l,T as c}from"./index-DFPUSiWe.js";function r(a){return s.jsx(e,{...a,children:s.jsx("path",{fill:"currentColor",d:"M7.864 15.734c-.222 0-.433-.098-.576-.27l-3.747-4.497c-.266-.319-.222-.792.096-1.057.317-.265.79-.223 1.056.096l3.154 3.786 7.44-9.469c.255-.326.728-.382 1.052-.127.326.256.383.728.127 1.053L8.454 15.447c-.14.179-.352.284-.579.287z"})})}const t=()=>s.jsx(r,{className:"rp-check-mark"}),i=({i:e,cut:a,reserveFlag:r=!1})=>{const t="path"===a?e.label.lastIndexOf("/")+1:0;return s.jsxs("span",{className:"rp-il",children:[(e.flag||r&&void 0!==e.flag)&&s.jsx("span",{className:"rp-node-flag","data-flag":e.flag,"aria-hidden":"true"}),e.icon&&s.jsx("span",{className:"ic",children:e.icon}),e.nodeName?s.jsx(l,{name:e.label,cut:"start"===a?a:void 0}):t?s.jsxs(c,{className:"rp-path",text:e.label,children:[s.jsx("span",{className:"rp-truncate rp-truncate-start",children:s.jsx("bdi",{children:e.label.slice(0,t)})}),s.jsx("bdi",{children:e.label.slice(t)})]}):s.jsx(c,{cut:"start"===a?a:void 0,tooltipText:e.label,children:e.label})]})},n=({i:e,children:l})=>s.jsxs("span",{className:"rp-item-text",children:[s.jsx(a,{slot:"label",elementType:"span",children:s.jsx(i,{i:e,reserveFlag:!0})}),l??(e.desc&&s.jsx(a,{slot:"description",className:e.aside?"desc aside":"desc",children:e.desc}))]});export{r as C,i as I,t as a,n as b};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as s}from"./vendor-react-64fcanlc.js";import{I as r,b9 as e}from"./index-tt2n9Zk_.js";function o({className:o,...t}){return s.jsx(r,{width:10,height:10,viewBox:"0 0 12 12",className:e("rp-link-out",o),...t,children:s.jsx("path",{fill:"currentColor",d:"m10.08887,1h-5.51074c-.50293,0-.91113.4082-.91113.91113s.4082.91113.91113.91113h3.31055L1.35547,9.35547c-.35645.35645-.35645.93262,0,1.28906.17773.17773.41113.2666.64453.2666s.4668-.08887.64453-.2666l6.5332-6.5332v3.31055c0,.50293.4082.91113.91113.91113s.91113-.4082.91113-.91113V1.91113c0-.50293-.4082-.91113-.91113-.91113Z"})})}export{o as L};
|
||||
import{j as s}from"./vendor-react-64fcanlc.js";import{I as r,b9 as e}from"./index-DFPUSiWe.js";function o({className:o,...t}){return s.jsx(r,{width:10,height:10,viewBox:"0 0 12 12",className:e("rp-link-out",o),...t,children:s.jsx("path",{fill:"currentColor",d:"m10.08887,1h-5.51074c-.50293,0-.91113.4082-.91113.91113s.4082.91113.91113.91113h3.31055L1.35547,9.35547c-.35645.35645-.35645.93262,0,1.28906.17773.17773.41113.2666.64453.2666s.4668-.08887.64453-.2666l6.5332-6.5332v3.31055c0,.50293.4082.91113.91113.91113s.91113-.4082.91113-.91113V1.91113c0-.50293-.4082-.91113-.91113-.91113Z"})})}export{o as L};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,j as n}from"./vendor-react-64fcanlc.js";import{u as t,an as r,bB as s,bC as o,aM as a,bD as i,aV as l,bE as c,bF as u,bG as d,bH as p,c as m,h as g,C as f,b8 as h,E as x,bI as w,bJ as k,bm as j,bK as y,B as b}from"./index-tt2n9Zk_.js";import{D as v,s as T,d as S,a as E,o as N}from"./auth-CnQmki5R.js";import{L as C}from"./LinkOut-XZA33RqA.js";import{L,P as D,S as _}from"./AppearanceControls-D6ckn4zJ.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-EZM3RrYN.js";const q=/^[A-Za-z0-9_.-]{1,64}$/;async function A(e,n){try{return T(await S(e,n))}catch(t){if(!function(e){return e instanceof SyntaxError||e instanceof a&&(404===e.status||401===e.status&&(!e.code||"authentication_required"===e.code))}(t))throw t;return t instanceof a&&404===t.status?await E(e,n)?"token":"no-api":"token"}}function I(e,n,t){try{const{profiles:r,activeId:s}=u(),o=function(e,n,t,r){return e.some(e=>e.id===n&&p(e.api)===p(t))?e.map(e=>e.id===n?{...e,token:r.trim()}:e):null}(r,e,n,t);if(!o)return"login.stale";d({profiles:o,activeId:s})}catch{return"settings.saveError"}return null}async function P(e,n,t,r){let s;try{s=await N(n,t,r)}catch(o){return function(e,n){if(!(e instanceof a))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&&"setup"===n)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}(o,t)??{error:o}}try{c(e,n,s.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 R=e=>"string"!=typeof e&&"login.rateLimited"===e.key;function F(n,a,c,u,d){const p=t(),m=r(),[g]=e.useState(()=>s(n,a)),[f,h]=e.useState(null),x=d?"no-api":f,[w,k]=e.useState({attempt:0,error:null});e.useEffect(()=>{if(d)return;const e=new AbortController;return A(a,e.signal).then(e=>h(e),n=>{e.signal.aborted||k(e=>({...e,error:n instanceof Error?n:new Error(String(n))}))}),()=>e.abort()},[a,w.attempt,d]);const[j,y]=e.useState(""),b=i(a),[T,S]=e.useState(b?v.username:""),[E,N]=e.useState(b?v.password:""),[C,L]=e.useState(""),[D,_]=e.useState(!1),[F,U]=e.useState(!1),[M,B]=e.useState({}),[K,O]=e.useState(null),[z,G]=e.useState(0),[J,V]=e.useState(0),[Z,$]=e.useState(Date.now);e.useEffect(()=>{if(J<=Z)return;const e=setTimeout(()=>$(Date.now()),(J-Z)%1e3||1e3);return()=>clearTimeout(e)},[J,Z]);const Q=function(e,n){return Math.max(0,Math.ceil((e-n)/1e3))}(J,Z),W=(e,n)=>t=>{n(t),M[e]&&B(({[e]:n,...t})=>t)},X=async e=>{const t=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,T,E,C);if(B(t),Object.keys(t).length)return;U(!0);const r=await P(n,a,e,{username:T,password:E});if(r)if(U(!1),"error"in r)O(p("login.failed",{error:l(r.error,p)}));else{if(r.wait){const e=Date.now();$(e),V(e+1e3*r.wait)}r.switchTo&&(h(r.switchTo),L("")),O(r)}else location.reload()},Y="setup"===x||"login"===x,ee=e=>M[e]?p(M[e]):void 0;return{kind:x,discoveryError:w.error,retryDiscovery:()=>k(e=>({attempt:e.attempt+1,error:null})),title:p("no-api"===x?"login.noApiTitle":"setup"===x?"login.setupTitle":"token"===x?"login.title":"login.passwordTitle"),note:"no-api"===x?p("login.noApiNote"):p("setup"===x?"login.setupNote":"login"===x?"login.connectedTo":"login.note",{backend:c}),demoNote:b&&"login"===x?p("login.demoNote",v):null,alert:H({kind:x,failure:K&&!Q&&R(K)?null:K,attempt:z,ended:g,rejected:u},p),busy:F,token:j,setToken:y,username:T,setUsername:W("username",S),usernameError:ee("username"),password:E,setPassword:W("password",N),passwordError:ee("password"),confirm:C,setConfirm:W("confirm",L),confirmError:ee("confirm"),submit:()=>{F||Q||null===x||"no-api"===x||(O(null),G(e=>e+1),Y?X(x):(()=>{if(!j.trim())return;const e=I(n,a,j);e?O({key:e}):location.reload()})())},canSubmit:null!==x&&"no-api"!==x&&!Q&&(Y||!!j.trim()),submitText:Q?p("login.retryIn",{n:Q}):p("setup"===x?"login.create":"login"===x?"login.signIn":"login.submit"),secretType:D?"text":"password",toggle:()=>_(e=>!e),toggleText:p(Y?D?"login.hidePassword":"login.showPassword":D?"settings.hideToken":"settings.showToken"),guideHref:o(m),requirementsHref:o(m,"no-native-api")}}function U({profileId:e,api:r,backend:s,rejected:o,missingApi:a,lang:i,pickLang:l,dark:c,themeLine truncated
|
||||
import{r as e,j as n}from"./vendor-react-64fcanlc.js";import{u as t,an as r,bB as s,bC as o,aM as a,bD as i,aV as l,bE as c,bF as u,bG as d,bH as p,c as m,h as g,C as f,b8 as h,E as x,bI as w,bJ as k,bm as j,bK as y,B as b}from"./index-DFPUSiWe.js";import{D as v,s as T,d as S,a as E,o as N}from"./auth-Br_GGGEt.js";import{L as C}from"./LinkOut-B50sd8cz.js";import{L,P as D,S as _}from"./AppearanceControls-Bpq6OQjk.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-u3CUc_6I.js";const q=/^[A-Za-z0-9_.-]{1,64}$/;async function A(e,n){try{return T(await S(e,n))}catch(t){if(!function(e){return e instanceof SyntaxError||e instanceof a&&(404===e.status||401===e.status&&(!e.code||"authentication_required"===e.code))}(t))throw t;return t instanceof a&&404===t.status?await E(e,n)?"token":"no-api":"token"}}function I(e,n,t){try{const{profiles:r,activeId:s}=u(),o=function(e,n,t,r){return e.some(e=>e.id===n&&p(e.api)===p(t))?e.map(e=>e.id===n?{...e,token:r.trim()}:e):null}(r,e,n,t);if(!o)return"login.stale";d({profiles:o,activeId:s})}catch{return"settings.saveError"}return null}async function P(e,n,t,r){let s;try{s=await N(n,t,r)}catch(o){return function(e,n){if(!(e instanceof a))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&&"setup"===n)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}(o,t)??{error:o}}try{c(e,n,s.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 R=e=>"string"!=typeof e&&"login.rateLimited"===e.key;function F(n,a,c,u,d){const p=t(),m=r(),[g]=e.useState(()=>s(n,a)),[f,h]=e.useState(null),x=d?"no-api":f,[w,k]=e.useState({attempt:0,error:null});e.useEffect(()=>{if(d)return;const e=new AbortController;return A(a,e.signal).then(e=>h(e),n=>{e.signal.aborted||k(e=>({...e,error:n instanceof Error?n:new Error(String(n))}))}),()=>e.abort()},[a,w.attempt,d]);const[j,y]=e.useState(""),b=i(a),[T,S]=e.useState(b?v.username:""),[E,N]=e.useState(b?v.password:""),[C,L]=e.useState(""),[D,_]=e.useState(!1),[F,M]=e.useState(!1),[U,B]=e.useState({}),[O,z]=e.useState(null),[G,J]=e.useState(0),[K,V]=e.useState(0),[Z,$]=e.useState(Date.now);e.useEffect(()=>{if(K<=Z)return;const e=setTimeout(()=>$(Date.now()),(K-Z)%1e3||1e3);return()=>clearTimeout(e)},[K,Z]);const Q=function(e,n){return Math.max(0,Math.ceil((e-n)/1e3))}(K,Z),W=(e,n)=>t=>{n(t),U[e]&&B(({[e]:n,...t})=>t)},X=async e=>{const t=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,T,E,C);if(B(t),Object.keys(t).length)return;M(!0);const r=await P(n,a,e,{username:T,password:E});if(r)if(M(!1),"error"in r)z(p("login.failed",{error:l(r.error,p)}));else{if(r.wait){const e=Date.now();$(e),V(e+1e3*r.wait)}r.switchTo&&(h(r.switchTo),L("")),z(r)}else location.reload()},Y="setup"===x||"login"===x,ee=e=>U[e]?p(U[e]):void 0;return{kind:x,discoveryError:w.error,retryDiscovery:()=>k(e=>({attempt:e.attempt+1,error:null})),title:p("no-api"===x?"login.noApiTitle":"setup"===x?"login.setupTitle":"token"===x?"login.title":"login.passwordTitle"),note:"no-api"===x?p("login.noApiNote"):p("setup"===x?"login.setupNote":"login"===x?"login.connectedTo":"login.note",{backend:c}),demoNote:b&&"login"===x?p("login.demoNote",v):null,alert:H({kind:x,failure:O&&!Q&&R(O)?null:O,attempt:G,ended:g,rejected:u},p),busy:F,token:j,setToken:y,username:T,setUsername:W("username",S),usernameError:ee("username"),password:E,setPassword:W("password",N),passwordError:ee("password"),confirm:C,setConfirm:W("confirm",L),confirmError:ee("confirm"),submit:()=>{F||Q||null===x||"no-api"===x||(z(null),J(e=>e+1),Y?X(x):(()=>{if(!j.trim())return;const e=I(n,a,j);e?z({key:e}):location.reload()})())},canSubmit:null!==x&&"no-api"!==x&&!Q&&(Y||!!j.trim()),submitText:Q?p("login.retryIn",{n:Q}):p("setup"===x?"login.create":"login"===x?"login.signIn":"login.submit"),secretType:D?"text":"password",toggle:()=>_(e=>!e),toggleText:p(Y?D?"login.hidePassword":"login.showPassword":D?"settings.hideToken":"settings.showToken"),guideHref:o(m),requirementsHref:o(m,"no-native-api")}}function M({profileId:e,api:r,backend:s,rejected:o,missingApi:a,lang:i,pickLang:l,dark:c,themeLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{bM as r,u as s,ao as l,an as a,dD as o,bS as n,B as i,ck as c,dE as d,C as g,dF as m,V as u,a3 as p,r as h,y as f,cg as x,bX as v,T as j,m as b,ce as w,bK as y,cm as M,E as N}from"./index-tt2n9Zk_.js";import{aK as C,a as k,F as T,aL as S,D as $}from"./activity-St9WlHNk.js";import{C as O}from"./ItemText-EZM3RrYN.js";import{T as A,U as R,L,K as W,p as D,A as F}from"./logs-DlBF9FTI.js";import{D as P}from"./Table-CNIdPyPm.js";import{d as E,e as B}from"./files-Dt8K7QfP.js";import{r as H}from"./recorder-BHyqDNp5.js";import{u as K,C as U}from"./Copy-8L85FkPb.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-CWX2Nx2b.js";import"./AppearanceControls-D6ckn4zJ.js";import"./Select-DO5D4JEL.js";import"./useGridSelectionCheckbox-EoqO9l1F.js";import"./Virtualizer-Bm8y6eIs.js";const _=new WeakMap;function q(e){let t=_.get(e);return void 0===t&&_.set(e,t=Date.parse(e.ts)),t}const J=[...r].reverse();function V({records:m,offered:u,minimum:p,setMinimum:h,waiting:f}){const x=s(),v=l[a()],j=k(),b=e.useMemo(()=>function(e,t,r,s=24){const l=r?J.indexOf(r):J.length-1,a=J.filter((e,r)=>t.includes(e)&&r<=l),o=e.map(q).filter(Number.isFinite);if(!o.length)return{rows:a.map(e=>({level:e,counts:[]})),buckets:[],width:0,busiest:null};const n=Math.min(...o),i=Math.max(...o),c=C(n,i,s),d=c.length>1?c[1]-c[0]:Math.max(i-n,6e4),g=new Map(a.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=q(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),h=u.reduce((e,t)=>e+t,0),f=p(h?u:m);return{rows:a.map(e=>({level:e,counts:g.get(e)})),buckets:c,width:d,busiest:{start:c[f],count:h?u[f]:m[f],errors:h}}}(m,u,p),[m,u,p]),w=e.useMemo(()=>o(v),[v]),y=e.useCallback(e=>`${w.format(e)}–${w.format(e+b.width)}`,[w,b.width]),M=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===p?"current":void 0,label:x(e===p?"log.chart.current":"log.chart.minimum",{level:r}),onPress:()=>h(e),children:[e===p&&t.jsx(O,{}),r]})}]});return new Map(e)},[p,h,x]),N=e.useMemo(()=>{const e={error:j.negative,warn:j.notice,info:j.info,debug:j.subtle,trace:j.muted},t=b.buckets.map(y);return{columns:b.buckets.map(e=>w.format(e)),rows:b.rows.map(r=>{const{text:s,label:l}=M.get(r.level);return{id:r.level,color:e[r.level],label:l,counts:r.counts,titles:r.counts.map((e,r)=>x("log.chart.cell",{time:t[r],level:s,n:e}))}})}},[b,y,w,M,j,x]);if(!m.length)return f?t.jsx(z,{heads:M,levels:b.rows.map(e=>e.level),time:w.format(0)}):null;const $=b.busiest,A=$?$.errors?[{label:x("log.chart.errors"),value:x("log.chart.count",{n:$.errors}),icon:t.jsx(c,{}),tone:"negative"},{label:x("log.chart.peakErrors"),icon:t.jsx(d,{}),tint:"c1",value:y($.start),caption:x("log.chart.count",{n:$.count})}]:[{label:x("log.chart.errors"),value:x("log.chart.count",{n:0}),icon:t.jsx(c,{}),tint:"c5"},{label:x("log.chart.peak"),icon:t.jsx(d,{}),tint:"c1",value:y($.start),caption:x("log.chart.count",{n:$.count})}]:[];return t.jsxs("div",{className:"rp-chart-page",children:[t.jsx(T,{facts:A}),t.jsx(g,{title:x("log.chart.title"),note:x("log.chart.sample",{n:m.length}),children:t.jsx(S,{label:x("log.chart.title"),columns:N.columns,rows:N.rows})})]})}function z({heads:e,levels:r,time:l}){const a=s(),o=[{label:a("log.chart.errors"),value:a("log.chart.count",{n:0}),icon:t.jsx(c,{}),tint:"c5"},{label:a("log.chart.peak"),icon:t.jsx(d,{}),tint:"c1",value:`${l}–${l}`,caption:a("log.chart.count",{n:0})}],n=r.map(t=>({id:t,color:"transparent",label:e.get(t).label,counts:[0],titles:[""]}));return t.jsxs("div",{className:"rp-chart-page",inert:!0,"aria-hidden":"true",children:[t.jsxs("div",{className:"rp-chart-hold",children:[t.jsx(T,{facts:o}),t.jsx(m,{})]}),t.jsxs("div",{className:"rp-chart-hold",children:[t.jsx(g,{title:a("log.chart.title"),note:a("log.chart.sample",{n:0}),children:t.jsx(S,{label:a("log.chart.title"),columns:[l],rows:n})}),t.jsx(m,{})]})]})}const G={trace:"muted",debug:"neutral",info:"info",warn:"warn",error:"err"},I=new WeakMap;function Q(e,t,s,l,a,o=new Set,i){return{rows:e.flatMap(e=>{const t=function(e,t,r){const s=I.get(e);if(s&&s.locale===t)return s.row;const l={id:e.id,timestamp:p(e.ts,t),iso:e.ts,levelText:u(n,e.level,r),tone:G[e.level],target:e.target,gap:!1,record:e,message:e.message+(e.fields?" "+Object.entries(e.fields).map(([e,t])=>`${e}=${"string"==typeof t?t:JSON.stringify(t)}`).join(" "):"")};return I.set(e,{locale:t,row:l}),l}(e,l,a);return o.has(e)?[{...t,id:`gap ${e.id}`,timestamp:"",iso:"",levelText:"",target:"",gap:!0,message:a("log.gap")},t]:[t]}),levels:t.map(e=>{return{id:e,label:(t=e,i&&r.indexOf(t)<r.indexOf(i)?a("log.levelNotRecorded",{level:u(n,e,a)}):u(n,e,a))};var t}),recordedText:i?a("log.recorded",{level:u(n,i,a)}):null,exportBase:`${s||"engine"}Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{bM as r,u as s,ao as l,an as a,dD as o,bS as n,B as i,ck as c,dE as d,C as g,dF as m,V as u,a3 as p,r as h,y as f,cg as x,bX as v,T as j,m as b,ce as w,bK as y,cm as M,E as N}from"./index-DFPUSiWe.js";import{aM as C,a as k,F as T,aN as $,D as S}from"./activity-pUN0wcVd.js";import{C as R}from"./ItemText-u3CUc_6I.js";import{T as A,U as O,L as W,K as D,p as F,A as L}from"./logs-lI5kXcWp.js";import{D as P}from"./Table-6xnX6eUx.js";import{d as E,e as B}from"./files-Dt8K7QfP.js";import{r as H}from"./recorder-BHyqDNp5.js";import{u as U,C as V}from"./Copy-DRn0jPgo.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-HzIJdCpg.js";import"./AppearanceControls-Bpq6OQjk.js";import"./Select-BFkb6iie.js";import"./useGridSelectionCheckbox-wMhI-U-R.js";import"./Virtualizer-BH6NJSXn.js";import"./Checkbox-xU-Ds7Hn.js";const _=new WeakMap;function q(e){let t=_.get(e);return void 0===t&&_.set(e,t=Date.parse(e.ts)),t}const J=[...r].reverse();function K({records:m,offered:u,minimum:p,setMinimum:h,waiting:f}){const x=s(),v=l[a()],j=k(),b=e.useMemo(()=>function(e,t,r,s=24){const l=r?J.indexOf(r):J.length-1,a=J.filter((e,r)=>t.includes(e)&&r<=l),o=e.map(q).filter(Number.isFinite);if(!o.length)return{rows:a.map(e=>({level:e,counts:[]})),buckets:[],width:0,busiest:null};const n=Math.min(...o),i=Math.max(...o),c=C(n,i,s),d=c.length>1?c[1]-c[0]:Math.max(i-n,6e4),g=new Map(a.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=q(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),h=u.reduce((e,t)=>e+t,0),f=p(h?u:m);return{rows:a.map(e=>({level:e,counts:g.get(e)})),buckets:c,width:d,busiest:{start:c[f],count:h?u[f]:m[f],errors:h}}}(m,u,p),[m,u,p]),w=e.useMemo(()=>o(v),[v]),y=e.useCallback(e=>`${w.format(e)}–${w.format(e+b.width)}`,[w,b.width]),M=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===p?"current":void 0,label:x(e===p?"log.chart.current":"log.chart.minimum",{level:r}),onPress:()=>h(e),children:[e===p&&t.jsx(R,{}),r]})}]});return new Map(e)},[p,h,x]),N=e.useMemo(()=>{const e={error:j.negative,warn:j.notice,info:j.info,debug:j.subtle,trace:j.muted},t=b.buckets.map(y);return{columns:b.buckets.map(e=>w.format(e)),rows:b.rows.map(r=>{const{text:s,label:l}=M.get(r.level);return{id:r.level,color:e[r.level],label:l,counts:r.counts,titles:r.counts.map((e,r)=>x("log.chart.cell",{time:t[r],level:s,n:e}))}})}},[b,y,w,M,j,x]);if(!m.length)return f?t.jsx(z,{heads:M,levels:b.rows.map(e=>e.level),time:w.format(0)}):null;const S=b.busiest,A=S?S.errors?[{label:x("log.chart.errors"),value:x("log.chart.count",{n:S.errors}),icon:t.jsx(c,{}),tone:"negative"},{label:x("log.chart.peakErrors"),icon:t.jsx(d,{}),tint:"c1",value:y(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(c,{}),tint:"c5"},{label:x("log.chart.peak"),icon:t.jsx(d,{}),tint:"c1",value:y(S.start),caption:x("log.chart.count",{n:S.count})}]:[];return t.jsxs("div",{className:"rp-chart-page",children:[t.jsx(T,{facts:A}),t.jsx(g,{title:x("log.chart.title"),note:x("log.chart.sample",{n:m.length}),children:t.jsx($,{label:x("log.chart.title"),columns:N.columns,rows:N.rows})})]})}function z({heads:e,levels:r,time:l}){const a=s(),o=[{label:a("log.chart.errors"),value:a("log.chart.count",{n:0}),icon:t.jsx(c,{}),tint:"c5"},{label:a("log.chart.peak"),icon:t.jsx(d,{}),tint:"c1",value:`${l}–${l}`,caption:a("log.chart.count",{n:0})}],n=r.map(t=>({id:t,color:"transparent",label:e.get(t).label,counts:[0],titles:[""]}));return t.jsxs("div",{className:"rp-chart-page",inert:!0,"aria-hidden":"true",children:[t.jsxs("div",{className:"rp-chart-hold",children:[t.jsx(T,{facts:o}),t.jsx(m,{})]}),t.jsxs("div",{className:"rp-chart-hold",children:[t.jsx(g,{title:a("log.chart.title"),note:a("log.chart.sample",{n:0}),children:t.jsx($,{label:a("log.chart.title"),columns:[l],rows:n})}),t.jsx(m,{})]})]})}const G={trace:"muted",debug:"neutral",info:"info",warn:"warn",error:"err"},I=new WeakMap;function X(e,t,s,l,a,o=new Set,i){return{rows:e.flatMap(e=>{const t=function(e,t,r){const s=I.get(e);if(s&&s.locale===t)return s.row;const l={id:e.id,timestamp:p(e.ts,t),iso:e.ts,levelText:u(n,e.level,r),tone:G[e.level],target:e.target,gap:!1,record:e,message:e.message+(e.fields?" "+Object.entries(e.fields).map(([e,t])=>`${e}=${"string"==typeof t?t:JSON.stringify(t)}`).join(" "):"")};return I.set(e,{locale:t,row:l}),l}(e,l,a);return o.has(e)?[{...t,id:`gap ${e.id}`,timestamp:"",iso:"",levelText:"",target:"",gap:!0,message:a("log.gap")},t]:[t]}),levels:t.map(e=>{return{id:e,label:(t=e,i&&r.indexOf(t)<r.indexOf(i)?a("log.levelNotRecorded",{level:u(n,e,a)}):u(n,e,a))};var t}),recordedText:i?a("log.recorded",{level:u(n,i,Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{u as n,an as r,c as s,bC as t}from"./index-tt2n9Zk_.js";import{d as a}from"./limitHint-Da336AR0.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-CWX2Nx2b.js";function i({reason:i}){const o=n(),c=r(),l=a("mode",i,o,c);return l?e.jsxs(e.Fragment,{children:[e.jsx("p",{children:l.text}),l.setting&&e.jsx("p",{children:l.setting}),e.jsx(s,{external:!0,appearance:"link",href:l.link.href,children:l.link.text})]}):e.jsxs(e.Fragment,{children:[e.jsx("p",{children:o("act.modeReadOnlyReason")}),e.jsx("p",{children:o("act.modeReadOnlyAction")}),e.jsx(s,{external:!0,appearance:"link",href:t(c,"read-only"),children:o("act.readOnlyDocs")})]})}export{i as ModeReadOnlyHint};
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{u as n,an as r,c as s,bC as t}from"./index-DFPUSiWe.js";import{d as a}from"./limitHint-drqGf1xh.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-HzIJdCpg.js";function i({reason:i}){const o=n(),c=r(),l=a("mode",i,o,c);return l?e.jsxs(e.Fragment,{children:[e.jsx("p",{children:l.text}),l.setting&&e.jsx("p",{children:l.setting}),e.jsx(s,{external:!0,appearance:"link",href:l.link.href,children:l.link.text})]}):e.jsxs(e.Fragment,{children:[e.jsx("p",{children:o("act.modeReadOnlyReason")}),e.jsx("p",{children:o("act.modeReadOnlyAction")}),e.jsx(s,{external:!0,appearance:"link",href:t(c,"read-only"),children:o("act.readOnlyDocs")})]})}export{i as ModeReadOnlyHint};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{N as r,T as a}from"./index-tt2n9Zk_.js";import{L as n}from"./Tag-D7lhqmBG.js";function s({label:r,href:a}){return a?e.jsx(n,{href:a,children:r}):r}function o({row:n}){const s=n.path??void 0;return n.nodeName?e.jsx(r,{name:n.node,className:"rp-chain",text:s}):e.jsx(a,{className:"rp-chain",text:s,children:n.node})}export{o as N,s as O};
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{N as r,T as a}from"./index-DFPUSiWe.js";import{L as n}from"./Tag-BZqiYh1Z.js";function s({label:r,href:a}){return a?e.jsx(n,{href:a,children:r}):r}function o({row:n}){const s=n.path??void 0;return n.nodeName?e.jsx(r,{name:n.node,className:"rp-chain",text:s}):e.jsx(a,{className:"rp-chain",text:s,children:n.node})}export{o as N,s as O};
|
||||
@@ -0,0 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./XhttpOptions-BHPc7rZI.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-DFPUSiWe.js","./index-BnzLYrTn.css","./logs-lI5kXcWp.js","./Select-BFkb6iie.js","./ItemText-u3CUc_6I.js","./AppearanceControls-Bpq6OQjk.js","./nodes-HzIJdCpg.js","./Tabs-HxpCyCLR.js","./useGridSelectionCheckbox-wMhI-U-R.js","./Table-6xnX6eUx.js","./Virtualizer-BH6NJSXn.js","./Checkbox-xU-Ds7Hn.js","./activity-pUN0wcVd.js","./activity-CKk6X7wg.css","./TimeCell-CRwMWdtu.js","./CardView-CwlxcqMf.js","./GridList-BuXKU7Uk.js","./ProbeOptionsDialog-BDgL7_BI.js","./Tag-BZqiYh1Z.js","./FlagPicker-DZPvPF1E.js","./SearchSelect-CsXd0DEh.js","./SearchList-C88Y6c53.js","./outbounds-BMHzxQr8.js","./probe-Db_cbYvO.js","./nav-CfbmlNWr.js","./SubscriptionFields-CWqR97pB.js","./NumberField-kCp6sey7.js"])))=>i.map(i=>d[i]);
|
||||
import{dj as e,dk as n,df as s,dl as a,dm as r,cw as o,dn as t,ck as i,ao as l,an as d,r as c,t as u,ch as m,ca as p,u as h,E as g,ah as v,aa as b,cj as f,C as y,S as x,b1 as j,c as k,N as w,B as S,T as N,cl as P,ce as M,I as A,b5 as C,b6 as R,as as L,dp as T,aF as O,dq as _,dr as G,a as F,b as E,bK as D,D as I,aL as q,x as B,cd as $,c7 as H,aU as z,h as J,aV as U,Z as Q,cH as W,cI as K,y as V,w as X,ds as Z,ac as Y,cb as ee,c9 as ne,aO as se,d as ae,aM as re,cJ as oe,aN as te,ay as ie,dt as le,b7 as de,cE as ce,bJ as ue,cm as me,di as pe,m as he,_ as ge}from"./index-DFPUSiWe.js";import{j as ve,r as be}from"./vendor-react-64fcanlc.js";import{T as fe}from"./Tabs-HxpCyCLR.js";import{D as ye,c as xe}from"./Table-6xnX6eUx.js";import{g as je,c as ke,f as we,S as Se,K as Ne,n as Pe,B as Me,L as Ae,A as Ce,p as Re,E as Le,w as Te,u as Oe,F as _e,G as Ge,x as Fe}from"./logs-lI5kXcWp.js";import{ae as Ee,a0 as De,af as Ie,ag as qe,C as Be,F as $e,ah as He,ai as ze,aj as Je,ak as Ue,n as Qe,al as We,am as Ke,an as Ve,ao as Xe,ap as Ze,aq as Ye,ar as en,as as nn,at as sn,au as an,T as rn,av as on,aw as tn,ax as ln,ay as dn,az as cn,aA as un,aB as mn,aC as pn,aD as hn,aE as gn,aF as vn,aG as bn,aH as fn,P as yn}from"./activity-pUN0wcVd.js";import{T as xn}from"./TimeCell-CRwMWdtu.js";import{C as jn,a as kn}from"./CardView-CwlxcqMf.js";import{P as wn}from"./ProbeOptionsDialog-BDgL7_BI.js";import{C as Sn,l as Nn}from"./AppearanceControls-Bpq6OQjk.js";import{F as Pn,T as Mn,L as An}from"./Tag-BZqiYh1Z.js";import{FlagField as Cn}from"./FlagPicker-DZPvPF1E.js";import{S as Rn}from"./SearchSelect-CsXd0DEh.js";import{u as Ln}from"./outbounds-BMHzxQr8.js";import{ad as Tn,B as On,ae as _n,af as Gn,C as Fn,ag as En,ah as Dn,q as In,e as qn,N as Bn,r as $n,x as Hn,o as zn,v as Jn,S as Un,ai as Qn}from"./nodes-HzIJdCpg.js";import{$ as Wn}from"./SearchList-C88Y6c53.js";import{b as Kn,p as Vn}from"./probe-Db_cbYvO.js";import{n as Xn}from"./nav-CfbmlNWr.js";function Zn(l){const{label:d,description:c,error:u,placeholder:m,necessityIndicator:p,...h}=e(l);return ve.jsxs(n,{...h,className:"rp-field",isInvalid:!!u,validationBehavior:"aria",children:[ve.jsxs(s,{className:"rp-label",children:[d,ve.jsx(a,{isRequired:h.isRequired,necessityIndicator:p})]}),ve.jsx(r,{className:"rp-input rp-textarea",rows:3,placeholder:m}),c&&ve.jsx(o,{slot:"description",className:"rp-label",children:c}),u&&ve.jsxs(t,{className:"rp-field-error",children:[ve.jsx(i,{}),u]})]})}function Yn(e,n){return e.split("{names}").map((e,s)=>ve.jsxs(be.Fragment,{children:[s>0&&n,e]},s))}function es(e,n,s,a){const r=j(n,["",""]),o=e.slice(0,6).map((e,n)=>ve.jsxs(be.Fragment,{children:[n>0&&r,ve.jsx(k,{appearance:"link",layout:"inline",href:a.get(e.id)??Ue([e.id]),children:ve.jsx(w,{name:e.name})})]},e.id));if(e.length<=6)return o;const t=ve.jsx(k,{appearance:"link",layout:"inline",href:Ue(e.map(e=>e.id)),children:s("nodes.latency.more",{n:e.length-6})});return s("nodes.latency.andMore",{names:"{names}",more:"{more}"}).split(/(\{names\}|\{more\})/).map((e,n)=>ve.jsx(be.Fragment,{children:"{names}"===e?o:"{more}"===e?t:e},n))}const ns=e=>[{label:e("nodes.latency.lowest"),icon:ve.jsx(f,{}),tint:"c2",value:"",caption:" "},{label:e("nodes.latency.highest"),icon:ve.jsx(Be,{}),tint:"c4",value:"",caption:" "},{label:e("ui.unavailable"),icon:ve.jsx(i,{}),tint:"c5",value:""}];function ss(){const e=h(),n=d(),{nodes:s,by:a,setBy:r,view:o,hrefs:t}=function(){const e=l[d()],n=c().data?.resources,s=je(u(n,"nodes",{whileLoading:!0})),a=ke(u(n,"groups",{whileLoading:!1})),r=we(u(n,"providers",{whileLoading:!0})),[o,t]=be.useState("group"),i=m(),h=p(s.data,i),g=p(a.data,i),v=p(r.data,i),b=be.useMemo(()=>Ee(h??[],g,o,e),[h,g,o,e]),f=be.useMemo(()=>new Map((h??[]).map(e=>[e.id,De(e,v?.providers??[],!0)])),[h,v]);return{nodes:{...s,data:h},by:o,setBy:t,view:b,hrefs:f}}();if(s.error&&!s.data)return ve.jsx(g,{error:s.error,onRetry:s.refetch});const j=!s.data;if(s.data&&!s.data.length)return ve.jsx(v,{children:e("ui.empty")});const k=Ie(o),{measured:w,down:S}=qe(o),N=w[0],P=w.at(-1),M=N&&P?[{label:e("nodes.latency.lowest"),icon:ve.jsx(f,{}),tint:"c2",value:N.name,nodeName:!0,valueRole:"name",caption:b(N.latest,e)},{label:e("nodes.latency.highest"),icon:ve.jsx(Be,{}),tint:"c4",value:P.name,nodeName:!0,valueRole:"name",caption:b(P.latest,e)},{label:e("ui.unavailable"),value:e("nodes.latency.count",{n:S}),icon:ve.jsx(i,{}),tint:"c5",tone:S?"negative":void 0}]:[],A=s=>{const a=s.filter(e=>"unavailable"===e.state),r=s.filter(e=>"unmeasured"===e.state);return[...a.length?[Yn(e("nodes.latency.unavailableList",{n:a.length,names:"{names}"}),es(a,n,e,t))]:[],...r.length?[Yn(e("nodes.latency.unmeasuredList",{n:r.length,names:"{names}"}),es(r,n,e,t))]:[]]};return ve.jsxs("div",{className:"rp-chart-page",children:[ve.jsx($e,{facts:j?ns(e):M,loading:j}),ve.jsx(y,{title:e("ui.nodeLatency"),note:s.data&&e("nodes.latency.sample",{n:s.data.length}),aside:ve.jsx(Se,{label:e("nodes.latency.by"),value:a,onChange:e=>r(e),itLine truncated
|
||||
@@ -1,2 +0,0 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./XhttpOptions-DCivIoC6.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-tt2n9Zk_.js","./index-kgf32cc4.css","./logs-DlBF9FTI.js","./Select-DO5D4JEL.js","./ItemText-EZM3RrYN.js","./AppearanceControls-D6ckn4zJ.js","./nodes-CWX2Nx2b.js","./Tabs-DWzcwxse.js","./useGridSelectionCheckbox-EoqO9l1F.js","./Table-CNIdPyPm.js","./Virtualizer-Bm8y6eIs.js","./activity-St9WlHNk.js","./activity-CKk6X7wg.css","./TimeCell-CIxTaFhT.js","./CardView-DB4CLM1X.js","./GridList-2xKNlEZe.js","./ProbeOptionsDialog-CVvbW9SQ.js","./Tag-D7lhqmBG.js","./FlagPicker-DWPk_M3h.js","./SearchSelect-OEHKvvM7.js","./SearchList-D3Aknep5.js","./outbounds-DLdbuVA3.js","./probe-Bc_Ehmu3.js","./nav-BcPQklmW.js","./SubscriptionFields-DlobjG05.js","./NumberField-DT8-IUla.js"])))=>i.map(i=>d[i]);
|
||||
import{dj as e,dk as n,df as a,dl as s,dm as r,cw as o,dn as t,ck as i,ao as l,an as d,r as c,t as u,ch as m,ca as p,u as h,E as g,ah as b,aa as v,cj as f,C as y,S as x,b1 as j,c as k,N as w,B as N,T as S,cl as P,ce as M,I as A,b5 as C,b6 as L,as as R,dp as T,aF as O,dq as G,dr as F,a as _,b as E,bK as I,D,aL as q,x as B,cd as H,c7 as $,aU as J,h as U,aV as Q,Z as W,cH as z,cI as K,y as V,w as X,ds as Z,ac as Y,cb as ee,c9 as ne,aO as ae,d as se,aM as re,cJ as oe,aN as te,ay as ie,dt as le,b7 as de,cE as ce,bJ as ue,cm as me,di as pe,m as he,_ as ge}from"./index-tt2n9Zk_.js";import{j as be,r as ve}from"./vendor-react-64fcanlc.js";import{T as fe}from"./Tabs-DWzcwxse.js";import{D as ye,c as xe}from"./Table-CNIdPyPm.js";import{g as je,c as ke,f as we,S as Ne,K as Se,n as Pe,B as Me,L as Ae,A as Ce,p as Le,E as Re,w as Te,u as Oe,F as Ge,G as Fe,x as _e}from"./logs-DlBF9FTI.js";import{ac as Ee,a0 as Ie,ad as De,ae as qe,C as Be,F as He,af as $e,ag as Je,ah as Ue,ai as Qe,n as We,aj as ze,ak as Ke,al as Ve,am as Xe,an as Ze,ao as Ye,ap as en,aq as nn,ar as an,as as sn,T as rn,at as on,au as tn,av as ln,aw as dn,ax as cn,ay as un,az as mn,aA as pn,aB as hn,aC as gn,aD as bn,aE as vn,aF as fn,P as yn}from"./activity-St9WlHNk.js";import{T as xn}from"./TimeCell-CIxTaFhT.js";import{C as jn,a as kn}from"./CardView-DB4CLM1X.js";import{P as wn}from"./ProbeOptionsDialog-CVvbW9SQ.js";import{C as Nn,l as Sn}from"./AppearanceControls-D6ckn4zJ.js";import{F as Pn,T as Mn,L as An}from"./Tag-D7lhqmBG.js";import{FlagField as Cn}from"./FlagPicker-DWPk_M3h.js";import{S as Ln}from"./SearchSelect-OEHKvvM7.js";import{u as Rn}from"./outbounds-DLdbuVA3.js";import{ab as Tn,B as On,ac as Gn,ad as Fn,C as _n,ae as En,af as In,q as Dn,e as qn,N as Bn,r as Hn,x as $n,o as Jn,v as Un,S as Qn,ag as Wn}from"./nodes-CWX2Nx2b.js";import{$ as zn}from"./SearchList-D3Aknep5.js";import{b as Kn,p as Vn}from"./probe-Bc_Ehmu3.js";import{n as Xn}from"./nav-BcPQklmW.js";function Zn(l){const{label:d,description:c,error:u,placeholder:m,necessityIndicator:p,...h}=e(l);return be.jsxs(n,{...h,className:"rp-field",isInvalid:!!u,validationBehavior:"aria",children:[be.jsxs(a,{className:"rp-label",children:[d,be.jsx(s,{isRequired:h.isRequired,necessityIndicator:p})]}),be.jsx(r,{className:"rp-input rp-textarea",rows:3,placeholder:m}),c&&be.jsx(o,{slot:"description",className:"rp-label",children:c}),u&&be.jsxs(t,{className:"rp-field-error",children:[be.jsx(i,{}),u]})]})}function Yn(e,n){return e.split("{names}").map((e,a)=>be.jsxs(ve.Fragment,{children:[a>0&&n,e]},a))}function ea(e,n,a,s){const r=j(n,["",""]),o=e.slice(0,6).map((e,n)=>be.jsxs(ve.Fragment,{children:[n>0&&r,be.jsx(k,{appearance:"link",layout:"inline",href:s.get(e.id)??Qe([e.id]),children:be.jsx(w,{name:e.name})})]},e.id));if(e.length<=6)return o;const t=be.jsx(k,{appearance:"link",layout:"inline",href:Qe(e.map(e=>e.id)),children:a("nodes.latency.more",{n:e.length-6})});return a("nodes.latency.andMore",{names:"{names}",more:"{more}"}).split(/(\{names\}|\{more\})/).map((e,n)=>be.jsx(ve.Fragment,{children:"{names}"===e?o:"{more}"===e?t:e},n))}const na=e=>[{label:e("nodes.latency.lowest"),icon:be.jsx(f,{}),tint:"c2",value:"",caption:" "},{label:e("nodes.latency.highest"),icon:be.jsx(Be,{}),tint:"c4",value:"",caption:" "},{label:e("ui.unavailable"),icon:be.jsx(i,{}),tint:"c5",value:""}];function aa(){const e=h(),n=d(),{nodes:a,by:s,setBy:r,view:o,hrefs:t}=function(){const e=l[d()],n=c().data?.resources,a=je(u(n,"nodes",{whileLoading:!0})),s=ke(u(n,"groups",{whileLoading:!1})),r=we(u(n,"providers",{whileLoading:!0})),[o,t]=ve.useState("group"),i=m(),h=p(a.data,i),g=p(s.data,i),b=p(r.data,i),v=ve.useMemo(()=>Ee(h??[],g,o,e),[h,g,o,e]),f=ve.useMemo(()=>new Map((h??[]).map(e=>[e.id,Ie(e,b?.providers??[],!0)])),[h,b]);return{nodes:{...a,data:h},by:o,setBy:t,view:v,hrefs:f}}();if(a.error&&!a.data)return be.jsx(g,{error:a.error,onRetry:a.refetch});const j=!a.data;if(a.data&&!a.data.length)return be.jsx(b,{children:e("ui.empty")});const k=De(o),{measured:w,down:N}=qe(o),S=w[0],P=w.at(-1),M=S&&P?[{label:e("nodes.latency.lowest"),icon:be.jsx(f,{}),tint:"c2",value:S.name,nodeName:!0,valueRole:"name",caption:v(S.latest,e)},{label:e("nodes.latency.highest"),icon:be.jsx(Be,{}),tint:"c4",value:P.name,nodeName:!0,valueRole:"name",caption:v(P.latest,e)},{label:e("ui.unavailable"),value:e("nodes.latency.count",{n:N}),icon:be.jsx(i,{}),tint:"c5",tone:N?"negative":void 0}]:[],A=a=>{const s=a.filter(e=>"unavailable"===e.state),r=a.filter(e=>"unmeasured"===e.state);return[...s.length?[Yn(e("nodes.latency.unavailableList",{n:s.length,names:"{names}"}),ea(s,n,e,t))]:[],...r.length?[Yn(e("nodes.latency.unmeasuredList",{n:r.length,names:"{names}"}),ea(r,n,e,t))]:[]]};return be.jsxs("div",{className:"rp-chart-page",children:[be.jsx(He,{facts:j?na(e):M,loading:j}),be.jsx(y,{title:e("ui.nodeLatency"),note:a.data&&e("nodes.latency.sample",{n:a.data.length}),aside:be.jsx(Ne,{label:e("nodes.latency.by"),value:s,onChange:e=>r(e),items:[Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,a as t,$ as i,j as a}from"./vendor-react-64fcanlc.js";import{fZ as s,eH as n,f_ as r,cO as l,cZ as o,f8 as u,es as c,et as d,cV as m,f$ as p,ev as v,f4 as h,cW as f,fM as b,g0 as g,cU as y,g1 as N,eD as S,cP as x,fY as P,cQ as D,g2 as w,eS as E,ex as V,fa as M,g3 as F,c_ as R,c$ as I,d0 as C,d1 as B,d2 as O,bt as T,d3 as j,dc as L,d4 as k,d6 as $,g4 as U,g5 as q,d7 as A,eQ as G,d8 as W,d9 as K,d5 as z,I as H,dj as _,u as Z,cz as Y,df as X,dl as J,g6 as Q,cq as ee,b9 as te,cw as ie,dn as ae,ck as se,g7 as ne}from"./index-tt2n9Zk_.js";const re=new RegExp("^.*\\(.*\\).*$"),le=["latn","arab","hanidec","deva","beng","fullwide"];class oe{constructor(e,t={}){this.locale=e,this.options=t}parse(e){return ce(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,i){return ce(this.locale,this.options,e).isValidPartialNumber(e,t,i)}getNumberingSystem(e){return ce(this.locale,this.options,e).options.numberingSystem}}const ue=new Map;function ce(e,t,i){let a=de(e,t);if(!e.includes("-nu-")&&!a.isValidPartialNumber(i))for(let s of le)if(s!==a.options.numberingSystem){let a=de(e+(e.includes("-u-")?"-nu-":"-u-nu-")+s,t);if(a.isValidPartialNumber(i))return a}return a}function de(e,t){let i=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():""),a=ue.get(i);return a||(a=new me(e,t),ue.set(i,a)),a}class me{constructor(e,t={}){this.locale=e,1!==t.roundingIncrement&&null!=t.roundingIncrement&&(null==t.maximumFractionDigits&&null==t.minimumFractionDigits?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):null==t.maximumFractionDigits?t.maximumFractionDigits=t.minimumFractionDigits:null==t.minimumFractionDigits&&(t.minimumFractionDigits=t.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,i,a){let s=new Intl.NumberFormat(e,{...i,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:!0}),n=s.formatToParts(-10000.111),r=s.formatToParts(10000.111),l=ve.map(e=>s.formatToParts(e)),o=l.map((e,t)=>{let i=e.find(e=>"unit"===e.type);return i&&!e.some(e=>"integer"===e.type||"fraction"===e.type)?{unit:i.value,value:ve[t]}:null}).filter(e=>!!e),u=n.find(e=>"minusSign"===e.type)?.value??"-",c=r.find(e=>"plusSign"===e.type)?.value;c||"exceptZero"!==a?.signDisplay&&"always"!==a?.signDisplay||(c="+");let d=new Intl.NumberFormat(e,{...i,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001),m=d.find(e=>"decimal"===e.type)?.value,p=n.find(e=>"group"===e.type)?.value,v=n.filter(e=>!pe.has(e.type)).map(e=>fe(e.value)),h=l.flatMap(e=>e.filter(e=>!pe.has(e.type)).map(e=>fe(e.value))),f=[...new Set([...v,...h])].sort((e,t)=>t.length-e.length),b=0===f.length?new RegExp("\\p{White_Space}|\\p{Cf}","gu"):new RegExp(`${f.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),g=[...new Intl.NumberFormat(i.locale,{useGrouping:!1}).format(9876543210)].reverse(),y=new Map(g.map((e,t)=>[e,t])),N=new RegExp(`[${g.join("")}]`,"g");return{minusSign:u,plusSign:c,decimal:m,group:p,literals:b,numeral:N,numerals:g,index:e=>String(y.get(e)),noNumeralUnits:o}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}parse(e){let t=this.formatter.resolvedOptions().useGrouping,i=this.sanitize(e);if(!t&&this.symbols.group&&i.includes(this.symbols.group))return NaN;if(this.symbols.group&&(i=i.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(i=i.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(i=i.replace(this.symbols.minusSign,"-")),i=i.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=i.indexOf("-");i=i.replace("-",""),i=i.replace("+","");let t=i.indexOf(".");-1===t&&(t=i.length),i=i.replace(".",""),i=t-2==0?`0.${i}`:t-2==-1?`0.0${i}`:t-2==-2?"0.00":`${i.slice(0,t-2)}.${i.slice(t-2)}`,e>-1&&(i=`-${i}`)}let a=i?+i:NaN;if(isNaN(a))return NaN;if("percent"===this.options.style){let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new oe(this.locale,e).parse(new s(this.locale,e).format(a))}return"accounting"===this.options.currencySign&&re.test(e)&&(a*=-1),a}sanitize(e){let t=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(t=>t.unit===e)?this.symbols.noNumeralUnits.find(t=>t.unit===e).value.toString():(e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=he(e,",",this.symbols.decimal),e=he(e,String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&t&&(eLine truncated
|
||||
import{r as e,a as t,$ as i,j as a}from"./vendor-react-64fcanlc.js";import{fZ as s,eH as n,f_ as r,cO as l,cZ as o,f8 as u,es as c,et as d,cV as m,f$ as p,ev as v,f4 as h,cW as f,fM as b,g0 as g,cU as y,g1 as N,eD as S,cP as x,fY as P,cQ as D,g2 as w,eS as E,ex as V,fa as M,g3 as F,c_ as R,c$ as I,d0 as C,d1 as B,d2 as O,bt as T,d3 as j,dc as L,d4 as k,d6 as $,g4 as U,g5 as q,d7 as A,eQ as G,d8 as W,d9 as K,d5 as z,I as H,dj as _,u as Z,cz as Y,df as X,dl as J,g6 as Q,cq as ee,b9 as te,cw as ie,dn as ae,ck as se,g7 as ne}from"./index-DFPUSiWe.js";const re=new RegExp("^.*\\(.*\\).*$"),le=["latn","arab","hanidec","deva","beng","fullwide"];class oe{constructor(e,t={}){this.locale=e,this.options=t}parse(e){return ce(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,i){return ce(this.locale,this.options,e).isValidPartialNumber(e,t,i)}getNumberingSystem(e){return ce(this.locale,this.options,e).options.numberingSystem}}const ue=new Map;function ce(e,t,i){let a=de(e,t);if(!e.includes("-nu-")&&!a.isValidPartialNumber(i))for(let s of le)if(s!==a.options.numberingSystem){let a=de(e+(e.includes("-u-")?"-nu-":"-u-nu-")+s,t);if(a.isValidPartialNumber(i))return a}return a}function de(e,t){let i=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():""),a=ue.get(i);return a||(a=new me(e,t),ue.set(i,a)),a}class me{constructor(e,t={}){this.locale=e,1!==t.roundingIncrement&&null!=t.roundingIncrement&&(null==t.maximumFractionDigits&&null==t.minimumFractionDigits?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):null==t.maximumFractionDigits?t.maximumFractionDigits=t.minimumFractionDigits:null==t.minimumFractionDigits&&(t.minimumFractionDigits=t.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,i,a){let s=new Intl.NumberFormat(e,{...i,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:!0}),n=s.formatToParts(-10000.111),r=s.formatToParts(10000.111),l=ve.map(e=>s.formatToParts(e)),o=l.map((e,t)=>{let i=e.find(e=>"unit"===e.type);return i&&!e.some(e=>"integer"===e.type||"fraction"===e.type)?{unit:i.value,value:ve[t]}:null}).filter(e=>!!e),u=n.find(e=>"minusSign"===e.type)?.value??"-",c=r.find(e=>"plusSign"===e.type)?.value;c||"exceptZero"!==a?.signDisplay&&"always"!==a?.signDisplay||(c="+");let d=new Intl.NumberFormat(e,{...i,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001),m=d.find(e=>"decimal"===e.type)?.value,p=n.find(e=>"group"===e.type)?.value,v=n.filter(e=>!pe.has(e.type)).map(e=>fe(e.value)),h=l.flatMap(e=>e.filter(e=>!pe.has(e.type)).map(e=>fe(e.value))),f=[...new Set([...v,...h])].sort((e,t)=>t.length-e.length),b=0===f.length?new RegExp("\\p{White_Space}|\\p{Cf}","gu"):new RegExp(`${f.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),g=[...new Intl.NumberFormat(i.locale,{useGrouping:!1}).format(9876543210)].reverse(),y=new Map(g.map((e,t)=>[e,t])),N=new RegExp(`[${g.join("")}]`,"g");return{minusSign:u,plusSign:c,decimal:m,group:p,literals:b,numeral:N,numerals:g,index:e=>String(y.get(e)),noNumeralUnits:o}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}parse(e){let t=this.formatter.resolvedOptions().useGrouping,i=this.sanitize(e);if(!t&&this.symbols.group&&i.includes(this.symbols.group))return NaN;if(this.symbols.group&&(i=i.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(i=i.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(i=i.replace(this.symbols.minusSign,"-")),i=i.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=i.indexOf("-");i=i.replace("-",""),i=i.replace("+","");let t=i.indexOf(".");-1===t&&(t=i.length),i=i.replace(".",""),i=t-2==0?`0.${i}`:t-2==-1?`0.0${i}`:t-2==-2?"0.00":`${i.slice(0,t-2)}.${i.slice(t-2)}`,e>-1&&(i=`-${i}`)}let a=i?+i:NaN;if(isNaN(a))return NaN;if("percent"===this.options.style){let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new oe(this.locale,e).parse(new s(this.locale,e).format(a))}return"accounting"===this.options.currencySign&&re.test(e)&&(a*=-1),a}sanitize(e){let t=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(t=>t.unit===e)?this.symbols.noNumeralUnits.find(t=>t.unit===e).value.toString():(e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=he(e,",",this.symbols.decimal),e=he(e,String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&t&&(eLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{aj as a,U as s,aO as o,aZ as i,a_ as n,b0 as r,a3 as l,a2 as d,a7 as c,aX as p,Y as u,h as m,Z as v,b1 as h,bC as f,u as g,an as b,ao as x,r as j,ap as y,t as w,ar as k,aq as _,y as N,bX as R,E as S,c as H,T as O,m as L,C,bY as I,ah as P,ay as A,aE as V,S as D,bZ as U,P as E,B as F,b_ as B}from"./index-tt2n9Zk_.js";import{d as T,e as W}from"./files-Dt8K7QfP.js";import{r as M,l as q,f as Z,a as K,b as X}from"./limitHint-Da336AR0.js";import{e as Y,c as z,u as G,D as J,R as Q}from"./activity-St9WlHNk.js";import{e as $}from"./nodes-CWX2Nx2b.js";import{D as ee,t as te}from"./Table-CNIdPyPm.js";import{L as ae,K as se,A as oe,B as ie}from"./logs-DlBF9FTI.js";import{D as ne}from"./DaeCode-DEjXqvav.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-EZM3RrYN.js";import"./AppearanceControls-D6ckn4zJ.js";import"./useGridSelectionCheckbox-EoqO9l1F.js";import"./Select-DO5D4JEL.js";import"./Virtualizer-Bm8y6eIs.js";import"./daeTokens-BVtuNnWZ.js";const re={connections:m("connections",{tab:"list"}),flows:m("flows",{tab:"records"}),routing_trace:m("rules",{tab:"trace"}),dns_query:m("dns",{tab:"query"}),dns_cache:m("dns",{tab:"cache"}),dns_log:m("dns",{tab:"log"}),events:m("events"),probes:m("nodes",{tab:"latency"}),traffic_history:m("activity"),memory_history:m("activity"),runtime_outbounds:m("activity"),logs:m("logs"),providers:m("nodes"),rules:m("rules",{tab:"list"}),config:m("config"),config_validate:m("config",{tab:"source",panel:"diagnostics"}),runtime_settings:m("settings",{card:"runtime"}),geodata:m("settings",{card:"geodata"})},le={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 de(e,t){return le[e]?t(le[e]):e}function ce(e,t,a,s,o=!1,i=[]){const n=e.ebpf,r=n?.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,o,a);return s?{label:a(e),value:de(t,a),help:s}:[a(e),de(t,a)]},d=n?.maps?.state??"unknown",c=n&&function(e,t,a,s){if("unknown"!==e||!t.length)return;const o=new Intl.ListFormat(s,{type:"conjunction"}).format(t);return{title:a("ov.v.notVerified"),text:a("ov.notVerifiedHelp",{hooks:o})}}(n.hooks,i,a,s);return[l("ov.f.kind",e.kind),l("ov.f.state",e.state),..."partial"===e.visibility&&n?[]:[l("ov.f.visibility",e.visibility)],...n?[l("ov.f.backend",n.backend),l("ov.f.programs",n.programs),c?{label:a("ov.f.hooks"),value:a("ov.v.notVerified"),help:c}:l("ov.f.hooks",n.hooks),l("ov.f.routing",n.routing.state),l("ov.f.health",n.health),..."partial"===d&&r&&!r.occupancy_known?[[a("ov.f.maps"),a("ov.mapCapacity",{capacity:v(r.capacity,s)})]]:[l("ov.f.maps",d),[a("ov.f.connState"),r?.occupancy_known&&null!==r.occupancy?a("ui.fraction",{part:v(r.occupancy,s),whole:v(r.capacity,s)}):r?a("ov.occupancyUnknown",{capacity:v(r.capacity,s)}):t]]]:[]]}const pe={service:"ov.v.cgroupService",shared:"ov.v.cgroupShared"},ue={service:"ov.cgroupHelp.service",shared:"ov.cgroupHelp.shared"};function me(e,t,s,o=[],i=!1){const n=e.cgroup?.scope,r=e=>{const t=a(e??null);return null===t?"—":v(t,s)},l=[["ov.f.rss",d(e.process?.rss_bytes??null,s)],["ov.f.cgroupCurrent",d(e.cgroup?.current_bytes??null,s)],["ov.f.cgroupLimit",i&&null===e.cgroup?.limit_bytes?t("ov.noLimit"):d(e.cgroup?.limit_bytes??null,s)],["ov.f.cgroupScope",n&&"unknown"!==n?t(pe[n]):"—"],["ov.f.oomHigh",r(e.cgroup?.events?.high)],["ov.f.oom",r(e.cgroup?.events?.oom)],["ov.f.oomKill",r(e.cgroup?.events?.oom_kill)],["ov.f.ebpfBytes",d(e.kernel?.ebpf_bytes??null,s)]],c=[...o,..."unknown"===n?["ov.f.cgroupScope"]:[],...e.kernel?[]:["ov.f.ebpfBytes"]];return l.filter(([e])=>!c.includes(e)).map(([e,a])=>"ov.f.cgroupScope"===e&&n&&"unknown"!==n?{label:t(e),value:a,help:{title:t(e),text:t("ui.valuePair",{label:a,value:t(ue[n])})}}:[t(e),a])}const ve={probes:"ov.lim.h.probes",subscriptions:"ov.lim.h.subscriptions",reload:"ov.lim.h.reload",config_validate:"ov.lim.h.configValidate"};function he(e,t,a,s,o){const i=e.resources,n=$(t),r=t=>n.reason(t,e,o),l=(e,t)=>({href:f(s,e),text:a(t),external:!0}),d=(e,t)=>({label:a("ov.lim.why"),text:a(e),links:t?[t]:[]}),c=e=>{const t=e.find(e=>void 0!==e),s=t&&K[t.code];if(!s)return;const o=s.docs?[l(...s.docs)]:[],i=e.flatMap(e=>e&&"settings"in e?e.settings:[]).filter((e,t,a)=>a.findIndex(t=>t.key===e.key)===t),r=X(a,t);return i.length>0?{label:a("ov.lim.howTo"),text:r,snippet:n.sniLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{aj as a,U as s,bC as o,aO as i,aZ as n,a_ as r,b0 as l,a3 as d,a2 as c,a7 as p,aX as u,Y as m,h as v,Z as h,b1 as f,u as g,an as b,ao as x,r as j,ap as y,t as w,ar as k,aq as _,y as N,bX as S,E as R,c as H,T as O,m as L,C,bY as I,ah as P,ay as A,aE as D,S as V,bZ as U,P as E,B as F,b_ as W}from"./index-DFPUSiWe.js";import{d as B,e as T}from"./files-Dt8K7QfP.js";import{r as M,l as q,f as X,a as Z,b as K}from"./limitHint-drqGf1xh.js";import{e as Y,c as z,u as G,D as J,R as Q}from"./activity-pUN0wcVd.js";import{e as $}from"./nodes-HzIJdCpg.js";import{D as ee,t as te}from"./Table-6xnX6eUx.js";import{L as ae,K as se,A as oe,B as ie}from"./logs-lI5kXcWp.js";import{D as ne}from"./DaeCode-DEjXqvav.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-u3CUc_6I.js";import"./AppearanceControls-Bpq6OQjk.js";import"./useGridSelectionCheckbox-wMhI-U-R.js";import"./Select-BFkb6iie.js";import"./Virtualizer-BH6NJSXn.js";import"./Checkbox-xU-Ds7Hn.js";import"./daeTokens-BVtuNnWZ.js";const re={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"})},le={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 de(e,t){return le[e]?t(le[e]):e}function ce(e,t,a,s,o=!1,i=[]){const n=e.ebpf,r=n?.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,o,a);return s?{label:a(e),value:de(t,a),help:s}:[a(e),de(t,a)]},d=n?.maps?.state??"unknown",c=n&&function(e,t,a,s){if("unknown"!==e||!t.length)return;const o=new Intl.ListFormat(s,{type:"conjunction"}).format(t);return{title:a("ov.v.notVerified"),text:a("ov.notVerifiedHelp",{hooks:o})}}(n.hooks,i,a,s);return[l("ov.f.kind",e.kind),l("ov.f.state",e.state),..."partial"===e.visibility&&n?[]:[l("ov.f.visibility",e.visibility)],...n?[l("ov.f.backend",n.backend),l("ov.f.programs",n.programs),c?{label:a("ov.f.hooks"),value:a("ov.v.notVerified"),help:c}:l("ov.f.hooks",n.hooks),l("ov.f.routing",n.routing.state),l("ov.f.health",n.health),..."partial"===d&&r&&!r.occupancy_known?[[a("ov.f.maps"),a("ov.mapCapacity",{capacity:h(r.capacity,s)})]]:[l("ov.f.maps",d),[a("ov.f.connState"),r?.occupancy_known&&null!==r.occupancy?a("ui.fraction",{part:h(r.occupancy,s),whole:h(r.capacity,s)}):r?a("ov.occupancyUnknown",{capacity:h(r.capacity,s)}):t]]]:[]]}const pe={service:"ov.v.cgroupService",shared:"ov.v.cgroupShared"},ue={service:"ov.cgroupHelp.service",shared:"ov.cgroupHelp.shared"};function me(e,t,s,o=[],i=!1){const n=e.cgroup?.scope,r=e=>{const t=a(e??null);return null===t?"—":h(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",n&&"unknown"!==n?t(pe[n]):"—"],["ov.f.oomHigh",r(e.cgroup?.events?.high)],["ov.f.oom",r(e.cgroup?.events?.oom)],["ov.f.oomKill",r(e.cgroup?.events?.oom_kill)],["ov.f.ebpfBytes",c(e.kernel?.ebpf_bytes??null,s)]],d=[...o,..."unknown"===n?["ov.f.cgroupScope"]:[],...e.kernel?[]:["ov.f.ebpfBytes"]];return l.filter(([e])=>!d.includes(e)).map(([e,a])=>"ov.f.cgroupScope"===e&&n&&"unknown"!==n?{label:t(e),value:a,help:{title:t(e),text:t("ui.valuePair",{label:a,value:t(ue[n])})}}:[t(e),a])}const ve=new Set(["persistence_unavailable","state_cache_unavailable"]);const he={probes:"ov.lim.h.probes",subscriptions:"ov.lim.h.subscriptions",reload:"ov.lim.h.reload",config_validate:"ov.lim.h.configValidate"};function fe(e,t,a,s,i){const n=e.resources,r=$(t),l=t=>r.reason(t,e,i),d=(e,t)=>({href:o(s,e),text:a(t),external:!0}),c=(e,t)=>({label:a("ov.lim.why"),text:a(e),links:t?[t]:[]}),p=e=>{const t=e.find(e=>void 0!==e),s=t&&Z[t.code];if(!s)return;const o=s.docs?[d(...s.docs)]:[],i=e.flatMap(e=>e&&"settings"in e?e.settings:[]).filter((e,t,a)=>a.fiLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{P as n}from"./ProbeOptionsDialog-CVvbW9SQ.js";import{C as i,a as s,b as r,E as l}from"./ConditionRow-DDRkT9im.js";import{A as o}from"./AddCircle-DSnjUOi9.js";import{U as a,S as d,l as c,s as u,u as p,y as m,o as h,m as g,V as f,W as b,T as y,N as v,R as x,r as j,Q as k}from"./nodes-CWX2Nx2b.js";import{bt as w,u as S,h as N,I as C,N as M,w as _,aV as I,cx as E,V as D,H as O,aW as L,bU as P,cy as R,b2 as z,aU as T,Z as $,ao as K,an as q,cq as F,b9 as H,j as A,ah as V,ce as G,bK as B,cm as J,cz as U,co as W,cA as Q,bz as X,cr as Y,cB as Z,B as ee,aF as te,bm as ne,c as ie,cC as se,b7 as re,cD as le,cE as oe,aB as ae,m as de,bJ as ce,c5 as ue,ab as pe,cF as me,cG as he,r as ge,t as fe,cH as be,aR as ye,cI as ve,v as xe,D as je,aN as ke,at as we,J as Se,aA as Ne,c7 as Ce,x as Me,cJ as _e,E as Ie,cl as Ee,aH as De,cK as Oe,C as Le,T as Pe,cL as Re,ay as ze,b as Te,a as $e}from"./index-tt2n9Zk_.js";import{T as Ke,a as qe,L as Fe}from"./Tag-D7lhqmBG.js";import{D as He}from"./DaeCode-DEjXqvav.js";import{N as Ae,p as Ve,D as Ge,K as Be,g as Je,f as Ue,u as We,c as Qe,w as Xe,x as Ye,m as Ze,y as et,S as tt,L as nt,B as it,n as st}from"./logs-DlBF9FTI.js";import{C as rt}from"./AppearanceControls-D6ckn4zJ.js";import{$ as lt,S as ot}from"./SearchList-D3Aknep5.js";import{h as at,q as dt,v as ct,w as ut,x as pt,y as mt,z as ht,A as gt,E as ft,G as bt,H as yt,I as vt,J as xt,K as jt,M as kt,N as wt,O as St,P as Nt,Q as Ct,T as Mt,V as _t,X as It,Y as Et}from"./activity-St9WlHNk.js";import{$ as Dt,a as Ot}from"./GridList-2xKNlEZe.js";import{b as Lt,c as Pt,d as Rt,e as zt,$ as Tt}from"./Virtualizer-Bm8y6eIs.js";import{$ as $t,a as Kt}from"./Select-DO5D4JEL.js";import{a as qt,b as Ft}from"./ItemText-EZM3RrYN.js";import{S as Ht}from"./SearchSelect-OEHKvvM7.js";import{N as At,t as Vt,n as Gt}from"./NumberField-DT8-IUla.js";import{p as Bt,a as Jt}from"./probe-Bc_Ehmu3.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./useGridSelectionCheckbox-EoqO9l1F.js";import"./daeTokens-BVtuNnWZ.js";const Ut={minItemSize:new Pt(200,200),maxItemSize:new Pt(1/0,1/0),preserveAspectRatio:!1,minSpace:new Pt(18,18),maxSpace:1/0,maxColumns:1/0,dropIndicatorThickness:2,loaderHeight:48};class Wt extends Lt{shouldInvalidateLayoutOptions(e,t){return e.maxColumns!==t.maxColumns||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.preserveAspectRatio!==t.preserveAspectRatio||!(e.minItemSize||Ut.minItemSize).equals(t.minItemSize||Ut.minItemSize)||!(e.maxItemSize||Ut.maxItemSize).equals(t.maxItemSize||Ut.maxItemSize)||!(e.minSpace||Ut.minSpace).equals(t.minSpace||Ut.minSpace)||e.maxHorizontalSpace!==t.maxHorizontalSpace||e.loaderHeight!==t.loaderHeight||e.direction!==t.direction}update(e){let{minItemSize:t=Ut.minItemSize,maxItemSize:n=Ut.maxItemSize,preserveAspectRatio:i=Ut.preserveAspectRatio,minSpace:s=Ut.minSpace,maxHorizontalSpace:r=Ut.maxSpace,maxColumns:l=Ut.maxColumns,dropIndicatorThickness:o=Ut.dropIndicatorThickness,loaderHeight:a=Ut.loaderHeight,direction:d="ltr"}=e.layoutOptions||{};this.dropIndicatorThickness=o,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 Pt(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 E=0;E<2&&null!=k;E++){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,C=new Map,M=null,_=0;for(let E=0;E<w;E++){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}-${_++}`:r.key,o=this.layoutInfos.get(l),a=r;M&&(a=o&&o.content.key===l?o.content:{...M,key:l});let d=v+s*(f+v)+this.margin,c=y,u=!i;o&&u&&(c=o.rect.height,u=e.layoutOptionsChanged||e.sizeChanged||o.estimatedSize||o.content!==a);let p=new zt(d,N,f,c),m=new Rt(r.type,l,p);m.estimatedSize=u,m.allowOverflow=!0,m.content=a,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&&E===w-1&&N<this.virtualizer.size.height&&w++}let I=x.getItem(x.getLastKey());if("loader"===I?.type){(_>0||!I.props.isLoading)&&(a=0);let e=new zt(v,N,c-2*v,a),t=new Rt("loader",I.key,e);C.set(I.key,t),N=t.rect.maxY}this.layoutInfos=C,this.contentSize=new Pt(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)||"loaderLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{P as n}from"./ProbeOptionsDialog-BDgL7_BI.js";import{C as i,a as s,b as r,E as l}from"./CheckboxSet-CRYfymLL.js";import{A as o}from"./AddCircle-V0Kluz-m.js";import{U as a,S as d,l as c,s as u,u as p,y as m,o as h,m as g,V as f,W as b,T as y,N as v,R as x,r as j,Q as k}from"./nodes-HzIJdCpg.js";import{bt as w,u as S,h as N,I as C,N as M,w as _,aV as I,cx as E,V as D,H as O,aW as L,bU as P,cy as z,b2 as R,aU as T,Z as $,ao as K,an as H,cq as q,b9 as F,j as A,ah as V,ce as G,bK as B,cm as J,cz as U,co as W,cA as Q,bz as X,cr as Y,cB as Z,B as ee,aF as te,bm as ne,c as ie,cC as se,b7 as re,cD as le,cE as oe,aB as ae,m as de,bJ as ce,c5 as ue,ab as pe,cF as me,cG as he,r as ge,t as fe,cH as be,aR as ye,cI as ve,v as xe,D as je,aN as ke,at as we,J as Se,aA as Ne,c7 as Ce,x as Me,cJ as _e,E as Ie,cl as Ee,aH as De,cK as Oe,C as Le,T as Pe,cL as ze,ay as Re,b as Te,a as $e}from"./index-DFPUSiWe.js";import{T as Ke,a as He,L as qe}from"./Tag-BZqiYh1Z.js";import{D as Fe}from"./DaeCode-DEjXqvav.js";import{N as Ae,p as Ve,D as Ge,K as Be,g as Je,f as Ue,u as We,c as Qe,w as Xe,x as Ye,m as Ze,y as et,S as tt,L as nt,B as it,n as st}from"./logs-lI5kXcWp.js";import{C as rt}from"./AppearanceControls-Bpq6OQjk.js";import{$ as lt,S as ot}from"./SearchList-C88Y6c53.js";import{h as at,q as dt,v as ct,w as ut,x as pt,y as mt,z as ht,A as gt,E as ft,G as bt,H as yt,I as vt,J as xt,K as jt,M as kt,N as wt,O as St,P as Nt,Q as Ct,T as Mt,V as _t,X as It,Y as Et}from"./activity-pUN0wcVd.js";import{$ as Dt,a as Ot}from"./GridList-BuXKU7Uk.js";import{b as Lt,c as Pt,d as zt,e as Rt,$ as Tt}from"./Virtualizer-BH6NJSXn.js";import{$ as $t,a as Kt}from"./Select-BFkb6iie.js";import{a as Ht,b as qt}from"./ItemText-u3CUc_6I.js";import{S as Ft}from"./SearchSelect-CsXd0DEh.js";import{N as At,t as Vt,n as Gt}from"./NumberField-kCp6sey7.js";import{p as Bt,a as Jt}from"./probe-Db_cbYvO.js";import{f as Ut}from"./limitHint-drqGf1xh.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Checkbox-xU-Ds7Hn.js";import"./useGridSelectionCheckbox-wMhI-U-R.js";import"./daeTokens-BVtuNnWZ.js";const Wt={minItemSize:new Pt(200,200),maxItemSize:new Pt(1/0,1/0),preserveAspectRatio:!1,minSpace:new Pt(18,18),maxSpace:1/0,maxColumns:1/0,dropIndicatorThickness:2,loaderHeight:48};class Qt extends Lt{shouldInvalidateLayoutOptions(e,t){return e.maxColumns!==t.maxColumns||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.preserveAspectRatio!==t.preserveAspectRatio||!(e.minItemSize||Wt.minItemSize).equals(t.minItemSize||Wt.minItemSize)||!(e.maxItemSize||Wt.maxItemSize).equals(t.maxItemSize||Wt.maxItemSize)||!(e.minSpace||Wt.minSpace).equals(t.minSpace||Wt.minSpace)||e.maxHorizontalSpace!==t.maxHorizontalSpace||e.loaderHeight!==t.loaderHeight||e.direction!==t.direction}update(e){let{minItemSize:t=Wt.minItemSize,maxItemSize:n=Wt.maxItemSize,preserveAspectRatio:i=Wt.preserveAspectRatio,minSpace:s=Wt.minSpace,maxHorizontalSpace:r=Wt.maxSpace,maxColumns:l=Wt.maxColumns,dropIndicatorThickness:o=Wt.dropIndicatorThickness,loaderHeight:a=Wt.loaderHeight,direction:d="ltr"}=e.layoutOptions||{};this.dropIndicatorThickness=o,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 Pt(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 E=0;E<2&&null!=k;E++){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,C=new Map,M=null,_=0;for(let E=0;E<w;E++){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}-${_++}`:r.key,o=this.layoutInfos.get(l),a=r;M&&(a=o&&o.content.key===l?o.content:{...M,key:l});let d=v+s*(f+v)+this.margin,c=y,u=!i;o&&u&&(c=o.rect.height,u=e.layoutOptionsChanged||e.sizeChanged||o.estimatedSize||o.content!==a);let p=new Rt(d,N,f,c),m=new zt(r.type,l,p);m.estimatedSize=u,m.allowOverflow=!0,m.content=a,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&&E===w-1&&N<this.virtualizer.size.height&&w++}let I=x.getItem(x.getLastKey());if("loader"===I?.type){(_>0||!I.props.isLoading)&&(a=0);let e=new Rt(v,N,c-2*v,a),t=new zt("loader",I.key,e);C.set(I.key,t),N=t.rect.maxY}this.layoutInfos=C,this.contentSize=new Pt(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.valuLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{u as o,b7 as i,cD as c,cm as a,B as n}from"./index-tt2n9Zk_.js";import{H as r,I as t,p as l}from"./logs-DlBF9FTI.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(c,{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(a,{isSelected:j,onChange:x,children:m("probe.cold")}),d.group&&s.jsx(a,{isSelected:f,onChange:g,children:m("probe.leaves")})]})})}export{d as P};
|
||||
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{u as o,b7 as i,cD as c,cm as a,B as n}from"./index-DFPUSiWe.js";import{H as r,I as t,p as l}from"./logs-lI5kXcWp.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(c,{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(a,{isSelected:j,onChange:x,children:m("probe.cold")}),d.group&&s.jsx(a,{isSelected:f,onChange:g,children:m("probe.leaves")})]})})}export{d as P};
|
||||
@@ -0,0 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Trace-CDFraj3q.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-DFPUSiWe.js","./index-BnzLYrTn.css","./flows-Cd1KbGP2.js","./logs-lI5kXcWp.js","./Select-BFkb6iie.js","./ItemText-u3CUc_6I.js","./AppearanceControls-Bpq6OQjk.js","./nodes-HzIJdCpg.js","./probe-Db_cbYvO.js","./useQuickRule-BGNvNXBX.js","./DaeCode-DEjXqvav.js","./daeTokens-BVtuNnWZ.js","./AddCircle-V0Kluz-m.js","./SearchSelect-CsXd0DEh.js","./SearchList-C88Y6c53.js","./Virtualizer-BH6NJSXn.js","./rule-D1hMywhM.js","./activity-pUN0wcVd.js","./activity-CKk6X7wg.css","./NumberField-kCp6sey7.js","./Table-6xnX6eUx.js","./useGridSelectionCheckbox-wMhI-U-R.js","./Checkbox-xU-Ds7Hn.js","./Tabs-HxpCyCLR.js","./CheckboxSet-CRYfymLL.js","./Coverage-BRhvKmi_.js","./labels-D8xxfRTQ.js","./nav-BLmatpph.js","./recorder-BHyqDNp5.js","./geodataUpdate-BANPx3Of.js","./LinkOut-B50sd8cz.js","./geodata-CvcFemyc.js","./impact-B8feJDtJ.css"])))=>i.map(i=>d[i]);
|
||||
import{cM as e,cN as s,cO as n,cP as i,cQ as l,cR as a,cS as r,bt as t,cT as o,cU as d,cV as u,cW as c,cX as p,cY as m,cZ as f,c_ as g,c$ as h,d0 as b,d1 as v,d2 as x,d3 as k,d4 as y,d5 as w,d6 as j,d7 as S,d8 as C,d9 as _,da as N,db as D,$ as M,dc as P,dd as R,de as q,aE as H,df as I,cw as O,aB as L,b9 as E,c7 as F,c9 as A,ao as T,Z as V,V as W,J as $,aa as B,b1 as U,a8 as Q,o as G,h as J,t as K,dg as Z,a3 as X,w as z,u as Y,aL as ee,cI as se,D as ne,an as ie,r as le,bX as ae,aP as re,aQ as te,bC as oe,y as de,aO as ue,aM as ce,ad as pe,C as me,bm as fe,bJ as ge,cm as he,ce as be,B as ve,m as xe,cD as ke,cC as ye,c as we,dh as je,bK as Se,di as Ce,b7 as _e,E as Ne,cK as De,ba as Me,aF as Pe,cl as Re,ay as qe,T as He,c8 as Ie,cb as Oe,L as Le,aH as Ee,p as Fe,_ as Ae,ch as Te}from"./index-DFPUSiWe.js";import{r as Ve,$ as We,j as $e}from"./vendor-react-64fcanlc.js";import{Z as Be,_ as Ue,$ as Qe,a0 as Ge,a1 as Je,a2 as Ke,a3 as Ze,a4 as Xe,a5 as ze,a6 as Ye,a7 as es,a8 as ss,a9 as ns,aa as is,ab as ls,s as as,ac as rs,ad as ts}from"./activity-pUN0wcVd.js";import{T as os}from"./Tabs-HxpCyCLR.js";import{D as ds}from"./DaeCode-DEjXqvav.js";import{a as us,c as cs,u as ps,z as ms,x as fs,g as gs,D as hs,L as bs,p as vs,S as xs,B as ks}from"./logs-lI5kXcWp.js";import{D as ys}from"./Table-6xnX6eUx.js";import{a as ws,C as js,E as Ss}from"./CheckboxSet-CRYfymLL.js";import{c as Cs,C as _s}from"./Coverage-BRhvKmi_.js";import{d as Ns,b as Ds,c as Ms,e as Ps,B as Rs,r as qs}from"./rule-D1hMywhM.js";import{u as Hs,a as Is,c as Os}from"./flows-Cd1KbGP2.js";import{f as Ls,u as Es,X as Fs,j as As,c as Ts,Y as Vs,l as Ws,s as $s,g as Bs,Z as Us,_ as Qs,$ as Gs,a0 as Js,a1 as Ks,a2 as Zs,r as Xs,a3 as zs,a4 as Ys,a5 as en,a6 as sn,a as nn,a7 as ln,a8 as an,F as rn,a9 as tn,e as on,aa as dn,ab as un}from"./nodes-HzIJdCpg.js";import{w as cn}from"./labels-D8xxfRTQ.js";import{r as pn}from"./nav-BLmatpph.js";import{r as mn}from"./recorder-BHyqDNp5.js";import{g as fn,a as gn,b as hn}from"./geodataUpdate-BANPx3Of.js";import{C as bn}from"./Checkbox-xU-Ds7Hn.js";/* empty css */import{L as vn}from"./LinkOut-B50sd8cz.js";import{S as xn}from"./SearchSelect-CsXd0DEh.js";import{m as kn,a as yn,b as wn}from"./geodata-CvcFemyc.js";const jn=new WeakMap;let Sn=Math.round(1e10*Math.random()),Cn=0;const _n=Ve.createContext(null),Nn=Ve.createContext(null),Dn=Ve.createContext(null),Mn=Ve.forwardRef(function(e,s){[e,s]=b(e,s,_n);let{validationBehavior:l}=v(x)||{},a=e.validationBehavior??l??"native",r=function(e){let s=Ve.useMemo(()=>e.name||`radio-group-${Sn}-${++Cn}`,[e.name]),[n,i]=g(e.value,e.defaultValue??null,e.onChange),[l]=Ve.useState(n),[a,r]=Ve.useState(null),t=h({...e,value:n}),o=t.displayValidation.isInvalid;return{...t,name:s,selectedValue:n,defaultSelectedValue:void 0!==e.value?l:e.defaultValue??null,setSelectedValue:s=>{e.isReadOnly||e.isDisabled||(i(s),t.commitValidation())},lastFocusedValue:a,setLastFocusedValue:r,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(o?"invalid":null),isInvalid:o}}({...e,validationBehavior:a}),[D,M]=k(!e["aria-label"]&&!e["aria-labelledby"]),{radioGroupProps:P,labelProps:R,descriptionProps:q,errorMessageProps:H,...I}=function(e,s){let{name:l,form:a,isReadOnly:r,isRequired:g,isDisabled:h,orientation:b="vertical",validationBehavior:v="aria"}=e,{direction:x}=t(),{isInvalid:k,validationErrors:y,validationDetails:w}=s.displayValidation,{labelProps:j,fieldProps:S,descriptionProps:C,errorMessageProps:_}=o({...e,labelElementType:"span",isInvalid:s.isInvalid,errorMessage:e.errorMessage||y}),N=i(e,{labelable:!0}),{focusWithinProps:D}=d({onBlurWithin(n){e.onBlur?.(n),s.selectedValue||s.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});function M(e,n){let i,l=p(n.currentTarget,{from:f(n),accept:e=>e instanceof m(e).HTMLInputElement&&"radio"===e.type});return"next"===e?(i=l.nextNode(),i||(l.currentNode=n.currentTarget,i=l.firstChild())):(i=l.previousNode(),i||(l.currentNode=n.currentTarget,i=l.lastChild())),!!i&&(i.focus(),s.setSelectedValue(i.value),!0)}let{keyboardProps:P}=u({shortcuts:{ArrowRight:e=>M("rtl"===x&&"vertical"!==b?"prev":"next",e),ArrowLeft:e=>M("rtl"===x&&"vertical"!==b?"next":"prev",e),ArrowDown:e=>M("next",e),ArrowUp:e=>M("prev",e)},allowRepeats:!0}),R=c(l);return jn.set(s,{name:R,form:a,descriptionId:C.id,errorMessageId:_.id,validationBehavior:v}),{radioGroupProps:n(N,{role:"radiogroup",...P,"aria-invalid":s.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":r||void 0,"aria-required":g||void 0,"aria-disabled":h||void 0,"aria-orientation":b,...S,...D}),labelProps:j,descriptionProps:C,errorMessageProps:_,isInvalid:k,validationErrors:y,validationDetails:w}}({...e,label:M,validationBehavior:a},r),O=y({...e,values:{orientation:e.orientation||"vertical",isDisabled:r.isDisabled,isReadOnly:r.isReadOnly,isRequired:r.isRequired,isInvalid:r.isInvalid,state:r},dLine truncated
|
||||
@@ -1,2 +0,0 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Trace-CqI1I44o.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-tt2n9Zk_.js","./index-kgf32cc4.css","./flows-GETlXTEg.js","./logs-DlBF9FTI.js","./Select-DO5D4JEL.js","./ItemText-EZM3RrYN.js","./AppearanceControls-D6ckn4zJ.js","./nodes-CWX2Nx2b.js","./probe-Bc_Ehmu3.js","./useQuickRule-DGnvKUbx.js","./DaeCode-DEjXqvav.js","./daeTokens-BVtuNnWZ.js","./AddCircle-DSnjUOi9.js","./SearchSelect-OEHKvvM7.js","./SearchList-D3Aknep5.js","./Virtualizer-Bm8y6eIs.js","./rule-C_tGvS3P.js","./activity-St9WlHNk.js","./activity-CKk6X7wg.css","./NumberField-DT8-IUla.js","./Table-CNIdPyPm.js","./useGridSelectionCheckbox-EoqO9l1F.js","./Tabs-DWzcwxse.js","./ConditionRow-DDRkT9im.js","./Coverage-D0M5eSx-.js","./labels-D8xxfRTQ.js","./nav-DL8Z2h52.js","./recorder-BHyqDNp5.js","./geodataUpdate-C5Lm7JjR.js","./LinkOut-XZA33RqA.js","./impact-B8feJDtJ.css"])))=>i.map(i=>d[i]);
|
||||
import{cM as e,cN as n,cO as s,cP as i,cQ as l,cR as a,cS as r,bt as t,cT as o,cU as d,cV as u,cW as c,cX as p,cY as m,cZ as f,c_ as b,c$ as h,d0 as g,d1 as v,d2 as x,d3 as y,d4 as k,d5 as w,d6 as j,d7 as S,d8 as _,d9 as C,da as N,db as D,$ as M,dc as P,dd as R,de as H,aE as I,df as q,cw as O,aB as L,b9 as E,c7 as F,c9 as T,ao as A,Z as V,V as W,J as B,aa as $,b1 as U,a8 as Q,o as G,h as J,t as K,dg as Z,a3 as X,w as Y,u as z,aL as ee,cI as ne,D as se,an as ie,r as le,bX as ae,aP as re,aQ as te,bC as oe,y as de,aO as ue,aM as ce,ad as pe,C as me,bm as fe,bJ as be,cm as he,ce as ge,B as ve,m as xe,cD as ye,cC as ke,c as we,dh as je,bK as Se,di as _e,E as Ce,cK as Ne,ba as De,aF as Me,cl as Pe,ay as Re,T as He,c8 as Ie,cb as qe,L as Oe,aH as Le,p as Ee,_ as Fe,ch as Te}from"./index-tt2n9Zk_.js";import{r as Ae,$ as Ve,j as We}from"./vendor-react-64fcanlc.js";import{Z as Be,_ as $e,$ as Ue,a0 as Qe,a1 as Ge,a2 as Je,a3 as Ke,a4 as Ze,a5 as Xe,a6 as Ye,a7 as ze,a8 as en,a9 as nn,aa as sn,ab as ln,s as an}from"./activity-St9WlHNk.js";import{T as rn}from"./Tabs-DWzcwxse.js";import{D as tn}from"./DaeCode-DEjXqvav.js";import{a as on,c as dn,u as un,z as cn,x as pn,g as mn,D as fn,L as bn,p as hn,S as gn,B as vn}from"./logs-DlBF9FTI.js";import{D as xn}from"./Table-CNIdPyPm.js";import{C as yn,a as kn,E as wn}from"./ConditionRow-DDRkT9im.js";import{c as jn,C as Sn}from"./Coverage-D0M5eSx-.js";import{d as _n,b as Cn,c as Nn,e as Dn,B as Mn}from"./rule-C_tGvS3P.js";import{u as Pn,a as Rn,c as Hn}from"./flows-GETlXTEg.js";import{f as In,u as qn,X as On,j as Ln,c as En,Y as Fn,l as Tn,s as An,g as Vn,Z as Wn,_ as Bn,$ as $n,a0 as Un,a1 as Qn,a2 as Gn,a3 as Jn,r as Kn,a4 as Zn,a5 as Xn,a6 as Yn,a7 as zn,a as es,F as ns,a8 as ss,e as is,a9 as ls}from"./nodes-CWX2Nx2b.js";import{w as as}from"./labels-D8xxfRTQ.js";import{r as rs}from"./nav-DL8Z2h52.js";import{r as ts}from"./recorder-BHyqDNp5.js";import{g as os,a as ds,b as us}from"./geodataUpdate-C5Lm7JjR.js";/* empty css */import{L as cs}from"./LinkOut-XZA33RqA.js";import{S as ps}from"./SearchSelect-OEHKvvM7.js";const ms=new WeakMap;let fs=Math.round(1e10*Math.random()),bs=0;const hs=Ae.createContext(null),gs=Ae.createContext(null),vs=Ae.createContext(null),xs=Ae.forwardRef(function(e,n){[e,n]=g(e,n,hs);let{validationBehavior:l}=v(x)||{},a=e.validationBehavior??l??"native",r=function(e){let n=Ae.useMemo(()=>e.name||`radio-group-${fs}-${++bs}`,[e.name]),[s,i]=b(e.value,e.defaultValue??null,e.onChange),[l]=Ae.useState(s),[a,r]=Ae.useState(null),t=h({...e,value:s}),o=t.displayValidation.isInvalid;return{...t,name:n,selectedValue:s,defaultSelectedValue:void 0!==e.value?l:e.defaultValue??null,setSelectedValue:n=>{e.isReadOnly||e.isDisabled||(i(n),t.commitValidation())},lastFocusedValue:a,setLastFocusedValue:r,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(o?"invalid":null),isInvalid:o}}({...e,validationBehavior:a}),[D,M]=y(!e["aria-label"]&&!e["aria-labelledby"]),{radioGroupProps:P,labelProps:R,descriptionProps:H,errorMessageProps:I,...q}=function(e,n){let{name:l,form:a,isReadOnly:r,isRequired:b,isDisabled:h,orientation:g="vertical",validationBehavior:v="aria"}=e,{direction:x}=t(),{isInvalid:y,validationErrors:k,validationDetails:w}=n.displayValidation,{labelProps:j,fieldProps:S,descriptionProps:_,errorMessageProps:C}=o({...e,labelElementType:"span",isInvalid:n.isInvalid,errorMessage:e.errorMessage||k}),N=i(e,{labelable:!0}),{focusWithinProps:D}=d({onBlurWithin(s){e.onBlur?.(s),n.selectedValue||n.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});function M(e,s){let i,l=p(s.currentTarget,{from:f(s),accept:e=>e instanceof m(e).HTMLInputElement&&"radio"===e.type});return"next"===e?(i=l.nextNode(),i||(l.currentNode=s.currentTarget,i=l.firstChild())):(i=l.previousNode(),i||(l.currentNode=s.currentTarget,i=l.lastChild())),!!i&&(i.focus(),n.setSelectedValue(i.value),!0)}let{keyboardProps:P}=u({shortcuts:{ArrowRight:e=>M("rtl"===x&&"vertical"!==g?"prev":"next",e),ArrowLeft:e=>M("rtl"===x&&"vertical"!==g?"next":"prev",e),ArrowDown:e=>M("next",e),ArrowUp:e=>M("prev",e)},allowRepeats:!0}),R=c(l);return ms.set(n,{name:R,form:a,descriptionId:_.id,errorMessageId:C.id,validationBehavior:v}),{radioGroupProps:s(N,{role:"radiogroup",...P,"aria-invalid":n.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":r||void 0,"aria-required":b||void 0,"aria-disabled":h||void 0,"aria-orientation":g,...S,...D}),labelProps:j,descriptionProps:_,errorMessageProps:C,isInvalid:y,validationErrors:k,validationDetails:w}}({...e,label:M,validationBehavior:a},r),O=k({...e,values:{orientation:e.orientation||"vertical",isDisabled:r.isDisabled,isReadOnly:r.isReadOnly,isRequired:r.isRequired,isInvalid:r.isInvalid,state:r},defaultClassName:"react-aria-RadioGroup"}),L=i(e,{global:!0});return Ve.createElement(w.div,{...s(L,O,P),ref:n,slot:e.slot||void 0,"data-orientation":e.orieLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{t as s,gb as a,w as i,gc as r,M as n,c0 as o,b1 as l,V as d,Z as u,ao as p,gd as c,ge as m,gf as f,dK as g,u as h,an as y,r as b,y as j,gg as v,b7 as K,e$ as x,ce as w,bK as M,B as $,aF as k,E as q,bI as C,ah as L,cu as S}from"./index-tt2n9Zk_.js";import{$ as _,d as I,a as N}from"./Select-DO5D4JEL.js";import{b as R}from"./ItemText-EZM3RrYN.js";import{h as T,g as E,c as O,f as P,u as V}from"./logs-DlBF9FTI.js";import{u as A,c as D}from"./flows-GETlXTEg.js";import{X as F,e as G}from"./nodes-CWX2Nx2b.js";import{c as Q,o as z,p as B,q as H}from"./nav-BBKOedXV.js";import{d as W}from"./nav-xLy0j69-.js";import{r as X,a as Z}from"./nav-DL8Z2h52.js";import{f as J}from"./nav-CMiyhHuu.js";import{f as U,r as Y,g as ee,h as te}from"./nav-c-qn5XzG.js";import{aT as se,a0 as ae,aR as ie}from"./activity-St9WlHNk.js";import{c as re}from"./nav-BO8viH9G.js";import{n as ne,a as oe}from"./nav-BcPQklmW.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./AppearanceControls-D6ckn4zJ.js";const le=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"]}]:[],de=e=>e.trim().toLowerCase().replace(/\s+/g," "),ue=(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?[]:[de(e)]))]}),pe=(e,t,s,a,i)=>{const{route:r,query:n}=g(i);return ue(e,t,s,a,r,n)};function ce(e,t,s){const a=[{title:e(t),parent:s&&e(s)}];for(const i of c)m(i.id)&&a.push({title:f(i.id,t),parent:s&&f(i.id,s)});return a.flatMap(({title:e,parent:t})=>t?[e,t+" "+e]:[e])}function me(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 fe(t,m){const f=h(),g=y(),[K,x]=e.useState(""),w=b(),M=w.data?.resources,$=T(void 0,s(M,"connections",{whileLoading:!1})),k=E(s(M,"nodes",{whileLoading:!1})),q=O(s(M,"groups",{whileLoading:!1})),C=P(s(M,"providers",{whileLoading:!1})),L=V(s(M,"config",{whileLoading:!1})),S=A(s(M,"rules",{whileLoading:!1})),_=D(s(M,"dns_rules",{whileLoading:!1})),I=[w,$,k,q,C,L,S,_],N=G(j().data),R=!!N.globalSettings,[fe,ge]=e.useState(0);e.useEffect(()=>{let e=!0;for(const t of c)v(t.id).then(()=>e&&ge(e=>e+1),()=>{});return()=>{e=!1}},[]);const he=e.useMemo(()=>function(e,t,s){const n=t=>r(t,e),o=e?.resources,l=[...re().map(e=>({path:"connections",params:{tab:e.id},titleKey:e.titleKey})),...ne(o).map(e=>({path:"nodes",params:{tab:e.id},titleKey:e.titleKey})),...J(o).map(e=>({path:"flows",params:{tab:e.id},titleKey:e.titleKey})),...X(o).map(e=>({path:"rules",params:{tab:e.id},titleKey:e.titleKey})),...W(o).map(e=>({path:"dns",params:{tab:e.id},titleKey:e.titleKey})),...Q(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&&n(e.path)).map(e=>ue(ce(t,e.nav.titleKey),`page:${e.path}?`,t(e.nav.titleKey),void 0,e.path)),...l.filter(e=>n(e.path)).map(e=>{const s=i("",e.params);return ue([...ce(t,e.titleKey,d(e.path)),...e.aliases??[]],`page:${e.path}?${s}`,t(e.titleKey),t(d(e.path)),e.path,s)})]}(w.data,f,R),[w.data,f,R,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(Y).filter(([e])=>r.has(e)).map(([e,t])=>({id:e,labelKey:t,card:"runtime",aliases:void 0})),o=ee(s);return[...te.filter(e=>!e.sources||o),...n].flatMap(e=>{const s=a.get(e.card);return s?[ue([...ce(t,e.labelKey),...e.aliases??[]],`setting:${e.id}`,t(e.labelKey),t(s.titleKey),"settings",i("",{card:e.card,field:e.id}))]:[]})}(w.data,f),[w.data,f,fe]),be=e.useMemo(()=>function(e,t,a){return e&&s(t?.resources,"config",{whileLoading:!1})?e.fields.map(e=>ue([...ce(a,e.label),e.key],`global:${e.key}`,a(e.label),a(z[e.group]),"config",i("",{tab:"global",field:e.key}))):[]}(N.globalSettings,w.data,f),[N.globalSettings,w.data,f,fe]),je=e.useMemo(()=>function(e,t){const s=e?.resources;return[...Z(s),...le(s),...oe(s),...B(e),...se].filter(t=>null===t.route||r(t.route,e)).map(e=>ue([...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))}(w.data,f),[w.data,f,fe]),ve=e.useMemo(()=>function(e,t,s){return H(e,t,s).map(e=>pe([e.kind,e.summary],`module:${e.id}`,e.kind,e.range,e.href))}(L.data,N,f),[L.data,N,f]),Ke=e.useMemo(()=>function(e,t){return n(e).map(e=>ue([e.domain,e.dst,e.src],`connection:${e.id}`,e.domain||e.dst||e.src||e.id,o(e,t),"connections",i("",{id:e.id})))}($.data,f),[$.data,f]),xe=e.useMemo(()=>function(e,t,s){const a=t?.providers??[];return(e??[]).map(e=>pe([e.name],`node:${e.id}`,e.name,l(s,e.group_ids)||void 0,ae(e,a,!0)))}(k.datLine truncated
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{t as s,gb as a,w as i,gc as r,M as n,c0 as o,b1 as l,V as d,Z as u,ao as p,gd as c,ge as m,gf as f,dK as g,u as h,an as y,r as b,y as v,gg as j,b7 as K,e$ as x,ce as w,bK as M,B as $,aF as k,E as q,bI as C,ah as L,cu as S}from"./index-DFPUSiWe.js";import{$ as _,d as I,a as N}from"./Select-BFkb6iie.js";import{b as R}from"./ItemText-u3CUc_6I.js";import{h as E,g as T,c as O,f as P,u as V}from"./logs-lI5kXcWp.js";import{u as A,c as D}from"./flows-Cd1KbGP2.js";import{X as F,e as G}from"./nodes-HzIJdCpg.js";import{c as Q,o as z,p as B,q as H}from"./nav-C6jMmQ4d.js";import{d as U}from"./nav-Bw7F3lhF.js";import{r as W,a as X}from"./nav-BLmatpph.js";import{f as Z}from"./nav-CISoRdvs.js";import{f as J,r as Y,g as ee,h as te}from"./nav-lSzYOU50.js";import{aT as se,a0 as ae,aR as ie}from"./activity-pUN0wcVd.js";import{c as re}from"./nav-BO8viH9G.js";import{n as ne,a as oe}from"./nav-CfbmlNWr.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./AppearanceControls-Bpq6OQjk.js";const le=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"]}]:[],de=e=>e.trim().toLowerCase().replace(/\s+/g," "),ue=(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?[]:[de(e)]))]}),pe=(e,t,s,a,i)=>{const{route:r,query:n}=g(i);return ue(e,t,s,a,r,n)};function ce(e,t,s){const a=[{title:e(t),parent:s&&e(s)}];for(const i of c)m(i.id)&&a.push({title:f(i.id,t),parent:s&&f(i.id,s)});return a.flatMap(({title:e,parent:t})=>t?[e,t+" "+e]:[e])}function me(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 fe(t,m){const f=h(),g=y(),[K,x]=e.useState(""),w=b(),M=w.data?.resources,$=E(void 0,s(M,"connections",{whileLoading:!1})),k=T(s(M,"nodes",{whileLoading:!1})),q=O(s(M,"groups",{whileLoading:!1})),C=P(s(M,"providers",{whileLoading:!1})),L=V(s(M,"config",{whileLoading:!1})),S=A(s(M,"rules",{whileLoading:!1})),_=D(s(M,"dns_rules",{whileLoading:!1})),I=[w,$,k,q,C,L,S,_],N=G(v().data),R=!!N.globalSettings,[fe,ge]=e.useState(0);e.useEffect(()=>{let e=!0;for(const t of c)j(t.id).then(()=>e&&ge(e=>e+1),()=>{});return()=>{e=!1}},[]);const he=e.useMemo(()=>function(e,t,s){const n=t=>r(t,e),o=e?.resources,l=[...re().map(e=>({path:"connections",params:{tab:e.id},titleKey:e.titleKey})),...ne(o).map(e=>({path:"nodes",params:{tab:e.id},titleKey:e.titleKey})),...Z(o).map(e=>({path:"flows",params:{tab:e.id},titleKey:e.titleKey})),...W(o).map(e=>({path:"rules",params:{tab:e.id},titleKey:e.titleKey})),...U(o).map(e=>({path:"dns",params:{tab:e.id},titleKey:e.titleKey})),...Q(s,e).map(e=>({path:"config",params:{tab:e.id},titleKey:e.titleKey,aliases:e.aliases})),...J(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&&n(e.path)).map(e=>ue(ce(t,e.nav.titleKey),`page:${e.path}?`,t(e.nav.titleKey),void 0,e.path)),...l.filter(e=>n(e.path)).map(e=>{const s=i("",e.params);return ue([...ce(t,e.titleKey,d(e.path)),...e.aliases??[]],`page:${e.path}?${s}`,t(e.titleKey),t(d(e.path)),e.path,s)})]}(w.data,f,R),[w.data,f,R,fe]),ye=e.useMemo(()=>function(e,t){const s=e?.resources,a=new Map(J(s).map(e=>[e.id,e])),r=new Set(s?.runtime_settings.available?s.runtime_settings.fields??[]:[]),n=Object.entries(Y).filter(([e])=>r.has(e)).map(([e,t])=>({id:e,labelKey:t,card:"runtime",aliases:void 0})),o=ee(s);return[...te.filter(e=>!e.sources||o),...n].flatMap(e=>{const s=a.get(e.card);return s?[ue([...ce(t,e.labelKey),...e.aliases??[]],`setting:${e.id}`,t(e.labelKey),t(s.titleKey),"settings",i("",{card:e.card,field:e.id}))]:[]})}(w.data,f),[w.data,f,fe]),be=e.useMemo(()=>function(e,t,a){return e&&s(t?.resources,"config",{whileLoading:!1})?e.fields.map(e=>ue([...ce(a,e.label),e.key],`global:${e.key}`,a(e.label),a(z[e.group]),"config",i("",{tab:"global",field:e.key}))):[]}(N.globalSettings,w.data,f),[N.globalSettings,w.data,f,fe]),ve=e.useMemo(()=>function(e,t){const s=e?.resources;return[...X(s),...le(s),...oe(s),...B(e),...se].filter(t=>null===t.route||r(t.route,e)).map(e=>ue([...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))}(w.data,f),[w.data,f,fe]),je=e.useMemo(()=>function(e,t,s){return H(e,t,s).map(e=>pe([e.kind,e.summary],`module:${e.id}`,e.kind,e.range,e.href))}(L.data,N,f),[L.data,N,f]),Ke=e.useMemo(()=>function(e,t){return n(e).map(e=>ue([e.domain,e.dst,e.src],`connection:${e.id}`,e.domain||e.dst||e.src||e.id,o(e,t),"connections",i("",{id:e.id})))}($.data,f),[$.data,f]),xe=e.useMemo(()=>function(e,t,s){const a=t?.providers??[];return(e??[]).map(e=>pe([e.name],`node:${e.id}`,e.name,l(s,e.group_ids)||void 0,ae(e,a,!0)))}(k.datLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,j as a}from"./vendor-react-64fcanlc.js";import{eq as t,e_ as r,e$ as s,bK as l}from"./index-tt2n9Zk_.js";import{$ as n,a as i}from"./Virtualizer-Bm8y6eIs.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};
|
||||
import{r as e,j as a}from"./vendor-react-64fcanlc.js";import{eq as t,e_ as r,e$ as s,bK as l}from"./index-DFPUSiWe.js";import{$ as n,a as i}from"./Virtualizer-BH6NJSXn.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
-1
@@ -1 +1 @@
|
||||
import{r as s,j as e}from"./vendor-react-64fcanlc.js";import{cz as a,co as l,df as r,cq as i,bz as c,cw as t,cr as d,cu as n,b9 as o}from"./index-tt2n9Zk_.js";import{b as p,c as m,$ as j,d as x,a as h}from"./Select-DO5D4JEL.js";import{I as b,a as f,b as u}from"./ItemText-EZM3RrYN.js";import{S as N}from"./SearchList-D3Aknep5.js";const v=s=>e.jsxs(h,{id:s.id,className:"rp-item",textValue:s.keywords?`${s.label} ${s.keywords}`:s.label,children:[e.jsx(f,{}),e.jsx(u,{i:s,children:s.desc&&e.jsx(t,{slot:"description",className:o("desc",s.tone),children:s.desc})})]},s.id);function S({label:h,searchLabel:f,sections:u,value:S,onChange:g,isDisabled:y,description:z,side:k,size:w}){const R=s.useRef(null),$=s.useRef(null),C=a(w),D=l(),I=u.flatMap(s=>s.items).find(s=>s.id===S);return e.jsxs(p,{className:o("rp-picker",k?"rp-cluster":"rp-field"),selectedKey:S,onSelectionChange:s=>{null!=s&&g(String(s))},isDisabled:y,children:[e.jsxs("div",{ref:R,className:k?"rp-cluster":"rp-field",children:[e.jsx(r,{className:k?"rp-label":"lbl",children:h}),e.jsxs(i,{ref:$,className:"rp-selectbtn","data-size":C,children:[e.jsx(m,{children:()=>I?e.jsx(b,{i:I}):S}),e.jsx(c,{})]})]}),z&&e.jsx(t,{slot:"description",className:"rp-label",children:z}),e.jsx(d,{className:"rp-popover rp-search-popover",placement:"bottom start",triggerRef:k?$:R,boundaryElement:D,children:e.jsx(N,{label:f,children:e.jsx(j,{className:"rp-menu-scroll rp-overlay-scroll",children:u.map(s=>s.title?e.jsxs(x,{id:s.id,children:[e.jsx(n,{className:"rp-sec-h",children:s.title}),s.items.map(v)]},s.id):s.items.map(v))})})})]})}export{S};
|
||||
import{r as s,j as e}from"./vendor-react-64fcanlc.js";import{cz as a,co as l,df as r,cq as i,bz as c,cw as t,cr as d,cu as n,b9 as o}from"./index-DFPUSiWe.js";import{b as p,c as m,$ as j,d as x,a as h}from"./Select-BFkb6iie.js";import{I as b,a as f,b as u}from"./ItemText-u3CUc_6I.js";import{S as N}from"./SearchList-C88Y6c53.js";const v=s=>e.jsxs(h,{id:s.id,className:"rp-item",textValue:s.keywords?`${s.label} ${s.keywords}`:s.label,children:[e.jsx(f,{}),e.jsx(u,{i:s,children:s.desc&&e.jsx(t,{slot:"description",className:o("desc",s.tone),children:s.desc})})]},s.id);function S({label:h,searchLabel:f,sections:u,value:S,onChange:g,isDisabled:y,description:z,side:k,size:w}){const R=s.useRef(null),$=s.useRef(null),C=a(w),D=l(),I=u.flatMap(s=>s.items).find(s=>s.id===S);return e.jsxs(p,{className:o("rp-picker",k?"rp-cluster":"rp-field"),selectedKey:S,onSelectionChange:s=>{null!=s&&g(String(s))},isDisabled:y,children:[e.jsxs("div",{ref:R,className:k?"rp-cluster":"rp-field",children:[e.jsx(r,{className:k?"rp-label":"lbl",children:h}),e.jsxs(i,{ref:$,className:"rp-selectbtn","data-size":C,children:[e.jsx(m,{children:()=>I?e.jsx(b,{i:I}):S}),e.jsx(c,{})]})]}),z&&e.jsx(t,{slot:"description",className:"rp-label",children:z}),e.jsx(d,{className:"rp-popover rp-search-popover",placement:"bottom start",triggerRef:k?$:R,boundaryElement:D,children:e.jsx(N,{label:f,children:e.jsx(j,{className:"rp-menu-scroll rp-overlay-scroll",children:u.map(s=>s.title?e.jsxs(x,{id:s.id,children:[e.jsx(n,{className:"rp-sec-h",children:s.title}),s.items.map(v)]},s.id):s.items.map(v))})})})]})}export{S};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{es as e,cP as t,fG as l,cU as o,cW as a,fH as s,cO as i,fI as r,fJ as n,e0 as d,eE as c,de as u,eA as p,e1 as g,ek as f,en as y,em as v,d0 as m,e7 as b,e4 as h,eO as D,fK as P,e5 as M,fL as S,db as K,cV as k,fM as E,d4 as C,d5 as F,d6 as B,d8 as x,e6 as I,eR as R,eK as w,bt as A,eq as V,ea as T,eL as O,dd as U,eN as L,fN as z,fO as H,da as N,d3 as q,fP as W,eW as _,eX as j,ee as $,fQ as G,fR as Q,cT as Z,er as J,fS as X,eI as Y,cQ as ee,cR as te,cZ as le,fT as oe,c_ as ae,c$ as se,e8 as ie,d1 as re,et as ne,d2 as de,dc as ce,d7 as ue,eQ as pe,fU as ge,fV as fe,d9 as ye}from"./index-tt2n9Zk_.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}=d({selectionManager:l.selectionManager,key:a,ref:o,shouldSelectOnPressUp:v,allowsDifferentPressOrigin:v&&m,isVirtualized:h,shouldUseVirtualFocus:b,isDisabled:f,onAction:K||S?.props?.onAction?c(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))}}),R=t(S?.props);delete R.id;let w=g(S?.props);return{optionProps:{...M,...i(R,E,I,w),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
|
||||
import{es as e,cP as t,fG as l,cU as o,cW as a,fH as s,cO as i,fI as r,fJ as n,e0 as d,eE as c,de as u,eA as p,e1 as g,ek as f,en as y,em as v,d0 as m,e7 as b,e4 as h,eO as D,fK as P,e5 as M,fL as S,db as K,cV as k,fM as E,d4 as C,d5 as F,d6 as B,d8 as x,e6 as I,eR as R,eK as w,bt as A,eq as V,ea as T,eL as O,dd as U,eN as L,fN as z,fO as H,da as N,d3 as q,fP as W,eW as _,eX as j,ee as $,fQ as G,fR as Q,cT as Z,er as J,fS as X,eI as Y,cQ as ee,cR as te,cZ as le,fT as oe,c_ as ae,c$ as se,e8 as ie,d1 as re,et as ne,d2 as de,dc as ce,d7 as ue,eQ as pe,fU as ge,fV as fe,d9 as ye}from"./index-DFPUSiWe.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}=d({selectionManager:l.selectionManager,key:a,ref:o,shouldSelectOnPressUp:v,allowsDifferentPressOrigin:v&&m,isVirtualized:h,shouldUseVirtualFocus:b,isDisabled:f,onAction:K||S?.props?.onAction?c(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))}}),R=t(S?.props);delete R.id;let w=g(S?.props);return{optionProps:{...M,...i(R,E,I,w),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,2 +0,0 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./WallpaperSettings-72ZDPOH1.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-tt2n9Zk_.js","./index-kgf32cc4.css","./logs-DlBF9FTI.js","./Select-DO5D4JEL.js","./ItemText-EZM3RrYN.js","./AppearanceControls-D6ckn4zJ.js","./nodes-CWX2Nx2b.js","./wallpaper-CEC7gitM.js"])))=>i.map(i=>d[i]);
|
||||
import{cu as e,cw as s,a2 as t,b1 as a,h as i,bC as n,Z as r,aM as l,dG as o,dH as d,u as c,dI as g,dJ as u,cI as p,ds as m,bH as f,bD as h,bO as b,D as v,bF as x,dK as j,dL as y,bG as k,dM as N,s as w,dN as _,dO as S,r as C,y as P,as as D,dP as I,dQ as R,dR as L,dS as T,dT as H,cd as U,ao as E,an as F,bX as M,t as q,bM as O,V as A,bS as V,aL as B,C as W,E as G,c as z,ag as $,S as K,bm as J,a as Y,ce as X,b as Z,bJ as Q,cl as ee,dt as se,B as te,aO as ae,aZ as ie,dU as ne,dV as re,cm as le,aB as oe,T as de,m as ce,bK as ge,bz as ue,dW as pe,dX as me,dY as fe,dZ as he,_ as be,w as ve}from"./index-tt2n9Zk_.js";import{j as xe,r as je,a as ye}from"./vendor-react-64fcanlc.js";import{p as ke,L as Ne,z as we,c as _e,D as Se,K as Ce,H as Pe,X as De,Y as Ie,I as Re}from"./logs-DlBF9FTI.js";import{T as Le}from"./Tabs-DWzcwxse.js";import{$ as Te,d as He,a as Ue}from"./Select-DO5D4JEL.js";import{C as Ee}from"./ItemText-EZM3RrYN.js";import{d as Fe,c as Me}from"./auth-CnQmki5R.js";import{e as qe}from"./nodes-CWX2Nx2b.js";import{g as Oe,r as Ae,c as Ve,s as Be,a as We,b as Ge,d as ze,e as $e}from"./nav-c-qn5XzG.js";import{N as Ke,t as Je,n as Ye}from"./NumberField-DT8-IUla.js";import{aM as Xe,aN as Ze,aO as Qe}from"./activity-St9WlHNk.js";import{D as es}from"./Table-CNIdPyPm.js";import{T as ss}from"./TimeCell-CIxTaFhT.js";import{a as ts}from"./geodataUpdate-C5Lm7JjR.js";import{g as as,v as is}from"./geodata-X0pHz03D.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./AppearanceControls-D6ckn4zJ.js";import"./useGridSelectionCheckbox-EoqO9l1F.js";import"./Virtualizer-Bm8y6eIs.js";function ns({swatch:e,look:s}){return xe.jsx("span",{className:"rp-swatch","data-look":s,"aria-hidden":"true",children:e.map((e,s)=>{const[t,a,i,n,r]=e.split(" ");return xe.jsx("span",{"data-dark":1===s||void 0,style:{"--sw-bg":t,"--sw-surface":a,"--sw-text":i,"--sw-accent":n,"--sw-positive":r},children:xe.jsx("i",{})},s)})})}function rs({label:t,sections:a,value:i,onChange:n,help:r}){const l=je.useId();return xe.jsxs("div",{className:"rp-select-boxes",children:[xe.jsx("span",{id:`${l}-label`,className:"rp-label",children:t}),xe.jsx(Te,{className:"rp-select-grid",layout:"grid",selectionMode:"single",disallowEmptySelection:!0,selectedKeys:[i],onSelectionChange:e=>"all"!==e&&n(String([...e][0])),"aria-labelledby":`${l}-label`,"aria-describedby":r?`${l}-help`:void 0,children:a.map(({title:t,plain:a,items:i})=>{const n=i.length>1||i[0].label!==t;return xe.jsxs(He,{"aria-label":n?void 0:t,children:[n&&xe.jsx(e,{className:"rp-select-box-head",children:t}),i.map(e=>xe.jsxs(Ue,{id:e.id,className:"rp-select-box",textValue:e.label,"aria-label":!n||a||e.label.includes(t)?e.label:`${t} ${e.label}`,children:[xe.jsx(ns,{swatch:e.swatch,look:e.look}),xe.jsx("span",{children:e.label}),e.desc&&xe.jsx(s,{slot:"description",className:"rp-label rp-truncate",children:e.desc}),xe.jsx(Ee,{className:"rp-select-box-check"})]},e.id))]},t)})}),r&&xe.jsx("span",{id:`${l}-help`,className:"rp-label",children:r})]})}const ls={"rose-pine/main":["#faf4ed #fffaf3 #464261 #286983 #56949f","#191724 #1f1d2e #e0def4 #31748f #9ccfd8"],"rose-pine/moon":["#faf4ed #fffaf3 #464261 #286983 #56949f","#232136 #2a273f #e0def4 #3e8fb0 #9ccfd8"],"catppuccin/frappe":["#e6e9ef #eff1f5 #4c4f69 #1e66f5 #179299","#292c3c #303446 #c6d0f5 #8caaee #81c8be"],"catppuccin/macchiato":["#e6e9ef #eff1f5 #4c4f69 #1e66f5 #179299","#1e2030 #24273a #cad3f5 #8aadf4 #8bd5ca"],"catppuccin/mocha":["#e6e9ef #eff1f5 #4c4f69 #1e66f5 #179299","#181825 #1e1e2e #cdd6f4 #89b4fa #94e2d5"],"arco/arco":["#ffffff #ffffff #1d2129 #165dff #00b42a","#17171a #232324 rgba(255,255,255,0.9) #3c7eff #27c346"],"semi/semi":["#ffffff #ffffff #1c1f23 #0064fa #3bb346","#16161a #232429 #f9f9f9 #54a9ff #5dc264"],"glass/glass":["rgba(255,255,255,0.4) rgba(255,255,255,0.4) #000000 #007aff #34c759","rgba(30,30,34,0.5) rgba(30,30,34,0.5) #ffffff #0a84ff #30d158"],"glass/clear":["rgba(255,255,255,0.4) rgba(255,255,255,0.4) #000000 #007aff #34c759","rgba(30,30,34,0.5) rgba(30,30,34,0.5) #ffffff #0a84ff #30d158"],"glass/frosted":["rgba(255,255,255,0.6) rgba(255,255,255,0.6) #000000 #007aff #34c759","rgba(23,23,23,0.5) rgba(23,23,23,0.5) #ffffff #0a84ff #30d158"],"glass/tinted":["rgba(255,255,255,0.85) rgba(255,255,255,0.85) #000000 #007aff #34c759","rgba(36,36,40,0.85) rgba(36,36,40,0.85) #ffffff #0a84ff #30d158"],"nord/nord":["#e5e9f0 #eceff4 #2e3440 #5e81ac #8fbcbb","#2e3440 #3b4252 #eceff4 #81a1c1 #8fbcbb"],"kary/kary":["#e7f0f7 #f0f6fb #65758d #3778b7 #428226","#1a1a1a #242424 #cacaca #819dc2 #7da76f"],"antd/antd":["#f5f5f5 #ffffff rgba(0,0,0,0.88) #1677ff #52c41a","#000000 #141414 rgba(255,255,255,0.85) #1668dc #49aa19"],"qiangguo/qiangguo":["#fffaf6 #f8ebe5 #2b0a0a #b0121a #1d6322","#2a0000 #4a0004 #ffd700 #ff6b5b #b8f2a0"]},os={"rose-pine/main":"palette.dawnMain","rose-pine/moon":"palette.dawnMoon","catppuccin/frappe":"palette.latteFrappe","catppuccin/macchiato":"palette.latteMacchiato","catppuccin/mocha":"palette.latteMocha","arco/arco":"palLine truncated
|
||||
@@ -0,0 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./WallpaperSettings-Bkh54SrZ.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-DFPUSiWe.js","./index-BnzLYrTn.css","./logs-lI5kXcWp.js","./Select-BFkb6iie.js","./ItemText-u3CUc_6I.js","./AppearanceControls-Bpq6OQjk.js","./nodes-HzIJdCpg.js","./wallpaper-CEC7gitM.js"])))=>i.map(i=>d[i]);
|
||||
import{cu as e,cw as s,bC as t,a2 as a,b1 as i,h as n,Z as r,aM as l,dG as o,dH as d,u as c,dI as g,dJ as u,cI as p,ds as m,bH as f,bD as h,bO as b,D as v,bF as x,dK as j,dL as k,bG as y,dM as N,s as w,dN as _,dO as S,r as C,y as P,as as D,dP as I,dQ as R,dR as L,dS as T,dT as H,cd as U,ao as E,an as F,bX as M,t as q,bM as O,V,bS as A,aL as B,C as W,E as G,c as z,ag as $,S as K,bm as J,a as Y,ce as Z,b as X,bJ as Q,cl as ee,dt as se,B as te,aZ as ae,aO as ie,dU as ne,dV as re,cm as le,aB as oe,T as de,m as ce,bK as ge,bz as ue,dW as pe,dX as me,dY as fe,bZ as he,dZ as be,_ as ve,w as xe}from"./index-DFPUSiWe.js";import{j as je,r as ke,a as ye}from"./vendor-react-64fcanlc.js";import{p as Ne,L as we,z as _e,c as Se,D as Ce,K as Pe,H as De,X as Ie,Y as Re,I as Le}from"./logs-lI5kXcWp.js";import{T as Te}from"./Tabs-HxpCyCLR.js";import{$ as He,d as Ue,a as Ee}from"./Select-BFkb6iie.js";import{C as Fe}from"./ItemText-u3CUc_6I.js";import{d as Me,c as qe}from"./auth-Br_GGGEt.js";import{e as Oe}from"./nodes-HzIJdCpg.js";import{g as Ve,r as Ae,c as Be,s as We,a as Ge,b as ze,d as $e,e as Ke}from"./nav-lSzYOU50.js";import{N as Je,t as Ye,n as Ze}from"./NumberField-kCp6sey7.js";import{aO as Xe,aP as Qe,aQ as es}from"./activity-pUN0wcVd.js";import{D as ss}from"./Table-6xnX6eUx.js";import{T as ts}from"./TimeCell-CRwMWdtu.js";import{l as as,a as is,d as ns,c as rs}from"./geodataUpdate-BANPx3Of.js";import{a as ls,v as os,m as ds,b as cs,g as gs}from"./geodata-CvcFemyc.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./AppearanceControls-Bpq6OQjk.js";import"./useGridSelectionCheckbox-wMhI-U-R.js";import"./Virtualizer-BH6NJSXn.js";import"./Checkbox-xU-Ds7Hn.js";function us({swatch:e,look:s}){return je.jsx("span",{className:"rp-swatch","data-look":s,"aria-hidden":"true",children:e.map((e,s)=>{const[t,a,i,n,r]=e.split(" ");return je.jsx("span",{"data-dark":1===s||void 0,style:{"--sw-bg":t,"--sw-surface":a,"--sw-text":i,"--sw-accent":n,"--sw-positive":r},children:je.jsx("i",{})},s)})})}function ps({label:t,sections:a,value:i,onChange:n,help:r}){const l=ke.useId();return je.jsxs("div",{className:"rp-select-boxes",children:[je.jsx("span",{id:`${l}-label`,className:"rp-label",children:t}),je.jsx(He,{className:"rp-select-grid",layout:"grid",selectionMode:"single",disallowEmptySelection:!0,selectedKeys:[i],onSelectionChange:e=>"all"!==e&&n(String([...e][0])),"aria-labelledby":`${l}-label`,"aria-describedby":r?`${l}-help`:void 0,children:a.map(({title:t,plain:a,items:i})=>{const n=i.length>1||i[0].label!==t;return je.jsxs(Ue,{"aria-label":n?void 0:t,children:[n&&je.jsx(e,{className:"rp-select-box-head",children:t}),i.map(e=>je.jsxs(Ee,{id:e.id,className:"rp-select-box",textValue:e.label,"aria-label":!n||a||e.label.includes(t)?e.label:`${t} ${e.label}`,children:[je.jsx(us,{swatch:e.swatch,look:e.look}),je.jsx("span",{children:e.label}),e.desc&&je.jsx(s,{slot:"description",className:"rp-label rp-truncate",children:e.desc}),je.jsx(Fe,{className:"rp-select-box-check"})]},e.id))]},t)})}),r&&je.jsx("span",{id:`${l}-help`,className:"rp-label",children:r})]})}const ms={"rose-pine/main":["#faf4ed #fffaf3 #464261 #286983 #56949f","#191724 #1f1d2e #e0def4 #31748f #9ccfd8"],"rose-pine/moon":["#faf4ed #fffaf3 #464261 #286983 #56949f","#232136 #2a273f #e0def4 #3e8fb0 #9ccfd8"],"catppuccin/frappe":["#e6e9ef #eff1f5 #4c4f69 #1e66f5 #179299","#292c3c #303446 #c6d0f5 #8caaee #81c8be"],"catppuccin/macchiato":["#e6e9ef #eff1f5 #4c4f69 #1e66f5 #179299","#1e2030 #24273a #cad3f5 #8aadf4 #8bd5ca"],"catppuccin/mocha":["#e6e9ef #eff1f5 #4c4f69 #1e66f5 #179299","#181825 #1e1e2e #cdd6f4 #89b4fa #94e2d5"],"arco/arco":["#ffffff #ffffff #1d2129 #165dff #00b42a","#17171a #232324 rgba(255,255,255,0.9) #3c7eff #27c346"],"semi/semi":["#ffffff #ffffff #1c1f23 #0064fa #3bb346","#16161a #232429 #f9f9f9 #54a9ff #5dc264"],"glass/glass":["rgba(255,255,255,0.4) rgba(255,255,255,0.4) #000000 #007aff #34c759","rgba(30,30,34,0.5) rgba(30,30,34,0.5) #ffffff #0a84ff #30d158"],"glass/clear":["rgba(255,255,255,0.4) rgba(255,255,255,0.4) #000000 #007aff #34c759","rgba(30,30,34,0.5) rgba(30,30,34,0.5) #ffffff #0a84ff #30d158"],"glass/frosted":["rgba(255,255,255,0.6) rgba(255,255,255,0.6) #000000 #007aff #34c759","rgba(23,23,23,0.5) rgba(23,23,23,0.5) #ffffff #0a84ff #30d158"],"glass/tinted":["rgba(255,255,255,0.85) rgba(255,255,255,0.85) #000000 #007aff #34c759","rgba(36,36,40,0.85) rgba(36,36,40,0.85) #ffffff #0a84ff #30d158"],"nord/nord":["#e5e9f0 #eceff4 #2e3440 #5e81ac #8fbcbb","#2e3440 #3b4252 #eceff4 #81a1c1 #8fbcbb"],"kary/kary":["#e7f0f7 #f0f6fb #65758d #3778b7 #428226","#1a1a1a #242424 #cacaca #819dc2 #7da76f"],"antd/antd":["#f5f5f5 #ffffff rgba(0,0,0,0.88) #1677ff #52c41a","#000000 #141414 rgba(255,255,255,0.85) #1668dc #49aa19"],"qiangguo/qiangguo":["#fffaf6 #f8ebe5 #2b0a0a #b0121a #1d6322","#2a0000 #4a0004 #ffd700 #ff6b5b #b8f2a0"],"halloween/halloween":["#fdf6e9 #f7ecd8 #2a1a33 #a84300 #2f6b1f","#140e1c #1d1528 #f3e9dc #ff8c3a #a8d84e"]},fs={"rose-pine/main":"palette.dLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{r as t,j as e}from"./vendor-react-64fcanlc.js";import{g as s,gi as i}from"./index-tt2n9Zk_.js";import{a,aU as r,aV as o,aX as l,a_ as n,a$ as h,b0 as d}from"./activity-St9WlHNk.js";import{G as m,C as c}from"./AreaCurve-DQSHOSpG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-CWX2Nx2b.js";import"./logs-DlBF9FTI.js";import"./Select-DO5D4JEL.js";import"./ItemText-EZM3RrYN.js";import"./AppearanceControls-D6ckn4zJ.js";import"./array-C0VuvQyb.js";function u({values:u,timestamps:p,color:x,fmt:j,locale:g,height:y=32,floor:f=0,inset:v=0,lines:w}){const M=t.useId(),b=a(),[k,C]=t.useState(null),[$,A]=s(Math.round,120),{tip:T,showAt:I,hide:L}=r(),P=t.useMemo(()=>u.filter(t=>null!==t),[u]),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]),_=A?.width??0,B=(A?.height??y)-2,D=t.useMemo(()=>{const t=[Math.min(...p),Math.max(...p)];return p.map(e=>o(e,t,[v,Math.max(v,_-v)]))},[p,_,v]),E=t.useCallback(t=>o(t,W,[B,2]),[W,B]),F=t.useMemo(()=>u.map((t,e)=>null===t?null:{x:D[e],y:E(t)}),[u,D,E]);return t.useLayoutEffect(()=>{null!==k&&null!=u[k]&&j&&g&&$.current&&A?I({x:D[k],y:E(u[k]),width:A.width,bounds:l($.current),label:i(g).format(p[k]),lines:w?.(k)??[j(u[k])]}):L()}),e.jsxs("div",{ref:$,style:{height:`var(--rp-spark-fill, ${y}px)`,width:"100%",position:"relative"},"aria-hidden":!!S||void 0,onPointerLeave:()=>C(null),children:[A&&!S&&e.jsx("svg",{"aria-hidden":!0,width:A.width,height:A.height,style:{display:"block",position:"absolute",inset:0},children:e.jsx("line",{x1:v,x2:A.width-v,y1:B,y2:B,stroke:b["hl-med"],strokeDasharray:"2 4"})}),S&&A&&e.jsxs(e.Fragment,{children:[e.jsx(n,{tip:T}),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:d(D,e.x))},children:[e.jsx("defs",{children:e.jsx(m,{id:M,color:x})}),e.jsx(c,{points:F,baseline:E(Math.max(0,W[0])),color:x,id:M,strokeWidth:1.5}),null!==k&&null!=u[k]&&e.jsx("circle",{cx:D[k],cy:E(u[k]),r:4,fill:x,stroke:b.base,strokeWidth:2})]})]})]})}export{u as SparkPlot};
|
||||
@@ -0,0 +1 @@
|
||||
import{r as t,j as e}from"./vendor-react-64fcanlc.js";import{g as s,gi as i}from"./index-DFPUSiWe.js";import{a,aU as r,aV as o,aX as l,a_ as n,a$ as h,b0 as d}from"./activity-pUN0wcVd.js";import{G as m,C as c}from"./AreaCurve-DQSHOSpG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-HzIJdCpg.js";import"./logs-lI5kXcWp.js";import"./Select-BFkb6iie.js";import"./ItemText-u3CUc_6I.js";import"./AppearanceControls-Bpq6OQjk.js";import"./array-C0VuvQyb.js";function u({values:u,timestamps:p,color:x,fmt:j,locale:y,height:g=32,floor:f=0,inset:v=0,lines:w}){const M=t.useId(),b=a(),[k,C]=t.useState(null),[$,A]=s(Math.round,120),{tip:I,showAt:L,hide:P}=r(),S=t.useMemo(()=>u.filter(t=>null!==t),[u]),T=S.length>1,U=t.useMemo(()=>[f>0?0:.85*Math.min(...S),Math.max(1.05*Math.max(...S)||1,f)],[S,f]),W=A?.width??0,_=(A?.height??g)-2,z=t.useMemo(()=>{const t=[Math.min(...p),Math.max(...p)];return p.map(e=>o(e,t,[v,Math.max(v,W-v)]))},[p,W,v]),B=t.useCallback(t=>o(t,U,[_,2]),[U,_]),D=t.useMemo(()=>u.map((t,e)=>null===t?null:{x:z[e],y:B(t)}),[u,z,B]);return t.useLayoutEffect(()=>{null!==k&&null!=u[k]&&j&&y&&$.current&&A?L({x:z[k],y:B(u[k]),width:A.width,bounds:l($.current),label:i(y).format(p[k]),lines:w?.(k)??[j(u[k])]}):P()}),e.jsxs("div",{ref:$,style:{height:`var(--rp-spark-fill, ${g}px)`,width:"100%",position:"relative"},"aria-hidden":!!T||void 0,onPointerLeave:()=>C(null),children:[A&&!T&&e.jsx("svg",{"aria-hidden":!0,width:A.width,height:A.height,style:{display:"block",position:"absolute",inset:0},children:e.jsx("line",{x1:v,x2:A.width-v,y1:_,y2:_,stroke:b["hl-med"],strokeDasharray:"2 4"})}),T&&A&&e.jsxs(e.Fragment,{children:[e.jsx(n,{tip:I}),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:d(z,e.x))},children:[e.jsx("defs",{children:e.jsx(m,{id:M,color:x})}),e.jsx(c,{points:D,baseline:B(Math.max(0,U[0])),color:x,id:M,strokeWidth:1.5}),null!==k&&null!=u[k]&&e.jsx("circle",{cx:z[k],cy:B(u[k]),r:4,fill:x,stroke:b.base,strokeWidth:2})]})]})]})}export{u as SparkPlot};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{u as a,ao as s,an as l,bK as r,ce as n,cm as t}from"./index-tt2n9Zk_.js";import{N as i,t as o,n as d}from"./NumberField-DT8-IUla.js";import{p as c}from"./logs-DlBF9FTI.js";import{q as u}from"./nodes-CWX2Nx2b.js";import{bD as m,bE as p,bF as b,bG as g}from"./activity-St9WlHNk.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-DO5D4JEL.js";import"./ItemText-EZM3RrYN.js";import"./AppearanceControls-D6ckn4zJ.js";function h({value:h,onChange:v,fields:j,isDisabled:x,nameError:C,agentError:D,intervalError:f,urlError:E,focusInterval:F}){const N=a(),k=s[l()],S=e=>v({...h,...e}),R=h.route||"routing",y=h.interval||(null==j.interval?"":String(j.interval)),A=m(y);return e.jsxs(e.Fragment,{children:[e.jsx(r,{isDisabled:x,label:N("ui.name"),value:h.name,placeholder:"sub-a",spellCheck:!1,error:C??void 0,onChange:e=>S({name:e})}),e.jsx(r,{isDisabled:x,label:N("nodes.url"),value:h.url,placeholder:"https://example.org/sub?token=…",description:N("nodes.urlScheme"),error:E??void 0,spellCheck:!1,onChange:e=>S({url:e}),onBlur:()=>{const e=u(h.url);e!==h.url&&S({url:e})}}),void 0!==j.interval&&e.jsxs(e.Fragment,{children:[e.jsx(c,{takeFocus:F,label:N("nodes.interval"),items:[...null===j.interval?[{id:"",label:"—"}]:[],...p(j.interval,k,N)],value:A?"typed":y,isDisabled:x,onChange:e=>S({interval:"typed"===e?g(y):e})}),A&&e.jsxs(n,{className:"top",children:[e.jsx(i,{isDisabled:x,label:N("nodes.intervalCount"),width:120,value:d(A.count),minValue:0,maxValue:Number.MAX_SAFE_INTEGER,step:1,error:f??void 0,onChange:e=>S({interval:b(o(e),A.unit)})}),e.jsx(c,{label:N("nodes.intervalUnit"),items:[{id:"m",label:N("nodes.minutes")},{id:"h",label:N("nodes.hours")}],value:A.unit,isDisabled:x,onChange:e=>S({interval:b(A.count,e)})})]})]}),j.agent&&e.jsx(r,{isDisabled:x,label:N("nodes.agent"),value:h.agent,placeholder:j.agent.fallback,description:j.agent.description,error:D??void 0,spellCheck:!1,onChange:e=>S({agent:e})}),void 0!==j.cache&&e.jsxs(e.Fragment,{children:[e.jsx(t,{isSelected:h.cache??j.cache,isDisabled:x,onChange:e=>S({cache:e}),children:N("nodes.cache")}),e.jsx("span",{className:"rp-label",children:N("nodes.cacheHelp")})]}),j.routes&&e.jsxs(e.Fragment,{children:[e.jsx(c,{label:N("settings.geodataRoute"),items:[{id:"routing",label:N("settings.geodataRouteRouting")},{id:"direct",label:N("settings.geodataRouteDirect")},...[...new Set([...j.routes,..."routing"===R||"direct"===R?[]:[R]])].map(e=>({id:e,label:e}))],value:R,isDisabled:x,onChange:e=>S({route:e})}),e.jsx("span",{className:"rp-label",children:N("nodes.routeHelp")})]})]})}export{h as SubscriptionFields};
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{u as a,ao as s,an as l,bK as r,ce as n,cm as t}from"./index-DFPUSiWe.js";import{N as i,t as o,n as d}from"./NumberField-kCp6sey7.js";import{p as c}from"./logs-lI5kXcWp.js";import{q as u}from"./nodes-HzIJdCpg.js";import{bD as m,bE as p,bF as b,bG as h}from"./activity-pUN0wcVd.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BFkb6iie.js";import"./ItemText-u3CUc_6I.js";import"./AppearanceControls-Bpq6OQjk.js";function g({value:g,onChange:v,fields:j,isDisabled:x,nameError:C,agentError:D,intervalError:f,urlError:E,focusInterval:F}){const N=a(),k=s[l()],S=e=>v({...g,...e}),R=g.route||"routing",y=g.interval||(null==j.interval?"":String(j.interval)),A=m(y);return e.jsxs(e.Fragment,{children:[e.jsx(r,{isDisabled:x,label:N("ui.name"),value:g.name,placeholder:"sub-a",spellCheck:!1,error:C??void 0,onChange:e=>S({name:e})}),e.jsx(r,{isDisabled:x,label:N("nodes.url"),value:g.url,placeholder:"https://example.org/sub?token=…",description:N("nodes.urlScheme"),error:E??void 0,spellCheck:!1,onChange:e=>S({url:e}),onBlur:()=>{const e=u(g.url);e!==g.url&&S({url:e})}}),void 0!==j.interval&&e.jsxs(e.Fragment,{children:[e.jsx(c,{takeFocus:F,label:N("nodes.interval"),items:[...null===j.interval?[{id:"",label:"—"}]:[],...p(j.interval,k,N)],value:A?"typed":y,isDisabled:x,onChange:e=>S({interval:"typed"===e?h(y):e})}),A&&e.jsxs(n,{className:"top",children:[e.jsx(i,{isDisabled:x,label:N("nodes.intervalCount"),width:120,value:d(A.count),minValue:0,maxValue:Number.MAX_SAFE_INTEGER,step:1,error:f??void 0,onChange:e=>S({interval:b(o(e),A.unit)})}),e.jsx(c,{label:N("nodes.intervalUnit"),items:[{id:"m",label:N("nodes.minutes")},{id:"h",label:N("nodes.hours")}],value:A.unit,isDisabled:x,onChange:e=>S({interval:b(A.count,e)})})]})]}),j.agent&&e.jsx(r,{isDisabled:x,label:N("nodes.agent"),value:g.agent,placeholder:j.agent.fallback,description:j.agent.description,error:D??void 0,spellCheck:!1,onChange:e=>S({agent:e})}),void 0!==j.cache&&e.jsxs(e.Fragment,{children:[e.jsx(t,{isSelected:g.cache??j.cache,isDisabled:x,onChange:e=>S({cache:e}),children:N("nodes.cache")}),e.jsx("span",{className:"rp-label",children:N("nodes.cacheHelp")})]}),j.routes&&e.jsxs(e.Fragment,{children:[e.jsx(c,{label:N("settings.geodataRoute"),items:[{id:"routing",label:N("settings.geodataRouteRouting")},{id:"direct",label:N("settings.geodataRouteDirect")},...[...new Set([...j.routes,..."routing"===R||"direct"===R?[]:[R]])].map(e=>({id:e,label:e}))],value:R,isDisabled:x,onChange:e=>S({route:e})}),e.jsx("span",{className:"rp-label",children:N("nodes.routeHelp")})]})]})}export{g as SubscriptionFields};
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,$ as t,b as l,j as n}from"./vendor-react-64fcanlc.js";import{ei as i,ej as o,ek as r,el as s,em as a,en as d,c_ as c,eo as u,ep as h,eq as y,bt as p,e3 as f,cW as g,cP as m,er as b,cZ as w,cO as v,es as x,et as k,eu as C,ev as K,e0 as I,cX as S,ew as M,ex as E,ey as R,ez as z,eA as D,eB as P,eC as N,cM as H,cN as W,eD as T,eE as A,e2 as F,eF as V,cV as L,eG as B,eH as j,eI as O,d0 as $,e4 as U,e7 as _,eJ as Y,eK as q,db as X,$ as G,ea as Z,eL as J,dd as Q,d4 as ee,d6 as te,eM as le,eN as ne,da as ie,eO as oe,eP as re,de as se,e5 as ae,ef as de,d5 as ce,eQ as ue,e6 as he,eR as ye,eS as pe,eT as fe,eU as ge,eV as me,ec as be,eW as we,eX as ve,ee as xe,u as ke,j as Ce,b5 as Ke,b6 as Ie,eY as Se,ah as Me,cq as Ee,aF as Re,aE as ze,bz as De,b9 as Pe,eZ as Ne,T as He}from"./index-DFPUSiWe.js";import{a as We,$ as Te,b as Ae,c as Fe,d as Ve,e as Le,f as Be}from"./useGridSelectionCheckbox-wMhI-U-R.js";import{f as je,g as Oe,h as $e,i as Ue,j as _e}from"./Select-BFkb6iie.js";import{$ as Ye}from"./logs-lI5kXcWp.js";import{a as qe,c as Xe,e as Ge,d as Ze,$ as Je}from"./Virtualizer-BH6NJSXn.js";import{C as Qe}from"./Checkbox-xU-Ds7Hn.js";class et{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 tt{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.itemLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{r as e,$ as t,b as l,j as n}from"./vendor-react-64fcanlc.js";import{ei as i,ej as o,ek as r,el as s,em as a,en as d,c_ as c,eo as u,ep as h,eq as y,bt as p,e3 as f,cW as g,cP as m,er as b,cZ as w,cO as v,es as x,et as k,eu as C,ev as K,e0 as I,cX as S,ew as M,ex as E,ey as R,ez as z,eA as D,eB as P,eC as N,cM as H,cN as W,eD as T,eE as A,e2 as F,eF as V,cV as L,eG as B,eH as j,eI as O,d0 as $,e4 as U,e7 as _,eJ as Y,eK as q,db as X,$ as G,ea as Z,eL as J,dd as Q,d4 as ee,d6 as te,eM as le,eN as ne,da as ie,eO as oe,eP as re,de as se,e5 as ae,ef as de,d5 as ce,eQ as ue,e6 as he,eR as ye,eS as pe,eT as fe,eU as ge,eV as me,ec as be,eW as we,eX as ve,ee as xe,u as ke,j as Ce,b5 as Ke,b6 as Ie,eY as Se,ah as Me,cq as Ee,aF as Re,aE as ze,bz as De,b9 as Pe,eZ as Ne,T as He}from"./index-tt2n9Zk_.js";import{b as We,a as Te,c as Ae,d as Fe,e as Ve,f as Le,g as Be}from"./useGridSelectionCheckbox-EoqO9l1F.js";import{f as je,g as Oe,h as $e,i as Ue,j as _e}from"./Select-DO5D4JEL.js";import{$ as Ye}from"./logs-DlBF9FTI.js";import{a as qe,c as Xe,e as Ge,d as Ze,$ as Je}from"./Virtualizer-Bm8y6eIs.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 et{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,keLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,$ as t,j as s}from"./vendor-react-64fcanlc.js";import{e0 as i,cP as l,e1 as a,cN as n,cO as o,e2 as r,bt as d,e3 as c,cW as u,c_ as b,e4 as h,e5 as f,db as p,dd as y,de as v,d4 as g,d5 as K,e6 as m,d0 as S,e7 as x,e8 as P,e9 as D,ea as C,d1 as E,da as w,eb as F,ec as M,d6 as N,ed as I,ee as k,ef as j,be as R,eg as H,ce as L,eh as V}from"./index-tt2n9Zk_.js";import{a as T}from"./useGridSelectionCheckbox-EoqO9l1F.js";import{e as A}from"./Select-DO5D4JEL.js";const O=new WeakMap;function z(e,t,s){if(!e)return"";return"string"==typeof t&&(t=t.replace(/\s+/g,"")),`${O.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 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:n,selectionManager:o}=A({...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:n,selectionManager:o,selectedKey:s,setSelectedKey:i,selectedItem:r}}({...t,onSelectionChange:t.onSelectionChange?e=>{null!=e&&t.onSelectionChange?.(e)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:t.defaultSelectedKey??$(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set)??void 0}),{selectionManager:i,collection:l,selectedKey:a}=s,n=e.useRef(a);return e.useEffect(()=>{let e=a;null!=t.selectedKey||!i.isEmpty&&null!=e&&l.getItem(e)||(e=$(l,s.disabledKeys),null!=e&&i.setSelectedKeys([e])),(null!=e&&null==i.focusedKey||!i.isFocused&&e!==n.current)&&i.setFocusedKey(e),n.current=e}),{...s,isDisabled:t.isDisabled||!1}}function $(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),_=e.forwardRef(function(s,i){[s,i]=S(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(x,{content:l},e=>t.createElement(q,{props:s,collection:e,tabsRef:i}))});function q({props:s,tabsRef:i,collection:a}){let{orientation:n="horizontal"}=s,r=W({...s,collection:a,children:void 0}),{focusProps:d,isFocused:c,isFocusVisible:u}=y({within:!0}),b=e.useMemo(()=>({orientation:n,isFocusWithin:c,isFocusVisible:u}),[n,c,u]),h=g({...s,defaultClassName:"react-aria-Tabs",values:b}),f=l(s,{global:!0});return t.createElement(K.div,{...o(f,h,d),ref:i,slot:s.slot||void 0,"data-focused":c||void 0,"data-orientation":n,"data-focus-visible":u||void 0,"data-disabled":r.isDisabled||void 0},t.createElement(N,{values:[[U,s],[G,r]]},h.children))}const J=e.forwardRef(function(s,i){return e.useContext(G)?t.createElement(Q,{props:s,forwardedRef:i}):t.createElement(h,s)});function Q({props:s,forwardedRef:i}){let a=e.useContext(G),{CollectionRoot:n}=e.useContext(C),{orientation:b="horizontal",keyboardActivation:h="automatic"}=E(U),f=p(i),{tabListProps:y}=function(t,s,i){let{orientation:l="horizontal",keyboardActivation:a="automatic"}=t,{collection:n,selectionManager:b,disabledKeys:h}=s,{direction:f}=d(),p=e.useMemo(()=>new B(n,f,l,h),[n,h,l,f]),{collectionProps:y}=c({ref:i,selectionManager:b,keyboardDelegate:p,selectOnFocus:"automatic"===a,disallowEmptySelection:!0,scrollRef:i,linkBehavior:"selection"}),v=u();O.set(s,v);let g=r({...t,id:v});return{tabListProps:{...o(y,g),role:"tablist","aria-orientation":l,tabIndex:void 0}}}({...s,orientation:b,keyboardActivation:h},a,f),v=g({...s,children:null,defaultClassName:"react-aria-TabList",values:{orientation:b,state:a}}),m=l(s,{global:!0});return delete m.id,t.createElement(K.div,{...o(m,v,y),ref:f,"data-orientation":b||void 0},t.createElement(Line truncated
|
||||
import{r as e,$ as t,j as s}from"./vendor-react-64fcanlc.js";import{e0 as i,cP as l,e1 as a,cN as n,cO as o,e2 as r,bt as d,e3 as c,cW as u,c_ as b,e4 as h,e5 as f,db as p,dd as y,de as v,d4 as g,d5 as K,e6 as m,d0 as S,e7 as x,e8 as P,e9 as D,ea as C,d1 as E,da as w,eb as F,ec as M,d6 as N,ed as I,ee as k,ef as j,be as R,eg as H,ce as L,eh as V}from"./index-DFPUSiWe.js";import{$ as T}from"./useGridSelectionCheckbox-wMhI-U-R.js";import{e as A}from"./Select-BFkb6iie.js";const O=new WeakMap;function z(e,t,s){if(!e)return"";return"string"==typeof t&&(t=t.replace(/\s+/g,"")),`${O.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 B(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:n,selectionManager:o}=A({...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:n,selectionManager:o,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,n=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!==n.current)&&i.setFocusedKey(e),n.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),_=e.forwardRef(function(s,i){[s,i]=S(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(x,{content:l},e=>t.createElement(q,{props:s,collection:e,tabsRef:i}))});function q({props:s,tabsRef:i,collection:a}){let{orientation:n="horizontal"}=s,r=B({...s,collection:a,children:void 0}),{focusProps:d,isFocused:c,isFocusVisible:u}=y({within:!0}),b=e.useMemo(()=>({orientation:n,isFocusWithin:c,isFocusVisible:u}),[n,c,u]),h=g({...s,defaultClassName:"react-aria-Tabs",values:b}),f=l(s,{global:!0});return t.createElement(K.div,{...o(f,h,d),ref:i,slot:s.slot||void 0,"data-focused":c||void 0,"data-orientation":n,"data-focus-visible":u||void 0,"data-disabled":r.isDisabled||void 0},t.createElement(N,{values:[[U,s],[G,r]]},h.children))}const J=e.forwardRef(function(s,i){return e.useContext(G)?t.createElement(Q,{props:s,forwardedRef:i}):t.createElement(h,s)});function Q({props:s,forwardedRef:i}){let a=e.useContext(G),{CollectionRoot:n}=e.useContext(C),{orientation:b="horizontal",keyboardActivation:h="automatic"}=E(U),f=p(i),{tabListProps:y}=function(t,s,i){let{orientation:l="horizontal",keyboardActivation:a="automatic"}=t,{collection:n,selectionManager:b,disabledKeys:h}=s,{direction:f}=d(),p=e.useMemo(()=>new $(n,f,l,h),[n,h,l,f]),{collectionProps:y}=c({ref:i,selectionManager:b,keyboardDelegate:p,selectOnFocus:"automatic"===a,disallowEmptySelection:!0,scrollRef:i,linkBehavior:"selection"}),v=u();O.set(s,v);let g=r({...t,id:v});return{tabListProps:{...o(y,g),role:"tablist","aria-orientation":l,tabIndex:void 0}}}({...s,orientation:b,keyboardActivation:h},a,f),v=g({...s,children:null,defaultClassName:"react-aria-TabList",values:{orientation:b,state:a}}),m=l(s,{global:!0});return delete m.id,t.createElement(K.div,{...o(m,v,y),ref:f,"data-orientation":b||void 0},t.createElement(Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,j as n,a as t}from"./vendor-react-64fcanlc.js";import{an as r,b1 as s,c as a,dv as l,cq as c,dw as o,b9 as u}from"./index-tt2n9Zk_.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(a,{href:e,className:"rp-tag rp-tag-link",children:n.jsx("span",{className:"rp-tag-label",children:t})})}function d({count:t,label:r,names:s}){const[a,u]=e.useState(!1);return n.jsxs(l,{delay:400,isOpen:a,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:s})]})}const p=(e,n)=>function(e,n,t,r){const s=e=>e<=t+.01,a=[0];for(const c of e)a.push(a[a.length-1]+c+r);if(s(a[e.length]-r))return e.length;let l=e.length-1;for(;l>0&&!s(a[l]+n(e.length-l));)l--;return l}(e.tags,n=>e.more[String(n).length-1],n,e.gap);function f(e,n,t){const r=[...e.children].map(e=>e.getBoundingClientRect().width);return{key:n,tags:r.slice(0,t),more:r.slice(t),gap:Number.parseFloat(getComputedStyle(e).columnGap)||0}}const 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({count:e}){return n.jsx("button",{type:"button",className:"rp-tag rp-tag-more",tabIndex:-1,"aria-hidden":"true",children:n.jsxs("span",{className:"rp-tag-label",children:["+",e]})})}function y({label:t,items:a,more:l}){const c=r(),o=e.useRef(null),u=e.useRef(null),i=e.useRef(new Set),g=`${c}\n${a.map(e=>e.label).join("\n")}`,[y,N]=e.useState({key:g,count:null,probe:!0}),w=y.key===g?y.count:null;e.useLayoutEffect(()=>{const e=o.current;if(y.probe||null!==w||!e?.getClientRects().length)return;const n=f(e,g,a.length);u.current=n,N({key:g,count:p(n,e.getBoundingClientRect().width)})},[y,g,w,a.length]),e.useLayoutEffect(()=>{const e=o.current;if(!e)return;const n=()=>N({key:g,count:null});m.set(e,{remeasure:n,read:()=>{if(!e.getClientRects().length)return null;if(y.probe){const n=f(e,g,a.length);u.current=n;const t=p(n,e.getBoundingClientRect().width);return()=>N({key:g,count:t})}const t=u.current,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 s=p(t,e.getBoundingClientRect().width);return s===w?null:()=>N({key:g,count:s})}});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 s of i.current)r.has(s)||t.unobserve(s);for(const s of r)i.current.has(s)||t.observe(s);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=null===w?0:a.length-w,k=R>0?s(c,a.map(e=>e.label)):"",v=null===w&&a.length?Array.from({length:String(a.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:[a.slice(0,w??a.length).map(e=>y.probe?n.jsx("span",{className:"rp-tag rp-tag-link","aria-hidden":"true",children:n.jsx("span",{className:"rp-tag-label",children:e.label})},e.id):n.jsx(h,{href:e.href,children:e.label},e.id)),v.map(e=>n.jsx(x,{count:e},e)),R>0&&n.jsx(d,{count:R,label:l(R),names:k})]})}export{y 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{an as r,b1 as s,c as a,dv as l,cq as c,dw as o,b9 as u}from"./index-DFPUSiWe.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(a,{href:e,className:"rp-tag rp-tag-link",children:n.jsx("span",{className:"rp-tag-label",children:t})})}function d({count:t,label:r,names:s}){const[a,u]=e.useState(!1);return n.jsxs(l,{delay:400,isOpen:a,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:s})]})}const p=(e,n)=>function(e,n,t,r){const s=e=>e<=t+.01,a=[0];for(const c of e)a.push(a[a.length-1]+c+r);if(s(a[e.length]-r))return e.length;let l=e.length-1;for(;l>0&&!s(a[l]+n(e.length-l));)l--;return l}(e.tags,n=>e.more[String(n).length-1],n,e.gap);function f(e,n,t){const r=[...e.children].map(e=>e.getBoundingClientRect().width);return{key:n,tags:r.slice(0,t),more:r.slice(t),gap:Number.parseFloat(getComputedStyle(e).columnGap)||0}}const 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({count:e}){return n.jsx("button",{type:"button",className:"rp-tag rp-tag-more",tabIndex:-1,"aria-hidden":"true",children:n.jsxs("span",{className:"rp-tag-label",children:["+",e]})})}function y({label:t,items:a,more:l}){const c=r(),o=e.useRef(null),u=e.useRef(null),i=e.useRef(new Set),g=`${c}\n${a.map(e=>e.label).join("\n")}`,[y,N]=e.useState({key:g,count:null,probe:!0}),w=y.key===g?y.count:null;e.useLayoutEffect(()=>{const e=o.current;if(y.probe||null!==w||!e?.getClientRects().length)return;const n=f(e,g,a.length);u.current=n,N({key:g,count:p(n,e.getBoundingClientRect().width)})},[y,g,w,a.length]),e.useLayoutEffect(()=>{const e=o.current;if(!e)return;const n=()=>N({key:g,count:null});m.set(e,{remeasure:n,read:()=>{if(!e.getClientRects().length)return null;if(y.probe){const n=f(e,g,a.length);u.current=n;const t=p(n,e.getBoundingClientRect().width);return()=>N({key:g,count:t})}const t=u.current,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 s=p(t,e.getBoundingClientRect().width);return s===w?null:()=>N({key:g,count:s})}});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 s of i.current)r.has(s)||t.unobserve(s);for(const s of r)i.current.has(s)||t.observe(s);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=null===w?0:a.length-w,k=R>0?s(c,a.map(e=>e.label)):"",v=null===w&&a.length?Array.from({length:String(a.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:[a.slice(0,w??a.length).map(e=>y.probe?n.jsx("span",{className:"rp-tag rp-tag-link","aria-hidden":"true",children:n.jsx("span",{className:"rp-tag-label",children:e.label})},e.id):n.jsx(h,{href:e.href,children:e.label},e.id)),v.map(e=>n.jsx(x,{count:e},e)),R>0&&n.jsx(d,{count:R,label:l(R),names:k})]})}export{y as F,h as L,g as T,i as a};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as a}from"./vendor-react-64fcanlc.js";import{ao as s,an as o,dV as r,T as t,dU as n,a3 as e}from"./index-tt2n9Zk_.js";function d({at:d}){const i=s[o()],c=r();return a.jsx(t,{text:d?e(d,i):void 0,children:n(d,i,c)})}export{d as T};
|
||||
import{j as a}from"./vendor-react-64fcanlc.js";import{ao as s,an as o,dV as r,T as t,dU as n,a3 as e}from"./index-DFPUSiWe.js";function d({at:d}){const i=s[o()],c=r();return a.jsx(t,{text:d?e(d,i):void 0,children:n(d,i,c)})}export{d as T};
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as r}from"./vendor-react-64fcanlc.js";import{bW as s,u as a,an as i,ab as l,r as t,t as n,A as o,D as d,cd as u,a8 as m,a5 as p,aL as c,bJ as h,cl as j,ce as b,bK as v,B as x,cn as f,ah as _,T as k,C as y,c as g}from"./index-DFPUSiWe.js";import{u as N,r as w}from"./flows-Cd1KbGP2.js";import{c as C,g as q,E as M,f as A,s as L,R as S,L as D,p as R,D as T,K as V}from"./logs-lI5kXcWp.js";import{e as E,t as F,c as I,n as P,d as O,q as W,a as Q,b as $}from"./Rules-Bt5JZQKX.js";import{b as H,p as K}from"./probe-Db_cbYvO.js";import{u as U,R as z}from"./useQuickRule-BGNvNXBX.js";import{r as B}from"./activity-pUN0wcVd.js";import{N as G,t as J,n as X}from"./NumberField-kCp6sey7.js";import{D as Y}from"./Table-6xnX6eUx.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BFkb6iie.js";import"./ItemText-u3CUc_6I.js";import"./AppearanceControls-Bpq6OQjk.js";import"./nodes-HzIJdCpg.js";import"./Tabs-HxpCyCLR.js";import"./useGridSelectionCheckbox-wMhI-U-R.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./CheckboxSet-CRYfymLL.js";import"./Checkbox-xU-Ds7Hn.js";import"./Coverage-BRhvKmi_.js";import"./rule-D1hMywhM.js";import"./labels-D8xxfRTQ.js";import"./nav-BLmatpph.js";import"./recorder-BHyqDNp5.js";import"./geodataUpdate-BANPx3Of.js";/* empty css */import"./LinkOut-B50sd8cz.js";import"./SearchSelect-CsXd0DEh.js";import"./SearchList-C88Y6c53.js";import"./Virtualizer-BH6NJSXn.js";import"./geodata-CvcFemyc.js";import"./AddCircle-V0Kluz-m.js";const Z=e=>/^\d+$/.test(e)&&Number(e)>=1&&Number(e)<=65535,ee={none:"rule.resolveNone",live:"rule.resolveLive",query:"rule.resolveQuery"};function re({form:r,setForm:h,advanced:j,setAdvanced:b,touched:v},x){const f=a(),_=i(),k=l(),y=t(),g=y.data?.resources,S=C(n(g,"groups",{whileLoading:!1})),D=q(n(g,"nodes",{whileLoading:!1})),R=N(n(g,"rules",{whileLoading:!1})),T=M(D.refetch),{choices:V}=T,z=U(x),G=e.useMemo(()=>new Map(S.data?.map(e=>[e.name,e])??[]),[S.data]),J=e.useMemo(()=>new Map(S.data?.map(e=>[e.id,e])??[]),[S.data]),X=e.useMemo(()=>new Map(D.data?.map(e=>[e.id,e])??[]),[D.data]),Y=e.useMemo(()=>new Map(R.data?.rules.map(e=>[e.rule_id,e])??[]),[R.data]),[re,se]=e.useState(null),ae=n(g,"providers",{whileLoading:!1}),ie=A(!!re&&ae),le=n(g,"groups",{whileLoading:!1}),{busy:te,error:ne,run:oe}=o(),de=ne??y.error,ue=e.useEffectEvent(e=>d("negative",f("rule.traceFailed"),u(e,f)));e.useEffect(()=>{de&&ue(de)},[de]);const me=r.domain.trim()||r.dst_ip.trim()?r.dst_ip.trim()&&!s(r.dst_ip)?{field:"dst_ip",key:"ui.invalidIp"}:Z(r.dst_port)?r.src_ip.trim()&&!s(r.src_ip)?{field:"src_ip",key:"ui.invalidIp"}:r.src_port.trim()&&!Z(r.src_port)?{field:"src_port",key:"rule.invalidPort"}:!r.dscp.trim()||(pe=r.dscp,/^\d+$/.test(pe)&&Number(pe)>=0&&Number(pe)<=63)?r.mark.trim()&&!(e=>/^(\d+|0x[\da-f]+)$/i.test(e.trim())&&Number(e.trim())<=4294967295)(r.mark)?{field:"mark",key:"rule.invalidMark"}:"live"!==r.resolve&&"query"!==r.resolve||r.domain.trim()?"live"!==r.resolve&&"query"!==r.resolve||!r.dst_ip.trim()?null:{field:"dst_ip",key:"rule.invalidLive"}:{field:"domain",key:"rule.invalidLive"}:{field:"dscp",key:"rule.invalidDscp"}:{field:"dst_port",key:"rule.invalidPort"}:{field:"domain",key:"rule.invalidTarget"};var pe;const ce=v?me:null,he=y.data?.resources.routing_trace,je=he?.resolve_modes??[],be=y.data?.resources.dns_query,ve=be?.record_types,xe=e.useMemo(()=>(ve??[]).filter(e=>"A"===e||"AAAA"===e),[ve]),fe=be?.limits?.max_types_per_request??1,_e=[...je,...!je.includes("live")&&je.includes("none")&&be?.available&&xe.length?["query"]:[]],ke=!1!==he?.available,ye=""!==r.domain.trim()&&!r.dst_ip.trim(),ge=r.resolve??(ye&&_e.includes("live")?"live":ye&&_e.includes("query")?"query":"none"),Ne=!me&&ke&&_e.includes(ge),we=e.useCallback(async()=>{if(te||!Ne)return;const e=function(e){const r=e=>s(e),a={network:e.network,dst_port:Number(e.dst_port),...e.domain.trim()?{domain:e.domain.trim()}:{dst_ip:r(e.dst_ip)}};return e.domain.trim()&&e.dst_ip.trim()&&(a.dst_ip=r(e.dst_ip)),e.src_ip.trim()&&(a.src_ip=r(e.src_ip)),e.src_port.trim()&&(a.src_port=Number(e.src_port)),a.pname=e.pname.trim(),e.dscp.trim()&&(a.dscp=Number(e.dscp)),e.mark.trim()&&(a.mark=Number(e.mark.trim())),a}(r),a=await oe("trace",r=>w({...k,dnsQuery:(e,s)=>L(k.dnsQuery,e,s,fe,r)},{input:e,resolve:ge,recordTypes:xe},r));se(a?{run:a,input:e}:null)},[k,te,Ne,r,ge,xe,fe,oe]),Ce=R.data?.generation_id,qe=e.useMemo(()=>re?.run.traces.flatMap(e=>e.evaluations.map(r=>({evaluation:r,traced:e.generation_id,current:Ce===e.generation_id}))).map(({evaluation:e,traced:r,current:s},a)=>{const i=e.rules.find(e=>"matched"===e.result),l="determinate"!==e.decision&&!e.outbound&&s?(i&&Y.get(i.rule_id)?.outbound)??null:null,t=e.outbound??l,n=t&&!m(t)?p(t,re.input.network,G,J,X):null,o=E(e,a,re.input.domain??void 0,l,n,!!n?.node&&V(n.node).length>0,T.busy,f,_);return{...o,rows:o.rows.map(e=>({...e,href:B(e.id,s&&Y.has(e.id))})),links:I(n,le,ae?ie.data?.providers:[],f),seed:F(re.input,e,r)}})??[],[re,Ce,YLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{r as e,j as r}from"./vendor-react-64fcanlc.js";import{bW as s,u as a,an as i,ab as l,r as t,t as n,A as o,D as d,cd as u,a8 as m,a5 as p,aL as c,bJ as h,cl as j,ce as v,bK as b,B as f,cn as x,ah as _,T as k,C as y,c as g}from"./index-tt2n9Zk_.js";import{u as w,r as N}from"./flows-GETlXTEg.js";import{c as C,g as q,E as A,f as M,s as L,R as D,L as S,p as R,D as T,K as V}from"./logs-DlBF9FTI.js";import{e as E,t as F,c as I,n as P,d as O,q as Q,a as W,b as $}from"./Rules-DC4HCNUS.js";import{b as H,p as K}from"./probe-Bc_Ehmu3.js";import{u as U,R as z}from"./useQuickRule-DGnvKUbx.js";import{r as B}from"./activity-St9WlHNk.js";import{N as G,t as J,n as Y}from"./NumberField-DT8-IUla.js";import{D as Z}from"./Table-CNIdPyPm.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-DO5D4JEL.js";import"./ItemText-EZM3RrYN.js";import"./AppearanceControls-D6ckn4zJ.js";import"./nodes-CWX2Nx2b.js";import"./Tabs-DWzcwxse.js";import"./useGridSelectionCheckbox-EoqO9l1F.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./ConditionRow-DDRkT9im.js";import"./Coverage-D0M5eSx-.js";import"./rule-C_tGvS3P.js";import"./labels-D8xxfRTQ.js";import"./nav-DL8Z2h52.js";import"./recorder-BHyqDNp5.js";import"./geodataUpdate-C5Lm7JjR.js";/* empty css */import"./LinkOut-XZA33RqA.js";import"./SearchSelect-OEHKvvM7.js";import"./SearchList-D3Aknep5.js";import"./Virtualizer-Bm8y6eIs.js";import"./AddCircle-DSnjUOi9.js";const X=e=>/^\d+$/.test(e)&&Number(e)>=1&&Number(e)<=65535,ee={none:"rule.resolveNone",live:"rule.resolveLive",query:"rule.resolveQuery"};function re({form:r,setForm:h,advanced:j,setAdvanced:v,touched:b},f){const x=a(),_=i(),k=l(),y=t(),g=y.data?.resources,D=C(n(g,"groups",{whileLoading:!1})),S=q(n(g,"nodes",{whileLoading:!1})),R=w(n(g,"rules",{whileLoading:!1})),T=A(S.refetch),{choices:V}=T,z=U(f),G=e.useMemo(()=>new Map(D.data?.map(e=>[e.name,e])??[]),[D.data]),J=e.useMemo(()=>new Map(D.data?.map(e=>[e.id,e])??[]),[D.data]),Y=e.useMemo(()=>new Map(S.data?.map(e=>[e.id,e])??[]),[S.data]),Z=e.useMemo(()=>new Map(R.data?.rules.map(e=>[e.rule_id,e])??[]),[R.data]),[re,se]=e.useState(null),ae=n(g,"providers",{whileLoading:!1}),ie=M(!!re&&ae),le=n(g,"groups",{whileLoading:!1}),{busy:te,error:ne,run:oe}=o(),de=ne??y.error,ue=e.useEffectEvent(e=>d("negative",x("rule.traceFailed"),u(e,x)));e.useEffect(()=>{de&&ue(de)},[de]);const me=r.domain.trim()||r.dst_ip.trim()?r.dst_ip.trim()&&!s(r.dst_ip)?{field:"dst_ip",key:"ui.invalidIp"}:X(r.dst_port)?r.src_ip.trim()&&!s(r.src_ip)?{field:"src_ip",key:"ui.invalidIp"}:r.src_port.trim()&&!X(r.src_port)?{field:"src_port",key:"rule.invalidPort"}:!r.dscp.trim()||(pe=r.dscp,/^\d+$/.test(pe)&&Number(pe)>=0&&Number(pe)<=63)?r.mark.trim()&&!(e=>/^(\d+|0x[\da-f]+)$/i.test(e.trim())&&Number(e.trim())<=4294967295)(r.mark)?{field:"mark",key:"rule.invalidMark"}:"live"!==r.resolve&&"query"!==r.resolve||r.domain.trim()?"live"!==r.resolve&&"query"!==r.resolve||!r.dst_ip.trim()?null:{field:"dst_ip",key:"rule.invalidLive"}:{field:"domain",key:"rule.invalidLive"}:{field:"dscp",key:"rule.invalidDscp"}:{field:"dst_port",key:"rule.invalidPort"}:{field:"domain",key:"rule.invalidTarget"};var pe;const ce=b?me:null,he=y.data?.resources.routing_trace,je=he?.resolve_modes??[],ve=y.data?.resources.dns_query,be=ve?.record_types,fe=e.useMemo(()=>(be??[]).filter(e=>"A"===e||"AAAA"===e),[be]),xe=ve?.limits?.max_types_per_request??1,_e=[...je,...!je.includes("live")&&je.includes("none")&&ve?.available&&fe.length?["query"]:[]],ke=!1!==he?.available,ye=""!==r.domain.trim()&&!r.dst_ip.trim(),ge=r.resolve??(ye&&_e.includes("live")?"live":ye&&_e.includes("query")?"query":"none"),we=!me&&ke&&_e.includes(ge),Ne=e.useCallback(async()=>{if(te||!we)return;const e=function(e){const r=e=>s(e),a={network:e.network,dst_port:Number(e.dst_port),...e.domain.trim()?{domain:e.domain.trim()}:{dst_ip:r(e.dst_ip)}};return e.domain.trim()&&e.dst_ip.trim()&&(a.dst_ip=r(e.dst_ip)),e.src_ip.trim()&&(a.src_ip=r(e.src_ip)),e.src_port.trim()&&(a.src_port=Number(e.src_port)),a.pname=e.pname.trim(),e.dscp.trim()&&(a.dscp=Number(e.dscp)),e.mark.trim()&&(a.mark=Number(e.mark.trim())),a}(r),a=await oe("trace",r=>N({...k,dnsQuery:(e,s)=>L(k.dnsQuery,e,s,xe,r)},{input:e,resolve:ge,recordTypes:fe},r));se(a?{run:a,input:e}:null)},[k,te,we,r,ge,fe,xe,oe]),Ce=R.data?.generation_id,qe=e.useMemo(()=>re?.run.traces.flatMap(e=>e.evaluations.map(r=>({evaluation:r,traced:e.generation_id,current:Ce===e.generation_id}))).map(({evaluation:e,traced:r,current:s},a)=>{const i=e.rules.find(e=>"matched"===e.result),l="determinate"!==e.decision&&!e.outbound&&s?(i&&Z.get(i.rule_id)?.outbound)??null:null,t=e.outbound??l,n=t&&!m(t)?p(t,re.input.network,G,J,Y):null,o=E(e,a,re.input.domain??void 0,l,n,!!n?.node&&V(n.node).length>0,T.busy,x,_);return{...o,rows:o.rows.map(e=>({...e,href:B(e.id,s&&Z.has(e.id))})),links:I(n,le,ae?ie.data?.providers:[],x),seed:F(re.input,e,r)}})??[],[re,Ce,Z,G,J,Y,le,ae,ie.data,V,T.busy,x,_]),Ae=e.useMemo(()=>re?{staLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{el as t,bt as e,cZ as i,er as n,f0 as s,f1 as o,ey as r,eH as l,eS as a,eU as h,f2 as d,ea as u,f3 as c}from"./index-tt2n9Zk_.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{el as t,bt as e,cZ as i,er as n,f0 as s,f1 as o,ey as r,eH as l,eS as a,eU as h,f2 as d,ea as u,f3 as c}from"./index-DFPUSiWe.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
-1
@@ -1 +1 @@
|
||||
import{r as e,$ as t,j as a}from"./vendor-react-64fcanlc.js";import{fH as n,bt as r,f4 as l,fa as s,fS as i,cO as o,gt as u,cV as c,cN as d,cQ as m,cZ as g,g3 as h,c_ as p,d0 as b,g0 as f,d3 as v,d4 as w,cP as T,d6 as y,d7 as x,d5 as P,de as D,d1 as j,dd as C,aE as V,db as M,gu as S,g7 as E,B as F,cz as R,df as N,u as k,gv as I,bm as H,cm as z}from"./index-tt2n9Zk_.js";import{$ as K}from"./logs-DlBF9FTI.js";import{u as B,s as O,M as L,w as A,D as $}from"./wallpaper-CEC7gitM.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-DO5D4JEL.js";import"./ItemText-EZM3RrYN.js";import"./AppearanceControls-D6ckn4zJ.js";import"./nodes-CWX2Nx2b.js";const X=new WeakMap;function Y(e,t){let a=X.get(e);if(!a)throw new Error("Unknown slider state");return`${a.id}-${t}`}const G=0,U=100,q=1;function W(t){const{isDisabled:a=!1,minValue:n=G,maxValue:r=U,numberFormatter:l,step:i=q,orientation:o="horizontal"}=t;let u=e.useMemo(()=>{let e=(r-n)/10;return e=h(e,0,e+i,i),Math.max(e,i)},[i,r,n]),c=e.useCallback(e=>e?.map((t,a)=>{let l=0===a?n:e[a-1],s=a===e.length-1?r:e[a+1];return h(t,l,s,i)}),[n,r,i]),d=e.useMemo(()=>c(Q(t.value)),[t.value,c]),m=e.useMemo(()=>c(Q(t.defaultValue)??[n]),[t.defaultValue,n,c]),g=Z(t.value,t.defaultValue,t.onChange),b=Z(t.value,t.defaultValue,t.onChangeEnd);const[f,v]=p(d,m,g);let[w]=e.useState(f);const[T,y]=e.useState(new Array(f.length).fill(!1)),x=e.useRef(new Array(f.length).fill(!0)),[P,D]=e.useState(void 0),j=e.useRef(f),C=e.useRef(T);function V(e){return(e-n)/(r-n)}function M(e){return 0===e?n:f[e-1]}function S(e){return e===f.length-1?r:f[e+1]}function E(e){return x.current[e]}function F(e,t){if(a||!E(e))return;const n=M(e),r=S(e);t=h(t,n,r,i);let l=_(j.current,e,t);var s;s=l,j.current=s,v(s)}let R=e.useRef(null);function N(e=f){switch("number"==typeof e&&(e=[e]),e.length){case 0:return"";case 1:return l.format(e[0]);case 2:return l.formatRange(e[0],e[1]);default:{let t=e.map(e=>l.format(e)),a=R.current;return a&&a.resolvedOptions().locale===l.resolvedOptions().locale||(a=R.current=new Intl.ListFormat(l.resolvedOptions().locale,{type:"unit"})),a.format(t)}}}function k(e){return s((t=e*(r-n)+n,Math.round((t-n)/i)*i+n),n,r);var t}return{values:f,defaultValues:void 0!==t.defaultValue?m:w,getThumbValue:e=>f[e],setThumbValue:F,setThumbPercent:function(e,t){F(e,k(t))},isThumbDragging:e=>T[e],setThumbDragging:function(e,t){if(a||!E(e))return;t&&(j.current=f);const n=C.current[e];var r;C.current=_(C.current,e,t),r=C.current,C.current=r,y(r),b&&n&&!C.current.some(Boolean)&&b(j.current)},focusedThumb:P,setFocusedThumb:D,getThumbPercent:e=>V(f[e]),getValuePercent:V,getThumbValueLabel:e=>N(f[e]),getFormattedValue:N,getThumbMinValue:M,getThumbMaxValue:S,getPercentValue:k,isThumbEditable:E,setThumbEditable:function(e,t){x.current[e]=t},incrementThumb:function(e,t=1){let a=Math.max(t,i);F(e,h(f[e]+a,n,r,i))},decrementThumb:function(e,t=1){let a=Math.max(t,i);F(e,h(f[e]-a,n,r,i))},step:i,pageSize:u,orientation:o,isDisabled:a}}function _(e,t,a){return e[t]===a?e:[...e.slice(0,t),a,...e.slice(t+1)]}function Q(e){if(null!=e)return Array.isArray(e)?e:[e]}function Z(e,t,a){return n=>{a?.("number"==typeof e||"number"==typeof t?n[0]:n)}}const J=e.createContext(null),ee=e.createContext(null),te=e.createContext(null),ae=e.createContext(null),ne=e.forwardRef(function(a,u){[a,u]=b(a,u,J);let c=e.useRef(null),d=f(a.formatOptions),m=W({...a,numberFormatter:d}),[g,h]=v(!a["aria-label"]&&!a["aria-labelledby"]),{groupProps:p,trackProps:D,labelProps:j,outputProps:C}=function(t,a,u){let{labelProps:c,fieldProps:d}=n(t),m="vertical"===t.orientation;X.set(a,{id:c.id??d.id,"aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]});let{direction:g}=r(),{addGlobalListener:h,removeGlobalListener:p}=l();const b=e.useRef(null),f="rtl"===g,v=e.useRef(null),{moveProps:w}=K({onMoveStart(){v.current=null},onMove({deltaX:e,deltaY:t}){if(!u.current)return;let{height:n,width:r}=u.current.getBoundingClientRect(),l=m?n:r;null==v.current&&null!=b.current&&(v.current=a.getThumbPercent(b.current)*l);let i=m?t:e;if((m||f)&&(i=-i),v.current+=i,null!=b.current&&u.current){const e=s(v.current/l,0,1);a.setThumbPercent(b.current,e)}},onMoveEnd(){null!=b.current&&(a.setThumbDragging(b.current,!1),b.current=null)}});let T=e.useRef(void 0),y=(e,n,r,l)=>{if(u.current&&!t.isDisabled&&a.values.every((e,t)=>!a.isThumbDragging(t))){let{height:t,width:s,top:i,left:o}=u.current.getBoundingClientRect(),c=((m?l:r)-(m?i:o))/(m?t:s);("rtl"===g||m)&&(c=1-c);let d,p=a.getPercentValue(c),f=a.values.findIndex(e=>p-e<0);if(0===f)d=f;else if(-1===f)d=a.values.length-1;else{let e=a.values[f-1],t=a.values[f];d=Math.abs(e-p)<Math.abs(t-p)?f-1:f}d>=0&&a.isThumbEditable(d)?(e.preventDefault(),b.current=d,a.setFocusedThumb(d),T.current=n,a.setThumbDragging(b.current,!0),a.setThumbValue(d,p),h(window,"mouseup",x,!1),h(window,"touchend",x,!1),h(window,"pointerup",x,!1)):b.current=null}},x=e=>{(e.pointerId??e.changedTouches?.[0].identifier)===T.current&&(null!Line truncated
|
||||
import{r as e,$ as t,j as a}from"./vendor-react-64fcanlc.js";import{fH as n,bt as r,f4 as l,fa as s,fS as i,cO as o,gt as u,cV as c,cN as d,cQ as m,cZ as g,g3 as h,c_ as p,d0 as b,g0 as f,d3 as v,d4 as w,cP as y,d6 as T,d7 as x,d5 as P,de as D,d1 as j,dd as C,aE as V,db as M,gu as S,g7 as E,B as F,cz as R,df as N,u as k,gv as I,bm as H,cm as z}from"./index-DFPUSiWe.js";import{$ as K}from"./logs-lI5kXcWp.js";import{u as B,s as O,M as L,w as A,D as $}from"./wallpaper-CEC7gitM.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BFkb6iie.js";import"./ItemText-u3CUc_6I.js";import"./AppearanceControls-Bpq6OQjk.js";import"./nodes-HzIJdCpg.js";const X=new WeakMap;function Y(e,t){let a=X.get(e);if(!a)throw new Error("Unknown slider state");return`${a.id}-${t}`}const G=0,U=100,q=1;function W(t){const{isDisabled:a=!1,minValue:n=G,maxValue:r=U,numberFormatter:l,step:i=q,orientation:o="horizontal"}=t;let u=e.useMemo(()=>{let e=(r-n)/10;return e=h(e,0,e+i,i),Math.max(e,i)},[i,r,n]),c=e.useCallback(e=>e?.map((t,a)=>{let l=0===a?n:e[a-1],s=a===e.length-1?r:e[a+1];return h(t,l,s,i)}),[n,r,i]),d=e.useMemo(()=>c(Q(t.value)),[t.value,c]),m=e.useMemo(()=>c(Q(t.defaultValue)??[n]),[t.defaultValue,n,c]),g=Z(t.value,t.defaultValue,t.onChange),b=Z(t.value,t.defaultValue,t.onChangeEnd);const[f,v]=p(d,m,g);let[w]=e.useState(f);const[y,T]=e.useState(new Array(f.length).fill(!1)),x=e.useRef(new Array(f.length).fill(!0)),[P,D]=e.useState(void 0),j=e.useRef(f),C=e.useRef(y);function V(e){return(e-n)/(r-n)}function M(e){return 0===e?n:f[e-1]}function S(e){return e===f.length-1?r:f[e+1]}function E(e){return x.current[e]}function F(e,t){if(a||!E(e))return;const n=M(e),r=S(e);t=h(t,n,r,i);let l=_(j.current,e,t);var s;s=l,j.current=s,v(s)}let R=e.useRef(null);function N(e=f){switch("number"==typeof e&&(e=[e]),e.length){case 0:return"";case 1:return l.format(e[0]);case 2:return l.formatRange(e[0],e[1]);default:{let t=e.map(e=>l.format(e)),a=R.current;return a&&a.resolvedOptions().locale===l.resolvedOptions().locale||(a=R.current=new Intl.ListFormat(l.resolvedOptions().locale,{type:"unit"})),a.format(t)}}}function k(e){return s((t=e*(r-n)+n,Math.round((t-n)/i)*i+n),n,r);var t}return{values:f,defaultValues:void 0!==t.defaultValue?m:w,getThumbValue:e=>f[e],setThumbValue:F,setThumbPercent:function(e,t){F(e,k(t))},isThumbDragging:e=>y[e],setThumbDragging:function(e,t){if(a||!E(e))return;t&&(j.current=f);const n=C.current[e];var r;C.current=_(C.current,e,t),r=C.current,C.current=r,T(r),b&&n&&!C.current.some(Boolean)&&b(j.current)},focusedThumb:P,setFocusedThumb:D,getThumbPercent:e=>V(f[e]),getValuePercent:V,getThumbValueLabel:e=>N(f[e]),getFormattedValue:N,getThumbMinValue:M,getThumbMaxValue:S,getPercentValue:k,isThumbEditable:E,setThumbEditable:function(e,t){x.current[e]=t},incrementThumb:function(e,t=1){let a=Math.max(t,i);F(e,h(f[e]+a,n,r,i))},decrementThumb:function(e,t=1){let a=Math.max(t,i);F(e,h(f[e]-a,n,r,i))},step:i,pageSize:u,orientation:o,isDisabled:a}}function _(e,t,a){return e[t]===a?e:[...e.slice(0,t),a,...e.slice(t+1)]}function Q(e){if(null!=e)return Array.isArray(e)?e:[e]}function Z(e,t,a){return n=>{a?.("number"==typeof e||"number"==typeof t?n[0]:n)}}const J=e.createContext(null),ee=e.createContext(null),te=e.createContext(null),ae=e.createContext(null),ne=e.forwardRef(function(a,u){[a,u]=b(a,u,J);let c=e.useRef(null),d=f(a.formatOptions),m=W({...a,numberFormatter:d}),[g,h]=v(!a["aria-label"]&&!a["aria-labelledby"]),{groupProps:p,trackProps:D,labelProps:j,outputProps:C}=function(t,a,u){let{labelProps:c,fieldProps:d}=n(t),m="vertical"===t.orientation;X.set(a,{id:c.id??d.id,"aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]});let{direction:g}=r(),{addGlobalListener:h,removeGlobalListener:p}=l();const b=e.useRef(null),f="rtl"===g,v=e.useRef(null),{moveProps:w}=K({onMoveStart(){v.current=null},onMove({deltaX:e,deltaY:t}){if(!u.current)return;let{height:n,width:r}=u.current.getBoundingClientRect(),l=m?n:r;null==v.current&&null!=b.current&&(v.current=a.getThumbPercent(b.current)*l);let i=m?t:e;if((m||f)&&(i=-i),v.current+=i,null!=b.current&&u.current){const e=s(v.current/l,0,1);a.setThumbPercent(b.current,e)}},onMoveEnd(){null!=b.current&&(a.setThumbDragging(b.current,!1),b.current=null)}});let y=e.useRef(void 0),T=(e,n,r,l)=>{if(u.current&&!t.isDisabled&&a.values.every((e,t)=>!a.isThumbDragging(t))){let{height:t,width:s,top:i,left:o}=u.current.getBoundingClientRect(),c=((m?l:r)-(m?i:o))/(m?t:s);("rtl"===g||m)&&(c=1-c);let d,p=a.getPercentValue(c),f=a.values.findIndex(e=>p-e<0);if(0===f)d=f;else if(-1===f)d=a.values.length-1;else{let e=a.values[f-1],t=a.values[f];d=Math.abs(e-p)<Math.abs(t-p)?f-1:f}d>=0&&a.isThumbEditable(d)?(e.preventDefault(),b.current=d,a.setFocusedThumb(d),y.current=n,a.setThumbDragging(b.current,!0),a.setThumbValue(d,p),h(window,"mouseup",x,!1),h(window,"touchend",x,!1),h(window,"pointerup",x,!1)):b.current=null}},x=e=>{(e.pointerId??e.changedTouches?.[0].identifier)===y.current&&(null!Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{u as s,ce as a,bK as o,cm as l}from"./index-DFPUSiWe.js";import{D as t,p as d}from"./logs-lI5kXcWp.js";import{x as n}from"./Nodes-BP4CnthX.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BFkb6iie.js";import"./ItemText-u3CUc_6I.js";import"./AppearanceControls-Bpq6OQjk.js";import"./nodes-HzIJdCpg.js";import"./Tabs-HxpCyCLR.js";import"./useGridSelectionCheckbox-wMhI-U-R.js";import"./Table-6xnX6eUx.js";import"./Virtualizer-BH6NJSXn.js";import"./Checkbox-xU-Ds7Hn.js";import"./activity-pUN0wcVd.js";import"./TimeCell-CRwMWdtu.js";import"./CardView-CwlxcqMf.js";import"./GridList-BuXKU7Uk.js";import"./ProbeOptionsDialog-BDgL7_BI.js";import"./Tag-BZqiYh1Z.js";import"./FlagPicker-DZPvPF1E.js";import"./SearchSelect-CsXd0DEh.js";import"./SearchList-C88Y6c53.js";import"./outbounds-BMHzxQr8.js";import"./probe-Db_cbYvO.js";import"./nav-CfbmlNWr.js";function i({fields:i,duplicates:r,onChange:p,isDisabled:h}){const c=s(),m=e=>p({download:e}),j=i.mode||"auto",x=(e,s,a)=>{const o=[...i.headers];o[e]=[s,a],p({headers:o.filter(([e,s])=>e||s)})};return e.jsxs(t,{title:c("nodes.xhttp.title"),flush:!0,children:[e.jsx("span",{className:"rp-label",children:c("nodes.xhttp.help")}),e.jsx(d,{label:c("nodes.xhttp.mode"),items:[...new Set([...n,j])].map(e=>({id:e,label:e})),value:j,isDisabled:h,onChange:e=>e!==j&&p({mode:e})}),e.jsxs(a,{className:"top",children:[e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.path"),value:i.path,placeholder:"/",spellCheck:!1,onChange:e=>p({path:e})}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.host"),value:i.host,spellCheck:!1,onChange:e=>p({host:e})})]}),[...i.headers,["",""]].map(([s,l],t)=>e.jsxs(a,{className:"top",children:[e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.headerName",{n:t+1}),value:s,spellCheck:!1,error:r.has(t)?c("nodes.xhttp.headerDuplicate"):void 0,onChange:e=>x(t,e,l)}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.headerValue",{n:t+1}),value:l,spellCheck:!1,onChange:e=>x(t,s,e)})]},t)),e.jsxs(a,{className:"top",children:[e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.padding"),value:i.xPaddingBytes,placeholder:"100-1000",onChange:e=>p({xPaddingBytes:e})}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.postBytes"),value:i.scMaxEachPostBytes,placeholder:"1000000",onChange:e=>p({scMaxEachPostBytes:e})}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.postInterval"),value:i.scMinPostsIntervalMs,placeholder:"30",onChange:e=>p({scMinPostsIntervalMs:e})})]}),e.jsx(l,{isSelected:i.noGRPCHeader,isDisabled:h,onChange:e=>p({noGRPCHeader:e}),children:c("nodes.xhttp.noGrpcHeader")}),e.jsx(l,{isSelected:!!i.download,isDisabled:h,description:c("nodes.xhttp.downloadHelp"),onChange:e=>p({download:e?{address:"",port:"443",serverName:"",path:"",host:""}:null}),children:c("nodes.xhttp.download")}),i.download&&e.jsxs(e.Fragment,{children:[e.jsxs(a,{className:"top",children:[e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.downloadAddress"),value:i.download.address,spellCheck:!1,onChange:e=>m({address:e})}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.downloadPort"),value:i.download.port,width:96,onChange:e=>m({port:e})})]}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.downloadServerName"),value:i.download.serverName,spellCheck:!1,onChange:e=>m({serverName:e})}),e.jsxs(a,{className:"top",children:[e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.downloadPath"),value:i.download.path,placeholder:"/",spellCheck:!1,onChange:e=>m({path:e})}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.downloadHost"),value:i.download.host,spellCheck:!1,onChange:e=>m({host:e})})]})]})]})}export{i as XhttpOptions};
|
||||
@@ -1 +0,0 @@
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{u as s,ce as a,bK as o,cm as l}from"./index-tt2n9Zk_.js";import{D as t,p as d}from"./logs-DlBF9FTI.js";import{x as n}from"./Nodes-CPgu8m3i.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-DO5D4JEL.js";import"./ItemText-EZM3RrYN.js";import"./AppearanceControls-D6ckn4zJ.js";import"./nodes-CWX2Nx2b.js";import"./Tabs-DWzcwxse.js";import"./useGridSelectionCheckbox-EoqO9l1F.js";import"./Table-CNIdPyPm.js";import"./Virtualizer-Bm8y6eIs.js";import"./activity-St9WlHNk.js";import"./TimeCell-CIxTaFhT.js";import"./CardView-DB4CLM1X.js";import"./GridList-2xKNlEZe.js";import"./ProbeOptionsDialog-CVvbW9SQ.js";import"./Tag-D7lhqmBG.js";import"./FlagPicker-DWPk_M3h.js";import"./SearchSelect-OEHKvvM7.js";import"./SearchList-D3Aknep5.js";import"./outbounds-DLdbuVA3.js";import"./probe-Bc_Ehmu3.js";import"./nav-BcPQklmW.js";function i({fields:i,duplicates:r,onChange:p,isDisabled:h}){const c=s(),m=e=>p({download:e}),x=i.mode||"auto",j=(e,s,a)=>{const o=[...i.headers];o[e]=[s,a],p({headers:o.filter(([e,s])=>e||s)})};return e.jsxs(t,{title:c("nodes.xhttp.title"),flush:!0,children:[e.jsx("span",{className:"rp-label",children:c("nodes.xhttp.help")}),e.jsx(d,{label:c("nodes.xhttp.mode"),items:[...new Set([...n,x])].map(e=>({id:e,label:e})),value:x,isDisabled:h,onChange:e=>e!==x&&p({mode:e})}),e.jsxs(a,{className:"top",children:[e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.path"),value:i.path,placeholder:"/",spellCheck:!1,onChange:e=>p({path:e})}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.host"),value:i.host,spellCheck:!1,onChange:e=>p({host:e})})]}),[...i.headers,["",""]].map(([s,l],t)=>e.jsxs(a,{className:"top",children:[e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.headerName",{n:t+1}),value:s,spellCheck:!1,error:r.has(t)?c("nodes.xhttp.headerDuplicate"):void 0,onChange:e=>j(t,e,l)}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.headerValue",{n:t+1}),value:l,spellCheck:!1,onChange:e=>j(t,s,e)})]},t)),e.jsxs(a,{className:"top",children:[e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.padding"),value:i.xPaddingBytes,placeholder:"100-1000",onChange:e=>p({xPaddingBytes:e})}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.postBytes"),value:i.scMaxEachPostBytes,placeholder:"1000000",onChange:e=>p({scMaxEachPostBytes:e})}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.postInterval"),value:i.scMinPostsIntervalMs,placeholder:"30",onChange:e=>p({scMinPostsIntervalMs:e})})]}),e.jsx(l,{isSelected:i.noGRPCHeader,isDisabled:h,onChange:e=>p({noGRPCHeader:e}),children:c("nodes.xhttp.noGrpcHeader")}),e.jsx(l,{isSelected:!!i.download,isDisabled:h,description:c("nodes.xhttp.downloadHelp"),onChange:e=>p({download:e?{address:"",port:"443",serverName:"",path:"",host:""}:null}),children:c("nodes.xhttp.download")}),i.download&&e.jsxs(e.Fragment,{children:[e.jsxs(a,{className:"top",children:[e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.downloadAddress"),value:i.download.address,spellCheck:!1,onChange:e=>m({address:e})}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.downloadPort"),value:i.download.port,width:96,onChange:e=>m({port:e})})]}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.downloadServerName"),value:i.download.serverName,spellCheck:!1,onChange:e=>m({serverName:e})}),e.jsxs(a,{className:"top",children:[e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.downloadPath"),value:i.download.path,placeholder:"/",spellCheck:!1,onChange:e=>m({path:e})}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.downloadHost"),value:i.download.host,spellCheck:!1,onChange:e=>m({host:e})})]})]})]})}export{i as XhttpOptions};
|
||||
+2
-2
@@ -1,2 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AreaChart-XcehmkGa.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-tt2n9Zk_.js","./index-kgf32cc4.css","./AreaCurve-DQSHOSpG.js","./array-C0VuvQyb.js","./nodes-CWX2Nx2b.js","./logs-DlBF9FTI.js","./Select-DO5D4JEL.js","./ItemText-EZM3RrYN.js","./AppearanceControls-D6ckn4zJ.js","./Sparkline-C94-T74x.js","./Donut-Dvqn45hE.js","./ModeReadOnlyHint-CuxYuSNG.js","./limitHint-Da336AR0.js","./Editors-D7yNFTJ4.js","./GridList-2xKNlEZe.js","./useGridSelectionCheckbox-EoqO9l1F.js","./Delete-XRP-Yofb.js","./Editors-rPgk_VZK.css","./index-CG7Q_Xp4.js","./geodata-X0pHz03D.js","./auth-BbaGVG7g.js","./auth-CnQmki5R.js"])))=>i.map(i=>d[i]);
|
||||
import{r as e,a as t,j as n}from"./vendor-react-64fcanlc.js";import{d as s,h as a,n as r,o as i,w as o,$ as l,s as c,R as d,S as u,a as m,b as p,I as h,L as f,u as g,c as b,_ as x,e as v,f as y,N as j,T as w,g as k,i as N,j as M,k as _,B as S,E as C,C as E,l as L,P as z,m as P,p as R,q as O,r as A,t as q,v as I,x as D,y as T,z as H,A as F,D as $,F as B,G as V,H as W,J as G,K as U,M as K,O as J,Q as X,U as Y,V as Q,W as Z,X as ee,Y as te,Z as ne,a0 as se,a1 as ae,a2 as re,a3 as ie,a4 as oe,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 je,aj as we,ak as ke,al as Ne,am as Me,an as _e,ao as Se,ap as Ce,aq as Ee,ar as Le,as as ze,at as Pe,au as Re,av as Oe,aw as Ae,ax as qe,ay as Ie,az as De,aA as Te,aB as He,aC as Fe,aD as $e,aE as Be,aF as Ve,aG as We,aH as Ge,aI as Ue,aJ as Ke,aK as Je,aL as Xe,aM as Ye,aN as Qe,aO as Ze,aP as et,aQ as tt,aR as nt,aS as st,aT as at,aU as rt,aV as it,aW as ot,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 jt,b9 as wt,ba as kt,bb as Nt,bc as Mt,bd as _t,be as St,bf as Ct,bg as Et,bh as Lt,bi as zt,bj as Pt,bk as Rt,bl as Ot,bm as At,bn as qt,bo as It,bp as Dt,bq as Tt,br as Ht,bs as Ft,bt as $t,bu as Bt,bv as Vt,bw as Wt,bx as Gt,by as Ut,bz as Kt,bA as Jt}from"./index-tt2n9Zk_.js";import{r as Xt,d as Yt,u as Qt,c as Zt,s as en,e as tn,h as nn,a as sn,i as an,b as rn,f as on,g as ln,j as cn,k as dn,l as un,n as mn,m as pn,o as hn,p as fn,q as gn,t as bn,v as xn,w as vn,x as yn,y as jn,z as wn,A as kn,B as Nn,C as Mn,D as _n}from"./nodes-CWX2Nx2b.js";import{W as Sn,S as Cn,L as En,u as Ln,a as zn,b as Pn,c as Rn,e as On,l as An,d as qn,f as In,g as Dn,h as Tn,V as Hn,B as Fn,i as $n,C as Bn,r as Vn,K as Wn,D as Gn,M as Un,$ as Kn,j as Jn,k as Xn,m as Yn,n as Qn}from"./logs-DlBF9FTI.js";import{I as Zn,C as es}from"./ItemText-EZM3RrYN.js";import{C as ts,u as ns,D as ss,L as as,P as rs,S as is,T as os,a as ls,b as cs}from"./AppearanceControls-D6ckn4zJ.js";const ds={"missing-offline-dependency":"config.diagnostic.offlineMissing","offline-dependency-denied":"config.diagnostic.offlineDenied","invalid-offline-dependency":"config.diagnostic.offlineInvalid","unreadable-offline-dependency":"config.diagnostic.offlineUnreadable"},us=e=>Object.hasOwn(ds,e);function ms(e,t,n){return us(e.code)?{summary:t("config.diagnostic.offline",{reason:t(ds[e.code]),which:n?t("config.diagnostic.offlineGeodata",{files:n}):t("config.diagnostic.offlineUsual")})}:s(e,t)}const ps=e=>[...new Set(e.flatMap(({item:e,message:t})=>e.message&&!t.includes(e.message)?[e.message]:[]))],hs=(e,t,n)=>{const s=e.flatMap(e=>{const s=e.id===t?.id?t.content:e.content;return void 0===s?[]:n(s)});return[...new Map(s.map(({name:e,written:t})=>[t,{name:e,written:t}])).values()]},fs=(e,t)=>hs(e,t,Xt),gs=(e,t)=>hs(e,t,e=>Yt(e).map(e=>({name:Qt(e),written:e}))),bs=e=>"<redacted>"===e.path||""===e.path,xs=e=>bs(e)?"main"===e.kind?"config.dae":`${e.kind}-${e.id.slice(0,8)}.dae`:e.path.split("/").pop()||"config.dae";function vs(e,t){const n=e.find(e=>"main"===e.kind);if(!n)return null;const s=[n,...e.filter(e=>"include"===e.kind&&!bs(e))];return t&&!s.some(e=>e.id===t.id)?null:s.map(e=>({id:e.id,...bs(e)?{}:{path:e.path},content:e.id===t?.id?t.content:e.content}))}const ys=e=>e.filter(e=>"error"===e.level&&"restart-required"===e.code).map(e=>({key:/\b[a-z][a-z0-9_]*(?:\.[a-z0-9_]+)+\b/.exec(e.message)?.[0]??(e.message||null),sourceId:e.source_id,line:e.line})),js=e=>ys(e).length,ws={main:"config.kind.main",include:"config.kind.include",subscription:"nodes.kind.subscription",generated:"config.kind.generated"},ks=(e,t)=>`${e}:${t}`;function Ns(e,t){const n=e.indexOf(":"),s=e.slice(0,n);return n>0&&t.includes(s)?{kind:s,value:e.slice(n+1)}:null}const Ms=(e,t)=>t&&e?a("rules",{tab:"list",rule:e}):void 0,_s=(e,t,n=!1)=>a("nodes",{provider:r(e,t),q:e.name,node:n?e.id??null:null});function Ss(e,t){const n=e?.find(e=>e.name===t)?.id;return n?o("",{group:n}):""}function Cs(e,t,n){const s=t?.find(t=>t.name===e);return s?{label:s.name,href:a("policies",{group:s.id})}:{label:i(e,n),href:null}}const Es=["network","domain","dst_ip","dst_port","src_ip","src_port","pname"],Ls=e=>o("",{tab:"trace",...Object.fromEntries(Es.map(t=>[t,e[t]||null]))});function zs(e){const t=new URLSearchParams(e),n=e=>t.get(e)??"";return n("domain")||n("dst_ip")?{network:"udp"===n("network")?"udp":"tcp",domain:n("domain"),dst_ip:n("dst_ip"),dst_port:n("dst_port"),src_ip:n("src_ip"),src_port:n("src_port"),pname:n("pname")}:null}const Ps=a("settings",{card:"runtime"});function Rs(e,t=Zt){return e?Ns(e,t):null}function Os(e,t){const n=e.filter(e=>"main"===e.kind||"include"===e.kind);for(const s of n){const e=en(s.content).blocks.find(e=>e.name===t);if(e)return a("config",{tab:"source",source:s.id,line:String(e.line+1)})}return a("config",{tab:"source",source:n.find(e=>"main"===e.kind)?.id??null})}const As=a("activity",{card:Line truncated
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AreaChart-BxyW1lgi.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-DFPUSiWe.js","./index-BnzLYrTn.css","./AreaCurve-DQSHOSpG.js","./array-C0VuvQyb.js","./nodes-HzIJdCpg.js","./logs-lI5kXcWp.js","./Select-BFkb6iie.js","./ItemText-u3CUc_6I.js","./AppearanceControls-Bpq6OQjk.js","./Sparkline-DULE2gkm.js","./Donut-Cogv0HSG.js","./ModeReadOnlyHint-DDRE5yga.js","./limitHint-drqGf1xh.js","./Editors-CMGR9TtS.js","./GridList-BuXKU7Uk.js","./useGridSelectionCheckbox-wMhI-U-R.js","./Delete-DIaM96Pb.js","./Editors-rPgk_VZK.css","./index-D2MLmo5c.js","./geodata-CvcFemyc.js","./auth-rPpvn4ox.js","./auth-Br_GGGEt.js"])))=>i.map(i=>d[i]);
|
||||
import{r as e,a as t,j as n}from"./vendor-react-64fcanlc.js";import{d as s,h as a,n as r,o as i,w as o,$ as l,s as c,R as d,S as u,a as m,b as p,I as h,L as f,u as g,c as b,_ as x,e as v,f as y,N as j,T as w,g as k,i as N,j as M,k as _,B as S,E as C,C as E,l as L,P as z,m as P,p as R,q as O,r as A,t as q,v as I,x as D,y as T,z as H,A as F,D as $,F as B,G as V,H as W,J as G,K as U,M as K,O as J,Q as X,U as Y,V as Z,W as Q,X as ee,Y as te,Z as ne,a0 as se,a1 as ae,a2 as re,a3 as ie,a4 as oe,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 je,aj as we,ak as ke,al as Ne,am as Me,an as _e,ao as Se,ap as Ce,aq as Ee,ar as Le,as as ze,at as Pe,au as Re,av as Oe,aw as Ae,ax as qe,ay as Ie,az as De,aA as Te,aB as He,aC as Fe,aD as $e,aE as Be,aF as Ve,aG as We,aH as Ge,aI as Ue,aJ as Ke,aK as Je,aL as Xe,aM as Ye,aN as Ze,aO as Qe,aP as et,aQ as tt,aR as nt,aS as st,aT as at,aU as rt,aV as it,aW as ot,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 jt,b9 as wt,ba as kt,bb as Nt,bc as Mt,bd as _t,be as St,bf as Ct,bg as Et,bh as Lt,bi as zt,bj as Pt,bk as Rt,bl as Ot,bm as At,bn as qt,bo as It,bp as Dt,bq as Tt,br as Ht,bs as Ft,bt as $t,bu as Bt,bv as Vt,bw as Wt,bx as Gt,by as Ut,bz as Kt,bA as Jt}from"./index-DFPUSiWe.js";import{r as Xt,d as Yt,u as Zt,c as Qt,s as en,e as tn,h as nn,a as sn,i as an,b as rn,f as on,g as ln,j as cn,k as dn,l as un,n as mn,m as pn,o as hn,p as fn,q as gn,t as bn,v as xn,w as vn,x as yn,y as jn,z as wn,A as kn,B as Nn,C as Mn,D as _n}from"./nodes-HzIJdCpg.js";import{W as Sn,S as Cn,L as En,u as Ln,a as zn,b as Pn,c as Rn,e as On,l as An,d as qn,f as In,g as Dn,h as Tn,V as Hn,B as Fn,i as $n,C as Bn,r as Vn,K as Wn,D as Gn,M as Un,$ as Kn,j as Jn,k as Xn,m as Yn,n as Zn}from"./logs-lI5kXcWp.js";import{I as Qn,C as es}from"./ItemText-u3CUc_6I.js";import{C as ts,u as ns,D as ss,L as as,P as rs,S as is,T as os,a as ls,b as cs}from"./AppearanceControls-Bpq6OQjk.js";const ds={"missing-offline-dependency":"config.diagnostic.offlineMissing","offline-dependency-denied":"config.diagnostic.offlineDenied","invalid-offline-dependency":"config.diagnostic.offlineInvalid","unreadable-offline-dependency":"config.diagnostic.offlineUnreadable"},us=e=>Object.hasOwn(ds,e);function ms(e,t,n){return us(e.code)?{summary:t("config.diagnostic.offline",{reason:t(ds[e.code]),which:n?t("config.diagnostic.offlineGeodata",{files:n}):t("config.diagnostic.offlineUsual")})}:s(e,t)}const ps=e=>[...new Set(e.flatMap(({item:e,message:t})=>e.message&&!t.includes(e.message)?[e.message]:[]))],hs=(e,t,n)=>{const s=e.flatMap(e=>{const s=e.id===t?.id?t.content:e.content;return void 0===s?[]:n(s)});return[...new Map(s.map(({name:e,written:t})=>[t,{name:e,written:t}])).values()]},fs=(e,t)=>hs(e,t,Xt),gs=(e,t)=>hs(e,t,e=>Yt(e).map(e=>({name:Zt(e),written:e}))),bs=e=>"<redacted>"===e.path||""===e.path,xs=e=>bs(e)?"main"===e.kind?"config.dae":`${e.kind}-${e.id.slice(0,8)}.dae`:e.path.split("/").pop()||"config.dae";function vs(e,t){const n=e.find(e=>"main"===e.kind);if(!n)return null;const s=[n,...e.filter(e=>"include"===e.kind&&!bs(e))];return t&&!s.some(e=>e.id===t.id)?null:s.map(e=>({id:e.id,...bs(e)?{}:{path:e.path},content:e.id===t?.id?t.content:e.content}))}const ys=e=>e.filter(e=>"error"===e.level&&"restart-required"===e.code).map(e=>({key:/\b[a-z][a-z0-9_]*(?:\.[a-z0-9_]+)+\b/.exec(e.message)?.[0]??(e.message||null),sourceId:e.source_id,line:e.line})),js=e=>ys(e).length,ws={main:"config.kind.main",include:"config.kind.include",subscription:"nodes.kind.subscription",generated:"config.kind.generated"},ks=(e,t)=>`${e}:${t}`;function Ns(e,t){const n=e.indexOf(":"),s=e.slice(0,n);return n>0&&t.includes(s)?{kind:s,value:e.slice(n+1)}:null}const Ms=(e,t)=>t&&e?a("rules",{tab:"list",rule:e}):void 0,_s=(e,t,n=!1)=>a("nodes",{provider:r(e,t),q:e.name,node:n?e.id??null:null});function Ss(e,t){const n=e?.find(e=>e.name===t)?.id;return n?o("",{group:n}):""}function Cs(e,t,n){const s=t?.find(t=>t.name===e);return s?{label:s.name,href:a("policies",{group:s.id})}:{label:i(e,n),href:null}}const Es=["network","domain","dst_ip","dst_port","src_ip","src_port","pname"],Ls=e=>o("",{tab:"trace",...Object.fromEntries(Es.map(t=>[t,e[t]||null]))});function zs(e){const t=new URLSearchParams(e),n=e=>t.get(e)??"";return n("domain")||n("dst_ip")?{network:"udp"===n("network")?"udp":"tcp",domain:n("domain"),dst_ip:n("dst_ip"),dst_port:n("dst_port"),src_ip:n("src_ip"),src_port:n("src_port"),pname:n("pname")}:null}const Ps=a("settings",{card:"runtime"});function Rs(e,t=Qt){return e?Ns(e,t):null}function Os(e,t){const n=e.filter(e=>"main"===e.kind||"include"===e.kind);for(const s of n){const e=en(s.content).blocks.find(e=>e.name===t);if(e)return a("config",{tab:"source",source:s.id,line:String(e.line+1)})}return a("config",{tab:"source",source:n.find(e=>"main"===e.kind)?.id??null})}const As=a("activity",{card:Line truncated
|
||||
+2
-2
@@ -1,2 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./auth-BbaGVG7g.js","./index-tt2n9Zk_.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-kgf32cc4.css"])))=>i.map(i=>d[i]);
|
||||
import{bD as a,d_ as t,d$ as o,v as n,_ as e}from"./index-tt2n9Zk_.js";const s=(a,t)=>new URL(a.replace(/\/+$/,"")+t,globalThis.location?.href),i=()=>e(()=>import("./auth-BbaGVG7g.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),c={username:"demo",password:"demo"};async function r(e,c){if(a(e))return(await i()).mockDiscovery();const r=await t(s(e,"/api"),{headers:{Accept:"application/json"},cache:"no-store",signal:c});if(!r.ok)throw await o(r);const p=await r.json();if("dae/honk-native"===p.name)throw new n("login.engineOutdated");return p.auth}async function p(a,o){const n=await t(s(a,"/api/v1/capabilities"),{headers:{Accept:"application/json"},cache:"no-store",signal:o});return n.body?.cancel().catch(()=>{}),404!==n.status}function u(a){return"password"!==a.mode?"token":a.setup_required?"setup":"login"}async function h(n,e,c,r){if(a(n))return(await i()).mockOpenSession(e,c);const p=await t(s(n,`/api/v1/auth/${e}`),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(c),cache:"no-store",signal:r},"setup"===e);if(!p.ok)throw await o(p,"POST");return p.json()}async function d(n,e,i){if(a(n))return;const c=await t(s(n,"/api/v1/auth/logout"),{method:"POST",headers:{Accept:"application/json",Authorization:"Bearer "+e},cache:"no-store",signal:i});if(!c.ok&&401!==c.status)throw await o(c,"POST");c.body?.cancel().catch(()=>{})}export{c as D,p as a,d as c,r as d,h as o,u as s};
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./auth-rPpvn4ox.js","./index-DFPUSiWe.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-BnzLYrTn.css"])))=>i.map(i=>d[i]);
|
||||
import{bD as a,d_ as t,d$ as o,v as n,_ as e}from"./index-DFPUSiWe.js";const s=(a,t)=>new URL(a.replace(/\/+$/,"")+t,globalThis.location?.href),i=()=>e(()=>import("./auth-rPpvn4ox.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),c={username:"demo",password:"demo"};async function r(e,c){if(a(e))return(await i()).mockDiscovery();const r=await t(s(e,"/api"),{headers:{Accept:"application/json"},cache:"no-store",signal:c});if(!r.ok)throw await o(r);const p=await r.json();if("dae/honk-native"===p.name)throw new n("login.engineOutdated");return p.auth}async function p(a,o){const n=await t(s(a,"/api/v1/capabilities"),{headers:{Accept:"application/json"},cache:"no-store",signal:o});return n.body?.cancel().catch(()=>{}),404!==n.status}function u(a){return"password"!==a.mode?"token":a.setup_required?"setup":"login"}async function h(n,e,c,r){if(a(n))return(await i()).mockOpenSession(e,c);const p=await t(s(n,`/api/v1/auth/${e}`),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(c),cache:"no-store",signal:r},"setup"===e);if(!p.ok)throw await o(p,"POST");return p.json()}async function d(n,e,i){if(a(n))return;const c=await t(s(n,"/api/v1/auth/logout"),{method:"POST",headers:{Accept:"application/json",Authorization:"Bearer "+e},cache:"no-store",signal:i});if(!c.ok&&401!==c.status)throw await o(c,"POST");c.body?.cancel().catch(()=>{})}export{c as D,p as a,d as c,r as d,h as o,u as s};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{D as e}from"./auth-CnQmki5R.js";import{aM as t,bO as o}from"./index-tt2n9Zk_.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-Br_GGGEt.js";import{aM as t,bO as o}from"./index-DFPUSiWe.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
-1
@@ -1 +1 @@
|
||||
import{ab as e,fj as n,r as t,fk as r,fm as s,at as a,fl as o,dg as i,fx as l}from"./index-tt2n9Zk_.js";async function u(e,{input:n,resolve:t,recordTypes:r},s){if("query"!==t)return{traces:[await e.routingTrace({input:n,resolve:t},s)],query:null};const a=await e.dnsQuery(n.domain,r,s),o=[...new Set(["A","AAAA"].flatMap(e=>a.results.filter(n=>n.type===e).map(i).find(Boolean)??[]))],u=[];for(const i of o.length?o:[null])u.push(await e.routingTrace({input:i?{...n,dst_ip:i}:n,resolve:"none"},s));if(u.some(e=>e.instance_id!==u[0].instance_id||e.generation_id!==u[0].generation_id))throw l(409,"snapshot_unavailable","The routing generation changed during simulation; retry the query","ui.errGenerationChanged");return{traces:u,query:a}}function c({connection_id:i,network:l="all",state:u="all"}={},c=!0,f=!1){const d=e(),{data:w,error:p}=t(),y=r(w,w?.resources.flows.max_page_size);return n({key:["flows",{connection_id:i,network:l,state:u,limit:y}],every:a.lists,fetch:e=>o(n=>d.flows({network:l,state:u,connection_id:i,cursor:n,limit:y,detail:"full"},e),(e,n)=>e?(e.flows.push(...n.flows),e):{...n,flows:[...n.flows]})},{...s(w,p,c),paused:f})}function f(t){const r=e();return n({key:["flow",{id:t}],fetch:e=>t?r.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 r=e();return n({key:["rules"],every:0,fetch:e=>r.rules(e)},{enabled:t})}function w(t=!0){const r=e();return n({key:["dnsRules"],every:0,fetch:e=>r.dnsRules(e)},{enabled:t})}export{c as a,f as b,w as c,u as r,d as u};
|
||||
import{ab as e,fj as n,r as t,fk as r,fm as s,at as a,fl as o,dg as i,fx as l}from"./index-DFPUSiWe.js";async function u(e,{input:n,resolve:t,recordTypes:r},s){if("query"!==t)return{traces:[await e.routingTrace({input:n,resolve:t},s)],query:null};const a=await e.dnsQuery(n.domain,r,s),o=[...new Set(["A","AAAA"].flatMap(e=>a.results.filter(n=>n.type===e).map(i).find(Boolean)??[]))],u=[];for(const i of o.length?o:[null])u.push(await e.routingTrace({input:i?{...n,dst_ip:i}:n,resolve:"none"},s));if(u.some(e=>e.instance_id!==u[0].instance_id||e.generation_id!==u[0].generation_id))throw l(409,"snapshot_unavailable","The routing generation changed during simulation; retry the query","ui.errGenerationChanged");return{traces:u,query:a}}function c({connection_id:i,network:l="all",state:u="all"}={},c=!0,f=!1){const d=e(),{data:w,error:p}=t(),y=r(w,w?.resources.flows.max_page_size);return n({key:["flows",{connection_id:i,network:l,state:u,limit:y}],every:a.lists,fetch:e=>o(n=>d.flows({network:l,state:u,connection_id:i,cursor:n,limit:y,detail:"full"},e),(e,n)=>e?(e.flows.push(...n.flows),e):{...n,flows:[...n.flows]})},{...s(w,p,c),paused:f})}function f(t){const r=e();return n({key:["flow",{id:t}],fetch:e=>t?r.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 r=e();return n({key:["rules"],every:0,fetch:e=>r.rules(e)},{enabled:t})}function w(t=!0){const r=e();return n({key:["dnsRules"],every:0,fetch:e=>r.dnsRules(e)},{enabled:t})}export{c as a,f as b,w as c,u as r,d as u};
|
||||
@@ -0,0 +1 @@
|
||||
const e=["geosite","geoip"];function t(t){return a.find(i=>e.every(e=>t[e].length>0&&t[e].every(t=>i.urls[e].includes(t)||i.mirrors[e].includes(t))))??null}function i(t,i){if(!t?.categories||!i)return null;const o={};for(const s of e){const e=new Set(t.categories[s]),a=(i[s]??[]).filter(t=>!e.has(t));a.length&&(o[s]=a)}return Object.keys(o).length?o:null}const o=["fastly","cdn","testingcf"];function s(e,t,i,s,a){const r=(e,i)=>`https://${e}.jsdelivr.net/gh/${t}@release/${i}`,l=Object.keys(i);return{id:e,urls:Object.fromEntries(l.map(e=>{return[e,[(o=i[e],`https://raw.githubusercontent.com/${t}/release/${o}`),r("fastly",i[e])]];var o})),mirrors:Object.fromEntries(l.map(e=>[e,o.slice(1).map(t=>r(t,i[e]))])),sizes:s,categories:a}}const a=[s("metacubex","MetaCubeX/meta-rules-dat",{geosite:"geosite.dat",geoip:"geoip.dat"},{geosite:42e5,geoip:166e5},null),s("metacubex-lite","MetaCubeX/meta-rules-dat",{geosite:"geosite-lite.dat",geoip:"geoip-lite.dat"},{geosite:176e3,geoip:207e3},{geosite:["abema","apple","applemusic","bahamut","bilibili","biliintl","cloudflare","cn","ehentai","github","google","microsoft","netflix","onedrive","openai","pixiv","private","proxy","proxymedia","spotify","telegram","tiktok","twitter","youtube"],geoip:["apple","bilibili","cloudflare","cloudfront","cn","facebook","google","jp","netflix","private","telegram","twitter"]}),s("loyalsoldier","Loyalsoldier/v2ray-rules-dat",{geosite:"geosite.dat",geoip:"geoip.dat"},{geosite:111e5,geoip:169e5},null)],r=(l="metacubex",a.find(e=>e.id===l));var l;function n(e){return/^https?:\/\/(?![^/?#]*@)[^#]*$/.test(e)&&URL.canParse(e)&&[...e].length<=4096}export{e as a,t as b,r as d,a as g,i as m,n as v};
|
||||
@@ -1 +0,0 @@
|
||||
const e=["fastly","cdn","testingcf"];function t(t,i,o,a,s){const l=(e,t)=>`https://${e}.jsdelivr.net/gh/${i}@release/${t}`,r=Object.keys(o);return{id:t,urls:Object.fromEntries(r.map(e=>{return[e,[(t=o[e],`https://raw.githubusercontent.com/${i}/release/${t}`),l("fastly",o[e])]];var t})),mirrors:Object.fromEntries(r.map(t=>[t,e.slice(1).map(e=>l(e,o[t]))])),sizes:a,categories:s}}const i=[t("metacubex","MetaCubeX/meta-rules-dat",{geosite:"geosite.dat",geoip:"geoip.dat"},{geosite:42e5,geoip:166e5},null),t("metacubex-lite","MetaCubeX/meta-rules-dat",{geosite:"geosite-lite.dat",geoip:"geoip-lite.dat"},{geosite:176e3,geoip:207e3},{geosite:["abema","apple","applemusic","bahamut","bilibili","biliintl","cloudflare","cn","ehentai","github","google","microsoft","netflix","onedrive","openai","pixiv","private","proxy","proxymedia","spotify","telegram","tiktok","twitter","youtube"],geoip:["apple","bilibili","cloudflare","cloudfront","cn","facebook","google","jp","netflix","private","telegram","twitter"]}),t("loyalsoldier","Loyalsoldier/v2ray-rules-dat",{geosite:"geosite.dat",geoip:"geoip.dat"},{geosite:111e5,geoip:169e5},null)],o=(a="metacubex",i.find(e=>e.id===a));var a;function s(e){return/^https?:\/\/(?![^/?#]*@)[^#]*$/.test(e)&&URL.canParse(e)&&[...e].length<=4096}export{o as d,i as g,s as v};
|
||||
@@ -0,0 +1 @@
|
||||
import{D as e,aL as t,bC as a}from"./index-DFPUSiWe.js";import"./vendor-react-64fcanlc.js";import{s}from"./nodes-HzIJdCpg.js";function o(e){const{tokens:t}=s(e),a=a=>t[a]?e.slice(t[a].from,t[a].to):"",o=new Set(t.flatMap((e,t)=>"text"===e.kind&&e.parens>0&&":"===a(t+1)&&["(",","].includes(a(t-1))?[a(t)]:[]));return["geosite","geoip"].filter(e=>o.has(e))}function n(e,t,a){const s=t?.available?t.assets??[]:null,o=e=>a?.assets.some(t=>t.kind===e&&"0"===t.size_bytes)??!1,n=e&&s?e.filter(e=>!s.includes(e)||o(e)):(s??[]).filter(o),i=!!t?.can_update&&!!e?.length&&!!s&&e.every(e=>s.includes(e));return{missing:n.map(e=>`${e}.dat`),repair:i}}const i=new Set(["asset_too_large","asset_validation_failed","geodata_update_failed","replacement_failed","directory_sync_failed"]),d=e=>i.has(e);function r(e,t,s,o){const{code:n,details:i}=e??{};if("permission_denied"===n||"capability_not_supported"===n){const e="geodata"===t,n=s(e?"settings.geodata":"ov.lim.geodataSettings");return{href:a(o,e?"req-geodata-update":"req-geodata-settings"),text:s("ov.lim.docsFor",{feature:n}),external:!0}}return"geodata"===t&&(d(n)||d(i?.stage))?{href:a(o,"geodata-update"),text:s("ov.lim.docsGeodataUpdate"),external:!0}:null}const l=e=>e?{label:e.text,onAction:()=>{window.open(e.href,"_blank","noopener")}}:void 0,c=(a,s,o)=>a.then(t=>(t&&e("positive",s("settings.geodataUpdated")),!!t),e=>(t(e,s,s("settings.geodataFailed"),l(r(e,"geodata",s,o))),!1));export{c as a,o as b,r as c,l as d,n as g,d as l};
|
||||
@@ -1 +0,0 @@
|
||||
import{D as e,aL as s}from"./index-tt2n9Zk_.js";import"./vendor-react-64fcanlc.js";import{s as t}from"./nodes-CWX2Nx2b.js";function a(e){const{tokens:s}=t(e),a=t=>s[t]?e.slice(s[t].from,s[t].to):"",i=new Set(s.flatMap((e,s)=>"text"===e.kind&&e.parens>0&&":"===a(s+1)&&["(",","].includes(a(s-1))?[a(s)]:[]));return["geosite","geoip"].filter(e=>i.has(e))}function i(e,s,t){const a=s?.available?s.assets??[]:null,i=e=>t?.assets.some(s=>s.kind===e&&"0"===s.size_bytes)??!1,n=e&&a?e.filter(e=>!a.includes(e)||i(e)):(a??[]).filter(i),o=!!s?.can_update&&!!e?.length&&!!a&&e.every(e=>a.includes(e));return{missing:n.map(e=>`${e}.dat`),repair:o}}const n=(t,a)=>t.then(s=>(s&&e("positive",a("settings.geodataUpdated")),!!s),e=>(s(e,a,a("settings.geodataFailed")),!1));export{n as a,a as b,i as g};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
:root[data-family=glass]{--rp-blur-scale:1;--rp-fill-boost:calc((1 - min(var(--rp-blur-scale), 1)) * .2);--rp-muted:#8e8e93;--rp-subtle:#48484a;--rp-text:#000;--rp-placeholder:#3c3c434d;--rp-love:#ff3b30;--rp-gold:#ff9500;--rp-rose:#ff9f0a;--rp-pine:#007aff;--rp-foam:#34c759;--rp-iris:#af52de;--rp-c1:#007aff;--rp-c2:#34c759;--rp-c3:#af52de;--rp-c4:#ff9500;--rp-c5:#5ac8fa;--rp-c6:#ff2d55;--rp-c7:#fc0;--rp-c8:#ff3b30;--rp-hl-low:#74748014;--rp-ctl:color-mix(in srgb, var(--rp-text) 5%, transparent);--rp-ctl-hover:color-mix(in srgb, var(--rp-text) 9%, transparent);--rp-ctl-pressed:color-mix(in srgb, var(--rp-text) 13%, transparent);--rp-hl-med:#78788029;--rp-hl-high:#78788033;--rp-on-accent:#fff;--rp-on-text:#fff;--rp-accent-text:var(--rp-text);--rp-info-text:var(--rp-text);--rp-positive-text:var(--rp-text);--rp-notice-text:var(--rp-text);--rp-accent-fill:#0040dd;--rp-on-accent-fill:#fff;--rp-negative-fill:#d70015;--rp-on-negative-fill:#fff;--rp-negative-text:var(--rp-negative-fill);--rp-line:#3c3c434a;--rp-track:var(--rp-ctl);--rp-knob:#fff;--rp-knob-shadow:0 1px 3px #0000001f, 0 3px 8px #00000014;--rp-switch-knob:#fff;--rp-switch-knob-shadow:0 1px 2px #00000040;--rp-underlay:#14141e3d;--rp-shadow-lg:0 2px 6px #0f14280f, 0 18px 48px #0f142829;--rp-solid-wall:#f2f2f7;--rp-solid-chrome:#f2f2f7;--rp-solid-card:#fff;--rp-solid-float:#fff;--rp-solid-edge:#c6c6c8;--rp-base:#fff6;--rp-surface:#fff6;--rp-overlay:#ffffff73;--rp-shadow:0 1px 2px #0f14280d, 0 8px 28px #0f142817;--rp-wall:radial-gradient(circle at 63% 36%, #ffcc00b3 0 120px, #fc00 121px), radial-gradient(circle at 30% 66%, #007aff00 0 190px, #007aff80 191px 199px, #007aff00 200px), linear-gradient(118deg, #fff0 0 60%, #fff9 60% 64%, #fff0 64%), linear-gradient(28deg, #ff2d5500 0 74%, #ff2d5573 74% 77%, #ff2d5500 77%), radial-gradient(34% 46% at 28% 30%, #007aff80, #007aff00 72%), radial-gradient(32% 44% at 84% 22%, #ff2d5580, #ff2d5500 72%), radial-gradient(40% 50% at 74% 84%, #ff95008c, #ff950000 72%), radial-gradient(36% 46% at 26% 88%, #34c75980, #34c75900 72%), radial-gradient(28% 36% at 52% 56%, #af52de73, #af52de00 72%), linear-gradient(160deg, #e3eaf8 0%, #f1e8f4 50%, #f8eee2 100%);--rp-chrome:rgba(255, 255, 255, calc(.3 + var(--rp-fill-boost)));--rp-chrome-filter:blur(calc(16px * var(--rp-blur-scale))) saturate(1.8);--rp-column:transparent;--rp-card-fill:rgba(255, 255, 255, calc(.4 + var(--rp-fill-boost)));--rp-card-filter:blur(calc(12px * var(--rp-blur-scale))) saturate(1.7);--rp-panel-fill:rgba(255, 255, 255, calc(.4 + var(--rp-fill-boost)));--rp-panel-filter:blur(calc(14px * var(--rp-blur-scale))) saturate(1.8) brightness(1.04);--rp-float-fill:rgba(255, 255, 255, calc(.74 + var(--rp-fill-boost)));--rp-float-filter:blur(calc(14px * var(--rp-blur-scale))) saturate(1.8) brightness(1.04);--rp-table-head:#ffffff80}:root[data-family=glass][data-scheme=dark],:root[data-flavour=frosted][data-scheme=dark],:root[data-flavour=tinted][data-scheme=dark]{--rp-muted:#8e8e93;--rp-subtle:#aeaeb2;--rp-text:#fff;--rp-placeholder:#ebebf54d;--rp-love:#ff453a;--rp-gold:#ff9f0a;--rp-rose:#ffb340;--rp-pine:#0a84ff;--rp-foam:#30d158;--rp-iris:#bf5af2;--rp-c1:#0a84ff;--rp-c2:#30d158;--rp-c3:#bf5af2;--rp-c4:#ff9f0a;--rp-c5:#64d2ff;--rp-c6:#ff375f;--rp-c7:#ffd60a;--rp-c8:#ff453a;--rp-hl-low:#7676802e;--rp-ctl:color-mix(in srgb, var(--rp-text) 10%, transparent);--rp-ctl-hover:color-mix(in srgb, var(--rp-text) 16%, transparent);--rp-ctl-pressed:color-mix(in srgb, var(--rp-text) 22%, transparent);--rp-hl-med:#78788052;--rp-hl-high:#7878805c;--rp-on-accent:#fff;--rp-on-text:#1c1c1e;--rp-positive-text:#30db5b;--rp-notice-text:#ffb340;--rp-accent-fill:#409cff;--rp-on-accent-fill:#1c1c1e;--rp-negative-fill:#ff6961;--rp-on-negative-fill:#1c1c1e;--rp-on-notice:#1c1c1e;--rp-line:#54545899;--rp-knob:#636366;--rp-knob-shadow:0 1px 3px #00000059;--rp-underlay:#0006;--rp-shadow-lg:0 2px 6px #0003, 0 20px 56px #00000073;--rp-solid-wall:#000;--rp-solid-chrome:#1c1c1e;--rp-solid-card:#1c1c1e;--rp-solid-float:#2c2c2e;--rp-solid-edge:#38383a}:root[data-family=glass][data-scheme=dark]{--rp-base:#1e1e2280;--rp-surface:#1e1e2280;--rp-overlay:#ffffff1a;--rp-shadow:0 1px 2px #0003, 0 10px 30px #0000004d;--rp-wall:radial-gradient(circle at 63% 36%, #ffd60a52 0 120px, #ffd60a00 121px), radial-gradient(circle at 30% 66%, #64d2ff00 0 190px, #64d2ff5c 191px 199px, #64d2ff00 200px), linear-gradient(118deg, #fff0 0 60%, #ffffff14 60% 64%, #fff0 64%), linear-gradient(28deg, #ff375f00 0 74%, #ff375f4d 74% 77%, #ff375f00 77%), radial-gradient(34% 46% at 28% 30%, #0a84ff6b, #0a84ff00 72%), radial-gradient(32% 44% at 84% 22%, #ff375f5c, #ff375f00 72%), radial-gradient(40% 50% at 74% 84%, #ff9f0a52, #ff9f0a00 72%), radial-gradient(36% 46% at 26% 88%, #30d15847, #30d15800 72%), radial-gradient(28% 36% at 52% 56%, #bf5af266, #bf5af200 72%), linear-gradient(160deg, #070a17 0%, #110c1e 50%, #05131a 100%);--rp-chrome:rgba(22, 22, 26, calc(.46 + var(--rp-fill-boost)));--rp-card-fill:rgba(30, 30, 34, calc(.5 + varLine truncated
|
||||
:root[data-family=glass]{--rp-blur-scale:1;--rp-fill-boost:calc((1 - min(var(--rp-blur-scale), 1)) * .2);--rp-muted:#8e8e93;--rp-subtle:#48484a;--rp-text:#000;--rp-placeholder:#3c3c434d;--rp-love:#ff3b30;--rp-gold:#ff9500;--rp-rose:#ff9f0a;--rp-pine:#007aff;--rp-foam:#34c759;--rp-iris:#af52de;--rp-c1:#007aff;--rp-c2:#34c759;--rp-c3:#af52de;--rp-c4:#ff9500;--rp-c5:#5ac8fa;--rp-c6:#ff2d55;--rp-c7:#fc0;--rp-c8:#ff3b30;--rp-hl-low:#74748014;--rp-ctl:color-mix(in srgb, var(--rp-text) 5%, transparent);--rp-ctl-hover:color-mix(in srgb, var(--rp-text) 9%, transparent);--rp-ctl-pressed:color-mix(in srgb, var(--rp-text) 13%, transparent);--rp-hl-med:#78788029;--rp-hl-high:#78788033;--rp-on-accent:#fff;--rp-on-text:#fff;--rp-accent-text:var(--rp-text);--rp-info-text:var(--rp-text);--rp-positive-text:var(--rp-text);--rp-notice-text:var(--rp-text);--rp-accent-fill:#0040dd;--rp-on-accent-fill:#fff;--rp-negative-fill:#d70015;--rp-on-negative-fill:#fff;--rp-negative-text:var(--rp-negative-fill);--rp-line:#3c3c434a;--rp-track:var(--rp-ctl);--rp-knob:#fff;--rp-knob-shadow:0 1px 3px #0000001f, 0 3px 8px #00000014;--rp-switch-knob:#fff;--rp-switch-knob-shadow:0 1px 2px #00000040;--rp-underlay:#14141e3d;--rp-shadow-lg:0 2px 6px #0f14280f, 0 18px 48px #0f142829;--rp-solid-wall:#f2f2f7;--rp-solid-chrome:#f2f2f7;--rp-solid-card:#fff;--rp-solid-float:#fff;--rp-solid-edge:#c6c6c8;--rp-base:#fff6;--rp-surface:#fff6;--rp-overlay:#ffffff73;--rp-shadow:0 1px 2px #0f14280d, 0 8px 28px #0f142817;--rp-wall:radial-gradient(circle at 63% 36%, #ffcc00b3 0 120px, #fc00 121px), radial-gradient(circle at 30% 66%, #007aff00 0 190px, #007aff80 191px 199px, #007aff00 200px), linear-gradient(118deg, #fff0 0 60%, #fff9 60% 64%, #fff0 64%), linear-gradient(28deg, #ff2d5500 0 74%, #ff2d5573 74% 77%, #ff2d5500 77%), radial-gradient(34% 46% at 28% 30%, #007aff80, #007aff00 72%), radial-gradient(32% 44% at 84% 22%, #ff2d5580, #ff2d5500 72%), radial-gradient(40% 50% at 74% 84%, #ff95008c, #ff950000 72%), radial-gradient(36% 46% at 26% 88%, #34c75980, #34c75900 72%), radial-gradient(28% 36% at 52% 56%, #af52de73, #af52de00 72%), linear-gradient(160deg, #e3eaf8 0%, #f1e8f4 50%, #f8eee2 100%);--rp-chrome:rgba(255, 255, 255, calc(.3 + var(--rp-fill-boost)));--rp-chrome-filter:blur(calc(16px * var(--rp-blur-scale))) saturate(1.8);--rp-column:transparent;--rp-card-fill:rgba(255, 255, 255, calc(.4 + var(--rp-fill-boost)));--rp-card-filter:blur(calc(12px * var(--rp-blur-scale))) saturate(1.7);--rp-panel-fill:rgba(255, 255, 255, calc(.4 + var(--rp-fill-boost)));--rp-panel-filter:blur(calc(14px * var(--rp-blur-scale))) saturate(1.8) brightness(1.04);--rp-float-fill:rgba(255, 255, 255, calc(.74 + var(--rp-fill-boost)));--rp-float-filter:blur(calc(14px * var(--rp-blur-scale))) saturate(1.8) brightness(1.04);--rp-table-head:#ffffff80}:root[data-family=glass][data-scheme=dark],:root[data-flavour=frosted][data-scheme=dark],:root[data-flavour=tinted][data-scheme=dark]{--rp-muted:#8e8e93;--rp-subtle:#aeaeb2;--rp-text:#fff;--rp-placeholder:#ebebf54d;--rp-love:#ff453a;--rp-gold:#ff9f0a;--rp-rose:#ffb340;--rp-pine:#0a84ff;--rp-foam:#30d158;--rp-iris:#bf5af2;--rp-c1:#0a84ff;--rp-c2:#30d158;--rp-c3:#bf5af2;--rp-c4:#ff9f0a;--rp-c5:#64d2ff;--rp-c6:#ff375f;--rp-c7:#ffd60a;--rp-c8:#ff453a;--rp-hl-low:#7676802e;--rp-ctl:color-mix(in srgb, var(--rp-text) 10%, transparent);--rp-ctl-hover:color-mix(in srgb, var(--rp-text) 16%, transparent);--rp-ctl-pressed:color-mix(in srgb, var(--rp-text) 22%, transparent);--rp-hl-med:#78788052;--rp-hl-high:#7878805c;--rp-on-accent:#fff;--rp-on-text:#1c1c1e;--rp-positive-text:#30db5b;--rp-notice-text:#ffb340;--rp-accent-fill:#409cff;--rp-on-accent-fill:#1c1c1e;--rp-negative-fill:#ff6961;--rp-on-negative-fill:#1c1c1e;--rp-on-notice:#1c1c1e;--rp-line:#54545899;--rp-knob:#636366;--rp-knob-shadow:0 1px 3px #00000059;--rp-underlay:#0006;--rp-shadow-lg:0 2px 6px #0003, 0 20px 56px #00000073;--rp-solid-wall:#000;--rp-solid-chrome:#1c1c1e;--rp-solid-card:#1c1c1e;--rp-solid-float:#2c2c2e;--rp-solid-edge:#38383a}:root[data-family=glass][data-scheme=dark]{--rp-base:#1e1e2280;--rp-surface:#1e1e2280;--rp-overlay:#ffffff1a;--rp-shadow:0 1px 2px #0003, 0 10px 30px #0000004d;--rp-wall:radial-gradient(circle at 63% 36%, #ffd60a52 0 120px, #ffd60a00 121px), radial-gradient(circle at 30% 66%, #64d2ff00 0 190px, #64d2ff5c 191px 199px, #64d2ff00 200px), linear-gradient(118deg, #fff0 0 60%, #ffffff14 60% 64%, #fff0 64%), linear-gradient(28deg, #ff375f00 0 74%, #ff375f4d 74% 77%, #ff375f00 77%), radial-gradient(34% 46% at 28% 30%, #0a84ff6b, #0a84ff00 72%), radial-gradient(32% 44% at 84% 22%, #ff375f5c, #ff375f00 72%), radial-gradient(40% 50% at 74% 84%, #ff9f0a52, #ff9f0a00 72%), radial-gradient(36% 46% at 26% 88%, #30d15847, #30d15800 72%), radial-gradient(28% 36% at 52% 56%, #bf5af266, #bf5af200 72%), linear-gradient(160deg, #070a17 0%, #110c1e 50%, #05131a 100%);--rp-chrome:rgba(22, 22, 26, calc(.46 + var(--rp-fill-boost)));--rp-card-fill:rgba(30, 30, 34, calc(.5 + varLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{l as e}from"./wallpaper-CEC7gitM.js";import"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";const r=""+new URL("glass-D3s0PXdk.css",import.meta.url).href;let o;function t(){if(o)return o;const e=document.head.querySelector("link[data-glass]");return e?.sheet?o=Promise.resolve():(e?.remove(),o=new Promise((e,t)=>{const s=document.createElement("link");s.rel="stylesheet",s.href=r,s.dataset.glass="",s.onload=()=>e(),s.onerror=()=>{o=void 0,t(new Error(`Unable to preload CSS for ${r}`))},document.head.insertBefore(s,document.head.querySelector('link[rel="stylesheet"], style'))}),o)}e();export{t as linkStylesheet};
|
||||
@@ -0,0 +1 @@
|
||||
import{l as s}from"./paletteSheet-Vc0PGoNW.js";import{l as r}from"./wallpaper-CEC7gitM.js";import"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";const e=""+new URL("glass-BaA-OKzR.css",import.meta.url).href,o=()=>s("glass",e);r();export{o as linkStylesheet};
|
||||
@@ -0,0 +1 @@
|
||||
import{l as e}from"./paletteSheet-Vc0PGoNW.js";const t=""+new URL("halloween-e3DfiasY.css",import.meta.url).href,l=()=>e("halloween",t);export{l as linkStylesheet};
|
||||
@@ -0,0 +1 @@
|
||||
:root[data-family=halloween]{--rp-base:#fdf6e9;--rp-surface:#f7ecd8;--rp-overlay:#efdfc3;--rp-muted:#a08f9f;--rp-subtle:#5c4570;--rp-text:#2a1a33;--rp-love:#b3172b;--rp-gold:#8a5a00;--rp-rose:#c4501a;--rp-pine:#a84300;--rp-foam:#2f6b1f;--rp-iris:#6b2fa3;--rp-c1:#ff7518;--rp-c2:#6b2fa3;--rp-c3:#e0a800;--rp-c4:#6f9e00;--rp-c5:#c2185b;--rp-c6:#3d2b56;--rp-c7:#e8894a;--rp-c8:#4f8a2b;--rp-hl-low:#f5e9d3;--rp-hl-med:#ead8b8;--rp-hl-high:#d9c09a;--rp-shadow:0 2px 10px #3d2b5614;--rp-on-accent:#fff;--rp-line:var(--rp-hl-med);--rp-fill:var(--rp-hl-med);--rp-accent-tile-text:var(--rp-text);--rp-info-tile-text:var(--rp-text);--rp-notice-tile-text:var(--rp-text);--rp-positive-tile-text:var(--rp-text)}:root[data-family=halloween][data-scheme=dark]{--rp-base:#140e1c;--rp-surface:#1d1528;--rp-overlay:#2a1f3a;--rp-muted:#7d6d8e;--rp-subtle:#c9b8d9;--rp-text:#f3e9dc;--rp-love:#ff7a85;--rp-gold:#ffd25e;--rp-rose:#ffa86b;--rp-pine:#ff8c3a;--rp-foam:#a8d84e;--rp-iris:#c49bff;--rp-c1:#ff7518;--rp-c2:#b57bff;--rp-c3:#ffd25e;--rp-c4:#9bd13c;--rp-c5:#ff5c8a;--rp-c6:#8a6cff;--rp-c7:#ffa86b;--rp-c8:#e8e0d0;--rp-hl-low:#241a31;--rp-hl-med:#352847;--rp-hl-high:#4d3a66;--rp-shadow:0 1px 2px #0006;--rp-on-accent:#140e1c;--rp-accent-tile-text:var(--rp-accent-text);--rp-info-tile-text:var(--rp-info-text);--rp-notice-tile-text:var(--rp-notice-text);--rp-positive-tile-text:var(--rp-positive-text)}:root[data-family=halloween] .rp-card{--hw-art:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%20opacity='.1'%3e%3cg%20stroke='%230b0a09'%20stroke-width='3.5'%20stroke-linejoin='round'%20stroke-linecap='round'%3e%3cpath%20fill='%234f8a2b'%20d='M45%2030c0-9%203-16%209-20l6%205c-5%204-7%209-7%2015z'/%3e%3cellipse%20cx='33'%20cy='60'%20rx='24'%20ry='29'%20fill='%23ff7518'/%3e%3cellipse%20cx='67'%20cy='60'%20rx='24'%20ry='29'%20fill='%23ff7518'/%3e%3cellipse%20cx='50'%20cy='60'%20rx='19'%20ry='31'%20fill='%23ff8c3a'/%3e%3cpath%20fill='%230b0a09'%20d='M29%2054l8-12%208%2012zM55%2054l8-12%208%2012zM27%2067q23%2020%2046%200l-7%202-4%206-6-5-6%206-6-6-6%205-4-6z'/%3e%3c/g%3e%3c/svg%3e");background:var(--hw-art) no-repeat right 10px bottom 10px / 48px auto, var(--rp-base)}:root[data-family=halloween] :is(.rp-card:nth-child(4n+2),.rp-dashboard-cell:nth-child(4n+2)>.rp-card){--hw-art:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%20opacity='.1'%3e%3cg%20stroke='%230b0a09'%20stroke-width='3.5'%20stroke-linejoin='round'%20stroke-linecap='round'%20fill='%236b2fa3'%3e%3cpath%20d='M50%2040c-3%200-5%203-5%203l-2-6-2%207c-6-5-17-8-31-3%206%203%209%209%207%2015%205-3%2010-3%2013%201%202-3%207-4%2010-1%202%205%206%209%2010%209s8-4%2010-9c3-3%208-2%2010%201%203-4%208-4%2013-1-2-6%201-12%207-15-14-5-25-2-31%203l-2-7-2%206s-2-3-5-3z'%20transform='translate(4%2030)%20scale(.9)'/%3e%3cpath%20d='M50%2040c-3%200-5%203-5%203l-2-6-2%207c-6-5-17-8-31-3%206%203%209%209%207%2015%205-3%2010-3%2013%201%202-3%207-4%2010-1%202%205%206%209%2010%209s8-4%2010-9c3-3%208-2%2010%201%203-4%208-4%2013-1-2-6%201-12%207-15-14-5-25-2-31%203l-2-7-2%206s-2-3-5-3z'%20transform='translate(56%206)%20scale(.5)'/%3e%3c/g%3e%3c/svg%3e")}:root[data-family=halloween] :is(.rp-card:nth-child(4n+3),.rp-dashboard-cell:nth-child(4n+3)>.rp-card){--hw-art:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%20opacity='.1'%3e%3cpath%20d='M68%2086c18%200%2024-16%2014-28'%20fill='none'%20stroke='%230b0a09'%20stroke-width='11'%20stroke-linecap='round'/%3e%3cpath%20d='M68%2086c18%200%2024-16%2014-28'%20fill='none'%20stroke='%233d2b56'%20stroke-width='4'%20stroke-linecap='round'/%3e%3cg%20stroke='%230b0a09'%20stroke-width='3.5'%20stroke-linejoin='round'%20fill='%233d2b56'%3e%3cpath%20d='M40%2044c-10%2012-12%2032-10%2044h40c2-12%200-32-10-44z'/%3e%3cpath%20d='M36%2028l2-18%2010%2011q2-.5%204%200l10-11%202%2018a16%2016%200%201%201-28%200z'/%3e%3c/g%3e%3cg%20fill='%23ffd25e'%3e%3cellipse%20cx='44'%20cy='36'%20rx='3.5'%20ry='4.5'/%3e%3cellipse%20cx='56'%20cy='36'%20rx='3.5'%20ry='4.5'/%3e%3c/g%3e%3cpath%20d='M44%2033v6M56%2033v6'%20stroke='%230b0a09'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e")}:root[data-family=halloween] :is(.rp-card:nth-child(4n),.rp-dashboard-cell:nth-child(4n)>.rp-card){--hw-art:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%20opacity='.1'%3e%3cg%20fill='none'%20stroke='%237a6a8a'%20stroke-width='2.5'%20stroke-linecap='round'%3e%3cpath%20d='M100%20100L4%20100M100%20100L11%2063M100%20100L32%2032M100%20100L63%2011M100%20100L100%204M72%20100Q76%2095%2074%2089Q80%2087%2080%2080Q87%2080%2089%2074Q95%2076%20100%2072M48%20100Q56%2091%2052%2080Q63%2075%2063%2063Q75%2063%2080%2052Q91%2056%20100%2048M24%20100Q36%2087%2030%2071Q46%2064%2046%2046Q64%2046%2071%2030Q87%2036%20100%2024'/%3e%3c/g%3e%3cpath%20d='M30%200v40'%20stroke='%237a6a8a'%20stroke-width='1.5'/%3e%3cg%20stroke='%230b0a09'%20stroke-wiLine truncated
|
||||
+1
-1
@@ -1 +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
|
||||
@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
|
||||
@@ -1 +0,0 @@
|
||||
import{bL as e,bM as t,aM as n,bN as o,bO as r,bP as a,bQ as i,bR as s,am as l,bS as d,bT as c,O as u,aT as p,bU as _,aS as m,bV as f,bW as g}from"./index-tt2n9Zk_.js";import{E as h,F as b,s as w,u as v,G as y,H as k,I as x,J as S,K as I,d as A,r as q,L as N,M,N as $,O,n as D,P as C,Q as R,R as j,S as E,e as T,x as L,T as P}from"./nodes-CWX2Nx2b.js";import{d as z,v as G,g as U}from"./geodata-X0pHz03D.js";import{mockSessionValid as F,withPasswordAuth as H,refuseWithoutSession as J}from"./auth-BbaGVG7g.js";import"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./auth-CnQmki5R.js";const B=Date.now(),W=e=>new Date(B-1e3*e).toISOString(),Q=e=>new Date(B+1e3*e).toISOString(),V=W(0),K="mock-instance-1",X="40",Y={"x-honk":{config_export:{available:!0},config_import:{available:!0,replace_required:!0},config_revisions:{available:!0,can_activate:!0,max_revisions:50}}},Z={extensions:Y,observed_at:V,profiles:["base","full_transparency"],limits:{max_request_target_bytes:4096,max_header_bytes:16384,max_json_body_bytes:65536},resources:{...Y,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}}},ee={...Z.resources};delete ee["x-honk"];const te={...Z,extensions:{},profiles:["base"],resources:{...ee,groups:{...Z.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:{...Z.resources.flows,available:!1},routing_trace:{...Z.resources.routing_trace,available:!1},events:{...Z.resources.events,available:!1}}},ne={...Z,extensions:{},profiles:["base"],resources:{...Object.fromEntries(Object.keys(ee).map(e=>[e,{available:!1}])),runtime:{available:!0},connections:{available:!0,can_close:!1,max_bulk_close:1e3},config:{available:!1,create:!1}}},oe=h("regions").filter(e=Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{bL as e,bM as t,aM as n,bN as o,bO as r,bP as a,bQ as i,bR as s,am as l,bS as d,bT as c,O as u,aT as p,bU as _,aS as m,bV as f,bW as g}from"./index-DFPUSiWe.js";import{E as h,F as b,s as w,u as v,G as y,H as k,I as x,J as S,K as I,d as A,r as q,L as N,M,N as $,O,n as D,P as C,Q as R,R as j,S as E,e as T,x as L,T as P}from"./nodes-HzIJdCpg.js";import{d as z,v as G,g as U}from"./geodata-CvcFemyc.js";import{mockSessionValid as F,withPasswordAuth as H,refuseWithoutSession as J}from"./auth-rPpvn4ox.js";import"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./auth-Br_GGGEt.js";const B=Date.now(),W=e=>new Date(B-1e3*e).toISOString(),Q=e=>new Date(B+1e3*e).toISOString(),V=W(0),X="mock-instance-1",K="40",Y={"x-honk":{config_export:{available:!0},config_import:{available:!0,replace_required:!0},config_revisions:{available:!0,can_activate:!0,max_revisions:50}}},Z={extensions:Y,observed_at:V,profiles:["base","full_transparency"],limits:{max_request_target_bytes:4096,max_header_bytes:16384,max_json_body_bytes:65536},resources:{...Y,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.1.0",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}}},ee={...Z.resources};delete ee["x-honk"];const te={...Z,extensions:{},profiles:["base"],resources:{...ee,groups:{...Z.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:{...Z.resources.flows,available:!1},routing_trace:{...Z.resources.routing_trace,available:!1},events:{...Z.resources.events,available:!1}}},ne={...Z,extensions:{},profiles:["base"],resources:{...Object.fromEntries(Object.keys(ee).map(e=>[e,{available:!1}])),runtime:{available:!0},connections:{available:!0,can_close:!1,max_bulk_close:1e3},config:{available:!1,create:!1}}},oe=h("regions").filter(e=>!e.stLine truncated
|
||||
+2
-2
@@ -1,2 +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","./SearchList-D3Aknep5.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./Virtualizer-Bm8y6eIs.js","./index-CG7Q_Xp4.js","./nodes-CWX2Nx2b.js","./geodata-X0pHz03D.js","./auth-BbaGVG7g.js","./auth-CnQmki5R.js","./SearchDialog-B8FB1rqR.js","./Select-DO5D4JEL.js","./ItemText-EZM3RrYN.js","./logs-DlBF9FTI.js","./AppearanceControls-D6ckn4zJ.js","./flows-GETlXTEg.js","./nav-BBKOedXV.js","./activity-St9WlHNk.js","./activity-CKk6X7wg.css","./nav-xLy0j69-.js","./nav-DL8Z2h52.js","./nav-CMiyhHuu.js","./nav-c-qn5XzG.js","./nav-BO8viH9G.js","./nav-BcPQklmW.js","./Overview-B0bkmRdH.js","./files-Dt8K7QfP.js","./limitHint-Da336AR0.js","./Table-CNIdPyPm.js","./useGridSelectionCheckbox-EoqO9l1F.js","./DaeCode-DEjXqvav.js","./daeTokens-BVtuNnWZ.js","./Connections-CE8HVTjG.js","./ipLookup-D4aKj_sQ.js","./LinkOut-XZA33RqA.js","./ipLookup-BYorpVJi.css","./NodePath-C2It1vc3.js","./Tag-D7lhqmBG.js","./Tabs-DWzcwxse.js","./SearchSelect-OEHKvvM7.js","./TimeCell-CIxTaFhT.js","./useQuickRule-DGnvKUbx.js","./AddCircle-DSnjUOi9.js","./rule-C_tGvS3P.js","./outbounds-DLdbuVA3.js","./labels-D8xxfRTQ.js","./Flows-MzAGewk3.js","./Coverage-D0M5eSx-.js","./GridList-2xKNlEZe.js","./CardView-DB4CLM1X.js","./Flows-BekA1vQh.css","./Dns-CRdlxhiM.js","./Delete-XRP-Yofb.js","./Dns-CsAXSf3H.css","./impact-B8feJDtJ.css","./Policies-DtNJCYoo.js","./ProbeOptionsDialog-CVvbW9SQ.js","./ConditionRow-DDRkT9im.js","./NumberField-DT8-IUla.js","./probe-Bc_Ehmu3.js","./Rules-DC4HCNUS.js","./recorder-BHyqDNp5.js","./geodataUpdate-C5Lm7JjR.js","./Nodes-CPgu8m3i.js","./FlagPicker-DWPk_M3h.js","./Nodes-Dz09mbUJ.css","./Config-CsnBebfl.js","./Events-BVGNm2JO.js","./Copy-8L85FkPb.js","./Logs-B7JeD6qF.js","./Settings-Dvp8atFy.js","./Settings-BVpmQMTB.css","./glass-Cqyc7cvc.js","./wallpaper-CEC7gitM.js","./Login-D2rVRyYl.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(w());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 w(){return"function"==typeof e.useSyncExternalStore?e.useSyncExternalStore(b,y,v):t.useContext(h)}let E,x=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),k=new Map;"undefined"!=typeof FinalizationRegistry&&(E=new FinalizationRegistry(e=>{k.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(E&&a!==o&&(null!=a&&E.unregister(s),E.register(s,o,s),C.set(s,o)),x){const e=k.get(o);e&&!e.includes(i)?e.push(i):k.set(o,[i])}return d(()=>{let e=o;return()=>{E&&(E.unregister(s),C.delete(s)),k.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=k.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=k.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 R(...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=R(r,o):t[e]=void 0!==o?o:r:t[e]=n(r,o)}}return t}function L(e){const n=t.useRef(null),r=t.useRLine truncated
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./fonts-C5_wsAqZ.css","./fonts-sc-Dyn9aW84.css","./fonts-tc-D9rvq3k7.css","./SearchList-C88Y6c53.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./Virtualizer-BH6NJSXn.js","./index-D2MLmo5c.js","./nodes-HzIJdCpg.js","./geodata-CvcFemyc.js","./auth-rPpvn4ox.js","./auth-Br_GGGEt.js","./SearchDialog-CznCqNH0.js","./Select-BFkb6iie.js","./ItemText-u3CUc_6I.js","./logs-lI5kXcWp.js","./AppearanceControls-Bpq6OQjk.js","./flows-Cd1KbGP2.js","./nav-C6jMmQ4d.js","./activity-pUN0wcVd.js","./activity-CKk6X7wg.css","./nav-Bw7F3lhF.js","./nav-BLmatpph.js","./nav-CISoRdvs.js","./nav-lSzYOU50.js","./nav-BO8viH9G.js","./nav-CfbmlNWr.js","./Overview-CgY0TDEB.js","./files-Dt8K7QfP.js","./limitHint-drqGf1xh.js","./Table-6xnX6eUx.js","./useGridSelectionCheckbox-wMhI-U-R.js","./Checkbox-xU-Ds7Hn.js","./DaeCode-DEjXqvav.js","./daeTokens-BVtuNnWZ.js","./Connections-E-DQbY3S.js","./ipLookup-47nEpvjK.js","./LinkOut-B50sd8cz.js","./ipLookup-BYorpVJi.css","./NodePath-DCKKYRsk.js","./Tag-BZqiYh1Z.js","./Tabs-HxpCyCLR.js","./SearchSelect-CsXd0DEh.js","./TimeCell-CRwMWdtu.js","./useQuickRule-BGNvNXBX.js","./AddCircle-V0Kluz-m.js","./rule-D1hMywhM.js","./outbounds-BMHzxQr8.js","./labels-D8xxfRTQ.js","./Flows-DfgvM-Ta.js","./Coverage-BRhvKmi_.js","./GridList-BuXKU7Uk.js","./CardView-CwlxcqMf.js","./Flows-BekA1vQh.css","./Dns-Ct51pA2s.js","./Delete-DIaM96Pb.js","./Dns-CsAXSf3H.css","./impact-B8feJDtJ.css","./Policies-SR8BE_dk.js","./ProbeOptionsDialog-BDgL7_BI.js","./CheckboxSet-CRYfymLL.js","./NumberField-kCp6sey7.js","./probe-Db_cbYvO.js","./Rules-Bt5JZQKX.js","./recorder-BHyqDNp5.js","./geodataUpdate-BANPx3Of.js","./Nodes-BP4CnthX.js","./FlagPicker-DZPvPF1E.js","./Nodes-Dz09mbUJ.css","./Config-DdQPDBRG.js","./Events-BNRsSpN9.js","./Copy-DRn0jPgo.js","./Logs-C9CHXk6c.js","./Settings-IzcnYfjs.js","./Settings-BVpmQMTB.css","./glass-D0JDY1or.js","./paletteSheet-Vc0PGoNW.js","./wallpaper-CEC7gitM.js","./halloween-Dfny7j3b.js","./Login-DaBUo9Xb.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(w());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 w(){return"function"==typeof e.useSyncExternalStore?e.useSyncExternalStore(b,y,v):t.useContext(h)}let E,x=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),k=new Map;"undefined"!=typeof FinalizationRegistry&&(E=new FinalizationRegistry(e=>{k.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(E&&a!==o&&(null!=a&&E.unregister(s),E.register(s,o,s),C.set(s,o)),x){const e=k.get(o);e&&!e.includes(i)?e.push(i):k.set(o,[i])}return d(()=>{let e=o;return()=>{E&&(E.unregister(s),C.delete(s)),k.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=k.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=k.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 R(...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=R(r,o):t[e]=void 0!==o?o:r:t[e]=n(r,o)}}return t}function L(e){const n=t.useRef(null),r=t.useRLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as s}from"./vendor-react-64fcanlc.js";import{u as e,co as a,cp as i,cq as r,cr as n,cs as t,ct as p,cu as o,cv as c,cw as l,bW as m}from"./index-tt2n9Zk_.js";import{L as h}from"./LinkOut-XZA33RqA.js";function f({ip:m,address:f,sites:d}){const u=e(),j=u("ip.lookupTitle",{ip:m}),x=a();return s.jsxs(i,{children:[s.jsxs(r,{className:"rp-link rp-ip-lookup","data-layout":"inline",children:[f,s.jsx(h,{})]}),s.jsx(n,{className:"rp-popover rp-list-popover rp-ip-lookup-menu",placement:"bottom start",boundaryElement:x,children:s.jsx(t,{children:s.jsxs(p,{children:[s.jsxs(o,{className:"rp-sec-h rp-ip-lookup-head",children:[j,s.jsx("span",{className:"desc",children:u("ip.lookupNote")})]}),d.map(e=>s.jsxs(c,{id:e.name,href:e.href,target:"_blank",rel:"noreferrer",className:"rp-item plain",textValue:e.name,children:[s.jsx("span",{className:"rp-item-text",children:s.jsx(l,{slot:"label",children:e.name})}),s.jsx(h,{})]},e.name))]})})})]})}function d(s){let e=m(s);if(!e)return!1;const a=e.match(/^::ffff:([\da-f]+):([\da-f]+)$/);if(a){const s=65536*parseInt(a[1],16)+parseInt(a[2],16);e=[s>>>24,s>>>16&255,s>>>8&255,255&s].join(".")}if(e.includes(":")){const s=parseInt(e.split(":")[0]||"0",16);return"::"!==e&&"::1"!==e&&64512!=(65024&s)&&65152!=(65472&s)&&!!(65280&~s)}const[i,r]=e.split(".").map(Number);return!(!(0!==i&&10!==i&&127!==i&&i<224)||100===i&&r>=64&&r<=127||169===i&&254===r||172===i&&r>=16&&r<=31||192===i&&168===r)}function u(s){const e=m(s);return[{name:"ipinfo.io",href:`https://ipinfo.io/${e}`},{name:"ipapi.is",href:`https://ipapi.is/?q=${e}`},{name:"ip-api.com",href:`https://ip-api.com/#${e}`},{name:"bgp.he.net",href:`https://bgp.he.net/ip/${e}`}]}export{f as I,u as a,d as i};
|
||||
import{j as s}from"./vendor-react-64fcanlc.js";import{u as e,co as a,cp as i,cq as r,cr as n,cs as t,ct as p,cu as o,cv as c,cw as l,bW as m}from"./index-DFPUSiWe.js";import{L as h}from"./LinkOut-B50sd8cz.js";function f({ip:m,address:f,sites:d}){const u=e(),j=u("ip.lookupTitle",{ip:m}),x=a();return s.jsxs(i,{children:[s.jsxs(r,{className:"rp-link rp-ip-lookup","data-layout":"inline",children:[f,s.jsx(h,{})]}),s.jsx(n,{className:"rp-popover rp-list-popover rp-ip-lookup-menu",placement:"bottom start",boundaryElement:x,children:s.jsx(t,{children:s.jsxs(p,{children:[s.jsxs(o,{className:"rp-sec-h rp-ip-lookup-head",children:[j,s.jsx("span",{className:"desc",children:u("ip.lookupNote")})]}),d.map(e=>s.jsxs(c,{id:e.name,href:e.href,target:"_blank",rel:"noreferrer",className:"rp-item plain",textValue:e.name,children:[s.jsx("span",{className:"rp-item-text",children:s.jsx(l,{slot:"label",children:e.name})}),s.jsx(h,{})]},e.name))]})})})]})}function d(s){let e=m(s);if(!e)return!1;const a=e.match(/^::ffff:([\da-f]+):([\da-f]+)$/);if(a){const s=65536*parseInt(a[1],16)+parseInt(a[2],16);e=[s>>>24,s>>>16&255,s>>>8&255,255&s].join(".")}if(e.includes(":")){const s=parseInt(e.split(":")[0]||"0",16);return"::"!==e&&"::1"!==e&&64512!=(65024&s)&&65152!=(65472&s)&&!!(65280&~s)}const[i,r]=e.split(".").map(Number);return!(!(0!==i&&10!==i&&127!==i&&i<224)||100===i&&r>=64&&r<=127||169===i&&254===r||172===i&&r>=16&&r<=31||192===i&&168===r)}function u(s){const e=m(s);return[{name:"ipinfo.io",href:`https://ipinfo.io/${e}`},{name:"ipapi.is",href:`https://ipapi.is/?q=${e}`},{name:"ip-api.com",href:`https://ip-api.com/#${e}`},{name:"bgp.he.net",href:`https://bgp.he.net/ip/${e}`}]}export{f as I,u as a,d as i};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{e}from"./nodes-CWX2Nx2b.js";import{b1 as o,bC as t}from"./index-tt2n9Zk_.js";const r={connections:"nav.connections",flows:"flow.records",routing_trace:"ov.r.routingTrace",dns_query:"ov.r.dnsQuery",dns_cache:"ov.r.dnsCache",dns_log:"ov.r.dnsLog",events:"nav.events",probes:"ov.r.probes",traffic_history:"ov.r.trafficHistory",memory_history:"ov.r.memoryHistory",runtime_outbounds:"ov.r.outbounds",logs:"nav.logs",providers:"nodes.providers",rules:"rule.listTitle",config:"nav.config",config_validate:"ov.r.configValidate",runtime_settings:"settings.runtime",geodata:"settings.geodata"},s={connections:[r.connections,"req-connections"],flows:[r.flows,"req-flows"],routing_trace:[r.routing_trace,"req-routing-trace"],dns_query:[r.dns_query,"req-dns-query"],dns_cache:[r.dns_cache,"req-dns-cache"],dns_log:[r.dns_log,"req-dns-log"],events:[r.events,"req-events"],probes:[r.probes,"req-probes"],traffic_history:[r.traffic_history,"req-traffic-history"],memory_history:[r.memory_history,"req-traffic-history"],runtime_outbounds:[r.runtime_outbounds,"req-runtime-status"],logs:[r.logs,"req-logs"],providers:[r.providers,"req-nodes"],rules:[r.rules,"req-rules"],config:[r.config,"req-config-edit"],config_validate:[r.config_validate,"req-validation"],runtime_settings:[r.runtime_settings,"req-runtime-options"],geodata:[r.geodata,"req-geodata"],dns_rules:["ov.r.dnsRules","req-rules"],reload:["ov.r.reload","req-reload-suspend"],suspend:["ov.r.suspend","req-reload-suspend"],resume:["ov.r.resume","req-reload-suspend"],manage:["ov.lim.manage","req-nodes"],subscriptions:["ov.lim.subscriptions","req-subscription-refresh"],close:["ov.lim.close","req-connections"],create:["ov.lim.create","req-config-edit"],validate_full:["ov.lim.validateFull","req-validation"],global_settings:["ov.lim.globalSettings","req-config-edit"],mode:["ov.lim.mode","req-config-edit"],rule_edit:["ov.lim.ruleEdit","req-rules"],export:["ov.lim.export","req-revisions"],import:["ov.lim.import","req-revisions"],revisions:["ov.lim.revisions","req-revisions"],restore:["ov.lim.restore","req-revisions"],group_edit:["ov.lim.groupEdit","req-group-edit"],selection:["ov.lim.selection","req-group-selection"],trace_live:["ov.lim.traceLive","req-routing-trace"],dns_cache_read:["ov.lim.dnsCacheRead","req-dns-cache"],dns_cache_delete:["ov.lim.dnsCacheDelete","req-dns-cache"],dns_cache_flush:["ov.lim.dnsCacheFlush","req-dns-cache"],geodata_settings:["ov.lim.geodataSettings","req-geodata-settings"]},i={"config-unloaded":{text:"ov.lim.configMissing"},"writes-off":{text:"ov.lim.configWrite",docs:["read-only","ov.lim.docsReadOnly"]},"main-file-read-only":{text:"ov.lim.mainReadOnly",docs:["read-only","ov.lim.docsReadOnly"]},"recorder-off":{text:"ov.lim.recordOff"},"no-download-urls":{text:"ov.lim.geoNoStateDb",docs:["state-db","ov.lim.docsStateDb"]},"geodata-mismatch":{text:"ov.lim.geoUnreadable"},"starting-or-stopping":{text:"ov.lim.notRunningReason"},"start-flag":{text:"ov.lim.startFlag"},"state-db-closed":{text:"ov.lim.stateDbClosed",docs:["state-db","ov.lim.docsStateDb"]}},n=(e,o)=>e(i[o.code].text,"start-flag"===o.code?{flag:o.flag,credential:o.credentials.join(e("ui.listOr"))}:"state-db-closed"===o.code?{key:o.writeSwitch}:void 0);function a(e,o,r,i){const n="geodata"===r&&"geodata-mismatch"!==i?"req-geodata-update":s[r][1];return{href:t(o,n),text:e("ov.lim.docsFor",{feature:e(s[r][0])}),external:!0}}const d=(o,t,r,s,i,n)=>l(o,e(r).reason(o,t,n),s,i);function l(e,t,r,s){if(!t||!i[t.code])return;const d="settings"in t?t.settings.map(e=>e.key):[];return{text:n(r,t),setting:d.length>0?o(s,d):void 0,link:a(r,s,e,t.code)}}export{i as a,n as b,d as c,l as d,a as f,s as l,r};
|
||||
import{e}from"./nodes-HzIJdCpg.js";import{b1 as o,bC as t}from"./index-DFPUSiWe.js";const r={connections:"nav.connections",flows:"flow.records",routing_trace:"ov.r.routingTrace",dns_query:"ov.r.dnsQuery",dns_cache:"ov.r.dnsCache",dns_log:"ov.r.dnsLog",events:"nav.events",probes:"ov.r.probes",traffic_history:"ov.r.trafficHistory",memory_history:"ov.r.memoryHistory",runtime_outbounds:"ov.r.outbounds",logs:"nav.logs",providers:"nodes.providers",rules:"rule.listTitle",config:"nav.config",config_validate:"ov.r.configValidate",runtime_settings:"settings.runtime",geodata:"settings.geodata"},s={connections:[r.connections,"req-connections"],flows:[r.flows,"req-flows"],routing_trace:[r.routing_trace,"req-routing-trace"],dns_query:[r.dns_query,"req-dns-query"],dns_cache:[r.dns_cache,"req-dns-cache"],dns_log:[r.dns_log,"req-dns-log"],events:[r.events,"req-events"],probes:[r.probes,"req-probes"],traffic_history:[r.traffic_history,"req-traffic-history"],memory_history:[r.memory_history,"req-traffic-history"],runtime_outbounds:[r.runtime_outbounds,"req-runtime-status"],logs:[r.logs,"req-logs"],providers:[r.providers,"req-nodes"],rules:[r.rules,"req-rules"],config:[r.config,"req-config-edit"],config_validate:[r.config_validate,"req-validation"],runtime_settings:[r.runtime_settings,"req-runtime-options"],geodata:[r.geodata,"req-geodata"],dns_rules:["ov.r.dnsRules","req-rules"],reload:["ov.r.reload","req-reload-suspend"],suspend:["ov.r.suspend","req-reload-suspend"],resume:["ov.r.resume","req-reload-suspend"],manage:["ov.lim.manage","req-nodes"],subscriptions:["ov.lim.subscriptions","req-subscription-refresh"],close:["ov.lim.close","req-connections"],create:["ov.lim.create","req-config-edit"],validate_full:["ov.lim.validateFull","req-validation"],global_settings:["ov.lim.globalSettings","req-config-edit"],mode:["ov.lim.mode","req-config-edit"],rule_edit:["ov.lim.ruleEdit","req-rules"],export:["ov.lim.export","req-revisions"],import:["ov.lim.import","req-revisions"],revisions:["ov.lim.revisions","req-revisions"],restore:["ov.lim.restore","req-revisions"],group_edit:["ov.lim.groupEdit","req-group-edit"],selection:["ov.lim.selection","req-group-selection"],trace_live:["ov.lim.traceLive","req-routing-trace"],dns_cache_read:["ov.lim.dnsCacheRead","req-dns-cache"],dns_cache_delete:["ov.lim.dnsCacheDelete","req-dns-cache"],dns_cache_flush:["ov.lim.dnsCacheFlush","req-dns-cache"],geodata_settings:["ov.lim.geodataSettings","req-geodata-settings"]},i={"config-unloaded":{text:"ov.lim.configMissing"},"writes-off":{text:"ov.lim.configWrite",docs:["read-only","ov.lim.docsReadOnly"]},"main-file-read-only":{text:"ov.lim.mainReadOnly",docs:["read-only","ov.lim.docsReadOnly"]},"recorder-off":{text:"ov.lim.recordOff"},"no-download-urls":{text:"ov.lim.geoNoStateDb",docs:["state-db","ov.lim.docsStateDb"]},"geodata-mismatch":{text:"ov.lim.geoUnreadable"},"starting-or-stopping":{text:"ov.lim.notRunningReason"},"start-flag":{text:"ov.lim.startFlag"},"state-db-closed":{text:"ov.lim.stateDbClosed",docs:["state-db","ov.lim.docsStateDb"]}},n=(e,o)=>e(i[o.code].text,"start-flag"===o.code?{flag:o.flag,credential:o.credentials.join(e("ui.listOr"))}:"state-db-closed"===o.code?{key:o.writeSwitch}:void 0);function a(e,o,r,i){const n="geodata"===r&&"geodata-mismatch"!==i?"req-geodata-update":s[r][1];return{href:t(o,n),text:e("ov.lim.docsFor",{feature:e(s[r][0])}),external:!0}}const d=(o,t,r,s,i,n)=>l(o,e(r).reason(o,t,n),s,i);function l(e,t,r,s){if(!t||!i[t.code])return;const d="settings"in t?t.settings.map(e=>e.key):[];return{text:n(r,t),setting:d.length>0?o(s,d):void 0,link:a(r,s,e,t.code)}}export{i as a,n as b,d as c,l as d,a as f,s as l,r};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
const e=JSON.parse('{"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.modeApplied":"Outbound mode written to the configuration and reloaded: {mode}","act.modeConfirm":"Apply {mode} mode?","act.modeDirectHelp":"All traffic will connect directly without proxying.","act.modeGlobalHelp":"All traffic will use the selected outbound group.","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.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.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","config.atFile":"{file} line {line}: {message}","config.diagnostic.offline":"{reason} {which}","config.diagnostic.offlineDenied":"A file the configuration needs cannot be read: permission denied.","config.diagnostic.offlineGeodata":"Missing or unusable: {files}.","config.diagnostic.offlineInvalid":"A file the configuration needs is damaged or in the wrong format.","config.diagnostic.offlineMissing":"A file the configuration needs was not found.","config.diagnostic.offlineUnreadable":"A file the configuration needs cannot be read.","config.diagnostic.offlineUsual":"Usually this is geoip.dat or geosite.dat, which routing and DNS rules with geoip: or geosite: need, or a subscription or node file the configuration names.","config.kind.generated":"Generated","config.kind.include":"Include","config.kind.main":"Main","config.save":"Apply","config.writeRestart":{"one":"{n} setting takes effect only after a restart; nothing written","other":"{n} settings take effect only after a restart; nothing written"},"dashboard.allGroups":"All groups","dashboard.allRows":"All rows","dashboard.automaticWidth":"Auto","dashboard.connectionNetworks":"Connections by network","dashboard.connectionOutbounds":"Connections by outbound","dashboard.dnsAnswers":"DNS query outcomes","dashboard.dnsSample":"Latest {n} queries","dashboard.edit":"Edit dashboard","dashboard.form.area":"Area chart","dashboard.form.donut":"Donut","dashboard.form.dots":"Dot plot","dashboard.form.facts":"Status facts","dashboard.form.kv":"Key-value list","dashboard.form.ranked":"Ranked list","dashboard.form.sparkline":"Sparkline","dashboard.form.waffle":"Waffle","dashboard.height":"Height","dashboard.height.short":"Short","dashboard.height.standard":"Standard","dashboard.height.tall":"Tall","dashboard.noConnections":"No connections","dashboard.noGroups":"No policy groups","dashboard.noNodes":"No nodes","dashboard.noQueries":"No queries","dashboard.noRoom":"Too wide for this space","dashboard.noSources":"No sources","dashboLine truncated
|
||||
const e=JSON.parse('{"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.modeApplied":"Outbound mode written to the configuration and reloaded: {mode}","act.modeConfirm":"Apply {mode} mode?","act.modeDirectHelp":"All traffic will connect directly without proxying.","act.modeGlobalHelp":"All traffic will use the selected outbound group.","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.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.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","config.atFile":"{file} line {line}: {message}","config.diagnostic.offline":"{reason} {which}","config.diagnostic.offlineDenied":"A file the configuration needs cannot be read: permission denied.","config.diagnostic.offlineGeodata":"Missing or unusable: {files}.","config.diagnostic.offlineInvalid":"A file the configuration needs is damaged or in the wrong format.","config.diagnostic.offlineMissing":"A file the configuration needs was not found.","config.diagnostic.offlineUnreadable":"A file the configuration needs cannot be read.","config.diagnostic.offlineUsual":"Usually this is geoip.dat or geosite.dat, which routing and DNS rules with geoip: or geosite: need, or a subscription or node file the configuration names.","config.kind.generated":"Generated","config.kind.include":"Include","config.kind.main":"Main","config.save":"Apply","config.writeRestart":{"one":"{n} setting takes effect only after a restart; nothing written","other":"{n} settings take effect only after a restart; nothing written"},"dashboard.allGroups":"All groups","dashboard.allRows":"All rows","dashboard.automaticWidth":"Auto","dashboard.connectionNetworks":"Connections by network","dashboard.connectionOutbounds":"Connections by outbound","dashboard.dnsAnswers":"DNS query outcomes","dashboard.dnsSample":"Latest {n} queries","dashboard.edit":"Edit dashboard","dashboard.form.area":"Area chart","dashboard.form.donut":"Donut","dashboard.form.dots":"Dot plot","dashboard.form.facts":"Status facts","dashboard.form.kv":"Key-value list","dashboard.form.ranked":"Ranked list","dashboard.form.sparkline":"Sparkline","dashboard.form.waffle":"Waffle","dashboard.height":"Height","dashboard.height.short":"Short","dashboard.height.standard":"Standard","dashboard.height.tall":"Tall","dashboard.noConnections":"No connections","dashboard.noGroups":"No policy groups","dashboard.noNodes":"No nodes","dashboard.noQueries":"No queries","dashboard.noRoom":"Too wide for this space","dashboard.noSources":"No sources","dashboLine truncated
|
||||
@@ -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.mode":"Outbound mode","config.changedMeanwhile":"The configuration changed or another write was still in progress, so nothing was written. Refresh and try again","config.diagnostic.bareCondition":"Condition has no function call; it will never match","config.diagnostic.braceWithoutSection":"Closing brace without an open section","config.diagnostic.includeNotFound":"Include \\"{path}\\" cannot be resolved","config.diagnostic.notARule":"Expected \\"<condition> -> <outbound>\\", \\"include <file>\\" or \\"fallback: <outbound>\\"","config.diagnostic.notASetting":"Expected \\"<key>: <value>\\"","config.diagnostic.sectionNotClosed":"Section \\"{name}\\" is never closed","config.diagnostic.sourceNotIncluded":"No include pattern matches {path}; nothing was written","config.diagnostic.unknownKey":"Unknown global setting \\"{name}\\"","config.diagnostic.unknownOutbound":"No group named \\"{name}\\"","config.diagnostic.unknownSection":"Unknown section \\"{name}\\"","config.discard":"Discard changes","config.discardHelp":"Leaving discards these unsaved changes: {drafts}.","config.discardTitle":"Discard changes not applied?","config.diskAhead":"The file on disk is not the running configuration, so nothing was written. Reload honk to apply the file, or restart honk if it changes a setting that needs a restart","config.draftOther":"Other changes","config.global.allow_insecure":"Allow insecure TLS","config.global.auto_config_kernel_parameter":"Configure kernel parameters","config.global.bandwidth_max_rx":"Download bandwidth limit","config.global.bandwidth_max_tx":"Upload bandwidth limit","config.global.bootstrap_resolver":"Bootstrap resolver","config.global.check_interval":"Check interval","config.global.check_tolerance":"Switch tolerance","config.global.data_dir":"Data directory","config.global.dial_mode":"Dial mode","config.global.disable_waiting_network":"Skip waiting for network","config.global.fallback_resolver":"Fallback resolver","config.global.lan_interface":"LAN interfaces","config.global.log_file":"Log file","config.global.log_level":"Log level","config.global.max_concurrent_dials":"Concurrent dial limit","config.global.mptcp":"Multipath TCP","config.global.nfqueue_enable":"Enable NFQUEUE","config.global.pprof_port":"Profiling port","config.global.preconnect_node_count":"Preconnected nodes","config.global.sniffing_timeout":"Sniffing timeout","config.global.so_mark_from_dae":"Socket mark","config.global.store_subscribe":"Store subscriptions","config.global.tcp_check_http_method":"TCP check HTTP method","config.global.tcp_check_url":"TCP check URLs","config.global.tls_fragment":"TLS fragmentation","config.global.tls_fragment_interval":"TLS fragment interval","config.global.tls_fragment_length":"TLS fragment length","config.global.tls_implementation":"TLS implementation","config.global.tproxy_port":"Transparent proxy port","config.global.tproxy_port_protect":"Protect transparent proxy port","config.global.udp_check_dns":"UDP check DNS servers","config.global.udp_warm_node_count":"UDP warm-up nodes","config.global.utls_imitate":"uTLS fingerprint","config.global.wan_interface":"WAN interfaces","config.incomplete":"The text is incomplete or redacted; it cannot be edited here","config.newSourceAbsolute":"Use a path relative to the main configuration\'s directory","config.newSourceControl":"The path cannot contain control characters","config.newSourceExtension":"The file name must end in .dae","config.newSourceNameControl":"The name cannot contain control characters","config.newSourceNameSlash":"The name cannot contain /","config.newSourceSegments":"Path segments cannot be empty, . or ..","config.readOnly":"Read-only","config.tooLarge":"The configuration is larger than the backend accepts. Limit: {limit} bytes","config.unquotable":"Cannot write this value losslessly as a single-quoted string: it contains an apostrophe, line break, or trailing backslash.","conn.state.active":"Active","conn.state.blocked":"Blocked","conn.state.closed":"Closed","conn.state.dialing":"Dialing","conn.state.failed":"Failed","conn.state.observed":"Observed","conn.state.routing":"Routing","conn.state.unknown":"Unknown","event.flow":"{resourceId}, revision: {revision}","event.gap":"{resourceId}, reason: {reason}, records dropped since recording started: {n}","event.gap.evicted":"removed from the retained records","event.gap.overflow":"records reached the retention limit","event.gap.recording":"recording changed","event.gap.sampled":"skipped by sampling",Line truncated
|
||||
@@ -1 +0,0 @@
|
||||
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.mode":"Outbound mode","config.changedMeanwhile":"The configuration changed or another write was still in progress, so nothing was written. Refresh and try again","config.diagnostic.bareCondition":"Condition has no function call; it will never match","config.diagnostic.braceWithoutSection":"Closing brace without an open section","config.diagnostic.includeNotFound":"Include \\"{path}\\" cannot be resolved","config.diagnostic.notARule":"Expected \\"<condition> -> <outbound>\\", \\"include <file>\\" or \\"fallback: <outbound>\\"","config.diagnostic.notASetting":"Expected \\"<key>: <value>\\"","config.diagnostic.sectionNotClosed":"Section \\"{name}\\" is never closed","config.diagnostic.sourceNotIncluded":"No include pattern matches {path}; nothing was written","config.diagnostic.unknownKey":"Unknown global setting \\"{name}\\"","config.diagnostic.unknownOutbound":"No group named \\"{name}\\"","config.diagnostic.unknownSection":"Unknown section \\"{name}\\"","config.discard":"Discard changes","config.discardHelp":"Leaving discards these unsaved changes: {drafts}.","config.discardTitle":"Discard changes not applied?","config.diskAhead":"The file on disk is not the running configuration, so nothing was written. Reload honk to apply the file, or restart honk if it changes a setting that needs a restart","config.draftOther":"Other changes","config.global.allow_insecure":"Allow insecure TLS","config.global.auto_config_kernel_parameter":"Configure kernel parameters","config.global.bandwidth_max_rx":"Download bandwidth limit","config.global.bandwidth_max_tx":"Upload bandwidth limit","config.global.bootstrap_resolver":"Bootstrap resolver","config.global.check_interval":"Check interval","config.global.check_tolerance":"Switch tolerance","config.global.data_dir":"Data directory","config.global.dial_mode":"Dial mode","config.global.disable_waiting_network":"Skip waiting for network","config.global.fallback_resolver":"Fallback resolver","config.global.lan_interface":"LAN interfaces","config.global.log_file":"Log file","config.global.log_level":"Log level","config.global.max_concurrent_dials":"Concurrent dial limit","config.global.mptcp":"Multipath TCP","config.global.nfqueue_enable":"Enable NFQUEUE","config.global.pprof_port":"Profiling port","config.global.preconnect_node_count":"Preconnected nodes","config.global.sniffing_timeout":"Sniffing timeout","config.global.so_mark_from_dae":"Socket mark","config.global.store_subscribe":"Store subscriptions","config.global.tcp_check_http_method":"TCP check HTTP method","config.global.tcp_check_url":"TCP check URLs","config.global.tls_fragment":"TLS fragmentation","config.global.tls_fragment_interval":"TLS fragment interval","config.global.tls_fragment_length":"TLS fragment length","config.global.tls_implementation":"TLS implementation","config.global.tproxy_port":"Transparent proxy port","config.global.tproxy_port_protect":"Protect transparent proxy port","config.global.udp_check_dns":"UDP check DNS servers","config.global.udp_warm_node_count":"UDP warm-up nodes","config.global.utls_imitate":"uTLS fingerprint","config.global.wan_interface":"WAN interfaces","config.incomplete":"The text is incomplete or redacted; it cannot be edited here","config.newSourceAbsolute":"Use a path relative to the main configuration\'s directory","config.newSourceControl":"The path cannot contain control characters","config.newSourceExtension":"The file name must end in .dae","config.newSourceNameControl":"The name cannot contain control characters","config.newSourceNameSlash":"The name cannot contain /","config.newSourceSegments":"Path segments cannot be empty, . or ..","config.readOnly":"Read-only","config.tooLarge":"The configuration is larger than the backend accepts. Limit: {limit} bytes","config.unquotable":"Cannot write this value losslessly as a single-quoted string: it contains an apostrophe, line break, or trailing backslash.","conn.state.active":"Active","conn.state.blocked":"Blocked","conn.state.closed":"Closed","conn.state.dialing":"Dialing","conn.state.failed":"Failed","conn.state.observed":"Observed","conn.state.routing":"Routing","conn.state.unknown":"Unknown","event.flow":"{resourceId}, revision: {revision}","event.gap":"{resourceId}, reason: {reason}, records dropped since recording started: {n}","event.gap.evicted":"removed from the retained records","event.gap.overflow":"records reached the retention limit","event.gap.recording":"recording changed","event.gap.sampled":"skipped by sampling",Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
const e=JSON.parse('{"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.readOnlyDocs":"Read-only config files","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.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 by -c at startup, validates it, replaces the database configuration and applies it immediately. This does not upload a local file.","config.backup.importTitle":"Replace configuration from server files?","config.backup.imported":"Server configuration imported","config.changedOnDisk":"The file changed on disk while you were editing; applying would replace that change.","config.clean":"No diagnostics","config.diagnostic.downloadGeodata":"Download geodata","config.diagnostic.geodataDocs":"How to install geodata","config.diagnostics":"Diagnostics","config.draftBackend":"Backend profile","config.draftConfig":"Config file","config.draftDiagnostics":"Current draft diagnostics","config.draftGroup":"Group","config.draftNode":"Node","config.draftPending":"Current draft has not been validated.","config.draftRule":"Rule","config.draftRuntime":"Runtime overrides","config.editNote":"Click the text to edit.","config.editNoteValidate":"Click the text to edit; validate before applying.","config.editor":"Editor","config.errors":{"one":"{n} error","other":"{n} errors"},"config.export":"Download source file","config.exportWarning":"Exports preserve the displayed file bytes and may contain credentials. Review them before sharing.","config.fileDiagnostics":"Current config file diagnostics","config.forms":"Setting forms","config.generatedNote":"The engine generates this file and overwrites it when it regenerates, so it can only be viewed here. To change it, change the configuration that produces it.","config.globalChoice":"A number, or {choices}","config.globalDuplicate":"This field occurs more than once. Resolve duplicate entries in Config files.","config.globalGroup.bandwidth":"Bandwidth and preconnection","config.globalGroup.checks":"Node checks","config.globalGroup.dialing":"Dialing and TLS","config.globalGroup.interfaces":"Interfaces and ports","config.globalGroup.logging":"Logging","config.globalGroup.storage":"Data storage","config.globalInvalid":"Enter a value of the specified type and range.","config.globalList":"Separate with commas","config.globalNote":"Changes are written to the config file and applied by reload. Process settings may require a restart. Empty fields keep the engine defaults.","config.globalRange":"Range: 0–{max}","config.globalSave":"Write and reload","config.globalSaved":"Global settings written and configuration reloaded","config.globalUnits":"Units: {units}","config.globalUnset":"Not set","config.incompleteNote":"The text shown is incomplete, or its SHA-256 differs from the value the backend reports, so it cannot be edited here. Edit the file on the host.","config.incompleteSource":"Incomplete","config.invalid":{"one":"Validation found {n} error","other":"Validation found {n} errors"},"config.jumpToLine":"Go to line {line}","config.keepChanges":"Keep changes","config.level":"Level","config.level.error":"Error","config.level.info":"Info","config.level.warning":"Warning","config.levelErrors":"Errors {n}","config.levelInfo":"Info {n}","config.levelWarnings":"Warnings {n}","config.loadedAt":"Loaded: {time}","config.moduleAbsent":"Section not configured; add it to {file}.","config.moduleAbsentReadOnly":"Section not configured.","config.moduleDnsRequests":{"one":"{n} request rule","other":"{n} request rules"},"config.moduleDnsResponses":{"one":"{n} response rule","other":"{n} respoLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
const e=JSON.parse('{"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.readOnlyDocs":"Read-only config files","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.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 by -c at startup, validates it, replaces the database configuration and applies it immediately. This does not upload a local file.","config.backup.importTitle":"Replace configuration from server files?","config.backup.imported":"Server configuration imported","config.changedOnDisk":"The file changed on disk while you were editing; applying would replace that change.","config.clean":"No diagnostics","config.diagnostic.downloadGeodata":"Download geodata","config.diagnostic.geodataDocs":"How to install geodata","config.diagnostics":"Diagnostics","config.draftBackend":"Backend profile","config.draftConfig":"Config file","config.draftDiagnostics":"Current draft diagnostics","config.draftGroup":"Group","config.draftNode":"Node","config.draftPending":"Current draft has not been validated.","config.draftRule":"Rule","config.draftRuntime":"Runtime overrides","config.editNote":"Click the text to edit.","config.editNoteValidate":"Click the text to edit; validate before applying.","config.editor":"Editor","config.errors":{"one":"{n} error","other":"{n} errors"},"config.export":"Download source file","config.exportWarning":"Exports preserve the displayed file bytes and may contain credentials. Review them before sharing.","config.fileDiagnostics":"Current config file diagnostics","config.forms":"Setting forms","config.generatedNote":"The engine generates this file and overwrites it when it regenerates, so it can only be viewed here. To change it, change the configuration that produces it.","config.globalChoice":"A number, or {choices}","config.globalDuplicate":"This field occurs more than once. Resolve duplicate entries in Config files.","config.globalGroup.bandwidth":"Bandwidth and preconnection","config.globalGroup.checks":"Node checks","config.globalGroup.dialing":"Dialing and TLS","config.globalGroup.interfaces":"Interfaces and ports","config.globalGroup.logging":"Logging","config.globalGroup.storage":"Data storage","config.globalInvalid":"Enter a value of the specified type and range.","config.globalList":"Separate with commas","config.globalNote":"Changes are written to the config file and applied by reload. Process settings may require a restart. Empty fields keep the engine defaults.","config.globalRange":"Range: 0–{max}","config.globalSave":"Write and reload","config.globalSaved":"Global settings written and configuration reloaded","config.globalUnits":"Units: {units}","config.globalUnset":"Not set","config.incompleteNote":"The text shown is incomplete, or its SHA-256 differs from the value the backend reports, so it cannot be edited here. Edit the file on the host.","config.incompleteSource":"Incomplete","config.invalid":{"one":"Validation found {n} error","other":"Validation found {n} errors"},"config.jumpToLine":"Go to line {line}","config.keepChanges":"Keep changes","config.level":"Level","config.level.error":"Error","config.level.info":"Info","config.level.warning":"Warning","config.levelErrors":"Errors {n}","config.levelInfo":"Info {n}","config.levelWarnings":"Warnings {n}","config.loadedAt":"Loaded: {time}","config.moduleAbsent":"Section not configured; add it to {file}.","config.moduleAbsentReadOnly":"Section not configured.","config.moduleDnsRequests":{"one":"{n} request rule","other":"{n} request rules"},"config.moduleDnsResponses":{"one":"{n} response rule","other":"{n} respoLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
const e=JSON.parse('{"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.modeApplied":"出站模式已写入配置并重载:{mode}","act.modeConfirm":"应用{mode}模式?","act.modeDirectHelp":"所有流量将直接连接,不经代理。","act.modeGlobalHelp":"所有流量将使用选定的出站组。","act.modeInterleaved":"routing 区段有普通规则排在 must 规则前面。请先把 must 规则移到 routing 区段最前面,再切换出站模式。","act.modeNoRouting":"主配置未包含 routing 区段","act.modeReadOnly":"只读","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.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":"查看详情","config.atFile":"{file} 第 {line} 行:{message}","config.diagnostic.offline":"{reason}{which}","config.diagnostic.offlineDenied":"无权读取配置所需的文件。","config.diagnostic.offlineGeodata":"缺失或不可用:{files}。","config.diagnostic.offlineInvalid":"配置所需的文件已损坏或格式不正确。","config.diagnostic.offlineMissing":"找不到配置所需的文件。","config.diagnostic.offlineUnreadable":"无法读取配置所需的文件。","config.diagnostic.offlineUsual":"通常是路由或 DNS 规则使用 geoip: 或 geosite: 时所需的 geoip.dat、geosite.dat,也可能是配置引用的订阅或节点文件。","config.kind.generated":"引擎生成","config.kind.include":"引入文件","config.kind.main":"主配置","config.save":"应用","config.writeRestart":"{n} 项设置需重启才会生效,未写入","dashboard.allGroups":"所有策略组","dashboard.allRows":"全部行","dashboard.automaticWidth":"自动","dashboard.connectionNetworks":"各协议连接数","dashboard.connectionOutbounds":"各出站连接数","dashboard.dnsAnswers":"DNS 查询结果","dashboard.dnsSample":"最近 {n} 条查询","dashboard.edit":"编辑仪表盘","dashboard.form.area":"面积图","dashboard.form.donut":"环形图","dashboard.form.dots":"点图","dashboard.form.facts":"状态概览","dashboard.form.kv":"键值列表","dashboard.form.ranked":"排行列表","dashboard.form.sparkline":"迷你折线图","dashboard.form.waffle":"方格图","dashboard.height":"高度","dashboard.height.short":"矮","dashboard.height.standard":"标准","dashboard.height.tall":"高","dashboard.noConnections":"没有连接","dashboard.noGroups":"没有策略组","dashboard.noNodes":"没有节点","dashboard.noQueries":"没有查询","dashboard.noRoom":"卡片宽于此空位,无法放入","dashboard.noSources":"没有来源","dashboard.other":"其他","dashboard.policyGroups":"策略组当前节点","dashboard.preset":"{width},{height}","dashboard.providerBudget":"订阅额度","dashboard.remaining":"此行尚余 {space}","dashboard.resizeHeight":"调整高度","dashboard.resizeWidth":"调整宽度","dashboard.rows":"{n} 行","dashboard.sourceHealth":"来源状态","dashboard.wide":"全宽","dashboLine truncated
|
||||
const e=JSON.parse('{"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.modeApplied":"出站模式已写入配置并重载:{mode}","act.modeConfirm":"应用{mode}模式?","act.modeDirectHelp":"所有流量将直接连接,不经代理。","act.modeGlobalHelp":"所有流量将使用选定的出站组。","act.modeInterleaved":"routing 区段有普通规则排在 must 规则前面。请先把 must 规则移到 routing 区段最前面,再切换出站模式。","act.modeNoRouting":"主配置未包含 routing 区段","act.modeReadOnly":"只读","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.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":"查看详情","config.atFile":"{file} 第 {line} 行:{message}","config.diagnostic.offline":"{reason}{which}","config.diagnostic.offlineDenied":"无权读取配置所需的文件。","config.diagnostic.offlineGeodata":"缺失或不可用:{files}。","config.diagnostic.offlineInvalid":"配置所需的文件已损坏或格式不正确。","config.diagnostic.offlineMissing":"找不到配置所需的文件。","config.diagnostic.offlineUnreadable":"无法读取配置所需的文件。","config.diagnostic.offlineUsual":"通常是路由或 DNS 规则使用 geoip: 或 geosite: 时所需的 geoip.dat、geosite.dat,也可能是配置引用的订阅或节点文件。","config.kind.generated":"引擎生成","config.kind.include":"引入文件","config.kind.main":"主配置","config.save":"应用","config.writeRestart":"{n} 项设置需重启才会生效,未写入","dashboard.allGroups":"所有策略组","dashboard.allRows":"全部行","dashboard.automaticWidth":"自动","dashboard.connectionNetworks":"各协议连接数","dashboard.connectionOutbounds":"各出站连接数","dashboard.dnsAnswers":"DNS 查询结果","dashboard.dnsSample":"最近 {n} 条查询","dashboard.edit":"编辑仪表盘","dashboard.form.area":"面积图","dashboard.form.donut":"环形图","dashboard.form.dots":"点图","dashboard.form.facts":"状态概览","dashboard.form.kv":"键值列表","dashboard.form.ranked":"排行列表","dashboard.form.sparkline":"迷你折线图","dashboard.form.waffle":"方格图","dashboard.height":"高度","dashboard.height.short":"矮","dashboard.height.standard":"标准","dashboard.height.tall":"高","dashboard.noConnections":"没有连接","dashboard.noGroups":"没有策略组","dashboard.noNodes":"没有节点","dashboard.noQueries":"没有查询","dashboard.noRoom":"卡片宽于此空位,无法放入","dashboard.noSources":"没有来源","dashboard.other":"其他","dashboard.policyGroups":"策略组当前节点","dashboard.preset":"{width},{height}","dashboard.providerBudget":"订阅额度","dashboard.remaining":"此行尚余 {space}","dashboard.resizeHeight":"调整高度","dashboard.resizeWidth":"调整宽度","dashboard.rows":"{n} 行","dashboard.sourceHealth":"来源状态","dashboard.wide":"全宽","dashboLine 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.mode":"出站模式","config.changedMeanwhile":"配置已被更改或另一次写入尚未完成,因此未写入。请刷新后重试","config.diagnostic.bareCondition":"条件中没有函数调用,因此永远不会匹配","config.diagnostic.braceWithoutSection":"右大括号没有对应的区段开头","config.diagnostic.includeNotFound":"无法解析引入文件“{path}”","config.diagnostic.notARule":"规则格式:<condition> -> <outbound>、include <file> 或 fallback: <outbound>","config.diagnostic.notASetting":"设置格式:<key>: <value>","config.diagnostic.sectionNotClosed":"区段“{name}”缺少右大括号","config.diagnostic.sourceNotIncluded":"没有 include 路径模式匹配 {path},未写入文件","config.diagnostic.unknownKey":"未知的全局设置“{name}”","config.diagnostic.unknownOutbound":"找不到名为“{name}”的组","config.diagnostic.unknownSection":"未知的区段“{name}”","config.discard":"放弃修改","config.discardHelp":"离开后,以下项目的未保存修改将丢失:{drafts}。","config.discardTitle":"放弃未应用的修改?","config.diskAhead":"磁盘上的文件与运行中的配置不同,因此未写入。请重载 honk 以应用该文件;若文件更改了需重启的设置,请重启 honk","config.draftOther":"其他修改","config.global.allow_insecure":"允许不安全的 TLS","config.global.auto_config_kernel_parameter":"自动配置内核参数","config.global.bandwidth_max_rx":"下载带宽上限","config.global.bandwidth_max_tx":"上传带宽上限","config.global.bootstrap_resolver":"引导解析器","config.global.check_interval":"检查间隔","config.global.check_tolerance":"切换容差","config.global.data_dir":"数据目录","config.global.dial_mode":"拨号模式","config.global.disable_waiting_network":"不等待网络就绪","config.global.fallback_resolver":"备用解析器","config.global.lan_interface":"LAN 接口","config.global.log_file":"日志文件","config.global.log_level":"日志级别","config.global.max_concurrent_dials":"并发拨号上限","config.global.mptcp":"多路径 TCP","config.global.nfqueue_enable":"启用 NFQUEUE","config.global.pprof_port":"性能分析端口","config.global.preconnect_node_count":"预连接节点数","config.global.sniffing_timeout":"嗅探超时","config.global.so_mark_from_dae":"Socket 标记","config.global.store_subscribe":"保存订阅内容","config.global.tcp_check_http_method":"TCP 检查 HTTP 方法","config.global.tcp_check_url":"TCP 检查 URL","config.global.tls_fragment":"TLS 分片","config.global.tls_fragment_interval":"TLS 分片间隔","config.global.tls_fragment_length":"TLS 分片长度","config.global.tls_implementation":"TLS 实现","config.global.tproxy_port":"透明代理端口","config.global.tproxy_port_protect":"保护透明代理端口","config.global.udp_check_dns":"UDP 检查 DNS 服务器","config.global.udp_warm_node_count":"UDP 预热节点数","config.global.utls_imitate":"uTLS 指纹","config.global.wan_interface":"WAN 接口","config.incomplete":"内容不完整或已脱敏,不能在此编辑","config.newSourceAbsolute":"请使用相对于主配置目录的路径","config.newSourceControl":"路径不能包含控制字符","config.newSourceExtension":"文件名须以 .dae 结尾","config.newSourceNameControl":"名称不能包含控制字符","config.newSourceNameSlash":"名称不能包含 /","config.newSourceSegments":"路径不能包含空段、. 或 ..","config.readOnly":"只读","config.tooLarge":"配置超过后端可接受的大小。上限:{limit} 字节","config.unquotable":"无法写入:值含单引号、换行或结尾反斜线,无法无损转为单引号字符串。","conn.state.active":"进行中","conn.state.blocked":"已屏蔽","conn.state.closed":"已关闭","conn.state.dialing":"拨号中","conn.state.failed":"失败","conn.state.observed":"观测中","conn.state.routing":"路由中","conn.state.unknown":"未知","event.flow":"{resourceId},修订:{revision}","event.gap":"{resourceId},原因:{reason},本次记录期间累计丢弃:{n}","event.gap.evicted":"移出保留记录","event.gap.overflow":"记录已达保留上限","event.gap.recording":"记录设置变更","event.gap.sampled":"采样跳过","event.gapNoCount":"{resourceId},原因:{reason}","event.gapUnscoped":"原因:{reason},本次记录期间累计丢弃:{n}","event.gapUnscopedNoCount":"原因:{reason}","event.generation":"Line truncated
|
||||
@@ -1 +0,0 @@
|
||||
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.mode":"出站模式","config.changedMeanwhile":"配置已被更改或另一次写入尚未完成,因此未写入。请刷新后重试","config.diagnostic.bareCondition":"条件中没有函数调用,因此永远不会匹配","config.diagnostic.braceWithoutSection":"右大括号没有对应的区段开头","config.diagnostic.includeNotFound":"无法解析引入文件“{path}”","config.diagnostic.notARule":"规则格式:<condition> -> <outbound>、include <file> 或 fallback: <outbound>","config.diagnostic.notASetting":"设置格式:<key>: <value>","config.diagnostic.sectionNotClosed":"区段“{name}”缺少右大括号","config.diagnostic.sourceNotIncluded":"没有 include 路径模式匹配 {path},未写入文件","config.diagnostic.unknownKey":"未知的全局设置“{name}”","config.diagnostic.unknownOutbound":"找不到名为“{name}”的组","config.diagnostic.unknownSection":"未知的区段“{name}”","config.discard":"放弃修改","config.discardHelp":"离开后,以下项目的未保存修改将丢失:{drafts}。","config.discardTitle":"放弃未应用的修改?","config.diskAhead":"磁盘上的文件与运行中的配置不同,因此未写入。请重载 honk 以应用该文件;若文件更改了需重启的设置,请重启 honk","config.draftOther":"其他修改","config.global.allow_insecure":"允许不安全的 TLS","config.global.auto_config_kernel_parameter":"自动配置内核参数","config.global.bandwidth_max_rx":"下载带宽上限","config.global.bandwidth_max_tx":"上传带宽上限","config.global.bootstrap_resolver":"引导解析器","config.global.check_interval":"检查间隔","config.global.check_tolerance":"切换容差","config.global.data_dir":"数据目录","config.global.dial_mode":"拨号模式","config.global.disable_waiting_network":"不等待网络就绪","config.global.fallback_resolver":"备用解析器","config.global.lan_interface":"LAN 接口","config.global.log_file":"日志文件","config.global.log_level":"日志级别","config.global.max_concurrent_dials":"并发拨号上限","config.global.mptcp":"多路径 TCP","config.global.nfqueue_enable":"启用 NFQUEUE","config.global.pprof_port":"性能分析端口","config.global.preconnect_node_count":"预连接节点数","config.global.sniffing_timeout":"嗅探超时","config.global.so_mark_from_dae":"Socket 标记","config.global.store_subscribe":"保存订阅内容","config.global.tcp_check_http_method":"TCP 检查 HTTP 方法","config.global.tcp_check_url":"TCP 检查 URL","config.global.tls_fragment":"TLS 分片","config.global.tls_fragment_interval":"TLS 分片间隔","config.global.tls_fragment_length":"TLS 分片长度","config.global.tls_implementation":"TLS 实现","config.global.tproxy_port":"透明代理端口","config.global.tproxy_port_protect":"保护透明代理端口","config.global.udp_check_dns":"UDP 检查 DNS 服务器","config.global.udp_warm_node_count":"UDP 预热节点数","config.global.utls_imitate":"uTLS 指纹","config.global.wan_interface":"WAN 接口","config.incomplete":"内容不完整或已脱敏,不能在此编辑","config.newSourceAbsolute":"请使用相对于主配置目录的路径","config.newSourceControl":"路径不能包含控制字符","config.newSourceExtension":"文件名须以 .dae 结尾","config.newSourceNameControl":"名称不能包含控制字符","config.newSourceNameSlash":"名称不能包含 /","config.newSourceSegments":"路径不能包含空段、. 或 ..","config.readOnly":"只读","config.tooLarge":"配置超过后端可接受的大小。上限:{limit} 字节","config.unquotable":"无法写入:值含单引号、换行或结尾反斜线,无法无损转为单引号字符串。","conn.state.active":"进行中","conn.state.blocked":"已屏蔽","conn.state.closed":"已关闭","conn.state.dialing":"拨号中","conn.state.failed":"失败","conn.state.observed":"观测中","conn.state.routing":"路由中","conn.state.unknown":"未知","event.flow":"{resourceId},修订:{revision}","event.gap":"{resourceId},原因:{reason},本次记录期间累计丢弃:{n}","event.gap.evicted":"移出保留记录","event.gap.overflow":"记录已达保留上限","event.gap.recording":"记录设置变更","event.gap.sampled":"采样跳过","event.gapNoCount":"{resourceId},原因:{reason}","event.gapUnscoped":"原因:{reason},本次记录期间累计丢弃:{n}","event.gapUnscopedNoCount":"原因:{reason}","event.generation":"Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
const e=JSON.parse('{"act.modeReadOnlyAction":"请确认 honk 对主配置文件有写入权限,并将 native_api 设置放在独立的 include 文件。","act.modeReadOnlyReason":"honk 须允许配置写入,且控制端已设置身份验证。主配置若含 native_api 或 clash_api 的密钥字段或嵌套区块,会标记为只读。配置含当前的监听密钥时也一样。","act.readOnlyDocs":"只读的配置文件","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})保留的诊断","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":"已导入服务器配置","config.changedOnDisk":"编辑期间磁盘上的文件已更改,应用会覆盖该更改。","config.clean":"没有诊断","config.diagnostic.downloadGeodata":"下载地理数据","config.diagnostic.geodataDocs":"如何安装地理数据","config.diagnostics":"诊断","config.draftBackend":"后端配置","config.draftConfig":"配置文件","config.draftDiagnostics":"当前草稿的诊断","config.draftGroup":"组","config.draftNode":"节点","config.draftPending":"当前草稿尚未验证。","config.draftRule":"规则","config.draftRuntime":"运行时覆盖","config.editNote":"点击内容即可编辑。","config.editNoteValidate":"点击内容即可编辑,应用前可先校验。","config.editor":"编辑器","config.errors":"{n} 个错误","config.export":"下载源文件","config.exportWarning":"导出文件保留显示的原始文本,可能包含凭据;分享前请检查内容。","config.fileDiagnostics":"当前配置文件的诊断","config.forms":"设置表单","config.generatedNote":"此文件由引擎生成,重新生成时会覆盖,只能在此查看。要更改内容,请修改生成它的配置。","config.globalChoice":"数字或 {choices}","config.globalDuplicate":"此字段重复出现。请在配置文件中移除重复项。","config.globalGroup.bandwidth":"带宽与预连接","config.globalGroup.checks":"节点检查","config.globalGroup.dialing":"拨号与 TLS","config.globalGroup.interfaces":"接口与端口","config.globalGroup.logging":"日志","config.globalGroup.storage":"数据存储","config.globalInvalid":"请输入符合类型和范围的值。","config.globalList":"以逗号分隔","config.globalNote":"更改会写入配置文件并重新加载。进程设置可能需要重启。未设置的字段使用引擎默认值。","config.globalRange":"范围:0–{max}","config.globalSave":"写入并重新加载","config.globalSaved":"已写入全局设置并重新加载配置","config.globalUnits":"单位:{units}","config.globalUnset":"未设置","config.incompleteNote":"显示的内容不完整,或 SHA-256 与后端回报的值不符,无法在此编辑。请在主机上编辑。","config.incompleteSource":"内容不完整","config.invalid":"校验发现 {n} 个错误","config.jumpToLine":"跳转到第 {line} 行","config.keepChanges":"保留修改","config.level":"级别","config.level.error":"错误","config.level.info":"提示","config.level.warning":"警告","config.levelErrors":"错误 {n}","config.levelInfo":"提示 {n}","config.levelWarnings":"警告 {n}","config.loadedAt":"加载时间:{time}","config.moduleAbsent":"未设置此区段;可加入 {file}。","config.moduleAbsentReadOnly":"未设置此区段。","config.moduleDnsRequests":"{n} 条 request 规则","config.moduleDnsResponses":"{n} 条 response 规则","config.moduleDnsUpstreams":"{n} 个上游","config.moduleGroups":"{n} 个组","config.moduleNodes":"{n} 个节点","config.moduleOpen":"打开页面","config.moduleRules":"{n} 条规则","config.moduleSettings":"{n} 项设置","config.moduleSubscriptions":"{n} 个订阅","config.newSource":"新Line truncated
|
||||
@@ -1 +0,0 @@
|
||||
const e=JSON.parse('{"act.modeReadOnlyAction":"请确认 honk 对主配置文件有写入权限,并将 native_api 设置放在独立的 include 文件。","act.modeReadOnlyReason":"honk 须允许配置写入,且控制端已设置身份验证。主配置若含 native_api 或 clash_api 的密钥字段或嵌套区块,会标记为只读。配置含当前的监听密钥时也一样。","act.readOnlyDocs":"只读的配置文件","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})保留的诊断","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":"已导入服务器配置","config.changedOnDisk":"编辑期间磁盘上的文件已更改,应用会覆盖该更改。","config.clean":"没有诊断","config.diagnostic.downloadGeodata":"下载地理数据","config.diagnostic.geodataDocs":"如何安装地理数据","config.diagnostics":"诊断","config.draftBackend":"后端配置","config.draftConfig":"配置文件","config.draftDiagnostics":"当前草稿的诊断","config.draftGroup":"组","config.draftNode":"节点","config.draftPending":"当前草稿尚未验证。","config.draftRule":"规则","config.draftRuntime":"运行时覆盖","config.editNote":"点击内容即可编辑。","config.editNoteValidate":"点击内容即可编辑,应用前可先校验。","config.editor":"编辑器","config.errors":"{n} 个错误","config.export":"下载源文件","config.exportWarning":"导出文件保留显示的原始文本,可能包含凭据;分享前请检查内容。","config.fileDiagnostics":"当前配置文件的诊断","config.forms":"设置表单","config.generatedNote":"此文件由引擎生成,重新生成时会覆盖,只能在此查看。要更改内容,请修改生成它的配置。","config.globalChoice":"数字或 {choices}","config.globalDuplicate":"此字段重复出现。请在配置文件中移除重复项。","config.globalGroup.bandwidth":"带宽与预连接","config.globalGroup.checks":"节点检查","config.globalGroup.dialing":"拨号与 TLS","config.globalGroup.interfaces":"接口与端口","config.globalGroup.logging":"日志","config.globalGroup.storage":"数据存储","config.globalInvalid":"请输入符合类型和范围的值。","config.globalList":"以逗号分隔","config.globalNote":"更改会写入配置文件并重新加载。进程设置可能需要重启。未设置的字段使用引擎默认值。","config.globalRange":"范围:0–{max}","config.globalSave":"写入并重新加载","config.globalSaved":"已写入全局设置并重新加载配置","config.globalUnits":"单位:{units}","config.globalUnset":"未设置","config.incompleteNote":"显示的内容不完整,或 SHA-256 与后端回报的值不符,无法在此编辑。请在主机上编辑。","config.incompleteSource":"内容不完整","config.invalid":"校验发现 {n} 个错误","config.jumpToLine":"跳转到第 {line} 行","config.keepChanges":"保留修改","config.level":"级别","config.level.error":"错误","config.level.info":"提示","config.level.warning":"警告","config.levelErrors":"错误 {n}","config.levelInfo":"提示 {n}","config.levelWarnings":"警告 {n}","config.loadedAt":"加载时间:{time}","config.moduleAbsent":"未设置此区段;可加入 {file}。","config.moduleAbsentReadOnly":"未设置此区段。","config.moduleDnsRequests":"{n} 条 request 规则","config.moduleDnsResponses":"{n} 条 response 规则","config.moduleDnsUpstreams":"{n} 个上游","config.moduleGroups":"{n} 个组","config.moduleNodes":"{n} 个节点","config.moduleOpen":"打开页面","config.moduleRules":"{n} 条规则","config.moduleSettings":"{n} 项设置","config.moduleSubscriptions":"{n} 个订阅","config.newSource":"新Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
const e=JSON.parse('{"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.modeApplied":"出站模式已寫入組態並重載:{mode}","act.modeConfirm":"套用{mode}模式?","act.modeDirectHelp":"所有流量將直接連線,不經代理。","act.modeGlobalHelp":"所有流量將使用選定的出站群組。","act.modeInterleaved":"routing 區段有一般規則排在 must 規則前面。請先把 must 規則移到 routing 區段最前面,再切換出站模式。","act.modeNoRouting":"主組態未包含 routing 區段","act.modeReadOnly":"唯讀","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.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":"檢視詳情","config.atFile":"{file} 第 {line} 行:{message}","config.diagnostic.offline":"{reason}{which}","config.diagnostic.offlineDenied":"無權讀取組態所需的檔案。","config.diagnostic.offlineGeodata":"遺失或無法使用:{files}。","config.diagnostic.offlineInvalid":"組態所需的檔案已損毀或格式不正確。","config.diagnostic.offlineMissing":"找不到組態所需的檔案。","config.diagnostic.offlineUnreadable":"無法讀取組態所需的檔案。","config.diagnostic.offlineUsual":"通常是路由或 DNS 規則使用 geoip: 或 geosite: 時所需的 geoip.dat、geosite.dat,也可能是組態引用的訂閱或節點檔案。","config.kind.generated":"引擎產生","config.kind.include":"引入檔","config.kind.main":"主組態","config.save":"套用","config.writeRestart":"{n} 項設定需重新啟動才會生效,未寫入","dashboard.allGroups":"所有策略群組","dashboard.allRows":"全部列","dashboard.automaticWidth":"自動","dashboard.connectionNetworks":"各協定連線數","dashboard.connectionOutbounds":"各出站連線數","dashboard.dnsAnswers":"DNS 查詢結果","dashboard.dnsSample":"最近 {n} 筆查詢","dashboard.edit":"編輯儀表板","dashboard.form.area":"面積圖","dashboard.form.donut":"環形圖","dashboard.form.dots":"點圖","dashboard.form.facts":"狀態概覽","dashboard.form.kv":"鍵值清單","dashboard.form.ranked":"排行清單","dashboard.form.sparkline":"迷你折線圖","dashboard.form.waffle":"方格圖","dashboard.height":"高度","dashboard.height.short":"矮","dashboard.height.standard":"標準","dashboard.height.tall":"高","dashboard.noConnections":"沒有連線","dashboard.noGroups":"沒有策略群組","dashboard.noNodes":"沒有節點","dashboard.noQueries":"沒有查詢","dashboard.noRoom":"卡片寬於此空位,無法放入","dashboard.noSources":"沒有來源","dashboard.other":"其他","dashboard.policyGroups":"策略群組目前節點","dashboard.preset":"{width},{height}","dashboard.providerBudget":"訂閱額度","dashboard.remaining":"此列尚餘 {space}","dashboard.resizeHeight":"調整高度","dashboard.resizeWidth":"調整寬度","dashboard.rows":"{n} 列","dashboard.sourceHealth":"來源狀態","daLine truncated
|
||||
const e=JSON.parse('{"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.modeApplied":"出站模式已寫入組態並重載:{mode}","act.modeConfirm":"套用{mode}模式?","act.modeDirectHelp":"所有流量將直接連線,不經代理。","act.modeGlobalHelp":"所有流量將使用選定的出站群組。","act.modeInterleaved":"routing 區段有一般規則排在 must 規則前面。請先把 must 規則移到 routing 區段最前面,再切換出站模式。","act.modeNoRouting":"主組態未包含 routing 區段","act.modeReadOnly":"唯讀","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.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":"檢視詳情","config.atFile":"{file} 第 {line} 行:{message}","config.diagnostic.offline":"{reason}{which}","config.diagnostic.offlineDenied":"無權讀取組態所需的檔案。","config.diagnostic.offlineGeodata":"遺失或無法使用:{files}。","config.diagnostic.offlineInvalid":"組態所需的檔案已損毀或格式不正確。","config.diagnostic.offlineMissing":"找不到組態所需的檔案。","config.diagnostic.offlineUnreadable":"無法讀取組態所需的檔案。","config.diagnostic.offlineUsual":"通常是路由或 DNS 規則使用 geoip: 或 geosite: 時所需的 geoip.dat、geosite.dat,也可能是組態引用的訂閱或節點檔案。","config.kind.generated":"引擎產生","config.kind.include":"引入檔","config.kind.main":"主組態","config.save":"套用","config.writeRestart":"{n} 項設定需重新啟動才會生效,未寫入","dashboard.allGroups":"所有策略群組","dashboard.allRows":"全部列","dashboard.automaticWidth":"自動","dashboard.connectionNetworks":"各協定連線數","dashboard.connectionOutbounds":"各出站連線數","dashboard.dnsAnswers":"DNS 查詢結果","dashboard.dnsSample":"最近 {n} 筆查詢","dashboard.edit":"編輯儀表板","dashboard.form.area":"面積圖","dashboard.form.donut":"環形圖","dashboard.form.dots":"點圖","dashboard.form.facts":"狀態概覽","dashboard.form.kv":"鍵值清單","dashboard.form.ranked":"排行清單","dashboard.form.sparkline":"迷你折線圖","dashboard.form.waffle":"方格圖","dashboard.height":"高度","dashboard.height.short":"矮","dashboard.height.standard":"標準","dashboard.height.tall":"高","dashboard.noConnections":"沒有連線","dashboard.noGroups":"沒有策略群組","dashboard.noNodes":"沒有節點","dashboard.noQueries":"沒有查詢","dashboard.noRoom":"卡片寬於此空位,無法放入","dashboard.noSources":"沒有來源","dashboard.other":"其他","dashboard.policyGroups":"策略群組目前節點","dashboard.preset":"{width},{height}","dashboard.providerBudget":"訂閱額度","dashboard.remaining":"此列尚餘 {space}","dashboard.resizeHeight":"調整高度","dashboard.resizeWidth":"調整寬度","dashboard.rows":"{n} 列","dashboard.sourceHealth":"來源狀態","daLine 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.mode":"出站模式","config.changedMeanwhile":"組態已被變更或另一次寫入尚未完成,因此未寫入。請重新整理後重試","config.diagnostic.bareCondition":"條件沒有函式呼叫,因此永遠不會相符","config.diagnostic.braceWithoutSection":"右大括號沒有對應的區段開頭","config.diagnostic.includeNotFound":"無法解析引入檔案「{path}」","config.diagnostic.notARule":"規則格式:<condition> -> <outbound>、include <file> 或 fallback: <outbound>","config.diagnostic.notASetting":"設定格式:<key>: <value>","config.diagnostic.sectionNotClosed":"區段「{name}」缺少右大括號","config.diagnostic.sourceNotIncluded":"沒有 include 路徑模式符合 {path},未寫入檔案","config.diagnostic.unknownKey":"未知的全域設定「{name}」","config.diagnostic.unknownOutbound":"找不到名為「{name}」的群組","config.diagnostic.unknownSection":"未知的區段「{name}」","config.discard":"放棄修改","config.discardHelp":"離開後,以下項目的未儲存修改將遺失:{drafts}。","config.discardTitle":"放棄未套用的修改?","config.diskAhead":"磁碟上的檔案與執行中的組態不同,因此未寫入。請重載 honk 以套用該檔案;若檔案變更了需重新啟動的設定,請重新啟動 honk","config.draftOther":"其他修改","config.global.allow_insecure":"允許不安全的 TLS","config.global.auto_config_kernel_parameter":"自動設定核心參數","config.global.bandwidth_max_rx":"下載頻寬上限","config.global.bandwidth_max_tx":"上傳頻寬上限","config.global.bootstrap_resolver":"引導解析器","config.global.check_interval":"檢查間隔","config.global.check_tolerance":"切換容差","config.global.data_dir":"資料目錄","config.global.dial_mode":"撥號模式","config.global.disable_waiting_network":"不等待網路就緒","config.global.fallback_resolver":"備援解析器","config.global.lan_interface":"LAN 介面","config.global.log_file":"日誌檔案","config.global.log_level":"日誌等級","config.global.max_concurrent_dials":"並行撥號上限","config.global.mptcp":"多路徑 TCP","config.global.nfqueue_enable":"啟用 NFQUEUE","config.global.pprof_port":"效能分析連接埠","config.global.preconnect_node_count":"預連線節點數","config.global.sniffing_timeout":"嗅探逾時","config.global.so_mark_from_dae":"Socket 標記","config.global.store_subscribe":"儲存訂閱內容","config.global.tcp_check_http_method":"TCP 檢查 HTTP 方法","config.global.tcp_check_url":"TCP 檢查 URL","config.global.tls_fragment":"TLS 分片","config.global.tls_fragment_interval":"TLS 分片間隔","config.global.tls_fragment_length":"TLS 分片長度","config.global.tls_implementation":"TLS 實作","config.global.tproxy_port":"透明代理連接埠","config.global.tproxy_port_protect":"保護透明代理連接埠","config.global.udp_check_dns":"UDP 檢查 DNS 伺服器","config.global.udp_warm_node_count":"UDP 預熱節點數","config.global.utls_imitate":"uTLS 指紋","config.global.wan_interface":"WAN 介面","config.incomplete":"內容不完整或已遮蔽,不能在此編輯","config.newSourceAbsolute":"請使用相對於主組態目錄的路徑","config.newSourceControl":"路徑不可包含控制字元","config.newSourceExtension":"檔名須以 .dae 結尾","config.newSourceNameControl":"名稱不可包含控制字元","config.newSourceNameSlash":"名稱不可包含 /","config.newSourceSegments":"路徑不可包含空段、. 或 ..","config.readOnly":"唯讀","config.tooLarge":"組態超過後端可接受的大小。上限:{limit} 位元組","config.unquotable":"無法寫入:值含單引號、換行或結尾反斜線,無法無損轉為單引號字串。","conn.state.active":"進行中","conn.state.blocked":"已封鎖","conn.state.closed":"已關閉","conn.state.dialing":"撥號中","conn.state.failed":"失敗","conn.state.observed":"觀測中","conn.state.routing":"路由中","conn.state.unknown":"未知","event.flow":"{resourceId},修訂:{revision}","event.gap":"{resourceId},原因:{reason},本次記錄期間累計捨棄:{n}","event.gap.evicted":"移出保留記錄","event.gap.overflow":"記錄已達保留上限","event.gap.recording":"記錄設定變更","event.gap.sampled":"取樣略過","event.gapNoCount":"{resourceId},原因:{reason}","event.gapUnscoped":"原因:{reason},本次記錄期間累計捨棄:{n}","event.gapUnscopedNoCount":"原因:{reason}"Line truncated
|
||||
@@ -1 +0,0 @@
|
||||
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.mode":"出站模式","config.changedMeanwhile":"組態已被變更或另一次寫入尚未完成,因此未寫入。請重新整理後重試","config.diagnostic.bareCondition":"條件沒有函式呼叫,因此永遠不會相符","config.diagnostic.braceWithoutSection":"右大括號沒有對應的區段開頭","config.diagnostic.includeNotFound":"無法解析引入檔案「{path}」","config.diagnostic.notARule":"規則格式:<condition> -> <outbound>、include <file> 或 fallback: <outbound>","config.diagnostic.notASetting":"設定格式:<key>: <value>","config.diagnostic.sectionNotClosed":"區段「{name}」缺少右大括號","config.diagnostic.sourceNotIncluded":"沒有 include 路徑模式符合 {path},未寫入檔案","config.diagnostic.unknownKey":"未知的全域設定「{name}」","config.diagnostic.unknownOutbound":"找不到名為「{name}」的群組","config.diagnostic.unknownSection":"未知的區段「{name}」","config.discard":"放棄修改","config.discardHelp":"離開後,以下項目的未儲存修改將遺失:{drafts}。","config.discardTitle":"放棄未套用的修改?","config.diskAhead":"磁碟上的檔案與執行中的組態不同,因此未寫入。請重載 honk 以套用該檔案;若檔案變更了需重新啟動的設定,請重新啟動 honk","config.draftOther":"其他修改","config.global.allow_insecure":"允許不安全的 TLS","config.global.auto_config_kernel_parameter":"自動設定核心參數","config.global.bandwidth_max_rx":"下載頻寬上限","config.global.bandwidth_max_tx":"上傳頻寬上限","config.global.bootstrap_resolver":"引導解析器","config.global.check_interval":"檢查間隔","config.global.check_tolerance":"切換容差","config.global.data_dir":"資料目錄","config.global.dial_mode":"撥號模式","config.global.disable_waiting_network":"不等待網路就緒","config.global.fallback_resolver":"備援解析器","config.global.lan_interface":"LAN 介面","config.global.log_file":"日誌檔案","config.global.log_level":"日誌等級","config.global.max_concurrent_dials":"並行撥號上限","config.global.mptcp":"多路徑 TCP","config.global.nfqueue_enable":"啟用 NFQUEUE","config.global.pprof_port":"效能分析連接埠","config.global.preconnect_node_count":"預連線節點數","config.global.sniffing_timeout":"嗅探逾時","config.global.so_mark_from_dae":"Socket 標記","config.global.store_subscribe":"儲存訂閱內容","config.global.tcp_check_http_method":"TCP 檢查 HTTP 方法","config.global.tcp_check_url":"TCP 檢查 URL","config.global.tls_fragment":"TLS 分片","config.global.tls_fragment_interval":"TLS 分片間隔","config.global.tls_fragment_length":"TLS 分片長度","config.global.tls_implementation":"TLS 實作","config.global.tproxy_port":"透明代理連接埠","config.global.tproxy_port_protect":"保護透明代理連接埠","config.global.udp_check_dns":"UDP 檢查 DNS 伺服器","config.global.udp_warm_node_count":"UDP 預熱節點數","config.global.utls_imitate":"uTLS 指紋","config.global.wan_interface":"WAN 介面","config.incomplete":"內容不完整或已遮蔽,不能在此編輯","config.newSourceAbsolute":"請使用相對於主組態目錄的路徑","config.newSourceControl":"路徑不可包含控制字元","config.newSourceExtension":"檔名須以 .dae 結尾","config.newSourceNameControl":"名稱不可包含控制字元","config.newSourceNameSlash":"名稱不可包含 /","config.newSourceSegments":"路徑不可包含空段、. 或 ..","config.readOnly":"唯讀","config.tooLarge":"組態超過後端可接受的大小。上限:{limit} 位元組","config.unquotable":"無法寫入:值含單引號、換行或結尾反斜線,無法無損轉為單引號字串。","conn.state.active":"進行中","conn.state.blocked":"已封鎖","conn.state.closed":"已關閉","conn.state.dialing":"撥號中","conn.state.failed":"失敗","conn.state.observed":"觀測中","conn.state.routing":"路由中","conn.state.unknown":"未知","event.flow":"{resourceId},修訂:{revision}","event.gap":"{resourceId},原因:{reason},本次記錄期間累計捨棄:{n}","event.gap.evicted":"移出保留記錄","event.gap.overflow":"記錄已達保留上限","event.gap.recording":"記錄設定變更","event.gap.sampled":"取樣略過","event.gapNoCount":"{resourceId},原因:{reason}","event.gapUnscoped":"原因:{reason},本次記錄期間累計捨棄:{n}","event.gapUnscopedNoCount":"原因:{reason}"Line truncated
|
||||
@@ -1 +0,0 @@
|
||||
const e=JSON.parse('{"act.modeReadOnlyAction":"請確認 honk 對主設定檔有寫入權限,並將 native_api 設定放在獨立的 include 檔案。","act.modeReadOnlyReason":"honk 須允許組態寫入,且控制端已設定驗證。主組態若含 native_api 或 clash_api 的密鑰欄位或巢狀區塊,會標記為唯讀。組態含目前的監聽密鑰時也一樣。","act.readOnlyDocs":"唯讀的設定檔","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})保留的診斷","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":"已匯入伺服器組態","config.changedOnDisk":"編輯期間磁碟上的檔案已變更,套用會覆蓋該變更。","config.clean":"沒有診斷","config.diagnostic.downloadGeodata":"下載地理資料","config.diagnostic.geodataDocs":"如何安裝地理資料","config.diagnostics":"診斷","config.draftBackend":"後端設定檔","config.draftConfig":"設定檔","config.draftDiagnostics":"目前草稿的診斷","config.draftGroup":"群組","config.draftNode":"節點","config.draftPending":"目前草稿尚未驗證。","config.draftRule":"規則","config.draftRuntime":"執行時覆寫","config.editNote":"點選內容即可編輯。","config.editNoteValidate":"點選內容即可編輯,套用前可先驗證。","config.editor":"編輯器","config.errors":"{n} 個錯誤","config.export":"下載來源檔案","config.exportWarning":"匯出檔案保留顯示的原始文字,可能含有憑證;分享前請檢查內容。","config.fileDiagnostics":"目前組態檔的診斷","config.forms":"設定表單","config.generatedNote":"此檔案由引擎產生,重新產生時會覆寫,只能在此檢視。要變更內容,請修改產生它的組態。","config.globalChoice":"數字或 {choices}","config.globalDuplicate":"此欄位重複出現。請在組態檔中移除重複項目。","config.globalGroup.bandwidth":"頻寬與預連線","config.globalGroup.checks":"節點檢查","config.globalGroup.dialing":"撥號與 TLS","config.globalGroup.interfaces":"介面與連接埠","config.globalGroup.logging":"日誌","config.globalGroup.storage":"資料儲存","config.globalInvalid":"請輸入符合類型與範圍的值。","config.globalList":"以逗號分隔","config.globalNote":"變更會寫入組態檔並重新載入。程序設定可能需要重新啟動。未設定的欄位使用引擎預設值。","config.globalRange":"範圍:0–{max}","config.globalSave":"寫入並重新載入","config.globalSaved":"已寫入全域設定並重新載入組態","config.globalUnits":"單位:{units}","config.globalUnset":"未設定","config.incompleteNote":"顯示的內容不完整,或 SHA-256 與後端回報的值不符,無法在此編輯。請在主機上編輯。","config.incompleteSource":"內容不完整","config.invalid":"驗證發現 {n} 個錯誤","config.jumpToLine":"前往第 {line} 行","config.keepChanges":"保留修改","config.level":"等級","config.level.error":"錯誤","config.level.info":"提示","config.level.warning":"警告","config.levelErrors":"錯誤 {n}","config.levelInfo":"提示 {n}","config.levelWarnings":"警告 {n}","config.loadedAt":"載入時間:{time}","config.moduleAbsent":"未設定此區段;可加入 {file}。","config.moduleAbsentReadOnly":"未設定此區段。","config.moduleDnsRequests":"{n} 條 request 規則","config.moduleDnsResponses":"{n} 條 response 規則","config.moduleDnsUpstreams":"{n} 個上游","config.moduleGroups":"{n} 個群組","config.moduleNodes":"{n} 個節點","config.moduleOpen":"開啟頁面","config.moduleRules":"{n} 條規則","config.moduleSettings":"{n} 項設定","config.moduleSubscriptions":"{n} 個訂閱","config.nLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
const e=JSON.parse('{"act.modeReadOnlyAction":"請確認 honk 對主設定檔有寫入權限,並將 native_api 設定放在獨立的 include 檔案。","act.modeReadOnlyReason":"honk 須允許組態寫入,且控制端已設定驗證。主組態若含 native_api 或 clash_api 的密鑰欄位或巢狀區塊,會標記為唯讀。組態含目前的監聽密鑰時也一樣。","act.readOnlyDocs":"唯讀的設定檔","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})保留的診斷","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":"已匯入伺服器組態","config.changedOnDisk":"編輯期間磁碟上的檔案已變更,套用會覆蓋該變更。","config.clean":"沒有診斷","config.diagnostic.downloadGeodata":"下載地理資料","config.diagnostic.geodataDocs":"如何安裝地理資料","config.diagnostics":"診斷","config.draftBackend":"後端設定檔","config.draftConfig":"設定檔","config.draftDiagnostics":"目前草稿的診斷","config.draftGroup":"群組","config.draftNode":"節點","config.draftPending":"目前草稿尚未驗證。","config.draftRule":"規則","config.draftRuntime":"執行時覆寫","config.editNote":"點選內容即可編輯。","config.editNoteValidate":"點選內容即可編輯,套用前可先驗證。","config.editor":"編輯器","config.errors":"{n} 個錯誤","config.export":"下載來源檔案","config.exportWarning":"匯出檔案保留顯示的原始文字,可能含有憑證;分享前請檢查內容。","config.fileDiagnostics":"目前組態檔的診斷","config.forms":"設定表單","config.generatedNote":"此檔案由引擎產生,重新產生時會覆寫,只能在此檢視。要變更內容,請修改產生它的組態。","config.globalChoice":"數字或 {choices}","config.globalDuplicate":"此欄位重複出現。請在組態檔中移除重複項目。","config.globalGroup.bandwidth":"頻寬與預連線","config.globalGroup.checks":"節點檢查","config.globalGroup.dialing":"撥號與 TLS","config.globalGroup.interfaces":"介面與連接埠","config.globalGroup.logging":"日誌","config.globalGroup.storage":"資料儲存","config.globalInvalid":"請輸入符合類型與範圍的值。","config.globalList":"以逗號分隔","config.globalNote":"變更會寫入組態檔並重新載入。程序設定可能需要重新啟動。未設定的欄位使用引擎預設值。","config.globalRange":"範圍:0–{max}","config.globalSave":"寫入並重新載入","config.globalSaved":"已寫入全域設定並重新載入組態","config.globalUnits":"單位:{units}","config.globalUnset":"未設定","config.incompleteNote":"顯示的內容不完整,或 SHA-256 與後端回報的值不符,無法在此編輯。請在主機上編輯。","config.incompleteSource":"內容不完整","config.invalid":"驗證發現 {n} 個錯誤","config.jumpToLine":"前往第 {line} 行","config.keepChanges":"保留修改","config.level":"等級","config.level.error":"錯誤","config.level.info":"提示","config.level.warning":"警告","config.levelErrors":"錯誤 {n}","config.levelInfo":"提示 {n}","config.levelWarnings":"警告 {n}","config.loadedAt":"載入時間:{time}","config.moduleAbsent":"未設定此區段;可加入 {file}。","config.moduleAbsentReadOnly":"未設定此區段。","config.moduleDnsRequests":"{n} 條 request 規則","config.moduleDnsResponses":"{n} 條 response 規則","config.moduleDnsUpstreams":"{n} 個上游","config.moduleGroups":"{n} 個群組","config.moduleNodes":"{n} 個節點","config.moduleOpen":"開啟頁面","config.moduleRules":"{n} 條規則","config.moduleSettings":"{n} 項設定","config.moduleSubscriptions":"{n} 個訂閱","config.nLine truncated
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="800" height="800" viewBox="180.5 27 920 920" preserveAspectRatio="xMidYMid meet">
|
||||
<title>Doona Halloween duck</title>
|
||||
<desc>The original white duck with yellow beak and feet, wearing a purple witch hat with an orange band. Transparent background.</desc>
|
||||
<path id="outline" fill="#0B0A09" fill-rule="evenodd" d="M 664.004 903.901 C 652.981 901.742 646.389 897.431 641.872 889.426 C 639.086 884.491 638.577 884.070 636.157 884.693 C 631.027 886.016 616.619 885.454 610.836 883.706 C 593.255 878.392 585.119 860.607 592.900 844.500 C 594.494 841.200 597.014 837.233 598.501 835.685 C 599.987 834.136 600.991 832.658 600.732 832.399 C 600.474 832.141 593.791 831.259 585.881 830.439 C 525.730 824.204 480.465 807.380 445.000 778.077 C 436.499 771.053 438.808 771.321 419.000 775.066 C 390.608 780.433 355.206 776.399 338.905 765.939 C 322.783 755.594 317.447 737.875 326.096 723.414 C 329.046 718.483 337.038 710.675 342.384 707.500 C 343.837 706.638 343.931 705.786 343.072 701.314 C 341.923 695.329 343.689 686.650 347.004 681.994 C 351.485 675.701 363.201 668.037 368.382 668.010 C 370.534 667.999 370.507 667.647 367.023 650.000 C 364.349 636.456 363.272 609.011 364.923 596.500 C 368.488 569.487 376.499 544.693 388.055 524.906 C 390.225 521.191 392.000 517.695 392.000 517.137 C 392.000 516.579 389.863 515.834 387.250 515.481 C 366.244 512.645 348.809 502.052 343.056 488.631 C 335.450 470.886 339.216 456.472 358.124 430.966 C 372.212 411.962 380.032 399.447 386.479 385.588 L 392.347 372.972 389.727 370.236 C 375.581 355.464 379.494 313.111 398.119 279.403 C 423.510 233.449 474.618 200.032 532.812 191.337 C 548.899 188.933 572.462 189.185 588.381 191.932 C 670.809 206.156 728.528 266.531 738.541 349.000 C 740.364 364.009 740.340 388.671 738.489 402.500 C 737.679 408.550 737.013 414.228 737.008 415.118 C 737.001 416.533 738.844 416.740 751.750 416.779 C 787.207 416.883 820.236 427.007 849.338 446.690 C 859.310 453.435 860.767 454.128 863.000 453.193 C 879.150 446.432 883.384 444.947 889.416 443.930 C 908.359 440.735 923.986 447.126 930.710 460.818 C 933.199 465.886 933.500 467.580 933.500 476.500 C 933.500 482.000 933.145 488.172 932.711 490.216 L 931.922 493.932 937.916 496.958 C 953.712 504.931 961.670 522.395 958.076 541.197 C 956.527 549.302 949.251 564.386 943.463 571.492 L 938.943 577.041 940.714 585.771 C 942.118 592.694 942.477 599.362 942.449 618.000 C 942.417 639.585 942.197 642.519 939.749 654.000 C 930.743 696.241 914.730 725.622 884.129 756.053 C 856.930 783.101 826.556 800.843 785.750 813.518 C 780.938 815.013 777.000 816.745 777.001 817.368 C 777.001 817.991 777.722 821.875 778.602 826.000 C 780.737 836.000 779.988 852.766 776.973 862.500 C 769.092 887.941 751.689 901.192 728.085 899.724 C 720.740 899.267 718.617 898.667 711.380 894.997 L 703.089 890.793 698.718 894.375 C 693.051 899.018 684.660 902.687 676.783 903.965 C 669.753 905.106 670.172 905.108 664.004 903.901 Z"/>
|
||||
<path id="white-body" fill="#FFFFFF" fill-rule="evenodd" d="M 606.500 810.956 C 535.706 806.905 483.816 787.157 445.183 749.559 C 379.374 685.515 368.840 591.882 419.387 520.254 C 423.705 514.135 425.122 512.848 428.500 511.977 C 448.355 506.861 469.259 497.645 482.844 488.020 C 498.126 477.192 511.885 462.073 518.281 449.082 C 521.185 443.182 521.500 441.661 521.500 433.521 C 521.500 421.225 518.733 415.716 506.691 404.041 C 501.485 398.993 495.145 391.429 491.191 385.547 C 476.238 363.305 462.101 353.034 442.227 349.976 C 433.837 348.684 422.033 350.530 414.054 354.380 C 411.059 355.826 408.226 356.626 407.759 356.159 C 405.682 354.082 404.666 341.807 405.840 332.983 C 409.521 305.338 421.924 281.954 444.415 260.255 C 502.320 204.389 596.485 199.620 658.598 249.406 C 708.614 289.497 728.791 362.892 707.832 428.500 C 704.142 440.048 693.773 460.970 687.852 468.812 C 682.898 475.373 682.018 480.102 684.895 484.689 C 687.919 489.507 693.155 490.639 698.996 487.737 C 706.447 484.036 717.195 468.969 725.096 451.151 C 727.132 446.559 729.316 442.284 729.949 441.651 C 732.154 439.446 764.821 440.274 777.926 442.867 C 802.624 447.754 825.556 457.870 845.217 472.550 C 858.438 482.422 860.607 482.914 868.554 477.846 C 880.251 470.386 894.526 465.455 901.233 466.557 C 910.336 468.052 912.328 477.008 906.890 492.000 C 905.195 496.675 903.576 501.732 903.292 503.237 C 901.933 510.456 906.748 514.990 915.782 514.996 C 922.529 515.001 926.721 516.779 930.716 521.330 C 938.080 529.716 935.356 543.093 922.970 559.376 C 912.493 573.148 913.140 570.316 916.434 588.000 C 920.192 608.175 919.407 635.573 914.490 655.811 C 897.244 726.805 839.506 778.293 753.500 799.373 C 712.468 809.431 656.679 813.826 606.500 810.956 Z"/>
|
||||
<path id="beak" fill="#FFDD00" fill-rule="evenodd" d="M 391.000 494.380 C 378.011 492.393 372.352 490.114 367.311 484.838 C 357.636 474.710 360.210 464.366 378.595 439.500 C 394.849 417.517 400.005 409.008 409.909 387.827 C 415.182 376.548 422.999 371.570 435.500 371.527 C 450.025 371.478 459.138 377.809 473.173 397.699 C 477.520 403.859 484.546 412.346 488.788 416.559 C 493.030 420.772 497.285 425.408 498.243 426.860 C 501.829 432.289 499.754 440.143 492.231 449.613 C 472.159 474.883 436.911 492.065 400.500 494.327 C 396.650 494.567 392.375 494.590 391.000 494.380 Z"/>
|
||||
<path id="back-foot" fill="#FFDD00" fill-rule="evenodd" d="M 373.814 756.922 C 349.681 753.382 338.853 744.903 343.898 733.498 C 346.502 727.611 351.071 724.609 367.500 717.990 C 378.775 713.447 379.289 711.718 371.010 706.175 C 364.051 701.517 362.389 698.398 364.357 693.689 C 365.354 691.302 367.101 689.645 370.205 688.143 C 376.248 685.217 377.895 685.399 379.197 689.135 C 384.675 704.848 404.926 737.730 416.837 750.249 C 419.049 752.574 420.042 754.341 419.451 754.902 C 416.892 757.338 385.978 758.706 373.814 756.922 Z"/>
|
||||
<path id="front-foot" fill="#FFDD00" fill-rule="evenodd" d="M 665.538 884.501 C 658.744 882.081 656.666 877.390 658.255 868.056 C 659.823 858.850 656.708 857.286 645.773 861.790 C 632.512 867.251 623.361 868.255 616.251 865.027 C 607.943 861.256 607.951 854.157 616.272 846.331 C 619.147 843.627 624.425 839.366 628.000 836.862 L 634.500 832.309 662.000 831.134 C 692.558 829.828 707.799 828.334 731.500 824.319 C 753.046 820.670 755.042 820.684 756.967 824.500 C 759.480 829.481 759.066 852.893 756.336 860.168 C 750.419 875.937 739.712 883.044 726.372 880.059 C 721.143 878.889 719.798 878.001 713.218 871.378 C 703.781 861.880 701.832 861.660 695.965 869.431 C 690.757 876.327 682.448 882.760 676.392 884.583 C 670.730 886.287 670.547 886.285 665.538 884.501 Z"/>
|
||||
<path id="eye" fill="#0B0A09" fill-rule="evenodd" d="M 558.500 355.065 C 547.524 352.393 540.633 343.498 540.633 332.000 C 540.633 324.961 542.307 320.571 546.864 315.658 C 555.771 306.056 572.229 306.056 581.136 315.658 C 588.246 323.323 589.703 334.711 584.674 343.294 C 579.144 352.729 568.524 357.505 558.500 355.065 Z"/>
|
||||
<g id="witch-hat" transform="rotate(10 555 230)" stroke="#0B0A09" stroke-width="20" stroke-linejoin="round">
|
||||
<ellipse cx="555" cy="240" rx="158" ry="27" fill="#4B1E6B"/>
|
||||
<path fill="#4B1E6B" d="M 450 229 L 532 49 Q 538 36 550 45 L 584 78 L 550 74 L 650 229 Z"/>
|
||||
<path fill="#FF7518" d="M 468 190 L 625 190 L 650 229 Q 550 246 450 229 Z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 7.2 KiB |
+1
-1
@@ -1 +1 @@
|
||||
import{f4 as e,eH as t,f5 as a,cY as s,cZ as n,f6 as r,cW as i,f7 as o,f8 as l,eS as c,c_ as d,d0 as u,dd as p,d4 as f,cP as h,d6 as b,eQ as m,eR as y,d5 as g,cO as v,$ as w,f9 as x,fa as k,d3 as j,d7 as C,fb as S,eE as _,bt as P,er as N,ex as E,fc as M,da as D,fd as A,de as K,e6 as R,cz as z,co as F,dj as I,df as T,dl as L,cq as q,bz as $,cw as O,cr as V,b9 as W,be as B,fe as G,ff as Y,T as U,ay as X,N as H,u as J,fg as Q,fh as Z,fi as ee,I as te,B as ae,cs as se,ct as ne,cv as re,s as ie,ab as oe,fj as le,r as ce,fk as de,at as ue,fl as pe,fm as fe,A as he,aM as be,fn as me,v as ye,fo as ge,fp as ve,cy as we,fq as xe,fr as ke,fs as je,ft as Ce,bN as Se,fu as _e,fv as Pe,aj as Ne,O as Ee,t as Me,ci as De,bV as Ae,bP as Ke,fw as Re,ad as ze,fx as Fe,fy as Ie,dC as Te,R as Le,bx as qe}from"./index-tt2n9Zk_.js";import{r as $e,a as Oe,$ as Ve,j as We}from"./vendor-react-64fcanlc.js";import{b as Be,c as Ge,$ as Ye,a as Ue}from"./Select-DO5D4JEL.js";import{I as Xe,a as He,b as Je}from"./ItemText-EZM3RrYN.js";import{M as Qe}from"./AppearanceControls-D6ckn4zJ.js";import{am as Ze,an as et}from"./nodes-CWX2Nx2b.js";function tt(i){let{onMoveStart:o,onMove:l,onMoveEnd:c}=i,d=$e.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:u,removeGlobalListener:p}=e(),f=$e.useCallback((e,t,a,s)=>{0===a&&0===s||(d.current.didMove||(d.current.didMove=!0,o?.({type:"movestart",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),l?.({type:"move",pointerType:t,deltaX:a,deltaY:s,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))},[o,l,d]),h=t(f),b=$e.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:$e.useMemo(()=>{let e={},t=()=>{r(),d.current.didMove=!1};{let a=e=>{if(e.pointerId===d.current.id){let t=e.pointerType||"mouse";h(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}}},r=e=>{if(e.pointerId===d.current.id){let t=e.pointerType||"mouse";m(e,t),d.current.id=null;let i=s(n(e));p(i,"pointermove",a,!1),p(i,"pointerup",r,!1),p(i,"pointercancel",r,!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 i=s(n(e));u(i,"pointermove",a,!1),u(i,"pointerup",r,!1),u(i,"pointercancel",r,!1)}}}let a=(e,a,s)=>{t(),h(e,"keyboard",a,s),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])}}const at=$e.createContext(null),st=$e.createContext(null),nt=$e.createContext(null),rt=$e.createContext(null),it=$e.forwardRef(function(e,t){[e,t]=u(e,t,st);let a=$e.useContext(at),{id:s,...n}=e,r=i();s||=r;let w=a?a.expandedKeys.has(s):e.isExpanded,x=function(e){let[t,a]=d(e.isExpanded,e.defaultExpanded||!1,e.onExpandedChange);const s=$e.useCallback(()=>{a(!0)},[a]),n=$e.useCallback(()=>{a(!1)},[a]),r=$e.useCallback(()=>{a(!t)},[a,t]);return{isExpanded:t,setExpanded:a,expand:s,collapse:n,toggle:r}}({...e,isExpanded:w,onExpandedChange(t){a&&a.toggleKey(s),e.onExpandedChange?.(t)}}),k=Ve.useRef(null),j=e.isDisabled||a?.isDisabled||!1,{buttonProps:C,panelProps:S}=function(e,t,a){let{isDisabled:s}=e,n=i(),r=i(),d=o(),u=$e.useRef(null),p=$e.useCallback(()=>{u.current=requestAnimationFrame(()=>{a.current&&a.current.setAttribute("hidden","until-found")}),Oe.flushSync(()=>{t.toggle()})},[a,t]);l(a,"beforematch",p);let f=$e.useRef(null);return c(()=>{if(u.current&&cancelAnimationFrame(u.current),a.current&&!d){let e=a.current;null==f.current||"function"!=typeof e.getAnimations?t.isExpanded?(e.removeAttribute("hidden"),e.style.setProperty("--disclosure-panel-width","auto"),e.style.setProperty("--disclosure-panel-height","auto")):(e.setAttribute("hidden","until-found"),e.style.setProperty("--disclosure-panel-width","0px"),e.style.setProperty("--disclosure-panel-height","0px")):t.isExpanded!==f.current&&(t.isExpanded?(e.removeAttribute("hidden"),e.style.setProperty("--disclosure-panel-width",e.scrollWidth+"px"),e.style.setProperty("--disclosure-panel-height",e.scrollHeight+"px"),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>{e.style.setProperty("--disclosure-panel-width","auto"),e.style.setProperty("--disclosure-panel-height","auto")}).catch(()=>{})):(e.style.setProperty("--disclosure-panel-width",e.scrollWidth+"px"),e.style.setProperty("--disclosure-panel-height",e.scrollHeight+"px"),window.getComputedStyle(e).height,e.style.setProperty("--disclosure-panel-width","0px"),e.style.setProperty("--disclosure-pLine truncated
|
||||
import{f4 as e,eH as t,f5 as a,cY as s,cZ as n,f6 as r,cW as i,f7 as o,f8 as l,eS as c,c_ as d,d0 as u,dd as p,d4 as f,cP as h,d6 as b,eQ as m,eR as y,d5 as g,cO as v,$ as w,f9 as x,fa as k,d3 as j,d7 as C,fb as S,eE as _,bt as P,er as N,ex as E,fc as M,da as D,fd as A,de as K,e6 as R,cz as z,co as F,dj as I,df as T,dl as L,cq as q,bz as $,cw as O,cr as V,b9 as W,be as B,fe as G,ff as U,T as Y,ay as X,N as H,u as J,fg as Q,fh as Z,fi as ee,I as te,B as ae,cs as se,ct as ne,cv as re,s as ie,ab as oe,fj as le,r as ce,fk as de,at as ue,fl as pe,fm as fe,A as he,aM as be,fn as me,v as ye,fo as ge,fp as ve,cy as we,fq as xe,fr as ke,fs as je,ft as Ce,bN as Se,fu as _e,fv as Pe,aj as Ne,O as Ee,t as Me,ci as De,bV as Ae,bP as Ke,fw as Re,ad as ze,fx as Fe,fy as Ie,dC as Te,R as Le,bx as qe}from"./index-DFPUSiWe.js";import{r as $e,a as Oe,$ as Ve,j as We}from"./vendor-react-64fcanlc.js";import{b as Be,c as Ge,$ as Ue,a as Ye}from"./Select-BFkb6iie.js";import{I as Xe,a as He,b as Je}from"./ItemText-u3CUc_6I.js";import{M as Qe}from"./AppearanceControls-Bpq6OQjk.js";import{ao as Ze,ap as et}from"./nodes-HzIJdCpg.js";function tt(i){let{onMoveStart:o,onMove:l,onMoveEnd:c}=i,d=$e.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:u,removeGlobalListener:p}=e(),f=$e.useCallback((e,t,a,s)=>{0===a&&0===s||(d.current.didMove||(d.current.didMove=!0,o?.({type:"movestart",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),l?.({type:"move",pointerType:t,deltaX:a,deltaY:s,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))},[o,l,d]),h=t(f),b=$e.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:$e.useMemo(()=>{let e={},t=()=>{r(),d.current.didMove=!1};{let a=e=>{if(e.pointerId===d.current.id){let t=e.pointerType||"mouse";h(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}}},r=e=>{if(e.pointerId===d.current.id){let t=e.pointerType||"mouse";m(e,t),d.current.id=null;let i=s(n(e));p(i,"pointermove",a,!1),p(i,"pointerup",r,!1),p(i,"pointercancel",r,!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 i=s(n(e));u(i,"pointermove",a,!1),u(i,"pointerup",r,!1),u(i,"pointercancel",r,!1)}}}let a=(e,a,s)=>{t(),h(e,"keyboard",a,s),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])}}const at=$e.createContext(null),st=$e.createContext(null),nt=$e.createContext(null),rt=$e.createContext(null),it=$e.forwardRef(function(e,t){[e,t]=u(e,t,st);let a=$e.useContext(at),{id:s,...n}=e,r=i();s||=r;let w=a?a.expandedKeys.has(s):e.isExpanded,x=function(e){let[t,a]=d(e.isExpanded,e.defaultExpanded||!1,e.onExpandedChange);const s=$e.useCallback(()=>{a(!0)},[a]),n=$e.useCallback(()=>{a(!1)},[a]),r=$e.useCallback(()=>{a(!t)},[a,t]);return{isExpanded:t,setExpanded:a,expand:s,collapse:n,toggle:r}}({...e,isExpanded:w,onExpandedChange(t){a&&a.toggleKey(s),e.onExpandedChange?.(t)}}),k=Ve.useRef(null),j=e.isDisabled||a?.isDisabled||!1,{buttonProps:C,panelProps:S}=function(e,t,a){let{isDisabled:s}=e,n=i(),r=i(),d=o(),u=$e.useRef(null),p=$e.useCallback(()=>{u.current=requestAnimationFrame(()=>{a.current&&a.current.setAttribute("hidden","until-found")}),Oe.flushSync(()=>{t.toggle()})},[a,t]);l(a,"beforematch",p);let f=$e.useRef(null);return c(()=>{if(u.current&&cancelAnimationFrame(u.current),a.current&&!d){let e=a.current;null==f.current||"function"!=typeof e.getAnimations?t.isExpanded?(e.removeAttribute("hidden"),e.style.setProperty("--disclosure-panel-width","auto"),e.style.setProperty("--disclosure-panel-height","auto")):(e.setAttribute("hidden","until-found"),e.style.setProperty("--disclosure-panel-width","0px"),e.style.setProperty("--disclosure-panel-height","0px")):t.isExpanded!==f.current&&(t.isExpanded?(e.removeAttribute("hidden"),e.style.setProperty("--disclosure-panel-width",e.scrollWidth+"px"),e.style.setProperty("--disclosure-panel-height",e.scrollHeight+"px"),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>{e.style.setProperty("--disclosure-panel-width","auto"),e.style.setProperty("--disclosure-panel-height","auto")}).catch(()=>{})):(e.style.setProperty("--disclosure-panel-width",e.scrollWidth+"px"),e.style.setProperty("--disclosure-panel-height",e.scrollHeight+"px"),window.getComputedStyle(e).height,e.style.setProperty("--disclosure-panel-width","0px"),e.style.setProperty("--disclosure-pLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{v as e,h as n,ga as t,V as i,a3 as o,a2 as l,Z as r,am as s}from"./index-tt2n9Zk_.js";import{u as a,S as c,y as u,s as f,P as d}from"./nodes-CWX2Nx2b.js";import{a1 as g,aR as m,aS as p,a8 as b}from"./activity-St9WlHNk.js";const h={interfaces:"config.globalGroup.interfaces",logging:"config.globalGroup.logging",checks:"config.globalGroup.checks",dialing:"config.globalGroup.dialing",bandwidth:"config.globalGroup.bandwidth",storage:"config.globalGroup.storage"};function v(e){return"integer"===e.type&&!e.choices&&!e.hexMax&&void 0!==e.max&&BigInt(e.max)<=BigInt(Number.MAX_SAFE_INTEGER)}function y(e){const n=[-1,...f(e).tokens.filter(n=>","===e.slice(n.from,n.to)).map(e=>e.from),e.length];return n.slice(1).map((t,i)=>a(e.slice(n[i]+1,t).trim()))}function k(e,n){const t=a(n);if("boolean"===e.type){if(/^(true|yes|1|on)$/i.test(t))return"true";if(/^(false|no|0|off)$/i.test(t))return"false"}if(e.hexMax&&/^(?:0x)?[0-9a-f]+$/i.test(t)){const n=t.replace(/^0x/i,""),i=BigInt(`0x${n}`);if(i<=BigInt(e.hexMax))return i.toString();if(/^\d+$/.test(n)&&BigInt(n)<=BigInt(e.hexMax))return BigInt(n).toString()}return"list"===e.type?y(n).map(e=>e.includes(",")?c(e):e).join(", "):t}function x(e,n){if(""===n)return"";if(e.choices?.includes(n))return n;if("boolean"===e.type)return/^(true|false)$/.test(n)?n:null;if("integer"===e.type)return!/^\d+$/.test(n)||BigInt(n)>BigInt(e.max)?null:e.hexMax?`0x${BigInt(n).toString(16)}`:n;if(e.choices)return null;if("duration"===e.type){const t=/^(\d+(?:\.\d+)?)(ms|s|m|h)?$/.exec(n);if(!t||!e.units?.includes(t[2]??""))return null;const i=e.units.includes("h");if(i?"ms"!==t[2]:"ms"===t[2]){if(t[1].includes("."))return null;const e="h"===t[2]?3600n:"m"===t[2]?60n:1n;return BigInt(t[1])*e<=18446744073709551615n?n:null}return(i?Math.ceil(Number(t[1])/1e3):Number(t[1])*("s"===t[2]?1e3:1))<0x10000000000000000?n:null}const t="list"===e.type?y(n).filter(Boolean):[n];return"list"===e.type&&1===t.length&&t[0].includes(",")?null:e.bareItems?t.length&&t.every(e=>/^[-\w.*]+$/.test(e))?t.join(", "):null:t.length&&t.every(u)?t.map(c).join(", "):null}function $(n,t,i,o){const{blocks:l,tokens:r}=f(n),s=l.filter(e=>e.name===t.name)[i],a=s?d(n,s,r):[],c=[],u=[],g=s&&n.slice(s.open+1,s.close).match(/\n([ \t]+)\S/)?.[1]||" ";for(const[f,d]of Object.entries(o)){const i=t.fields.find(e=>e.key===f),o=i&&x(i,d);if(null==o)throw new e("config.globalInvalid");const l=a.filter(e=>e.name===f);if(l.length>1)throw new e("config.globalDuplicate");if(""===d)l.length&&c.push({from:l[0].from,to:l[0].to,text:""});else if(l.length){const e=l[0],t=e.valueFrom+(n.slice(e.valueFrom,e.valueTo).match(/^\s*/)?.[0].length??0);c.push({from:t,to:e.valueTo,text:o})}else u.push(`${g}${f}: ${o}`)}const m=n.includes("\r\n")?"\r\n":"\n";if(u.length){const e=u.join(m)+m;s?c.push({from:s.close,to:s.close,text:m+e}):c.push({from:n.length,to:n.length,text:`${n&&!n.endsWith("\n")?m:""}${t.name} {${m}${e}}${m}`})}for(const e of c.sort((e,n)=>n.from-e.from))n=n.slice(0,e.from)+e.text+n.slice(e.to);return n}const w=["global","subscription","node","group","dns","routing"];function S(e,n){return`${g(e)}:${n.line+1}-${n.endLine+1}`}function _(e,n,t){return e.filter(e=>e.source_id===n&&null!==e.line).map(e=>({line:e.line,column:e.column,level:e.level,message:M(b(e,t),t)}))}function M({summary:e,detail:n},t){return n?t("config.backendDetail",{text:e,message:n}):e}function I(e,n,t){return t.filter(t=>t.from>n.open&&t.to<=n.close&&t.depth===n.depth+1&&0===t.parens&&"text"===t.kind&&"->"===e.slice(t.from,t.to)).length}function N(e,n,t){const i=n.filter(n=>n.from>e.open&&n.to<=e.close&&n.depth===e.depth+1&&0===n.parens&&("quoted"===n.kind||"text"===n.kind)&&!t.some(e=>n.from>=e.from&&n.to<=e.to));return t.length+i.length}function B(e,n,t,i,o){const l=d(n,t,i);switch(e){case"global":return o("config.moduleSettings",{n:l.length});case"subscription":return o("config.moduleSubscriptions",{n:N(t,i,l)});case"node":return o("config.moduleNodes",{n:N(t,i,l)});case"group":return o("config.moduleGroups",{n:t.children.length});case"dns":{const e=t.children.filter(e=>"upstream"===e.name),l=t.children.filter(e=>"routing"===e.name).flatMap(e=>e.children);return[o("config.moduleDnsUpstreams",{n:e.reduce((e,t)=>e+d(n,t,i).length,0)}),o("config.moduleDnsRequests",{n:l.filter(e=>"request"===e.name).reduce((e,t)=>e+I(n,t,i),0)}),o("config.moduleDnsResponses",{n:l.filter(e=>"response"===e.name).reduce((e,t)=>e+I(n,t,i),0)})].join(o("ui.listSeparator"))}case"routing":{const e=o("config.moduleRules",{n:I(n,t,i)}),r=l.find(e=>"fallback"===e.name)?.value;return r?e+o("ui.separator")+o("ui.valuePair",{label:"fallback",value:r}):e}}}const j={global:n("config",{tab:"global"}),subscription:n("nodes"),node:n("nodes"),group:n("policies"),dns:n("rules",{tab:"dns"}),routing:n("rules",{tab:"list"})};function K(e,t,i){const o=e.filter(e=>"main"===e.kind||"include"===e.kind).map(e=>({source:e,...f(e.content)})),l=e.find(e=>"main"===e.kind)??null;return[...w.flatMap(e=>{const t=j[e],r=o.flaLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{t as e}from"./index-DFPUSiWe.js";function i(i){const t=e(i,"flows",{whileLoading:!0}),l=e(i,"rules",{whileLoading:!1});return[...t||l?[{id:"list",titleKey:"rule.listTitle"}]:[],...e(i,"dns_rules",{whileLoading:!1})?[{id:"dns",titleKey:"rule.dnsTitle"}]:[],...e(i,"routing_trace",{whileLoading:!0})?[{id:"trace",titleKey:"rule.trace"}]:[]]}function t(t){const l=i(t).map(e=>e.id);return[...l.includes("list")&&e(t,"rules",{whileLoading:!1})&&!0===t?.config.writable?[{id:"rules:add",titleKey:"rule.add",parentKey:"rule.listTitle",route:"rules",params:{tab:"list",view:"advanced"},aliases:["condition"]},{id:"rules:services",titleKey:"rule.service.add",parentKey:"rule.listTitle",route:"rules",params:{tab:"list",view:"simple",service:"add"},aliases:["Steam Telegram GitHub geosite"]},{id:"rules:modes",titleKey:"rule.template.mode",parentKey:"rule.listTitle",route:"rules",params:{tab:"list",view:"simple"},aliases:["template"]}]:[],...l.includes("dns")&&!0===t?.config.writable?[{id:"rules:dns-add",titleKey:"rule.add",parentKey:"rule.dnsTitle",route:"rules",params:{tab:"dns"},aliases:["dns condition"]}]:[]]}export{t as a,i as r};
|
||||
Loaded 100 of 149 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user