PageSourceSearch

https://trade.zipmex.com/_next/static/chunks/app/perps/layout-fda69f934c042ff8.js

js zipmex.com collected 2026-09-28 06:41:56 UTC 29,515 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9052],{23548:(e,t,r)=>{"use strict";r.d(t,{u:()=>a,y:()=>o});var n=r(91386);let s=["wallet_connect","rewards_login","deposit_open","first_trade","trade","predict_claim","referral_visit","session_start","page_view","wallet_modal_open","email_login_start","email_login_done","trade_press","sign_request","tx_sent","perps_enable_press","perps_enable_done","rewards_activate_press"];function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{let r=window.gtag;r&&r("event",e,t),function(e,t){if(!s.includes(e))return;let r=t.vertical,a="swap"===r||"perp"===r||"predict"===r||"gamba"===r||"terminal"===r?r:void 0;(0,n.reportFunnel)(e,{vertical:a})}(e,t)}catch(e){}}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{let r="zx_first_trade_done";localStorage.getItem(r)||(localStorage.setItem(r,"1"),a("first_trade",{vertical:e,...t}))}catch(e){}a("trade",{vertical:e,...t})}},23933:(e,t,r)=>{"use strict";r.d(t,{q:()=>function e(t){return null==t||"boolean"==typeof t?"":"string"==typeof t||"number"==typeof t?String(t):Array.isArray(t)?t.map(e).join(""):n.isValidElement(t)?e(t.props.children):""}});var n=r(13741)},29334:(e,t,r)=>{"use strict";r.d(t,{b:()=>i,v:()=>l});var n=r(13741);let s=[],a={autoConnect:!1,connecting:!1,connected:!1,disconnecting:!1,select(){o("call","select")},connect:()=>Promise.reject(o("call","connect")),disconnect:()=>Promise.reject(o("call","disconnect")),sendTransaction:()=>Promise.reject(o("call","sendTransaction")),signTransaction:()=>Promise.reject(o("call","signTransaction")),signAllTransactions:()=>Promise.reject(o("call","signAllTransactions")),signMessage:()=>Promise.reject(o("call","signMessage")),signIn:()=>Promise.reject(o("call","signIn"))};function o(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(a,"wallets",{get:()=>(o("read","wallets"),s)}),Object.defineProperty(a,"wallet",{get:()=>(o("read","wallet"),null)}),Object.defineProperty(a,"publicKey",{get:()=>(o("read","publicKey"),null)});let i=(0,n.createContext)(a);function l(){return(0,n.useContext)(i)}},32865:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(80159).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},36387:(e,t,r)=>{"use strict";r.d(t,{dj:()=>p,oR:()=>P});var n=r(13741),s=r(91386),a=r(23933),o=r(78191);let i=0,l=new Map,c=(e,t)=>{if(l.has(e))return;let r=setTimeout(()=>{l.delete(e),_({type:"REMOVE_TOAST",toastId:e})},t||3e3);l.set(e,r)},d=[],u={toasts:[]};function _(e){u=((e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,3)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;if(r){let t=e.toasts.find(e=>e.id===r);c(r,null==t?void 0:t.duration)}else e.toasts.forEach(e=>{c(e.id,e.duration)});return{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}})(u,e),d.forEach(e=>{e(u)})}function P(e){let{...t}=e,r=(i=(i+1)%Number.MAX_VALUE).toString();if("warning"===t.variant)try{let e="string"==typeof t.title?t.title:"warn_toast";(0,s.reportFriction)("warn_toast",e,{severity:"warn",meta:{desc:(0,a.q)(t.description).slice(0,300)}})}catch(e){}if("destructive"===t.variant)try{let e="string"==typeof t.title?t.title:"error_toast",r=(0,a.q)(t.description).slice(0,300),n=(0,o.Lj)("".concat(e," ").concat(r))?"info":"error";(0,s.reportFriction)("error_toast",e,{severity:n,meta:{desc:r}})}catch(e){}let n=()=>_({type:"DISMISS_TOAST",toastId:r});return _({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||n()}}}),{id:r,dismiss:n,update:e=>_({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function p(){let[e,t]=n.useState(u);return n.useEffect(()=>(d.push(t),()=>{let e=d.indexOf(t);e>-1&&d.splice(e,1)}),[e]),{...e,toast:P,dismiss:e=>_({type:"DISMISS_TOAST",toastId:e})}}},36826:(e,t,r)=>{"use strict";r.d(t,{OrderlyErrorBoundary:()=>o});var n=r(42073),s=r(13741),a=r(91386);class o extends s.Component{static getDerivedStateFromError(e){let t=(null==e?void 0:e.message)||(null==e?void 0:e.toString())||"";return["WalletDisconnectedError","disconnected port","postMessage","service worker"].some(e=>t.toLowerCase().includes(e.toLowerCase()))?(console.info("Wallet disconnection handled:",t),{hasError:!1,error:null}):{hasError:!0,error:e}}componentDidCatch(e,t){let r=(null==e?void 0:e.message)||(null==e?void 0:e.toString())||"";["WalletDisconnectedError","disconnected port","postMessage","service worker"].some(e=>r.toLowerCase().includes(e.toLowerCase()))||(console.error("Orderly Error Boundary caught an error:",e,t),(0,a.reportReactError)(e,t.componentStack,{vertical:"perp"}))}render(){return this.state.hasError?this.props.fallback||(0,n.jsx)("div",{className:"flex items-center justify-center min-h-screen p-4",children:(0,n.jsxs)("div",{className:"text-center max-w-md",children:[(0,n.jsx)("h2",{className:"text-lg font-semibold text-[var(--c-red)] mb-2",children:"Something went wrong"}),(0,n.jsx)("p",{className:"text-[var(--c-text-3)] mb-4",children:"There was an error loading the trading interface. Please refresh the page."}),(0,n.jsx)("button",{onClick:()=>window.location.reload(),className:"px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-lg transition-colors",children:"Refresh Page"})]})}):this.props.children}constructor(e){super(e),this.state={hasError:!1,error:null}}}},39868:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(80159).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},41831:(e,t,r)=>{"use strict";r.d(t,{E:()=>s,w:()=>a});var n=r(13741);let s=(0,n.createContext)({});function a(){return(0,n.useContext)(s)}},43195:(e,t,r)=>{"use strict";r.d(t,{F7A:()=>n.F7A});var n=r(93568)},64775:(e,t,r)=>{"use strict";r.d(t,{B:()=>i,x:()=>o});var n=r(42073),s=r(13741);let a=(0,s.createContext)({visible:!1,setVisible:()=>{}}),o=()=>(0,s.useContext)(a),i=e=>{let{children:t}
1=e,[r,o]=(0,s.useState)(!1),i=(0,s.useMemo)(()=>({visible:r,setVisible:o}),[r]);return(0,n.jsx)(a.Provider,{value:i,children:t})}},67419:(e,t,r)=>{"use strict";r.d(t,{OrderlyProvider:()=>R});var n=r(42073);(0,r(33410).p8)({"connector.createAccount":"Enable Perps Trading","connector.createAccount.description":"Sign a free off-chain message to connect this wallet to ZIPMEX Perps. No gas, no funds move.","connector.enableTrading":"Enable 1-Click Trading","connector.enableTrading.description":"Sign once more so this device can place orders without a wallet popup each time.","connector.expired":"Your wallet will open — approve the signature request. It is free, off-chain, and moves no funds.","connector.trade.createAccount.tooltip":"One free signature unlocks 1-click trading — no gas, no transaction.","connector.trade.enableTrading.tooltip":"One free signature unlocks 1-click trading — no gas, no transaction.","connector.createAccountWithLedger":"Enable with Ledger","connector.enableTradingWithLedger":"Enable with Ledger","positions.column.unrealPnl.tooltip":"Unrealized profit or loss on this position, priced on the basis selected below. Its percentage is the return on this position's initial margin — size \xd7 open price \xd7 IMR. The account summary uses a different base: total unrealized PnL over account value excluding that PnL. Both are correct.","positions.column.margin.tooltip":'Isolated margin locked in the position — size \xd7 open price \xd7 IMR. A cross position draws on one account-wide margin pool instead of locking its own, so there is no per-position figure and this stays "--".',"portfolio.apiKey.column.permissionType":"Permissions","portfolio.apiKey.column.restrictedIP":"IP","portfolio.apiKey.column.expirationDate":"Expires","markets.symbolInfoBar.24hVolume.tooltip":"24-hour trading volume across the shared order book.","orderEntry.permissionlessNotice.content2":"It is not created, reviewed, or endorsed by ZIPMEX. Such markets may involve low liquidity, high volatility, incomplete information, or increased liquidation risk.","transfer.deposit.estGasFee.tooltip":"Estimated gas fee includes the transaction cost on this chain and the destination chain's fee for the ZIPMEX Perps deposit. Keep a little extra to be sure it is covered."});var s=r(13741),a=r(29334),o=r(41831),i=r(93568),l=r(55481),c=r(26853);let d={...JSON.parse('{"PERP_1000BONK_USDC":"0.000001","PERP_1000PEPE_USDC":"1e-7","PERP_AAOI_USDC_mythos":"0.01","PERP_AAPL_USDC_mythos":"0.01","PERP_AAVE_USDC":"0.01","PERP_ADA_USDC":"0.0001","PERP_ALLO_USDC_mythos":"0.0001","PERP_ALPIX_USDC_alpix":"0.01","PERP_AMD_USDC_mythos":"0.01","PERP_AMZN_USDC_mythos":"0.01","PERP_APT_USDC":"0.0001","PERP_ARB_USDC":"0.0001","PERP_ASTER_USDC":"0.0001","PERP_AVAX_USDC":"0.001","PERP_BABA_USDC_mythos":"0.01","PERP_BASED_USDC":"0.00001","PERP_BERA_USDC":"0.0001","PERP_BIO_USDC":"0.00001","PERP_BNB_USDC":"0.01","PERP_BTC_USDC":"0.1","PERP_BVIV_USDC_mythos":"0.001","PERP_CAKE_USDC":"0.0001","PERP_CAP_USDC_mythos":"0.000001","PERP_CBRS_USDC_mythos":"0.01","PERP_CL_USDC":"0.01","PERP_COIN_USDC_mythos":"0.01","PERP_COPPER_USDC_mythos":"0.001","PERP_CRCL_USDC_mythos":"0.01","PERP_CRV_USDC":"0.0001","PERP_DELL_USDC_mythos":"0.01","PERP_DEXE_USDC_mythos":"0.001","PERP_DODOX_USDC_mythos":"0.000001","PERP_DOGE_USDC":"0.00001","PERP_DOT_USDC":"0.001","PERP_DRAM_USDC_mythos":"0.01","PERP_EDGE_USDC":"0.0001","PERP_EIGEN_USDC_mythos":"0.0001","PERP_ENA_USDC":"0.00001","PERP_ETH_USDC":"0.01","PERP_ETHFI_USDC":"0.0001","PERP_EURUSD_USDC":"0.0001","PERP_EWY_USDC_mythos":"0.01","PERP_FARTCOIN_USDC":"0.0001","PERP_FASTX_USDC_fastx":"0.01","PERP_FET_USDC":"0.0001","PERP_FIL_USDC_mythos":"0.00001","PERP_GLW_USDC_mythos":"0.01","PERP_GOOGL_USDC":"0.01","PERP_GRAM_USDC_mythos":"0.001","PERP_HBAR_USDC":"0.00001","PERP_HOOD_USDC_mythos":"0.01","PERP_HYPE_USDC":"0.001","PERP_INJ_USDC":"0.001","PERP_INTC_USDC_mythos":"0.01","PERP_JTO_USDC_mythos":"0.0001","PERP_JUP_USDC":"0.0001","PERP_KAITO_USDC_mythos":"0.00001","PERP_LINK_USDC":"0.001","PERP_LIT_USDC":"0.0001","PERP_LITE_USDC_mythos":"0.01","PERP_LTC_USDC":"0.01","PERP_M_USDC":"0.0001","PERP_MARSCOIN_USDC_mythos":"
10.000001","PERP_MERL_USDC":"0.00001","PERP_META_USDC_mythos":"0.01","PERP_MNT_USDC":"0.0001","PERP_MON_USDC":"0.00001","PERP_MRVL_USDC_mythos":"0.01","PERP_MSFT_USDC_mythos":"0.01","PERP_MSTR_USDC_mythos":"0.01","PERP_MU_USDC_mythos":"0.01","PERP_NAS100_USDC":"0.1","PERP_NATGAS_USDC_mythos":"0.01","PERP_NBIS_USDC_mythos":"0.01","PERP_NEAR_USDC":"0.0001","PERP_NVDA_USDC":"0.01","PERP_ONDO_USDC":"0.0001","PERP_OP_USDC":"0.0001","PERP_OPN_USDC_mythos":"0.0001","PERP_ORCL_USDC_mythos":"0.01","PERP_ORDER_USDC":"0.00001","PERP_PAXG_USDC_mythos":"0.1","PERP_PENDLE_USDC":"0.0001","PERP_PENGU_USDC":"0.000001","PERP_POL_USDC":"0.00001","PERP_PONS_USDC_mythos":"0.00001","PERP_PUMP_USDC":"0.000001","PERP_PYTH_USDC_mythos":"0.000001","PERP_QQQ_USDC_mythos":"0.01","PERP_RAY_USDC":"0.0001","PERP_RE_USDC_mythos":"0.0001","PERP_S_USDC":"0.00001","PERP_SAMSUNG_USDC_mythos":"0.01","PERP_SEI_USDC":"0.00001","PERP_SKHY_USDC_mythos":"0.01","PERP_SKHYNIX_USDC_mythos":"0.01","PERP_SKY_USDC_mythos":"0.000001","PERP_SNDK_USDC_mythos":"0.01","PERP_SNXX_USDC_mythos":"0.01","PERP_SOL_USDC":"0.001","PERP_SOXL_USDC_mythos":"0.01","PERP_SPCX_USDC_mythos":"0.01","PERP_SPX_USDC":"0.0001","PERP_SPX500_USDC":"0.01","PERP_SPY_USDC_mythos":"0.01","PERP_SUI_USDC":"0.0001","PERP_SYN_USDC_mythos":"0.00001","PERP_TAO_USDC":"0.01","PERP_TIA_USDC":"0.0001","PERP_TQQQ_USDC_mythos":"0.01","PERP_TRUMP_USDC":"0.001","PERP_TRX_USDC":"0.00001","PERP_TSLA_USDC":"0.01","PERP_TSM_USDC_mythos":"0.01","PERP_UNI_USDC":"0.001","PERP_UNITREE_USDC_mythos":"0.01","PERP_USDJPY_USDC":"0.01","PERP_USELESS_USDC":"0.00001","PERP_VIRTUAL_USDC":"0.0001","PERP_WDC_USDC_mythos":"0.01","PERP_WIF_USDC":"0.0001","PERP_WLD_USDC":"0.0001","PERP_WOO_USDC":"0.00001","PERP_XAG_USDC":"0.01","PERP_XAU_USDC":"0.01","PERP_XAUT_USDC_mythos":"0.1","PERP_XLM_USDC_mythos":"0.0001","PERP_XMR_USDC":"0.01","PERP_XPL_USDC":"0.00001","PERP_XRP_USDC":"0.0001","PERP_ZEC_USDC":"0.01","PERP_ZHIPU_USDC_mythos":"0.01","PERP_ZRO_USDC":"0.0001"}'),PERP_BTC_USDC:"1",PERP_ETH_USDC:"0.1",PERP_SOL_USDC:"0.01"},u=new Set,_=new Proxy(d,{get(e,t,n){if("string"!=typeof t||t in e)return Reflect.get(e,t,n);if(/^PERP_[A-Z0-9]+_[A-Z0-9]+(_[a-z0-9]+)?$/.test(t))return u.has(t)||(u.add(t),Promise.resolve().then(r.bind(r,91386)).then(e=>e.reportFriction("orderbook_tick_missing",t,{vertical:"perp"})).catch(()=>{})),"0.000001"}});var P=r(17073);function p(){return(0,s.useEffect)(()=>{let e=!1,t=t=>{(function(e){if("cancel"===e)return!0;let t=e instanceof Error?e.message:"string"==typeof e?e:"";return"cancel"===t||/orderlyKeyPair is not defined/.test(t)})(t.reason)&&(t.preventDefault(),e||(e=!0,console.debug("[perps] engine rejection ignored (no trading account yet):",t.reason instanceof Error?t.reason.message:t.reason)))};return window.addEventListener("unhandledrejection",t),()=>window.removeEventListener("unhandledrejection",t)},[]),null}var m=r(91386),h=r(84652);let f={account:null,tx:null};function g(e,t){if(e)return async function(){for(var r,n,s,a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];try{null==(r=f.tx)||r.signing(t)}catch(e){}try{let t=await e(...o);try{null==(n=f.tx)||n.reset()}catch(e){}return t}catch(e){try{null==(s=f.tx)||s.reset()}catch(e){}throw(0,m.reportTxFailure)("perp","deposit_tx",e),e}}}let E=()=>{let e=(0,i.Iz_)(),t=(0,h.um)({errorText:h.q1});return f.account=null!=e?e:null,f.tx=t,(0,s.useEffect)(()=>()=>{f.account=null,f.tx=null},[]),null};var S=r(64775);let C={marketTabs:(e,t)=>{let{componentKey:r,builtIn:n}=t;if("marketsSheet"!==r||e.some(e=>"type"in e&&"newListing"===e.type))return e;let s=e.findIndex(e=>"type"in e&&"all"===e.type),a=[...e];return a.splice(s>=0?s+1:a.length,0,n.newListing),a}},y=e=>{var t,r,c;let{children:d}=e,u=(0,a.v)(),{connection:_}=(0,o.w)(),{setVisible:p}=(0,S.x)(),h=P.P.solanaChainId,E=(0,s.useMemo)(()=>[{id:h,namespace:l.Lx.solana}],[h]),C=(0,s.useMemo)(()=>{var e;return(null==(e=u.wallet)?void 0:e.adapter)&&u.publicKey?{...u.wallet.adapter,connection:_,rpcUrl:_.rpcEndpoint,publicKey:u.publicKey,sendTransaction:g(u.sendTransaction,"Confirm the deposit in your wallet"),signTransaction:g(u.signTransaction,"Confirm the deposit in y
1our wallet"),signAllTransactions:g(u.signAllTransactions,"Confirm the transactions in your wallet"),signMessage:function(e){if(e)return async t=>{var r,n,s;let a=function(){var e,t;let r=null==(t=f.account)||null==(e=t.stateValue)?void 0:e.status;return r===l.RN.NotSignedIn||r===l.RN.DisabledTrading}();if(a)try{null==(r=f.tx)||r.signing("Approve the signature request in your wallet")}catch(e){}try{let r=await e(t);if(a)try{null==(n=f.tx)||n.reset()}catch(e){}return r}catch(e){if(a)try{null==(s=f.tx)||s.reset()}catch(e){}throw(0,m.reportTxFailure)("perp","sign_message",e),e}}}(u.signMessage)}:null},[null==(t=u.wallet)?void 0:t.adapter,u.publicKey,u.sendTransaction,u.signTransaction,u.signAllTransactions,u.signMessage,_]),y=(0,s.useMemo)(()=>{var e,t;return u.connected&&u.publicKey&&C?{label:(null==(e=u.wallet)?void 0:e.adapter.name)||"Solana Wallet",icon:(null==(t=u.wallet)?void 0:t.adapter.icon)||"",provider:C,accounts:[{address:u.publicKey.toBase58()}],chains:E,instance:C}:null},[u.connected,u.publicKey,null==(r=u.wallet)?void 0:r.adapter.name,null==(c=u.wallet)?void 0:c.adapter.icon,C,E]),R=(0,s.useCallback)(async()=>{try{if(!u.connected)return p(!0),[];if(y)return[y];return[]}catch(e){return console.error("Wallet connection error:",e),[]}},[u.connected,y,p]),D=(0,s.useCallback)(async()=>{try{return await u.disconnect(),[]}catch(e){return console.error("Wallet disconnection error:",e),[]}},[u]),w=(0,s.useCallback)(async e=>Promise.resolve(),[h]),U=(0,s.useMemo)(()=>u.connected?{id:h,namespace:l.Lx.solana}:null,[u.connected,h]),v=(0,s.useMemo)(()=>({connect:R,disconnect:D,connecting:u.connecting,setChain:w,chains:E,wallet:y,connectedChain:U,settingChain:!1,namespace:l.Lx.solana}),[R,D,u.connecting,w,E,y,U]);return(0,n.jsx)(i.syU.Provider,{value:v,children:d})},R=e=>{let{children:t}=e;return(0,n.jsxs)(y,{children:[(0,n.jsx)(p,{}),(0,n.jsxs)(c.ul,{brokerId:P.P.brokerId,brokerName:P.P.brokerName,networkId:P.P.networkId,widgetConfigs:C,appIcons:P.P.appIcons,restrictedInfo:{enableDefault:!0},orderbookDefaultTickSizes:_,children:[(0,n.jsx)(E,{}),t]})]})}},70665:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(80159).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},71140:(e,t,r)=>{"use strict";r.d(t,{Qg:()=>g,Sb:()=>S,US:()=>m,aD:()=>C,eC:()=>E,tE:()=>p,y8:()=>f});var n=r(42073),s=r(13741),a=r(88826),o=r(78828),i=r(70665),l=r(98672),c=r(39868),d=r(11267),u=r(12711),_=r(32865),P=r(59472);let p=a.Kq,m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)(a.LM,{ref:t,className:(0,P.cn)("fixed z-[120] flex flex-col gap-2","inset-x-0 items-center px-4 bottom-[calc(4rem+env(safe-area-inset-bottom,0px)+1rem)]","lg:inset-x-auto lg:right-4 lg:max-w-[400px] lg:items-end lg:px-0 lg:bottom-[calc(2rem+1rem)]",r),...s})});m.displayName=a.LM.displayName;let h=(0,o.F)("group pointer-events-auto relative flex max-w-full items-start gap-2.5 overflow-visible rounded-2xl border border-borderStrong px-3 py-2 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full",{variants:{variant:{default:"bg-card text-text",destructive:"bg-card text-text",success:"bg-card text-text",info:"bg-card text-text",warning:"bg-card text-text",reward:"bg-card text-text"}},defaultVariants:{variant:"default"}}),f=s.forwardRef((e,t)=>{let{className:r,variant:s,...o}=e;return(0,n.jsxs)(a.bL,{ref:t,className:(0,P.cn)(h({variant:s}),r),...o,children:[(e=>{let t="w-4 h-4 flex-shrink-0 mt-0.5";switch(e){case"success":default:return(0,n.jsx)(i.A,{className:(0,P.cn)(t,"text-primary")});case"destructive":return(0,n.jsx)(l.A,{className:(0,P.cn)(t,"text-loss")});case"warning":return(0,n.jsx)(c.A,{className:(0,P.cn)(t,"text-warning")});case"info":return(0,n.jsx)(d.A,{className:(0,P.cn)(t,"text-trade")});case"reward":return(0,n.jsx)(u.A,{className:(0,P.cn)(t,"text-reward"),fill:"currentColor"})}})(s),o.children]})});f.displayName=a.bL.displayName;let g=s.forwardRef((e,t)=>
1{let{className:r,...s}=e;return(0,n.jsx)(a.rc,{ref:t,className:(0,P.cn)("inline-flex h-6 shrink-0 items-center justify-center rounded-full bg-surfaceHover px-3 text-xs font-medium text-text transition-colors hover:bg-surfaceActive focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--c-text-1)] disabled:pointer-events-none disabled:opacity-50",r),...s})});g.displayName=a.rc.displayName;let E=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)(a.bm,{ref:t,className:(0,P.cn)("zpx-tap-44 inline-flex shrink-0 items-center justify-center rounded-full p-0.5 text-muted-foreground transition-colors hover:text-text hover:bg-surfaceHover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--c-text-1)]",r),"toast-close":"",...s,children:(0,n.jsx)(_.A,{className:"h-3.5 w-3.5"})})});E.displayName=a.bm.displayName;let S=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)(a.hE,{ref:t,className:(0,P.cn)("text-sm font-medium",r),...s})});S.displayName=a.hE.displayName;let C=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)(a.VY,{ref:t,className:(0,P.cn)("text-sm text-muted-foreground",r),...s})});C.displayName=a.VY.displayName},78191:(e,t,r)=>{"use strict";function n(e){return/user rejected|rejected the request|rejected by (the )?user|user denied|denied by (the )?user|declined by (the )?user|user (cancell?ed|declined)/i.test(e)}r.d(t,{Lj:()=>n,d0:()=>a,hW:()=>l,mk:()=>i,nS:()=>c,qd:()=>o});let s=new Set(["WalletSignMessageError","WalletSignTransactionError","WalletSendTransactionError"]);function a(e){let t=e&&"object"==typeof e?e.name:void 0;return"string"==typeof t&&s.has(t)}function o(e){let t=e instanceof Error?e.message:String(null!=e?e:"");return!t.trim()||!/reject|denied|declin|cancel|user.*(refus|abort)/i.test(t)&&(!!/session|pairing|topic|no matching key|relay/i.test(t)||!/insufficient|balance|blockhash|expired|simulat|slippage|not enough|invalid (transaction|instruction|account)|unsupported|versioned|legacy|too large|signature verification/i.test(t)&&/an error (has )?occurred|unknown error|something went wrong|request failed/i.test(t))}let i="Your wallet session has expired. Reconnect your wallet and try again — nothing was sent and nothing was charged.";function l(){let e;try{e=window.localStorage}catch(e){return null}let t=null,r=(e,n)=>{if(!(n>6)&&null!==e&&"object"==typeof e){if(Array.isArray(e)){for(let t of e)r(t,n+1);return}if("string"==typeof e.topic&&"number"==typeof e.expiry){let r=e.expiry;r>1e9&&r<1e11&&(t=null===t?r:Math.max(t,r))}for(let t of Object.values(e))r(t,n+1)}};try{for(let t=0;t<e.length;t+=1){let n=e.key(t);if(!n||!/^wc@/i.test(n))continue;let s=e.getItem(n);if(s&&!(s.length>2e6))try{r(JSON.parse(s),0)}catch(e){}}}catch(e){return null}return t}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),t=l();return null!==t&&1e3*t<=e}},79819:()=>{},80159:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(13741);let s=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},a=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:c="",children:d,iconNode:u,..._}=e;return(0,n.createElement)("svg",{ref:t,...o,width:s,height:s,stroke:r,strokeWidth:l?24*Number(i)/Number(s):i,className:a("lucide",c),...!d&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(_)&&{"aria-hidden":"true"},..._},[...u.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(d)?d:[d]])}),l=(e,t)=>{let r=(0,n.forwardRef)((r,o)=>{let{className:l,...c}=r;return(0,n.createElement)(i,{ref:o,iconNode:t,className:a("lucide-".concat(s(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),l),...c})});return r.displayName=s(e),r}},82561:(e,t,r)=>{Promise.resolve().then(r.bind(r,36826)),Promise.resolve().then(r.bind(r,97835)),Promise.resolve().then(r.bind(r,67419))},84652:(e,t,r)=>{"use strict";r.d(t,{q1:()=>c,um:()=>_});var n=r(42073),s=r(13741),a=r(90991),o=r(36387),i=r(71140);function l(e){let t=e instanceof Error?e.message:String(null!=e?e:""),r=t.toLowerCase();return r.includes("user rejected")||r.includes("user denied")||r.includes("rejected the request")?"User rejected transaction":r.includes("slippage")?"Slippage exceeded — try again or raise your slippage":r.includes("blockhash")?"Blockhash expired — the quote went stale, try again":r.includes("insufficient")?"Insufficient balance for this transaction":r.includes("simulation")?"Transaction simulation failed":r.includes("not confirmed")?"Transaction was not confirmed in time":t||"Transaction failed"}function c(e){let t=e instanceof Error?e.message:String(null!=e?e:""),r=t.toLowerCase();return r.includes("user rejected")||r.includes("user denied")||r.includes("rejected the request")||r.includes("declined")?"You declined the signature request":r.includes("wallet not connected")?"Connect a wallet first":r.includes("challenge expired")||r.includes("expired")?"The request expired before it was signed — try again":r.includes("did n
1ot respond")||r.includes("network is not responding")?t:t||"Could not complete the request"}function d(e){return(0,n.jsx)(i.Qg,{altText:"View on Solscan",onClick:()=>{window.open("https://solscan.io/tx/".concat(e),"_blank","noopener,noreferrer")},children:"View on Solscan ↗"})}function u(e){return(0,n.jsxs)("span",{className:"flex items-center gap-2 text-xs",children:[(0,n.jsx)(a.A,{className:"h-3.5 w-3.5 animate-spin","aria-hidden":!0}),e]})}function _(e){let[t,r]=s.useState("idle"),a=s.useRef(e);a.current=e;let i=s.useRef(null),c=s.useRef(null),_=s.useCallback(()=>{let e=i.current;e&&(e.update({id:e.id,duration:250}),e.dismiss(),i.current=null)},[]);s.useEffect(()=>()=>_(),[_]);let P=s.useCallback(function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Approve transaction in your wallet";if(r("signing"),null==(e=c.current)||e.dismiss(),c.current=null,i.current)return void i.current.update({id:i.current.id,title:"Pending Wallet Signature",description:u(t),duration:18e4});i.current=(0,o.oR)({title:"Pending Wallet Signature",description:u(t),duration:18e4})},[]),p=s.useCallback(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Submitting Transaction";if(r("submitting"),i.current)return void i.current.update({id:i.current.id,title:t,description:u(e),duration:18e4});i.current=(0,o.oR)({title:t,description:u(e),duration:18e4})},[]),m=s.useCallback((e,t,s)=>{var a;_(),null==(a=c.current)||a.dismiss(),r("idle"),c.current=(0,o.oR)({variant:"success",title:e,description:(0,n.jsx)("p",{className:"text-xs",children:t}),...s?{action:d(s)}:{}})},[_]),h=s.useCallback((e,t,s)=>{var i,u,P,p,m;let h=null!=(p=null==(i=a.current)?void 0:i.errorText)?p:l,f=null!=(m=null!=s?s:null==(u=a.current)?void 0:u.failureTitle)?m:"Transaction Failed";_(),null==(P=c.current)||P.dismiss(),r("idle"),c.current=(0,o.oR)({variant:"destructive",title:f,description:(0,n.jsx)("p",{className:"text-xs",children:h(e)}),...t?{action:d(t)}:{}})},[_]),f=s.useCallback(()=>{var e;_(),null==(e=c.current)||e.dismiss(),c.current=null,r("idle")},[_]);return s.useMemo(()=>({phase:t,signing:P,submitting:p,success:m,failure:h,reset:f}),[t,P,p,m,h,f])}},88701:(e,t,r)=>{"use strict";function n(e,t){if(!e)return null;try{let r=new URL(e).hostname.toLowerCase().replace(/^www\./,""),n=String(t||"").toLowerCase().replace(/^www\./,"").replace(/:\d+$/,"");if(!r||r===n)return null;return r.slice(0,80)}catch(e){return null}}r.d(t,{Gi:()=>n,fb:()=>i,iJ:()=>o,zE:()=>a});let s=["utm_source","utm_medium","utm_campaign"];function a(e){let t={};try{let r=new URLSearchParams(e||"");for(let e of s){let n=(r.get(e)||"").toLowerCase().replace(/[^a-z0-9._-]/g,"").slice(0,60);n&&(t[e]=n)}}catch(e){}return t}function o(e,t){return!!t||/bot|crawl|spider|slurp|headless|lighthouse|pagespeed|preview|monitor|curl|wget|python|axios|node-fetch|playwright|puppeteer/i.test(e||"")}let i=40},90991:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(80159).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},94509:(e,t,r)=>{"use strict";r.d(t,{G_:()=>o,I2:()=>a,Oi:()=>s,zK:()=>n});let n={EnableTradingWithoutConnected:-1,NotConnected:0,Connected:1,NotSignedIn:2,SignedIn:3,DisabledTrading:4,EnableTrading:5};function s(e){return!e.wrongNetwork&&!e.disabledConnect&&!e.validating&&e.status>=n.Connected&&e.status<n.EnableTrading}function a(e){return!e.walletAttached&&!e.disabledConnect}function o(e){return e>=n.EnableTrading||e===n.EnableTradingWithoutConnected?"deposit":"enable"}},97835:(e,t,r)=>{"use strict";r.d(t,{PerpsTelemetry:()=>d});var n=r(13741),s=r(43195),a=r(23548),o=r(91386);let i=["fail","error","insufficient","reject","denied","unable","cancel","exceed","invalid","timeout","expired","not enough","too small","slippage"];var l=r(94509),c=r(78191);function d(){(0,n.useEffect)(()=>{let e=new Map,t=t=>{let r=(t.textContent||"").trim().slice(0,200);if(!r||!function(e){let t=e.toLowerCase();return i.some(e=>t.includes(e))}(r))return;let n=Date.now();n-(e.get(r)||0)<3e3||(e.set(r,n),(0,o.reportFriction)("orderly_notice",r,{vertical:"perp",severity:(0,c.Lj)(r)?"info":"error",meta:{page:window.location.pathname.split("/").slice(0,3).join("/")}}))},r=new MutationObserver(e=>{for(let s of e)for(let e of s.addedNodes){var r,n;if(e instanceof Element&&!e.closest("[data-radix-collection-item]"))for(let s of((null==(r=e.getAttribute)?void 0:r.call(e,"role"))==="status"&&t(e),(null==(n=e.querySelectorAll)?void 0:n.call(e,'[role="status"]'))||[]))s.closest("[data-radix-collection-item]")||t(s)}});return r.observe(document.body,{subtree:!0,childList:!0}),()=>r.disconnect()},[]);let{state:e}=(0,s.F7A)(),t=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let r=t.current;t.current=e.status,null!==r&&r<l.zK.EnableTrading&&e.status>=l.zK.EnableTrading&&(0,a.u)("perps_enable_done",{vertical:"perp"})},[e.status]),null}}},e=>{e.O(0,[1469,6246,2346,2872,9204,3164,3244,3575,4947,2361,4233,7754,4021,3484,2222,8802,4088,2269,5762,1386,7145,2930,991,7358],()=>e(e.s=82561)),_N_E=e.O()}]);

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.