clash_for_linux/dashboard/public/assets/Connections.e48eac36.js

2 lines
70 KiB
JavaScript
Raw Normal View History

import{r as se,R as be,c as Ae,a as ro,M as Cn,j as q,b as ye,p as pn,m as gn,d as oo,B as vn,e as io,f as ao,g as uo,u as so,C as lo,F as co,I as fo,h as po,S as go}from"./index.171f553a.js";import{u as vo}from"./useRemainingViewPortHeight.7395542b.js";import{C as mo}from"./chevron-down.dd238e96.js";import{f as ho}from"./index.92e2d967.js";import{F as yo,p as wo,A as bo}from"./Fab.ef67ff10.js";import{P as Ro,a as Co}from"./play.7b1a5f99.js";function yt(b){return function(v){return!!v.type&&v.type.tabsRole===b}}var tt=yt("Tab"),wt=yt("TabList"),bt=yt("TabPanel");function So(b){return tt(b)||wt(b)||bt(b)}function vt(b,v){return se.exports.Children.map(b,function(f){return f===null?null:So(f)?v(f):f.props&&f.props.children&&typeof f.props.children=="object"?se.exports.cloneElement(f,Object.assign({},f.props,{children:vt(f.props.children,v)})):f})}function Sn(b,v){return se.exports.Children.forEach(b,function(f){f!==null&&(tt(f)||bt(f)?v(f):f.props&&f.props.children&&typeof f.props.children=="object"&&(wt(f)&&v(f),Sn(f.props.children,v)))})}function Pn(b){var v=0;return Sn(b,function(f){tt(f)&&v++}),v}var Po=["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName","environment","disableUpDownKeys"];function xo(b,v){if(b==null)return{};var f={},g=Object.keys(b),O,_;for(_=0;_<g.length;_++)O=g[_],!(v.indexOf(O)>=0)&&(f[O]=b[O]);return f}function xn(b){return b&&"getAttribute"in b}function mn(b){return xn(b)&&b.getAttribute("data-rttab")}function ke(b){return xn(b)&&b.getAttribute("aria-disabled")==="true"}var et;function Bo(b){var v=b||(typeof window<"u"?window:void 0);try{et=!!(typeof v<"u"&&v.document&&v.document.activeElement)}catch{et=!1}}var Eo={className:"react-tabs",focus:!1},Rt=function(v){var f=se.exports.useRef([]),g=se.exports.useRef([]),O=se.exports.useRef();function _(m,G){if(!(m<0||m>=X())){var M=v.onSelect,K=v.selectedIndex;M(m,K,G)}}function c(m){for(var G=X(),M=m+1;M<G;M++)if(!ke(ee(M)))return M;for(var K=0;K<m;K++)if(!ke(ee(K)))return K;return m}function U(m){for(var G=m;G--;)if(!ke(ee(G)))return G;for(G=X();G-- >m;)if(!ke(ee(G)))return G;return m}function de(){for(var m=X(),G=0;G<m;G++)if(!ke(ee(G)))return G;return null}function u(){for(var m=X();m--;)if(!ke(ee(m)))return m;return null}function X(){var m=v.children;return Pn(m)}function ee(m){return f.current["tabs-"+m]}function le(){var m=0,G=v.children,M=v.disabledTabClassName,K=v.focus,ae=v.forceRenderTabPanel,ve=v.selectedIndex,Be=v.selectedTabClassName,me=v.selectedTabPanelClassName,Ce=v.environment;g.current=g.current||[];for(var we=g.current.length-X(),He=se.exports.useId();we++<0;)g.current.push(""+He+g.current.length);return vt(G,function(ne){var Ge=ne;if(wt(ne)){var Ee=0,Ne=!1;et==null&&Bo(Ce);var Se=Ce||(typeof window<"u"?window:void 0);et&&Se&&(Ne=be.Children.toArray(ne.props.children).filter(tt).some(function(Te,Fe){return Se.document.activeElement===ee(Fe)})),Ge=se.exports.cloneElement(ne,{children:vt(ne.props.children,function(Te){var Fe="tabs-"+Ee,$e=ve===Ee,Oe={tabRef:function(ot){f.current[Fe]=ot},id:g.current[Ee],selected:$e,focus:$e&&(K||Ne)};return Be&&(Oe.selectedClassName=Be),M&&(Oe.disabledClassName=M),Ee++,se.exports.cloneElement(Te,Oe)})})}else if(bt(ne)){var Ie={id:g.current[m],selected:ve===m};ae&&(Ie.forceRender=ae),me&&(Ie.selectedClassName=me),m++,Ge=se.exports.cloneElement(ne,Ie)}return Ge})}function fe(m){var G=v.direction,M=v.disableUpDownKeys;if(J(m.target)){var K=v.selectedIndex,ae=!1,ve=!1;(m.code==="Space"||m.keyCode===32||m.code==="Enter"||m.keyCode===13)&&(ae=!0,ve=!1,D(m)),m.code==="ArrowLeft"||m.keyCode===37||!M&&(m.keyCode===38||m.code==="ArrowUp")?(G==="rtl"?K=c(K):K=U(K),ae=!0,ve=!0):m.code==="ArrowRight"||m.keyCode===39||!M&&(m.keyCode===40||m.code==="ArrowDown")?(G==="rtl"?K=U(K):K=c(K),ae=!0,ve=!0):m.keyCode===35||m.code==="End"?(K=u(),ae=!0,ve=!0):(m.keyCode===36||m.code==="Home")&&(K=de(),ae=!0,ve=!0),ae&&m.preventDefault(),ve&&_(K,m)}}function D(m){var G=m.target;do if(J(G)){if(ke(G))return;var M=[].sl