(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[139],{97754:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t{e.exports={errorCard:"errorCard-S9sXvhAu",errorCard__icon:"errorCard__icon-S9sXvhAu",errorCard_size_big:"errorCard_size_big-S9sXvhAu",errorCard__message:"errorCard__message-S9sXvhAu",errorCard_limitWidth:"errorCard_limitWidth-S9sXvhAu",errorCard__link:"errorCard__link-S9sXvhAu",errorCardRendererContainer:"errorCardRendererContainer-S9sXvhAu"}},9745:(e,t,r)=>{"use strict";r.d(t,{Icon:()=>o});var n=r(50959);const o=n.forwardRef(((e,t)=>{const{icon:r="",...o}=e;return n.createElement("span",{...o,ref:t,dangerouslySetInnerHTML:{__html:r}})}))},81200:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ErrorCard:()=>h,ErrorCardRenderer:()=>y,ResizableErrorCard:()=>m});var n=r(50959),o=r(962),u=r(43370),i=r(97754),a=r.n(i),s=r(9745),c=(r(44352),r(14483)),l=r(29540),f=r(11425),d=r(30509);const p={ghost:{1:(0,c.enabled)("hide_image_invalid_symbol")?void 0:l,2:(0,c.enabled)("hide_image_invalid_symbol")?void 0:f},"stop-hand":{1:void 0,2:void 0}};new Set(["en","gb","de_DE","fr","es","it","pl","ja"]);const h=n.forwardRef(((e,t)=>{const{icon:r,message:o,size:u=1,rawHtml:i=!1,doNotLimitWidth:c,solutionId:l}=e,f=n.useMemo((()=>r&&function(e,t){if(0!==t)return p[e][t]}(r,u)),[r,u]);return n.createElement("div",{ref:t,className:a()(d.errorCard,2===u&&d.errorCard_size_big,!c&&d.errorCard_limitWidth)},f&&n.createElement(s.Icon,{icon:f,className:d.errorCard__icon}),i?n.createElement("div",{className:d.errorCard__message,dangerouslySetInnerHTML:{__html:o}}):n.createElement("div",{className:d.errorCard__message},o),null)}));function m(e){const{icon:t,message:r,rawHtml:o,doNotLimitWidth:i,maxWidth:a=200,maxHeight:s=200,offsetHeight:c=0,solutionId:l}=e,f=n.useRef(null),[d,p]=n.useState(1);return n.useEffect((()=>{const e=f.current;if(e){const t=new ResizeObserver((0,u.default)(m,150));return t.observe(e),()=>t.disconnect()}}),[a,s,c]),n.createElement(h,{ref:f,message:r,icon:t,size:d,rawHtml:o,doNotLimitWidth:i,solutionId:l});function m(){const e=f.current;if(!e)return;const t=e.clientHeight+c;t<105?p(0):e.clientWidth{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function v(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||h}function _(){}function g(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=v.prototype;var b=g.prototype=new _;b.constructor=g,m(b,v.prototype),b.isPureReactComponent=!0;var C=Array.isArray,w=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,n){var o,u={},i=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)w.call(t,o)&&!E.hasOwnProperty(o)&&(u[o]=t[o]);var s=arguments.length-2;if(1===s)u.children=n;else if(1{"use strict";e.exports=r(95257)},11425:e=>{e.exports=''},29540:e=>{e.exports=''}}]);