import{j as e,i as n,x as L,o as $,t as v,A as C,y as J,z as K}from"./vendor-ui-BljgDEJN.js";import{r as t,f as F,u as U}from"./vendor-react-C0ZmnAiH.js";import{p as P,d as B,s as H,f as z,N as I,U as X,o as Y,a as e0}from"./index-DKlMA-ia.js";import{u as N}from"./use_user-CM8gBokC.js";import{u as t0}from"./use_circuit-BYcIF_ne.js";import{U as a0}from"./index-BM0MLGJx.js";import{m as n0,s as i0,c as r0,a as o0,n as s0}from"./XLogo.es-DfBiXxZn.js";import{u as T}from"./vendor-utils-DwtcRXMR.js";import{I as l0,P as c0,F as y}from"./particle_field-DM41ijTY.js";import{u as d0}from"./use_metric-BjGJQo5Y.js";import{U as m0,r as p0}from"./index-BbtwFzJP.js";import{U as h0}from"./index-DbgbYcfD.js";import{P as u0}from"./index-vegZwKa2.js";import{u as x0}from"./use_metadata-CiXUig_P.js";import{U as g0}from"./index-CiF_71XB.js";import"./vendor-three-IlAtTY_M.js";import"./vendor-query-Bz8v6kZa.js";import"./vendor-charts-CfZlUhzG.js";import"./user_service-P6SEX4-O.js";import"./circuit_version-D2HmX9WG.js";import"./XCircle.es-DiehaWUX.js";import"./Circle.es-Dk3fhPBh.js";import"./empty-Y8HDD7md.js";import"./react-icons.esm-CZCqRWzH.js";const f0=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M184.63,23.14a12,12,0,0,1,15-8A72.34,72.34,0,0,1,228.4,32a12,12,0,0,1-16.58,17.35,48.31,48.31,0,0,0-19.2-11.2A12,12,0,0,1,184.63,23.14ZM232.85,167.8A92,92,0,0,1,64.31,190l-40-69.32A32,32,0,0,1,36,77a31.72,31.72,0,0,1,7.54-3.14A32,32,0,0,1,88.65,32.45a32,32,0,0,1,53,3.55l14.53,25.17A32,32,0,0,1,206.35,68l17.31,30A91.38,91.38,0,0,1,232.85,167.8Zm-30-57.81L185.57,80a8,8,0,0,0-13.86,8h0l6.68,11.57a12,12,0,0,1-3.18,15.59,28,28,0,0,0-6.41,38.1,12,12,0,1,1-19.86,13.46,52.05,52.05,0,0,1,3.9-63.4L120.9,48A8,8,0,0,0,107,56l24.25,42a12,12,0,1,1-20.78,12L79.33,56a8,8,0,0,0-13.85,8L99,122a12,12,0,0,1-20.78,12L58.93,100.67a8,8,0,1,0-13.85,8L85.1,178a68,68,0,0,0,117.78-68ZM50.46,198a12,12,0,1,0-20.78,12,132.79,132.79,0,0,0,20,26.38,12,12,0,1,0,17.17-16.76A109.2,109.2,0,0,1,50.46,198Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M184,213.27A80,80,0,0,1,74.7,184l-40-69.32a20,20,0,0,1,34.64-20L55.08,70A20,20,0,0,1,89.73,50l6.92,12h0a20,20,0,0,1,34.64-20l30,52A20,20,0,0,1,196,74l17.31,30A80,80,0,0,1,184,213.27Z",opacity:"0.2"}),t.createElement("path",{d:"M220.17,100,202.86,70a28,28,0,0,0-38.24-10.25,27.69,27.69,0,0,0-9,8.34L138.2,38a28,28,0,0,0-48.48,0A28,28,0,0,0,48.15,74l1.59,2.76A27.67,27.67,0,0,0,38,80.41a28,28,0,0,0-10.24,38.25l40,69.32a87.47,87.47,0,0,0,53.43,41,88.56,88.56,0,0,0,22.92,3,88,88,0,0,0,76.06-132Zm-6.66,62.64A72,72,0,0,1,81.62,180l-40-69.32a12,12,0,0,1,20.78-12L81.63,132a8,8,0,1,0,13.85-8L62,66A12,12,0,1,1,82.78,54L114,108a8,8,0,1,0,13.85-8L103.57,58h0a12,12,0,1,1,20.78-12l33.42,57.9a48,48,0,0,0-5.54,60.6,8,8,0,0,0,13.24-9A32,32,0,0,1,172.78,112a8,8,0,0,0,2.13-10.4L168.23,90A12,12,0,1,1,189,78l17.31,30A71.56,71.56,0,0,1,213.51,162.62ZM184.25,31.71A8,8,0,0,1,194,26a59.62,59.62,0,0,1,36.53,28l.33.57a8,8,0,1,1-13.85,8l-.33-.57a43.67,43.67,0,0,0-26.8-20.5A8,8,0,0,1,184.25,31.71ZM80.89,237a8,8,0,0,1-11.23,1.33A119.56,119.56,0,0,1,40.06,204a8,8,0,0,1,13.86-8,103.67,103.67,0,0,0,25.64,29.72A8,8,0,0,1,80.89,237Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M219.31,98.46A88,88,0,1,1,67.08,186.77h0L26.15,115.88a16,16,0,0,1,27.69-16L72.4,132a8,8,0,0,0,13.86-8L47,56A16,16,0,0,1,74.69,40L114,108a8,8,0,1,0,13.85-8l-30-52a16,16,0,0,1,27.71-16L166,102.12A48.25,48.25,0,0,0,152,136a47.59,47.59,0,0,0,9.6,28.8,8,8,0,1,0,12.79-9.61A32,32,0,0,1,181,110.26a8,8,0,0,0,2.17-10.43L171.71,80a16,16,0,0,1,27.71-16l19.89,34.46Zm-29.37-57A43.74,43.74,0,0,1,216.74,62l.33.57a8,8,0,0,0,13.86-8L230.6,54a59.64,59.64,0,0,0-36.54-28,8,8,0,0,0-4.12,15.46ZM79.58,225.72A103.58,103.58,0,0,1,53.93,196a8,8,0,0,0-13.86,8,119.56,119.56,0,0,0,29.6,34.28,8,8,0,0,0,9.91-12.56Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M218.44,101,201.13,71a26,26,0,0,0-45.58,1L136.47,39a26,26,0,0,0-46.14,2.19A26,26,0,0,0,49.88,73l3.29,5.7a26,26,0,0,0-23.69,39L69.5,187a85.44,85.44,0,0,0,52.21,40.08,86.71,86.71,0,0,0,22.4,3,86,86,0,0,0,74.33-129Zm-3,62.16A74,74,0,0,1,79.89,181l-40-69.32a14,14,0,0,1,24.25-14L83.36,131a6,6,0,0,0,10.39-6L60.27,67A14,14,0,1,1,84.52,53l31.17,54a6,6,0,0,0,5.2,3,5.9,5.9,0,0,0,3-.81,6,6,0,0,0,2.2-8.2L101.83,59a14,14,0,0,1,24.25-14l34.2,59.23a46,46,0,0,0-6.4,59.13,6,6,0,0,0,9.94-6.73,34,34,0,0,1,7.76-46.26,6,6,0,0,0,1.6-7.8L166.49,91a14,14,0,1,1,24.25-14l17.31,30A73.53,73.53,0,0,1,215.44,163.14ZM186.18,32.22A6,6,0,0,1,193.52,28a57.59,57.59,0,0,1,35.32,27l.33.57a6,6,0,1,1-10.39,6l-.33-.57a45.69,45.69,0,0,0-28-21.43A6,6,0,0,1,186.18,32.22ZM79.32,235.71a6,6,0,0,1-8.42,1A117.79,117.79,0,0,1,41.79,203a6,6,0,0,1,10.4-6,105.48,105.48,0,0,0,26.14,30.29A6,6,0,0,1,79.32,235.71Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M220.17,100,202.86,70a28,28,0,0,0-38.24-10.25,27.69,27.69,0,0,0-9,8.34L138.2,38a28,28,0,0,0-48.48,0A28,28,0,0,0,48.15,74l1.59,2.76A27.67,27.67,0,0,0,38,80.41a28,28,0,0,0-10.24,38.25l40,69.32a87.47,87.47,0,0,0,53.43,41,88.56,88.56,0,0,0,22.92,3,88,88,0,0,0,76.06-132Zm-6.66,62.64A72,72,0,0,1,81.62,180l-40-69.32a12,12,0,0,1,20.78-12L81.63,132a8,8,0,1,0,13.85-8L62,66A12,12,0,1,1,82.78,54L114,108a8,8,0,1,0,13.85-8L103.57,58h0a12,12,0,1,1,20.78-12l33.42,57.9a48,48,0,0,0-5.54,60.6,8,8,0,0,0,13.24-9A32,32,0,0,1,172.78,112a8,8,0,0,0,2.13-10.4L168.23,90A12,12,0,1,1,189,78l17.31,30A71.56,71.56,0,0,1,213.51,162.62ZM184.25,31.71A8,8,0,0,1,194,26a59.62,59.62,0,0,1,36.53,28l.33.57a8,8,0,1,1-13.85,8l-.33-.57a43.67,43.67,0,0,0-26.8-20.5A8,8,0,0,1,184.25,31.71ZM80.89,237a8,8,0,0,1-11.23,1.33A119.56,119.56,0,0,1,40.06,204a8,8,0,0,1,13.86-8,103.67,103.67,0,0,0,25.64,29.72A8,8,0,0,1,80.89,237Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216.71,102,199.4,72a24,24,0,0,0-43.57,4.52L134.74,40a24,24,0,0,0-43.69,4.9A24,24,0,0,0,51.61,72l5.31,9.19a24,24,0,0,0-25.71,35.47l40,69.32a83.4,83.4,0,0,0,51,39.14,84.45,84.45,0,0,0,21.88,2.9,84,84,0,0,0,72.6-126Zm.67,61.67A76,76,0,0,1,78.16,182l-40-69.32a16,16,0,0,1,27.71-16L85.09,130A4,4,0,0,0,92,126L58.54,68A16,16,0,1,1,86.25,52l31.17,54a4,4,0,1,0,6.93-4L100.1,60a16,16,0,0,1,27.72-16l35,60.63a44,44,0,0,0-7.28,57.61,4,4,0,1,0,6.62-4.49,36,36,0,0,1,8.22-49,4,4,0,0,0,1.07-5.2L164.76,92a16,16,0,1,1,27.71-16l17.31,30A75.52,75.52,0,0,1,217.38,163.65ZM188.12,32.74A4,4,0,0,1,193,29.9,55.65,55.65,0,0,1,227.11,56l.33.58A4,4,0,0,1,226,62a4,4,0,0,1-5.47-1.46l-.33-.57A47.62,47.62,0,0,0,191,37.63,4,4,0,0,1,188.12,32.74ZM77.75,234.48A4,4,0,0,1,74.61,236a4,4,0,0,1-2.47-.86A115.55,115.55,0,0,1,43.53,202a4,4,0,1,1,6.92-4,107.72,107.72,0,0,0,26.64,30.86A4,4,0,0,1,77.75,234.48Z"}))]]),A0=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,60a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,60Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,124Zm0-112a92.1,92.1,0,0,0-92,92c0,77.36,81.64,135.4,85.12,137.83a12,12,0,0,0,13.76,0,259,259,0,0,0,42.18-39C205.15,170.57,220,136.37,220,104A92.1,92.1,0,0,0,128,12Zm31.3,174.71A249.35,249.35,0,0,1,128,216.89a249.35,249.35,0,0,1-31.3-30.18C80,167.37,60,137.31,60,104a68,68,0,0,1,136,0C196,137.31,176,167.37,159.3,186.71Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,24a80,80,0,0,0-80,80c0,72,80,128,80,128s80-56,80-128A80,80,0,0,0,128,24Zm0,112a32,32,0,1,1,32-32A32,32,0,0,1,128,136Z",opacity:"0.2"}),t.createElement("path",{d:"M128,64a40,40,0,1,0,40,40A40,40,0,0,0,128,64Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,128Zm0-112a88.1,88.1,0,0,0-88,88c0,31.4,14.51,64.68,42,96.25a254.19,254.19,0,0,0,41.45,38.3,8,8,0,0,0,9.18,0A254.19,254.19,0,0,0,174,200.25c27.45-31.57,42-64.85,42-96.25A88.1,88.1,0,0,0,128,16Zm0,206c-16.53-13-72-60.75-72-118a72,72,0,0,1,144,0C200,161.23,144.53,209,128,222Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,16a88.1,88.1,0,0,0-88,88c0,75.3,80,132.17,83.41,134.55a8,8,0,0,0,9.18,0C136,236.17,216,179.3,216,104A88.1,88.1,0,0,0,128,16Zm0,56a32,32,0,1,1-32,32A32,32,0,0,1,128,72Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,66a38,38,0,1,0,38,38A38,38,0,0,0,128,66Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,128,130Zm0-112a86.1,86.1,0,0,0-86,86c0,30.91,14.34,63.74,41.47,94.94a252.32,252.32,0,0,0,41.09,38,6,6,0,0,0,6.88,0,252.32,252.32,0,0,0,41.09-38c27.13-31.2,41.47-64,41.47-94.94A86.1,86.1,0,0,0,128,18Zm0,206.51C113,212.93,54,163.62,54,104a74,74,0,0,1,148,0C202,163.62,143,212.93,128,224.51Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,64a40,40,0,1,0,40,40A40,40,0,0,0,128,64Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,128Zm0-112a88.1,88.1,0,0,0-88,88c0,31.4,14.51,64.68,42,96.25a254.19,254.19,0,0,0,41.45,38.3,8,8,0,0,0,9.18,0A254.19,254.19,0,0,0,174,200.25c27.45-31.57,42-64.85,42-96.25A88.1,88.1,0,0,0,128,16Zm0,206c-16.53-13-72-60.75-72-118a72,72,0,0,1,144,0C200,161.23,144.53,209,128,222Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,68a36,36,0,1,0,36,36A36,36,0,0,0,128,68Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,128,132Zm0-112a84.09,84.09,0,0,0-84,84c0,30.42,14.17,62.79,41,93.62a250,250,0,0,0,40.73,37.66,4,4,0,0,0,4.58,0A250,250,0,0,0,171,197.62c26.81-30.83,41-63.2,41-93.62A84.09,84.09,0,0,0,128,20Zm37.1,172.23A254.62,254.62,0,0,1,128,227a254.62,254.62,0,0,1-37.1-34.81C73.15,171.8,52,139.9,52,104a76,76,0,0,1,152,0C204,139.9,182.85,171.8,165.1,192.23Z"}))]]),j0=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M244,96a12,12,0,0,1-12,12H220v12a12,12,0,0,1-24,0V108H184a12,12,0,0,1,0-24h12V72a12,12,0,0,1,24,0V84h12A12,12,0,0,1,244,96ZM144,60h4v4a12,12,0,0,0,24,0V60h4a12,12,0,0,0,0-24h-4V32a12,12,0,0,0-24,0v4h-4a12,12,0,0,0,0,24Zm75.81,90.38A12,12,0,0,1,222,162.3,100,100,0,1,1,93.7,34a12,12,0,0,1,15.89,13.6A85.12,85.12,0,0,0,108,64a84.09,84.09,0,0,0,84,84,85.22,85.22,0,0,0,16.37-1.59A12,12,0,0,1,219.81,150.38ZM190,172A108.13,108.13,0,0,1,84,66,76,76,0,1,0,190,172Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M210.69,158.18A88,88,0,1,1,97.82,45.31,96.08,96.08,0,0,0,192,160,96.78,96.78,0,0,0,210.69,158.18Z",opacity:"0.2"}),t.createElement("path",{d:"M240,96a8,8,0,0,1-8,8H216v16a8,8,0,0,1-16,0V104H184a8,8,0,0,1,0-16h16V72a8,8,0,0,1,16,0V88h16A8,8,0,0,1,240,96ZM144,56h8v8a8,8,0,0,0,16,0V56h8a8,8,0,0,0,0-16h-8V32a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16Zm72.77,97a8,8,0,0,1,1.43,8A96,96,0,1,1,95.07,37.8a8,8,0,0,1,10.6,9.06A88.07,88.07,0,0,0,209.14,150.33,8,8,0,0,1,216.77,153Zm-19.39,14.88c-1.79.09-3.59.14-5.38.14A104.11,104.11,0,0,1,88,64c0-1.79,0-3.59.14-5.38A80,80,0,1,0,197.38,167.86Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M240,96a8,8,0,0,1-8,8H216v16a8,8,0,0,1-16,0V104H184a8,8,0,0,1,0-16h16V72a8,8,0,0,1,16,0V88h16A8,8,0,0,1,240,96ZM144,56h8v8a8,8,0,0,0,16,0V56h8a8,8,0,0,0,0-16h-8V32a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16Zm65.14,94.33A88.07,88.07,0,0,1,105.67,46.86a8,8,0,0,0-10.6-9.06A96,96,0,1,0,218.2,160.93a8,8,0,0,0-9.06-10.6Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M238,96a6,6,0,0,1-6,6H214v18a6,6,0,0,1-12,0V102H184a6,6,0,0,1,0-12h18V72a6,6,0,0,1,12,0V90h18A6,6,0,0,1,238,96ZM144,54h10V64a6,6,0,0,0,12,0V54h10a6,6,0,0,0,0-12H166V32a6,6,0,0,0-12,0V42H144a6,6,0,0,0,0,12Zm71.25,100.28a6,6,0,0,1,1.07,6A94,94,0,1,1,95.76,39.68a6,6,0,0,1,7.94,6.79A90.11,90.11,0,0,0,192,154a90.9,90.9,0,0,0,17.53-1.7A6,6,0,0,1,215.25,154.28Zm-14.37,11.34q-4.42.38-8.88.38A102.12,102.12,0,0,1,90,64q0-4.45.38-8.88a82,82,0,1,0,110.5,110.5Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M240,96a8,8,0,0,1-8,8H216v16a8,8,0,0,1-16,0V104H184a8,8,0,0,1,0-16h16V72a8,8,0,0,1,16,0V88h16A8,8,0,0,1,240,96ZM144,56h8v8a8,8,0,0,0,16,0V56h8a8,8,0,0,0,0-16h-8V32a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16Zm72.77,97a8,8,0,0,1,1.43,8A96,96,0,1,1,95.07,37.8a8,8,0,0,1,10.6,9.06A88.07,88.07,0,0,0,209.14,150.33,8,8,0,0,1,216.77,153Zm-19.39,14.88c-1.79.09-3.59.14-5.38.14A104.11,104.11,0,0,1,88,64c0-1.79,0-3.59.14-5.38A80,80,0,1,0,197.38,167.86Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M236,96a4,4,0,0,1-4,4H212v20a4,4,0,0,1-8,0V100H184a4,4,0,0,1,0-8h20V72a4,4,0,0,1,8,0V92h20A4,4,0,0,1,236,96ZM144,52h12V64a4,4,0,0,0,8,0V52h12a4,4,0,0,0,0-8H164V32a4,4,0,0,0-8,0V44H144a4,4,0,0,0,0,8Zm69.73,103.58a4,4,0,0,1,.71,4,92,92,0,1,1-118-118,4,4,0,0,1,5.29,4.54A93.18,93.18,0,0,0,100,64a92.1,92.1,0,0,0,92,92,93.18,93.18,0,0,0,17.91-1.74A4,4,0,0,1,213.73,155.58Zm-9.46,7.67A100,100,0,0,1,92.75,51.73,84,84,0,1,0,204.27,163.25Z"}))]]),R=t.forwardRef((a,o)=>t.createElement(P,{ref:o,...a,weights:f0}));R.displayName="HandWavingIcon";const D=t.forwardRef((a,o)=>t.createElement(P,{ref:o,...a,weights:A0}));D.displayName="MapPinIcon";const w0=D,O=t.forwardRef((a,o)=>t.createElement(P,{ref:o,...a,weights:j0}));O.displayName="MoonStarsIcon";const b0=n.div`
	padding-bottom: 20px;
	border-bottom: 1px solid #333;
