PageSourceSearch

https://finviz.com/assets/dist/4567.v1.2408949f.js

js finviz.com collected 2026-09-24 08:30:37 UTC 67,790 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"80ef2cdf9e309e2aad9550e3141d0d77395a37e3"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:finviz":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cfb13869-6b9b-42bd-8bb0-35c5fa5a60f1",e._sentryDebugIdIdentifier="sentry-dbid-cfb13869-6b9b-42bd-8bb0-35c5fa5a60f1")}catch(e){}}(),(self.webpackChunkFinvizModern=self.webpackChunkFinvizModern||[]).push([[4567],{55980(e,t,n){n.d(t,{d:()=>h});var r=n(61417),a=n(4452),s=n.n(a),i=n(47323),l=n(37999),o=n(62540);const c=document.getElementById("js-knowledge-base-static"),d=document.getElementById("js-knowledge-base-root"),u=null!=c?.querySelector("a.is-active");function h(e){let{initialRoute:t}=e;const n=(0,l.J6)();return(0,o.jsx)(r.ZLI,{staticElement:c,rootElement:d,children:(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("a",{href:i.fO,className:s()("is-help nav-link px-4",{"is-active":u}),onClick:e=>{e.metaKey||window.location.pathname.startsWith(i.fO)||(e.preventDefault(),n(t))},children:"Help"})})})}},47323(e,t,n){n.d(t,{E2:()=>l,FV:()=>d,H$:()=>a,R$:()=>c,WG:()=>i,a4:()=>o,cE:()=>r,fO:()=>s});const r="js-kb-dialog",a="/api/knowledge-base",s="/knowledge-base",i="/blog",l=3,o="phrase",c=5,d=250},37999(e,t,n){n.d(t,{J6:()=>i,bt:()=>s,vT:()=>l});var r=n(63696),a=n(62540);const s=r.createContext({initialRouteRef:{current:null},dialogRef:null,setDialogRef:()=>{},openDialog:()=>{}});function i(){return r.useContext(s).openDialog}function l(e){let{children:t}=e;const n=r.useRef("/"),[i,l]=r.useState(null),o=r.useMemo(()=>({initialRouteRef:n,dialogRef:i,setDialogRef:l,openDialog:e=>{n.current=e,i?.openDialog?.()}}),[i]);return(0,a.jsx)(s.Provider,{value:o,children:t})}},94673(e,t,n){n.d(t,{A:()=>d});var r=n(5868),a=n(36982),s=n(26056),i=n(17095),l=n(60120),o=function(e){var t=i.A.getTimeframe(),{c:n}=(0,l.m)();return`/api/crypto_all?${(0,l.G)({timeframe:t,c:e??n})}`};let c=null;const d={cancelPending(){const e=c;c=null,e?.cancel?.()},initTiles(e){s.A.handleViewAction({type:a.Q.INIT_TILES,tiles:e})},async update(e){if(e)return c?.cancel?.(),c=null,void s.A.handleViewAction({type:a.Q.UPDATE_DATA,tiles:e});c?.cancel?.();const t=c=(0,r.AT)(o()),n=await t;n&&t===c&&s.A.handleServerAction({type:a.Q.UPDATE_DATA,tiles:n}
1)},setTimeframe(e){s.A.handleViewAction({type:a.Q.CHANGE_TIMEFRAME_STARTED,period:e})},async changeTimeframe(e,t){s.A.handleViewAction({type:a.Q.CHANGE_TIMEFRAME_STARTED,period:e}),c?.cancel?.();const n=c=(0,r.AT)(o(t)),i=await n;i&&n===c&&(s.A.handleServerAction({type:a.Q.UPDATE_DATA,tiles:i}),s.A.handleServerAction({type:a.Q.CHANGE_TIMEFRAME_COMPLETED}))}}},12238(e,t,n){n.d(t,{A:()=>k});var r=n(61268),a=n(53358),s=n(85670),i=n(75377),l=n(23901),o=n(28178),c=n(23319),d=n(60120),u=n(63059),h=n(32176),m=n(47725),p=n(92173),f=n(94673),g=(n(14846),n(27458),n(6211),n(94364),n(4452)),x=n.n(g),y=n(63696),v=n(30241),b=n(22950),w=n(62540);function j(e,t){const n=(0,b.YP)(t),r=Object.values(e);return n.map(e=>r.find(t=>t.ticker===e)).filter(Boolean)}function C(e){let{activeTile:t,activeTimeframe:n,activeRange:r,activeCurrency:s,type:i}=e;const[l,o]=y.useState(j(c.A.getTiles(),s));y.useEffect(()=>{const e=()=>o(j(c.A.getTiles(),s));return e(),c.A.addChangeListener(e),()=>c.A.removeChangeListener(e)},[s,t]);return(0,w.jsxs)("div",{className:"chart-menu",children:[(0,w.jsx)("div",{className:"chart-menu_charts",children:l.map(e=>{return(0,w.jsxs)("a",{className:x()("chart-menu_chart-preview",{"is-active":e.ticker===t}),href:(l=e.ticker,`${a.A.crypto}?${(0,d.G)({t:l,p:n,ty:i,r,c:s})}`),children:[(0,w.jsx)("span",{children:e.label}),(0,w.jsx)(v.A,{width:88,height:28,data:e.sparkline})]},e.ticker);var l})}),(0,w.jsx)("div",{className:"clearfix"})]})}const k=function(){const e=(0,r.K)(),{timeframe:t,ticker:n,type:g,dateRange:x,queryString:y,isDetailOpen:v}=(0,p.J)((e,t)=>{f.A.changeTimeframe(e,(0,b.gy)(t))},b.gy),j=(0,b.gy)(y),[k,N]=(0,b.ht)(n);if((0,m.h)("Crypto",v?`${(0,b.XJ)(k)??k} ${k}/${N}`:"",t,v),v){const r=c.A.getTile(n)?.label??`${k}/${N}`,a=(0,b.XJ)(k),i=a?`${a}/${N}`:r;return(0,w.jsxs)("div",{className:"fv-container",children:[!e&&(0,w.jsx)(C,{activeTile:n,activeTimeframe:t,activeRange:x,activeCurrency:j,type:g}),(0,w.jsx)(u.u,{ticker:`@${n}`,name:i,alertTicker:`@${n}`,flag:{ticker:n,assetClass:s.Hj.Crypto}})]})}return(0,w.jsx)("div",{className:"futures forex flex flex-col",children:(0,w.jsx)(i.j,{config:l.r,activePage:o.b.Charts,timeframes:{link:e=>`${a.A.cryptoCharts}?${(0,d.G)({t:n,p:e,ty:g,r:x,c:j})}`,onClick:()=>{},active:t,timeframes:h.iv},company:c.A.getTile(n)?.label})})}},23901(e,t,n){n.d(t,{o:()=>g,r:()=>f});n(14846),n(94364);var r=n(25384),a=n(9821),s=n(53358),i=n(85670),l=n(22950),o=n(61973),c=n(60120),d=n(32176),u=n(28178),h=n(97960),m=n(10755),p=n(90967);const f={instrument:i.CM.Crypto,timeframeBarTitle:"Crypto",tabs:[{page:u.b.Prices,path:s.A.crypto,label:"Prices"},{page:u.b.Performance,path:s.A.cryptoPerf,label:"Performance",featureDiscoveryTarget:a.sL.CryptoPerformance},{page:u.b.Charts,path:s.A.cryptoCharts,label:"Charts"},{page:u.b.Maps,path:s.A.cryptoMaps,label:"Maps"}],buildTabHref:function(e){const t=(0,c.m)();return`${e}${(Object.keys(t).length>0?"?":"")+(0,c.G)({...t,t:void 0})}`},timeframeBarGroup:e=>e?`${e.split("/").map(l.XJ).join(" / ")} ${e}`:void 0};const g={menu:f,instrumentLabel:"% Crypto",hasMaps:!0,quoteTimeframes:d.iv,defaultQuoteTimeframe:"i5",quotesApiUrl:e=>`/api/crypto_all?${(0,c.G)({timeframe:e,c:(0,c.m)().c})}`,perfApiUrl:()=>{const e=(0,c.G)({c:(0,c.m)().c});return"/api/crypto/performance"+(e?`?${e}`:"")},perfExportUrl:e=>`/export/crypto/performance?${(0,c.G)({sort:e,c:(0,c.m)().c})}`,pricesInitDataId:"crypto-init-data",perfInitDataId:"crypto-perf-init-data",perfTimeframes:p.iN,perfViewCodec:m.SI,perfColumns:p.o5,tickerColumn:{header:"Ticker",format:e=>(0,h.YF)((0,l.ht)(e.ticker)[0])},nameColumn:{header:"Name",format:e=>e.label},chartLabel:e=>(0,l.ht)(e.ticker)[0],priceDecimals:()=>4,getGrid:e=>{return l.tu[(t=e,(0,l.gy)(void 0===t?{}:{c:t}))].map(e=>({tickers:e}));var t},gridColumns:Math.max(...l.tu.USD.map(e=>e.length)),tileSize:"medium",tileLabel:e=>(0,l.ht)(e)[0],tileIcon:e=>{const t=`${(0,l.ht)(e)[0]}_bw`;return(0,r.v)(t)?t:void 0},tileLink:e=>"EURUSD"===e?`${s.A.forex}?p=d1&t=${e}`:`${s.A.crypto}?${(0,c.G)({...(0,c.m)(),p:"d1",t:e})}`,boxoverInstrument:e=>"EURUSD"===e?"forex":"crypto",colorDomains:o.do,perfChartViewSwitch:{currency:l.gy}}},65134(e,t,n){n.d(t,{F:()=>y,g:()=>f});n(14846),n(94364);var r=n(9821),a=n(53358),s=n(85670),i=n(38203),l=n(61973),o=n(60120),c=n(32176),d=n(28178),u=n(97960),h=n(10755),m=n(90967),p=n(62540);const f={instrument:s.CM.Futures,timeframeBarTitle:"Futures",tabs:[{page:d.b.Prices,path:a.A.futures,label:"Price
1s"},{page:d.b.Performance,path:a.A.futuresPerf,featureDiscoveryTarget:r.sL.FuturesPerformance,label:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{className:"hidden [@media(min-width:1070px)]:block",children:"Performance"}),(0,p.jsx)("span",{className:"block [@media(min-width:1070px)]:hidden",children:"Perf."})]})},{page:d.b.Charts,path:a.A.futuresCharts,label:"Charts"},{page:d.b.Maps,path:a.A.futuresMaps,label:"Maps"}],buildTabHref:c.eh,groups:{items:l.TN,chartsPath:a.A.futuresCharts},timeframeBarGroup:(e,t)=>"all"===t?void 0:e},g=l.TN.map(e=>({id:e.ticker.toLowerCase(),label:e.label,sector:e.label})),x=[{category:"indices",tickers:["ES","NQ","YM","ER2","NKD","EX","DY","VX"]},{category:"rates",tickers:["ZQ","SR3","ZT","ZF","ZN","TN","ZB","UB"]},{category:"energy",tickers:["CL","QA","NG","RB","G","HO","NCF","UX"]},{category:"metals",tickers:["GC","SI","PL","PA","HG","ALI","TIO","HRC"]},{category:"grains",tickers:["ZS","ZM","ZL","ZC","ZW","ZR","RS","ZO"]},{category:"softs",tickers:["KC","CC","SB","CT","LB","LC","FC","LH"]},{category:"currencies",tickers:["DX","6E","6J","6B","6C","6S","6A","BTC"]}],y={menu:f,instrumentLabel:"Futures",hasMaps:!0,quoteTimeframes:[{key:i.tV.None,value:(0,p.jsx)("span",{children:"Ø"})},...c.iv],defaultQuoteTimeframe:i.tV.None,quoteTimeframeCookieKey:"finvizFuturesQuotesTimeframe",quotesApiUrl:e=>`/api/futures_all?timeframe=${e}`,perfApiUrl:()=>"/api/futures/performance",perfExportUrl:e=>`/export/futures/performance?${(0,o.G)({sort:e})}`,pricesInitDataId:"futures-init-data",perfInitDataId:"futures-perf-init-data",perfTimeframes:m.iN,perfViewCodec:h.nv,perfColumns:m.o5,tickerColumn:{header:"Ticker",format:e=>(0,u.YF)(e.ticker)},nameColumn:{header:"Name",format:e=>e.label},chartLabel:e=>e.label,priceDecimals:e=>(0,u.Qp)(e.last??0),categories:g,getGrid:()=>x,gridColumns:8,gridMaxWidth:"max(1600px, 100vw - var(--fv-scrollbar-width) - 220px)",chartFitsViewport:!0,tileSize:"compact",tileLink:e=>`${a.A.futures}?p=d&t=${e}`,boxoverInstrument:()=>"futures",colorDomains:l.gx}},94913(e,t,n){n.d(t,{A:()=>h});var r=n(5868),a=n(36982),s=n(26056),i=n(17095),l=n(61973),o="finvizFuturesQuotesTimeframe",c=function(){return"/api/futures_all?timeframe="+i.A.getTimeframe()};let d=null;const u={cancelPending(){const e=d;d=null,e?.cancel?.()},init(e){var t;arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(t=function(e){switch(e){case"m5":return"i5";case"h1":return"h";case"d1":return"d";case"w1":return"w";case"m1":return"m"}return e}((0,l.Ri)(o))||"NO"),s.A.handleViewAction({type:a.Q.INIT,rows:e,timeframe:t})},async update(e){if(e)return u.cancelPending(),void s.A.handleViewAction({type:a.Q.UPDATE_DATA,tiles:e});d?.cancel?.();const t=d=(0,r.AT)(c()),n=await t;n&&t===d&&s.A.handleServerAction({type:a.Q.UPDATE_DATA,tiles:n}
1)},setTimeframe(e){s.A.handleViewAction({type:a.Q.CHANGE_TIMEFRAME_STARTED,period:e})},async changeTimeframe(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];s.A.handleViewAction({type:a.Q.CHANGE_TIMEFRAME_STARTED,period:e}),d?.cancel?.();const n=d=(0,r.AT)(c()),i=await n;i&&n===d&&(s.A.handleServerAction({type:a.Q.UPDATE_DATA,tiles:i}),s.A.handleServerAction({type:a.Q.CHANGE_TIMEFRAME_COMPLETED})),t&&(0,r._$)(o,e).catch(()=>{})}},h=u},58956(e,t,n){n.d(t,{A:()=>m});n(14846),n(94364);var r=n(4452),a=n.n(r),s=n(90152),i=n(63696),l=n(35721),o=n(61973),c=n(62540),d=o.VM.bind(null,o.gx);function u(e){return(0,l.Wo)(e)?Math.abs(e):0}class h extends i.Component{state={hoveredGroup:null};static defaultProps={gap:.5};render(){var e=this.props.data,t=e.map(function(e){return e.label}),n=this.props.width,r=this.props.barHeight||12,i=(r+2*this.props.gap)*e.length,o=100;const h=s.T9B(e,e=>u(e.value))??0,m=32+8*h.toFixed(2).length;var p=s.m4Y().domain([0,h]).range([0,h>0?n-o-m:0]).nice(6),f=p.ticks(6),g=s.WH().domain(t).range([0,(r+2*this.props.gap)*t.length]),x=d(this.props.period,this.props.gradient);e=e.slice().sort(function(e,t){return e.label<t.label?-1:e.label>t.label?1:0});var y={d:"1 Day",w:"1 Week",m:"1 Month",mtd:"Month to date",q:"3 Month",hy:"Half year",y:"1 Year",ytd:"Year to Date"}[this.props.period]+" Performance";return(0,c.jsxs)("div",{className:a()("fv-bar-chart",{"is-horizontal":this.props.isHorizontal,"is-wrapper":this.props.isWrapper}),style:{width:n},children:[(0,c.jsx)("h1",{...this.props.alignHeaderToBars&&{style:{marginLeft:o}},children:y}),(0,c.jsxs)("div",{style:{position:"relative",height:i-1},children:[f.map(e=>(0,c.jsx)("div",{className:"bar-chart_tick",style:{position:"absolute",top:1,left:o+Math.round(p(e))},children:(0,c.jsxs)("div",{children:[e,"%"]})},e)),(0,c.jsx)("div",{className:"bar-chart_top",style:{left:o,width:Math.round(p(f[f.length-1]))}}),(0,c.jsx)("div",{className:"bar-chart_bottom",style:{left:o,width:Math.round(p(f[f.length-1]))}}),e.map(e=>{var t=p(u(e.value))>40,n=Math.round(p(u(e.value))),a={position:"absolute",top:g(e.label)+this.props.gap,left:o,width:n,height:r,...!e.isInactive&&{background:x(e.value)}};return(0,c.jsxs)("div",{style:a,className:"rect "+(e.isInactive?"is-inactive":""),onClick:this._onClick.bind(this,e),children:[(0,c.jsxs)("div",{className:"value"+(t?"":" is-outside"),style:{left:t?0:n+4,color:t?"#fff":x(e.value)},children:[(0,c.jsx)("span",{children:(0,l.Wo)(e.value)&&e.value>0?"+":""}),(0,c.jsx)("span",{children:(0,l.Wo)(e.value)?e.value.toFixed(2):l.M_})]}),(0,c.jsx)("div",{className:"label",children:e.label})]},e.label)})]}),(0,c.jsx)("br",{}),(0,c.jsx)("br",{})]})}_onClick=(e,t)=>{t.preventDefault(),this.props.onClick?.(e)}}const m=h},50708(e,t,n){n.d(t,{Y:()=>le});n(14846),n(27458),n(69655),n(94364);var r=n(63696),a=n(7470),s=n(61268),i=n(11672),l=n(5868),o=n(53358),c=n(85670),d=n(35721),u=n(75377),h=n(45602),m=n(67474),p=n(65134),f=n(28178),g=n(56894),x=n(60120),y=n(63059),v=n(88518),b=n(3814),w=n(32176),j=n(47725),C=n(92173),k=n(94913),N=n(58956),A=n(4452),T=n.n(A),S=n(30241),M=n(23319),E=n(62540);function P(e){let{activeGroup:t,activeTile:n,activeTimeframe:a,activeRange:s,type:i}=e;const[l,c]=r.useState(M.A.getTilesInGroup(t));r.useEffect(()=>{const e=()=>c(M.A.getTilesInGroup(t));return e(),M.A.addChangeListener(e),()=>M.A.removeChangeListener(e)},[t]);return(0,E.jsx)("div",{className:"chart-menu",children:(0,E.jsx)("div",{className:"chart-menu_charts",children:l.map(e=>{return(0,E.jsxs)("a",{className:T()("chart-menu_chart-preview",{"is-active":e.ticker===n}),href:(t=e.ticker,`${o.A.futures}?${(0,x.G)({t,p:a,ty:i,r:s})}`),children:[(0,E.jsx)("span",{children:e.label}),(0,E.jsx)(S.A,{width:88,height:28,data:e.sparkline})]},e.ticker);var t})})})}var L=n(38203),_=n(61973),F=n(12834);function D(e){let{width:t=5,height:n=6,...r}=e;return(0,E.jsx)(F.t,{...r,width:t,height:n,viewBox:"0 0 5 6",children:(0,E.jsx)("path",{d:"M5 6 1.4 3.9a1 1 0 0 1 0-1.8L5 0v6Z"})})}const I={text:"text-gray-400",border:"border-gray-400",background:"bg-gray-400"},R={indices:I,rates:{text:"text-blue-400",border:"border-blue-400",background:"bg-blue-400"},energy:{text:"text-violet-400",border:"border-violet-400",background:"bg-violet-400"},softs:{text:"text-teal-300",border:"border-teal-300",background:"bg-teal-300"},metals:{text:"text-yellow-200",border:"border-yellow-200",background:"bg-yellow-200"},grains:{text:"text-orange-300",border:"border-orange-300",background:"bg-orange-300"},currencies:{text:"text-purple-300",border:"border-purple-300",background:"bg-purple-300"}};function z(e){return R[e]??I}function O(e){let{groupName:t,groupLabel:n,color:r}=e;return(0,E.jsx)("div",{className:T()("font-sans text-2xs font-semibold xl:text-sm",{"text-gray-500":!r,[z(t).text]:r}),children:n})}function V(e){let{groupName:t,groupLabel:n,color:r}=e;return(0,E.jsx)("div",{className:T()("absolute top-0 -left-5 rotate-180 font-sans text-2xs font-medium whitespace-nowrap",{"text-gray-500 dark:text-gray-400":!r,[z(t).text]:r}),style:{writingMode:"vertical-lr"},children:n})}function U(e){let{groupName:t,groupLabel:n}=e;return(0,E.jsxs)("div",{className:"flex items-center font-sans text-2xs font-medium text-gray-600 xl:text-sm",children:[n,(0,E.jsx)("div",{className:T()(z(t).background,"ml-2 h-1 flex-1")})]})}function H(e){let{groupName:t,groupLabel:n}=e;return(0,E.jsxs)("div",{className:"flex items-baseline px-2 font-sans text-2xs font-medium text-gray-600 xl:text-sm",children:[n,(0,E.jsx)("div",{className:T()(z(t).border,"ml-2 h-1.5 flex-1 border-t-2 border-r-2")})]})}var G=n(68550),$=n.n(G),Q=n(96288),B=n(59672);function W(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var n=M.A.getTile(e),r=M.A.getTilesGroup(n.ticker).toLowerCase();return{...n,group:r,width:t}}class q extends r.Component{state=(()=>W(this.props.ticker))();resizeObserver;
1containerRef=(()=>r.createRef())();componentDidMount(){M.A.addChangeListener(this._onChange);const e=this.containerRef.current;e&&this.state.sparkline&&this.setState({width:e.getBoundingClientRect().width},()=>{this.resizeObserver=new ResizeObserver($()(e=>{let[t]=e;this.setState({width:t.contentRect.width})},100)),this.resizeObserver.observe(e)})}componentWillUnmount(){M.A.removeChangeListener(this._onChange),this.resizeObserver?.disconnect()}_onChange=()=>{this.setState(W(this.props.ticker,this.state.width))};render(){const{colorScale:e,children:t,showSparkline:n}=this.props;var{ticker:r,width:a,label:s,last:i,change:l,high:c,low:u,sparkline:h,sparklineDateChanges:m}=this.state;const p=this.state.changeUsd??0;var f=e=>(0,d.Wo)(e)?(e>=0?"+":"")+e.toFixed(2):d.M_,g=i>6?2:4,x=(e,t)=>(0,d.Wo)(e)?(e>=0&&t||"")+(+(Math.round(Number(e+"e+"+g))+"e-"+g)).toFixed(g):d.M_,y=.1*(c-u),v=i>c-y,b=i<u+y;const w=e(l),j={"data-boxover-ticker":"@"+r.toLowerCase(),"data-boxover-wiim-instrument":"futures"};return n?(0,E.jsxs)("a",{ref:this.containerRef,className:"w-full overflow-hidden font-sans text-3xs font-semibold text-white hover:z-10 hover:rounded hover:text-white hover:outline hover:outline-2 hover:outline-yellow-200",href:o.A.futures+"?p=d&t="+r,style:{backgroundColor:w},...j,children:[t,(0,E.jsxs)("div",{className:"w-full p-1 whitespace-nowrap",children:[(0,E.jsxs)("div",{className:"flex w-full items-baseline justify-between overflow-hidden drop-shadow-tile-small ldpi:drop-shadow-tile-small-ldpi",children:[(0,E.jsx)("div",{className:"grow truncate text-3xs leading-[1.1] uppercase",children:s}),(0,E.jsxs)("div",{className:"flex shrink-0 items-center pl-1 leading-[1.1] tabular-nums",children:[(0,E.jsx)("span",{children:x(p,"+")}
1),(0,E.jsx)(Q.I,{name:"triangle",width:8,className:T()("ml-0.5 opacity-80",{"rotate-180":p<0})})]})]}),(0,E.jsxs)("div",{className:"flex items-center justify-between",children:[(0,E.jsx)("div",{className:"text-2xs font-semibold drop-shadow-tile-big xl:text-base xl:leading-tight",children:x(i)}),(0,E.jsxs)("div",{className:"flex shrink-0 items-center pl-1 text-2xs leading-none font-semibold drop-shadow-tile-big xl:text-base xl:leading-tight",children:[f(l),(0,d.Wo)(l)&&"%"]})]})]}),(0,E.jsx)("div",{className:"w-full overflow-hidden pb-0.5 opacity-[0.62]",children:n&&(0,E.jsx)(B.A,{width:Math.ceil(a),height:42,data:h,dateChanges:m,change:l,changeDomain:1.3,changeOpacity:!1,shadow:!0})})]}):(0,E.jsxs)("a",{className:"flex w-full flex-col items-start p-1 font-sans text-3xs font-semibold text-white hover:z-10 hover:rounded hover:text-white hover:outline hover:outline-2 hover:outline-yellow-200",href:o.A.futures+"?p=d&t="+r,style:{backgroundColor:w},...j,children:[t,(0,E.jsx)("div",{className:"leading-none uppercase drop-shadow-tile-small xl:text-2xs xl:leading-none ldpi:drop-shadow-tile-small-ldpi",children:s}),(0,E.jsx)("div",{className:"text-xl font-semibold drop-shadow-tile-big xl:text-2xl",children:x(i)}),(0,E.jsxs)("div",{className:"w-full leading-none whitespace-nowrap tabular-nums xl:mt-0.5",children:[(0,E.jsxs)("div",{className:"flex items-center justify-between font-semibold",children:[(0,E.jsxs)("div",{className:T()("-mx-0.5 rounded-sm p-0.5",{"drop-shadow-tile-small ldpi:drop-shadow-tile-small-ldpi":!v,"bg-yellow-200":v}),children:[(0,E.jsx)("span",{className:T()("inline-block w-2.5 pr-0.5 font-normal",{"text-gray-600":v}),children:"H"}),(0,E.jsx)("span",{className:T()({"text-gray-800":v}),children:x(c)})]}),(0,E.jsxs)("div",{className:"flex items-center drop-shadow-tile-small ldpi:drop-shadow-tile-small-ldpi",children:[(0,E.jsx)("span",{children:x(p,"+")}
1),(0,E.jsx)(Q.I,{name:"triangle",width:8,className:T()("ml-0.5 opacity-80",{"rotate-180":p<0})})]})]}),(0,E.jsxs)("div",{className:"flex items-center justify-between font-semibold",children:[(0,E.jsxs)("div",{className:T()("-mx-0.5 rounded-sm p-0.5",{"drop-shadow-tile-small ldpi:drop-shadow-tile-small-ldpi":!b,"bg-yellow-200":b}),children:[(0,E.jsx)("span",{className:T()("inline-block w-2.5 pr-0.5 font-normal",{"text-gray-600":b}),children:"L"}),(0,E.jsx)("span",{className:T()({"text-gray-800":b}),children:x(u)})]}),(0,E.jsxs)("div",{className:"flex shrink-0 items-center drop-shadow-tile-small ldpi:drop-shadow-tile-small-ldpi",children:[f(l)," ",(0,E.jsx)("span",{className:"ml-0.5 w-2",children:(0,d.Wo)(l)&&"%"})]})]})]})]})}}function K(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var n=M.A.getTile(e),r=M.A.getTilesGroup(n.ticker).toLowerCase();return{...n,group:r,width:t}}class Y extends r.Component{state=(()=>K(this.props.ticker))();resizeObserver;containerRef=(()=>r.createRef())();componentDidMount(){M.A.addChangeListener(this._onChange);const e=this.containerRef.current;e&&this.state.sparkline&&this.setState({width:e.getBoundingClientRect().width},()=>{this.resizeObserver=new ResizeObserver($()(e=>{let[t]=e;this.setState({width:t.contentRect.width})},100)),this.resizeObserver.observe(e)})}componentWillUnmount(){M.A.removeChangeListener(this._onChange),this.resizeObserver?.disconnect()}_onChange=()=>{this.setState(K(this.props.ticker,this.state.width))};render(){const{colorScale:e,children:t,showSparkline:n}=this.props;var{ticker:r,width:a,label:s,last:i,change:l,high:c,low:u,sparkline:h,sparklineDateChanges:m}=this.state;const p=this.state.changeUsd??0;var f=e=>(0,d.Wo)(e)?(e>=0?"+":"")+e.toFixed(2)+"%":d.M_,g=i>6?2:4,x=(e,t)=>(0,d.Wo)(e)?(e>=0&&t||"")+(+(Math.round(Number(e+"e+"+g))+"e-"+g)).toFixed(g):d.M_,y=.1*(c-u),v=i>c-y,b=i<u+y;const w=e(l),j={"data-boxover-ticker":"@"+r.toLowerCase(),"data-boxover-wiim-instrument":"futures"};return n?(0,E.jsxs)("a",{ref:this.containerRef,className:"font-3xs w-full overflow-hidden font-sans text-3xs font-medium text-white hover:text-white",href:o.A.futures+"?p=d1&t="+r,style:{backgroundColor:w,textShadow:"1px 1px 0px rgba(34, 38, 47, 0.8)"},...j,children:[t,(0,E.jsxs)("div",{className:"w-full p-1 whitespace-nowrap xl:p-1.5 xl:pb-1",children:[(0,E.jsxs)("div",{className:"flex w-full items-baseline justify-between overflow-hidden",children:[(0,E.jsx)("div",{className:"grow truncate leading-none uppercase xl:text-2xs xl:leading-none",children:s}),(0,E.jsx)("div",{className:"shrink-0 pl-1 leading-none",children:x(p,"+")}
1)]}),(0,E.jsxs)("div",{className:"flex items-center justify-between",children:[(0,E.jsx)("div",{className:"text-xs font-semibold xl:text-base",children:x(i)}),(0,E.jsxs)("div",{className:"pl-1 leading-none",children:["(",f(l),")"]})]})]}),(0,E.jsx)("div",{className:"w-full overflow-hidden",children:n&&(0,E.jsx)(B.A,{width:Math.ceil(a),height:58,data:h,dateChanges:m,change:l,changeDomain:1.3,changeOpacity:!1,shadow:!0},a)})]}):(0,E.jsxs)("a",{className:"flex w-full flex-col items-start p-1 font-sans text-3xs font-medium text-white hover:text-white xl:p-1.5 xl:pb-1",href:o.A.futures+"?p=d1&t="+r,style:{backgroundColor:w,textShadow:"1px 1px 0px rgba(34, 38, 47, 0.8)"},...j,children:[t,(0,E.jsx)("div",{className:"leading-none uppercase xl:text-2xs xl:leading-none",children:s}),(0,E.jsx)("div",{className:"text-xl font-semibold xl:text-2xl",children:x(i)}),(0,E.jsxs)("span",{className:"text-2xs font-medium",children:[x(p,"+")," (",f(l),")"]}),(0,E.jsxs)("div",{className:"flex w-full flex-col items-start leading-none tabular-nums",children:[(0,E.jsxs)("div",{className:T()("-mx-0.5 rounded-sm p-0.5",{"bg-yellow-200":v}),style:v?{textShadow:"none"}:void 0,children:[(0,E.jsx)("span",{className:T()("inline-block w-2.5 pr-0.5 font-normal",{"text-gray-600":v}),children:"H"}),(0,E.jsx)("span",{className:T()({"text-gray-800":v}),children:x(c)})]}),(0,E.jsxs)("div",{className:T()("-mx-0.5 rounded-sm p-0.5",{"bg-yellow-200":b}),style:b?{textShadow:"none"}:void 0,children:[(0,E.jsx)("span",{className:T()("inline-block w-2.5 pr-0.5 font-normal",{"text-gray-600":b}),children:"L"}),(0,E.jsx)("span",{className:T()({"text-gray-800":b}),children:x(u)})]})]})]})}}var Z=n(21342),J=n.n(Z);function X(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var n=M.A.getTile(e),r=M.A.getTilesGroup(n.ticker).toLowerCase();return{...n,group:r,width:t}}class ee extends r.Component{state=(()=>X(this.props.ticker))();resizeObserver;containerRef=(()=>r.createRef())();componentDidMount(){M.A.addChangeListener(this._onChange);const e=this.containerRef.current;e&&this.state.sparkline&&this.setState({width:e.getBoundingClientRect().width},()=>{this.resizeObserver=new ResizeObserver($()(e=>{let[t]=e;this.setState({width:t.contentRect.width})},100)),this.resizeObserver.observe(e)})}componentWillUnmount(){M.A.removeChangeListener(this._onChange),this.resizeObserver?.disconnect()}_onChange=()=>{this.setState(X(this.props.ticker,this.state.width))};render(){const{colorScale:e,children:t,showSparkline:n}=this.props;var{ticker:r,width:a,label:s,last:i,change:l,high:c,low:u,sparkline:h,sparklineDateChanges:m}=this.state;const p=this.state.changeUsd??0;var f=e=>(0,d.Wo)(e)?(e>=0?"+":"")+e.toFixed(2)+"%":d.M_,g=i>6?2:4,x=(e,t)=>(0,d.Wo)(e)?(e>=0&&t||"")+(+(Math.round(Number(e+"e+"+g))+"e-"+g)).toFixed(g):d.M_,y=.1*(c-u),v=i>c-y,b=i<u+y;const w=e(l),j={"data-boxover-ticker":"@"+r.toLowerCase(),"data-boxover-wiim-instrument":"futures"};return n?(0,E.jsxs)("a",{className:"font-3xs flex w-full overflow-hidden font-sans text-3xs font-medium",href:o.A.futures+"?p=d1&t="+r,...j,children:[t,(0,E.jsx)("div",{className:"w-1 shrink-0 xl:w-1.5",style:{backgroundColor:w}}),(0,E.jsxs)("div",{ref:this.containerRef,className:"w-full overflow-hidden",style:{backgroundColor:`${w}14`},children:[(0,E.jsxs)("div",{className:"w-full p-1 whitespace-nowrap xl:p-1.5 xl:pb-1",children:[(0,E.jsxs)("div",{className:"flex w-full items-baseline justify-between overflow-hidden",children:[(0,E.jsx)("div",{className:"truncate leading-none text-gray-600 uppercase xl:text-2xs xl:leading-none",children:s}),(0,E.jsx)("div",{className:T()("shrink-0 pl-1 leading-none",{"text-green-500":p>=0,"text-red-500":p<0}),children:x(p,"+")}
1)]}),(0,E.jsxs)("div",{className:"flex items-center justify-between",children:[(0,E.jsx)("div",{className:"text-xs font-semibold xl:text-base",children:x(i)}),(0,E.jsxs)("div",{className:T()("pl-1 leading-none",{"text-green-500":(0,d.Wo)(l)&&l>=0,"text-red-500":(0,d.Wo)(l)&&l<0}),children:["(",f(l),")"]})]})]}),(0,E.jsx)("div",{className:"w-full overflow-hidden",children:n&&(0,E.jsx)(B.A,{width:Math.ceil(a),height:40,data:h,dateChanges:m,change:l,changeDomain:1.3,changeOpacity:!1,lineColor:J().green[500],textColor:J().gray[500]},a)})]})]}):(0,E.jsxs)("a",{className:"flex w-full font-sans text-3xs font-medium",href:o.A.futures+"?p=d1&t="+r,...j,children:[t,(0,E.jsx)("div",{className:"w-1 shrink-0 xl:w-1.5",style:{backgroundColor:w}}),(0,E.jsxs)("div",{className:"flex-1 p-1 xl:p-1.5 xl:pb-1",style:{backgroundColor:`${w}14`},children:[(0,E.jsx)("div",{className:"leading-none text-gray-600 uppercase xl:text-2xs xl:leading-none",children:s}),(0,E.jsx)("div",{className:"text-xl font-semibold text-gray-800 xl:text-2xl",children:x(i)}),(0,E.jsxs)("div",{className:"leading-none tabular-nums",children:[(0,E.jsxs)("div",{className:"flex items-center justify-between",children:[(0,E.jsxs)("div",{className:T()("-mx-0.5 rounded-sm p-0.5 text-gray-600 xl:text-2xs xl:leading-3",{"bg-yellow-200":v}),children:[(0,E.jsx)("span",{className:T()("inline-block w-2.5 pr-0.5 font-normal",{"text-gray-500":!v,"text-gray-600":v}),children:"H"}),(0,E.jsx)("span",{className:T()({"text-gray-600":!v,"text-gray-800":v}),children:x(c)})]}),(0,E.jsx)("div",{className:T()({"text-green-500":p>=0,"text-red-500":p<0}),children:x(p,"+")}
1)]}),(0,E.jsxs)("div",{className:"flex items-center justify-between",children:[(0,E.jsxs)("div",{className:T()("-mx-0.5 rounded-sm p-0.5 text-gray-600 xl:text-2xs xl:leading-3",{"bg-yellow-200":b}),children:[(0,E.jsx)("span",{className:T()("inline-block w-2.5 pr-0.5 font-normal",{"text-gray-500":!b,"text-gray-600":b}),children:"L"}),(0,E.jsx)("span",{className:T()("leading-none",{"text-gray-600":!b,"text-gray-800":b}),children:x(u)})]}),(0,E.jsx)("div",{className:T()({"text-green-500":(0,d.Wo)(l)&&l>=0,"text-red-500":(0,d.Wo)(l)&&l<0}),children:f(l)})]})]})]})]})}}const te=(0,_.VM)(_.gx,"d",b.Vl);function ne(e){const t=function(e){switch(e){case L.Aw.Map:return Y;case L.Aw.MapCondensed:return q;default:return ee}}(e.tileStyle),n=function(e){switch(e){case L.UQ.Plain:case L.UQ.PlainColor:return O;case L.UQ.Side:case L.UQ.SideColor:return V;case L.UQ.Line:return U;case L.UQ.LineWithEnding:return H;default:return()=>null}}(e.labelStyle);return(0,E.jsx)("div",{className:T()("grid grid-cols-8 gap-px bg-gray-100 dark:bg-finviz-blue-gray",{"ml-5":[L.UQ.Side,L.UQ.SideColor].includes(e.labelStyle)}),children:_.Zp.map((r,a)=>{const s=r.filter(e=>M.A.getTilesGroup(e));if(0===s.length)return null;const i=M.A.getTilesGroup(s[0]).toLowerCase(),l=M.A.getGroupLabel(i);return(0,E.jsxs)("div",{className:"relative col-span-8",children:[(0,E.jsx)(n,{groupLabel:l,groupName:i,color:[L.UQ.PlainColor,L.UQ.SideColor].includes(e.labelStyle)}),(0,E.jsx)("div",{className:"grid h-full grid-cols-8 gap-px",children:s.map(n=>(0,E.jsx)(t,{ticker:n,colorScale:te,showSparkline:e.showSparkline,children:(0,E.jsx)(D,{className:T()("absolute left-0 rotate-180 text-gray-50 dark:text-finviz-blue-gray",{"top-3.5 xl:top-4":e.activeTimeframe===L.tV.None,"top-8 xl:top-8":e.activeTimeframe!==L.tV.None})})},`${n}-${e.showSparkline}`))})]},a)})})}var re=n(17095);function ae(){return{activeTimeframe:re.A.getTimeframe(),rows:re.A.getRows()}}class se extends r.Component{state=(()=>ae())();componentDidMount(){re.A.addChangeListener(this._onChange),this.refreshUnsubscribe=(0,v.u)({interval:i.uV},k.A.update)}componentWillUnmount(){re.A.removeChangeListener(this._onChange),this.refreshUnsubscribe()}_onChange=()=>{this.setState(ae())};render(){const{activeTimeframe:e,rows:t}=this.state;var n={link:e=>(0,w.aM)(o.A.futures,e),onClick:(e,t)=>{t.preventDefault(),(0,w.af)(e),k.A.changeTimeframe(e)},active:e,timeframes:[{key:L.tV.None,value:(0,E.jsx)("span",{children:"Ø"})},...w.iv]};return(0,E.jsxs)("div",{className:"futures flex flex-col",children:[(0,E.jsx)(u.j,{config:p.g,activePage:f.b.Prices,timeframes:n}),(0,E.jsx)(ne,{activeTimeframe:n.active,showSparkline:"NO"!==e,labelStyle:L.UQ.Side,tileStyle:L.Aw.MapCondensed}),(0,E.jsx)("div",{className:"perf-chart-container mt-7",children:(0,E.jsx)(N.A,{width:740,data:t,onClick:this._onBarClick,period:"d",gap:1,gradient:b.Vl,isWrapper:!0})})]})}_onBarClick=e=>{var t=M.A.getTilesList().filter(function(t){return t.label===e.label})[0].ticker;window.open(`${o.A.futures}?t=${t}&p=d`)}}class ie extends r.Component{state={rows:this.props.rows,hoveredGroup:null};componentDidMount(){this.refreshUnsubscribe=(0,v.u)({interval:i.uV},async()=>{const e=await(0,l.AT)(`/api/futures_perf${window.location.search}`);e&&this.setState({rows:e})})}componentWillUnmount(){this.refreshUnsubscribe()}render(){var e=((0,x.m)().v||"11").substring(1,2),t={d:1,w:2,m:3,mtd:8,q:4,hy:5,y:6,ytd:7},n={};Object.keys(t).forEach(e=>{n[t[e].toString()]=e});var r={link:e=>(0,w.ew)(o.A.futuresPerf,"1"+t[e]),onClick:()=>{},active:e&&n[e],timeframes:[{key:"d",value:"D",title:"Day"},{key:"w",value:"W",title:"Week"},{key:"m",value:"M",title:"Month"},{key:"mtd",value:"MTD",title:"Month to Date"},{key:"q",value:"Q",title:"Quarter"},{key:"hy",value:"HY",title:"Half Year"},{key:"y",value:"Y",title:"Year"},{key:"ytd",value:"YTD",title:"Year To Date"}]},a=this.state.hoveredGroup,s=this.state.rows.map(function(e){return{label:e.label,value:e.perf,isInactive:null!==a&&a!==e.group}}).sort(d.n);return(0,E.jsxs)("div",{className:"futures flex flex-col",children:[(0,E.jsx)(u.j,{config:p.g,activePage:f.b.Performance,timeframes:r,onGroupMouseEnter:e=>{this.setState({hoveredGroup:e})},onGroupMouseLeave:()=>{this.setState({hoveredGroup:null})}}),(0,E.jsx)("div",{className:"perf-chart-container",children:(0,E.jsx)(N.A,{width:740,data:s,onClick:this._onBarClick,period:n[e],gradient:b.Vl,isWrapper:!0})})]})}_onBarClick=e=>{var t=this.state.rows.filter(function(t){return t.label===e.label})[0].ticker;window.open(`${o.A.futures}?t=${t}&p=d`)}}function le(){const e=(0,s.K)(),{timeframe:t,ticker:n,type:r,dateRange:a}=(0,C.J)(e=>{k.A.changeTimeframe(e,!1)});let i=n,l=i===C.S||i.length>3;l||M.A.getTilesGroup(i)||(i=C.S,l=!0);const h=(l?i:M.A.getTilesGroup(i)).toLowerCase();if((0,j.h)("Futures",l?i===C.S?"":M.A.getGroupLabel(i):M.A.getTile(i)?.label??i,t,!l),l)return(0,E.jsx)("div",{className:"futures flex flex-col",children:(0,E.jsx)(u.j,{
1config:p.g,activePage:f.b.Charts,activeGroup:h,activeRange:a,isCategoryFilterEnabled:(0,d.wX)(c.TO.FuturesForexCryptoRedesign),groupTimeframe:t,timeframes:{link:e=>`${o.A.futuresCharts}?${(0,x.G)({t:i,p:e,ty:r,r:a})}`,onClick:()=>{},active:t,timeframes:w.iv},type:r,company:M.A.getTile(i)?.label})});const m=M.A.getTile(i)?.label;return(0,E.jsxs)("div",{className:"fv-container",children:[!e&&(0,E.jsx)(P,{activeGroup:h,activeTile:i,activeTimeframe:t,activeRange:a,type:r}),(0,E.jsx)(y.u,{ticker:`@${i}`,name:m,alertTicker:`@${i}`,flag:{ticker:i,assetClass:c.Hj.Futures}})]})}window.FinvizInitFutures=function(e){window.FinvizInitFutures=()=>{0};if((0,g.a)("futures",p.F.pricesInitDataId,e=>(0,E.jsx)(m.M,{config:p.F,initialTiles:e})))return;k.A.init(e,!0),(0,w.H7)(w.L8,re.A.getTimeframe(),e=>{k.A.setTimeframe(e)});a.createRoot(document.getElementById("futures")).render((0,E.jsx)(se,{}))},window.dispatchEvent(new Event("Finviz:FinvizInitFutures")),window.FinvizInitFuturesPerformance=function(e){window.FinvizInitFuturesPerformance=()=>{0};(0,g.a)("futures",p.F.perfInitDataId,e=>(0,E.jsx)(h.S,{config:p.F,initialPayload:e}))||a.createRoot(document.getElementById("futures")).render((0,E.jsx)(ie,{rows:e}))},window.dispatchEvent(new Event("Finviz:FinvizInitFuturesPerformance")),window.RowsStore=re.A,window.TilesStore=M.A},38857(e,t,n){n.d(t,{N:()=>i});var r=n(78325),a=n(65227),s=n(62540);function i(e){return(0,s.jsx)(a.pg,{flushSync:r.flushSync,...e})}},63640(e,t,n){n.d(t,{O:()=>d,v:()=>u});n(14846),n(94364);var r=n(4452),a=n.n(r),s=n(63696),i=n(26237),l=n(78898),o=n(16745),c=n(62540);function d(e){let{children:t,label:n,size:r,rounding:d,disabledTooltip:u}=e;return(0,c.jsxs)("div",{className:"flex items-center gap-0.5",children:[n&&(0,c.jsx)(o.fz,{size:"small",className:"pr-1 font-medium text-disabled",children:n}),s.Children.map(t,e=>{if(s.isValidElement(e)&&e.type===l.$n){const t=s.cloneElement(e,{size:r,rounding:d,theme:e.props.theme??"chipTransparent",className:a()(e.props.className,{"!text-muted-2":!e.props.disabled&&!e.props.active,"!text-default":!e.props.disabled&&e.props.active,"!text-disabled ":e.props.disabled&&!e.props.active,"!text-disabled !bg-gray-200/30 !border-gray-100 dark:!bg-gray-600/30 dark:!border-gray-500":e.props.disabled&&e.props.active})});return u&&e.props.disabled?(0,c.jsx)(i.k,{text:u,settings:{placement:"bottom"},children:(0,c.jsx)("span",{className:"inline-flex",children:t})}):t}return e})]})}const u=l.$n},24303(e,t,n){n.d(t,{A:()=>b});n(14846),n(27458),n(94364),n(75568),n(5673),n(30164),n(21279);var r=n(4452),a=n.n(r),s=n(63696),i=n(78325),l=n(48343),o=n(23181);var c=n(78898),d=n(26373),u=n(96288),h=n(22654),m=n(19510),p=n(4515),f=n(23834),g=n(7437),x=n(62540);function y(e){const t=(0,g.XN)(new URLSearchParams(window.location.search).get("flag"));t.length&&!t.some(t=>(0,g.g)(e,t))&&window.location.reload()}function v(e){let{element:t,ticker:n,flagColor:r,alignRight:s,persistent:o,placement:p}=e;const v=(0,h.D_)({placement:p}),b=(0,d.O$)(v,"open"),{color:w,saveColor:j,clearColor:C}=(0,f.H)(n,r),k=(0,l.o)(async e=>{v.setOpen(!1),await j(e),y(e)}),N=(0,l.o)(async()=>{v.setOpen(!1),await C(),y(null)});return(0,x.jsxs)(x.Fragment,{children:[(0,i.createPortal)((0,x.jsx)(c.$n,{ref:e=>{e&&t.replaceChildren(e)},as:h.Wv,state:v,size:"none",appearance:"square",rounding:"none",theme:"transparent",padding:"none",className:a()("size-full transition-opacity duration-150",(0,g.lB)({color:w,isOpen:b,alwaysVisible:s||o}),{"-mr-0.5 justify-end":s,"-ml-0.5 justify-start":!s}),children:(0,x.jsx)(u.I,{name:"tickerFlag",className:"-rotate-90",width:18})}),t,`flag-btn-${n}`),(0,x.jsx)(h.AM,{overflowVisible:!0,state:v,children:(0,x.jsx)(m.I,{color:w,onSelect:k,onClear:N})})]})}function b(){let{selector:e="[data-ticker]",persistent:t=!1,placement:n="right"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(0,l.o)(e);(0,o.y)(()=>{const e=()=>n(Date.now());return t&&e(),window.addEventListener("html-refresh",e),()=>window.removeEventListener("html-refresh",e)})}
1((0,s.useState)(()=>Date.now())[1]);const r=Array.from(document.querySelectorAll(e)).map(e=>{const t=e.dataset.ticker;return t?{element:e,ticker:t,flagColor:(0,p.nT)(e.dataset.flagColor),alignRight:"right"===e.dataset.flagAlign}:null}).filter(e=>null!==e);return(0,x.jsx)(x.Fragment,{children:r.map(e=>(0,x.jsx)(v,{element:e.element,ticker:e.ticker,flagColor:e.flagColor,alignRight:e.alignRight,persistent:t,placement:n},e.ticker))})}},66647(e,t,n){n.d(t,{_:()=>l});n(66184),n(90769);var r=n(63696),a=n(65227),s=n(62540);const i="rr-scroll-positions";function l(){const e=(0,a.zy)(),t=r.useMemo(()=>{const t="default"===e.key?Math.random().toString(16):e.key;return 0!==window.scrollY&&function(e){let t={};try{t=JSON.parse(sessionStorage.getItem(i))}finally{sessionStorage.setItem(i,JSON.stringify({...t,[e]:window.scrollY}))}}(t),t},[e.key]);return(0,s.jsx)(a.OA,{storageKey:i,getKey:()=>t})}},61774(e,t,n){n.d(t,{U:()=>u,y:()=>h});var r=n(4452),a=n.n(r),s=n(63696),i=n(13695),l=n(70106),o=n(34648),c=n(4530),d=n(62540);function u(e){let{c
1olor:t="blue",...n}=e;const r="function"==typeof t?t(n.value,n.payload):t,s=c.yi[r]??c.yi.blue;return(0,d.jsx)(i.M,{...n,className:a()(n.className,"fill-current",s)})}class h extends s.Component{static getComposedData=(()=>l.y.getComposedData)();static displayName=(()=>l.y.displayName)();static contextType=(()=>o.lo)();static defaultProps={...l.y.defaultProps,radius:[2,2,0,0],activeBar:!1,isAnimationActive:!1};render(){const{setActiveKey:e}=this.context,{color:t,shape:n=u,...r}=this.props;return(0,d.jsx)(l.y,{...r,fill:null,shape:n?s.createElement(n,{color:t}):void 0,onMouseEnter:()=>{e(r.dataKey)},onMouseLeave:()=>{e(null)}})}}},55735(e,t,n){n.d(t,{d:()=>o});var r=n(4452),a=n.n(r),s=(n(63696),n(49543)),i=n(4530),l=n(62540);function o(e){let{vertical:t=!1,...n}=e;return(0,l.jsx)(s.d,{...n,vertical:t,stroke:null,strokeDasharray:"3 3",className:a()(n.className,i.oO)})}o.displayName=s.d.displayName},34648(e,t,n){n.d(t,{_x:()=>o,lo:()=>i,uR:()=>l});var r=n(63696),a=n(36409),s=n(62540);const i=r.createContext({isTooltipActive:!0,activeKey:null,setActiveKey:()=>{}});function l(e){let{isHoverHighlight:t=!0,...n}=e;const[a,l]=r.useState(!1),[o,c]=r.useState(null),d=r.useMemo(()=>({isTooltipActive:a,activeKey:o,setActiveKey:t?c:()=>{}}),[o,t,a]);return(0,s.jsx)("div",{...n,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:(0,s.jsx)(i.Provider,{value:d,children:n.children})})}function o(e){let{isHoverHighlight:t,...n}=e;return(0,s.jsx)(l,{isHoverHighlight:t,children:(0,s.jsx)(a.u,{width:"100%",...n})})}},70323(e,t,n){n.d(t,{E:()=>l,V:()=>o});var r=n(63696),a=n(13695),s=n(34648),i=n(62540);function l(e){let{numberOfDatapoints:t,points:n,x:l,y:o,...c}=e;const{isTooltipActive:d}=r.useContext(s.lo);if(!d)return null;const u=t?c.width/t:c.width,h=l??n[0].x-u/2,m=o??n[0].y;return(0,i.jsx)(a.M,{...c,x:h,y:m,width:u,className:"fill-gray-50/65 stroke-none dark:fill-gray-700/65"})}function o(e){let{points:t,x:n,y:l,...o}=e;const{isTooltipActive:c}=r.useContext(s.lo);if(!c)return null;const d=n??t[0].x-1,u=l??t[0].y;return(0,i.jsx)(a.M,{...o,x:d,y:u,width:1,className:"fill-gray-500 stroke-none dark:fill-gray-300"})}},90147(e,t,n){n.d(t,{N:()=>c});var r=n(4452),a=n.n(r),s=n(63696),i=n(96195),l=n(4530),o=n(62540);class c extends s.Component{static getComposedData=(()=>i.N.getComposedData)();static displayName=(()=>i.N.displayName)();static defaultProps={...i.N.defaultProps,type:"linear",dot:!1,activeDot:!1,isAnimationActive:!1,connectNulls:!1,stroke:null};render(){const{color:e="blue",...t}=this.props;return(0,o.jsx)(i.N,{...t,stroke:null,className:a()(t.className,"fill-current stroke-current",l.yi[e])})}}},80672(e,t,n){n.d(t,{GG:()=>h,HT:()=>p,mW:()=>u,m_:()=>m});n(14846),n(6211),n(94364);var r=n(4452),a=n.n(r),s=n(63696),i=n(99539),l=n(34648),o=n(70323),c=n(4530),d=n(62540);function u(e){let{isActive:t,indicator:n,label:r,dataKey:i,dataKeyPayload:l,fullTooltipPayload:o,formatValue:u,indicatorClass:h,labelClass:m,valueClass:p,isChartSeriesDataKey:f=!0}=e;const g=f?l?.value:o?.[0]?.payload?.[i],x={dataKey:i,payload:f?l??{}:o?.[0]?.payload,fullTooltipPayload:o},y="function"==typeof r?r(g,x):r,v=u?.(g,x)??g;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:a()(h,{"mr-2":!!n}),children:!n||s.isValidElement(n)?n:(0,d.jsx)("div",{className:a()("relative -top-px h-1.5 w-1.5 rounded-full bg-current",c.yi[n]??c.yi.blue)})}),(0,d.jsx)("div",{className:a()("label-with-bold-weight",m,{"font-medium text-default":t}),"data-text":y,children:y}),(0,d.jsx)("div",{className:a()(p,"ml-2 text-right text-default tabular-nums"),children:v})]})}function h(e){let{payload:t,label:n,formatLabel:r,formatValue:i,showLabel:o=!!n,translucent:c,...h}=e;const{isTooltipActive:m,activeKey:p}=s.useContext(l.lo);return(0,d.jsxs)("div",{className:a()(h.className,"rounded-md border border-secondary px-3.5 pt-3.5 pb-2.5 text-left font-sans text-2xs leading-4 text-muted-2 shadow-md",{"opacity-0":!m,"bg-primary":!c,"bg-primary/70 backdrop-blur-sm":c}),children:[o&&(0,d.jsx)("div",{className:"mb-1.5 text-sm font-medium text-default dark:text-gray-200",children:r?.(n,t)??n}),(0,d.jsx)("div",{className:"grid grid-cols-[max-content_1fr_max-content] items-baseline gap-y-2",children:s.Children.map(h.children,e=>{const n=e;if(!s.isValidElement(n)||n.type!==u)return n;const r=t?.find(e=>e.dataKey===n.props.dataKey);return s.cloneElement(n,{isActive:n.props.isActive??p===n.props.dataKey,dataKeyPayload:r,fullTooltipPayload:t,formatValue:n.props.formatValue??i})})})]})}class m extends s.Component{static displayName=(()=>i.m.displayName)();static defaultProps=(()=>({...i.m.defaultProps,offset:40,position:{y:4},isAnimationActive:!1,wrapperStyle:{outline:"none",zIndex:10},className:"min-w-70",cursor:(0,d.jsx)(o.V,{})}))();render(){const{className:e,showLabel:t,formatLabel:n,formatValue:r,translucent:a,children:s,...l}=this.props;return(0,d.jsx)(i.m,{content:(0,d.jsx)(h,{className:e,formatLabel:n,formatValue:r,showLabel:t,translucent:a,children:s}),...l})}}function p(){return null}},88014(e,t,n){n.d(t,{Qi:()=>c,WX:()=>d,jw:()=>u,ow:()=>l});var r=n(19879),a=n(45996),s=n(11574),i=n(4530);let l=function(e){return e.MonthSingleChar="MMMMM",e.MonthShort="MMM",e.MonthShortDayNum="MMM dd",e.MonthShortYear="MMM yyy",e.MonthShortDayNumYearFull="MMM dd, yyyy",e.QuarterShort="QQQ",e.QuarterYearLong="QQQ 
1yyyy",e}({});const o={fontSize:10,fontWeight:400,fill:""};function c(e){let{value:t,outFormat:n,parseAsNY:a=!1,breakOnYear:i=!1}=e;if(!Number.isFinite(new Date(t).getTime()))return"";const o=a?(0,s.pp)(t):new Date(t);return i&&0===o.getMonth()?[l.MonthSingleChar,l.MonthShort].includes(n)?o.getFullYear().toString().substring(2):o.getFullYear().toString():(0,r.GP)(o,n)}class d extends a.W{static defaultProps=(()=>({...a.W.defaultProps,className:"fill-gray-500 dark:fill-gray-300",tickLine:!1,axisLine:!1,dy:5,tick:o,dataKey:"date",scale:"time",type:"number",interval:"equidistantPreserveStart"}))()}const u={stroke:"currentColor",className:i.oO}},24931(e,t,n){n.d(t,{h:()=>l});var r=n(63696),a=n(18019),s=n(35721),i=n(62540);class l extends r.Component{static displayName=(()=>a.h.displayName)();static defaultProps=(()=>({...a.h.defaultProps,className:"fill-gray-500 dark:fill-gray-300",tickLine:!1,axisLine:!1,tick:{fontSize:10,fontWeight:500,fill:""},tickFormatter:s.tN}))();render(){return(0,i.jsx)(a.h,{...this.props})}}},4530(e,t,n){n.d(t,{oO:()=>a,yi:()=>r});const r={transparent:"text-transparent",gray:"text-gray-200 dark:text-gray-700",lighterGray:"text-gray-200 dark:text-gray-600",lightGray:"text-gray-400",darkGray:"text-gray-700 dark:text-gray-300",blue:"text-blue-400",blueLight:"text-blue-400 dark:text-blue-300",darkBlue:"text-blue-500",red:"text-red-400",darkRed:"text-red-500",redMuted:"text-red-300 dark:text-red-600",green:"text-green-400",greenVivid:"text-[#08A334] dark:text-green-400",darkGreen:"text-green-500",greenMuted:"text-green-200 dark:text-green-500",teal:"text-teal-400 dark:text-teal-300",tealDeep:"text-[#005F66] dark:text-teal-300",purple:"text-purple-400",violet:"text-violet-400",emerald:"text-emerald-400 dark:text-emerald-300",emeraldMuted:"text-[#469C8F] dark:text-emerald-300",orange:"text-orange-300",orangeLight:"text-amber-100 dark:text-orange-500",orangeDeep:"text-[#ED7200]",amber:"text-amber-300",gold:"text-[#B89000]",pink:"text-pink-400",lime:"text-lime-400 dark:text-lime-300",yellow:"text-yellow-300 dark:text-yellow-200",darkYellow:"text-yellow-400",brown:"text-[#A6713C]"},a="stroke-gray-100 dark:stroke-gray-700"},4483(e,t,n){n.d(t,{Fb:()=>o,lP:()=>c});n(66184),n(90769);var r=n(63696),a=n(57297),s=n(5868),i=n(62540);const l=r.createContext({settings:{},setSettings:()=>null,scrollInfo:void 0});function o(){return r.useContext(l)}const c=e=>{let{children:t,cookieKey:n,defaultSettings:o}=e;const[c,d]=r.useState(),[u,h]=r.useState(()=>{const e=decodeURIComponent((0,a.Ri)(n));if(0===e.length)return o;try{return{...o,...JSON.parse(e)}}catch{return o}});return(0,i.jsx)(l.Provider,{value:{settings:u,setSettings:e=>{d({yPosition:window.scrollY}),h(e),(0,s._$)(n,JSON.stringify(e))},scrollInfo:c},children:t})}},32443(e,t,n){n.d(t,{lP:()=>g.lP,JM:()=>u,t:()=>f,YV:()=>p,Kp:()=>m,U8:()=>h,Fb:()=>g.Fb});n(63696);var r=n(93277),a=(n(14846),n(94364),n(4452)),s=n.n(a),i=n(17984),l=n(25445),o=n(62540);function c(e){let{data:t,columns:n,subColumns:r,onVisibilityChange:a,isFirst:c,isLast:d}=e;const{id:u,label:h,labelElement:m,labelColumnClassName:p,isSelected:f,color:g,subData:x,isLabelColumnSticky:y}=t;return(0,o.jsxs)(i.BF,{className:"hoverable-section",onMouseDown:()=>{a(u,!f)},children:[(0,o.jsxs)(i.Hj,{className:s()("is-top-border bg-primary",{"is-top-radius":c,"is-bottom-border is-bottom-radius":d&&!x?.length}),children:[(0,o.jsx)(i.nA,{hasLeading:!1,className:s()(p,"py-1 whitespace-nowrap"),isSticky:y,children:(0,o.jsx)(l.Sc,{readOnly:!0,checked:f,label:m??(0,o.jsx)("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:h}),className:"cursor-pointer",color:g,size:"none"})}),n.map(e=>(0,o.jsx)(i.nA,{align:e.align,hasLeading:!1,className:s()(e.className,e.getColumnClassName?.(t),"px-3.5 py-1"),children:e.renderColumn(t,e.id)},e.id))]}),x?.map((e,t,n)=>(0,o.jsxs)(i.Hj,{className:s()({"is-bottom-border is-bottom-radius":t===n.length-1&&d}),children:[(0,o.jsx)(i.nA,{hasLeading:!1,className:"pl-7.5 text-muted-2",children:e.label}),r?.[e.id].map(t=>(0,o.jsx)(i.nA,{align:t.align,hasLeading:!1,className:s()(t.className,"px-3.5 py-1"),
1children:t.renderColumn(e,t.id)},t.id))]},e.id))]})}function d(e){let{tableHead:t,tableFooter:n,columns:r,subColumns:a,data:l,isTableFixed:d=!0,onVisibilityChange:u}=e;return(0,o.jsxs)(i.XI,{className:s()("financials-table leading-4 [overflow-anchor:none]",{"table-fixed":d}),children:[t,l.map((e,t)=>(0,o.jsx)(c,{data:e,columns:r,subColumns:a,onVisibilityChange:u,isFirst:0===t,isLast:t===l.length-1},e.id??e.label)),n]})}function u(e){let{children:t,tableHead:n,tableFooter:a,columns:s,subColumns:i,header:l,data:c,isTableFixed:u,hasStickyColumnWrapper:h,onVisibilityChange:m}=e;const p=(0,o.jsx)(d,{tableHead:n,tableFooter:a,data:c,columns:s,subColumns:i,isTableFixed:u,onVisibilityChange:m});return(0,o.jsxs)("div",{className:"js-financials-widget",children:[(0,o.jsxs)("div",{className:"mb-0.5 flex flex-col gap-1.5",children:[l,t]}),h?(0,o.jsx)(r.V,{hasBorder:!0,shouldScrollToEnd:!0,children:p},c[0]?.values.length??0):p]})}n(6211),n(90458);function h(e,t){const n=[...e].sort((e,t)=>Number.parseInt(e.year)-Number.parseInt(t.year));return n.reduce((e,r,a)=>{let{year:s,value:i}=r;const l=n[a-1]?.value??null;let o=null,c=null,d=null,u=null;if(null!==i&&null!==l&&(o=i-l,c=0!==l?o/Math.abs(l)*100:null,t)){const[e,t]=s.split(" '"),r=n.find(n=>n.year===`${e} '${Number.parseInt(t)-1}`);d=Number.isFinite(r?.value)?i-r.value:null,u=r?.value&&null!==d?d/Math.abs(r.value)*100:null}return{change:{...e.change,[s]:o},changePct:{...e.changePct,[s]:c},yoyOnQoqChange:t?{...e.yoyOnQoqChange,[s]:d}:e.yoyOnQoqChange,yoyOnQoqChangePct:t?{...e.yoyOnQoqChangePct,[s]:u}:e.yoyOnQoqChangePct}},{change:{},changePct:{},yoyOnQoqChange:{},yoyOnQoqChangePct:{}})}function m(e){const t=[...e].sort((e,t)=>Number.parseInt(e.year)-Number.parseInt(t.year));return t.reduce((e,n,r)=>{let{year:a,value:s}=n;const i=t[r-1]?.value??null;let l=null;return null!==s&&null!==i&&0!==s&&0!==i&&(l=(s-i)/Math.abs(i)*100),{...e,[a]:l}},{})}function p(e,t){return t*e/Math.min(window.innerWidth,1400)>.65}function f(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===e||0===e?"bg-neutral text-neutral":e<-80?"bg-danger-5 text-danger-5":e<-60?"bg-danger-4 text-danger-4":e<-40?"bg-danger-3 text-danger-3":e<-20?"bg-danger-2 text-danger-2":e<0?"bg-danger-1 text-danger-1":e>80?"bg-success-5 text-success-5":e>60?"bg-success-4 text-success-4":e>40?"bg-success-3 text-success-3":e>20?"bg-success-2 text-success-2":e>0?"bg-success-1 text-success-1":void 0}var g=n(4483)},47509(e,t,n){n.d(t,{w:()=>o});var r=n(85666),a=n(63696),s=n(88601),i=n(56411),l=n(62540);function o(e){let{children:t}=e;const n=(0,s.t0)(e=>e.iconSprites),o=(0,a.useMemo)(()=>({assetsRoot:i.f7,sprites:n}),[n]);return(0,l.jsx)(r.C,{value:o,children:t})}},76864(e,t,n){n.r(t),n.d(t,{shouldStartInstrumentPages:()=>h.hw,startInstrumentPages:()=>je});n(5673),n(30164),n(21279);var r=n(63696),a=n(7470),s=n(65227),i=n(64964),l=n(38857),o=n(66647),c=n(12845),d=n(63952),u=n(4896),h=n(96055),m=(n(14846),n(94364),n(13838)),p=n(94673),f=n(81417),g=n(94913),x=n(36982),y=n(26056),v=n(36630),b=n(88601);function w(){g.A.cancelPending(),f.A.cancelPending(),p.A.cancelPending(),y.A.handleViewAction({type:x.Q.RESET});const{chartLayoutModel:e}=m.ZF.getValue();e?.destroyCascade(),m.Pk.deleteAll(),m.ZF.setValue({chartLayoutModel:null,chartLayoutModelConfigSnapshot:null,chartLayoutModelConfigSnapshotToCompare:null,lastGlobalRerender:Date.now()})}function j(e,t){(0,b.oc)(t=>Object.assign(t,e.settings)),Object.assign(window,{globalChartConfig:e.chartConfig??void 0}),window.isIdeaNotFoundPage=e.isIdeaNotFoundPage,window.FinvizQuoteTypeCurrent=e.quoteTypeCurrent??"candlestick";const n=new URLSearchParams(window.location.search).get("p")??e.settings.defaultPeriod??"d";if("/futures"===t){const e=(0,v.Wh)("futures-init-data");if(!e)throw new Error("Missing futures page data");const t=e.groups.map(t=>({...t,contracts:t.contracts.map(t=>({...t,...e.tiles[t.ticker],sparkline:e.tiles[t.ticker]?.sparkline??[]}))}));g.A.setTimeframe(n),g.A.init(t)}else if("/forex"===t){const e=(0,v.Wh)("forex-init-data");if(!e)throw new Error("Missing forex page data");f.A.setTimeframe(n),f.A.initTiles(e)}else if("/crypto"===t){const e=(0,v.Wh)("crypto-init-data");if(!e)throw new Error("Missing crypto page data");p.A.setTimeframe(n),p.A.initTiles(e)}}var C=n(66317),k=n(55980),N=n(37999),A=n(47509),T=n(39568),S=n(62540);const M=(0,T.qj)({chunkName:"knowledge-base",load:()=>n.e(4909).then(n.bind(n,2438))});function E(e){let{children:t}=e;const n=(0,b.t0)(e=>e.hasKnowledgeBase);return(0,S.jsx)(A.w,{children:(0,S.jsxs)(N.vT,{children:[t,n&&(0,S.jsxs)(r.Suspense,{fallback:null,children:[(0,S.jsx)(k.d,{}),(0,S.jsx)(M,{})]})]})})}n(63333),n(27458),n(90769),n(86409);var P=n(5868);function L(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}
1class _ extends Error{constructor(e){super("This page requires document initialization."),this.url=e}}function F(e){for(const t of e.querySelectorAll("script"))("application/json"!==t.type||t.src)&&t.remove()}function D(e,t){const n=new URL(e),r=n.searchParams.get("ty"),a=n.searchParams.get("ov")??"chain_date";if("/stock"===n.pathname&&("oc"===r||"ocv"===r)&&["chain_date","list_date"].includes(a)&&t&&"object"==typeof t){const e=t,r=n.searchParams.get("e");!e.currentExpiry||!Array.isArray(e.expiries)||r&&e.expiries.includes(r)||n.searchParams.set("e",e.currentExpiry)}return n.href}function I(e,t){const n=e.querySelector("body > .content");if(!n||!n.querySelector("#sidebar-panel-wrap"))throw new Error("This instrument page is unavailable for navigation.");const r=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).getElementById("instrument-page-init"),t=JSON.parse(e?.textContent??"null");if(!L(t)||1!==t.version||!L(t.settings)||null!==t.chartConfig&&(!L(t.chartConfig)||!Array.isArray(t.chartConfig.charts)||0===t.chartConfig.charts.length)||"boolean"!=typeof t.hasVidazooVideo||"boolean"!=typeof t.isIdeaNotFoundPage||null!==t.adPageCategory&&"string"!=typeof t.adPageCategory||null!==t.quoteTypeCurrent&&"string"!=typeof t.quoteTypeCurrent||!L(t.newsChannelLabels)||!Object.values(t.newsChannelLabels).every(e=>"string"==typeof e)||null!==t.stocktwits&&(!L(t.stocktwits)||"string"!=typeof t.stocktwits.ticker||"number"!=typeof t.stocktwits.subtractAdHeight||"boolean"!=typeof t.stocktwits.isNewLayout||"boolean"!=typeof t.stocktwits.isDarkTheme))throw new Error("The instrument page did not contain its navigation data.");return t}(e),a=e.getElementById("route-init-data"),s=a?JSON.parse(a.textContent??"null"):null,i=n.cloneNode(!0);F(i);const l=e.querySelector("body > .footer")?.cloneNode(!0);return l&&F(l),{url:D(t,s),seed:r,contentHtml:i.innerHTML,contentAttributes:Array.from(n.attributes,e=>{let{name:t,value:n}=e;return[t,n]}),bodyClassName:e.body.dataset.instrumentPageClasses??e.body.className,title:e.title,description:e.querySelector('meta[name="description"]')?.getAttribute("content")??null,canonical:e.querySelector('link[rel="canonical"]')?.getAttribute("href")??null,footerHtml:l?.outerHTML??null,routeData:s}}function R(e,t,n,r){let a=document.head.querySelector(e);null!==n?(a||(a=document.createElement(t),"meta"===t?a.setAttribute("name","description"):a.setAttribute("rel","canonical"),document.head.append(a)),a.setAttribute(r,n)):a?.remove()}n(75568);var z=n(10133),O=n(78898),V=n(91144),U=n(48343),H=n(85670),G=n(30448),$=n(78325),Q=n(12238),B=n(20625),W=n(50708),q=n(43246),K=n(70297),Y=n(11672);function Z(e){let{assetClass:t}=e;const n=t===H.Hj.Futures?"futures":t===H.Hj.Forex?"forex":"crypto",a=t===H.Hj.Futures?Y.MO.futuresPage:t===H.Hj.Forex?Y.MO.forexPage:Y.MO.cryptoPage,s=document.getElementById(n),i=document.getElementById(G.Mj);return s&&i&&window.globalChartConfig?(0,S.jsxs)(S.Fragment,{children:[(0,$.createPortal)(t===H.Hj.Futures?(0,S.jsx)(W.Y,{}):t===H.Hj.Forex?(0,S.jsx)(B.G,{}):(0,S.jsx)(Q.A,{}),s),(0,$.createPortal)((0,S.jsx)(r.Suspense,{fallback:null,children:(0,S.jsx)(K.o,{specificChartFunctionality:a,config:window.globalChartConfig})}),i),(0,S.jsx)(q.O,{instrument:n})]}):null}var J=n(65675),X=n(78719);function ee(e){const t=new URL(e.url);return"/stock"===t.pathname&&!!e.seed.chartConfig&&!e.seed.isIdeaNotFoundPage&&(0,X.k)(t.searchParams.get(J.V8.Type))===J.Y_.ChartDetail}function te(e){let{children:t,onBeforeUnmount:n,onReady:a}=e;const{chartLayoutModel:s}=(0,m.Wj)();return(0,r.useLayoutEffect)(()=>{s?.isInit&&a()},[s,a]),(0,r.useLayoutEffect)(()=>n,[n]),t}n(15724),n(69655);var ne=n(57010),re=n(11894);const ae=window,se="https://api.stocktwits.com/addon/widget/2/widget-loader.min.js";let ie=0;function le(e){let{initial:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ae.trackAndOpenNews=(t,n,r)=>{t.preventDefault(),window.open(r,"_blank");const a="string"==typeof n?r.startsWith("/news/")?"internal-"+n:n:e.newsChannelLabels[n]??n;window.gtag?.("event","click",{non_interaction:!0,event_category:"news",event_label:a,value:1})};const n=function(e){const t=e.stocktwits,n=document.getElementById("stocktwits-widget-news"),r=document.getElementById("news-table");if(!t||!n||!r)return()=>{};let a=!1;const s=()=>
1{if(a||!n.isConnected||document.getElementById(n.id)!==n)return;const{isNewLayout:e,isDarkTheme:s}=t,i=Math.max(71,r.clientHeight-t.subtractAdHeight),l=e?s?"22262F":"FFFFFF":"transparent",o=e?s?"C3C6D0":"4C5263":"000000",c=e?s?"57aefb":"306DCA":"4871a8",d=e?s?"353945":"DEDFE5":"d3d3d3",u=e?"868EA5":"999999",h=e?s?"F3F3F5":"22262F":"600D0B",m=e?12:11;ae.STWT?.Widget({container:n.id,symbol:t.ticker,width:"300",height:i,limit:Math.ceil(i/71),scrollbars:0,header:0,streaming:"true",style:{link_color:c,link_hover_color:c,header_text_color:o,border_color:l,border_color_2:l,divider_color:d,divider_type:"solid",box_color:l,stream_color:l,text_color:o,time_color:u,font:"Verdana, Arial, Tahoma",font_size:m,time_font_size:10,username_font:"Verdana, Arial, Tahoma",username_size:m,username_color:h,username_hover_color:h}})};let i=document.querySelector('script[src="'+se+'"]');return ae.STWT?s():(i||(i=document.createElement("script"),i.src=se,i.async=!0,i.addEventListener("error",()=>i?.remove(),{once:!0}),document.head.append(i)),i.addEventListener("load",s)),()=>{a=!0,i?.removeEventListener("load",s),n.querySelectorAll("iframe").forEach(e=>e.remove())}}(e),r=function(e){const t=document.querySelector("[data-vidazoo-player]");if(!e.hasVidazooVideo||!t)return()=>{};const n=++ie,r="__finvizInstrumentVideoLoaded"+n,a=window,s=document.createElement("script");let i,l=!1;t.id="finviz-instrument-video-"+n,a[r]=e=>{delete a[r],l||!t.isConnected?e.destroy():i=e},s.src="https://static.vidazoo.com/basev/vwpt.js",s.async=!0,s.dataset.widgetId="6283cfd6c5c3b9089508be1f",s.dataset.widgetPosition=t.id,s.dataset.onWidgetLoad=r,s.dataset.unique="false";const o=()=>{l||(l=!0,i?(i.destroy(),delete a[r]):a[r]=e=>{delete a[r],e.destroy()},s.removeEventListener("error",c),s.remove(),t.replaceChildren())},c=()=>{o(),delete a[r]};return s.addEventListener("error",c),t.append(s),o}(e),a=function(e,t){const n=(0,re.gi)(),r={...window.FINVIZ_IC_UAT_CONFIG};delete r.page_category,e.adPageCategory&&(r.page_category=e.adPageCategory),n===re.wZ.InvestingChannel&&(window.FINVIZ_IC_UAT_CONFIG=r);const a=Array.from(document.querySelectorAll(".content [data-freestar-placement]"));let s=!1;return!t&&window.finvizBannersLoaded?window.initFinvizBanners?.():t||n!==re.wZ.Freestar?t||n!==re.wZ.InvestingChannel||window.InvestingChannelQueue?.push(()=>{s||(window.ic_page=window.InvestingChannel?.UAT.Run(ne.O7,r))}):a.forEach(e=>{window.freestar?.queue.push(()=>{!s&&e.isConnected&&window.freestar.newAdSlots({placementName:e.dataset.freestarPlacement,slotId:e.id})})}),()=>{s=!0,n===re.wZ.Freestar&&a.length?window.freestar?.queue.push(()=>window.freestar.deleteAdSlots(a.map(e=>e.id))):n===re.wZ.InvestingChannel&&window.InvestingChannelQueue?.push(()=>{window.ic_page?.destroy(),window.ic_page=void 0})}}(e,t);return()=>{n(),r(),a()}}var oe=n(57490),ce=n(26362),de=n(9355),ue=n(3126),he=n(69436);const me=Object.fromEntries(Object.entries(ue.lf).map(e=>{let[t,n]=e;return[t,(0,r.lazy)(()=>(0,de.s)(n.LazyComponent))]}));function pe(e){let{routeData:t}=e;const[n]=(0,s.ok)(),a=n.get(J.V8.Type)??"",i=me[a],l=document.getElementById("root");return(0,S.jsx)(ce.D,{viewParam:a,children:(0,S.jsx)(oe.T_.Provider,{value:{data:t,isCached:!1},children:(0,S.jsx)(he.default,{showSidebarPanel:!1,children:l&&i&&(0,$.createPortal)((0,S.jsx)(r.Suspense,{fallback:null,children:(0,S.jsx)(i,{})}),l)})})})}let fe;async function ge(e){let{request:t}=e;try{if(fe?.url===t.url&&!t.signal.aborted){const e=fe;return fe=void 0,{page:e}}fe=void 0;const e=await async function(e,t){const n=new URL(e,window.location.href);if(n.origin!==window.location.origin||!(0,h.k3)(n))throw new Error("The selected instrument page is unavailable.");const r=await(0,P.AT)(n.href,{signal:t,headers:{Accept:"text/html","Content-Type":P.cM.Html}},!0,!0),a=new URL(r.url||n.href);if(!r.ok||a.origin!==n.origin||!(0,h.k3)(a))throw new Error(404===r.status?"This instrument could not be found.":"The instrument page could not be loaded.");const s=await r.text();if(t.aborted)throw new DOMException("The request was aborted.","AbortError");try{return I((new DOMParser).parseFromString(s,"text/html"),a.href)}catch{throw new _(a.href)}}(t.url,t.signal);return e.url===t.url||t.signal.aborted||(fe=e),{page:e}}catch(e){if(t.signal.aborted)throw e;if(e instanceof _)throw(0,s.Sk)(e.url);return{error:e instanceof Error?e.message:"The instrument page could not be loaded."}}}const xe=e=>{let{currentUrl:t,nextUrl:n}=e;if(t.pathname!==n.pathname)return!0;return!!("/stock"===t.pathname?["t","ty","i","e","s","ov","page","o","f"]:["/crypto","/futures"].includes(t.pathname)?["t","c","i"]:["i"]).some(e=>
1t.searchParams.get(e)!==n.searchParams.get(e))||t.href===n.href};function ye(e){let{message:t}=e;const{revalidate:n,state:r}=(0,s.vL)();return(0,S.jsxs)("div",{role:"alert",className:"fixed top-24 left-1/2 z-dialog -translate-x-1/2 rounded-lg border border-primary bg-primary p-4 shadow-lg",children:[(0,S.jsx)("p",{children:t}),(0,S.jsx)(O.$n,{className:"mt-3",disabled:"idle"!==r,onClick:()=>{n()},children:"Retry"})]})}function ve(e){let{initialPage:t}=e;const n=(0,s.LG)(),[a,i]=(0,r.useState)(t),[l,o]=(0,r.useState)(),c=(0,s.Zp)(),d=(0,r.useRef)(void 0),u=(0,U.o)(()=>{d.current?.release(),d.current=void 0}),h=(0,U.o)(()=>{n.page&&n.page!==a&&ee(a)&&ee(n.page)?d.current??=function(){const e=document.getElementById("app");if(!e?.querySelector("#chart"))return;const{width:t,height:n}=e.getBoundingClientRect();if(!t||!n)return;let r,a=!1;const s=()=>{if(a)return;r?.();const e=document.getElementById("app");if(!e)return;const s=["width","height"].map(t=>({property:t,value:e.style.getPropertyValue(t),priority:e.style.getPropertyPriority(t)}));e.style.width=t+"px",e.style.height=n+"px",r=()=>{for(const{property:t,value:n,priority:r}of s)n?e.style.setProperty(t,n,r):e.style.removeProperty(t)}};return s(),{apply:s,release:()=>{a||(a=!0,r?.(),window.dispatchEvent(new Event("instrument-page-installed")))}}}():u()});if((0,r.useEffect)(()=>(window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u),u()}),[u]),(0,r.useEffect)(()=>{if(!n.page)return void w();const e=n.page;let r;try{e!==t&&(w(),function(e){const t=document.querySelector("body > .content"),n=document.getElementById("sidebar-panel-wrap");if(!t||!n)throw new Error("The instrument page container is missing.");const r=document.createElement("template");r.innerHTML=e.contentHtml;const a=r.content.querySelector("#sidebar-panel-wrap");if(!a)throw new Error("The instrument sidebar container is missing.");const s=t.style.getPropertyValue("padding-right"),i=t.style.getPropertyPriority("padding-right");a.replaceWith(n),t.replaceChildren(r.content);for(const e of Array.from(t.attributes))t.removeAttribute(e.name);for(const[n,r]of e.contentAttributes)t.setAttribute(n,r);s&&t.style.setProperty("padding-right",s,i);const l=document.body.dataset.instrumentPageClasses??"";document.body.classList.remove(...l.split(/\s+/).filter(Boolean)),document.body.classList.add(...e.bodyClassName.split(/\s+/).filter(Boolean)),document.body.dataset.instrumentPageClasses=e.bodyClassName,document.title=e.title,R('meta[name="description"]',"meta",e.description,"content"),R('link[rel="canonical"]',"link",e.canonical,"href");const o=document.querySelector("body > .footer");if(e.footerHtml){const n=document.createElement("template");n.innerHTML=e.footerHtml;const r=n.content.firstElementChild;o?o.replaceWith(r):t.after(r)}else o?.remove()}(e),d.current?.apply(),j(e.seed,new URL(e.url).pathname)),r=le(e.seed,{initial:e===t}),o(void 0),i(e),window.dispatchEvent(new Event("instrument-page-installed"));const n=new URL(e.url),a=window.location;e!==t&&n.pathname+n.search!==a.pathname+a.search&&c(n.pathname+n.search+n.hash,{replace:!0})}catch(e){u(),o(e instanceof Error?e.message:"The instrument page could not be displayed.")}return()=>r?.()},[n.page,t,c,u]),(0,r.useEffect)(()=>{window.dispatchEvent(new Event("instrument-page-installed"))},[a]),n.error||l)return(0,S.jsx)(ye,{message:n.error??l});if(n.page!==a)return null;const m=(0,V.v)(new URL(a.url).pathname);return(0,S.jsx)(z.tH,{onError:u,fallbackRender:()=>(0,S.jsx)(ye,{message:"The instrument page could not be displayed."}),children:(0,S.jsx)(te,{onBeforeUnmount:h,onReady:u,children:(0,S.jsx)(r.Suspense,{fallback:null,children:m===H.Hj.Stocks?(0,S.jsx)(pe,{routeData:a.routeData},a.url):(0,S.jsx)(Z,{assetClass:m},a.url)})})},a.url)}function be(){const e=(0,s.Zp)(),t=(0,s.zy)();return(0,r.useEffect)(()=>{const e=new URL(t.pathname+t.search+t.hash,window.location.origin);(0,h.k3)(e)||window.location.replace(e.href)},[t.pathname,t.search,t.hash]),(0,u.b)(),(0,r.useEffect)(()=>{const t=t=>{if(t.defaultPrevented||0!==t.button||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey)return;const n=t.target?.closest("a[href]");if(!n||n.hasAttribute("download")||n.target&&"_self"!==n.target)return;
1const r=new URL(n.href,window.location.href);r.origin===window.location.origin&&(0,h.k3)(r)&&(t.preventDefault(),e(r.pathname+r.search+r.hash))};return document.addEventListener("click",t),()=>document.removeEventListener("click",t)},[e]),(0,S.jsx)(C.j.Provider,{value:!0,children:(0,S.jsxs)(c.$v,{children:[(0,S.jsx)(d.z,{}),(0,S.jsx)(s.sv,{}),(0,S.jsx)(o._,{})]})})}let we=!1;function je(){if(we||!(0,h.hw)())return;const e=I(document,window.location.href);e.url!==window.location.href&&window.history.replaceState(window.history.state,"",e.url),j(e.seed,window.location.pathname);const t=document.createElement("div");t.id="instrument-pages-root",document.body.append(t);const n=(0,s.Ys)([{Component:be,children:[{id:"instrument-page",path:"*",loader:ge,shouldRevalidate:xe,element:(0,S.jsx)(ve,{initialPage:e})}]}],{hydrationData:{loaderData:{"instrument-page":{page:e}}}});we=!0,(0,a.createRoot)(t).render((0,S.jsx)(E,{children:(0,S.jsx)(i.v4,{children:(0,S.jsx)(l.N,{router:n})})}))}},3126(e,t,n){n.d(t,{lf:()=>c,t5:()=>m});var r=n(63696),a=n(39568),s=n(65675),i=n(78719);const l=()=>Promise.all([n.e(152),n.e(2332),n.e(2547),n.e(3838),n.e(448),n.e(9600),n.e(9436),n.e(6327)]).then(n.bind(n,69436));const o={loader:()=>n.e(3856).then(n.bind(n,62297)),LazyComponent:()=>n.e(575).then(n.bind(n,37567))},c={[s._j.ComparePerf]:{LazyComponent:()=>Promise.all([n.e(9534),n.e(33),n.e(6236)]).then(n.bind(n,60033))},[s._j.OptionsChain]:o,[s._j.OptionsVolatility]:o,[s._j.Revenue]:{LazyComponent:()=>Promise.all([n.e(7105),n.e(3937)]).then(n.bind(n,96409))},[s._j.Dividends]:{LazyComponent:()=>Promise.all([n.e(152),n.e(2332),n.e(2547),n.e(3838),n.e(448),n.e(7905)]).then(n.bind(n,89199))},[s._j.Earnings]:{LazyComponent:()=>Promise.all([n.e(5597),n.e(6994)]).then(n.bind(n,10958))},[s._j.Forecast]:{LazyComponent:()=>Promise.all([n.e(5597),n.e(5904)]).then(n.bind(n,84355))},[s._j.ShortInterest]:{LazyComponent:()=>Promise.all([n.e(152),n.e(2332),n.e(2547),n.e(3838),n.e(448),n.e(5062)]).then(n.bind(n,56885))},[s._j.Traffic]:{LazyComponent:()=>Promise.all([n.e(7105),n.e(3266)]).then(n.bind(n,12225))},[s._j.LatestFilings]:{LazyComponent:()=>n.e(7739).then(n.bind(n,45732))},[s._j.Dilution]:{LazyComponent:()=>n.e(7593).then(n.bind(n,83918))},[s._j.Insights]:{LazyComponent:()=>n.e(200).then(n.bind(n,37789))}},{loader:d,action:u,lazySwitch:h}=(0,a.PY)({defaultView:"",viewParam:s.V8.Type,rootComponent:r.lazy(l),views:c}),m=[{path:"/stock",loader:d,action:u,shouldRevalidate:e=>{switch((0,i.c)(e.currentUrl.searchParams.get("ty"))){case s._j.OptionsChain:case s._j.OptionsVolatility:return(0,a.qC)(e,["e","s","ov"]);case s._j.LatestFilings:return(0,a.qC)(e,["page","o","f"]);default:return!1}},lazy:h}]}}]);
2//# sourceMappingURL=4567.v1.2408949f.js.map

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.