(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[72181,68984],{832517:t=>{t.exports={}},183928:t=>{t.exports={}},649107:t=>{t.exports={loader:"loader-UL6iwcBa",static:"static-UL6iwcBa",item:"item-UL6iwcBa","tv-button-loader":"tv-button-loader-UL6iwcBa",medium:"medium-UL6iwcBa",small:"small-UL6iwcBa",black:"black-UL6iwcBa",white:"white-UL6iwcBa",gray:"gray-UL6iwcBa",primary:"primary-UL6iwcBa"}},646021:t=>{t.exports={"common-tooltip":"common-tooltip-EJBD96zX","common-tooltip--hidden":"common-tooltip--hidden-EJBD96zX","common-tooltip--horizontal":"common-tooltip--horizontal-EJBD96zX","common-tooltip--farther":"common-tooltip--farther-EJBD96zX","common-tooltip--vertical":"common-tooltip--vertical-EJBD96zX","common-tooltip-farther":"common-tooltip-farther-EJBD96zX","common-tooltip--direction_normal":"common-tooltip--direction_normal-EJBD96zX","common-tooltip__body":"common-tooltip__body-EJBD96zX","common-tooltip__button-container":"common-tooltip__button-container-EJBD96zX","common-tooltip__body--no-buttons":"common-tooltip__body--no-buttons-EJBD96zX","common-tooltip__button":"common-tooltip__button-EJBD96zX","common-tooltip--direction_reversed":"common-tooltip--direction_reversed-EJBD96zX","common-tooltip__ear-holder":"common-tooltip__ear-holder-EJBD96zX","common-tooltip__ear-holder--below":"common-tooltip__ear-holder--below-EJBD96zX","common-tooltip__ear-holder--above":"common-tooltip__ear-holder--above-EJBD96zX","common-tooltip__ear-holder--before":"common-tooltip__ear-holder--before-EJBD96zX","common-tooltip__ear-holder--after":"common-tooltip__ear-holder--after-EJBD96zX","common-tooltip__body--with-hotkey":"common-tooltip__body--with-hotkey-EJBD96zX","common-tooltip__body--width_wide":"common-tooltip__body--width_wide-EJBD96zX","common-tooltip__body--width_narrow":"common-tooltip__body--width_narrow-EJBD96zX","common-tooltip__body--no-padding":"common-tooltip__body--no-padding-EJBD96zX","common-tooltip__hotkey-block":"common-tooltip__hotkey-block-EJBD96zX","common-tooltip__hotkey-block--divider":"common-tooltip__hotkey-block--divider-EJBD96zX","common-tooltip__hotkey-text":"common-tooltip__hotkey-text-EJBD96zX","common-tooltip__hotkey-button":"common-tooltip__hotkey-button-EJBD96zX","common-tooltip__plus-sign":"common-tooltip__plus-sign-EJBD96zX"}},764250:(t,e,o)=>{"use strict";o.d(e,{ActionGroup:()=>i});class n{constructor(t,e){this._group=t;const{hotkey:o,handler:n,desc:i,isDisabled:s,element:r=null,isRepeatAccepted:a=!1}=e;this.hotkey=o,this.handler=n,this.desc=i,this.element=r,this.isRepeatAccepted=a,this.isDisabled=s?"function"==typeof s?s:()=>!0:()=>!1}destroy(){this._group&&(this._group.remove(this),this._group=null)}}class i{constructor(t,e){this._actions=new Map,this._manager=t,this.modal=!(!e||!e.modal),e&&(this.desc=e.desc),e&&e.isDisabled?"function"==typeof e.isDisabled?this.isDisabled=e.isDisabled:this.isDisabled=()=>!0:this.isDisabled=()=>!1,this._manager.registerGroup(this)}add(t){let e=this._actions.get(t.hotkey);e||(e=[],this._actions.set(t.hotkey,e));const o=new n(this,t) ;return e.push(o),o}remove(t){const e=this._actions.get(t.hotkey);if(!e)return;const o=e.findIndex((e=>e===t));o>=0&&(1===e.length?this._actions.delete(t.hotkey):e.splice(o,1))}handleHotkey(t,e){const o=this._actions.get(t);if(!o)return!1;for(const n of o)if((!n.element||e.target&&n.element.contains(e.target))&&!n.isDisabled(e))return e.repeat&&!n.isRepeatAccepted||(n.handler(e),this._callMatchedHotkeyHandler(t)),e.preventDefault(),!0;return!1}promote(){this._manager.promoteGroup(this)}destroy(){for(const[,t]of this._actions)for(const e of t)e.destroy();this._actions.clear(),this._manager.unregisterGroup(this)}static setMatchedHotkeyHandler(t){i._matchedHotkeyHandler=t}_callMatchedHotkeyHandler(t){i._matchedHotkeyHandler&&i._matchedHotkeyHandler(t)}}},163586:(t,e,o)=>{"use strict";o.d(e,{ActionManager:()=>c});var n=o(91679),i=o(591800),s=o(607423);class r{constructor(t,e){this.modifiers=t,this.code=e}altOrOptionCode(){return"AltLeft"===this.code||"AltRight"===this.code}controlOrMetaCode(){return i.isMacKeyboard?"MetaLeft"===this.code||"MetaRight"===this.code||"OSLeft"===this.code||"OSRight"===this.code:"ControlLeft"===this.code||"ControlRight"===this.code}}class a extends n.WatchedValue{setValue(t,e){const o=this.value();(e||void 0===o||o.code!==t.code||o.modifiers!==t.modifiers)&&super.setValue(t)}}class c{constructor(){this._groups=[],this._pressedKeys=new n.WatchedValue(0),this._keyboardPressedKeysState=new a(new r(0)),this._keyDownListener=t=>{if(t.defaultPrevented)return;const e=(0,i.hashFromEvent)(t);if(this._pressedKeys.setValue(e),this._keyboardPressedKeysState.setValue(new r((0,i.modifiersFromEvent)(t),t.code)),!(0,s.isNativeUIInteraction)(e,t.target))for(let o=this._groups.length;o-- >0;){const n=this._groups[o];if(!n.isDisabled()){if(n.handleHotkey(e,t))return;if(n.modal)return}}},this._keyUpListener=t=>{const e=(0,i.hashFromEvent)(t);this._pressedKeys.setValue(e),this._keyboardPressedKeysState.setValue(new r((0,i.modifiersFromEvent)(t),""))},this._blurEvent=()=>{this._pressedKeys.setValue(0),this._keyboardPressedKeysState.setValue(new r(0,""))},this._mouseEvent=t=>{const e=(0,i.modifiersFromEvent)(t),o=255&(this._pressedKeys.value()??0);this._pressedKeys.setValue(e|o)}}listen(t){t.addEventListener("keydown",this._keyDownListener),t.addEventListener("keyup",this._keyUpListener),t.addEventListener("blur",this._blurEvent),t.addEventListener("mousemove",this._mouseEvent)}unlisten(t){t.removeEventListener("keydown",this._keyDownListener),t.removeEventListener("keyup",this._keyUpListener),t.removeEventListener("blur",this._blurEvent),t.removeEventListener("mousemove",this._mouseEvent)}registerGroup(t){this._groups.push(t)}unregisterGroup(t){for(let e=this._groups.length;e--;)this._groups[e]===t&&this._groups.splice(e,1)}promoteGroup(t){let e=this._groups.length-1;for(let o=this._groups.length;o--;){if(this._groups[o]===t)return void(o!==e&&(this._groups.splice(o,1),this._groups.splice(e,0,t)));this._groups[o].modal&&(e=o-1)}}pressedKeys(){return this._pressedKeys.readonly()}keyboardPressedKeysState(){ return this._keyboardPressedKeysState.readonly()}}},745269:(t,e,o)=>{"use strict";o.d(e,{CubicBezier:()=>s,color:()=>r,dur:()=>n,easingFunc:()=>i});const n=350,i={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t*t:(4-2*t)*t-1,easeInCubic:t=>t*t*t,easeOutCubic:t=>--t*t*t+1,easeInOutCubic:t=>t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1- --t*t*t*t,easeInOutQuart:t=>t<.5?8*t*t*t*t:1-8*--t*t*t*t,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1+--t*t*t*t*t,easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t};class s{constructor(t,e,o,n){this._mX1=t,this._mY1=e,this._mX2=o,this._mY2=n}easingFunc(t){return this._mX1===this._mY1&&this._mX2===this._mY2?t:this._calcBezier(this._getTForX(t))}_a(t,e){return 1-3*e+3*t}_b(t,e){return 3*e-6*t}_c(t){return 3*t}_calcBezier(t){return((this._a(this._mY1,this._mY2)*t+this._b(this._mY1,this._mY2))*t+this._c(this._mY1))*t}_getSlope(t){return 3*this._a(this._mX1,this._mX2)*t*t+2*this._b(this._mX1,this._mX2)*t+this._c(this._mX1)}_getTForX(t){let e=t;for(let o=0;o<4;++o){const o=this._getSlope(e);if(0===o)return e;e-=(this._calcBezier(e)-t)/o}return e}}const r={black70:"#4A4A4A",black80:"#535353"}},267521:(t,e,o)=>{"use strict";o.d(e,{useFunctionalRefObject:()=>s});var n=o(50959),i=o(774218);function s(t){const e=(0,n.useMemo)((()=>function(t){const e=o=>{t(o),e.current=o};return e.current=null,e}((t=>{a.current(t)}))),[]),o=(0,n.useRef)(null),s=e=>{if(null===e)return r(o.current,e),void(o.current=null);o.current!==t&&(o.current=t,r(o.current,e))},a=(0,n.useRef)(s);return a.current=s,(0,i.useIsomorphicLayoutEffect)((()=>{if(null!==e.current)return a.current(e.current),()=>a.current(null)}),[t]),e}function r(t,e){null!==t&&("function"==typeof t?t(e):t.current=e)}},774218:(t,e,o)=>{"use strict";o.d(e,{useIsomorphicLayoutEffect:()=>i});var n=o(50959);function i(t,e){("undefined"==typeof window?n.useEffect:n.useLayoutEffect)(t,e)}},940194:(t,e,o)=>{"use strict";function n(t,e,o,n,i){function s(i){if(t>i.timeStamp)return;const s=i.target;void 0!==o&&null!==e&&null!==s&&s.ownerDocument===n&&(e.contains(s)||o(i))}return i.click&&n.addEventListener("click",s,!1),i.mouseDown&&n.addEventListener("mousedown",s,!1),i.touchEnd&&n.addEventListener("touchend",s,!1),i.touchStart&&n.addEventListener("touchstart",s,!1),()=>{n.removeEventListener("click",s,!1),n.removeEventListener("mousedown",s,!1),n.removeEventListener("touchend",s,!1),n.removeEventListener("touchstart",s,!1)}}o.d(e,{addOutsideEventListener:()=>n})},853970:(t,e,o)=>{"use strict";o.d(e,{useOutsideEvent:()=>n.useOutsideEvent});var n=o(31241)},31241:(t,e,o)=>{"use strict";o.d(e,{useOutsideEvent:()=>r});var n=o(50959),i=o(774218),s=o(940194);function r(t){const{click:e,mouseDown:o,touchEnd:r,touchStart:a,handler:c,reference:l}=t,d=(0,n.useRef)(null),h=(0,n.useRef)("undefined"==typeof window?0:new window.CustomEvent("timestamp").timeStamp);return(0,i.useIsomorphicLayoutEffect)((()=>{const t={click:e,mouseDown:o,touchEnd:r,touchStart:a},n=l?l.current:d.current;return(0, s.addOutsideEventListener)(h.current,n,c,document,t)}),[e,o,r,a,c]),l||d}},444530:(t,e,o)=>{"use strict";o.d(e,{useResizeObserver:()=>r});var n=o(50959),i=o(774218),s=o(267521);function r(t,e=[]){const{callback:o,ref:r=null}=function(t){return"function"==typeof t?{callback:t}:t}(t),a=(0,n.useRef)(null),c=(0,n.useRef)(o);c.current=o;const l=(0,s.useFunctionalRefObject)(r),d=(0,n.useCallback)((t=>{l(t),null!==a.current&&(a.current.disconnect(),null!==t&&a.current.observe(t))}),[l,a]);return(0,i.useIsomorphicLayoutEffect)((()=>(a.current=new ResizeObserver(((t,e)=>{c.current(t,e)})),l.current&&d(l.current),()=>{a.current?.disconnect()})),[l,...e]),d}},265005:(t,e,o)=>{"use strict";o.d(e,{Loader:()=>n.Loader});var n=o(386290)},386290:(t,e,o)=>{"use strict";o.d(e,{Loader:()=>a});var n=o(50959),i=o(497754),s=o(649107),r=o.n(s);function a(t){const{className:e,size:o="medium",staticPosition:s,color:a="black"}=t,c=i(r().item,r()[a],r()[o]);return n.createElement("span",{className:i(r().loader,s&&r().static,e)},n.createElement("span",{className:c}),n.createElement("span",{className:c}),n.createElement("span",{className:c}))}},74446:(t,e,o)=>{"use strict";o.d(e,{Portal:()=>l,PortalContext:()=>d});var n=o(50959),i=o(632227),s=o(925931),r=o(351290),a=o(593110),c=o(474647);class l extends n.PureComponent{constructor(){super(...arguments),this._uuid=(0,s.nanoid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const t=this._manager().ensureWindow(this._uuid,this.props.layerOptions);t.style.top=this.props.top||"",t.style.bottom=this.props.bottom||"",t.style.left=this.props.left||"",t.style.right=this.props.right||"",t.style.pointerEvents=this.props.pointerEvents||"";const e=this.props.className;return e&&("string"==typeof e?t.classList.add(e):t.classList.add(...e)),this.props.shouldTrapFocus&&!t.hasAttribute(a.FOCUS_TRAP_DATA_ATTRIBUTE)&&t.setAttribute(a.FOCUS_TRAP_DATA_ATTRIBUTE,"true"),this.props["aria-hidden"]&&t.setAttribute("aria-hidden","true"),i.createPortal(n.createElement(d.Provider,{value:this},this.props.children),t)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,r.getRootOverlapManager)():this.context}}l.contextType=c.SlotContext;const d=n.createContext(null)},474647:(t,e,o)=>{"use strict";o.d(e,{Slot:()=>n.Slot,SlotContext:()=>n.SlotContext});var n=o(581585)},581585:(t,e,o)=>{"use strict";o.d(e,{Slot:()=>i,SlotContext:()=>s});var n=o(50959);class i extends n.Component{shouldComponentUpdate(){return!1}render(){return n.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const s=n.createContext(null)},746326:(t,e,o)=>{"use strict";function n(t){const{paddingTop:e,paddingBottom:o}=window.getComputedStyle(t);return[e,o].reduce(((t,e)=>t-Number((e||"").replace("px",""))),t.clientHeight)}function i(t,e=!1){const o=getComputedStyle(t),n=[o.height];return"border-box"!==o.boxSizing&&n.push(o.paddingTop,o.paddingBottom,o.borderTopWidth,o.borderBottomWidth),e&&n.push(o.marginTop,o.marginBottom), n.reduce(((t,e)=>t+(parseFloat(e)||0)),0)}function s(t,e=!1){const o=getComputedStyle(t),n=[o.width];return"border-box"!==o.boxSizing&&n.push(o.paddingLeft,o.paddingRight,o.borderLeftWidth,o.borderRightWidth),e&&n.push(o.marginLeft,o.marginRight),n.reduce(((t,e)=>t+(parseFloat(e)||0)),0)}o.d(e,{contentHeight:()=>n,outerHeight:()=>i,outerWidth:()=>s})},593110:(t,e,o)=>{"use strict";o.d(e,{FOCUS_TRAP_DATA_ATTRIBUTE:()=>n});const n="data-focus-trap"},58407:(t,e,o)=>{"use strict";o.d(e,{OutsideEvent:()=>i});var n=o(853970);function i(t){const{children:e,...o}=t;return e((0,n.useOutsideEvent)(o))}},351290:(t,e,o)=>{"use strict";o.d(e,{OverlapManager:()=>r,getRootOverlapManager:()=>c});var n=o(650151),i=o(593110);class s{constructor(){this._storage=[]}add(t){this._storage.push(t)}remove(t){this._storage=this._storage.filter((e=>t!==e))}has(t){return this._storage.includes(t)}getItems(){return this._storage}}class r{constructor(t=document){this._storage=new s,this._windows=new Map,this._index=0,this._document=t,this._container=t.createDocumentFragment()}setContainer(t){const e=this._container,o=null===t?this._document.createDocumentFragment():t;!function(t,e){Array.from(t.childNodes).forEach((t=>{t.nodeType===Node.ELEMENT_NODE&&e.appendChild(t)}))}(e,o),this._container=o}registerWindow(t){this._storage.has(t)||this._storage.add(t)}ensureWindow(t,e={position:"fixed",direction:"normal"}){const o=this._windows.get(t);if(void 0!==o)return o;this.registerWindow(t);const n=this._document.createElement("div");if(n.style.position=e.position,n.style.zIndex=this._index.toString(),n.dataset.id=t,void 0!==e.index){const t=this._container.childNodes.length;if(e.index>=t)this._container.appendChild(n);else if(e.index<=0)this._container.insertBefore(n,this._container.firstChild);else{const t=this._container.childNodes[e.index];this._container.insertBefore(n,t)}}else"reverse"===e.direction?this._container.insertBefore(n,this._container.firstChild):this._container.appendChild(n);return this._windows.set(t,n),++this._index,n}unregisterWindow(t){this._storage.remove(t);const e=this._windows.get(t);void 0!==e&&(null!==e.parentElement&&e.parentElement.removeChild(e),this._windows.delete(t))}getZindex(t){const e=this.ensureWindow(t);return parseInt(e.style.zIndex||"0")}moveLastWindowToTop(){const t=this._storage.getItems(),e=t[t.length-1];e&&this.moveToTop(e)}moveToTop(t){if(this.getZindex(t)!==this._index){const e=this.ensureWindow(t);this._windows.forEach(((t,o)=>{t.hasAttribute(i.FOCUS_TRAP_DATA_ATTRIBUTE)&&t.setAttribute(i.FOCUS_TRAP_DATA_ATTRIBUTE,t===e?"true":"false")})),e.style.zIndex=(++this._index).toString()}}removeWindow(t){this.unregisterWindow(t)}}const a=new WeakMap;function c(t=document){const e=t.getElementById("overlap-manager-root");if(null!==e)return(0,n.ensureDefined)(a.get(e));{const e=new r(t),o=function(t){const e=t.createElement("div");return e.style.position="absolute",e.style.zIndex=150..toString(),e.style.top="0px",e.style.left="0px",e.id="overlap-manager-root",e}(t);return a.set(o,e),e.setContainer(o), t.body.appendChild(o),e}}},499994:(t,e,o)=>{"use strict";o.d(e,{getTooltipData:()=>i,setTooltipData:()=>s});const n=new WeakMap;function i(t,e){const o=n.get(t);return o instanceof Function?o(e):o&&o[e]}function s(t,e,o){if(o instanceof Function)return void n.set(t,o);const i=n.get(t),s=void 0===i||i instanceof Function?{}:i;s[e]=o,n.set(t,s)}},471802:(t,e,o)=>{"use strict";o.d(e,{getDataFromTarget:()=>_,getTooltip:()=>f,hideTooltip:()=>v,setStyle:()=>g,showTooltip:()=>b,updateTooltipTextFromTarget:()=>m});var n=o(650151),i=o(760863),s=o(969680),r=(o(142492),o(982528)),a=o(982367),c=o(638456);const l={default:"",white:"theme-white",chart:"theme-chart","round-shadow":"theme-round-shadow"},d=Object.keys(l);var h=o(499994),u=o(604286),p=o(646021);function m(t){const e=t.hasAttribute("data-tooltip")?t.getAttribute("data-tooltip"):t.getAttribute("title");return e&&((0,h.setTooltipData)(t,"text",e),t.removeAttribute("title")),(0,h.getTooltipData)(t,"text")||""}function _(t){const e=m(t),o=t.getBoundingClientRect(),n={h:o.height,w:o.width,x:o.left,y:o.top},i=t.getAttribute("data-color-theme")||"",s=t.classList.contains("common-tooltip-html"),r=parseInt(t.getAttribute("data-tooltip-delay")||""),a=parseInt(t.getAttribute("data-tooltip-debounce")||"");let c={type:"none"};return e&&(c={type:s?"html":"text",data:e}),{above:t.classList.contains("common-tooltip-above"),below:t.classList.contains("common-tooltip-below"),otl:t.classList.contains("common-tooltip-otl"),otr:t.classList.contains("common-tooltip-otr"),vertical:t.classList.contains("common-tooltip-vertical"),hotkey:t.getAttribute("data-tooltip-hotkey"),narrow:t.classList.contains("common-tooltip-narrow"),wide:t.classList.contains("common-tooltip-wide"),colorTheme:i,tooltipDelay:r,tooltipDebounce:a,rect:n,content:c,target:t}}function f(t){const e=(0,n.ensureNotNull)(C).cloneNode(!0),o=T(e),{content:i}=t;switch(i.type){case"element":o.innerHTML="",o.appendChild(i.data);break;case"html":o.innerHTML=i.data;break;case"text":if(t.hotkey){const t=(0,n.ensureNotNull)(L).cloneNode(!0);t.innerText=i.data,o.appendChild(t)}else o.innerText=i.data}if(t.hotkey){const e="none"!==i.type,s=(0,n.ensureNotNull)(E).cloneNode(!0),r=(0,u.hotKeyDeserialize)(t.hotkey),a=r.keys.map((t=>`${t}`));s.innerHTML=function(t,e){const o=/{\d}|{hotkey_\d}/gi;return t.replace(o,(t=>{const o=Number(t.match(/\d/));return e[o]}))}(r.text,a).replace(/\s\+\s/g,`+`),o.classList.add(p["common-tooltip__body--with-hotkey"]),e&&s.classList.add(p["common-tooltip__hotkey-block--divider"]),o.appendChild(s)}return e.addEventListener("contextmenu",r.preventDefault),e}function g(t,e){const o=e.rect;if(!o)return;!function(t,e){const o=d.includes(e)?l[e]:"";t.classList.remove(...d.map((t=>l[t])).filter((t=>!!t))),o&&!t.classList.contains(o)&&t.classList.add(o)}(t,e.colorTheme||"default"),e.addClass&&t.classList.add(e.addClass);const n=T(t),i=t.querySelector(`.${p["common-tooltip__button-container"]}`) ;n.classList.toggle(p["common-tooltip__body--width_wide"],Boolean(e.wide)),n.classList.toggle(p["common-tooltip__body--no-padding"],Boolean(e.noPadding)),n.classList.toggle(p["common-tooltip__body--width_narrow"],Boolean(e.narrow)),n.classList.toggle(p["common-tooltip__body--no-buttons"],!0),n.style.left=y(0),n.style.width=y(n.clientWidth+(Boolean(e.noPadding)?0:2));const r=document.body.clientWidth,h=c.CheckMobile.iOS()||c.CheckMobile.Android()||(0,c.supportTouch)()&&(0,c.isMac)()?window.innerHeight:document.body.clientHeight,u=e.vertical,m=e.extendMargin||u&&o.w<20||!u&&o.h<20;t.classList.toggle(p["common-tooltip--farther"],m),t.classList.toggle(p["common-tooltip--vertical"],u),t.classList.toggle(p["common-tooltip--horizontal"],!u);const _=function(t){return t.querySelector(`.${p["common-tooltip__ear-holder"]}`)}(t),f=t.offsetHeight;if(u){const c=10,l=h-10,d=12,u=c+d,m=l-d,g=(0,a.clamp)(o.y+o.h/2,u,m)-f/2,b=g+f;t.style.left=y(o.x+o.w),t.style.top=y(g),gl&&(n.style.top=i.style.top=y(l-b));const{right:v}=(t.querySelector(":last-child")||n).getBoundingClientRect(),w=v+10>r;t.classList.toggle(p["common-tooltip--direction_reversed"],w),t.classList.toggle(p["common-tooltip--direction_normal"],!w);let k=w?"after":"before";(0,s.isRtl)()?(k=e.otr?"after":k,k=e.otl?"before":k):(k=e.otr?"before":k,k=e.otl?"after":k),_.classList.toggle(p["common-tooltip__ear-holder--before"],"before"===k),_.classList.toggle(p["common-tooltip__ear-holder--after"],"after"===k),"after"===k&&(t.style.left="auto",t.style.right=y(r-o.x))}else{const s=o.x-(n.offsetWidth-o.w)/2,a=r-t.offsetWidth-20<=0?(r-t.offsetWidth)/2:10,c=r-a-t.offsetWidth,l=Math.max(a,Math.min(s,c));t.style.left=y(l);const d=c\n\t\t
\n\t\t\t
\n\t\t
\n\t\t
\n\t\n`,k=`\n\t
\n`,x=`\n\t
\n`,C=(0,i.parseHtmlElement)(w),E=(0, i.parseHtmlElement)(k),L=(0,i.parseHtmlElement)(x);function T(t){return t.querySelector(`.${p["common-tooltip__body"]}`)}function D(t,e){return 10+t{"use strict";o.d(e,{empty:()=>r,setTooltip:()=>a});const n="tooltip-root-element";let i;function s(){const t=document.getElementById(n);t?i=t:(i=document.createElement("div"),i.id=n,document.body.appendChild(i))}function r(){i&&(i.innerHTML="")}function a(t){r(),i&&i.appendChild(t)}"interactive"===document.readyState?s():document.addEventListener("DOMContentLoaded",s)},112539:(t,e,o)=>{"use strict";o.d(e,{clearSchedule:()=>r,scheduleHide:()=>c,scheduleRemove:()=>a,scheduleRender:()=>l});let n=0,i=0,s=0;function r(){clearTimeout(n),clearTimeout(i),clearTimeout(s)}function a(t,e){s=setTimeout(t,e)}function c(t,e){i=setTimeout(t,e)}function l(t,e){n=setTimeout(t,e)}},207678:(t,e,o)=>{"use strict";o.d(e,{breakpoints:()=>n,mobileFirstBreakpoints:()=>i,mobileFirstLegacyBreakpoints:()=>s});const n={desktop:1/0,desktopHd:1919,phone:767,"phone-vertical":479,tablet:1019},i={base:0,"media-mf-phone-vertical":320,"media-mf-phone-landscape":568,"media-mf-tablet-vertical":768,"media-mf-tablet-landscape":1024,"media-mf-laptop":1280,"media-mf-desktop-medium":1440,"media-mf-desktop-large":1920,"media-mf-desktop-extra-large":2560},s={"media-mf-legacy-phone-vertical":330,"media-mf-legacy-phone":480,"media-mf-legacy-notebook":1020,"media-mf-legacy-desktop-medium":1480,"media-mf-legacy-desktop":1531}},776734:(t,e,o)=>{"use strict";async function n(){if(!window.user||window.user.do_not_track)return null;{const t=(await Promise.all([o.e(73034),o.e(3567),o.e(24081)]).then(o.bind(o,823623))).getTrackerInstance();return t||null}}o.d(e,{getTracker:()=>n})},61499:(t,e,o)=>{"use strict";var n;o.d(e,{StdTheme:()=>n}),function(t){t.Light="light",t.Dark="dark"}(n||(n={}))},735270:(t,e,o)=>{"use strict";o.d(e,{anchors:()=>i,makeAnchorable:()=>s});var n=o(50959);const i={bottom:{attachment:{horizontal:"left",vertical:"top"},targetAttachment:{horizontal:"left",vertical:"bottom"}},top:{attachment:{horizontal:"left",vertical:"bottom"},targetAttachment:{horizontal:"left",vertical:"top"}},topRight:{attachment:{horizontal:"right",vertical:"bottom"},targetAttachment:{horizontal:"right",vertical:"top"}},bottomRight:{attachment:{horizontal:"right",vertical:"top"},targetAttachment:{horizontal:"right",vertical:"bottom"}}};function s(t){var e;return(e=class extends n.PureComponent{render(){const{anchor:e="bottom"}=this.props;return n.createElement(t,{...this.props,attachment:i[e].attachment,targetAttachment:i[e].targetAttachment})}}).displayName="Anchorable Component",e}},149368:(t,e,o)=>{"use strict";o.d(e,{makeAttachable:()=>s});var n=o(50959),i=o(632227);function s(t){var e;return(e=class extends n.PureComponent{constructor(t){super(t),this._getComponentInstance=t=>{this._instance=t},this._throttleCalcProps=()=>{requestAnimationFrame((()=>this.setState(this._calcProps(this.props))))},this.state=this._getStateFromProps()}componentDidMount(){this._instanceElem=i.findDOMNode(this._instance), this.props.attachOnce||this._subscribe(),this.setState(this._calcProps(this.props))}componentDidUpdate(t){t.children===this.props.children&&t.top===this.props.top&&t.left===this.props.left&&t.width===this.props.width||this.setState(this._getStateFromProps(),(()=>this.setState(this._calcProps(this.props))))}render(){return n.createElement("div",{style:{position:"absolute",width:"100%",top:0,left:0}},n.createElement(t,{...this.props,ref:this._getComponentInstance,top:this.state.top,bottom:void 0!==this.state.bottom?this.state.bottom:"auto",right:void 0!==this.state.right?this.state.right:"auto",left:this.state.left,width:this.state.width,maxWidth:this.state.maxWidth},this.props.children))}componentWillUnmount(){this._unsubsribe()}_getStateFromProps(){return{bottom:this.props.bottom,left:this.props.left,right:this.props.right,top:void 0!==this.props.top?this.props.top:-1e4,width:this.props.inheritWidthFromTarget?this.props.target&&this.props.target.getBoundingClientRect().width:this.props.width,maxWidth:this.props.inheritMaxWidthFromTarget&&this.props.target&&this.props.target.getBoundingClientRect().width}}_calcProps(t){if(t.target&&t.attachment&&t.targetAttachment){const e=this._calcTargetProps(t.target,t.attachment,t.targetAttachment);if(null===e)return{};const{width:o,inheritWidthFromTarget:n=!0,inheritMaxWidthFromTarget:i=!1}=this.props,s={width:n?e.width:o,maxWidth:i?e.width:void 0};switch(t.attachment.vertical){case"bottom":case"middle":s.top=e.y;break;default:s[t.attachment.vertical]=e.y}switch(t.attachment.horizontal){case"right":case"center":s.left=e.x;break;default:s[t.attachment.horizontal]=e.x}return s}return{}}_calcTargetProps(t,e,o){const n=t.getBoundingClientRect(),i=this._instanceElem.getBoundingClientRect(),s="parent"===this.props.root?this._getCoordsRelToParentEl(t,n):this._getCoordsRelToDocument(n);if(null===s)return null;const r=this._getDimensions(i),a=this._getDimensions(n).width;let c=0,l=0;switch(e.vertical){case"top":l=s[o.vertical];break;case"bottom":l=s[o.vertical]-r.height;break;case"middle":l=s[o.vertical]-r.height/2}switch(e.horizontal){case"left":c=s[o.horizontal];break;case"right":c=s[o.horizontal]-r.width;break;case"center":c=s[o.horizontal]-r.width/2}return"number"==typeof this.props.attachmentOffsetY&&(l+=this.props.attachmentOffsetY),"number"==typeof this.props.attachmentOffsetX&&(c+=this.props.attachmentOffsetX),{x:c,y:l,width:a}}_getCoordsRelToDocument(t){const e=pageYOffset,o=pageXOffset,n=t.top+e,i=t.bottom+e,s=t.left+o;return{top:n,bottom:i,left:s,right:t.right+o,middle:(n+t.height)/2,center:s+t.width/2}}_getCoordsRelToParentEl(t,e){const o=t.offsetParent;if(null===o)return null;const n=o.scrollTop,i=o.scrollLeft,s=t.offsetTop+n,r=t.offsetLeft+i,a=e.width+r;return{top:s,bottom:e.height+s,left:r,right:a,middle:(s+e.height)/2,center:(r+e.width)/2}}_getDimensions(t){return{height:t.height,width:t.width}}_subscribe(){"document"===this.props.root&&(window.addEventListener("scroll",this._throttleCalcProps,!0),window.addEventListener("resize",this._throttleCalcProps))}_unsubsribe(){ window.removeEventListener("scroll",this._throttleCalcProps,!0),window.removeEventListener("resize",this._throttleCalcProps)}}).displayName="Attachable Component",e}},368337:(t,e,o)=>{"use strict";o.d(e,{makeOverlapable:()=>s});var n=o(50959),i=o(707533);function s(t,e){return class extends n.PureComponent{render(){const{isOpened:o,root:s}=this.props;if(!o)return null;const r=n.createElement(t,{...this.props,ref:this.props.componentRef,zIndex:150});return"parent"===s?r:n.createElement(i.Portal,{shouldTrapFocus:e},r)}}}},320116:(t,e,o)=>{"use strict";o.d(e,{CloseDelegateContext:()=>s});var n=o(50959),i=o(224743);const s=n.createContext(i.globalCloseDelegate)},707533:(t,e,o)=>{"use strict";o.d(e,{Portal:()=>n.Portal,PortalContext:()=>n.PortalContext});var n=o(910958)},670797:(t,e,o)=>{"use strict";o.d(e,{Slot:()=>n.Slot,SlotContext:()=>n.SlotContext});var n=o(474647)},786284:(t,e,o)=>{"use strict";var n=o(779893);const i=o(735566).getLogger("CommonUI.CreateTVBlockPlugin");t.exports.createTvBlockWithInstance=function(t,e){if(t&&e)return t=t.toString(),function(s,r,a){var c,l,d;return"get"===s?c=r:(l=r,"object"==typeof s&&void 0===r?(l=s,s="init"):"string"!=typeof s&&(s="init")),"getInstance"===s?n(this).eq(0).data(t):"destroy"===s?(d=n(this).eq(0).data(t))?void("function"==typeof d.destroy?(o(d,"destroy",l),n(this).eq(0).removeData(t)):i.logError("[Block Plugin] "+t+" does not support destroy command")):void console.warn("[Block Plugin] Trying to execute destroy method of "+t+" but it has not been inited"):"get"===s?(d=n(this).eq(0).data(t))?"function"==typeof d[c]?o(d,c,a):d[c]:void console.warn("[Block Plugin] Trying to get prop or execute method of "+t+" but it has not been inited"):n(this).each((function(){var r=n(this),a=r.data(t);void 0===a&&(a=void 0===l?e(r):e(r,l),r.data(t,a)),"init"!==s&&("function"==typeof a[s]?o(a,s,l):i.logError("[Block Plugin] "+t+" does not support command "+s))}))};function o(t,e,o){return void 0===o?t[e]():t[e](o)}}},337793:(t,e,o)=>{"use strict";o.d(e,{default:()=>d});var n=o(786284),i=(o(183928),o(779893)),s=o(213398);const r=o(735566).getLogger("Ui.TvControlCheckbox"),a={labelWrapper:'{{#hasLabel}}{{/hasLabel}}{{^hasLabel}}{{> inputWrapper }}{{/hasLabel}}',inputWrapper:'<{{ tag }} class="{{ customClass }}{{#disabled}} i-disabled{{/disabled}}">{{^hasCheckbox}}{{> checkbox }}{{/hasCheckbox}}{{> box }}',checkbox:'',checkboxClass:"{{ customClass }}__input",box:''+o(481516)+""},c="i-inited" ;class l{constructor({customClass:t="tv-control-checkbox",$checkbox:e,tag:o,id:n,name:s,checked:a,disabled:l,labelLeft:d,labelRight:h,labelAddClass:u,boxAddClass:p}){this.$el=null,void 0===o&&(o=d||h?"span":"label");const m=e instanceof i&&!!e.length;if(m){if(!e.is("input[type=checkbox]"))return void r.logError("`$checkbox` need to be input[type=checkbox]");if(e.hasClass(c))return;this._setInputId(e,n),this._setInputClass(e,t),this._setInputName(e,s),this._setInputChecked(e,a),this._setInputDisabled(e,l),a=!!e.prop("checked"),l=!!e.attr("disabled")}this.$el=this.render({$checkbox:e,hasCheckbox:m,customClass:t,tag:o,id:n,name:s,checked:a,disabled:l,labelLeft:d,labelRight:h,hasLabel:d||h,labelAddClass:u,boxAddClass:p}),this.$checkbox=m?e:this.$el.find("input[type=checkbox]")}_setInputId(t,e){void 0!==e&&t.attr("id",e)}_setInputClass(t,e){const o=s.render(a.checkboxClass,{customClass:e});t.addClass(o)}_setInputName(t,e){void 0!==e&&t.attr("name",e)}_setInputChecked(t,e){void 0!==e&&t.prop("checked",!!e)}_setInputDisabled(t,e){void 0!==e&&(e?t.setAttribute("disabled","disabled"):t.removeAttr("disabled"))}render(t){const e=t.$checkbox,o=i(s.render(a.labelWrapper,t,a));if(t.hasCheckbox){o.insertBefore(e);o.find("."+t.customClass).andSelf().filter("."+t.customClass).eq(0).prepend(e.detach()),e.addClass(c)}return o}set checked(t){this._setInputChecked(this.$checkbox,!!t)}get checked(){return!!this.$checkbox.prop("checked")}}i.fn.tvControlCheckbox=(0,n.createTvBlockWithInstance)("tv-control-checkbox",(function(t,e={}){return new l(TradingView.merge(e,{$checkbox:t}))}));const d=l},335048:(t,e,o)=>{"use strict";o.d(e,{CubicBezier:()=>n.CubicBezier,color:()=>n.color,dur:()=>n.dur,easingFunc:()=>n.easingFunc});var n=o(745269)},184026:(t,e,o)=>{"use strict";var n;function i(t){return!(!t||!Object.keys(t).length)}function s(t){return!!t.is_trial}function r(t){return!!t?.pro_plan}function a(t){return r(t)&&!s(t)}function c(t){return t.type===n.ProPlan}function l(t){return t.type===n.Exchange}function d(t){return t.type===n.Coins}function h(t){return t?l(t)||d(t)?t.text_id??"":t.discount_text_id??t.text_id??"":""}o.d(e,{ProductType:()=>n,getProductId:()=>h,isCoinsProduct:()=>d,isExchange:()=>l,isPaidPro:()=>a,isPlan:()=>c,isPro:()=>r,isProductDefined:()=>i,isTrial:()=>s}),function(t){t[t.ProPlan=1]="ProPlan",t[t.NewsFeed=3]="NewsFeed",t[t.Exchange=4]="Exchange",t[t.Connection=6]="Connection",t[t.Coins=8]="Coins"}(n||(n={}))},779893:(t,e,o)=>{const n=o(647793);t.exports=n,n(document).ajaxSend(((t,e,o)=>{o.crossDomain&&!o.forceLanguageHeader||(window.locale?e.setRequestHeader("X-Language",window.locale):console.warn("window.locale is not defined"))}))},982528:(t,e,o)=>{"use strict";function n(t){t.preventDefault()}o.d(e,{preventDefault:()=>n,preventDefaultForContextMenu:()=>s});const i=["input:not([type])",'input[type="text"]','input[type="email"]','input[type="password"]','input[type="search"]','input[type="number"]','input[type="url"]',"textarea","a[href]",'*[contenteditable="true"]',"[data-allow-context-menu]"];function s(t){ const e=t.target;e&&!e.closest(i.join(", "))&&t.preventDefault()}},481516:t=>{t.exports=''},490778:(t,e,o)=>{"use strict";t.exports=o.p+"desktop.48bb0acc31aeb2422416.webp"},901896:(t,e,o)=>{"use strict";t.exports=o.p+"tablet.5ed26c209de7e1b5845d.webp"},586240:t=>{"use strict";t.exports=JSON.parse('{"size-header-height":"64px","size-sticky-symbol-header-height":"64px","size-dialog-fixed-header-height":"72px","media-phone":"all and (max-width: 767px)","media-phone-vertical":"all and (max-width: 479px)","media-mf-phone-vertical":"all and (min-width: 320px)","media-mf-phone-landscape":"all and (min-width: 568px)","media-mf-tablet-vertical":"all and (min-width: 768px)","media-mf-tablet-landscape":"all and (min-width: 1024px)","media-mf-laptop":"all and (min-width: 1280px)","media-mf-desktop-large":"all and (min-width: 1920px)"}')}}]);