`,Z0=n.div`
	padding: 0px 0;

	&:first-child {
		border-top: none;
	}
`,v0=n.p`
	font-size: 14px;
	color: white;
	margin-top: 4px;
	line-height: 1.6;
	display: inline;
`,C0=n.button`
	background-color: transparent;
	color: white;
	border: none;
	cursor: pointer;
	font-size: 14px;
	padding: 0;
	margin-left: 5px;
	text-align: left;
	display: inline;
	text-decoration: none;

	&:hover {
		text-decoration: underline dotted;
	}
`,M0=n.div`
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 4px;
`,E0=n.div`
	display: flex;
	align-items: center;
	gap: 6px;
`,L0=n.div`
	min-width: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
`,y0=n.span`
	font-size: 14px;
	color: white;
	line-height: 1.4;
`,k0=n.a`
	color: white;
	font-size: 14px;
	text-decoration: none;

	&:hover {
		text-decoration: underline dotted;
	}
`,S0=({user:a})=>{const[o,r]=t.useState(!1),c=256,s=!!a.bio&&a.bio.length>0,i=!!(s||a.location||a.company||a.github_link||a.huggingface_link||a.website_link||a.twitter_link),m=()=>{r(d=>!d)},u=!!a.bio&&a.bio.length>c,l=(d,M)=>{if(!d)return null;const j=/^(https?:\/\/)?([\w.-]+)\.([\w]{2,})(\/[\w-._@]+)?\/?$/i,p=d.match(j);let h=d,w=!1;const b=d.startsWith("http")?d:`http://${d}`;if(p){const x=`${p[2]}.${p[3]}`,g=p[4]?p[4].slice(1):"";w=!0,x.includes("twitter.com")?h=`@${g}`:x.includes("github.com")?h=`@${g}`:x.includes("huggingface.co")?h=`@${g}`:x.includes("linkedin.com")?h=`/in/${g}`:x.includes("x.com")&&(h=`@${g}`)}const A=M;return e.jsxs(E0,{children:[e.jsx(L0,{children:e.jsx(A,{size:16,weight:"regular"})}),e.jsx(y0,{children:w?e.jsx(k0,{href:b,target:"_blank",rel:"noopener noreferrer nofollow",children:h}):h})]})};return i?e.jsxs(b0,{children:[s&&e.jsxs(Z0,{children:[e.jsx(v0,{children:o?a.bio:`${a.bio.substring(0,c)}`}),u&&e.jsx(C0,{onClick:m,children:o?"• Show Less":"• Show More"})]}),e.jsxs(M0,{children:[l(a.location,w0),l(a.company,n0),l(a.github_link,i0),l(a.huggingface_link,r0),l(a.website_link,o0),l(a.twitter_link,s0)]})]}):null},V0=n.div`
  color: white;
  margin-top: 20px;
  font-size: 28px;
  font-weight: 700;
