PageSourceSearch

https://brownian.xyz/_next/static/chunks/2ha7zepuimx17.js?dpl=dpl_EqiQXoGEF4g7MLGqjzDDctkpxKEn

js brownian.xyz collected 2026-10-08 00:35:59 UTC 14,221 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="a860e355-5dc4-1a4f-12c2-dd84cb947c23")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,203542,88236,23512,656749,e=>{"use strict";let t,r,n;var i=e.i(338064);e.s(["APP_NAME",0,"Brownian","BRAND_ASSETS",0,{mark:"/brand/brownian-mark.svg",wordmark:"/brand/brownian-wordmark.svg",wordmarkWhite:"/brand/brownian-wordmark-white.svg",social:"/opengraph-image"},"BRAND_COLORS",0,{bg:"#0E110A",elevated:"#14180E",surface:"#202617",accent:"#DBFE51",muted:"#B6C653",text:"#DEE1D3",grid:"#2B331D",grid2:"#232A18",clay:"#343C2B",faint:"#787E70",secondaryText:"#8D9184",accentFg:"#0E110A"},"SOCIAL_LINKS",0,{x:"https://x.com/Brownianxyz",discord:"https://discord.gg/zUSh5tPBK"}],88236);let a=new Set(["0.0.0.0","127.0.0.1","localhost","::","::1"]);function o(e){let t=e.trim().toLowerCase().replace(/^\[|\]$/g,"");if(a.has(t)||t.endsWith(".localhost")||t.endsWith(".local"))return!0;let r=t.split(".").map(Number);if(4===r.length&&r.every(e=>Number.isInteger(e)&&e>=0&&e<=255)){let[e,t]=r;return 0===e||10===e||127===e||169===e&&254===t||172===e&&t>=16&&t<=31||192===e&&168===t}return t.includes(":")&&(t.startsWith("fc")||t.startsWith("fd")||t.startsWith("fe80:"))}function s(e,{allowLocal:t=!0,allowLocalHttp:r=!0,originOnly:n=!1}={}){if(!e?.trim())return"";try{let i=new URL(e.trim()),a=o(i.hostname),s="https:"===i.protocol||r&&a&&"http:"===i.protocol,l=!n||"/"===i.pathname&&!i.search&&!i.hash;if(!s||!t&&a||i.username||i.password||!l)return"";return n?i.origin:i.toString()}catch{return""}}function l(e){if(!e?.trim())return{configured:!1,productionReady:!1,url:"http://127.0.0.1:3000",failure:"NEXT_PUBLIC_APP_URL is not configured"};let t=s(e,{allowLocalHttp:!0,originOnly:!0});if(!t)return{configured:!0,productionReady:!1,url:"http://127.0.0.1:3000",failure:"NEXT_PUBLIC_APP_URL must be an absolute http(s) origin without credentials, path, query, or fragment"};let r=new URL(t),n=o(r.hostname),i="https:"===r.protocol&&!n&&!function(e){let t=e.trim().toLowerCase().replace(/^\[|\]$/g,"");if(t.includes(":"))return!0;let r=t.split(".");return 4===r.length&&r.every(e=>{if(!/^\d{1,3}$/.test(e))return!1;let t=Number(e);return t>=0&&t<=255})}(r.hostname);return{configured:!0,productionReady:i,url:t,failure:i?"":"https:"!==r.protocol?"NEXT_PUBLIC_APP_URL must use https in production":"NEXT_PUBLIC_APP_URL must use a non-local public host with DNS"}}e.s(["publicAppUrlStatus",0,l,"safePublicHttpUrl",0,s],23512);let c="/legal/terms",u="/legal/privacy",d="/legal/risk-disclosure",h="/legal/restricted-jurisdictions",f="/legal/million-terms",m=l("https://brownian.xyz").url,p={terms:new URL(c,m).toString(),privacy:new URL(u,m).toString(),riskDisclosure:new URL(d,m).toString(),restrictedJurisdictions:new URL(h,m).toString(),millionTerms:new URL(f,m).toString()};e.s(["LEGAL_ROUTES",0,[{key:"terms",slug:"terms",href:c,label:"Terms",shortLabel:"Terms"},{key:"privacy",slug:"privacy",href:u,label:"Privacy",shortLabel:"Privacy"},{key:"riskDisclosure",slug:"risk-disclosure",href:d,label:"Risk disclosure",shortLabel:"Risk"},{key:"restrictedJurisdictions",slug:"restricted-jurisdictions",href:h,label:"Restricted jurisdictions",shortLabel:"Restrictions"},{key:"millionTerms",slug:"million-terms",href:f,label:"Win $1,000,000 T&C",shortLabel:"$1,000,000"}],"legalUrls",0,p],656749);let y="PERP_ETH_USDC";function g(e){if(!e)return"";try{return decodeURIComponent(e).trim()}catch{return e.trim()}}function b(e){let t=g(e);return/^PERP_[A-Z0-9]+_[A-Z0-9]+(?:_[A-Za-z0-9]+)?$/.test(t)}let w=g("PERP_ETH_USDC")||y,_=b(w)?w:y,v=l("https://brownian.xyz"),R=(r=(t="3d7362da4b70cf7a8bcd5a8812301422".trim()||"").length>0,{configured:r,valid:n=/^[a-f0-9]{32}$/i.test(t),projectId:n?t:"",failure:n?"":r?"NEXT_PUBLIC_REOWN_PROJECT_ID must be a 32-character hexadecimal project ID":"NEXT_PUBLIC_REOWN_PROJECT_ID is not configured"}),E=function(e){let t=e?.trim().toLowerCase();if("true"===t)return{enabled:!0,configured:!0,valid:!0,failure:""};if("false"===t)return{enabled:!1,configured:!0,valid:!0,failure:""};if(t)throw Error(`NEXT_PUBLIC_REFERRALS_ENABLED must be true or false; received ${e}`);return{enabled:!1,configured:!1,valid:!0,failure:"NEXT_PUBLIC_REFERRALS_ENABLED is not configured; referrals fail closed"}}("true"),k={networkId:function(e){if("mainnet"!==e&&"testnet"!==e)throw Error(`NEXT_PUBLIC_ORDERLY_NETWORK_ID must be mainnet or testnet; received ${e}`);return e}("mainnet"),brokerId:"brownian",brokerName:"Brownian",dexId:"3db723e4-3164-4299-84f7-34eadaf27085",defaultSymbol:_,appIconPath:"/brand/brownian-mark.svg",referralsEnabled:E.enabled,referralsEnabledStatus:E,reownProjectId:R.projectId,reownProjectIdStatus:R,appUrl:v.url,appUrlStatus:v,legalUrls:p,tradingViewLibraryPath:"/tradingview/charting_library/",tradingViewScriptSrc:"/tradingview/charting_library/charting_library.js"},S=`/trade/${encodeURIComponent(k.defaultSymbol)}`;function P(e){let t=g(e);return b(t)?t:k.defaultSymbol}["NEXT_PUBLIC_REOWN_PROJECT_ID"].filter(e=>!i.default.env[e]).length,e.s(["ORDERLY_DEFAULT_TRADE_PATH",0,S,"n
2ormalizeOrderlySymbol",0,g,"orderlyApiBaseUrl",0,function(e=k.networkId){return"mainnet"===e?"https://api.orderly.org":"https://testnet-api.orderly.org"},"orderlyConfig",0,k,"orderlySymbolFromSelection",0,function(e){return P("string"==typeof e?e:e?.symbol)},"orderlySymbolOrDefault",0,P],203542)},545066,407714,823409,588830,e=>{"use strict";let t;var r=e.i(930332),n=e.i(247472),i=e.i(845142);let a="brownian:orderly-runtime-warm:v1";function o(e){return"/points"===e||e.startsWith("/points/")}e.s(["ORDERLY_REMEMBERED_WALLET_KEY",0,"brownian:orderly-remembered-wallet:v1","ORDERLY_RUNTIME_WARM_SESSION_KEY",0,a,"isBrownianPointsRoute",0,o],407714);var s=e.i(203542);let l={chainPreflightStart:"brownian:orderly-chain-preflight-start",chainPreflightEnd:"brownian:orderly-chain-preflight-end",connectorReady:"brownian:orderly-connector-ready",providerMounted:"brownian:orderly-provider-mounted",nativeRuntimeReady:"brownian:orderly-native-runtime-ready"},c={chainPreflight:"brownian:orderly-chain-preflight",connectorBootstrap:"brownian:orderly-connector-bootstrap",providerMount:"brownian:orderly-provider-mount",nativeRuntimeBootstrap:"brownian:orderly-native-runtime-bootstrap"};function u(e){"u">typeof performance&&performance.mark&&performance.mark(e)}function d(e,t,r){"u"<typeof performance||!performance.measure||0!==performance.getEntriesByName(t,"mark").length&&0!==performance.getEntriesByName(r,"mark").length&&performance.measure(e,t,r)}function h(e){if("string"==typeof e&&e.trim()&&!(e.length>2048))try{let t=new URL(e.trim()),r=t.hostname.toLowerCase(),n=r.startsWith("[")&&r.endsWith("]")?r.slice(1,-1):"",i="localhost"===r||r.endsWith(".localhost")||r.endsWith(".local")||r.endsWith(".internal")||"0.0.0.0"===r||r.startsWith("127.")||r.startsWith("10.")||r.startsWith("192.168.")||/^172\.(?:1[6-9]|2[0-9]|3[01])\./.test(r)||/^100\.(?:6[4-9]|[7-9]\d|1[01]\d|12[0-7])\./.test(r)||r.startsWith("169.254.")||"::1"===n||"::"===n||n.startsWith("::ffff:")||n.startsWith("::0:ffff:")||/^(?:fc|fd|fe[89ab])/.test(n);if("https:"!==t.protocol||t.username||t.password||t.hash||i)return;return t.toString()}catch{return}}function f(e){return e&&"object"==typeof e&&!Array.isArray(e)?e:void 0}function m(e,t=Date.now()){let r=f(e),n=r?.data?.rows;if(!Array.isArray(n)||0===n.length||n.length>128)return;let i=new Set,a=n.flatMap(e=>{let t=f(e),r=Number(t?.chain_id),n=t?.currency_symbol?.trim(),a=t?.name?.trim(),o=h(t?.public_rpc_url),s=h(t?.explorer_base_url);return!Number.isSafeInteger(r)||r<=0||i.has(r)||!n||n.length>32||!a||a.length>128||!o?[]:(i.add(r),[{id:r,token:n,label:a,rpcUrl:o,blockExplorerUrl:s}])});if(0!==a.length&&Number.isFinite(t)&&!(t<=0))return{fetchedAt:t,chains:a}}function p(e,t){return`brownian:orderly-wallet-chains:v1:${e}:${t}`}e.s(["markOrderlyBootstrap",0,u,"measureOrderlyBootstrap",0,d,"orderlyBootstrapMarks",0,l,"orderlyBootstrapMeasures",0,c],823409);let y=new Map;async function g(e,t){u(l.chainPreflightStart);try{let n=function(e,t){try{let r=window.sessionStorage.getItem(p(e,t));return r?function(e,t=Date.now()){let r=function(e){let t=f(e),r=t?.fetchedAt,n=t?.chains;if("number"==typeof r&&Array.isArray(n))return m({data:{rows:n.map(e=>{let t=f(e);return{chain_id:t?.id,currency_symbol:t?.token,name:t?.label,public_rpc_url:t?.rpcUrl,explorer_base_url:t?.blockExplorerUrl}}
2)}},r)}(e);if(r&&!(t<r.fetchedAt)&&!(t-r.fetchedAt>3e5))return r}(JSON.parse(r)):void 0}catch{return}}(e,t);if(n)return n;let i=new AbortController,a=window.setTimeout(()=>i.abort(),1e4);try{var r;let n,a=await fetch((r=(0,s.orderlyApiBaseUrl)(e),(n=new URL("/v1/public/chain_info",r)).searchParams.set("broker_id",t),n.toString()),{cache:"default",headers:{accept:"application/json"},signal:i.signal});if(!a.ok)return;let o=m(await a.json());return o&&function(e,t,r){try{window.sessionStorage.setItem(p(e,t),JSON.stringify(r))}catch{}}(e,t,o),o}catch{return}finally{window.clearTimeout(a)}}finally{u(l.chainPreflightEnd),d(c.chainPreflight,l.chainPreflightStart,l.chainPreflightEnd)}}function b(e,t){let r=`${e}:${t}`,n=y.get(r);if(n&&Date.now()-n.createdAt<=3e5)return n.promise;let i=g(e,t);return y.set(r,{createdAt:Date.now(),promise:i}),i.then(e=>{e||window.setTimeout(()=>{y.get(r)?.promise===i&&y.delete(r)},750)}),i}e.s(["loadOrderlyWalletChainSnapshot",0,b,"resetOrderlyWalletChainSnapshot",0,function(e,t){y.delete(`${e}:${t}`);try{window.sessionStorage.removeItem(p(e,t))}catch{}}],588830);let w=(0,n.createContext)(null),_=(0,n.createContext)(null);function v(){let e=(0,n.useContext)(_);if(!e)throw Error("Orderly runtime registration must be inside the Brownian Orderly host");return e}function R(){let{retryRuntime:e,status:t}=v();return{providerReady:"ready"===t,retryRuntime:e,status:t}}function E(e){let t=(0,n.useRef)(null),{registerPointsSlot:r}=v();return(0,n.useLayoutEffect)(()=>{let n=t.current;if(n)return r({...e,target:n})},[r,e]),t}function k(){return(0,r.jsx)("main",{className:"flex min-h-screen items-center justify-center bg-bg p-6 text-text","aria-busy":"true","aria-label":"Loading Brownian",children:(0,r.jsxs)("div",{className:"flex items-center gap-3 text-sm font-medium",children:[(0,r.jsx)("span",{"aria-hidden":"true",className:"size-2 animate-pulse rounded-full bg-accent"}),"Loading Brownian…"]})})}function S({onRetry:e}){return(0,r.jsx)("main",{className:"flex min-h-screen items-center justify-center bg-bg p-6 text-text",role:"alert",children:(0,r.jsxs)("div",{className:"flex max-w-sm flex-col items-center gap-4 text-center",children:[(0,r.jsx)("p",{className:"text-sm font-medium",children:"Brownian couldn’t finish loading. Check your connection and try again."}),(0,r.jsx)("button",{type:"button",onClick:e,className:"min-h-11 rounded-sm bg-accent px-4 text-sm font-semibold text-bg",children:"Try again"})]})})}e.s(["OrderlyNativeShell",0,function({children:s,...l}){let c=o((0,i.usePathname)()||"/markets"),[u,d]=(0,n.useState)(),[h,f]=(0,n.useState)(()=>new Map),[m,p]=(0,n.useState)(c?"idle":"loading"),[y,g]=(0,n.useState)(!1),[w,v]=(0,n.use
2State)(0),R=(0,n.useRef)();(0,n.useEffect)(()=>{if(c||u)return;let r=!0;return R.current=void 0,p("loading"),(b(l.networkId,l.brokerId),!t&&(t=e.A(635043)).catch(()=>{t=void 0}),t.then(e=>e.OrderlyNativeRuntime)).then(e=>{r&&d(()=>e)},()=>{r&&(R.current=()=>{v(e=>e+1)},p("error"))}),()=>{r=!1}},[u,l.brokerId,l.networkId,w,c]);let E=(0,n.useCallback)(e=>{R.current=void 0,d(()=>e),p(e=>"ready"===e?e:"loading")},[]),P=(0,n.useCallback)(e=>(f(t=>{let r=new Map(t);return r.set(e.id,e),r}),()=>{f(t=>{if(t.get(e.id)?.target!==e.target)return t;let r=new Map(t);return r.delete(e.id),r})}),[]),L=(0,n.useCallback)(()=>{R.current=void 0,p("loading")},[]),x=(0,n.useCallback)(e=>{R.current=e,p("error")},[]),C=(0,n.useCallback)(()=>{let e=R.current;return!!e&&(R.current=void 0,p("loading"),e(),!0)},[]),j=(0,n.useCallback)(()=>{R.current=void 0;try{window.sessionStorage.setItem(a,"1")}catch{}p("ready")},[]),A=(0,n.useCallback)(()=>{g(!0)},[]),N=c&&u&&"ready"===m&&!y?"loading":m,U=(0,n.useMemo)(()=>({registerPointsRuntime:E,registerPointsSlot:P,retryRuntime:C,setRuntimeError:x,setRuntimeLoading:L,status:N}),[E,P,C,x,L,N]),B=(0,n.useMemo)(()=>[...h.values()],[h]),I=c&&!!u&&"ready"===N;return(0,r.jsxs)(_.Provider,{value:U,children:[(0,r.jsx)("div",{className:c&&!I?"min-h-screen bg-bg text-text":void 0,"data-brownie-points-root":"true",hidden:!c||I,children:c&&!I?s:null},"brownie-points-root"),(0,r.jsx)("div",{"data-orderly-runtime-provider":"true",style:c?{display:"contents"}:void 0,children:u?(0,r.jsx)(u,{...l,mode:c?"points":"native",nativeChildren:c?I?s:null:s,pointsSlots:B,onProviderReady:j,onProviderError:x,onPointsPortalsReady:A},"orderly-provider"):c?null:"error"===m?(0,r.jsx)(S,{onRetry:C}):(0,r.jsx)(k,{})},"orderly-runtime-provider")]})},"OrderlyVenueContext",0,w,"useOrderlyPointsAccountControlSlot",0,function(){let e=E((0,n.useMemo)(()=>({id:"points-stock-account-control",kind:"account-control"}),[])),{providerReady:t,status:r}=R();return{providerReady:t,runtimeStatus:r,targetRef:e}},"useOrderlyPointsRuntimeSlot",0,E,"useOrderlyRuntimeRegistration",0,function(){return v()},"useOrderlyRuntimeState",0,R,"useOrderlyVenue",0,function(){let e=(0,n.useContext)(w);if(!e)throw Error("useOrderlyVenue must be used inside the Brownian Orderly layout");return e}],545066)},635043,e=>{e.v(t=>Promise.all(["static/chunks/3-7twifkv-wa8.js","static/chunks/19jctklom762j.js","static/chunks/3aru47kim875d.js","static/chunks/10x1hkbkgn46s.js","static/chunks/3ydtzd4le9zct.js","static/chunks/18rpr51bc2kn5.js","static/chunks/0anv0281fuhvz.js","static/chunks/0e_smyx4sl-sh.js","static/chunks/0fwzwrd1p2jwa.js","static/chunks/1q4v666c27wh1.js","static/chunks/0t1279hyke02-.js","static/chunks/3glz0k0za43bb.js","static/chunks/1h-y7zejmtruz.js","static/chunks/2i1x3y6rcv_9s.css"].map(t=>e.l(t))).then(()=>t(989312)))}]);
3
4//# debugId=a860e355-5dc4-1a4f-12c2-dd84cb947c23

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.