import{Pt as e,Ut as t,nn as n}from"#entry";import{c as r,f as i,g as a,i as o,l as s,m as c,n as l,o as u,p as d,r as f,s as p}from"./Ba1R8jP-.js";var m=t(`config`,()=>{let t=e(`theme`,`sunset`),m=e(`autoSwitchTheme`,!1),h=e(`favDayTheme`,`nord`),g=e(`favNightTheme`,`sunset`),_=e(`proxiesPreviewType`,c.Auto),v=e(`proxiesPreviewAutoThreshold`,10),y=e(`proxiesOrderingType`,d.NATURAL),b=e(`proxiesDisplayMode`,i.CARD),x=e(`renderProxiesInTwoColumns`,!0),S=e(`proxiesCardSize`,s.COMFORTABLE),C=e(`stickyGroupHeader`,!0),w=e(`hideUnAvailableProxies`,!1),T=e(`urlForLatencyTest`,`https://www.gstatic.com/generate_204`),E=e(`autoCloseConns`,!0),D=e(`latencyTestTimeoutDuration`,5e3),O=e(`latencyMediumThreshold`,0),k=e(`latencyHighThreshold`,0),A=e(`iconHeight`,24),j=e(`iconMarginRight`,8),M=e(`autoSwitchEndpoint`,!1),N=e(`enableTwemoji`,!1),P=e(`sidebarExpanded`,!1),F=e(`useMobileBottomNav`,!0),I=e(`defaultPage`,`overview`),L=e(`connectionsTableSize`,a.XS),R=e(`connectionsTableColumnVisibility`,f),z=e(`connectionsTableColumnOrder`,l),B=e(`connectionsDisplayMode`,(()=>{if(localStorage.getItem(`connectionsDisplayMode`)!==null)return`auto`;let e=localStorage.getItem(`useMobileConnectionsTable`);if(e!==null){localStorage.removeItem(`useMobileConnectionsTable`);try{return JSON.parse(e)===!0?`table`:`auto`}catch{return`auto`}}return`auto`})()),V=e(`logsTableSize`,a.XS),H=e(`logLevel`,r.Info),U=e(`logMaxRows`,o),W=e(`quickFilterRegex`,`DIRECT|direct|dns-out`),G=e(`clientSourceIPTags`,[]),K=e(`showNetworkTopology`,!1),q=e(`enableDataUsageTracking`,!0),J=n(()=>T.value.startsWith(`https`));return{curTheme:t,autoSwitchTheme:m,favDayTheme:h,favNightTheme:g,proxiesPreviewType:_,proxiesPreviewAutoThreshold:v,proxiesOrderingType:y,proxiesDisplayMode:b,renderProxiesInTwoColumns:x,proxiesCardSize:S,stickyGroupHeader:C,hideUnAvailableProxies:w,urlForLatencyTest:T,autoCloseConns:E,latencyTestTimeoutDuration:D,latencyMediumThreshold:O,latencyHighThreshold:k,iconHeight:A,iconMarginRight:j,autoSwitchEndpoint:M,enableTwemoji:N,sidebarExpanded:P,useMobileBottomNav:F,defaultPage:I,connectionsTableSize:L,connectionsTableColumnVisibility:R,connectionsTableColumnOrder:z,connectionsDisplayMode:B,quickFilterRegex:W,logsTableSize:V,logLevel:H,logMaxRows:U,clientSourceIPTags:G,showNetworkTopology:K,enableDataUsageTracking:q,isLatencyTestByHttps:J,latencyQualityMap:n(()=>{let e=J.value?p:u,t=O.value>0?O.value:e.MEDIUM,n=k.value>0?k.value:e.HIGH;return{NOT_CONNECTED:e.NOT_CONNECTED,MEDIUM:t,HIGH:n}}),tableSizeClassName:e=>({[a.XS]:`table-xs`,[a.SM]:`table-sm`,[a.MD]:`table-md`,[a.LG]:`table-lg`})[e]||`table-xs`,resetProxiesSettings:()=>{_.value=c.Auto,y.value=d.NATURAL,b.value=i.CARD,x.value=!0,S.value=s.COMFORTABLE,C.value=!0,w.value=!1,T.value=`https://www.gstatic.com/generate_204`,E.value=!0,D.value=5e3,O.value=0,k.value=0,A.value=24,j.value=8},resetXdConfig:()=>{m.value=!1,M.value=!1,N.value=!1,F.value=!0,h.value=`nord`,g.value=`sunset`,t.value=`sunset`,I.value=`overview`,q.value=!0}}});export{m as t};