`,_0=n.div`
  font-size: 14px;
  margin-top: 2px;
  color: #a3a3a3;
`,P0=n.div`
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 3px;
`,I0=n.div`
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
`,$0=n.div`
  padding: 5px 0 5px 5px;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  margin: 15px 0 15px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  gap: 12px;
  align-items: center;
`,F0=n.div`
  display: flex;
  align-items: center;
  gap: 6px;
`,U0=n(B)`
  margin-top: 20px;
  width: 100%;
  border: none;
  color: #fff;
  padding: 8px 16px;
  cursor: pointer;
`,B0=n.div`
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
`,H0=n.div`
  margin-top: 20px;
`,z0=({user:a})=>{var u;const{useUserByUsernameQuery:o}=N(),r=F(),c=U(),[s]=T(H);r.username&&o(r.username);const i=()=>{const l=[];return a.is_pro&&l.push(e.jsxs(F0,{children:[e.jsx(O,{size:16}),e.jsx("span",{children:"Pro"})]},"pro")),l.length>0?e.jsx($0,{children:l}):null},m=((u=s.user.disk.currentUser)==null?void 0:u.uid)===a.uid;return e.jsx(P0,{children:e.jsxs(I0,{children:[e.jsx(B0,{children:e.jsx(a0,{size:240,username:a.username})}),e.jsxs("div",{children:[e.jsx(V0,{children:a==null?void 0:a.name}),e.jsxs(_0,{children:["@",r.username]})]}),e.jsx(H0,{children:e.jsx(S0,{user:a})}),i(),m&&e.jsx(U0,{variant:"outline",size:"sm",onClick:()=>c("/settings/profile"),className:"border-neutral-700 hover:bg-neutral-800",children:"Edit Profile"})]})})},N0=n.div`
    border: 1px solid #333;
    color: white;
    margin-top: 30px;
    border-radius: 10px;
    padding: 10px;
    position: relative;  // Ensure the particle background is contained within this container
    overflow: hidden;    // Hide overflow to keep the particle field within the boundaries
