import{d as re,eK as f,eL as Me,r as c,j as e,I as W,B as ne,c as C,el as Pe,em as ke,am as pe,en as Re,T as Ne,x as H,D as ae,bk as Ae,eM as xe,cR as fe,eN as be,eO as Be,R as ie,N as Ue,ce as Te}from"./index-CeMilrX4.js";import{C as ee,P as De,a as Oe,B as Ge}from"./PageLayout-Cw_MXmcE.js";import{L as Ee,a as de}from"./listbox-CGIGCOya.js";import{S as Ie}from"./settings-2-97rHsI_C.js";import{P as se}from"./plus-D-z0bUE_.js";import{M as He}from"./map-pin-D6_BkIVb.js";import{C as Ke,u as Fe,a as ze}from"./circle-x-B6UCLWHM.js";import{Z as Q}from"./zap-09srAnh-.js";import{S as je}from"./search-Bph9xP9G.js";import{C as oe}from"./chevron-right-D3QL4sfa.js";import{H as Ve}from"./hash-CBEVBQJR.js";import{F as We}from"./funnel-D2SUJQ8o.js";import{a as $e,C as Ze}from"./circle-stop-BvffqSZg.js";import{T as Ye}from"./trash-2-Bu7BoH4P.js";import{M as Je}from"./message-square-VqJiaYsP.js";import{C as Xe}from"./cpu-C5-ss1x-.js";import{R as me,C as he}from"./Grid-BuDgMX1I.js";import{W as _e}from"./wifi-DjxkOZ88.js";import{W as qe}from"./wifi-off-Y-Y9dpWj.js";import{T as Qe}from"./triangle-alert-DiFold9L.js";import"./element-movement-zLH7y51p.js";/**
 * @license lucide-react v0.559.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const et=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],tt=re("check-check",et);/**
 * @license lucide-react v0.559.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const at=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],st=re("globe",at);/**
 * @license lucide-react v0.559.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nt=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],rt=re("plug",nt);/**
 * @license lucide-react v0.559.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lt=[["path",{d:"m13.5 6.5-3.148-3.148a1.205 1.205 0 0 0-1.704 0L6.352 5.648a1.205 1.205 0 0 0 0 1.704L9.5 10.5",key:"dzhfyz"}],["path",{d:"M16.5 7.5 19 5",key:"1ltcjm"}],["path",{d:"m17.5 10.5 3.148 3.148a1.205 1.205 0 0 1 0 1.704l-2.296 2.296a1.205 1.205 0 0 1-1.704 0L13.5 14.5",key:"nfoymv"}],["path",{d:"M9 21a6 6 0 0 0-6-6",key:"1iajcf"}],["path",{d:"M9.352 10.648a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l4.296-4.296a1.205 1.205 0 0 0 0-1.704l-2.296-2.296a1.205 1.205 0 0 0-1.704 0z",key:"nv9zqy"}]],Se=re("satellite",lt);/**
 * @license lucide-react v0.559.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ot=[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]],it=re("unplug",ot),ct=[["ATL","Atlanta","GA","United States","US","North America"],["AUS","Austin","TX","United States","US","North America"],["BDL","Hartford","CT","United States","US","North America"],["BNA","Nashville","TN","United States","US","North America"],["BOS","Boston","MA","United States","US","North America"],["BUF","Buffalo","NY","United States","US","North America"],["BWI","Baltimore","MD","United States","US","North America"],["CHS","Charleston","SC","United States","US","North America"],["CLE","Cleveland","OH","United States","US","North America"],["CLT","Charlotte","NC","United States","US","North America"],["CMH","Columbus","OH","United States","US","North America"],["CVG","Cincinnati","OH","United States","US","North America"],["DAL","Dallas Love","TX","United States","US","North America"],["DCA","Washington Natl","VA","United States","US","North America"],["DEN","Denver","CO","United States","US","North America"],["DFW","Dallas/Ft Worth","TX","United States","US","North America"],["DTW","Detroit","MI","United States","US","North America"],["EWR","Newark","NJ","United States","US","North America"],["FLL","Ft Lauderdale","FL","United States","US","North America"],["HNL","Honolulu","HI","United States","US","North America"],["HOU","Houston Hobby","TX","United States","US","North America"],["IAD","Washington Dulles","VA","United States","US","North America"],["IAH","Houston Intercon","TX","United States","US","North America"],["IND","Indianapolis","IN","United States","US","North America"],["JAX","Jacksonville","FL","United States","US","North America"],["JFK","New York JFK","NY","United States","US","North America"],["LAS","Las Vegas","NV","United States","US","North America"],["LAX","Los Angeles","CA","United States","US","North America"],["LGA","New York LaGuardia","NY","United States","US","North America"],["MCI","Kansas City","MO","United States","US","North America"],["MCO","Orlando","FL","United States","US","North America"],["MDW","Chicago Midway","IL","United States","US","North America"],["MEM","Memphis","TN","United States","US","North America"],["MIA","Miami","FL","United States","US","North America"],["MKE","Milwaukee","WI","United States","US","North America"],["MSP","Minneapolis","MN","United States","US","North America"],["MSY","New Orleans","LA","United States","US","North America"],["OAK","Oakland","CA","United States","US","North America"],["ONT","Ontario","CA","United States","US","North America"],["ORD","Chicago O'Hare","IL","United States","US","North America"],["PBI","West Palm Beach","FL","United States","US","North America"],["PDX","Portland","OR","United States","US","North America"],["PHL","Philadelphia","PA","United States","US","North America"],["PHX","Phoenix","AZ","United States","US","North America"],["PIT","Pittsburgh","PA","United States","US","North America"],["PVD","Providence","RI","United States","US","North America"],["RDU","Raleigh-Durham","NC","United States","US","North America"],["RNO","Reno","NV","United States","US","North America"],["RSW","Ft Myers","FL","United States","US","North America"],["SAN","San Diego","CA","United States","US","North America"],["SAT","San Antonio","TX","United States","US","North America"],["SEA","Seattle","WA","United States","US","North America"],["SFO","San Francisco","CA","United States","US","North America"],["SJC","San Jose","CA","United States","US","North America"],["SLC","Salt Lake City","UT","United States","US","North America"],["SMF","Sacramento","CA","United States","US","North America"],["SNA","Orange County","CA","United States","US","North America"],["STL","St Louis","MO","United States","US","North America"],["TPA","Tampa","FL","United States","US","North America"],["TUS","Tucson","AZ","United States","US","North America"],["ABQ","Albuquerque","NM","United States","US","North America"],["AGC","Allegheny County","PA","United States","US","North America"],["AGS","Augusta","GA","United States","US","North America"],["ALB","Albany","NY","United States","US","North America"],["AVL","Asheville","NC","United States","US","North America"],["BHM","Birmingham","AL","United States","US","North America"],["BLI","Bellingham","WA","United States","US","North America"],["BOI","Boise","ID","United States","US","North America"],["CHA","Chattanooga","TN","United States","US","North America"],["CON","Concord","NH","United States","US","North America"],["CVO","Corvallis","OR","United States","US","North America"],["EAT","Wenatchee","WA","United States","US","North America"],["ELP","El Paso","TX","United States","US","North America"],["EUG","Eugene","OR","United States","US","North America"],["FAR","Fargo","ND","United States","US","North America"],["FNL","Fort Collins","CO","United States","US","North America"],["GDW","Gladwin","MI","United States","US","North America"],["GSO","Greensboro","NC","United States","US","North America"],["HTS","Huntington","WV","United States","US","North America"],["IDA","Idaho Falls","ID","United States","US","North America"],["LFT","Lafayette","LA","United States","US","North America"],["LOZ","London/Corbin","KY","United States","US","North America"],["MDT","Harrisburg","PA","United States","US","North America"],["MFR","Medford","OR","United States","US","North America"],["MGE","Marietta/Dobbins","GA","United States","US","North America"],["MSN","Madison","WI","United States","US","North America"],["NYC","New York City","NY","United States","US","North America"],["OKC","Oklahoma City","OK","United States","US","North America"],["OLM","Olympia","WA","United States","US","North America"],["OMA","Omaha","NE","United States","US","North America"],["OXR","Oxnard/Ventura","CA","United States","US","North America"],["PDK","DeKalb-Peachtree","GA","United States","US","North America"],["PGD","Punta Gorda","FL","United States","US","North America"],["PIH","Pocatello","ID","United States","US","North America"],["PKB","Parkersburg","WV","United States","US","North America"],["POU","Poughkeepsie","NY","United States","US","North America"],["PRC","Prescott","AZ","United States","US","North America"],["PSP","Palm Springs","CA","United States","US","North America"],["RST","Rochester","MN","United States","US","North America"],["SBP","San Luis Obispo","CA","United States","US","North America"],["SCE","State College","PA","United States","US","North America"],["SJT","San Angelo","TX","United States","US","North America"],["SRQ","Sarasota","FL","United States","US","North America"],["TUL","Tulsa","OK","United States","US","North America"],["TYS","Knoxville","TN","United States","US","North America"],["VPZ","Valparaiso","IN","United States","US","North America"],["SBA","Santa Barbara","CA","United States","US","North America"],["YEG","Edmonton","AB","Canada","CA","North America"],["YHZ","Halifax","NS","Canada","CA","North America"],["YOW","Ottawa","ON","Canada","CA","North America"],["YQB","Quebec City","QC","Canada","CA","North America"],["YUL","Montreal","QC","Canada","CA","North America"],["YVR","Vancouver","BC","Canada","CA","North America"],["YWG","Winnipeg","MB","Canada","CA","North America"],["YYC","Calgary","AB","Canada","CA","North America"],["YYZ","Toronto","ON","Canada","CA","North America"],["YCD","Nanaimo","BC","Canada","CA","North America"],["YKA","Kamloops","BC","Canada","CA","North America"],["YKF","Kitchener","ON","Canada","CA","North America"],["YQA","Muskoka","ON","Canada","CA","North America"],["YQL","Lethbridge","AB","Canada","CA","North America"],["YYJ","Victoria","BC","Canada","CA","North America"],["AMS","Amsterdam",null,"Netherlands","NL","Europe"],["ARN","Stockholm",null,"Sweden","SE","Europe"],["ATH","Athens",null,"Greece","GR","Europe"],["BCN","Barcelona",null,"Spain","ES","Europe"],["BER","Berlin",null,"Germany","DE","Europe"],["BRU","Brussels",null,"Belgium","BE","Europe"],["BUD","Budapest",null,"Hungary","HU","Europe"],["CDG","Paris CDG",null,"France","FR","Europe"],["CPH","Copenhagen",null,"Denmark","DK","Europe"],["DUB","Dublin",null,"Ireland","IE","Europe"],["DUS","Düsseldorf",null,"Germany","DE","Europe"],["EDI","Edinburgh",null,"United Kingdom","GB","Europe"],["FCO","Rome",null,"Italy","IT","Europe"],["FRA","Frankfurt",null,"Germany","DE","Europe"],["GVA","Geneva",null,"Switzerland","CH","Europe"],["HAM","Hamburg",null,"Germany","DE","Europe"],["HEL","Helsinki",null,"Finland","FI","Europe"],["IST","Istanbul",null,"Turkey","TR","Europe"],["KEF","Reykjavik",null,"Iceland","IS","Europe"],["LGW","London Gatwick",null,"United Kingdom","GB","Europe"],["LHR","London Heathrow",null,"United Kingdom","GB","Europe"],["LIS","Lisbon",null,"Portugal","PT","Europe"],["MAD","Madrid",null,"Spain","ES","Europe"],["MAN","Manchester",null,"United Kingdom","GB","Europe"],["MIL","Milan",null,"Italy","IT","Europe"],["MUC","Munich",null,"Germany","DE","Europe"],["MXP","Milan Malpensa",null,"Italy","IT","Europe"],["NCE","Nice",null,"France","FR","Europe"],["ORY","Paris Orly",null,"France","FR","Europe"],["OSL","Oslo",null,"Norway","NO","Europe"],["OTP","Bucharest",null,"Romania","RO","Europe"],["PMI","Palma Mallorca",null,"Spain","ES","Europe"],["PRG","Prague",null,"Czech Republic","CZ","Europe"],["RIX","Riga",null,"Latvia","LV","Europe"],["STN","London Stansted",null,"United Kingdom","GB","Europe"],["TXL","Berlin Tegel",null,"Germany","DE","Europe"],["VIE","Vienna",null,"Austria","AT","Europe"],["VNO","Vilnius",null,"Lithuania","LT","Europe"],["WAW","Warsaw",null,"Poland","PL","Europe"],["ZRH","Zürich",null,"Switzerland","CH","Europe"],["BHD","Belfast City",null,"United Kingdom","GB","Europe"],["BHX","Birmingham",null,"United Kingdom","GB","Europe"],["BOH","Bournemouth",null,"United Kingdom","GB","Europe"],["BRS","Bristol",null,"United Kingdom","GB","Europe"],["BSH","Brighton",null,"United Kingdom","GB","Europe"],["CAX","Carlisle",null,"United Kingdom","GB","Europe"],["CBG","Cambridge",null,"United Kingdom","GB","Europe"],["CEG","Chester",null,"United Kingdom","GB","Europe"],["DSA","Doncaster",null,"United Kingdom","GB","Europe"],["LCY","London City",null,"United Kingdom","GB","Europe"],["LON","London",null,"United Kingdom","GB","Europe"],["LPL","Liverpool",null,"United Kingdom","GB","Europe"],["LTN","London Luton",null,"United Kingdom","GB","Europe"],["MME","Durham Tees Valley",null,"United Kingdom","GB","Europe"],["NWI","Norwich",null,"United Kingdom","GB","Europe"],["VLY","Valley/Anglesey",null,"United Kingdom","GB","Europe"],["BWE","Braunschweig",null,"Germany","DE","Europe"],["BYU","Bayreuth",null,"Germany","DE","Europe"],["CGN","Cologne/Bonn",null,"Germany","DE","Europe"],["DRS","Dresden",null,"Germany","DE","Europe"],["DTM","Dortmund",null,"Germany","DE","Europe"],["ERF","Erfurt",null,"Germany","DE","Europe"],["ESS","Essen/Mülheim",null,"Germany","DE","Europe"],["FKB","Karlsruhe/Baden",null,"Germany","DE","Europe"],["HAJ","Hannover",null,"Germany","DE","Europe"],["HDB","Heidelberg",null,"Germany","DE","Europe"],["HOQ","Hof",null,"Germany","DE","Europe"],["KEL","Kiel",null,"Germany","DE","Europe"],["KSF","Kassel",null,"Germany","DE","Europe"],["KZG","Kitzingen",null,"Germany","DE","Europe"],["LEJ","Leipzig/Halle",null,"Germany","DE","Europe"],["MGL","Mönchengladbach",null,"Germany","DE","Europe"],["NRN","Weeze/Niederrhein",null,"Germany","DE","Europe"],["NUE","Nuremberg",null,"Germany","DE","Europe"],["SCN","Saarbrücken",null,"Germany","DE","Europe"],["SPM","Spangdahlem",null,"Germany","DE","Europe"],["STR","Stuttgart",null,"Germany","DE","Europe"],["WIE","Wiesbaden",null,"Germany","DE","Europe"],["EIN","Eindhoven",null,"Netherlands","NL","Europe"],["ENS","Enschede",null,"Netherlands","NL","Europe"],["GLZ","Gilze-Rijen",null,"Netherlands","NL","Europe"],["GRQ","Groningen",null,"Netherlands","NL","Europe"],["LEY","Lelystad",null,"Netherlands","NL","Europe"],["LWR","Leeuwarden",null,"Netherlands","NL","Europe"],["MST","Maastricht",null,"Netherlands","NL","Europe"],["RTM","Rotterdam",null,"Netherlands","NL","Europe"],["UDE","Volkel/Uden",null,"Netherlands","NL","Europe"],["BZG","Bydgoszcz",null,"Poland","PL","Europe"],["GDN","Gdańsk",null,"Poland","PL","Europe"],["KRK","Kraków",null,"Poland","PL","Europe"],["KTW","Katowice",null,"Poland","PL","Europe"],["LCJ","Łódź",null,"Poland","PL","Europe"],["POZ","Poznań",null,"Poland","PL","Europe"],["RDO","Radom",null,"Poland","PL","Europe"],["RZE","Rzeszów",null,"Poland","PL","Europe"],["SZZ","Szczecin",null,"Poland","PL","Europe"],["WRO","Wrocław",null,"Poland","PL","Europe"],["EBU","Saint-Étienne",null,"France","FR","Europe"],["LRT","Lorient",null,"France","FR","Europe"],["LYS","Lyon",null,"France","FR","Europe"],["NTE","Nantes",null,"France","FR","Europe"],["PAR","Paris",null,"France","FR","Europe"],["SXB","Strasbourg",null,"France","FR","Europe"],["TNF","Toussus-le-Noble",null,"France","FR","Europe"],["VAF","Valence",null,"France","FR","Europe"],["ANR","Antwerp",null,"Belgium","BE","Europe"],["LGG","Liège",null,"Belgium","BE","Europe"],["OBL","Oostmalle",null,"Belgium","BE","Europe"],["OST","Ostend",null,"Belgium","BE","Europe"],["XBK","Bourg-Léopold",null,"Belgium","BE","Europe"],["BRQ","Brno",null,"Czech Republic","CZ","Europe"],["OSR","Ostrava",null,"Czech Republic","CZ","Europe"],["PED","Pardubice",null,"Czech Republic","CZ","Europe"],["BTS","Bratislava",null,"Slovakia","SK","Europe"],["ILZ","Žilina",null,"Slovakia","SK","Europe"],["TAT","Poprad-Tatry",null,"Slovakia","SK","Europe"],["BIO","Bilbao",null,"Spain","ES","Europe"],["BLL","Billund",null,"Denmark","DK","Europe"],["BRN","Bern",null,"Switzerland","CH","Europe"],["KID","Kristianstad",null,"Sweden","SE","Europe"],["LIN","Milan Linate",null,"Italy","IT","Europe"],["LUX","Luxembourg",null,"Luxembourg","LU","Europe"],["OPO","Porto",null,"Portugal","PT","Europe"],["RKV","Reykjavik City",null,"Iceland","IS","Europe"],["SOF","Sofia",null,"Bulgaria","BG","Europe"],["STO","Stockholm",null,"Sweden","SE","Europe"],["TAY","Tartu",null,"Estonia","EE","Europe"],["TLL","Tallinn",null,"Estonia","EE","Europe"],["IWA","Ivanovo",null,"Russia","RU","Europe"],["KGD","Kaliningrad",null,"Russia","RU","Europe"],["KZN","Kazan",null,"Russia","RU","Europe"],["MOW","Moscow",null,"Russia","RU","Europe"],["ROV","Rostov-on-Don",null,"Russia","RU","Europe"],["RZN","Ryazan",null,"Russia","RU","Europe"],["VOG","Volgograd",null,"Russia","RU","Europe"],["BKK","Bangkok",null,"Thailand","TH","Asia Pacific"],["CAN","Guangzhou",null,"China","CN","Asia Pacific"],["CEB","Cebu",null,"Philippines","PH","Asia Pacific"],["CGK","Jakarta",null,"Indonesia","ID","Asia Pacific"],["CTU","Chengdu",null,"China","CN","Asia Pacific"],["DAD","Da Nang",null,"Vietnam","VN","Asia Pacific"],["DEL","Delhi",null,"India","IN","Asia Pacific"],["DPS","Bali Denpasar",null,"Indonesia","ID","Asia Pacific"],["HAN","Hanoi",null,"Vietnam","VN","Asia Pacific"],["HGH","Hangzhou",null,"China","CN","Asia Pacific"],["HKG","Hong Kong",null,"Hong Kong","HK","Asia Pacific"],["HND","Tokyo Haneda",null,"Japan","JP","Asia Pacific"],["ICN","Seoul Incheon",null,"South Korea","KR","Asia Pacific"],["KIX","Osaka Kansai",null,"Japan","JP","Asia Pacific"],["KUL","Kuala Lumpur",null,"Malaysia","MY","Asia Pacific"],["MNL","Manila",null,"Philippines","PH","Asia Pacific"],["BOM","Mumbai",null,"India","IN","Asia Pacific"],["NRT","Tokyo Narita",null,"Japan","JP","Asia Pacific"],["PEK","Beijing",null,"China","CN","Asia Pacific"],["PVG","Shanghai",null,"China","CN","Asia Pacific"],["SGN","Ho Chi Minh",null,"Vietnam","VN","Asia Pacific"],["SHA","Shanghai Hongqiao",null,"China","CN","Asia Pacific"],["SIN","Singapore",null,"Singapore","SG","Asia Pacific"],["SZX","Shenzhen",null,"China","CN","Asia Pacific"],["TPE","Taipei",null,"Taiwan","TW","Asia Pacific"],["KHV","Khabarovsk",null,"Russia","RU","Asia Pacific"],["AKL","Auckland",null,"New Zealand","NZ","Oceania"],["BNE","Brisbane","QLD","Australia","AU","Oceania"],["CBR","Canberra","ACT","Australia","AU","Oceania"],["CHC","Christchurch",null,"New Zealand","NZ","Oceania"],["MEL","Melbourne","VIC","Australia","AU","Oceania"],["PER","Perth","WA","Australia","AU","Oceania"],["SYD","Sydney","NSW","Australia","AU","Oceania"],["WLG","Wellington",null,"New Zealand","NZ","Oceania"],["ABX","Albury","NSW","Australia","AU","Oceania"],["ADL","Adelaide","SA","Australia","AU","Oceania"],["BHS","Bathurst","NSW","Australia","AU","Oceania"],["BUY","Bunbury","WA","Australia","AU","Oceania"],["NTL","Newcastle","NSW","Australia","AU","Oceania"],["PQQ","Port Macquarie","NSW","Australia","AU","Oceania"],["HLZ","Hamilton",null,"New Zealand","NZ","Oceania"],["NPE","Napier",null,"New Zealand","NZ","Oceania"],["TRG","Tauranga",null,"New Zealand","NZ","Oceania"],["TIJ","Tijuana",null,"Mexico","MX","Latin America"],["BOG","Bogotá",null,"Colombia","CO","Latin America"],["BSB","Brasília",null,"Brazil","BR","Latin America"],["CUN","Cancún",null,"Mexico","MX","Latin America"],["EZE","Buenos Aires",null,"Argentina","AR","Latin America"],["GDL","Guadalajara",null,"Mexico","MX","Latin America"],["GIG","Rio de Janeiro",null,"Brazil","BR","Latin America"],["GRU","São Paulo",null,"Brazil","BR","Latin America"],["HAV","Havana",null,"Cuba","CU","Latin America"],["LIM","Lima",null,"Peru","PE","Latin America"],["MEX","Mexico City",null,"Mexico","MX","Latin America"],["MDE","Medellín",null,"Colombia","CO","Latin America"],["MVD","Montevideo",null,"Uruguay","UY","Latin America"],["PTY","Panama City",null,"Panama","PA","Latin America"],["SCL","Santiago",null,"Chile","CL","Latin America"],["SJO","San José",null,"Costa Rica","CR","Latin America"],["UIO","Quito",null,"Ecuador","EC","Latin America"],["AUH","Abu Dhabi",null,"UAE","AE","Middle East"],["BAH","Bahrain",null,"Bahrain","BH","Middle East"],["DOH","Doha",null,"Qatar","QA","Middle East"],["DXB","Dubai",null,"UAE","AE","Middle East"],["JED","Jeddah",null,"Saudi Arabia","SA","Middle East"],["KWI","Kuwait City",null,"Kuwait","KW","Middle East"],["MCT","Muscat",null,"Oman","OM","Middle East"],["RUH","Riyadh",null,"Saudi Arabia","SA","Middle East"],["TLV","Tel Aviv",null,"Israel","IL","Middle East"],["ABJ","Abidjan",null,"Ivory Coast","CI","Africa"],["ACC","Accra",null,"Ghana","GH","Africa"],["ADD","Addis Ababa",null,"Ethiopia","ET","Africa"],["ALG","Algiers",null,"Algeria","DZ","Africa"],["CAI","Cairo",null,"Egypt","EG","Africa"],["CMN","Casablanca",null,"Morocco","MA","Africa"],["CPT","Cape Town",null,"South Africa","ZA","Africa"],["DAR","Dar es Salaam",null,"Tanzania","TZ","Africa"],["JNB","Johannesburg",null,"South Africa","ZA","Africa"],["LOS","Lagos",null,"Nigeria","NG","Africa"],["NBO","Nairobi",null,"Kenya","KE","Africa"],["BSK","Biskra",null,"Algeria","DZ","Africa"]],ge=new Map;for(const[a,t,o,s,u,r]of ct)ge.set(a,{code:a,city:t,...o?{state:o}:{},country:s,countryCode:u,continent:r});const ut={city:"Unknown",country:"Unknown",countryCode:"??",continent:"Unknown"};function q(a){return ge.get(a.toUpperCase())??{code:a.toUpperCase(),...ut}}function dt(a){const t=ge.get(a.toUpperCase());return t?t.state?`${t.city}, ${t.state}`:t.city:a.toUpperCase()}function mt(a){const t=new Map;for(const s of a){const u=q(s);let r=t.get(u.continent);r||(r=new Map,t.set(u.continent,r));let m=r.get(u.country);m||(m={countryCode:u.countryCode,codes:[]},r.set(u.country,m)),m.codes.push(s.toUpperCase())}return["North America","Europe","Asia Pacific","Oceania","Latin America","Middle East","Africa","Unknown"].filter(s=>t.has(s)).map(s=>({continent:s,countries:[...t.get(s).entries()].sort(([u],[r])=>u.localeCompare(r)).map(([u,{countryCode:r,codes:m}])=>({country:u,countryCode:r,codes:m.sort()}))}))}const ht=[{name:"West Coast Mesh",emoji:"🏄",continent:"North America",frequencyMHz:"927.875",codes:["SBP","SBA","OXR","LAX","SNA","ONT","PSP","SAN","TIJ"]}];function pt(a){const t=a.toUpperCase();return t.length!==2||t==="??"?"🏳️":String.fromCodePoint(...[...t].map(o=>127462+o.charCodeAt(0)-65))}const xt={"North America":"🌎","Latin America":"🌎",Europe:"🌍",Africa:"🌍","Middle East":"🌍","Asia Pacific":"🌏",Oceania:"🌏",Unknown:"🏳️"};function ft(a){return xt[a]??"🏳️"}function gt(a){const t=a.children.get("meshcore");if(!t)return[];const o=[];for(const[s,u]of t.children){if(s.length>4||s.length<2)continue;let r=0,m=0,h=0;for(const[,j]of u.children){m++,r+=j.messageCount;for(const[,A]of j.children)r+=A.messageCount,A.lastReceived>h&&(h=A.lastReceived);j.lastReceived>h&&(h=j.lastReceived)}r>0&&o.push({prefix:`meshcore/${s}`,iata:s,messageCount:r,observerCount:m,lastSeen:h})}return o.sort((s,u)=>u.messageCount-s.messageCount)}function _({label:a,children:t,className:o}){return e.jsxs("div",{className:C("flex flex-col gap-1",o),children:[e.jsx("label",{className:"type-data-xs text-fg-muted uppercase tracking-wider",children:a}),t]})}const Nt={connected:"green",connecting:"amber",error:"red",disconnected:"zinc"},ye=[{topic:"meshcore/#",label:"All MeshCore",description:"All traffic under meshcore/"},{topic:"meshcore/+/+/packets",label:"Packets",description:"Packet data from all observers"},{topic:"meshcore/+/+/status",label:"Status",description:"Observer status updates"},{topic:"#",label:"Everything",description:"All topics on broker"}];function St(){const[a,t]=c.useState(""),[o,s]=c.useState(!1),u=f(d=>d.subscribe),r=f(d=>d.unsubscribe),m=f(d=>d.subscriptions),j=f(d=>d.status)==="connected",A=c.useMemo(()=>new Set(ye.map(d=>d.topic)),[]),v=c.useMemo(()=>m.filter(d=>!A.has(d)),[m,A]),R=c.useCallback(d=>{m.includes(d)?r(d):u(d)},[m,u,r]),B=c.useCallback(d=>{d.preventDefault();const E=a.trim();E&&(u(E),t(""),s(!1))},[a,u]);return e.jsx("div",{className:"flex flex-col gap-2",children:e.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[e.jsx("span",{className:"type-data-xs text-fg-muted uppercase tracking-wider shrink-0 mr-1",children:"Topics"}),ye.map(({topic:d,label:E,description:S})=>{const U=m.includes(d);return e.jsxs("button",{onClick:()=>R(d),disabled:!j,title:`${U?"Unsubscribe from":"Subscribe to"} ${d}
${S}`,className:C("inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full","font-mono text-[11px] font-medium tracking-wide","border transition-all select-none","disabled:opacity-40 disabled:cursor-not-allowed",U?"border-sys-blue/50 bg-sys-blue/15 text-sys-blue":"border-edge-subtle/50 text-fg-muted hover:border-edge-subtle hover:text-fg-secondary hover:bg-subtle-fill/30"),children:[U&&e.jsx(ae,{className:"w-3 h-3"}),E]},d)}),(v.length>0||o)&&e.jsx("div",{className:"h-4 w-px bg-edge-subtle/40 mx-0.5"}),v.map(d=>e.jsxs("button",{onClick:()=>r(d),title:`Unsubscribe from ${d}`,className:C("inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full","font-mono text-[11px] font-medium tracking-wide","border border-sys-indigo/50 bg-sys-indigo/15 text-sys-indigo","hover:border-sys-red/50 hover:bg-sys-red/10 hover:text-sys-red","transition-all select-none group"),children:[e.jsx("span",{children:d}),e.jsx(Ae,{className:"w-3 h-3 opacity-50 group-hover:opacity-100"})]},d)),o?e.jsxs("form",{onSubmit:B,className:"inline-flex items-center gap-1",children:[e.jsx(W,{size:"sm",value:a,onChange:d=>t(d.target.value),placeholder:"topic/filter/#",className:"w-44 font-mono text-[11px]",autoFocus:!0,onBlur:()=>{a.trim()||s(!1)},onKeyDown:d=>{d.key==="Escape"&&(s(!1),t(""))}}),e.jsx(ne,{type:"submit",plain:!0,disabled:!a.trim(),title:"Subscribe",children:e.jsx(se,{"data-slot":"icon",className:"!w-3.5 !h-3.5"})})]}):e.jsxs("button",{onClick:()=>s(!0),disabled:!j,title:"Subscribe to a custom topic",className:C("inline-flex items-center gap-1 px-2 py-1 rounded-full","font-mono text-[11px] text-fg-muted","border border-dashed border-edge-subtle/50","hover:border-edge-subtle hover:text-fg-secondary hover:bg-subtle-fill/20","transition-all disabled:opacity-40 disabled:cursor-not-allowed"),children:[e.jsx(se,{className:"w-3 h-3"}),"Custom"]})]})})}function Ce({ch:a,selected:t,streaming:o,onToggle:s}){const u=q(a.iata),r=dt(a.iata),m=t&&o?Q:ae;return e.jsxs("button",{onClick:()=>s(a.iata),title:`${t?"Deselect":"Select"} ${a.iata} — ${r}, ${u.country}
${a.messageCount.toLocaleString()} msgs, ${a.observerCount} observer${a.observerCount!==1?"s":""}`,className:C("inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full","font-mono text-[11px] font-medium tracking-wide","border transition-all select-none",t?o?"border-sys-amber/50 bg-sys-amber/15 text-sys-amber":"border-sys-cyan/50 bg-sys-cyan/15 text-sys-cyan":"border-edge-subtle/40 text-fg-muted hover:border-edge-subtle hover:text-fg-secondary hover:bg-subtle-fill/30"),children:[t&&e.jsx(m,{className:"w-3 h-3"}),a.iata,e.jsx("span",{className:C("tabular-nums text-[10px]",t?"text-sys-cyan/60":"text-fg-muted/50"),children:a.messageCount.toLocaleString()}),a.observerCount>1&&e.jsxs("span",{className:C("text-[10px]",t?"text-sys-cyan/40":"text-fg-muted/30"),children:["×",a.observerCount]})]})}const yt=c.memo(function(){const t=f(i=>i.topicTree),o=f(i=>i.startStreaming),s=f(i=>i.stopStreaming),u=f(i=>i.toggleIata),r=f(i=>i.selectAllIatas),m=f(i=>i.deselectAllIatas),h=xe(),j=fe(),A=be(),[v,R]=c.useState(""),[B,d]=c.useState(()=>new Set),E=c.useRef(new Set),S=c.useMemo(()=>gt(t),[t]),U=c.useMemo(()=>{const i=new Map;for(const b of S)i.set(b.iata.toUpperCase(),b);return i},[S]),O=c.useMemo(()=>S.map(i=>i.iata),[S]),$=c.useMemo(()=>{if(!v)return S;const i=v.toLowerCase();return S.filter(b=>{var w;if(b.iata.toLowerCase().includes(i))return!0;const x=q(b.iata);return x.city.toLowerCase().includes(i)||x.country.toLowerCase().includes(i)||x.continent.toLowerCase().includes(i)||(((w=x.state)==null?void 0:w.toLowerCase().includes(i))??!1)})},[S,v]),K=c.useMemo(()=>mt($.map(i=>i.iata)),[$]),z=c.useMemo(()=>{const i=[...A.values()],b=new Set(S.map(x=>x.iata.toUpperCase()));return ht.map(x=>{var T;const w=new Set;if(x.codes)for(const D of x.codes)b.has(D)&&w.add(D);if(x.frequencyMHz){for(const D of i)if((T=D.radioConfig)!=null&&T.includes(x.frequencyMHz)){const V=D.iata.toUpperCase();b.has(V)&&w.add(V)}}return{...x,resolvedCodes:[...w].sort()}}).filter(x=>x.resolvedCodes.length>0)},[A,S]);c.useEffect(()=>{if(K.length===0)return;const i=E.current,b=K.map(x=>x.continent).filter(x=>!i.has(x));if(b.length!==0){for(const x of b)i.add(x);d(x=>{const w=new Set(x);for(const T of b)w.add(T);return w})}},[K]);const p=c.useMemo(()=>new Set(h),[h]),n=O.length>0&&O.every(i=>p.has(i)),N=h.length>0,y=j.active&&j.streaming,M=c.useRef(new Set),P=c.useRef(p);P.current=p;const F=c.useRef(h);F.current=h;const Y=c.useRef(z);Y.current=z,c.useEffect(()=>{const i=M.current;if(M.current=new Set(O),i.size===0||F.current.length===0)return;const b=O.filter(T=>!i.has(T));if(b.length===0)return;const x=P.current,w=[];for(const T of b){const D=q(T);let V=!1;for(const L of Y.current)if(L.resolvedCodes.includes(T.toUpperCase())){const k=L.resolvedCodes.filter(G=>i.has(G));if(k.length>0&&k.every(G=>x.has(G))){w.push(T),V=!0;break}}if(V)continue;const le=[...i].filter(L=>{const k=q(L);return k.continent===D.continent&&k.country===D.country});if(le.length>0&&le.every(L=>x.has(L))){w.push(T);continue}const g=[...i].filter(L=>q(L).continent===D.continent);g.length>0&&g.every(L=>x.has(L))&&w.push(T)}w.length>0&&r([...new Set([...F.current,...w])])},[O,r]);const l=c.useCallback(i=>{d(b=>{const x=new Set(b);return x.has(i)?x.delete(i):x.add(i),x})},[]),ce=c.useCallback(i=>{if(i.every(x=>p.has(x))){const x=new Set(i);r(h.filter(w=>!x.has(w)))}else{const x=[...new Set([...h,...i])];r(x)}},[p,h,r]);return S.length===0?e.jsxs("div",{className:"flex items-center gap-2 py-1.5 text-fg-muted type-data-xs",children:[e.jsx(He,{className:"w-3.5 h-3.5"}),"Channels appear as messages arrive…"]}):e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(st,{className:"w-3.5 h-3.5 text-fg-muted"}),e.jsx("span",{className:"type-data-xs text-fg-muted uppercase tracking-wider shrink-0",children:"Channels"}),e.jsx(H,{color:"zinc",children:S.length})]}),e.jsxs("button",{onClick:()=>n?m():r(O),className:C("inline-flex items-center gap-1 px-2 py-0.5 rounded-full","text-[11px] font-medium border transition-all select-none",n?"border-sys-cyan/40 bg-sys-cyan/10 text-sys-cyan hover:bg-sys-cyan/15":"border-edge-subtle/50 text-fg-muted hover:border-edge-subtle hover:text-fg-secondary"),title:n?"Deselect all channels":"Select all channels",children:[n?e.jsx(Ke,{className:"w-3 h-3"}):e.jsx(tt,{className:"w-3 h-3"}),n?"Deselect All":"Select All"]}),N&&e.jsxs(H,{color:"cyan",children:[h.length," selected"]}),e.jsx("div",{className:"flex-1"}),N&&e.jsx("div",{className:"flex items-center gap-1",children:e.jsxs("button",{onClick:()=>y?s():o(),className:C("inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-medium border transition-all select-none",y?"border-sys-amber/50 bg-sys-amber/20 text-sys-amber":"border-sys-cyan/40 bg-sys-cyan/10 text-sys-cyan hover:bg-sys-cyan/20"),title:y?"Stop live feed":"Start live feed from selected channels",children:[e.jsx(Q,{className:C("w-3 h-3",y&&"fill-current")}),y?"Streaming":"Stream"]})}),e.jsxs("div",{className:"relative max-w-48",children:[e.jsx(je,{className:"absolute left-2 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-fg-muted pointer-events-none"}),e.jsx(W,{size:"sm",value:v,onChange:i=>R(i.target.value),placeholder:"City, country, region…",className:"pl-7 w-full font-mono"})]})]}),e.jsx("div",{className:"flex flex-col gap-2",children:K.map(i=>{const b=i.continent,x=B.has(b),w=i.countries.reduce((g,L)=>g+L.codes.reduce((k,G)=>{var J;return k+(((J=U.get(G))==null?void 0:J.messageCount)??0)},0),0),T=i.countries.reduce((g,L)=>g+L.codes.length,0),D=i.countries.flatMap(g=>g.codes),V=D.length>0&&D.every(g=>p.has(g)),le=D.some(g=>p.has(g));return e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1.5 py-1",children:[e.jsxs("button",{onClick:()=>l(b),className:"flex items-center gap-1.5 text-left group",children:[e.jsx(oe,{className:C("w-3 h-3 text-fg-muted transition-transform duration-150",!x&&"rotate-90")}),e.jsxs("span",{className:"type-data-xs text-fg-secondary font-medium uppercase tracking-wider",children:[ft(i.continent)," ",i.continent]}),e.jsx("span",{className:"type-data-xs text-fg-muted/50 tabular-nums",children:T}),e.jsxs("span",{className:"type-data-xs text-fg-muted/30 tabular-nums",children:[w.toLocaleString()," msgs"]})]}),e.jsx("button",{onClick:g=>{g.stopPropagation(),ce(D)},className:C("inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded-full","text-[10px] font-medium border transition-all select-none ml-1",V?y?"border-sys-amber/40 bg-sys-amber/10 text-sys-amber hover:bg-sys-amber/15":"border-sys-cyan/40 bg-sys-cyan/10 text-sys-cyan hover:bg-sys-cyan/15":le?"border-sys-cyan/30 bg-sys-cyan/5 text-sys-cyan/70 hover:bg-sys-cyan/10":"border-edge-subtle/40 text-fg-muted/60 hover:border-edge-subtle hover:text-fg-secondary"),title:V?`Deselect all ${i.continent} channels`:`Select all ${i.continent} channels`,children:V?y?e.jsx(Q,{className:"w-2.5 h-2.5"}):e.jsx(ae,{className:"w-2.5 h-2.5"}):e.jsx(se,{className:"w-2.5 h-2.5"})})]}),!x&&e.jsxs("div",{className:"ml-4 flex flex-col gap-1.5",children:[z.filter(g=>g.continent===i.continent).map(g=>{const L=`${b}/_curated/${g.name}`,k=B.has(L),G=g.resolvedCodes.length>0&&g.resolvedCodes.every(I=>p.has(I)),J=g.resolvedCodes.some(I=>p.has(I));return e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1.5 py-0.5",children:[e.jsxs("button",{onClick:()=>l(L),className:"flex items-center gap-1.5 text-left",children:[e.jsx(oe,{className:C("w-2.5 h-2.5 text-fg-muted/60 transition-transform duration-150",!k&&"rotate-90")}),e.jsxs("span",{className:"text-[11px] text-sys-amber font-medium",children:[g.emoji," ",g.name]}),e.jsx("span",{className:"text-[10px] text-fg-muted/40 tabular-nums",children:g.resolvedCodes.length}),g.frequencyMHz&&e.jsxs("span",{className:"text-[9px] text-fg-muted/30 font-mono",children:[g.frequencyMHz," MHz"]})]}),e.jsx("button",{onClick:I=>{I.stopPropagation(),ce(g.resolvedCodes)},className:C("inline-flex items-center gap-0.5 px-1 py-0.5 rounded-full","text-[9px] font-medium border transition-all select-none",G?y?"border-sys-amber/40 bg-sys-amber/10 text-sys-amber hover:bg-sys-amber/15":"border-sys-cyan/40 bg-sys-cyan/10 text-sys-cyan hover:bg-sys-cyan/15":J?"border-sys-cyan/30 bg-sys-cyan/5 text-sys-cyan/70 hover:bg-sys-cyan/10":"border-edge-subtle/30 text-fg-muted/50 hover:border-edge-subtle hover:text-fg-secondary"),title:G?`Deselect all ${g.name} channels`:`Select all ${g.name} channels`,children:G?y?e.jsx(Q,{className:"w-2 h-2"}):e.jsx(ae,{className:"w-2 h-2"}):e.jsx(se,{className:"w-2 h-2"})})]}),!k&&e.jsx("div",{className:"flex flex-wrap gap-1.5 ml-4 mt-0.5",children:g.resolvedCodes.map(I=>{const X=U.get(I);return X?e.jsx(Ce,{ch:X,selected:p.has(X.iata),streaming:y,onToggle:u},I):null})})]},g.name)}),i.countries.map(({country:g,countryCode:L,codes:k})=>{const G=`${b}/${g}`,J=B.has(G),I=i.countries.length>1||k.length>6,X=k.length>0&&k.every(Z=>p.has(Z)),Le=k.some(Z=>p.has(Z));return e.jsxs("div",{children:[I&&e.jsxs("div",{className:"flex items-center gap-1.5 py-0.5",children:[e.jsxs("button",{onClick:()=>l(G),className:"flex items-center gap-1.5 text-left",children:[e.jsx(oe,{className:C("w-2.5 h-2.5 text-fg-muted/60 transition-transform duration-150",!J&&"rotate-90")}),e.jsxs("span",{className:"text-[11px] text-fg-muted",children:[pt(L)," ",g]}),e.jsx("span",{className:"text-[10px] text-fg-muted/40 tabular-nums",children:k.length})]}),e.jsx("button",{onClick:Z=>{Z.stopPropagation(),ce(k)},className:C("inline-flex items-center gap-0.5 px-1 py-0.5 rounded-full","text-[9px] font-medium border transition-all select-none",X?y?"border-sys-amber/40 bg-sys-amber/10 text-sys-amber hover:bg-sys-amber/15":"border-sys-cyan/40 bg-sys-cyan/10 text-sys-cyan hover:bg-sys-cyan/15":Le?"border-sys-cyan/30 bg-sys-cyan/5 text-sys-cyan/70 hover:bg-sys-cyan/10":"border-edge-subtle/30 text-fg-muted/50 hover:border-edge-subtle hover:text-fg-secondary"),title:X?`Deselect all ${g} channels`:`Select all ${g} channels`,children:X?y?e.jsx(Q,{className:"w-2 h-2"}):e.jsx(ae,{className:"w-2 h-2"}):e.jsx(se,{className:"w-2 h-2"})})]}),(!I||!J)&&e.jsx("div",{className:C("flex flex-wrap gap-1.5",I&&"ml-4 mt-0.5"),children:k.map(Z=>{const ue=U.get(Z);return ue?e.jsx(Ce,{ch:ue,selected:p.has(ue.iata),streaming:y,onToggle:u},Z):null})})]},g)})]})]},b)})})]})});function Ct(){const a=f(l=>l.name),t=f(l=>l.host),o=f(l=>l.port),s=f(l=>l.basepath),u=f(l=>l.protocol),r=f(l=>l.encryption),m=f(l=>l.validateCertificate),h=f(l=>l.username),j=f(l=>l.password),A=f(l=>l.status),v=f(l=>l.error),R=f(l=>l.messageCount),B=f(l=>l.setName),d=f(l=>l.setHost),E=f(l=>l.setPort),S=f(l=>l.setBasepath),U=f(l=>l.setProtocol),O=f(l=>l.setEncryption),$=f(l=>l.setValidateCertificate),K=f(l=>l.setUsername),z=f(l=>l.setPassword),p=f(l=>l.connect),n=f(l=>l.disconnect),N=A==="connected",y=A==="connecting",M=!!t&&!N&&!y,P=N||y,F=t?Me({host:t,port:o,basepath:s,protocol:u}):"",Y=c.useCallback(()=>{N?n():p()},[N,p,n]);return e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsxs("div",{className:"flex flex-col gap-3 max-w-3xl",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-end gap-3",children:[e.jsx(_,{label:"Protocol",className:"w-[135px] shrink-0",children:e.jsxs(Ee,{value:u,onChange:l=>U(l),disabled:P,"aria-label":"Protocol",className:"[&_button]:h-8 [&_button]:py-0",children:[e.jsx(de,{value:"wss",children:"wss://"}),e.jsx(de,{value:"mqtt",children:"mqtt://"})]})}),e.jsx(_,{label:"Host",className:"flex-1 min-w-0",children:e.jsx(W,{size:"sm",value:t,onChange:l=>d(l.target.value),placeholder:"mqtt.broker.xyz",disabled:P})}),e.jsx(_,{label:"Port",className:"w-20 shrink-0",children:e.jsx(W,{size:"sm",type:"number",value:String(o),onChange:l=>E(Number(l.target.value)||443),disabled:P})}),e.jsx(ne,{color:N?"danger":"primary",onClick:Y,disabled:!M&&!N,className:C("shrink-0 sm:self-end",y&&"animate-pulse"),children:N?e.jsxs(e.Fragment,{children:[e.jsx(it,{"data-slot":"icon",className:"!w-4 !h-4"})," Disconnect"]}):e.jsxs(e.Fragment,{children:[e.jsx(rt,{"data-slot":"icon",className:"!w-4 !h-4"})," Connect"]})})]}),e.jsxs(Pe,{children:[e.jsxs(ke,{className:"!px-0 !py-1 !justify-start gap-2 w-auto",icon:e.jsx(pe,{className:"w-3.5 h-3.5"}),children:[e.jsx(Ie,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"type-data-xs uppercase tracking-wider",children:"Connection details"})]}),e.jsx(Re,{children:e.jsxs("div",{className:"flex flex-col gap-3 pt-1",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-end gap-3",children:[e.jsx(_,{label:"Name",className:"flex-1 min-w-0",children:e.jsx(W,{size:"sm",value:a,onChange:l=>B(l.target.value),placeholder:"My Connection",disabled:P})}),e.jsx(_,{label:"Basepath",className:"w-24 shrink-0",children:e.jsx(W,{size:"sm",value:s,onChange:l=>S(l.target.value),placeholder:"ws",disabled:P})}),e.jsxs("div",{className:"flex items-center gap-4 sm:pb-0.5",children:[e.jsx(Ne,{enabled:r,onChange:O,label:"TLS",size:"sm",disabled:P}),e.jsx(Ne,{enabled:m,onChange:$,label:"Verify cert",size:"sm",disabled:P})]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-end gap-3 max-w-md",children:[e.jsx(_,{label:"Username",className:"flex-1 min-w-0",children:e.jsx(W,{size:"sm",value:h,onChange:l=>K(l.target.value),placeholder:"optional",disabled:P})}),e.jsx(_,{label:"Password",className:"flex-1 min-w-0",children:e.jsx(W,{size:"sm",type:"password",value:j,onChange:l=>z(l.target.value),placeholder:"optional",disabled:P})})]})]})})]})]}),e.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[e.jsx(H,{color:Nt[A]??"zinc",children:A}),N&&R>0&&e.jsxs("span",{className:"type-data-xs text-fg-muted tabular-nums",children:[R.toLocaleString()," msgs"]}),A==="error"&&v&&e.jsx("span",{className:"type-data-xs text-sys-red truncate max-w-60",title:v,children:v}),F&&e.jsx("span",{className:"font-mono text-[11px] text-fg-muted/40 truncate min-w-0",title:F,children:F})]}),e.jsx("div",{className:"border-t border-edge-subtle/20 pt-4",children:e.jsx(St,{})}),N&&e.jsx("div",{className:"border-t border-edge-subtle/20 pt-4",children:e.jsx(yt,{})})]})}function ve(a){let t=a.messageCount;for(const o of a.children.values())t+=ve(o);return t}const At=c.memo(function a({node:t,depth:o,onSelect:s,selectedTopic:u}){const[r,m]=c.useState(!1),h=t.children.size>0,j=t.fullPath===u,A=j||u.startsWith(t.fullPath+"/"),v=c.useCallback(E=>{E.stopPropagation(),h&&m(S=>!S)},[h]),R=c.useCallback(()=>{s(t.fullPath),h&&!r&&m(!0)},[t.fullPath,s,h,r]),B=t.lastReceived>0?`${Math.round((Date.now()-t.lastReceived)/1e3)}s ago`:"",d=h?[...t.children.values()].sort((E,S)=>S.messageCount-E.messageCount):[];return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:C("flex items-center gap-1.5 py-1 px-2 radius-control cursor-pointer select-none",j?"bg-sys-cyan/10 text-sys-cyan hover:bg-sys-cyan/15":A?"bg-sys-cyan/5 hover:bg-sys-cyan/10":"hover:bg-white/10"),style:{paddingLeft:`${o*16+8}px`},onClick:R,role:"treeitem","aria-expanded":h?r:void 0,"aria-selected":j,children:[e.jsx("span",{className:"type-data-xs text-fg-muted tabular-nums flex-shrink-0 w-8 text-right",children:(()=>{const E=ve(t);return E>0?E.toLocaleString():""})()}),e.jsx("span",{className:"w-4 h-4 flex-shrink-0 flex items-center justify-center",onClick:h?v:void 0,children:h?e.jsx(oe,{className:C("w-3.5 h-3.5 text-fg-muted transition-transform duration-150",r&&"rotate-90")}):e.jsx(Ve,{className:"w-3 h-3 text-fg-muted/50"})}),e.jsx("span",{className:"font-mono text-xs truncate flex-1",children:t.segment}),B&&e.jsx("span",{className:"type-data-xs text-fg-muted/60 flex-shrink-0 w-14 text-right",children:B})]}),r&&d.map(E=>e.jsx(a,{node:E,depth:o+1,onSelect:s,selectedTopic:u},E.segment))]})});function bt({onTopicSelect:a,selectedTopic:t}){const s=[...Be().children.values()].sort((u,r)=>r.messageCount-u.messageCount);return s.length===0?e.jsx("div",{className:"flex items-center justify-center h-full text-fg-muted type-data-sm",children:"No topics yet"}):e.jsx("div",{className:"overflow-y-auto h-full",role:"tree",children:s.map(u=>e.jsx(At,{node:u,depth:0,onSelect:a,selectedTopic:t},u.segment))})}const Ut={advert:"indigo",trace:"cyan",grp_txt:"green",ack:"zinc",path:"amber",txt_msg:"blue"},Et=c.memo(function({msg:t}){const[o,s]=c.useState(!1),u=new Date(t.timestamp).toLocaleTimeString(),r=t.topic.split("/").slice(-2).join("/");return e.jsxs("div",{className:"px-3 py-2 border-b border-edge-subtle/30 hover:bg-subtle-fill/50 transition-base",children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.jsx("span",{className:"type-data-xs text-fg-muted tabular-nums flex-shrink-0 w-[72px]",children:u}),e.jsx("span",{className:"font-mono text-xs text-sys-blue truncate flex-1 min-w-0",title:t.topic,children:r}),t.meshcorePacket&&e.jsxs(H,{color:Ut[t.meshcorePacket.type]??"zinc",className:"flex-shrink-0",children:[e.jsx(ie,{className:"w-3 h-3 mr-1"}),t.meshcorePacket.type]}),e.jsx("span",{className:"type-data-xs text-fg-muted/60 tabular-nums flex-shrink-0 w-12 text-right",children:t.size<1024?`${t.size}B`:`${(t.size/1024).toFixed(1)}K`}),t.payloadJson&&e.jsx("button",{onClick:()=>s(m=>!m),className:"text-fg-muted hover:text-fg-primary transition-colors flex-shrink-0","aria-label":o?"Collapse":"Expand",children:o?e.jsx(ze,{className:"w-3.5 h-3.5"}):e.jsx(pe,{className:"w-3.5 h-3.5"})})]}),!o&&e.jsx("p",{className:"font-mono text-[11px] text-fg-secondary truncate mt-0.5 pl-[80px]",children:t.payloadJson?jt(t.payloadJson):t.payloadRaw.slice(0,120)}),o&&t.payloadJson&&e.jsx("pre",{className:"font-mono text-[11px] text-fg-secondary mt-1.5 ml-[80px] p-2 bg-input-bg radius-inner overflow-x-auto max-h-64",children:JSON.stringify(t.payloadJson,null,2)})]})});function jt(a){const t=Object.keys(a),o=t.slice(0,4).map(s=>{const u=a[s],r=typeof u=="string"?u:JSON.stringify(u);return`${s}: ${(r??"").slice(0,24)}`}).join(", ");return t.length>4?`{ ${o}, … }`:`{ ${o} }`}function vt({topicFilter:a}){const t=f(p=>p.messages),o=f(p=>p.paused),s=f(p=>p.setPaused),u=f(p=>p.clearMessages),r=fe(),m=xe(),h=c.useRef(null),[j,A]=c.useState(!0),v=c.useRef(t.length);v.current=t.length;const R=c.useRef(t.length),B=c.useRef(0),[d,E]=c.useState(0);c.useEffect(()=>{const p=setInterval(()=>{const n=v.current-R.current;R.current=v.current,B.current=B.current*.7+n*.3,E(B.current)},1e3);return()=>clearInterval(p)},[]);const S=c.useMemo(()=>a?t.filter(p=>p.topic.startsWith(a)):t,[t,a]),U=Fe({count:S.length,getScrollElement:()=>h.current,estimateSize:()=>52,overscan:20});c.useEffect(()=>{j&&S.length>0&&!o&&U.scrollToIndex(S.length-1,{align:"end"})},[S.length,j,o,U]);const O=c.useCallback(()=>{const p=h.current;if(!p)return;const n=p.scrollHeight-p.scrollTop-p.clientHeight<80;A(n)},[]),$=d<.1?"0":d<10?d.toFixed(1):Math.round(d).toLocaleString(),K=e.jsxs(e.Fragment,{children:[e.jsxs("span",{className:"type-data-xs text-fg-muted tabular-nums",children:[$," pkt/s"]}),a&&e.jsx(H,{color:"blue",children:e.jsx("span",{className:"font-mono text-[11px]",children:a})}),m.length>0&&e.jsxs(H,{color:"cyan",children:[e.jsx(We,{className:"w-3 h-3 mr-1"}),m.length," ch"]}),r.active&&e.jsxs(H,{color:"cyan",children:[e.jsx(ie,{className:"w-3 h-3 mr-1"}),r.packetCount," injected"]})]}),z=e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(ne,{plain:!0,onClick:()=>s(!o),title:o?"Resume":"Pause",className:C(!o||"text-sys-amber"),children:o?e.jsx($e,{"data-slot":"icon",className:"!w-4 !h-4"}):e.jsx(Ze,{"data-slot":"icon",className:"!w-4 !h-4"})}),e.jsx(ne,{plain:!0,onClick:u,title:"Clear messages",children:e.jsx(Ye,{"data-slot":"icon",className:"!w-4 !h-4"})})]});return e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsx(Ue,{icon:e.jsx(Je,{className:"icon-sm"}),title:"Messages",listHeader:!0,titleExtra:K,actions:z}),e.jsx("div",{ref:h,onScroll:O,className:"flex-1 overflow-y-auto min-h-0",children:S.length===0?e.jsx("div",{className:"flex items-center justify-center h-full text-fg-muted type-data-sm",children:t.length===0?"No messages yet — subscribe to a topic":"No messages match filter"}):e.jsx("div",{style:{height:`${U.getTotalSize()}px`,position:"relative"},children:U.getVirtualItems().map(p=>e.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${p.start}px)`},"data-index":p.index,ref:U.measureElement,children:e.jsx(Et,{msg:S[p.index]})},p.key))})})]})}const wt=/^v?\d+(?:\.\d+)+(?:[-+].+)?$|^v?\d+$/i;function we(a){if(!a||!a.trim())return{family:"unknown",version:""};const o=a.trim().split(/[\s/]+/),s=[],u=[];for(const h of o)wt.test(h)?u.push(h.replace(/^v/i,"")):s.push(h);const r=s.length>0?s.join(" ").toLowerCase():"(bare)",m=u.join(".");return{family:r,version:m}}function Lt(a){const t=new Map;for(const o of a){const{family:s,version:u}=we(o.firmwareVersion);let r=t.get(s);r||(r={count:0,versions:new Map},t.set(s,r)),r.count++;const m=u||"—";r.versions.set(m,(r.versions.get(m)??0)+1)}return[...t.entries()].map(([o,{count:s,versions:u}])=>({family:o,count:s,versions:[...u.entries()].map(([r,m])=>({version:r,count:m})).sort((r,m)=>m.count-r.count)})).sort((o,s)=>s.count-o.count)}const Mt=c.memo(function({observer:t}){const o=t.status==="online",s=t.lastSeen?`${Math.round((Date.now()-t.lastSeen)/1e3)}s ago`:"never";return e.jsx(ee,{compact:!0,children:e.jsxs("div",{className:"flex flex-col gap-2 h-full",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:C("w-2 h-2 rounded-full flex-shrink-0",o?"bg-sys-green":"bg-fg-muted/30")}),e.jsx("span",{className:"type-data-sm text-fg-primary font-medium truncate flex-1",children:t.name}),e.jsx(H,{color:o?"green":"zinc",children:o?e.jsxs(e.Fragment,{children:[e.jsx(_e,{className:"w-3 h-3 mr-1"}),"online"]}):e.jsxs(e.Fragment,{children:[e.jsx(qe,{className:"w-3 h-3 mr-1"}),"offline"]})})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1 text-xs",children:[e.jsx(te,{label:"IATA",value:t.iata.toUpperCase()}),e.jsx(te,{label:"Packets",value:t.packetCount.toLocaleString()}),e.jsx(te,{label:"Last seen",value:s}),t.firmwareVersion&&e.jsx(te,{label:"Firmware",value:t.firmwareVersion}),t.radioConfig&&e.jsx(te,{label:"Radio",value:t.radioConfig})]}),e.jsx("span",{className:"font-mono text-[10px] text-fg-muted/50 truncate mt-auto",title:t.id,children:t.id})]})})});function te({label:a,value:t}){return e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-fg-muted",children:a}),e.jsx("span",{className:"text-fg-secondary tabular-nums truncate",children:t})]})}function Pt(a){if(!a)return{};const t=a.split("/");if(t[0]!=="meshcore"||t.length<2)return{};const o=t[1],s=t.length>=3?t[2]:void 0;return{iata:o,pubkey:s}}const kt=[25,50,100,250];function Rt({topicFilter:a=""}){const t=be(),o=xe(),[s,u]=c.useState(""),[r,m]=c.useState(null),[h,j]=c.useState(50),[A,v]=c.useState(50),R=c.useMemo(()=>Pt(a),[a]),B=c.useMemo(()=>[...t.values()].sort((n,N)=>N.lastSeen-n.lastSeen),[t]),d=c.useMemo(()=>{let n=B;if(R.iata)n=n.filter(N=>!(N.iata.toLowerCase()!==R.iata.toLowerCase()||R.pubkey&&N.id!==R.pubkey));else if(o.length>0){const N=new Set(o.map(y=>y.toLowerCase()));n=n.filter(y=>N.has(y.iata.toLowerCase()))}return n},[B,R,o]),E=c.useMemo(()=>Lt(d),[d]),S=c.useMemo(()=>d.map(n=>({obs:n,parsed:we(n.firmwareVersion)})),[d]),U=c.useMemo(()=>{if(!s)return d;const n=s.toLowerCase();return S.filter(({obs:N,parsed:y})=>{var P,F,Y;if(y.family.includes(n)||y.version.toLowerCase().includes(n)||(P=N.firmwareVersion)!=null&&P.toLowerCase().includes(n)||N.name.toLowerCase().includes(n)||N.iata.toLowerCase().includes(n)||(F=N.radioConfig)!=null&&F.toLowerCase().includes(n)||N.id.toLowerCase().includes(n))return!0;const M=q(N.iata);return!!(M.city.toLowerCase().includes(n)||M.country.toLowerCase().includes(n)||M.continent.toLowerCase().includes(n)||(Y=M.state)!=null&&Y.toLowerCase().includes(n))}).map(({obs:N})=>N)},[d,S,s]),O=c.useMemo(()=>U.slice(0,A),[U,A]),$=U.length>A,K=c.useCallback(n=>{j(n),v(n)},[]),z=c.useCallback(n=>{u(n),m(null),v(h)},[h]),p=c.useCallback(()=>{v(n=>n+h)},[h]);return d.length===0?e.jsx(ee,{compact:!0,children:e.jsxs("div",{className:"flex flex-col items-center justify-center gap-2 py-6 text-fg-muted",children:[e.jsx(Se,{className:"w-6 h-6 opacity-40"}),e.jsx("span",{className:"type-data-sm",children:"No observers discovered yet"}),e.jsxs("span",{className:"type-data-xs text-fg-muted/60",children:["Subscribe to ",e.jsx("code",{className:"font-mono",children:"meshcore/#"})," to see LetsMesh observers"]})]})}):e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Se,{className:"w-3.5 h-3.5 text-fg-muted"}),e.jsx("span",{className:"type-data-xs text-fg-muted uppercase tracking-wider",children:"Observers"}),e.jsx(H,{color:"zinc",children:d.length})]}),e.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[e.jsx(Xe,{className:"w-3 h-3 text-fg-muted/50"}),E.map(n=>{const N=s.toLowerCase()===n.family,y=r===n.family;return e.jsxs("span",{className:"inline-flex items-center gap-0.5",children:[e.jsxs("button",{onClick:()=>{N?m(y?null:n.family):(u(n.family),m(null))},className:C("inline-flex items-center gap-1 px-2 py-0.5 rounded-full","font-mono text-[10px] font-medium","border transition-all select-none",N?"border-sys-indigo/50 bg-sys-indigo/15 text-sys-indigo":"border-edge-subtle/40 text-fg-muted hover:border-edge-subtle hover:text-fg-secondary"),title:`${n.count} observer${n.count!==1?"s":""} — ${n.family}${n.versions.length>1?` (${n.versions.length} versions)`:""}`,children:[n.family,e.jsx("span",{className:C("text-[9px] tabular-nums",N?"text-sys-indigo/60":"text-fg-muted/40"),children:n.count}),n.versions.length>1&&e.jsxs("span",{className:C("text-[9px]",N?"text-sys-indigo/40":"text-fg-muted/30"),children:["·",n.versions.length,"v"]})]}),y&&n.versions.map(M=>{const P=s===M.version;return e.jsxs("button",{onClick:()=>u(P?n.family:M.version),className:C("inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded-full","font-mono text-[9px]","border transition-all select-none",P?"border-sys-blue/50 bg-sys-blue/15 text-sys-blue":"border-edge-subtle/30 text-fg-muted/60 hover:text-fg-muted hover:border-edge-subtle/50"),title:`${M.count} observer${M.count!==1?"s":""} on ${M.version}`,children:[M.version,e.jsx("span",{className:"text-[8px] tabular-nums opacity-60",children:M.count})]},M.version)})]},n.family)})]}),e.jsx("div",{className:"flex-1"}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[s&&e.jsx("span",{className:"text-[10px] tabular-nums text-fg-muted",children:U.length}),e.jsxs("div",{className:"relative max-w-44",children:[e.jsx(je,{className:"absolute left-2 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-fg-muted pointer-events-none"}),e.jsx(W,{size:"sm",value:s,onChange:n=>z(n.target.value),placeholder:"Region, firmware, name, ID…",className:"pl-7 w-full font-mono text-xs"})]}),e.jsx(Ee,{value:h,onChange:K,"aria-label":"Per page",className:"w-[88px] shrink-0 [&_button]:h-8 [&_button]:py-0 [&_button]:text-[11px] [&_button]:tabular-nums",children:kt.map(n=>e.jsxs(de,{value:n,children:["Show ",n]},n))})]})]}),U.length===0?e.jsx(ee,{compact:!0,children:e.jsxs("div",{className:"flex items-center justify-center gap-2 py-4 text-fg-muted type-data-xs",children:["No observers match “",s,"”"]})}):e.jsxs(e.Fragment,{children:[e.jsx(me,{template:"compact",children:O.map(n=>e.jsx(he,{span:12,sm:6,lg:4,xl:3,children:e.jsx(Mt,{observer:n})},n.id))}),$&&e.jsxs("div",{className:"flex items-center justify-center gap-3 pt-1",children:[e.jsxs("button",{onClick:p,className:C("inline-flex items-center gap-1.5 px-4 py-1.5 rounded-full","text-[11px] font-medium","border border-edge-subtle/50 text-fg-muted","hover:border-edge-subtle hover:text-fg-secondary hover:bg-subtle-fill/30","transition-all select-none"),children:[e.jsx(pe,{className:"w-3 h-3"}),"Show more (",U.length-A," remaining)"]}),e.jsxs("span",{className:"text-[10px] text-fg-muted/40 tabular-nums",children:[O.length," / ",U.length]})]})]})]})}function ta(){const[a,t]=c.useState(""),o=f(m=>m.status),s=fe(),u=f(m=>m.stopMqttMode),r=c.useCallback(m=>{t(h=>h===m?"":m)},[]);return e.jsxs(De,{children:[e.jsxs("div",{className:"relative",style:{isolation:"isolate"},children:[e.jsx(Oe,{title:"MQTT Subscription",icon:e.jsx(Te,{}),subtitle:e.jsxs("div",{className:"flex items-start gap-2 max-w-2xl",children:[e.jsx(Qe,{className:"w-3.5 h-3.5 text-sys-amber shrink-0 mt-0.5"}),e.jsx("p",{className:"text-xs leading-relaxed text-fg-muted",children:"Use an external MQTT broker to feed packets into pymc_console. Limited to live sessions only — does not overwrite pyMC_Repeater database or interfere with its operation. Hard refresh or clearing session cache will clear MQTT data. Don't try this on a phone."})]})}),e.jsxs("span",{className:"absolute top-1.5 left-[265px] sm:left-[320px] -rotate-12 select-none pointer-events-none",style:{zIndex:9999,opacity:.8},"aria-hidden":"true",children:[e.jsx("svg",{className:"absolute",width:"0",height:"0","aria-hidden":"true",children:e.jsx("defs",{children:e.jsxs("filter",{id:"stamp-distress",children:[e.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.65",numOctaves:"4",seed:"2",result:"noise"}),e.jsx("feColorMatrix",{type:"saturate",values:"0",in:"noise",result:"gray"}),e.jsx("feComponentTransfer",{in:"gray",result:"threshold",children:e.jsx("feFuncA",{type:"discrete",tableValues:"0 0 1 1 1"})}),e.jsx("feComposite",{in:"SourceGraphic",in2:"threshold",operator:"in"})]})})}),e.jsx("span",{className:"inline-block border-[1.5px] border-sys-amber rounded px-1.5 py-px font-black text-sm tracking-[0.06em] uppercase text-sys-amber",style:{filter:"url(#stamp-distress)",mixBlendMode:"soft-light"},children:"BETA"})]})]}),e.jsxs(Ge,{ready:!0,children:[s.active&&e.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 py-2.5 mb-2 bg-sys-cyan/10 border border-sys-cyan/30 radius-card",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ie,{className:"w-4 h-4 text-sys-cyan"}),e.jsx("span",{className:"text-sys-cyan font-medium text-sm",children:"MQTT Mode Active"}),e.jsxs(H,{color:"cyan",children:[s.packetCount.toLocaleString()," packets"]}),s.channel&&e.jsx("span",{className:"font-mono text-xs text-fg-muted",children:s.channel}),s.iatas.length>0&&e.jsx("span",{className:"text-xs text-fg-secondary",children:s.iatas.join(", ")}),s.streaming&&e.jsxs(H,{color:"cyan",children:[e.jsx(Q,{className:"w-3 h-3 mr-1 fill-current"}),"Live"]})]}),e.jsx(ne,{plain:!0,onClick:u,title:"Exit MQTT mode",className:"text-sys-cyan hover:text-sys-cyan/70",children:e.jsx(Ae,{"data-slot":"icon",className:"!w-4 !h-4"})})]}),e.jsx(me,{template:"auto",children:e.jsx(ee,{compact:!0,children:e.jsx(Ct,{})})}),e.jsxs(me,{template:"hero-tall",children:[e.jsx(he,{span:12,md:4,children:e.jsxs(ee,{noPadding:!0,className:"overflow-hidden",children:[e.jsx(Ue,{icon:e.jsx(ie,{className:"icon-sm"}),title:"Topics",listHeader:!0}),e.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",style:{height:"calc(100% - 57px)"},children:e.jsx(bt,{onTopicSelect:r,selectedTopic:a})})]})}),e.jsx(he,{span:12,md:8,children:e.jsx(ee,{noPadding:!0,children:e.jsx(vt,{topicFilter:a})})})]}),o==="connected"&&e.jsx(Rt,{topicFilter:a})]})]})}export{ta as default};
