PageSourceSearch

https://www.deribit.com/assets/useCurrency-DUQFRLkz.js

js deribit.com collected 2026-10-01 11:33:43 UTC 6,350 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`2b3fa98cecb9ecded9edb92f06263a16f8cab334`}}catch{}})();try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`4274e96d-cc60-4bd7-8046-fa23a300676e`,e._sentryDebugIdIdentifier=`sentry-dbid-4274e96d-cc60-4bd7-8046-fa23a300676e`)})()}catch{}import{s as e}from"./rolldown-runtime-BtEJSlmX.js";import{A as t,g as n,k as r}from"./dist-C0lFuP4d.js";import{$c as i,Bl as a,Ds as o,Fc as s,Hc as c,Hd as l,Ic as u,Jc as d,Jo as f,Js as p,Od as m,Qc as h,Rl as g,Ts as _,Vl as v,Yc as y,Ys as b,Zo as x,ac as S,es as C,gc as w,i as T,in as E,is as D,l as O,nc as k,nd as A,oc as j,rc as M,vc as N,vd as P,zl as F}from"./GlobalEventEmitter-BUqOyzy1.js";var I=1/0,L=17976931348623157e292;function toFinite(e){return e?(e=m(e),e===I||e===-I?(e<0?-1:1)*L:e===e?e:0):e===0?e:0}function toInteger(e){var t=toFinite(e),n=t%1;return t===t?n?t-n:t:0}var R=Math.ceil,z=Math.max;function chunk(e,t,n){t=(n?P(e,t,n):t===void 0)?1:z(toInteger(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var i=0,a=0,o=Array(R(r/t));i<r;)o[a++]=A(e,i,i+=t);return o}var B=class Deferred{promise;resolve;reject;state=`pending`;constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t}).then(e=>(this.state=`resolved`,e),e=>{throw this.state=`rejected`,e})}isFulfilled(){return this.state!==`pending`}isRejected(){return this.state===`rejected`}static sleep(e){return new Promise(t=>{setTimeout(t,e)})}static async chunkAll(e,t,n,r){let i=chunk(e,n),a=[];for(let e of i)a.push(...await Promise.all(e.map(t))),await Deferred.sleep(r??500);return a}},V=t(),H=e(r());v(),F(),y(),s(),w(),S(),b(),_(),C(),k(),h();function getCollapseUtilityClass(e){return i(`MuiCollapse`,e)}var U=M(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]),W=[`addEndListener`,`children`,`className`,`collapsedSize`,`component`,`easing`,`in`,`onEnter`,`onEntered`,`onEntering`,`onExit`,`onExited`,`onExiting`,`orientation`,`style`,`timeout`,`TransitionComponent`],useUtilityClasses=e=>{let{orientation:t,classes:n}=e,r={root:[`root`,`${t}`],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,`${t}`],wrapperInner:[`wrapperInner`,`${t}`]};return j(r,getCollapseUtilityClass,n)},G=u(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(({theme:e,ownerState:t})=>a({height:0,overflow:`hidden`,transition:e.transitions.create(`height`)},t.orientation===`horizontal`&&{height:`auto`,width:0,transition:e.transitions.create(`width`)},t.state===`entered`&&a({height:`auto`,overflow:`visible`},t.orientation===`horizontal`&&{width:`auto`}),t.state===`exited`&&!t.in&&t.collapsedSize===`0px`&&{visibility:`hidden`})),K=u(`div`,{name:`MuiCollapse`,slot:`Wrapper`,overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>a({display:`flex`,width:`100%`},e.orientation===`horizontal`&&{width:`auto`,height:`100%`})),q=u(`div`,{name:`MuiCollapse`,slot:`WrapperInner`,overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>a({width:`100%`},e.orientation===`horizontal`&&{width:`auto`,height:`100%`})),J=H.forwardRef(function Collapse(e,t){let n=o({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:s,collapsedSize:l=`0px`,component:u,easing:m,in:h,onEnter:_,onEntered:v,onEntering:y,onExit:b,onExited:S,onExiting:C,orientation:w=`vertical`,style:T,timeout:E=d.standard,TransitionComponent:O=x}=n,k=g(n,W),A=a({},n,{orientation:w,collapsedSize:l}),j=useUtilityClasses(A),M=c(),P=N(),F=H.useRef(null),I=H.useRef(),L=typeof l==`number`?`${l}px`:l,R=w===`horizontal`,z=R?`width`:`height`,B=H.useRef(null),U=D(t,B),normalizedTransitionCallback=e=>t=>{if(e){let n=B.current;t===void 0?e(n):e(n,t)}},getWrapperSize=()=>
1F.current?F.current[R?`clientWidth`:`clientHeight`]:0,J=normalizedTransitionCallback((e,t)=>{F.current&&R&&(F.current.style.position=`absolute`),e.style[z]=L,_&&_(e,t)}),Y=normalizedTransitionCallback((e,t)=>{let n=getWrapperSize();F.current&&R&&(F.current.style.position=``);let{duration:r,easing:i}=f({style:T,timeout:E,easing:m},{mode:`enter`});if(E===`auto`){let t=M.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,I.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[z]=`${n}px`,e.style.transitionTimingFunction=i,y&&y(e,t)}),X=normalizedTransitionCallback((e,t)=>{e.style[z]=`auto`,v&&v(e,t)}),Z=normalizedTransitionCallback(e=>{e.style[z]=`${getWrapperSize()}px`,b&&b(e)}),Q=normalizedTransitionCallback(S),$=normalizedTransitionCallback(e=>{let t=getWrapperSize(),{duration:n,easing:r}=f({style:T,timeout:E,easing:m},{mode:`exit`});if(E===`auto`){let n=M.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,I.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[z]=L,e.style.transitionTimingFunction=r,C&&C(e)}),handleAddEndListener=e=>{E===`auto`&&P.start(I.current||0,e),r&&r(B.current,e)};return(0,V.jsx)(O,a({in:h,onEnter:J,onEntered:X,onEntering:Y,onExit:Z,onExited:Q,onExiting:$,addEndListener:handleAddEndListener,nodeRef:B,timeout:E===`auto`?null:E},k,{children:(e,t)=>(0,V.jsx)(G,a({as:u,className:p(j.root,s,{entered:j.entered,exited:!h&&L===`0px`&&j.hidden}[e]),style:a({[R?`minWidth`:`minHeight`]:L},T),ref:U},t,{ownerState:a({},A,{state:e}),children:(0,V.jsx)(K,{ownerState:a({},A,{state:e}),className:j.wrapper,ref:F,children:(0,V.jsx)(q,{ownerState:a({},A,{state:e}),className:j.wrapperInner,children:i})})}))}))});J.muiSupportAuto=!0;var getCurrencyPair=(e,t)=>t||(e&&e.includes(`_`)?e:null);function useCurrency({ignoreInstrument:e,ignoreCurrencyPair:t=!0}={}){let r=T(),[i]=l(),{currency:a=i.get(O.currency),currencyPair:o=null}=n();if(r&&!e){let e=E.splitInstrument(r);if(e)return t?e.currency:e.currencyPair?.replace(/_USD$/g,``)}let s=getCurrencyPair(a,o);if(s){if(t){let[e,t]=s.split(`_`);return t??e}return s}return a||(e?void 0:`BTC`)}export{chunk as a,B as i,J as n,toInteger as o,U as r,toFinite as s,useCurrency as t};

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.