(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[9374],{36136:e=>{e.exports={"nav-button":"nav-button-znwuaSC1",link:"link-znwuaSC1",background:"background-znwuaSC1",icon:"icon-znwuaSC1","flip-icon":"flip-icon-znwuaSC1","size-large":"size-large-znwuaSC1","preserve-paddings":"preserve-paddings-znwuaSC1","size-medium":"size-medium-znwuaSC1","size-small":"size-small-znwuaSC1","size-xsmall":"size-xsmall-znwuaSC1","size-xxsmall":"size-xxsmall-znwuaSC1","visually-hidden":"visually-hidden-znwuaSC1"}},99320:e=>{e.exports={"text-button":"text-button-H6_2ZGVv",link:"link-H6_2ZGVv",content:"content-H6_2ZGVv","text-button-brand-small":"text-button-brand-small-H6_2ZGVv",background:"background-H6_2ZGVv","with-start-icon":"with-start-icon-H6_2ZGVv","with-end-icon":"with-end-icon-H6_2ZGVv","icon-only":"icon-only-H6_2ZGVv","start-icon":"start-icon-H6_2ZGVv","end-icon":"end-icon-H6_2ZGVv",hovered:"hovered-H6_2ZGVv","states-without-bg":"states-without-bg-H6_2ZGVv","disable-active-state-styles":"disable-active-state-styles-H6_2ZGVv",dimmed:"dimmed-H6_2ZGVv",selected:"selected-H6_2ZGVv",caret:"caret-H6_2ZGVv",activated:"activated-H6_2ZGVv","typography-semibold18px":"typography-semibold18px-H6_2ZGVv","typography-semibold16px":"typography-semibold16px-H6_2ZGVv","typography-semibold14px":"typography-semibold14px-H6_2ZGVv","typography-regular14px":"typography-regular14px-H6_2ZGVv","typography-regular16px":"typography-regular16px-H6_2ZGVv","text-button-brand-medium":"text-button-brand-medium-H6_2ZGVv","text-button-brand-large":"text-button-brand-large-H6_2ZGVv","text-button-gray-small":"text-button-gray-small-H6_2ZGVv","text-button-gray-medium":"text-button-gray-medium-H6_2ZGVv","text-button-gray-large":"text-button-gray-large-H6_2ZGVv","text-button-light-gray-small":"text-button-light-gray-small-H6_2ZGVv","text-button-light-gray-medium":"text-button-light-gray-medium-H6_2ZGVv","text-button-light-gray-large":"text-button-light-gray-large-H6_2ZGVv"}},53330:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 430px)"}},8473:e=>{e.exports={dialog:"dialog-b8SxMnzX",wrapper:"wrapper-b8SxMnzX",separator:"separator-b8SxMnzX",bounded:"bounded-b8SxMnzX"}},58211:e=>{e.exports={label:"label-ou2KkVr5",text:"text-ou2KkVr5",icon:"icon-ou2KkVr5"}},80822:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-BZKENkhT",unsetAlign:"unsetAlign-BZKENkhT",title:"title-BZKENkhT",subtitle:"subtitle-BZKENkhT",textWrap:"textWrap-BZKENkhT",ellipsis:"ellipsis-BZKENkhT",close:"close-BZKENkhT",icon:"icon-BZKENkhT"}},35599:e=>{e.exports={icon:"icon-OJpk_CAQ"}},47625:e=>{e.exports={separator:"separator-Pf4rIzEt"}},57340:(e,t,n)=>{"use strict";n.d(t,{CloseButton:()=>d});var o=n(50959),r=n(64388),i=n(17105),a=n(15130),l=n(38822),s=n(63346),c=n(34983);function u(e="large"){switch(e){case"large":return i;case"medium":default:return a;case"small":return l;case"xsmall":return s ;case"xxsmall":return c}}const d=o.forwardRef(((e,t)=>o.createElement(r.NavButton,{...e,ref:t,icon:u(e.size)})))},64388:(e,t,n)=>{"use strict";n.d(t,{NavButton:()=>c});var o=n(50959),r=n(97754),i=n(9745),a=(n(78572),n(36136));function l(e){const{size:t="large",preservePaddings:n,isLink:o,flipIconOnRtl:i,className:l}=e;return r(a["nav-button"],a[`size-${t}`],n&&a["preserve-paddings"],i&&a["flip-icon"],o&&a.link,l)}function s(e){const{children:t,icon:n}=e;return o.createElement(o.Fragment,null,o.createElement("span",{className:a.background}),o.createElement(i.Icon,{icon:n,className:a.icon,"aria-hidden":!0}),t&&o.createElement("span",{className:a["visually-hidden"]},t))}const c=(0,o.forwardRef)(((e,t)=>{const{icon:n,type:r="button",preservePaddings:i,flipIconOnRtl:a,size:c,"aria-label":u,...d}=e;return o.createElement("button",{...d,className:l({...e,children:u}),ref:t,type:r},o.createElement(s,{icon:n},u))}));c.displayName="NavButton";var u=n(21593),d=n(53017);(0,o.forwardRef)(((e,t)=>{const{icon:n,renderComponent:r,"aria-label":i,...a}=e,c=null!=r?r:u.CustomComponentDefaultLink;return o.createElement(c,{...a,className:l({...e,children:i,isLink:!0}),reference:(0,d.isomorphicRef)(t)},o.createElement(s,{icon:n},i))})).displayName="NavAnchorButton"},78572:(e,t,n)=>{"use strict";var o,r,i,a;!function(e){e.Primary="primary",e.QuietPrimary="quiet-primary",e.Secondary="secondary",e.Ghost="ghost"}(o||(o={})),function(e){e.XXSmall="xxsmall",e.XSmall="xsmall",e.Small="small",e.Medium="medium",e.Large="large",e.XLarge="xlarge",e.XXLarge="xxlarge"}(r||(r={})),function(e){e.Brand="brand",e.Gray="gray",e.LightGray="light-gray",e.Green="green",e.Red="red",e.Black="black",e.Gradient="gradient",e.BlackFriday="black-friday",e.CyberMonday="cyber-monday"}(i||(i={})),function(e){e.Semibold18px="semibold18px",e.Semibold16px="semibold16px",e.Semibold14px="semibold14px",e.Medium16px="medium16px",e.Regular16px="regular16px",e.Regular14px="regular14px"}(a||(a={}))},38952:(e,t,n)=>{"use strict";function o(e){const{reference:t,...n}=e;return{...n,ref:t}}n.d(t,{renameRef:()=>o})},21593:(e,t,n)=>{"use strict";n.d(t,{CustomComponentDefaultLink:()=>i});var o=n(50959),r=n(38952);function i(e){return o.createElement("a",{...(0,r.renameRef)(e)})}o.PureComponent},17946:(e,t,n)=>{"use strict";n.d(t,{CustomBehaviourContext:()=>o});const o=(0,n(50959).createContext)({enableActiveStateStyles:!0});o.displayName="CustomBehaviourContext"},24437:(e,t,n)=>{"use strict";n.d(t,{DialogBreakpoints:()=>r});var o=n(53330);const r={SmallHeight:o["small-height-breakpoint"],TabletSmall:o["tablet-small-breakpoint"],TabletNormal:o["tablet-normal-breakpoint"]}},79418:(e,t,n)=>{"use strict";n.d(t,{AdaptivePopupDialog:()=>B});var o=n(50959),r=n(50151),i=n(97754),a=n.n(i),l=n(68335),s=n(63273),c=n(35749),u=n(82206),d=n(1109),p=n(24437),m=n(90692),h=n(95711);var v=n(52092),g=n(76422),f=n(11542),b=n(57340);const y=o.createContext({setHideClose:()=>{}});var w=n(80822);function _(e){ const{title:t,titleTextWrap:r=!1,subtitle:i,showCloseIcon:l=!0,onClose:s,onCloseButtonKeyDown:c,renderBefore:u,renderAfter:d,draggable:p,className:m,unsetAlign:h,closeAriaLabel:v=f.t(null,void 0,n(47742)),closeButtonReference:g}=e,[_,x]=(0,o.useState)(!1);return o.createElement(y.Provider,{value:{setHideClose:x}},o.createElement("div",{className:a()(w.container,m,(i||h)&&w.unsetAlign)},u,o.createElement("div",{"data-dragg-area":p,className:w.title},o.createElement("div",{className:a()(r?w.textWrap:w.ellipsis)},t),i&&o.createElement("div",{className:a()(w.ellipsis,w.subtitle)},i)),d,l&&!_&&o.createElement(b.CloseButton,{className:w.close,"data-name":"close","aria-label":v,onClick:s,onKeyDown:c,ref:g,size:"medium",preservePaddings:!0})))}var x=n(53017),S=n(90186),E=n(56570),C=n(8473);const N={vertical:20},k={vertical:0};class B extends o.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._orientationMediaQuery=null,this._embedResizerOverridesEnabled=E.enabled("embed_resizer_overrides"),this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})),this._handleReference=e=>this._reference=e,this._handleCloseBtnClick=()=>{this.props.onKeyboardClose&&this.props.onKeyboardClose(),this._handleClose()},this._handleClose=()=>{this.props.onClose()},this._handleOpen=()=>{void 0!==this.props.onOpen&&this.props.isOpened&&this.props.onOpen(this.props.fullScreen||window.matchMedia(p.DialogBreakpoints.TabletSmall).matches)},this._handleKeyDown=e=>{if(!e.defaultPrevented){if(this.props.onKeyDown&&this.props.onKeyDown(e),27===(0,l.hashFromEvent)(e)){if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return this.props.onKeyboardClose&&this.props.onKeyboardClose(),void this._handleClose();const{activeElement:n}=document;if(null!==n){if(e.preventDefault(),"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();const o=this._reference;if(null!==o&&(0,c.isTextEditingField)(n))return void o.focus();if(null==o?void 0:o.contains(n))return this.props.onKeyboardClose&&this.props.onKeyboardClose(),void this._handleClose()}}var t,n;(function(e){if("function"==typeof e)return e();return Boolean(e)})(this.props.disableTabNavigationContainment)||(n=e,[9,l.Modifiers.Shift+9].includes((0,l.hashFromEvent)(n))&&n.stopPropagation())}},this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()},this._calculatePositionWithOffsets=(e,t)=>{const n=(0,r.ensureDefined)(this.props.fullScreenViewOffsets).value();return{top:n.top,left:(0,s.isRtl)()?-n.right:n.left,width:t.clientWidth-n.left-n.right,height:t.clientHeight-n.top-n.bottom}}}componentDidMount(){this.props.ignoreClosePopupsAndDialog||g.subscribe(v.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),this._handleOpen(), void 0!==this.props.onOpen&&(this._orientationMediaQuery=window.matchMedia("(orientation: portrait)"),this._orientationMediaQuery.addEventListener("change",this._handleOpen)),this.props.fullScreenViewOffsets&&this.props.fullScreen&&this.props.fullScreenViewOffsets.subscribe(this._requestResize)}componentWillUnmount(){this.props.ignoreClosePopupsAndDialog||g.unsubscribe(v.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),null!==this._orientationMediaQuery&&this._orientationMediaQuery.removeEventListener("change",this._handleOpen),this.props.fullScreenViewOffsets&&this.props.fullScreen&&this.props.fullScreenViewOffsets.unsubscribe(this._requestResize)}focus(){(0,r.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){const{className:e,wrapperClassName:t,headerClassName:n,isOpened:r,title:i,titleTextWrap:l,dataName:s,onClickOutside:c,additionalElementPos:v,additionalHeaderElement:g,backdrop:f,shouldForceFocus:b=!0,shouldReturnFocus:y,onForceFocus:w,showSeparator:E,subtitle:B,draggable:A=!0,fullScreen:I=!1,showCloseIcon:V=!0,rounded:D=!0,isAnimationEnabled:Z,growPoint:M,dialogTooltip:z,unsetHeaderAlign:O,onDragStart:G,dataDialogName:H,closeAriaLabel:L,containerAriaLabel:P,reference:F,containerTabIndex:R,closeButtonReference:U,onCloseButtonKeyDown:T,shadowed:Q,fullScreenViewOffsets:X,fixedBody:W,onClick:K}=this.props,q="after"!==v?g:void 0,$="after"===v?g:void 0,j="string"==typeof i?i:H||"",Y=(0,S.filterDataProps)(this.props),J=(0,x.mergeRefs)([this._handleReference,F]);return o.createElement(m.MatchMedia,{rule:p.DialogBreakpoints.SmallHeight},(v=>o.createElement(m.MatchMedia,{rule:p.DialogBreakpoints.TabletSmall},(p=>o.createElement(u.PopupDialog,{rounded:!(p||I)&&D,className:a()(C.dialog,I&&X&&C.bounded,e),isOpened:r,reference:J,onKeyDown:this._handleKeyDown,onClickOutside:c,onClickBackdrop:c,fullscreen:p||I,guard:v?k:N,boundByScreen:p||I,shouldForceFocus:b,onForceFocus:w,shouldReturnFocus:y,backdrop:f,draggable:A,isAnimationEnabled:Z,growPoint:M,name:this.props.dataName,dialogTooltip:z,onDragStart:G,containerAriaLabel:P,containerTabIndex:R,calculateDialogPosition:I&&X?this._calculatePositionWithOffsets:void 0,shadowed:Q,fixedBody:W,onClick:K,...Y},o.createElement("div",{className:a()(C.wrapper,t),"data-name":s,"data-dialog-name":j},void 0!==i&&o.createElement(_,{draggable:A&&!(p||I),onClose:this._handleCloseBtnClick,renderAfter:$,renderBefore:q,subtitle:B,title:i,titleTextWrap:l,showCloseIcon:V,className:n,unsetAlign:O,closeAriaLabel:L,closeButtonReference:U,onCloseButtonKeyDown:T}),E&&o.createElement(d.Separator,{className:C.separator}),o.createElement(h.PopupContext.Consumer,null,(e=>this._renderChildren(e,p||I)))))))))}}},29562:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchFlag:()=>g});var o=n(50959),r=n(97754),i=n.n(r),a=n(24633),l=n(36279);const s=n.p+"mock-dark.16b5f3a431f502b03ae3.svg",c=n.p+"mock-light.d201313017eb2c1b989f.svg";function u(e){ return e===a.StdTheme.Dark?s:c}var d=n(77975),p=n(45345),m=n(50151);const h=l.LogoSize.Medium;var v=n(35599);function g(e){const{country:t,tooltip:n,providerId:r,sourceId:a,className:s}=e,c=(0,d.useWatchedValueReadonly)({watchedValue:p.watchedTheme}),[g,f]=(0,o.useState)(function({country:e,providerId:t,sourceId:n}){const o=(0,l.getLogoUrlResolver)();return r=>{const i=e=>o.getProviderLogoUrl(e,h),a=[{value:n,resolve:i},{value:e,resolve:e=>o.getCountryFlagUrl(e.toUpperCase(),h)},{value:t,resolve:i}].find((({value:e})=>void 0!==e&&e.length>0));return void 0!==a?a.resolve((0,m.ensureDefined)(a.value)):u(r)}}({country:t,providerId:r,sourceId:a})(c));return o.createElement("img",{className:i()(s,"apply-common-tooltip",v.icon),crossOrigin:"","data-tooltip":n,src:g,onError:function(){f(u(c))}})}},90692:(e,t,n)=>{"use strict";n.d(t,{MatchMedia:()=>r});var o=n(50959);class r extends o.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addEventListener("change",this._handleChange)}_unsubscribe(e){e.removeEventListener("change",this._handleChange)}}},1109:(e,t,n)=>{"use strict";n.d(t,{Separator:()=>a});var o=n(50959),r=n(97754),i=n(47625);function a(e){return o.createElement("div",{className:r(i.separator,e.className)})}},48971:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 430px)",dialog:"dialog-mBXAEZtB",wrap:"wrap-mBXAEZtB",separator:"separator-mBXAEZtB",groupSeparator:"groupSeparator-mBXAEZtB",widgetSeparator:"widgetSeparator-mBXAEZtB",firstGroup:"firstGroup-mBXAEZtB",row:"row-mBXAEZtB",item:"item-mBXAEZtB",menuButton:"menuButton-mBXAEZtB",multipleLinks:"multipleLinks-mBXAEZtB",title:"title-mBXAEZtB",valueItem:"valueItem-mBXAEZtB",copyButton:"copyButton-mBXAEZtB",sessionHeader:"sessionHeader-mBXAEZtB",sessionWidget:"sessionWidget-mBXAEZtB",timeZone:"timeZone-mBXAEZtB",link:"link-mBXAEZtB",icon:"icon-mBXAEZtB",startSlot:"startSlot-mBXAEZtB",endSlot:"endSlot-mBXAEZtB"}},38177:e=>{e.exports={button:"button-GwQQdU8S",hover:"hover-GwQQdU8S",clicked:"clicked-GwQQdU8S",isInteractive:"isInteractive-GwQQdU8S",accessible:"accessible-GwQQdU8S",isGrouped:"isGrouped-GwQQdU8S",isActive:"isActive-GwQQdU8S",isOpened:"isOpened-GwQQdU8S",isDisabled:"isDisabled-GwQQdU8S",text:"text-GwQQdU8S",icon:"icon-GwQQdU8S",endIcon:"endIcon-GwQQdU8S"}},15031:e=>{e.exports={icon:"icon-mwO_HX5L"}},81348:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_TOOL_WIDGET_BUTTON_THEME:()=>l,ToolWidgetButton:()=>s});var o=n(50959),r=n(97754),i=n(9745),a=n(38177);const l=a,s=o.forwardRef(((e,t)=>{ const{tag:n="div",icon:l,endIcon:s,isActive:c,isOpened:u,isDisabled:d,isGrouped:p,isHovered:m,isClicked:h,onClick:v,text:g,textBeforeIcon:f,title:b,theme:y=a,className:w,forceInteractive:_,inactive:x,"data-name":S,"data-tooltip":E,...C}=e,N=r(w,y.button,(b||E)&&"apply-common-tooltip",{[y.isActive]:c,[y.isOpened]:u,[y.isInteractive]:(_||Boolean(v))&&!d&&!x,[y.isDisabled]:Boolean(d||x),[y.isGrouped]:p,[y.hover]:m,[y.clicked]:h}),k=l&&("string"==typeof l?o.createElement(i.Icon,{className:y.icon,icon:l}):o.cloneElement(l,{className:r(y.icon,l.props.className)}));return"button"===n?o.createElement("button",{...C,ref:t,type:"button",className:r(N,y.accessible),disabled:d&&!x,onClick:v,title:b,"data-name":S,"data-tooltip":E},f&&g&&o.createElement("div",{className:r("js-button-text",y.text)},g),k,!f&&g&&o.createElement("div",{className:r("js-button-text",y.text)},g)):o.createElement("div",{...C,ref:t,"data-role":"button",className:N,onClick:d?void 0:v,title:b,"data-name":S,"data-tooltip":E},f&&g&&o.createElement("div",{className:r("js-button-text",y.text)},g),k,!f&&g&&o.createElement("div",{className:r("js-button-text",y.text)},g),s&&o.createElement(i.Icon,{icon:s,className:a.endIcon}))}))},11095:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SymbolInfoDialogImpl:()=>fe});var o=n(50959),r=n(97754),i=n.n(r),a=n(11542),l=n(9745),s=n(17946),c=n(2948),u=n(99320),d=n.n(u);const p={small:"regular14px",medium:"semibold16px",large:"semibold18px"},m=e=>{const t=(0,o.useContext)(s.CustomBehaviourContext),{className:n,isSelected:i,isDimmed:a,isHovered:l,size:c="medium",color:u,startIcon:m,endIcon:h,showCaret:v,enableActiveStateStyles:g=t.enableActiveStateStyles,typography:f,iconOnly:b,isLink:y=!1,isActivated:w}=e;return r(n,d()["text-button"],y&&d().link,i&&d().selected,a&&d().dimmed,l&&d().hovered,d()[`text-button-${u}-${c}`],m&&d()["with-start-icon"],b&&d()["icon-only"],(v||h)&&d()["with-end-icon"],!g&&d()["disable-active-state-styles"],f?d()[`typography-${f}`]:d()[`typography-${p[c]}`],w&&d().activated)};function h(e){return o.createElement(o.Fragment,null,o.createElement("span",{className:r(d().background,e.statesWithoutBg&&d()["states-without-bg"])}),e.startIcon&&o.createElement(l.Icon,{...e.startIconAriaAttrs,className:d()["start-icon"],icon:e.startIcon}),o.createElement("span",{className:d().content},e.children),(e.endIcon||e.showCaret)&&(e=>o.createElement(l.Icon,{...e.showCaret?void 0:e.endIconAriaAttrs,className:r(d()["end-icon"],e.showCaret&&d().caret),icon:e.showCaret?c:e.endIcon}))(e))}function v(e){const{reference:t,className:n,isSelected:r,isHovered:i,isDimmed:a,children:l,startIcon:s,startIconAriaAttrs:c,showCaret:u,color:d,endIcon:p,endIconAriaAttrs:v,size:g,typography:f,iconOnly:b,statesWithoutBg:y,isActivated:w,..._}=e;return o.createElement("button",{..._,className:m({className:n,isSelected:r,isHovered:i,startIcon:s,showCaret:u,endIcon:p,color:d,size:g,typography:f,iconOnly:b,isDimmed:a,isActivated:w}),ref:t},o.createElement(h,{showCaret:u,startIcon:s,startIconAriaAttrs:{...c},endIcon:p,endIconAriaAttrs:{...v}, statesWithoutBg:y},l))}n(21593);n(78572);var g=n(79418),f=n(60697),b=n(75725);class y extends o.PureComponent{constructor(e){super(e),this._fullSessionScheduleViewModel=new f.FullSessionScheduleViewModel(e.source)}componentWillUnmount(){this._fullSessionScheduleViewModel.destroy()}render(){var e,t;const{className:n,showAllDays:r,timeZoneClassName:i}=this.props;return(null===(t=null===(e=this.props.source.marketStatusModel())||void 0===e?void 0:e.futuresContractExpirationTime())||void 0===t?void 0:t.expired().value())?null:o.createElement(b.FullSessionScheduleRenderer,{className:n,timezone:this._fullSessionScheduleViewModel.timezone(),now:this._fullSessionScheduleViewModel.currentTimeValue(),sessionDays:this._fullSessionScheduleViewModel.sessionsDays,showAllDays:r,timeZoneClassName:i})}}var w=n(81348),_=n(65446),x=n(12481),S=n(38780),E=n(83358);const C=(0,x.default)(N,1500);function N(){document.removeEventListener("scroll",N),document.removeEventListener("touchstart",N),document.removeEventListener("mouseout",N),(0,S.hide)()}const k=400;function B(e,t={}){const{initialDelay:o=k,leaveOnMouseOut:r,text:i=a.t(null,void 0,n(23339))}=t;(0,S.showOnElement)(e,{below:!0,tooltipDelay:o,content:{type:"html",data:`${i} ${E}`}}),document.addEventListener("scroll",N),document.addEventListener("touchstart",N),r||document.addEventListener("mouseout",N)}var A=n(47531),I=n(68182),V=n(92450),D=n(67330),Z=n(48971);function M(e){const{onClose:t,isOpened:i,groups:l,statusProvider:s}=e,[c,u]=(0,o.useState)(!1),d=(0,o.useRef)(null),p=(0,o.useRef)(null),m=c?I:A;return(0,o.useEffect)((()=>{null!==p.current&&p.current()}),[c]),o.createElement(g.AdaptivePopupDialog,{ref:d,className:Z.dialog,isOpened:i,title:a.t(null,void 0,n(17502)),onClose:t,onClickOutside:t,dataName:"symbol-info-dialog",render:function({requestResize:e}){return p.current=e,o.createElement("div",{className:Z.wrap,"data-symbol-info-dialog-content":!0},h(),l.flat().length&&s&&o.createElement("div",{className:r(Z.separator,Z.widgetSeparator)}),s&&o.createElement(o.Fragment,null,o.createElement("div",{className:Z.sessionHeader},o.createElement("span",{className:Z.title},a.t(null,void 0,n(94031))),o.createElement(v,{onClick:()=>u(!c),color:"light-gray",size:"small",startIcon:m},a.t(null,void 0,n(17606)))),o.createElement(y,{source:s,showAllDays:c,className:Z.sessionWidget,timeZoneClassName:Z.timeZone})))},showSeparator:!0});function h(){return l?l.map(((e,t)=>e.length?o.createElement(o.Fragment,{key:t},o.createElement("div",{className:0===t?Z.firstGroup:void 0},function(e){const t=[];for(let n=0;no.createElement(z,{key:t,fields:e})))}(e)),t!==l.length-1&&o.createElement("div",{className:r(Z.separator,Z.groupSeparator)})):null)):null}}function z(e){return o.createElement("div",{className:Z.row},e.fields.map(((e,t)=>{const n=function(e){const t=e.value||e.defValue||"-";return!1===e.capitalize||Array.isArray(t)?t:(n=t).charAt(0).toUpperCase()+n.substring(1);var n}(e) ;return Array.isArray(n)?o.createElement(O,{key:t,field:e,fieldValue:n}):o.createElement(H,{key:t,field:e,fieldValue:n})})))}function O(e){const{field:t,fieldValue:n}=e,r=(0,o.useMemo)((()=>n.map((e=>{try{return new URL(e)}catch(e){return}})).filter((e=>void 0!==e))),[n]),[i,...a]=r;return o.createElement("div",{className:Z.item},o.createElement("span",{className:Z.title},t.title),o.createElement("div",{className:Z.multipleLinks},o.createElement(L,{value:G(i),startSlot:t.startSlot,endSlot:t.endSlot,canCopy:t.canCopy,link:n[0]}),a.length?o.createElement(ToolWidgetMenu,{className:Z.menuButton,arrow:!1,closeOnClickOutside:!0,horizontalAttachEdge:HorizontalAttachEdge.Right,horizontalDropDirection:HorizontalDropDirection.FromRightToLeft,verticalAttachEdge:VerticalAttachEdge.AutoStrict,content:o.createElement(l.Icon,{icon:dotsIcon})},a.map((e=>o.createElement(PopupMenuItem,{suppressToolboxClick:!1,onClick:()=>window.open(e.href),label:G(e),key:e.href,toolbox:o.createElement(l.Icon,{className:Z.icon,icon:D})})))):null))}function G(e){return e.hostname.replace(/^www\./g,"")}function H(e){const{field:t,fieldValue:n}=e;return o.createElement("div",{className:Z.item},o.createElement("span",{className:Z.title},t.title),o.createElement(L,{value:n,startSlot:t.startSlot,endSlot:t.endSlot,canCopy:t.canCopy,link:t.link}))}function L(e){const{value:t,canCopy:i,link:s,startSlot:c,endSlot:u}=e,d=(0,o.useRef)(null),p=s?"a":"div",m="-"!==t;return o.createElement("div",{className:Z.valueItem},c&&m&&o.createElement("div",{className:Z.startSlot},c),o.createElement(p,{href:s,target:"_blank",className:r(s&&Z.link)},o.createElement("span",{ref:d},t),s&&o.createElement(l.Icon,{icon:D,className:Z.icon})),i&&m&&o.createElement(w.ToolWidgetButton,{className:Z.copyButton,onClick:async function(){await(0,_.copyToClipboard)({text:t}),d.current&&(B(d.current,{initialDelay:0,leaveOnMouseOut:!0,text:a.t(null,void 0,n(17254))}),C())},icon:V}),u&&m&&o.createElement("div",{className:Z.endSlot},u))}var P=n(64147),F=n(90823),R=n(76742);const U=new P.WatchedValue(!1);class T{constructor(e){this._symbolInfo=new P.WatchedValue(null),this._quotesProvider=new R.QuotesProvider("simple"),this._setSymbolInfo=e=>{this._marketStatusModel.setSymbolInfo(e)},this._symbol=e.pro_name,this._quotesProvider.setQuotesSessionSymbol(this._symbol),this._symbolInfo.setValue(e),this._marketStatusModel=new F.MarketStatusModel(this._quotesProvider),this._symbolInfo.subscribe(this._setSymbolInfo,{callWithLast:!0})}destroy(){this._quotesProvider.destroy(),this._marketStatusModel.destroy(),this._symbolInfo.unsubscribe(this._setSymbolInfo)}symbol(){return new P.WatchedValue(this._symbol).readonly()}isSymbolInvalid(){return new P.WatchedValue(!1).readonly()}marketStatusModel(){return this._marketStatusModel}errorStatus(){return new P.WatchedValue(null).readonly()}symbolInfo(){return this._symbolInfo.readonly()}hidden(){return U.readonly()}dataProblemModel(){return null}dataUpdatedModeModel(){return null}async pineSourceCodeModel(){return null}}class Q{constructor(e){this._adapter=new T(e)} destroy(){this._adapter.destroy()}getAdapter(){return this._adapter.marketStatusModel()?this._adapter:null}}var X=n(4454),W=n(56570);function K(e,t){const n=Math.floor(t/1e4)%1e4,o=Math.floor(t/100)%100-1,r=t%100;return e.format(new Date(Date.UTC(n,o,r)))}var q=n(29562),$=n(15031);function j(e){return o.createElement(q.SymbolSearchFlag,{...e,className:$.icon})}var Y=n(68805),J=n(50151),ee=n(725),te=n(74395);const ne=new Set(["cfd","etf","reit","etn","dr","cdi"]);function oe(e,t){var n;return(null!==(n=e.minmove2)&&void 0!==n?n:0)>0&&!e.fractional&&0!==e.pricescale}function re(e,t){return oe(e)&&void 0!==e.pricescale?new ee.PriceFormatter({priceScale:e.pricescale/(0,J.ensureDefined)(e.minmove2)}).format((0,J.ensureDefined)(e.minmove2)/e.pricescale):null}function ie(e,t){const{minmov:o,pricescale:r,fractional:i,minmove2:l}=e;if(void 0===o||void 0===r)return null;if(i&&r&&o)return l?a.t(null,{context:"double fractional tick size",replace:{minmove2:String(l),pricescale:String(r/l)}},n(13197)):`${o}/${r}`;const{variable_tick_size:s,...c}=e;return(0,Y.createSeriesFormatter)(c,"default").format(o/r)}function ae(e,t){const{type:n="",typespecs:o=[]}=e;return[n,...o.filter((e=>te.VISIBLE_TYPESPECS.has(e)))].map((e=>ne.has(e)?e.toUpperCase():e)).join(" ")}function le(e,t){return!1}function se(e,t){return!0}function ce(e,t){return"expiration"in e}const ue=new Set(["stock","fund","dr","right","warrant","structured"]);var de=n(92315),pe=n(58211);function me(e){const{className:t}=e;return o.createElement("span",{className:i()(t,pe.label)},o.createElement(l.Icon,{className:pe.icon,icon:de}),o.createElement("span",{className:pe.text},a.t(null,void 0,n(54602))))}var he=n(88145);var ve=n(28124);let ge;class fe{constructor(){this._container=null,this._rootInstance=null,this._renderDialog=e=>{this._container||(this._container=document.createElement("div"));const t=o.createElement(M,{...e});this._rootInstance?this._rootInstance.render(t):this._rootInstance=(0,ve.createReactRoot)(t,this._container)},this._close=()=>{var e;null===(e=this._rootInstance)||void 0===e||e.unmount(),this._rootInstance=null},this._getVisibleURL=e=>{try{return new URL(e).hostname.replace(/^www\./g,"")}catch(e){return}}}async show(e){const t=e.symbolInfo;if(!t)return;let r;r=new Q(t);const i=function(e){const t=(0,W.enabled)("show_exchange_logos");return[{title:a.t(null,void 0,n(99709)),group:1,propName:(0,W.enabled)("charting_library_base")?"name":"pro_name",getEndSlot:e=>{if((0,he.isSymbolDelisted)(e.typespecs))return o.createElement(me,null)}},{title:a.t(null,void 0,n(78734)),group:1,propName:"description"},{title:a.t(null,void 0,n(12272)),group:1,propName:"front_contract",visibility:le,canCopy:!0},{title:a.t(null,void 0,n(99804)),group:1,propName:"sector",visibility:(e,t)=>{var n;return ue.has(null!==(n=e.type)&&void 0!==n?n:"")&&!!(null==t?void 0:t.sector)}},{title:a.t(null,void 0,n(20663)),group:1,propName:"industry",visibility:(e,t)=>{var n;return ue.has(null!==(n=e.type)&&void 0!==n?n:"")&&!!(null==t?void 0:t.industry)}},{title:a.t(null,void 0,n(88104)), group:1,propName:"isin-displayed",canCopy:!0,visibility:(e,t)=>!1},{title:a.t(null,void 0,n(56536)),group:1,propName:"figi",canCopy:!0,getter:(e,t)=>e.figi&&e.figi["exchange-level"]?e.figi["exchange-level"]:null,visibility:(e,t)=>!1},{title:a.t(null,void 0,n(16045)),group:1,propName:"web_site_url",showURLAsValue:!0,capitalize:!1,visibility:(e,t)=>"stock"===e.type&&!!(null==t?void 0:t.web_site_url)},{title:a.t(null,void 0,n(26931)),group:1,propName:"homepage",showURLAsValue:!0,capitalize:!1,visibility:(e,t)=>"fund"===e.type&&!!(null==t?void 0:t.homepage)},{title:a.t(null,void 0,n(16045)),group:1,propName:"website",capitalize:!1,getter:(e,t)=>(null==t?void 0:t.website)?null==t?void 0:t.website:null,visibility:(e,t)=>{var n;return!!(null===(n=null==t?void 0:t.website)||void 0===n?void 0:n.length)}},{title:a.t(null,void 0,n(98413)),group:2,propName:"type",getter:ae},{title:a.t(null,void 0,n(88191)),group:2,propName:"expiration",visibility:ce,formatter:K.bind(null,e.dateFormatter)},{title:a.t(null,void 0,n(81314)),group:2,propName:"pointvalue"},{title:a.t(null,void 0,n(41224)),group:2,propName:"listed_exchange",visibility:se,getStartSlot:(e,n)=>{var r;const i=null!==(r=null==n?void 0:n.country_code)&&void 0!==r?r:e.country,a=e.exchange_logo;return t?o.createElement(j,{country:i,providerId:e.provider_id,sourceId:a}):void 0}},{title:a.t(null,void 0,n(86905)),group:2,propName:"exchange",visibility:se},{title:a.t(null,void 0,n(97751)),group:2,propName:"source",getter:Y.getSourceForEconomySymbol,visibility:(e,t)=>Boolean((0,Y.getSourceForEconomySymbol)(e))},{title:a.t(null,void 0,n(81849)),group:2,propName:"currency_code",getter:(e,t)=>(0,Y.symbolOriginalCurrency)(e,!0),visibility:(e,t)=>Boolean((0,Y.symbolOriginalCurrency)(e,!0)),formatter:e=>null!=e?e:"",defValue:""},{title:a.t(null,void 0,n(91563)),group:2,propName:"value_unit_id",getter:(t,n)=>e.unitDescription((0,Y.measureUnitId)(t)),visibility:(t,n)=>Boolean((0,Y.measureUnitId)(t)&&(0,Y.isMeasureUnitSymbol)(t)&&e.showUnit),formatter:e=>null!=e?e:"",defValue:""},{title:a.t(null,void 0,n(33564)),group:2,propName:"unit_id",getter:(t,n)=>e.unitDescription((0,Y.symbolOriginalUnit)(t,!!e.showUnit)),visibility:(t,n)=>Boolean((0,Y.symbolOriginalUnit)(t,!!e.showUnit)),formatter:e=>null!=e?e:"",defValue:""},{title:a.t(null,void 0,n(39245)),group:2,propName:"pip_size",getter:re,visibility:oe},{title:a.t(null,void 0,n(24431)),group:2,propName:"tick_size",getter:ie}]}(e);(0,X.getAdditionalSymbolInfoFields)().forEach((e=>{i.push({title:e.title,propName:e.propertyName,group:3})})),this._retrieveValues(i,t),this._renderDialog(this._createDialogProps(i,r))}static getInstance(){return ge||(ge=new fe),ge}_createDialogProps(e,t){return{isOpened:!0,onClose:()=>{null==t||t.destroy(),this._close()},groups:this._separateByGroups(e),statusProvider:null==t?void 0:t.getAdapter()}}_setURLs(e,t){}_defaultFormatter(e){var t;return null!==(t=null==e?void 0:e.toString())&&void 0!==t?t:"-"}_setFieldValue(e,t){(void 0===e.value||t)&&(e.value=t)}_retrieveValues(e,t,n){var o,r,i,a;const l=null!=n?n:t ;for(let s=0;s{const n=e.group;t[n]||(t[n]=[]),t[n].push(e)})),Object.values(t)}async _getMarket(e){return null}}},74395:(e,t,n)=>{"use strict";n.d(t,{VISIBLE_TYPESPECS:()=>a,marketType:()=>l});var o=n(11542);const r=new Map([["cfd",o.t(null,void 0,n(79599))],["dr",o.t(null,void 0,n(47268))],["index",o.t(null,void 0,n(61833))],["forex",o.t(null,void 0,n(17770))],["right",o.t(null,{context:"symbol_type"},n(53174))],["bond",o.t(null,void 0,n(42358))],["bitcoin",o.t(null,void 0,n(46128))],["crypto",o.t(null,void 0,n(46128))],["economic",o.t(null,void 0,n(54094))],["indices",o.t(null,void 0,n(90250))],["futures",o.t(null,void 0,n(4723))],["stock",o.t(null,void 0,n(76752))],["commodity",o.t(null,void 0,n(70932))]]);n(21251);const i=new Map,a=new Set(["cfd","spreadbet","defi","yield","government","corporate","mutual","money","etf","unit","trust","reit","etn","convertible","closedend","crypto","oracle"]);function l(e,t=[],n=!0){const o=t.filter((e=>a.has(e))),l=`${e}_${o.sort().join("_")}`,s=i.get(l);if(void 0!==s)return s;const c=n?function(e){return r.get(e)||e}(e):e,u=Boolean(t.length)?[c,...o].join(" "):c;return i.set(l,u),u}},2948:e=>{e.exports=''},47531:e=>{e.exports=''},68182:e=>{e.exports=''},17105:e=>{e.exports=''},15130:e=>{e.exports=''},38822:e=>{e.exports=''},63346:e=>{ e.exports=''},34983:e=>{e.exports=''},83358:e=>{e.exports=''},67330:e=>{e.exports=''},92450:e=>{e.exports=''},25931:(e,t,n)=>{"use strict";n.d(t,{nanoid:()=>o});let o=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),"")}}]);