`,V=n(v)`
    padding: 20px;
    text-align: center;
    font-size: 40px;
    background: #0f0f0f;
    border-radius: 5px;
`,_=n(C)`
    font-weight: bold;
`,T0=n(C)`
    font-weight: bold;
    font-size: 100px;
    line-height: 100px;
`,k=n(C)`
    font-size: 14px;
    color: #888;
    display: block;
`,R0=n(J)`
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #000;
    margin-bottom: 10px;
    width: 100%;
    padding: 20px;
    z-index: 1;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;

    @media (min-width: 768px) {
        justify-content: flex-end;
    }
`,D0=n(v)`
    text-align: center;

    @media (min-width: 768px) {
        text-align: right;
    }
`,O0=({user:a})=>{const{useUserMetricQuery:o}=d0(),[r,c]=t.useState(null),[s,i]=t.useState(!0),{data:m,isLoading:u}=o(a.user_circuit_metric_uid);return t.useEffect(()=>{(async()=>{i(u),m&&c(m)})()},[a,m]),e.jsx(l0,{locale:"en",children:e.jsxs(N0,{children:[e.jsxs(R0,{children:[e.jsx(c0,{color:"#808080"}),e.jsxs(D0,{children:[s||!r?e.jsx(L,{width:"150px",height:"100px"}):e.jsx(T0,{children:e.jsx(y,{value:(r==null?void 0:r.total_runs)??0})}),e.jsx(k,{children:"Total Runs"})]})]}),e.jsxs($,{columns:{initial:"1",sm:"3"},gap:"2",px:"0",children:[e.jsxs(V,{children:[s||!r?e.jsx(L,{width:"100%",height:"40px"}):e.jsx(_,{children:e.jsx(y,{value:(r==null?void 0:r.total_extends)??0})}),e.jsx(k,{children:"Total Embeds"})]}),e.jsxs(V,{children:[s||!r?e.jsx(L,{width:"100%",height:"40px"}):e.jsx(_,{children:e.jsx(y,{value:(r==null?void 0:r.total_circuits)??0})}),e.jsx(k,{children:"Total Circuits"})]}),e.jsxs(V,{children:[s||!r?e.jsx(L,{width:"100%",height:"40px"}):e.jsx(_,{children:e.jsx(y,{value:(r==null?void 0:r.total_failures)??0})}),e.jsx(k,{children:"Total Failures"})]})]})]})})},Q0=n.div`
	display: flex;
	flex-direction: column;
	width: 100%;
