PageSourceSearch

https://tradewolf.ai/assets/Landing-Dzq_GbhR.js

js tradewolf.ai collected 2026-10-05 14:38:37 UTC 77,612 bytes, 6 lines download raw bytes

1var Ut=Object.defineProperty;var Xt=(a,n,e)=>n in a?Ut(a,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[n]=e;var c=(a,n,e)=>Xt(a,typeof n!="symbol"?n+"":n,e);import{t as Zt,cU as ht,cV as ae,cW as O,cX as Jt,cY as er,cZ as tr,c_ as rr,bY as De,c$ as xt,d0 as sr,d1 as ar,d2 as pt,d3 as ft,d4 as nr,d5 as Ue,d6 as or,d7 as Xe,d8 as ir,a as gt,r as h,a$ as lr,d9 as cr,a7 as dr,da as V,j as t,bT as ur,bU as mr,bV as Ze,ck as hr,ba as xr,bW as Je,V as Ce,W as Me,ac as pr,X as Pe,Y as Ie,Z as X,B as G,db as fr,dc as gr,aw as br,dd as yr,ci as et,ax as wr,de as vr,ay as jr,ab as tt,cy as kr,aa as bt,bG as Nr,au as rt,b3 as st,ae as Tr,af as Cr,cB as at,v as Mr,b4 as Pr,aH as ge,aZ as Ir,d as he,b5 as be,cv as yt,cA as Ar,df as Dr,a6 as _r,s as wt,cC as Er,dg as nt,U as Lr,o as Fr,g as Rr,co as Yr,aJ as Hr,a1 as Or,c4 as $r,b1 as Ee,aF as Wr,_ as qr,aY as fe,ca as Sr,cs as Le,bq as Br,br as Vr,cO as $,bs as vt,bu as zr,bv as Qr,bt as Gr,bw as jt,dh as Kr,aM as Ur,f as Xr,H as Zr,di as Jr,bD as ce,aG as es,i as ts,k as rs,aX as ss}from"./index-DbGhDopl.js";import{T as as,a as ns,b as ot,c as re,d as os,e as se}from"./table-BOFhpWir.js";import{A as is}from"./arrow-right-DRpLBgL3.js";import{B as ls}from"./brain-WV1nT3kJ.js";import{C as cs,T as ds}from"./target-BO_QbyD-.js";import{D as us}from"./diamond-CbpdUulI.js";import{c as kt,R as ms,T as hs,b as xs}from"./index-BeJN0DUE.js";import{C as ps}from"./circle-help-DTlrLmFw.js";import{F as fs}from"./FooterSection-CQI1cfKZ.js";import"./arrow-up-right-D-wemgeq.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const gs=Zt("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);function bs(){return Object.assign({},ht())}function ys(a){let e=ae(a).getDay();return e===0&&(e=7),e}function ws(a,n){const e=n instanceof Date?O(n,0):new n(0);return e.setFullYear(a.getFullYear(),a.getMonth(),a.getDate()),e.setHours(a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()),e}const vs=10;class Nt{constructor(){c(this,"subPriority",0)}validate(n,e){return!0}}class js extends Nt{constructor(n,e,s,r,o){super(),this.value=n,this.validateValue=e,this.setValue=s,this.priority=r,o&&(this.subPriority=o)}validate(n,e){return this.validateValue(n,this.value,e)}set(n,e,s){return this.setValue(n,e,this.value,s)}}class ks extends Nt{constructor(){super(...arguments);c(this,"priority",vs);c(this,"subPriority",-1)}set(e,s){return s.timestampIsSet?e:O(e,ws(e,Date))}}class w{run(n,e,s,r){const o=this.parse(n,e,s,r);return o?{setter:new js(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(n,e,s){return!0}}class Ns extends w{constructor(){super(...arguments);c(this,"priority",140);c(this,"incompatibleTokens",["R","u","t","T"])}parse(e,s,r){switch(s){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});case"GGGG":default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,s,r){return s.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}}const I={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},K={basicOptionalMinutes:/^([+-])(\d{2})(\d{2}
vendor: 17,808 bytes, line 6
6)?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function A(a,n){return a&&{value:n(a.value),rest:a.rest}}function M(a,n){const e=n.match(a);return e?{value:parseInt(e[0],10),rest:n.slice(e[0].length)}:null}function U(a,n){const e=n.match(a);if(!e)return null;if(e[0]==="Z")return{value:0,rest:n.slice(1)};const s=e[1]==="+"?1:-1,r=e[2]?parseInt(e[2],10):0,o=e[3]?parseInt(e[3],10):0,d=e[5]?parseInt(e[5],10):0;return{value:s*(r*Jt+o*er+d*tr),rest:n.slice(e[0].length)}}function Tt(a){return M(I.anyDigitsSigned,a)}function P(a,n){switch(a){case 1:return M(I.singleDigit,n);case 2:return M(I.twoDigits,n);case 3:return M(I.threeDigits,n);case 4:return M(I.fourDigits,n);default:return M(new RegExp("^\\d{1,"+a+"}"),n)}}function ye(a,n){switch(a){case 1:return M(I.singleDigitSigned,n);case 2:return M(I.twoDigitsSigned,n);case 3:return M(I.threeDigitsSigned,n);case 4:return M(I.fourDigitsSigned,n);default:return M(new RegExp("^-?\\d{1,"+a+"}"),n)}}function Fe(a){switch(a){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Ct(a,n){const e=n>0,s=e?n:1-n;let r;if(s<=50)r=a||100;else{const o=s+50,d=Math.trunc(o/100)*100,i=a>=o%100;r=a+d-(i?100:0)}return e?r:1-r}function Mt(a){return a%400===0||a%4===0&&a%100!==0}class Ts extends w{constructor(){super(...arguments);c(this,"priority",130);c(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,s,r){const o=d=>({year:d,isTwoDigitYear:s==="yy"});switch(s){case"y":return A(P(4,e),o);case"yo":return A(r.ordinalNumber(e,{unit:"year"}),o);default:return A(P(s.length,e),o)}}validate(e,s){return s.isTwoDigitYear||s.year>0}set(e,s,r){const o=e.getFullYear();if(r.isTwoDigitYear){const i=Ct(r.year,o);return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}const d=!("era"in s)||s.era===1?r.year:1-r.year;return e.setFullYear(d,0,1),e.setHours(0,0,0,0),e}}class Cs extends w{constructor(){super(...arguments);c(this,"priority",130);c(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,s,r){const o=d=>({year:d,isTwoDigitYear:s==="YY"});switch(s){case"Y":return A(P(4,e),o);case"Yo":return A(r.ordinalNumber(e,{unit:"year"}),o);default:return A(P(s.length,e),o)}}validate(e,s){return s.isTwoDigitYear||s.year>0}set(e,s,r,o){const d=rr(e,o);if(r.isTwoDigitYear){const x=Ct(r.year,d);return e.setFullYear(x,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),De(e,o)}const i=!("era"in s)||s.era===1?r.year:1-r.year;return e.setFullYear(i,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),De(e,o)}}class Ms extends w{constructor(){super(...arguments);c(this,"priority",130);c(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,s){return ye(s==="R"?4:s.length,e)}set(e,s,r){const o=O(e,0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),xt(o)}}class Ps extends w{constructor(){super(...arguments);c(this,"priority",130);c(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,s){return ye(s==="u"?4:s.length,e)}set(e,s,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}}class Is extends w{constructor(){super(...arguments);c(this,"priority",120);c(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,s,r){switch(s){case"Q":case"QQ":return P(s.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,s){return s>=1&&s<=4}set(e,s,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}}class As extends w{constructor(){super(...arguments);c(this,"priority",120);c(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,s,r){switch(s){case"q":case"qq":return P(s.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,s){return s>=1&&s<=4}set(e,s,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}}class Ds extends w{constructor(){super(...arguments);c(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);c(this,"priority",110)}parse(e,s,r){const o=d=>d-1;switch(s){case"M":return A(M(I.month,e),o);case"MM":return A(P(2,e),o);case"Mo":return A(r.ordinalNumber(e,{unit:"month"}),o);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,s){return s>=0&&s<=11}set(e,s,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}}class _s extends w{constructor(){super(...arguments);c(this,"priority",110);c(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,s,r){const o=d=>d-1;switch(s){case"L":return A(M(I.month,e),o);case"LL":return A(P(2,e),o);case"Lo":return A(r.ordinalNumber(e,{unit:"month"}),o);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,s){return s>=0&&s<=11}set(e,s,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}}function Es(a,n,e){const s=ae(a),r=sr(s,e)-n;return s.setDate(s.getDate()-r*7),s}class Ls extends w{constructor(){super(...arguments);c(this,"priority",100);c(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,s,r){switch(s){case"w":return M(I.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return P(s.length,e)}}validate(e,s){return s>=1&&s<=53}set(e,s,r,o){return De(Es(e,r,o),o)}}function Fs(a,n){const e=ae(a),s=ar(e)-n;return e.setDate(e.getDate()-s*7),e}class Rs extends w{constructor(){super(...arguments);c(this,"priority",100);c(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,s,r){switch(s){case"I":return M(I.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return P(s.length,e)}}validate(e,s){return s>=1&&s<=53}set(e,s,r){return xt(Fs(e,r))}}const Ys=[31,28,31,30,31,30,31,31,30,31,30,31],Hs=[31,29,31,30,31,30,31,31,30,31,30,31];class Os extends w{constructor(){super(...arguments);c(this,"priority",90);c(this,"subPriority",1);c(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,s,r){switch(s){case"d":return M(I.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return P(s.length,e)}}validate(e,s){const r=e.getFullYear(),o=Mt(r),d=e.getMonth();return o?s>=1&&s<=Hs[d]:s>=1&&s<=Ys[d]}set(e,s,r){return e.setDate(r),e.setHours(0,0,0,0),e}}class $s extends w{constructor(){super(...arguments);c(this,"priority",90);c(this,"subpriority",1);c(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,s,r){switch(s){case"D":case"DD":return M(I.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return P(s.length,e)}}validate(e,s){const r=e.getFullYear();return Mt(r)?s>=1&&s<=366:s>=1&&s<=365}set(e,s,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}}function Re(a,n,e){var f,u,v,R;const s=ht(),r=(e==null?void 0:e.weekStartsOn)??((u=(f=e==null?void 0:e.locale)==null?void 0:f.options)==null?void 0:u.weekStartsOn)??s.weekStartsOn??((R=(v=s.locale)==null?void 0:v.options)==null?void 0:R.weekStartsOn)??0,o=ae(a),d=o.getDay(),x=(n%7+7)%7,p=7-r,b=n<0||n>6?n-(d+p)%7:(x+p)%7-(d+p)%7;return pt(o,b)}class Ws extends w{constructor(){super(...arguments);c(this,"priority",90);c(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,s,r){switch(s){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,s){return s>=0&&s<=6}set(e,s,r,o){return e=Re(e,r,o),e.setHours(0,0,0,0),e}}class qs extends w{constructor(){super(...arguments);c(this,"priority",90);c(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,s,r,o){const d=i=>{const x=Math.floor((i-1)/7)*7;return(i+o.weekStartsOn+6)%7+x};switch(s){case"e":case"ee":return A(P(s.length,e),d);case"eo":return A(r.ordinalNumber(e,{unit:"day"}),d);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,s){return s>=0&&s<=6}set(e,s,r,o){return e=Re(e,r,o),e.setHours(0,0,0,0),e}}class Ss extends w{constructor(){super(...arguments);c(this,"priority",90);c(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,s,r,o){const d=i=>{const x=Math.floor((i-1)/7)*7;return(i+o.weekStartsOn+6)%7+x};switch(s){case"c":case"cc":return A(P(s.length,e),d);case"co":return A(r.ordinalNumber(e,{unit:"day"}),d);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,s){return s>=0&&s<=6}set(e,s,r,o){return e=Re(e,r,o),e.setHours(0,0,0,0),e}}function Bs(a,n){const e=ae(a),s=ys(e),r=n-s;return pt(e,r)}class Vs extends w{constructor(){super(...arguments);c(this,"priority",90);c(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,s,r){const o=d=>d===0?7:d;switch(s){case"i":case"ii":return P(s.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return A(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),o);case"iiiii":return A(r.day(e,{width:"narrow",context:"formatting"}),o);case"iiiiii":return A(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),o);case"iiii":default:return A(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),o)}}validate(e,s){return s>=1&&s<=7}set(e,s,r){return e=Bs(e,r),e.setHours(0,0,0,0),e}}class zs extends w{constructor(){super(...arguments);c(this,"priority",80);c(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,s,r){switch(s){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,s,r){return e.setHours(Fe(r),0,0,0),e}}class Qs extends w{constructor(){super(...arguments);c(this,"priority",80);c(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,s,r){switch(s){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,s,r){return e.setHours(Fe(r),0,0,0),e}}class Gs extends w{constructor(){super(...arguments);c(this,"priority",80);c(this,"incompatibleTokens",["a","b","t","T"])}parse(e,s,r){switch(s){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,s,r){return e.setHours(Fe(r),0,0,0),e}}class Ks extends w{constructor(){super(...arguments);c(this,"priority",70);c(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,s,r){switch(s){case"h":return M(I.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return P(s.length,e)}}validate(e,s){return s>=1&&s<=12}set(e,s,r){const o=e.getHours()>=12;return o&&r<12?e.setHours(r+12,0,0,0):!o&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}}class Us extends w{constructor(){super(...arguments);c(this,"priority",70);c(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,s,r){switch(s){case"H":return M(I.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return P(s.length,e)}}validate(e,s){return s>=0&&s<=23}set(e,s,r){return e.setHours(r,0,0,0),e}}class Xs extends w{constructor(){super(...arguments);c(this,"priority",70);c(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,s,r){switch(s){case"K":return M(I.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return P(s.length,e)}}validate(e,s){return s>=0&&s<=11}set(e,s,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}}class Zs extends w{constructor(){super(...arguments);c(this,"priority",70);c(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,s,r){switch(s){case"k":return M(I.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return P(s.length,e)}}validate(e,s){return s>=1&&s<=24}set(e,s,r){const o=r<=24?r%24:r;return e.setHours(o,0,0,0),e}}class Js extends w{constructor(){super(...arguments);c(this,"priority",60);c(this,"incompatibleTokens",["t","T"])}parse(e,s,r){switch(s){case"m":return M(I.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return P(s.length,e)}}validate(e,s){return s>=0&&s<=59}set(e,s,r){return e.setMinutes(r,0,0),e}}class ea extends w{constructor(){super(...arguments);c(this,"priority",50);c(this,"incompatibleTokens",["t","T"])}parse(e,s,r){switch(s){case"s":return M(I.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return P(s.length,e)}}validate(e,s){return s>=0&&s<=59}set(e,s,r){return e.setSeconds(r,0),e}}class ta extends w{constructor(){super(...arguments);c(this,"priority",30);c(this,"incompatibleTokens",["t","T"])}parse(e,s){const r=o=>Math.trunc(o*Math.pow(10,-s.length+3));return A(P(s.length,e),r)}set(e,s,r){return e.setMilliseconds(r),e}}class ra extends w{constructor(){super(...arguments);c(this,"priority",10);c(this,"incompatibleTokens",["t","T","x"])}parse(e,s){switch(s){case"X":return U(K.basicOptionalMinutes,e);case"XX":return U(K.basic,e);case"XXXX":return U(K.basicOptionalSeconds,e);case"XXXXX":return U(K.extendedOptionalSeconds,e);case"XXX":default:return U(K.extended,e)}}set(e,s,r){return s.timestampIsSet?e:O(e,e.getTime()-ft(e)-r)}}class sa extends w{constructor(){super(...arguments);c(this,"priority",10);c(this,"incompatibleTokens",["t","T","X"])}parse(e,s){switch(s){case"x":return U(K.basicOptionalMinutes,e);case"xx":return U(K.basic,e);case"xxxx":return U(K.basicOptionalSeconds,e);case"xxxxx":return U(K.extendedOptionalSeconds,e);case"xxx":default:return U(K.extended,e)}}set(e,s,r){return s.timestampIsSet?e:O(e,e.getTime()-ft(e)-r)}}class aa extends w{constructor(){super(...arguments);c(this,"priority",40);c(this,"incompatibleTokens","*")}parse(e){return Tt(e)}set(e,s,r){return[O(e,r*1e3),{timestampIsSet:!0}]}}class na extends w{constructor(){super(...arguments);c(this,"priority",20);c(this,"incompatibleTokens","*")}parse(e){return Tt(e)}set(e,s,r){return[O(e,r),{timestampIsSet:!0}]}}
6const oa={G:new Ns,y:new Ts,Y:new Cs,R:new Ms,u:new Ps,Q:new Is,q:new As,M:new Ds,L:new _s,w:new Ls,I:new Rs,d:new Os,D:new $s,E:new Ws,e:new qs,c:new Ss,i:new Vs,a:new zs,b:new Qs,B:new Gs,h:new Ks,H:new Us,K:new Xs,k:new Zs,m:new Js,s:new ea,S:new ta,X:new ra,x:new sa,t:new aa,T:new na},ia=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,la=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ca=/^'([^]*?)'?$/,da=/''/g,ua=/\S/,ma=/[a-zA-Z]/;function it(a,n,e,s){var _,D,E,C;const r=bs(),o=r.locale??nr,d=r.firstWeekContainsDate??((D=(_=r.locale)==null?void 0:_.options)==null?void 0:D.firstWeekContainsDate)??1,i=r.weekStartsOn??((C=(E=r.locale)==null?void 0:E.options)==null?void 0:C.weekStartsOn)??0;if(n==="")return a===""?ae(e):O(e,NaN);const x={firstWeekContainsDate:d,weekStartsOn:i,locale:o},p=[new ks],b=n.match(la).map(m=>{const y=m[0];if(y in Ue){const T=Ue[y];return T(m,o.formatLong)}return m}).join("").match(ia),f=[];for(let m of b){or(m)&&Xe(m,n,a),ir(m)&&Xe(m,n,a);const y=m[0],T=oa[y];if(T){const{incompatibleTokens:q}=T;if(Array.isArray(q)){const Q=f.find(W=>q.includes(W.token)||W.token===y);if(Q)throw new RangeError(`The format string mustn't contain \`${Q.fullToken}\` and \`${m}\` at the same time`)}else if(T.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${m}\` and any other token at the same time`);f.push({token:y,fullToken:m});const S=T.run(a,m,o.match,x);if(!S)return O(e,NaN);p.push(S.setter),a=S.rest}else{if(y.match(ma))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");if(m==="''"?m="'":y==="'"&&(m=ha(m)),a.indexOf(m)===0)a=a.slice(m.length);else return O(e,NaN)}}if(a.length>0&&ua.test(a))return O(e,NaN);const u=p.map(m=>m.priority).sort((m,y)=>y-m).filter((m,y,T)=>T.indexOf(m)===y).map(m=>p.filter(y=>y.priority===m).sort((y,T)=>T.subPriority-y.subPriority)).map(m=>m[0]);let v=ae(e);if(isNaN(v.getTime()))return O(e,NaN);const R={};for(const m of u){if(!m.validate(v,x))return O(e,NaN);const y=m.set(v,R,x);Array.isArray(y)?(v=y[0],Object.assign(R,y[1])):v=y}return O(e,v)}function ha(a){return a.match(ca)[1].replace(da,"'")}const lt="/assets/hero-image-nQPxhrgb.webp",me=50,Ae=100,ct=a=>a==null||isNaN(a)?"$0.00":Ar(a),xa=a=>a?a>=1e3?"1k+":a.toLocaleString():"—",pa=a=>{switch(a){case 1:return t.jsx("span",{className:"text-lg font-bold text-warning",children:"#1"});case 2:return t.jsx("span",{className:"text-lg font-bold text-muted-foreground",children:"#2"});case 3:return t.jsx("span",{className:"text-lg font-bold text-amber-600",children:"#3"});default:return t.jsxs("span",{className:"text-muted-foreground font-mono",children:["#",a]})}};function fa(){var Qe;const a=gt(),[n,e]=h.useState("markets"),[s,r]=h.useState([]),[o,d]=h.useState(!0),[i,x]=h.useState("volume"),[p,b]=h.useState("grid"),[f,u]=h.useState(!1),[v,R]=h.useState(!1),[_,D]=h.useState(""),[E,C]=h.useState({type:"any",from:0,to:100}),[m,y]=h.useState({preset:"1k",min:1e3,max:null}),[T,q]=h.useState({preset:"any",startDate:null,endDate:null}),[S,Q]=h.useState("all"),[W,ee]=h.useState("all"),[B,xe]=h.useState("all"),[te,pe]=h.useState("all"),[ke,Vt]=h.useState("rank"),[Ne,We]=h.useState("asc");h.useEffect(()=>{let l=!1;return(async()=>{d(!0);try{const k=[],N=new Set;let j=null,L=!0;for(;k.length<500&&L;){const Y=await Dr(j,Math.min(300,500-k.length),m.min??0,m.max,void 0,B==="resolved",B);for(const H of Y.markets)N.has(H.id)||(N.add(H.id),k.push(H));j=Y.nextCursor,L=Y.hasMore&&!!Y.nextCursor}l||r(k.slice(0,500))}catch{l||_r.error("Failed to load markets. Please try again.")}finally{l||d(!1)}})(),()=>{l=!0}},[m.min,m.max,B]);const{data:ne,isLoading:qe}=lr({queryKey:["landing-leaderboard",ke,Ne],queryFn:async()=>{const{data:l,error:g}=await wt.functions.invoke("get-polymarket-traders",{body:{page:1,pageSize:Ae,sortField:ke,sortDirection:Ne}});if(g)throw g;return l},staleTime:5*60*1e3,placeholderData:Er}),Te=((ne==null?void 0:ne.traders)||[]).slice(0,Ae),de=l=>{const g=l.replace(/[^0-9.KMB]/gi,""),k=parseFloat(g)||0;return l.toUpperCase().includes("B")?k*1e9:l.toUpperCase().includes("M")?k*1e6:l.toUpperCase().includes("K")?k*1e3:k},ue=l=>{if(!l||l==="N/A"||l==="TBD")return null;if(l.includes("T")||/^\d{4}-\d{2}-\d{2}/.test(l)){const L=new Date(l);if(!isNaN(L.getTime()))return L}const g=new Date,k=it(l,"MMM d, yyyy",g);if(nt(k))return k;const N=it(l,"MMM d",g);if(!nt(N))return null;const j=new Date(N);return j.setFullYear(g.getFullYear()),j<g&&j.setFullYear(g.getFullYear()+1),j},Z=h.useMemo(()=>{let l=s.filter(g=>{var Ke;if(_&&!g.title.toLowerCase().includes(_.toLowerCase())||S!=="all"&&g.platform.toLowerCase()!==S||W!=="all"&&g.category!==W)return!1;const k=((Ke=g.marketStatus)==null?void 0:Ke.toLowerCase())||"open",N=k==="resolved"||k==="closed"||g.probability>=99||g.probability<=1;if(B==="active"&&N||B==="resolved"&&!N)return!1;const j=g.probability,{type:L,from:Y,to:H}=E;if(L==="no"){const J=100-j;if(J<Y||J>H)return!1}else if(j<Y||j>H)return!1;const Ge=g.rawVolume??de(g.volume);if(m.min!==null&&Ge<m.min||m.max!==null&&Ge>m.max)return!1;
6if(T.preset!=="any"){const J=ue(g.endDate);if(!J)return!1;const ie=new Date;if(T.preset==="custom"){if(T.startDate&&J<T.startDate||T.endDate&&J>T.endDate)return!1}else{let le;switch(T.preset){case"24h":le=new Date(ie.getTime()+864e5);break;case"3d":le=new Date(ie.getTime()+2592e5);break;case"7d":le=new Date(ie.getTime()+6048e5);break;case"30d":le=new Date(ie.getTime()+2592e6);break;default:le=new Date(ie.getTime()+31536e6)}if(J<ie||J>le)return!1}}return!0});return l.sort((g,k)=>{switch(i){case"volume":return(k.rawVolume??de(k.volume))-(g.rawVolume??de(g.volume));case"probability-high":return k.probability-g.probability;case"probability-low":return g.probability-k.probability;case"end-date":const N=ue(g.endDate),j=ue(k.endDate);return!N&&!j?0:N?j?N.getTime()-j.getTime():-1:1;default:return 0}}),l},[s,_,S,W,B,E,m,T,i]),zt=h.useMemo(()=>{const l=new Set;for(const g of Z)g.eventSlug&&l.add(g.eventSlug);return Array.from(l)},[Z]),{completeEventMarkets:Se}=cr(zt),Be=h.useMemo(()=>{const l=k=>[...k].sort((N,j)=>{switch(i){case"volume":{const L=V(N)?N.totalVolume:N.rawVolume??de(N.volume);return(V(j)?j.totalVolume:j.rawVolume??de(j.volume))-L}case"probability-high":{const L=V(N)?Math.max(...N.markets.map(H=>H.probability)):N.probability;return(V(j)?Math.max(...j.markets.map(H=>H.probability)):j.probability)-L}case"probability-low":{const L=V(N)?Math.min(...N.markets.map(H=>H.probability)):N.probability,Y=V(j)?Math.min(...j.markets.map(H=>H.probability)):j.probability;return L-Y}case"end-date":{const L=ue((V(N),N.endDate)),Y=ue((V(j),j.endDate));return!L&&!Y?0:L?Y?L.getTime()-Y.getTime():-1:1}default:return 0}});if(te==="markets")return Z.slice(0,me);const g=l(dr(Z,Se,B));return te==="events"?g.filter(k=>V(k)).slice(0,me):g.slice(0,me)},[Z,te,Se,B,i]),oe=Be,Ve=h.useMemo(()=>oe.reduce((l,g)=>V(g)?l+g.markets.length:l+1,0),[oe]),Qt=Z.length>=me||Be.length>=me,Gt=l=>{a(`/market/${encodeURIComponent(l.id)}`,{state:{market:l}})},Kt=l=>{a(`/trader/${l}`)},ze=()=>{a("/auth?tab=signup")};return t.jsx("section",{className:"px-6 lg:px-12 pt-4 pb-8 bg-background",children:t.jsx("div",{className:"max-w-7xl mx-auto",children:t.jsxs(ur,{value:n,onValueChange:l=>e(l),className:"w-full",children:[t.jsx("div",{className:"flex items-center justify-center mb-3",children:t.jsxs(mr,{className:"bg-background border border-border",children:[t.jsxs(Ze,{value:"markets",className:"gap-2",children:[t.jsx(hr,{className:"h-4 w-4"}),"Live Markets"]}),t.jsxs(Ze,{value:"leaderboard",className:"gap-2",children:[t.jsx(xr,{className:"h-4 w-4"}),"Leaderboard"]})]})}),t.jsxs(Je,{value:"markets",className:"mt-0",children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsxs("div",{children:[t.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Live Markets"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:o?"Loading...":te==="events"?`Showing ${oe.length} events (${Ve} markets)`:te==="markets"?`Showing ${oe.length} of ${Z.length} markets`:`Showing ${oe.length} items (${Ve} markets)`})]}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsxs(Ce,{value:i,onValueChange:l=>x(l),children:[t.jsxs(Me,{className:"w-[140px] h-8 text-xs",children:[t.jsx(pr,{className:"h-3.5 w-3.5 mr-1.5"}),t.jsx(Pe,{})]}),t.jsxs(Ie,{children:[t.jsx(X,{value:"volume",children:"Volume (High)"}),t.jsx(X,{value:"probability-high",children:"Prob. (High)"}),t.jsx(X,{value:"probability-low",children:"Prob. (Low)"}),t.jsx(X,{value:"end-date",children:"End Date"})]})]}),t.jsxs("div",{className:"flex items-center border border-border rounded-lg p-0.5 bg-muted/30",children:[t.jsx(G,{variant:p==="grid"?"secondary":"ghost",size:"sm",onClick:()=>b("grid"),className:"h-7 px-2",children:t.jsx(fr,{className:"h-3.5 w-3.5"})}),t.jsx(G,{variant:p==="list"?"secondary":"ghost",size:"sm",onClick:()=>b("list"),className:"h-7 px-2",children:t.jsx(gr,{className:"h-3.5 w-3.5"})})]})]})]}),t.jsx("div",{className:"md:hidden mb-4",children:t.jsxs(br,{open:v,onOpenChange:R,children:[t.jsx(yr,{asChild:!0,children:t.jsxs(G,{variant:"outline",className:"w-full h-10 justify-center gap-2",children:[t.jsx(et,{className:"h-4 w-4"}),"Filters"]})}),t.jsxs(wr,{side:"bottom",className:"h-[85vh] overflow-y-auto",children:[t.jsx(vr,{className:"mb-4",children:t.jsxs(jr,{className:"flex items-center gap-2",children:[t.jsx(et,{className:"h-5 w-5"}),"Filter Markets"]})}),t.jsxs("div",{className:"space-y-4",children:[t.jsx(tt,{searchQuery:_,onSearchChange:D,probabilityFilter:E,onProbabilityFilterChange:C,volumeFilter:m,onVolumeFilterChange:y,dateFilter:T,onDateFilterChange:q,platformFilter:S,onPlatformFilterChange:Q,categoryFilter:W,onCategoryFilterChange:ee,statusFilter:B,onStatusFilterChange:xe,marketTypeFilter:te,onMarketTypeFilterChange:pe,onResetFilters:()=>{D(""),C({type:"any",from:0,to:100}),y({preset:"1k",min:1e3,max:null}
6),q({preset:"any",startDate:null,endDate:null}),Q("all"),ee("all"),xe("all"),pe("all")}}),t.jsx(G,{className:"w-full mt-4",onClick:()=>R(!1),children:"Apply Filters"})]})]})]})}),t.jsxs("div",{className:"hidden md:block relative mb-4",children:[t.jsx("div",{className:`overflow-hidden transition-all duration-300 ${f?"max-h-0 opacity-0":"opacity-100"}`,children:t.jsx(tt,{searchQuery:_,onSearchChange:D,probabilityFilter:E,onProbabilityFilterChange:C,volumeFilter:m,onVolumeFilterChange:y,dateFilter:T,onDateFilterChange:q,platformFilter:S,onPlatformFilterChange:Q,categoryFilter:W,onCategoryFilterChange:ee,statusFilter:B,onStatusFilterChange:xe,marketTypeFilter:te,onMarketTypeFilterChange:pe,onResetFilters:()=>{D(""),C({type:"any",from:0,to:100}),y({preset:"1k",min:1e3,max:null}),q({preset:"any",startDate:null,endDate:null}),Q("all"),ee("all"),xe("all"),pe("all")}})}),t.jsx("div",{className:"flex justify-center mt-1",children:t.jsxs("button",{onClick:()=>u(!f),className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[t.jsx(kr,{className:"h-3 w-3"}),f?"Show Filters":"Hide Filters",f?t.jsx(bt,{className:"h-3 w-3"}):t.jsx(Nr,{className:"h-3 w-3"})]})})]}),t.jsx(rt,{className:"h-[600px] pr-4",children:o?t.jsx("div",{className:p==="grid"?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4":"space-y-3",children:Array.from({length:9}).map((l,g)=>t.jsx(st,{className:"h-48 w-full rounded-xl"},`skeleton-${g}`))}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:p==="grid"?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4":"space-y-3",children:oe.map(l=>V(l)?t.jsx(Tr,{event:l,sortBy:i,statusFilter:B},l.eventSlug):t.jsx(Cr,{market:l,onClick:()=>Gt(l)},l.id))}),Qt&&t.jsxs("div",{className:"mt-8 text-center p-8 bg-background border border-border rounded-xl",children:[t.jsx(at,{className:"h-10 w-10 text-muted-foreground mx-auto mb-3"}),t.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"Want to see more markets?"}),t.jsxs("p",{className:"text-muted-foreground mb-4",children:["Sign up for free to access all ",Z.length.toLocaleString(),"+ markets"]}),t.jsx(G,{onClick:ze,className:"bg-primary hover:bg-primary/90",children:"Sign Up Free"})]})]})})]}),t.jsxs(Je,{value:"leaderboard",className:"mt-0",children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsxs("div",{children:[t.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Top Traders"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:qe?"Loading...":`Showing top ${Te.length} of ${((Qe=ne==null?void 0:ne.totalCount)==null?void 0:Qe.toLocaleString())||"1,000"} traders`})]}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsxs(Ce,{value:ke,onValueChange:l=>{(l==="rank"||l==="pnl"||l==="volume")&&(Vt(l),We(l==="rank"?"asc":"desc"))},children:[t.jsx(Me,{className:"w-32",children:t.jsx(Pe,{})}),t.jsxs(Ie,{children:[t.jsx(X,{value:"rank",children:"Rank"}),t.jsx(X,{value:"pnl",children:"PnL"}),t.jsx(X,{value:"volume",children:"Volume"})]})]}),t.jsxs(Ce,{value:Ne,onValueChange:l=>We(l),children:[t.jsx(Me,{className:"w-28",children:t.jsx(Pe,{})}),t.jsxs(Ie,{children:[t.jsx(X,{value:"asc",children:"Ascending"}),t.jsx(X,{value:"desc",children:"Descending"})]})]})]})]}),t.jsx(Mr,{className:"bg-card border-border",children:t.jsx(Pr,{className:"p-0",children:t.jsx(rt,{className:"h-[600px]",children:qe?t.jsx("div",{className:"p-6 space-y-3",children:Array.from({length:10}).map((l,g)=>t.jsx(st,{className:"h-14 w-full"},`skeleton-${g}`))}):t.jsx("div",{className:"overflow-x-auto",children:t.jsxs(as,{children:[t.jsx(ns,{className:"sticky top-0 bg-card z-10",children:t.jsxs(ot,{className:"border-border hover:bg-transparent",children:[t.jsx(re,{className:"text-muted-foreground w-16",children:"Rank"}),t.jsx(re,{className:"text-muted-foreground",children:"Trader"}),t.jsx(re,{className:"text-muted-foreground text-right",children:"Volume"}),t.jsx(re,{className:"text-muted-foreground text-right",children:"PnL"}),t.jsx(re,{className:"text-muted-foreground text-right",children:"Open Positions"}),t.jsx(re,{className:"text-muted-foreground text-right",children:"Markets Traded"}),t.jsx(re,{className:"w-12"})]})}),t.jsx(os,{children:Te.map(l=>
6t.jsxs(ot,{className:"border-border cursor-pointer transition-colors hover:bg-muted/30",onClick:()=>Kt(l.proxyWallet),children:[t.jsx(se,{className:"font-medium",children:t.jsx("div",{className:"flex items-center justify-center w-10",children:pa(l.rank)})}),t.jsx(se,{children:t.jsxs("div",{className:"flex items-center gap-3",children:[l.profileImage?t.jsx("img",{src:l.profileImage,alt:l.userName,width:32,height:32,className:"w-8 h-8 rounded-full object-cover"}):t.jsx("div",{className:"w-8 h-8 rounded-full bg-primary/20 flex items-center justify-center",children:t.jsx("span",{className:"text-xs font-medium text-primary",children:l.userName.slice(0,2).toUpperCase()})}),t.jsxs("div",{children:[t.jsx("p",{className:"font-medium text-foreground",children:l.userName}),t.jsxs("p",{className:"text-xs text-muted-foreground",children:[l.proxyWallet.slice(0,6),"...",l.proxyWallet.slice(-4)]})]})]})}),t.jsx(se,{className:"text-right",children:t.jsx("span",{className:"font-mono text-foreground",children:ct(l.volume)})}),t.jsx(se,{className:"text-right",children:t.jsxs("div",{className:"flex items-center justify-end gap-1",children:[l.pnl>=0?t.jsx(ge,{className:"h-4 w-4 text-success"}):t.jsx(Ir,{className:"h-4 w-4 text-destructive"}),t.jsxs("span",{className:he("font-mono font-medium",l.pnl>=0?"text-success":"text-destructive"),children:[l.pnl>=0?"+":"",ct(l.pnl)]})]})}),t.jsx(se,{className:"text-right",children:t.jsx(be,{variant:"secondary",className:"font-mono",children:l.positionsCount??"—"})}),t.jsx(se,{className:"text-right",children:t.jsx(be,{variant:"outline",className:"font-mono",children:xa(l.marketsTraded)})}),t.jsx(se,{children:t.jsx(yt,{className:"h-4 w-4 text-muted-foreground"})})]},l.proxyWallet))})]})})})})}),Te.length>=Ae&&t.jsxs("div",{className:"mt-8 text-center p-8 bg-background border border-border rounded-xl",children:[t.jsx(at,{className:"h-10 w-10 text-muted-foreground mx-auto mb-3"}),t.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"Want to see more traders?"}),t.jsx("p",{className:"text-muted-foreground mb-4",children:"Sign up for free to access the full leaderboard with 1,000+ top traders"}),t.jsx(G,{onClick:ze,className:"bg-primary hover:bg-primary/90",children:"Sign Up Free"})]})]})]})})})}function ga(a={}){const{threshold:n=.1,rootMargin:e="0px",triggerOnce:s=!0}=a,r=h.useRef(null),[o,d]=h.useState(!1);return h.useEffect(()=>{const i=r.current;if(!i)return;const x=setTimeout(()=>{d(!0)},1500),p=new IntersectionObserver(([b])=>{b.isIntersecting?(clearTimeout(x),d(!0),s&&p.unobserve(i)):s||d(!1)},{threshold:n,rootMargin:e});return p.observe(i),()=>{clearTimeout(x),p.disconnect()}},[n,e,s]),{ref:r,isVisible:o}}const dt="(prefers-reduced-motion: reduce)";function Ye(){const[a,n]=h.useState(()=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(dt).matches);return h.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const e=window.matchMedia(dt),s=r=>n(r.matches);return e.addEventListener?e.addEventListener("change",s):e.addListener(s),()=>{e.removeEventListener?e.removeEventListener("change",s):e.removeListener(s)}},[]),a}function F({children:a,className:n,animation:e="fade-up",delay:s=0}){const{ref:r,isVisible:o}=ga(),d=Ye(),i={"fade-up":"translate-y-8 opacity-0","fade-in":"opacity-0","fade-left":"-translate-x-8 opacity-0","fade-right":"translate-x-8 opacity-0",scale:"scale-95 opacity-0"};return d?t.jsx("div",{ref:r,className:n,children:a}):t.jsx("div",{ref:r,className:he("transition-all duration-700 ease-out",o?"translate-y-0 translate-x-0 scale-100 opacity-100":i[e],n),style:{transitionDelay:`${s}ms`},children:a})}const ba=[{icon:ls,title:"AI-Powered Analysis",description:"Get intelligent insights and predictions powered by advanced AI models that analyze market trends and patterns.",cta:"Explore AI features",gradient:"from-violet-500/20 to-purple-500/20",iconColor:"text-violet-500"},{icon:ge,title:"Real-Time Probabilities",description:"Track live probability changes across Polymarket and Kalshi with instant updates and price movement alerts.",cta:"View live probabilities",gradient:"from-emerald-500/20 to-teal-500/20",iconColor:"text-success"}
6,{icon:Lr,title:"Trader Leaderboards",description:"Follow top-performing traders, analyze their strategies, and learn from the most successful market participants.",cta:"View leaderboard details",gradient:"from-blue-500/20 to-cyan-500/20",iconColor:"text-primary"},{icon:Fr,title:"Smart Alerts",description:"Set custom alerts for price movements, volume spikes, and market events to never miss an opportunity.",cta:"Set up smart alerts",gradient:"from-amber-500/20 to-orange-500/20",iconColor:"text-warning"},{icon:Rr,title:"Advanced Charts",description:"Visualize market data with professional-grade charts, historical trends, and comprehensive analytics.",cta:"Explore advanced charts",gradient:"from-rose-500/20 to-pink-500/20",iconColor:"text-hot"},{icon:Yr,title:"Research Tools",description:"Access curated news, event timelines, and resolution criteria to make informed trading decisions.",cta:"Explore research tools",gradient:"from-indigo-500/20 to-blue-500/20",iconColor:"text-primary"}];function ya(){return t.jsxs("section",{id:"features",className:"premium-section px-6 lg:px-12 lg:py-32 bg-gradient-to-b from-background via-muted/30 to-background py-[50px]",children:[t.jsx("div",{className:"absolute top-20 left-10 w-72 h-72 bg-primary/5 rounded-full blur-3xl"}),t.jsx("div",{className:"absolute bottom-20 right-10 w-96 h-96 bg-primary/5 rounded-full blur-3xl"}),t.jsxs("div",{className:"max-w-7xl mx-auto relative",children:[t.jsxs(F,{className:"text-center mb-20",children:[t.jsxs("span",{className:"premium-badge text-primary mb-6",children:[t.jsx("span",{className:"w-2 h-2 rounded-full bg-primary animate-pulse"}),"Features"]}),t.jsxs("h2",{className:"text-4xl lg:text-5xl font-bold text-foreground mt-4 mb-6 tracking-tight",children:["Everything You Need to",t.jsx("span",{className:"block mt-2 bg-gradient-to-r from-primary to-primary/70 bg-clip-text text-transparent",children:"Trade Smarter"})]}),t.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto text-lg lg:text-xl leading-relaxed",children:"Powerful tools and insights to help you make informed decisions in prediction markets."})]}),t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6 lg:gap-8",children:ba.map((a,n)=>t.jsx(F,{delay:n*100,children:t.jsxs("div",{className:"group premium-card p-8 h-full",children:[t.jsx("div",{className:`absolute inset-0 rounded-2xl bg-gradient-to-br ${a.gradient} opacity-0 group-hover:opacity-100 transition-opacity duration-500`}),t.jsxs("div",{className:"relative",children:[t.jsx("div",{className:`w-14 h-14 rounded-2xl bg-gradient-to-br ${a.gradient} flex items-center justify-center mb-6 group-hover:scale-110 transition-transform duration-300`,children:t.jsx(a.icon,{className:`w-7 h-7 ${a.iconColor}`})}),t.jsx("h3",{className:"text-xl font-semibold text-foreground mb-3 group-hover:text-primary transition-colors",children:a.title}),t.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:a.description}),t.jsxs("div",{className:"flex items-center gap-2 text-primary font-medium opacity-0 group-hover:opacity-100 translate-y-2 group-hover:translate-y-0 transition-all duration-300",children:[t.jsx("span",{className:"text-sm",children:a.cta}),t.jsx(is,{className:"w-4 h-4"})]})]})]})},a.title))})]})]})}const ut=[{number:"01",icon:Hr,title:"Discover Markets",description:"Browse thousands of prediction markets from Polymarket and Kalshi. Filter by category, probability, volume, and more."},{number:"02",icon:cs,title:"Analyze with AI",description:"Get AI-powered insights, probability analysis, and sentiment tracking. Understand what's driving market movements."},{number:"03",icon:ds,title:"Research & Prepare",description:"Access news sources, event timelines, and resolution criteria. Build conviction before placing any trades."},{number:"04",icon:gs,title:"Trade with Confidence",description:"Use our mock trading tools to practice risk-free, then take your strategy to Polymarket or Kalshi when you're ready."}];function wa(){return t.jsxs("section",{id:"how-it-works",className:"premium-section px-6 lg:px-12 py-16 lg:py-24 bg-gradient-to-b from-muted/50 to-background",children:[t.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(to_right,hsl(var(--border))_1px,transparent_1px),linear-gradient(to_bottom,hsl(var(--border))_1px,transparent_1px)] bg-[size:4rem_4rem] [mask-image:radial-gradient(ellipse_60%_50%_at_50%_0%,#000_70%,transparent_100%)] opacity-30"}),t.jsxs("div",{className:"max-w-7xl mx-auto relative",children:[t.jsxs(F,{className:"text-center mb-20",children:[t.jsxs("span",{className:"premium-badge text-primary mb-6",children:[t.jsx("span",{className:"w-2 h-2 rounded-full bg-primary animate-pulse"}),"How It Works"]}),t.jsxs("h2",{className:"text-4xl lg:text-5xl font-bold text-foreground mt-4 mb-6 tracking-tight",children:["Your Trading Workflow,",t.jsx("span",{className:"block mt-2 bg-gradient-to-r from-primary to-primary/70 bg-clip-text text-transparent",children:"Simplified"})]}),t.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto text-lg lg:text-xl leading-relaxed",children:"From discovery to execution, we streamline every step of your prediction market journey."})]}),t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:ut.map((a,n)=>t.jsx(F,{delay:n*150,animation:"fade-up",children:t.jsxs("div",{className:"relative h-full group",children:[n<ut.length-1&&t.jsx("div",{className:"hidden lg:block absolute top-16 left-full w-full h-px bg-gradient-to-r from-primary/40 via-primary/20 to-transparent -translate-x-4 z-0"}),t.jsxs("div",{className:"premium-card p-8 h-full relative z-10",children:[t.jsx("div",{className:"absolute -top-3 -right-3 w-20 h-20 rounded-full bg-gradient-to-br from-primary/5 to-transparent"}),t.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[t.jsx("span",{className:"text-5xl font-bold bg-gradient-to-b from-primary/30 to-primary/5 bg-clip-text text-transparent",children:a.number}),t.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-primary/20 to-primary/5 flex items-center justify-center group-hover:scale-110 transition-transform duration-300",children:t.jsx(a.icon,{className:"w-6 h-6 text-primary"})})]}),t.jsx("h3",{className:"text-xl font-semibold text-foreground mb-3 group-hover:text-primary transition-colors",children:a.title}),t.jsx("p",{className:"text-muted-foreground leading-relaxed",children:a.description})]})]})},a.number))})]})]})}const va=[{key:"free",name:"Free",icon:fe,period:"forever",description:"Explore prediction markets risk-free",features:["2 free credits (Mock Trade only)","200 Events only","100 Traders from leaderboard","20 Whale Hub entries"],cta:"Get Started Free",highlighted:!1,gradient:"from-muted/50 to-muted/30"},{key:"basic",name:"Basic",icon:Ee,period:"per month",description:"Essential tools for active traders",features:["{credits} credits per month","Unlimited Mock Trades","1 Mock trading profile","Full access to Whale Hub","5 total folders"],yearlySavings:"Save $16/year",cta:"Start Free Trial",highlighted:!1,gradient:"from-emerald-500/10 to-emerald-500/5"},{key:"pro",name:"Pro",icon:Sr,period:"per month",description:"Advanced tools for serious traders",features:["{credits} credits per month","Unlimited Mock Trades","2 Mock trading profiles","Threshold Markets page","20 total folders"],yearlySavings:"Save $34/year",cta:"Start Free Trial",highlighted:!0,gradient:"from-primary/10 to-primary/5"},{key:"elite",name:"Elite",icon:us,period:"per month",description:"Full access for power traders",features:["{credits} credits per month","Unlimited Mock Trades","3 Mock trading profiles","Statements page","50 total folders"],yearlySavings:"Save $70/year",cta:"Start Free Trial",highlighted:!1,gradient:"from-purple-500/10 to-purple-500/5"}];function ja(a,n){if(a==="free")return{display:"$0",suffix:"forever",strikethrough:""};const e=Le[a];return e?n?{display:`$${e.yearlyPrice}`,suffix:"/year",strikethrough:`$${e.monthlyPrice*12}/year`}:{display:`$${e.monthlyPrice}`,suffix:"/month",strikethrough:""}:{display:"$0",suffix:"",strikethrough:""}}function ka(a,n){if(a==="free")return"";const e=Le[a];return e?n?`${e.yearlyBonusCredits} credits per month (+${e.yearlyBonusCredits-e.credits} bonus)`:`${e.credits} credits per month`:""}function Na(){const[a,n]=h.useState(!1),{user:e}=Or(),{checkout:s,loading:r}=$r(),o=gt(),d=i=>{if(i==="free"){o("/auth?tab=signup");return}if(!e){o(`/auth?tab=signup&plan=${i}&billing=${a?"yearly":"monthly"}`);return}const x=Le[i];if(!x)return;const p=a?x.yearly_price_id:x.monthly_price_id;s(p,"subscription",x.credits,x.monthly_allowance)};return t.jsxs("section",{id:"pricing",className:"premium-section px-6 lg:px-12 py-16 lg:py-24 bg-background",children:[t.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] bg-gradient-radial from-primary/5 via-trans
6parent to-transparent rounded-full"}),t.jsxs("div",{className:"max-w-7xl mx-auto relative",children:[t.jsxs(F,{className:"text-center mb-20",children:[t.jsxs("span",{className:"premium-badge text-primary mb-6",children:[t.jsx("span",{className:"w-2 h-2 rounded-full bg-primary animate-pulse"}),"Pricing"]}),t.jsxs("h2",{className:"text-4xl lg:text-5xl font-bold text-foreground mt-4 mb-6 tracking-tight",children:["Simple, Transparent",t.jsx("span",{className:"block mt-2 bg-gradient-to-r from-primary to-primary/70 bg-clip-text text-transparent",children:"Pricing"})]}),t.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto text-lg lg:text-xl leading-relaxed mb-8",children:"Start free and upgrade as you grow. No hidden fees, cancel anytime."}),t.jsxs("div",{className:"flex items-center justify-center gap-4",children:[t.jsx("span",{className:`text-sm font-medium transition-colors ${a?"text-muted-foreground":"text-foreground"}`,children:"Monthly"}),t.jsx("button",{onClick:()=>n(!a),className:`relative inline-flex h-7 w-14 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${a?"bg-primary":"bg-muted"}`,children:t.jsx("span",{className:`pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform ${a?"translate-x-7":"translate-x-1"}`})}),t.jsx("span",{className:`text-sm font-medium transition-colors ${a?"text-foreground":"text-muted-foreground"}`,children:"Yearly"}),a&&t.jsx(be,{className:"bg-emerald-500/15 text-emerald-600 border-emerald-500/30 text-xs font-medium",children:"Save 15%"})]}),t.jsx("p",{className:"text-xs text-muted-foreground mt-3",children:"Credits reset monthly · No rollover · Same monthly usage cap"})]}),t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6 max-w-6xl mx-auto items-start",children:va.map((i,x)=>{const p=ja(i.key,a),b=r!==null&&i.key!=="free";return t.jsx(F,{delay:x*150,animation:"scale",children:t.jsxs("div",{className:`relative rounded-3xl p-8 transition-all duration-500 h-full flex flex-col ${i.highlighted?"bg-gradient-to-b from-primary/10 via-primary/5 to-background border-2 border-primary/30 shadow-[0_20px_60px_-15px_hsl(217_91%_60%/0.25)] scale-105 z-10":"premium-card"}`,children:[i.highlighted&&t.jsx("div",{className:"absolute -top-5 left-1/2 -translate-x-1/2",children:t.jsxs("span",{className:"inline-flex items-center gap-1.5 bg-gradient-to-r from-primary to-primary/80 text-primary-foreground text-xs font-medium px-4 py-1.5 rounded-full shadow-lg shadow-primary/25 whitespace-nowrap",children:[t.jsx(Ee,{className:"w-3.5 h-3.5"}),"Most Popular"]})}),t.jsxs("div",{className:"text-center mb-8",children:[t.jsx("div",{className:`w-14 h-14 rounded-2xl mx-auto mb-4 flex items-center justify-center bg-gradient-to-br ${i.gradient}`,children:t.jsx(i.icon,{className:`w-7 h-7 ${i.highlighted?"text-primary":"text-muted-foreground"}`})}),t.jsx("h3",{className:"text-xl font-semibold text-foreground mb-2",children:i.name}),t.jsxs("div",{className:"flex flex-col items-center gap-1 mb-3",children:[p.strikethrough&&t.jsx("span",{className:"text-lg text-muted-foreground line-through decoration-destructive decoration-2",children:p.strikethrough}),t.jsxs("div",{className:"flex items-baseline justify-center gap-1",children:[t.jsx("span",{className:"text-5xl font-bold text-foreground tracking-tight",children:p.display}),t.jsxs("span",{className:"text-muted-foreground",children:["/",p.suffix]})]}),a&&i.key!=="free"&&i.yearlySavings&&t.jsx("span",{className:"text-sm font-medium text-emerald-600",children:i.yearlySavings})]}),t.jsx("p",{className:"text-muted-foreground text-sm",children:i.description}),i.key!=="free"&&t.jsx(be,{className:"mt-3 bg-primary/15 text-primary border-primary/30 text-xs font-medium",children:"7-day free trial"})]}),t.jsx("ul",{className:"space-y-4 mb-8 flex-grow",children:i.features.map(f=>{const u=f.includes("{credits}")?ka(i.key,a):f;return t.jsxs("li",{className:"flex items-start gap-3",children:[t.jsx("div",{className:`w-5 h-5 rounded-full flex items-center justify-center shrink-0 mt-0.5 ${i.highlighted?"bg-primary/20":"bg-success/20"}`,children:t.jsx(Wr,{className:`w-3 h-3 ${i.highlighted?"text-primary":"text-success"}`})}),t.jsx("span",{className:"text-muted-foreground",children:u.includes("(+")?t.jsxs(t.Fragment,{children:[u.split("(")[0],t.jsxs("span",{className:"text-emerald-500 font-medium",children:["(",u.split("(")[1]]})]}):u})]},f)})}),t.jsx("div",{className:"mt-auto",children:t.jsx(G,{onClick:()=>d(i.key),disabled:b,className:`w-full rounded-full py-6 text-base font-medium transition-all duration-300 ${i.highlighted?"bg-primary hover:bg-primary/90 text-primary-foreground shadow-lg shadow-primary/25 hover:shadow-xl hover:shadow-
6primary/30 hover:-translate-y-0.5":"bg-muted hover:bg-muted/80 text-foreground hover:-translate-y-0.5"}`,children:b&&i.key!=="free"?t.jsxs(t.Fragment,{children:[t.jsx(qr,{className:"h-4 w-4 animate-spin mr-2"})," Processing..."]}):i.cta})})]})},i.name)})})]})]})}var z="Accordion",Ta=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[He,Ca,Ma]=Br(z),[ve,tn]=Vr(z,[Ma,kt]),Oe=kt(),Pt=$.forwardRef((a,n)=>{const{type:e,...s}=a,r=s,o=s;return t.jsx(He.Provider,{scope:a.__scopeAccordion,children:e==="multiple"?t.jsx(Da,{...o,ref:n}):t.jsx(Aa,{...r,ref:n})})});Pt.displayName=z;var[It,Pa]=ve(z),[At,Ia]=ve(z,{collapsible:!1}),Aa=$.forwardRef((a,n)=>{const{value:e,defaultValue:s,onValueChange:r=()=>{},collapsible:o=!1,...d}=a,[i,x]=vt({prop:e,defaultProp:s??"",onChange:r,caller:z});return t.jsx(It,{scope:a.__scopeAccordion,value:$.useMemo(()=>i?[i]:[],[i]),onItemOpen:x,onItemClose:$.useCallback(()=>o&&x(""),[o,x]),children:t.jsx(At,{scope:a.__scopeAccordion,collapsible:o,children:t.jsx(Dt,{...d,ref:n})})})}),Da=$.forwardRef((a,n)=>{const{value:e,defaultValue:s,onValueChange:r=()=>{},...o}=a,[d,i]=vt({prop:e,defaultProp:s??[],onChange:r,caller:z}),x=$.useCallback(b=>i((f=[])=>[...f,b]),[i]),p=$.useCallback(b=>i((f=[])=>f.filter(u=>u!==b)),[i]);return t.jsx(It,{scope:a.__scopeAccordion,value:d,onItemOpen:x,onItemClose:p,children:t.jsx(At,{scope:a.__scopeAccordion,collapsible:!0,children:t.jsx(Dt,{...o,ref:n})})})}),[_a,je]=ve(z),Dt=$.forwardRef((a,n)=>{const{__scopeAccordion:e,disabled:s,dir:r,orientation:o="vertical",...d}=a,i=$.useRef(null),x=zr(i,n),p=Ca(e),f=Qr(r)==="ltr",u=Gr(a.onKeyDown,v=>{var Q;if(!Ta.includes(v.key))return;const R=v.target,_=p().filter(W=>{var ee;return!((ee=W.ref.current)!=null&&ee.disabled)}),D=_.findIndex(W=>W.ref.current===R),E=_.length;if(D===-1)return;v.preventDefault();let C=D;const m=0,y=E-1,T=()=>{C=D+1,C>y&&(C=m)},q=()=>{C=D-1,C<m&&(C=y)};switch(v.key){case"Home":C=m;break;case"End":C=y;break;case"ArrowRight":o==="horizontal"&&(f?T():q());break;case"ArrowDown":o==="vertical"&&T();break;case"ArrowLeft":o==="horizontal"&&(f?q():T());break;case"ArrowUp":o==="vertical"&&q();break}const S=C%E;(Q=_[S].ref.current)==null||Q.focus()});return t.jsx(_a,{scope:e,disabled:s,direction:r,orientation:o,children:t.jsx(He.Slot,{scope:e,children:t.jsx(jt.div,{...d,"data-orientation":o,ref:x,onKeyDown:s?void 0:u})})})}),we="AccordionItem",[Ea,$e]=ve(we),_t=$.forwardRef((a,n)=>{const{__scopeAccordion:e,value:s,...r}=a,o=je(we,e),d=Pa(we,e),i=Oe(e),x=Kr(),p=s&&d.value.includes(s)||!1,b=o.disabled||a.disabled;return t.jsx(Ea,{scope:e,open:p,disabled:b,triggerId:x,children:t.jsx(ms,{"data-orientation":o.orientation,"data-state":Ht(p),...i,...r,ref:n,disabled:b,open:p,onOpenChange:f=>{f?d.onItemOpen(s):d.onItemClose(s)}})})});_t.displayName=we;var Et="AccordionHeader",Lt=$.forwardRef((a,n)=>{const{__scopeAccordion:e,...s}=a,r=je(z,e),o=$e(Et,e);return t.jsx(jt.h3,{"data-orientation":r.orientation,"data-state":Ht(o.open),"data-disabled":o.disabled?"":void 0,...s,ref:n})});Lt.displayName=Et;var _e="AccordionTrigger",Ft=$.forwardRef((a,n)=>{const{__scopeAccordion:e,...s}=a,r=je(z,e),o=$e(_e,e),d=Ia(_e,e),i=Oe(e);return t.jsx(He.ItemSlot,{scope:e,children:t.jsx(hs,{"aria-disabled":o.open&&!d.collapsible||void 0,"data-orientation":r.orientation,id:o.triggerId,...i,...s,ref:n})})});Ft.displayName=_e;var Rt="AccordionContent",Yt=$.forwardRef((a,n)=>{const{__scopeAccordion:e,...s}=a,r=je(z,e),o=$e(Rt,e),d=Oe(e);return t.jsx(xs,{role:"region","aria-labelledby":o.triggerId,"data-orientation":r.orientation,...d,...s,ref:n,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...a.style}})});Yt.displayName=Rt;function Ht(a){return a?"open":"closed"}var La=Pt,Fa=_t,Ra=Lt,Ot=Ft,$t=Yt;const Ya=La,Wt=h.forwardRef(({className:a,...n},e)=>t.jsx(Fa,{ref:e,className:he("border-b",a),...n}));Wt.displayName="AccordionItem";const qt=h.forwardRef(({className:a,children:n,...e},s)=>t.jsx(Ra,{className:"flex",children:t.jsxs(Ot,{ref:s,className:he("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",a),...e,children:[n,t.jsx(bt,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));
6qt.displayName=Ot.displayName;const St=h.forwardRef(({className:a,children:n,...e},s)=>t.jsx($t,{ref:s,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...e,children:t.jsx("div",{className:he("pb-4 pt-0",a),children:n})}));St.displayName=$t.displayName;const Bt=[{question:"What is Trade Wolf AI?",answer:"Trade Wolf AI is a prediction market intelligence platform that aggregates data from Polymarket and Kalshi. We provide AI-powered analysis, real-time probabilities, trader leaderboards, and research tools to help you make informed trading decisions."},{question:"Does Trade Wolf AI execute trades for me?",answer:"No. Trade Wolf AI is a research and analysis platform only. We help you discover opportunities, analyze markets, and prepare for trades — but all actual trading happens on the source platforms (Polymarket or Kalshi). You maintain full control over your trading decisions."},{question:"Which prediction markets do you support?",answer:"We currently support Polymarket and Kalshi, the two largest prediction market platforms. Our data includes thousands of active markets across politics, sports, crypto, science, and more."},{question:"How does the AI analysis work?",answer:"Our Wolf AI analyzes market data, news sentiment, historical patterns, and trading activity to provide insights about potential market movements. You can chat with Wolf AI to get answers about specific markets, compare probabilities, and understand what factors might influence outcomes."},{question:"Is there a free plan?",answer:"Yes! Our free plan gives you access to all live markets, basic probability tracking, the trader leaderboard, and market search features. Upgrade to Pro for AI analysis, custom alerts, and advanced research tools."},{question:"Can I track specific traders?",answer:"Absolutely. With our trader watchlist feature (available on Pro), you can follow top-performing traders, see their recent activity, and get notified when they make significant moves."}];function Ha(){return t.jsxs("section",{id:"faq",className:"premium-section px-6 lg:px-12 py-16 lg:py-24 bg-gradient-to-b from-muted/50 to-background",children:[t.jsx("div",{className:"absolute top-10 right-20 w-64 h-64 bg-primary/5 rounded-full blur-3xl"}),t.jsx("div",{className:"absolute bottom-10 left-20 w-80 h-80 bg-primary/5 rounded-full blur-3xl"}),t.jsxs("div",{className:"max-w-3xl mx-auto relative",children:[t.jsxs(F,{className:"text-center mb-16",children:[t.jsxs("span",{className:"premium-badge text-primary mb-6",children:[t.jsx(ps,{className:"w-4 h-4"}),"FAQ"]}),t.jsxs("h2",{className:"text-4xl lg:text-5xl font-bold text-foreground mt-4 mb-6 tracking-tight",children:["Frequently Asked",t.jsx("span",{className:"block mt-2 bg-gradient-to-r from-primary to-primary/70 bg-clip-text text-transparent",children:"Questions"})]}),t.jsx("p",{className:"text-muted-foreground text-lg lg:text-xl",children:"Everything you need to know about Trade Wolf AI."})]}),t.jsx(F,{delay:200,children:t.jsx(Ya,{type:"single",collapsible:!0,className:"space-y-4",children:Bt.map((a,n)=>t.jsxs(Wt,{value:`item-${n}`,className:"premium-card px-6 data-[state=open]:shadow-lg data-[state=open]:border-primary/20 overflow-hidden",children:[t.jsx(qt,{className:"text-left text-foreground font-medium hover:no-underline py-6 hover:text-primary transition-colors",children:a.question}),t.jsx(St,{className:"text-muted-foreground pb-6 leading-relaxed",children:a.answer})]},`faq-${n}`))})})]})]})}function Oa(){return t.jsx("section",{className:"px-6 lg:px-12 py-12 bg-muted/50",children:t.jsx("div",{className:"max-w-5xl mx-auto",children:t.jsxs("div",{className:"relative rounded-2xl border border-border bg-card backdrop-blur-sm p-8 lg:p-10",children:[t.jsx("div",{className:"absolute top-4 right-4",children:t.jsx(Ur,{className:"w-5 h-5 text-primary/60"})}),t.jsx("div",{className:"flex items-center gap-3 mb-6",children:t.jsx("span",{className:"text-xs tracking-[0.2em] uppercase text-muted-foreground",children:"Legal & Ethical Disclosure"})}),t.jsxs("p",{className:"text-sm leading-relaxed text-muted-foreground uppercase tracking-wide",children:[t.jsx("span",{className:"text-foreground font-medium",children:"Trade Wolf AI is an educational and analytical intelligence terminal."})," ","We provide probability estimates and market data analysis for prediction markets."," ",t.jsx("span",{className:"text-foreground font-bold",children:"Trade Wolf does not provide financial advice, investment recommendations, or trading strategies."})," ","We are not financial advisors, brokers, or dealers. All users are solely responsible for their own trading decisions and any losses incurred. Prediction markets are highly speculative and carry substantial risk. Past performance and AI analysis are not necessarily indicative of future results. By using this terminal, you agree that Trade Wolf AI is not liable for any financial damages resulting from the use of our data or AI analyses."]})]})})})}function mt(a=.5){const[n,e]=h.useState(0),s=Ye();return h.useEffect(()=>{if(s)return;const r=()=>{e(window.scrollY)};return window.addEventListener("scroll",r,{passive:!0}),()=>window.removeEventListener("scroll",r)},[s]),s?0:n*a}const $a=({text:a,speed:n=50,deleteSpeed:e=30,pauseDuration:s=2e3,showCursor:r=!0,cursorChar:o="|",className:d=""})=>{const[i,x]=h.useState(a[0]??""),[p,b]=h.useState(0),[f,u]=h.useState(!1),[v,R]=h.useState(!1),_=Ye(),D=a[p],E=h.useCallback(()=>{v||(f?i.length>0?x(i.slice(0,-1)):(u(!1),b(C=>(C+1)%a.length)):i.length<D.length?x(D.slice(0,i.length+1)):(R(!0),setTimeout(()=>{R(!1),u(!0)},s)))},[i,D,f,v,s,a.length]);return h.useEffect(()=>{if(_)return;const C=setTimeout(E,v?s:f?e:n);return()=>clearTimeout(C)},[E,v,f,e,n,s,_]),_?t.jsx("span",{className:d,children:a[0]??""}):t.jsxs("span",{className:d,children:[i,r&&t.jsx("span",{className:"animate-pulse ml-0.5 text-primary",children:o})]})};function Wa(){const a=h.useRef(null);return h.useEffect(()=>{const n=a.current;if(!n)return;const e=n.getContext("2d");if(!e)return;let s,r=[];const o=()=>{const b=n.parentElement;b&&(n.width=b.offsetWidth,n.height=b.offsetHeight)},d=()=>{r=[];const b=Math.min(35,Math.floor(n.width/35));for(let f=0;f<b;f++)r.push({x:Math.random()*n.width,y:Math.random()*n.height,size:Math.random()*2.5+1,speedX:(Math.random()-.5)*.25,speedY:-Math.random()*.35-.08,hue:Math.random()>.5?217:260,alpha:Math.random()*.2+.1})},i=(b,f,u,v,R,_)=>{e.beginPath(),e.moveTo(0,n.height);for(let E=0;E<=n.width;E+=5){const C=f+Math.sin(E*v+b)*u;e.lineTo(E,C)}e.lineTo(n.width,n.height),e.closePath();const D=e.createLinearGradient(0,f-u,0,n.height);D.addColorStop(0,`hsla(${_}, 70%, 55%, ${R})`),D.addColorStop(1,`hsla(${_}, 70%, 55%, 0)`),e.fillStyle=D,e.fill()},x=b=>{e.clearRect(0,0,n.width,n.height);const f=b*.001;i(f*.5,n.height*.75,12,.006,.012,217),i(f*.7,n.height*.82,8,.008,.01,260),i(f*.3,n.height*.88,6,.01,.008,217),r.forEach(u=>{u.x+=u.speedX,u.y+=u.speedY,u.x+=Math.sin(f+u.y*.01)*.15,u.y<-10&&(u.y=n.height+10,u.x=Math.random()*n.width),u.x<-10&&(u.x=n.width+10),u.x>n.width+10&&(u.x=-10);const v=e.createRadialGradient(u.x,u.y,0,u.x,u.y,u.size*4);v.addColorStop(0,`hsla(${u.hue}, 70%, 55%, ${u.alpha})`),v.addColorStop(.4,`hsla(${u.hue}, 70%, 50%, ${u.alpha*.4})`),v.addColorStop(1,`hsla(${u.hue}, 70%, 50%, 0)`),e.beginPath(),e.arc(u.x,u.y,u.size*4,0,Math.PI*2),e.fillStyle=v,e.fill(),e.beginPath(),e.arc(u.x,u.y,u.size,0,Math.PI*2),e.fillStyle=`hsla(${u.hue}, 70%, 65%, ${u.alpha+.2})`,e.fill()}),s=requestAnimationFrame(x)};o(),d(),s=requestAnimationFrame(x);const p=()=>{o(),d()};return window.addEventListener("resize",p),()=>{cancelAnimationFrame(s),window.removeEventListener("resize",p)}},[]),t.jsx("canvas",{ref:a,className:"absolute inset-0 pointer-events-none",style:{opacity:.3}})}const qa=()=>{const[a,n]=h.useState(null),[e,s]=h.useState(!0);return h.useEffect(()=>{const r=async()=>{var d,i,x;try{const{data:p,error:b}=await wt.functions.invoke("get-platform-stats");if(b)throw b;if(p){const f=((d=p.totals)==null?void 0:d.totalMarkets)||((i=p.stats)==null?void 0:i.reduce((u,v)=>u+(v.marketCount||0),0))||0;n({totalMarkets:f,totalVolume:((x=p.totals)==null?void 0:x.totalVolume)||0})}}catch{}finally{s(!1)}};r();const o=setInterval(r,12e4);return()=>clearInterval(o)},[]),e?t.jsxs("div",{className:"inline-flex items-center gap-2 bg-card/80 backdrop-blur-sm rounded-full px-4 py-2 text-sm border border-border",children:[t.jsx("span",{className:"w-2 h-2 rounded-full bg-muted-foreground
6/60 animate-pulse"}),t.jsx("span",{className:"text-muted-foreground",children:"Loading stats..."})]}):a?t.jsxs("div",{className:"inline-flex items-center gap-2 bg-card/80 backdrop-blur-sm rounded-full px-4 py-2 text-sm border border-border shadow-lg",children:[t.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-500 animate-pulse"}),t.jsxs("span",{className:"text-muted-foreground",children:[t.jsx("span",{className:"text-emerald-400 font-medium",children:a.totalMarkets.toLocaleString()})," ","markets tracked"]}),t.jsx("span",{className:"text-muted-foreground/40",children:"•"}),t.jsxs("span",{className:"text-muted-foreground",children:[t.jsx("span",{className:"text-emerald-400 font-medium",children:Xr(a.totalVolume)})," ","monitored"]})]}):null},Sa=["AI Intelligence for Smarter Prediction Trades","Analyze Kalshi & Polymarket in Real-Time","Track Whale Traders & Follow the Smart Money","Get Smart Alerts When Markets Move","Trade Smarter with AI-Powered Insights"],rn=()=>{const a=mt(.15),n=mt(.25);return t.jsxs("div",{className:"min-h-screen bg-background",children:[t.jsxs(Zr,{children:[t.jsx("title",{children:"TradeWolf — AI Prediction Market Intelligence"}),t.jsx("meta",{name:"description",content:"Analyze Kalshi & Polymarket with real-time probabilities, AI insights, whale tracking, and smart trade preparation — all in one platform."}),t.jsx("link",{rel:"preload",as:"image",href:lt,fetchPriority:"high"}),t.jsx("meta",{property:"og:title",content:"TradeWolf - AI Prediction Market Intelligence"}),t.jsx("meta",{property:"og:description",content:"Track whale traders, get AI-powered insights, and analyze Polymarket & Kalshi prediction markets in real-time."}),t.jsx("meta",{property:"og:url",content:"https://tradewolf.ai"}),t.jsx("meta",{property:"og:image",content:"https://tradewolf.ai/logo.png"}),t.jsx("meta",{name:"twitter:title",content:"TradeWolf - AI Prediction Market Intelligence"}),t.jsx("meta",{name:"twitter:description",content:"Track whale traders, get AI-powered insights, and analyze Polymarket & Kalshi prediction markets in real-time."}),t.jsx("link",{rel:"canonical",href:"https://tradewolf.ai"}),t.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:Bt.map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}))})})]}),t.jsx(Jr,{}),t.jsxs("main",{children:[t.jsxs("section",{className:"landing-hero relative px-6 lg:px-12 py-16 lg:py-24",children:[t.jsx(Wa,{}),t.jsxs("div",{className:"absolute inset-0 -z-10 overflow-hidden pointer-events-none",children:[t.jsx("div",{className:"absolute -top-20 -right-20 w-[500px] h-[500px] bg-gradient-radial from-primary/10 via-primary/5 to-transparent rounded-full blur-3xl",style:{transform:`translateY(${a}px) translateX(${-a*.5}px)`}}),t.jsx("div",{className:"absolute -bottom-32 -left-20 w-[400px] h-[400px] bg-gradient-radial from-primary/10 via-primary/5 to-transparent rounded-full blur-3xl",style:{transform:`translateY(${-n}px) translateX(${n*.3}px)`}})]}),t.jsxs("div",{className:"max-w-7xl mx-auto grid lg:grid-cols-2 gap-12 items-center",children:[t.jsxs("div",{className:"space-y-8",children:[t.jsx(F,{animation:"fade-up",delay:0,children:t.jsxs("div",{className:"landing-badge-premium",children:[t.jsx(fe,{className:"w-4 h-4 text-primary"}),"AI-Powered Trading Intelligence"]})}),t.jsx(F,{animation:"fade-up",delay:100,children:t.jsx("h1",{className:"text-4xl lg:text-5xl xl:text-6xl font-bold text-foreground leading-tight min-h-[3.5em] lg:min-h-[2.5em]",children:t.jsx($a,{text:Sa,speed:30,deleteSpeed:15,pauseDuration:2e3,showCursor:!0})})}),t.jsx(F,{animation:"fade-up",delay:200,children:t.jsx("p",{className:"text-lg text-muted-foreground max-w-lg",children:"Analyze Kalshi & Polymarket with real-time probabilities, AI insights, and smart trade preparation — all in one platform."})}),t.jsx(F,{animation:"fade-up",delay:300,children:t.jsxs("div",{className:"flex flex-wrap gap-4",children:[t.jsx(ce,{to:"/markets",children:t.jsx("button",{className:"landing-cta-primary",children:"Explore Live Markets"})}),t.jsx(ce,{to:"/auth?tab=signup",children:t.jsx("button",{className:"landing-cta-secondary",children:"Create Free Account"})})]})}),t.jsx(F,{animation:"fade-up",delay:400,children:t.jsxs("div",{className:"flex items-center gap-6",children:[t.jsxs("div",{className:"landing-feature-badge",children:[t.jsx(ge,{className:"w-4 h-4 text-success"}),"Track Whales"]}),t.jsxs("div",{className:"landing-feature-badge",children:[t.jsx(ge,{className:"w-4 h-4 text-primary"}),"Real-Time Data"]})]})})]}),t.jsx(F,{animation:"fade-left",delay:200,children:t.jsx("div",{className:"flex justify-center lg:justify-end",children:t.jsx("img",{src:lt,alt:"Trade Wolf AI - Best Trades from Kalshi and Polymarket",width:1024,height:1024,fetchPriority:"high",decoding:"async",className:"w-full max-w-md lg:max-w-lg xl:max-w-xl h-auto object-contain"})})})]})]}),t.jsxs(F,{className:"py-16 relative overflow-hidden",children:[t.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-muted/30 to-transparent"}),t.jsxs("div",{className:"max-w-5xl mx-auto px-6 text-center relative z-10",children:[t.jsx("p",{className:"text-xs text-muted-foreground uppercase tracking-[0.2em] mb-8 font-medium",children:"Powered by industry leaders"}),t.jsx("div",{className:"flex flex-wrap items-center justify-center gap-4 md:gap-6",children:[{icon:t.jsx(es,{className:"w-5 h-5"}),label:"Supabase",color:"from-emerald-500/20 to-emerald-500/5 hover:from-emerald-500/30 hover:to-emerald-500/10 border-emerald-500/20 hover:border-emerald-500/40"},{icon:t.jsx("img",{src:ts,alt:"Polymarket prediction market",width:20,height:20,className:"w-5 h-5 object-contain"}),label:"Polymarket API",color:"from-blue-500/20 to-blue-500/5 hover:from-blue-500/30 hover:to-blue-500/10 border-blue-500/20 hover:border-blue-500/40"},{icon:t.jsx("img",{src:rs,alt:"Kalshi prediction market",width:20,height:20,className:"w-5 h-5 object-contain"}),label:"Kalshi API",color:"from-orange-500/20 to-orange-500/5 hover:from-orange-500/30 hover:to-orange-500/10 border-orange-500/20 hover:border-orange-500/40"},{icon:t.jsx(Ee,{className:"w-5 h-5"}),label:"Google Gemini",color:"from-purple-500/20 to-purple-500/5 hover:from-purple-500/30 hover:to-purple-500/10 border-purple-500/20 hover:border-purple-500/40"},{icon:t.jsx(ss,{className:"w-5 h-5"}),label:"Firecrawl",color:"from-red-500/20 to-red-500/5 hover:from-red-500/30 hover:to-red-500/10 border-red-500/20 hover:border-red-500/40"}].map(e=>t.jsxs("div",{className:`group flex items-center gap-2.5 px-5 py-2.5 rounded-full bg-gradient-to-r ${e.color} border backdrop-blur-sm transition-all duration-300 hover:scale-105 hover:shadow-lg cursor-default`,children:[t.jsx("span",{className:"text-foreground group-hover:text-foreground transition-colors",children:e.icon}),t.jsx("span",{className:"text-sm font-medium text-foreground group-hover:text-foreground transition-colors",children:e.label})]},e.label))})]})]}),t.jsx("div",{className:"h-px bg-gradient-to-r from-transparent via-border to-transparent shadow-sm"}),t.jsx("div",{className:"flex justify-center pt-6 pb-3 bg-background",children:t.jsx(qa,{})}),t.jsx("div",{id:"markets",className:"scroll-mt-24",children:t.jsx(fa,{})}),t.jsx(F,{className:"flex justify-center pt-8 pb-16 bg-background",children:t.jsxs(ce,{to:"/markets",className:"inline-flex items-center gap-2 bg-card backdrop-blur-sm rounded-full px-6 py-3 text-sm text-primary border border-primary/20 hover:bg-primary hover:text-primary-foreground transition-colors group",children:[t.jsx(fe,{className:"w-4 h-4"}),"Explore All Live Markets",t.jsx(yt,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})}),t.jsx(ya,{}),t.jsx(wa,{}),t.jsx(Na,{}),t.jsx(Ha,{}),t.jsx(F,{children:t.jsxs("section",{className:"relative px-6 lg:px-12 py-24 lg:py-32 overflow-hidden",children:[t.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/95 via-primary to-primary/90 dark:from-primary/20 dark:via-primary/15 dark:to-background"}),t.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_top_right,_var(--tw-gradient-stops))] from-primary-foreground
6/10 via-transparent to-transparent dark:from-primary/10 dark:via-transparent dark:to-transparent"}),t.jsx("div",{className:"absolute top-10 left-10 w-64 h-64 bg-primary-foreground/5 dark:bg-primary/10 rounded-full blur-3xl"}),t.jsx("div",{className:"absolute bottom-10 right-10 w-96 h-96 bg-primary-foreground/5 dark:bg-primary/10 rounded-full blur-3xl"}),t.jsxs("div",{className:"max-w-4xl mx-auto text-center relative",children:[t.jsxs("span",{className:"inline-flex items-center gap-2 bg-primary-foreground/10 dark:bg-primary/20 backdrop-blur-sm border border-primary-foreground/20 dark:border-primary/30 rounded-full px-4 py-2 text-sm text-primary-foreground dark:text-foreground mb-8",children:[t.jsx(fe,{className:"w-4 h-4"}),"Start for free today"]}),t.jsxs("h2",{className:"text-4xl lg:text-5xl xl:text-6xl font-bold text-primary-foreground dark:text-foreground mb-6 tracking-tight",children:["Ready to Trade",t.jsx("span",{className:"block mt-2",children:"Smarter?"})]}),t.jsx("p",{className:"text-primary-foreground/90 dark:text-muted-foreground text-lg lg:text-xl mb-10 max-w-2xl mx-auto leading-relaxed",children:"Join thousands of traders using AI-powered insights to navigate prediction markets with confidence."}),t.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[t.jsx(ce,{to:"/auth?tab=signup",children:t.jsx(G,{className:"bg-primary dark:bg-primary hover:bg-primary/90 text-primary-foreground rounded-full px-10 py-7 text-base font-semibold shadow-2xl shadow-foreground/20 hover:-translate-y-1 transition-all duration-300",children:"Get Started Free"})}),t.jsx(ce,{to:"/markets",children:t.jsx(G,{variant:"outline",className:"border-primary-foreground/30 dark:border-border bg-primary-foreground/5 dark:bg-card/50 backdrop-blur-sm text-primary-foreground dark:text-foreground hover:bg-primary-foreground/10 dark:hover:bg-card/80 rounded-full px-10 py-7 text-base font-medium hover:-translate-y-1 transition-all duration-300",children:"Explore Markets"})})]})]})]})})]}),t.jsx(Oa,{}),t.jsx(fs,{}),t.jsx("div",{className:"fixed bottom-0 left-0 right-0 p-4 bg-gradient-to-t from-background via-background to-background/80 border-t border-border sm:hidden z-50",children:t.jsx(ce,{to:"/auth?tab=signup",className:"block",children:t.jsx(G,{className:"landing-cta-primary w-full py-3 text-base font-semibold",children:"Get Started Free"})})})]})};export{rn as default};

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.