mirror of
https://github.com/Zakkaus/doona.git
synced 2026-12-05 16:02:03 +00:00
build(demo): publish doona and lite
This commit is contained in:
432 files changed
+12320
No files matched your search
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"root": "/scratch/ssd/doona-demo-rc8",
|
||||
"packages": [
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/@codemirror+autocomplete@6.20.3/node_modules/@codemirror/autocomplete",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/@codemirror+commands@6.11.1/node_modules/@codemirror/commands",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/@codemirror+language@6.12.4/node_modules/@codemirror/language",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/@codemirror+lint@6.9.7/node_modules/@codemirror/lint",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/@codemirror+search@6.7.2/node_modules/@codemirror/search",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/@codemirror+state@6.7.6/node_modules/@codemirror/state",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/@codemirror+view@6.43.13/node_modules/@codemirror/view",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/@fontsource-variable+noto-sans-sc@5.3.0/node_modules/@fontsource-variable/noto-sans-sc",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/@fontsource-variable+noto-sans-tc@5.3.0/node_modules/@fontsource-variable/noto-sans-tc",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/@internationalized+number@3.6.8/node_modules/@internationalized/number",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/@internationalized+string@3.2.10/node_modules/@internationalized/string",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/@lezer+common@1.5.2/node_modules/@lezer/common",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/@lezer+highlight@1.2.5/node_modules/@lezer/highlight",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/@marijn+find-cluster-break@1.0.4/node_modules/@marijn/find-cluster-break",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/@react-aria+optimize-locales-plugin@2.0.2/node_modules/@react-aria/optimize-locales-plugin",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/crelt@1.0.7/node_modules/crelt",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/d3-path@3.1.0/node_modules/d3-path",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/openapi-fetch@0.17.0/node_modules/openapi-fetch",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/react-aria-components@1.21.1_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/react-aria@3.52.1_patch_hash=afaafe13b387db59f48029c404a5ecba218431e815ff90f2480baf3e80_4f145b54354b5a66914ba93b288ae750/node_modules/react-aria",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/react-dom@19.3.0_react@19.3.0/node_modules/react-dom",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/react-stately@3.50.0_react@19.3.0/node_modules/react-stately",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/react@19.3.0/node_modules/react",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/scheduler@0.28.0/node_modules/scheduler",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/style-mod@4.1.3/node_modules/style-mod",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/use-sync-external-store@1.7.0_react@19.3.0/node_modules/use-sync-external-store",
|
||||
"/scratch/ssd/doona-demo-rc8/node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname"
|
||||
],
|
||||
"buildRuntime": [
|
||||
"vite",
|
||||
"rollup",
|
||||
"@react-aria/optimize-locales-plugin"
|
||||
]
|
||||
}
|
||||
+2280
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1 @@
|
||||
import{j as r}from"./vendor-react-64fcanlc.js";import{I as a}from"./index-C4UFgHia.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};
|
||||
@@ -0,0 +1 @@
|
||||
import{j as e,r as s}from"./vendor-react-64fcanlc.js";import{fY as l,fZ as n,f_ as a,cC as c,dN as t,cE as i,bG as r,fm as o,cD as u,dQ as d,f$ as h,dR as p,cF as m,u as x,b9 as b,g0 as j,bA as f,cG as v,g1 as g,cH as y,cI as C,g2 as N,cJ as A,T as S,I as M,bm as k,en as I,B as L}from"./index-C4UFgHia.js";import{a as w,b as q}from"./ItemText-B5OxI5lS.js";const D=e=>e>12,H=({orientation:s="vertical"})=>e.jsx(l,{orientation:s,className:"vertical"===s?"rp-vrule":"rp-hrule"}),$=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(w,{}),e.jsx(q,{i:s,children:l})]})}function E({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,I]=s.useState(!1),L=c(),w=t(f),q=s.useRef(null),D=e.jsxs(i,{ref:q,className:y?"rp-select":o({quiet:b,small:j,icon:!v}),"data-size":w,"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:I,children:[e.jsx(h,{children:e.jsx("span",{className:"rp-tipwrap",tabIndex:g?0:-1,"data-passive":g?void 0:"",onPointerDown:e=>{g&&"touch"===e.pointerType&&I(e=>!e)},children:D})}),e.jsx(p,{triggerRef:q,children:M?.text??x})]}),e.jsx(m,{className:"rp-popover rp-list-popover",placement:C,boundaryElement:L,children:n})]})}function F({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(O(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&&$(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(H,{orientation:"horizontal"}),r.map(s=>e.jsx(V,{...s},s.label))]});return u?e.jsx(N,{label:i,children:d}):d}const O=e=>e.reduce((e,s)=>e+s.items.length,0);function R(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 V=({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})]}),z=({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:[R(a,c),e.jsx(r,{className:"rp-chev-end"})]})]})};function B({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:h,left:p},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?h:null})};if(s.useEffect(()=>{const e=C.current;if(!e||null==h&&null==p)return;const s=null==h?`[data-key="${CSS.escape(`/submenu-${p}`)}"]`:'[aria-checked="true"], [role="menuitem"]',l=requestAnimationFrame(()=>{document.activeElement===e&&e.querySelector(s)?.focus()});return()=>cancelAnimationFrame(l)},[h,p]),!o)return e.jsxs(v,{"aria-label":l,"aria-labelledby":"",children:[c.map(s=>"sections"in s?e.jsxs(g,{children:[e.jsx(z,{id:`/submenu-${s.label}`,...s}),e.jsx(m,{className:"rp-popover rp-list-popover",offset:-4,crossOffset:-9,children:e.jsx(F,{...s,headers:s.sections.length>1})})]},s.label):e.jsx(V,{...s},s.label)),a.map(s=>e.jsx(V,{...s},s.label))]});const S=null==h?null:c.find(e=>e.label===h);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(F,{...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==p&&void 0,shouldCloseOnSelect:!1,onAction:e=>{const s=M(String(e));null!=s&&A(s)},cLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{u as a,g as s,gH as r,d$ as l,gI as n}from"./index-C4UFgHia.js";import{b as o,b4 as i,b5 as c,b6 as p,b7 as u,b8 as m,b9 as d,ba as h,bb as b,bc as x,bd as g,be as f,bf as v,bg as y,bh as j}from"./activity-C22CeO5G.js";import{G as k,C as w}from"./AreaCurve-DQSHOSpG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-BXUOUiP2.js";import"./logs-j0cmmcZI.js";import"./Select-W-Xrx6y6.js";import"./ItemText-B5OxI5lS.js";import"./AppearanceControls-I4PvP9Es.js";import"./array-C0VuvQyb.js";const M=[30,60,120,300,600,900,1800,3600,7200,21600,43200,86400].map(e=>1e3*e);function E(t,a){const[s,r]=e.useState([]),l=e.useRef("");return e.useLayoutEffect(()=>{const e=[a,...t].join("\0");if(e===l.current)return;l.current=e;const s=document.createElement("span");s.className="rp-area-tick",Object.assign(s.style,{position:"absolute",top:"-20000px",whiteSpace:"pre",lineHeight:"var(--rp-line-caption)"}),document.body.appendChild(s),r(t.map(e=>{s.textContent=e;const{width:t,height:a}=s.getBoundingClientRect();return{width:t,height:a}})),s.remove()},[t,a]),s}const L={value:"--rp-space-2",plot:"--rp-space-2",time:"--rp-space-1h",caption:"--rp-line-caption",label:"--rp-space-half",clock:"--rp-space-4",clockEnd:"--rp-space-6",sample:"--rp-space-2"},N=Object.fromEntries(Object.keys(L).map(e=>[e,0]));const $=e=>null!==e;function C({label:C,series:O,timestamps:S,fmt:T,locale:z,height:A,baseline:P="zero",window:B,fill:D,split:F=!1,bare:I=!1,inset:W=2}){const H=a(),R=o(),K=e.useId(),[G,V]=s(Math.round,120),_=function(t){const[a,s]=e.useState(null);return e.useLayoutEffect(()=>{const e=getComputedStyle(t.current);s(Object.fromEntries(Object.entries(L).map(([t,a])=>[t,parseFloat(e.getPropertyValue(a))])))},[t]),a}(G),q=_??N,{tip:J,showAt:Q,hide:U}=i(),[X,Y]=e.useState(null),Z=X&&X.index<S.length?X.index:null,ee=B?B.until-B.since:S.length?S[S.length-1]-S[0]:0,te=B?.since,ae=B?.until,se=e.useMemo(()=>S.length?[Math.min(...S),Math.max(...S)]:void 0!==te&&void 0!==ae?[te,ae]:[0,0],[te,ae,S]),re=e.useMemo(()=>B?function(e,t){const a=t-e,s=M.find(e=>a/e<=6)??M[M.length-1],r=s>=864e5?6e4*new Date(t).getTimezoneOffset():0,l=[];for(let n=Math.ceil((e-r)/s)*s+r;n<=t;n+=s)n-e>=.04*a&&t-n>=.04*a&&l.push(n);return{ticks:l,step:s}}(se[0],se[1]):void 0,[B,se]),le=re?re.step<6e4:ee<18e4,ne=re?re.step>=864e5:ee>1296e5,oe=e.useMemo(()=>ne?r(z):l(z,le),[z,le,ne]),ie=c({split:F,bare:I,series:O}),ce=ie?O.length:1,pe=e=>ce>1?e:0,ue=e.useMemo(()=>Array.from({length:ce},(e,t)=>p((ce>1?[O[t]]:O).flatMap(e=>e.values.filter($)),P)),[O,P,ce]),me=e.useMemo(()=>O.map(e=>u(e.values)),[O]),de=e.useMemo(()=>ue.flatMap(e=>e.ticks.map(T)),[ue,T]),he=E(de,z),be=e.useMemo(()=>{const e=S.length-1;return re?[se[0],...re.ticks,se[1]]:[...new Set((le?[0,Math.round(e/2),e]:[0,Math.round(e/3),Math.round(2*e/3),e]).map(e=>S[e]))]},[re,le,S,se]),xe=V?.width??0,ge=V?.height??0,fe=I?W:0,ve=I?2:0,ye=ge-(I?2:q.caption+q.time),je=xe-(I?W:Math.ceil(Math.max(0,...he.map(e=>e.width)))+q.value),ke=(ye-ve-q.plot*(ce-1))/ce,we=ue.map((e,t)=>{const a=ve+t*(ke+q.plot);return{top:a,bottom:a+ke,y:t=>m(t,e.domain,[a+ke,a])}}),Me=e.useCallback(e=>m(e,se,[fe,je]),[se,fe,je]),Ee=e.useMemo(()=>S.map(Me),[S,Me]),Le=(e,t)=>we[pe(e)].y(t),Ne=O.map((e,t)=>S.map((a,s)=>null==e.values[s]?null:{x:Ee[s],y:Le(t,e.values[s])})),$e={x:fe,y:ve,width:je-fe,height:ye-ve},Ce=(e,t)=>Y({index:e,y:t}),Oe=()=>{Y(null),U()},[,Se]=e.useReducer(e=>e+1,0),Te=null!==Z;e.useEffect(()=>{if(Te)return globalThis.addEventListener("scroll",Se,{capture:!0,passive:!0}),globalThis.addEventListener("resize",Se),()=>{globalThis.removeEventListener("scroll",Se,{capture:!0}),globalThis.removeEventListener("resize",Se)}},[Te]),e.useLayoutEffect(()=>{var e;null!==Z&&O.some(e=>null!=e.values[Z])?Q({x:Ee[Z],y:X?.y??(ve+ye)/2,width:xe,...G.current?h(G.current):{bounds:$e},label:n(z).format(S[Z]),...I?{lines:d(O,Z,T,H)}:{lines:[],table:(e=Z,{head:[n(z).format(S[e]),H("ui.current"),H("ui.peak"),H("ui.average")],rows:O.map((t,a)=>{const s=t.values[e],r=me[a];return{swatch:t.color,cells:[t.label,null==s?"—":T(s),r?T(r.peak):"—",r?T(r.average):"—"]}})})}}):U()});const ze=b(S.length,Ce,Oe),Ae=e.useMemo(()=>be.map(e=>oe.format(e)),[be,oe]),Pe=E(Ae,z),Be=Pe.length!==be.length?[]:re?x(be.map((e,t)=>({position:Me(e),width:Pe[t].width})),fe,je,q.clock,q.clockEnd):g(be.map(Me),Pe.map(e=>e.width),q.sample,je),De=he.length!==de.length?[]:we.flatMap((e,t)=>f((0===ue[t].ticks[0]?[2,1]:[2,0]).map(a=>({index:3*t+a,position:e.y(ue[t].ticks[a]),size:he[3*t+a].height})),e.top,e.bottom,q.label)),Fe=!I&&me.some(Boolean);return t.jsx("div",{ref:G,className:"rp-area-plot","data-stacked":ie||void 0,"data-fill":D||void 0,style:I?{height:A}:void 0,onPointerLeave:ze.onPointerLeave,children:S.length>0&&V&&_&&t.jsxs(t.Fragment,{children:[t.jsx(v,{tip:J}),t.jsxs("svg",{className:"rp-activity-surface",width:xe,height:ge,viewBox:`0 0 ${xe} ${ge}`,style:{display:"block",overflow:"visible"},role:"applicatioLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{j as t,r as n}from"./vendor-react-64fcanlc.js";import{w as i,c as e,a as o}from"./array-C0VuvQyb.js";function r(t){this._context=t}function u(t){return new r(t)}function l(t){return t[0]}function s(t){return t[1]}function c(t,n){var r=e(!0),c=null,f=u,h=null,a=i(_);function _(i){var e,u,l,s=(i=o(i)).length,_=!1;for(null==c&&(h=f(l=a())),e=0;e<=s;++e)!(e<s&&r(u=i[e],e,i))===_&&((_=!_)?h.lineStart():h.lineEnd()),_&&h.point(+t(u,e,i),+n(u,e,i));if(l)return h=null,l+""||null}return t="function"==typeof t?t:void 0===t?l:e(t),n="function"==typeof n?n:void 0===n?s:e(n),_.x=function(n){return arguments.length?(t="function"==typeof n?n:e(+n),_):t},_.y=function(t){return arguments.length?(n="function"==typeof t?t:e(+t),_):n},_.defined=function(t){return arguments.length?(r="function"==typeof t?t:e(!!t),_):r},_.curve=function(t){return arguments.length?(f=t,null!=c&&(h=f(c)),_):f},_.context=function(t){return arguments.length?(null==t?c=h=null:h=f(c=t),_):c},_}function f(t){return t<0?-1:1}function h(t,n,i){var e=t._x1-t._x0,o=n-t._x1,r=(t._y1-t._y0)/(e||o<0&&-0),u=(i-t._y1)/(o||e<0&&-0),l=(r*o+u*e)/(e+o);return(f(r)+f(u))*Math.min(Math.abs(r),Math.abs(u),.5*Math.abs(l))||0}function a(t,n){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-n)/2:n}function _(t,n,i){var e=t._x0,o=t._y0,r=t._x1,u=t._y1,l=(r-e)/3;t._context.bezierCurveTo(e+l,o+l*n,r-l,u-l*i,r,u)}function p(t){this._context=t}function y(t){return new p(t)}function x({id:n,color:i}){return t.jsxs("linearGradient",{id:n,x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx("stop",{offset:"0%",stopColor:i,stopOpacity:.35}),t.jsx("stop",{offset:"100%",stopColor:i,stopOpacity:.03})]})}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}},p.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:_(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var i=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,_(this,a(this,i=h(this,t,n)),i);break;default:_(this,this._t0,i=h(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=i}}},Object.create(p.prototype).point=function(t,n){p.prototype.point.call(this,n,t)};const d=n.memo(function({points:n,baseline:r,color:f,id:h,strokeWidth:a}){if(1===n.length){const i=n[0];return i?t.jsx("circle",{cx:i.x,cy:i.y,r:3,stroke:f,strokeWidth:a,fill:`url(#${h})`,fillOpacity:.6}):null}const _=t=>null!==t&&Number.isFinite(t.x)&&Number.isFinite(t.y),p=c().defined(_).x(t=>t.x).y(t=>t.y).curve(y).digits(3),x=function(t,n,r){var f=null,h=e(!0),a=null,_=u,p=null,y=i(x);function x(i){var e,u,l,s,c,x=(i=o(i)).length,d=!1,v=new Array(x),g=new Array(x);for(null==a&&(p=_(c=y())),e=0;e<=x;++e){if(!(e<x&&h(s=i[e],e,i))===d)if(d=!d)u=e,p.areaStart(),p.lineStart();else{for(p.lineEnd(),p.lineStart(),l=e-1;l>=u;--l)p.point(v[l],g[l]);p.lineEnd(),p.areaEnd()}d&&(v[e]=+t(s,e,i),g[e]=+n(s,e,i),p.point(f?+f(s,e,i):v[e],r?+r(s,e,i):g[e]))}if(c)return p=null,c+""||null}function d(){return c().defined(h).curve(_).context(a)}return t="function"==typeof t?t:void 0===t?l:e(+t),n="function"==typeof n?n:e(void 0===n?0:+n),r="function"==typeof r?r:void 0===r?s:e(+r),x.x=function(n){return arguments.length?(t="function"==typeof n?n:e(+n),f=null,x):t},x.x0=function(n){return arguments.length?(t="function"==typeof n?n:e(+n),x):t},x.x1=function(t){return arguments.length?(f=null==t?null:"function"==typeof t?t:e(+t),x):f},x.y=function(t){return arguments.length?(n="function"==typeof t?t:e(+t),r=null,x):n},x.y0=function(t){return arguments.length?(n="function"==typeof t?t:e(+t),x):n},x.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:e(+t),x):r},x.lineX0=x.lineY0=function(){return d().x(t).y(n)},x.lineY1=function(){return d().x(t).y(r)},x.lineX1=function(){return d().x(f).y(n)},x.defined=function(t){return arguments.length?(h="function"==typeof t?t:e(!!t),x):h},x.curve=function(t){return arguments.length?(_=t,null!=a&&(p=_(a)),x):_},x.context=function(t){return arguments.length?(null==t?a=p=null:p=_(a=t),x):a},x}().defined(_).x(t=>t.x).y0(r).y1(t=>t.y).curve(y).digits(3);return t.jsxs("g",{children:[t.jsx("path",{d:x(n)??void 0,stroke:"none",fill:`url(#${h})`,fillOpacity:.6}),t.jsx("path",{className:"rLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{j as r,r as s}from"./vendor-react-64fcanlc.js";import{u as e}from"./index-C4UFgHia.js";import{D as t}from"./logs-j0cmmcZI.js";function n({texts:n}){const o=e();return n?.length?r.jsx(t,{flush:!0,title:o("config.backendText"),children:n.map((e,t)=>r.jsxs(s.Fragment,{children:[t>0&&r.jsx("br",{}),r.jsx("code",{children:e})]},t))}):null}export{n as B};
|
||||
@@ -0,0 +1 @@
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{a,$ as s}from"./GridList-Cq8h6RdG.js";import{T as i,cB as r,u as t,S as c,am as l}from"./index-C4UFgHia.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(c,{shape:"cards",count:3,height:228,grid:!0,typical:!0}):e.jsx(l,{children:o??p("ui.empty")}),children:m})}function d({id:s,title:t,titleFull:c,meta:l,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:c,children:t}),n&&e.jsx("span",{className:"rp-cardview-actions",children:n})]}),l&&e.jsx("div",{className:"rp-cardview-meta",children:l}),d]})}export{d as C,n as a};
|
||||
@@ -0,0 +1 @@
|
||||
import{j as s}from"./vendor-react-64fcanlc.js";import{u as e,bR as o,B as r,bG as n,aL as a}from"./index-C4UFgHia.js";import{S as i}from"./SearchSelect-CSXz7lhe.js";import{A as l}from"./AddCircle-qKwVDZ__.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-W-Xrx6y6.js";import"./ItemText-B5OxI5lS.js";import"./SearchList-D75Ie4nx.js";import"./Virtualizer-tkoH0e4V.js";const t=2,p=4;function c({name:c,nameError:d,hops:m,hopErrors:h,choices:j,isDisabled:x,onName:b,onHops:u}){const C=e(),y=(s,e)=>{const o=[...m];[o[s],o[e]]=[o[e],o[s]],u(o)},D=m.length<=t;return s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"rp-label",children:C("nodes.proxyChain.help")}),s.jsx(o,{error:d,isDisabled:x,label:C("ui.name"),value:c,onChange:b}),m.map((e,o)=>{const l=o+1,t=o===m.length-1;return s.jsx(i,{label:C("nodes.proxyChain.hop",{n:l}),searchLabel:C("nodes.search"),placeholder:C("nodes.proxyChain.pickHop"),sections:[{id:"nodes",items:j}],value:e,error:h[o],isDisabled:x,onChange:s=>u(m.map((e,r)=>r===o?s:e)),action:s.jsxs(s.Fragment,{children:[s.jsx(r,{quiet:!0,icon:!0,label:C("nodes.proxyChain.moveUp",{n:l}),isDisabled:x||0===o,onPress:()=>y(o,o-1),children:s.jsx(n,{className:"rp-up"})}),s.jsx(r,{quiet:!0,icon:!0,label:C("nodes.proxyChain.moveDown",{n:l}),isDisabled:x||t,onPress:()=>y(o,o+1),children:s.jsx(n,{})}),s.jsx(r,{quiet:!0,icon:!0,label:C("nodes.proxyChain.removeHop",{n:l}),isDisabled:x||D,onPress:()=>u((s=>m.filter((e,o)=>o!==s))(o)),children:s.jsx(a,{})})]})},o)}),s.jsx("span",{className:"rp-cluster",children:s.jsxs(r,{secondary:!0,isDisabled:x||m.length>=p,onPress:()=>u([...m,""]),children:[s.jsx(l,{}),C("nodes.proxyChain.addHop")]})})]})}export{c as ChainFields};
|
||||
@@ -0,0 +1 @@
|
||||
import{r as s,j as e}from"./vendor-react-64fcanlc.js";import{g as a}from"./useGridSelectionCheckbox-D0fV1e0v.js";import{C as i}from"./ItemText-B5OxI5lS.js";import{dB as r}from"./index-C4UFgHia.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,cO as l,cA as a,B as r,cq as n}from"./index-C4UFgHia.js";import{C as c}from"./Checkbox-CUoHrzuV.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};
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as r}from"./vendor-react-64fcanlc.js";import{bY as t,gS as o,bX as n,fD as a,bB as c,u as s,cq as i,dL as l,B as d,cG as p,cJ as m}from"./index-C4UFgHia.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 S,m as B,n as D,o as F,p as N,q as O,u as $,v as q,w as I,x as T,y as H,z as V,D as G,R as K,A as W,B as z,F as P,G as U,H as J,I as X,J as Y,K as Z,L as _}from"./vendor-editor-50h2cCk6.js";import{d as Q,s as ee}from"./daeTokens-BVtuNnWZ.js";import{s as re}from"./nodes-BXUOUiP2.js";import{M as te}from"./AppearanceControls-I4PvP9Es.js";import{n as oe,A as ne}from"./logs-j0cmmcZI.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./index-DUM-iwa2.js";import"./ItemText-B5OxI5lS.js";import"./Select-W-Xrx6y6.js";const ae=u.define({name:"dae",languageData:{commentTokens:{line:"#"},closeBrackets:{brackets:["(","{","'",'"']}},startState:ee,token:Q}),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
|
||||
@@ -0,0 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CodeEditor-Cb8XCLWG.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-C4UFgHia.js","./index-CQHYBvmE.css","./vendor-editor-50h2cCk6.js","./index-DUM-iwa2.js","./daeTokens-BVtuNnWZ.js","./nodes-BXUOUiP2.js","./AppearanceControls-I4PvP9Es.js","./ItemText-B5OxI5lS.js","./logs-j0cmmcZI.js","./Select-W-Xrx6y6.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,at as a,au as r,r as t,t as o,F as l,as as c,ck as d,w as u,cm as g,a4 as f,K as p,aR as m,ci as h,cV as b,dT as x,dU as v,a8 as j,a7 as y,ag as w,ar as k,J as N,cU as S,v as C,A as D,aY as T,B as O,aH as P,E as R,bq as _,am as E,bb as M,cO as A,m as F,C as H,c as L,bJ as W,dV as V,bQ as q,cq as I,bR as U,aE as K,dL as $,a as B,b as z,x as Q,z as X,cQ as Y,aK as J,c6 as G,aO as Z,p as ee,_ as ne,T as ie,dW as se,dX as ae,dY as re}from"./index-C4UFgHia.js";import{a as te,u as oe,y as le,c as ce,O as de,P as ue,B as ge,K as fe,D as pe,p as me,Q as he,S as be,L as xe}from"./logs-j0cmmcZI.js";import{T as ve}from"./Tabs-Kfe2CfSx.js";import{aS as je,a4 as ye,ac as we,aT as ke,z as Ne,aU as Se,aV as Ce,aa as De,aW as Te,D as Oe,a as Pe,aX as Re}from"./activity-C22CeO5G.js";import{s as _e,W as Ee,V as Me,g as Ae,r as Fe,as as He,at as Le,au as We,av as Ve,T as qe,aw as Ie}from"./nodes-BXUOUiP2.js";import{s as Ue,c as Ke,r as $e,a as Be,b as ze,d as Qe,e as Xe,f as Ye,g as Je,h as Ge,v as Ze,i as en,j as nn,k as sn,l as an,m as rn,n as tn,o as on,w as ln}from"./nav-DrWHp_dt.js";import{u as cn,c as dn}from"./flows-BfIUsgdd.js";import{d as un}from"./files-Dt8K7QfP.js";import{c as gn}from"./limitHint-DIncl1LE.js";import{D as fn}from"./Table-DotwWze-.js";import{T as pn}from"./TimeCell-xtED_iww.js";import{N as mn,t as hn}from"./NumberField-BGS5AF_x.js";import{A as bn}from"./AddCircle-qKwVDZ__.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-W-Xrx6y6.js";import"./ItemText-B5OxI5lS.js";import"./AppearanceControls-I4PvP9Es.js";import"./useGridSelectionCheckbox-D0fV1e0v.js";import"./Virtualizer-tkoH0e4V.js";import"./Checkbox-CUoHrzuV.js";function xn(e,n,s,a="main"){if(!s.daeText)return[];const{blocks:r,tokens:t}=_e(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=Ee(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=Ue[s.name];return"subscription"===s.name?"main"!==a?[]:Me(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 vn=()=>{};const jn=new Map;function yn({go:n,query:i}){const h=s(),b=a(),x=r[b],v=t(),j=v.data?.resources,y=oe(o(j,"config",{whileLoading:!0})),w=function(n){const i=s(),a=te(n),r=e.useMemo(()=>{const e=we(a.error);return e?e.diagnostics??[]:null},[a.error]);return e.useEffect(()=>{if(a.error)if(r){const e=ke(r);p("negative",e?i("config.writeRestart",{n:e}):i("ui.writeInvalid",{n:r.filter(e=>"error"===e.level).length}))}else m(a.error,i,i("ui.writeFailed"))},[a.error,r,i]),{...a,diagnostics:r}}(y.refetch),k=e.useMemo(()=>new URLSearchParams(i),[i]),N=e.useMemo(()=>y.data?.sources??[],[y.data]),S=N.find(e=>"main"===e.kind)??null,C=N.find(e=>e.id===k.get("source"))??N[0]??null,D=C?.id??null,T=(e,s)=>n("config",u(i,{tab:"source",source:e,line:null===s?null:String(s)})),O=Number(k.get("line"))||null,P=y.data?.diagnostics??[],R=e.useMemo(()=>{const e=y.data?.diagnostics??[];return{error:e.filter(e=>"error"===e.level).length,warning:e.filter(e=>"warning"===e.level).length}},[y.data]),_=o(j,"config_validate",{whileLoading:!1})&&(j?.config_validate.modes??[]).includes("full"),E=!0===j?.config.writable,M=le(N),A=l().data,F=e.useMemo(()=>Ae(A),[A]),H=Ke(!!F.globalSettings,c(A),v.data),L=v.data&&gn("config",v.data,A,h,b),W=C?$e(C,E,M(C),F,h,L):null,V=!!C&&!W,[q,I]=e.useState(jn),[U,K]=e.useState(null),$=U??R.error,B=k.has("source")||y.data&&void 0===S?.content?"source":"modules",z=d("validate"===k.get("tab")?u(i,{tab:"source"}):i,H.map(e=>e.id),B),Q=C?{source:C,sources:N,open:T,diagnostics:P,canValidate:_&&("main"===C.kind||"include"===C.kind),canWrite:V,readOnly:W,isComplete:M,editor:w,focusLine:O,generation:y.data?.generation_id??"",focusDiagnostics:"validate"===k.get("tab"),diagnosticsChoice:q.get(C.id)??null,chooseDiagnostics:e=>I(n=>new Map(n).set(C.id,e)),reportErrors:K}:null,X=!0===j?.config.create&&!0===j.config.writable?{sources:N,refetch:y.refetch,open:e=>T(e,null)}:null;return{error:v.error??y.error,reload:()=>{v.refetch(),y.refetch()},loading:y.loading&&!y.data,ready:!!y.data,tabsReady:!!y.data||H.some(e=>"history"===e.id),metadata:y.data?ze(y.data.revision,h):[],redacted:!!y.data?.secrets_redacted,tabs:H.map(e=>({id:e.id,label:"source"===e.id&&$?h("ui.aside",{text:h(e.titleKey),note:f($,x)}):h(e.titleKey)})),tab:z,setTab:e=>n("config",u(g(i,e,nLine 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-Cl7psHhv.js";import{N as l,O as a}from"./NodePath-CW8z1Niq.js";import{aX as i,u as r,au as c,at as u,a7 as d,o as p,aI as m,aO as b,c8 as h,C as g,E as f,a4 as w,af as v,s as x,X as y,c9 as j,T as k,ca as _,b$ as C,w as S,ad as A,cb as L,a0 as N,cc as M,cd as T,a8 as R,a5 as O,r as F,t as P,Y as q,ce as W,cf as U,ao as D,Q as E,cg as I,b9 as H,ch as V,ba as Q,ci as B,c2 as J,cj as K,ck as G,cl as X,W as Y,av as $,cm as z,K as Z,cn as ee,aY as ne,A as te,co as oe,cp as se,cq as le,bR as ae,B as ie,cr as re,bH as ce,aE as ue}from"./index-C4UFgHia.js";import{R as de,B as pe,u as me,h as be,o as he,g as ge,c as fe,S as we,p as ve,L as xe,n as ye,q as je,K as ke}from"./logs-j0cmmcZI.js";import{C as _e}from"./AppearanceControls-I4PvP9Es.js";import{T as Ce}from"./Tabs-Kfe2CfSx.js";import{b as Se,D as Ae,U as Le,F as Ne,S as Me,d as Te,B as Re,L as Oe,t as Fe,r as Pe,f as qe,g as We,p as Ue,o as De,k as Ee,h as Ie}from"./activity-C22CeO5G.js";import{S as He}from"./SearchSelect-CSXz7lhe.js";import{D as Ve}from"./Table-DotwWze-.js";import{T as Qe}from"./TimeCell-xtED_iww.js";import{Q as Be,u as Je,R as Ke}from"./useQuickRule-D86TFC6s.js";import{u as Ge}from"./outbounds-CJznbPkH.js";import{c as Xe,d as Ye,e as $e}from"./files-Dt8K7QfP.js";import{w as ze}from"./labels-D8xxfRTQ.js";import{u as Ze}from"./flows-BfIUsgdd.js";import{r as en}from"./rule-ljMHmFs3.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./LinkOut-DVAiBR_J.js";import"./Tag-DE8n6iTZ.js";import"./Select-W-Xrx6y6.js";import"./ItemText-B5OxI5lS.js";import"./nodes-BXUOUiP2.js";import"./useGridSelectionCheckbox-D0fV1e0v.js";import"./SearchList-D75Ie4nx.js";import"./Virtualizer-tkoH0e4V.js";import"./Checkbox-CUoHrzuV.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-qKwVDZ__.js";import"./BackendText-CxshqKrW.js";const nn=[0,2,3,1,4,5,6,7],tn=e.memo(function({records:t,outbounds:o,latency:s,latencyError:l,retryLatency:a,truncated:w,uncounted:v,onSelect:x,loading:y}){const j=r(),k=Se(),_=c[u()],C=e.useCallback(e=>d(e,_),[_]),S=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 i=BigInt(a.upload_bytes)+BigInt(a.download_bytes);i>l&&(l=i,o={...e,outbound:a.outbound})}return{series:[...t].map(([e,n])=>({outbound:e,points:n})).sort((e,t)=>i(n)(e.outbound??"",t.outbound??"")),unknown:s,heaviest:o,placed:e.length-s}}(t,_),[t,_]),A=e.useMemo(()=>{const e=o.filter(e=>"block"!==e);return S.series.map(n=>{return{id:n.outbound??"",label:p(n.outbound,j),color:(t=n.outbound,"block"===t?k.negative:k.cat[nn[Math.max(0,e.indexOf(t))%nn.length]]),points:n.points.map(e=>({id:e.id,x:e.up,y:e.down,name:e.name,detail:j("conn.chart.point",{download:C(e.down),upload:C(e.up)})}))};var t})},[S,o,k,j,C]),L=S.heaviest?[{label:j("conn.chart.busiest"),icon:n.jsx(m,{}),tint:"c3",value:S.heaviest.name,caption:p(S.heaviest.outbound,j)},{label:j("ui.download"),value:C(S.heaviest.down),icon:n.jsx(Ae,{}),tint:"c1"},{label:j("ui.upload"),value:C(S.heaviest.up),icon:n.jsx(Le,{}),tint:"c4"}]:[];if(y)return n.jsx(b,{panel:!0,shape:h});const N=S.unknown?j("conn.chart.sampleUnknown",{n:t.length,unknown:S.unknown}):j("conn.chart.sample",{n:t.length});return n.jsxs("div",{className:"rp-chart-page",children:[n.jsx(Ne,{facts:L,lead:!0}),n.jsxs(g,{title:j("conn.chart.title"),help:v?{title:j("conn.chart.title"),text:j("ui.trafficUncounted")}:void 0,note:N,children:[w&&n.jsx("p",{className:"rp-note",children:j("conn.truncated")}),S.placed>0&&n.jsxs(n.Fragment,{children:[n.jsx(Me,{label:j("conn.chart.title"),series:A,fmt:C,onSelect:x,regions:{above:j("conn.chart.moreDown"),below:j("conn.chart.moreUp")}}),n.jsx(Te,{series:A}),n.jsx("p",{className:"rp-note",children:j("conn.chart.hint")})]})]}),s?n.jsx(on,{latency:s}):l&&n.jsx(g,{title:j("ui.nodeLatency"),children:n.jsx(f,{error:l,onRetry:a})})]})});function on({latency:e}){const t=r(),o=Se(),s=e=>v(e,t),l=c[u()],a=n=>!e.chains||n?o.cat[0]:o.muted;return n.jsx(g,{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(Re,{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(OLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{r as c,j as r}from"./vendor-react-64fcanlc.js";import{u as s,dV as o,K as l,I as t}from"./index-C4UFgHia.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};
|
||||
@@ -0,0 +1 @@
|
||||
import{ao as e,b4 as l,a0 as r,u as s,T as a}from"./index-C4UFgHia.js";import{j as o}from"./vendor-react-64fcanlc.js";import{L as n}from"./logs-j0cmmcZI.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,o){const n=Object.entries(s.coverage).filter(([,e])=>"full"!==e),p=e(s.dropped_records),i=p?a("flow.dropped",{n:p}):null;return n.length||i?{summary:n.length?a("flow.coverageSummary",{n:n.length}):null,detail:l(o,n.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 o.jsxs("div",{className:"rp-cluster",role:"group","aria-label":l("flow.coverage"),children:[e.summary&&o.jsx(a,{text:e.detail,children:o.jsx(n,{small:!0,tone:"warn",children:e.summary})}),e.dropped&&o.jsx(n,{small:!0,tone:"warn",children:e.dropped})]})}export{i as C,p as c};
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e}from"./vendor-react-64fcanlc.js";import{t}from"./daeTokens-BVtuNnWZ.js";function a({text:a,as:r="span",className:s=""}){return e.createElement(r,{className:`rp-code ${s}`.trim()},t(a).map((t,a)=>t.type?e.createElement("span",{key:a,className:`rp-dae-${t.type}`},t.text):t.text))}export{a as D};
|
||||
@@ -0,0 +1 @@
|
||||
import{j as c}from"./vendor-react-64fcanlc.js";import{I as r}from"./index-C4UFgHia.js";function l(l){return c.jsxs(r,{...l,children:[c.jsx("path",{fill:"currentColor",d:"M8.249 15.021c-.4 0-.733-.317-.748-.72l-.25-6.5c-.017-.414.307-.763.72-.779H8c.4 0 .733.317.748.72l.25 6.5c.017.414-.307.763-.72.778zM11.751 15.021h-.03c-.413-.016-.737-.365-.72-.779l.25-6.5c.015-.403.348-.72.748-.72h.03c.413.016.737.365.72.779l-.25 6.5c-.015.403-.348.72-.748.72"}),c.jsx("path",{fill:"currentColor",d:"M17 4h-3.5v-.75C13.5 2.01 12.49 1 11.25 1h-2.5C7.51 1 6.5 2.01 6.5 3.25V4H3c-.414 0-.75.336-.75.75s.336.75.75.75h.52l.422 10.342C3.99 17.052 4.98 18 6.19 18h7.62c1.211 0 2.2-.948 2.248-2.158L16.48 5.5H17c.414 0 .75-.336.75-.75S17.414 4 17 4m-9-.75c0-.413.337-.75.75-.75h2.5c.413 0 .75.337.75.75V4H8zm6.56 12.531c-.017.404-.346.719-.75.719H6.19c-.404 0-.733-.315-.75-.719L5.02 5.5h9.96z"})]})}export{l as D};
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{ct as a,X as t,c2 as n,a0 as r,af as l,a8 as i,a4 as d,Z as c,ao as o,A as u,u as m,ag as h,r as p,ci as x,J as g,ck as y,t as f,w as b,h as j,cm as v,au as w,at as _,cu as N,cv as k,b9 as S,ch as C,K as T,co as q,aY as R,cw as M,c1 as L,aG as A,am as E,E as F,cx as D,bn as P,cy as W,C as O,c as B,S as U,al as H,T as K,bQ as I,cz as $,cq as Q,bR as z,cA as G,B as J,cB as V,aE as X,bH as Y,cr as Z}from"./index-C4UFgHia.js";import{D as ee}from"./Delete-D69JigFx.js";import{s as se,l as ae,b as te,m as ne,C as re,F as le,B as ie,L as de,W as ce,n as oe,q as ue,D as me}from"./activity-C22CeO5G.js";import{i as he,I as pe,a as xe}from"./ipLookup-Cl7psHhv.js";import{u as ge,t as ye,k as fe,v as be,w as je,i as ve,S as we,j as _e,p as Ne,B as ke,K as Se,L as Ce,A as Te}from"./logs-j0cmmcZI.js";import{T as qe}from"./Tabs-Kfe2CfSx.js";import{D as Re}from"./Table-DotwWze-.js";import{T as Me}from"./TimeCell-xtED_iww.js";import{c as Le,d as Ae,e as Ee}from"./files-Dt8K7QfP.js";import{a as Fe}from"./rule-ljMHmFs3.js";import{d as De,u as Pe}from"./nodes-BXUOUiP2.js";import{u as We,R as Oe,Q as Be}from"./useQuickRule-D86TFC6s.js";/* empty css */import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-B5OxI5lS.js";import"./AppearanceControls-I4PvP9Es.js";import"./LinkOut-DVAiBR_J.js";import"./Select-W-Xrx6y6.js";import"./useGridSelectionCheckbox-D0fV1e0v.js";import"./Virtualizer-tkoH0e4V.js";import"./Checkbox-CUoHrzuV.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-qKwVDZ__.js";import"./SearchSelect-CSXz7lhe.js";import"./SearchList-D75Ie4nx.js";import"./BackendText-CxshqKrW.js";import"./flows-BfIUsgdd.js";function Ue(e,s,a,n,r){return{domain:e,dip:null,sip:(r&&t(r))??null,outbound:null,matched:null,dns:{type:s,answers:Fe(a),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"),r(Ke,e.route.source,a)],[a("dns.routeRule"),e.route.rule??"—"],[a("ui.elapsed"),l(e.elapsed_ms,a)]],answers:(e.answers??[]).map(e=>{const t=Fe([e])[0],r=t?n(t):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&&he(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 u&&503===a.status?"unavailable":s?"ready":a?"error":"loading":"unlisted"}const Qe=[{id:"full",label:"rule.kind.domain"},{id:"suffix",label:"rule.kind.domainSuffix"},{id:"keyword",label:"rule.kind.domainKeyword"},{id:"regex",label:"dns.matchRegex"}],ze=e=>e.trim().toLowerCase().replace(/\.$/,"");function Ge(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(ze(s)))}if("keyword"===e){const e=s.trim().toLowerCase();return s=>ze(s).includes(e)}const a=ze(s),t="suffix"===e&&a.startsWith("."),n=t?a.slice(1):a;return n?"full"===e?e=>ze(e)===n:e=>{const s=ze(e);return s.endsWith("."+n)||!t&&s===n}:null}function Je({go:s,query:t}){const n=m(),r=h(),l=p(),i=e.useMemo(()=>new URLSearchParams(t),[t]),[d,c]=e.useState(i.get("domain")??""),[o,u]=e.useState(i.get("type")??"A"),[w,_]=e.useState(!1);x(i.get("domain"),e=>c(e??"")),x(i.get("type"),e=>u(e??"A"));const[N,k]=e.useState(null),{busy:S,error:C,run:T}=g({rethrow:!0}),q=l.data?.resources,R=e.useMemo(()=>function(e,s,t,n,r,l){const i=s?.dns_query.record_types??[],d="all"===t?i.length>0:i.includes(t);return{types:i,choices:[...i.map(e=>({id:e,label:e})),{id:"all",label:l("dns.allTypes")}],disabled:r||!s?.dns_query.available||!d||!n.trim(),reason:!s||r?null:s.dns_query.available?d?null:l("all"===t?"dns.noTypes":"dns.typeUnsupported"):l("dns.queryUnavailable"),showCache:!!s?.dns_cache.available,cards:e?.results.map(s=>({id:s.type,title:`${e.domain} ${s.type}`,...Ie(s,e.domain,l),seed:Ue(e.domain,s.type,s.answers??[],s.upstream,null),answerSeeds:(s.answers??[]).map(a=>Fe([a]).length?{address:a.data,seed:He(a.data,e.domain,s.type)}:null)}))??[],tabs:a(s).map(e=>({id:e.id,label:l(e.titleKey)}))}}(N,q,o,d,!!S,n),[N,q,o,d,S,n]),M=R.tabs.map(e=>e.id),L=i.has("domain")||i.has("device"),A=M.includes("log")?L?"log":"stats":M.includes("query")?"query":M[0]??"query",E=y(t,M,A),F=f(q,"config",{whileLoading:!1}),D=ge("query"===E&&F&&f(q,"dns_query",{whileLoading:!1})),P=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}))]:[]}(D.data?.sources,n):[],[F,D.data,n]),[W,O]=e.useState(""),B=P.some(e=>e.id==Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
.rp-dns-answer{align-items:center;column-gap:var(--rp-space-3);row-gap:var(--rp-space-1);flex-wrap:wrap;display:flex}.rp-dns-answer>.rp-code{overflow-wrap:anywhere;flex:auto;min-width:0}.rp-dns-answer>:not(.rp-code){margin-inline-start:auto}.rp-dns-answer>.meta{gap:var(--rp-space-2);color:var(--rp-subtle);font-size:var(--rp-text-xs);white-space:nowrap;display:flex}
|
||||
@@ -0,0 +1 @@
|
||||
import{r as n,j as t}from"./vendor-react-64fcanlc.js";import{u as e,g as r}from"./index-C4UFgHia.js";import{b4 as o,bj as i,bb as a,bf as l}from"./activity-C22CeO5G.js";import{w as u,c,a as s}from"./array-C0VuvQyb.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-BXUOUiP2.js";import"./logs-j0cmmcZI.js";import"./Select-W-Xrx6y6.js";import"./ItemText-B5OxI5lS.js";import"./AppearanceControls-I4PvP9Es.js";const f=Math.abs,h=Math.atan2,y=Math.cos,p=Math.max,d=Math.min,x=Math.sin,g=Math.sqrt,v=1e-12,m=Math.PI,M=m/2,A=2*m;function j(n){return n>=1?M:n<=-1?-M:Math.asin(n)}function b(n){return n.innerRadius}function w(n){return n.outerRadius}function P(n){return n.startAngle}function T(n){return n.endAngle}function R(n){return n&&n.padAngle}function L(n,t,e,r,o,i,a){var l=n-e,u=t-r,c=(a?i:-i)/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,b=o-i,w=h*x-d*y,P=(A<0?-1:1)*g(p(0,b*b*j-w*w)),T=(w*A-M*P)/j,R=(-w*M-A*P)/j,L=(w*A+M*P)/j,I=(-w*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/b-1),y11:R*(o/b-1)}}function I(){var n=b,t=w,e=c(0),r=null,o=P,i=T,a=R,l=null,s=u(p);function p(){var u,c,p,b=+n.apply(this,arguments),w=+t.apply(this,arguments),P=o.apply(this,arguments)-M,T=i.apply(this,arguments)-M,R=f(T-P),I=T>P;if(l||(l=u=s()),w<b&&(c=w,w=b,b=c),w>v)if(R>A-v)l.moveTo(w*y(P),w*x(P)),l.arc(0,0,w,P,T,!I),b>v&&(l.moveTo(b*y(T),b*x(T)),l.arc(0,0,b,T,P,I));else{var $,B,N=P,S=T,k=P,D=T,E=R,F=R,K=a.apply(this,arguments)/2,q=K>v&&(r?+r.apply(this,arguments):g(b*b+w*w)),z=d(f(w-b)/2,+e.apply(this,arguments)),C=z,H=z;if(q>v){var V=j(q/b*x(K)),W=j(q/w*x(K));(E-=2*V)>v?(k+=V*=I?1:-1,D-=V):(E=0,k=D=(P+T)/2),(F-=2*W)>v?(N+=W*=I?1:-1,S-=W):(F=0,N=S=(P+T)/2)}var _=w*y(N),G=w*x(N),J=b*y(D),O=b*x(D);if(z>v){var Q,U=w*y(S),X=w*x(S),Y=b*y(k),Z=b*x(k);if(R<m)if(Q=function(n,t,e,r,o,i,a,l){var u=e-n,c=r-t,s=a-o,f=l-i,h=f*u-s*c;if(!(h*h<v))return[n+(h=(s*(t-i)-f*(n-o))/h)*u,t+h*c]}(_,G,Y,Z,U,X,J,O)){var nn=_-Q[0],tn=G-Q[1],en=U-Q[0],rn=X-Q[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(Q[0]*Q[0]+Q[1]*Q[1]);C=d(z,(b-an)/(on-1)),H=d(z,(w-an)/(on+1))}else C=H=0}F>v?H>v?($=L(Y,Z,_,G,w,H,I),B=L(U,X,J,O,w,H,I),l.moveTo($.cx+$.x01,$.cy+$.y01),H<z?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,w,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(_,G),l.arc(0,0,w,N,S,!I)):l.moveTo(_,G),b>v&&E>v?C>v?($=L(J,O,U,X,b,-C,I),B=L(_,G,Y,Z,b,-C,I),l.lineTo($.cx+$.x01,$.cy+$.y01),C<z?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,b,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,b,D,k,I):l.lineTo(J,O)}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)+ +i.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?(i="function"==typeof n?n:c(+n),p):i},p.padAngle=function(n){return arguments.length?(a="function"==typeof n?n:c(+n),p):a},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,b=p?.height??0,w=i(M.map(n=>n.value)),P=function(){var n=B,t=$,e=null,r=c(0),o=c(A),i=c(0);function a(a){var l,u,c,f,h,y=(a=s(a)).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,i.apply(this,arguments)),M=m*(v<0?-1:1);for(l=0;l<y;++l)(h=x[d[l]=l]=+n(a[l],l,a))>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(a[n],a[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:a[u],index:l,value:h,startAngle:g,endAngle:f,padAngle:m};return x}return a.value=function(t){return arguments.length?(n="function"==typeof t?t:c(+t),a):n},a.sortValues=function(n){return arguments.length?(t=n,e=null,a):t},a.sort=function(n){return arguments.length?(e=n,t=null,a):e},a.startAngle=function(n){return arguments.length?(r="function"==typeof n?n:c(+nLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,$ as t,a as r,j as n}from"./vendor-react-64fcanlc.js";import{f4 as o,gJ as i,eV as a,eR as s,db as l,gK as d,gL as c,gM as p,eX as u,eS as g,eT as f,eU as m,f5 as h,ff as y,gN as D,gO as v,fg as b,f0 as w,gP as x,gr as T,gf as k,bA as E,d8 as P,d0 as K,ft as O,I as S,aK as C,cE as I,fm as j,aG as A,bD as R,B as M,g as B,u as L,R as F,cA as $,r as z,ds as N,bV as V,cV as X,dL as H,bb as Y,m as U,gQ as q,P as J,gR as G,K as W}from"./index-C4UFgHia.js";import{bk as _,bl as Q,bm as Z,bn as ee,bo as te,bp as re,bq as ne,br as oe,bs as ie,bt as ae,bu as se,bv as le,bw as de,bx as ce,by as pe,bz as ue,bA as ge,bB as fe,bC as me,bD as he,bE as ye,bF as De,bG as ve,bH as be,bI as we,bJ as xe,bK as Te,bL as ke,bM as Ee,bN as Pe,bO as Ke,bP as Oe,bQ as Se,bR as Ce,bS as Ie,bT as je,bU as Ae}from"./activity-C22CeO5G.js";import{$ as Re,a as Me}from"./GridList-Cq8h6RdG.js";import{m as Be}from"./Select-W-Xrx6y6.js";import{D as Le}from"./Delete-D69JigFx.js";import{S as Fe,c as $e,$ as ze}from"./logs-j0cmmcZI.js";import{C as Ne}from"./AppearanceControls-I4PvP9Es.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-BXUOUiP2.js";import"./ItemText-B5OxI5lS.js";import"./useGridSelectionCheckbox-D0fV1e0v.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 Xe={...Ve,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},He=qe(Xe);He[7]="all";const Ye={none:"cancel",link:"link",copy:"copy",move:"move"},Ue=qe(Ye);function qe(e){let t={};for(let r in e)t[e[r]]=r;return t}const Je=new Set(["text/plain","text/uri-list","text/html"]),Ge="application/vnd.react-aria.items+json",We="application/octet-stream",_e=new WeakMap,Qe=Symbol();function Ze(e){let t=new Set;for(let r of e)for(let e of Object.keys(r))t.add(e);return t}function 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!==Ge&&("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===Qe&&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 @@
|
||||
.rp-dashboard-body{display:contents}.rp-dashboard-tools{z-index:1;gap:var(--rp-space-2);border-radius:var(--rp-r-md);background:var(--rp-base);display:flex;position:absolute;inset-block-start:var(--rp-space-3);inset-inline-end:var(--rp-space-3)}.rp-dashboard-tools [slot=drag]{touch-action:none;cursor:grab}.rp-grip:before{content:"";inline-size:calc(var(--rp-space-1) / var(--rp-preview-scale,1));block-size:calc(var(--rp-space-6) / var(--rp-preview-scale,1));border-radius:var(--rp-r-pill);background:var(--rp-subtle);box-shadow:0 0 0 calc(var(--rp-space-half) / var(--rp-preview-scale,1)) var(--rp-base)}.rp-sortable-row{outline:none;min-inline-size:0;position:relative}.rp-sortable-row[data-focus-visible]{outline:none}.rp-sortable-row:is([data-focus-visible],[data-selected]):before{content:"";inset:calc(0px - var(--rp-sortable-gap,var(--rp-space-2)) - var(--rp-focus-width));border:var(--rp-focus-width) solid var(--rp-focus-color);pointer-events:none;position:absolute}.rp-sortable-grid{outline:none}.rp-sortable-row>[role=gridcell]{display:contents}.rp-sortable-grid[data-drop-target]{outline:2px dashed var(--rp-accent)}.rp-sortable-grid .rp-dashboard-tools{background:0 0;inset-block-start:calc(var(--rp-line-caption) / 2 - var(--rp-space-1));inset-inline-end:0;translate:0 -50%}.rp-sortable-grid .rp-widget-label{padding-inline-end:calc(var(--rp-control) + var(--rp-space-2))}.rp-sortable-row[data-module=divider] .rp-dashboard-tools{background:var(--rp-surface);padding-inline-start:var(--rp-space-1);inset-block-start:50%}.rp-widget-gallery-grid{gap:var(--rp-space-4);grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));display:grid}.rp-widget-gallery-tile{gap:var(--rp-space-3);min-inline-size:0;padding:var(--rp-space-4);border:1px solid var(--rp-line);border-radius:var(--rp-r-lg);flex-direction:column;display:flex}.rp-widget-gallery-tile>.rp-cluster{margin-block-start:auto}.rp-widget-gallery-tile[data-added]{background:var(--rp-fill);--rp-subtle:var(--rp-subtle-text)}.rp-widget-gallery-frame{pointer-events:none;block-size:200px;overflow:hidden;mask-image:linear-gradient(#000 80%,#0000)}.rp-widget-gallery-presets{align-items:flex-start;gap:var(--rp-space-3) var(--rp-preset-gap);flex-wrap:wrap;display:flex}.rp-widget-gallery-preset{gap:var(--rp-space-1);flex-direction:column;min-inline-size:0;display:flex}.rp-widget-gallery-thumb{position:relative;overflow:hidden}.rp-widget-gallery-thumb-card{transform-origin:0 0;pointer-events:none;container:rp-tile/inline-size}.rp-widget-gallery-thumb-card:dir(rtl){transform-origin:100% 0}.rp-widget-gallery-thumb-add{border-radius:var(--rp-r-lg);cursor:pointer;background:0 0;border:0;position:absolute;inset:0}.rp-widget-gallery-thumb-add[data-hovered]{outline:2px solid var(--rp-line);outline-offset:2px}.rp-widget-gallery-thumb-add[data-focus-visible]{outline:2px solid var(--rp-accent);outline-offset:2px}.rp-widget-gallery-thumb-add[data-disabled]{cursor:default;outline:none}
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{a0 as s,a9 as n,ab as r,a8 as a,h as i,ag as o,u as l,au as d,at as c,r as u,ci as m,ai as p,aj as v,dZ as h,d_ as j,T as x,aE as f,B as b,c as g,cq as w,E as k}from"./index-C4UFgHia.js";import{e as y,T,K as C,p as N,L as _}from"./logs-j0cmmcZI.js";import{D as S}from"./Table-DotwWze-.js";import{d as W,e as H}from"./files-Dt8K7QfP.js";import{j as R,D as K}from"./activity-C22CeO5G.js";import{u as O,C as D}from"./Copy-ftx4Gb2m.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-W-Xrx6y6.js";import"./ItemText-B5OxI5lS.js";import"./AppearanceControls-I4PvP9Es.js";import"./nodes-BXUOUiP2.js";import"./useGridSelectionCheckbox-D0fV1e0v.js";import"./Virtualizer-tkoH0e4V.js";import"./Checkbox-CUoHrzuV.js";const M={buffer_overflow:["event.gap.overflow","event.gapHelp.overflow"],evicted:["event.gap.evicted","event.gapHelp.evicted"]};function q(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 E(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 F=new WeakMap;function J(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=F.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:s(n,e.event,i),summary:i(c.key,c.params),help:q(e,i),links:E(e,i,l),event:e};return F.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:s(n,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 L(){const t=o(),s=l(),n=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(()=>J(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 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 W(H("doona-events","json"),(e=w.shown,JSON.stringify(e,null,2)+"\n"),"application/json");var e}}}function P(){const s=l(),n=L(),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(C,{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{P as Events};
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as a}from"./vendor-react-64fcanlc.js";import{u as s,at as t,cR as l,au as o,dM as i,bb as n,B as r}from"./index-C4UFgHia.js";import{S as c}from"./SearchSelect-CSXz7lhe.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-W-Xrx6y6.js";import"./ItemText-B5OxI5lS.js";import"./SearchList-D75Ie4nx.js";import"./Virtualizer-tkoH0e4V.js";function m({name:n,value:r,automaticFlag:m,onChange:d}){const f=s(),g=t(),p=e.useMemo(()=>l(o[g]),[g]),j=i(n),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:t,...l}){const o=s();return a.jsxs(n,{narrow:!0,title:o("flags.edit"),isOpen:!0,onOpenChange:e=>{e||t()},footer:()=>a.jsx(r,{onPress:t,children:o("ui.close")}),children:[a.jsx("p",{className:"rp-note",children:e}),a.jsx(m,{name:e,...l})]})}export{m as FlagField,d as FlagPicker};
|
||||
@@ -0,0 +1 @@
|
||||
.rp-topology{min-width:0;overflow:hidden}.rp-tree{gap:var(--rp-space-2);overscroll-behavior-x:contain;flex-direction:column;min-width:0;display:flex;overflow-x:auto}.rp-tree-hint{color:var(--rp-subtle);font-size:var(--rp-text-xs);line-height:var(--rp-line-caption);display:none}@media (width<=599.98px){.rp-tree-hint{display:block}}.rp-tree-captions{height:16px;position:relative}.rp-tree-captions>.rp-label{text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;position:absolute;top:0}.rp-tree-canvas{position:relative}.rp-tree-links{pointer-events:none;fill:none;stroke:var(--rp-muted);stroke-linecap:round;position:absolute;inset:0;overflow:visible}.rp-tree-links path{opacity:.55;transition:opacity var(--rp-duration) var(--rp-ease)}.rp-tree-links path[data-kind=direct]{stroke:var(--rp-positive)}.rp-tree-links path[data-kind=block]{stroke:var(--rp-negative)}.rp-tree-links path[data-kind=group]{stroke:var(--rp-iris)}.rp-tree-links path[data-kind=node]{stroke:var(--rp-accent)}.rp-tree-links path[data-state=active]{opacity:1}.rp-tree-links path[data-state=dim]{opacity:.1}.rp-tree-tile{box-sizing:border-box;align-items:center;gap:var(--rp-space-2);height:36px;padding:0 var(--rp-space-2h);border-radius:var(--rp-r-md);background:var(--rp-overlay);color:var(--rp-text);font:inherit;font-size:var(--rp-text-sm);text-align:start;cursor:pointer;border:2px solid #0000;line-height:16px;display:flex;position:absolute}.rp-tree-tile.dim{opacity:.35}.rp-tree-tile[data-hovered]{background:var(--rp-hl-med)}.rp-tree-tile[data-selected]{border-color:var(--rp-accent);background:var(--rp-selected)}.rp-tree-tile[data-focus-visible]{outline:var(--rp-focus-width) solid var(--rp-focus-color);outline-offset:calc(-1 * var(--rp-focus-width));border-color:#0000}.rp-tree-tile .l{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.rp-tree-tile[data-stage=rule] .l{font-family:var(--rp-font-mono);font-size:var(--rp-text-xs);font-variant-ligatures:none}.rp-tree-tile .s{font-size:var(--rp-text-xs);color:var(--rp-subtle);margin-inline-start:var(--rp-space-2)}.rp-tree-tile .s.ok{color:var(--rp-positive-text)}.rp-tree-tile .s.warn{color:var(--rp-notice-text)}.rp-tree-tile .s.err{color:var(--rp-negative-text)}.rp-tree-tile .c{font-variant-numeric:tabular-nums;color:var(--rp-subtle);flex:none;font-weight:700}.rp-cell-wrap>.rp-rule{row-gap:var(--rp-space-1);flex-wrap:wrap}.rp-cell-wrap>.rp-rule>.rp-truncate{white-space:normal;overflow-wrap:anywhere}.rp-table-cards{overscroll-behavior:contain;outline:none;overflow:auto}.rp-table-cards .rp-cardview-card[data-focus-visible]{outline-offset:calc(var(--rp-focus-width) * -1)}.rp-table-cards .rp-truncate{white-space:normal;overflow-wrap:anywhere}.rp-table-cards :is(.rp-rule,.rp-chain){flex-wrap:wrap}.rp-table-cards .rp-rule>span{white-space:normal}
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{N as n,O as a}from"./NodePath-CW8z1Niq.js";import{l as o,s,B as r,c as l,g as i,K as d,R as u,S as c,p}from"./logs-j0cmmcZI.js";import{ad as m,X as f,aa as g,U as w,Q as h,cs as b,ck as j,cm as x,w as v,cc as y,a0 as k,ce as _,cf as M,au as N,a8 as S,h as L,b4 as C,o as T,af as P,a4 as O,u as R,at as F,j as H,B as q,N as E,bd as $,r as W,t as D,b9 as I,ch as A,ba as B,cj as U,S as V,am as K,aO as Q,E as z,T as G,cq as J,aL as X,c as Y,bH as Z,C as ee}from"./index-C4UFgHia.js";import{h as te,f as ne,i as ae,o as oe,j as se,r as re}from"./activity-C22CeO5G.js";import{w as le}from"./labels-D8xxfRTQ.js";import{c as ie,C as de}from"./Coverage-BhgtC9t6.js";import{T as ue}from"./Tabs-Kfe2CfSx.js";import{s as ce,D as pe}from"./Table-DotwWze-.js";import{T as me}from"./TimeCell-xtED_iww.js";import{a as fe,u as ge,b as we}from"./flows-BfIUsgdd.js";import{u as he}from"./outbounds-CJznbPkH.js";import{u as be,Q as je,R as xe}from"./useQuickRule-D86TFC6s.js";import{$ as ve}from"./GridList-Cq8h6RdG.js";import{$ as ye,a as ke}from"./Virtualizer-tkoH0e4V.js";import{C as _e}from"./CardView-f0UIkdtH.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Tag-DE8n6iTZ.js";import"./Select-W-Xrx6y6.js";import"./ItemText-B5OxI5lS.js";import"./AppearanceControls-I4PvP9Es.js";import"./nodes-BXUOUiP2.js";import"./useGridSelectionCheckbox-D0fV1e0v.js";import"./Checkbox-CUoHrzuV.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-qKwVDZ__.js";import"./SearchSelect-CSXz7lhe.js";import"./SearchList-D75Ie4nx.js";import"./BackendText-CxshqKrW.js";import"./rule-ljMHmFs3.js";const Me=["client","rule","outbound","node"];function Ne(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 Se(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:Ne(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)=>ne(e,t.unknown?"":t.key??t.label),Ce=e=>te(e,Me)?.kind,Te=new Map;function Pe(e,t,n){const a=Ce(t);return a?e.filter(e=>{const o=Se(e,a,Te,n?.generation_id);return null!==o&&Le(a,o)===t}):[]}function Oe(e,t,n,a){const o=te(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 Re(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=Se(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)),N=[...p.values()].filter(e=>M.has(e.source)||M.has(e.target)),S=new Set(N.map(e=>e.target));return{by:o,leaves:[...d.values()],outbounds:_,nodes:[...c.values()].filter(e=>S.has(e.id)),links:N}}const Fe=new WeakMap;function He(e){const t=Fe.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.soLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{g3 as e,d8 as t,d1 as r,d0 as o,bA as a,g5 as i,eq as l,f2 as n,f3 as s,eW as d,eX as c,eY as u,d9 as p,eZ as g,e$ as f,f0 as y,db as v,e_ as b,eR as h,ev as m,g8 as k,dq as D,eA as w,dt as E,ds as P,f6 as M,di as x,dj as S,dk as A,dS as K,dm as C,eF as T,f8 as N,fa as B,ew as I,fe as F,de as R,ex as V,eu as L,eQ as H,f9 as O,fb as U,dp as z,fj as $,fk as j,eE as W}from"./index-C4UFgHia.js";import{a as G,$ as _,b as q,d as Q,e as X,f as Y}from"./useGridSelectionCheckbox-D0fV1e0v.js";import{k as Z,f as J,e as ee,l as te,g as re,i as oe,h as ae}from"./Select-W-Xrx6y6.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),V=F.hasAction?R:{},L=o(I,V,{role:"row",onKeyDownCapture:"arrow"===x||w?e=>{let o=c(u(r.current));if(!h(e.currentTarget,v(e))||!r.current||!o)return;let a=p(r.current);if(a.currentNode=o,!pe(e,t,m,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&&(L.tabIndex=-1);let H=L.onKeyDown;if(L.onKeyDown=e=>{(e=>{let o=c(u(r.current));if(h(e.currentTarget,v(e))&&r.current&&o){if("tab"===x){if(v(e)!==r.current&&"Tab"!==e.key)return void e.stopPropagation();if(pe(e,t,m,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];L["aria-rowindex"]=r.find(e=>"section"===e.type)?[...e.getKeys()].filter(t=>"section"!==e.getItem(t)?.type).findIndex(e=>e===m.key)+1:m.index+1}return{rowProps:{...o(L,T)},gridCellProps:{role:"gridcell","aria-colindex":1},descriptionProps:{id:A},...F}}function pe(e,t,r,o,a,i,l,n){if(!("expandedKeys"in t)||!n&&i!==l)return!1;if(e.key===de[a]&&t.selectLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{j as s}from"./vendor-react-64fcanlc.js";import{I as e,cK as a,N as l,T as c}from"./index-C4UFgHia.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};
|
||||
@@ -0,0 +1 @@
|
||||
import{j as s}from"./vendor-react-64fcanlc.js";import{I as r,bd as e}from"./index-C4UFgHia.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};
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{u as n,at as r,bI as s,bJ as o,A as a,bK as i,aY as l,bL as c,bM as u,bN as d,bO as p,c as m,h as g,C as f,bc as h,E as x,bP as w,bQ as k,bq as j,bR as y,B as b}from"./index-C4UFgHia.js";import{D as v,s as T,d as S,a as N,o as E}from"./auth-BNrY15aC.js";import{L as C}from"./LinkOut-DVAiBR_J.js";import{L,P as _,S as q}from"./AppearanceControls-I4PvP9Es.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-B5OxI5lS.js";const A=/^[A-Za-z0-9_.-]{1,64}$/;async function D(e,t){try{return T(await S(e,t))}catch(n){if(!function(e){return e instanceof SyntaxError||e instanceof a&&(404===e.status||401===e.status&&(!e.code||"authentication_required"===e.code))}(n))throw n;return n instanceof a&&404===n.status?await N(e,t)?"token":"no-api":"token"}}function P(e,t,n){try{const{profiles:r,activeId:s}=u(),o=function(e,t,n,r){return e.some(e=>e.id===t&&p(e.api)===p(n))?e.map(e=>e.id===t?{...e,token:r.trim()}:e):null}(r,e,t,n);if(!o)return"login.stale";d({profiles:o,activeId:s})}catch{return"settings.saveError"}return null}async function I(e,t,n,r){let s;try{s=await E(t,n,r)}catch(o){return function(e,t){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"===t)return{key:"login.setupPeer"};if("rate_limited"===e.code){const t=e.retryAfter??60;return{key:"login.rateLimited",params:{n:t},wait:t}}return null}(o,n)??{error:o}}try{c(e,t,s.token)}catch{return{key:"settings.saveError"}}return null}function R(e,t){const{kind:n,failure:r,attempt:s,ended:o,rejected:a}=e;return"no-api"===n?null:null!==r?{tone:"negative",text:"string"==typeof r?r:t(r.key,r.params),focus:!0,id:s}:o?{tone:"informative",text:t("login.sessionEnded"),focus:!1,id:0}:a&&"token"===n?{tone:"negative",text:t("login.rejected"),focus:!1,id:0}:null}const H=e=>"string"!=typeof e&&"login.rateLimited"===e.key;function F(t,a,c,u,d){const p=n(),m=r(),[g]=e.useState(()=>s(t,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 D(a,e.signal).then(e=>h(e),t=>{e.signal.aborted||k(e=>({...e,error:t instanceof Error?t:new Error(String(t))}))}),()=>e.abort()},[a,w.attempt,d]);const[j,y]=e.useState(""),b=i(a),[T,S]=e.useState(b?v.username:""),[N,E]=e.useState(b?v.password:""),[C,L]=e.useState(""),[_,q]=e.useState(!1),[F,M]=e.useState(!1),[U,O]=e.useState({}),[z,B]=e.useState(null),[J,K]=e.useState(0),[Q,Y]=e.useState(0),[Z,$]=e.useState(Date.now);e.useEffect(()=>{if(Q<=Z)return;const e=setTimeout(()=>$(Date.now()),(Q-Z)%1e3||1e3);return()=>clearTimeout(e)},[Q,Z]);const G=function(e,t){return Math.max(0,Math.ceil((e-t)/1e3))}(Q,Z),V=(e,t)=>n=>{t(n),U[e]&&O(({[e]:t,...n})=>n)},W=async e=>{const n=function(e,t,n,r){const s={};t?A.test(t)||(s.username="login.badUsername"):s.username="login.usernameRequired";const o=[...n].length;return o?"setup"===e&&o<8?s.password="login.passwordShort":o>128||(new TextEncoder).encode(n).length>512?s.password="login.passwordLong":"setup"===e&&n!==r&&(s.confirm="login.mismatch"):s.password="login.passwordRequired",s}(e,T,N,C);if(O(n),Object.keys(n).length)return;M(!0);const r=await I(t,a,e,{username:T,password:N});if(r)if(M(!1),"error"in r)B(p("login.failed",{error:l(r.error,p)}));else{if(r.wait){const e=Date.now();$(e),Y(e+1e3*r.wait)}r.switchTo&&(h(r.switchTo),L("")),B(r)}else location.reload()},X="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:R({kind:x,failure:z&&!G&&H(z)?null:z,attempt:J,ended:g,rejected:u},p),busy:F,token:j,setToken:y,username:T,setUsername:V("username",S),usernameError:ee("username"),password:N,setPassword:V("password",E),passwordError:ee("password"),confirm:C,setConfirm:V("confirm",L),confirmError:ee("confirm"),submit:()=>{F||G||null===x||"no-api"===x||(B(null),K(e=>e+1),X?W(x):(()=>{if(!j.trim())return;const e=P(t,a,j);e?B({key:e}):location.reload()})())},canSubmit:null!==x&&"no-api"!==x&&!G&&(X||!!j.trim()),submitText:G?p("login.retryIn",{n:G}):p("setup"===x?"login.create":"login"===x?"login.signIn":"login.submit"),secretType:_?"text":"password",toggle:()=>q(e=>!e),toggleText:p(X?_?"login.hidePassword":"login.showPassword":_?"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,themeLLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{bT as r,u as s,au as l,at as a,d$ as o,b_ as n,B as i,cy as c,e0 as d,C as g,e1 as m,a0 as u,a8 as p,r as h,F as f,cu as x,c3 as j,T as v,m as b,cq as w,bR as y,cA as M,a as N,b as C,E as T}from"./index-C4UFgHia.js";import{aY as k,b as $,F as S,aZ as R,D as A}from"./activity-C22CeO5G.js";import{C as O}from"./ItemText-B5OxI5lS.js";import{U as W,X as P,L as F,K as L,p as D,A as _}from"./logs-j0cmmcZI.js";import{D as q}from"./Table-DotwWze-.js";import{d as B,e as E}from"./files-Dt8K7QfP.js";import{r as H}from"./recorder-BHyqDNp5.js";import{u as J,C as U}from"./Copy-ftx4Gb2m.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-BXUOUiP2.js";import"./AppearanceControls-I4PvP9Es.js";import"./Select-W-Xrx6y6.js";import"./useGridSelectionCheckbox-D0fV1e0v.js";import"./Virtualizer-tkoH0e4V.js";import"./Checkbox-CUoHrzuV.js";const V=new WeakMap;function X(e){let t=V.get(e);return void 0===t&&V.set(e,t=Date.parse(e.ts)),t}const Y=[...r].reverse();function z({records:m,offered:u,minimum:p,setMinimum:h,waiting:f}){const x=s(),j=l[a()],v=$(),b=e.useMemo(()=>function(e,t,r,s=24){const l=r?Y.indexOf(r):Y.length-1,a=Y.filter((e,r)=>t.includes(e)&&r<=l),o=e.map(X).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=k(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=X(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(j),[j]),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:v.negative,warn:v.notice,info:v.info,debug:v.subtle,trace:v.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,v,x]);if(!m.length)return f?t.jsx(G,{heads:M,levels:b.rows.map(e=>e.level),time:w.format(0)}):null;const C=b.busiest,T=C?C.errors?[{label:x("log.chart.errors"),value:x("log.chart.count",{n:C.errors}),icon:t.jsx(c,{}),tone:"negative"},{label:x("log.chart.peakErrors"),icon:t.jsx(d,{}),tint:"c1",value:y(C.start),caption:x("log.chart.count",{n:C.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(C.start),caption:x("log.chart.count",{n:C.count})}]:[];return t.jsxs("div",{className:"rp-chart-page",children:[t.jsx(S,{facts:T}),t.jsx(g,{title:x("log.chart.title"),note:x("log.chart.sample",{n:m.length}),children:t.jsx(R,{label:x("log.chart.title"),columns:N.columns,rows:N.rows})})]})}function G({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(S,{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(R,{label:a("log.chart.title"),columns:[l],rows:n})}),t.jsx(m,{})]})]})}const I={trace:"muted",debug:"neutral",info:"info",warn:"warn",error:"err"},K=new WeakMap;function Z(e,t,s,l,a,o=new Set,i){return{rows:e.flatMap(e=>{const t=function(e,t,r){const s=K.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:I[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 K.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.recordedLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{m as s,a,p as o,b as n,c as i}from"./Nodes-DIVmMRlP.js";import{u as r,bR as l,cq as t}from"./index-C4UFgHia.js";import{N as d,t as m,n as p}from"./NumberField-BGS5AF_x.js";import{p as u,D as c}from"./logs-j0cmmcZI.js";import{C as j}from"./Checkbox-CUoHrzuV.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Tabs-Kfe2CfSx.js";import"./useGridSelectionCheckbox-D0fV1e0v.js";import"./Select-W-Xrx6y6.js";import"./Table-DotwWze-.js";import"./Virtualizer-tkoH0e4V.js";import"./subscriptionEntries-CB_uX4nO.js";import"./SearchList-D75Ie4nx.js";import"./ItemText-B5OxI5lS.js";import"./nodes-BXUOUiP2.js";import"./BackendText-CxshqKrW.js";import"./activity-C22CeO5G.js";import"./AppearanceControls-I4PvP9Es.js";import"./TimeCell-xtED_iww.js";import"./CardView-f0UIkdtH.js";import"./GridList-Cq8h6RdG.js";import"./Tag-DE8n6iTZ.js";import"./FlagPicker-DkMTBjLE.js";import"./SearchSelect-CSXz7lhe.js";import"./outbounds-CJznbPkH.js";import"./probe-CRm42H8E.js";const h={username:"login.username",uuid:"nodes.manual.uuid",flow:"nodes.manual.flow",password:"login.password",method:"nodes.manual.method",security:"nodes.manual.security",sni:"nodes.manual.sni",insecure:"nodes.manual.insecure",pbk:"nodes.manual.publicKey",sid:"nodes.manual.shortId",type:"nodes.manual.transport",transportHost:"nodes.xhttp.host",path:"nodes.xhttp.path",mode:"nodes.xhttp.mode",serviceName:"nodes.manual.service",obfs:"nodes.manual.obfs","obfs-password":"nodes.manual.obfsPassword",congestion_control:"nodes.manual.congestion"},b={alpn:"ALPN",spx:"SpiderX",ech_config:"ECH config"};function x({draft:x,link:v,nameError:g,linkError:f,isDisabled:C,onChange:k}){const N=r(),D=s(x),w=e=>({id:e,label:""===e?N("ui.none"):e}),q=a(x),I=({key:s,options:a,flag:o,required:n,range:i})=>{const r="username"===s&&"socks5"!==x.protocol,t=h[r?"uuid":s]?N(h[r?"uuid":s]):b[s]??s;return a?e.jsx(u,{label:t,items:a.map(w),value:x[s]??a[0],isDisabled:C,onChange:e=>k(s,e)},s):o?e.jsx(j,{label:t,isSelected:!!x[s],isDisabled:C,onChange:e=>k(s,e?o:"")},s):i?e.jsx(d,{isRequired:n,isDisabled:C,label:t,value:p(x[s]??""),minValue:i[0],maxValue:i[1],step:1,error:x[s]&&D.includes(s)?N("nodes.manual.valueInvalid"):void 0,onChange:e=>k(s,m(e))},s):e.jsx(l,{isRequired:n,isDisabled:C,label:t,value:x[s]??"",spellCheck:!1,error:x[s]&&D.includes(s)?N(r?"nodes.manual.uuidInvalid":"nodes.manual.valueInvalid"):void 0,onChange:e=>k(s,e)},s)};return e.jsxs(e.Fragment,{children:[e.jsx(u,{label:N("ui.protocol"),items:o.map(e=>({id:e,label:n(e)})),value:x.protocol,isDisabled:C,onChange:e=>k("protocol",e)}),e.jsx(l,{isRequired:!0,isDisabled:C,label:N("ui.name"),value:x.name,error:g,onChange:e=>k("name",e)}),e.jsxs(t,{className:"top",children:[e.jsx(l,{isRequired:!0,isDisabled:C,label:N("nodes.manual.host"),value:x.host,spellCheck:!1,error:x.host&&D.includes("host")?N("nodes.manual.hostInvalid"):void 0,onChange:e=>k("host",e)}),e.jsx(d,{isRequired:!0,isDisabled:C,label:N("nodes.manual.port"),width:120,value:p(x.port),minValue:1,maxValue:65535,step:1,error:D.includes("port")?N("nodes.manual.portInvalid"):void 0,onChange:e=>k("port",m(e))})]}),i(x).map(I),q.length>0&&e.jsx(c,{title:N("nodes.manual.advanced"),children:e.jsx("div",{className:"rp-list",children:q.map(I)})}),v&&e.jsxs("div",{className:"rp-field",children:[e.jsx("span",{className:"rp-label",children:N("nodes.manual.generated")}),e.jsx("span",{className:"rp-code rp-node-link",children:v})]}),f&&e.jsx("p",{className:"rp-field-error",children:f})]})}export{x as ManualFields};
|
||||
@@ -0,0 +1 @@
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{u as n,at as r,c as s,bJ as t}from"./index-C4UFgHia.js";import{d as a}from"./limitHint-DIncl1LE.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-BXUOUiP2.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};
|
||||
@@ -0,0 +1 @@
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{N as r,T as a}from"./index-C4UFgHia.js";import{L as n}from"./Tag-DE8n6iTZ.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 @@
|
||||
.rp-textarea{height:auto;min-block-size:calc(3 * var(--rp-line-body) + 2 * var(--rp-space-2));resize:vertical;padding-block:var(--rp-space-2);color:inherit;font:inherit;outline:none}.rp-textarea[data-focus-visible]{outline:var(--rp-focus-width) solid var(--rp-focus-color);outline-offset:var(--rp-focus-offset)}.rp-cardview-meta:has(.rp-provider-kind){min-block-size:var(--rp-control-xs);align-items:center}
|
||||
@@ -0,0 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./XhttpOptions-CFjPLQAZ.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-C4UFgHia.js","./index-CQHYBvmE.css","./logs-j0cmmcZI.js","./Select-W-Xrx6y6.js","./ItemText-B5OxI5lS.js","./AppearanceControls-I4PvP9Es.js","./nodes-BXUOUiP2.js","./Tabs-Kfe2CfSx.js","./useGridSelectionCheckbox-D0fV1e0v.js","./Table-DotwWze-.js","./Virtualizer-tkoH0e4V.js","./Checkbox-CUoHrzuV.js","./subscriptionEntries-CB_uX4nO.js","./SearchList-D75Ie4nx.js","./BackendText-CxshqKrW.js","./activity-C22CeO5G.js","./activity-Dh87vlBh.css","./TimeCell-xtED_iww.js","./CardView-f0UIkdtH.js","./GridList-Cq8h6RdG.js","./Tag-DE8n6iTZ.js","./FlagPicker-DkMTBjLE.js","./SearchSelect-CSXz7lhe.js","./outbounds-CJznbPkH.js","./probe-CRm42H8E.js","./ManualFields-CTj0sr4A.js","./NumberField-BGS5AF_x.js","./ChainFields-BAItfFQK.js","./AddCircle-qKwVDZ__.js","./SubscriptionFields-DhFfUi4P.js"])))=>i.map(i=>d[i]);
|
||||
import{dB as e,dC as n,du as s,dD as o,dE as a,cK as t,dF as r,cy as i,au as l,at as d,r as c,t as u,cv as p,cl as m,u as h,E as g,am as f,af as v,cx as b,C as y,S as k,b4 as x,c as j,N as w,B as N,aE as S,T as P,cz as C,cq as M,I as A,b9 as _,ba as R,ay as L,dG as T,aL as E,dH as F,dI as O,a as G,b as $,bR as D,K as I,aR as q,x as B,co as H,ci as z,aX as J,h as U,aY as Q,a4 as W,cU as K,cV as V,F as X,w as Y,dJ as Z,dK as ee,ah as ne,cm as se,ck as oe,D as ae,d as te,A as re,y as ie,z as le,ag as de,dL as ce,bb as ue,cQ as pe,bQ as me,cA as he,dy as ge,m as fe,p as ve,_ as be}from"./index-C4UFgHia.js";import{j as ye,r as ke}from"./vendor-react-64fcanlc.js";import{T as xe}from"./Tabs-Kfe2CfSx.js";import{D as je,c as we}from"./Table-DotwWze-.js";import{P as Ne,d as Se,u as Pe,S as Ce}from"./subscriptionEntries-CB_uX4nO.js";import{B as Me}from"./BackendText-CxshqKrW.js";import{g as Ae,c as _e,f as Re,S as Le,K as Te,n as Ee,B as Fe,L as Oe,A as Ge,p as $e,F as De,x as Ie,u as qe,G as Be,H as He,y as ze,r as Je}from"./logs-j0cmmcZI.js";import{ah as Ue,a3 as Qe,ai as We,aj as Ke,C as Ve,F as Xe,ak as Ye,al as Ze,am as en,an as nn,q as sn,ao as on,ap as an,aq as tn,ar as rn,as as ln,at as dn,au as cn,av as un,aw as pn,ax as mn,ay as hn,az as gn,aA as fn,Y as vn,aB as bn,aC as yn,aD as kn,aE as xn,aF as jn,aG as wn,aH as Nn,aI as Sn,aJ as Pn,aK as Cn,aL as Mn,aM as An,aN as _n,aO as Rn,aP as Ln,aQ as Tn,T as En,V as Fn,aR as On}from"./activity-C22CeO5G.js";import{T as Gn}from"./TimeCell-xtED_iww.js";import{C as $n,a as Dn}from"./CardView-f0UIkdtH.js";import{C as In,l as qn}from"./AppearanceControls-I4PvP9Es.js";import{F as Bn,T as Hn,L as zn}from"./Tag-DE8n6iTZ.js";import{FlagField as Jn}from"./FlagPicker-DkMTBjLE.js";import{S as Un}from"./SearchSelect-CSXz7lhe.js";import{u as Qn}from"./outbounds-CJznbPkH.js";import{ai as Wn,aj as Kn,ak as Vn,D as Xn,al as Yn,am as Zn,q as es,g as ns,r as ss,G as os,H as as,an as ts,m as rs,x as is,A as ls,ao as ds,ap as cs,Y as us,aq as ps,ar as ms}from"./nodes-BXUOUiP2.js";import{$ as hs}from"./SearchList-D75Ie4nx.js";import{b as gs,p as fs}from"./probe-CRm42H8E.js";function vs(l){const{label:d,description:c,error:u,placeholder:p,necessityIndicator:m,...h}=e(l);return ye.jsxs(n,{...h,className:"rp-field",isInvalid:!!u,validationBehavior:"aria",children:[ye.jsxs(s,{className:"rp-label",children:[d,ye.jsx(o,{isRequired:h.isRequired,necessityIndicator:m})]}),ye.jsx(a,{className:"rp-input rp-textarea",rows:3,placeholder:p}),c&&ye.jsx(t,{slot:"description",className:"rp-label",children:c}),u&&ye.jsxs(r,{className:"rp-field-error",children:[ye.jsx(i,{}),u]})]})}function bs(e,n){return e.split("{names}").map((e,s)=>ye.jsxs(ke.Fragment,{children:[s>0&&n,e]},s))}function ys(e,n,s,o){const a=x(n,["",""]),t=e.slice(0,6).map((e,n)=>ye.jsxs(ke.Fragment,{children:[n>0&&a,ye.jsx(j,{appearance:"link",layout:"inline",href:o.get(e.id)??nn([e.id]),children:ye.jsx(w,{name:e.name})})]},e.id));if(e.length<=6)return t;const r=ye.jsx(j,{appearance:"link",layout:"inline",href:nn(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)=>ye.jsx(ke.Fragment,{children:"{names}"===e?t:"{more}"===e?r:e},n))}const ks=e=>[{label:e("nodes.latency.lowest"),icon:ye.jsx(b,{}),tint:"c2",value:"",caption:" "},{label:e("nodes.latency.highest"),icon:ye.jsx(Ve,{}),tint:"c4",value:"",caption:" "},{label:e("ui.unavailable"),icon:ye.jsx(i,{}),tint:"c5",value:""}];function xs(){const e=h(),n=d(),{nodes:s,by:o,setBy:a,view:t,hrefs:r}=function(){const e=l[d()],n=c().data?.resources,s=Ae(u(n,"nodes",{whileLoading:!0})),o=_e(u(n,"groups",{whileLoading:!1})),a=Re(u(n,"providers",{whileLoading:!0})),[t,r]=ke.useState("group"),i=p(),h=m(s.data,i),g=m(o.data,i),f=m(a.data,i),v=ke.useMemo(()=>Ue(h??[],g,t,e),[h,g,t,e]),b=ke.useMemo(()=>new Map((h??[]).map(e=>[e.id,Qe(e,f?.providers??[],!0)])),[h,f]);return{nodes:{...s,data:h},by:t,setBy:r,view:v,hrefs:b}}();if(s.error&&!s.data)return ye.jsx(g,{error:s.error,onRetry:s.refetch});const x=!s.data;if(s.data&&!s.data.length)return ye.jsx(f,{children:e("ui.empty")});const j=We(t),{measured:w,down:N}=Ke(t),S=w[0],P=w.at(-1),C=S&&P?[{label:e("nodes.latency.lowest"),icon:ye.jsx(b,{}),tint:"c2",value:S.name,nodeName:!0,valueRole:"name",caption:v(S.latest,e)},{label:e("nodes.latency.highest"),icon:ye.jsx(Ve,{}),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:ye.jsx(i,{}),tint:"c5",tone:N?"negative":void 0}]:[],M=s=>{const o=s.filter(e=>"unavailable"===e.state),a=s.filter(e=>"unmeasured"===e.state);return[...o.length?[bs(e("nodes.latency.unavailableList",{n:o.length,names:"{names}"}),ys(o,n,e,r))]:[],...a.length?[bs(e("nodes.latency.unmeasuredList",{n:a.length,names:"{names}"}),ys(a,n,e,r))]:[]]};return ye.jsxs("div",{className:"rp-chart-page",children:[ye.jsx(Xe,{facts:x?ks(e):C,loadinLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,a as t,$ as i,j as a}from"./vendor-react-64fcanlc.js";import{gm as s,f5 as n,gn as r,d0 as l,db as o,fx as u,eS as c,eT as d,d7 as m,go as p,eV as v,ft as h,d8 as f,g9 as b,gp as g,d6 as y,gq as N,f1 as S,d1 as x,gl as D,d2 as P,gr as w,ff as E,eX as V,fz as F,gs as M,dc as R,dd as I,de as C,df as B,dg as T,bA as O,dh as j,dr as L,di as k,dk as $,gt as U,gu as A,dl as q,dS as G,dm as K,dn as W,dj as z,I as H,dB as _,u as Y,dN as Z,du as X,dD as J,gv as Q,cE as ee,bd as te,cK as ie,dF as ae,cy as se,gw as ne,gx as re}from"./index-C4UFgHia.js";const le=new RegExp("^.*\\(.*\\).*$"),oe=["latn","arab","hanidec","deva","beng","fullwide"];class ue{constructor(e,t={}){this.locale=e,this.options=t}parse(e){return de(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,i){return de(this.locale,this.options,e).isValidPartialNumber(e,t,i)}getNumberingSystem(e){return de(this.locale,this.options,e).options.numberingSystem}}const ce=new Map;function de(e,t,i){let a=me(e,t);if(!e.includes("-nu-")&&!a.isValidPartialNumber(i))for(let s of oe)if(s!==a.options.numberingSystem){let a=me(e+(e.includes("-u-")?"-nu-":"-u-nu-")+s,t);if(a.isValidPartialNumber(i))return a}return a}function me(e,t){let i=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():""),a=ce.get(i);return a||(a=new pe(e,t),ce.set(i,a)),a}class pe{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=he.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:he[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=>!ve.has(e.type)).map(e=>be(e.value)),h=l.flatMap(e=>e.filter(e=>!ve.has(e.type)).map(e=>be(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 ue(this.locale,e).parse(new s(this.locale,e).format(a))}return"accounting"===this.options.currencySign&&le.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=fe(e,",",this.symbols.decimal),e=fe(e,String.fromCharCode(1548),this.symbols.decimal)),this.symbols.groLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{ao as a,Z as i,bJ as s,D as o,b0 as n,b1 as r,b3 as l,a8 as d,a7 as c,ac as p,a_ as u,a3 as m,h as v,a4 as h,b4 as f,u as g,at as b,au as x,r as j,av as y,t as w,ax as k,aw as _,F as N,c3 as S,E as R,aO as H,c4 as O,c as L,T as C,m as D,C as P,c5 as A,am as I,aE as F,aK as V,S as T,c6 as U,P as W,B,c7 as M}from"./index-C4UFgHia.js";import{d as E,e as q}from"./files-Dt8K7QfP.js";import{e as K,c as J,u as Z,a as z,D as G,R as X}from"./activity-C22CeO5G.js";import{r as Y,l as Q,f as $,a as ee,b as te}from"./limitHint-DIncl1LE.js";import{g as ae}from"./nodes-BXUOUiP2.js";import{D as ie}from"./Table-DotwWze-.js";import{L as se,K as oe,A as ne,B as re}from"./logs-j0cmmcZI.js";import{D as le}from"./DaeCode-DEjXqvav.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-B5OxI5lS.js";import"./AppearanceControls-I4PvP9Es.js";import"./useGridSelectionCheckbox-D0fV1e0v.js";import"./Select-W-Xrx6y6.js";import"./Virtualizer-tkoH0e4V.js";import"./Checkbox-CUoHrzuV.js";import"./daeTokens-BVtuNnWZ.js";const de={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",{card:"history"}),memory_history:v("activity",{card:"memory"}),runtime_outbounds:v("activity",{card:"outbounds"}),logs:v("logs"),providers:v("nodes"),rules:v("rules",{tab:"list"}),config:v("config"),config_validate:v("config",{tab:"validate"}),runtime_settings:v("settings",{card:"runtime"}),geodata:v("settings",{card:"geodata"})},ce={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 pe(e,t){return ce[e]?t(ce[e]):e}function ue(e,t,a,i,s=!1,o=[]){const n=e.ebpf,r=n?.maps?.conn_state,l=(e,t)=>{const i=function(e,t,a){return"degraded"===e?{title:a("ov.v.degraded"),text:a(t?"ov.degradedHelp.runtime":"ov.degradedHelp.datapath")}:"unknown"===e?{title:a("ov.v.unknown"),text:a("ov.unknownHelp")}:void 0}(t,s,a);return i?{label:a(e),value:pe(t,a),help:i}:[a(e),pe(t,a)]},d=n?.maps?.state??"unknown",c=n&&function(e,t,a,i){if("unknown"!==e||!t.length)return;const s=new Intl.ListFormat(i,{type:"conjunction"}).format(t);return{title:a("ov.v.notVerified"),text:a("ov.notVerifiedHelp",{hooks:s})}}(n.hooks,o,a,i);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,i)})]]:[l("ov.f.maps",d),[a("ov.f.connState"),r?.occupancy_known&&null!==r.occupancy?a("ui.fraction",{part:h(r.occupancy,i),whole:h(r.capacity,i)}):r?a("ov.occupancyUnknown",{capacity:h(r.capacity,i)}):t]]]:[]]}const me={service:"ov.v.cgroupService",shared:"ov.v.cgroupShared"},ve={service:"ov.cgroupHelp.service",shared:"ov.cgroupHelp.shared"};function he(e,t,i,s=[],o=!1){const n=e.cgroup?.scope,r=e=>{const t=a(e??null);return null===t?"—":h(t,i)},l=[["ov.f.rss",c(e.process?.rss_bytes??null,i)],["ov.f.cgroupCurrent",c(e.cgroup?.current_bytes??null,i)],["ov.f.cgroupLimit",o&&null===e.cgroup?.limit_bytes?t("ov.noLimit"):c(e.cgroup?.limit_bytes??null,i)],["ov.f.cgroupScope",n&&"unknown"!==n?t(me[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,i)]],d=[...s,..."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(ve[n])})}}:[t(e),a])}const fe=new Set(["persistence_unavailable","state_cache_unavailable"]);const ge={probes:"ov.lim.h.probes",subscriptions:"ov.lim.h.subscriptions",reload:"ov.lim.h.reload",config_validate:"ov.lim.h.configValidate"};function be(e,t,a,i,o){const n=e.resources,r=ae(t),l=t=>r.reason(t,e,o),d=(e,t)=>({href:s(i,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),i=t&&ee[t.code];if(!i)return;const s=i.docs?[d(...i.docs)]:[],o=e.flatMap(eLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{S as n,u as i,d as s,P as r}from"./subscriptionEntries-CB_uX4nO.js";import{C as l,a as o,b as a,E as c}from"./CheckboxSet-BThgrv4U.js";import{A as d}from"./AddCircle-qKwVDZ__.js";import{L as u,Y as p,l as m,s as h,u as g,A as f,v as b,m as y,w as x,_ as v,Z as j,n as k,g as w,V as S,X as N,r as _,J as M}from"./nodes-BXUOUiP2.js";import{bA as C,u as I,h as O,I as E,N as L,s as R,w as D,aY as P,a0 as z,cL as T,Q as $,aZ as A,c0 as q,cM as F,cN as H,b4 as K,b6 as V,aX as G,a4 as J,au as U,at as B,cE as X,bd as Y,j as Q,am as W,cq as Z,bR as ee,cA as te,B as ne,aL as ie,bq as se,c as re,cO as le,bb as oe,cP as ae,cQ as ce,aH as de,m as ue,bQ as pe,cg as me,ag as he,cR as ge,cS as fe,cT as be,U as ye,r as xe,F as ve,t as je,cU as ke,aU as we,cV as Se,v as Ne,K as _e,z as Me,az as Ce,aG as Ie,ci as Oe,cW as Ee,cX as Le,x as Re,y as De,E as Pe,cz as ze,a as Te,b as $e,aO as Ae,cY as qe,C as Fe,T as He,cZ as Ke,aE as Ve}from"./index-C4UFgHia.js";import{T as Ge,a as Je,L as Ue}from"./Tag-DE8n6iTZ.js";import{D as Be}from"./DaeCode-DEjXqvav.js";import{N as Xe,p as Ye,D as Qe,K as We,g as Ze,f as et,u as tt,c as nt,x as it,y as st,m as rt,z as lt,S as ot,L as at,B as ct,n as dt}from"./logs-j0cmmcZI.js";import{C as ut}from"./AppearanceControls-I4PvP9Es.js";import{$ as pt}from"./SearchList-D75Ie4nx.js";import{v as mt,i as ht,w as gt,x as ft,y as bt,z as yt,A as xt,E as vt,G as jt,H as kt,I as wt,J as St,K as Nt,M as _t,N as Mt,O as Ct,P as It,Q as Ot,T as Et,V as Lt,X as Rt,Y as Dt,Z as Pt,_ as zt,a as Tt,$ as $t}from"./activity-C22CeO5G.js";import{$ as At,a as qt}from"./GridList-Cq8h6RdG.js";import{b as Ft,c as Ht,d as Kt,e as Vt,$ as Gt}from"./Virtualizer-tkoH0e4V.js";import{S as Jt}from"./SearchSelect-CSXz7lhe.js";import{B as Ut}from"./BackendText-CxshqKrW.js";import{N as Bt,t as Xt,n as Yt}from"./NumberField-BGS5AF_x.js";import{c as Qt}from"./groupFilters-vTIJClEo.js";import{p as Wt,a as Zt}from"./probe-CRm42H8E.js";import{f as en}from"./limitHint-DIncl1LE.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-W-Xrx6y6.js";import"./ItemText-B5OxI5lS.js";import"./Checkbox-CUoHrzuV.js";import"./useGridSelectionCheckbox-D0fV1e0v.js";import"./daeTokens-BVtuNnWZ.js";const tn={minItemSize:new Ht(200,200),maxItemSize:new Ht(1/0,1/0),preserveAspectRatio:!1,minSpace:new Ht(18,18),maxSpace:1/0,maxColumns:1/0,dropIndicatorThickness:2,loaderHeight:48};class nn extends Ft{shouldInvalidateLayoutOptions(e,t){return e.maxColumns!==t.maxColumns||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.preserveAspectRatio!==t.preserveAspectRatio||!(e.minItemSize||tn.minItemSize).equals(t.minItemSize||tn.minItemSize)||!(e.maxItemSize||tn.maxItemSize).equals(t.maxItemSize||tn.maxItemSize)||!(e.minSpace||tn.minSpace).equals(t.minSpace||tn.minSpace)||e.maxHorizontalSpace!==t.maxHorizontalSpace||e.loaderHeight!==t.loaderHeight||e.direction!==t.direction}update(e){let{minItemSize:t=tn.minItemSize,maxItemSize:n=tn.maxItemSize,preserveAspectRatio:i=tn.preserveAspectRatio,minSpace:s=tn.minSpace,maxHorizontalSpace:r=tn.maxSpace,maxColumns:l=tn.maxColumns,dropIndicatorThickness:o=tn.dropIndicatorThickness,loaderHeight:a=tn.loaderHeight,direction:c="ltr"}=e.layoutOptions||{};this.dropIndicatorThickness=o,this.direction=c;let d=this.virtualizer.size.width,u=Math.min(n.width,d),p=Number.isFinite(n.height)?n.height:Math.floor(t.height/t.width*u),m=Math.floor(d/(t.width+s.width)),h=Math.max(1,Math.min(l,m));this.numColumns=h;let g=d-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 x=Math.min(Math.max(r,s.width),Math.floor((d-h*f)/(h+1)));this.gap=new Ht(x,s.height),this.margin=Math.floor((d-h*f-x*(h+1))/2);let v=this.virtualizer.collection,j=v.size,k=v.getLastKey();for(let O=0;O<2&&null!=k;O++){let e=v.getItem(k);if("skeleton"===e?.type){j++;break}k=v.getKeyBefore(k)}let w=Math.ceil(j/h),S=v[Symbol.iterator](),N=w>0?s.height:0,_=new Map,M=null,C=0;for(let O=0;O<w;O++){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}-${C++}`:r.key,o=this.layoutInfos.get(l),a=r;M&&(a=o&&o.content.key===l?o.content:{...M,key:l});let c=x+s*(f+x)+this.margin,d=y,u=!i;o&&u&&(d=o.rect.height,u=e.layoutOptionsChanged||e.sizeChanged||o.estimatedSize||o.content!==a);let p=new Vt(c,N,f,d),m=new Kt(r.type,l,p);m.estimatedSize=u,m.allowOverflow=!0,m.content=a,_.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&&O===w-1&&N<this.virtualizer.size.height&&w++}let I=v.getItem(v.getLastKey());if("loader"===I?.type){(C>0||!I.props.isLoading)&&(a=0);let e=new Vt(x,N,d-2*x,a),t=new Kt("loader",I.key,e);_.set(I.key,t),N=t.rect.maxY}this.layoutInfos=_,this.contentSize=new Ht(this.virtualizer.size.width,N)}getLayoutInfo(e){return this.layoutInfos.get(eLine truncated
|
||||
@@ -0,0 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Trace-DY4zXTiF.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-C4UFgHia.js","./index-CQHYBvmE.css","./flows-BfIUsgdd.js","./logs-j0cmmcZI.js","./Select-W-Xrx6y6.js","./ItemText-B5OxI5lS.js","./AppearanceControls-I4PvP9Es.js","./nodes-BXUOUiP2.js","./probe-CRm42H8E.js","./useQuickRule-D86TFC6s.js","./DaeCode-DEjXqvav.js","./daeTokens-BVtuNnWZ.js","./AddCircle-qKwVDZ__.js","./SearchSelect-CSXz7lhe.js","./SearchList-D75Ie4nx.js","./Virtualizer-tkoH0e4V.js","./BackendText-CxshqKrW.js","./activity-C22CeO5G.js","./activity-Dh87vlBh.css","./rule-ljMHmFs3.js","./NumberField-BGS5AF_x.js","./Table-DotwWze-.js","./useGridSelectionCheckbox-D0fV1e0v.js","./Checkbox-CUoHrzuV.js","./Tabs-Kfe2CfSx.js","./CheckboxSet-BThgrv4U.js","./Coverage-BhgtC9t6.js","./labels-D8xxfRTQ.js","./recorder-BHyqDNp5.js","./geodataUpdate-CK75960A.js","./LinkOut-DVAiBR_J.js","./geodata-CvcFemyc.js","./impact-B8feJDtJ.css"])))=>i.map(i=>d[i]);
|
||||
import{c_ as e,c$ as s,d0 as n,d1 as i,d2 as l,d3 as a,d4 as r,bA as t,d5 as o,d6 as d,d7 as u,d8 as c,d9 as p,da as m,db as f,dc as g,dd as b,de as h,df as v,dg as x,dh as k,di as y,dj as w,dk as j,dl as S,dm as C,dn as N,dp as _,dq as D,$ as M,dr as P,ds as R,dt as q,aK as H,du as I,cK as O,aH as L,bd as E,ci as F,dv as A,ck as T,au as V,a4 as W,a0 as B,U as $,af as U,b4 as Q,ad as G,o as K,h as J,t as z,dw as Y,a8 as X,w as Z,u as ee,aR as se,cV as ne,K as ie,at as le,r as ae,c3 as re,aS as te,aT as oe,bJ as de,F as ue,D as ce,A as pe,ai as me,C as fe,bq as ge,bQ as be,cA as he,cq as ve,B as xe,m as ke,cP as ye,cO as we,c as je,dx as Se,bR as Ce,dy as Ne,bb as _e,E as De,aO as Me,dz as Pe,dA as Re,be as qe,aL as He,cz as Ie,aE as Oe,T as Le,cj as Ee,cm as Fe,L as Ae,p as Te,_ as Ve,cv as We}from"./index-C4UFgHia.js";import{r as Be,$ as $e,j as Ue}from"./vendor-react-64fcanlc.js";import{a0 as Qe,a1 as Ge,a2 as Ke,a3 as Je,a4 as ze,a5 as Ye,a6 as Xe,a7 as Ze,a8 as es,a9 as ss,aa as ns,ab as is,ac as ls,ad as as,ae as rs,s as ts,af as os,ag as ds}from"./activity-C22CeO5G.js";import{T as us}from"./Tabs-Kfe2CfSx.js";import{D as cs}from"./DaeCode-DEjXqvav.js";import{a as ps,c as ms,u as fs,E as gs,y as bs,g as hs,D as vs,L as xs,p as ks,S as ys,B as ws}from"./logs-j0cmmcZI.js";import{D as js}from"./Table-DotwWze-.js";import{a as Ss,C as Cs,E as Ns}from"./CheckboxSet-BThgrv4U.js";import{c as _s,C as Ds}from"./Coverage-BhgtC9t6.js";import{B as Ms}from"./BackendText-CxshqKrW.js";import{u as Ps,a as Rs,c as qs}from"./flows-BfIUsgdd.js";import{b as Hs,u as Is,a0 as Os,f as Ls,c as Es,a1 as Fs,l as As,s as Ts,e as Vs,a2 as Ws,a3 as Bs,a4 as $s,a5 as Us,a6 as Qs,a7 as Gs,r as Ks,a8 as Js,a9 as zs,aa as Ys,ab as Xs,i as Zs,ac as en,ad as sn,N as nn,ae as ln,g as an,af as rn,ag as tn}from"./nodes-BXUOUiP2.js";import{w as on}from"./labels-D8xxfRTQ.js";import{d as dn,b as un,c as cn,e as pn,r as mn}from"./rule-ljMHmFs3.js";import{r as fn}from"./recorder-BHyqDNp5.js";import{g as gn,a as bn,b as hn}from"./geodataUpdate-CK75960A.js";import{C as vn}from"./Checkbox-CUoHrzuV.js";/* empty css */import{L as xn}from"./LinkOut-DVAiBR_J.js";import{S as kn}from"./SearchSelect-CSXz7lhe.js";import{m as yn,a as wn,b as jn}from"./geodata-CvcFemyc.js";const Sn=new WeakMap;let Cn=Math.round(1e10*Math.random()),Nn=0;const _n=Be.createContext(null),Dn=Be.createContext(null),Mn=Be.createContext(null),Pn=Be.forwardRef(function(e,s){[e,s]=h(e,s,_n);let{validationBehavior:l}=v(x)||{},a=e.validationBehavior??l??"native",r=function(e){let s=Be.useMemo(()=>e.name||`radio-group-${Cn}-${++Nn}`,[e.name]),[n,i]=g(e.value,e.defaultValue??null,e.onChange),[l]=Be.useState(n),[a,r]=Be.useState(null),t=b({...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:b,orientation:h="vertical",validationBehavior:v="aria"}=e,{direction:x}=t(),{isInvalid:k,validationErrors:y,validationDetails:w}=s.displayValidation,{labelProps:j,fieldProps:S,descriptionProps:C,errorMessageProps:N}=o({...e,labelElementType:"span",isInvalid:s.isInvalid,errorMessage:e.errorMessage||y}),_=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"!==h?"prev":"next",e),ArrowLeft:e=>M("rtl"===x&&"vertical"!==h?"next":"prev",e),ArrowDown:e=>M("next",e),ArrowUp:e=>M("prev",e)},allowRepeats:!0}),R=c(l);return Sn.set(s,{name:R,form:a,descriptionId:C.id,errorMessageId:N.id,validationBehavior:v}),{radioGroupProps: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":b||void 0,"aria-orientation":h,...S,...D}),labelProps:j,descriptionProps:C,errorMessageProps:N,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,isInvaLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{dv as t,t as a,dK as i,cp as r,cs as n,ct as o,gB as l,w as d,gC as u,W as p,cb as c,b4 as m,a0 as g,a4 as f,au as h,gD as y,gE as b,gF as K,e6 as v,u as j,at as w,r as x,F as M,as as $,gG as k,bb as L,fo as q,cq as C,bR as _,B as S,aL as T,E as N,bP as I,am as E,cI as P}from"./index-C4UFgHia.js";import{$ as R,c as G,a as D}from"./Select-W-Xrx6y6.js";import{b as F}from"./ItemText-B5OxI5lS.js";import{h as O,g as W,c as A,f as B,u as H}from"./logs-j0cmmcZI.js";import{u as Q,c as V}from"./flows-BfIUsgdd.js";import{a0 as z,g as J}from"./nodes-BXUOUiP2.js";import{c as U,o as X,p as Y,q as Z}from"./nav-DrWHp_dt.js";import{e as ee,r as se,g as te,f as ae}from"./nav-VzrSXoKO.js";import{b3 as ie,a3 as re,b1 as ne}from"./activity-C22CeO5G.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./AppearanceControls-I4PvP9Es.js";function oe(e){const s=t(e).map(e=>e.id);return[...s.includes("list")&&a(e,"rules",{whileLoading:!1})&&!0===e?.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"]}]:[],...s.includes("dns")&&!0===e?.config.writable?[{id:"rules:dns-add",titleKey:"rule.add",parentKey:"rule.dnsTitle",route:"rules",params:{tab:"dns"},aliases:["dns condition"]}]:[]]}function le(e){return[...a(e,"providers",{whileLoading:!1})?[{id:"nodes:sources",titleKey:"nodes.providers",parentKey:"nav.nodes",route:"nodes",aliases:["subscription","subscriptions"],aliasKeys:["nodes.kind.subscription"]}]:[],...e?.providers.can_manage?[{id:"nodes:add-subscription",titleKey:"nodes.addProvider",parentKey:"nav.nodes",route:"nodes",params:{add:"subscription"},aliases:["subscription"]}]:[],...e?.nodes.can_manage&&i(e).length?[{id:"nodes:link",titleKey:"nodes.addNode",parentKey:"nav.nodes",route:"nodes",params:{tab:"list"},aliases:["share link","rename"]},{id:"nodes:proxy-chain",titleKey:"nodes.proxyChain.protocol",parentKey:"nav.nodes",route:"nodes",params:{tab:"list"},aliases:["chain","hop","relay"]}]:[]]}const de=e=>a(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"]}]:[],ue=e=>e.trim().toLowerCase().replace(/\s+/g," "),pe=(e,s,t,a,i,r="",n)=>({hit:{id:s,label:t,description:a,route:i,query:r,...n&&{open:n}},keys:[...new Set(e.flatMap(e=>null==e?[]:[ue(e)]))]}),ce=(e,s,t,a,i)=>{const{route:r,query:n}=v(i);return pe(e,s,t,a,r,n)};function me(e,s,t){const a=[{title:e(s),parent:t&&e(t)}];for(const i of y)b(i.id)&&a.push({title:K(i.id,s),parent:t&&K(i.id,t)});return a.flatMap(({title:e,parent:s})=>s?[e,s+" "+e]:[e])}function ge(e,s){let t=3;for(const a of e){if(a===s)return 0;a.startsWith(s)?t=1:3===t&&a.includes(s)&&(t=2)}return t}function fe(s,b){const K=j(),v=w(),[L,q]=e.useState(""),C=x(),_=C.data?.resources,S=O(void 0,a(_,"connections",{whileLoading:!1})),T=W(a(_,"nodes",{whileLoading:!1})),N=A(a(_,"groups",{whileLoading:!1})),I=B(a(_,"providers",{whileLoading:!1})),E=H(a(_,"config",{whileLoading:!1})),P=Q(a(_,"rules",{whileLoading:!1})),R=V(a(_,"dns_rules",{whileLoading:!1})),G=[C,S,T,N,I,E,P,R],D=M().data,F=J(D),fe=!!F.globalSettings,he=$(D),[ye,be]=e.useState(0);e.useEffect(()=>{let e=!0;for(const s of y)k(s.id).then(()=>e&&be(e=>e+1),()=>{});return()=>{e=!1}},[]);const Ke=e.useMemo(()=>function(e,s,a,p){const c=s=>u(s,e,p),m=e?.resources,g=[...r().map(e=>({path:"connections",params:{tab:e.id},titleKey:e.titleKey})),...i(m).map(e=>({path:"nodes",params:{tab:e.id},titleKey:e.titleKey})),...n(m).map(e=>({path:"flows",params:{tab:e.id},titleKey:e.titleKey})),...t(m).map(e=>({path:"rules",params:{tab:e.id},titleKey:e.titleKey})),...o(m).map(e=>({path:"dns",params:{tab:e.id},titleKey:e.titleKey})),...U(a,p,e).map(e=>({path:"config",params:{tab:e.id},titleKey:e.titleKey,aliases:e.aliases})),...ee(m).map(e=>({path:"settings",params:{card:e.id},titleKey:e.titleKey,aliases:e.aliases}))],f=e=>l.find(s=>s.path===e).nav.titleKey;return[...l.filter(e=>e.nav&&c(e.path)).map(e=>pe(me(s,e.nav.titleKey),`page:${e.path}?`,s(e.nav.titleKey),void 0,e.path)),...g.filter(e=>c(e.path)).map(e=>{const t=d("",e.params);return pe([...me(s,e.titleKey,f(e.path)),...e.aliases??[]],`page:${e.path}?${t}`,s(e.titleKey),s(f(e.path)),e.path,t)})]}(C.data,K,fe,he),[C.data,K,fe,he,ye]),ve=e.useMemo(()=>function(e,s){const t=e?.resources,a=new Map(ee(t).map(e=>[e.id,e])),i=new Set(t?.runtime_settings.available?t.runtime_settings.fields??[]:[]),r=Object.entries(se).filter(([e])=>i.has(e)).map(([e,s])=>({id:e,labelKey:s,card:"runtime",aliases:void 0})),n=te(t);return[..Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as a}from"./vendor-react-64fcanlc.js";import{eQ as t,fn as r,fo as s,bR as l}from"./index-C4UFgHia.js";import{$ as n,a as i}from"./Virtualizer-tkoH0e4V.js";function o(a){let r=t({usage:"search",...a}),s=e.useCallback((e,a)=>0===a.length||(e=e.normalize("NFC"),a=a.normalize("NFC"),0===r.compare(e.slice(0,a.length),a)),[r]),l=e.useCallback((e,a)=>0===a.length||(e=e.normalize("NFC"),a=a.normalize("NFC"),0===r.compare(e.slice(-a.length),a)),[r]),n=e.useCallback((e,a)=>{if(0===a.length)return!0;e=e.normalize("NFC");let t=0,s=(a=a.normalize("NFC")).length;for(;t+s<=e.length;t++){let l=e.slice(t,t+s);if(0===r.compare(a,l))return!0}return!1},[r]);return e.useMemo(()=>({startsWith:s,endsWith:l,contains:n}),[s,l,n])}function c({label:e,children:t}){const{contains:c}=o({sensitivity:"base"});return a.jsx(r,{value:null,children:a.jsxs(s,{filter:c,children:[a.jsx(l,{search:!0,label:e,autoFocus:!0,className:"rp-menu-search"}),a.jsx(n,{layout:i,layoutOptions:{estimatedRowHeight:32,estimatedHeadingHeight:26},children:t})]})})}const u=Object.freeze(Object.defineProperty({__proto__:null,SearchList:c},Symbol.toStringTag,{value:"Module"}));export{o as $,c as S,u as a};
|
||||
@@ -0,0 +1 @@
|
||||
import{r as s,j as e}from"./vendor-react-64fcanlc.js";import{dN as a,cC as l,du as r,cq as i,dS as c,cK as d,dF as t,cy as n,cF as o,cI as p,bd as m,cE as j,bG as h}from"./index-C4UFgHia.js";import{b as x,$ as b,c as f,d as u,a as N}from"./Select-W-Xrx6y6.js";import{I as v,a as y,b as S}from"./ItemText-B5OxI5lS.js";import{S as g}from"./SearchList-D75Ie4nx.js";const I=s=>e.jsxs(N,{id:s.id,className:"rp-item",textValue:s.keywords?`${s.label} ${s.keywords}`:s.label,children:[e.jsx(y,{}),e.jsx(S,{i:s,children:s.desc&&e.jsx(d,{slot:"description",className:m("desc",s.tone),children:s.desc})})]},s.id);function k({label:N,searchLabel:y,sections:S,value:k,onChange:C,isDisabled:D,description:K,side:R,size:$,placeholder:w,error:z,action:E}){const F=s.useRef(null),L=s.useRef(null),M=a($),q=l(),B=S.flatMap(s=>s.items).find(s=>s.id===k),G=e.jsxs(j,{ref:L,className:"rp-selectbtn","data-size":M,children:[e.jsx(u,{children:()=>B?e.jsx(v,{i:B}):k||w}),e.jsx(h,{})]});return e.jsxs(x,{className:m("rp-picker",R?"rp-cluster":"rp-field"),selectedKey:k,disabledKeys:S.flatMap(s=>s.items.filter(s=>s.isDisabled).map(s=>s.id)),onSelectionChange:s=>{null!=s&&C(String(s))},isDisabled:D,...z?{isInvalid:!0,validationBehavior:"aria"}:{},children:[e.jsxs("div",{ref:F,className:R?"rp-cluster":"rp-field",children:[e.jsx(r,{className:R?"rp-label":"lbl",children:N}),E?e.jsxs(i,{children:[G,e.jsx(c.Provider,{value:null,children:E})]}):G]}),K&&e.jsx(d,{slot:"description",className:"rp-label",children:K}),z&&e.jsxs(t,{className:"rp-field-error",children:[e.jsx(n,{}),z]}),e.jsx(o,{className:"rp-popover rp-search-popover",placement:"bottom start",triggerRef:R?L:F,boundaryElement:q,children:e.jsx(g,{label:y,children:e.jsx(b,{className:"rp-menu-scroll rp-overlay-scroll",children:S.map(s=>s.title?e.jsxs(f,{id:s.id,children:[e.jsx(p,{className:"rp-sec-h",children:s.title}),s.items.map(I)]},s.id):s.items.map(I))})})})]})}export{k as S};
|
||||
@@ -0,0 +1 @@
|
||||
import{eS as e,d1 as t,g3 as l,d6 as o,d8 as a,g4 as s,d0 as i,g5 as r,g6 as n,eq as d,f2 as c,dt as u,e_ as p,er as g,eK as f,eN as y,eM as v,de as m,ex as b,eu as h,fc as D,g7 as P,ev as M,g8 as S,dq as K,d7 as k,g9 as E,di as C,dj as F,dk as B,dm as x,ew as I,fe as w,f8 as R,bA as A,eQ as V,eA as T,f9 as O,ds as z,fb as U,ga as L,gb as H,dp as N,dh as q,gc as W,fj as _,fk as j,eE as $,gd as G,ge as Z,d5 as J,eR as Q,gf as X,f6 as Y,d2 as ee,d3 as te,db as le,gg as oe,dc as ae,dd as se,ey as ie,df as re,eT as ne,dg as de,dr as ce,dl as ue,dS as pe,gh as ge,gi as fe,dn as ye}from"./index-C4UFgHia.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))}}),w=t(S?.props);delete w.id;let R=g(S?.props);return{optionProps:{...M,...i(w,E,I,R),id:k},labelProps:{id:D},descriptionProps:{id:P},isFocused:F,isFocusVisible:F&&l.selectionManager.isFocused&&p(),isSelected:y,isDisabled:f,isPressed:C,allowsSelection:x,hasAction:B}}class Ee{constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let l of e.childNodes)t(l)};for(let s of e)t(s);let l=null,o=0,a=0;for(let[s,i]of this.keyMap)l?(l.nextKey=s,i.prevKey=l.key):(this.firstKey=s,i.prevKey=void 0),"item"===i.type&&(i.index=o++),"section"!==i.type&&"item"!==i.type||a++,l=i,l.nextKey=void 0;this._size=a,this.lastKey=l?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return t?.childNodes||[]}}function Ce(e){let{filter:t,layoutDelegate:l}=e,o=f(e),a=ve.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=ve.Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
.rp-swatch{border:1px solid var(--rp-line);border-radius:var(--rp-r-md);flex:none;width:120px;height:72px;display:block;position:relative;overflow:hidden}.rp-swatch>span{clip-path:polygon(0 0,100% 0,0 100%);background:var(--sw-bg);position:absolute;inset:0}.rp-swatch>span[data-dark]{transform:rotate(180deg)}.rp-swatch>span:before,.rp-swatch>span:after,.rp-swatch i,.rp-swatch i:after{content:"";position:absolute}.rp-swatch>span:before{background:color-mix(in srgb, var(--sw-bg), var(--sw-text) 10%);inset:0 85% 0 0}.rp-swatch i{background:linear-gradient(var(--sw-text) 0 0) 14% 50% / 50% 18% no-repeat var(--sw-surface);border-radius:12%/20%;inset:11% 45% 58% 20%}.rp-swatch i:after{background:var(--sw-positive);border-radius:50%;inset:36% 10% 36% 76%}.rp-swatch>span:after{border-radius:var(--rp-r-pill);background:var(--sw-accent);inset:50% 63% 41% 20%}.rp-swatch[data-look]>span{--sw-wall:radial-gradient(circle at 20% 25%, #007aff99, transparent 60%), radial-gradient(circle at 85% 20%, #ff2d558c, transparent 55%), radial-gradient(circle at 70% 95%, #ff950099, transparent 60%), linear-gradient(160deg, #e3eaf8, #f8eee2);background:var(--sw-wall)}.rp-swatch[data-look]>span[data-dark]{--sw-wall:radial-gradient(circle at 20% 25%, #0a84ff80, transparent 60%), radial-gradient(circle at 85% 20%, #ff375f66, transparent 55%), radial-gradient(circle at 70% 95%, #ff9f0a66, transparent 60%), linear-gradient(160deg, #070a17, #05131a)}.rp-swatch[data-look]>span:before{background:var(--sw-surface)}.rp-swatch[data-look=lens] i,.rp-swatch[data-look=lens]>span:after{--sw-rim:#ffffffe6;box-shadow:inset 1px 1px 0 var(--sw-rim), inset -1px -1px 0 color-mix(in srgb, var(--sw-rim), transparent 45%)}.rp-select-boxes{gap:var(--rp-space-4);display:grid}.rp-select-grid{gap:var(--rp-space-4);grid-template-columns:repeat(auto-fill,170px);display:grid}.rp-select-grid>section{display:contents}.rp-select-box-head{margin-top:var(--rp-space-1);grid-column:1/-1;font-weight:700}.rp-select-box{align-items:center;gap:var(--rp-space-1);min-width:0;padding:var(--rp-space-6) var(--rp-space-3) var(--rp-space-3);border-radius:var(--rp-r-lg);background:var(--rp-surface);box-shadow:var(--rp-shadow);text-align:center;cursor:default;transition:box-shadow var(--rp-duration) var(--rp-ease), border-color var(--rp-duration) var(--rp-ease);border:2px solid #0000;flex-direction:column;display:flex;position:relative}.rp-select-box>.rp-swatch{margin-bottom:var(--rp-space-1)}.rp-select-box:is([data-hovered],[data-selected]){box-shadow:var(--rp-elevated)}.rp-select-box[data-selected]{border-color:var(--rp-accent)}.rp-select-box-check{width:var(--rp-space-4);height:var(--rp-space-4);color:var(--rp-accent);visibility:hidden;position:absolute;inset-block-start:var(--rp-space-1);inset-inline-end:var(--rp-space-1)}.rp-select-box[data-selected] .rp-select-box-check{visibility:visible}@media (width<=599.98px){.rp-select-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
|
||||
@@ -0,0 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./WallpaperSettings-Dynl1X5E.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-C4UFgHia.js","./index-CQHYBvmE.css","./logs-j0cmmcZI.js","./Select-W-Xrx6y6.js","./ItemText-B5OxI5lS.js","./AppearanceControls-I4PvP9Es.js","./nodes-BXUOUiP2.js","./wallpaper-CEC7gitM.js"])))=>i.map(i=>d[i]);
|
||||
import{cI as e,cK as s,bJ as t,a7 as a,b4 as i,h as n,a4 as r,A as l,e2 as o,e3 as d,u as c,e4 as g,e5 as u,cV as p,dJ as m,bO as f,bK as h,bV as b,K as v,bM as x,e6 as j,e7 as k,bN as y,e8 as N,s as w,e9 as _,ea as C,r as S,F as P,ay as D,eb as I,ec as R,ed as L,ee as H,ef as T,co as U,au as E,at as F,c3 as q,t as M,bT as A,a0 as O,b_ as V,aR as B,C as $,E as W,c as G,al as z,S as K,bq as J,a as Y,cq as X,b as Q,bQ as Z,cz as ee,dL as se,B as te,b0 as ae,D as ie,eg as ne,eh as re,cA as le,aH as oe,T as de,m as ce,bR as ge,bG as ue,ei as pe,ej as me,ek as fe,c6 as he,el as be,em as ve,en as xe,_ as je,w as ke}from"./index-C4UFgHia.js";import{j as ye,r as Ne,a as we}from"./vendor-react-64fcanlc.js";import{p as _e,L as Ce,E as Se,c as Pe,D as De,K as Ie,I as Re,Y as Le,Z as He,J as Te}from"./logs-j0cmmcZI.js";import{T as Ue}from"./Tabs-Kfe2CfSx.js";import{$ as Ee,c as Fe,a as qe}from"./Select-W-Xrx6y6.js";import{C as Me}from"./ItemText-B5OxI5lS.js";import{d as Ae,c as Oe}from"./auth-BNrY15aC.js";import{a as Ve,aX as Be,a_ as $e,a$ as We,b0 as Ge}from"./activity-C22CeO5G.js";import{g as ze}from"./nodes-BXUOUiP2.js";import{g as Ke,r as Je,c as Ye,s as Xe,a as Qe,b as Ze,d as es}from"./nav-VzrSXoKO.js";import{N as ss,t as ts,n as as}from"./NumberField-BGS5AF_x.js";import{D as is}from"./Table-DotwWze-.js";import{T as ns}from"./TimeCell-xtED_iww.js";import{l as rs,a as ls,d as os,c as ds}from"./geodataUpdate-CK75960A.js";import{a as cs,v as gs,m as us,b as ps,g as ms}from"./geodata-CvcFemyc.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./AppearanceControls-I4PvP9Es.js";import"./useGridSelectionCheckbox-D0fV1e0v.js";import"./Virtualizer-tkoH0e4V.js";import"./Checkbox-CUoHrzuV.js";function fs({swatch:e,look:s}){return ye.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 ye.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:ye.jsx("i",{})},s)})})}function hs({label:t,sections:a,value:i,onChange:n,help:r}){const l=Ne.useId();return ye.jsxs("div",{className:"rp-select-boxes",children:[ye.jsx("span",{id:`${l}-label`,className:"rp-label",children:t}),ye.jsx(Ee,{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 ye.jsxs(Fe,{"aria-label":n?void 0:t,children:[n&&ye.jsx(e,{className:"rp-select-box-head",children:t}),i.map(e=>ye.jsxs(qe,{id:e.id,className:"rp-select-box",textValue:e.label,"aria-label":!n||a||e.label.includes(t)?e.label:`${t} ${e.label}`,children:[ye.jsx(fs,{swatch:e.swatch,look:e.look}),ye.jsx("span",{children:e.label}),e.desc&&ye.jsx(s,{slot:"description",className:"rp-label rp-truncate",children:e.desc}),ye.jsx(Me,{className:"rp-select-box-check"})]},e.id))]},t)})}),r&&ye.jsx("span",{id:`${l}-help`,className:"rp-label",children:r})]})}const bs={"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"]}Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{r as t,j as e}from"./vendor-react-64fcanlc.js";import{g as s,gI as i}from"./index-C4UFgHia.js";import{b as r,b4 as o,b8 as a,bi as l,bf as n,bg as h,bh as d}from"./activity-C22CeO5G.js";import{G as m,C as c}from"./AreaCurve-DQSHOSpG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-BXUOUiP2.js";import"./logs-j0cmmcZI.js";import"./Select-W-Xrx6y6.js";import"./ItemText-B5OxI5lS.js";import"./AppearanceControls-I4PvP9Es.js";import"./array-C0VuvQyb.js";function u({values:u,timestamps:p,color:x,fmt:j,locale:g,height:y=32,floor:b=0,inset:f=0,lines:v}){const w=t.useId(),M=r(),[k,C]=t.useState(null),[A,I]=s(Math.round,120),{tip:W,showAt:$,hide:L}=o(),P=t.useMemo(()=>u.filter(t=>null!==t),[u]),S=P.length>1,T=t.useMemo(()=>[b>0?0:.85*Math.min(...P),Math.max(1.05*Math.max(...P)||1,b)],[P,b]),z=I?.width??0,B=(I?.height??y)-2,D=t.useMemo(()=>{const t=[Math.min(...p),Math.max(...p)];return p.map(e=>a(e,t,[f,Math.max(f,z-f)]))},[p,z,f]),E=t.useCallback(t=>a(t,T,[B,2]),[T,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&&A.current&&I?$({x:D[k],y:E(u[k]),width:I.width,bounds:l(A.current),label:i(g).format(p[k]),lines:v?.(k)??[j(u[k])]}):L()}),e.jsxs("div",{ref:A,style:{height:`var(--rp-spark-fill, ${y}px)`,width:"100%",position:"relative"},"aria-hidden":!!S||void 0,onPointerLeave:()=>C(null),children:[I&&!S&&e.jsx("svg",{"aria-hidden":!0,width:I.width,height:I.height,style:{display:"block",position:"absolute",inset:0},children:e.jsx("line",{x1:f,x2:I.width-f,y1:B,y2:B,stroke:M["hl-med"],strokeDasharray:"2 4"})}),S&&I&&e.jsxs(e.Fragment,{children:[e.jsx(n,{tip:W}),e.jsxs("svg",{className:"rp-activity-surface",width:I.width,height:I.height,viewBox:`0 0 ${I.width} ${I.height}`,style:{display:"block",position:"absolute",inset:0},onPointerMove:t=>{const e=h(t,t.currentTarget,I);C(e.x<0||e.x>I.width||e.y<2||e.y>I.height-2?null:d(D,e.x))},children:[e.jsx("defs",{children:e.jsx(m,{id:w,color:x})}),e.jsx(c,{points:F,baseline:E(Math.max(0,T[0])),color:x,id:w,strokeWidth:1.5}),null!==k&&null!=u[k]&&e.jsx("circle",{cx:D[k],cy:E(u[k]),r:4,fill:x,stroke:M.base,strokeWidth:2})]})]})]})}export{u as SparkPlot};
|
||||
@@ -0,0 +1 @@
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{u as a,au as s,at as l,bR as r,cq as n,cA as t}from"./index-C4UFgHia.js";import{N as i,t as o,n as d}from"./NumberField-BGS5AF_x.js";import{p as c}from"./logs-j0cmmcZI.js";import{q as u}from"./nodes-BXUOUiP2.js";import{bV as m,bW as p,bX as b,bY as h}from"./activity-C22CeO5G.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-W-Xrx6y6.js";import"./ItemText-B5OxI5lS.js";import"./AppearanceControls-I4PvP9Es.js";function g({value:g,onChange:v,fields:j,isDisabled:x,nameError:C,agentError:f,intervalError:D,urlError:E,focusInterval:F}){const N=a(),k=s[l()],R=e=>v({...g,...e}),S=g.route||"routing",A=g.interval||(null==j.interval?"":String(j.interval)),y=m(A);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=>R({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=>R({url:e}),onBlur:()=>{const e=u(g.url);e!==g.url&&R({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:y?"typed":A,isDisabled:x,onChange:e=>R({interval:"typed"===e?h(A):e})}),y&&e.jsxs(n,{className:"top",children:[e.jsx(i,{isDisabled:x,label:N("nodes.intervalCount"),width:120,value:d(y.count),minValue:0,maxValue:Number.MAX_SAFE_INTEGER,step:1,error:D??void 0,onChange:e=>R({interval:b(o(e),y.unit)})}),e.jsx(c,{label:N("nodes.intervalUnit"),items:[{id:"m",label:N("nodes.minutes")},{id:"h",label:N("nodes.hours")}],value:y.unit,isDisabled:x,onChange:e=>R({interval:b(y.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:f??void 0,spellCheck:!1,onChange:e=>R({agent:e})}),void 0!==j.cache&&e.jsxs(e.Fragment,{children:[e.jsx(t,{isSelected:g.cache??j.cache,isDisabled:x,onChange:e=>R({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"===S||"direct"===S?[]:[S]])].map(e=>({id:e,label:e}))],value:S,isDisabled:x,onChange:e=>R({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,dc as c,eO as u,eP as h,eQ as y,bA as f,et as p,d8 as g,d1 as m,eR as b,db as w,d0 as v,eS as x,eT as k,eU as C,eV as K,eq as I,d9 as S,eW as M,eX as E,eY as R,eZ as z,e_ as D,e$ as P,f0 as N,c_ as H,c$ as W,f1 as A,f2 as T,es as F,f3 as V,d7 as L,f4 as B,f5 as j,f6 as O,de as $,eu as U,ex as _,f7 as Y,f8 as q,dq as X,$ as G,eA as J,f9 as Z,ds as Q,di as ee,dk as te,fa as le,fb as ne,dp as ie,fc as oe,fd as re,dt as se,ev as ae,eF as de,dj as ce,dS as ue,ew as he,fe as ye,ff as fe,fg as pe,fh as ge,fi as me,eC as be,fj as we,fk as ve,eE as xe,u as ke,j as Ce,b9 as Ke,ba as Ie,fl as Se,am as Me,cE as Ee,aL as Re,aK as ze,bG as De,bd as Pe,fm as Ne,T as He}from"./index-C4UFgHia.js";import{a as We,$ as Ae,b as Te,c as Fe,d as Ve,e as Le,f as Be}from"./useGridSelectionCheckbox-D0fV1e0v.js";import{f as je,g as Oe,h as $e,i as Ue,j as _e}from"./Select-W-Xrx6y6.js";import{$ as Ye}from"./logs-j0cmmcZI.js";import{a as qe,c as Xe,e as Ge,d as Je,$ as Ze}from"./Virtualizer-tkoH0e4V.js";import{C as Qe}from"./Checkbox-CUoHrzuV.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
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,$ as t,j as s}from"./vendor-react-64fcanlc.js";import{eq as i,d1 as l,er as a,c$ as n,d0 as o,es as r,bA as d,et as c,d8 as u,dc as b,eu as h,ev as f,dq as p,ds as y,dt as v,di as g,dj as K,ew as m,de as S,ex as x,ey as P,ez as D,eA as C,df as E,dp as w,eB as F,eC as M,dk as I,eD as N,eE as k,eF as j,bi as R,eG as H,cq as L,eH as V}from"./index-C4UFgHia.js";import{$ as A}from"./useGridSelectionCheckbox-D0fV1e0v.js";import{e as z}from"./Select-W-Xrx6y6.js";const T=new WeakMap;function $(e,t,s){if(!e)return"";return"string"==typeof t&&(t=t.replace(/\s+/g,"")),`${T.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 O(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}=z({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:l,onSelectionChange:e=>{if("all"===e)return;let l=e.values().next().value??null;l===s&&t.onSelectionChange&&t.onSelectionChange(l),i(l)}}),r=null!=s?a.getItem(s):null;return{collection:a,disabledKeys: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 q=e.createContext(null),G=e.createContext(null),U=e.forwardRef(function(s,i){[s,i]=S(s,i,q);let{children:l,orientation:a="horizontal"}=s;return l=e.useMemo(()=>"function"==typeof l?l({orientation:a,defaultChildren:null}):l,[l,a]),t.createElement(x,{content:l},e=>t.createElement(J,{props:s,collection:e,tabsRef:i}))});function J({props:s,tabsRef:i,collection:a}){let{orientation:n="horizontal"}=s,r=O({...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(I,{values:[[q,s],[G,r]]},h.children))}const Q=e.forwardRef(function(s,i){return e.useContext(G)?t.createElement(X,{props:s,forwardedRef:i}):t.createElement(h,s)});function X({props:s,forwardedRef:i}){let a=e.useContext(G),{CollectionRoot:n}=e.useContext(C),{orientation:b="horizontal",keyboardActivation:h="automatic"}=E(q),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();T.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
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as n,a as t}from"./vendor-react-64fcanlc.js";import{at as r,b4 as s,c as a,dQ as l,cE as c,dR as o,bd as u}from"./index-C4UFgHia.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}),R=y.key===g?y.count:null;e.useLayoutEffect(()=>{const e=o.current;if(y.probe||null!==R||!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,R,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===R?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 w=null===R?0:a.length-R,k=w>0?s(c,a.map(e=>e.label)):"",C=null===R&&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,R??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)),C.map(e=>n.jsx(x,{count:e},e)),w>0&&n.jsx(d,{count:w,label:l(w),names:k})]})}export{y as F,h as L,g as T,i as a};
|
||||
@@ -0,0 +1 @@
|
||||
import{j as a}from"./vendor-react-64fcanlc.js";import{au as s,at as t,eh as r,T as e,eg as o,a8 as n}from"./index-C4UFgHia.js";function i({at:i}){const c=s[t()],d=r();return a.jsx(e,{text:i?n(i,c):void 0,children:o(i,c,d)})}export{i as T};
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as r}from"./vendor-react-64fcanlc.js";import{c2 as s,u as a,at as i,ag as l,r as t,t as o,J as n,K as d,co as u,ad as m,aa as p,aR as c,bQ as j,cz as h,cq as b,bR as v,B as x,cB as f,am as _,T as k,C as y,c as g}from"./index-C4UFgHia.js";import{u as N,r as w}from"./flows-BfIUsgdd.js";import{c as C,g as q,F as M,f as A,t as L,R as S,L as D,p as R,D as T,K as V}from"./logs-j0cmmcZI.js";import{e as F,t as P,c as E,n as I,d as O,q as Q,a as W,b as B}from"./Rules-BMHWGCx6.js";import{b as H,p as $}from"./probe-CRm42H8E.js";import{u as z,R as K}from"./useQuickRule-D86TFC6s.js";import{r as U}from"./activity-C22CeO5G.js";import{N as G,t as J,n as X}from"./NumberField-BGS5AF_x.js";import{D as Y}from"./Table-DotwWze-.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-W-Xrx6y6.js";import"./ItemText-B5OxI5lS.js";import"./AppearanceControls-I4PvP9Es.js";import"./nodes-BXUOUiP2.js";import"./Tabs-Kfe2CfSx.js";import"./useGridSelectionCheckbox-D0fV1e0v.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./CheckboxSet-BThgrv4U.js";import"./Checkbox-CUoHrzuV.js";import"./Coverage-BhgtC9t6.js";import"./BackendText-CxshqKrW.js";import"./labels-D8xxfRTQ.js";import"./rule-ljMHmFs3.js";import"./recorder-BHyqDNp5.js";import"./geodataUpdate-CK75960A.js";/* empty css */import"./LinkOut-DVAiBR_J.js";import"./SearchSelect-CSXz7lhe.js";import"./SearchList-D75Ie4nx.js";import"./Virtualizer-tkoH0e4V.js";import"./geodata-CvcFemyc.js";import"./AddCircle-qKwVDZ__.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:j,advanced:h,setAdvanced:b,touched:v},x){const f=a(),_=i(),k=l(),y=t(),g=y.data?.resources,S=C(o(g,"groups",{whileLoading:!1})),D=q(o(g,"nodes",{whileLoading:!1})),R=N(o(g,"rules",{whileLoading:!1})),T=M(D.refetch),{choices:V}=T,K=z(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=o(g,"providers",{whileLoading:!1}),ie=A(!!re&&ae),le=o(g,"groups",{whileLoading:!1}),{busy:te,error:oe,run:ne}=n(),de=oe??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,je=y.data?.resources.routing_trace,he=je?.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=[...he,...!he.includes("live")&&he.includes("none")&&be?.available&&xe.length?["query"]:[]],ke=!1!==je?.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 ne("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,ne]),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,o=t&&!m(t)?p(t,re.input.network,G,J,X):null,n=F(e,a,re.input.domain??void 0,l,o,!!o?.node&&V(o.node).length>0,T.busy,f,_);return{...n,rows:n.rows.map(e=>({...e,href:U(e.id,s&&Y.has(e.id))})),links:E(o,le,ae?ie.data?.providers:[],f),seed:P(re.input,e,r)}})??[],Line truncated
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
import{eL as t,bA as e,db as i,eR as n,fp as s,fq as o,eY as r,f5 as l,ff as a,fh as h,fr as d,eA as u,fs as c}from"./index-C4UFgHia.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
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,$ as t,j as a}from"./vendor-react-64fcanlc.js";import{g4 as n,bA as r,ft as l,fz as s,gf as i,d0 as o,gT as u,d7 as d,c$ as c,d2 as m,db as g,gs as h,dc as p,de as b,gp as f,dh as v,di as w,d1 as T,dk as y,dl as x,dj as P,dt as j,df as D,ds as C,aK as V,dq as M,gU as S,gx as E,B as F,dN as R,du as N,u as k,gV as I,bq as H,cA as K}from"./index-C4UFgHia.js";import{$ as z}from"./logs-j0cmmcZI.js";import{u as B,s as A,M as L,w as O,D as $}from"./wallpaper-CEC7gitM.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-W-Xrx6y6.js";import"./ItemText-B5OxI5lS.js";import"./AppearanceControls-I4PvP9Es.js";import"./nodes-BXUOUiP2.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 q=0,G=100,U=1;function W(t){const{isDisabled:a=!1,minValue:n=q,maxValue:r=G,numberFormatter:l,step:i=U,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]),d=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]),c=e.useMemo(()=>d(J(t.value)),[t.value,d]),m=e.useMemo(()=>d(J(t.defaultValue)??[n]),[t.defaultValue,n,d]),g=Q(t.value,t.defaultValue,t.onChange),b=Q(t.value,t.defaultValue,t.onChangeEnd);const[f,v]=p(c,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,j]=e.useState(void 0),D=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=_(D.current,e,t);var s;s=l,D.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&&(D.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(D.current)},focusedThumb:P,setFocusedThumb:j,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 J(e){if(null!=e)return Array.isArray(e)?e:[e]}function Q(e,t,a){return n=>{a?.("number"==typeof e||"number"==typeof t?n[0]:n)}}const Z=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,Z);let d=e.useRef(null),c=f(a.formatOptions),m=W({...a,numberFormatter:c}),[g,h]=v(!a["aria-label"]&&!a["aria-labelledby"]),{groupProps:p,trackProps:j,labelProps:D,outputProps:C}=function(t,a,u){let{labelProps:d,fieldProps:c}=n(t),m="vertical"===t.orientation;X.set(a,{id:d.id??c.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}=z({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(),d=((m?l:r)-(m?i:o))/(m?t:s);("rtl"===g||m)&&(d=1-d);let c,p=a.getPercentValue(d),f=a.values.findIndex(e=>p-e<0);if(0===f)c=f;else if(-1===f)c=a.values.length-1;else{let e=a.values[f-1],t=a.values[f];c=Math.abs(e-p)<Math.abs(t-p)?f-1:f}c>=0&&a.isThumbEditable(c)?(e.preventDefault(),b.current=c,a.setFocusedThumb(c),T.current=n,a.setThumbDragging(b.current,!0),a.setThumbValue(c,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
|
||||
@@ -0,0 +1 @@
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{u as s,cq as a,bR as o,cA as l}from"./index-C4UFgHia.js";import{D as t,p as d}from"./logs-j0cmmcZI.js";import{x as n}from"./Nodes-DIVmMRlP.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-W-Xrx6y6.js";import"./ItemText-B5OxI5lS.js";import"./AppearanceControls-I4PvP9Es.js";import"./nodes-BXUOUiP2.js";import"./Tabs-Kfe2CfSx.js";import"./useGridSelectionCheckbox-D0fV1e0v.js";import"./Table-DotwWze-.js";import"./Virtualizer-tkoH0e4V.js";import"./Checkbox-CUoHrzuV.js";import"./subscriptionEntries-CB_uX4nO.js";import"./SearchList-D75Ie4nx.js";import"./BackendText-CxshqKrW.js";import"./activity-C22CeO5G.js";import"./TimeCell-xtED_iww.js";import"./CardView-f0UIkdtH.js";import"./GridList-Cq8h6RdG.js";import"./Tag-DE8n6iTZ.js";import"./FlagPicker-DkMTBjLE.js";import"./SearchSelect-CSXz7lhe.js";import"./outbounds-CJznbPkH.js";import"./probe-CRm42H8E.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,compact:!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.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};
|
||||
@@ -0,0 +1 @@
|
||||
function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}export{e as g};
|
||||
@@ -0,0 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AreaChart-m_wmxFIp.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-C4UFgHia.js","./index-CQHYBvmE.css","./AreaCurve-DQSHOSpG.js","./array-C0VuvQyb.js","./nodes-BXUOUiP2.js","./logs-j0cmmcZI.js","./Select-W-Xrx6y6.js","./ItemText-B5OxI5lS.js","./AppearanceControls-I4PvP9Es.js","./Sparkline-IClrZGcQ.js","./Donut-DQU0_smr.js","./ModeReadOnlyHint-D73z908a.js","./limitHint-DIncl1LE.js","./Editors-7UGtyi9X.js","./GridList-Cq8h6RdG.js","./useGridSelectionCheckbox-D0fV1e0v.js","./Delete-D69JigFx.js","./Editors-rPgk_VZK.css","./index-Didrg8zX.js","./groupFilters-vTIJClEo.js","./geodata-CvcFemyc.js","./auth-BIagQEUo.js","./auth-BNrY15aC.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,w as i,$ as l,H as c,s as d,R as u,S as m,a as p,b as h,I as f,L as g,u as b,c as x,_ as v,e as y,f as j,N as w,T as k,g as N,i as M,j as _,k as S,B as C,E,C as L,l as z,P as R,m as P,p as O,q as A,r as q,t as I,v as T,A as D,x as H,y as F,z as $,D as B,F as V,G 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 oe,a4 as ie,a5 as le,a6 as ce,a7 as de,a8 as ue,a9 as me,aa as pe,ab as he,ac as fe,ad as ge,ae as be,af as xe,ag as ve,ah as ye,ai as 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 Re,au as Pe,av as Oe,aw as Ae,ax as qe,ay as Ie,az as Te,aA as De,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 ot,aW as it,aX as lt,aY as ct,aZ as dt,a_ as ut,a$ as mt,b0 as pt,b1 as ht,b2 as ft,b3 as gt,b4 as bt,b5 as xt,b6 as vt,b7 as yt,b8 as 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 Rt,bk as Pt,bl as Ot,bm as At,bn as qt,bo as It,bp as Tt,bq as Dt,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,bB as Xt,bC as Yt,bD as Zt,bE as Qt,bF as en,bG as tn,bH as nn}from"./index-C4UFgHia.js";import{r as sn,d as an,u as rn,c as on,s as ln,a as cn,b as dn,e as un,f as mn,g as pn,h as hn,i as fn,j as gn,k as bn,l as xn,n as vn,t as yn,m as jn,o as wn,p as kn,q as Nn,v as Mn,w as _n,x as Sn,y as Cn,z as En,A as Ln,B as zn,C as Rn,D as Pn,E as On,F as An,G as qn,H as In,I as Tn,J as Dn,K as Hn,L as Fn}from"./nodes-BXUOUiP2.js";import{W as $n,S as Bn,L as Vn,u as Wn,a as Gn,b as Un,c as Kn,e as Jn,l as Xn,d as Yn,f as Zn,g as Qn,h as es,V as ts,B as ns,i as ss,C as as,r as rs,K as os,D as is,M as ls,$ as cs,j as ds,k as us,m as ms,n as ps}from"./logs-j0cmmcZI.js";import{I as hs,C as fs}from"./ItemText-B5OxI5lS.js";import{C as gs,u as bs,D as xs,L as vs,P as ys,S as js,T as ws,a as ks,b as Ns}from"./AppearanceControls-I4PvP9Es.js";const Ms={"missing-offline-dependency":"config.diagnostic.offlineMissing","offline-dependency-denied":"config.diagnostic.offlineDenied","invalid-offline-dependency":"config.diagnostic.offlineInvalid","unreadable-offline-dependency":"config.diagnostic.offlineUnreadable"},_s=e=>Object.hasOwn(Ms,e);function Ss(e,t,n){return _s(e.code)?{summary:t("config.diagnostic.offline",{reason:t(Ms[e.code]),which:n?t("config.diagnostic.offlineGeodata",{files:n}):t("config.diagnostic.offlineUsual")})}:s(e,t)}const Cs=e=>[...new Set(e.flatMap(({item:e,message:t})=>e.message&&!t.includes(e.message)?[e.message]:[]))],Es=(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()]},Ls=(e,t)=>Es(e,t,sn),zs=(e,t)=>Es(e,t,e=>an(e).map(e=>({name:rn(e),written:e}))),Rs=e=>"<redacted>"===e.path||""===e.path,Ps=e=>Rs(e)?"main"===e.kind?"config.dae":`${e.kind}-${e.id.slice(0,8)}.dae`:e.path.split("/").pop()||"config.dae";function Os(e,t){const n=e.find(e=>"main"===e.kind);if(!n)return null;const s=[n,...e.filter(e=>"include"===e.kind&&!Rs(e))];return t&&!s.some(e=>e.id===t.id)?null:s.map(e=>({id:e.id,...Rs(e)?{}:{path:e.path},content:e.id===t?.id?t.content:e.content}))}const As=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})),qs=e=>As(e).length,Is=(e,t)=>e.filter(e=>{const n=e.key?.split(".").pop();return void 0!==n&&""!==n&&!t.some(e=>(e.content??"").includes(n))}),Ts={main:"config.kind.main",include:"config.kind.include",subscription:"nodes.kind.subscription",generated:"config.kind.generated"},Ds=(e,t)=>`${e}:${t}`;function Hs(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 Fs=(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 Bs(e,t){const n=e?.find(e=>e.name===t)?.id;return n?i("",{group:n}):""}function Vs(e,t,n){const s=t?.find(t=>t.name===e);return s?{label:s.name,href:a("policies",{group:s.id})}:{label:o(e,n),href:null}}const Ws=["network","domain","dst_ip","dst_port","src_ip","src_port","pname"],Gs=e=>i("",{tab:"trace",...Object.fromEntries(Ws.map(t=>[t,e[t]||null]))});function Us(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 Ks=a("settings",{card:"runtime"});function Js(e,t=on){return e?Hs(e,t):null}function Xs(e,t){const n=e.filter(e=>"main"===e.kind||"include"===e.kind);for(cLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
.rp-floating-frame{z-index:var(--rp-z-panel);inset-block:calc(var(--rp-topbar) + var(--rp-space-4) + env(safe-area-inset-top)) calc(var(--rp-dock) + var(--rp-space-4) + env(safe-area-inset-bottom));inset-inline:max(var(--rp-space-4), env(safe-area-inset-left)) max(var(--rp-space-4), env(safe-area-inset-right));pointer-events:none;flex-direction:column;justify-content:flex-end;align-items:flex-end;display:flex;position:fixed}.rp-floating-frame:after{content:"";flex:0 1 var(--rp-panel-y,0px);min-block-size:0}.rp-floating-frame[data-anchor=top]{justify-content:flex-start}.rp-floating-frame[data-anchor=top]:after{order:-1}.rp-floating-panel{pointer-events:auto;inline-size:min(var(--rp-panel-width), 100%);max-block-size:min(var(--rp-panel-height,480px), 100%);padding:var(--rp-space-4);border:1px solid var(--rp-popover-border);border-radius:var(--rp-r-lg);background:var(--rp-surface);box-shadow:var(--rp-elevated);gap:var(--rp-space-3);flex-direction:column;flex:none;margin-inline-end:var(--rp-panel-x,0px);display:flex;position:relative}.rp-floating-panel[data-collapsed]{min-inline-size:max-content}.rp-floating-frame[data-anchor=top] .rp-widget-collapse>svg{rotate:180deg}.rp-floating-frame[data-anchor=top] .rp-widget-collapse[aria-expanded=false]>svg{rotate:none}.rp-floating-panel>.rp-widget-panel,.rp-floating-panel .rp-widget-body{flex:auto}.rp-floating-panel>.rp-widget-panel{margin-block-end:calc(0px - var(--rp-space-4))}.rp-floating-panel>.rp-widget-panel>.rp-widget-body{border-end-end-radius:var(--rp-r-lg);border-end-start-radius:var(--rp-r-lg)}.rp-panel-head{flex:none;position:relative}.rp-panel-head>:not(.rp-panel-move){pointer-events:none;position:relative}.rp-panel-head :is(button,a,input,[role=button]){pointer-events:auto}.rp-panel-move{inset-block:calc(0px - var(--rp-space-4)) 0;inset-inline:calc(0px - var(--rp-space-4));cursor:move;touch-action:none;background:0 0;border:0;padding:0;position:absolute}.rp-panel-resize{z-index:1;touch-action:none;background:0 0;border:0;padding:0;position:absolute;inset:-1px}.rp-panel-resize[data-inline=start]{inset-inline-end:auto}.rp-panel-resize[data-inline=end]{inset-inline-start:auto}.rp-panel-resize[data-block=start]{inset-block-end:auto}.rp-panel-resize[data-block=end]{inset-block-start:auto}.rp-panel-resize:is([data-inline],[data-block]){inline-size:var(--rp-space-2);block-size:var(--rp-space-2);cursor:ew-resize}.rp-panel-resize:not([data-inline]){cursor:ns-resize;inline-size:auto}.rp-panel-resize:not([data-block]){block-size:auto}@media (pointer:coarse){.rp-panel-resize[data-inline]:not([data-block]){inline-size:var(--rp-space-4)}.rp-panel-resize[data-block]:not([data-inline]){block-size:var(--rp-space-4)}}.rp-panel-resize[data-inline][data-block]{z-index:2;inline-size:var(--rp-space-4);block-size:var(--rp-space-4);cursor:nwse-resize}.rp-panel-resize[data-inline=start][data-block=end],.rp-panel-resize[data-inline=end][data-block=start],.rp-panel-resize[data-inline=start][data-block=start]:dir(rtl),.rp-panel-resize[data-inline=end][data-block=end]:dir(rtl){cursor:nesw-resize}.rp-panel-resize[data-inline=start][data-block=end]:dir(rtl),.rp-panel-resize[data-inline=end][data-block=start]:dir(rtl){cursor:nwse-resize}:is(.rp-panel-resize,.rp-panel-move):focus-visible{outline:2px solid var(--rp-accent);outline-offset:-2px}.rp-panel-move:focus-visible{border-radius:var(--rp-r-lg) var(--rp-r-lg) 0 0}:root[data-panel-gesture]{-webkit-user-select:none;user-select:none}.rp-floating-panel[data-docking]{outline:2px solid var(--rp-accent)}.rp-floating-panel[data-edge]{transition:translate var(--rp-duration-panel) var(--rp-ease), visibility 0s}.rp-floating-panel[data-tucked]{translate:var(--rp-edge-shift);visibility:hidden;transition:translate var(--rp-duration-panel) var(--rp-ease), visibility 0s linear var(--rp-duration-panel)}.rp-edge-handle{box-sizing:border-box;inline-size:max-content;min-block-size:var(--rp-control);padding:var(--rp-space-1h) 0;border:1px solid var(--rp-popover-border);font:inherit;color:var(--rp-text);text-align:start;background:var(--rp-surface);box-shadow:var(--rp-elevated);pointer-events:auto;align-items:center;padding-inline-end:var(--rp-space-3);display:flex;position:fixed}.rp-edge-handle .rp-widget-backend{inline-size:var(--rp-control);justify-content:center;display:flex}.rp-widget-speed[data-reserve]:before{content:attr(data-reserve);block-size:0;visibility:hidden;padding-inline-start:calc(var(--rp-line-caption) + var(--rp-space-1))}.rp-edge-handle:is(:not([data-edge]),[data-out]){visibility:hidden}.rp-edge-handle:is([data-edge=left],[data-edge=right]){top:var(--rp-edge-at)}.rp-edge-handle:is([data-edge=top],[data-edge=bottom]){left:var(--rp-edge-at)}.rp-edge-handle[data-edge=right]{border-radius:var(--rp-r-lg) 0 0 var(--rp-r-lg);border-right:0;right:0}.rp-edge-handle[data-edge=left]{border-radius:0 var(--rp-r-lg) var(--rp-r-lg) 0;border-left:0;left:0}.rp-edge-handle[data-edge=top]{border-radius:0 0 var(--rp-r-lg) var(--rp-r-lg);border-top:0;top:Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
:root[data-family=antd]{--rp-base:#f5f5f5;--rp-surface:#fff;--rp-overlay:#0000000f;--rp-muted:#00000040;--rp-subtle:#00000073;--rp-text:#000000e0;--rp-love:#ff4d4f;--rp-gold:#faad14;--rp-rose:#fa8c16;--rp-pine:#1677ff;--rp-foam:#52c41a;--rp-iris:#722ed1;--rp-c1:#5b8ff9;--rp-c2:#5ad8a6;--rp-c3:#5d7092;--rp-c4:#f6bd16;--rp-c5:#6f5ef9;--rp-c6:#6dc8ec;--rp-c7:#945fb9;--rp-c8:#ff9845;--rp-hl-low:#f0f0f0;--rp-hl-med:#d9d9d9;--rp-hl-high:#00000026;--rp-on-accent:var(--rp-text);--rp-on-text:#fff;--rp-line:#f0f0f0;--rp-shadow:0 1px 2px #00000008, 0 1px 6px -1px #00000005, 0 2px 4px #00000005;--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=antd][data-scheme=dark]{--rp-base:#000;--rp-surface:#141414;--rp-overlay:#ffffff14;--rp-muted:#ffffff40;--rp-subtle:#ffffff73;--rp-text:#ffffffd9;--rp-love:#dc4446;--rp-gold:#d89614;--rp-rose:#d87a16;--rp-pine:#1668dc;--rp-foam:#49aa19;--rp-iris:#642ab5;--rp-c1:#5b8ff9;--rp-c2:#5ad8a6;--rp-c3:#5d7092;--rp-c4:#f6bd16;--rp-c5:#e86452;--rp-c6:#6dc8ec;--rp-c7:#945fb9;--rp-c8:#ff9845;--rp-hl-low:#303030;--rp-hl-med:#424242;--rp-hl-high:#ffffff2e;--rp-on-accent:#fff;--rp-on-positive:var(--rp-base);--rp-on-negative:var(--rp-base);--rp-on-notice:var(--rp-base);--rp-on-text:#141414;--rp-line:#303030;--rp-shadow:0 1px 2px #00000008, 0 1px 6px -1px #00000005, 0 2px 4px #00000005;--rp-notice-text:var(--rp-notice);--rp-positive-text:var(--rp-positive)}
|
||||
@@ -0,0 +1 @@
|
||||
:root[data-family=arco]{--rp-base:#fff;--rp-surface:#fff;--rp-overlay:#f2f3f5;--rp-muted:#c9cdd4;--rp-subtle:#86909c;--rp-text:#1d2129;--rp-love:#f53f3f;--rp-gold:#f7ba1e;--rp-rose:#ff7d00;--rp-pine:#165dff;--rp-foam:#00b42a;--rp-iris:#722ed1;--rp-c1:#4080ff;--rp-c2:#4cd263;--rp-c3:#a871e3;--rp-c4:#ff7d00;--rp-c5:#14c9c9;--rp-c6:#f979b7;--rp-c7:#f7ba1e;--rp-c8:#9fdb1d;--rp-hl-low:#f2f3f5;--rp-hl-med:#e5e6eb;--rp-hl-high:#c9cdd4;--rp-on-accent:#fff;--rp-on-text:#fff;--rp-line:#e5e6eb;--rp-shadow:0 2px 5px #0000001a;--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=arco][data-scheme=dark]{--rp-base:#17171a;--rp-surface:#232324;--rp-overlay:#ffffff14;--rp-muted:#ffffff4d;--rp-subtle:#ffffff80;--rp-text:#ffffffe6;--rp-love:#f76965;--rp-gold:#f9cc44;--rp-rose:#ff9626;--rp-pine:#3c7eff;--rp-foam:#27c346;--rp-iris:#8e51da;--rp-c1:#306fff;--rp-c2:#129a37;--rp-c3:#5a25b0;--rp-c4:#ff9626;--rp-c5:#3fd4cf;--rp-c6:#cb2b88;--rp-c7:#f9cc44;--rp-c8:#b8e24b;--rp-hl-low:#ffffff14;--rp-hl-med:#333335;--rp-hl-high:#ffffff29;--rp-on-accent:var(--rp-base);--rp-on-notice:var(--rp-on-accent);--rp-on-text:#17171a;--rp-line:#333335;--rp-shadow:0 2px 5px #0000001a;--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)}
|
||||
@@ -0,0 +1 @@
|
||||
function t(t){return function(){return t}}const i=Math.PI,s=2*i,h=1e-6,n=s-h;function e(t){this._+=t[0];for(let i=1,s=t.length;i<s;++i)this._+=arguments[i]+t[i]}class _{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?e:function(t){let i=Math.floor(t);if(!(i>=0))throw new Error(`invalid digits: ${t}`);if(i>15)return e;const s=10**i;return function(t){this._+=t[0];for(let i=1,h=t.length;i<h;++i)this._+=Math.round(arguments[i]*s)/s+t[i]}}(t)}moveTo(t,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+i}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,i){this._append`L${this._x1=+t},${this._y1=+i}`}quadraticCurveTo(t,i,s,h){this._append`Q${+t},${+i},${this._x1=+s},${this._y1=+h}`}bezierCurveTo(t,i,s,h,n,e){this._append`C${+t},${+i},${+s},${+h},${this._x1=+n},${this._y1=+e}`}arcTo(t,s,n,e,_){if(t=+t,s=+s,n=+n,e=+e,(_=+_)<0)throw new Error(`negative radius: ${_}`);let r=this._x1,a=this._y1,$=n-t,o=e-s,l=r-t,p=a-s,u=l*l+p*p;if(null===this._x1)this._append`M${this._x1=t},${this._y1=s}`;else if(u>h)if(Math.abs(p*$-o*l)>h&&_){let c=n-r,d=e-a,f=$*$+o*o,x=c*c+d*d,y=Math.sqrt(f),M=Math.sqrt(u),g=_*Math.tan((i-Math.acos((f+u-x)/(2*y*M)))/2),w=g/M,v=g/y;Math.abs(w-1)>h&&this._append`L${t+w*l},${s+w*p}`,this._append`A${_},${_},0,0,${+(p*c>l*d)},${this._x1=t+v*$},${this._y1=s+v*o}`}else this._append`L${this._x1=t},${this._y1=s}`;else;}arc(t,e,_,r,a,$){if(t=+t,e=+e,$=!!$,(_=+_)<0)throw new Error(`negative radius: ${_}`);let o=_*Math.cos(r),l=_*Math.sin(r),p=t+o,u=e+l,c=1^$,d=$?r-a:a-r;null===this._x1?this._append`M${p},${u}`:(Math.abs(this._x1-p)>h||Math.abs(this._y1-u)>h)&&this._append`L${p},${u}`,_&&(d<0&&(d=d%s+s),d>n?this._append`A${_},${_},0,1,${c},${t-o},${e-l}A${_},${_},0,1,${c},${this._x1=p},${this._y1=u}`:d>h&&this._append`A${_},${_},0,${+(d>=i)},${c},${this._x1=t+_*Math.cos(a)},${this._y1=e+_*Math.sin(a)}`)}rect(t,i,s,h){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+i}h${s=+s}v${+h}h${-s}Z`}toString(){return this._}}function r(t){let i=3;return t.digits=function(s){if(!arguments.length)return i;if(null==s)i=null;else{const t=Math.floor(s);if(!(t>=0))throw new RangeError(`invalid digits: ${s}`);i=t}return t},()=>new _(i)}function a(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}export{a,t as c,r as w};
|
||||
@@ -0,0 +1 @@
|
||||
import{D as e}from"./auth-BNrY15aC.js";import{A as t,bV as o}from"./index-C4UFgHia.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};
|
||||
@@ -0,0 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./auth-BIagQEUo.js","./index-C4UFgHia.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-CQHYBvmE.css"])))=>i.map(i=>d[i]);
|
||||
import{bK as a,eo as t,ep as o,v as n,_ as e}from"./index-C4UFgHia.js";const i=(a,t)=>new URL(a.replace(/\/+$/,"")+t,globalThis.location?.href),s=()=>e(()=>import("./auth-BIagQEUo.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),c={username:"demo",password:"demo"},r=["dae/honk-native"];async function p(e,c){if(a(e))return(await s()).mockDiscovery();const p=await t(i(e,"/api"),{headers:{Accept:"application/json"},cache:"no-store",signal:c});if(!p.ok)throw await o(p);const u=await p.json();if(void 0!==u.name&&r.includes(u.name))throw new n("login.engineOutdated");return u.auth}async function u(a,o){const n=await t(i(a,"/api/v1/capabilities"),{headers:{Accept:"application/json"},cache:"no-store",signal:o});return n.body?.cancel().catch(()=>{}),404!==n.status}function h(a){return"password"!==a.mode?"token":a.setup_required?"setup":"login"}async function d(n,e,c,r){if(a(n))return(await s()).mockOpenSession(e,c);const p=await t(i(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 l(n,e,s){if(a(n))return;const c=await t(i(n,"/api/v1/auth/logout"),{method:"POST",headers:{Accept:"application/json",Authorization:"Bearer "+e},cache:"no-store",signal:s});if(!c.ok&&401!==c.status)throw await o(c,"POST");c.body?.cancel().catch(()=>{})}export{c as D,u as a,l as c,p as d,d as o,h as s};
|
||||
@@ -0,0 +1 @@
|
||||
: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;--rp-hl-med:#51576d;--rp-hl-high:#626880;--rp-shadow:0 1px 2px #0000004d;--rp-accent-tile-text:var(--rp-text);--rp-positive-tile-text:var(--rp-text);--rp-info-tile-text:var(--rp-text);--rp-subtle-text:var(--rp-text)}:root[data-flavour=macchiato][data-scheme=dark]{--rp-base:#1e2030;--rp-surface:#24273a;--rp-overlay:#363a4f;--rp-muted:#6e738d;--rp-subtle:#a5adcb;--rp-text:#cad3f5;--rp-love:#ed8796;--rp-gold:#eed49f;--rp-rose:#f5a97f;--rp-pine:#8aadf4;--rp-foam:#8bd5ca;--rp-iris:#c6a0f6;--rp-c1:#8aadf4;--rp-c2:#8bd5ca;--rp-c3:#c6a0f6;--rp-c4:#f5a97f;--rp-c5:#a6da95;--rp-c6:#f5bde6;--rp-c7:#eed49f;--rp-c8:#ed8796;--rp-hl-low:#363a4f;--rp-hl-med:#494d64;--rp-hl-high:#5b6078;--rp-shadow:0 1px 2px #00000059;--rp-accent-tile-text:var(--rp-text);--rp-info-tile-text:var(--rp-text);--rp-subtle-text:var(--rp-text)}
|
||||
@@ -0,0 +1 @@
|
||||
const t=/^(global|dns|upstream|routing|request|response|subscription|node|group|include|fallback)\b(?!\s*\()/,s=()=>({afterArrow:!1});function r(s,r){return s.sol()&&(r.afterArrow=!1),s.eatSpace()?null:s.match("#")?(s.skipToEnd(),"comment"):s.match(/^'[^']*'/)||s.match(/^"[^"]*"/)?"string":s.match("->")?(r.afterArrow=!0,"operator"):r.afterArrow&&s.match(/^[\w.-]+/)?(r.afterArrow=!1,"keyword"):(s.sol()||""===s.string.slice(0,s.pos).trim())&&s.match(t)?"keyword":s.match(/^\d+(\.\d+)*(\/\d+)?[a-z]*/)?"number":s.match(/^[\w.-]+(?=\s*\()/)?"propertyName":s.match(/^[\w.-]+(?=\s*:)/)?"variableName":s.match(/^[A-Za-z_][\w.-]*/)?null:s.match(/^[{}()&|!,:]/)?"punctuation":(s.next(),null)}class e{pos=0;string;constructor(t){this.string=t}sol(){return 0===this.pos}eatSpace(){const t=/^\s+/.exec(this.string.slice(this.pos));return!!t&&(this.pos+=t[0].length,!0)}match(t){const s="string"==typeof t?this.string.slice(this.pos).startsWith(t)&&t:t.exec(this.string.slice(this.pos));return s&&(this.pos+="string"==typeof s?s.length:s[0].length),s}skipToEnd(){this.pos=this.string.length}next(){return this.pos<this.string.length?this.string[this.pos++]:void 0}}function n(t){const s=[],n=t.split("\n"),o={afterArrow:!1};return n.forEach((t,i)=>{const a=new e(t);for(;a.pos<t.length;){const e=a.pos,n=r(a,o);s.push({text:t.slice(e,a.pos),type:n})}i<n.length-1&&s.push({text:"\n",type:null})}),s}export{r as d,s,n as t};
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 37 KiB |
@@ -0,0 +1 @@
|
||||
function e(e,t){return`${e}-${(new Date).toISOString().slice(0,19).replace(/[:T]/g,"-")}.${t}`}function t(e,t,n){const r=URL.createObjectURL(new Blob([t],{type:n})),c=document.createElement("a");c.href=r,c.download=e,document.body.append(c),c.click(),c.remove(),setTimeout(()=>URL.revokeObjectURL(r),1e3)}function n(e){return e.map(e=>null==e?"":/[",\r\n]/.test(String(e))?'"'+String(e).replace(/"/g,'""')+'"':String(e)).join(",")}export{n as c,t as d,e};
|
||||
@@ -0,0 +1 @@
|
||||
import{ag as e,fI as n,r as t,fJ as r,fL as s,az as a,fK as o,dw as i,fW as l}from"./index-C4UFgHia.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 @@
|
||||
@font-face{font-family:Noto Sans TC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-tc-cyrillic-wght-normal-DHeihy9e.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans TC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-tc-vietnamese-wght-normal-B77OGAeV.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans TC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-tc-latin-ext-wght-normal-BFabhjDY.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans TC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-tc-latin-wght-normal-CjMECRfU.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;ascent-override:100%;descent-override:20%;line-gap-override:0%}
|
||||
@@ -0,0 +1 @@
|
||||
@font-face{font-family:Noto Sans SC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-sc-4-wght-normal-BRbPMj-C.woff2)format("woff2");unicode-range:U+1F1E9-1F1F5,U+1F1F7-1F1FF,U+1F21A,U+1F232,U+1F234-1F237,U+1F250-1F251,U+1F300,U+1F302-1F308,U+1F30A-1F311,U+1F315,U+1F319-1F320,U+1F324,U+1F327,U+1F32A,U+1F32C-1F32D,U+1F330-1F357,U+1F359-1F37E;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans SC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-sc-5-wght-normal-DI846rD9.woff2)format("woff2");unicode-range:U+FEE3,U+FEF3,U+FF03-FF04,U+FF07,U+FF0A,U+FF17-FF19,U+FF1C-FF1D,U+FF20-FF3A,U+FF3C,U+FF3E-FF5B,U+FF5D,U+FF61-FF65,U+FF67-FF6A,U+FF6C,U+FF6F-FF78,U+FF7A-FF7D,U+FF80-FF84,U+FF86,U+FF89-FF8E,U+FF92,U+FF97-FF9B,U+FF9D-FF9F,U+FFE0-FFE4,U+FFE6,U+FFE9,U+FFEB,U+FFED,U+FFFC,U+1F004,U+1F170-1F171,U+1F192-1F195,U+1F198-1F19A,U+1F1E6-1F1E8;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans SC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-sc-6-wght-normal-ozUCEY9O.woff2)format("woff2");unicode-range:U+F0A7,U+F0B2,U+F0B7,U+F0C9,U+F0D8,U+F0DA,U+F0DC-F0DD,U+F0E0,U+F0E6,U+F0EB,U+F0FC,U+F101,U+F104-F105,U+F107,U+F10B,U+F11B,U+F14B,U+F18A,U+F193,U+F1D6-F1D7,U+F244,U+F27A,U+F296,U+F2AE,U+F471,U+F4B3,U+F610-F611,U+F880-F881,U+F8EC,U+F8F5,U+F8FF,U+F901,U+F90A,U+F92C-F92D,U+F934,U+F937,U+F941,U+F965,U+F967,U+F969,U+F96B,U+F96F,U+F974,U+F978-F979,U+F97E,U+F981,U+F98A,U+F98E,U+F997,U+F99C,U+F9B2,U+F9B5,U+F9BA,U+F9BE,U+F9CA,U+F9D0-F9D1,U+F9DD,U+F9E0-F9E1,U+F9E4,U+F9F7,U+FA00-FA01,U+FA08,U+FA0A,U+FA11,U+FB01-FB02,U+FDFC,U+FE0E,U+FE30-FE31,U+FE33-FE44,U+FE49-FE52,U+FE54-FE57,U+FE59-FE66,U+FE68-FE6B,U+FE8E,U+FE92-FE93,U+FEAE,U+FEB8,U+FECB-FECC,U+FEE0;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans SC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-sc-21-wght-normal-DIu_1ZBI.woff2)format("woff2");unicode-range:U+9F83,U+9F85-9F8D,U+9F90-9F91,U+9F94-9F96,U+9F98,U+9F9B-9F9C,U+9F9E,U+9FA0,U+9FA2,U+9FF?,U+A001,U+A007,U+A025,U+A046-A047,U+A057,U+A072,U+A078-A079,U+A083,U+A085,U+A100,U+A118,U+A132,U+A134,U+A1F4,U+A242,U+A4A6,U+A4AA,U+A4B0-A4B1,U+A4B3,U+A9C1-A9C2,U+AC00-AC01,U+AC04,U+AC08,U+AC10-AC11,U+AC13-AC16,U+AC19,U+AC1C-AC1D,U+AC24,U+AC70-AC71,U+AC74,U+AC77-AC78,U+AC80-AC81,U+AC83,U+AC8C,U+AC90,U+AC9F-ACA0,U+ACA8-ACA9,U+ACAC,U+ACB0,U+ACBD,U+ACC1,U+ACC4,U+ACE0-ACE1,U+ACE4,U+ACE8,U+ACF3,U+ACF5,U+ACFC-ACFD,U+AD00,U+AD0C,U+AD11,U+AD1C,U+AD34,U+AD50,U+AD64,U+AD6C,U+AD70,U+AD74,U+AD7F,U+AD81,U+AD8C,U+ADC0,U+ADC8,U+ADDC,U+ADE0,U+ADF8-ADF9,U+ADFC,U+AE00,U+AE08-AE09,U+AE0B,U+AE30,U+AE34,U+AE38,U+AE40,U+AE4A,U+AE4C,U+AE54,U+AE68,U+AEBC,U+AED8,U+AF2C-AF2D;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans SC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-sc-22-wght-normal-VXjdYcT-.woff2)format("woff2");unicode-range:U+9E30-9E33,U+9E35-9E3B,U+9E3E,U+9E40-9E44,U+9E46-9E4E,U+9E51,U+9E53,U+9E55-9E58,U+9E5A-9E5C,U+9E5E-9E63,U+9E66-9E6E,U+9E71,U+9E73,U+9E75,U+9E78-9E79,U+9E7C-9E7E,U+9E82,U+9E86-9E88,U+9E8B-9E8C,U+9E90-9E91,U+9E93,U+9E95,U+9E97,U+9E9D,U+9EA4-9EA5,U+9EA9-9EAA,U+9EB4-9EB5,U+9EB8-9EBA,U+9EBC-9EBF,U+9EC3,U+9EC9,U+9ECD,U+9ED0,U+9ED2-9ED3,U+9ED5-9ED6,U+9ED9,U+9EDC-9EDD,U+9EDF-9EE0,U+9EE2,U+9EE5,U+9EE7-9EEA,U+9EEF,U+9EF1,U+9EF3-9EF4,U+9EF6,U+9EF9,U+9EFB-9EFC,U+9EFE,U+9F0B,U+9F0D,U+9F10,U+9F14,U+9F17,U+9F19,U+9F22,U+9F29,U+9F2C,U+9F2F,U+9F31,U+9F37,U+9F39,U+9F3D-9F3E,U+9F41,U+9F4A-9F4B,U+9F51-9F52,U+9F61-9F63,U+9F66-9F67,U+9F80-9F81;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans SC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-sc-23-wght-normal-4HrHKhpL.woff2)format("woff2");unicode-range:U+9C82-9C83,U+9C85-9C8C,U+9C8E-9C92,U+9C94-9C9B,U+9C9E-9CA3,U+9CA5-9CA7,U+9CA9,U+9CAB,U+9CAD-9CAE,U+9CB1-9CB7,U+9CB9-9CBD,U+9CBF-9CC0,U+9CC3,U+9CC5-9CC7,U+9CC9-9CD1,U+9CD3-9CDA,U+9CDC-9CDD,U+9CDF,U+9CE1-9CE3,U+9CE5,U+9CE9,U+9CEE-9CEF,U+9CF3-9CF4,U+9CF6,U+9CFC-9CFD,U+9D02,U+9D08-9D09,U+9D12,U+9D1B,U+9D1E,U+9D26,U+9D28,U+9D37,U+9D3B,U+9D3F,U+9D51,U+9D59,U+9D5C-9D5D,U+9D5F-9D61,U+9D6C,U+9D70,U+9D72,U+9D7A,U+9D7E,U+9D84,U+9D89,U+9D8F,U+9D92,U+9DAF,U+9DB4,U+9DB8,U+9DBC,U+9DC4,U+9DC7,U+9DC9,U+9DD7,U+9DDF,U+9DF2,U+9DF9-9DFA,U+9E0A,U+9E11,U+9E1A,U+9E1E,U+9E20,U+9E22,U+9E28-9E2C,U+9E2E-9E2F;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans SC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-sc-24-wght-normal-B58DWgHS.woff2)format("woff2");unicode-range:U+9A80,U+9A83,U+9A85,U+9A88-9A8A,U+9A8D-9A8E,U+9A90,U+9A92-9A93,U+9A95-9A96,U+9A98-9A99,U+9A9B-9AA2,U+9AA5,U+9AA7,U+9AAF-9AB1,U+9AB5-9AB6,U+9AB9-9ABA,U+9AC0-9AC4,U+9AC8,U+9ACB-9ACC,Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
@font-face{font-family:Noto Sans TC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-tc-0-wght-normal-AlCjBspo.woff2)format("woff2");unicode-range:U+1F921-1F930,U+1F932-1F935,U+1F937-1F939,U+1F940-1F944,U+1F947-1F94A,U+1F95?,U+1F962-1F967,U+1F969-1F96A,U+1F980-1F981,U+1F984-1F98D,U+1F990-1F992,U+1F994-1F996,U+1F9C0,U+1F9D0,U+1F9D2,U+1F9D4,U+1F9D6,U+1F9D8,U+1F9DA,U+1F9DC-1F9DD,U+1F9DF-1F9E2,U+1F9E5-1F9E6,U+20024,U+20487,U+20779,U+20C41,U+20C78,U+20D71,U+20E98,U+20EF9,U+2107B,U+210C1,U+22C51,U+233B4,U+24A12,U+2512B,U+2546E,U+25683,U+267CC,U+269F2,U+27657,U+282E2,U+2898D,U+29D5A,U+F0001-F0005,U+F0019,U+F009B,U+F0101-F0104,U+F012B,U+F01BA,U+F01D6,U+F0209,U+F0217,U+F0223-F0224,U+FC355,U+FE327,U+FE517,U+FEB97,U+FFFB4;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans TC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-tc-6-wght-normal-WPkr41zz.woff2)format("woff2");unicode-range:U+FF78-FF7E,U+FF80-FF86,U+FF89-FF94,U+FF97-FF9E,U+FFB9,U+FFE0-FFE3,U+FFE9,U+FFEB,U+FFED,U+FFFC,U+1D7C7,U+1F004,U+1F0CF,U+1F141-1F142,U+1F150,U+1F154,U+1F158,U+1F15B,U+1F15D-1F15E,U+1F162-1F163,U+1F170-1F171,U+1F174,U+1F177-1F178,U+1F17D-1F17F,U+1F192-1F195,U+1F197-1F19A,U+1F1E6-1F1F5,U+1F1F7-1F1FF,U+1F21A,U+1F22F,U+1F232-1F237,U+1F239-1F23A,U+1F250-1F251,U+1F300,U+1F302-1F319;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans TC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-tc-7-wght-normal-foGylaCC.woff2)format("woff2");unicode-range:U+FA0A,U+FA0C,U+FA11,U+FA17,U+FA19,U+FA1B,U+FA1D,U+FA26,U+FA2C,U+FB01,U+FDFC,U+FE0E,U+FE33-FE36,U+FE38-FE44,U+FE49-FE51,U+FE54,U+FE56-FE57,U+FE59-FE5C,U+FE5F-FE6A,U+FE8E,U+FE92-FE93,U+FEAE,U+FECB-FECC,U+FEE0,U+FEEC,U+FEF3,U+FF04,U+FF07,U+FF26-FF2C,U+FF31-FF32,U+FF35-FF37,U+FF39-FF3A,U+FF3C,U+FF3E-FF5B,U+FF5D,U+FF61-FF65,U+FF67-FF68,U+FF6A,U+FF6C-FF77;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans TC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-tc-8-wght-normal-BHOicRI8.woff2)format("woff2");unicode-range:U+F78A-F78C,U+F78E,U+F792-F796,U+F798,U+F79C,U+F7F5,U+F812,U+F815,U+F876,U+F8F5,U+F8F8,U+F8FF,U+F901-F902,U+F904,U+F906,U+F909-F90A,U+F90F,U+F914,U+F918-F919,U+F91B,U+F91D,U+F91F,U+F923,U+F925,U+F92D-F92F,U+F934,U+F937-F938,U+F93D,U+F93F,U+F941,U+F949,U+F94C,U+F94E-F94F,U+F95A,U+F95D-F95E,U+F961-F963,U+F965-F970,U+F974,U+F976-F97A,U+F97C,U+F97E-F97F,U+F981,U+F983,U+F988,U+F98A,U+F98C,U+F98E,U+F996-F997,U+F999-F99A,U+F99C,U+F99F-F9A0,U+F9A3,U+F9A8,U+F9AD,U+F9B2-F9B6,U+F9B9-F9BA,U+F9BD-F9BE,U+F9C1,U+F9C4,U+F9C7,U+F9CA,U+F9CD,U+F9D0-F9D1,U+F9D3-F9D4,U+F9D7-F9D8,U+F9DC-F9DD,U+F9DF-F9E1,U+F9E4,U+F9E8-F9EA,U+F9F4,U+F9F6-F9F7,U+F9F9-F9FA,U+F9FC-FA01,U+FA03-FA04,U+FA06,U+FA08-FA09;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans TC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-tc-19-wght-normal-C8pGE9DU.woff2)format("woff2");unicode-range:U+9EE5,U+9EE7,U+9EEE,U+9EF3-9EF4,U+9EF6-9EF7,U+9EF9,U+9EFB-9EFD,U+9EFF,U+9F07-9F09,U+9F10,U+9F14-9F15,U+9F19,U+9F22,U+9F29,U+9F2C,U+9F2F,U+9F31,U+9F34,U+9F37,U+9F39,U+9F3D-9F3E,U+9F41,U+9F4C-9F50,U+9F54,U+9F57,U+9F59,U+9F5C,U+9F5F-9F60,U+9F62-9F63,U+9F66-9F67,U+9F6A,U+9F6C,U+9F72,U+9F76-9F77,U+9F7F,U+9F84-9F85,U+9F88,U+9F8E,U+9F91,U+9F94-9F96,U+9F98,U+9F9A-9F9B,U+9F9F-9FA0,U+9FA2,U+9FA4,U+9FF?,U+A1F4,U+A4B0-A4B1,U+A4B3,U+A9C1-A9C2,U+AA31,U+AB34,U+AC00-AC01,U+AC04,U+AC08,U+AC10-AC11,U+AC13-AC16,U+AC19,U+AC1C-AC1D,U+AC24,U+AC70-AC71,U+AC74,U+AC77-AC78,U+AC80-AC81,U+AC83,U+AC8C,U+AC90,U+ACA0,U+ACA8-ACA9,U+ACAC,U+ACB0,U+ACB8-ACB9,U+ACBC-ACBD,U+ACC1,U+ACC4,U+ACE0-ACE1,U+ACE4,U+ACE8,U+ACF0-ACF1,U+ACF3,U+ACF5,U+ACFC;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans TC;font-style:normal;font-weight:100 900;font-display:optional;src:url(../fonts/noto-sans-tc-20-wght-normal-C3zSSq0m.woff2)format("woff2");unicode-range:U+9D77,U+9D7A,U+9D7E,U+9D87,U+9D89,U+9D8F,U+9D91-9D93,U+9D96,U+9D98,U+9D9A,U+9DA1-9DA2,U+9DA5,U+9DA9,U+9DAB-9DAC,U+9DB1-9DB2,U+9DB5,U+9DB9-9DBC,U+9DBF-9DC2,U+9DC4,U+9DC7-9DC9,U+9DD3,U+9DD6,U+9DD9-9DDA,U+9DDE-9DDF,U+9DE2,U+9DE5-9DE6,U+9DE8,U+9DEF-9DF0,U+9DF2-9DF4,U+9DF8,U+9DFA,U+9DFD,U+9DFF,U+9E02,U+9E07,U+9E0A,U+9E11,U+9E15,U+9E18,U+9E1A-9E1B,U+9E1D-9E1E,U+9E20-9E23,U+9E25-9E26,U+9E2D,U+9E2F,U+9E33,U+9E35,U+9E3D-9E3F,U+9E42-9E43,U+9E45,U+9E48-9E4A,U+9E4C,U+9E4F,U+9E51,U+9E55,U+9E64,U+9E66,U+9E6B,U+9E6D-9E6E,U+9E70,U+9E73,U+9E75,U+9E78,U+9E80-9E83,U+9E87-9E88,U+9E8B-9E8C,U+9E90-9E91,U+9E93,U+9E96,U+9E9D,U+9EA1,U+9EA4,U+9EA6,U+9EA9-9EAB,U+9EAD,U+9EAF,U+9EB4,U+9EB7-9EBA,U+9EBE-9EBF,U+9ECC-9ECD,U+9ED0,U+9ED2,U+9ED4,U+9ED9-9EDA,U+9EDC-9EDD,U+9EDF-9EE0,U+9EE2;ascent-override:100%;descent-override:20%;line-gap-override:0%}@font-face{font-family:Noto Sans TC;foLine truncated
|
||||
@@ -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};
|
||||
@@ -0,0 +1 @@
|
||||
import{K as e,aR as t,bJ as a}from"./index-C4UFgHia.js";import"./vendor-react-64fcanlc.js";import{s}from"./nodes-BXUOUiP2.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};
|
||||
@@ -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-piYllnzE.css",import.meta.url).href,o=()=>s("glass",e);r();export{o as linkStylesheet};
|
||||
@@ -0,0 +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
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
@@ -0,0 +1 @@
|
||||
import{$ as e,u as a}from"./nodes-BXUOUiP2.js";import{ad as t}from"./index-C4UFgHia.js";const n=String.raw`\p{Alphabetic}\p{M}\p{Nd}\p{Pc}\p{Join_Control}`,i={d:String.raw`\p{Nd}`,D:String.raw`\P{Nd}`,s:String.raw`\p{White_Space}`,S:String.raw`\P{White_Space}`,w:`[${n}]`,W:`[^${n}]`},[r,o,s,c]=[`(?<=[${n}])`,`(?<![${n}])`,`(?=[${n}])`,`(?![${n}])`],l={b:`(?:${r}${c}|${o}${s})`,B:`(?:${r}${s}|${o}${c})`,start:`${o}${s}`,end:`${r}${c}`,"start-half":o,"end-half":c};l["<"]=l.start,l[">"]=l.end;const u={alnum:"0-9A-Za-z",alpha:"A-Za-z",ascii:String.raw`\x00-\x7F`,blank:String.raw`\t `,cntrl:String.raw`\x00-\x1F\x7F`,digit:"0-9",graph:"!-~",lower:"a-z",print:" -~",punct:String.raw`!-\/:-@\[-\`\{-~`,space:String.raw`\t\n\v\f\r `,upper:"A-Z",word:"0-9A-Za-z_",xdigit:"0-9A-Fa-f"},_={a:7,f:12,t:9,n:10,r:13,v:11},h=e=>/^[\w -]*$/.test(e)?e.replace(/[ _-]/g,"").toLowerCase():"",g=e=>new Map(e.split(/\s+/).map(e=>[h(e),e])),p=g("ASCII ASCII_Hex_Digit Alphabetic Any Assigned Bidi_Control Bidi_Mirrored Case_Ignorable Cased Changes_When_Casefolded\n Changes_When_Casemapped Changes_When_Lowercased Changes_When_Titlecased Changes_When_Uppercased Dash Default_Ignorable_Code_Point Deprecated Diacritic Emoji\n Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extended_Pictographic Extender Grapheme_Base Grapheme_Extend Hex_Digit\n IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideographic Join_Control Logical_Order_Exception Lowercase Math Noncharacter_Code_Point\n Pattern_Syntax Pattern_White_Space Quotation_Mark Radical Regional_Indicator Sentence_Terminal Soft_Dotted Terminal_Punctuation Unified_Ideograph Uppercase\n Variation_Selector White_Space XID_Continue XID_Start"),d=g("C Other Cc Control Cf Format Cn Unassigned Co Private_Use L Letter LC Cased_Letter Ll Lowercase_Letter Lm Modifier_Letter Lo\n Other_Letter Lt Titlecase_Letter Lu Uppercase_Letter M Mark Mc Spacing_Mark Me Enclosing_Mark Mn Nonspacing_Mark N Number Nd Decimal_Number Nl Letter_Number\n No Other_Number P Punctuation Pc Connector_Punctuation Pd Dash_Punctuation Pe Close_Punctuation Pf Final_Punctuation Pi Initial_Punctuation Po\n Other_Punctuation Ps Open_Punctuation S Symbol Sc Currency_Symbol Sk Modifier_Symbol Sm Math_Symbol So Other_Symbol Z Separator Zl Line_Separator Zp\n Paragraph_Separator Zs Space_Separator"),f=g("Adlam Ahom Anatolian_Hieroglyphs Arabic Armenian Avestan Balinese Bamum Bassa_Vah Batak Bengali Bhaiksuki Bopomofo Brahmi Braille\n Buginese Buhid Canadian_Aboriginal Carian Caucasian_Albanian Chakma Cham Cherokee Chorasmian Common Coptic Cuneiform Cypriot Cypro_Minoan Cyrillic Deseret\n Devanagari Dives_Akuru Dogra Duployan Egyptian_Hieroglyphs Elbasan Elymaic Ethiopic Garay Georgian Glagolitic Gothic Grantha Greek Gujarati Gunjala_Gondi\n Gurmukhi Gurung_Khema Han Hangul Hanifi_Rohingya Hanunoo Hatran Hebrew Hiragana Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian\n Javanese Kaithi Kannada Katakana Kawi Kayah_Li Kharoshthi Khitan_Small_Script Khmer Khojki Khudawadi Kirat_Rai Lao Latin Lepcha Limbu Linear_A Linear_B Lisu\n Lycian Lydian Mahajani Makasar Malayalam Mandaic Manichaean Marchen Masaram_Gondi Medefaidrin Meetei_Mayek Mende_Kikakui Meroitic_Cursive\n Meroitic_Hieroglyphs Miao Modi Mongolian Mro Multani Myanmar Nabataean Nag_Mundari Nandinagari New_Tai_Lue Newa Nko Nushu Nyiakeng_Puachue_Hmong Ogham\n Ol_Chiki Ol_Onal Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_Sogdian Old_South_Arabian Old_Turkic Old_Uyghur Oriya Osage Osmanya\n Pahawh_Hmong Palmyrene Pau_Cin_Hau Phags_Pa Phoenician Psalter_Pahlavi Rejang Runic Samaritan Saurashtra Sharada Shavian Siddham SignWriting Sinhala Sogdian\n Sora_Sompeng Soyombo Sundanese Sunuwar Syloti_Nagri Syriac Tagalog Tagbanwa Tai_Le Tai_Tham Tai_Viet Takri Tamil Tangsa Tangut Telugu Thaana Thai Tibetan\n Tifinagh Tirhuta Todhri Toto Tulu_Tigalari Ugaritic Vai Vithkuqi Wancho Warang_Citi Yezidi Yi Zanabazar_Square"),m={script:["Script",f],sc:["Script",f],scriptextensions:["Script_Extensions",f],scx:["Script_Extensions",f],generalcategory:["General_Category",d],gc:["General_Category",d]};class S extends Error{}function x(){throw new S}const C=(e,a)=>Object.hasOwn(e,a)?e[a]:void 0;function $(e,a){const t=/^(.*?)(!=|[=:])(.*)$/.exec(e),n=h(t?t[3]:e);let i=p.get(n)??d.get(n)??(f.has(n)?`Script=${f.get(n)}`:void 0);if(t){const[e,r]=C(m,h(t[1]))??x();i=`${e}=${r.get(n)??x()}`,"!="===t[2]&&(a=!a)}return`\\${a?"P":"p"}{${i??x()}}`}function P(e,a){const t=String.fromCodePoint(e);return e<32||127===e?`\\u{${e.toString(16)}}`:(a?/[\\\][{}()/|\-^$.*+?&!#%,:;<=>@`~]/:/[\\^$.*+?()[\]{}|/]/).test(t)?`\\${t}`:t}function b(e){let a=e;const t=new Set;for(let i=/^\(\?([ims]+)\)/.exec(a);i;i=/^\(\?([ims]+)\)/.exec(a)){if(new Set(i[1]).size!==i[1].length)return null;for(const e of i[1])t.add(e);a=a.slice(i[0].length)}const n=[...a];let r=0,o=0;const s=(e=0)=>n[r+e],c=()=>n[r++]??x(),h=e=>n.slice(r,r+e.length).jLine truncated
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
.rp-impact-section{gap:var(--rp-space-2);flex-direction:column;min-width:0;display:flex}.rp-impact{gap:var(--rp-space-2);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.rp-impact.grid{gap:var(--rp-space-2) var(--rp-space-6);grid-template-columns:repeat(auto-fill,minmax(min(100%,176px),1fr));display:grid}.rp-impact>li{align-items:flex-start;gap:var(--rp-space-1);flex-direction:column;min-width:0;display:flex}.rp-impact>li>.rp-cluster{gap:var(--rp-space-2);max-width:100%}.rp-impact>li>.rp-cluster>.rp-note{flex:none}
|
||||
@@ -0,0 +1,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-D75Ie4nx.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./Virtualizer-tkoH0e4V.js","./index-Didrg8zX.js","./nodes-BXUOUiP2.js","./groupFilters-vTIJClEo.js","./geodata-CvcFemyc.js","./auth-BIagQEUo.js","./auth-BNrY15aC.js","./SearchDialog-CCF-sgtO.js","./Select-W-Xrx6y6.js","./ItemText-B5OxI5lS.js","./logs-j0cmmcZI.js","./AppearanceControls-I4PvP9Es.js","./flows-BfIUsgdd.js","./nav-DrWHp_dt.js","./activity-C22CeO5G.js","./activity-Dh87vlBh.css","./nav-VzrSXoKO.js","./Overview-BUdN7c7l.js","./files-Dt8K7QfP.js","./limitHint-DIncl1LE.js","./Table-DotwWze-.js","./useGridSelectionCheckbox-D0fV1e0v.js","./Checkbox-CUoHrzuV.js","./DaeCode-DEjXqvav.js","./daeTokens-BVtuNnWZ.js","./Connections-Dlv_78r1.js","./ipLookup-Cl7psHhv.js","./LinkOut-DVAiBR_J.js","./ipLookup-BYorpVJi.css","./NodePath-CW8z1Niq.js","./Tag-DE8n6iTZ.js","./Tabs-Kfe2CfSx.js","./SearchSelect-CSXz7lhe.js","./TimeCell-xtED_iww.js","./useQuickRule-D86TFC6s.js","./AddCircle-qKwVDZ__.js","./BackendText-CxshqKrW.js","./rule-ljMHmFs3.js","./outbounds-CJznbPkH.js","./labels-D8xxfRTQ.js","./Flows-CWq91DGu.js","./Coverage-BhgtC9t6.js","./GridList-Cq8h6RdG.js","./CardView-f0UIkdtH.js","./Flows-CFNotQUH.css","./Dns-CP7rSbYW.js","./Delete-D69JigFx.js","./Dns-CsAXSf3H.css","./impact-B8feJDtJ.css","./Policies-DR22sMzN.js","./subscriptionEntries-CB_uX4nO.js","./CheckboxSet-BThgrv4U.js","./NumberField-BGS5AF_x.js","./probe-CRm42H8E.js","./Rules-BMHWGCx6.js","./recorder-BHyqDNp5.js","./geodataUpdate-CK75960A.js","./Nodes-DIVmMRlP.js","./FlagPicker-DkMTBjLE.js","./Nodes-CM_U6MZ3.css","./Config-BzyCN_Ax.js","./Events-Cz7XGkUG.js","./Copy-ftx4Gb2m.js","./Logs-B21_MfGT.js","./Settings-KwPU8MKD.js","./Settings-BVpmQMTB.css","./paletteSheets-Bf5fGVE_.js","./paletteSheet-Vc0PGoNW.js","./glass-BcMm4w7K.js","./wallpaper-CEC7gitM.js","./halloween-Dfny7j3b.js","./Login-Dthlqd0l.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=N(e,t);return n||="function"==typeof r,r});if(n)return()=>{r.forEach((t,n)=>{"function"==typeof t?t():N(e[n],null)})}}}function N(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function M(...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
|
||||
@@ -0,0 +1 @@
|
||||
@font-face{font-family:Twemoji Country Flags;src:url(./TwemojiCountryFlags-Bymva2JV.woff2)format("woff2");font-display:swap;unicode-range:U+1F1E6-1F1FF,U+1F3F4,U+E0061-E007A,U+E007F}:root{--rp-node-flag-edge:drop-shadow(0 0 .5px #00000059)}:root[data-scheme=dark]{--rp-node-flag-edge:none}.rp-truncate.rp-node-name{display:inline-block}.rp-node-flag{filter:var(--rp-node-flag-edge);-webkit-user-select:none;user-select:none;margin-inline-end:var(--rp-space-1);display:inline-block}.rp-node-flag:before{content:attr(data-flag)}.rp-il:has(>.rp-node-flag){gap:var(--rp-space-1)}.rp-il>.rp-node-flag{flex-shrink:0;inline-size:1.25em;margin-inline-end:0}:root,:root[data-family=rose-pine]{--rp-base:#faf4ed;--rp-surface:#fffaf3;--rp-overlay:#f2e9e1;--rp-muted:#9893a5;--rp-subtle:#797593;--rp-text:#464261;--rp-love:#b4637a;--rp-gold:#ea9d34;--rp-rose:#d7827e;--rp-pine:#286983;--rp-foam:#56949f;--rp-iris:#907aa9;--rp-c1:var(--rp-pine);--rp-c2:var(--rp-foam);--rp-c3:var(--rp-iris);--rp-c4:var(--rp-gold);--rp-c5:var(--rp-rose);--rp-c6:var(--rp-love);--rp-c7:var(--rp-pine);--rp-c8:var(--rp-foam);--rp-hl-low:#f4ede8;--rp-hl-med:#dfdad9;--rp-hl-high:#cecacd;--rp-shadow:0 1px 2px #57527914}:root[data-family=rose-pine]{--rp-negative-text:var(--rp-text);--rp-notice-text:var(--rp-text);--rp-positive-text:var(--rp-text);--rp-accent-tile-text:var(--rp-text);--rp-info-tile-text:var(--rp-text);--rp-subtle-text:var(--rp-text)}:root[data-family=rose-pine][data-scheme=dark],:root[data-flavour=moon][data-scheme=dark]{--rp-base:#232136;--rp-surface:#2a273f;--rp-overlay:#393552;--rp-muted:#6e6a86;--rp-subtle:#908caa;--rp-text:#e0def4;--rp-love:#eb6f92;--rp-gold:#f6c177;--rp-rose:#ea9a97;--rp-pine:#3e8fb0;--rp-foam:#9ccfd8;--rp-iris:#c4a7e7;--rp-c1:var(--rp-pine);--rp-c2:var(--rp-foam);--rp-c3:var(--rp-iris);--rp-c4:var(--rp-gold);--rp-c5:var(--rp-rose);--rp-c6:var(--rp-love);--rp-c7:var(--rp-pine);--rp-c8:var(--rp-foam);--rp-hl-low:#2a283e;--rp-hl-med:#44415a;--rp-hl-high:#56526e;--rp-shadow:0 1px 2px #0000004d;--rp-line:var(--rp-hl-med);--rp-fill:var(--rp-hl-med);--rp-on-accent:#191724;--rp-on-notice:var(--rp-on-accent);--rp-accent-text:var(--rp-text);--rp-negative-text:var(--rp-negative);--rp-notice-text:var(--rp-notice);--rp-positive-text:var(--rp-positive);--rp-info-text:var(--rp-text);--rp-negative-tile-text:var(--rp-text)}:root[data-flavour=main][data-scheme=dark]{--rp-base:#191724;--rp-surface:#1f1d2e;--rp-overlay:#26233a;--rp-muted:#6e6a86;--rp-subtle:#908caa;--rp-text:#e0def4;--rp-love:#eb6f92;--rp-gold:#f6c177;--rp-rose:#ebbcba;--rp-pine:#31748f;--rp-foam:#9ccfd8;--rp-iris:#c4a7e7;--rp-c1:var(--rp-pine);--rp-c2:var(--rp-foam);--rp-c3:var(--rp-iris);--rp-c4:var(--rp-gold);--rp-c5:var(--rp-rose);--rp-c6:var(--rp-love);--rp-c7:var(--rp-pine);--rp-c8:var(--rp-foam);--rp-hl-low:#21202e;--rp-hl-med:#403d52;--rp-hl-high:#524f67;--rp-shadow:0 1px 2px #00000059;--rp-on-accent:#fff;--rp-on-positive:var(--rp-base);--rp-on-negative:var(--rp-base);--rp-on-notice:var(--rp-base);--rp-negative-tile-text:var(--rp-negative)}:root{-webkit-tap-highlight-color:transparent;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--rp-shadow-lg:0 8px 24px #0000001f;--rp-underlay:#00000052;--rp-elevated:0 4px 12px #00000014, 0 2px 6px #0000000a, 0 0 2px #0000001f;--rp-popover-border:transparent;--rp-on-accent:var(--rp-surface);--rp-on-positive:var(--rp-on-accent);--rp-on-negative:var(--rp-on-accent);--rp-on-notice:var(--rp-on-accent);--rp-on-toast:var(--rp-on-accent);--rp-on-text:var(--rp-surface);--rp-accent:var(--rp-pine);--rp-accent-text:var(--rp-accent);--rp-negative:var(--rp-love);--rp-positive:var(--rp-foam);--rp-notice:var(--rp-gold);--rp-info:var(--rp-pine);--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-accent-tile-text:var(--rp-accent-text);--rp-negative-tile-text:var(--rp-negative-text);--rp-notice-tile-text:var(--rp-notice-text);--rp-positive-tile-text:var(--rp-positive-text);--rp-info-tile-text:var(--rp-info-text);--rp-subtle-text:var(--rp-subtle);--rp-line:var(--rp-hl-low);--rp-fill:var(--rp-hl-low);--rp-ease:cubic-bezier(.45, 0, .4, 1);--rp-ease-in:cubic-bezier(.5, 0, 1, 1);--rp-ease-out:cubic-bezier(0, 0, .4, 1);--rp-r-xs:3px;--rp-r-sm:6px;--rp-r-md:8px;--rp-r-lg:10px;--rp-r-xl:16px;--rp-r-2xl:20px;--rp-r-pill:999px;--rp-text-2xs:11px;--rp-text-xs:12px;--rp-text-sm:13px;--rp-text-md:14px;--rp-text-lg:16px;--rp-text-xl:18px;--rp-text-2xl:20px;--rp-text-3xl:22px;--rp-text-4xl:24px;--rp-text-5xl:28px;--rp-value-line:28px;--rp-space-half:2px;--rp-space-1:4px;--rp-space-1h:6px;--rp-space-2:8px;--rp-space-2h:10px;--rp-space-3:12px;--rp-space-4:16px;--rp-space-5:20px;--rp-space-6:24px;--rp-space-8:32px;--rp-space-10:40px;--rp-space-12:48px;--rp-space-16:64px;--rp-font-mono:"Twemoji Country Flags", ui-monospace, "SF Mono", Menlo, Consolas, "JetBrains Mono", "Fira Code", "DejaVu Sans Mono", "Liberation Mono", "Noto Sans Mono", monospace;--rLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
let e=[],t=[];function n(n){if(n<768)return!1;for(let r=0,f=e.length;;){let a=r+f>>1;if(n<e[a])f=a;else{if(!(n>=t[a]))return!0;r=a+1}if(r==f)return!1}}function r(e){return e>=127462&&e<=127487}(()=>{let n="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,1n,9,16,o,,x,1i,3,,i,,7,a,2,t,3,1k,,,7,2,2,2,3,9,,a,2,q,,2,3,1k,,,5,4,2,2,3,3,,u,2,3,,b,3,1k,,,8,,3,,3,k,2,m,6,,3,1k,,,7,2,2,2,3,7,3,a,2,u,,1n,5,3,3,,4,9,,14,5,1j,,,7,,3,,4,7,2,b,2,t,3,1k,,,7,,3,,4,7,2,b,2,f,,c,4,1j,2,,7,,3,,4,9,,a,2,t,3,1y,,4,6,,,,8,i,2,1p,,,8,c,8,2q,,,a,b,7,21,2,r,,,,,,4,2,1d,k,,2,5,b,,10,9,,2u,b,,6,n,4,4,3,g,4,d,,,3,6,,f,,jj,3,qa,4,s,3,t,2,u,2,1s,w,9,,19,3,,,39,2,y,,3a,c,4,c,63,5,1l,a,,,,,2,o,2,,1c,1a,2,c,k,5,1b,h,12,9,c,3,u,d,1k,e,1c,k,48,3,,l,4,,6,,2,3,5i,1s,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,n,5,4,,2b,2,1e,i,q,i,d,,12,8,p,d,18,4,1b,e,10,,1v,e,c,,8,2,1a,,1f,,,3,2,2,5,2,,,15,5,5,2,6k,8,,2,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,1t,5,8t,2,25,6,1y,b,1d,4,3e,3,1h,f,15,,2,2,a,4,19,b,7,,1p,3,10,e,g,2,18,,c,3,1c,e,8,4,,2,2k,c,6,,2,,4d,c,l,4,1j,2,,7,2,2,2,3,9,,a,2,2,7,3,5,1v,9,,,2,,,4,,5,,,e,2,2a,i,n,,29,k,6j,7,2,9,r,2,2a,h,2y,d,2t,3,2,a,74,f,6t,6,,2,2,4,,,,2,3x,7,2,7,3,,s,a,14,7,,4,8,,9,b,1a,g,5i,8,5j,8,,8,2a,m,,e,3e,6,3,,,2,,7,,,1u,5,,2,,5,9n,4,9,2,,,1c,7,3,5,n,,44l,,6,f,8ug,i,1xc,5,1n,7,t4,,,1j,7,4,29,,b,2,f57,2,3mp,1a,2,n,f2,5,3,6,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,2s,,4g,7,af,,1p,4,e4,4,72,2,6r,,2,,7,2,5,,d6,7,31,7,240,5".split(",").map(e=>e?parseInt(e,36):1);for(let r=0,f=0;r<n.length;r++)(r%2?t:e).push(f+=n[r])})();function f(e,t,n=!0,r=!0){return(n?a:u)(e,t,r)}function a(e,t,f){if(t==e.length)return t;t&&i(e.charCodeAt(t))&&l(e.charCodeAt(t-1))&&t--;let a=c(e,t);for(t+=o(a);t<e.length;){let u=c(e,t);if(8205==a||8205==u||f&&n(u))t+=o(u),a=u;else{if(!r(u))break;{let n=0,f=t-2;for(;f>=0&&r(c(e,f));)n++,f-=2;if(n%2==0)break;t+=2}}}return t}function u(e,t,n){for(;t>1;){let r=a(e,t-2,n);if(r<t)return r;t--}return 0}function c(e,t){let n=e.charCodeAt(t);if(!l(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return i(r)?r-56320+(n-55296<<10)+65536:n}function i(e){return e>=56320&&e<57344}function l(e){return e>=55296&&e<56320}function o(e){return e<65536?1:2}export{f};
|
||||
@@ -0,0 +1 @@
|
||||
import{bS as e,bT as t,A as n,bU as o,bV as r,bW as a,bX as i,bY as s,bZ as l,b_ as d,b$ as c,X as u,aW as p,c0 as _,aV as m,c1 as f,c2 as g}from"./index-C4UFgHia.js";import{M as h,N as b,s as w,u as v,O as y,P as k,Q as x,R as S,S as I,d as A,r as q,T as N,U as M,V as $,H as O,n as D,W as C,J as R,X as j,Y as E,g as T,G as P,Z as L}from"./nodes-BXUOUiP2.js";import{g as z}from"./groupFilters-vTIJClEo.js";import{d as U,v as G,g as F}from"./geodata-CvcFemyc.js";import{mockSessionValid as H,withPasswordAuth as J,refuseWithoutSession as W}from"./auth-BIagQEUo.js";import"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./auth-BNrY15aC.js";const B=Date.now(),V=e=>new Date(B-1e3*e).toISOString(),X=e=>new Date(B+1e3*e).toISOString(),Q=V(0),Y="mock-instance-1",K="40",Z={"x-honk":{config_export:{available:!0},config_import:{available:!0,replace_required:!0},config_revisions:{available:!0,can_activate:!0,max_revisions:50}}},ee={extensions:Z,observed_at:Q,profiles:["base","full_transparency"],limits:{max_request_target_bytes:4096,max_header_bytes:16384,max_json_body_bytes:65536},resources:{...Z,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}}},te={...ee.resources};delete te["x-honk"];const ne={...ee,extensions:{},profiles:["base"],resources:{...te,groups:{...ee.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:{...ee.resources.flows,available:!1},routing_trace:{...ee.resources.routing_trace,available:!1},events:{...ee.resources.events,available:!1}}},oe={...ee,extensions:{},profiles:["base"],resources:{...Object.fromEntries(Object.keys(te).map(e=>[e,{available:!1}])),runtime:{available:!0},connections:{available:!0,can_close:!1,max_bulk_close:1e3},cLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
.rp-link.rp-ip-lookup{cursor:pointer;background:0 0;border:0}.rp-link.rp-ip-lookup:is([data-hovered],[data-pressed]){background-color:#0000}.rp-ip-lookup-head{row-gap:var(--rp-space-half);max-inline-size:16rem;padding-inline-start:var(--rp-space-3);display:grid}.rp-ip-lookup-head>.desc{color:var(--rp-subtle);font-weight:400}.rp-ip-lookup-menu .rp-item{text-decoration:none}.rp-ip-lookup-menu .rp-item>.rp-link-out{color:var(--rp-subtle)}
|
||||
@@ -0,0 +1 @@
|
||||
import{j as s}from"./vendor-react-64fcanlc.js";import{u as e,cC as a,cD as i,cE as n,cF as r,cG as t,cH as p,cI as o,cJ as c,cK as l,c2 as m}from"./index-C4UFgHia.js";import{L as h}from"./LinkOut-DVAiBR_J.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(n,{className:"rp-link rp-ip-lookup","data-layout":"inline",children:[f,s.jsx(h,{})]}),s.jsx(r,{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,n]=e.split(".").map(Number);return!(!(0!==i&&10!==i&&127!==i&&i<224)||100===i&&n>=64&&n<=127||169===i&&254===n||172===i&&n>=16&&n<=31||192===i&&168===n)}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};
|
||||
@@ -0,0 +1 @@
|
||||
:root[data-family=kary]{--rp-base:#e7f0f7;--rp-surface:#f0f6fb;--rp-overlay:#cff0f9;--rp-muted:#9ba6b5;--rp-subtle:#738197;--rp-text:#65758d;--rp-love:#c94824;--rp-gold:#a56416;--rp-rose:#00bbec;--rp-pine:#3778b7;--rp-foam:#428226;--rp-iris:#b052a1;--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:#e7f0f7;--rp-hl-med:#cff0f9;--rp-hl-high:#cdd6e0;--rp-shadow:0 1px 2px #65758d1a;--rp-line:var(--rp-hl-high);--rp-fill:var(--rp-hl-high);--rp-on-accent:#fff;--rp-accent-text:var(--rp-text);--rp-info-text:var(--rp-text);--rp-subtle-text:var(--rp-text)}:root[data-family=kary][data-scheme=dark]{--rp-base:#1a1a1a;--rp-surface:#242424;--rp-overlay:#474747;--rp-muted:#888;--rp-subtle:#909090;--rp-text:#cacaca;--rp-love:#d38569;--rp-gold:#bc9550;--rp-rose:#00bbec;--rp-pine:#819dc2;--rp-foam:#7da76f;--rp-iris:#b98eb2;--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:#242424;--rp-hl-med:#133853;--rp-hl-high:#474747;--rp-shadow:0 1px 2px #0000004d;--rp-on-accent:var(--rp-surface);--rp-accent-text:var(--rp-accent);--rp-info-text:var(--rp-info);--rp-accent-tile-text:var(--rp-text);--rp-negative-tile-text:var(--rp-text);--rp-notice-tile-text:var(--rp-text);--rp-positive-tile-text:var(--rp-text);--rp-info-tile-text:var(--rp-text)}
|
||||
@@ -0,0 +1 @@
|
||||
const e={kernel:"flow.v.kernel",userspace:"ov.v.userspace",matched:"flow.v.matched",other_family_trusted:"flow.v.otherFamilyTrusted",failed:"flow.v.failed",not_required:"flow.v.notRequired",unavailable:"flow.v.unavailable",pass:"flow.v.pass",redirect:"flow.v.redirect",hold:"flow.v.hold",arm_direct:"flow.v.armDirect",activate_direct:"flow.v.activateDirect",activate_proxy:"flow.v.activateProxy",drop:"flow.v.drop",started:"flow.v.started",succeeded:"flow.v.succeeded",cancelled:"flow.v.cancelled",transport_ready:"flow.v.transportReady",target_request_sent:"flow.v.targetRequestSent",target_confirmed:"flow.v.targetConfirmed",first_reply:"flow.v.firstReply",terminal:"flow.v.terminal",unknown:"ui.unknown",route_selected:"flow.v.routeSelected",no_new_routing_input:"flow.v.noNewRoutingInput",reply_received:"flow.v.replyReceived",hit:"flow.v.hit",miss:"flow.v.miss",stale:"flow.v.stale",bypass:"flow.v.bypass",hosts:"flow.v.hosts",coalesced:"flow.v.coalesced",cache:"flow.v.cache",upstream:"ui.upstream",lan:"flow.v.lan",wan:"flow.v.wan",tls_sni:"flow.v.tlsSni",http_host:"flow.v.httpHost",quic_sni:"flow.v.quicSni",dns_mapping:"flow.v.dnsMapping",explicit:"flow.v.explicit"},t=t=>null==t?"—":e[t]?{key:e[t]}:t;export{t as w};
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
@@ -0,0 +1 @@
|
||||
const t=[{id:"doona-lens",radius:20,bezel:28,scale:90},{id:"doona-lens-sm",radius:10,bezel:16,scale:44}],e=[-Math.SQRT1_2,-Math.SQRT1_2];function a(t,a,n,r){const o=document.createElement("canvas");o.width=t,o.height=a;const s=o.getContext("2d"),i=s.createImageData(t,a),u=s.createImageData(t,a);for(let c=0;c<a;c++)for(let a=0;a<t;a++){const[o,s,h]=n(a+.5,c+.5),m=r(o),l=4*(c*t+a);i.data.set([128-127*m*s,128-127*m*h,128,255],l);const d=s*e[0]+h*e[1],p=Math.pow(Math.max(d,0),2)+.4*Math.pow(Math.max(-d,0),2),$=Math.max(1-o/3,0)**2;u.data.set([255,255,255,Math.round(255*Math.min(p*$,1))],l)}const h=t=>(s.putImageData(t,0,0),o.toDataURL("image/png"));return[h(i),h(u)]}function n({radius:t,bezel:e}){const n=Math.max(t,e)+1,r=function(t){const e=t=>Math.pow(1-Math.pow(1-Math.min(Math.max(t,0),1),4),.25),a=a=>{if(a>=t)return 0;const n=a/t,r=(e(n+.001)-e(Math.max(n-.001,0)))/(n+.001-Math.max(n-.001,0)),o=Math.atan(r),s=o-Math.asin(Math.sin(o)/1.5);return Math.tan(s)*(.5+e(n))};let n=0;for(let r=0;r<t;r+=.25)n=Math.max(n,a(r));return t=>a(t)/n}(e),o=(e,a)=>(r,o)=>{const[s,i,u]=function(t,e,a){if(t<a&&e<a){const n=t-a,r=e-a,o=Math.hypot(n,r)||1;return[Math.max(a-o,0),n/o,r/o]}return t<a?[t,-1,0]:e<a?[e,0,-1]:t<e?[t,-1,0]:[e,0,-1]}(e?n-r:r,a?n-o:o,t);return[s,e?-i:i,a?-u:u]},s=[["0","0","100%",`${n}`,a(1,n,(t,e)=>[e,0,-1],r)],["0","100%","100%",`${n}`,a(1,n,(t,e)=>[n-e,0,1],r),`0 -${n}`],["0","0",`${n}`,"100%",a(n,1,t=>[t,-1,0],r)],["100%","0",`${n}`,"100%",a(n,1,t=>[n-t,1,0],r),`-${n} 0`],["0","0",`${n}`,`${n}`,a(n,n,o(!1,!1),r)],["100%","0",`${n}`,`${n}`,a(n,n,o(!0,!1),r),`-${n} 0`],["0","100%",`${n}`,`${n}`,a(n,n,o(!1,!0),r),`0 -${n}`],["100%","100%",`${n}`,`${n}`,a(n,n,o(!0,!0),r),`-${n} -${n}`]],i=(t,e)=>`data:image/svg+xml;base64,${btoa(`<svg xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%" fill="${e}"/>${s.map(([e,a,n,r,o,s])=>`<image href="${o[t]}" x="${e}" y="${a}" width="${n}" height="${r}" preserveAspectRatio="none"${s?` transform="translate(${s})"`:""}/>`).join("")}</svg>`)}`;return[i(0,"gray"),i(1,"none")]}let r=!1;function o(){if(r)return!0;if(!function(){const t=navigator.userAgentData?.brands;return(t?t.some(({brand:t})=>"Chromium"===t):/Chrom(e|ium)\/\d/.test(navigator.userAgent))&&CSS.supports("backdrop-filter","url(#a)")}())return!1;const e=document.createElementNS("http://www.w3.org/2000/svg","svg");return e.setAttribute("aria-hidden","true"),e.setAttribute("width","0"),e.setAttribute("height","0"),e.style.position="absolute",e.innerHTML=t.map(t=>{const[e,a]=n(t);return`<filter id="${t.id}" x="0" y="0" width="100%" height="100%" color-interpolation-filters="sRGB"><feImage href="${e}" preserveAspectRatio="none" result="map"/><feDisplacementMap in="SourceGraphic" in2="map" scale="${t.scale}" xChannelSelector="R" yChannelSelector="G" result="bent"/><feImage href="${a}" preserveAspectRatio="none" result="rim"/><feComposite in="rim" in2="bent" operator="arithmetic" k1="0.9" k2="0" k3="1" k4="0"/></filter>`}).join(""),document.body.append(e),function(){const t=document.documentElement;let e;const a=()=>{e=void 0,t.removeAttribute("data-lens-paused")};addEventListener("scroll",()=>{t.hasAttribute("data-lens-steady")||(t.hasAttribute("data-lens-paused")||t.setAttribute("data-lens-paused",""),void 0!==e&&clearTimeout(e),e=window.setTimeout(a,150))},{passive:!0})}(),r=!0,!0}export{o as installLens};
|
||||
@@ -0,0 +1 @@
|
||||
import{g as e}from"./nodes-BXUOUiP2.js";import{b4 as o,bJ as t}from"./index-C4UFgHia.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"},"recorded-on-demand":{text:"ov.lim.flowsIdle"},"mode-off":{text:"ov.lim.flowsModeOff"},"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};
|
||||
@@ -0,0 +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.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.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"},"config.writeRestartAbsent":{"one":"The setting honk refuses the write over is not in the configuration. State it there and restart honk once.","other":"The {n} settings honk refuses the write over are not in the configuration. State them there and restart honk once."},"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.noCLine 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.latency":"Latency","act.mode":"Outbound mode","act.traffic":"Traffic","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.tabGlobal":"Global settings","config.tabHistory":"Backups and revisions","config.tabModules":"Modules","config.tabSource":"Config files","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","conn.tab.list":"List","dns.log":"Resolution log","dns.query":"Query","dns.tab.stats":"Statistics","event.flow":"{resourceId}, revision: {revision}Line truncated
|
||||
Loaded 100 of 432 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user