`,W0=({circuits:a,isLoading:o,showCircuitUsernames:r=!0,showAvatar:c=!0,showLastElementSeparator:s=!0,showCellDescription:i=!0,showCellStats:m=!0,user:u,showPagination:l=!0,showSeperators:d=!0})=>{const j=t.useRef(null),[p,h]=t.useState(0),w=[...a].sort((f,Z)=>new Date(Z.updated_at).getTime()-new Date(f.updated_at).getTime()),b=p*15,A=w.slice(b,b+15),x=Math.ceil(a.length/15),g=f=>{h(f),j.current&&j.current.scrollIntoView({behavior:"smooth"})},E=()=>A.length>0?A.map((f,Z)=>e.jsx(m0,{circuit:f,showUsername:r,showAvatar:c,user:u,showPagination:l,showSeparator:d&&(s||Z<A.length-1),showCellDescription:i,showCellStats:m},f.name)):e.jsx(h0,{message:"There are no circuits available.",title:"No circuits found",phosphorIcon:p0},"empty");return e.jsxs(Q0,{ref:j,children:[o?e.jsx(z,{},"loading"):E(),e.jsx(u0,{pageCount:x,currentPage:p,onPageSelected:g})]})},q0=n.nav`
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.18);
`,G0=n.div`
  position: relative;
  padding: 10px 15px;
  margin-right: 15px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: ${a=>a.selected?"bold":"normal"};
  transition: background-color 0.3s ease;

  &::after {
    content: '';
    display: ${a=>a.selected?"block":"none"};
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: white;
    border-radius: 2px 2px 0 0;
  }

  &:hover {
    background-color: hsla(0, 0%, 100%, 0.08);
  }
