(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8507],{14487:(e,t)=>{var r;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e=[],t=0;t{e.exports={button:"button-D4RPB3ZC",iconOnly:"iconOnly-D4RPB3ZC",withStartSlot:"withStartSlot-D4RPB3ZC",withEndSlot:"withEndSlot-D4RPB3ZC",startSlotWrap:"startSlotWrap-D4RPB3ZC",endSlotWrap:"endSlotWrap-D4RPB3ZC",xsmall:"xsmall-D4RPB3ZC",small:"small-D4RPB3ZC",medium:"medium-D4RPB3ZC",large:"large-D4RPB3ZC",xlarge:"xlarge-D4RPB3ZC",content:"content-D4RPB3ZC",link:"link-D4RPB3ZC",blue:"blue-D4RPB3ZC",primary:"primary-D4RPB3ZC",secondary:"secondary-D4RPB3ZC",gray:"gray-D4RPB3ZC",green:"green-D4RPB3ZC",red:"red-D4RPB3ZC",black:"black-D4RPB3ZC",slot:"slot-D4RPB3ZC",stretch:"stretch-D4RPB3ZC",grouped:"grouped-D4RPB3ZC",adjustPosition:"adjustPosition-D4RPB3ZC",firstRow:"firstRow-D4RPB3ZC",firstCol:"firstCol-D4RPB3ZC","no-corner-top-left":"no-corner-top-left-D4RPB3ZC","no-corner-top-right":"no-corner-top-right-D4RPB3ZC","no-corner-bottom-right":"no-corner-bottom-right-D4RPB3ZC","no-corner-bottom-left":"no-corner-bottom-left-D4RPB3ZC",textWrap:"textWrap-D4RPB3ZC",multilineContent:"multilineContent-D4RPB3ZC",primaryText:"primaryText-D4RPB3ZC",secondaryText:"secondaryText-D4RPB3ZC"}},26897:e=>{e.exports={errorCard:"errorCard-S9sXvhAu",errorCard__content:"errorCard__content-S9sXvhAu",errorCard__icon:"errorCard__icon-S9sXvhAu",resizableErrorCard:"resizableErrorCard-S9sXvhAu",errorCardRendererContainer:"errorCardRendererContainer-S9sXvhAu",emptyStateBlock:"emptyStateBlock-S9sXvhAu",emptyStateBlock__icon:"emptyStateBlock__icon-S9sXvhAu"}},30287:e=>{e.exports={container:"container-yrIMi47q",title:"title-yrIMi47q",title_normal:"title_normal-yrIMi47q",icon:"icon-yrIMi47q",text:"text-yrIMi47q",text_large:"text_large-yrIMi47q",action:"action-yrIMi47q"}},63459:(e,t,r)=>{"use strict";r.d(t,{SquareButton:()=>f});var o=r(79474),n=r(14487),a=r.n(n),i=r(67440),l=r(92318),s=r.n(l);const c="apply-overflow-tooltip apply-overflow-tooltip--check-children-recursively apply-overflow-tooltip--allow-text apply-common-tooltip";function d(e){const{size:t="medium",variant:r="primary",color:o="brand",stretch:n=!1,startSlot:l,endSlot:d,iconOnly:u=!1,className:m,isGrouped:p,cellState:h,disablePositionAdjustment:v=!1,primaryText:g,secondaryText:f,isAnchor:C=!1}=e,x="brand"===o?"black":o,y=function(e){let t="";return 0!==e&&(1&e&&(t=a()(t,s()["no-corner-top-left"])),2&e&&(t=a()(t,s()["no-corner-top-right"])),4&e&&(t=a()(t,s()["no-corner-bottom-right"])),8&e&&(t=a()(t,s()["no-corner-bottom-left"]))),t}((0,i.getGroupCellRemoveRoundBorders)(h)),w=u&&(l||d) ;return a()(m,s().button,s()[t],s()[x],s()[r],n&&s().stretch,l&&s().withStartIcon,d&&s().withEndIcon,w&&s().iconOnly,y,p&&s().grouped,p&&!v&&s().adjustPosition,p&&h.isTop&&s().firstRow,p&&h.isLeft&&s().firstCol,g&&f&&s().multilineContent,C&&s().link,c)}function u(e){const{startSlot:t,iconOnly:r,children:n,endSlot:i,primaryText:l,secondaryText:d}=e;if(t&&i&&r)return o.createElement("span",{className:a()(s().slot,s().startSlotWrap)},t);const u=r&&(t??i),m=!t&&!i&&!r&&!n&&l&&d;return o.createElement(o.Fragment,null,t&&o.createElement("span",{className:a()(s().slot,s().startSlotWrap)},t),n&&!u&&o.createElement("span",{className:s().content},n),i&&o.createElement("span",{className:a()(s().slot,s().endSlotWrap)},i),m&&!u&&function(e){return e.primaryText&&e.secondaryText&&o.createElement("div",{className:a()(s().textWrap,c)},o.createElement("span",{className:s().primaryText}," ",e.primaryText," "),"string"==typeof e.secondaryText?o.createElement("span",{className:s().secondaryText}," ",e.secondaryText," "):o.createElement("span",{className:s().secondaryText},o.createElement("span",null,e.secondaryText.firstLine),o.createElement("span",null,e.secondaryText.secondLine)))}(e))}var m=r(27914),p=r(59794),h=r(40197);function v(e,t){return r=>{if(t)return r.preventDefault(),void r.stopPropagation();e?.(r)}}function g(e){const{className:t,color:r,variant:o,size:n,stretch:a,iconOnly:i,startSlot:l,endSlot:s,primaryText:c,secondaryText:d,...u}=e;return{...u,...(0,h.filterDataProps)(e),...(0,h.filterAriaProps)(e)}}function f(e){const{reference:t,tooltipText:r,disabled:n,onClick:a,onMouseOver:i,onMouseOut:l,onMouseDown:s,onMouseEnter:c,"aria-disabled":h,...f}=e,{isGrouped:C,cellState:x,disablePositionAdjustment:y}=(0,o.useContext)(p.ControlGroupContext),w=d({...f,isGrouped:C,cellState:x,disablePositionAdjustment:y}),b=r??(e.primaryText?[e.primaryText,e.secondaryText].join(" "):(0,m.getTextForTooltip)(e.children));return o.createElement("button",{...g(f),"aria-disabled":n||h,tabIndex:e.tabIndex??(n?-1:0),className:w,ref:t,onClick:v(a,n),onMouseDown:v(s,n),onMouseOver:v(i,n),onMouseOut:v(l,n),onMouseEnter:v(c,n),"data-overflow-tooltip-text":b},o.createElement(u,{...f}))}r(90741)},90741:(e,t,r)=>{"use strict";var o,n,a,i;!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"}(n||(n={})),function(e){e.Brand="brand",e.Blue="blue",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",e.Coupon="coupon",e.Offer="offer",e.Space="space"}(a||(a={})),function(e){e.Semibold18px="semibold18px",e.Semibold16px="semibold16px",e.Semibold14px="semibold14px",e.Medium16px="medium16px",e.Regular16px="regular16px",e.Regular14px="regular14px",e.Regular12px="regular12px"}(i||(i={}))},59794:(e,t,r)=>{"use strict";r.d(t,{ControlGroupContext:()=>o}) ;const o=r(79474).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},67440:(e,t,r)=>{"use strict";function o(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}r.d(t,{getGroupCellRemoveRoundBorders:()=>o})},73457:(e,t,r)=>{"use strict";r.d(t,{Icon:()=>n});var o=r(79474);const n=o.forwardRef(((e,t)=>{const{icon:r="",title:n,ariaLabel:a,ariaLabelledby:i,ariaHidden:l,...s}=e,c=!!(n||a||i);return o.createElement("span",{role:"img",...s,ref:t,"aria-label":a,"aria-labelledby":i,"aria-hidden":l||!c,title:n,dangerouslySetInnerHTML:{__html:r}})}))},66334:(e,t,r)=>{"use strict";r.d(t,{Icon:()=>o.Icon});var o=r(73457)},40197:(e,t,r)=>{"use strict";function o(e){return a(e,i)}function n(e){return a(e,l)}function a(e,t){const r=Object.entries(e).filter(t),o={};for(const[e,t]of r)o[e]=t;return o}function i(e){const[t,r]=e;return 0===t.indexOf("data-")&&"string"==typeof r}function l(e){return 0===e[0].indexOf("aria-")}function s(e,t){const r=o(e);return t&&(r["data-qa-id"]=t),r}r.d(t,{filterAriaProps:()=>n,filterCheckedDataProps:()=>s,filterDataProps:()=>o,filterProps:()=>a,isAriaAttribute:()=>l,isDataAttribute:()=>i})},27914:(e,t,r)=>{"use strict";r.d(t,{getTextForTooltip:()=>i});var o=r(79474);const n=e=>(0,o.isValidElement)(e)&&Boolean(e.props.children),a=(e,t=!0)=>null==e||"boolean"==typeof e||"{}"===JSON.stringify(e)?"":e.toString()+(t?" ":""),i=e=>Array.isArray(e)||(0,o.isValidElement)(e)?o.Children.toArray(e).reduce(((e,t)=>{let r="";return r=(0,o.isValidElement)(t)&&n(t)?i(t.props.children):(0,o.isValidElement)(t)&&!n(t)?"":a(t),e.concat(r)}),"").trim():a(e,!1)},63763:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ErrorCard:()=>L,ErrorCardRenderer:()=>_,ResizableErrorCard:()=>P});var o=r(79474),n=r(29365),a=r(89315),i=r(14487),l=r.n(i),s=r(66334),c=r(63459),d=r(7321),u=r(16905),m=r(30287);function p(e){const{title:t,tagName:r,titleSize:n,className:a}=e,i=r||"strong";return o.createElement(i,{className:l()(m.title,m[`title_${n}`],a)},t)}const h=(0,o.forwardRef)((function(e,t){return o.createElement("div",{className:i(m.container,e.className),ref:t},o.createElement("div",{className:i(m.icon,e.iconClass)},e.icon),e.title&&o.createElement(p,{title:e.title,titleSize:e.titleSize,tagName:e.titleTagName,className:e.titleClass}),e.text&&o.createElement("div",{className:i(m.text,"large"===e.textSize&&m.text_large,e.textClass)},e.text),e.action&&o.createElement("div",{className:i(m.action,e.actionClass)},e.action))}));var v,g,f=r(45703),C=r(7122),x=(r(92976),r(95354),r(53e3)),y=r(91826),w=r(93432),b=r(36546),B=r(757),S=r(82023),R=r(26897);!function(e){e[e.IconBottomPadding=16]="IconBottomPadding",e[e.BigIconSize=120]="BigIconSize",e[e.MediumIconSize=72]="MediumIconSize"}(v||(v={})),function(e){e[e.Empty=0]="Empty",e[e.Small=1]="Small",e[e.Medium=2]="Medium",e[e.Big=3]="Big"}(g||(g={}));const Z={ghost:{2:(0,u.isFeaturesetEnabled)("hide_image_invalid_symbol")?void 0:f,3:(0,u.isFeaturesetEnabled)("hide_image_invalid_symbol")?void 0:C },attention:{2:void 0,3:void 0},"stop-hand":{2:void 0,3:void 0},"unsupported-resolution":{2:x,3:y},"rocket-launch":{2:void 0,3:void 0},"ufo-and-cow":{2:w,3:b},"ufo-and-pencil":{2:B,3:S}};function M(e){return(0,d.isObject)(e)&&"animationUrl"in e}new Set(["en","gb","de_DE","fr","es","it","pl","ja"]);const L=o.forwardRef(((e,t)=>{const{icon:r,title:n,message:a,size:i=2,buttons:d}=e,u=o.useMemo((()=>r&&!M(r)&&function(e,t){if(0!==t&&1!==t)return Z[e][t]}(r,i)),[r,i]),m=o.useMemo((()=>r&&M(r)),[r]),p=o.useRef(null),v=o.useRef(null);(0,o.useEffect)((()=>{let e=!1;return()=>{e=!0,v.current?.destroy(),v.current=null}}),[m]);const g=d?d.map((({name:e,onClick:t})=>o.createElement(c.SquareButton,{key:e,onClick:t,color:"black",size:"small"},e))):null;return o.createElement("div",{className:R.errorCard,"data-name":"error-card","data-qa-id":"error-card"},o.createElement(h,{icon:m?o.createElement("div",{ref:p}):u?o.createElement(s.Icon,{icon:u,className:R.errorCard__icon}):void 0,iconClass:R.emptyStateBlock__icon,action:g?o.createElement("div",null,g):void 0,title:n,titleSize:"normal",text:a,className:l()(R.errorCard__content,R.emptyStateBlock)}))}));function P(e){const{icon:t,message:r,title:n,offsetHeight:i=0,buttons:l,mainPane:s=!1}=e,c=o.useRef(null),d=o.useRef(null),[u,m]=o.useState(2);return o.useEffect((()=>{const e=c.current,t=d.current;if(e&&t){const r=new ResizeObserver((0,a.default)(p,150));return r.observe(e),r.observe(t),()=>r.disconnect()}}),[i]),o.createElement("div",{ref:c,className:R.resizableErrorCard},o.createElement("div",{ref:d},o.createElement(L,{ref:d,message:r,title:n,icon:t,size:u,buttons:s&&1===u?void 0:l})));function p(){if(!c.current||!d.current)return;const e=c.current,t=d.current;s&&Math.min(e.clientHeight,e.clientWidth)<300?m(1):m((r=>{const o=3===r?136:2===r?88:0,n=e.clientHeight-(t.clientHeight-o+i);return n>=136?3:n>=88?2:0}))}}const E={icon:void 0,backgroundColor:null,offsetHeight:0,buttons:void 0};class _{constructor(){const e=document.createElement("div");e.classList.add(R.errorCardRendererContainer),this.container=e}destroy(){n.unmountComponentAtNode(this.container)}update(e){this._state=void 0===e?void 0:Object.assign({},E,e),this._updateContainer(),this._render()}_updateContainer(){if(void 0===this._state)return;const{backgroundColor:e,theme:t}=this._state;this.container.dataset.theme=t,this.container.style.setProperty("--backgroundColor",e)}_render(){if(void 0===this._state)return void this.destroy();const{title:e,message:t,icon:r,offsetHeight:a,buttons:i,mainPane:l}=this._state;n.render(o.createElement(P,{message:A(t)?o.createElement("span",{dangerouslySetInnerHTML:{__html:t}}):t,title:e,icon:r,offsetHeight:a,buttons:i,mainPane:l}),this.container)}}function A(e){return"string"==typeof e&&/<[a-z][\s\S]*>/i.test(e)}},95354:e=>{e.exports=''},92976:e=>{ e.exports=''},7122:e=>{e.exports=''},45703:e=>{e.exports=''},36546:e=>{ e.exports=''},93432:e=>{ e.exports=''},757:e=>{e.exports=''},82023:e=>{ e.exports=''},91826:e=>{ e.exports=''},53e3:e=>{ e.exports=''}}]);