1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,607453,e=>{"use strict";var t=e.i(572227),r=e.i(278902),n=e.i(907733);e.i(726941);var a=e.i(558085);function s(e){return e?.trim().replace(/^@+/,"")||null}function i(e){let t=e?.trim().toLowerCase();return"x"===t||"twitter"===t?"x":"telegram"===t||"tg"===t?"telegram":null}function l({platform:e}){return(0,t.jsx)(n.Text,{as:"span",fontSize:"8px",fontWeight:"700",lineHeight:"14px",height:"14px",paddingX:"3px",borderWidth:"1px",borderColor:"border",borderRadius:"2px",color:"textSecondary",flexShrink:0,letterSpacing:"0.02em",children:"x"===e?"X":"telegram"===e?"TG":"KOL"})}e.s(["KolIdentity",0,function({username:e,platform:o,compact:c=!1,color:u="primary",fontSize:d="xs"}){let f=s(e);if(!f)return null;let h=i(o),p=function(e,t){let r=s(e),n=i(t);if(!r||!n)return null;let a=encodeURIComponent(r);return"x"===n?`https://x.com/${a}`:`https://t.me/${a}`}(f,h),m="x"===h?"X":"telegram"===h?"Telegram":"KOL",x=p?`Open @${f} on ${m}`:`Public KOL identity: @${f}`,g=(0,t.jsxs)(r.HStack,{gap:1,minW:0,maxW:"100%",color:u,_hover:p?{textDecoration:"underline"}:void 0,children:[(!c||"telegram"===h)&&(0,t.jsx)(l,{platform:h}),(0,t.jsxs)(n.Text,{as:"span",fontSize:d,fontFamily:"mono",fontWeight:"600",lineHeight:"short",truncate:!0,children:["@",f]})]});return(0,t.jsx)(a.Tooltip,{content:x,children:p?(0,t.jsx)("a",{href:p,target:"_blank",rel:"noopener noreferrer","aria-label":x,onClick:e=>{e.stopPropagation()},style:{display:"inline-flex",minWidth:0,maxWidth:"100%"},children:g}):g})}])},130823,(e,t,r)=>{"use strict";var n=Object.prototype.hasOwnProperty,a="~";function s(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function l(e,t,r,n,s){if("function"!=typeof r)throw TypeError("The listener must be a function");var l=new i(r,n||e,s),o=a?a+t:t;return e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],l]:e._events[o].push(l):(e._events[o]=l,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new s:delete e._events[t]}function c(){this._events=new s,this._eventsCount=0}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(a=!1)),c.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(a?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},c.prototype.listeners=function(e){var t=a?a+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,s=r.length,i=Array(s);n<s;n++)i[n]=r[n].fn;return i},c.prototype.listenerCount=function(e){var t=a?a+e:e,r=this._events[t];return r?r.fn?1:r.length:0},c.prototype.emit=function(e,t,r,n,s,i){var l=a?a+e:e;if(!this._events[l])return!1;var o,c,u=this._events[l],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,n),!0;case 5:return u.fn.call(u.context,t,r,n,s),!0;case 6:return u.fn.call(u.context,t,r,n,s,i),!0}for(c=1,o=Array(d-1);c<d;c++)o[c-1]=arguments[c];u.fn.apply(u.context,o)}else{var f,h=u.length;for(c=0;c<h;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,n);break;default:if(!o)for(f=1,o=Array(d-1);f<d;f++)o[f-1]=arguments[f];u[c].fn.apply(u[c].context,o)}}return!0},c.prototype.on=function(e,t,r){return l(this,e,t,r,!1)},c.prototype.once=function(e,t,r){return l(this,e,t,r,!0)},c.prototype.removeListener=function(e,t,r,n){var s=a?a+e:e;if(!this._events[s])return this;if(!t)return o(this,s),this;var i=this._events[s];if(i.fn)i.fn!==t||n&&!i.once||r&&i.context!==r||o(this,s);else{for(var l=0,c=[],u=i.length;l<u;l++)(i[l].fn!==t||n&&!i[l].once||r&&i[l].context!==r)&&c.push(i[l]);c.length?this._events[s]=1===c.length?c[0]:c:o(this,s)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=a?a+e:e,this._events[t]&&o(this,t)):(this._events=new s,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=a,c.EventEmitter=c,t.exports=c},814645,e=>{"use strict";let t=e.i(130823).default;e.s(["default",0,t])},168616,466759,749954,e=>{"use strict";let t="u">typeof window;e.s(["isBrowser",0,t],466759);let r={current:null},n={current:!1};e.s(["hasReducedMotionListener",0,n,"prefersReducedMotion",0,r],749954),e.s(["initPrefersReducedMotion",0,function(){if(n.current=!0,t)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>r.current=e.matches;e.addListener(t),t()}else r.current=!1}],168616)},685054,e=>{"use strict";var t=e.i(525230),r=e.i(244027),n=e.i(929286),a=e.i(640418),s=e.i(700185),i=e.i(515941);let l=()=>{let e=(0,r.useDispatch)();return{user:(0,r.useSelector)(e=>e.user.user),setUser:t=>{e(n.userActions.setUser(t))},updateUser:t=>{e(n.userActions.updateUser(t))}}},o=()=>{(0,r.useDispatch)();let{user:e,setUser:t}=l();return e},c=()=>{let e=(0,r.useDispatch)();return{entitlements:(0,r.useSelector)(e=>e.user.entitlements),setEntitlements:t=>{e(n.userActions.setEntitlements(t))}}};e.s(["useEntitlementControls",0,c,"useEntitlementsLoaded",0,()=>{let{entitlements:e}=c();return null!==e},"useHasProduct",0,e=>!!(e=>{let{entitlements:t}=c();return t?.find(t=>
1t.productCode===e)})(e),"useSyncEntitlements",0,()=>{let e=o(),{setEntitlements:t}=c(),[r]=(0,a.useEntitlementsLazyQuery)();return(0,s.useEffect)(()=>{e&&r().then(({data:e})=>{t(e?.entitlements||[])}).catch(()=>{t([])})},[e,r]),null},"useSyncFlags",0,()=>{let e,t=o(),{setFlags:i}=(e=(0,r.useDispatch)(),{flags:(0,r.useSelector)(e=>e.user.flags),setFlags:t=>{e(n.userActions.setFlags(t))}}),[l]=(0,a.useFetchUserFlagsLazyQuery)();return(0,s.useEffect)(()=>{t&&l({variables:{userId:t.id}}).then(({data:e})=>{i(e?.fetchUserFlags||[])}).catch(()=>{i([])})},[t,l]),null},"useSyncUser",0,()=>{let e=(0,t.useApolloClient)(),l=(0,r.useDispatch)(),{data:o,status:c}=(0,i.useSession)();(0,s.useEffect)(()=>{let t=!1;if("loading"!==c)return o?.accessToken?e.query({query:a.MeDocument,fetchPolicy:"network-only",errorPolicy:"none",context:{headers:{Authorization:`Bearer ${o.accessToken}`}}}).then(({data:e})=>{t||l(n.userActions.setUser(e?.me||null))}).catch(e=>{if(t)return;l(n.userActions.setUser(null));let r=e?.networkError?.statusCode??e?.graphQLErrors?.[0]?.extensions?.code;(401===r||403===r||"UNAUTHENTICATED"===r||"FORBIDDEN"===r)&&(0,i.signOut)({redirect:!1})}):l(n.userActions.setUser(null)),()=>{t=!0}},[e,l,o?.accessToken,c])},"useUser",0,o,"useUserControls",0,l,"useUserInitialized",0,()=>(0,r.useSelector)(e=>e.user.userInitialized)])},523025,e=>{"use strict";var t=e.i(700185);let r=[],n={autoConnect:!1,connecting:!1,connected:!1,disconnecting:!1,select(){a("call","select")},connect:()=>Promise.reject(a("call","connect")),disconnect:()=>Promise.reject(a("call","disconnect")),sendTransaction:()=>Promise.reject(a("call","sendTransaction")),signTransaction:()=>Promise.reject(a("call","signTransaction")),signAllTransactions:()=>Promise.reject(a("call","signAllTransactions")),signMessage:()=>Promise.reject(a("call","signMessage")),signIn:()=>Promise.reject(a("call","signIn"))};function a(e,t){let r=Error(`You have tried to ${e} "${t}" on a WalletContext without providing one. Make sure to render a WalletProvider as an ancestor of the component that uses WalletContext.`);return console.error(r),r}Object.defineProperty(n,"wallets",{get:()=>(a("read","wallets"),r)}),Object.defineProperty(n,"wallet",{get:()=>(a("read","wallet"),null)}),Object.defineProperty(n,"publicKey",{get:()=>(a("read","publicKey"),null)});let s=(0,t.createContext)(n);e.s(["WalletContext",0,s,"useWallet",0,function(){return(0,t.useContext)(s)}])},538582,e=>{"use strict";var t=e.i(572227);e.i(726941);var r=e.i(408039),n=e.i(480055),a=e.i(214304),s=e.i(278902),i=e.i(631506),l=e.i(992561),o=e.i(670605),c=e.i(700185),u=e.i(685054);e.s(["LoginDialog",0,({open:e,onClose:d,defaultAuth:f="signin"})=>{let h=(0,u.useUser)(),[p,m]=(0,c.useState)(f);return(0,c.useEffect)(()=>{h&&e&&d()},[h,e,d]),(0,t.jsx)(n.Dialog,{open:e,onClose:()=>{m(f),d()},title:"signup"===p?"Create your account":"Sign in",size:"lg",children:(0,t.jsxs)(i.VStack,{gap:6,width:"100%",children:["signup"===p?(0,t.jsx)(o.SignupForm,{}):(0,t.jsx)(l.LoginForm,{}),(0,t.jsxs)(s.HStack,{justifyContent:"center",gap:2,flexWrap:"wrap",children:[(0,t.jsx)(a.Typography,{variant:"body4",color:"textPrimary",children:"signup"===p?"Already have an account?":"Don't have an account?"}),(0,t.jsx)(r.Button,{type:"button",variant:"plain",onClick:()=>m("signup"===p?"signin":"signup"),children:"signup"===p?"Sign in":"Sign up"})]})]})})}])},771536,489585,e=>{"use strict";var t=e.i(640418),r=e.i(685054),n=e.i(700185),a=e.i(244027),s=e.i(901216);let i={metadata:new Map},l={setMetadata:e=>(0,s.action)("SET_METADATA",{metadata:e}),clearMetadata:()=>(0,s.action)("CLEAR_METADATA"),setAddressMetadata:e=>(0,s.action)("SET_ADDRESS_METADATA",e),clearAddressMetadata:e=>(0,s.action)("CLEAR_ADDRESS_METADATA",{address:e})};e.s(["addressMetadataActions",0,l,"addressMetadataReducer",0,(e=i,t)=>{switch(t.type){case"SET_METADATA":return{...e,metadata:t.payload.metadata};case"SET_ADDRESS_METADATA":return{...e,metadata:e.metadata.set(t.payload.address,t.payload)};case"CLEAR_ADDRESS_METADATA":let r=new Map(e.metadata);return r.delete(t.payload.address),{...e,metadata:r};case"CLEAR_METADATA":return{...e,metadata:new Map};default:return e}}],489585);let o=()=>{let e=(0,a.useSelector)(e=>e.addressMetadata),t=(0,n.useCallback)(t=>e.metadata.get(t)||null,[e]);return{metadata:e.metadata,getAddressMetadata:t}},c=()=>{let e=(0,a.useDispatch)(),r=(0,n.useCallback)(t=>{e(l.setMetadata(t))},[e]),s=(0,n.useCallback)(()=>{e(l.clearMetadata())},[e]),i=(0,n.useCallback)(t=>{e(l.setAddressMetadata(t))},[e]),o=(0,n.useCallback)(t=>{e(l.clearAddressMetadata(t))},[e]),[c,{loading:u}]=(0,t.useUpdateAddressMetadataMutation)(),d=async e=>{let{data:t}=await c({variables:{input:e}});return!!t?.updateAddressMetadata&&(i(t.updateAddressMetadata||null),!0)};return{setMetadata:r,clearMetadata:s,setAddressMetadata:i,clearAddressMetadata:o,updateAddressMetadata:d,loading:u}};e.s(["useAddressMetadata",0,()=>{let{metadata:e,getAddressMetadata:t}=o(),{updateAddressMetadata:r,loading:n}=c();return{metadata:e,updateMetadata:r,getAddressMetadata:t,loading:n}},"useSingleAddressMetadata",0,e=>{let{updateAddressMetadata:t,loading:r}=c(),{getAddressMetadata:n}=o();return{addressMetadata:n(e),updateAddressMetadata:t,loading:r}},"useSyncAddressMetadata",0,()=>{let e=(0,r.useUser)(),{setMetadata:n}=c();(0,t.useAllAddressMetadataQuery)({variables:{userId:e?.id||"null"},skip:!e,onCompleted:e=>{n(new Map(e?.allAddressMetadata.map(e=>[e.address,e])))}})}],771536)},650999,(e,t,r)=>{e.e,t.exports=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",a="week",s="month",i="quarter",l="year",o="date",c="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
1|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},h="en",p={};p[h]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};var m="$isDayjsObject",x=function(e){return e instanceof S||!(!e||!e[m])},g=function e(t,r,n){var a;if(!t)return h;if("string"==typeof t){var s=t.toLowerCase();p[s]&&(a=s),r&&(p[s]=r,a=s);var i=t.split("-");if(!a&&i.length>1)return e(i[0])}else{var l=t.name;p[l]=t,a=l}return!n&&a&&(h=a),a||!n&&h},y=function(e,t){if(x(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new S(r)},v={s:f,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+f(Math.floor(r/60),2,"0")+":"+f(r%60,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),a=t.clone().add(n,s),i=r-a<0,l=t.clone().add(n+(i?-1:1),s);return+(-(n+(r-a)/(i?a-l:l-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return({M:s,y:l,w:a,d:"day",D:o,h:n,m:r,s:t,ms:e,Q:i})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};v.l=g,v.i=x,v.w=function(e,t){return y(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function f(e){this.$L=g(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[m]=!0}var h=f.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(v.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(u);if(n){var a=n[2]-1||0,s=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)}}return new Date(t)}(e),this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return v},h.isValid=function(){return this.$d.toString()!==c},h.isSame=function(e,t){var r=y(e);return this.startOf(t)<=r&&r<=this.endOf(t)},h.isAfter=function(e,t){return y(e)<this.startOf(t)},h.isBefore=function(e,t){return this.endOf(t)<y(e)},h.$g=function(e,t,r){return v.u(e)?this[t]:this.set(r,e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,i){var c=this,u=!!v.u(i)||i,d=v.p(e),f=function(e,t){var r=v.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return u?r:r.endOf("day")},h=function(e,t){return v.w(c.toDate()[e].apply(c.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},p=this.$W,m=this.$M,x=this.$D,g="set"+(this.$u?"UTC":"");switch(d){case l:return u?f(1,0):f(31,11);case s:return u?f(1,m):f(0,m+1);case a:var y=this.$locale().weekStart||0,S=(p<y?p+7:p)-y;return f(u?x-S:x+(6-S),m);case"day":case o:return h(g+"Hours",0);case n:return h(g+"Minutes",1);case r:return h(g+"Seconds",2);case t:return h(g+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(a,i){var c,u=v.p(a),d="set"+(this.$u?"UTC":""),f=((c={}).day=d+"Date",c[o]=d+"Date",c[s]=d+"Month",c[l]=d+"FullYear",c[n]=d+"Hours",c[r]=d+"Minutes",c[t]=d+"Seconds",c[e]=d+"Milliseconds",c)[u],h="day"===u?this.$D+(i-this.$W):i;if(u===s||u===l){var p=this.clone().set(o,1);p.$d[f](h),p.init(),this.$d=p.set(o,Math.min(this.$D,p.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.get=function(e){return this[v.p(e)]()},h.add=function(e,i){var o,c=this;e=Number(e);var u=v.p(i),d=function(t){var r=y(c);return v.w(r.date(r.date()+Math.round(t*e)),c)};if(u===s)return this.set(s,this.$M+e);if(u===l)return this.set(l,this.$y+e);if("day"===u)return d(1);if(u===a)return d(7);var f=((o={})[r]=6e4,o[n]=36e5,o[t]=1e3,o)[u]||1,h=this.$d.getTime()+e*f;return v.w(h,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||c;var n=e||"YYYY-MM-DDTHH:mm:ssZ",a=v.z(this),s=this.$H,i=this.$m,l=this.$M,o=r.weekdays,u=r.months,f=r.meridiem,h=function(e,r,a,s){return e&&(e[r]||e(t,n))||a[r].slice(0,s)},p=function(e){return v.s(s%12||12,e,"0")},m=f||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(d,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return v.s(t.$y,4,"0");case"M":return l+1;case"MM":return v.s(l+1,2,"0");case"MMM":return h(r.monthsShort,l,u,3);case"MMMM":return h(u,l);case"D":return t.$D;case"DD":return v.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(r.weekdaysMin,t.$W,o,2);case"ddd":return h(r.weekdaysShort,t.$W,o,3);case"dddd":return o[t.$W];case"H":return String(s);case"HH":return v.s(s,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return m(s,i,!0);case"A":return m(s,i,!1);case"m":return String(i);case"mm":return v.s(i,2,"0");case"s":return String(t.$s);case"ss":return v.s(t.$s,2,"0");case"SSS":return v.s(t.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")})},h.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},h.diff=function(e,o,c){var u,d=this,f=v.p(o),h=y(e),p=(h.utcOffset()-this.utcOffset())*6e4,m=this-h,x=function(){return v.m(d,h)};switch(f){case l:u=x()/12;break;case s:u=x();break;
1case i:u=x()/3;break;case a:u=(m-p)/6048e5;break;case"day":u=(m-p)/864e5;break;case n:u=m/36e5;break;case r:u=m/6e4;break;case t:u=m/1e3;break;default:u=m}return c?u:v.a(u)},h.daysInMonth=function(){return this.endOf(s).$D},h.$locale=function(){return p[this.$L]},h.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=g(e,t,!0);return n&&(r.$L=n),r},h.clone=function(){return v.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},f}(),b=S.prototype;return y.prototype=b,[["$ms",e],["$s",t],["$m",r],["$H",n],["$W","day"],["$M",s],["$y",l],["$D",o]].forEach(function(e){b[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),y.extend=function(e,t){return e.$i||(e(t,S,y),e.$i=!0),y},y.locale=g,y.isDayjs=x,y.unix=function(e){return y(1e3*e)},y.en=p[h],y.Ls=p,y.p={},y}()},544139,(e,t,r)=>{e.e,t.exports=function(e,t,r){e=e||{};var n=t.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(e,t,r,a){return n.fromToBase(e,t,r,a)}r.en.relativeTime=a,n.fromToBase=function(t,n,s,i,l){for(var o,c,u,d=s.$locale().relativeTime||a,f=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=f.length,p=0;p<h;p+=1){var m=f[p];m.d&&(o=i?r(t).diff(s,m.d,!0):s.diff(t,m.d,!0));var x=(e.rounding||Math.round)(Math.abs(o));if(u=o>0,x<=m.r||!m.r){x<=1&&p>0&&(m=f[p-1]);var g=d[m.l];l&&(x=l(""+x)),c="string"==typeof g?g.replace("%d",x):g(x,n,m.l,u);break}}if(n)return c;var y=u?d.future:d.past;return"function"==typeof y?y(c):y.replace("%s",c)},n.to=function(e,t){return s(e,t,this,!0)},n.from=function(e,t){return s(e,t,this)};var i=function(e){return e.$u?r.utc():r()};n.toNow=function(e){return this.to(i(this),e)},n.fromNow=function(e){return this.from(i(this),e)}}},669832,e=>{"use strict";var t=e.i(650999),r=e.i(544139);t.default.extend(r.default),e.s(["formatBigNumberString",0,e=>{let t=e<0,r=Math.abs(e);return r>=1e9?`${t?"-":""}${(r/1e9).toFixed(2)}B`:r>=1e6?`${t?"-":""}${(r/1e6).toFixed(2)}M`:r>=1e3?`${t?"-":""}${(r/1e3).toFixed(2)}K`:`${t?"-":""}${r.toLocaleString()}`},"formatCurrency",0,(e,t)=>{if(null==e||void 0===e)return"â";let r="string"==typeof e?parseFloat(e):e,n=Math.abs(r),a=t?.fractionDigits,s="number"==typeof a?n.toLocaleString(void 0,{minimumFractionDigits:a,maximumFractionDigits:a}):n>=1e3?n.toLocaleString(void 0,{maximumFractionDigits:2}):n>=1?n.toFixed(2):n>=.01?n.toFixed(4):n>0?n.toFixed(8).replace(/0+$/,"").replace(/\.$/,""):"0.00",i=t?.absolute?"":r<0?"-":t?.signPrefix&&r>0?"+":"";return`${i}$${s}`},"formatNumberWithCommas",0,e=>null==e||void 0===e?"â":("string"==typeof e?parseFloat(e):e).toLocaleString(void 0,{maximumFractionDigits:2}),"formatPercentage",0,(e,t)=>{if(null==e||void 0===e)return"â";let r="string"==typeof e?parseFloat(e):e;return`${r.toFixed(t??2)}%`},"formatSecondsToTime",0,e=>e<60?`${e.toFixed(1)}s`:e<3600?`${(e/60).toFixed(1)}m`:e<86400?`${(e/3600).toFixed(1)}h`:`${(e/86400).toFixed(1)}d`,"formatTime",0,e=>{let t=e/3600;return e<60?`${e} seconds`:t<1?`${Math.floor(e/60)} minutes`:t<24?`${t.toFixed(1)} hours`:t<168?`${(t/24).toFixed(1)} days`:`${(t/168).toFixed(1)} weeks`},"formatTimeAgo",0,e=>null==e||void 0===e?"â":"string"==typeof e&&e.includes(" ")?(0,t.default)(e.replace(" ","T")+"Z").fromNow():(0,t.default)(e).fromNow(),"slugify",0,e=>e.toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/[^a-z0-9-]+/g,""),"truncateBlockchainAddress",0,e=>e?e.length<10?e:`${e.slice(0,4)}...${e.slice(-4)}`:""])},143814,e=>{"use strict";var t=e.i(640418);e.s(["useWalletCard",0,function(e,r){let{data:n,loading:a,error:s}=(0,t.useWalletCardQuery)({variables:{wallet:e},skip:!r||!e,fetchPolicy:"cache-first"});return{card:n?.walletCard??null,loading:a,error:s}}])},449766,202660,193888,125938,108471,234965,e=>{"use strict";var t=e.i(572227),r=e.i(950093),n=e.i(700185),a=e.i(711012),s=e.i(312759),i=e.i(278902),l=e.i(631506),o=e.i(907733),c=e.i(727605),u=e.i(751442),d=e.i(172522),f=e.i(884127),h=e.i(930143),p=e.i(957524),m=e.i(112904),x=e.i(558085),g=e.i(669832),y=e.i(143814),v=e.i(640418);function S(e,t){let{data:r,loading:n}=(0,v.useWalletTokenPositionQuery)({variables:{wallet:e,tokenMint:t??""},skip:!e||!t,fetchPolicy:"cache-first"});return{position:r?.walletTokensAggregated?.[0]??null,loading:n}}function b(e,t){let{data:r,loading:n}=(0,v.useWalletTokenSwapActivityQuery)({variables:{wallet:e,tokenMint:t??""},skip:!e||!t,fetchPolicy:"cache-first"});return{activity:r?.walletTokenSwapActivity??null,loading:n}}e.s(["useWalletTokenPosition",0,S],202660),e.s(["useWalletTokenSwapActivity",0,b],193888);var T=e.i(92168);function j(e){if(null==e)return null;let t="number"==typeof e?e:Number(e);if(Number.isFinite(t)&&t>0)return t>1e11?Math.floor(t/1e3):Math.floor(t);let r=String(e);r.includes(" ")&&!r.includes("T")&&(r=r.replace(" ","T")),/[zZ]|[+\-]\d{2}:?\d{2}$/.test(r)||(r+="Z");let n=Date.parse(r);return Number.isFinite(n)?Math.floor(n/1e3):null}function M({wallet:e,tokenMint:a,avgBuyPrice:s,avgSellPrice:l}){let{data:c}=(0,v.useTokenTransactionsQuery)({variables:{wallet:e,tokenMint:a,limit:200},skip:!e||!a,fetchPolicy:"cache-first"}),u=c?.tokenTransactions??[],d=(0,n.useMemo)(()=>{var e;let t=u.map(e=>j(e.timestamp)).filter(e=>null!=e);if(!t.length)return{tf:v.OhlcvTimeframe.M5,fromMs:void 0};let r=Math.min(...t),{tf:n,bucketSec:a}=(e=Math.max(Math.max(...t)-r,300))<=7200?{tf:v.OhlcvTimeframe.M1,bucketSec:60}:e<=43200?{tf:v.OhlcvTimeframe.M5,bucketSec:300}:e<=259200?{tf:v.OhlcvTimeframe.M15,bucketSec:900}:{tf:v.OhlcvTimeframe.H1,bucketSec:3600};return{tf:n,fromMs:(r-10*a)*1e3}},[u]),{data:f,loading:h}=(0,v.useGetOhlcvCandlesQuery)({variables:{mint:a,timeframe:d.tf,view:v.OhlcvView.Full,from:d.fromMs,limit:300},skip:!a,fetchPolicy:"cache-first"}),p=f?.getOhlcvCandles?.candles??[],m=(0,n.useRef)(null),x=(0,n.useRef)(null),g=(0,n.useRef)(null);return((0,n.useEffect)(()=>{let e,t=m.current;if(!t||0===p.length)return;let r=(0,T.createChart)(t,{width:336,height:132,layout:{background:{type:T.ColorType.Solid,color:"transparent"},textColor:"#71717a",fontSize:9},grid:{vertLines:{visible:!1},horzLines:{color:"rgba(255,255,255,0.04)"}},rightPriceScale:{borderVisible:!1,scaleMargins:{top:.12,bottom:.12}},timeScale:{borderVisible:!1,timeVisible:!0,secondsVisible:!1},crosshair:{mode:T.CrosshairMode.Magnet},handleScroll:!1,handleScale:!1});x.current=r;let n=(e=Math.abs(parseFloat(p[p.length-1]?.close??"0")||1e-4))>=1e3?2:e>=1?4:e>=.01?6:e>=1e-4?8:e>=1e-6?10:12,a=r.addCandlestickSeries({upColor:"#22c55e",downColor:"#ef4444",borderVisible:!1,wickUpColor:"#22c55e",wickDownColor:"#ef4444",priceFormat:{type:"price",precision:n,minMove:1/10**n}});g.current=a;let i=new Map;for(let e of p){let t=Math.floor(e.bucket/1e3);i.set(t,{time:t,open:parseFloat(e.open),high:parseFloat(e.high),low:parseFloat(e.low),close:parseFloat(e.close)})}let o=[...i.values()].sort((e,t)=>
1e.time-t.time);a.setData(o);let c=new Set(o.map(e=>e.time)),d=o.length>=2?o[1].time-o[0].time:300,f=new Map;for(let e of u){let t=j(e.timestamp);if(null==t)continue;let r=Math.floor(t/d)*d;if(!c.has(r))continue;let n=e.transaction_type===v.TransactionType.Buy,a=`${r}:${n?"b":"s"}`;f.has(a)||f.set(a,{time:r,position:n?"belowBar":"aboveBar",color:n?"#22c55e":"#ef4444",shape:n?"arrowUp":"arrowDown"})}let h=[...f.values()].sort((e,t)=>e.time-t.time);return h.length&&a.setMarkers(h),s&&s>0&&a.createPriceLine({price:s,color:"#22c55e",lineStyle:T.LineStyle.Dashed,lineWidth:1,axisLabelVisible:!0,title:"avg buy"}),l&&l>0&&a.createPriceLine({price:l,color:"#ef4444",lineStyle:T.LineStyle.Dashed,lineWidth:1,axisLabelVisible:!0,title:"avg sell"}),r.timeScale().fitContent(),()=>{r.remove(),x.current=null,g.current=null}},[p,u,s,l]),h||0!==p.length)?(0,t.jsxs)(r.Box,{position:"relative",width:"100%",height:"132px",children:[(0,t.jsx)(r.Box,{ref:m,width:"100%",height:"100%"}),(0,t.jsxs)(i.HStack,{position:"absolute",top:1,left:1,gap:2,pointerEvents:"none",fontSize:"9px",fontFamily:"mono",color:"textSecondary",children:[(0,t.jsxs)(o.Text,{children:[(0,t.jsx)(r.Box,{as:"span",color:"#22c55e",children:"â²"})," ","buy"]}),(0,t.jsxs)(o.Text,{children:[(0,t.jsx)(r.Box,{as:"span",color:"#ef4444",children:"â¼"})," ","sell"]})]})]}):null}e.s(["WalletTokenMiniChart",0,M],125938);var w=e.i(607453);let $=e=>null==e?"textPrimary":e>0?"success.500":e<0?"error.500":"textPrimary",C=e=>"number"==typeof e&&Number.isFinite(e)?e:null,k=(e,t=!1)=>Math.abs(e)>=1e4?`${e<0?"-":t?"+":""}$${(0,g.formatBigNumberString)(Math.abs(e))}`:(0,g.formatCurrency)(e,{signPrefix:t}),_=(e,t=!1)=>({value:null==e?"â":k(e,t),tooltip:null!=e&&Math.abs(e)>=1e4?(0,g.formatCurrency)(e,{signPrefix:t}):void 0}),A=e=>{if(e>=1e6)return`${(e/1e6).toFixed(1)}M`;if(e>=1e4){let t=Math.round(e/1e3);return t>=1e3?`${(t/1e3).toFixed(1)}M`:`${t}K`}return String(e)},F=(e,t)=>({value:`${A(e)}/${A(t)}`,tooltip:e>=1e4||t>=1e4?`${e.toLocaleString()} buys / ${t.toLocaleString()} sells`:void 0});function D({label:e,onClick:n,children:a}){return(0,t.jsx)(x.Tooltip,{content:e,children:(0,t.jsx)(r.Box,{as:"button",onClick:n,color:"fg.muted",_hover:{color:"primary"},display:"inline-flex",alignItems:"center",lineHeight:"1",cursor:"pointer",children:a})})}let P={OPEN:"success.500",PARTIAL:"yellow.400",CLOSED:"fg.muted"};function L({status:e}){let r=String(e).toUpperCase();return(0,t.jsx)(o.Text,{fontSize:"9px",fontWeight:"700",textTransform:"uppercase",letterSpacing:"0.05em",color:P[r]??"fg.muted",children:r})}function W({pos:e}){let n=e.token_symbol||e.tokenInfo?.symbol||(e.token_mint?(0,g.truncateBlockchainAddress)(e.token_mint):"â"),a=C(e.total_pnl_usd),s=C(e.total_realized_pnl_usd),c=C(e.total_unrealized_pnl_usd),d=C(e.percentage_gain),f=C(e.total_buy_value_usd),h=C(e.total_sell_value_usd);return(0,t.jsxs)(l.VStack,{gap:2,align:"stretch",children:[(0,t.jsxs)(i.HStack,{justify:"space-between",gap:2,children:[(0,t.jsxs)(i.HStack,{gap:2,minW:0,children:[(0,t.jsx)(o.Text,{fontSize:"12px",fontWeight:"700",color:"textPrimary",truncate:!0,maxW:"180px",children:n}),(0,t.jsx)(L,{status:e.status})]}),null!=d&&(0,t.jsxs)(o.Text,{fontSize:"12px",fontWeight:"700",fontFamily:"mono",color:$(a??d),flexShrink:0,children:[d>=0?"+":"",(0,g.formatPercentage)(d,1)]})]}),(0,t.jsxs)(u.SimpleGrid,{columns:3,gap:1,w:"100%",children:[(0,t.jsx)(r.Box,{gridColumn:"1 / -1",children:(0,t.jsx)(p.StatCell,{label:"Net PnL",tone:"hero",value:null==a?"â":(0,g.formatCurrency)(a,{signPrefix:!0}),valueColor:$(a)})}),(0,t.jsx)(p.StatCell,{label:"Realized",..._(s,!0),valueColor:$(s)}),(0,t.jsx)(p.StatCell,{label:"Unrealized",..._(c,!0),valueColor:$(c)}),(0,t.jsx)(p.StatCell,{label:"Bought",..._(f)}),(0,t.jsx)(p.StatCell,{label:"Sold",..._(h)}),(0,t.jsx)(p.StatCell,{label:"Buys / Sells",...F(e.total_buys??0,e.total_sells??0)})]}),(0,t.jsxs)(i.HStack,{justify:"space-between",fontSize:"10px",color:"textSecondary",fontFamily:"mono",children:[(0,t.jsxs)(o.Text,{children:[e.total_transactions??0," txns"]}),e.primary_dex&&(0,t.jsx)(o.Text,{textTransform:"uppercase",children:e.primary_dex})]})]})}function O({activity:e}){let n=C(e.net_usd);return(0,t.jsxs)(l.VStack,{gap:2,align:"stretch",children:[(0,t.jsxs)(i.HStack,{gap:2,minW:0,children:[(0,t.jsx)(o.Text,{fontSize:"11px",fontWeight:"600",color:"textSecondary",textTransform:"uppercase",letterSpacing:"0.05em",children:"Token Activity"}),(0,t.jsx)(o.Text,{fontSize:"9px",color:"fg.muted",children:"live · no held position"})]}),(0,t.jsxs)(u.SimpleGrid,{columns:3,gap:1,w:"100%",children:[(0,t.jsx)(r.Box,{gridColumn:"1 / -1",children:(0,t.jsx)(p.StatCell,{label:"Net Flow",tone:"hero",value:null==n?"â":(0,g.formatCurrency)(n,{signPrefix:!0}),valueColor:$(n)})}),(0,t.jsx)(p.StatCell,{label:"Bought",..._(C(e.bought_usd))}),(0,t.jsx)(p.StatCell,{label:"Sold",..._(C(e.sold_usd))}),(0,t.jsx)(p.StatCell,{label:"Buys / Sells",...F(e.buys,e.sells)}),(0,t.jsx)(p.StatCell,{label:"Txns",value:(0,g.formatBigNumberString)(e.total_transactions)}
1),(0,t.jsx)(p.StatCell,{label:"Fees",..._(C(e.fees_usd))})]}),e.dexes.length>0&&(0,t.jsx)(i.HStack,{justify:"flex-end",fontSize:"10px",color:"textSecondary",fontFamily:"mono",children:(0,t.jsx)(o.Text,{textTransform:"uppercase",truncate:!0,children:e.dexes.slice(0,3).join(" · ")})})]})}function z({card:e}){let r=e.labels,n=e.kpis,a=C(r?.winRatePct)??C(n?.winRate),s=C(r?.profitFactor)??C(n?.profitFactor),l=C(r?.closedPositionsCount);if(null==a&&null==s&&null==l)return null;let c=null!=l&&l>=10;return(0,t.jsxs)(i.HStack,{gap:1.5,fontSize:"11px",fontFamily:"mono",align:"center",wrap:"wrap",children:[(0,t.jsx)(o.Text,{fontSize:"9px",color:"textSecondary",textTransform:"uppercase",letterSpacing:"0.05em",flexShrink:0,children:"Skill"}),c?(0,t.jsxs)(t.Fragment,{children:[null!=a&&(0,t.jsxs)(o.Text,{color:a>=50?"success.500":"error.500",children:[(0,g.formatPercentage)(a,0)," win"]}),null!=s&&(0,t.jsxs)(o.Text,{color:s>=1?"success.500":"error.500",children:["· PF ",s.toFixed(2)]}),(0,t.jsxs)(o.Text,{color:"textSecondary",children:["· ",(0,g.formatBigNumberString)(l)," closed"]})]}):(0,t.jsxs)(o.Text,{color:"fg.muted",children:["Unrated · ",l??0," closed position",1===l?"":"s"]})]})}function E({labels:e}){let r=e.rootLabel||e.rootSource,n=C(e.provenanceHops),a=e.fundingFarm?.funderFarmActiveNow;return r||a?(0,t.jsxs)(i.HStack,{gap:1.5,fontSize:"11px",fontFamily:"mono",align:"center",wrap:"wrap",children:[(0,t.jsx)(o.Text,{fontSize:"9px",color:"textSecondary",textTransform:"uppercase",letterSpacing:"0.05em",flexShrink:0,children:"Funding"}),r&&(0,t.jsxs)(o.Text,{color:/farm/i.test(r)?"orange.400":/cex|exchange/i.test(r)?"blue.400":"textSecondary",children:[r,null!=n?` \xb7 ${n} hop${1===n?"":"s"}`:""]}),a&&(0,t.jsx)(o.Text,{color:"red.400",children:"· farm-active funder"})]}):null}function B({card:e}){let n=e.labels,a=e.kpis,s=C(n?.totalPnl)??C(a?.totalRealizedPnlUsd),i=C(n?.winRatePct)??C(a?.winRate),l=C(n?.totalTrades)??C(a?.totalTrades),o=C(a?.profitFactor)??C(n?.profitFactor),c=C(a?.medianHoldTimeHours),d=C(n?.totalVolumeUsd)??C(a?.totalVolumeUsd);return(0,t.jsxs)(u.SimpleGrid,{columns:3,gap:1,w:"100%",children:[(0,t.jsx)(r.Box,{gridColumn:"1 / -1",children:(0,t.jsx)(p.StatCell,{label:"Total PnL",tone:"hero",value:null==s?"â":(0,g.formatCurrency)(s,{signPrefix:!0}),valueColor:$(s)})}),(0,t.jsx)(p.StatCell,{label:"Win Rate",value:null==i?"â":(0,g.formatPercentage)(i,1)}),(0,t.jsx)(p.StatCell,{label:"Trades",value:null==l?"â":(0,g.formatBigNumberString)(l)}),(0,t.jsx)(p.StatCell,{label:"Profit Factor",value:null==o?"â":o.toFixed(2)}),(0,t.jsx)(p.StatCell,{label:"Median Hold",value:null==c?"â":(0,g.formatSecondsToTime)(3600*c)}),(0,t.jsx)(p.StatCell,{label:"Volume",..._(d)})]})}function H({card:e}){return e.recentTrades.length?(0,t.jsxs)(l.VStack,{gap:1,align:"stretch",pt:2,borderTopWidth:"1px",borderTopColor:"border",children:[(0,t.jsx)(o.Text,{fontSize:"10px",fontWeight:"500",color:"textSecondary",textTransform:"uppercase",letterSpacing:"0.06em",children:"Recent Trades"}),e.recentTrades.slice(0,5).map(e=>{let r=e.tokenInfo?.symbol||(e.token_mint?(0,g.truncateBlockchainAddress)(e.token_mint):"â");return(0,t.jsxs)(i.HStack,{justify:"space-between",fontSize:"11px",gap:2,children:[(0,t.jsx)(o.Text,{color:"textPrimary",truncate:!0,maxW:"42%",children:r}),(0,t.jsxs)(o.Text,{color:"textSecondary",fontFamily:"mono",truncate:!0,minW:0,children:[(0,g.formatSecondsToTime)(e.hold_time_seconds)," · ",e.exit_dex]}),(0,t.jsx)(o.Text,{color:$(e.realized_pnl_usd),fontFamily:"mono",flexShrink:0,minW:"64px",textAlign:"right",children:k(e.realized_pnl_usd,!0)})]},e.exit_signature)})]}):null}function R({address:e,tokenMint:r}){let{card:s,loading:u}=(0,y.useWalletCard)(e,!0),{position:p,loading:x}=S(e,r),{activity:v,loading:T}=b(e,r),{toWalletPage:j}=(0,a.useTerminalNavigation)(),$=(0,n.useCallback)(t=>{t.stopPropagation(),navigator.clipboard?.writeText(e)},[e]),C=s?.labels?{sizeClass:s.labels.sizeClass,traderType:s.labels.traderType,performanceLevel:s.labels.performanceLevel,exitStyle:s.labels.exitStyle,automationLabel:s.labels.automationLabel,badges:[...s.labels.tradeBadges,...s.labels.identityBadges],isFresh6h:s.labels.isFresh6h,isFresh24h:s.labels.isFresh24h,fundedByFarm:s.labels.fundingFarm?.fundedByFarm,tradeCount:s.labels.totalTrades}:null,k=!!r;return(0,t.jsxs)(l.VStack,{gap:2.5,align:"stretch",w:"360px",maxW:"92vw",maxH:"100%",overflowY:"auto",p:3,bg:"bg",borderWidth:"1px",borderColor:"border",borderRadius:"lg",boxShadow:"lg",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)(i.HStack,{gap:2,justify:"space-between",children:[(0,t.jsxs)(i.HStack,{gap:2,minW:0,children:[(0,t.jsx)(f.default,{address:e,size:"sm"}),(0,t.jsxs)(l.VStack,{gap:0,align:"start",minW:0,children:[(0,t.jsx)(o.Text,{fontSize:"13px",fontWeight:"700",fontFamily:"mono",color:"textPrimary",title:e,truncate:!0,children:(0,g.truncateBlockchainAddress)(e)}),(0,t.jsx)(w.KolIdentity,{username:s?.labels?.kolUsername,platform:s?.labels?.kolPlatform,fontSize:"10px"}),s?.solBalance!=null&&(0,t.jsxs)(o.Text,{fontSize:"10px",color:"textSecondary",fontFamily:"mono",children:[s.solBalance.toFixed(3)," SOL"]})]})]}),(0,t.jsxs)(i.HStack,{gap:2.5,flexShrink:0,alignItems:"center",children:[(0,t.jsx)(m.AddressFavourite,{address:e,addressType:"wallet"}),(0,t.jsx)(D,{label:"Copy address",onClick:$,children:(0,t.jsx)(d.LuCopy,{size:13})}),(0,t.jsx)(D,{label:"Open full profile",onClick:t=>{t.stopPropagation(),j(e)},children:(0,t.jsx)(d.LuExternalLink,{size:13})})]})]}),k?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M,{wallet:e,tokenMint:r,avgBuyPrice:p?.avg_buy_price??null,avgSellPrice:p?.avg_sell_price??null}
1),!p&&!v&&(x||T)?(0,t.jsx)(i.HStack,{justify:"center",py:6,children:(0,t.jsx)(c.Spinner,{size:"sm",color:"primary"})}):p?(0,t.jsx)(W,{pos:p}):v?.has_activity?(0,t.jsx)(O,{activity:v}):(0,t.jsx)(o.Text,{fontSize:"11px",color:"textSecondary",py:4,textAlign:"center",children:"No activity in this token yet."}),s&&(0,t.jsx)(z,{card:s}),s?.labels&&(0,t.jsx)(E,{labels:s.labels}),C&&(0,t.jsx)(h.HolderIdentityCard,{input:C})]}):u&&!s?(0,t.jsx)(i.HStack,{justify:"center",py:6,children:(0,t.jsx)(c.Spinner,{size:"sm",color:"primary"})}):s?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(B,{card:s}),s.labels&&(0,t.jsx)(E,{labels:s.labels}),C&&(0,t.jsx)(h.HolderIdentityCard,{input:C}),(0,t.jsx)(H,{card:s})]}):(0,t.jsx)(o.Text,{fontSize:"11px",color:"textSecondary",py:4,textAlign:"center",children:"No data available for this wallet yet."})]})}e.s(["WalletPreviewCard",0,R],108471);let U=()=>{},N=(0,n.createContext)({enabled:!1,show:U,scheduleHide:U,keepOpen:U,hideNow:U}),I=()=>(0,n.useContext)(N);e.s(["WalletPreviewProvider",0,({enabled:e=!0,hoverDelayMs:a=300,children:i})=>{var l;
1let o,c,u,d,f,h,[p,m]=(0,n.useState)(null),x=(0,n.useRef)(!1),g=(0,n.useRef)(null),y=(0,n.useRef)(null),v=()=>{g.current&&clearTimeout(g.current),g.current=null},S=()=>{y.current&&clearTimeout(y.current),y.current=null},b=(0,n.useCallback)(e=>{x.current=!!e,m(e)},[]),T=(0,n.useCallback)((e,t,r)=>{S(),v(),g.current=setTimeout(()=>b({address:e,rect:t,tokenMint:r}),x.current?0:a)},[b,a]),j=(0,n.useCallback)(()=>{v(),S(),y.current=setTimeout(()=>b(null),160)},[b]),M=(0,n.useCallback)(()=>{v(),S()},[]),w=(0,n.useCallback)(()=>{v(),S(),b(null)},[b]),$=(0,n.useMemo)(()=>({enabled:e,show:T,scheduleHide:j,keepOpen:M,hideNow:w}),[e,T,j,M,w]);return(0,t.jsxs)(N.Provider,{value:$,children:[i,e&&p&&(0,t.jsx)(s.Portal,{children:(0,t.jsx)(r.Box,{style:(l=p.rect,o=window.innerWidth,c=window.innerHeight,u=Math.max(8,Math.min(l.left,o-360-8)),d=c-l.bottom-6-8,f=l.top-6-8,{position:"fixed",left:u,display:"flex",maxHeight:Math.max(160,(h=d<540&&f>d)?f:d),...h?{bottom:c-l.top+6}:{top:l.bottom+6},zIndex:1500}),onMouseEnter:M,onMouseLeave:j,children:(0,t.jsx)(R,{address:p.address,tokenMint:p.tokenMint})})})]})},"useWalletPreview",0,I],234965),e.s(["WalletAddressTrigger",0,function({address:e,children:s,tokenMint:i}){let{enabled:l,show:o,scheduleHide:c,hideNow:u}=I(),{toWalletPage:d}=(0,a.useTerminalNavigation)(),f=(0,n.useRef)(null);return l&&e?(0,t.jsx)(r.Box,{as:"span",ref:f,display:"inline-flex",alignItems:"center",minW:0,cursor:"pointer",onMouseEnter:()=>{let t=f.current;t&&o(e,t.getBoundingClientRect(),i)},onMouseLeave:c,onClick:t=>{t.stopPropagation(),u(),d(e)},children:s}):(0,t.jsx)(t.Fragment,{children:s})}],449766)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.