`,J0=({options:a,selectedIndex:o,onSelect:r})=>e.jsx(q0,{children:a.map((c,s)=>e.jsx(G0,{selected:o===s,onClick:()=>r(s),children:c},c))}),K0=n.div`
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
`,X0=n.div`
  margin: 30px;
  margin-top: 0px;
`,Y0=n.div`
  margin-bottom: 20px;
`,e1=n.div`
  border: 1px solid #1e1e1e;
  padding: 10px 20px 10px 10px;
  border-radius: 10px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
`,t1=n.div`
  color: white;
  margin-left: 10px;
`,a1=n.div`
  display: flex;
  flex-direction: column;
  margin-left: 0px;
`,n1=n(C)`
  font-size: 16px;
  font-weight: bold;
  color: white;
`,i1=n(C)`
  font-size: 14px;
  color: #ccc;
`,r1=n.div`
  margin-bottom: 20px;
`,S1=()=>{var E,f;const a=F(),[o]=T(H),r=U(),[c,s]=t.useState(0),{data:i,isLoading:m,error:u,refetch:l}=N().useUserByUsernameQuery(a.username),{data:d=[],isLoading:M,error:j,refetch:p}=t0().useCircuitsQuery(a.username);x0({title:`${a.username} - Modelworks`,description:`${a.username}'s AI Circuits!`,image:((E=i==null?void 0:i.og_images)==null?void 0:E.twitter)||"https://modelworks.ai/images/og_1200_600.jpg",ogImages:(i==null?void 0:i.og_images)||void 0});const h=m||M,w=((f=o.user.disk.currentUser)==null?void 0:f.uid)===(i==null?void 0:i.uid),b=t.useCallback(()=>{l(),p()},[l,p]);t.useEffect(()=>{b()},[]);const A=()=>r("/new"),x=()=>!o.user.disk.currentUser&&i?e.jsxs(e1,{children:[e.jsx(t1,{children:e.jsx(R,{size:32})}),e.jsxs(a1,{children:[e.jsxs(n1,{children:["@",i.username," is on ModelWorks"]}),e.jsx(i1,{children:"ModelWorks makes it easy to publish your web services, models, and workflows to AI agents. They are always on and always available to use."})]}),e.jsx(B,{variant:"outline",className:"ml-auto border-[#10b981] text-[#34d399] hover:bg-[#10b981]/10",onClick:()=>r("/signup"),children:"Signup"})]}):null,g=()=>{if(!i)return null;const Z=d.filter(S=>!S.is_deprecated),Q=d.filter(S=>S.is_deprecated),W=c===0?Z:Q,q=["Live","Deprecated"],G={"@context":"https://schema.org","@type":"Person",name:i.name||i.username,identifier:`@${i.username}`,url:`https://modelworks.ai/${i.username}`,description:i.bio,image:i.avatar_blob_url,sameAs:[i.github_link,i.twitter_link,i.huggingface_link].filter(Boolean)};return e.jsxs(K0,{children:[e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(G)}}),e.jsx(X,{}),e.jsx(K,{size:"4",children:e.jsxs($,{columns:{initial:"1",md:"18"},gap:"3",children:[e.jsx(v,{pt:"5",gridColumnStart:"1",gridColumnEnd:{initial:"1",sm:"18"},children:x()}),e.jsx(v,{pt:"5",gridColumnStart:"1",gridColumnEnd:{initial:"1",sm:"6"},children:e.jsx(X0,{children:e.jsx(z0,{user:i})})}),e.jsxs(v,{pt:"0",gridColumnStart:"6",gridColumnEnd:{initial:"1",md:"18"},children:[e.jsx(Y0,{children:e.jsx(O0,{user:i})}),e.jsx(g0,{title:"Circuits",buttons:w?[{label:"New Circuit",onClick:A,color:"jade",variant:"ghost",phosphorIcon:Y}]:[]}),e.jsx(r1,{children:e.jsx(J0,{options:q,selectedIndex:c,onSelect:s})}),e.jsx(W0,{circuits:W,showCircuitUsernames:!1,user:i,showAvatar:!1})]})]})}),e.jsx(e0,{})]})};return h?e.jsx(z,{}):u?e.jsx(I,{}):g()||e.jsx(I,{})};export{S1 as default};