(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[638],{55576:e=>{e.exports={button:"button-9pA37sIi",hover:"hover-9pA37sIi",isInteractive:"isInteractive-9pA37sIi",isGrouped:"isGrouped-9pA37sIi",newStyles:"newStyles-9pA37sIi",isActive:"isActive-9pA37sIi",isOpened:"isOpened-9pA37sIi",isDisabled:"isDisabled-9pA37sIi",text:"text-9pA37sIi",icon:"icon-9pA37sIi"}},64547:e=>{e.exports={button:"button-SS83RYhy"}},71123:e=>{e.exports={button:"button-khcLBZEz",hover:"hover-khcLBZEz",arrow:"arrow-khcLBZEz",arrowWrap:"arrowWrap-khcLBZEz",newStyles:"newStyles-khcLBZEz",isOpened:"isOpened-khcLBZEz"}},96746: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: 428px)"}},66998:e=>{e.exports={wrap:"wrap-3HaHQVJm",positionBottom:"positionBottom-3HaHQVJm",backdrop:"backdrop-3HaHQVJm",drawer:"drawer-3HaHQVJm",positionLeft:"positionLeft-3HaHQVJm"}},16842:e=>{e.exports={favorite:"favorite-JVQQsDQk",disabled:"disabled-JVQQsDQk",active:"active-JVQQsDQk",checked:"checked-JVQQsDQk"}},23576:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-4TFSfyGO",hovered:"hovered-4TFSfyGO",isDisabled:"isDisabled-4TFSfyGO",isActive:"isActive-4TFSfyGO",shortcut:"shortcut-4TFSfyGO",toolbox:"toolbox-4TFSfyGO",withIcon:"withIcon-4TFSfyGO",icon:"icon-4TFSfyGO",labelRow:"labelRow-4TFSfyGO",label:"label-4TFSfyGO",showOnHover:"showOnHover-4TFSfyGO"}},73432:e=>{e.exports={button:"button-SD4Dbbwd",disabled:"disabled-SD4Dbbwd",active:"active-SD4Dbbwd",hidden:"hidden-SD4Dbbwd"}},40367:e=>{e.exports={icon:"icon-AL2odtws",dropped:"dropped-AL2odtws"}},90186:(e,t,o)=>{"use strict";function r(e){return n(e,a)}function i(e){return n(e,s)}function n(e,t){const o=Object.entries(e).filter(t),r={};for(const[e,t]of o)r[e]=t;return r}function a(e){const[t,o]=e;return 0===t.indexOf("data-")&&"string"==typeof o}function s(e){return 0===e[0].indexOf("aria-")}o.d(t,{filterDataProps:()=>r,filterAriaProps:()=>i,filterProps:()=>n,isDataAttribute:()=>a,isAriaAttribute:()=>s})},40233:(e,t,o)=>{"use strict";o.d(t,{VerticalAttachEdge:()=>r,HorizontalAttachEdge:()=>i,VerticalDropDirection:()=>n,HorizontalDropDirection:()=>a,getPopupPositioner:()=>c});var r,i,n,a,s=o(88537);!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(r||(r={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(i||(i={})),function(e){e[e.FromTopToBottom=0]="FromTopToBottom",e[e.FromBottomToTop=1]="FromBottomToTop"}(n||(n={})),function(e){e[e.FromLeftToRight=0]="FromLeftToRight",e[e.FromRightToLeft=1]="FromRightToLeft"}(a||(a={}));const l={verticalAttachEdge:r.Bottom,horizontalAttachEdge:i.Left,verticalDropDirection:n.FromTopToBottom,horizontalDropDirection:a.FromLeftToRight,verticalMargin:0,horizontalMargin:0,matchButtonAndListboxWidths:!1};function c(e,t){return(o,c)=>{const d=(0, s.ensureNotNull)(e).getBoundingClientRect(),{verticalAttachEdge:p=l.verticalAttachEdge,verticalDropDirection:h=l.verticalDropDirection,horizontalAttachEdge:u=l.horizontalAttachEdge,horizontalDropDirection:m=l.horizontalDropDirection,horizontalMargin:v=l.horizontalMargin,verticalMargin:w=l.verticalMargin,matchButtonAndListboxWidths:f=l.matchButtonAndListboxWidths}=t,b=p===r.Top?-1*w:w,g=u===i.Right?d.right:d.left,D=p===r.Top?d.top:d.bottom,k={x:g-(m===a.FromRightToLeft?o:0)+v,y:D-(h===n.FromBottomToTop?c:0)+b};return f&&(k.overrideWidth=d.width),k}}},4825:(e,t,o)=>{"use strict";o.d(t,{DEFAULT_TOOL_WIDGET_BUTTON_THEME:()=>l,ToolWidgetButton:()=>c});var r=o(59496),i=o(97754),n=o(9745),a=o(37669),s=o(55576);const l=s,c=r.forwardRef((e,t)=>{const{icon:o,isActive:l,isOpened:c,isDisabled:d,isGrouped:p,isHovered:h,onClick:u,text:m,textBeforeIcon:v,title:w,theme:f=s,className:b,forceInteractive:g,"data-name":D,...k}=e,x=i(b,f.button,w&&"apply-common-tooltip",{[f.isActive]:l,[f.isOpened]:c,[f.isInteractive]:(g||Boolean(u))&&!d,[f.isDisabled]:d,[f.isGrouped]:p,[f.hover]:h,[f.newStyles]:a.hasNewHeaderToolbarStyles}),E=o&&("string"==typeof o?r.createElement(n.Icon,{className:f.icon,icon:o}):r.cloneElement(o,{className:i(f.icon,o.props.className)}));return r.createElement("div",{...k,ref:t,"data-role":"button",className:x,onClick:d?void 0:u,title:w,"data-name":D},v&&m&&r.createElement("div",{className:i("js-button-text",f.text)},m),E,!v&&m&&r.createElement("div",{className:i("js-button-text",f.text)},m))})},14593:(e,t,o)=>{"use strict";o.d(t,{ToolWidgetIconButton:()=>s});var r=o(59496),i=o(97754),n=o(4825),a=o(64547);const s=r.forwardRef((e,t)=>{const{className:o,id:s,...l}=e;return r.createElement(n.ToolWidgetButton,{"data-name":s,...l,ref:t,className:i(o,a.button)})})},35390:(e,t,o)=>{"use strict";o.d(t,{ToolWidgetMenu:()=>m});var r=o(59496),i=o(97754),n=o(50628),a=o(10381),s=o(90186),l=o(37558),c=o(41590),d=o(40233),p=o(90692),h=o(37669),u=o(71123);class m extends r.PureComponent{constructor(e){super(e),this._wrapperRef=null,this._controller=r.createRef(),this._handleWrapperRef=e=>{this._wrapperRef=e,this.props.reference&&this.props.reference(e)},this._handleClick=e=>{e.target instanceof Node&&e.currentTarget.contains(e.target)&&(this._handleToggleDropdown(),this.props.onClick&&this.props.onClick(e,!this.state.isOpened))},this._handleToggleDropdown=e=>{const{onClose:t,onOpen:o}=this.props,{isOpened:r}=this.state,i="boolean"==typeof e?e:!r;this.setState({isOpened:i}),i&&o&&o(),!i&&t&&t()},this._handleClose=()=>{this.close()},this.state={isOpened:!1}}render(){const{id:e,arrow:t,content:o,isDisabled:n,isDrawer:l,isShowTooltip:c,title:d,className:u,hotKey:m,theme:v,drawerBreakpoint:w}=this.props,{isOpened:f}=this.state,b=i(u,v.button,{"apply-common-tooltip":c||!n,[v.isDisabled]:n,[v.isOpened]:f,[v.newStyles]:h.hasNewHeaderToolbarStyles});return r.createElement("div",{id:e,className:b,onClick:n?void 0:this._handleClick,title:d,"data-tooltip-hotkey":m,ref:this._handleWrapperRef,"data-role":"button",...(0, s.filterDataProps)(this.props)},o,t&&r.createElement("div",{className:v.arrow},r.createElement("div",{className:v.arrowWrap},r.createElement(a.ToolWidgetCaret,{dropped:f}))),this.state.isOpened&&(w?r.createElement(p.MatchMedia,{rule:w},e=>this._renderContent(e)):this._renderContent(l)))}close(){this._handleToggleDropdown(!1)}update(){null!==this._controller.current&&this._controller.current.update()}_renderContent(e){const{menuDataName:t,minWidth:o,menuClassName:i,maxHeight:a,drawerPosition:s="Bottom",children:p}=this.props,{isOpened:h}=this.state,u={horizontalMargin:this.props.horizontalMargin||0,verticalMargin:this.props.verticalMargin||2,verticalAttachEdge:this.props.verticalAttachEdge,horizontalAttachEdge:this.props.horizontalAttachEdge,verticalDropDirection:this.props.verticalDropDirection,horizontalDropDirection:this.props.horizontalDropDirection,matchButtonAndListboxWidths:this.props.matchButtonAndListboxWidths},m=Boolean(h&&e&&s),v=function(e){return"function"==typeof e}(p)?p({isDrawer:m}):p;return m?r.createElement(l.DrawerManager,null,r.createElement(c.Drawer,{onClose:this._handleClose,position:s,"data-name":t},v)):r.createElement(n.PopupMenu,{controller:this._controller,closeOnClickOutside:this.props.closeOnClickOutside,doNotCloseOn:this,isOpened:h,minWidth:o,onClose:this._handleClose,position:(0,d.getPopupPositioner)(this._wrapperRef,u),className:i,maxHeight:a,"data-name":t},v)}}m.defaultProps={arrow:!0,closeOnClickOutside:!0,theme:u}},37669:(e,t,o)=>{"use strict";o.d(t,{hasNewHeaderToolbarStyles:()=>r});o(67337);const r=!1},24437:(e,t,o)=>{"use strict";o.d(t,{DialogBreakpoints:()=>i});var r=o(96746);const i={SmallHeight:r["small-height-breakpoint"],TabletSmall:r["tablet-small-breakpoint"],TabletNormal:r["tablet-normal-breakpoint"]}},37558:(e,t,o)=>{"use strict";o.d(t,{DrawerManager:()=>i,DrawerContext:()=>n});var r=o(59496);class i extends r.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return r.createElement(n.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const n=r.createContext(null)},41590:(e,t,o)=>{"use strict";o.d(t,{Drawer:()=>u});var r=o(59496),i=o(88537),n=o(97754),a=o(59142),s=o(43989),l=o(65718),c=o(37558),d=o(49483),p=o(29197),h=o(66998);function u(e){const{position:t="Bottom",onClose:o,children:u,className:m,theme:v=h}=e,w=(0,i.ensureNotNull)((0,r.useContext)(c.DrawerContext)),[f,b]=(0,r.useState)(0),g=(0,r.useRef)(null),D=(0,r.useContext)(p.CloseDelegateContext);return(0,r.useEffect)(()=>{const e=(0,i.ensureNotNull)(g.current);return e.focus({preventScroll:!0}),D.subscribe(w,o),0===w.currentDrawer&&(0,s.setFixedBodyState)(!0),d.CheckMobile.iOS()&&(0,a.disableBodyScroll)(e),b(w.addDrawer()),()=>{D.unsubscribe(w,o);const t=w.removeDrawer();d.CheckMobile.iOS()&&(0, a.enableBodyScroll)(e),0===t&&(0,s.setFixedBodyState)(!1)}},[]),r.createElement(l.Portal,null,r.createElement("div",{className:n(h.wrap,h["position"+t])},f===w.currentDrawer&&r.createElement("div",{className:h.backdrop,onClick:o}),r.createElement("div",{className:n(h.drawer,v.drawer,h["position"+t],m),ref:g,tabIndex:-1,"data-name":e["data-name"]},u)))}},36189:(e,t,o)=>{"use strict";o.d(t,{FavoriteButton:()=>p});var r=o(28353),i=o(59496),n=o(97754),a=o(9745),s=o(20614),l=o(55783),c=o(16842);const d={add:(0,r.t)("Add to favorites"),remove:(0,r.t)("Remove from favorites")};function p(e){const{className:t,isFilled:o,isActive:r,onClick:p,...h}=e;return i.createElement(a.Icon,{...h,className:n(c.favorite,"apply-common-tooltip",o&&c.checked,r&&c.active,t),icon:o?s:l,onClick:p,title:o?d.remove:d.add})}},16396:(e,t,o)=>{"use strict";o.d(t,{DEFAULT_POPUP_MENU_ITEM_THEME:()=>c,PopupMenuItem:()=>h});var r=o(59496),i=o(97754),n=o(59064),a=o(51768),s=o(90186),l=o(23576);const c=l;function d(e){const{reference:t,...o}=e,i={...o,ref:t};return r.createElement(e.href?"a":"div",i)}function p(e){e.stopPropagation()}function h(e){const{id:t,role:o,"aria-selected":c,className:h,title:u,labelRowClassName:m,labelClassName:v,shortcut:w,forceShowShortcuts:f,icon:b,isActive:g,isDisabled:D,isHovered:k,appearAsDisabled:x,label:E,link:C,showToolboxOnHover:T,target:O,rel:N,toolbox:A,reference:B,onMouseOut:S,onMouseOver:y,suppressToolboxClick:M=!0,theme:L=l}=e,_=(0,s.filterDataProps)(e),F=(0,r.useRef)(null);return r.createElement(d,{..._,id:t,role:o,"aria-selected":c,className:i(h,L.item,b&&L.withIcon,{[L.isActive]:g,[L.isDisabled]:D||x,[L.hovered]:k}),title:u,href:C,target:O,rel:N,reference:function(e){F.current=e,"function"==typeof B&&B(e);"object"==typeof B&&(B.current=e)},onClick:function(t){const{dontClosePopup:o,onClick:r,onClickArg:i,trackEventObject:s}=e;if(D)return;s&&(0,a.trackEvent)(s.category,s.event,s.label);r&&r(i,t);o||(0,n.globalCloseMenu)()},onContextMenu:function(t){const{trackEventObject:o,trackRightClick:r}=e;o&&r&&(0,a.trackEvent)(o.category,o.event,o.label+"_rightClick")},onMouseUp:function(t){const{trackEventObject:o,trackMouseWheelClick:r}=e;if(1===t.button&&C&&o){let e=o.label;r&&(e+="_mouseWheelClick"),(0,a.trackEvent)(o.category,o.event,e)}},onMouseOver:y,onMouseOut:S},void 0!==b&&r.createElement("div",{className:L.icon,dangerouslySetInnerHTML:{__html:b}}),r.createElement("div",{className:i(L.labelRow,m)},r.createElement("div",{className:i(L.label,v)},E)),(void 0!==w||f)&&r.createElement("div",{className:L.shortcut},(R=w)&&R.split("+").join(" + ")),void 0!==A&&r.createElement("div",{onClick:M?p:void 0,className:i(L.toolbox,{[L.showOnHover]:T})},A));var R}},96040:(e,t,o)=>{"use strict";o.d(t,{RemoveButton:()=>d});var r=o(28353),i=o(59496),n=o(97754),a=o(9745),s=o(73366),l=o(73432);const c={remove:(0,r.t)("Remove")};function d(e){const{className:t,isActive:o,onClick:r,onMouseDown:d,title:p,hidden:h,"data-name":u="remove-button",...m}=e;return i.createElement(a.Icon,{...m,"data-name":u, className:n(l.button,"apply-common-tooltip",o&&l.active,h&&l.hidden,t),icon:s,onClick:r,onMouseDown:d,title:p||c.remove})}},10381:(e,t,o)=>{"use strict";o.d(t,{ToolWidgetCaret:()=>l});var r=o(59496),i=o(97754),n=o(9745),a=o(40367),s=o(81268);function l(e){const{dropped:t,className:o}=e;return r.createElement(n.Icon,{className:i(o,a.icon,{[a.dropped]:t}),icon:s})}},81268:e=>{e.exports=''},73366:e=>{e.exports=''},16788:e=>{e.exports=''},20614:e=>{e.exports=''},55783:e=>{e.exports=''}}]);