(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[57565,83912,94231,88741],{43681:e=>{e.exports={wrap:"wrap-Un5MtNUE",list:"list-Un5MtNUE",item:"item-Un5MtNUE",selected:"selected-Un5MtNUE",bluishItem:"bluishItem-Un5MtNUE",noPadding:"noPadding-Un5MtNUE"}},533659:e=>{e.exports={}},758804:e=>{e.exports={}},975351:e=>{e.exports={}},588978:e=>{e.exports={}},481316:e=>{e.exports={}},703002:e=>{e.exports={}},93807:e=>{e.exports={}},941924:e=>{e.exports={}},184121:e=>{e.exports={}},88895:e=>{e.exports={}},144669:e=>{e.exports={}},518108:e=>{e.exports={}},38280:e=>{e.exports={}},919239:e=>{e.exports={}},323066:e=>{e.exports={}},989767:e=>{e.exports={}},617525:e=>{e.exports={}},950107:e=>{e.exports={}},804840:e=>{e.exports={}},847282:e=>{e.exports={small:"small-CtnpmPzP",medium:"medium-CtnpmPzP",large:"large-CtnpmPzP",switchView:"switchView-CtnpmPzP",checked:"checked-CtnpmPzP",disabled:"disabled-CtnpmPzP",track:"track-CtnpmPzP",thumb:"thumb-CtnpmPzP"}},670330:e=>{e.exports={switcher:"switcher-fwE97QDf",input:"input-fwE97QDf",thumbWrapper:"thumbWrapper-fwE97QDf",disabled:"disabled-fwE97QDf",checked:"checked-fwE97QDf"}},686962:e=>{e.exports={}},648692:e=>{e.exports={wrap:"wrap-HXzRntFl",input:"input-HXzRntFl",box:"box-HXzRntFl",hoverDot:"hoverDot-HXzRntFl",red:"red-HXzRntFl",blue:"blue-HXzRntFl",green:"green-HXzRntFl",orange:"orange-HXzRntFl",purple:"purple-HXzRntFl",cyan:"cyan-HXzRntFl",pink:"pink-HXzRntFl",large:"large-HXzRntFl",pickerDot:"pickerDot-HXzRntFl"}},534426:e=>{e.exports={wrapper:"wrapper-xPNB6vOB",selector:"selector-xPNB6vOB",arrowLeft:"arrowLeft-xPNB6vOB",colorSelectButton:"colorSelectButton-xPNB6vOB",popup:"popup-xPNB6vOB"}},429341:e=>{e.exports={}},50198:e=>{e.exports={}},792404:e=>{e.exports={span:"span-KB961WD0"}},112513:e=>{e.exports={controls:"controls-MI_3SFEq",autosizeLabel:"autosizeLabel-MI_3SFEq",crossSign:"crossSign-MI_3SFEq",autosizeControl:"autosizeControl-MI_3SFEq",widthControl:"widthControl-MI_3SFEq",heightControl:"heightControl-MI_3SFEq"}},902532:e=>{e.exports={}},670431:e=>{e.exports={}},506438:e=>{e.exports={}},926724:e=>{e.exports={}},423777:e=>{e.exports={}},54661:e=>{e.exports={wrapper:"wrapper-PQ5O_1M7",touch:"touch-PQ5O_1M7"}},302539:e=>{e.exports={}},251284:e=>{e.exports={"tablet-normal-breakpoint":"(max-width: 768px)","small-height-breakpoint":"(max-height: 360px)","tablet-small-breakpoint":"(max-width: 440px)"}},447429:e=>{e.exports={item:"item-GJX1EXhk",interactive:"interactive-GJX1EXhk",hovered:"hovered-GJX1EXhk",disabled:"disabled-GJX1EXhk",active:"active-GJX1EXhk",shortcut:"shortcut-GJX1EXhk",normal:"normal-GJX1EXhk",big:"big-GJX1EXhk",iconCell:"iconCell-GJX1EXhk",icon:"icon-GJX1EXhk",content:"content-GJX1EXhk",label:"label-GJX1EXhk",checked:"checked-GJX1EXhk",toolbox:"toolbox-GJX1EXhk",showToolboxOnHover:"showToolboxOnHover-GJX1EXhk",arrowIcon:"arrowIcon-GJX1EXhk",subMenu:"subMenu-GJX1EXhk",invisibleHotkey:"invisibleHotkey-GJX1EXhk"}},405264:e=>{e.exports={item:"item-WJDah4zD",emptyIcons:"emptyIcons-WJDah4zD",loading:"loading-WJDah4zD", disabled:"disabled-WJDah4zD",interactive:"interactive-WJDah4zD",hovered:"hovered-WJDah4zD",normal:"normal-WJDah4zD",big:"big-WJDah4zD",icon:"icon-WJDah4zD",label:"label-WJDah4zD",title:"title-WJDah4zD",nested:"nested-WJDah4zD",shortcut:"shortcut-WJDah4zD",remove:"remove-WJDah4zD"}},868745:e=>{e.exports={separator:"separator-Ymxd0dt_"}},276773:e=>{e.exports={"default-drawer-min-top-distance":"100px",wrap:"wrap-_HnK0UIN",positionBottom:"positionBottom-_HnK0UIN",backdrop:"backdrop-_HnK0UIN",drawer:"drawer-_HnK0UIN",positionLeft:"positionLeft-_HnK0UIN"}},209087:e=>{e.exports={container:"container-HTBJo9ba",top:"top-HTBJo9ba"}},737953:e=>{e.exports={list:"list-HGwPo2aR",item:"item-HGwPo2aR"}},118821:e=>{e.exports={elementWrap:"elementWrap-LeZwGiB6",itemsWrap:"itemsWrap-LeZwGiB6",item:"item-LeZwGiB6",active:"active-LeZwGiB6",itemContent:"itemContent-LeZwGiB6",dropdownItem:"dropdownItem-LeZwGiB6",dropdownIcon:"dropdownIcon-LeZwGiB6",dropdownListItem:"dropdownListItem-LeZwGiB6"}},604e3:(e,t,o)=>{"use strict";o.d(t,{LIST_COLORS:()=>h,ListColor:()=>i,changeDescription:()=>C,createCrossTabSyncMiddleware:()=>F,getCommands:()=>D,getListByColor:()=>B,getSymbolColor:()=>A,getSymbolsByColor:()=>I,getTimestamp:()=>P,isListColor:()=>p,markMany:()=>f,reducer:()=>E,remove:()=>w,rename:()=>S,renameSeparator:()=>k,reset:()=>b,setup:()=>y,share:()=>T,shiftCommand:()=>x,updatePersistedState:()=>M});var i,r=o(350030),n=o(438253),s=o(650151),l=o(199669),a=o(50991),c=o(340958),d=o(173777),u=o(559986);!function(e){e.Red="red",e.Blue="blue",e.Green="green",e.Orange="orange",e.Purple="purple",e.Cyan="cyan",e.Pink="pink"}(i||(i={}));const h=[i.Red,i.Blue,i.Green,i.Orange,i.Purple,i.Cyan,i.Pink];function p(e){return new Set(h).has(e)}const g={lists:{colors:[],byColor:{},bySymbol:{}},commands:[],timestamp:null};function _(e,t){const{lists:o}=e,i=o.byColor[t];i&&0===i.symbols.length&&(o.colors=o.colors.filter((e=>e!==t)))}function m(e){return(0,d.isSeparatorItem)(e)}const v=(0,r.createSlice)({name:"marked-lists",initialState:g,reducers:{setup:(e,t)=>{const{lists:o,timestamp:i}=t.payload,r={lists:{colors:[],byColor:{},bySymbol:{}},commands:[],timestamp:null};r.timestamp=i;for(const e of function(e,t){return[...e].sort(((e,o)=>t.indexOf(e.color)-t.indexOf(o.color)))}(o,h)){const t=e.symbols.filter((t=>void 0===r.lists.bySymbol[t]&&(m(t)||(r.lists.bySymbol[t]=e.color),!0)));r.lists.byColor[e.color]={color:e.color,name:e.name,description:e.description,shared:e.shared,symbols:t,persistedState:e.persistedState},t.length>0&&r.lists.colors.push(e.color)}return r},remove:(e,t)=>{const{color:o,symbols:i,silent:r}=t.payload,{lists:l,commands:a}=e,d=l.byColor[o];if(void 0===d||0===d.symbols.length)return;const u=new Set(i),h=d.symbols.filter((e=>!u.has(e)));if(!(0,c.equalArrays)(h,d.symbols)){d.symbols=h;for(const e of u)delete l.bySymbol[e];r||a.push({type:"remove",color:o,symbols:[...u],prevLists:(0,s.ensureDefined)((0,n.original)(e)).lists}),_(e,o)}},markMany:(e,t)=>{ const{color:o,before:i,silent:r}=t.payload,{lists:l,commands:a}=e,{unique:d,exclusions:h}=function(e,t){const{color:o,symbols:i,separators:r}=t.payload,{lists:n}=e,l={},a=new Set,c=e=>m(e)?((0,s.assert)(null!==o),o):n.bySymbol[e];for(let e=0;e=0;--t)if(!o.has(e.symbols[t])){l=e.symbols[t];break}}}return l}(e,t,d,u.LIST_START);if(null!==o&&void 0!==h[o]&&1===Object.keys(h).length){const t=l.byColor[o];(0,s.assert)(void 0!==t);const g=t.symbols.filter((e=>!d.has(e))),v=(0,u.getTargetIndex)(g,i,p);if(void 0===v?g.push(...d):g.splice(v,0,...d),(0,c.equalArrays)(g,t.symbols))return;{const i=h[o];(0,s.assert)(void 0!==i),t.symbols=g;for(const e of i)delete l.bySymbol[e];for(const e of d)m(e)||(l.bySymbol[e]=o);return _(e,o),void(r||a.push({type:"replace",color:o,symbols:[...t.symbols],prevLists:(0,s.ensureDefined)((0,n.original)(e)).lists}))}}for(const t in h){if(!h.hasOwnProperty(t))continue;const o=h[t];(0,s.assert)(void 0!==o);const i=l.byColor[t];(0,s.assert)(void 0!==i),i.symbols=i.symbols.filter((e=>!o.has(e)||(delete l.bySymbol[e],!1))),_(e,t)}if(null===o)return void(r||a.push({type:"reset",symbols:[...d],prevLists:(0,s.ensureDefined)((0,n.original)(e)).lists}));const g=l.byColor[o];if(l.colors.includes(o)){(0,s.assert)(void 0!==g);const t=(0,u.getTargetIndex)(g.symbols,i,p);void 0===t?(g.symbols.push(...d),r||(void 0===h[o]?a.push({type:"append",color:o,symbols:[...d],prevLists:(0,s.ensureDefined)((0,n.original)(e)).lists}):a.push({type:"replace",color:o,symbols:[...g.symbols],prevLists:(0,s.ensureDefined)((0,n.original)(e)).lists}))):(g.symbols.splice(t,0,...d),r||a.push({type:"replace",color:o,symbols:[...g.symbols],prevLists:(0,s.ensureDefined)((0,n.original)(e)).lists}))}else void 0===g?l.byColor[o]={color:o,symbols:[...d],name:null,description:null,shared:!1,persistedState:null}:g.symbols=[...d],l.colors.push(o),r||a.push({type:"append",color:o,symbols:[...d],prevLists:(0,s.ensureDefined)((0,n.original)(e)).lists});for(const e of d)m(e)||(l.bySymbol[e]=o)},renameSeparator:(e,t)=>{const{color:o,separator:i,name:r,silent:l}=t.payload;if(i===r||!m(i)||!m(r))return;const a=e.lists.byColor[o];(0,s.assert)(void 0!==a);const c=a.symbols.indexOf(i);-1!==c&&-1===a.symbols.indexOf(r)&&(a.symbols.splice(c,1,r),l||e.commands.push({type:"rename-separator",color:o,separator:i,name:r,prevLists:(0,s.ensureDefined)((0,n.original)(e)).lists}))},rename:(e,t)=>{const{name:o,color:i,silent:r}=t.payload,l=e.lists.byColor[i];(0,s.assert)(void 0!==l),l.name!==o&&(l.name=o,r||e.commands.push({type:"rename",color:i,name:o,prevLists:(0,s.ensureDefined)((0,n.original)(e)).lists}))},changeDescription:(e,t)=>{const{color:o,description:i,silent:r}=t.payload,l=e.lists.byColor[o];(0, s.assert)(void 0!==l),l.description!==i&&(l.description=i,r||e.commands.push({type:"change-description",color:o,description:i,prevLists:(0,s.ensureDefined)((0,n.original)(e)).lists}))},reset:(e,t)=>{const{silent:o}=t.payload,{lists:i}=e;for(const e of h){const t=i.byColor[e];void 0!==t&&(t.symbols=[])}i.colors=[],i.bySymbol={},o||e.commands.push({type:"reset-all",prevLists:(0,s.ensureDefined)((0,n.original)(e)).lists})},share:(e,t)=>{const{lists:o,commands:i}=e,{shared:r,color:l,silent:a}=t.payload,c=o.byColor[l];void 0!==c&&c.shared!==r&&(c.shared=r,a||i.push({type:"share",color:l,shared:r,prevLists:(0,s.ensureDefined)((0,n.original)(e)).lists}))},updatePersistedState:(e,t)=>{const{lists:o}=e;for(const e of h){const i=o.byColor[e],r=t.payload[e];void 0!==i&&i.persistedState&&r&&(i.persistedState={...i.persistedState,...r})}},shiftCommand:(e,t)=>{const{count:o}=t.payload;e.commands.splice(0,o)}}}),{markMany:f,setup:y,reset:b,remove:w,rename:S,changeDescription:C,renameSeparator:k,shiftCommand:x,share:T,updatePersistedState:M}=v.actions,{reducer:E}=v;function F(e,t,o=v){return(0,l.createCrossTabSyncMiddleware)({id:e,channel:t,event:"marked-list-cross-tab-sync",filter:e=>function(e,t){return t.actions.markMany.match(e)||t.actions.rename.match(e)||t.actions.changeDescription.match(e)||t.actions.remove.match(e)||t.actions.setup.match(e)||t.actions.renameSeparator.match(e)||t.actions.reset.match(e)||t.actions.share.match(e)||t.actions.updatePersistedState.match(e)}(e,o)})}function A(e,t){return e.lists.bySymbol[a.qualified.cast(t)]??null}function B(e,t){return e.lists.byColor[t]??null}function I(e,t){return B(e,t)?.symbols??null}function D(e){return e.commands}function P(e){return e.timestamp}},230725:(e,t,o)=>{"use strict";o.d(t,{ColorSelector:()=>b});var i=o(50959),r=o(604e3),n=o(591800),s=o(364511),l=o(887208),a=o(432438),c=o(497754),d=o.n(c),u=o(79205),h=o(444372),p=o(948019),g=o(263361),_=o(676809),m=o(24122),v=o(648692);const f=(0,s.makeSwitchGroupItem)((function(e){const{className:t,value:n=r.ListColor.Red,name:s,checked:l}=e,[a,c]=(0,g.useRovingTabindexElement)(null),f=(0,i.useContext)(p.ContextMenuContext),y=f?.type??"menu",b=n;return i.createElement("label",{ref:a,tabIndex:c,className:d()(t,v.wrap,"drawer"===y&&v.large),"data-color":b,role:"menuitem","aria-label":h.t(null,{replace:{color:b}},o(958673)),"aria-checked":l},i.createElement("input",{className:v.input,type:"radio",name:s,value:n,checked:l,onChange:function(){e.onChange&&e.onChange(n)},onClick:l?function(){e.onClickIfChecked&&e.onClickIfChecked(n)}:void 0}),i.createElement("div",{className:d()(v.box,v[b],"drawer"===y&&v.large)},l?i.createElement(u.Icon,{icon:_}):i.createElement("div",{className:v.pickerDot},i.createElement(u.Icon,{className:v.hoverDot,icon:m}))))})),y=[39,37,13,32,27];function b(e){const{buttonClassName:t,value:o,onSelectedClick:c,fromKeyboard:d}=e,u=(0,i.useRef)(null),h=(0,i.useCallback)((e=>{if(!u.current||e.defaultPrevented)return;const t=(0,n.hashFromEvent)(e);if(!y.includes(t))return;e.preventDefault();const i=(0, l.queryFocusableElements)(u.current).sort(l.navigationOrderComparator),s=i.findIndex((e=>e===document.activeElement));if(-1===s)return;const c=i[s];let d;switch(t){case 13:case 32:g(c.dataset.color||r.ListColor.Red);break;case 27:g(o)}switch((0,l.mapKeyCodeToDirection)(t)){case"inlineNext":d=i[s+1]||i[0];break;case"inlinePrev":d=i[s-1]||i[i.length-1]}d instanceof HTMLLabelElement&&((0,a.becomeSecondaryElement)(c),(0,a.becomeMainElement)(d),d.focus())}),[]);(0,i.useLayoutEffect)((()=>{if(!d)return;const e=document.activeElement,t=u.current;if(!t)return;const[o]=(0,l.queryFocusableElements)(t).sort(l.navigationOrderComparator);return o?((0,a.becomeMainElement)(o),o.focus(),()=>{e instanceof HTMLElement&&e.focus()}):void 0}),[]);const p=r.LIST_COLORS.map(((e,o)=>i.createElement(f,{key:o,className:t,onClickIfChecked:c,value:e})));return i.createElement("menu",{ref:u,onKeyDown:h},i.createElement(s.SwitchGroup,{name:"color-selector",onChange:g,values:void 0!==o?[o]:[]},p));function g(t){e.onChange&&void 0!==t&&e.onChange(t)}}},857769:(e,t,o)=>{"use strict";o.d(t,{PopupColorSelector:()=>w});var i=o(50959),r=o(670797),n=o(642709),s=o(18182),l=o(332585),a=o(67812),c=o(762852),d=o(969680),u=o(707533),h=o(230725),p=o(778785),g=o(534426);class _ extends i.PureComponent{constructor(){super(...arguments),this._popUpElem=null,this._onChange=e=>{this.props.onSelectColor(e),this.props.hide()},this._onTargetMouseLeave=e=>{const t=!!e.relatedTarget.nodeName,o=e.relatedTarget===this._popUpElem,i=this._popUpElem&&t&&this._popUpElem.contains(e.relatedTarget);o||i||this.props.hide()},this._onPopUpMouseLeave=e=>{const t=!!e.nativeEvent.relatedTarget.nodeName,o=e.nativeEvent.relatedTarget===this.props.elem,i=t&&this.props.elem.contains(e.nativeEvent.relatedTarget);o||i||this.props.hide()},this._onTouchStart=e=>{const t=!!e.target.nodeName,o=e.target===this.props.elem,i=e.target===this._popUpElem,r=t&&this.props.elem.contains(e.target),n=this._popUpElem&&t&&this._popUpElem.contains(e.target);o||r||i||n||this.props.hide()},this._setPopUpElem=e=>{this._popUpElem=e}}componentDidMount(){document.documentElement&&(p.mobiletouch?document.documentElement.addEventListener("touchstart",this._onTouchStart):(this.props.elem.addEventListener("mouseleave",this._onTargetMouseLeave),document.body.addEventListener("scroll",this.props.hide)))}componentWillUnmount(){document.documentElement&&(p.mobiletouch?document.documentElement.removeEventListener("touchstart",this._onTouchStart):this.props.elem&&(this.props.elem.removeEventListener("mouseleave",this._onTargetMouseLeave),document.documentElement.removeEventListener("scroll",this.props.hide)))}render(){const e={top:0,left:0};if(this.props.elem){const t=this.props.elem.getBoundingClientRect();e.top=t.top+t.height/2,e.left=t.left+((0,d.isRtl)()?0:t.width)}return i.createElement(u.Portal,null,i.createElement("div",{style:e,className:g.popup,ref:this._setPopUpElem,onMouseLeave:p.mobiletouch?void 0:this._onPopUpMouseLeave},i.createElement("div",{className:g.wrapper},i.createElement("div",{className:g.selector },i.createElement("div",{className:g.arrowLeft}),i.createElement(h.ColorSelector,{buttonClassName:g.colorSelectButton,value:this.props.currentColor,fromKeyboard:this.props.fromKeyboard,onChange:this._onChange})))))}}var m=o(948019);function v(e){const{actions:t,...o}=e;return i.createElement(s.MatchMedia,{rule:n.DialogBreakpoints.TabletSmall},(e=>e&&t?i.createElement(l.DrawerManager,null,i.createElement(m.ContextMenuContext.Provider,{value:{type:"drawer"}},i.createElement(c.Drawer,{onClose:o.hide,position:"Bottom"},i.createElement(a.ContextMenuList,{items:t})))):i.createElement(_,{...o})))}var f=o(561965);let y=null,b=null;var w;!function(e){function t(){y&&b?.unmount()}e.show=function(e){y||(y=document.createElement("div")),t(),b=(0,f.createReactRoot)(i.createElement(r.SlotContext.Provider,{value:e.manager||null},i.createElement(v,{...e,hide:t})),y)},e.hide=t}(w||(w={}))},559986:(e,t,o)=>{"use strict";o.d(t,{LIST_START:()=>i,getTargetIndex:()=>r});const i=Symbol();function r(e,t,o){const r=void 0===o?void 0!==t?e.indexOf(t):void 0:o===i?0:e.indexOf(o)+1;return-1!==r?r:void 0}},199669:(e,t,o)=>{"use strict";function i(e){const{id:t,event:o,channel:i,filter:r}=e;return e=>(i.on(o,(o=>{const{action:i,emitter:n}=JSON.parse(o);n!==t&&r(i)&&e.dispatch({...i,payload:{...i.payload,silent:!0}})})),e=>n=>{const s=e(n);return r(n)&&(n.payload.silent||i.emit(o,JSON.stringify({action:n,emitter:t}))),s})}o.d(t,{createCrossTabSyncMiddleware:()=>i})},173777:(e,t,o)=>{"use strict";o.d(t,{SEPARATOR_PREFIX:()=>i,isSeparatorItem:()=>r});const i="###";function r(e){return e.startsWith(i)}},50991:(e,t,o)=>{"use strict";o.d(t,{qualified:()=>i});const i={cast:e=>e,castMany:e=>e.map(i.cast)}},340958:(e,t,o)=>{"use strict";function i(e,t){if(e.length!==t.length)return!1;for(let o=0;oi})},842060:(e,t,o)=>{"use strict";o.d(t,{getStyleClasses:()=>l,isCircleLogoWithUrlProps:()=>a});var i=o(497754),r=o(548729),n=o(757554),s=o.n(n);function l(e,t=2,o){return i(s().logo,s()[e],o,0===t||1===t?i(r.skeletonTheme.wrapper,s().skeleton):s().letter,1===t&&r.skeletonTheme.animated)}function a(e){return"logoUrl"in e&&null!==e.logoUrl&&void 0!==e.logoUrl&&0!==e.logoUrl.length}},790188:(e,t,o)=>{"use strict";o.d(t,{colorsPalette:()=>i.colorsPalette,getHexColorByName:()=>i.getHexColorByName});var i=o(336748)},741083:(e,t,o)=>{"use strict";o.d(t,{presetDefault:()=>i,presetPlatform:()=>r});const i={enableActiveStateStyles:!0},r={enableActiveStateStyles:!1}},910958:(e,t,o)=>{"use strict";o.d(t,{Portal:()=>i.Portal,PortalContext:()=>i.PortalContext});var i=o(74446)},973920:(e,t,o)=>{"use strict";o.d(t,{SwitchGroupContext:()=>n});var i=o(50959),r=o(755883);const n=(0,i.createContext)({getName:()=>"",getValues:()=>[],getOnChange:()=>r.default,subscribe:r.default,unsubscribe:r.default})},367254:(e,t,o)=>{"use strict";o.d(t,{SwitchGroup:()=>n});var i=o(50959),r=o(973920);class n extends i.PureComponent{constructor(e){super(e),this._subscriptions=new Set,this._getName=()=>this.props.name, this._getValues=()=>this.props.values,this._getOnChange=()=>this.props.onChange,this._subscribe=e=>{this._subscriptions.add(e)},this._unsubscribe=e=>{this._subscriptions.delete(e)},this.state={switchGroupContext:{getName:this._getName,getValues:this._getValues,getOnChange:this._getOnChange,subscribe:this._subscribe,unsubscribe:this._unsubscribe}}}render(){return i.createElement(r.SwitchGroupContext.Provider,{value:this.state.switchGroupContext},this.props.children)}componentDidUpdate(e){this._notify(this._getUpdates(this.props.values,e.values))}_notify(e){this._subscriptions.forEach((t=>t(e)))}_getUpdates(e,t){return[...t,...e].filter((o=>t.includes(o)?!e.includes(o):e.includes(o)))}}},694553:(e,t,o)=>{"use strict";o.d(t,{Switch:()=>d,SwitchView:()=>s.SwitchView});var i=o(50959),r=o(497754),n=o(169986),s=o(840513),l=o(591800),a=o(670330),c=o.n(a);function d(e){const t=(0,i.useContext)(n.CustomBehaviourContext),{size:o,intent:a="default",checked:d,className:u,enableActiveStateStyles:h=t.enableActiveStateStyles,disabled:p,onChange:g,title:_,id:m,name:v,value:f,tabIndex:y,role:b="switch",ariaDisabled:w,reference:S,ariaLabelledBy:C,ariaLabel:k,...x}=e;return i.createElement("span",{className:r(u,c().switcher)},i.createElement("input",{...x,type:"checkbox",className:r(c().input,h&&c().activeStylesEnabled,d&&c().checked,p&&c().disabled),role:b,"aria-checked":d,checked:d,onKeyDown:e=>{13===(0,l.hashFromEvent)(e)&&e.currentTarget?.click()},onChange:g,disabled:p,"aria-disabled":w,tabIndex:y,title:_,id:m,name:v,value:f,ref:S,"aria-label":k,"aria-labelledby":C}),i.createElement("span",{className:r(c().thumbWrapper,c()[a])},i.createElement(s.SwitchView,{checked:d,size:o,disabled:p})))}},840513:(e,t,o)=>{"use strict";o.d(t,{SwitchView:()=>l});var i=o(50959),r=o(497754),n=o.n(r),s=o(847282);function l(e){const{size:t="small",checked:o,disabled:r}=e;return i.createElement("span",{className:n()(s.switchView,s[t],r&&s.disabled,o&&s.checked)},i.createElement("span",{className:s.track}),i.createElement("span",{className:s.thumb}))}},355734:(e,t,o)=>{"use strict";o.d(t,{createScopedVisibleElementFilter:()=>d,getActiveElementSelectors:()=>c,isHTMLOrSVGElement:()=>u,isInertRoot:()=>l,isVisibilityVisible:()=>n});const i=["button","fieldset","optgroup","option","select","textarea","input"],r=["button","input","select","textarea","a[href]","audio[controls]","video[controls]",'[tabindex="0"]','[contenteditable="true"]'].map((e=>i.includes(e)?`${e}:not(:disabled)`:e)).map((e=>`${e}:not([tabindex="-1"])`)).join(",");function n(e){return"visible"===getComputedStyle(e).visibility}function s(e,t){if(e.matches("[inert],[inert] *"))return!0;let o=e;for(;o!==t&&null!==o;){if(a(o))return!0;o=o.parentElement}return!1}function l(e){return e.matches("[inert]")||a(e)}function a(e){return"none"===getComputedStyle(e).display}function c(){return r}function d(e){return t=>n(t)&&!s(t,e)}function u(e){return e instanceof HTMLElement||e instanceof SVGElement}},927301:(e,t,o)=>{"use strict";o.r(t),o.d(t,{capitalizeFirstLetterInWord:()=>g,decodeHTMLEntities:()=>c, encodeHTMLEntities:()=>d,getFirstSegmentOrCodePointString:()=>_,htmlEscape:()=>u,removeSpaces:()=>p,removeTags:()=>h});const i=/[<"'&>]/g,r=e=>`&#${e.charCodeAt(0)};`,n={"<":"<",">":">",""":'"',"'":"'","&":"&","<":"<",">":">",""":'"',"'":"'","'":"'","&":"&"},s=Object.assign({},...Object.entries(n).map((([e,t])=>({[t]:e})))),l=new RegExp(Object.keys(n).join("|"),"g"),a=new RegExp(Object.keys(s).join("|"),"g");function c(e){return e.replace(l,(e=>n[e]||e))}function d(e){return e.replace(a,(e=>s[e]||e))}function u(e){return e.replace(i,r)}function h(e=""){return e.replace(/(<([^>]+)>)/gi,"")}function p(e=""){return e.replace(/\s+/g,"")}function g(e=""){return e.replace(/\b\w/g,(e=>e.toUpperCase()))}function _(e){const t=Intl.Segmenter;if(t){const o=new t(void 0,{granularity:"grapheme"}),[{segment:i}={segment:null}]=o.segment(e);return i?.toUpperCase()??null}{const t=e.codePointAt(0);return t?String.fromCodePoint(t).toUpperCase():null}}},62889:(e,t,o)=>{"use strict";o.d(t,{CopyrightPosition:()=>i,copyrightLabel:()=>a});var i,r=o(497754),n=o(995683),s=o(461188),l=o(828133);function a({svgText:e,icon:t,theme:o,url:a,mode:c,verticalPosition:d=i.Vertical.Bottom,horizontalPosition:u=i.Horizontal.End,snapToEdge:h=!0,isExpanded:p=!1,className:g}){let _;switch(c){case"new":case"with_border":case"large_trade":_=(0,s.clone)(o);break;default:_=(0,n.mergeThemes)((0,s.clone)(l),o)}const m=document.createElement("span");let v;a&&(v=document.createElement("a"),v.classList.add(..._.label__link.split(/\s/)),v.href=a,v.target="_blank",v.rel="noopener noreferrer",v.setAttribute("data-target-type","copyright"),m.append(v)),m.className=r(_.label,u===i.Horizontal.Start&&_.start,u===i.Horizontal.End&&_.end,d===i.Vertical.Top&&_.top,d===i.Vertical.Bottom&&_.bottom,h&&"large_trade"!==c&&_.snap,"large_old"===c&&_.large,(p||"large_trade"===c)&&_.expanded,g,"js-copyright-label"),m.addEventListener("click",(()=>{function e(){m.classList.remove(_.expandedByClick),m.removeEventListener("mouseleave",e)}m.classList.contains(_.expandedWithTransition)||m.classList.contains(_.expanded)||(m.classList.contains(_.expandedByClick)?a||e():(m.classList.add(_.expandedByClick),m.addEventListener("mouseleave",e)))}));const f=document.createElement("span");f.className=_.logoWrap,f.innerHTML=t;const y=document.createElement("span");return y.className=_.svgTextWrap,y.innerHTML=e,m.append(f,y),[m,_]}!function(e){let t,o;!function(e){e[e.Bottom=0]="Bottom",e[e.Top=1]="Top"}(t=e.Vertical||(e.Vertical={})),function(e){e[e.Start=0]="Start",e[e.End=1]="End"}(o=e.Horizontal||(e.Horizontal={}))}(i||(i={}))},351079:(e,t,o)=>{"use strict";o.d(t,{CopyrightPosition:()=>r.CopyrightPosition,createCopyrightLabel:()=>s});var i=o(497754),r=o(62889),n=o(952598);function s({sheriffOptions:e,...t}){const[o,s]=(0,r.copyrightLabel)(t),l=e&&e.includes(n.KnownAction.Expand),a=e&&e.includes(n.KnownAction.LargeTradeLogo);return o.className=i(o.className,(l||a)&&s.expandedWithTransition),o}},650401:(e,t,o)=>{"use strict";o.d(t,{ getWidgetSheriffActions:()=>c});var i=o(735566),r=o(803912),n=o(952598);const s=window.WIDGET_SHERIFF_HOST||"https://widget-sheriff.xstaging-widget.tv",l=(0,i.getLogger)("WidgetSheriff.Widget");let a=null;async function c(){return null===a&&(a=await async function(){const e=function(){if(document.location.ancestorOrigins&&document.location.ancestorOrigins.length)return document.location.ancestorOrigins[document.location.ancestorOrigins.length-1];try{return new URL(document.referrer).origin}catch(e){return document.location.origin||null}}();if(null===e)return l.logWarn("ancestorOrigin is undefined"),Promise.resolve([]);const t=new URL("/sheriff/api/v1/rules/search",s);t.searchParams.append("origin",e);return(await(0,r.fetch)(t.toJSON()).then((e=>{if(!e.ok)throw new Error("Guard request error occured");return 204===e.status?Promise.resolve({actions:[]}):e.json()})).catch((e=>(l.logWarn(e.message),Promise.resolve({actions:[]}))))).actions.filter((e=>n.widgetSheriffActions.has(e)))}()),Promise.resolve(a)}},793242:(e,t,o)=>{"use strict";o.d(t,{MarketDialogContext:()=>n,MarketDialogMode:()=>i});var i,r=o(50959);!function(e){e.Single="single",e.Multi="multi"}(i||(i={}));const n=(0,r.createContext)(null)},35387:(e,t,o)=>{"use strict";o.d(t,{entireWorldMarketsPreset:()=>s,getMarketGroupNameMap:()=>n,isMarketsPreset:()=>l});var i=o(444372),r=o(143517);const n=()=>({[r.MarketGroup.Custom]:"",[r.MarketGroup.EntireWorld]:"",[r.MarketGroup.NorthAmerica]:i.t(null,void 0,o(325381)),[r.MarketGroup.Europe]:i.t(null,void 0,o(546890)),[r.MarketGroup.MiddleEastAfrica]:i.t(null,void 0,o(850434)),[r.MarketGroup.MexicoSouthAmerica]:i.t(null,void 0,o(770306)),[r.MarketGroup.AsiaPacific]:i.t(null,void 0,o(4825)),[r.MarketGroup.Worldwide]:i.t(null,void 0,o(321684)),[r.MarketGroup.G20]:i.t(null,void 0,o(815636))}),s=e=>({value:"entire_world",name:i.t(null,void 0,o(537396)),desc:"",group:r.MarketGroup.Custom,countries:e??[]});function l(e){return e.group===r.MarketGroup.Custom&&e.hasOwnProperty("countries")}},143517:(e,t,o)=>{"use strict";var i;o.d(t,{MarketGroup:()=>i}),function(e){e.Custom="Custom",e.EntireWorld="Entire World",e.NorthAmerica="North America",e.Europe="Europe",e.MiddleEastAfrica="Middle East / Africa",e.MexicoSouthAmerica="Mexico and South America",e.AsiaPacific="Asia / Pacific",e.Worldwide="Worldwide",e.G20="G20"}(i||(i={}))},67905:(e,t,o)=>{"use strict";function i(e){const t=new Map;return e.forEach((e=>{t.has(e.group)?t.get(e.group).push(e):t.set(e.group,[e])})),t}function r(e,t){return t.map((t=>e.find((e=>e.value===t)))).filter((e=>Boolean(e)))}function n(e,t=2){if(0===e.length)return[];if(1===t)return[e];const o=Math.floor(e.length/2)+e.length%2;return[e.slice(0,o),e.slice(o)].filter((e=>e.length>0))}o.d(t,{createGroupColumns:()=>n,getMarketsByNames:()=>r,splitMarketsByGroup:()=>i})},556306:(e,t,o)=>{"use strict";o.d(t,{getLocaleToMarketMap:()=>n});var i=o(696250);let r=null;function n(){return r||(r=Object.entries((0,i.getScreenerCountriesMap)()).reduce(((e,[t,o])=>{if(!o.screenerName)return e ;return e[o.tvLocale||t]=o.screenerName,e}),{}),r)}},85436:(e,t,o)=>{"use strict";o.d(t,{getMarketByLocale:()=>n});var i=o(556306);const r=o(893125).StockMarket.America;function n(e){const t=e||window.locale;return t&&(0,i.getLocaleToMarketMap)()[t]||r}},696250:(e,t,o)=>{"use strict";o.d(t,{getScreenerCountriesMap:()=>s});var i=o(196048),r=o(320880);let n=null;function s(){if(n)return n;n={};for(const e of r)if(i.countries.hasOwnProperty(e)){const t=i.countries[e],o=t.screenerName,r=t.exchangesStocks||[];n[e]={...t,screenerName:o,exchangesStocks:r,group:t.group}}return n}},893125:(e,t,o)=>{"use strict";var i,r,n;o.d(t,{GlobalMarket:()=>n,NonStockMarket:()=>r,StockMarket:()=>i}),function(e){e.America="america",e.Argentina="argentina",e.Australia="australia",e.Austria="austria",e.Bahrain="bahrain",e.Bangladesh="bangladesh",e.Belgium="belgium",e.Brazil="brazil",e.Canada="canada",e.Chile="chile",e.China="china",e.Colombia="colombia",e.Cyprus="cyprus",e.Czech="czech",e.Denmark="denmark",e.Egypt="egypt",e.Estonia="estonia",e.Finland="finland",e.France="france",e.Germany="germany",e.Greece="greece",e.HongKong="hongkong",e.Hungary="hungary",e.Iceland="iceland",e.India="india",e.Indonesia="indonesia",e.Ireland="ireland",e.Israel="israel",e.Italy="italy",e.Japan="japan",e.Kenya="kenya",e.Kuwait="kuwait",e.Latvia="latvia",e.Lithuania="lithuania",e.Luxembourg="luxembourg",e.Malaysia="malaysia",e.Mexico="mexico",e.Morocco="morocco",e.Netherlands="netherlands",e.NewZealand="newzealand",e.Nigeria="nigeria",e.Norway="norway",e.Pakistan="pakistan",e.Peru="peru",e.Philippines="philippines",e.Poland="poland",e.Portugal="portugal",e.Qatar="qatar",e.Romania="romania",e.Russia="russia",e.SaudiArabia="ksa",e.Serbia="serbia",e.Singapore="singapore",e.Slovakia="slovakia",e.SouthAfrica="rsa",e.SouthKorea="korea",e.Spain="spain",e.SriLanka="srilanka",e.Sweden="sweden",e.Switzerland="switzerland",e.Taiwan="taiwan",e.Thailand="thailand",e.Tunisia="tunisia",e.Turkey="turkey",e.UAE="uae",e.UK="uk",e.Venezuela="venezuela",e.Vietnam="vietnam"}(i||(i={})),function(e){e.Forex="forex",e.Crypto="crypto",e.Coin="coin",e.CFD="cfd",e.Bonds="bonds",e.Bond="bond",e.Futures="futures",e.Options="options"}(r||(r={})),function(e){e.Global="global"}(n||(n={}));i.Belgium,i.Cyprus,i.Denmark,i.Estonia,i.Finland,i.France,i.Germany,i.Greece,i.Hungary,i.Iceland,i.Italy,i.Latvia,i.Lithuania,i.Luxembourg,i.Netherlands,i.Norway,i.Poland,i.Portugal,i.Romania,i.Russia,i.Serbia,i.Slovakia,i.Spain,i.Sweden,i.Switzerland,i.Turkey,i.UK,i.Belgium,i.Cyprus,i.Denmark,i.Estonia,i.Finland,i.France,i.Germany,i.Greece,i.Hungary,i.Italy,i.Latvia,i.Lithuania,i.Luxembourg,i.Netherlands,i.Poland,i.Portugal,i.Romania,i.Slovakia,i.Spain,i.Sweden},157234:(e,t,o)=>{"use strict";function i(){return window.is_authenticated}o.d(t,{isGlobalScreenerAvailable:()=>i})},780792:(e,t,o)=>{"use strict";o.d(t,{AbstractIndicator:()=>l});var i=o(735566),r=o(623213),n=o(534197);o(673747);const s=(0,i.getLogger)("GUI.Blocks.AbstractIndicator");class l{constructor(e){this._classSuffix="", this._quoteSessionPrefix="abstract-indicator",this._shortMode=!1,this._showTooltip=!0,this._subscribed=!1,this._tooltipType="custom",this._lastTooltipText="",this._quoteSession=e.quoteSession}getValue(){return this._value}getTooltipText(){return this._labelMap[this._value]||""}getLabel(){return this._labelMap[this._value]||""}getElement(){return this._el}update(e,t){this._updateValue(e,t),this._render()}setTooltipEnabled(e=!1){this._showTooltip!==e&&(this._showTooltip=e,this._renderTooltip())}enableShortMode(){!0!==this._shortMode&&(this._shortMode=!0,this._render())}disableShortMode(){!1!==this._shortMode&&(this._shortMode=!1,this._render())}isShortModeEnabled(){return this._shortMode}start(){!this._subscribed&&this._symbolName&&(this._quoteSession||(this._quoteSession=(0,n.getQuoteSessionInstance)("simple")),this._quoteSession.subscribe(this._getQuoteSessionId(),this._symbolName,this.update.bind(this)),this._subscribed=!0)}stop(){this._subscribed&&this._quoteSession&&this._symbolName&&(this._quoteSession.unsubscribe(this._getQuoteSessionId(),this._symbolName),this._subscribed=!1)}setSessionStatusIcon(e){this._sessionStatusIcon!==e&&(this._sessionStatusIcon=e,this._render())}_init(e){this._el=e.el?e.el:document.createElement("span"),this._el.innerHTML="",this._classMap=e.classMap,this._iconClassMap=e.iconClassMap,this._labelMap=e.labelMap,this._showTooltip=e.showTooltip,this._classSuffix=e.classSuffix,this._symbolName=e.symbol,this._sessionStatusIcon=e.sessionStatusIcon,this._onValueChange=e.onValueChange,e.tooltipType&&(this._tooltipType=e.tooltipType),this._quoteSessionGUID=(0,r.guid)(),!0===e.short&&this.enableShortMode(),e.data&&this._updateValue(e.data)}_clearClasses(){Object.values(this._classMap).map((e=>{this._el.classList.remove(`${e}`),this._el.classList.remove(`${e}${this._classSuffix}`)}))}_render(){this._renderClasses(),this._renderTooltip(),this._renderLabel()}_renderLabel(){this._el.textContent=this.getLabel()}_updateValue(e,t){const o=this._getValueFromData(e);(t||o!==this._value)&&(this._value=o,this._onValueChange?.(this._value))}_renderClasses(){const e=this._el.classList;e.add(this._componentClass,this._componentClass+this._classSuffix);const t=this._classMap[this._value];for(const o in this._classMap){const i=this._classMap[o];i&&(i===t?(e.add(i,i+this._classSuffix),this._sessionStatusIcon&&e.add(i+"__withIcon")):(e.remove(i,i+this._classSuffix),this._sessionStatusIcon&&e.remove(i+"__withIcon")))}!t&&this._value&&s.logWarn(`no className for status ${this._value}`)}_renderTooltip(){const e=this._showTooltip?this.getTooltipText():"";e!==this._lastTooltipText&&(this._lastTooltipText=e,this._el.setAttribute("title",e),"custom"===this._tooltipType&&this._el.classList.toggle("apply-common-tooltip",this._showTooltip))}_getQuoteSessionId(){return`${this._quoteSessionPrefix}.${this._quoteSessionGUID}`}}},713438:(e,t,o)=>{"use strict";o.d(t,{flagUrl:()=>a,getMockedFlag:()=>c});var i=o(61499),r=o(849204),n=o(701131),s=o(899411);const l={erl:"EU",uk:"GB",bitcoin:"BTC"};function a(e,t,o=r.LogoSize.Medium){ return e?(e.toLowerCase()in l&&(e=l[e]),(0,r.getLogoUrlResolver)().getCountryFlagUrl(e.toUpperCase(),o)):c(t)}function c(e){return e===i.StdTheme.Dark?n:s}},531327:(e,t,o)=>{"use strict";function i(e){return r()?0:n()?45:Math.min(Math.max(e,45),450)}o.d(t,{getWidgetBarPadding:()=>i});const r=()=>!window.matchMedia("(min-width: 768px)").matches,n=()=>!window.matchMedia("(min-width: 1280px)").matches},196048:(e,t,o)=>{"use strict";o.d(t,{countries:()=>n,getCountry:()=>s});var i=o(159681),r=o(158841);const n=r,s=e=>(0,i.isCountryCodeLower)(e)&&r[e]||null},159681:(e,t,o)=>{"use strict";o.d(t,{isCountryCodeLower:()=>r});const i=/^[a-z]{2}$/;function r(e){return i.test(e)}},404573:(e,t,o)=>{"use strict";o.d(t,{Draggable:()=>n});var i=o(650151),r=o(318557);o(302539);class n{constructor(e){this._helper=null,this._handleDragStart=e=>{if(null!==this._helper)return;const t=this._source;t.classList.add("ui-draggable-dragging");const[o,i]=[(0,r.outerWidth)(t),(0,r.outerHeight)(t)];this._helper={startTop:parseFloat(t.style.top)||0,startLeft:parseFloat(t.style.left)||0,nextTop:null,nextLeft:null,raf:null,size:[o,i],containment:this._containment instanceof HTMLElement?[parseInt(getComputedStyle(this._containment).borderLeftWidth)+parseInt(getComputedStyle(this._containment).paddingLeft),parseInt(getComputedStyle(this._containment).borderTopWidth)+parseInt(getComputedStyle(this._containment).paddingTop),this._containment.offsetWidth-parseInt(getComputedStyle(this._containment).borderRightWidth)-parseInt(getComputedStyle(this._containment).paddingRight)-parseInt(getComputedStyle(t).marginLeft)-parseInt(getComputedStyle(t).marginRight)-o,this._containment.offsetHeight-parseInt(getComputedStyle(this._containment).borderBottomWidth)-parseInt(getComputedStyle(this._containment).paddingBottom)-parseInt(getComputedStyle(t).marginTop)-parseInt(getComputedStyle(t).marginBottom)-i]:"window"===this._containment?[window.scrollX,window.scrollY,window.scrollX+document.documentElement.offsetWidth-o,window.scrollY+document.documentElement.offsetHeight-i]:null},this._start?.()},this._handleDragMove=e=>{if(null===this._helper)return;const{current:t,initial:o}=e.detail,i=this._source,r=this._helper.nextTop,n=this._helper.nextLeft,s="y"===this._axis||!1===this._axis||0!==t.movementY;if(s){const e=this._helper.startTop;isFinite(e)&&(this._helper.nextTop=t.clientY-o.clientY+e)}const l="x"===this._axis||!1===this._axis||0!==t.movementY;if(l){const e=this._helper.startLeft;isFinite(e)&&(this._helper.nextLeft=t.clientX-o.clientX+e)}if(null!==this._helper.containment){const[e,t,o,i]=this._helper.containment;s&&this._helper.nextTop&&(this._helper.nextTop=Math.min(this._helper.nextTop,i),this._helper.nextTop=Math.max(this._helper.nextTop,t)),l&&this._helper.nextLeft&&(this._helper.nextLeft=Math.min(this._helper.nextLeft,o),this._helper.nextLeft=Math.max(this._helper.nextLeft,e))}null!==this._helper.raf||r===this._helper.nextTop&&n===this._helper.nextLeft||(this._helper.raf=requestAnimationFrame((()=>{ null!==this._helper&&(null!==this._helper.nextTop&&(i.style.top=this._helper.nextTop+"px",this._helper.nextTop=null),null!==this._helper.nextLeft&&(i.style.left=this._helper.nextLeft+"px",this._helper.nextLeft=null),this._helper.raf=null)}))),this._drag?.()},this._handleDragStop=e=>{if(null===this._helper)return;this._source.classList.remove("ui-draggable-dragging"),this._helper=null,this._stop?.()};const t=this._source=e.source;t.classList.add("ui-draggable");const o=this._handle=(e.handle?t.querySelector(e.handle):null)??t;o.classList.add("ui-draggable-handle"),this._start=e.start,this._stop=e.stop,this._drag=e.drag,this._backend=new s({handle:o,onDragStart:this._handleDragStart,onDragMove:this._handleDragMove,onDragStop:this._handleDragStop}),this._axis=e.axis??!1,this._containment=e.containment}destroy(){const e=this._source;e.classList.remove("ui-draggable"),e.classList.remove("ui-draggable-dragging");this._handle.classList.remove("ui-draggable-handle"),this._backend.destroy(),null!==this._helper&&(this._helper.raf&&cancelAnimationFrame(this._helper.raf),this._helper=null)}}class s{constructor(e){this._pointerStarted=!1,this._initial=null,this._handlePointerDown=e=>{if(null!==this._initial||0!==e.button)return;if(!(e.target instanceof Element&&this._handle.contains(e.target)))return;if(this._initial=e,!this._distance&&(this._pointerStart(),!this._pointerStarted))return;e.preventDefault();const t=this._getEventTarget();t.addEventListener("pointermove",this._handlePointerMove),t.addEventListener("pointerup",this._handlePointerUp),t.addEventListener("pointercancel",this._handlePointerUp),t.addEventListener("lostpointercapture",this._handleLostPointerCapture)},this._handleLostPointerCapture=e=>{this._getEventTarget()===e.target&&this._handlePointerUp(e)},this._handlePointerMove=e=>{if(null!==this._initial&&this._initial.pointerId===e.pointerId)if(this._pointerStarted)this._pointerDrag(e);else if(this._pointerDistanceMet(e)){if(this._pointerStart(),this._pointerStarted)return void this._pointerDrag(e);this._handlePointerUp(e)}},this._handlePointerUp=e=>{if(null===this._initial||this._initial.pointerId!==e.pointerId)return;e.preventDefault();const t=this._getEventTarget();t.removeEventListener("pointermove",this._handlePointerMove),t.removeEventListener("pointerup",this._handlePointerUp),t.removeEventListener("pointercancel",this._handlePointerUp),t.removeEventListener("lostpointercapture",this._handlePointerUp),this._pointerStarted&&(this._pointerStarted=!1,t.releasePointerCapture(this._initial.pointerId),this._dispatchEvent(this._createEvent("pointer-drag-stop",e))),this._initial=null};const t=this._handle=e.handle;this._onDragStart=e.onDragStart,this._onDragMove=e.onDragMove,this._onDragStop=e.onDragStop,this._distance=e.distance??0,this._rootElement=e.rootElement,t.style.touchAction="none",t.addEventListener("pointerdown",this._handlePointerDown)}destroy(){const e=this._handle;e.style.touchAction="",e.removeEventListener("pointerdown",this._handlePointerDown), e.removeEventListener("pointermove",this._handlePointerMove),e.removeEventListener("pointerup",this._handlePointerUp),e.removeEventListener("pointercancel",this._handlePointerUp),e.removeEventListener("lostpointercapture",this._handlePointerUp),null!==this._initial&&(e.releasePointerCapture(this._initial.pointerId),this._initial=null),this._pointerStarted=!1}_pointerStart(){if(!this._initial)return;const e=this._getEventTarget();this._dispatchEvent(this._createEvent("pointer-drag-start",this._initial))?(this._pointerStarted=!0,e.setPointerCapture(this._initial.pointerId)):this._initial=null}_pointerDrag(e){e.preventDefault(),this._dispatchEvent(this._createEvent("pointer-drag-move",e))}_pointerDistanceMet(e){return!this._initial||!this._distance||Math.max(Math.abs(this._initial.clientX-e.clientX),Math.abs(this._initial.clientY-e.clientY))>=this._distance}_getEventTarget(){return this._rootElement??this._handle}_dispatchEvent(e){switch(e.type){case"pointer-drag-start":this._onDragStart(e);break;case"pointer-drag-move":this._onDragMove(e);break;case"pointer-drag-stop":this._onDragStop(e)}return!e.defaultPrevented}_createEvent(e,t){return(0,i.assert)(null!==this._initial),new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:{backend:this,initial:this._initial,current:t}})}}},66974:(e,t,o)=>{"use strict";o.r(t),o.d(t,{environment:()=>n,getEnvironmentByHost:()=>r,isDebug:()=>a,isLocal:()=>s,isProd:()=>l});const i=new Set(["battle","staging","test","local"]);function r(e){return-1!==["i18n.tradingview.com","partial.tradingview.com","www.tradingview.com","wwwcn.tradingview.com"].indexOf(e)||-1!==["d33t3vvu2t2yu5.cloudfront.net","dwq4do82y8xi7.cloudfront.net","s.tradingview.com","s3.tradingview.com"].indexOf(e)||e.match(/^[a-z]{2}\.tradingview\.com/)||e.match(/prod-[^.]+.tradingview.com/)?"battle":e.includes("tradingview.com")||e.includes("staging")?"staging":"local"}function n(){const e=self.environment;return function(e){i.has(e)||console.warn("Invalid environment "+e)}(e),e}function s(){return"local"===n()}function l(){return"battle"===n()}function a(){return!l()}},746849:(e,t,o)=>{"use strict";o.d(t,{checkIfExchangeAvailable:()=>n,isUserNeedSignAgreement:()=>r});o(142492);var i=o(406103);function r(e){if(!(0,i.isIDCExchange)(e))return!1;e=s(e);const t=window.pro,o=t.getProduct(e);return void 0!==o.idc_service_codes_delay&&((!Array.isArray(o.included_exchanges)||!o.included_exchanges.some((e=>t.hasPackage(s(e)))))&&!function(e){const t=window.pro;return t.hasPackage(e)||t.hasPackage(e+"_dly")}(e))}function n(e){const t=window.pro;return new Promise((o=>{window.is_authenticated?!t.getIDCExchanges(!0).length||t.isInvalidShopConf()?t.updateShopConf().then((()=>{o(!r(e))})).catch((()=>{o(!0)})):o(!r(e)):o(!0)}))}function s(e){return e.startsWith("exchange-")?e:"exchange-{0}".format(e.toLowerCase())}},456335:(e,t,o)=>{"use strict";o.d(t,{featureCheck:()=>n});var i=o(778016);function r(e,t,o){return t.value||(0,i.enabled)(e,o)}function n(e,t,o){switch(e){case"SCREENER_INTERVALS":return function(e,t){const o=(0, i.getConfig)("SCREENER_INTERVALS",t);return!(!o||!o.interval)&&o.interval.includes(e.interval)}(t,o);case"SCREENER_AUTO_REFRESH":return r("SCREENER_AUTO_REFRESH",t,o);case"ALERTS_NO_EXPIRATION":return r("ALERTS_NO_EXPIRATION",t,o);default:return(0,i.enabled)(e,o)}}},833813:(e,t,o)=>{"use strict";var i;o.d(t,{ProductFeaturesEnum:()=>i,UNLIMITED_FEATURE_LIMIT:()=>r}),function(e){e.CAN_EDIT_PUBLIC_CHATS="CAN_EDIT_PUBLIC_CHATS",e.NO_SPONSORED_ADS="NO_SPONSORED_ADS",e.ALERTS_NO_EXPIRATION="ALERTS_NO_EXPIRATION",e.ALERTS_WEBHOOK="ALERTS_WEBHOOK",e.SCREENER_AUTO_REFRESH="SCREENER_AUTO_REFRESH",e.SCREENER_INTERVALS="SCREENER_INTERVALS",e.SCREENER_EXPORT_DATA="SCREENER_EXPORT_DATA",e.SOCIAL_ACTIVITY="SOCIAL_ACTIVITY"}(i||(i={}));const r=99999},31214:(e,t,o)=>{"use strict";o.d(t,{reloginOrGoPro:()=>c,runOrGoPro:()=>a,runOrGoProWithoutSync:()=>l});var i=o(526225),r=o(707934),n=o(456335),s=o(678708);function l(e,t,o,i){(0,n.featureCheck)(t,i)?e():(0,r.createGoProDialog)({...o,runOrGoproWithFeatureCheckOptions:{featureCheck:()=>(0,n.featureCheck)(t,i),signInSuccess:e}})}async function a(e,t,o,r={}){const n=window.is_authenticated;window.is_authenticated&&window.user.is_pro&&await(0,i.syncUserData)("gopro"),n===window.is_authenticated?l(e,t,o,r):(0,s.showSignModal)({source:o.goproSource,feature:o.feature,signinSuccess:e})}async function c(e){const t=window.is_authenticated;window.is_authenticated&&window.user.is_pro&&await(0,i.syncUserData)("gopro"),t===window.is_authenticated?(0,r.createGoProDialog)(e):(0,s.showSignModal)({source:e.goproSource,feature:e.feature})}},125226:(e,t,o)=>{"use strict";o.d(t,{isFeatureEnabled:()=>g,onFeaturesStateChanged:()=>a});var i=o(49437),r=o(547465),n=o(855385),s=o.n(n);o(638456);const l=new r.Delegate,a=()=>l,c="forcefeaturetoggle.";const d=new class{enableFeature(e){i.TVLocalStorage.setItem(c+e,"true"),l.fire(e)}disableFeature(e){i.TVLocalStorage.setItem(c+e,"false"),l.fire(e)}resetFeature(e){i.TVLocalStorage.removeItem(c+e),l.fire(e)}onFeaturesStateChanged(){return l}};window.TradingView.FeatureToggle=d;const u="featuretoggle_seed";function h(e){try{const t=s()(e+function(){if(window.user&&window.user.id)return window.user.id;const e=i.TVLocalStorage.getItem(u);if(null!==e)return e;const t=Math.floor(1e6*Math.random());return i.TVLocalStorage.setItem(u,`${t}`),t}()),o=new DataView(t);return o.getUint32(0,!0)/4294967296}catch(e){return.5}}function p(e,t){if(e[t]&&-1===e[t])return!1;if("true"===i.TVLocalStorage.getItem(c+t)||window.is_authenticated&&"true"===window.user?.settings?.[c+t])return!0;if("false"===i.TVLocalStorage.getItem(c+t)||window.is_authenticated&&"false"===window.user?.settings?.[c+t])return!1;if(!e[t])return!1;if(1===e[t])return!0;return h(t)<=e[t]}const g=(_=window.featureToggleState||{},window.TradingView.onWidget?.()||Promise.all([o.e(80349),o.e(34604)]).then(o.bind(o,180349)).then((e=>{e.pushStreamMultiplexer.on("featuretoggle",(e=>{const t=p(_,e.name);_[e.name]=e.state,t!==p(_,e.name)&&l.fire(e.name)}))})),p.bind(null,_));var _;window.TradingView.isFeatureEnabled=g}, 532442:(e,t,o)=>{"use strict";function i(e){const[t,o,i]=function(e){const t=e.toString();return[Number(t.slice(0,4)),Number(t.slice(4,6)),Number(t.slice(6))]}(e);return new Date(t,o-1,i)}o.d(t,{getDateFromYYYYMMDD:()=>i})},251954:(e,t,o)=>{"use strict";o.d(t,{emit:()=>c,emitOnce:()=>d,subscribe:()=>a,unsubscribe:()=>l});var i=o(547465);const r={},n=[],s={};function l(e,t,o){r[e].unsubscribe(o,t)}function a(e,t,o,n){r.hasOwnProperty(e)||(r[e]=new i.Delegate),s[e]?t.call(o):r[e].subscribe(o,t,n)}function c(e,...t){const o=[e].concat(t);n.forEach((e=>{e.apply(null,o)})),r.hasOwnProperty(e)&&r[e].fire.apply(r[e],t)}function d(e){s[e]&&console.warn(`Something went wrong: emitOnce called multiple times with same event (${e})`),s[e]=!0,c.apply(null,arguments)}},588948:(e,t,o)=>{"use strict";o.d(t,{getFreshInitData:()=>a,getInitData:()=>l,updateInitData:()=>s});var i=o(650151);const r=(0,o(735566).getLogger)("Common.InitData"),n=window.initData||{};function s(){window.initData&&window.initData!==n&&(Object.assign(n,window.initData),window.initData=n);const e=document.querySelectorAll('script[type="application/prs.init-data+json"]');for(let t=0;t{"use strict";o.d(t,{linking:()=>v});var i=o(290484),r=o(650151),n=o(820028),s=(o(931924),o(477786)),l=o(388741),a=o(735566),c=o(62802),d=o(588948),u=o(776734),h=o(388130),p=o(296538),g=o(912445);const _=(0,a.getLogger)("Linking");class m{constructor(e,t,o){this.watchedSymbol=new n.WatchedValue,this.seriesShortSymbol=new n.WatchedValue,this.proSymbol=new n.WatchedValue,this.ensuredProSymbol=new n.WatchedValue,this.watchedInterval=new n.WatchedValue,this.watchedIntraday=new n.WatchedValue,this.watchedSeconds=new n.WatchedValue,this.watchedTicks=new n.WatchedValue,this.watchedDataFrequencyResolution=new n.WatchedValue,this.watchedRange=new n.WatchedValue,this.watchedSupportedResolutions=new n.WatchedValue,this.watchedSupportedChartStyles=new n.WatchedValue,this.symbolNamesList=new n.WatchedValue,this._chartWidgetCollection=null,this._chartWidgetBindingState=0,this._activeChartWidget=null,this._linkingGroupCharts=null,this._boundChartWidget=null,this._watchedSymbolListenerBound=this._watchedSymbolListener.bind(this),this._watchedIntervalListenerBound=this._watchedIntervalListener.bind(this),this._setGroupSymbolCancellationToken={cancelled:!1},this._muted=!1,this.updateBoundChartWidget=()=>{const e=this._chartToBind();e!==this._boundChartWidget&&(null===e?this.unbindFromChartWidget():this.bindToChartWidget(e))},this._updateAllGroupChartWidgets=()=>{this._destroySymbolIntervalPropertySubscriptions?.();const e=(0,r.ensureNotNull)(this._linkingGroupCharts).value(),t=[],o=[];for(const i of e){const e=i.symbolWV().spawn(),r=i.resolutionWV().spawn();e.subscribe(this._updateSymbolByProperty.bind(this,i)), r.subscribe(this._updateIntervalByProperty.bind(this,i)),t.push(e),o.push(r)}this._destroySymbolIntervalPropertySubscriptions=()=>{t.forEach((e=>e.destroy())),o.forEach((e=>e.destroy())),this._destroySymbolIntervalPropertySubscriptions=void 0};const i=this.watchedSymbol.value();e.length>1&&this._needApplySymbol(i)&&!this._muted&&this._setGroupSymbol(i);const n=this.watchedInterval.value();e.length>1&&this._needApplyInterval(n)&&!this._muted&&this._setGroupInterval(n),this.updateBoundChartWidget()},this._groupIndex=e;const i=(e,t)=>{e.subscribe((e=>{o()===this&&t.setValue(e)}),{callWithLast:!0})};i(this.watchedSymbol,t.watchedSymbol),i(this.seriesShortSymbol,t.seriesShortSymbol),i(this.proSymbol,t.proSymbol),i(this.ensuredProSymbol,t.ensuredProSymbol),i(this.watchedInterval,t.watchedInterval),i(this.watchedIntraday,t.watchedIntraday),i(this.watchedSeconds,t.watchedSeconds),i(this.watchedTicks,t.watchedTicks),i(this.watchedDataFrequencyResolution,t.watchedDataFrequencyResolution),i(this.watchedRange,t.watchedRange),i(this.watchedSupportedResolutions,t.watchedSupportedResolutions),i(this.watchedSupportedChartStyles,t.watchedSupportedChartStyles),i(this.symbolNamesList,t.symbolNamesList),this.watchedSymbol.subscribe((e=>{this._boundChartWidget&&this._boundChartWidget.hasModel()&&this._mainSeries().symbolSameAsCurrent(e)||this.proSymbol.setValue(e)}),{callWithLast:!0})}mute(e){this._muted=e}bindToChartWidgetCollection(e){this.unbindFromChartWidgetCollection(),this._chartWidgetCollection=e,this._activeChartWidget=e.activeChartWidget.spawn(),this._activeChartWidget.subscribe(this.updateBoundChartWidget),this._linkingGroupCharts=e.linkingGroupsCharts(this._groupIndex).spawn(),this._linkingGroupCharts.subscribe(this._updateAllGroupChartWidgets),this.updateBoundChartWidget(),this._updateAllGroupChartWidgets()}unbindFromChartWidgetCollection(){this.unbindFromChartWidget(),this._chartWidgetCollection=null,this._activeChartWidget?.destroy(),this._activeChartWidget=null,this._linkingGroupCharts?.destroy(),this._linkingGroupCharts=null,this._destroySymbolIntervalPropertySubscriptions?.()}bindToChartWidget(e){if(this.unbindFromChartWidget(),this._boundChartWidget=e,e.hasModel())return void this._onChartModelCreated(e.model());e.modelCreated().subscribe(this,this._onChartModelCreated,!0),this._chartWidgetBindingState=1;const t=e.mainSeriesProperties().childs();this.watchedSymbol.setValue(t.symbol.value()),this.watchedInterval.setValue(t.interval.value()),this._boundChartWidget.linkingGroupIndex().subscribe(this.updateBoundChartWidget)}unbindFromChartWidget(){const e=this._boundChartWidget;if(null!==e){switch(this._chartWidgetBindingState){case 1:e.modelCreated().unsubscribeAll(this);break;case 2:this.watchedSymbol.unsubscribe(this._watchedSymbolListenerBound);const t=this._mainSeries().dataEvents();t.symbolResolved().unsubscribeAll(this),t.symbolError().unsubscribeAll(this),this._mainSeries().onIntervalChanged().unsubscribeAll(this),this.watchedInterval.unsubscribe(this._watchedIntervalListenerBound), delete this.watchedSymbol.writeLock}e.linkingGroupIndex().unsubscribe(this.updateBoundChartWidget),this._boundChartWidget=null,this._chartWidgetBindingState=0}}boundChartWidget(){return this._boundChartWidget}_mainSeries(){if(!this._boundChartWidget)throw new Error("ChartWidget is undefined");return this._boundChartWidget.model().mainSeries()}_watchedSymbolListener(e){this._needApplySymbol(e)&&!this._muted&&(this._setGroupSymbol(e),this._sendSnowplowAnalytics())}_updateSymbolByProperty(e,t){const o=this._symbolLock();o&&this._needApplySymbol(t)&&!this._muted&&this._setGroupSymbol(t),(o||e===this._boundChartWidget)&&this.watchedSymbol.setValue(t)}_watchedIntervalListener(e){const t=s.Interval.normalize(e);t&&this._needApplyInterval(t)&&!this._muted&&this._setGroupInterval(t)}_updateIntervalByProperty(e,t){const o=this._intervalLock(),i=s.Interval.normalize(t);o&&i&&this._needApplyInterval(i)&&!this._muted&&this._setGroupInterval(i),(o||e===this._boundChartWidget)&&this.watchedInterval.setValue(i??t)}_sendSnowplowAnalytics(){if(window.user.do_not_track)return;const e=this._mainSeries(),t=()=>{e.dataEvents().symbolResolved().unsubscribe(this,o)},o=o=>{(0,u.getTracker)().then((e=>{if(null===e)return;const t=(0,r.ensureNotNull)(this._chartWidgetCollection),i=t.layout.value(),n=t.metaInfo.uid.value()||"";e.trackChartSymbols(o.pro_name,o.type,i,n,window.user.declared_status===h.UserStatus.Pro)})),e.dataEvents().symbolError().unsubscribe(this,t)};e.dataEvents().symbolResolved().subscribe(this,o,!0),e.dataEvents().symbolError().subscribe(this,t,!0)}_updateSeriesSymbolInfo(){this.seriesShortSymbol.setValue((0,r.ensureNotNull)(this._boundChartWidget).getSymbol(!0));const e=this._mainSeries().symbolInfo();if(e){const t=e.pro_name||!1;this.proSymbol.setValue(t||this.watchedSymbol.value()),this.ensuredProSymbol.setValue(this.proSymbol.value()),e.aliases&&this.symbolNamesList.setValue(e.aliases);let o=(0,p.allChartStyles)();((0,l.isCloseBasedSymbol)(e)||this._mainSeries().intervalObj().is1Tick())&&(o=o.filter((e=>(0,l.isSingleValueBasedStyle)(e)))),this.watchedSupportedChartStyles.setValue(o),this.watchedIntraday.setValue(!!e.has_intraday),this.watchedSeconds.setValue(!!e.has_seconds),this.watchedTicks.setValue(!(0,l.isCloseBasedSymbol)(e)&&!!e["is-tickbars-available"]),this.watchedRange.setValue(!(0,l.isCloseBasedSymbol)(e));const i=e.data_frequency?e.data_frequency:void 0;this.watchedDataFrequencyResolution.setValue(i)}else this.watchedIntraday.setValue(!1),this.watchedSeconds.setValue(!1),this.watchedTicks.setValue(!1),this.watchedRange.setValue(!1),this._mainSeries().isFailed()&&this.ensuredProSymbol.setValue(this.proSymbol.value())}_onChartModelCreated(e){if(!this._boundChartWidget)throw new Error("ChartWidget is undefined");this._chartWidgetBindingState=2,this.watchedSymbol.setValue(this._boundChartWidget.symbolWV().value()),this.watchedSymbol.subscribe(this._watchedSymbolListenerBound);const t=e.mainSeries().dataEvents();t.symbolResolved().subscribe(this,this._updateSeriesSymbolInfo), t.symbolError().subscribe(this,this._updateSeriesSymbolInfo),e.mainSeries().onIntervalChanged().subscribe(this,this._updateSeriesSymbolInfo),this._updateSeriesSymbolInfo(),this.watchedInterval.setValue(this._boundChartWidget.resolutionWV().value()),this.watchedInterval.subscribe(this._watchedIntervalListenerBound),this._boundChartWidget.readOnly()&&(this.watchedSymbol.writeLock=!0)}_chartToBind(){const e=this._chartWidgetCollection;return null===e?null:e.activeChartWidget.value().linkingGroupIndex().value()===this._groupIndex?e.activeChartWidget.value():null!==this._boundChartWidget&&this._boundChartWidget.linkingGroupIndex().value()===this._groupIndex?this._boundChartWidget:e.getAll().find((e=>e.linkingGroupIndex().value()===this._groupIndex))??null}_symbolLock(){return!!this._chartWidgetCollection?.lock.symbol.value()}_intervalLock(){return!!this._chartWidgetCollection?.lock.interval.value()}_chartsForLock(e){return(0===e?this._symbolLock():this._intervalLock())?(0,r.ensureNotNull)(this._linkingGroupCharts).value():this._boundChartWidget?[this._boundChartWidget]:[]}_setGroupSymbol(e){this.mute(!0),this._setGroupSymbolCancellationToken.cancelled=!0;const t=this._setGroupSymbolCancellationToken={cancelled:!1};(0,r.ensureNotNull)(this._chartWidgetCollection).setSymbol(e,this._groupIndex,(0,r.ensureNotNull)(this._boundChartWidget)).finally((()=>{if(this._boundChartWidget&&!t.cancelled){const t=this._boundChartWidget.model().mainSeries();t.symbolSameAsCurrent(e)||(this.watchedSymbol.setValue(t.symbol()),this.proSymbol.setValue(t.proSymbol()))}})),this.mute(!1)}_needApplySymbol(e){const t=this._chartsForLock(0),o=t.find((t=>t.hasModel()&&t.model().mainSeries().symbolInfo()&&t.model().mainSeries().symbolSameAsResolved(e)));if(o){const e=o.model().mainSeries();if(t.every((t=>e.symbolSameAsResolved(t.symbolWV().value()))))return!1}return t.some((t=>t.symbolWV().value()!==e))}_setGroupInterval(e){this.mute(!0),(0,r.ensureNotNull)(this._chartWidgetCollection).setResolution(e,this._groupIndex).finally((()=>{if(this._boundChartWidget){const t=this._boundChartWidget.resolutionWV().value();s.Interval.isEqual(t,e)||this.watchedInterval.setValue(t)}})),this.mute(!1)}_needApplyInterval(e){return this._chartsForLock(1).some((t=>!s.Interval.isEqual(t.resolutionWV().value(),e)))}}const v=new class{constructor(){this._watchedSymbol=new n.WatchedValue,this._seriesShortSymbol=new n.WatchedValue,this._proSymbol=new n.WatchedValue,this._ensuredProSymbol=new n.WatchedValue,this._watchedInterval=new n.WatchedValue,this._watchedIntraday=new n.WatchedValue,this._watchedSeconds=new n.WatchedValue,this._watchedTicks=new n.WatchedValue,this._watchedDataFrequencyResolution=new n.WatchedValue,this._watchedRange=new n.WatchedValue,this._watchedSupportedResolutions=new n.WatchedValue,this._watchedSupportedChartStyles=new n.WatchedValue([]),this._symbolNamesList=new n.WatchedValue,this._chartWidgetCollection=null,this._onSymbolLinkBound=this._onSymbolLink.bind(this),this._searchCharts=null,this._searchChartsLoadDebounced=null,this._selfEmit=!1, this._preventFeedBySymbol=!1,this._feedBySymbolDebounceCounter=0,this._linkingGroups=new Map,this._activeLinkingGroup=new n.WatchedValue,this._activeLinkingGroupIndex=null,this._updateLinkingGroups=()=>{(0,r.ensureNotNull)(this._chartWidgetCollection).allLinkingGroups().value().forEach((e=>this._linkingGroup(e))),this._linkingGroups.forEach((e=>e.updateBoundChartWidget()))},this._activeLinkingGroup.setValue(this._linkingGroup(null));const e=(e,t)=>{e.subscribe((e=>t().setValue(e)),{callWithLast:!0})};e(this._watchedSymbol,(()=>this._activeLinkingGroup.value().watchedSymbol)),e(this._seriesShortSymbol,(()=>this._activeLinkingGroup.value().seriesShortSymbol)),e(this._proSymbol,(()=>this._activeLinkingGroup.value().proSymbol)),e(this._ensuredProSymbol,(()=>this._activeLinkingGroup.value().ensuredProSymbol)),e(this._watchedInterval,(()=>this._activeLinkingGroup.value().watchedInterval)),e(this._watchedIntraday,(()=>this._activeLinkingGroup.value().watchedIntraday)),e(this._watchedSeconds,(()=>this._activeLinkingGroup.value().watchedSeconds)),e(this._watchedTicks,(()=>this._activeLinkingGroup.value().watchedTicks)),e(this._watchedDataFrequencyResolution,(()=>this._activeLinkingGroup.value().watchedDataFrequencyResolution)),e(this._watchedRange,(()=>this._activeLinkingGroup.value().watchedRange)),e(this._watchedSupportedResolutions,(()=>this._activeLinkingGroup.value().watchedSupportedResolutions)),e(this._watchedSupportedChartStyles,(()=>this._activeLinkingGroup.value().watchedSupportedChartStyles)),e(this._symbolNamesList,(()=>this._activeLinkingGroup.value().symbolNamesList));const t=e=>{this._watchedSymbol.setValue(e.watchedSymbol.value()),this._seriesShortSymbol.setValue(e.seriesShortSymbol.value()),this._proSymbol.setValue(e.proSymbol.value()),this._ensuredProSymbol.setValue(e.ensuredProSymbol.value()),this._watchedInterval.setValue(e.watchedInterval.value()),this._watchedIntraday.setValue(e.watchedIntraday.value()),this._watchedSeconds.setValue(e.watchedSeconds.value()),this._watchedTicks.setValue(e.watchedTicks.value()),this._watchedDataFrequencyResolution.setValue(e.watchedDataFrequencyResolution.value()),this._watchedRange.setValue(e.watchedRange.value()),this._watchedSupportedResolutions.setValue(e.watchedSupportedResolutions.value()),this._watchedSupportedChartStyles.setValue(e.watchedSupportedChartStyles.value()),this._symbolNamesList.setValue(e.symbolNamesList.value())};this._activeLinkingGroup.subscribe(t),t(this._activeLinkingGroup.value()),(0,g.setMuteLinkingGroup)(((e,t)=>{this._linkingGroup(e).mute(t)}))}get symbol(){return this._watchedSymbol}get proSymbol(){return this._proSymbol.readonly()}get ensuredProSymbol(){return this._ensuredProSymbol.readonly()}get symbolNamesList(){return this._symbolNamesList.readonly()}get seriesShortSymbol(){return this._seriesShortSymbol.readonly()}get interval(){return this._watchedInterval}get intraday(){return this._watchedIntraday.readonly()}get seconds(){return this._watchedSeconds.readonly()}get ticks(){return this._watchedTicks.readonly()}get range(){ return this._watchedRange.readonly()}get supportedResolutions(){return this._watchedSupportedResolutions.readonly()}get supportedChartStyles(){return this._watchedSupportedChartStyles.readonly()}get preventFeedBySymbol(){return this._preventFeedBySymbol}get dataFrequencyResolution(){return this._watchedDataFrequencyResolution.readonly()}activeLinkingGroup(){return this._activeLinkingGroup.readonly()}getChartWidget(){return this.activeLinkingGroup().value().boundChartWidget()}bindToChartWidgetCollection(e){this._chartWidgetCollection?.onAboutToBeDestroyed.unsubscribeAll(this),this._unbindFromChartWidgetCollection(),this._chartWidgetCollection=e,this._chartWidgetCollection.onAboutToBeDestroyed.subscribe(this,this._unbindFromChartWidgetCollection),this._chartWidgetCollection.allLinkingGroups().subscribe(this._updateLinkingGroups),this._updateLinkingGroups(),this._activeLinkingGroupIndex=e.activeLinkingGroup().spawn(),this._activeLinkingGroupIndex.subscribe((e=>{this._activeLinkingGroup.setValue(this._linkingGroup(e))}),{callWithLast:!0}),this._linkingGroups.forEach((t=>t.bindToChartWidgetCollection(e)))}bindToSearchCharts(e){this.unbindFromSearchCharts(),this._searchCharts=e,e.onSearchBySymbol.subscribe(this,this._onSearchBySymbol),e.loadingSymbol.subscribe((e=>{!1===e&&(this._feedBySymbolDebounceCounter=0)})),this._watchedSymbol.subscribe(this._onSymbolLinkBound)}unbindFromSearchCharts(){this._searchCharts&&(this._searchCharts.onSearchBySymbol.unsubscribe(this,this._onSearchBySymbol),this._watchedSymbol.unsubscribe(this._onSymbolLinkBound),this._searchCharts=null)}setPreventFeedBySymbol(e){this._preventFeedBySymbol=e}setSymbolAndLogInitiator(e,t,o){(this.symbol.value()!==e||o)&&(_.logInfo(`Change linking symbol to ${e}, initiator: ${t}`),this.symbol.setValue(e,o))}_onSearchBySymbol(e){if(!e.resolved_symbol)throw new Error("no resolved_symbol");this._selfEmit=!0,this._watchedSymbol.setValue(e.resolved_symbol),this._selfEmit=!1}_onSymbolLink(e){if(!this._selfEmit){if(!this._searchCharts){const e="No search charts defined";throw _.logError(e),new Error(e)}this._preventFeedBySymbol||this._loadSearchCharts(e)}}_loadSearchCharts(e){if(!this._searchCharts){const e="No search charts defined";throw _.logError(e),new Error(e)}if(this._searchChartsLoadDebounced)return void(this._feedBySymbolDebounceCounter<100&&(this._feedBySymbolDebounceCounter++,this._searchChartsLoadDebounced(e)));const t=e=>this._searchCharts?(!0===this._searchCharts.loadingSymbol.value()?this._feedBySymbolDebounceCounter<100&&(this._feedBySymbolDebounceCounter++,this._searchChartsLoadDebounced=(0,i.default)(t,2e3),this._searchChartsLoadDebounced(e)):this._searchChartsLoadDebounced=null,this._searchCharts.feedBySymbol.call(this._searchCharts,e)):()=>{};!0===this._searchCharts.loadingSymbol.value()?this._feedBySymbolDebounceCounter<100&&(this._feedBySymbolDebounceCounter++,this._searchChartsLoadDebounced=(0,i.default)(t,2e3),this._searchChartsLoadDebounced(e)):this._searchCharts.feedBySymbol(e)}_linkingGroup(e){let t=this._linkingGroups.get(e);if(void 0===t){ const o={watchedSymbol:this._watchedSymbol,seriesShortSymbol:this._seriesShortSymbol,proSymbol:this._proSymbol,ensuredProSymbol:this._ensuredProSymbol,watchedInterval:this._watchedInterval,watchedIntraday:this._watchedIntraday,watchedSeconds:this._watchedSeconds,watchedTicks:this._watchedTicks,watchedDataFrequencyResolution:this._watchedDataFrequencyResolution,watchedRange:this._watchedRange,watchedSupportedResolutions:this._watchedSupportedResolutions,watchedSupportedChartStyles:this._watchedSupportedChartStyles,symbolNamesList:this._symbolNamesList};t=new m(e,o,(()=>this._activeLinkingGroup.value())),this._linkingGroups.set(e,t),this._chartWidgetCollection&&t.bindToChartWidgetCollection(this._chartWidgetCollection)}return t}_unbindFromChartWidgetCollection(){null!==this._chartWidgetCollection&&(this._activeLinkingGroupIndex?.destroy(),this._activeLinkingGroupIndex=null,this._linkingGroups.forEach((e=>e.unbindFromChartWidgetCollection())),this._chartWidgetCollection.allLinkingGroups().unsubscribe(this._updateLinkingGroups),this._chartWidgetCollection=null)}};{const e=(0,d.getFreshInitData)().symbolInfo,t=e?e.pro_symbol:c.getValue("editchart.model.symbol",window.DEFAULT_SYMBOL);v.setSymbolAndLogInitiator(t,"initial data")}window.TradingViewApi||(window.TradingViewApi={linking:v})},49437:(e,t,o)=>{"use strict";const{getLogger:i}=o(735566),r=i("TVLocalStorage");var n=function(){try{this.isAvailable=!0,this.localStorage=window.localStorage,this.localStorage.setItem("tvlocalstorage.available","true")}catch(e){delete this.isAvailable,delete this.localStorage}this._updateLength();try{this._report()}catch(e){}};n.prototype._report=function(){if(this.isAvailable){const e=10,t=[];for(let e=0;et.length-e.length));const o=t.slice(0,e);t.sort(((e,t)=>t.key.length-e.key.length));const i=t.slice(0,e);r.logNormal(`Total amount of keys in Local Storage: ${this.length}`),r.logNormal(`Top ${e} keys with longest values: ${JSON.stringify(o)}`),r.logNormal(`Top ${e} longest key names: ${JSON.stringify(i)}`);try{navigator.storage.estimate().then((e=>{r.logNormal(`Storage estimate: ${JSON.stringify(e)}`)}))}catch(e){}}},n.prototype.length=0,n.prototype.isAvailable=!1,n.prototype.localStorage={"tvlocalstorage.available":"false"},n.prototype._updateLength=function(){if(this.isAvailable)this.length=this.localStorage.length;else{var e,t=0;for(e in this.localStorage)this.localStorage.hasOwnProperty(e)&&t++;this.length=t}},n.prototype.key=function(e){return this.isAvailable?this.localStorage.key(e):Object.keys(this.localStorage)[e]},n.prototype.getItem=function(e){return this.isAvailable?this.localStorage.getItem(e):void 0===this.localStorage[e]?null:this.localStorage[e]},n.prototype.setItem=function(e,t){this.isAvailable?this.localStorage.setItem(e,t):this.localStorage[e]=t,this._updateLength()},n.prototype.removeItem=function(e){this.isAvailable?this.localStorage.removeItem(e):delete this.localStorage[e],this._updateLength() },n.prototype.clear=function(){this.isAvailable?this.localStorage.clear():this.localStorage={},this._updateLength()},window.TVLocalStorage=new n,e.exports.TVLocalStorage=window.TVLocalStorage},76107:(e,t,o)=>{"use strict";o.d(t,{getCSSProperty:()=>l,getCSSPropertyNumericValue:()=>a,getContentWidth:()=>n,getScrollbarWidth:()=>i,matchMediaMinMax:()=>r,setStyle:()=>s});const i=(()=>{let e;return()=>{if(void 0===e){const t=document.createElement("div"),o=t.style;o.visibility="hidden",o.width="100px",o.msOverflowStyle="scrollbar",document.body.appendChild(t);const i=t.offsetWidth;t.style.overflow="scroll";const r=document.createElement("div");r.style.width="100%",t.appendChild(r);const n=r.offsetWidth;t.parentNode?.removeChild(t),e=i-n}return e}})();function r(e,t){return t===1/0?window.matchMedia(`(min-width: ${e}px)`):window.matchMedia(`(min-width: ${e}px) and (max-width: ${t}px)`)}function n(e){return a(e,"width")-a(e,"padding-left")-a(e,"padding-right")}function s(e,t,o){null!==e&&e.style.setProperty(t,o)}function l(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function a(e,t){return parseInt(l(e,t))}},575658:(e,t,o)=>{"use strict";o.d(t,{setFixedBodyState:()=>l});var i=o(76107),r=o(531327);let n=0,s=!1;function l(e){const{body:t}=document,o=t.querySelector(".widgetbar-wrap");if(e&&1==++n){const e=(0,i.getCSSProperty)(t,"overflow"),r=(0,i.getCSSPropertyNumericValue)(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&((0,i.setStyle)(o,"right",`${(0,i.getScrollbarWidth)()}px`),t.style.paddingRight=`${r+(0,i.getScrollbarWidth)()}px`,s=!0),t.classList.add("i-no-scroll")}else if(!e&&n>0&&0==--n&&(t.classList.remove("i-no-scroll"),s)){(0,i.setStyle)(o,"right","0px");let e=0;e=o?(0,r.getWidgetBarPadding)((0,i.getContentWidth)(o)):0,t.scrollHeight<=t.clientHeight&&(e-=(0,i.getScrollbarWidth)()),t.style.paddingRight=(e<0?0:e)+"px",s=!1}}},912445:(e,t,o)=>{"use strict";let i;function r(e,t){i?.(e,t)}function n(e){i=e}o.d(t,{muteLinkingGroup:()=>r,setMuteLinkingGroup:()=>n})},561965:(e,t,o)=>{"use strict";o.d(t,{createReactRoot:()=>u});var i=o(50959),r=o(632227),n=o(904237);const s=(0,i.createContext)({isOnMobileAppPage:()=>!1,isRtl:!1,locale:"en"});var l=o(314802),a=o(969680);const c={iOs:"old",android:"new",old:"old",new:"new",any:"any"};function d(e){const[t]=(0,i.useState)({isOnMobileAppPage:e=>(0,l.isOnMobileAppPage)(c[e]),isRtl:(0,a.isRtl)(),locale:window.locale});return i.createElement(s.Provider,{value:t},e.children)}function u(e,t,o="legacy"){const s=i.createElement(d,null,e);if("modern"===o){const e=(0,n.createRoot)(t);return e.render(s),{render(t){e.render(i.createElement(d,null,t))},unmount(){e.unmount()}}}return r.render(s,t),{render(e){r.render(i.createElement(d,null,e),t)},unmount(){r.unmountComponentAtNode(t)}}}},318557:(e,t,o)=>{"use strict";o.d(t,{contentHeight:()=>r.contentHeight,outerHeight:()=>r.outerHeight,outerWidth:()=>r.outerWidth,position:()=>s});var i=o(650151),r=o(746326);function n(e){if(!e.getClientRects().length)return{top:0,left:0} ;const t=e.getBoundingClientRect(),o=(0,i.ensureNotNull)(e.ownerDocument.defaultView);return{top:t.top+o.pageYOffset,left:t.left+o.pageXOffset}}function s(e){const t=getComputedStyle(e);let o,i={top:0,left:0};if("fixed"===t.position)o=e.getBoundingClientRect();else{o=n(e);const t=e.ownerDocument;let r=e.offsetParent||t.documentElement;for(;r&&(r===t.body||r===t.documentElement)&&"static"===getComputedStyle(r).position;)r=r.parentElement;r&&r!==e&&1===r.nodeType&&(i=n(r),i.top+=parseFloat(getComputedStyle(r).borderTopWidth),i.left+=parseFloat(getComputedStyle(r).borderLeftWidth))}return{top:o.top-i.top-parseFloat(t.marginTop),left:o.left-i.left-parseFloat(t.marginLeft)}}},439563:(e,t,o)=>{"use strict";async function i(){const e=(await Promise.all([o.e(73034),o.e(3567),o.e(36683)]).then(o.bind(o,469449))).getTrackerInstance();return e||null}o.d(t,{getEmbedWidgetTracker:()=>i})},526225:(e,t,o)=>{"use strict";o.d(t,{syncUserConversionData:()=>u,syncUserData:()=>d});var i=o(735566),r=o(345848),n=o(803912),s=o(357173);const l=(0,i.getLogger)("User.Sync");function a(e){return`${e}_${window.user&&window.user.username||""}`}function c(e,t,o,i=!0){o!==window.user.pro_plan&&(window.user.pro_plan=o,window.user.is_pro=Boolean(o),(0,r.trackEvent)("Sync User Data","Different Pro Plan",a(e))),t!==window.is_authenticated&&(window.is_authenticated=t,i&&window.loginStateChange.fire(),(0,r.trackEvent)("Sync User Data","Different Auth",a(e)))}async function d(e){try{c(e,!0,(await(0,s.getProPlanDetailsForUser)()).pro_plan)}catch(t){!function(e,t){403===t.status&&["not_authenticated","login_required"].includes(t.type||"")?c(e,!1,void 0):l.logError(t.message)}(e,t)}}async function u(e,t=!0){const o=new URL("/pricing/",window.location.origin),i=new URLSearchParams(window.location.search);i.has("_test_country")&&o.searchParams.append("_test_country",i.get("_test_country")??"");const r=await(0,n.fetch)(o.href),s=await r.json();return c(e,s.is_authenticated,s.user.pro_plan,t),s}},763532:(e,t,o)=>{"use strict";o.d(t,{escapeCSVValue:()=>a,saveTextFile:()=>r});var i=o(638456);function r(e,t,o="text/plain"){const r=new Blob([t],{type:o});if(i.CheckMobile.iOS()){const t=new FileReader;return t.onload=()=>{t.result&&n(e,t.result.toString())},void t.readAsDataURL(r)}const s=window.URL.createObjectURL(r);navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(r,e):window.navigator.msSaveBlob?window.navigator.msSaveBlob(r,e):(n(e,s),window.URL.revokeObjectURL(s))}function n(e,t){const o=document.createElement("a");o.style.display="none",document.body.appendChild(o),o.href=t,o.download=e,o.click(),document.body.removeChild(o)}const s=/[",\r\n]/,l=/"/g;function a(e){return s.test(e)?`"${e.replace(l,'""')}"`:e}},484400:(e,t,o)=>{"use strict";o.d(t,{DEFAULT_THEME:()=>i});const i="light"},267858:(e,t,o)=>{"use strict";o.d(t,{provider:()=>i});const i=o(787703)},913934:(e,t,o)=>{"use strict";o.d(t,{themes:()=>a});var i=o(61499),r=o(444372) ;const n=JSON.parse('{"color-header-bg":"color-black","color-body-bg":"color-black","color-body-secondary-bg":"color-cold-gray-900","color-bg-primary":"color-cold-gray-850","color-bg-primary-hover":"color-cold-gray-800","color-bg-secondary":"color-cold-gray-900","color-bg-highlight":"color-cold-gray-900","color-bg-scroll-buttons":"color-cold-gray-800","color-legacy-bg-scroll-buttons":"color-cold-gray-550","color-legacy-bg-widget":"color-cold-gray-900","color-text-primary":"color-cold-gray-200","color-text-secondary":"color-cold-gray-450","color-text-tertiary":"color-cold-gray-400","color-text-disabled":"color-cold-gray-650","color-accent-content":"color-white","color-divider":"color-cold-gray-700","color-divider-hover":"color-cold-gray-800","color-divider-secondary":"color-cold-gray-800","color-box-shadow":"color-cold-gray-900","color-active-hover-text":"color-cold-gray-200","color-alert-text":"color-cold-gray-200","color-border":"color-cold-gray-750","color-border-chat-fields":"color-cold-gray-750","color-border-hover":"color-cold-gray-650","color-border-table":"color-cold-gray-800","color-brand":"color-tv-blue-500","color-brand-hover":"color-tv-blue-600","color-brand-active":"color-tv-blue-700","color-button-hover-bg":"color-cold-gray-850","color-chart-page-bg":"color-cold-gray-800","color-common-tooltip-bg":"color-cold-gray-750","color-danger":"color-ripe-red-600","color-danger-hover":"color-ripe-red-500","color-danger-active":"color-ripe-red-400","color-depthrenderer-fill-style":"color-cold-gray-150","color-depthrenderer-stroke-style":"color-cold-gray-650","color-disabled-border-and-color":"color-cold-gray-800","color-disabled-input":"color-cold-gray-750","color-empty-container-message":"color-cold-gray-450","color-halal":"color-iguana-green-400","color-continuous":"color-cold-gray-500","color-highlight-new":"color-tv-blue-a800","color-icons":"color-cold-gray-450","color-input-bg":"color-cold-gray-800","color-input-textarea-readonly":"color-cold-gray-650","color-input-placeholder-text":"color-cold-gray-700","color-input-publish-bg":"color-cold-gray-900","color-item-active-blue":"color-tv-blue-a900","color-item-hover-active-bg":"color-cold-gray-800","color-item-hover-bg":"color-cold-gray-800","color-item-hover-blue":"color-tv-blue-a800","color-item-selected-blue":"color-tv-blue-a800","color-item-active-text":"color-cold-gray-200","color-item-active-bg":"color-tv-blue-500","color-link":"color-tv-blue-500","color-link-hover":"color-tv-blue-600","color-link-active":"color-tv-blue-700","color-list-item":"color-cold-gray-450","color-list-nth-child-bg":"color-cold-gray-850","color-news-highlight":"color-cold-gray-800","color-pane-bg":"color-cold-gray-900","color-pane-secondary-bg":"color-cold-gray-850","color-placeholder":"color-cold-gray-650","color-popup-menu-item-hover-bg":"color-cold-gray-800","color-popup-menu-separator":"color-cold-gray-700","color-primary-symbol":"color-sky-blue-500","color-row-hover-active-bg":"color-cold-gray-800","color-sb-scrollbar-body-bg":"color-cold-gray-650","color-screener-description":"color-cold-gray-200","color-section-separator-border":"color-cold-gray-750","color-search-button-hover":"color-cold-gray-700","color-separator-table-chat":"color-cold-gray-750","color-success":"color-minty-green-700","color-success-hover":"color-minty-green-600","color-success-active":"color-minty-green-500","color-tag-active-bg":"color-cold-gray-750","color-tag-hover-bg":"color-cold-gray-800","color-text-regular":"color-cold-gray-200","color-toolbar-button-text":"color-cold-gray-200","color-toolbar-button-text-hover":"color-cold-gray-200","color-toolbar-button-text-active":"color-tv-blue-500","color-toolbar-button-text-active-hover":"color-tv-blue-600","color-toolbar-button-background-hover":"color-cold-gray-800","color-toolbar-button-background-secondary-hover":"color-cold-gray-750","color-toolbar-button-background-active":"color-tv-blue-a900","color-toolbar-button-background-active-hover":"color-tv-blue-a800","color-toolbar-toggle-button-background-active":"color-tv-blue-500","color-toolbar-toggle-button-background-active-hover":"color-tv-blue-600","color-toolbar-toggle-button-icon":"color-cold-gray-650","color-toolbar-interactive-element-text-normal":"color-cold-gray-200","color-toolbar-opened-element-bg":"color-cold-gray-800","color-toolbar-divider-background":"color-cold-gray-700","color-popup-background":"color-cold-gray-850","color-popup-element-text":"color-cold-gray-200","color-popup-element-text-hover":"color-cold-gray-250","color-popup-element-background-hover":"color-cold-gray-800","color-popup-element-secondary-text":"color-cold-gray-500","color-popup-element-hint-text":"color-cold-gray-600","color-popup-element-text-active":"color-cold-gray-200","color-popup-element-background-active":"color-tv-blue-500","color-popup-element-toolbox-text":"color-cold-gray-500","color-popup-element-toolbox-text-hover":"color-cold-gray-200","color-popup-element-toolbox-text-active-hover":"color-tv-blue-200","color-popup-element-toolbox-background-hover":"color-cold-gray-750","color-popup-element-toolbox-background-active-hover":"color-tv-blue-700","color-tooltip-bg":"color-cold-gray-750","color-tv-button-checked":"color-cold-gray-450","color-tv-dialog-caption":"color-cold-gray-50","color-tv-dropdown-item-hover-bg":"color-cold-gray-800","color-underlined-text":"color-cold-gray-450","color-widget-pages-bg":"color-cold-gray-900","color-warning":"color-tan-orange-700","color-forex-icon":"color-white","color-list-item-active-bg":"color-tv-blue-500","color-list-item-hover-bg":"color-cold-gray-800","color-list-item-text":"color-cold-gray-200","color-price-axis-label-back":"color-cold-gray-800","color-price-axis-label-text":"color-cold-gray-500","color-price-axis-gear":"color-cold-gray-200","color-price-axis-gear-hover":"color-cold-gray-400","color-price-axis-highlight":"color-cold-gray-800","color-bid":"color-tv-blue-500","color-scroll-bg":"color-cold-gray-750","color-scroll-border":"color-cold-gray-850","color-widget-border":"color-cold-gray-800","color-scroll-buttons-arrow":"color-white","color-control-intent-default":"color-cold-gray-650","color-control-intent-success":"color-minty-green-500","color-control-intent-primary":"color-tv-blue-500","color-control-intent-warning":"color-tan-orange-500","color-control-intent-danger":"color-ripe-red-500","color-growing":"color-minty-green-500","color-falling":"color-ripe-red-500","color-goto-label-background":"color-cold-gray-650","color-pre-market":"color-tan-orange-600","color-pre-market-bg":"color-tan-orange-400","color-post-market":"color-tv-blue-500","color-post-market-bg":"color-tv-blue-400","color-market-open":"color-minty-green-500","color-market-open-bg":"color-minty-green-400","color-market-closed":"color-cold-gray-400","color-market-holiday":"color-cold-gray-400","color-market-expired":"color-ripe-red-500","color-invalid-symbol":"color-ripe-red-400","color-invalid-symbol-hover":"color-ripe-red-500","color-delisted-symbol":"color-ripe-red-600","color-delisted-symbol-hover":"color-ripe-red-800","color-replay-mode":"color-tv-blue-500","color-replay-mode-point-select":"color-cold-gray-250","color-replay-mode-icon":"color-tv-blue-50","color-replay-mode-hover":"color-tv-blue-600","color-notaccurate-mode":"color-berry-pink-600","color-delay-mode":"color-tan-orange-700","color-delay-mode-bg":"color-tan-orange-400","color-eod-mode":"color-grapes-purple-700","color-eod-mode-bg":"color-grapes-purple-400","color-data-problem":"color-ripe-red-600","color-data-problem-bg":"color-ripe-red-400","color-data-problem-hover":"color-ripe-red-500","color-list-item-bg-highlighted":"color-tv-blue-a900","color-list-item-bg-selected":"color-tv-blue-a800","color-list-item-bg-highlighted-hover":"color-tv-blue-a800","color-list-item-bg-selected-hover":"color-tv-blue-a700","color-screener-header-bg":"color-cold-gray-850","color-screener-header-bg-hover":"color-cold-gray-800","color-overlay":"color-cold-gray-950","color-boost-button-content-selected":"color-tv-blue-100","color-boost-button-content-hover":"color-white","color-boost-button-bg-hover":"color-cold-gray-750","color-boost-button-border-hover":"color-cold-gray-750","color-boost-button-border-default":"color-cold-gray-700","color-x-twitter-content":"color-white","color-card-border":"color-cold-gray-700","color-card-border-hover":"color-cold-gray-600","color-background-special-primary":"color-black","color-stroke-special-primary":"color-cold-gray-800","color-selection-bg":"color-tv-blue-a700","color-default-gray":"color-cold-gray-450","color-featured-broker-badge-bg":"color-white","color-featured-broker-badge-bg-hover":"color-cold-gray-100","color-featured-broker-badge-text":"color-cold-gray-900"}'),s=JSON.parse('{"color-toolbar-button-text-active":"color-seeking-alpha-brand"}') ;var l=o(790188);const a={[i.StdTheme.Light]:{name:i.StdTheme.Light,label:()=>r.t(null,{context:"colorThemeName"},o(696870)),order:2,getThemedColor:e=>(0,l.getHexColorByName)(e)},[i.StdTheme.Dark]:{name:i.StdTheme.Dark,label:()=>r.t(null,{context:"colorThemeName"},o(185119)),order:1,getThemedColor:e=>{const t=n[e]||e;return(0,l.getHexColorByName)(t)}}};a.sa={isPrivate:!0,noChartTheme:!0,name:"sa",getThemedColor:e=>{const t=s[e]||e;return(0,l.getHexColorByName)(t)}}},787703:(e,t,o)=>{"use strict";o.r(t),o.d(t,{isThemeExist:()=>d,loadTheme:()=>s,loadThemes:()=>l,removeTheme:()=>c,saveTheme:()=>a});var i=o(803912);const r=(0,o(735566).getLogger)("Themes.Provider");let n=null;function s(e){return(0,i.fetch)("/theme/?themeName="+encodeURIComponent(e),{credentials:"include",method:"GET"}).then((e=>e.json())).then((e=>{const t={};return e.content&&(t.content=JSON.parse(e.content)),t}))}function l(){return n||(0,i.fetch)("/themes/",{credentials:"include",method:"GET"}).then((e=>(n=e.json(),n)))}function a(e,t){const o=new FormData;return o.append("content",JSON.stringify(t)),o.append("name",e),n=null,(0,i.fetch)("/save-theme/",{credentials:"include",method:"POST",body:o}).then((e=>e.json()),(e=>r.logError(e)))}function c(e){const t=new FormData;return t.append("name",e),n=null,(0,i.fetch)("/remove-theme/",{credentials:"include",method:"POST",body:t}).then((e=>e.json()),(e=>r.logError(e)))}function d(e){return s(e).then((e=>Boolean(e.content)))}},553407:(e,t,o)=>{"use strict";o.d(t,{colors:()=>l});var i=o(790188),r=o(534328);const n={colorBlack:(0,i.getHexColorByName)("color-black"),colorWhite:(0,i.getHexColorByName)("color-white"),colorTvBlue50:(0,i.getHexColorByName)("color-tv-blue-50"),colorTvBlue200:(0,i.getHexColorByName)("color-tv-blue-200"),colorTvBlue400:(0,i.getHexColorByName)("color-tv-blue-400"),colorTvBlue500:(0,i.getHexColorByName)("color-tv-blue-500"),colorTvBlue600:(0,i.getHexColorByName)("color-tv-blue-600"),colorTvBlue800:(0,i.getHexColorByName)("color-tv-blue-800"),colorTvBlueA800:(0,i.getHexColorByName)("color-tv-blue-a800"),colorDeepBlue200:(0,i.getHexColorByName)("color-deep-blue-200"),colorDeepBlue300:(0,i.getHexColorByName)("color-deep-blue-300"),colorDeepBlue500:(0,i.getHexColorByName)("color-deep-blue-500"),colorDeepBlueA200:(0,i.getHexColorByName)("color-deep-blue-a200"),colorDeepBlueA400:(0,i.getHexColorByName)("color-deep-blue-a400"),colorDeepBlueA700:(0,i.getHexColorByName)("color-deep-blue-a700"),colorSkyBlue400:(0,i.getHexColorByName)("color-sky-blue-400"),colorSkyBlue500:(0,i.getHexColorByName)("color-sky-blue-500"),colorSkyBlue700:(0,i.getHexColorByName)("color-sky-blue-700"),colorDefaultRed:(0,i.getHexColorByName)("color-youtube"),colorRipeRed200:(0,i.getHexColorByName)("color-ripe-red-200"),colorRipeRed300:(0,i.getHexColorByName)("color-ripe-red-300"),colorRipeRed400:(0,i.getHexColorByName)("color-ripe-red-400"),colorRipeRed500:(0,i.getHexColorByName)("color-ripe-red-500"),colorRipeRed600:(0,i.getHexColorByName)("color-ripe-red-600"),colorRipeRed800:(0, i.getHexColorByName)("color-ripe-red-800"),colorRipeRedA900:(0,i.getHexColorByName)("color-ripe-red-a900"),colorRipeRedA700:(0,i.getHexColorByName)("color-ripe-red-a700"),colorGrapesPurpleA200:(0,i.getHexColorByName)("color-grapes-purple-a200"),colorGrapesPurpleA400:(0,i.getHexColorByName)("color-grapes-purple-a400"),colorGrapesPurple500:(0,i.getHexColorByName)("color-grapes-purple-500"),colorBerryPink400:(0,i.getHexColorByName)("color-berry-pink-400"),colorBerryPink500:(0,i.getHexColorByName)("color-berry-pink-500"),colorMintyGreen100:(0,i.getHexColorByName)("color-minty-green-100"),colorMintyGreen200:(0,i.getHexColorByName)("color-minty-green-200"),colorMintyGreen400:(0,i.getHexColorByName)("color-minty-green-400"),colorMintyGreen500:(0,i.getHexColorByName)("color-minty-green-500"),colorMintyGreen600:(0,i.getHexColorByName)("color-minty-green-600"),colorMintyGreen800:(0,i.getHexColorByName)("color-minty-green-800"),colorMintyGreenA900:(0,i.getHexColorByName)("color-minty-green-a900"),colorIguanaGreen300:(0,i.getHexColorByName)("color-iguana-green-300"),colorIguanaGreen500:(0,i.getHexColorByName)("color-iguana-green-500"),colorIguanaGreenA700:(0,i.getHexColorByName)("color-iguana-green-a700"),colorTanOrange300:(0,i.getHexColorByName)("color-tan-orange-300"),colorTanOrange500:(0,i.getHexColorByName)("color-tan-orange-500"),colorTanOrange600:(0,i.getHexColorByName)("color-tan-orange-600"),colorTanOrange700:(0,i.getHexColorByName)("color-tan-orange-700"),colorColdGray100:(0,i.getHexColorByName)("color-cold-gray-100"),colorColdGray150:(0,i.getHexColorByName)("color-cold-gray-150"),colorColdGray200:(0,i.getHexColorByName)("color-cold-gray-200"),colorColdGray300:(0,i.getHexColorByName)("color-cold-gray-300"),colorColdGray400:(0,i.getHexColorByName)("color-cold-gray-400"),colorColdGray450:(0,i.getHexColorByName)("color-cold-gray-450"),colorColdGray500:(0,i.getHexColorByName)("color-cold-gray-500"),colorColdGray600:(0,i.getHexColorByName)("color-cold-gray-600"),colorColdGray650:(0,i.getHexColorByName)("color-cold-gray-650"),colorColdGray700:(0,i.getHexColorByName)("color-cold-gray-700"),colorColdGray750:(0,i.getHexColorByName)("color-cold-gray-750"),colorColdGray800:(0,i.getHexColorByName)("color-cold-gray-800"),colorColdGray850:(0,i.getHexColorByName)("color-cold-gray-850"),colorColdGray900:(0,i.getHexColorByName)("color-cold-gray-900"),colorForestGreen300:(0,i.getHexColorByName)("color-forest-green-300")},s={colorWhiteAlpha25:(0,r.generateColor)(n.colorWhite,75),colorTvBlue500Alpha30:(0,r.generateColor)(n.colorTvBlue500,70),colorTvBlue500Alpha28:(0,r.generateColor)(n.colorTvBlue500,72),colorTvBlue500Alpha25:(0,r.generateColor)(n.colorTvBlue500,75),colorTvBlue500Alpha20:(0,r.generateColor)(n.colorTvBlue500,80),colorDeepBlue500Alpha20:(0,r.generateColor)(n.colorDeepBlue500,80),colorSkyBlue400Alpha5:(0,r.generateColor)(n.colorSkyBlue400,95),colorSkyBlue400Alpha50:(0,r.generateColor)(n.colorSkyBlue400,50),colorSkyBlue400Alpha75:(0,r.generateColor)(n.colorSkyBlue400,25),colorSkyBlue500Alpha20:(0, r.generateColor)(n.colorSkyBlue500,80),colorSkyBlue700Alpha70:(0,r.generateColor)(n.colorSkyBlue700,30),colorRipeRed400Alpha5:(0,r.generateColor)(n.colorRipeRed400,95),colorRipeRed500Alpha5:(0,r.generateColor)(n.colorRipeRed500,95),colorRipeRed500Alpha20:(0,r.generateColor)(n.colorRipeRed500,80),colorRipeRed500Alpha28:(0,r.generateColor)(n.colorRipeRed500,72),colorRipeRed500Alpha30:(0,r.generateColor)(n.colorRipeRed500,70),colorRipeRed500Alpha50:(0,r.generateColor)(n.colorRipeRed500,50),colorGrapesPurpleA200Alpha15:(0,r.generateColor)(n.colorGrapesPurpleA200,85),colorGrapesPurple500Alpha0:(0,r.generateColor)(n.colorGrapesPurple500,100),colorGrapesPurple500Alpha20:(0,r.generateColor)(n.colorGrapesPurple500,80),colorGrapesPurple500Alpha70:(0,r.generateColor)(n.colorGrapesPurple500,30),colorBerryPink400Alpha50:(0,r.generateColor)(n.colorBerryPink400,50),colorBerryPink400Alpha75:(0,r.generateColor)(n.colorBerryPink400,25),colorBerryPink500Alpha20:(0,r.generateColor)(n.colorBerryPink500,80),colorMintyGreen500Alpha20:(0,r.generateColor)(n.colorMintyGreen500,80),colorMintyGreen500Alpha28:(0,r.generateColor)(n.colorMintyGreen500,72),colorMintyGreen500Alpha50:(0,r.generateColor)(n.colorMintyGreen500,50),colorMintyGreen500Alpha5:(0,r.generateColor)(n.colorMintyGreen500,95),colorIguanaGreen500Alpha20:(0,r.generateColor)(n.colorIguanaGreen500,80),colorTanOrange500Alpha20:(0,r.generateColor)(n.colorTanOrange500,80),colorForestGreen300Alpha5:(0,r.generateColor)(n.colorForestGreen300,95),colorColdGray100Alpha0:(0,r.generateColor)(n.colorColdGray100,100),colorColdGray100Alpha6:(0,r.generateColor)(n.colorColdGray100,94),colorColdGray800Alpha0:(0,r.generateColor)(n.colorColdGray800,100),colorColdGray800Alpha6:(0,r.generateColor)(n.colorColdGray800,94)},l={...n,...s}},674131:(e,t,o)=>{"use strict";o.d(t,{dark:()=>ie});var i=o(660603),r=o(553407);const{colorWhite:n,colorColdGray100Alpha0:s,colorColdGray100Alpha6:l,colorColdGray200:a,colorColdGray300:c,colorColdGray400:d,colorColdGray450:u,colorColdGray600:h,colorColdGray800:p,colorColdGray850:g,colorColdGray900:_,colorDeepBlueA200:m,colorGrapesPurpleA400:v,colorGrapesPurpleA200Alpha15:f,colorMintyGreen400:y,colorMintyGreen500:b,colorMintyGreen600:w,colorMintyGreen800:S,colorMintyGreen500Alpha5:C,colorMintyGreen500Alpha20:k,colorMintyGreen500Alpha28:x,colorMintyGreen500Alpha50:T,colorMintyGreenA900:M,colorRipeRed400:E,colorRipeRed500:F,colorRipeRed600:A,colorRipeRed800:B,colorRipeRed500Alpha5:I,colorRipeRed500Alpha20:D,colorRipeRed500Alpha28:P,colorRipeRed500Alpha50:R,colorRipeRedA900:L,colorBerryPink400Alpha50:$,colorBerryPink400Alpha75:N,colorBerryPink500:O,colorIguanaGreenA700:W,colorSkyBlue400Alpha5:V,colorSkyBlue400Alpha50:H,colorSkyBlue400Alpha75:q,colorSkyBlue500:U,colorDeepBlueA400:j,colorTvBlue400:z,colorTvBlue500:G,colorTvBlue500Alpha28:X,colorTvBlue600:K,colorTvBlue800:Y,colorTvBlueA800:J,colorTanOrange500:Z,colorTanOrange600:Q}=r.colors,ee={color:G,tpo:{colors:{gradientColors:[O,W,U,j]}},volumeProfile:{valuesColor:a,vah:{color:a},val:{color:a},poc:{color:a},volumeColor:H, valueAreaColor:q},levels:{pocColor:a,poorHighColor:m,poorLowColor:m,singleprintsColor:f,vahColor:a,valColor:a}},te={upColor:b,downColor:F,borderColor:"#378658",borderUpColor:b,borderDownColor:F,wickColor:"#737375",wickUpColor:b,wickDownColor:F,imbalanceHighlight:{buyColor:b,sellColor:F},bgColors:{adjBuyBgColors:[M,S,w,y],adjSellBgColors:[L,B,A,E],adjTotalBgColors:[J,Y,K,z],buyBgColor:S,sellBgColor:B,totalBgColor:Y,pocColor:a}},oe={volumeProfile:{valuesColor:a,volumeColorUp:H,volumeColorDown:$,valueAreaColorUp:q,valueAreaColorDown:N,histogramBoxColor:V},vah:{color:a},val:{color:a},poc:{color:a},developingPoc:{color:a},developingVA:{color:U}},ie={content:{chartProperties:{scalesProperties:{textColor:c,lineColor:s,backgroundColor:n},paneProperties:{vertGridProperties:{color:l},horzGridProperties:{color:l},crossHairProperties:{color:d},background:_,backgroundGradientStartColor:g,backgroundGradientEndColor:_,backgroundType:"solid",separatorColor:p}},sessions:{sessionHighlight:{backgrounds:{outOfSession:{color:G,transparency:92},preMarket:{color:Z,transparency:92},postMarket:{color:G,transparency:92},electronic:{color:G,transparency:92}},vertlines:{sessBreaks:{color:"#4985e7"}}}},mainSourceProperties:{baseLineColor:h,prevClosePriceLineColor:"#555555",priceLineColor:"",highLowAvgPrice:{highLowPriceLinesColor:"",averagePriceLineColor:""},bidAsk:{bidLineColor:G,askLineColor:E},prePostMarket:{preMarketColor:Q,postMarketColor:G},candleStyle:{borderColor:"#378658",upColor:b,wickColor:"#737375",wickUpColor:b,wickDownColor:F,downColor:F,borderUpColor:b,borderDownColor:F},volCandlesStyle:{borderColor:"#378658",upColor:b,wickColor:"#737375",wickUpColor:b,wickDownColor:F,downColor:F,borderUpColor:b,borderDownColor:F},haStyle:{borderColor:"#378658",upColor:b,wickColor:"#737375",wickUpColor:b,wickDownColor:F,downColor:F,borderUpColor:b,borderDownColor:F},hlcAreaStyle:{highLineColor:b,lowLineColor:F,closeLineColor:u,highCloseFillColor:k,closeLowFillColor:D},hollowCandleStyle:{upColor:b,downColor:F,borderColor:"#378658",borderUpColor:b,borderDownColor:F,wickColor:"#737375",wickUpColor:b,wickDownColor:F},barStyle:{downColor:F,upColor:b},pnfStyle:{downColor:F,upColor:b,upColorProjection:"#336854",downColorProjection:"#7f323f"},baselineStyle:{baselineColor:u,topFillColor1:x,topFillColor2:C,bottomFillColor1:I,bottomFillColor2:P,topLineColor:b,bottomLineColor:F},areaStyle:{transparency:100,color1:X,color2:G,linecolor:G},hiloStyle:{color:G,borderColor:G,labelColor:G},columnStyle:{upColor:T,downColor:R},renkoStyle:{upColor:b,downColor:F,borderUpColor:b,borderDownColor:F,upColorProjection:"#336854",downColorProjection:"#7f323f",borderUpColorProjection:"#336854",borderDownColorProjection:"#7f323f",wickUpColor:b,wickDownColor:F},lineStyle:{colorType:i.ColorType.Gradient,color:G,gradientStartColor:v,gradientEndColor:"#00BCE5"},lineWithMarkersStyle:{colorType:i.ColorType.Gradient,color:G,gradientStartColor:v,gradientEndColor:"#00BCE5"},steplineStyle:{colorType:i.ColorType.Gradient,color:G,gradientStartColor:v,gradientEndColor:"#00BCE5"},kagiStyle:{ downColor:F,upColor:b,upColorProjection:"#336854",downColorProjection:"#7f323f"},pbStyle:{upColor:b,downColor:F,borderUpColor:b,borderDownColor:F,upColorProjection:"#336854",downColorProjection:"#7f323f",borderUpColorProjection:"#336854",borderDownColorProjection:"#7f323f"},rangeStyle:{upColor:b,downColor:F,upColorProjection:"#336854",downColorProjection:"#7f323f",candlesUpColor:b,candlesDownColor:F,candlesBorderUpColor:b,candlesBorderDownColor:F,candlesWickUpColor:b,candlesWickDownColor:F},tpoStyle:ee,volFootprintStyle:te,svpStyle:oe}}}},753460:(e,t,o)=>{"use strict";o.d(t,{light:()=>te});var i=o(553407),r=o(660603);const{colorWhite:n,colorBlack:s,colorColdGray150:l,colorColdGray300:a,colorColdGray400:c,colorColdGray450:d,colorColdGray800Alpha0:u,colorColdGray800Alpha6:h,colorColdGray900:p,colorGrapesPurpleA400:g,colorGrapesPurpleA200Alpha15:_,colorMintyGreen200:m,colorMintyGreen400:v,colorMintyGreen500:f,colorMintyGreen600:y,colorMintyGreen800:b,colorMintyGreen500Alpha5:w,colorMintyGreen500Alpha20:S,colorMintyGreen500Alpha28:C,colorMintyGreen500Alpha50:k,colorRipeRed200:x,colorRipeRed400:T,colorRipeRed500:M,colorRipeRed600:E,colorRipeRedA700:F,colorRipeRed500Alpha5:A,colorRipeRed500Alpha28:B,colorRipeRed500Alpha50:I,colorRipeRed500Alpha20:D,colorDeepBlueA700:P,colorBerryPink500:R,colorBerryPink400Alpha50:L,colorBerryPink400Alpha75:$,colorIguanaGreenA700:N,colorSkyBlue400Alpha5:O,colorSkyBlue400Alpha50:W,colorSkyBlue400Alpha75:V,colorSkyBlue500:H,colorDeepBlueA400:q,colorTvBlue200:U,colorTvBlue400:j,colorTvBlue500:z,colorTvBlue500Alpha28:G,colorTvBlue600:X,colorTvBlue800:K,colorTanOrange500:Y,colorTanOrange600:J}=i.colors,Z={color:z,tpo:{colors:{gradientColors:[R,N,H,q]}},volumeProfile:{valuesColor:p,vah:{color:p},val:{color:p},poc:{color:p},volumeColor:W,valueAreaColor:V},levels:{pocColor:p,poorHighColor:P,poorLowColor:P,singleprintsColor:_,vahColor:p,valColor:p}},Q={upColor:f,downColor:M,borderColor:"#378658",borderUpColor:f,borderDownColor:M,wickColor:"#737375",wickUpColor:f,wickDownColor:M,imbalanceHighlight:{buyColor:f,sellColor:M},bgColors:{adjBuyBgColors:[m,v,y,b],adjSellBgColors:[x,T,E,F],adjTotalBgColors:[U,j,X,K],buyBgColor:v,sellBgColor:T,totalBgColor:j,pocColor:s}},ee={volumeProfile:{valuesColor:p,volumeColorUp:W,volumeColorDown:L,valueAreaColorUp:V,valueAreaColorDown:$,histogramBoxColor:O},vah:{color:p},val:{color:p},poc:{color:p},developingPoc:{color:p},developingVA:{color:H}},te={content:{chartProperties:{scalesProperties:{textColor:p,lineColor:u,backgroundColor:n},paneProperties:{vertGridProperties:{color:h},horzGridProperties:{color:h},crossHairProperties:{color:c},backgroundType:r.ColorType.Solid,background:n,backgroundGradientStartColor:n,backgroundGradientEndColor:n,separatorColor:l}},sessions:{sessionHighlight:{backgrounds:{outOfSession:{color:z,transparency:92},preMarket:{color:Y,transparency:92},postMarket:{color:z,transparency:92},electronic:{color:z,transparency:92}},vertlines:{sessBreaks:{color:"#4985e7"}}}},mainSourceProperties:{baseLineColor:a,prevClosePriceLineColor:"#555555", priceLineColor:"",highLowAvgPrice:{highLowPriceLinesColor:"",averagePriceLineColor:""},bidAsk:{bidLineColor:z,askLineColor:T},prePostMarket:{preMarketColor:J,postMarketColor:z},candleStyle:{borderColor:"#378658",upColor:f,wickColor:"#737375",wickUpColor:f,wickDownColor:M,downColor:M,borderUpColor:f,borderDownColor:M},volCandlesStyle:{borderColor:"#378658",upColor:f,wickColor:"#737375",wickUpColor:f,wickDownColor:M,downColor:M,borderUpColor:f,borderDownColor:M},haStyle:{borderColor:"#378658",upColor:f,wickColor:"#737375",wickUpColor:f,wickDownColor:M,downColor:M,borderUpColor:f,borderDownColor:M},hlcAreaStyle:{highLineColor:f,lowLineColor:M,closeLineColor:d,highCloseFillColor:S,closeLowFillColor:D},hollowCandleStyle:{upColor:f,downColor:M,borderColor:"#378658",borderUpColor:f,borderDownColor:M,wickColor:"#737375",wickUpColor:f,wickDownColor:M},barStyle:{downColor:M,upColor:f},pnfStyle:{downColor:M,upColor:f,upColorProjection:"#a9dcc3",downColorProjection:"#f5a6ae"},baselineStyle:{baselineColor:d,topFillColor1:C,topFillColor2:w,bottomFillColor1:A,bottomFillColor2:B,topLineColor:f,bottomLineColor:M},areaStyle:{transparency:100,color1:G,color2:z,linecolor:z},hiloStyle:{color:z,borderColor:z,labelColor:z},columnStyle:{upColor:k,downColor:I},renkoStyle:{upColor:f,downColor:M,borderUpColor:f,borderDownColor:M,upColorProjection:"#a9dcc3",downColorProjection:"#f5a6ae",borderUpColorProjection:"#a9dcc3",borderDownColorProjection:"#f5a6ae",wickUpColor:f,wickDownColor:M},lineStyle:{colorType:r.ColorType.Gradient,color:z,gradientStartColor:g,gradientEndColor:"#00BCE5"},lineWithMarkersStyle:{colorType:r.ColorType.Gradient,color:z,gradientStartColor:g,gradientEndColor:"#00BCE5"},steplineStyle:{colorType:r.ColorType.Gradient,color:z,gradientStartColor:g,gradientEndColor:"#00BCE5"},kagiStyle:{downColor:M,upColor:f,upColorProjection:"#a9dcc3",downColorProjection:"#f5a6ae"},pbStyle:{upColor:f,downColor:M,borderUpColor:f,borderDownColor:M,upColorProjection:"#a9dcc3",downColorProjection:"#f5a6ae",borderUpColorProjection:"#a9dcc3",borderDownColorProjection:"#f5a6ae"},rangeStyle:{upColor:f,downColor:M,upColorProjection:"#a9dcc3",downColorProjection:"#f5a6ae",candlesUpColor:f,candlesDownColor:M,candlesBorderUpColor:f,candlesBorderDownColor:M,candlesWickUpColor:f,candlesWickDownColor:M},tpoStyle:Z,volFootprintStyle:Q,svpStyle:ee}}}},86746:(e,t,o)=>{"use strict";o.r(t),o.d(t,{darkTheme:()=>c,getStdChartTheme:()=>p,getStdThemeNames:()=>h,lightTheme:()=>a,overrideStdTheme:()=>d,restoreStdThemes:()=>u,translateThemeName:()=>g});var i=o(444372),r=o(461188),n=o(753460),s=o(674131),l=o(61499);let a=(0,r.clone)(n.light),c=(0,r.clone)(s.dark);function d(e,t){switch(e){case l.StdTheme.Light:a=(0,r.merge)((0,r.clone)(a),t);break;case l.StdTheme.Dark:c=(0,r.merge)((0,r.clone)(c),t)}}function u(){a=(0,r.clone)(n.light),c=(0,r.clone)(s.dark)}function h(){return[l.StdTheme.Light,l.StdTheme.Dark]}function p(e){return(0,r.clone)(e===l.StdTheme.Light?a:e===l.StdTheme.Dark?c:void 0)}function g(e){return{[l.StdTheme.Light]:i.t(null,{context:"colorThemeName" },o(696870)),[l.StdTheme.Dark]:i.t(null,{context:"colorThemeName"},o(185119))}[e]||e}},278855:(e,t,o)=>{"use strict";function i(){return/(?:^|;)\s*theme=(dark|light)(?:;|$)|$/.exec(document.cookie)[1]}function r(e){const t=function(){const e=location.hostname.split(".").filter(Boolean);return e.every(isFinite)?location.host:e.slice(-2).join(".")}(),o=void 0===e?-1:3e8;document.cookie=`theme=${e};path=/;domain=${t};max-age=${o}`}o.d(t,{getThemeFromCookie:()=>i,setThemeToCookie:()=>r})},304986:(e,t,o)=>{"use strict";o.d(t,{getThemeFromUserSettings:()=>n,saveThemeInUserSettings:()=>s});var i=o(62802),r=o(278855);function n(){return(0,r.getThemeFromCookie)()||(0,i.getValue)("current_theme.name")||null}function s(e){(0,r.setThemeToCookie)(e),(0,i.setValue)("current_theme.name",e,{forceFlush:!0})}},518594:(e,t,o)=>{"use strict";o.r(t),o.d(t,{DEFAULT_THEME:()=>a.DEFAULT_THEME,getCurrentTheme:()=>u,getStdTheme:()=>b,getStdThemeNames:()=>f,getStdThemedValue:()=>w,getTheme:()=>m,getThemeNames:()=>v,getThemedColor:()=>h,isPublicTheme:()=>d,isStdThemeName:()=>y,isStdThemedDefaultValue:()=>S,isThemeExist:()=>x,removeTheme:()=>k,restoreTheme:()=>p,saveTheme:()=>C,savedThemeName:()=>g,syncTheme:()=>_,themes:()=>c.themes,translateStdThemeName:()=>T});var i=o(724377),r=o(304986),n=o(267858),s=o(86746),l=o(331633),a=o(484400),c=o(913934);function d(e){return!e.isPrivate}function u(){return c.themes[l.watchedTheme.value()]||c.themes[a.DEFAULT_THEME]}function h(e){return u().getThemedColor(e)}function p(){(0,l.setTheme)((0,r.getThemeFromUserSettings)()||a.DEFAULT_THEME)}function g(){return(0,r.getThemeFromUserSettings)()}function _(){(0,r.saveThemeInUserSettings)(u().name)}function m(e){return n.provider.loadTheme(e)}function v(){return n.provider.loadThemes()}function f(){return s.getStdThemeNames()}function y(e){return f().includes(e)}function b(e){return s.getStdChartTheme(e)||{content:void 0}}function w(e,t){const o=t||u().name,i=s.getStdChartTheme(o),r=0!==e.length&&e.split(".");return i&&i.content&&r?r.reduce(((e,t)=>e[t]),i.content):null}function S(e,t,o){const r=w(e,o);return null!==r&&(0,i.areEqualRgba)((0,i.parseRgba)(r),(0,i.parseRgba)(String(t)))}function C(e,t){return n.provider.saveTheme(e,t)}function k(e){return n.provider.removeTheme(e)}function x(e){return n.provider.isThemeExist(e)}function T(e){return s.translateThemeName(e)}},642709:(e,t,o)=>{"use strict";o.d(t,{DialogBreakpoints:()=>r});var i=o(251284);const r={SmallHeight:i["small-height-breakpoint"],TabletSmall:i["tablet-small-breakpoint"],TabletNormal:i["tablet-normal-breakpoint"]}},389401:(e,t,o)=>{"use strict";o.d(t,{Measure:()=>r});var i=o(444530);function r(e){const{children:t,onResize:o}=e;return t((0,i.useResizeObserver)(o||(()=>{}),[null===o]))}},2606:(e,t,o)=>{"use strict";o.d(t,{isDetailsReady:()=>i});const i=new(o(820028).WatchedValue)(!1)},137674:(e,t,o)=>{"use strict";o.d(t,{createSymbolNote:()=>_,showMindsPage:()=>g,showSymbolIdeas:()=>p,showSymbolNews:()=>h,showSymbolNotes:()=>u});var i=o(2606),r=o(421219),n=o(777453);async function s(e){ Promise.all([o.e(72904),o.e(18883),o.e(98185),o.e(15371),o.e(92537),o.e(46195),o.e(83439),o.e(32937),o.e(98933),o.e(38752),o.e(25563),o.e(97540),o.e(72232),o.e(66032),o.e(87833),o.e(78894),o.e(3359),o.e(51513),o.e(34943),o.e(87265),o.e(43329),o.e(16990),o.e(95275),o.e(37463),o.e(95542),o.e(61031),o.e(4697),o.e(45073),o.e(82321),o.e(50030),o.e(12831),o.e(72402),o.e(23888),o.e(59882),o.e(78653),o.e(50996)]).then(o.bind(o,768175)).then((t=>{t.renderNotesDialog(e)}))}var l=o(881607);var a=o(515828);let c=null;function d(e,t){if(c&&i.isDetailsReady.unsubscribe(c),c=()=>{const o=window?.widgetbar?.layout?.getWidgetByType("detail")?.widgetObject;o.navigate(e,t)},i.isDetailsReady.value())return c(),void(c=null);i.isDetailsReady.subscribe(c,{once:!0})}function u(e=null,t){const o=(0,r.pathToGroup)(e??"");t?s(o):d(o)}function h(e,t){const i=(0,n.newsPathToGroup)(e??"");t?async function(e){(await Promise.all([o.e(96005),o.e(18883),o.e(98185),o.e(15371),o.e(46195),o.e(83439),o.e(32937),o.e(61681),o.e(98933),o.e(38752),o.e(25563),o.e(19190),o.e(97540),o.e(72232),o.e(66032),o.e(87833),o.e(71450),o.e(13672),o.e(19365),o.e(3359),o.e(51513),o.e(34943),o.e(11069),o.e(93240),o.e(1462),o.e(95275),o.e(45868),o.e(40984),o.e(84030),o.e(26383),o.e(27290),o.e(16014),o.e(72929),o.e(13284),o.e(82321),o.e(12831),o.e(73976),o.e(55759),o.e(84482)]).then(o.bind(o,23154))).renderNewsDialog(e)}(i):d(i)}function p(e,t){const i=(0,l.ideasPathToGroup)(e??"");t?async function(e){(await Promise.all([o.e(36672),o.e(18883),o.e(98185),o.e(15371),o.e(92537),o.e(46195),o.e(83439),o.e(32937),o.e(61171),o.e(38752),o.e(25563),o.e(19190),o.e(97540),o.e(72232),o.e(87833),o.e(71450),o.e(20563),o.e(19365),o.e(3359),o.e(51513),o.e(34943),o.e(95275),o.e(38110),o.e(45868),o.e(26383),o.e(48598),o.e(12694),o.e(61031),o.e(50990),o.e(82321),o.e(12831),o.e(24951),o.e(2442),o.e(94673)]).then(o.bind(o,790348))).renderIdeasDialog(e)}(i):d(i)}function g(e,t,o){d((0,a.createMindsPath)(e??"",t,o))}function _(e=null,t){const o=(0,r.pathToGroup)(e??"")+"?new="+performance.now();t&&s(o),d(o)}},881607:(e,t,o)=>{"use strict";o.d(t,{IDEAS_GROUP_PATH_PATTERN:()=>i,ideasPathToGroup:()=>r});const i="/ideas/groups/:symbol/";function r(e){return i.replace(":symbol",encodeURIComponent(e))}},515828:(e,t,o)=>{"use strict";o.d(t,{createMindsPath:()=>r});const i="/minds/groups/:symbol/";function r(e,t,o){let r=i.replace(":symbol",encodeURIComponent(e));if(!t)return r;const n=new URLSearchParams;return n.set("mind",t),o&&n.set("editable","true"),r+=`?${n.toString()}`,r}},777453:(e,t,o)=>{"use strict";o.d(t,{NEWS_GROUP_PATH_PATTERN:()=>i,newsPathToGroup:()=>r});const i="/news/groups/:symbol/";function r(e){return i.replace(":symbol",encodeURIComponent(e))}},421219:(e,t,o)=>{"use strict";o.d(t,{GROUP_PATH_PATTERN:()=>r,NOTES_PATH_PATTERN:()=>i,UNATTENDED_PATH_PATTERN:()=>n,pathToGroup:()=>s});const i="/notes/",r="/notes/groups/:symbol/",n="/notes/unattended/";function s(e){return e?r.replace(":symbol",encodeURIComponent(e)):n}},263361:(e,t,o)=>{"use strict";o.d(t,{useRovingTabindexElement:()=>n}) ;var i=o(50959),r=o(267521);function n(e,t=[]){const[o,n]=(0,i.useState)(!1),s=(0,r.useFunctionalRefObject)(e);return(0,i.useLayoutEffect)((()=>{const e=s.current;if(null===e)return;const t=e=>{switch(e.type){case"roving-tabindex:main-element":n(!0);break;case"roving-tabindex:secondary-element":n(!1)}};return e.addEventListener("roving-tabindex:main-element",t),e.addEventListener("roving-tabindex:secondary-element",t),()=>{e.removeEventListener("roving-tabindex:main-element",t),e.removeEventListener("roving-tabindex:secondary-element",t)}}),t),[s,o?0:-1]}},920389:(e,t,o)=>{"use strict";o.d(t,{runOrSignIn:()=>s,runOrSignInWithPromo:()=>l});var i=o(931924),r=o(541543);const n=i.enabled("widget");function s(e,t){n?e():window.runOrSignIn(e,t)}function l(e,t,o){n?o():(0,r.runOrSigninWithFeature)(o,{...t,feature:e})}},889267:(e,t,o)=>{"use strict";o.d(t,{factorOutBraces:()=>p,getTokenAtPos:()=>h,isBinaryOperator:()=>d,isSpread:()=>u,parseToken:()=>_,shortName:()=>g,symbolTokenEscapeRe:()=>s,tokenize:()=>c});var i=o(173777),r=o(125226);const n=/(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF])(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!|:.&])*|'.+?'/,s=/[+\-/*]/,l=(e=(0,r.isFeatureEnabled)("allow_trailing_whitespace_in_number_token"))=>({number:e?/\d+(?:\.\d*|(?![a-zA-Z0-9_!:.&]))(?:\s*(?=\s*$))?|\.\d+(?:\s*(?=\s*$))?/:/\d+(?:\.\d*|(?![a-zA-Z0-9_!:.&]))|\.\d+/,incompleteNumber:/\./,symbol:n,incompleteSymbol:/'[^']*/,separatorPrefix:i.SEPARATOR_PREFIX,openBrace:"(",closeBrace:")",plus:"+",minus:"-",multiply:"*",divide:"/",power:"^",whitespace:/[\0-\x20\s]+/,unparsed:null}),a=(e=l())=>new RegExp(Object.values(e).map((e=>{return null===e?"":`(${"string"==typeof e?(t=e,t.replace(/[\^$()[\]{}*+?|\\]/g,"\\$&")):e.source})`;var t})).filter((e=>""!==e)).concat(".").join("|"),"g");function c(e,t=l()){if(!e)return[];const o=[],i=Object.keys(t);let r;const n=a(t);for(;r=n.exec(e);){let e=!1;for(let t=i.length;t--;)if(r[t+1]){i[t]&&o.push({value:r[t+1],type:i[t],precedence:0,offset:r.index}),e=!0;break}e||o.push({value:r[0],type:"unparsed",precedence:0,offset:r.index})}return o}function d(e){return"plus"===e||"minus"===e||"multiply"===e||"divide"===e||"power"===e}function u(e){return e.length>1&&e.some((e=>d(e.type)))}function h(e,t){for(let o=0;on.precedence&&(o[o.length-1].minPrecedence=n.precedence);break;case"openBrace":i={minPrecedence:1/0,openBraceIndex:r},o.push(i);break;case"closeBrace":{if(i=o.pop(),!i)break;const n=e[i.openBraceIndex-1],s=e[r+1],l=n&&("plus"===n.type||"multiply"===n.type) ;(!d(s?.type)||s?.precedence<=i.minPrecedence)&&(!d(n?.type)||n?.precedencei.minPrecedence&&(o[o.length-1].minPrecedence=i.minPrecedence))}}}for(let o=t.length;o--;)e.splice(t[o],1);return e}function g(e){return p(c(e)).reduce(((e,t)=>{if("symbol"!==t.type)return e+t.value;const[,o]=_(t);return o?e+o:e}),"")}function _(e){const t=/^'?(?:([A-Z0-9_]+):)?(.*?)'?$/i.exec(e.value);return null===t?[void 0,void 0]:[t[1],t[2]]}},948019:(e,t,o)=>{"use strict";o.d(t,{ContextMenuContext:()=>i});const i=o(50959).createContext(null)},582997:(e,t,o)=>{"use strict";o.d(t,{Hint:()=>l});var i=o(50959),r=o(497754),n=o.n(r),s=o(447429);function l(e){const{text:t="",className:o}=e;return i.createElement("span",{className:n()(s.shortcut,o)},t)}},886004:(e,t,o)=>{"use strict";o.d(t,{ContextMenuItem:()=>g});var i=o(50959),r=o(497754),n=o.n(r),s=o(79205),l=o(265005),a=o(302478),c=o(582997),d=o(339750),u=o(379978),h=o(460925),p=o(405264);function g(e){const{className:t,isTitle:o,isLoading:r,isHovered:g,active:_,checkable:m,disabled:v,checked:f,icon:y,iconChecked:b,hint:w,subItems:S,label:C,styledLabel:k,onClick:x,children:T,toolbox:M,jsxLabel:E,size:F="normal"}=e,A=(0,i.useContext)(a.EmptyIconsContext),B=!!S.length;return r?i.createElement("li",{className:n()(t,p.item,p.loading,p[F])},i.createElement(l.Loader,null)):i.createElement("li",{className:n()(t,p.item,p.interactive,o&&p.title,v&&p.disabled,g&&p.hovered,_&&p.active,A&&p.emptyIcons,p[F]),onClick:x},i.createElement(s.Icon,{className:n()(p.icon),icon:function(){if(m&&f)return b||y||d;return y}()}),i.createElement("span",{className:n()(p.label)},!E&&k?k.map((({text:e,...t},o)=>i.createElement("span",{key:o,style:t},e))):E??C),!!M&&i.createElement(s.Icon,{onClick:function(){M&&M.action()},className:p.remove,icon:h}),!B&&w&&i.createElement(c.Hint,{className:p.shortcut,text:w}),B&&i.createElement(s.Icon,{className:p.nested,icon:u}),T)}},67812:(e,t,o)=>{"use strict";o.d(t,{ContextMenuList:()=>g});var i=o(50959),r=o(868745);function n(e){return i.createElement("li",{className:r.separator})}var s=o(886004),l=o(125226),a=o(762852),c=o(224743);const d=(0,l.isFeatureEnabled)("force_disable_jsx_menu_items_rendering");function u(e){const t=d?e.action:e.action.custom()??e.action,[o,r]=(0,i.useState)((()=>t.getState())),[n,l]=(0,i.useState)(!1),u=!!o.subItems.length,h=u&&n;return(0,i.useEffect)((()=>{const e=()=>r(t.getState());return t.onUpdate().subscribe(null,e),()=>{t.onUpdate().unsubscribe(null,e)}}),[]),i.createElement(s.ContextMenuItem,{...o,onClick:function(e){if(o.disabled||e.defaultPrevented)return;if(u)return void l(!0);o.doNotCloseOnClick||(0,c.globalCloseMenu)();t.execute()},isLoading:o.loading,isHovered:h},h&&i.createElement(a.Drawer,{onClose:p},i.createElement(g,{items:o.subItems,parentAction:t,closeNested:p})));function p(e){e&&e.preventDefault(),l(!1)}}var h=o(302478),p=o(366493);function g(e){ const{items:t,parentAction:o,closeNested:r}=e,l=!Boolean(o)&&t.every((e=>!Boolean("separator"!==e.type&&(e.getState().icon||e.getState().checkable))));return i.createElement(h.EmptyIconsContext.Provider,{value:l},i.createElement("ul",null,o&&i.createElement(i.Fragment,null,i.createElement(s.ContextMenuItem,{label:o.getState().label,isTitle:!0,active:!1,disabled:!1,subItems:[],checkable:!1,checked:!1,doNotCloseOnClick:!1,icon:p,onClick:r}),i.createElement(n,null)),t.map((e=>{switch(e.type){case"action":return i.createElement(u,{key:e.id,action:e});case"separator":return i.createElement(n,{key:e.id})}}))))}},302478:(e,t,o)=>{"use strict";o.d(t,{EmptyIconsContext:()=>i});const i=o(50959).createContext(!1)},332585:(e,t,o)=>{"use strict";o.d(t,{DrawerContext:()=>s,DrawerManager:()=>n});var i=o(50959),r=o(575658);class n extends i.PureComponent{constructor(e){super(e),this._isBodyFixed=!1,this._addDrawer=e=>{this.setState((t=>({stack:[...t.stack,e]})))},this._removeDrawer=e=>{this.setState((t=>({stack:t.stack.filter((t=>t!==e))})))},this.state={stack:[]}}componentDidUpdate(e,t){!t.stack.length&&this.state.stack.length&&((0,r.setFixedBodyState)(!0),this._isBodyFixed=!0),t.stack.length&&!this.state.stack.length&&this._isBodyFixed&&((0,r.setFixedBodyState)(!1),this._isBodyFixed=!1)}componentWillUnmount(){this.state.stack.length&&this._isBodyFixed&&(0,r.setFixedBodyState)(!1)}render(){return i.createElement(s.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.stack.length?this.state.stack[this.state.stack.length-1]:null}},this.props.children)}}const s=i.createContext(null)},762852:(e,t,o)=>{"use strict";o.d(t,{Drawer:()=>h});var i=o(50959),r=o(650151),n=o(497754),s=o(623213),l=o(707533),a=o(332585),c=o(320116),d=o(150881),u=o(276773);function h(e){const{position:t="Bottom",onClose:o,children:d,reference:h,className:g,theme:_=u}=e,m=(0,r.ensureNotNull)((0,i.useContext)(a.DrawerContext)),[v]=(0,i.useState)((()=>(0,s.randomHash)())),f=(0,i.useRef)(null),y=(0,i.useContext)(c.CloseDelegateContext);return(0,i.useLayoutEffect)((()=>((0,r.ensureNotNull)(f.current).focus({preventScroll:!0}),y.subscribe(m,o),m.addDrawer(v),()=>{m.removeDrawer(v),y.unsubscribe(m,o)})),[]),i.createElement(l.Portal,null,i.createElement("div",{ref:h,className:n(u.wrap,u[`position${t}`])},v===m.currentDrawer&&i.createElement("div",{className:u.backdrop,onClick:o}),i.createElement(p,{className:n(_.drawer,u[`position${t}`],g),ref:f,"data-name":e["data-name"]},d)))}const p=(0,i.forwardRef)(((e,t)=>{const{className:o,...r}=e;return i.createElement(d.TouchScrollContainer,{className:n(u.drawer,o),tabIndex:-1,ref:t,...r})}))},623107:(e,t,o)=>{"use strict";o.d(t,{DropdownContainer:()=>l});var i=o(50959),r=o(209087),n=o(497754),s=o(650151);class l extends i.PureComponent{constructor(){super(...arguments),this._container=null,this._setContainerRef=e=>{"function"==typeof this.props.reference&&this.props.reference(e),"object"==typeof this.props.reference&&(this.props.reference.current=e),this._container=e}} componentDidMount(){this.props.onDropdownWheelNoPassive&&this._addPassiveListenerOnWheel(this.props.onDropdownWheelNoPassive)}componentDidUpdate(e){this.props.onDropdownWheelNoPassive!==e.onDropdownWheelNoPassive&&this._updatePassiveListenerOnWheel(e.onDropdownWheelNoPassive)}componentWillUnmount(){this.props.onDropdownWheelNoPassive&&this._removePassiveListenerOnWheel(this.props.onDropdownWheelNoPassive)}render(){const{shadow:e="bottom",children:t,className:o}=this.props,s=n(r.container,r[e],o),l={maxHeight:this.props.maxHeight};return i.createElement("div",{ref:this._setContainerRef,style:l,className:s,onTouchStart:this.props.onDropdownTouchStart,onTouchMove:this.props.onDropdownTouchMove,onTouchEnd:this.props.onDropdownTouchEnd,onWheel:this.props.onDropdownWheel},t)}_updatePassiveListenerOnWheel(e){e&&this._removePassiveListenerOnWheel(e),this.props.onDropdownWheelNoPassive&&this._addPassiveListenerOnWheel(this.props.onDropdownWheelNoPassive)}_addPassiveListenerOnWheel(e){(0,s.ensureNotNull)(this._container).addEventListener("wheel",e,{passive:!1})}_removePassiveListenerOnWheel(e){(0,s.ensureNotNull)(this._container).removeEventListener("wheel",e)}}},400236:(e,t,o)=>{"use strict";o.d(t,{DropdownList:()=>g});var i=o(50959),r=o(43681),n=o(497754),s=o(408317),l=o(100180),a=o(940014),c=o(623107),d=o(735270);const u=(0,l.makeNavigateable)(s.List),h=(0,d.makeAnchorable)(a.Dropdown),p={top:"top",bottom:"bottom",topRight:"top"};class g extends i.PureComponent{render(){const{anchor:e="bottom",fontSize:t=14,root:o="parent"}=this.props,s=n(r.list,r[e]),{dropdownClassName:l,height:a,...d}=this.props;return i.createElement(h,{...d,className:l,root:o},i.createElement(c.DropdownContainer,{className:this.props.dropdownContainerClassName,shadow:p[e],maxHeight:this.props.maxHeight,onDropdownTouchStart:this.props.onDropdownTouchStart?this.props.onDropdownTouchStart:void 0,onDropdownTouchMove:this.props.onDropdownTouchMove?this.props.onDropdownTouchMove:void 0,onDropdownTouchEnd:this.props.onDropdownTouchEnd?this.props.onDropdownTouchEnd:void 0,onDropdownWheelNoPassive:this.props.onDropdownWheelNoPassive?this.props.onDropdownWheelNoPassive:void 0},i.createElement(u,{...d,width:this.props.width,height:a,className:this.props.className||s,itemsClassName:this.props.itemsClassName||r.item,selectedClassName:this.props.selectedClassName||r.selected,fontSize:t,reference:this.props.reference})))}}},940014:(e,t,o)=>{"use strict";o.d(t,{Dropdown:()=>l});var i=o(50959),r=o(149368),n=o(368337);class s extends i.PureComponent{render(){const e={position:"absolute",top:this.props.top,width:this.props.width,height:this.props.height,bottom:this.props.bottom,right:this.props.right,left:this.props.left,zIndex:this.props.zIndex};return i.createElement("div",{className:this.props.className,style:e,ref:this.props.reference},this.props.children)}}s.displayName="Dropdown Container";const l=(0,n.makeOverlapable)((0,r.makeAttachable)(s))},336231:(e,t,o)=>{"use strict";o.d(t,{ListItemWrap:()=>r});var i=o(50959);class r extends i.PureComponent{constructor(e){ super(e)}render(){return i.createElement("div",{className:this.props.className,onClick:this.props.onClick,ref:this.props.reference},this.props.children)}}},408317:(e,t,o)=>{"use strict";o.d(t,{List:()=>c});var i=o(50959),r=o(551080),n=o(737953),s=o(497754),l=o(336231),a=o(389401);class c extends i.PureComponent{constructor(e){super(e),this._handleResize=([e])=>{this.props.onMeasure?.(e.target.getBoundingClientRect())}}render(){const{theme:e=n}=this.props,t=s(e.list,{[this.props.className]:Boolean(this.props.className)}),{fontSize:o=13}=this.props,l={bottom:this.props.bottom,fontSize:o,left:this.props.left,height:this.props.height||"auto",right:this.props.right,top:this.props.top,width:this.props.width,zIndex:this.props.zIndex};return i.createElement(a.Measure,{onResize:Boolean(this.props.onMeasure)?this._handleResize:null},(e=>i.createElement("div",{className:t,style:l,ref:(0,r.mergeRefs)([this.props.reference,e])},this._wrapItems(this.props.items,this.props.selected))))}componentDidMount(){if(void 0!==this.props.selected&&this.props.shouldScrollIfNotVisible){const e=this._items[this.props.selected];e&&this._scrollToItem(e)}}componentDidUpdate(){if(void 0!==this.props.selected&&this.props.shouldScrollIfNotVisible){const e=this._items[this.props.selected];e&&this._scrollToItem(e)}}_wrapItems(e=[],t){this._items=[];const{itemWrap:o=l.ListItemWrap,theme:r=n}=this.props,a=o;return e.map(((e,o)=>{const n=s(r.item,{[this.props.itemsClassName]:Boolean(this.props.itemsClassName),[this.props.selectedClassName]:t===o});return i.createElement(a,{reference:t=>{t&&this._items.push({elem:t,index:o,value:e})},key:o,onClick:()=>this._onSelect(o),className:n},e.elem)}))}_onSelect(e){this.props.onSelect&&this.props.onSelect(e,this._items[e].value)}_scrollToItem(e){e.elem.scrollIntoView({block:"center"})}}c.defaultProps={shouldScrollIfNotVisible:!0}},18182:(e,t,o)=>{"use strict";o.d(t,{MatchMedia:()=>r});var i=o(50959);class r extends i.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)}}},224743:(e,t,o)=>{"use strict";o.d(t,{globalCloseDelegate:()=>i,globalCloseMenu:()=>r});const i=new(o(547465).Delegate);function r(){i.fire()}},100180:(e,t,o)=>{"use strict";o.d(t,{makeNavigateable:()=>r});var i=o(50959);function r(e){var t;return(t=class extends i.PureComponent{constructor(e){super(e),this._items=this.props.items}componentDidUpdate(e){if(e.command!==this.props.command&&this.props.command)switch(this.props.command.name){case"next": this._next();break;case"prev":this._prev()}e.items!==this.props.items&&(this._items=this.props.items)}render(){return i.createElement(e,{...this.props},this.props.children)}_next(){const{selected:e=-1}=this.props,t=e+1;this._items.length-1>=t?this._navigateTo(t):this._navigateTo(0)}_prev(){const{selected:e=-1}=this.props,t=e-1,o=this._items.length-1;0<=t?this._navigateTo(t):this._navigateTo(o)}_navigateTo(e){this.props.onNavigate&&this.props.onNavigate(e,this._items[e])}}).displayName="Navigateable Component",t}},150881:(e,t,o)=>{"use strict";o.d(t,{TouchScrollContainer:()=>c});var i=o(50959),r=o(259142),n=o(650151),s=o(638456);const l=CSS.supports("overscroll-behavior","none");let a=0;const c=(0,i.forwardRef)(((e,t)=>{const{children:o,...n}=e,c=(0,i.useRef)(null);return(0,i.useImperativeHandle)(t,(()=>c.current)),(0,i.useLayoutEffect)((()=>{if(s.CheckMobile.iOS())return a++,null!==c.current&&(l?1===a&&(document.body.style.overscrollBehavior="none"):(0,r.disableBodyScroll)(c.current,{allowTouchMove:d(c)})),()=>{a--,null!==c.current&&(l?0===a&&(document.body.style.overscrollBehavior=""):(0,r.enableBodyScroll)(c.current))}}),[]),i.createElement("div",{ref:c,...n},o)}));function d(e){return t=>{const o=(0,n.ensureNotNull)(e.current),i=document.activeElement;return!o.contains(t)||null!==i&&o.contains(i)&&i.contains(t)}}},995683:(e,t,o)=>{"use strict";function i(e,t,o={}){return Object.assign({},e,function(e,t,o={}){const i=Object.assign({},t);for(const r of Object.keys(t)){const n=o[r]||r;n in e&&(i[r]=[e[n],t[r]].join(" "))}return i}(e,t,o))}o.d(t,{mergeThemes:()=>i})},650133:e=>{e.exports={modeTitle:"modeTitle-jsT3S4MA",modeTitleActive:"modeTitleActive-jsT3S4MA",switcherContainer:"switcherContainer-jsT3S4MA"}},606550:(e,t,o)=>{"use strict";t.operators={less:o.i18next(null,void 0,o(351755)),eless:o.i18next(null,void 0,o(471751)),greater:o.i18next(null,void 0,o(24933)),egreater:o.i18next(null,void 0,o(159393)),crosses:o.i18next(null,void 0,o(137933)),crosses_above:o.i18next(null,void 0,o(4478)),crosses_below:o.i18next(null,void 0,o(314942)),in_range:o.i18next(null,void 0,o(583075)),not_in_range:o.i18next(null,void 0,o(591176)),equal:o.i18next(null,void 0,o(319011)),nequal:o.i18next(null,void 0,o(809621))}},343693:(e,t,o)=>{"use strict";o.d(t,{getBackendUrl:()=>r});const i=()=>window.SCREENER_HOST||"https://scanner.tradingview.com";function r(e,t=e){return Array.isArray(e)?e.length>1?`${i()}/global/`:`${i()}/${t[0]}/`:`${i()}/${t}/`}},95419:(e,t,o)=>{"use strict";o.d(t,{getScreenerIntervals:()=>r});var i=o(444372);function r(){return[{id:"1m",title:i.t(null,{plural:"{number} minutes",count:1,replace:{number:String(1)}},o(532547)),shortTitle:`1${i.t(null,{context:"interval_short"},o(768430))}`,value:1},{id:"5m",title:i.t(null,{plural:"{number} minutes",count:5,replace:{number:String(5)}},o(532547)),shortTitle:`5${i.t(null,{context:"interval_short"},o(768430))}`,value:5},{id:"15m",title:i.t(null,{ plural:"{number} minutes",count:15,replace:{number:String(15)}},o(532547)),shortTitle:`15${i.t(null,{context:"interval_short"},o(768430))}`,value:15},{id:"30m",title:i.t(null,{plural:"{number} minutes",count:30,replace:{number:String(30)}},o(532547)),shortTitle:`30${i.t(null,{context:"interval_short"},o(768430))}`,value:30},{id:"1h",title:i.t(null,{plural:"{number} hours",count:1,replace:{number:String(1)}},o(844646)),shortTitle:`1${i.t(null,{context:"interval_short"},o(438048))}`,value:60},{id:"2h",title:i.t(null,{plural:"{number} hours",count:2,replace:{number:String(2)}},o(844646)),shortTitle:`2${i.t(null,{context:"interval_short"},o(438048))}`,value:120},{id:"4h",title:i.t(null,{plural:"{number} hours",count:4,replace:{number:String(4)}},o(844646)),shortTitle:`4${i.t(null,{context:"interval_short"},o(438048))}`,value:240},{id:"1D",title:i.t(null,{plural:"{number} days",count:1,replace:{number:String(1)}},o(839501)),shortTitle:`1${i.t(null,{context:"interval_short"},o(38691))}`,value:null},{id:"1W",title:i.t(null,{plural:"{number} weeks",count:1,replace:{number:String(1)}},o(718396)),shortTitle:`1${i.t(null,{context:"interval_short"},o(307408))}`,value:"1W"},{id:"1M",title:i.t(null,{plural:"{number} months",count:1,replace:{number:String(1)}},o(277186)),shortTitle:`1${i.t(null,{context:"interval_short"},o(977995))}`,value:"1M"}]}},368270:(e,t,o)=>{"use strict";o.d(t,{mutateSimpleDate:()=>s});var i=o(150335),r=o(608571),n=o(532442);function s(e){return e&&(0,i.isNumber)(e)?r.dateFormatFunctions["yyyy-MM-dd"]((0,n.getDateFromYYYYMMDD)(e),!0):"—"}},779e3:(e,t,o)=>{"use strict";function i(e){return{standalone:Boolean(e.standalone),originalStandalone:Boolean(e.originalStandalone),onWidget:Boolean(e.onWidget)}}function r(e){const t=i(e);return t.standalone&&t.originalStandalone&&!t.onWidget}function n(e){const t=i(e);return t.standalone&&!t.originalStandalone&&!t.onWidget}function s(e){const t=i(e);return!t.standalone&&t.originalStandalone&&!t.onWidget}function l(e){return i(e).onWidget}function a(e){return r(e)?"screener":n(e)?"market":s(e)?"chart":"widget"}o.d(t,{getScreenerPage:()=>a,isChartPage:()=>s,isExternalWidget:()=>l,isMarketPage:()=>n,isScreenerPage:()=>r})},957931:(e,t,o)=>{"use strict";var i;o.d(t,{UserActionState:()=>i}),function(e){e.Click="clicked",e.ApplyFilters="filters_applied",e.Type="typed",e.Slide="slided",e.Drag="drag"}(i||(i={}))},990266:(e,t,o)=>{"use strict";o.d(t,{DispatchContextMenuActionEvent:()=>r});var i=o(957931);class r{constructor(e,t,o){this.event="context_menu_action",this.state=i.UserActionState.Click,this.source=e,this.value=o.toString(),this.location=t}}}, 508822:(e,t,o)=>{"use strict";o.d(t,{ChangeMarketEvent:()=>i,ChangeMarketSelectionModeEvent:()=>r});class i{constructor(e){this.event="change_market",this.source="market_selector",this.location="toolbar",this.state="",this.value=e}}class r{constructor(e){this.event="change_market_selection_mode",this.source="market_selection_mode_switch",this.location="market_dialog",this.state="",this.value=e}}},518643:(e,t,o)=>{"use strict";o.d(t,{getColumnSetNameForSnowPlow:()=>c,getFilterSetNameForSnowPlow:()=>d,getSnowPlowRefreshInterval:()=>a,initScreenerInstance:()=>s,sendSnowPlowData:()=>l});var i=o(776734),r=o(779e3);let n;function s(e){n=e}function l(e){let t="",o="";n&&(t=(0,r.getScreenerPage)(n.screenerBridge),o=n.screenerType);(!n||!(0,r.isExternalWidget)(n.screenerBridge))&&(0,i.getTracker)().then((i=>{i&&i.trackScreenerHighLevel(e,o,t)}))}function a(e){return 1===e?"auto":-1===e?"manual":`${e}`}function c(e){return n.defaultFieldSets.find((t=>t.id===e))?e:"custom"}function d(e){return n.defaultFilterSets.find((t=>t.id===e))?e:"custom"}},554620:(e,t,o)=>{"use strict";o.d(t,{getDefaultMarketForLocale:()=>m,getDefaultStockMarket:()=>v,getExchangesByMarkets:()=>x,getMarketFieldValuesByScreenerType:()=>C,getMarketsByScreenerType:()=>f,getUnavailableWidgetExchangesMap:()=>F,getUnavailableWidgetMarkets:()=>M,marketFilterValues:()=>k});var i=o(688706),r=o(85436),n=o(125226);const s=o(158841),l=o(320880),a={},c=new Map([["uae",()=>o.i18next(null,void 0,o(879479))]]);for(const e of l){const t=s[e];if(t&&t.screenerName){const o=c.has(t.screenerName)?c.get(t.screenerName):()=>(0,i.triesTranslateCountrieName)(t.title);a[t.screenerName]={flag:e,get title(){return o()},stocks:t.exchangesStocks||[],timezone:t.screenerTimezone,group:t.group,country:e}}}const d=o(161379),u={forex:{icon:`${o(890756)}`,get title(){return o.i18next(null,void 0,o(442370))},stocks:[]}},h={crypto:{icon:`${d}`,get title(){return o.i18next(null,void 0,o(322929))},stocks:[]}},p="america",g="forex",_="crypto";function m(e,t="stock"){return"forex"===t?g:"crypto"===t?_:(0,r.getMarketByLocale)(e)}function v(){return p}function f(e){return"stock"===e?a:"forex"===e?u:"crypto"===e?h:a}const y={america:{market_cap_basic:[5e7,3e8,2e9,1e10,5e10,1e11,2e12],volume:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7,5e7],average_volume_10d_calc:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7,5e7],average_volume_30d_calc:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7,5e7],average_volume_60d_calc:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7,5e7],average_volume_90d_calc:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7,5e7],relative_volume_10d_calc:[0,5,10,15,20,50,75,100],premarket_volume:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7,5e7],postmarket_volume:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7,5e7],change_abs:[-100,-50,-20,-10,0,10,20,50,100],change:[-50,-20,-10,0,10,20,50],open:[10,20,50,100],close:[10,20,50,100],high:[10,20,50,100],low:[10,20,50,100],gap:[-50,-20,-10,0,10,20,50], price_earnings_ttm:[0,5,10,15,20,25,30,35,40,45,50],price_earnings_to_growth_ttm:[0,1,2,3],price_sales_ratio:[0,5,10,15,20,25,30,35,40,45,50],return_on_assets:[-50,-30,-20,-15,-10,-5,0,5,10,15,20,30,50],return_on_equity:[-50,-30,-20,-15,-10,-5,0,5,10,15,20,30,50],debt_to_equity:[.1,.2,.3,.4,.5,.6,.7,.8,.9,1],current_ratio:[0,5,10,15,20,25,30,35,40,45,50],quick_ratio:[0,5,10,15,20,25,30,35,40,45,50],price_book_fq:[0,1,2,3,4,5,6,7,8,9,10],price_book_ratio:[0,1,2,3,4,5,6,7,8,9,10],price_free_cash_flow_ttm:[0,5,10,15,20,25,30,35,40,45,50,60,70,80,90,100],beta_1_year:[-2,-1.5,-1,-.5,0,.5,1,1.5,2],operating_margin:[-50,-20,-10,0,10,20,50],earnings_per_share_basic_ttm:[-100,-50,-20,-10,0,10,20,50,100],ebitda:[5e5,1e6,5e6,1e7,5e7,1e8,5e8,1e9,2e9,5e9,1e10,25e9,5e10],change_from_open:[-50,-20,-10,0,10,20,50],"Perf.W":[-50,-20,-10,0,10,20,50],"Perf.1M":[-50,-20,-10,0,10,20,50],"Perf.3M":[-50,-20,-10,0,10,20,50],"Perf.6M":[-50,-20,-10,0,10,20,50],"Perf.Y":[-50,-20,-10,0,10,20,50],"Perf.YTD":[-50,-20,-10,0,10,20,50],"Volatility.W":[0,5,10,15,20,30,50,70],"Volatility.M":[0,5,10,15,20,30,50,70],"Volatility.D":[0,5,10,15,20,30,50,70],ADX:[10,20,30,40,50,60,70,80,90],ATR:[.25,.5,.75,1,1.5,2,2.5,3,3.5,4,4.5,5],Mom:[-30,-20,-15,-10,-5,0,5,10,15,20,30],goodwill:[5e7,3e8,2e9,1e10,2e11],net_debt:[-2e11,-1e10,-2e9,-3e8,-5e7,5e7,3e8,2e9,1e10,2e11],total_debt:[5e7,3e8,2e9,1e10,2e11],revenue_per_employee:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7,5e7],return_on_invested_capital:[-100,-50,-20,-10,0,10,20,50,100],after_tax_margin:[-100,-50,-20,-10,0,10,20,50,100],pre_tax_margin:[-100,-50,-20,-10,0,10,20,50,100],gross_margin:[-100,-50,-20,-10,0,10,20,50,100],dividends_paid:[-2e11,-1e10,-2e9,-3e8,-5e7,0],dividend_yield_recent:[0,5,10,15,20,25,50,100],basic_eps_net_income:[-100,-50,-20,-10,0,10,20,50,100],net_income:[-5e10,-1e10,-2e9,-3e8,-5e7,5e7,3e8,2e9,1e10,2e11],gross_profit:[-2e11,-1e10,-2e9,-3e8,-5e7,5e7,3e8,2e9,1e10,2e11],gross_profit_fq:[-2e11,-1e10,-2e9,-3e8,-5e7,5e7,3e8,2e9,1e10,2e11],number_of_shareholders:[100,500,1e3,1e4,1e5,1e6],float_shares_outstanding:[5e7,3e8,2e9,1e10,2e11],total_shares_outstanding_fundamental:[5e7,3e8,2e9,1e10,2e11],total_assets:[5e7,3e8,2e9,1e10,2e11],total_current_assets:[5e7,3e8,2e9,1e10,2e11],total_revenue:[0,5e7,3e8,2e9,1e10,2e11,5e11],total_liabilities_fy:[5e7,3e8,2e9,1e10,2e11],total_liabilities_fq:[5e7,3e8,2e9,1e10,2e11],earnings_per_share_diluted_ttm:[-100,-50,-20,-10,0,10,20,50,100],earnings_per_share_forecast_next_fq:[-100,-50,-20,-10,0,10,20,50,100],earnings_per_share_fq:[-100,-50,-20,-10,0,10,20,50,100],enterprise_value_ebitda_ttm:[-5e3,-1e3,0,1e3,5e3],enterprise_value_fq:[-2e11,-1e10,-2e9,-3e8,-5e7,5e7,3e8,2e9,1e10,2e11],eps_surprise_fq:[-100,-50,-20,-10,0,10,20,50,100],eps_surprise_percent_fq:[-30,-20,-15,-10,-5,0,5,10,15,20,30],price_revenue_ttm:[0,5,10,50,100,1e3,5e3,1e4],number_of_employees:[100,500,1e3,1e4,1e5,1e6],last_annual_eps:[-100,-50,-20,-10,0,10,20,50,100],last_annual_revenue:[5e7,3e8,2e9,1e10,2e11],CCI20:[-100,-50,-20,-10,0,10,20,50,100], ChaikinMoneyFlow:[-1,-.9,-.8,-.7,-.6,-.5,-.4,-.3,-.2,-.1,0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1],MoneyFlow:[0,5,10,15,25,50,100],"Value.Traded":[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7,5e7,1e8,5e8,75e7]},uk:{average_volume_10d_calc:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7,5e7,1e8],open:[10,20,50,100,200,500,1e3,2e3,5e3,1e4,2e4],close:[10,20,50,100,200,500,1e3,2e3,5e3,1e4,2e4],high:[10,20,50,100,200,500,1e3,2e3,5e3,1e4,2e4],low:[10,20,50,100,200,500,1e3,2e3,5e3,1e4,2e4],current_ratio:[0,5,10,15,20,25,30,35,40,45,50,75,100],total_shares_outstanding_fundamental:[5e6,1e7,5e7,3e8,2e9,1e10,5e10,1e11],dividends_paid:[-2e11,-15e10,-5e10,-1e10,-2e9,-3e8,-1e8,-5e7,0],gross_profit:[-1e10,-2e9,-3e8,-5e7,5e7,3e8,2e9,1e10,2e11]},india:{market_cap_basic:[1e7,5e7,3e8,2e9,1e10,2e11,5e11,1e12,2e12],open:[10,20,50,100,200,500,1e3,2e3,5e3,1e4,2e4],close:[10,20,50,100,200,500,1e3,2e3,5e3,1e4,2e4],high:[10,20,50,100,200,500,1e3,2e3,5e3,1e4,2e4],low:[10,20,50,100,200,500,1e3,2e3,5e3,1e4,2e4],quick_ratio:[0,5,10,15,20,25,30,35,40,45,50,100,500],change_from_open:[-20,-10,0,10,20,50],revenue_per_employee:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7,5e7,1e8,3e8,5e8],dividends_paid:[-5e10,-1e10,-2e9,-3e8,-1e8,-5e7,0],gross_profit:[-1e10,-2e9,-3e8,-5e7,5e7,3e8,2e9,1e10,2e11],total_shares_outstanding_fundamental:[5e7,3e8,2e9,5e9,1e10],number_of_employees:[100,500,1e3,1e4,1e5,2e5]},spain:{market_cap_basic:[1e7,3e7,5e7,1e8,3e8,5e8,1e9,1e10,5e10],volume:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7],relative_volume_10d_calc:[0,1,2,3,4,5,10],change:[-10,-5,-4,-3,-2,-1,0,1,2,3,4,5,10],gap:[-10,-5,-4,-3,-2,-1,0,1,2,3,4,5,10],quick_ratio:[0,1,2,3,4,5,10],ebitda:[5e5,1e6,5e6,1e7,5e7,1e8,5e8,1e9,2e9,5e9,1e10,15e9],"Volatility.W":[0,5,10,15,20],"Volatility.M":[0,5,10,15,20],"Volatility.D":[0,5,10,15,20],Mom:[-15,-10,-5,0,5,10,15],goodwill:[5e7,3e8,2e9,1e10,25e9],revenue_per_employee:[1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7],dividends_paid:[-5e9,-2e9,-3e8,-1e8,-5e7,0],gross_profit:[-2e9,-3e8,-5e7,5e7,3e8,2e9,1e10,2e10],price_revenue_ttm:[0,5,10,50,100]},russia:{market_cap_basic:[1e7,5e7,3e8,2e9,1e10,2e11,5e11,1e12,2e12],volume:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7,5e7,1e8,25e7,5e8,1e9],average_volume_10d_calc:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7,5e7,1e8,25e7,5e8,1e9],relative_volume_10d_calc:[0,1,2,3,4,5,10,15,20,50],change:[-30,-20,-15,-10,-5,-4,-3,-2,-1,0,1,2,3,4,5,10,15,20,30],open:[10,20,50,100,200,500,1e3,2e3,5e3],close:[10,20,50,100,200,500,1e3,2e3,5e3],high:[10,20,50,100,200,500,1e3,2e3,5e3],low:[10,20,50,100,200,500,1e3,2e3,5e3],gap:[-10,-5,-4,-3,-2,-1,0,1,2,3,4,5,10],quick_ratio:[0,1,2,3,4,5,10,15,20],price_free_cash_flow_ttm:[0,5,10,15,20,25,30,35,40,45,50],change_from_open:[-10,-5,-4,-3,-2,-1,0,1,2,3,4,5,10],"Volatility.W":[0,5,10,15,20,30,50],"Volatility.M":[0,5,10,15,20,30,50],"Volatility.D":[0,5,10,15,20,30,50],goodwill:[1e7,5e7,3e8,2e9,1e10,1e11],revenue_per_employee:[1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7,3e7],dividends_paid:[-15e10,-5e10,-1e10,-2e9,-3e8,-1e8,-5e7,0],gross_profit:[-1e10,-2e9,-3e8,-5e7,5e7,3e8,2e9,1e10,2e11],price_revenue_ttm:[0,5,10,50,100], number_of_employees:[100,500,1e3,1e4,1e5,5e5],last_annual_eps:[-100,-50,-20,-10,0,10,20,50,100,500,1e3]},australia:{market_cap_basic:[5e7,3e8,2e9,1e10,5e10,1e11,15e10],earnings_per_share_basic_ttm:[-10,-5,-4,-3,-2,-1,0,1,2,3,4,5,10],ebitda:[5e5,1e6,5e6,1e7,5e7,1e8,5e8,1e9,2e9,5e9,1e10,2e10],dividends_paid:[-5e9,-2e9,-3e8,-5e7,0]},brazil:{market_cap_basic:[1e7,5e7,3e8,2e9,1e10,2e11,5e11,1e12],volume:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7],average_volume_10d_calc:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7],relative_volume_10d_calc:[0,1,2,3,4,5,10,15,20,50],open:[10,20,50,100,200,500,1e3],close:[10,20,50,100,200,500,1e3],high:[10,20,50,100,200,500,1e3],low:[10,20,50,100,200,500,1e3],earnings_per_share_basic_ttm:[-50,-20,-10,0,10,20,50],change_from_open:[-20,-10,0,10,20],"Volatility.W":[0,5,10,15,20],"Volatility.M":[0,5,10,15,20],goodwill:[5e7,3e8,2e9,1e10],revenue_per_employee:[5e4,1e5,5e5,75e4,1e6,2e6,5e6],dividends_paid:[-1e10,-2e9,-3e8,-1e8,-5e7,0],net_income:[-2e10,-1e10,-2e9,-3e8,-5e7,5e7,3e8,2e9,1e10,2e10],gross_profit:[-1e8,-5e7,5e7,3e8,2e9,1e10,1e11],total_shares_outstanding_fundamental:[5e7,3e8,2e9,5e9,1e10],total_current_assets:[5e7,3e8,2e9,1e10,1e11],total_revenue:[0,5e7,3e8,2e9,1e10,2e11],price_revenue_ttm:[0,5,10,50,100,1e3],number_of_employees:[100,500,1e3,1e4,1e5],last_annual_eps:[-100,-50,-20,-10,0,10,20]},japan:{market_cap_basic:[1e7,5e7,3e8,2e9,1e10,2e11,5e11,1e12,2e12,5e12],price_revenue_ttm:[0,5,10,50,100],relative_volume_10d_calc:[0,5,10,15,20,50],change:[-30,-20,-10,0,10,20,30],open:[10,20,50,100,200,500,1e3,1e4,1e5],close:[10,20,50,100,200,500,1e3,1e4,1e5],high:[10,20,50,100,200,500,1e3,1e4,1e5],low:[10,20,50,100,200,500,1e3,1e4,1e5],gap:[-20,-10,0,10,20],ebitda:[5e5,1e6,5e6,1e7,5e7,1e8,5e8,1e9,2e9,5e9,1e10,25e9,5e10,1e11,2e11,5e11],change_from_open:[-20,-10,-5,0,5,10,20],"Volatility.W":[0,5,10,15,20,30],"Volatility.M":[0,5,10,15,20,30],"Volatility.D":[0,5,10,15,20,30],revenue_per_employee:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,5e7]},newzealand:{market_cap_basic:[5e7,3e8,2e9,1e10,5e10,1e11],volume:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7],average_volume_10d_calc:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7],relative_volume_10d_calc:[0,1,2,3,4,5,10,15],open:[5,10,20,50],close:[5,10,20,50],high:[5,10,20,50],low:[5,10,20,50],current_ratio:[0,5,10,15,20,25],quick_ratio:[0,5,10,15,20,25],earnings_per_share_basic_ttm:[-10,-5,-4,-3,-2,-1,0,1,2,3,4,5,10],ebitda:[5e5,1e6,5e6,1e7,5e7,1e8,5e8,1e9,2e9,5e9,1e10,2e10],change_from_open:[-20,-15,-10,-5,0,5,10,15,20],"Volatility.W":[0,1,2,3,4,5,10,15,20,30],"Volatility.M":[0,1,2,3,4,5,10,15,20,30],"Volatility.D":[0,1,2,3,4,5,10,15,20,30],ATR:[.25,.5,.75,1,1.5,2],Mom:[-5,-4,-3,-2,-1,0,1,2,3,4,5],goodwill:[25e6,5e7,1e8,25e7,5e8,2e9],revenue_per_employee:[5e4,1e5,5e5,75e4,1e6,2e6,5e6],dividends_paid:[-5e9,-2e9,-3e8,-5e7,0],basic_eps_net_income:[-5,-4,-3,-2,-1,0,1,2,3,4,5],net_income:[-5e10,-1e10,-2e9,-3e8,-5e7,5e7,3e8,2e9,5e9],gross_profit:[0,25e6,5e7,25e7,5e8,2e9,1e10],total_shares_outstanding_fundamental:[5e7,3e8,2e9,1e10],total_current_assets:[5e7,3e8,2e9,1e10], total_revenue:[0,5e7,3e8,2e9,1e10,25e9],earnings_per_share_diluted_ttm:[-5,-4,-3,-2,-1,0,1,2,3,4,5],earnings_per_share_forecast_next_fq:[-5,-4,-3,-2,-1,0,1,2,3,4,5],earnings_per_share_fq:[-5,-4,-3,-2,-1,0,1,2,3,4,5],price_revenue_ttm:[0,5,10,50,100],number_of_employees:[100,500,1e3,1e4,5e4],last_annual_eps:[-5,-4,-3,-2,-1,0,1,2,3,4,5],"Value.Traded":[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7]},turkey:{market_cap_basic:[5e6,1e7,5e7,3e8,2e9,1e10,3e10,5e10],relative_volume_10d_calc:[0,1,2,3,4,5,10,15],change:[-20,-15,-10,-5,0,5,10,15,20],gap:[-20,-10,-5,0,5,10,20],"Volatility.W":[0,1,2,3,4,5,10,15,20,30],"Volatility.M":[0,1,2,3,4,5,10,15,20,30],"Volatility.D":[0,1,2,3,4,5,10,15,20,30],"Value.Traded":[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7,5e7]},switzerland:{volume:[5e4,1e5,25e4,5e5,75e4,1e6,2e6,5e6],average_volume_10d_calc:[5e4,1e5,25e4,5e5,75e4,1e6,2e6,5e6],change:[-20,-15,-10,-5,0,5,10,15,20]},hongkong:{market_cap_basic:[5e7,3e8,2e9,1e10,5e10,1e11,2e11,25e10,5e11,75e10,1e12],volume:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7,5e7,1e8,25e7],average_volume_10d_calc:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7,5e7,1e8,25e7]},taiwan:{change:[-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10],"Volatility.W":[0,1,2,3,4,5,10,15,20,30],"Volatility.M":[0,1,2,3,4,5,10,15,20,30],"Volatility.D":[0,1,2,3,4,5,10,15,20,30]},netherlands:{},belgium:{},portugal:{},france:{},mexico:{market_cap_basic:[1e7,5e7,3e8,2e9,1e10,2e11,5e11,1e12,2e12],change:[-30,-20,-15,-10,-5,-4,-3,-2,-1,0,1,2,3,4,5,10,15,20,30],open:[10,20,50,100,200,500,1e3,2e3,5e3],close:[10,20,50,100,200,500,1e3,2e3,5e3],high:[10,20,50,100,200,500,1e3,2e3,5e3],low:[10,20,50,100,200,500,1e3,2e3,5e3]},canada:{volume:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7]},colombia:{},uae:{},nigeria:{},singapore:{},germany:{volume:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,25e6]},pakistan:{},peru:{},poland:{volume:[5e4,1e5,2e5,5e5,75e4,1e6,2e6]},italy:{},argentina:{volume:[5e4,1e5,2e5,5e5,75e4,1e6,2e6,5e6,1e7]},israel:{},ireland:{},egypt:{},srilanka:{},serbia:{},chile:{},china:{},malaysia:{},morocco:{},ksa:{},bahrain:{},qatar:{},indonesia:{},finland:{},iceland:{},denmark:{},romania:{},hungary:{},sweden:{},slovakia:{},lithuania:{},luxembourg:{},estonia:{},latvia:{},vietnam:{},rsa:{},thailand:{},tunisia:{},korea:{},kenya:{},kuwait:{},norway:{},philippines:{},greece:{},venezuela:{},cyprus:{},bangladesh:{},austria:{},czech:{}},b={forex:{change_abs:[-50,-20,-10,0,10,20,50],change:[-5,-1,-.5,-.4,-.3,-.2,-.1,0,-.1,.2,.3,.4,.5,1,5],bid:[5,10,20,50,100,500,1e3,5e3],ask:[5,10,20,50,100,500,1e3,5e3],open:[5,10,20,50,100,500,1e3,5e3],close:[5,10,20,50,100,500,1e3,5e3],high:[5,10,20,50,100,500,1e3,5e3],low:[5,10,20,50,100,500,1e3,5e3],change_from_open:[-5,-2.5,-1,-.5,-.4,-.3,-.2,-.1,0,-.1,.2,.3,.4,.5,1,2.5,5],"Perf.W":[-50,-20,-10,0,10,20,50],"Perf.1M":[-50,-20,-10,0,10,20,50],"Perf.3M":[-50,-20,-10,0,10,20,50],"Perf.6M":[-50,-20,-10,0,10,20,50],"Perf.Y":[-50,-20,-10,0,10,20,50],"Perf.YTD":[-50,-20,-10,0,10,20,50],"Volatility.W":[0,5,10,15,20,30,50,70],"Volatility.M":[0,5,10,15,20,30,50,70],"Volatility.D":[0,5,10,15,20,30,50,70], ADX:[10,20,30,40,50,60,70,80,90],ATR:[.25,.5,.75,1,1.5,2,2.5,3,3.5,4,4.5,5],Mom:[-30,-20,-15,-10,-5,0,5,10,15,20,30],CCI20:[-100,-50,-20,-10,0,10,20,50,100]}},w={crypto:{market_cap_calc:[1e4,1e5,5e5,1e6,1e7,3e8,2e9,1e10,5e10,1e11],market_cap_diluted_calc:[1e4,1e5,5e5,1e6,1e7,3e8,2e9,1e10,5e10,1e11],total_shares_outstanding:[1e6,5e6,1e7,5e7,1e8,5e8,1e9,5e9,1e10,5e10,1e11],total_shares_diluted:[1e6,5e6,1e7,5e7,1e8,5e8,1e9,5e9,1e10,5e10,1e11],total_value_traded:[1e4,1e5,5e5,1e6,1e7,3e8,2e9,1e10,5e10],volume:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7,5e7],average_volume_10d_calc:[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7,5e7,3e8,5e8,2e9],relative_volume_10d_calc:[0,.5,1,1.5,2,2.5,5],change_abs:[-100,-50,-20,-10,0,10,20,50,100],change:[-50,-20,-10,0,10,20,50],bid:[5,10,20,50,100,500,1e3,5e3],ask:[5,10,20,50,100,500,1e3,5e3],open:[5,10,20,50,100,500,1e3,5e3],close:[5,10,20,50,100,500,1e3,5e3],high:[5,10,20,50,100,500,1e3,5e3],low:[5,10,20,50,100,500,1e3,5e3],change_from_open:[-10,-5,-4,-3,-2,-1,-.5,0,.5,1,2,3,4,5,10],"Perf.W":[-50,-20,-10,0,10,20,50],"Perf.1M":[-50,-20,-10,0,10,20,50],"Perf.3M":[-50,-20,-10,0,10,20,50],"Perf.6M":[-50,-20,-10,0,10,20,50],"Perf.Y":[-50,-20,-10,0,10,20,50],"Perf.YTD":[-50,-20,-10,0,10,20,50],"Volatility.W":[0,5,10,15,20,30,50,70],"Volatility.M":[0,5,10,15,20,30,50,70],"Volatility.D":[0,5,10,15,20,30,50,70],ADX:[10,20,30,40,50,60,70,80,90],ATR:[.25,.5,.75,1,1.5,2,2.5,3,3.5,4,4.5,5],Mom:[-30,-20,-15,-10,-5,0,5,10,15,20,30],CCI20:[-100,-50,-20,-10,0,10,20,50,100],"24h_vol|5":[5e4,1e5,5e5,75e4,1e6,2e6,5e6,1e7,2e7,5e7]}},S={cfd:{volume:[1e3,5e3,1e4,5e4,1e5],average_volume_10d_calc:[5e3,1e4,5e4,1e5,1e6,1e7,1e8,1e9],relative_volume_10d_calc:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1],change_abs:[-50,-20,-10,0,10,20,50],change:[-5,-1,-.5,-.4,-.3,-.2,-.1,0,-.1,.2,.3,.4,.5,1,5],bid:[5,10,20,50,100,500,1e3,5e3],ask:[5,10,20,50,100,500,1e3,5e3],open:[5,10,20,50,100,500,1e3,5e3],close:[5,10,20,50,100,500,1e3,5e3],high:[5,10,20,50,100,500,1e3,5e3],low:[5,10,20,50,100,500,1e3,5e3],change_from_open:[-5,-4,-3,-2,-1,-.5,0,.5,1,2,3,4,5],"Perf.W":[-50,-20,-10,0,10,20,50],"Perf.1M":[-50,-20,-10,0,10,20,50],"Perf.3M":[-50,-20,-10,0,10,20,50],"Perf.6M":[-50,-20,-10,0,10,20,50],"Perf.Y":[-50,-20,-10,0,10,20,50],"Perf.YTD":[-50,-20,-10,0,10,20,50],"Volatility.W":[0,5,10,15,20,30,50,70],"Volatility.M":[0,5,10,15,20,30,50,70],"Volatility.D":[0,5,10,15,20,30,50,70],ADX:[10,20,30,40,50,60,70,80,90],ATR:[.25,.5,.75,1,1.5,2,2.5,3,3.5,4,4.5,5],Mom:[-30,-20,-15,-10,-5,0,5,10,15,20,30],CCI20:[-100,-50,-20,-10,0,10,20,50,100]}};function C(e){switch(e){case"stock":case"futures":return y;case"forex":return b;case"crypto":case"crypto_mkt":return w;case"cfd":return S}return y}const k={america:{top_gainers:{close:[2,1e4]},top_losers:{close:[2,1e4]},unusual_volume:{relative_volume_10d_calc:{operator:"greater",value:1}},earnings_this_week:{get earnings_release_next_date(){return o.i18next(null,void 0,o(847228))}}},uk:{top_gainers:{close:[2,1e4]},top_losers:{close:[2,1e4]}},india:{top_gainers:{close:[2,1e4]},top_losers:{close:[2,1e4]},unusual_volume:{ relative_volume_10d_calc:{operator:"greater",value:2}}},spain:{top_gainers:{close:[1,1e4]},top_losers:{close:[1,1e4]},unusual_volume:{relative_volume_10d_calc:{operator:"greater",value:.1}}},russia:{top_gainers:{close:null},top_losers:{close:null},unusual_volume:{relative_volume_10d_calc:{operator:"greater",value:.5}}},australia:{top_gainers:{close:null},top_losers:{close:null}},brazil:{top_gainers:{close:null},top_losers:{close:null},unusual_volume:{relative_volume_10d_calc:{operator:"greater",value:.5}}},japan:{top_gainers:{close:[2,1e4]},top_losers:{close:[2,1e4]}},newzealand:{top_gainers:{close:[2,1e4]},top_losers:{close:[2,1e4]},unusual_volume:{relative_volume_10d_calc:{operator:"greater",value:.2}}},turkey:{top_gainers:{close:null},top_losers:{close:null},unusual_volume:{relative_volume_10d_calc:{operator:"greater",value:.2}}},switzerland:{top_gainers:{close:[.1,1e4]},top_losers:{close:[.1,1e4]}},hongkong:{top_gainers:{close:[2,1e4]},top_losers:{close:[2,1e4]}},taiwan:{top_gainers:{close:[2,1e4]},top_losers:{close:[2,1e4]}},netherlands:{top_gainers:{close:[2,1e4]},top_losers:{close:[2,1e4]}},belgium:{top_gainers:{close:[2,1e4]},top_losers:{close:[2,1e4]}},portugal:{top_gainers:{close:[2,1e4]},top_losers:{close:[2,1e4]}},france:{top_gainers:{close:[2,1e4]},top_losers:{close:[2,1e4]}},mexico:{top_gainers:{close:[2,1e4]},top_losers:{close:[2,1e4]},unusual_volume:{relative_volume_10d_calc:{operator:"greater",value:.5}}},canada:{top_gainers:{close:[2,1e4]},top_losers:{close:[2,1e4]}},singapore:{top_gainers:{close:[2,1e4]},top_losers:{close:[2,1e4]}},germany:{top_gainers:{close:[1,1e4]},top_losers:{close:[1,1e4]}},poland:{top_gainers:{close:[1,1e4]},top_losers:{close:[1,1e4]},unusual_volume:{relative_volume_10d_calc:{operator:"greater",value:.5}}},israel:{top_gainers:{close:[2,1e4]},top_losers:{close:[2,1e4]},unusual_volume:{relative_volume_10d_calc:{operator:"greater",value:.5}}},italy:{top_gainers:{close:[2,1e4]},top_losers:{close:[2,1e4]},unusual_volume:{relative_volume_10d_calc:{operator:"greater",value:.5}}},argentina:{top_gainers:{close:[2,1e4]},top_losers:{close:[2,1e4]},unusual_volume:{relative_volume_10d_calc:{operator:"greater",value:.2}}},forex:{top_gainers:{close:null},top_losers:{close:null},most_capitalized:null,earnings_this_week:null,volume_leaders:null,most_volatile:{"Volatility.D":{operator:"greater",value:1}},unusual_volume:null,high_dividend:null},crypto:{top_gainers:{close:null},top_losers:{close:null},most_capitalized:null,earnings_this_week:null,volume_leaders:null,most_volatile:{"Volatility.D":{operator:"greater",value:1}},unusual_volume:null,high_dividend:null},china:{top_gainers:{close:[2,1e4]},top_losers:{close:[2,1e4]}},chile:{top_gainers:{close:[1,1e4]},top_losers:{close:[1,1e4]}},bahrain:{top_gainers:{close:[.01,1e4]},top_losers:{close:[.01,1e4]}},malaysia:{top_gainers:{close:[.01,1e4]},top_losers:{close:[.01,1e4]}},serbia:{top_gainers:{close:[.1,1e4]},top_losers:{close:[.1,1e4]}},ksa:{top_gainers:{close:[1,1e4]},top_losers:{close:[1,1e4]}},egypt:{top_gainers:{close:[1,1e4]},top_losers:{ close:[1,1e4]}}};function x(e){return e.reduce(((e,t)=>e.concat(function(e){return a[e]&&a[e].stocks||[]}(t))),[])}const T=["luxembourg","norway","slovakia","sweden","philippines","korea"];function M(){return T}(0,n.isFeatureEnabled)("disable-lse-data-screener-heatmap-widgets")&&T.push("uk");const E={india:["NSE"]};function F(){return E}},696788:(e,t,o)=>{"use strict";o.d(t,{SIGNAL:()=>r,generateRecommendsRequest:()=>d,getRecommendsRange:()=>a,signalComputationFunctions:()=>s,signalDisplayFunctions:()=>l});var i=o(444372);const r={STRONG_BUY:{key:"Strong Buy",get title(){return i.t(null,{context:"screener_rating"},o(632309))},get shortTitle(){return i.t(null,{context:"screener_rating"},o(632309))},cssClass:"tv-screener-table__signal--strong-buy"},BUY:{key:"Buy",get title(){return i.t(null,{context:"screener_rating"},o(280903))},get shortTitle(){return i.t(null,{context:"first_letter_of_Buy"},o(355777))},cssClass:"tv-screener-table__signal--buy"},STRONG_SELL:{key:"Strong Sell",get title(){return i.t(null,{context:"screener_rating"},o(488234))},get shortTitle(){return i.t(null,{context:"screener_rating"},o(488234))},cssClass:"tv-screener-table__signal--strong-sell"},SELL:{key:"Sell",get title(){return i.t(null,{context:"screener_rating"},o(71780))},get shortTitle(){return i.t(null,{context:"first_letter_of_Sell"},o(992949))},cssClass:"tv-screener-table__signal--sell"},NEUTRAL:{key:"Neutral",get title(){return i.t(null,{context:"screener_rating"},o(147094))},get shortTitle(){return i.t(null,{context:"first_letter_of_Neutral"},o(695879))},cssClass:"tv-screener-table__signal--neutral"}},n=(e,t=!1,o=!1)=>{const i=t?"":" i-hidden";return o?`${e.shortTitle}`:`${e.title}`},s={computeMASignal:(e,t)=>{let o=r.NEUTRAL;return et&&(o=r.SELL),o},computeRSISignal:(e,t)=>{let o=r.NEUTRAL;return e<30&&t70&&t>e&&(o=r.SELL),o},computeStochSignal:(e,t,o,i)=>{let n=r.NEUTRAL;return e<20&&t<20&&e>t&&o80&&t>80&&ei&&(n=r.SELL),n},computeCCI20Signal:(e,t)=>{let o=r.NEUTRAL;return e<-100&&e>t&&(o=r.BUY),e>100&&e{let s=r.NEUTRAL;return e>20&&io&&(s=r.BUY),e>20&&i>n&&t{let i=r.NEUTRAL;return(e>0&&t<0||e>0&&t>0&&e>t&&o>t)&&(i=r.BUY),(e<0&&t>0||e<0&&t<0&&e{let o=r.NEUTRAL;return e>t&&(o=r.BUY),e{let o=r.NEUTRAL;return e>t&&(o=r.BUY),e{let o=r.NEUTRAL;return e{let o=r.NEUTRAL;return e>t&&(o=r.SELL),o},computePSARSignal:(e,t)=>{let o=r.NEUTRAL;return et&&(o=r.SELL),o},computeRecommendSignal:e=>{let t;return e>=-1&&e<-.5&&(t=r.STRONG_SELL),e>=-.5&&e<-.1&&(t=r.SELL),e>=-.1&&e<=.1&&(t=r.NEUTRAL),e>.1&&e<=.5&&(t=r.BUY), e>.5&&e<=1&&(t=r.STRONG_BUY),t},computeSimpleSignal:e=>{let t=r.NEUTRAL;return-1===e&&(t=r.SELL),1===e&&(t=r.BUY),t}},l={processMASignal:(e,t,o,i)=>{if(null===t||null===o)return e;const r=s.computeMASignal(t,o);return`${e} ${n(r,i.displaySignal,!0)}`},processRSISignal:(e,t,o,i)=>{if(null===t)return e;const r=s.computeRSISignal(t,o);return`${e} ${n(r,i.displaySignal,!0)}`},processStochSignal:(e,t,o,i,r,l)=>{if(null===t||null===o)return e;const a=s.computeStochSignal(t,o,i,r);return`${e} ${n(a,l.displaySignal,!0)}`},processCCI20Signal:(e,t,o,i)=>{if(null===t||null===o)return e;const r=s.computeCCI20Signal(t,o);return`${e} ${n(r,i.displaySignal,!0)}`},processADXSignal:(e,t,o,i,r,l,a)=>{if(null===t||null===o||null===i)return e;const c=s.computeADXSignal(t,o,i,r,l);return`${e} ${n(c,a.displaySignal,!0)}`},processAOSignal:(e,t,o,i,r)=>{if(null===t||null===o||null===i)return e;const l=s.computeAOSignal(t,o,i);return`${e} ${n(l,r.displaySignal,!0)}`},processMomSignal:(e,t,o,i)=>{if(null===t||null===o)return e;const r=s.computeMomSignal(t,o);return`${e} ${n(r,i.displaySignal,!0)}`},processMACDSignal:(e,t,o,i)=>{if(null===t||null===o)return e;const r=s.computeMACDSignal(t,o);return`${e} ${n(r,i.displaySignal,!0)}`},processBBBuySignal:(e,t,o,i)=>{if(null===t||null===o)return e;const r=s.computeBBBuySignal(t,o);return`${e} ${n(r,i.displaySignal,!0)}`},processBBSellSignal:(e,t,o,i)=>{if(null===t||null===o)return e;const r=s.computeBBSellSignal(t,o);return`${e} ${n(r,i.displaySignal,!0)}`},processPSARSignal:(e,t,o,i)=>{if(null===t||null===o)return e;const r=s.computePSARSignal(t,o);return`${e} ${n(r,i.displaySignal,!0)}`},processRecommendSignal:e=>{if(null===e||!isNumber(e))return e;const t=s.computeRecommendSignal(e);return void 0===t?e:`${n(t,!0)}`},processSimpleSignal:(e,t,o)=>{if(null===t||"—"===e)return e;const i=s.computeSimpleSignal(t);return`${e} ${n(i,o.displaySignal,!0)}`}},a=()=>[r.STRONG_BUY.title,r.BUY.title,r.NEUTRAL.title,r.SELL.title,r.STRONG_SELL.title],c=e=>{let t,o;return e===r.STRONG_SELL.title&&(t=[-1,-.5],o=-.5),e===r.SELL.title&&(t=[-.5,-.1],o=-.1),e===r.NEUTRAL.title&&(t=[-.1,.1]),e===r.BUY.title&&(t=[.1,.5],o=.1),e===r.STRONG_BUY.title&&(t=[.5,1],o=.5),{right:t,notEqual:o}},d=(e,t)=>{if(Array.isArray(e)){const o=e.map((e=>c(e))),i=[],r=[];for(const e of o){if(void 0!==e.notEqual){o.filter((t=>t.notEqual!==e.notEqual&&(t.equal===e.notEqual||t.right&&(t.right[0]===e.notEqual||t.right[1]===e.notEqual)))).length||i.push({left:t,operation:"nequal",right:e.notEqual})}e.right&&r.push({left:t,operation:"in_range",right:e.right}),void 0!==e.equal&&r.push({left:t,operation:"equal",right:e.equal})}return{filter:i,filter2AndPart:r,filter2Flag:!0}}const o=c(e);if(0===o.equal)return{left:t,operation:"equal",right:0};const i=[{left:t,operation:"in_range",right:o.right}];return void 0!==o.notEqual&&i.push({left:t,operation:"nequal",right:o.notEqual}),i}},104461:(e,t,o)=>{"use strict";o.d(t,{getProductIdFromStockExchange:()=>l,hasStockScannerExchange:()=>s,isEmbedUnrestrictedExchange:()=>a}) ;var i=o(158841),r=o(772187);const n=[];for(const e in i)i.hasOwnProperty(e)&&i[e].hasOwnProperty("exchangesStocks")&&i[e].exchangesStocks.forEach((e=>{n.push(e)}));const s=e=>(e={OSL:"EURONEXTOSE",BCBA:"BYMA",AMEX:"NYSE ARCA"}[e]||e,n.includes(e));function l(e){return r[e]||null}function a(e){return["ASX","ATHEX"].includes(e)}},659771:(e,t,o)=>{"use strict";o.d(t,{defaultStockMarket:()=>s,markets:()=>r});var i=o(554620);const r=(n=(0,i.getMarketsByScreenerType)("stock"),Object.entries(n).map((([e,t])=>{const o=t.group;return{flag:t.flag,get name(){return t.title},desc:t.stocks.join(", "),country:t.country,group:o,value:e}})));var n;const s=r.find((e=>e.value===(0,i.getDefaultStockMarket)()))},534197:(e,t,o)=>{"use strict";o.r(t),o.d(t,{destroyQuoteSessions:()=>a,getQuoteSessionInstance:()=>n,getQuoteSessionNoEnsure:()=>l,setQuoteSessionInstance:()=>s});var i=o(288533);const r={};function n(e="full"){return r[e]||s(e,new i(e)),r[e]}function s(e="full",t){r[e]=t}function l(e="full"){return r[e]}function a(){for(const e in r)if(r.hasOwnProperty(e)){const t=r[e];void 0!==t&&t.destroy(),delete r[e]}}},778003:(e,t,o)=>{"use strict";function i(e){if(void 0===e)return null;const t=e.match(/(delayed_streaming)_(\d+)/);return null===t?null:{mode:t[1],interval:parseInt(t[2])}}function r(e){const t=i(e.update_mode);return null===t||(e.update_mode=t.mode,e.update_mode_seconds=t.interval),e}o.r(t),o.d(t,{normalizeUpdateMode:()=>r,parseUpdateMode:()=>i})},493239:(e,t,o)=>{"use strict";o.d(t,{DECEMBER:()=>w,FIRST_DAY_OF_WEEK:()=>p,FRIDAY:()=>u,JANUARY:()=>_,JULY:()=>f,LAST_DAY_OF_WEEK:()=>g,MARCH:()=>m,MAY:()=>v,MONDAY:()=>l,NOVEMBER:()=>b,SATURDAY:()=>h,SEPTEMBER:()=>y,SUNDAY:()=>s,THURSDAY:()=>d,TUESDAY:()=>a,WEDNESDAY:()=>c,add_date:()=>L,add_days_considering_dst:()=>R,add_minutes:()=>$,cal_to_utc:()=>K,clone:()=>O,days_per_year:()=>V,get_cal:()=>z,get_cal_from_unix_timestamp_ms:()=>G,get_cal_utc:()=>X,get_day_of_month:()=>F,get_day_of_week:()=>A,get_day_of_year:()=>B,get_days_in_month:()=>W,get_minutes:()=>E,get_minutes_from_midnight:()=>I,get_minutes_with_hours:()=>D,get_month:()=>T,get_timezone:()=>Y,get_year:()=>x,is_leap_year:()=>H,millisecondsPerDay:()=>k,minutesPerDay:()=>S,minutesPerWeek:()=>C,set_hms:()=>P,set_seconds:()=>N,time_seconds:()=>q,time_seconds_diff:()=>U,utc_to_cal:()=>j});var i=o(685182);const r={0:0,1:31,2:59,3:90,4:120,5:151,6:181,7:212,8:243,9:273,10:304,11:334};class n{constructor(e){this._invalid=!1,this._name=e;let t=i.tzData[e];t||(t={time:[],offset:[]},this._invalid=!0),t.time.length!==t.offset.length&&(t={time:[],offset:[]},this._invalid=!0);const o=t;if(!o.time_utc){const e=t.time,i=t.offset,r=e.length,n=new Array(r);for(let t=0;t0){ if(e-t[i-1]<=r)return r}return 0}static offset(e,t,o){const i=J(e,o);return-1===i?0:t[i]}}const s=1,l=2,a=3,c=4,d=5,u=6,h=7,p=s,g=h,_=0,m=2,v=4,f=6,y=8,b=10,w=11,S=1440,C=10080,k=864e5;function x(e){return e.getUTCFullYear()}function T(e){return e.getUTCMonth()}function M(e){return e.getUTCHours()}function E(e){return e.getUTCMinutes()}function F(e){return e.getUTCDate()}function A(e){return e.getUTCDay()+1}function B(e){const t=e.getUTCMonth();let o=r[t];return t>_+1&&H(e.getUTCFullYear())&&(o+=1),o+e.getUTCDate()}function I(e){return 60*M(e)+E(e)}function D(e){return I(e)}function P(e,t,o,i,r,n){e.setUTCHours(t),e.setUTCMinutes(o),e.setUTCSeconds(i),e.setUTCMilliseconds(r),void 0!==n&&function(e,t){const o=e.getTime(),i=t.correction_loc(o);e.setTime(o+i)}(e,n)}function R(e,t,o){const i=e.offset_utc(t.getTime()),r=O(t);L(r,o);const n=e.offset_utc(r.getTime());return r.setTime(r.getTime()+i-n),r}function L(e,t){e.setTime(e.getTime()+t*k)}function $(e,t){e.setTime(e.getTime()+60*t*1e3)}function N(e,t){const o=86400,i=t%o<0?-1:0,r=Math.trunc(t/o)+i,n=t-r*o,s=Math.trunc(n/3600),l=Math.trunc(n%3600/60);P(e,s,l,n-3600*s-60*l,0),L(e,r)}function O(e){return new Date(e.getTime())}function W(e,t){let o;switch(e){case 0:case 2:case 4:case 6:case 7:case 9:case 11:o=31;break;case 1:o=28,H(t)&&o++;break;default:o=30}return o}function V(e){return H(e)?366:365}function H(e){return e%4==0&&(e%100!=0||e%400==0)}function q(e){return 1e3*e}function U(e,t){return Q(e)-Q(t)}function j(e,t){return new Date(function(e,t){const o=e.offset_utc(t);return t+o}(e,t))}function z(e,t,o,i,r,n,s){const l=new Date(Date.UTC(t,o,i,r||0,n||0,s||0)),a=e.offset_utc(+l);return new Date(l.valueOf()-a)}function G(e,t){return new Date(t+e.offset_utc(t))}function X(e,t,o,i=0,r=0,n=0){return new Date(Date.UTC(e,t,o,i,r,n))}function K(e,t,o){let i=t.getTime();o&&(i+=e.correction_loc(i));return i-e.offset_loc(i)}function Y(e){return new n(e)}function J(e,t){const o=e.length;if(0===o)return-1;if(isNaN(t))throw Error("Key is NaN");let i=0,r=o-1,n=Z((i+r)/2);for(;;){if(e[n]>t){if(r=n-1,r{"use strict";o.r(t),o.d(t,{Delegate:()=>n});const i=(0,o(735566).getLogger)("Common.Delegate");function r(e){return!e.singleShot}class n{constructor(){this.fire=this._fireImpl.bind(this),this._listeners=[]}subscribe(e,t,o){this._listeners.push({object:e,member:t,singleShot:!!o,skip:!1})}unsubscribe(e,t){for(let o=0;o=0;--t){const o=this._listeners[t];o.object===e&&(o.skip=!0,this._listeners.splice(t,1))}}destroy(){this._listeners=[]}_fireImpl(...e){const t=this._listeners;this._listeners=this._listeners.filter(r);const o=t.length;for(let r=0;r{"use strict";o.d(t,{triesTranslateCountrieName:()=>r});var i=o(444372);function r(e){const t=n.get(e);return void 0!==t?t():e} const n=new Map([["Africa",()=>i.t(null,void 0,o(578163))],["Americas",()=>i.t(null,void 0,o(615493))],["Asia",()=>i.t(null,void 0,o(360389))],["Europe",()=>i.t(null,void 0,o(546890))],["Pacific",()=>i.t(null,void 0,o(847081))],["Middle East",()=>i.t(null,void 0,o(64614))],["Afghanistan",()=>i.t(null,void 0,o(641527))],["Åland Islands",()=>i.t(null,void 0,o(831928))],["Aland Islands",()=>i.t(null,void 0,o(831928))],["Albania",()=>i.t(null,void 0,o(959086))],["Algeria",()=>i.t(null,void 0,o(856683))],["American Samoa",()=>i.t(null,void 0,o(61015))],["Andorra",()=>i.t(null,void 0,o(673791))],["Angola",()=>i.t(null,void 0,o(512563))],["Anguilla",()=>i.t(null,void 0,o(372813))],["Antarctica",()=>i.t(null,void 0,o(166557))],["Antigua and Barbuda",()=>i.t(null,void 0,o(817607))],["Argentina",()=>i.t(null,void 0,o(106226))],["Armenia",()=>i.t(null,void 0,o(533146))],["Aruba",()=>i.t(null,void 0,o(100499))],["Australia",()=>i.t(null,void 0,o(722157))],["Austria",()=>i.t(null,void 0,o(696600))],["Azerbaijan",()=>i.t(null,void 0,o(692604))],["Bahamas",()=>i.t(null,void 0,o(1096))],["Bahrain",()=>i.t(null,void 0,o(290594))],["Bangladesh",()=>i.t(null,void 0,o(225040))],["Barbados",()=>i.t(null,void 0,o(907853))],["Belarus",()=>i.t(null,void 0,o(58753))],["Belgium",()=>i.t(null,void 0,o(795521))],["Belize",()=>i.t(null,void 0,o(73958))],["Benin",()=>i.t(null,void 0,o(59986))],["Bermuda",()=>i.t(null,void 0,o(155340))],["Bhutan",()=>i.t(null,void 0,o(264708))],["Bolivia",()=>i.t(null,void 0,o(568977))],["Bonaire, Sint Eustatius and Saba",()=>i.t(null,void 0,o(717326))],["Bosnia and Herzegovina",()=>i.t(null,void 0,o(749972))],["Botswana",()=>i.t(null,void 0,o(682635))],["Bouvet Island",()=>i.t(null,void 0,o(987629))],["Brazil",()=>i.t(null,void 0,o(497100))],["British Indian Ocean Territory",()=>i.t(null,void 0,o(695239))],["British Virgin Islands",()=>i.t(null,void 0,o(179027))],["Brunei",()=>i.t(null,void 0,o(44542))],["Bulgaria",()=>i.t(null,void 0,o(734548))],["Burkina Faso",()=>i.t(null,void 0,o(691063))],["Burundi",()=>i.t(null,void 0,o(395606))],["Cabo Verde",()=>i.t(null,void 0,o(835641))],["Cambodia",()=>i.t(null,void 0,o(68997))],["Cameroon",()=>i.t(null,void 0,o(213250))],["Canada",()=>i.t(null,void 0,o(588590))],["Cayman Islands",()=>i.t(null,void 0,o(847135))],["Central African Republic",()=>i.t(null,void 0,o(907024))],["Chad",()=>i.t(null,void 0,o(556572))],["Chile",()=>i.t(null,void 0,o(887583))],["China",()=>i.t(null,void 0,o(226207))],["Christmas Island",()=>i.t(null,void 0,o(192739))],["Cocos (Keeling) Islands",()=>i.t(null,void 0,o(777344))],["Colombia",()=>i.t(null,void 0,o(882104))],["Comoros",()=>i.t(null,void 0,o(84472))],["Congo",()=>i.t(null,void 0,o(796825))],["Congo (the Democratic Republic of the)",()=>i.t(null,void 0,o(179502))],["Cook Islands",()=>i.t(null,void 0,o(366326))],["Curacao",()=>i.t(null,void 0,o(738609))],["Costa Rica",()=>i.t(null,void 0,o(153161))],["Côte d'Ivoire",()=>i.t(null,void 0,o(430952))],["Croatia",()=>i.t(null,void 0,o(96747))],["Cuba",()=>i.t(null,void 0,o(909463))],["Curaçao",()=>i.t(null,void 0,o(429420))],["Cyprus",()=>i.t(null,void 0,o(935415))],["Czechia",()=>i.t(null,void 0,o(659645))],["Czech Republic",()=>i.t(null,void 0,o(728962))],["Denmark",()=>i.t(null,void 0,o(877527))],["Djibouti",()=>i.t(null,void 0,o(44760))],["Dominica",()=>i.t(null,void 0,o(224496))],["Dominican Republic",()=>i.t(null,void 0,o(213047))],["Ecuador",()=>i.t(null,void 0,o(236580))],["Egypt",()=>i.t(null,void 0,o(324432))],["El Salvador",()=>i.t(null,void 0,o(561191))],["Equatorial Guinea",()=>i.t(null,void 0,o(161980))],["Eritrea",()=>i.t(null,void 0,o(429824))],["Estonia",()=>i.t(null,void 0,o(714153))],["Falkland Islands",()=>i.t(null,void 0,o(455450))],["Eswatini",()=>i.t(null,void 0,o(544127))],["Ethiopia",()=>i.t(null,void 0,o(634249))],["European Union",()=>i.t(null,void 0,o(256596))],["Falkland Islands (Malvinas)",()=>i.t(null,void 0,o(357436))],["Faroe Islands",()=>i.t(null,void 0,o(330249))],["Fiji",()=>i.t(null,void 0,o(883259))],["Finland",()=>i.t(null,void 0,o(223442))],["France",()=>i.t(null,void 0,o(891160))],["French Guiana",()=>i.t(null,void 0,o(438361))],["French Polynesia",()=>i.t(null,void 0,o(886670))],["French Southern Territories",()=>i.t(null,void 0,o(366930))],["Gabon",()=>i.t(null,void 0,o(226211))],["Gambia",()=>i.t(null,void 0,o(952020))],["Georgia",()=>i.t(null,void 0,o(43846))],["Germany",()=>i.t(null,void 0,o(403447))],["Ghana",()=>i.t(null,void 0,o(573817))],["Gibraltar",()=>i.t(null,void 0,o(656047))],["Greece",()=>i.t(null,void 0,o(327434))],["Greenland",()=>i.t(null,void 0,o(1235))],["Grenada",()=>i.t(null,void 0,o(881641))],["Guadeloupe",()=>i.t(null,void 0,o(473562))],["Guam",()=>i.t(null,void 0,o(567540))],["Guatemala",()=>i.t(null,void 0,o(961914))],["Guernsey",()=>i.t(null,void 0,o(681937))],["Guinea",()=>i.t(null,void 0,o(317252))],["Guinea-Bissau",()=>i.t(null,void 0,o(967090))],["Guyana",()=>i.t(null,void 0,o(855033))],["Haiti",()=>i.t(null,void 0,o(887765))],["Heard Island and McDonald Islands",()=>i.t(null,void 0,o(80508))],["Holy See",()=>i.t(null,void 0,o(99838))],["Honduras",()=>i.t(null,void 0,o(282792))],["Hong Kong",()=>i.t(null,void 0,o(357640))],["Hungary",()=>i.t(null,void 0,o(893317))],["Iceland",()=>i.t(null,void 0,o(217499))],["India",()=>i.t(null,void 0,o(719912))],["Indonesia",()=>i.t(null,void 0,o(532355))],["Iraq",()=>i.t(null,void 0,o(128295))],["Ireland",()=>i.t(null,void 0,o(501759))],["Isle of Man",()=>i.t(null,void 0,o(521579))],["Israel",()=>i.t(null,void 0,o(368291))],["Italy",()=>i.t(null,void 0,o(35146))],["Jamaica",()=>i.t(null,void 0,o(503861))],["Japan",()=>i.t(null,void 0,o(200186))],["Jersey",()=>i.t(null,void 0,o(645271))],["Jordan",()=>i.t(null,void 0,o(75447))],["Kazakhstan",()=>i.t(null,void 0,o(892613))],["Kenya",()=>i.t(null,void 0,o(981233))],["Kiribati",()=>i.t(null,void 0,o(184523))],["Kosovo",()=>i.t(null,void 0,o(757671))],["Kuwait",()=>i.t(null,void 0,o(76614))],["Kyrgyzstan",()=>i.t(null,void 0,o(35025))],["Laos",()=>i.t(null,void 0,o(185682))],["Latvia",()=>i.t(null,void 0,o(262063))],["Lebanon",()=>i.t(null,void 0,o(516210))],["Lesotho",()=>i.t(null,void 0,o(365317))],["Liberia",()=>i.t(null,void 0,o(710525))],["Libya",()=>i.t(null,void 0,o(301115))],["Liechtenstein",()=>i.t(null,void 0,o(813250))],["Lithuania",()=>i.t(null,void 0,o(868380))],["Luxembourg",()=>i.t(null,void 0,o(681038))],["Macau",()=>i.t(null,void 0,o(107872))],["Macao",()=>i.t(null,void 0,o(978374))],["Macedonia",()=>i.t(null,void 0,o(739008))],["Madagascar",()=>i.t(null,void 0,o(133712))],["Malawi",()=>i.t(null,void 0,o(546923))],["Malaysia",()=>i.t(null,void 0,o(910613))],["Maldives",()=>i.t(null,void 0,o(39656))],["Mali",()=>i.t(null,void 0,o(365226))],["Malta",()=>i.t(null,void 0,o(638365))],["Marshall Islands",()=>i.t(null,void 0,o(218866))],["Martinique",()=>i.t(null,void 0,o(933381))],["Mauritania",()=>i.t(null,void 0,o(579706))],["Mauritius",()=>i.t(null,void 0,o(635743))],["Mayotte",()=>i.t(null,void 0,o(213187))],["Mexico",()=>i.t(null,void 0,o(774951))],["Micronesia (Federated States of)",()=>i.t(null,void 0,o(56829))],["Moldova",()=>i.t(null,void 0,o(150883))],["Monaco",()=>i.t(null,void 0,o(440019))],["Mongolia",()=>i.t(null,void 0,o(770187))],["Montenegro",()=>i.t(null,void 0,o(641357))],["Montserrat",()=>i.t(null,void 0,o(498609))],["Morocco",()=>i.t(null,void 0,o(224794))],["Mozambique",()=>i.t(null,void 0,o(579468))],["Myanmar",()=>i.t(null,void 0,o(9877))],["Namibia",()=>i.t(null,void 0,o(12872))],["Nauru",()=>i.t(null,void 0,o(342666))],["Nepal",()=>i.t(null,void 0,o(512503))],["Netherlands",()=>i.t(null,void 0,o(376970))],["New Caledonia",()=>i.t(null,void 0,o(364389))],["New Zealand",()=>i.t(null,void 0,o(866103))],["Nicaragua",()=>i.t(null,void 0,o(227276))],["Niger",()=>i.t(null,void 0,o(966217))],["Nigeria",()=>i.t(null,void 0,o(591520))],["Niue",()=>i.t(null,void 0,o(304944))],["Norfolk Island",()=>i.t(null,void 0,o(467891))],["North Macedonia",()=>i.t(null,void 0,o(163654))],["Northern Mariana Islands",()=>i.t(null,void 0,o(201209))],["Norway",()=>i.t(null,void 0,o(723309))],["Oman",()=>i.t(null,void 0,o(349693))],["Pakistan",()=>i.t(null,void 0,o(917892))],["Palau",()=>i.t(null,void 0,o(399553))],["Palestine, State of",()=>i.t(null,void 0,o(997622))],["Panama",()=>i.t(null,void 0,o(614586))],["Papua New Guinea",()=>i.t(null,void 0,o(639272))],["Paraguay",()=>i.t(null,void 0,o(449486))],["Peru",()=>i.t(null,void 0,o(184677))],["Philippines",()=>i.t(null,void 0,o(728919))],["Pitcairn",()=>i.t(null,void 0,o(292752))],["Poland",()=>i.t(null,void 0,o(15112))],["Portugal",()=>i.t(null,void 0,o(958902))],["Puerto Rico",()=>i.t(null,void 0,o(162916))],["Qatar",()=>i.t(null,void 0,o(328756))],["Réunion",()=>i.t(null,void 0,o(907816))],["La Reunion",()=>i.t(null,void 0,o(907816))],["Romania",()=>i.t(null,void 0,o(700102))],["Russia",()=>i.t(null,void 0,o(859546))],["Russian Federation",()=>i.t(null,void 0,o(115446))],["SINT MAARTEN (DUTCH PART)",()=>i.t(null,void 0,o(404421))],["Rwanda",()=>i.t(null,void 0,o(260044))],["Saint Barthélemy",()=>i.t(null,void 0,o(19774))],["Saint Helena, Ascension and Tristan da Cunha",()=>i.t(null,void 0,o(936924))],["Saint Kitts and Nevis",()=>i.t(null,void 0,o(714742))],["Saint Lucia",()=>i.t(null,void 0,o(556268))],["Saint Martin (French part)",()=>i.t(null,void 0,o(653833))],["Saint Pierre and Miquelon",()=>i.t(null,void 0,o(438490))],["Saint Vincent and the Grenadines",()=>i.t(null,void 0,o(283190))],["Samoa",()=>i.t(null,void 0,o(552348))],["San Marino",()=>i.t(null,void 0,o(303407))],["Sao Tome and Principe",()=>i.t(null,void 0,o(890812))],["Saudi Arabia",()=>i.t(null,void 0,o(605991))],["Senegal",()=>i.t(null,void 0,o(444125))],["Serbia",()=>i.t(null,void 0,o(428819))],["Seychelles",()=>i.t(null,void 0,o(650985))],["Sierra Leone",()=>i.t(null,void 0,o(28461))],["Singapore",()=>i.t(null,void 0,o(977377))],["Sint Maarten (Dutch part)",()=>i.t(null,void 0,o(145578))],["Slovakia",()=>i.t(null,void 0,o(742494))],["Slovenia",()=>i.t(null,void 0,o(721687))],["Solomon Islands",()=>i.t(null,void 0,o(761110))],["Somalia",()=>i.t(null,void 0,o(34194))],["South Africa",()=>i.t(null,void 0,o(663647))],["South Georgia and the South Sandwich Islands",()=>i.t(null,void 0,o(826082))],["South Korea",()=>i.t(null,void 0,o(617661))],["South Sudan",()=>i.t(null,void 0,o(998037))],["Spain",()=>i.t(null,void 0,o(174897))],["Sri Lanka",()=>i.t(null,void 0,o(308201))],["Sudan",()=>i.t(null,void 0,o(18118))],["Suriname",()=>i.t(null,void 0,o(729068))],["Svalbard and Jan Mayen",()=>i.t(null,void 0,o(562457))],["Sweden",()=>i.t(null,void 0,o(73412))],["Switzerland",()=>i.t(null,void 0,o(508058))],["Syria",()=>i.t(null,void 0,o(717325))],["Taiwan",()=>i.t(null,void 0,o(470947))],["Tajikistan",()=>i.t(null,void 0,o(434058))],["Tanzania",()=>i.t(null,void 0,o(635623))],["Thailand",()=>i.t(null,void 0,o(215786))],["Timor-Leste",()=>i.t(null,void 0,o(367129))],["Togo",()=>i.t(null,void 0,o(631945))],["Tokelau",()=>i.t(null,void 0,o(298549))],["Tonga",()=>i.t(null,void 0,o(435125))],["Trinidad and Tobago",()=>i.t(null,void 0,o(390103))],["Tunisia",()=>i.t(null,void 0,o(420349))],["Turkey",()=>i.t(null,void 0,o(929826))],["Turkmenistan",()=>i.t(null,void 0,o(650800))],["Turks and Caicos Islands",()=>i.t(null,void 0,o(606372))],["Tuvalu",()=>i.t(null,void 0,o(747680))],["U.S. Virgin Islands",()=>i.t(null,void 0,o(2120))],["UAE",()=>i.t(null,void 0,o(879479))],["USA",()=>i.t(null,void 0,o(232240))],["Uganda",()=>i.t(null,void 0,o(87849))],["Ukraine",()=>i.t(null,void 0,o(364971))],["United Arab Emirates",()=>i.t(null,void 0,o(770695))],["United Kingdom",()=>i.t(null,void 0,o(460411))],["United States",()=>i.t(null,void 0,o(415459))],["United States Minor Outlying Islands",()=>i.t(null,void 0,o(266635))],["Uruguay",()=>i.t(null,void 0,o(931315))],["USA",()=>i.t(null,void 0,o(232240))],["Uzbekistan",()=>i.t(null,void 0,o(552979))],["Vanuatu",()=>i.t(null,void 0,o(105598))],["Venezuela",()=>i.t(null,void 0,o(250614))],["Vietnam",()=>i.t(null,void 0,o(403944))],["Virgin Islands (British)",()=>i.t(null,void 0,o(960580))],["Virgin Islands (U.S.)",()=>i.t(null,void 0,o(914315))],["Wallis and Futuna",()=>i.t(null,void 0,o(57056))],["Western Sahara",()=>i.t(null,void 0,o(75648))],["Yemen",()=>i.t(null,void 0,o(510588))],["Zambia",()=>i.t(null,void 0,o(652361))],["Zimbabwe",()=>i.t(null,void 0,o(42386))]]) },982367:(e,t,o)=>{"use strict";function i(e,t){return e<=t}function r(e,t){return e>=t}function n(e,t,o){return Math.min(Math.max(e,t),o)}function s(e){return e<0?-1:e>0?1:0}function l(e){if(e<0)return!1;if(e>1e18)return!0;for(let t=e;t>1;t/=10)if(t%10!=0)return!1;return!0}function a(e,t,o){return t-e<=o}function c(e,t,o){return Math.abs(e-t)t?1:0}function h(e,t=u){if(e.length<1)throw Error("array is empty");let o=e[0];for(let i=0;i0&&(o=e[i]);return o}function g(e){const t=Math.ceil(e);return t%2!=0?t-1:t}function _(e){return e>0?Math.floor(e):Math.ceil(e)}o.r(t),o.d(t,{ceiledEven:()=>g,clamp:()=>n,defComparator:()=>u,equal:()=>c,greaterOrEqual:()=>a,greaterThan:()=>r,isBaseDecimal:()=>l,lessThan:()=>i,log10:()=>d,max:()=>p,min:()=>h,sign:()=>s,toInt:()=>_})},291066:(e,t,o)=>{"use strict";function i(e,t){return!!t?.includes("cfd")&&["commodity","futures","index","stock","fund"].includes(e)}function r(e,t){return"stock"===e&&void 0!==t&&!t.includes("cfd")}o.d(t,{isCFDSymbol:()=>i,isStockSymbol:()=>r})},432438:(e,t,o)=>{"use strict";function i(e){e.dispatchEvent(new CustomEvent("roving-tabindex:main-element"))}function r(e){e.dispatchEvent(new CustomEvent("roving-tabindex:secondary-element"))}o.d(t,{becomeMainElement:()=>i,becomeSecondaryElement:()=>r})},887208:(e,t,o)=>{"use strict";o.d(t,{mapKeyCodeToDirection:()=>c,navigationOrderComparator:()=>n,queryFocusableElements:()=>l,queryTabbableElements:()=>s,updateTabIndexes:()=>a});var i=o(969680),r=o(355734);function n(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function s(e){return Array.from(e.querySelectorAll('button:not([disabled]):not([aria-disabled]):not([tabindex="-1"]), [tabindex]:not([disabled]):not([aria-disabled]):not([tabindex="-1"])')).filter((0,r.createScopedVisibleElementFilter)(e))}function l(e){return Array.from(e.querySelectorAll('button:not([disabled]):not([aria-disabled="true"]):not([aria-disabled=""]), [tabindex]:not([disabled]):not([aria-disabled="true"]):not([aria-disabled=""])')).filter((0,r.createScopedVisibleElementFilter)(e))}function a(){window.dispatchEvent(new CustomEvent("keyboard-navigation-activation",{bubbles:!0}))}function c(e){const t=(0,i.isRtl)();switch(e){case 38:return"blockPrev";case 40:return"blockNext";case 37:return t?"inlineNext":"inlinePrev";case 39:return t?"inlinePrev":"inlineNext";default:return null}}},169707:(e,t,o)=>{"use strict";o.d(t,{SidebarCustomScroll:()=>u});var i=o(778785),r=o(547465),n=o(318557),s=o(913950),l=o(404573);const a=[()=>navigator.userAgent.includes("Win")&&navigator.userAgent.includes("Chrome")?1/window.devicePixelRatio:1,()=>16,(e=()=>0)=>.8*(e()??0)];o(506438);var c=o(54661);const d={headerHeight:0,additionalClass:"",alwaysVisible:!1,showBottomShadow:!0,scrollMarginTop:1,bubbleScrollEvent:!1};class u{ constructor(e,t,o={}){if(this.scrolled=new r.Delegate,this.scrolltoend=new r.Delegate,this.scrolltostart=new r.Delegate,this.visibilityCallbacks=[],this._scrollTargetTop=0,this._scrollSpeed=40,this._shadowOffset=10,this._shadowTop=null,this._shadowBottom=null,this._dragInitialized=!1,this._dragging=!1,this._draggable=null,this._atStart=!1,this._atEnd=!1,this._stickyBottom=null,this._animation=null,this._saved=null,this._options={...d,...o},this._wrapper=e,this._wrapper.classList.add(c.wrapper),this._content=t,this._headerHeight=this._options.headerHeight,this._scrollMarginTop=this._options.scrollMarginTop,this._scrollBar=document.createElement("div"),this._scrollBar.classList.add("sb-scrollbar","sb-scrollbar-body"),this._options.additionalClass&&this._scrollBar.classList.add(this._options.additionalClass),this._scrollBar.classList.toggle("active-always",this._options.alwaysVisible),this._scrollBarWrapper=document.createElement("div"),this._scrollBarWrapper.classList.add("sb-scrollbar-wrap"),this._touch=i.touch,this._touch)return this._content.style.position="relative",this._wrapper.classList.add(c.touch),void this._wrapper.addEventListener("scroll",(()=>this._onScroll()));this._wrapper.style.overflow="hidden",this._unsubscribe=(()=>{const e=()=>{this._dragging||(this._options.alwaysVisible||this._scrollBar.classList.add("active"),this._onScroll())},t=()=>{this._dragging||(this._options.alwaysVisible||this._scrollBar.classList.remove("active"),this._onScroll())},o=e=>{const t=e.target instanceof HTMLElement?e.target:null;if((!!!t?.closest(".ignore-horizontal-scroll")||e.deltaY)&&!e.defaultPrevented){const t=function(e,t=()=>({})){return{x:e.deltaX*a[e.deltaMode]((()=>t().width)),y:e.deltaY*a[e.deltaMode]((()=>t().height))}}(e,(()=>({height:this._wrapper.clientHeight}))).y;this.scroll(-t,1)||(e.stopPropagation(),e.preventDefault())}};return this._wrapper.addEventListener("mouseenter",e),this._wrapper.addEventListener("mouseleave",t),this._wrapper.addEventListener("wheel",o),()=>{this._wrapper.removeEventListener("mouseenter",e),this._wrapper.removeEventListener("mouseleave",t),this._wrapper.removeEventListener("wheel",o)}})(),!1!==this._options.showTopShadow&&(this._shadowTop=document.createElement("div"),this._shadowTop.classList.add("sb-inner-shadow","top","i-invisible"),this._wrapper.appendChild(this._shadowTop)),!1!==this._options.showBottomShadow&&(this._shadowBottom=document.createElement("div"),this._shadowBottom.classList.add("sb-inner-shadow"),this._wrapper.appendChild(this._shadowBottom)),this._shadowTop&&this._headerHeight&&(this._shadowTop.style.top=this._headerHeight-this._shadowOffset+"px"),this._wrapper.appendChild(this._scrollBarWrapper),this._scrollBarWrapper.appendChild(this._scrollBar),this._onScroll()}isTouch(){return this._touch}getScrollBar(){return this._scrollBar}initDraggable(){return this._dragInitialized||(this._draggable=new l.Draggable({axis:"y",source:this._scrollBar,containment:this._scrollBarWrapper,start:()=>{this._dragging=!0},stop:()=>{this._dragging=!1},drag:()=>{this.updateScroll()} }),this._dragInitialized=!0),this}updateScroll(){if(this._touch)return this;const e=Math.ceil((0,n.position)(this._scrollBar).top-this._scrollMarginTop-this._headerHeight),t=this.getContainerHeightWithoutHeader(),o=(0,n.outerHeight)(this._content),i=o-t-1;return t<=0||(this._scrollTargetTop=i<=0?this._headerHeight:Math.min(-e*o/t+this._headerHeight,this._headerHeight),e+(0,n.contentHeight)(this._scrollBar)+2>=t?this.scrollToEnd():(this._content.style.top=this._scrollTargetTop+"px",this._onScroll())),this}getContainerHeightWithoutHeader(){return this._wrapper.getBoundingClientRect().height-this._headerHeight}getContainerHeight(){return this._wrapper.getBoundingClientRect().height}getContentHeight(){return this._content.getBoundingClientRect().height}updateScrollBar(){if(this._touch)return this;const e=(0,n.position)(this._content).top,t=this.getContentHeight(),o=this.getContainerHeight(),i=this.getContainerHeightWithoutHeader(),r=1+this._headerHeight,s=i-2,l=(Math.abs(e)-this._headerHeight)*s/t,a=o*o/t;return this.isContentShort()?(this._scrollBar.classList.add("js-hidden"),this._wrapper.classList.remove("sb-scroll-active")):(this._scrollBar.classList.remove("js-hidden"),this._scrollBar.style.height=a+"px",this._scrollBar.style.top=r+l+"px",this._wrapper.classList.add("sb-scroll-active"),this.initDraggable()),this}scroll(e,t){const o=(0,n.position)(this._content).top,i=(0,n.outerHeight)(this._content)-this.getContainerHeightWithoutHeader()-1,r=t||this._scrollSpeed;return i<=0||(this._scrollTargetTop=Math.max(-i+this._headerHeight,Math.min(this._headerHeight,o+e*r)),this.setContentTop(this._scrollTargetTop),this._onScroll())}animateTo(e){if(this._touch)return this;const t=(0,n.outerHeight)(this._content)-this.getContainerHeightWithoutHeader()-1;if(t<=0)return!0;this._scrollTargetTop=Math.max(-t+this._headerHeight,Math.min(this._headerHeight,-e)),this._animation&&this._animation.stop(),this._animation=(0,s.doAnimate)({duration:500,from:parseFloat(getComputedStyle(this._content).top),to:this._scrollTargetTop,onStep:(e,t)=>{this._content.style.top=t+"px"},onComplete:()=>{this._onScroll()}})}resize(){const e=(0,n.outerHeight)(this._content),t=(0,n.outerHeight)(this._wrapper);!this._options.vAlignBottom&&el&&e+o.areaHeighta?a-e-o.areaHeight:l-e}else"top"===o.position&&(c=l-e);return this.scroll(c,1),this._onScroll(),!1}scrollToEnd(){const e=(0,n.position)(this._content).top,t=(0,n.outerHeight)(this._content),o=(0,n.outerHeight)(this._wrapper),i=t>o?e+(o-(t+e))+1:1;return this.setContentTop(i),this._onScroll(),this}scrollToStart(){return this.setContentTop(this._headerHeight),this._onScroll(),this}currentPosition(){return Math.round((0,n.position)(this._content).top)}atStart(){return Math.round((0,n.position)(this._content).top)>=this._headerHeight}atEnd(e){"number"==typeof e&&isFinite(e)||(e=0);const t=Math.round((0,n.position)(this._content).top),o=Math.floor((0,n.outerHeight)(this._content)),i=Math.floor((0,n.outerHeight)(this._wrapper));return o-Math.abs(t)-1<=i+e}checkContentVisibility(){this._onContentVisible()}subscribeToContentVisible(e,t,o){this.visibilityCallbacks.push({id:e,element:t,callback:o})}triggerVisibilityCallbacks(e){this._onContentVisible(e)}save(){return this._saved={top:(0,n.position)(this._content).top,height:(0,n.outerHeight)(this._content)},this}restore(){if(this._saved){if(this._saved.top===(0,n.position)(this._content).top&&this._saved.height===(0,n.outerHeight)(this._content))return this._saved=null,this;this._options.vAlignBottom&&(this._saved.top-=(0,n.outerHeight)(this._content)-this._saved.height,this._saved.top>this._headerHeight&&(this._saved.top=this._headerHeight)),this.setContentTop(this._saved.top),this._saved=null,this._onScroll(!0)}return this}setContentTop(e){return this._touch?this._options.vAlignBottom&&(0,n.outerHeight)(this._content)<(0,n.outerHeight)(this._wrapper)?(this._wrapper.style.overflowY="visible",this._content.style.position="absolute",this._content.style.bottom="0px"):(this._content.style.position="relative",this._content.style.position="auto",this._wrapper.style.overflowY="auto",this._wrapper.scrollTop=-e):this._content.style.top=e+"px",this}isContentShort(){return this.getContentHeight()<=this.getContainerHeightWithoutHeader()}destroy(){this._animation&&this._animation.stop(),this._scrollBarWrapper&&this._scrollBarWrapper.remove(),this._shadowBottom&&this._shadowBottom.remove(),this._shadowTop&&this._shadowTop.remove(),this._draggable&&(this._draggable.destroy(),this._draggable=null),this._content.style.cssText="",this._wrapper.style.cssText="",this._unsubscribe?.()}_onScroll(e){this._touch||(this._content.style.bottom="auto"),this.scrolled.fire(),this._dragging&&!0!==e||this.updateScrollBar();const t=this.atStart(),o=this.atEnd();return this._shadowTop&&this._shadowTop.classList.toggle("i-invisible",!!t),this._shadowBottom&&this._shadowBottom.classList.toggle("i-invisible",!!o),this._onContentVisible(),!this._atStart&&t?(this._atStart=!0,this.scrolltostart.fire()):this._atStart&&!t&&(this._atStart=!1),!this._atEnd&&o?(this._atEnd=!0,this.scrolltoend.fire()):this._atEnd&&!o&&(this._atEnd=!1),this._options.vAlignBottom&&(this._stickyBottom=(0,n.outerHeight)(this._content)-Math.abs((0,n.position)(this._content).top)-(0, n.outerHeight)(this._wrapper)),(this._atStart||this._atEnd)&&("function"==typeof this._options.bubbleScrollEvent?Boolean(this._options.bubbleScrollEvent()):Boolean(this._options.bubbleScrollEvent))}_contentIsVisible(e){return(0,n.position)(e.element).top>-1*this.currentPosition()}_onContentVisible(e){if(!this.visibilityCallbacks.length)return;const t=e||this._contentIsVisible.bind(this),o=[],i=this.visibilityCallbacks.filter(((e,i)=>{if(!this._content.contains(e.element))return!1;const r=t(e);return r&&o.push(i),!r}));o.forEach((t=>{this.visibilityCallbacks[t].callback(!!e)})),this.visibilityCallbacks=i}}},296538:(e,t,o)=>{"use strict";o.d(t,{allChartStyles:()=>n});var i=o(931924);const r=(0,o(638456).onWidget)();function n(){return function(){const e=[0,1,9,13,2,14,15,3,16,10];return e.push(12),r||e.push(17),r||e.push(18),r||e.push(20),r||e.push(19),e}().concat(function(){const e=[8];return i.enabled("japanese_chart_styles")&&(e.push(4,7,5,6),e.push(11)),e}())}},660603:(e,t,o)=>{"use strict";var i;o.d(t,{ColorType:()=>i}),function(e){e.Solid="solid",e.Gradient="gradient"}(i||(i={}))},477786:(e,t,o)=>{"use strict";o.d(t,{Interval:()=>d,ResolutionKind:()=>n,SpecialResolutionKind:()=>s,isHour:()=>h});const i=/^(\d*)([TSHDWMR])$/,r=/^(\d+)$/;var n,s;!function(e){e.Ticks="ticks",e.Seconds="seconds",e.Minutes="minutes",e.Days="days",e.Weeks="weeks",e.Months="months",e.Range="range",e.Invalid="invalid"}(n||(n={})),function(e){e.Hours="hours"}(s||(s={}));const l={};l[n.Ticks]=1e3,l[n.Seconds]=1e3,l[n.Minutes]=60*l[n.Seconds],l[n.Days]=1440*l[n.Minutes],l[n.Weeks]=7*l[n.Days];const a={T:n.Ticks,S:n.Seconds,D:n.Days,W:n.Weeks,M:n.Months,R:n.Range},c=new Set([n.Ticks,n.Seconds,n.Minutes]);class d{constructor(e,t){this._kind=n.Invalid,this._multiplier=0,e!==n.Invalid&&t>0&&(this._kind=e,this._multiplier=t)}kind(){return this._kind}guiKind(){return this.isMinuteHours()?s.Hours:this._kind}multiplier(){return this._multiplier}isValid(){return this.kind()!==n.Invalid&&this.multiplier()>0}isDWM(){return this.isValid()&&!this.isRange()&&!this.isIntraday()&&!this.isTicks()}isIntraday(){const e=c.has(this.kind());return this.isValid()&&e}isSeconds(){return this.kind()===n.Seconds}isMinutes(){return this.kind()===n.Minutes}isMinuteHours(){return this.kind()===n.Minutes&&h(this.multiplier())}isDays(){return this.kind()===n.Days}isWeeks(){return this.kind()===n.Weeks}isMonths(){return this.kind()===n.Months}isRange(){return this.kind()===n.Range}isTicks(){return this.kind()===n.Ticks}is1Tick(){return this.isTicks()&&1===this.multiplier()}isTimeBased(){return!this.isRange()}letter(){return this.isValid()&&this.kind()!==n.Minutes?this.kind()[0].toUpperCase():""}value(){return this.isValid()?this.kind()===n.Minutes?this.multiplier()+"":this.multiplier()+this.letter():""}isEqualTo(e){if(!(e instanceof d))throw new Error("Argument is not an Interval");return!(!this.isValid()||!e.isValid())&&(this.kind()===e.kind()&&this.multiplier()===e.multiplier())}inMilliseconds(e=Date.now()){if(!this.isValid()||this.isRange())return NaN ;if(this.isMonths()){const t=new Date(e);t.setUTCMonth(t.getUTCMonth()+(this.multiplier()||1));return+t-e}const t=this.multiplier();return l[this.kind()]*t}static isEqual(e,t){return e===t||d.parse(e).isEqualTo(d.parse(t))}static parseExt(e){e=(e+"").toUpperCase().split(",")[0];let t=i.exec(e);return null!==t?"H"===t[2]?{interval:new d(n.Minutes,60*u(t[1])),guiResolutionKind:s.Hours}:{interval:new d(a[t[2]],u(t[1])),guiResolutionKind:a[t[2]]}:(t=r.exec(e),null!==t?{interval:new d(n.Minutes,u(t[1])),guiResolutionKind:n.Minutes}:{interval:new d(n.Invalid,0),guiResolutionKind:n.Invalid})}static parse(e){return d.parseExt(e).interval}static kind(e){return d.parse(e).kind()}static isValid(e){return d.parse(e).isValid()}static isDWM(e){return d.parse(e).isDWM()}static isIntraday(e){return d.parse(e).isIntraday()}static isSeconds(e){return d.parse(e).isSeconds()}static isMinutes(e){return d.parse(e).isMinutes()}static isMinuteHours(e){return d.parse(e).isMinuteHours()}static isDays(e){return d.parse(e).isDays()}static isWeeks(e){return d.parse(e).isWeeks()}static isMonths(e){return d.parse(e).isMonths()}static isRange(e){return d.parse(e).isRange()}static isTicks(e){return d.parse(e).isTicks()}static isTimeBased(e){return d.parse(e).isTimeBased()}static normalize(e){const t=d.parse(e);return t.isValid()?t.value():null}}function u(e){return 0===e.length?1:parseInt(e,10)}function h(e){return e>=60&&!(e%60)}},506649:(e,t,o)=>{"use strict";o.d(t,{combineProperty:()=>r});var i=o(781567);function r(e,...t){const o=()=>e(...t.map((e=>e.value()))),r=(0,i.createPrimitiveProperty)(o()),n=()=>r.setValue(o()),s={};for(const e of t)e.subscribe(s,n);return r.destroy=()=>{t.forEach((e=>e.unsubscribeAll(s))),t.forEach((e=>e.release()))},r}},288789:(e,t,o)=>{"use strict";o.d(t,{combineProperty:()=>s.combineProperty,createWVFromGetterAndSubscription:()=>i.createWVFromGetterAndSubscription,createWVFromGetterAndSubscriptions:()=>r.createWVFromGetterAndSubscriptions,createWVFromProperty:()=>n.createWVFromProperty});var i=o(900210),r=o(582441),n=o(720727);o(781567);var s=o(506649)},900210:(e,t,o)=>{"use strict";o.d(t,{createWVFromGetterAndSubscription:()=>r});var i=o(820028);function r(e,t){const o=new i.WatchedValue(e()),r={};t.subscribe(r,(()=>{o.setValue(e())}));return o.readonly().spawn((()=>t.unsubscribeAll(r)))}},582441:(e,t,o)=>{"use strict";o.d(t,{createWVFromGetterAndSubscriptions:()=>r});var i=o(820028);function r(e,t){const o=new i.WatchedValue(e()),r={};t.forEach((t=>t.subscribe(r,(()=>{o.setValue(e())}))));return o.readonly().spawn((()=>t.forEach((e=>e.unsubscribeAll(r)))))}},720727:(e,t,o)=>{"use strict";o.d(t,{createWVFromProperty:()=>r});var i=o(900210);function r(e){return(0,i.createWVFromGetterAndSubscription)((()=>e.value()),e)}},218778:(e,t,o)=>{"use strict";function i(e){if(!e)return"";if(["NYSE ARCA & MKT","AMEX"].includes(e))return"NYSE Arca";if(["Cboe BZX"].includes(e))return"Cboe One";if(["FTSEST"].includes(e))return"FTSE ST";const t=/^(CME|COMEX|CBOT|NYMEX)_MINI$/.exec(e);return null!==t?t[1]:e}o.d(t,{ redefineExchangeName:()=>i})},388741:(e,t,o)=>{"use strict";o.d(t,{actualSymbol:()=>me,chartStyleStudyId:()=>q,createSeriesFormatter:()=>G,displayedSymbolExchange:()=>_e,displayedSymbolName:()=>ge,extractLineToolSymbolFromSymbolInfo:()=>ce,extractSymbolNameFromSymbolInfo:()=>ae,getChartStyleByResolution:()=>H,getDefaultStyle:()=>V,getLastUsedRawDataStyle:()=>W,getLastUsedSingleValueBasedStyle:()=>O,getLastUsedStyle:()=>N,getSeriesDisplayErrorWV:()=>Me,getSeriesPriceFormattingState:()=>z,getSourceForEconomySymbol:()=>he,getSymbolDelaySeconds:()=>Ee,getSymbolExchange:()=>ke,getTranslatedChartStyleName:()=>T,hasVolume:()=>Se,isCloseBasedSymbol:()=>ye,isConvertedToOtherCurrency:()=>Z,isConvertedToOtherUnit:()=>oe,isEconomicSymbol:()=>Ce,isFutureContinuousSymbolWithBackajustment:()=>xe,isFuturesContractSymbol:()=>Te,isMeasureUnitSymbol:()=>be,isPriceSourceStyle:()=>j,isRangeBasedStyle:()=>E,isRangeStyle:()=>A,isRawDataStyle:()=>R,isRegularSessionId:()=>fe,isSingleValueBasedStyle:()=>P,isStyleSupportedForReplay:()=>I,isTimeBasedStyle:()=>B,isValidStyle:()=>D,measureUnitId:()=>we,preparePriceAxisProperties:()=>U,proSymbol:()=>ve,setLastUsedRawDataStyle:()=>$,setLastUsedStyle:()=>L,styleChangeRequiresRestart:()=>F,symbolBaseCurrency:()=>J,symbolCurrency:()=>K,symbolCurrencyConvertible:()=>X,symbolHasEconomicEvents:()=>le,symbolHasElectronicSession:()=>ne,symbolHasPreOrPostMarket:()=>re,symbolHasSeveralSessions:()=>se,symbolOriginalCurrency:()=>Y,symbolOriginalUnit:()=>te,symbolTitle:()=>pe,symbolTitleSeparator:()=>ue,symbolToSaveInState:()=>de,symbolUnit:()=>ee,symbolUnitConvertibleGroupsIfExist:()=>ie});var i=o(444372),r=o(62802),n=o(638456),s=o(519073),l=o(870855),a=o(477786),c=o(89831),d=o(931924),u=o(51196),h=o(722652),p=o(291066),g=o(68777),_=o(288789),m=o(218778);const v=d.enabled("pay_attention_to_ticker_not_symbol"),f=d.enabled("uppercase_instrument_names"),y=d.enabled("charting_library_single_symbol_request"),b=d.enabled("use_ticker_on_symbol_info_update"),w=d.enabled("hide_object_tree_and_price_scale_exchange_label"),S=[4,5,6,7,8],C=[4,5,6,7,11],k=[0,1,9,19,2,14,15,3,16,10,8,12,13,18,17,20],x=[2,14,15,10,3,13,18];function T(e){return{0:i.t(null,void 0,o(527377)),1:i.t(null,void 0,o(745054)),2:i.t(null,void 0,o(903554)),14:i.t(null,void 0,o(409394)),15:i.t(null,void 0,o(869217)),3:i.t(null,void 0,o(534456)),16:i.t(null,void 0,o(99906)),9:i.t(null,void 0,o(913459)),10:i.t(null,void 0,o(259213)),12:i.t(null,void 0,o(498236)),13:i.t(null,void 0,o(655761)),4:i.t(null,void 0,o(188130)),7:i.t(null,void 0,o(743588)),5:i.t(null,void 0,o(383490)),6:i.t(null,void 0,o(276519)),11:i.t(null,void 0,o(855169)),8:i.t(null,void 0,o(863876)),17:i.t(null,void 0,o(292763)),18:i.t(null,void 0,o(617809)),19:i.t(null,void 0,o(193722)),20:i.t(null,void 0,o(383298))}[e]}function M(e){return-1!==S.indexOf(e)}function E(e){return-1!==C.indexOf(e)}function F(e,t){return!A(e)&&!A(t)&&!(e===t||!M(e)&&!M(t))}function A(e){return 11===e}function B(e){return-1!==k.indexOf(e)}function I(e){return 8!==e&&17!==e&&18!==e&&20!==e&&B(e)}function D(e){ return E(e)||B(e)}function P(e){switch(e){case 3:case 10:case 2:case 14:case 15:case 13:return!0;default:return!1}}function R(e){return!l.SYMBOL_STRING_DATA[e]}function L(e,t){D(e)&&(11!==e&&r.setValue("chart.lastUsedStyle",e),R(e)&&$(e),ye(t)&&P(e)&&r.setValue("chart.lastUsedSingleValueBasedStyle",e))}function $(e){r.setValue("chart.rawDataStyle",e)}function N(){const e=r.getInt("chart.lastUsedStyle");return void 0===e?1:e}function O(){const e=r.getInt("chart.lastUsedSingleValueBasedStyle");return void 0===e?14:e}function W(){return r.getInt("chart.rawDataStyle",1)}function V(e){return e?11:1}function H(e,t){const o=A(t),i=a.Interval.isRange(e);return!o&&i?V(!0):o&&!i?V(!1):t}function q(e,t){const o=l.SYMBOL_STRING_DATA[e];return void 0===o?null:t?`${o.type}-${o.basicStudyVersion}`:o.type}function U(e){const t=e.priceAxisProperties,o=t.lockScale.value(),i=6===e.style.value();(i||o)&&(t.log.setValue(!1),t.percentage.setValue(!1)),t.logDisabled.setValue(!(!i&&!o)),t.percentageDisabled.setValue(!(!i&&!o))}function j(e){return x.includes(e)}function z(e,t="default",o=!1){let i,r,n,s=100,l=1;if("default"===t)null!=e&&(({pricescale:s,minmov:l,minmove2:r,fractional:i}=e),n=e.variable_tick_size||void 0);else{let e=t.split(",");3!==e.length&&(e=["100","1","false"]),s=parseInt(e[0]),l=parseInt(e[1]),i="true"===e[2]}return o&&(l=1),{priceScale:s,minMove:l,fractional:i,minMove2:r,variableMinTick:n,ignoreMinMove:o}}function G(e,t,o=!1){const{priceScale:i,minMove:r,fractional:n,minMove2:s,variableMinTick:l}=z(e,t,o);if(null!=e){const a=e.format;if("default"===t&&"volume"===a)return new u.VolumeFormatter({precision:2});if("percent"===a)return new h.PercentageFormatter({priceScale:i,minMove:r,fractional:n,minMove2:s,variableMinTick:l,ignoreMinMove:o})}return new c.PriceFormatter({priceScale:i,minMove:r,fractional:n,minMove2:s,variableMinTick:l,ignoreMinMove:o})}function X(e){return null!==e&&"spread"!==e.type}function K(e,t,o){if(null===e)return null;const i=!t||o?e.currency_id:e.currency_code;return void 0===i||""===i||"pct"===i?null:i}function Y(e,t){const o=t?e.original_currency_code:e.original_currency_id;return"pct"===o?null:o??K(e,t)}function J(e){return e.base_currency_id||null}function Z(e){if(null===e||!X(e))return!1;const t=Y(e);return null!==t&&t!==K(e)}function Q(e,t){return t&&null!==e&&"spread"!==e.type}function ee(e,t){if(null===e||!t)return null;const o=e.unit_id;return void 0===o||""===o?null:o}function te(e,t){return t?e.original_unit_id||ee(e,t):null}function oe(e,t){return!(null===e||!Q(e,t))&&(void 0!==e.original_unit_id&&e.original_unit_id!==e.unit_id)}function ie(e,t){return null!==e&&Q(e,t)?e.unit_conversion_types||null:[]}function re(e){return null!==e&&void 0!==e.subsessions&&e.subsessions.some((e=>"premarket"===e.id||"postmarket"===e.id))}function ne(e){return null!==e&&void 0!==e.subsessions&&(e.subsessions.some((e=>"regular"===e.id))&&e.subsessions.some((e=>"us_regular"===e.id)))}function se(e){return null!==e&&void 0!==e.subsessions&&e.subsessions.filter((e=>!e.private)).length>1}function le(e){ return null!==e&&("forex"===e.type||(0,p.isCFDSymbol)(e.type,e.typespecs)||(0,s.hasCryptoTypespec)(e.typespecs||[]))}function ae(e,t,o,i){let r=e&&(o&&e.pro_name||e.full_name||e.name);return y&&t?r=t:(b||!i&&v)&&e&&e.ticker&&(r=e.ticker),f&&r&&(r=r.toUpperCase()),r}function ce(e,t){return ae(e,null,!0,!0)||t}function de(e,t){return e?e.ticker??e.pro_name??t:t}const ue="·";function he(e,t){return Ce(e)?e.source2?.description??null:null}function pe(e,t,o="exchange"){const i=he(e)??e[o];return t||w?e.name:`${e.name} ${ue} ${i}`}function ge(e){let t=e&&(function(e){return"futures"===e.type&&e.front_contract||null}(e)||e.name)||"";return t.length>40&&(t=t.substring(0,37)+"..."),t.trim()}function _e(e){const t=e?e.exchange:"";return f?t.toUpperCase():t}function me(e,t){return null!==e?e.full_name:t}function ve(e,t){return e?.pro_name??t}function fe(e,t){return["stock","fund","index","dr"].includes(t.type)&&"regular"===e||"futures"===t.type&&"us_regular"===e}function ye(e){return"c"===e?.visible_plots_set}function be(e){return null!==e&&("unit"===e.measure&&null!==we(e))}function we(e){return e?.value_unit_id??null}function Se(e){return"ohlcv"===e.visible_plots_set}function Ce(e){return null!==e&&"economic"===e.type}function ke(e){const t=he(e);if(null!==t)return t;return(0,n.onWidget)()||"forex"===e.type?e.exchange:(0,m.redefineExchangeName)(e.listed_exchange)}function xe(e){return null!==e&&"futures"===e.type&&Boolean(e.has_backadjustment&&e.typespecs?.includes("continuous"))}function Te(e){return null!==e&&"futures"===e.type&&!Boolean(e.typespecs?.includes("continuous"))}function Me(e){return(0,g.combine)(((t,o)=>{switch(t){case 4:{const t=e.seriesErrorMessage();return null!==t&&("resolution_not_entitled"===t||"custom_resolution"===t||"seconds_not_entitled"===t||"ticks_not_entitled"===t||t.startsWith("study_not_auth:"))?null:{type:"invalid_symbol"}}case 13:{const t=e.seriesErrorMessage();return null===t?null:{type:"calculations_error",errorMessage:t}}case 14:{const t=e.unsupportedResolutionState().value();return null===t?null:{type:"unsupported_resolution",reason:t.reason}}case 1:case 2:return null;default:if(o)return{type:"no_data"}}return null}),e.statusWV().weakReference(),(0,_.createWVFromGetterAndSubscription)((()=>!e.bars().size()&&!e.isInReplay().value()),e.dataEvents().dataUpdated()).ownership(),(0,_.createWVFromGetterAndSubscription)((()=>({})),e.model().onChartThemeLoaded()).ownership())}function Ee(e){return Math.max(0,e?.delay??0)}},256225:(e,t,o)=>{o(778785).setClasses();var i=o(709903).whenDocumentReady,r=o(437861).handleTVLinksClick;i((()=>{r()}))},969913:(e,t,o)=>{"use strict";o(256225),o(779893);var i=o(673747),r=o(62802),n=o.n(r),s=(o(142492),o(686962),o(650151)),l=o(650401),a=o(351079);var c=o(952598);async function d(e,t,i,r,n={}){const d=n.isSheriffDisabled?[]:await(0,l.getWidgetSheriffActions)(),u=d.includes(c.KnownAction.LargeTradeLogo),h=function(e){ return["crypto-coins-heatmap","forex-cross-rates","market-overview","symbol-overview","market-quotes","stock-heatmap","screener","forex-heat-map","crypto-mkt-screener","events","hotlists"].includes(e)}(t),p=u&&h?"large_trade":void 0,g=await async function(e,t,i,r){if("lentaru"===e){const{getLentaCopyrightData:e}=await Promise.all([o.e(90431),o.e(1523)]).then(o.bind(o,466672));return e()}if("cmoneycomtw"===e){const{getCmoneycomtwCopyrightData:e}=await Promise.all([o.e(47597),o.e(99578),o.e(42091)]).then(o.bind(o,20922));return e(t,i)}if("new"===r){const{getTradingViewCopyrightData:e}=await Promise.all([o.e(88380),o.e(36228)]).then(o.bind(o,703094));return e(t,i)}if("with_border"===r){const{getTradingViewCopyrightData:e}=await Promise.all([o.e(62764),o.e(37753)]).then(o.bind(o,513316));return e(t,i)}if("large_trade"===r){const{getTradingViewCopyrightData:e}=await Promise.all([o.e(52431),o.e(47259)]).then(o.bind(o,203515));return e(t,i)}{const{getTradingViewCopyrightData:e}=await Promise.all([o.e(47597),o.e(53259)]).then(o.bind(o,88136));return e(t,i)}}(n.customer,n.locale,function(e,t){return e&&e.utm_campaign&&(e.utm_campaign+=`-${t}`),e}(r,"logo"),p),_=p??n.copyrightOptions?.mode??"small_old";(0,s.ensureNotNull)(e).appendChild((0,a.createCopyrightLabel)({sheriffOptions:d,snapToEdge:i,...n.copyrightOptions,...g,mode:_}))}var u=o(283834);o(902532),o(518108),o(792404);var h=o(778785);o(779893);var p=o(444372),g=o(554620);var _=o(778003),m=o(89831),v=o(51196),f=o(722652),y=o(909456);var b=o(976531);const w=new RegExp(/0+$/);class S extends m.PriceFormatter{constructor(e={}){if(void 0!==e.fractional)throw new Error("Fractional should not be used with this formatter");super(e)}format(e,t={}){const{signPositive:o,tailSize:i,ignoreLocaleNumberFormat:r}=t,n=e.toString(),s=(0,b.getNumberFormat)(this._ignoreLocaleNumberFormat||r);if(-1!==n.indexOf("e-")){const e=n.split("e-"),t=Number(e[0]),o=Number(e[1]);return this._fractionalLength&&o>this._fractionalLength+1?`0${s.decimalSign}00`:`${t<0?"−":""}0${s.decimalSign}${"0".repeat(o-1)}${Math.abs(Math.round(t))}`}{let t=super.format(e,{signPositive:o,tailSize:i,ignoreLocaleNumberFormat:r});t.includes("e")||(t=t.replace(w,""));const[n,l]=t.split(s.decimalSign);return l&&l.length>=2?t:`${n}${s.decimalSign}${((l||"")+"00").substring(0,2)}`}}}var C=o(719240),k=o(904207),x=o(696788),T=o(760863);const M=(0,o(95419).getScreenerIntervals)(),E="1D";function F(e){return M.find((t=>t.id===e))}function A(e,t){if(e=function(e){if(Xe[e]&&Xe[e].alias)return Xe[e].alias;return e}(e),/(change|change_abs).\d{1,3}/.test(e)||Xe[e]&&Xe[e].useDefaultTimeIntervalFromFieldName)return e.replace(".","|");if(!t||t===E||Xe[e]&&Xe[e].useDefaultTimeInterval)return e;const o=F(t);if(o){const t=o.value||"";if(Xe[e]&&Xe[e].customResolutions){const o=Xe[e].customResolutions;if(t&&-1!==o.indexOf(t.toString()))return`${e}|${t}`}}return e}var B=o(368270),I=o(999102);const D={common:["common","foreign-issuer"],stock:["common"],dr:["","foreign-issuer"],preferred:["preferred"],fund:["fund"],structured:[""],spot:["spot"], futures:["futures"]},P={closedend:["closedend"],etf:["etf","etf,odd","etf,otc","etf,cfd"],etn:["etn"],mutual:["mutual"],reit:["reit","reit,cfd","trust,reit"],trust:["trust"],unit:["unit"]},R={perpetual:["perpetual"]};function L(e){let t=[],o=[];if(Array.isArray(e))for(const i of e){const[e,r]=N(i);t=[...t,...e],o=[...o,...r]}else[t,o]=N(e);return o=[...new Set(o)],t.length&&o.length?[O("type",t),O("subtype",o)]:t.length?[O("type",t)]:[O("subtype",o)]}function $(e){const t=[],o=[].concat(e);for(const e of o)W(e)&&t.push({left:"type",operation:"in_range",right:D[e]}),V(e)&&t.push({left:"typespecs",operation:"has",right:R[e]});return{filter2Flag:!0,filter2AndPart:t,filter:[]}}function N(e){let t=[],o=[];return"etn"===e?[["structured"],["etn"]]:(!function(e){return e in P}(e)?!function(e){return"common"===e||"preferred"===e||"stock"===e}(e)?W(e)?(t=[e],o=D[e]):t=[e]:(t.push("stock"),o=D[e]):(t.push("fund"),o=P[e]),[t,o])}function O(e,t){const o=(0,I.uniq)(t),i=1===o.length;return{left:e,operation:i?"equal":"in_range",right:i?o[0]:o}}function W(e){return e in D}function V(e){return e in R}var H=o(309887);const q={name:[p.t(null,void 0,o(905791)),p.t(null,void 0,o(905791))],description:[p.t(null,void 0,o(178734)),p.t(null,void 0,o(178734))],country:[p.t(null,void 0,o(899937)),p.t(null,void 0,o(899937))],type:[p.t(null,void 0,o(356994)),p.t(null,void 0,o(356994))],after_tax_margin:[p.t(null,void 0,o(341051)),p.t(null,void 0,o(134673))],average_volume:[p.t(null,void 0,o(628963)),p.t(null,void 0,o(117230))],average_volume_30d_calc:[p.t(null,void 0,o(268637)),p.t(null,void 0,o(807239))],average_volume_60d_calc:[p.t(null,void 0,o(223169)),p.t(null,void 0,o(125190))],average_volume_90d_calc:[p.t(null,void 0,o(788255)),p.t(null,void 0,o(914334))],basic_eps_net_income:[p.t(null,void 0,o(489047)),p.t(null,void 0,o(736802))],beta_1_year:[p.t(null,void 0,o(169390)),p.t(null,void 0,o(36761))],beta_3_year:[p.t(null,void 0,o(851574)),p.t(null,void 0,o(671421))],beta_5_year:[p.t(null,void 0,o(89590)),p.t(null,void 0,o(395916))],candlestick:[p.t(null,{context:"candlestick_pattern"},o(928137)),p.t(null,{context:"candlestick_pattern"},o(928137))],current_ratio:[p.t(null,void 0,o(766730)),p.t(null,void 0,o(107179))],debt_to_assets:[p.t(null,void 0,o(163207)),p.t(null,void 0,o(163207))],debt_to_equity:[p.t(null,void 0,o(800007)),p.t(null,void 0,o(239308))],dividends_paid:[p.t(null,void 0,o(938878)),p.t(null,void 0,o(920332))],dividends_per_share_fq:[p.t(null,void 0,o(163627)),p.t(null,void 0,o(373181))],dividends_yield:[p.t(null,void 0,o(883408)),p.t(null,void 0,o(864771))],dividend_yield_recent:[p.t(null,void 0,o(883408)),p.t(null,void 0,o(864771))],dps_common_stock_prim_issue_fy:[p.t(null,void 0,o(712578)),p.t(null,void 0,o(411231))],earnings_per_share_basic_ttm:[p.t(null,void 0,o(519391)),p.t(null,void 0,o(986366))],earnings_per_share_diluted_ttm:[p.t(null,void 0,o(748754)),p.t(null,void 0,o(748754))],earnings_per_share_forecast_next_fq:[p.t(null,void 0,o(39889)),p.t(null,void 0,o(603058))], earnings_per_share_fq:[p.t(null,void 0,o(812577)),p.t(null,void 0,o(812577))],earnings_release_date:[p.t(null,void 0,o(352969)),p.t(null,void 0,o(352969))],earnings_release_next_date:[p.t(null,void 0,o(167826)),p.t(null,void 0,o(167826))],ebitda:[p.t(null,void 0,o(740969)),p.t(null,void 0,o(226413))],enterprise_value_ebitda_ttm:[p.t(null,void 0,o(288529)),p.t(null,void 0,o(501179))],enterprise_value_fq:[p.t(null,void 0,o(661975)),p.t(null,void 0,o(822893))],exchange:[p.t(null,void 0,o(786905)),p.t(null,void 0,o(786905))],free_cash_flow_margin_fy:[p.t(null,void 0,o(441415)),p.t(null,void 0,o(441415))],free_cash_flow_margin_ttm:[p.t(null,void 0,o(829593)),p.t(null,void 0,o(829593))],gross_margin:[p.t(null,void 0,o(411483)),p.t(null,void 0,o(821671))],gross_profit:[p.t(null,void 0,o(778480)),p.t(null,void 0,o(778480))],gross_profit_fq:[p.t(null,void 0,o(221872)),p.t(null,void 0,o(221872))],index:[p.t(null,void 0,o(223051)),p.t(null,void 0,o(223051))],industry:[p.t(null,void 0,o(407727)),p.t(null,void 0,o(407727))],last_annual_eps:[p.t(null,void 0,o(2650)),p.t(null,void 0,o(2650))],last_annual_revenue:[p.t(null,void 0,o(545657)),p.t(null,void 0,o(355630))],long_term_capital:[p.t(null,void 0,o(239426)),p.t(null,void 0,o(239426))],market_cap_basic:[p.t(null,void 0,o(361460)),p.t(null,void 0,o(217839))],market_cap_calc:[p.t(null,void 0,o(361460)),p.t(null,void 0,o(217839))],market_cap_diluted_calc:[p.t(null,void 0,o(769911)),p.t(null,void 0,o(317812))],net_debt:[p.t(null,void 0,o(76272)),p.t(null,void 0,o(27693))],net_income:[p.t(null,void 0,o(477692)),p.t(null,void 0,o(364491))],number_of_employees:[p.t(null,void 0,o(715223)),p.t(null,void 0,o(731116))],number_of_shareholders:[p.t(null,void 0,o(541984)),p.t(null,void 0,o(40908))],open_price:[p.t(null,void 0,o(351870)),p.t(null,void 0,o(16610))],operating_margin:[p.t(null,void 0,o(767772)),p.t(null,void 0,o(858851))],pre_tax_margin:[p.t(null,void 0,o(846426)),p.t(null,void 0,o(610956))],preferred_dividends:[p.t(null,void 0,o(709820)),p.t(null,void 0,o(329378))],prev_close_price:[p.t(null,void 0,o(764205)),p.t(null,void 0,o(363861))],price_52_week_high:[p.t(null,void 0,o(606619)),p.t(null,void 0,o(819159))],price_52_week_low:[p.t(null,void 0,o(65925)),p.t(null,void 0,o(357308))],price_book_ratio:[p.t(null,void 0,o(673639)),p.t(null,void 0,o(238173))],price_earnings_ttm:[p.t(null,void 0,o(809147)),p.t(null,void 0,o(371257))],price_percent_change_1_week:[p.t(null,void 0,o(794236)),p.t(null,void 0,o(421792))],price_percent_change_4_week:[p.t(null,void 0,o(994378)),p.t(null,void 0,o(250273))],price_percent_change_52_week:[p.t(null,void 0,o(918584)),p.t(null,void 0,o(979905))],price_revenue_ttm:[p.t(null,void 0,o(839605)),p.t(null,void 0,o(987202))],price_sales_ratio:[p.t(null,void 0,o(97257)),p.t(null,void 0,o(227203))],quick_ratio:[p.t(null,void 0,o(485571)),p.t(null,void 0,o(633399))],return_of_invested_capital_percent_ttm:[p.t(null,void 0,o(38840)),p.t(null,void 0,o(343773))],return_on_assets:[p.t(null,void 0,o(270789)),p.t(null,void 0,o(307859))], return_on_equity:[p.t(null,void 0,o(181306)),p.t(null,void 0,o(310165))],return_on_invested_capital:[p.t(null,void 0,o(156309)),p.t(null,void 0,o(343773))],revenue_per_employee:[p.t(null,void 0,o(674129)),p.t(null,void 0,o(137709))],sector:[p.t(null,void 0,o(99804)),p.t(null,void 0,o(99804))],submarket:[p.t(null,void 0,o(183913)),p.t(null,void 0,o(183913))],is_primary:[p.t(null,void 0,o(279362)),p.t(null,void 0,o(279362))],active_symbol:[p.t(null,void 0,o(597284)),p.t(null,void 0,o(597284))],eps_surprise_fq:[p.t(null,void 0,o(571858)),p.t(null,void 0,o(571858))],eps_surprise_percent_fq:[p.t(null,void 0,o(323939)),p.t(null,void 0,o(323939))],total_assets:[p.t(null,void 0,o(358964)),p.t(null,void 0,o(104760))],total_capital:[p.t(null,void 0,o(719353)),p.t(null,void 0,o(555440))],total_current_assets:[p.t(null,void 0,o(339010)),p.t(null,void 0,o(424391))],total_debt:[p.t(null,void 0,o(577126)),p.t(null,void 0,o(671507))],total_revenue:[p.t(null,void 0,o(307726)),p.t(null,void 0,o(278031))],total_liabilities_fy:[p.t(null,void 0,o(87517)),p.t(null,void 0,o(295707))],total_liabilities_fq:[p.t(null,void 0,o(220145)),p.t(null,void 0,o(532064))],total_shares_outstanding_fundamental:[p.t(null,void 0,o(96234)),p.t(null,void 0,o(288368))],volume:[p.t(null,void 0,o(937644)),p.t(null,{context:"study"},o(424261))],relative_volume:[p.t(null,void 0,o(963851)),p.t(null,void 0,o(297458))],relative_volume_at_time:[p.t(null,void 0,o(78742)),p.t(null,void 0,o(181743))],change_abs:[p.t(null,void 0,o(537276)),p.t(null,void 0,o(762888))],change:[p.t(null,void 0,o(923599)),p.t(null,void 0,o(335137))],"change.1":[p.t(null,void 0,o(413045)).format({resolution:p.t(null,void 0,o(120468))}),p.t(null,void 0,o(829761)).format({resolution:p.t(null,void 0,o(120468))})],"change_abs.1":[p.t(null,void 0,o(354557)).format({resolution:p.t(null,void 0,o(120468))}),p.t(null,void 0,o(152555)).format({resolution:p.t(null,void 0,o(120468))})],"change.5":[p.t(null,void 0,o(413045)).format({resolution:p.t(null,void 0,o(576515))}),p.t(null,void 0,o(829761)).format({resolution:p.t(null,void 0,o(576515))})],"change_abs.5":[p.t(null,void 0,o(354557)).format({resolution:p.t(null,void 0,o(576515))}),p.t(null,void 0,o(152555)).format({resolution:p.t(null,void 0,o(576515))})],"change.15":[p.t(null,void 0,o(413045)).format({resolution:p.t(null,void 0,o(208608))}),p.t(null,void 0,o(829761)).format({resolution:p.t(null,void 0,o(208608))})],"change_abs.15":[p.t(null,void 0,o(354557)).format({resolution:p.t(null,void 0,o(208608))}),p.t(null,void 0,o(152555)).format({resolution:p.t(null,void 0,o(208608))})],"change.60":[p.t(null,void 0,o(413045)).format({resolution:p.t(null,void 0,o(336157))}),p.t(null,void 0,o(829761)).format({resolution:p.t(null,void 0,o(336157))})],"change_abs.60":[p.t(null,void 0,o(354557)).format({resolution:p.t(null,void 0,o(336157))}),p.t(null,void 0,o(152555)).format({resolution:p.t(null,void 0,o(336157))})],"change.240":[p.t(null,void 0,o(413045)).format({resolution:p.t(null,void 0,o(690755))}),p.t(null,void 0,o(829761)).format({ resolution:p.t(null,void 0,o(690755))})],"change_abs.240":[p.t(null,void 0,o(354557)).format({resolution:p.t(null,void 0,o(690755))}),p.t(null,void 0,o(152555)).format({resolution:p.t(null,void 0,o(690755))})],"change.1W":[p.t(null,void 0,o(413045)).format({resolution:p.t(null,void 0,o(189696))}),p.t(null,void 0,o(829761)).format({resolution:p.t(null,void 0,o(189696))})],"change_abs.1W":[p.t(null,void 0,o(354557)).format({resolution:p.t(null,void 0,o(189696))}),p.t(null,void 0,o(152555)).format({resolution:p.t(null,void 0,o(189696))})],"change.1M":[p.t(null,void 0,o(413045)).format({resolution:p.t(null,void 0,o(333493))}),p.t(null,void 0,o(829761)).format({resolution:p.t(null,void 0,o(333493))})],"change_abs.1M":[p.t(null,void 0,o(354557)).format({resolution:p.t(null,void 0,o(333493))}),p.t(null,void 0,o(152555)).format({resolution:p.t(null,void 0,o(333493))})],currency:[p.t(null,void 0,o(79899)),p.t(null,void 0,o(79899))],pre_change:[p.t(null,void 0,o(796768)),p.t(null,void 0,o(353211))],post_change:[p.t(null,void 0,o(287719)),p.t(null,void 0,o(427921))],bid:[p.t(null,void 0,o(395506)),p.t(null,void 0,o(395506))],ask:[p.t(null,void 0,o(535928)),p.t(null,void 0,o(535928))],close:[p.t(null,void 0,o(862578)),p.t(null,void 0,o(862578))],open:[p.t(null,void 0,o(16610)),p.t(null,void 0,o(16610))],high:[p.t(null,void 0,o(778254)),p.t(null,void 0,o(778254))],low:[p.t(null,void 0,o(165318)),p.t(null,void 0,o(165318))],gap:[p.t(null,void 0,o(907188)),p.t(null,void 0,o(907188))],price_earnings_to_growth_ttm:[p.t(null,void 0,o(6284)),p.t(null,void 0,o(955588))],price_sales:[p.t(null,void 0,o(10684)),p.t(null,void 0,o(10684))],price_book_fq:[p.t(null,void 0,o(126853)),p.t(null,void 0,o(368565))],price_free_cash_flow_ttm:[p.t(null,void 0,o(929758)),p.t(null,void 0,o(461751))],float_shares_outstanding:[p.t(null,void 0,o(99768)),p.t(null,void 0,o(620734))],free_cash_flow:[p.t(null,void 0,o(844667)),p.t(null,void 0,o(823980))],total_shares_outstanding:[p.t(null,void 0,o(600368)),p.t(null,void 0,o(600368))],total_shares_diluted:[p.t(null,void 0,o(788149)),p.t(null,void 0,o(788149))],total_value_traded:[p.t(null,void 0,o(525729)),p.t(null,void 0,o(660954))],change_from_open:[p.t(null,void 0,o(778676)),p.t(null,void 0,o(776021))],change_from_open_abs:[p.t(null,void 0,o(643878)),p.t(null,void 0,o(953086))],"Perf.W":[p.t(null,void 0,o(890996)),p.t(null,void 0,o(122577))],"Perf.1M":[p.t(null,void 0,o(585212)),p.t(null,void 0,o(802933))],"Perf.3M":[p.t(null,void 0,o(263886)),p.t(null,void 0,o(514469))],"Perf.6M":[p.t(null,void 0,o(143196)),p.t(null,void 0,o(319848))],"Perf.Y":[p.t(null,void 0,o(823446)),p.t(null,void 0,o(201989))],"Perf.YTD":[p.t(null,void 0,o(807134)),p.t(null,void 0,o(598739))],"Perf.5Y":[p.t(null,void 0,o(738333)),p.t(null,void 0,o(166710))],"Perf.All":[p.t(null,void 0,o(605881)),p.t(null,void 0,o(963837))],"Volatility.W":[p.t(null,void 0,o(130049)),p.t(null,void 0,o(70280))],"Volatility.M":[p.t(null,void 0,o(335961)),p.t(null,void 0,o(25711))],"Volatility.D":[p.t(null,void 0,o(339226)),p.t(null,void 0,o(339226))], RSI:[p.t(null,void 0,o(444554)),p.t(null,void 0,o(230537))],RSI7:[p.t(null,void 0,o(722241)),p.t(null,void 0,o(901578))],ADX:[p.t(null,void 0,o(500627)),p.t(null,void 0,o(431739))],"ADX+DI":[p.t(null,void 0,o(184381)),p.t(null,{context:"Positive_Directional_Indicator_short_title"},o(267618))],"ADX-DI":[p.t(null,void 0,o(474190)),p.t(null,{context:"Negative_Directional_Indicator_short_title"},o(371511))],ATR:[p.t(null,void 0,o(755882)),p.t(null,void 0,o(798268))],Mom:[p.t(null,void 0,o(468222)),p.t(null,void 0,o(126687))],"High.All":[p.t(null,void 0,o(176382)),p.t(null,void 0,o(176382))],"Low.All":[p.t(null,void 0,o(399900)),p.t(null,void 0,o(399900))],"High.6M":[p.t(null,void 0,o(203345)),p.t(null,void 0,o(203345))],"Low.6M":[p.t(null,void 0,o(248280)),p.t(null,void 0,o(248280))],"High.3M":[p.t(null,void 0,o(121250)),p.t(null,void 0,o(121250))],"Low.3M":[p.t(null,void 0,o(692070)),p.t(null,void 0,o(692070))],"High.1M":[p.t(null,void 0,o(220974)),p.t(null,void 0,o(220974))],"Low.1M":[p.t(null,void 0,o(352739)),p.t(null,void 0,o(352739))],EMA5:[p.t(null,void 0,o(513079)).format({number:"5"}),p.t(null,void 0,o(755460))],EMA10:[p.t(null,void 0,o(513079)).format({number:"10"}),p.t(null,void 0,o(775556))],EMA20:[p.t(null,void 0,o(513079)).format({number:"20"}),p.t(null,void 0,o(559511))],EMA30:[p.t(null,void 0,o(513079)).format({number:"30"}),p.t(null,void 0,o(727577))],EMA50:[p.t(null,void 0,o(513079)).format({number:"50"}),p.t(null,void 0,o(30194))],EMA100:[p.t(null,void 0,o(513079)).format({number:"100"}),p.t(null,void 0,o(790009))],EMA200:[p.t(null,void 0,o(513079)).format({number:"200"}),p.t(null,void 0,o(302984))],SMA5:[p.t(null,void 0,o(141337)).format({number:"5"}),p.t(null,void 0,o(646917))],SMA10:[p.t(null,void 0,o(141337)).format({number:"10"}),p.t(null,void 0,o(524449))],SMA20:[p.t(null,void 0,o(141337)).format({number:"20"}),p.t(null,void 0,o(860806))],SMA30:[p.t(null,void 0,o(141337)).format({number:"30"}),p.t(null,void 0,o(869398))],SMA50:[p.t(null,void 0,o(141337)).format({number:"50"}),p.t(null,void 0,o(552362))],SMA100:[p.t(null,void 0,o(141337)).format({number:"100"}),p.t(null,void 0,o(769702))],SMA200:[p.t(null,void 0,o(141337)).format({number:"200"}),p.t(null,void 0,o(346186))],"Stoch.K":[p.t(null,void 0,o(855483)),p.t(null,void 0,o(261017))],"Stoch.D":[p.t(null,void 0,o(41433)),p.t(null,void 0,o(742226))],"MACD.macd":[p.t(null,void 0,o(526469)),p.t(null,void 0,o(13668))],"MACD.signal":[p.t(null,void 0,o(723610)),p.t(null,void 0,o(696697))],"Aroon.Up":[p.t(null,void 0,o(225828)),p.t(null,void 0,o(89574))],"Aroon.Down":[p.t(null,void 0,o(787752)),p.t(null,void 0,o(512527))],"BB.upper":[p.t(null,void 0,o(94146)),p.t(null,void 0,o(318995))],"BB.lower":[p.t(null,void 0,o(623567)),p.t(null,void 0,o(626701))],goodwill:[p.t(null,void 0,o(577557)),p.t(null,void 0,o(577557))],debt_to_equity_fq:[p.t(null,void 0,o(379111)),p.t(null,void 0,o(206617))],CCI20:[p.t(null,void 0,o(893733)),p.t(null,void 0,o(892566))],"DonchCh20.Upper":[p.t(null,void 0,o(693480)),p.t(null,void 0,o(319815))], "DonchCh20.Lower":[p.t(null,void 0,o(4705)),p.t(null,void 0,o(239696))],HullMA9:[p.t(null,void 0,o(831572)),p.t(null,void 0,o(405681))],AO:[p.t(null,void 0,o(510206)),p.t(null,void 0,o(327665))],"Pivot.M.Classic.S3":[p.t(null,void 0,o(540685)),p.t(null,void 0,o(649248))],"Pivot.M.Classic.S2":[p.t(null,void 0,o(403135)),p.t(null,void 0,o(42913))],"Pivot.M.Classic.S1":[p.t(null,void 0,o(223647)),p.t(null,void 0,o(523814))],"Pivot.M.Classic.Middle":[p.t(null,void 0,o(654807)),p.t(null,void 0,o(82730))],"Pivot.M.Classic.R1":[p.t(null,void 0,o(232015)),p.t(null,void 0,o(985668))],"Pivot.M.Classic.R2":[p.t(null,void 0,o(974467)),p.t(null,void 0,o(610101))],"Pivot.M.Classic.R3":[p.t(null,void 0,o(903801)),p.t(null,void 0,o(622247))],"Pivot.M.Fibonacci.S3":[p.t(null,void 0,o(4937)),p.t(null,void 0,o(649248))],"Pivot.M.Fibonacci.S2":[p.t(null,void 0,o(79698)),p.t(null,void 0,o(42913))],"Pivot.M.Fibonacci.S1":[p.t(null,void 0,o(990180)),p.t(null,void 0,o(523814))],"Pivot.M.Fibonacci.Middle":[p.t(null,void 0,o(628462)),p.t(null,void 0,o(82730))],"Pivot.M.Fibonacci.R1":[p.t(null,void 0,o(992200)),p.t(null,void 0,o(985668))],"Pivot.M.Fibonacci.R2":[p.t(null,void 0,o(530871)),p.t(null,void 0,o(610101))],"Pivot.M.Fibonacci.R3":[p.t(null,void 0,o(693496)),p.t(null,void 0,o(622247))],"Pivot.M.Camarilla.S3":[p.t(null,void 0,o(142703)),p.t(null,void 0,o(649248))],"Pivot.M.Camarilla.S2":[p.t(null,void 0,o(128938)),p.t(null,void 0,o(42913))],"Pivot.M.Camarilla.S1":[p.t(null,void 0,o(28429)),p.t(null,void 0,o(523814))],"Pivot.M.Camarilla.Middle":[p.t(null,void 0,o(197758)),p.t(null,void 0,o(82730))],"Pivot.M.Camarilla.R1":[p.t(null,void 0,o(962748)),p.t(null,void 0,o(985668))],"Pivot.M.Camarilla.R2":[p.t(null,void 0,o(518732)),p.t(null,void 0,o(610101))],"Pivot.M.Camarilla.R3":[p.t(null,void 0,o(879438)),p.t(null,void 0,o(622247))],"Pivot.M.Woodie.S3":[p.t(null,void 0,o(891660)),p.t(null,void 0,o(649248))],"Pivot.M.Woodie.S2":[p.t(null,void 0,o(203566)),p.t(null,void 0,o(42913))],"Pivot.M.Woodie.S1":[p.t(null,void 0,o(536510)),p.t(null,void 0,o(523814))],"Pivot.M.Woodie.Middle":[p.t(null,void 0,o(357527)),p.t(null,void 0,o(82730))],"Pivot.M.Woodie.R1":[p.t(null,void 0,o(192732)),p.t(null,void 0,o(985668))],"Pivot.M.Woodie.R2":[p.t(null,void 0,o(574023)),p.t(null,void 0,o(610101))],"Pivot.M.Woodie.R3":[p.t(null,void 0,o(212993)),p.t(null,void 0,o(622247))],"Pivot.M.Demark.S1":[p.t(null,void 0,o(46685)),p.t(null,void 0,o(523814))],"Pivot.M.Demark.Middle":[p.t(null,void 0,o(695847)),p.t(null,void 0,o(82730))],"Pivot.M.Demark.R1":[p.t(null,void 0,o(742575)),p.t(null,void 0,o(985668))],"KltChnl.upper":[p.t(null,void 0,o(576828)),p.t(null,void 0,o(282330))],"KltChnl.lower":[p.t(null,void 0,o(621474)),p.t(null,void 0,o(865104))],"P.SAR":[p.t(null,void 0,o(32969)),p.t(null,void 0,o(971923))],"Value.Traded":[p.t(null,void 0,o(176126)),p.t(null,void 0,o(176126))],MoneyFlow:[p.t(null,void 0,o(484341)),p.t(null,{context:"Money_Flow_short_title"},o(114232))],ChaikinMoneyFlow:[p.t(null,void 0,o(467829)),p.t(null,{ context:"Chaikin_Money_Flow_short_title"},o(732056))],"Recommend.All":[p.t(null,void 0,o(489415)),p.t(null,void 0,o(489415))],"Recommend.MA":[p.t(null,void 0,o(510759)),p.t(null,void 0,o(510759))],"Recommend.Other":[p.t(null,void 0,o(869945)),p.t(null,void 0,o(869945))],"Stoch.RSI.K":[p.t(null,void 0,o(209288)),p.t(null,void 0,o(146122))],"Stoch.RSI.D":[p.t(null,void 0,o(397008)),p.t(null,void 0,o(467469))],"W.R":[p.t(null,void 0,o(31110)),p.t(null,void 0,o(518711))],ROC:[p.t(null,void 0,o(686407)),p.t(null,void 0,o(476267))],BBPower:[p.t(null,{context:"study"},o(961333)),p.t(null,void 0,o(820736))],UO:[p.t(null,void 0,o(297506)),p.t(null,void 0,o(130541))],"Ichimoku.CLine":[p.t(null,void 0,o(252290)),p.t(null,void 0,o(158969))],"Ichimoku.BLine":[p.t(null,void 0,o(286153)),p.t(null,void 0,o(708109))],"Ichimoku.Lead1":[p.t(null,void 0,o(115742)),p.t(null,void 0,o(337063))],"Ichimoku.Lead2":[p.t(null,void 0,o(338775)),p.t(null,void 0,o(888233))],VWAP:[p.t(null,{context:"study"},o(363893)),p.t(null,void 0,o(705682))],VWMA:[p.t(null,void 0,o(991039)),p.t(null,void 0,o(529373))],ADR:[p.t(null,void 0,o(345336)),p.t(null,void 0,o(15769))],"24h_vol|5":[p.t(null,void 0,o(144117)),p.t(null,void 0,o(540224))],"24h_vol_change|5":[p.t(null,void 0,o(744492)),p.t(null,void 0,o(766382))],total_revenue_yoy_growth_fq:[p.t(null,void 0,o(659144)),p.t(null,void 0,o(659144))],total_revenue_qoq_growth_fq:[p.t(null,void 0,o(815831)),p.t(null,void 0,o(815831))],total_revenue_yoy_growth_fy:[p.t(null,void 0,o(733662)),p.t(null,void 0,o(733662))],total_revenue_yoy_growth_ttm:[p.t(null,void 0,o(699165)),p.t(null,void 0,o(699165))],gross_profit_yoy_growth_fq:[p.t(null,void 0,o(17233)),p.t(null,void 0,o(17233))],gross_profit_qoq_growth_fq:[p.t(null,void 0,o(697372)),p.t(null,void 0,o(697372))],gross_profit_yoy_growth_fy:[p.t(null,void 0,o(691522)),p.t(null,void 0,o(691522))],gross_profit_yoy_growth_ttm:[p.t(null,void 0,o(841564)),p.t(null,void 0,o(841564))],ebitda_yoy_growth_fq:[p.t(null,void 0,o(598271)),p.t(null,void 0,o(598271))],ebitda_qoq_growth_fq:[p.t(null,void 0,o(430668)),p.t(null,void 0,o(430668))],ebitda_yoy_growth_fy:[p.t(null,void 0,o(259569)),p.t(null,void 0,o(259569))],ebitda_yoy_growth_ttm:[p.t(null,void 0,o(570413)),p.t(null,void 0,o(570413))],net_income_yoy_growth_fq:[p.t(null,void 0,o(166047)),p.t(null,void 0,o(166047))],net_income_qoq_growth_fq:[p.t(null,void 0,o(274651)),p.t(null,void 0,o(274651))],net_income_yoy_growth_fy:[p.t(null,void 0,o(699836)),p.t(null,void 0,o(699836))],net_income_yoy_growth_ttm:[p.t(null,void 0,o(393811)),p.t(null,void 0,o(393811))],free_cash_flow_yoy_growth_fq:[p.t(null,void 0,o(930618)),p.t(null,void 0,o(930618))],free_cash_flow_qoq_growth_fq:[p.t(null,void 0,o(703584)),p.t(null,void 0,o(703584))],free_cash_flow_yoy_growth_fy:[p.t(null,void 0,o(951877)),p.t(null,void 0,o(951877))],free_cash_flow_yoy_growth_ttm:[p.t(null,void 0,o(511927)),p.t(null,void 0,o(511927))],earnings_per_share_diluted_yoy_growth_fq:[p.t(null,void 0,o(607493)),p.t(null,void 0,o(607493))], earnings_per_share_diluted_qoq_growth_fq:[p.t(null,void 0,o(4442)),p.t(null,void 0,o(4442))],earnings_per_share_diluted_yoy_growth_fy:[p.t(null,void 0,o(5344)),p.t(null,void 0,o(5344))],earnings_per_share_diluted_yoy_growth_ttm:[p.t(null,void 0,o(641613)),p.t(null,void 0,o(641613))],dps_common_stock_prim_issue_yoy_growth_fy:[p.t(null,void 0,o(529188)),p.t(null,void 0,o(529188))],total_assets_yoy_growth_fq:[p.t(null,void 0,o(799677)),p.t(null,void 0,o(799677))],total_assets_qoq_growth_fq:[p.t(null,void 0,o(417209)),p.t(null,void 0,o(417209))],total_assets_yoy_growth_fy:[p.t(null,void 0,o(666409)),p.t(null,void 0,o(666409))],total_debt_yoy_growth_fq:[p.t(null,void 0,o(419108)),p.t(null,void 0,o(419108))],total_debt_qoq_growth_fq:[p.t(null,void 0,o(847108)),p.t(null,void 0,o(847108))],total_debt_yoy_growth_fy:[p.t(null,void 0,o(178874)),p.t(null,void 0,o(178874))],sell_gen_admin_exp_other_ratio_fy:[p.t(null,void 0,o(59444)),p.t(null,void 0,o(643471))],sell_gen_admin_exp_other_ratio_ttm:[p.t(null,void 0,o(103374)),p.t(null,void 0,o(467336))],research_and_dev_ratio_fy:[p.t(null,void 0,o(818733)),p.t(null,void 0,o(239186))],research_and_dev_ratio_ttm:[p.t(null,void 0,o(231007)),p.t(null,void 0,o(775524))],gross_profit_margin_fy:[p.t(null,void 0,o(949976)),p.t(null,void 0,o(949976))],oper_income_margin_fy:[p.t(null,void 0,o(660525)),p.t(null,void 0,o(660525))],net_income_bef_disc_oper_margin_fy:[p.t(null,void 0,o(651951)),p.t(null,void 0,o(651951))],cash_n_equivalents_fq:[p.t(null,void 0,o(861516)),p.t(null,void 0,o(861516))],cash_n_equivalents_fy:[p.t(null,void 0,o(773575)),p.t(null,void 0,o(773575))],cash_n_short_term_invest_fq:[p.t(null,void 0,o(207792)),p.t(null,void 0,o(537521))],cash_n_short_term_invest_fy:[p.t(null,void 0,o(501717)),p.t(null,void 0,o(263143))],centralization:[p.t(null,void 0,o(975620)),p.t(null,void 0,o(975620))]};var U=o(493239);let j=null;const z=()=>j;var G=o(775110),X=o(923549),K=o(238739),Y=o(554794),J=o(162088),Z=o(48632),Q=o(502506),ee=o(601285),te=o(383425),oe=o(829016),ie=o(14723),re=o(693505),ne=o(159402),se=o(364697),le=o(110416),ae=o(623788),ce=o(492619),de=o(11951),ue=o(630410),he=o(672687),pe=o(651316),ge=o(601354),_e=o(829605),me=o(488287),ve=o(636627),fe=o(837553),ye=o(249478);const be=[{key:"Candle.3BlackCrows",name:p.t(null,void 0,o(995436)),svg:G},{key:"Candle.3WhiteSoldiers",name:p.t(null,void 0,o(56386)),svg:X},{key:"Candle.AbandonedBaby.Bearish",name:p.t(null,void 0,o(164388)),svg:K},{key:"Candle.AbandonedBaby.Bullish",name:p.t(null,void 0,o(677668)),svg:Y},{key:"Candle.Doji",name:p.t(null,{context:"study"},o(327517)),svg:J},{key:"Candle.Doji.Dragonfly",name:p.t(null,void 0,o(489930)),svg:Z},{key:"Candle.Doji.Gravestone",name:p.t(null,void 0,o(208006)),svg:Q},{key:"Candle.Engulfing.Bearish",name:p.t(null,void 0,o(405299)),svg:ee},{key:"Candle.Engulfing.Bullish",name:p.t(null,void 0,o(679832)),svg:te},{key:"Candle.EveningStar",name:p.t(null,void 0,o(894075)),svg:oe},{key:"Candle.Hammer",name:p.t(null,void 0,o(585085)),svg:ie},{key:"Candle.HangingMan", name:p.t(null,void 0,o(519287)),svg:re},{key:"Candle.Harami.Bearish",name:p.t(null,void 0,o(66503)),svg:ne},{key:"Candle.Harami.Bullish",name:p.t(null,void 0,o(84441)),svg:se},{key:"Candle.InvertedHammer",name:p.t(null,void 0,o(439801)),svg:le},{key:"Candle.Kicking.Bearish",name:p.t(null,void 0,o(604410)),svg:ae},{key:"Candle.Kicking.Bullish",name:p.t(null,void 0,o(789371)),svg:ce},{key:"Candle.LongShadow.Lower",name:p.t(null,void 0,o(947641)),svg:de},{key:"Candle.LongShadow.Upper",name:p.t(null,void 0,o(978880)),svg:ue},{key:"Candle.Marubozu.Black",name:p.t(null,void 0,o(810910)),svg:he},{key:"Candle.Marubozu.White",name:p.t(null,void 0,o(579285)),svg:pe},{key:"Candle.MorningStar",name:p.t(null,void 0,o(440490)),svg:ge},{key:"Candle.ShootingStar",name:p.t(null,void 0,o(956752)),svg:_e},{key:"Candle.SpinningTop.Black",name:p.t(null,{context:"study"},o(271354)),svg:me},{key:"Candle.SpinningTop.White",name:p.t(null,{context:"study"},o(397464)),svg:ve},{key:"Candle.TriStar.Bearish",name:p.t(null,void 0,o(863205)),svg:fe},{key:"Candle.TriStar.Bullish",name:p.t(null,void 0,o(512861)),svg:ye}].sort(((e,t)=>e.name.localeCompare(t.name))),we=new S({priceScale:1e8,minMove:1}),Se=new m.PriceFormatter({priceScale:100,minMove:1,fractional:!1}),Ce=new m.PriceFormatter({priceScale:1,minMove:1,fractional:!1}),ke=new v.VolumeFormatter,xe=new f.PercentageFormatter,Te=new f.PercentageFormatter({priceScale:1}),Me=new class{constructor(e){this._formatStr=e||"%y-%m-%d"}format(e){const t=new Date(1e3*e);return this._formatStr.replace("%y",(0,y.numberToStringWithLeadingZero)(t.getUTCFullYear(),4)).replace("%m",(0,y.numberToStringWithLeadingZero)(t.getUTCMonth()+1,2)).replace("%d",(0,y.numberToStringWithLeadingZero)(t.getUTCDate(),2))}},Ee=(0,x.getRecommendsRange)(),Fe={Any:p.t(null,void 0,o(882675)),Exotic:p.t(null,void 0,o(257626)),Major:p.t(null,void 0,o(67973)),Minor:p.t(null,void 0,o(844650)),Africa:p.t(null,void 0,o(578163)),Americas:p.t(null,void 0,o(615493)),Asia:p.t(null,void 0,o(360389)),Europe:p.t(null,void 0,o(546890)),Pacific:p.t(null,void 0,o(847081)),"Middle East":p.t(null,void 0,o(64614))},Ae=[{key:"today",name:p.t(null,void 0,o(205935))},{key:"tomorrow",name:p.t(null,void 0,o(315404))},{key:"yesterday",name:p.t(null,void 0,o(943320))},{key:"next_five",name:p.t(null,void 0,o(558570))},{key:"prev_five",name:p.t(null,void 0,o(988701))},{key:"this_week",name:p.t(null,void 0,o(847228))},{key:"next_week",name:p.t(null,void 0,o(116468))},{key:"prev_week",name:p.t(null,void 0,o(50121))},{key:"this_month",name:p.t(null,void 0,o(405778))}],Be=["today","yesterday","prev_five","prev_week","this_week","this_month"],Ie=["today","tomorrow","next_five","next_week","this_week","this_month"],De=e=>null==e||""===e.toString().trim(),Pe=e=>t=>{const o=Ne(t,Ae);if(o){const t=Oe(o);if(t)return((e,t,o="earnings_release_date,earnings_release_next_date")=>[{left:o,operation:"in_range",right:[e/1e3,t/1e3]},{left:o,operation:"nequal",right:t/1e3}])(t[0],t[1],e)}return!1},Re=(e,t)=>Object.keys(t).find((o=>t[o]===e))||e,Le=(e,t,o,i)=>{ const r=i.filter((t=>t[e]===o));return r.length>0?r[0][t]:""},$e=(e,t)=>Le("key","name",e,t),Ne=(e,t)=>Le("name","key",e,t),Oe=e=>{const t=U.get_timezone(z()),o=(()=>{const e=U.get_timezone(z()),t=new Date,o=U.utc_to_cal(e,t.getTime());return U.get_cal(e,o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate())})();let i,r;if("today"===e)i=o.getTime(),r=U.add_days_considering_dst(t,o,1).getTime();else if("tomorrow"===e)i=U.add_days_considering_dst(t,o,1).getTime(),r=U.add_days_considering_dst(t,o,2).getTime();else if("yesterday"===e){const e=6e4;i=U.add_days_considering_dst(t,o,-1).getTime(),r=o.getTime()-e}else if("next_five"===e)i=U.add_days_considering_dst(t,o,1).getTime(),r=U.add_days_considering_dst(t,o,5).getTime();else if("prev_five"===e)i=U.add_days_considering_dst(t,o,-5).getTime(),r=o.getTime();else if("this_week"===e){const e=(o.getDay()+6)%7;i=U.add_days_considering_dst(t,o,-e).getTime(),r=U.add_days_considering_dst(t,o,7-e).getTime()}else if("next_week"===e){const e=(o.getDay()+6)%7-7;i=U.add_days_considering_dst(t,o,-e).getTime(),r=U.add_days_considering_dst(t,o,7-e).getTime()}else if("prev_week"===e){const e=(o.getDay()+6)%7+7;i=U.add_days_considering_dst(t,o,-e).getTime(),r=U.add_days_considering_dst(t,o,7-e).getTime()}else if("this_month"===e){const e=o.getDate(),n=new Date(o.getFullYear(),o.getMonth(),0).getDate();i=U.add_days_considering_dst(t,o,1-e).getTime(),r=U.add_days_considering_dst(t,o,n-e).getTime()}return!(!i||!r)&&[i,r]},We={dr:[p.t(null,void 0,o(578677)),p.t(null,void 0,o(56908)),{nowrap:!0}],etf:[p.t(null,void 0,o(988789)),p.t(null,void 0,o(988789))],common:[p.t(null,void 0,o(677186)),""],preferred:[p.t(null,void 0,o(804067)),p.t(null,void 0,o(82730))],closedend:[p.t(null,void 0,o(107008)),p.t(null,void 0,o(932964))],etn:[p.t(null,void 0,o(971065)),p.t(null,void 0,o(971065))],reit:[p.t(null,void 0,o(702612)),p.t(null,void 0,o(702612))],unit:[p.t(null,void 0,o(742444)),p.t(null,void 0,o(742444))],mutual:[p.t(null,void 0,o(475950)),p.t(null,void 0,o(141836))],trust:[p.t(null,void 0,o(608665)),p.t(null,void 0,o(773581))],structured:[p.t(null,void 0,o(524048)),p.t(null,void 0,o(273807))],spot:[p.t(null,void 0,o(783013)),""],futures:[p.t(null,void 0,o(353539)),""],perpetual:[p.t(null,void 0,o(14738)),""]},Ve=["dr","etf","common","preferred","closedend","etn","reit","unit","mutual","trust","structured"],He=["spot","futures","perpetual"],qe=e=>["open","high","low","close"].filter((t=>t!==e)),Ue=e=>["SMA5","SMA10","SMA20","SMA30","SMA50","SMA100","SMA200","EMA5","EMA10","EMA20","EMA30","EMA50","EMA100","EMA200"].filter((t=>t!==e)),je=e=>["Ichimoku.BLine","Ichimoku.CLine","Ichimoku.Lead1","Ichimoku.Lead2"].filter((t=>t!==e)),ze=["crosses","crosses_above","crosses_below"];function Ge(e,...t){const o=t[t.length-1];if(o.searchValue){const t=(0,T.parseHtml)(e).childNodes;let i="";for(let e=0;e{const s=((e,t)=>Xe.type.disabled||!Xe.type.checked?"":`${Xe.type.mutateDisplayValue(e,t,!0)}`)(o,i);return((e,t,o,i,r)=>{const n=new C.DataModeIndicator({classSuffix:"--for-screener",short:!0});if(null!==r&&"string"==typeof r){const e=(0,_.parseUpdateMode)(r);null===e?n.setMode(r):n.setMode(e.mode,e.interval)}if(Xe.description.disabled||!Xe.description.checked)return n.getElement().outerHTML;const s={description:e,pro_name:i,short_name:o};let l=e?(0,k.getTranslatedSymbolDescription)(s).toString().toUpperCase():"";Xe.name.searchValue&&(l=Ke(l,Xe.name.searchValue));const a=!Xe.description.disabled||Xe.description.checked?`${l} ${t}`:"";return`${n.getElement().outerHTML}${a}`})(e,s,t,n,r)},mutateDisplayValue:Ge,tooltip:(e,t)=>Xe.description.disabled||!Xe.description.checked?t:e,useDefaultRange:!0,defaultRange:Ve,customFilterCondition:e=>Xe.type.customFilterCondition(e),search:!0},description:{hiddenColumn:!0,hideSetupColumn:!0},logoid:{hiddenColumn:!1,hideSetupColumn:!0,skipField:!0},currency_logoid:{hiddenColumn:!1,hideSetupColumn:!0,skipField:!0},base_currency_logoid:{hiddenColumn:!1,hideSetupColumn:!0,skipField:!0},exchange:{control:"select",category:1,mutateDisplayValue:e=>"AMEX"===e?"NYSE ARCA":e,rangeTitles:{AMEX:["NYSE ARCA","NYSE ARCA",{nowrap:!0}]}},centralization:{control:"select",category:1,hideSetupColumn:!0,rangeTitles:{cex:["CEX","CEX"],dex:["DEX","DEX"]}},submarket:{control:"select",category:1},sector:{category:1,filterCondition:"select",sourceRange:["Major","Minor","Exotic"],mutateDisplayValue:(e,...t)=>{const o=Ge(e,t);return(0,H.triesTranslateScreenerData)(o)}},index:{control:"select",isSingle:!0,category:1,hideSetupColumn:!0,groupFilter:!0,customFilterCondition:e=>{const t=Xe.index.sourceRange?Xe.index.sourceRange.find((t=>t.name===e)):null;return!!t&&{type:"index",values:[t.id]}}},industry:{control:"select",category:1},country:{control:"select",category:1},type:{hiddenColumn:!0,hideSetupColumn:!0,filterCondition:"select",category:1,rangeTitles:We,sortableColumn:!1,resettableFilter:!1,useDefaultRange:!0,defaultRange:Ve,additionalColumns:["subtype"],mutateDisplayValue:(e,t,o=!1)=>t&&We[t]?We[t][o?1:0]:We[e]?We[e][o?1:0]:"",customFilterCondition:L},market_cap_basic:{control:"range",formatter:ke,category:1},market_cap_calc:{control:"range",formatter:ke,category:1},market_cap_diluted_calc:{control:"range",formatter:ke,category:1},volume:{control:"range",formatter:ke,category:1},average_volume_10d_calc:{title:q.average_volume[0],shortTitle:q.average_volume[1],control:"range",formatter:ke,category:1,useDefaultTimeInterval:!0},average_volume_30d_calc:{control:"range",formatter:ke,category:1,useDefaultTimeInterval:!0},average_volume_60d_calc:{control:"range",formatter:ke, category:1,useDefaultTimeInterval:!0},average_volume_90d_calc:{control:"range",formatter:ke,category:1,useDefaultTimeInterval:!0},relative_volume_10d_calc:{title:q.relative_volume[0],shortTitle:q.relative_volume[1],control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:1},"relative_volume_intraday.5":{title:q.relative_volume_at_time[0],shortTitle:q.relative_volume_at_time[1],control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:1,useDefaultTimeIntervalFromFieldName:!0},change:{control:"condition",hiddenOperators:ze,conditionFields:{stock:["premarket_change","postmarket_change"],default:[]},formatter:xe,category:3,highlightChange:!0},"change.1":{control:"condition",hiddenOperators:ze,conditionFields:{stock:["change","premarket_change","postmarket_change"],default:[]},formatter:xe,category:3,highlightChange:!0},"change.5":{control:"condition",hiddenOperators:ze,conditionFields:{stock:["change","premarket_change","postmarket_change"],default:[]},formatter:xe,category:3,highlightChange:!0},"change.15":{control:"condition",hiddenOperators:ze,conditionFields:{stock:["change","premarket_change","postmarket_change"],default:[]},formatter:xe,category:3,highlightChange:!0},"change.60":{control:"condition",hiddenOperators:ze,conditionFields:{stock:["change","premarket_change","postmarket_change"],default:[]},formatter:xe,category:3,highlightChange:!0},"change.240":{control:"condition",hiddenOperators:ze,conditionFields:{stock:["change","premarket_change","postmarket_change"],default:[]},formatter:xe,category:3,highlightChange:!0},"change.1W":{control:"condition",hiddenOperators:ze,conditionFields:{stock:["change","premarket_change","postmarket_change"],default:[]},formatter:xe,category:3,highlightChange:!0},"change.1M":{control:"condition",hiddenOperators:ze,conditionFields:{stock:["change","premarket_change","postmarket_change"],default:[]},formatter:xe,category:3,highlightChange:!0},change_abs:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:we,forexFormatter:we,category:3,highlightChange:!0},"change_abs.1":{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:we,forexFormatter:we,category:3,highlightChange:!0},"change_abs.5":{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:we,forexFormatter:we,category:3,highlightChange:!0},"change_abs.15":{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:we,forexFormatter:we,category:3,highlightChange:!0},"change_abs.60":{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:we,forexFormatter:we,category:3,highlightChange:!0},"change_abs.240":{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:we,forexFormatter:we,category:3,highlightChange:!0},"change_abs.1W":{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:we,forexFormatter:we,category:3,highlightChange:!0},"change_abs.1M":{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:we,forexFormatter:we,category:3, highlightChange:!0},bid:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,forexFormatter:we,category:1,mutateDisplayValue:e=>`${e}`},ask:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,forexFormatter:we,category:1,mutateDisplayValue:e=>`${e}`},open:{control:"condition",conditionFields:{stock:qe("open").concat("premarket_open","postmarket_open","premarket_close","postmarket_close",Ue(),"HullMA9","BB.upper","BB.lower",je()),forex:qe("open").concat("bid","ask",Ue(),"HullMA9","BB.upper","BB.lower",je()),default:qe("open").concat(Ue(),"BB.upper","BB.lower","HullMA9",je())},formatter:we,forexFormatter:we,category:1},close:{title:p.t(null,void 0,o(7953)),shortTitle:p.t(null,void 0,o(7953)),control:"condition",conditionFields:{stock:qe("close").concat("premarket_close","postmarket_close",Ue(),"HullMA9","BB.upper","BB.lower",je()),forex:qe("close").concat("bid","ask",Ue(),"HullMA9","BB.upper","BB.lower",je()),default:qe("close").concat(Ue(),"BB.upper","BB.lower","HullMA9",je())},formatter:we,forexFormatter:we,category:1,mutateDisplayValue:e=>`${e}`},high:{control:"condition",conditionFields:{stock:qe("high").concat("premarket_high","postmarket_high","premarket_close","postmarket_close",Ue(),"HullMA9","BB.upper","BB.lower",je()),forex:qe("high").concat("bid","ask",Ue(),"HullMA9","BB.upper","BB.lower",je()),default:qe("high").concat(Ue(),"BB.upper","BB.lower","HullMA9",je())},formatter:we,forexFormatter:we,category:1},low:{control:"condition",conditionFields:{stock:qe("low").concat("premarket_low","postmarket_low","premarket_close","postmarket_close",Ue(),"HullMA9","BB.upper","BB.lower",je()),forex:qe("low").concat("bid","ask",Ue(),"HullMA9","BB.upper","BB.lower",je()),default:qe("low").concat(Ue(),"BB.upper","BB.lower","HullMA9",je())},formatter:we,forexFormatter:we,category:1},gap:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:3,highlightChange:!0},price_earnings_ttm:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:2},price_sales_ratio:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:2},return_on_assets:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:2},return_on_equity:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:2},debt_to_equity:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,category:2},current_ratio:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:2},quick_ratio:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:2},price_book_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:2},price_book_ratio:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se, filterFormatter:Ce,category:2},price_free_cash_flow_ttm:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:2},beta_1_year:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,category:3},operating_margin:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},earnings_per_share_basic_ttm:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:2},ebitda:{control:"range",formatter:ke,category:2},change_from_open:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:3,highlightChange:!0},change_from_open_abs:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:we,forexFormatter:we,category:3,highlightChange:!0},"Perf.W":{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:3,highlightChange:!0},"Perf.1M":{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:3,highlightChange:!0},"Perf.3M":{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:3,highlightChange:!0},"Perf.6M":{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:3,highlightChange:!0},"Perf.Y":{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:3,highlightChange:!0},"Perf.YTD":{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:3,highlightChange:!0},"Perf.5Y":{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:3,highlightChange:!0},"Perf.All":{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:3,highlightChange:!0},"Volatility.W":{control:"condition",conditionFields:[],formatter:xe,filterFormatter:Te,category:3},"Volatility.M":{control:"condition",conditionFields:[],formatter:xe,filterFormatter:Te,category:3},"Volatility.D":{control:"condition",conditionFields:[],formatter:xe,filterFormatter:Te,category:3},RSI:{control:"condition",conditionFields:[],formatter:Se,filterFormatter:Ce,category:3,displaySignal:!0,additionalColumns:["RSI","RSI[1]"],mutateDisplayValue:x.signalDisplayFunctions.processRSISignal,signalComputation:x.signalComputationFunctions.computeRSISignal},RSI7:{control:"condition",conditionFields:[],formatter:Se,filterFormatter:Ce,category:3,displaySignal:!0,additionalColumns:["RSI7","RSI7[1]"],mutateDisplayValue:x.signalDisplayFunctions.processRSISignal,signalComputation:x.signalComputationFunctions.computeRSISignal},ADX:{control:"condition",conditionFields:[],formatter:Se,filterFormatter:Ce,category:3,displaySignal:!0,additionalColumns:["ADX","ADX+DI","ADX-DI","ADX+DI[1]","ADX-DI[1]"],mutateDisplayValue:x.signalDisplayFunctions.processADXSignal,signalComputation:x.signalComputationFunctions.computeADXSignal},"ADX+DI":{control:"condition", conditionFields:["ADX-DI"],formatter:Se,filterFormatter:Ce,category:3},"ADX-DI":{control:"condition",conditionFields:["ADX+DI"],formatter:Se,filterFormatter:Ce,category:3},ATR:{control:"condition",conditionFields:[],formatter:we,category:3},Mom:{control:"condition",conditionFields:[],formatter:we,filterFormatter:Ce,category:3,displaySignal:!0,additionalColumns:["Mom","Mom[1]"],mutateDisplayValue:x.signalDisplayFunctions.processMomSignal,signalComputation:x.signalComputationFunctions.computeMomSignal},"High.All":{control:"toggle",filter:{operator:"eless",value:"high"},formatter:Se,forexFormatter:we,category:3},"Low.All":{control:"toggle",filter:{operator:"egreater",value:"low"},formatter:Se,forexFormatter:we,category:3},price_52_week_high:{control:"toggle",filter:{operator:"eless",value:"high"},formatter:Se,forexFormatter:we,category:3},price_52_week_low:{control:"toggle",filter:{operator:"egreater",value:"low"},formatter:Se,forexFormatter:we,category:3},is_primary:{title:q.is_primary[0],control:"toggle",filter:{operator:"equal",value:!0},category:1},active_symbol:{hideSetupColumn:!0,control:"toggle",filter:{operator:"equal",value:!0},category:1},"High.6M":{control:"toggle",filter:{operator:"eless",value:"high"},formatter:Se,forexFormatter:we,category:3},"Low.6M":{control:"toggle",filter:{operator:"egreater",value:"low"},formatter:Se,forexFormatter:we,category:3},"High.3M":{control:"toggle",filter:{operator:"eless",value:"high"},formatter:Se,forexFormatter:we,category:3},"Low.3M":{control:"toggle",filter:{operator:"egreater",value:"low"},formatter:Se,forexFormatter:we,category:3},"High.1M":{control:"toggle",filter:{operator:"eless",value:"high"},formatter:Se,forexFormatter:we,category:3},"Low.1M":{control:"toggle",filter:{operator:"egreater",value:"low"},formatter:Se,forexFormatter:we,category:3},EMA5:{control:"condition",conditionFields:qe().concat(Ue("EMA5")),formatter:we,category:3,displaySignal:!0,additionalColumns:["EMA5","close"],mutateDisplayValue:x.signalDisplayFunctions.processMASignal,signalComputation:x.signalComputationFunctions.computeMASignal},EMA10:{control:"condition",conditionFields:qe().concat(Ue("EMA10")),formatter:we,category:3,displaySignal:!0,additionalColumns:["EMA10","close"],mutateDisplayValue:x.signalDisplayFunctions.processMASignal,signalComputation:x.signalComputationFunctions.computeMASignal},EMA20:{control:"condition",conditionFields:qe().concat(Ue("EMA20")),formatter:we,category:3,displaySignal:!0,additionalColumns:["EMA20","close"],mutateDisplayValue:x.signalDisplayFunctions.processMASignal,signalComputation:x.signalComputationFunctions.computeMASignal},EMA30:{control:"condition",conditionFields:qe().concat(Ue("EMA30")),formatter:we,category:3,displaySignal:!0,additionalColumns:["EMA30","close"],mutateDisplayValue:x.signalDisplayFunctions.processMASignal,signalComputation:x.signalComputationFunctions.computeMASignal},EMA50:{control:"condition",conditionFields:qe().concat(Ue("EMA50")),formatter:we,category:3,displaySignal:!0,additionalColumns:["EMA50","close"], mutateDisplayValue:x.signalDisplayFunctions.processMASignal,signalComputation:x.signalComputationFunctions.computeMASignal},EMA100:{control:"condition",conditionFields:qe().concat(Ue("EMA100")),formatter:we,category:3,displaySignal:!0,additionalColumns:["EMA100","close"],mutateDisplayValue:x.signalDisplayFunctions.processMASignal,signalComputation:x.signalComputationFunctions.computeMASignal},EMA200:{control:"condition",conditionFields:qe().concat(Ue("EMA200")),formatter:we,category:3,displaySignal:!0,additionalColumns:["EMA200","close"],mutateDisplayValue:x.signalDisplayFunctions.processMASignal,signalComputation:x.signalComputationFunctions.computeMASignal},SMA5:{control:"condition",conditionFields:qe().concat(Ue("SMA5")),formatter:we,category:3,displaySignal:!0,additionalColumns:["SMA5","close"],mutateDisplayValue:x.signalDisplayFunctions.processMASignal,signalComputation:x.signalComputationFunctions.computeMASignal},SMA10:{control:"condition",conditionFields:qe().concat(Ue("SMA10")),formatter:we,category:3,displaySignal:!0,additionalColumns:["SMA10","close"],mutateDisplayValue:x.signalDisplayFunctions.processMASignal,signalComputation:x.signalComputationFunctions.computeMASignal},SMA20:{control:"condition",conditionFields:qe().concat(Ue("SMA20")),formatter:we,category:3,displaySignal:!0,additionalColumns:["SMA20","close"],mutateDisplayValue:x.signalDisplayFunctions.processMASignal,signalComputation:x.signalComputationFunctions.computeMASignal},SMA30:{control:"condition",conditionFields:qe().concat(Ue("SMA30")),formatter:we,category:3,displaySignal:!0,additionalColumns:["SMA30","close"],mutateDisplayValue:x.signalDisplayFunctions.processMASignal,signalComputation:x.signalComputationFunctions.computeMASignal},SMA50:{control:"condition",conditionFields:qe().concat(Ue("SMA50")),formatter:we,category:3,displaySignal:!0,additionalColumns:["SMA50","close"],mutateDisplayValue:x.signalDisplayFunctions.processMASignal,signalComputation:x.signalComputationFunctions.computeMASignal},SMA100:{control:"condition",conditionFields:qe().concat(Ue("SMA100")),formatter:we,category:3,displaySignal:!0,additionalColumns:["SMA100","close"],mutateDisplayValue:x.signalDisplayFunctions.processMASignal,signalComputation:x.signalComputationFunctions.computeMASignal},SMA200:{control:"condition",conditionFields:qe().concat(Ue("SMA200")),formatter:we,category:3,displaySignal:!0,additionalColumns:["SMA200","close"],mutateDisplayValue:x.signalDisplayFunctions.processMASignal,signalComputation:x.signalComputationFunctions.computeMASignal},"Stoch.K":{control:"condition",conditionFields:qe().concat(["Stoch.D"]),formatter:Se,category:3,displaySignal:!0,additionalColumns:["Stoch.K","Stoch.D","Stoch.K[1]","Stoch.D[1]"],mutateDisplayValue:x.signalDisplayFunctions.processStochSignal,signalComputation:x.signalComputationFunctions.computeStochSignal},"Stoch.D":{control:"condition",conditionFields:qe().concat(["Stoch.K"]),formatter:Se,category:3},"MACD.macd":{control:"condition",conditionFields:qe().concat(["MACD.signal"]),formatter:we,category:3, displaySignal:!0,additionalColumns:["MACD.macd","MACD.signal"],mutateDisplayValue:x.signalDisplayFunctions.processMACDSignal,signalComputation:x.signalComputationFunctions.computeMACDSignal},"MACD.signal":{control:"condition",conditionFields:qe().concat(["MACD.macd"]),formatter:we,category:3},"Aroon.Up":{control:"condition",conditionFields:["Aroon.Down"],formatter:Se,category:3},"Aroon.Down":{control:"condition",conditionFields:["Aroon.Up"],formatter:Se,category:3},"BB.upper":{control:"condition",conditionFields:qe().concat(["BB.lower","KltChnl.upper","KltChnl.lower"]),formatter:we,category:3,displaySignal:!0,additionalColumns:["close","BB.upper"],mutateDisplayValue:x.signalDisplayFunctions.processBBSellSignal,signalComputation:x.signalComputationFunctions.computeBBSellSignal},"BB.lower":{control:"condition",conditionFields:qe().concat(["BB.upper","KltChnl.upper","KltChnl.lower"]),formatter:we,category:3,displaySignal:!0,additionalColumns:["close","BB.lower"],mutateDisplayValue:x.signalDisplayFunctions.processBBBuySignal,signalComputation:x.signalComputationFunctions.computeBBBuySignal},"KltChnl.upper":{control:"condition",conditionFields:qe().concat(["KltChnl.lower","BB.upper","BB.lower"]),formatter:we,category:3},"KltChnl.lower":{control:"condition",conditionFields:qe().concat(["KltChnl.upper","BB.upper","BB.lower"]),formatter:we,category:3},"P.SAR":{control:"condition",conditionFields:qe(),formatter:we,category:3,displaySignal:!0,additionalColumns:["P.SAR","open"],mutateDisplayValue:x.signalDisplayFunctions.processPSARSignal,signalComputation:x.signalComputationFunctions.computePSARSignal},"Value.Traded":{control:"range",formatter:ke,category:1},MoneyFlow:{control:"condition",conditionFields:[],formatter:Se,category:3},ChaikinMoneyFlow:{control:"condition",conditionFields:[],formatter:Se,category:3},goodwill:{control:"range",formatter:ke,category:2},net_debt:{control:"range",formatter:ke,category:2},total_debt:{control:"range",formatter:ke,category:2},revenue_per_employee:{control:"range",formatter:ke,category:2},return_on_invested_capital:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},after_tax_margin:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},pre_tax_margin:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},gross_margin:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},gross_profit_margin_fy:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},oper_income_margin_fy:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},net_income_bef_disc_oper_margin_fy:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0}, free_cash_flow_margin_fy:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},free_cash_flow_margin_ttm:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},sell_gen_admin_exp_other_ratio_fy:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2},sell_gen_admin_exp_other_ratio_ttm:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2},research_and_dev_ratio_fy:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2},research_and_dev_ratio_ttm:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2},dividends_paid:{control:"range",formatter:ke,category:2},dividend_yield_recent:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},basic_eps_net_income:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:2},net_income:{control:"range",formatter:ke,category:2},gross_profit:{control:"range",formatter:ke,category:2},gross_profit_fq:{control:"range",formatter:ke,category:2},number_of_shareholders:{control:"range",formatter:ke,category:2},float_shares_outstanding:{control:"range",formatter:ke,category:2},total_shares_outstanding_fundamental:{control:"range",formatter:ke,category:2},total_shares_outstanding:{control:"range",formatter:ke,category:2},total_shares_diluted:{control:"range",formatter:ke,category:2},total_value_traded:{control:"range",formatter:ke,category:2},total_assets:{control:"range",formatter:ke,category:2},total_current_assets:{control:"range",formatter:ke,category:2},total_revenue:{control:"range",formatter:ke,category:2},total_liabilities_fy:{control:"range",formatter:ke,category:2},total_liabilities_fq:{control:"range",formatter:ke,category:2},dividends_per_share_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:2},earnings_per_share_diluted_ttm:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:2},enterprise_value_ebitda_ttm:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:2},enterprise_value_fq:{control:"range",formatter:ke,category:2},price_revenue_ttm:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:2},number_of_employees:{control:"range",formatter:ke,category:2},last_annual_eps:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:2},last_annual_revenue:{control:"range",formatter:ke,category:2},CCI20:{control:"condition",conditionFields:[],formatter:Se,category:3,displaySignal:!0,additionalColumns:["CCI20","CCI20[1]"],mutateDisplayValue:x.signalDisplayFunctions.processCCI20Signal, signalComputation:x.signalComputationFunctions.computeCCI20Signal},"DonchCh20.Upper":{control:"condition",conditionFields:qe().concat(["DonchCh20.Lower"]),formatter:we,category:3},"DonchCh20.Lower":{control:"condition",conditionFields:qe().concat(["DonchCh20.Upper"]),formatter:we,category:3},HullMA9:{control:"condition",conditionFields:qe().concat(Ue("HullMA9")),formatter:we,category:3,displaySignal:!0,additionalColumns:["Rec.HullMA9"],mutateDisplayValue:x.signalDisplayFunctions.processSimpleSignal,signalComputation:x.signalComputationFunctions.computeSimpleSignal},AO:{control:"condition",conditionFields:[],formatter:we,category:3,displaySignal:!0,additionalColumns:["AO","AO[1]","AO[2]"],mutateDisplayValue:x.signalDisplayFunctions.processAOSignal,signalComputation:x.signalComputationFunctions.computeAOSignal},"Pivot.M.Classic.Middle":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Classic.R1":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Classic.R2":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Classic.R3":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Classic.S1":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Classic.S2":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Classic.S3":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Fibonacci.Middle":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Fibonacci.R1":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Fibonacci.R2":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Fibonacci.R3":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Fibonacci.S1":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Fibonacci.S2":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Fibonacci.S3":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Camarilla.Middle":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Camarilla.R1":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Camarilla.R2":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Camarilla.R3":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Camarilla.S1":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Camarilla.S2":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Camarilla.S3":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Woodie.Middle":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Woodie.R1":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Woodie.R2":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Woodie.R3":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Woodie.S1":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Woodie.S2":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Woodie.S3":{formatter:Se,forexFormatter:we,category:3,align:"right"}, "Pivot.M.Demark.Middle":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Demark.R1":{formatter:Se,forexFormatter:we,category:3,align:"right"},"Pivot.M.Demark.S1":{formatter:Se,forexFormatter:we,category:3,align:"right"},candlestick:{alias:"name",control:"select",category:3,sortableColumn:!1,additionalColumns:be.map((e=>e.key)),mutateDisplayValue:(e,...t)=>{const o=[];for(let e=0;e`${e.svg}`)).join(" "):''},range:be.map((e=>e.name)),sourceRange:be,customFilterCondition:e=>{Array.isArray(e)||(e=[e]);return{left:e.map((e=>Ne(e,be))).join(","),operation:"equal",right:1}}},update_mode:{hiddenColumn:!1,hideSetupColumn:!0,skipField:!0},premarket_change:{title:p.t(null,void 0,o(796768)),shortTitle:p.t(null,void 0,o(353211)),control:"condition",hiddenOperators:ze,conditionFields:["change"],formatter:xe,filterFormatter:Te,category:3,highlightChange:!0},premarket_change_abs:{title:p.t(null,void 0,o(910602)),shortTitle:p.t(null,void 0,o(34990)),control:"condition",hiddenOperators:ze,conditionFields:["change_abs"],formatter:we,forexFormatter:we,category:3,highlightChange:!0},premarket_change_from_open:{title:p.t(null,void 0,o(732699)),shortTitle:p.t(null,void 0,o(596880)),control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:3,highlightChange:!0},premarket_change_from_open_abs:{title:p.t(null,void 0,o(892667)),shortTitle:p.t(null,void 0,o(899332)),control:"condition",hiddenOperators:ze,conditionFields:[],formatter:we,forexFormatter:we,category:3,highlightChange:!0},premarket_close:{title:p.t(null,void 0,o(360312)),shortTitle:p.t(null,void 0,o(360312)),control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:1},premarket_gap:{title:p.t(null,void 0,o(652207)),shortTitle:p.t(null,void 0,o(652207)),control:"condition",hiddenOperators:ze,conditionFields:["gap"],formatter:xe,filterFormatter:Te,category:3,highlightChange:!0},premarket_high:{title:p.t(null,void 0,o(271515)),shortTitle:p.t(null,void 0,o(271515)),control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:1},premarket_low:{title:p.t(null,void 0,o(551019)),shortTitle:p.t(null,void 0,o(551019)),control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:1},premarket_open:{title:p.t(null,void 0,o(613611)),shortTitle:p.t(null,void 0,o(613611)),control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:1},premarket_volume:{title:p.t(null,void 0,o(689401)),shortTitle:p.t(null,void 0,o(689401)),control:"range",formatter:ke,category:1},postmarket_change:{ title:p.t(null,void 0,o(287719)),shortTitle:p.t(null,void 0,o(427921)),control:"condition",hiddenOperators:ze,conditionFields:["change"],formatter:xe,filterFormatter:Te,category:3,highlightChange:!0},postmarket_change_abs:{title:p.t(null,void 0,o(959511)),shortTitle:p.t(null,void 0,o(846926)),control:"condition",hiddenOperators:ze,conditionFields:["change_abs"],formatter:we,forexFormatter:we,category:3,highlightChange:!0},postmarket_close:{title:p.t(null,void 0,o(723752)),shortTitle:p.t(null,void 0,o(723752)),control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:1},postmarket_high:{title:p.t(null,void 0,o(448860)),shortTitle:p.t(null,void 0,o(448860)),control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:1},postmarket_low:{title:p.t(null,void 0,o(20712)),shortTitle:p.t(null,void 0,o(20712)),control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:1},postmarket_open:{title:p.t(null,void 0,o(95190)),shortTitle:p.t(null,void 0,o(95190)),control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:1},postmarket_volume:{title:p.t(null,void 0,o(999602)),shortTitle:p.t(null,void 0,o(999602)),control:"range",formatter:ke,category:1},earnings_per_share_forecast_next_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:2},earnings_per_share_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:2},earnings_release_date:{control:"select",isSingle:!0,category:2,sortable:!1,useDefaultRange:!0,defaultRange:Ae.filter((e=>-1!==Be.indexOf(e.key))).map((e=>e.name)),sourceRange:Ae,customFilterCondition:Pe("earnings_release_date"),formatter:Me},earnings_release_next_date:{control:"select",isSingle:!0,category:2,sortable:!1,useDefaultRange:!0,defaultRange:Ae.filter((e=>-1!==Ie.indexOf(e.key))).map((e=>e.name)),sourceRange:Ae,customFilterCondition:Pe("earnings_release_next_date"),formatter:Me},"Recommend.All":{control:"select",category:3,mutateDisplayValue:x.signalDisplayFunctions.processRecommendSignal,signalComputation:x.signalComputationFunctions.computeRecommendSignal,useDefaultRange:!0,sortable:!1,sortSelectedFirst:!1,defaultRange:Ee,customFilterCondition:e=>(0,x.generateRecommendsRequest)(e,"Recommend.All")},"Recommend.MA":{control:"select",category:3,mutateDisplayValue:x.signalDisplayFunctions.processRecommendSignal,signalComputation:x.signalComputationFunctions.computeRecommendSignal,useDefaultRange:!0,sortable:!1,sortSelectedFirst:!1,defaultRange:Ee,customFilterCondition:e=>(0,x.generateRecommendsRequest)(e,"Recommend.MA")},"Recommend.Other":{control:"select",category:3,mutateDisplayValue:x.signalDisplayFunctions.processRecommendSignal,signalComputation:x.signalComputationFunctions.computeRecommendSignal,useDefaultRange:!0,sortable:!1,sortSelectedFirst:!1,defaultRange:Ee,customFilterCondition:e=>(0,x.generateRecommendsRequest)(e,"Recommend.Other")},"Stoch.RSI.K":{ control:"condition",conditionFields:["Stoch.RSI.D"],formatter:Se,category:3,displaySignal:!0,additionalColumns:["Rec.Stoch.RSI"],mutateDisplayValue:x.signalDisplayFunctions.processSimpleSignal,signalComputation:x.signalComputationFunctions.computeSimpleSignal},"Stoch.RSI.D":{control:"condition",conditionFields:["Stoch.RSI.K"],formatter:Se,category:3},"W.R":{control:"condition",conditionFields:[],formatter:Se,category:3,displaySignal:!0,additionalColumns:["Rec.WR"],mutateDisplayValue:x.signalDisplayFunctions.processSimpleSignal,signalComputation:x.signalComputationFunctions.computeSimpleSignal},ROC:{control:"condition",conditionFields:[],formatter:Se,category:3},BBPower:{control:"condition",conditionFields:[],formatter:we,category:3,displaySignal:!0,additionalColumns:["Rec.BBPower"],mutateDisplayValue:x.signalDisplayFunctions.processSimpleSignal,signalComputation:x.signalComputationFunctions.computeSimpleSignal},UO:{control:"condition",conditionFields:[],formatter:Se,category:3,displaySignal:!0,additionalColumns:["Rec.UO"],mutateDisplayValue:x.signalDisplayFunctions.processSimpleSignal,signalComputation:x.signalComputationFunctions.computeSimpleSignal},VWAP:{control:"condition",conditionFields:qe().concat(Ue()),formatter:we,category:3},VWMA:{control:"condition",conditionFields:qe().concat(Ue()),formatter:we,category:3,displaySignal:!0,additionalColumns:["Rec.VWMA"],mutateDisplayValue:x.signalDisplayFunctions.processSimpleSignal,signalComputation:x.signalComputationFunctions.computeSimpleSignal},ADR:{control:"condition",conditionFields:qe(),formatter:we,category:3},"Ichimoku.CLine":{control:"condition",conditionFields:qe().concat(je("Ichimoku.CLine")),formatter:we,category:3},"Ichimoku.BLine":{control:"condition",conditionFields:qe().concat(je("Ichimoku.BLine")),formatter:we,category:3,displaySignal:!0,additionalColumns:["Rec.Ichimoku"],mutateDisplayValue:x.signalDisplayFunctions.processSimpleSignal,signalComputation:x.signalComputationFunctions.computeSimpleSignal},"Ichimoku.Lead1":{control:"condition",conditionFields:qe().concat(je("Ichimoku.Lead1")),formatter:we,category:3},"Ichimoku.Lead2":{control:"condition",conditionFields:qe().concat(je("Ichimoku.Lead2")),formatter:we,category:3},elements:{hiddenOperators:ze,title:p.t(null,void 0,o(898507)),shortTitle:p.t(null,void 0,o(898507)),control:"condition",conditionFields:[],formatter:Ce,category:1},basic_elements:{hiddenOperators:ze,title:p.t(null,void 0,o(921906)),shortTitle:p.t(null,void 0,o(921906)),control:"condition",conditionFields:[],formatter:Ce,category:1},dps_common_stock_prim_issue_fy:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:Se,filterFormatter:Ce,category:2},"24h_vol|5":{category:1,formatter:ke,control:"range",title:q["24h_vol|5"][0],shortTitle:q["24h_vol|5"][1]},"24h_vol_change|5":{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,category:1,highlightChange:!0},currency:{control:"select",defaultRange:["USD","USDT","USDC","BUSD","BTC","ETH","DAI","BNB","WBTC","WETH"],disabled:!0,category:1,hideSetupColumn:!0}, total_revenue_yoy_growth_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},total_revenue_qoq_growth_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},total_revenue_yoy_growth_fy:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},total_revenue_yoy_growth_ttm:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},gross_profit_yoy_growth_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},gross_profit_qoq_growth_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},gross_profit_yoy_growth_fy:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},gross_profit_yoy_growth_ttm:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},ebitda_yoy_growth_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},ebitda_qoq_growth_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},ebitda_yoy_growth_fy:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},ebitda_yoy_growth_ttm:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},net_income_yoy_growth_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},net_income_qoq_growth_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},net_income_yoy_growth_fy:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},net_income_yoy_growth_ttm:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},free_cash_flow_yoy_growth_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},free_cash_flow_qoq_growth_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},free_cash_flow_yoy_growth_fy:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},free_cash_flow_yoy_growth_ttm:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},earnings_per_share_diluted_yoy_growth_fq:{control:"condition",hiddenOperators:ze,conditionFields:[], formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},earnings_per_share_diluted_qoq_growth_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},earnings_per_share_diluted_yoy_growth_fy:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},earnings_per_share_diluted_yoy_growth_ttm:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},dps_common_stock_prim_issue_yoy_growth_fy:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},total_assets_yoy_growth_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},total_assets_qoq_growth_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},total_assets_yoy_growth_fy:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},total_debt_yoy_growth_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},total_debt_qoq_growth_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},total_debt_yoy_growth_fy:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},cash_n_equivalents_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:ke,category:2},cash_n_equivalents_fy:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:ke,category:2},cash_n_short_term_invest_fq:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:ke,category:2},cash_n_short_term_invest_fy:{control:"condition",hiddenOperators:ze,conditionFields:[],formatter:ke,category:2}};function Ke(e,t){t=t.replace(/(\s+)/,"(<[^>]+>)*$1(<[^>]+>)*");const o=new RegExp("("+t+")","gi");return e.replace(o,"$1")}function Ye(e,t){for(let o=0;oA(e,i))).join(",")),t.left&&Xe[t.left]&&(t.left=A(t.left,i))),t.filterOR&&(Ye(t.filter,i),Ye(t.filterOR,i)),t.filter2Flag&&(Ye(t.filter,i),Ye(t.filter2AndPart,i)),t}if("function"==typeof Xe[e].mutateFilterConditionValue){const t=Xe[e].mutateFilterConditionValue(r);t&&(r=t)}const n=Array.isArray(r);if(r&&"object"==typeof r&&!n){const t={left:e,operation:r.operator};return r.value&&(t.right=r.value),t}return{left:A(e,i),operation:n?"in_range":"equal",right:n?r.slice():r}}function Ze(e,t,o,i){ if(De(t)&&De(o))throw new Error("Empty value");let r,n={};switch(Xe[e].control){case"range":if(t&&"object"==typeof t&&!Array.isArray(t)){n={left:e,operation:t.operator},t.value&&(n.right=t.value);break}var s=o?Array.isArray(o[e])&&o[e].slice()||[]:t.slice();n={left:A(e,i),operation:"in_range",right:s},2===s.length&&isNumber(s[0])&&isNumber(s[1])&&(-1e100==+s[0]?n={left:A(e,i),operation:"eless",right:s[1]}:1e100==+s[1]&&(n={left:A(e,i),operation:"egreater",right:s[0]}));break;case"condition":if(De(t.operator))throw new Error("Empty value operator");if(De(t.value))throw new Error("Empty value");r=o&&o[e].value?o[e].value:t.value,Xe[r]&&(r=A(r,i)),n={left:A(e,i),operation:o&&o[e].operator?o[e].operator:t.operator,right:r};break;case"toggle":n={left:A(e,i),operation:o&&o[e].operator?o[e].operator:Xe[e].filter.operator,right:o&&o[e].value?o[e].value:Xe[e].filter.value};break;case"select":n=Je(e,t,o,i);break;default:"select"===Xe[e].filterCondition&&(n=Je(e,t,o,i))}return n}function Qe(e,t){!function(e,t){for(const o in e)e[o].disabled=2===e[o].category||t.includes(o)}(e,(t||[]).concat("type","industry","market_cap_basic","beta_1_year","Value.Traded","MoneyFlow","ChaikinMoneyFlow","elements","basic_elements","premarket_change","premarket_change_abs","premarket_change_from_open","premarket_change_from_open_abs","premarket_close","premarket_gap","premarket_high","premarket_low","premarket_open","premarket_volume","postmarket_change","postmarket_change_abs","postmarket_close","postmarket_high","postmarket_low","postmarket_open","postmarket_volume"))}function et(){for(const e of Object.keys(q))e in Xe&&(Xe[e].title=Xe[e].title||q[e][0],Xe[e].shortTitle=Xe[e].shortTitle||q[e][1])}function tt(e,t){if(delete Xe.name.control,et(),"forex"===e&&(Xe.country.title=p.t(null,void 0,o(703556)),Xe.country.shortTitle=p.t(null,void 0,o(703556)),delete Xe.sector.control,Xe.sector.title=p.t(null,void 0,o(533064)),Xe.sector.shortTitle=p.t(null,void 0,o(533064)),Xe.sector.resettableFilter=!1,Xe.sector.mutateFilterConditionValue=e=>!!e&&(Array.isArray(e)?e.map((e=>Re(e,Fe))):Re(e,Fe))),"stock"===e){Xe.sector.title=p.t(null,void 0,o(99804)),Xe.sector.shortTitle=p.t(null,void 0,o(99804)),Xe.type.customFilterCondition=L,Xe.type.defaultRange=Ve,Xe.name.defaultRange=Ve,Xe.sector.control="select",Xe.sector.resettableFilter=!0,delete Xe.sector.mutateFilterConditionValue;for(const e in Xe)Xe[e].disabled=!1}["stock","crypto"].includes(e)&&(Xe.name.control="select"),"crypto"===e&&(Xe.sector.title=p.t(null,void 0,o(609797)),Xe.sector.shortTitle=p.t(null,void 0,o(609797)),Xe.sector.control="select",Xe.sector.resettableFilter=!0,delete Xe.sector.mutateFilterConditionValue,Xe.name.additionalColumns.push("exchange"),Xe.type.defaultRange=He,Xe.name.defaultRange=He,Xe.type.customFilterCondition=$),"crypto"!==e&&(Xe.name.additionalColumns=Xe.name.additionalColumns.filter((e=>"exchange"!==e))),"crypto_mkt"===e&&(Xe.sector.title=p.t(null,void 0,o(399709)),Xe.sector.shortTitle=p.t(null,void 0,o(399709))), ["crypto","crypto_mkt"].includes(e)&&(Xe.total_shares_outstanding.title=p.t(null,void 0,o(983692)),Xe.total_shares_outstanding.shortTitle=p.t(null,void 0,o(667808))),"sector"===e&&(Xe.description.hiddenColumn=!1,Xe.description.title=p.t(null,void 0,o(99804)),Xe.description.shortTitle=p.t(null,void 0,o(99804)),Xe.description.mutateDisplayValue=Ge),"industry"===e&&(Xe.description.hiddenColumn=!1,Xe.description.title=p.t(null,void 0,o(407727)),Xe.description.shortTitle=p.t(null,void 0,o(407727)),Xe.description.mutateDisplayValue=Ge,Xe.elements.title=p.t(null,void 0,o(921906)),Xe.elements.shortTitle=p.t(null,void 0,o(921906)),Xe.sector.control="select",Xe.sector.resettableFilter=!0),["sector","industry"].includes(t)&&(Xe.sector.hiddenColumn=!0),"bonds"===e&&(Xe.close.title=p.t(null,{context:"Bonds"},o(568461)),Xe.close.shortTitle=p.t(null,{context:"Bonds"},o(568461)),Xe.coupon={title:p.t(null,void 0,o(332961)),shortTitle:p.t(null,void 0,o(332961)),align:"right",formatter:xe},Xe.maturity_date={title:p.t(null,void 0,o(147789)),shortTitle:p.t(null,void 0,o(147789)),align:"right",mutateDisplayValue:B.mutateSimpleDate}),"continuous_futures"===e&&(Xe.expiration={title:p.t(null,void 0,o(886777)),shortTitle:p.t(null,void 0,o(886777)),align:"right",mutateDisplayValue:B.mutateSimpleDate}),function(e,t){switch(e){case"stock":["bid","ask","currency","centralization"].forEach((e=>{t[e].disabled=!0}));break;case"forex":Qe(t,["exchange","volume","relative_volume_10d_calc","relative_volume_intraday.5","average_volume_10d_calc","average_volume_30d_calc","average_volume_60d_calc","average_volume_90d_calc","currency","centralization"]);break;case"futures":case"cfd":Qe(t,["bid","ask","centralization"]);break;case"crypto":Qe(t,["country","sector"])}}(e,Xe);["market_cap_calc","market_cap_diluted_calc","total_shares_outstanding","total_shares_diluted","total_value_traded","24h_vol|5","24h_vol_change|5"].forEach((t=>{Xe[t].disabled=!["crypto","crypto_mkt"].includes(e)}));["elements","basic_elements"].forEach((t=>{Xe[t].disabled=!["sector","industry"].includes(e)}))}et();const ot=[{key:"-1",name:p.t(null,void 0,o(710050))},{key:"1",name:p.t(null,void 0,o(970223))}],it=[{key:"-1",name:'
'+o(578507)+"
"},{key:"1",name:'
'+o(289523)+"
"}];function rt(){const e=(e,t,o,i)=>{const r=Ne(e,Ae)||null,n=r?Oe(r):null;return n&&n[0]<=1e3*t&&1e3*t<=n[1]?i:o};Xe.earnings_release_next_time={isSingle:!0,title:p.t(null,void 0,o(312806)),tooltip:(t,o,i)=>{const r=Xe.earnings_release_next_date.value,n=e(r,t,o,i);return n?$e((s=n).toString(),ot)||s:void 0;var s},shortTitle:p.t(null,void 0,o(312806)),disableHeaderControl:!0,align:"center",additionalColumns:["earnings_release_next_date","earnings_release_time","earnings_release_next_time"],mutateDisplayValue:(t,o,i,r)=>{const n=Xe.earnings_release_next_date.value,s=e(n,o,i,r);return s?$e((l=s).toString(),it)||l:nt;var l},category:2},Xe.close.title=p.t(null,void 0,o(7953)),Xe.close.shortTitle=p.t(null,void 0,o(7953)), Xe.earnings_release_next_date=Object.assign(Xe.earnings_release_next_date,{title:p.t(null,void 0,o(722677)),shortTitle:p.t(null,void 0,o(722677)),noAny:!0,additionalColumns:["earnings_release_date","earnings_release_next_date"],defaultRange:Ae.map((e=>e.name)),resettableFilter:!1,mutateDisplayValue:(e,t,o,i)=>{if(!o&&t)return Me.format(t);if(i.value){const e=Ne(i.value,Ae);if(e){const i=Oe(e);if(i){if(t&&st(t,i))return Me.format(t);if(o&&st(o,i))return Me.format(o)}}}return e},customFilterCondition:Pe()}),Xe.earnings_release_next_calendar_date={title:p.t(null,void 0,o(609254)),shortTitle:p.t(null,void 0,o(609254)),formatter:Me,category:1,additionalColumns:["earnings_release_next_date","earnings_release_calendar_date"],mutateDisplayValue:(e,t,o)=>{const i=Ne(Xe.earnings_release_next_date.value,Ae);if(i){const o=Oe(i);if(o&&st(t,o))return e}return o?Me.format(o):nt}},delete Xe.earnings_per_share_forecast_next_fq.control,Xe.earnings_per_share_forecast_next_fq.title=p.t(null,void 0,o(881220)),Xe.earnings_per_share_forecast_next_fq.shortTitle=p.t(null,void 0,o(881220)),Xe.earnings_per_share_forecast_next_fq.disableHeaderControl=!0,Xe.earnings_per_share_forecast_next_fq.align="right",Xe.earnings_per_share_forecast_next_fq.additionalColumns=["earnings_release_next_date","earnings_per_share_forecast_fq"],Xe.earnings_per_share_forecast_next_fq.mutateDisplayValue=(e,t,o)=>{const i=Ne(Xe.earnings_release_next_date.value,Ae);if(i){const o=Oe(i);if(o&&st(t,o))return e}return o?Se.format(o):nt},Xe.earnings_per_share_fq.title=p.t(null,void 0,o(8041)),Xe.earnings_per_share_fq.shortTitle=p.t(null,void 0,o(8041)),Xe.eps_surprise_fq={control:"condition",hiddenOperators:ze,conditionFields:[],title:q.eps_surprise_fq[0],shortTitle:q.eps_surprise_fq[1],formatter:Se,filterFormatter:Ce,category:2,highlightChange:!0},Xe.eps_surprise_percent_fq={control:"condition",hiddenOperators:ze,conditionFields:[],title:q.eps_surprise_percent_fq[0],shortTitle:q.eps_surprise_percent_fq[1],formatter:xe,filterFormatter:Te,category:2,highlightChange:!0},Xe.revenue_fq={control:"condition",hiddenOperators:ze,conditionFields:[],title:p.t(null,void 0,o(484933)),shortTitle:p.t(null,void 0,o(484933)),formatter:ke,category:1},Xe.revenue_forecast_next_fq={control:"condition",hiddenOperators:ze,conditionFields:[],title:p.t(null,void 0,o(792741)),shortTitle:p.t(null,void 0,o(792741)),formatter:ke,category:1,additionalColumns:["earnings_release_next_date","revenue_forecast_fq"],mutateDisplayValue:(e,t,o)=>{const i=Ne(Xe.earnings_release_next_date.value,Ae);if(i){const o=Oe(i);if(o&&st(t,o))return"0"===e?nt:e}return o?ke.format(o):nt}},at()}const nt='';function st(e,t){return function(e,t){const o=t[0],i=t[1];return o<=e&&e<=i}(1e3*e,t)}const lt=e=>{e.additionalColumns=["earnings_release_next_date"],e.mutateDisplayValue=(e,t)=>{const o=Ne(Xe.earnings_release_next_date.value,Ae);if(o){const e=Oe(o);if(e&&st(t,e))return nt}return e}};function at(){lt(Xe.earnings_per_share_fq),lt(Xe.eps_surprise_fq), lt(Xe.eps_surprise_percent_fq),lt(Xe.revenue_fq)}function ct(e,t="stock",o=!0){if(!e)return null;if(["crypto_mkt"].includes(t)&&e.cryptoFormatter)return e.cryptoFormatter;if(["forex","crypto","crypto_mkt","cfd","futures"].includes(t)){if(e.forexFilterFormatter)return e.forexFilterFormatter;if(e.forexFormatter)return e.forexFormatter}return o&&e.filterFormatter?e.filterFormatter:e.formatter?e.formatter:null}const dt={};function ut(e,t,o,i){const r=e+";"+t+";"+o+";"+i;return dt[r]||(dt[r]=new m.PriceFormatter({priceScale:e,minMove:t,fractional:o,minMove2:i})),dt[r]}function ht(e){return Xe[e]&&!Xe[e].fixed&&!Xe[e].disabled&&!Xe[e].hideSetupColumn}function pt(e){return e.filterTitle||e.title}var gt;function _t(e,t){return Array.isArray(e)&&Array.isArray(t)?function(e,t){const o=[...e,...t];return[Math.min(...o),Math.max(...o)]}(e,t):"string"!=typeof e?function(e,t){return e.operator!==t.operator?null:"greater"===t.operator?{operator:e.operator,value:Math.min(t.value,e.value)}:{operator:e.operator,value:Math.max(e.value,t.value)}}(e,t):e===t?e:null}!function(e){e.Bonds="bonds",e.Cfd="cfd",e.ContinuousFutures="continuous_futures",e.Crypto="crypto",e.CryptoBySymbol="crypto_by_symbol",e.CryptoMkt="crypto_mkt",e.CryptoMktBySymbol="crypto_mkt_by_symbol",e.Currency="currency",e.Forex="forex",e.Futures="futures",e.Industry="industry",e.PostMarket="post_market",e.PreMarket="pre_market",e.Sector="sector",e.Stock="stock",e.StockCompact="stock_compact"}(gt||(gt={}));const mt={forex:{top_gainers:p.t(null,void 0,o(497496)),top_losers:p.t(null,void 0,o(67269))},default:{top_gainers:p.t(null,void 0,o(534822)),top_losers:p.t(null,void 0,o(619430))}},vt=[{id:"general",title:p.t(null,void 0,o(704258)),content:{sort_field:"name",sort_direction:"asc",filters:{}}},{id:"most_capitalized",title:p.t(null,void 0,o(553743)),content:{sort_field:"market_cap_basic",sort_direction:"desc",filters:{is_primary:{operator:"equal",value:!0},active_symbol:{operator:"equal",value:!0}}}},{id:"volume_leaders",title:p.t(null,void 0,o(476709)),adjustFilter:{volume:[1]},content:{sort_field:"volume",sort_direction:"desc",filters:{is_primary:{operator:"equal",value:!0},active_symbol:{operator:"equal",value:!0}}}},{id:"top_gainers",title:mt.default.top_gainers,adjustFilter:{change:[1]},content:{sort_field:"change",sort_direction:"desc",filters:{change:{operator:"greater",value:0},is_primary:{operator:"equal",value:!0},active_symbol:{operator:"equal",value:!0}}}},{id:"top_losers",title:mt.default.top_losers,adjustFilter:{change:[0]},content:{sort_field:"change",sort_direction:"asc",filters:{change:{operator:"less",value:0},is_primary:{operator:"equal",value:!0},active_symbol:{operator:"equal",value:!0}}}},{id:"ath",title:p.t(null,void 0,o(561723)),content:{sort_field:"name",sort_direction:"asc",filters:{"High.All":{operator:"eless",value:"high"},is_primary:{operator:"equal",value:!0},active_symbol:{operator:"equal",value:!0}}}},{id:"atl",title:p.t(null,void 0,o(699864)),content:{sort_field:"name",sort_direction:"asc",filters:{"Low.All":{operator:"egreater", value:"low"},is_primary:{operator:"equal",value:!0},active_symbol:{operator:"equal",value:!0}}}},{id:"high_dividend",title:p.t(null,void 0,o(768450)),content:{sort_field:"dividend_yield_recent",sort_direction:"desc",filters:{dividend_yield_recent:{operator:"greater",value:0},is_primary:{operator:"equal",value:!0},active_symbol:{operator:"equal",value:!0}}}},{id:"above_52wk_high",title:p.t(null,void 0,o(686478)),content:{sort_field:"name",sort_direction:"asc",filters:{price_52_week_high:{operator:"eless",value:"high"},is_primary:{operator:"equal",value:!0},active_symbol:{operator:"equal",value:!0}}}},{id:"below_52wk_low",title:p.t(null,void 0,o(56273)),content:{sort_field:"name",sort_direction:"asc",filters:{price_52_week_low:{operator:"egreater",value:"low"},is_primary:{operator:"equal",value:!0},active_symbol:{operator:"equal",value:!0}}}},{id:"monthly_high",title:p.t(null,void 0,o(708562)),content:{sort_field:"name",sort_direction:"asc",filters:{"High.1M":{operator:"eless",value:"high"},is_primary:{operator:"equal",value:!0},active_symbol:{operator:"equal",value:!0}}}},{id:"monthly_low",title:p.t(null,void 0,o(202388)),content:{sort_field:"name",sort_direction:"asc",filters:{"Low.1M":{operator:"egreater",value:"low"},is_primary:{operator:"equal",value:!0},active_symbol:{operator:"equal",value:!0}}}},{id:"most_volatile",title:p.t(null,void 0,o(284514)),adjustFilter:{"Volatility.D":[1]},content:{sort_field:"Volatility.D",sort_direction:"desc",filters:{is_primary:{operator:"equal",value:!0},active_symbol:{operator:"equal",value:!0}}}},{id:"unusual_volume",title:p.t(null,void 0,o(200419)),adjustFilter:{relative_volume_10d_calc:[1]},content:{sort_field:"relative_volume_10d_calc",sort_direction:"desc",filters:{is_primary:{operator:"equal",value:!0},relative_volume_10d_calc:null,active_symbol:{operator:"equal",value:!0}}}},{id:"overbought",title:p.t(null,void 0,o(890846)),content:{sort_field:"name",sort_direction:"asc",filters:{is_primary:{operator:"equal",value:!0},RSI:{operator:"greater",value:70},active_symbol:{operator:"equal",value:!0}}}},{id:"oversold",title:p.t(null,void 0,o(96062)),content:{sort_field:"name",sort_direction:"asc",filters:{is_primary:{operator:"equal",value:!0},RSI:{operator:"less",value:30},active_symbol:{operator:"equal",value:!0}}}},{id:"outperforming_SMA50",title:p.t(null,void 0,o(862381)),content:{sort_field:"name",sort_direction:"asc",filters:{is_primary:{operator:"equal",value:!0},SMA50:{operator:"less",value:"close"},active_symbol:{operator:"equal",value:!0}}}},{id:"underperforming_SMA50",title:p.t(null,void 0,o(196067)),content:{sort_field:"name",sort_direction:"asc",filters:{is_primary:{operator:"equal",value:!0},SMA50:{operator:"greater",value:"close"},active_symbol:{operator:"equal",value:!0}}}},{id:"earnings_this_week",title:p.t(null,void 0,o(711478)),content:{sort_field:"market_cap_basic",sort_direction:"desc",filters:{is_primary:{operator:"equal",value:!0},earnings_release_next_date:null,active_symbol:{operator:"equal",value:!0}}}},{id:"pre_market_gainers", title:p.t(null,void 0,o(171794)),adjustFilter:{premarket_change:[1]},content:{sort_field:"premarket_change",sort_direction:"desc",filters:{is_primary:{operator:"equal",value:!0},premarket_change:{operator:"greater",value:0},active_symbol:{operator:"equal",value:!0}}}},{id:"after_hours_gainers",title:p.t(null,void 0,o(126679)),adjustFilter:{postmarket_volume:[1]},content:{sort_field:"postmarket_volume",sort_direction:"desc",filters:{is_primary:{operator:"equal",value:!0},postmarket_volume:{operator:"greater",value:0},active_symbol:{operator:"equal",value:!0}}}}];function ft(e){vt.forEach((t=>{if(t.disabled=!1,t.id in g.marketFilterValues.america)for(const e in g.marketFilterValues.america[t.id])t.content.filters[e]=g.marketFilterValues.america[t.id][e];(t=>{["forex","crypto"].includes(e[0])||e.includes("brazil")?delete t.content.filters.name:t.content.filters.name=["common","dr","etf"],1===e.length&&"america"===e[0]?t.content.filters.exchange=["NYSE","NASDAQ","AMEX"]:delete t.content.filters.exchange,"general"===t.id&&("crypto"===e[0]&&(t.content.sort_field="24h_vol|5",t.content.sort_direction="desc"),"forex"===e[0]&&(t.content.sort_field="name",t.content.sort_direction="asc"));const o=[];for(const n of e){const e=g.marketFilterValues[n];if(e&&t.id in e)if(t.disabled||null!==e[t.id]){const n=e[t.id];for(const e in n){const s=n[e];if(null===s||(i=t.content.filters[e],r=s,Object.prototype.toString.call(i)!==Object.prototype.toString.call(r)))delete t.content.filters[e],o.push(e);else if(!o.includes(e)&&e in t.content.filters){const i=_t(t.content.filters[e],s);i?t.content.filters[e]=i:(delete t.content.filters[e],o.push(e))}else t.content.filters[e]=s}}else t.disabled=!0}var i,r;"forex"===e[0]?mt.forex[t.id]&&(t.title=mt.forex[t.id]):mt.default[t.id]&&(t.title=mt.default[t.id])})(t),"general"===t.id&&(t.disabled="forex"!==e[0]&&"crypto"!==e[0]),["pre_market_gainers","after_hours_gainers"].includes(t.id)&&(t.disabled=!0)}))}const yt=JSON.parse('["BAHRAIN","BELEX","BMV","BSSE","BVB","BVL","BVMT","DFM","DSEBD","EURONEXT_AMS","EURONEXT_BRU","EURONEXT_LIS","EURONEXT_PAR","EURONEXTAMS","EURONEXTBRU","EURONEXTLIS","EURONEXTPAR","EURONEXTDUB","OSE","OSL","FSE","HKEX","HOSE","ICESG","ICEABUD","ICEUSCA","ICEENDEX","LUXSE","MOEX","MYX","NAG","NASDAQDUBAI","NSE","NSENG","NSEKE","NGM","NZX","PSE","PSX","SAPSE","SET","SGX","SZSE","SHFE","TADAWUL","TSE","TWSE","FTSEST","LME","QSE"]');const bt=["artechecom","cincodias","copees","elconfidencial","elespanolcom","elnacionalD","elpaisfinanciero","elperiodicodelaenergia","epe","finanzasD","lainformacioncom"],wt=["bovespa","forbescombr","genialinvestimentos","marcopolocombr","moneytimescombr","NoticiasagricolaD","poder360","seudinheiro","spacemoneycombr","tradersclubbrasil","tradersclubbrasilD","vocesaabrilcombr","xpicombr"];var St=o(547465);o(112513);var Ct=o(61499),kt=o(518594);kt.themes[Ct.StdTheme.Light].label(),Ct.StdTheme.Light,kt.themes[Ct.StdTheme.Dark].label(),Ct.StdTheme.Dark;var xt;!function(e){e.BaseCurrencyLogoId="base_currency_logoid",e.Change="change",e.Country="country", e.CurrencyLogoId="currency_logoid",e.Description="description",e.Industry="industry",e.LogoId="logoid",e.Name="name",e.Performance1M="Perf.1M",e.Performance3M="Perf.3M",e.Performance6M="Perf.6M",e.PerformanceW="Perf.W",e.PerformanceY="Perf.Y",e.PerformanceYTD="Perf.YTD",e.Sector="sector"}(xt||(xt={}));const Tt=[{id:"overview",title:p.t(null,void 0,o(15797)),screenerTypeContent:{stock:{stock:[xt.LogoId,xt.Name,"close","change","change_abs","Recommend.All","volume","Value.Traded","market_cap_basic","price_earnings_ttm","earnings_per_share_basic_ttm","number_of_employees",xt.Sector,"description","type"],_sector:[xt.LogoId,xt.Name,"close","change","change_abs","Recommend.All","volume","Value.Traded","market_cap_basic","price_earnings_ttm","earnings_per_share_basic_ttm","number_of_employees","industry","description","type"]},forex:[xt.BaseCurrencyLogoId,xt.CurrencyLogoId,xt.Name,"close","change","change_abs","bid","ask","high","low","Recommend.All","description","type"],crypto:[xt.BaseCurrencyLogoId,xt.CurrencyLogoId,xt.Name,"close","change","change_abs","high","low","volume","24h_vol|5","24h_vol_change|5","Recommend.All","exchange","description"],crypto_mkt:[xt.BaseCurrencyLogoId,xt.Sector,"market_cap_calc","market_cap_diluted_calc","close","total_shares_outstanding","total_shares_diluted","total_value_traded","change"],crypto_mkt_by_symbol:[xt.CurrencyLogoId,xt.Name,"close","change","change_abs","high","low","volume","Recommend.All","exchange","description"],crypto_by_symbol:[xt.CurrencyLogoId,xt.Name,"exchange","close","change","change_abs","high","low","volume","Recommend.All","description"],futures:[xt.LogoId,xt.Name,"close","change","change_abs","high","low","Recommend.All","description"],continuous_futures:[xt.LogoId,xt.Name,"expiration","close","change","change_abs","high","low","Recommend.All","description"],cfd:[xt.LogoId,xt.Name,"close","change","change_abs","high","low","Recommend.All","description"],sector:["description","market_cap_basic","dividend_yield_recent","change","volume","elements","basic_elements"],industry:["description","market_cap_basic","dividend_yield_recent","change","volume",xt.Sector,"elements"],currency:[xt.LogoId,xt.Name,"close","change","change_abs","high","low","Recommend.All","description"],bonds:[xt.LogoId,xt.Name,"coupon","maturity_date","close","change","change_abs","high","low","Recommend.All","description"],pre_market:[xt.LogoId,xt.Name,"premarket_close","premarket_change_abs","premarket_change","premarket_volume","premarket_gap","close","change","volume","market_cap_basic"],post_market:[xt.LogoId,xt.Name,"postmarket_close","postmarket_change_abs","postmarket_change","postmarket_volume","close","change","volume","market_cap_basic"]},content:[],screeners:[gt.Stock,gt.StockCompact,gt.Forex,gt.Futures,gt.ContinuousFutures,gt.Cfd,gt.Crypto,gt.CryptoMkt,gt.CryptoMktBySymbol,gt.CryptoBySymbol,gt.Sector,gt.Industry,gt.Currency,gt.Bonds,gt.PreMarket,gt.PostMarket],showOnWidget:!0},{id:"performance",title:p.t(null,void 0,o(970074)),screenerTypeContent:{ stock:[xt.LogoId,xt.Name,"description","type","change.1","change.5","change.15","change.60","change.240","change","change.1W","change.1M","Perf.3M","Perf.6M","Perf.YTD","Perf.Y","Perf.5Y","Perf.All","beta_1_year","Volatility.D"],futures:[xt.LogoId,xt.Name,"description","type","change","change.1W","change.1M","Perf.3M","Perf.6M","Perf.YTD","Perf.Y","Volatility.D"],continuous_futures:[xt.LogoId,xt.Name,"description","type","change","change.1W","change.1M","Perf.3M","Perf.6M","Perf.YTD","Perf.Y","Volatility.D"],forex:[xt.BaseCurrencyLogoId,xt.CurrencyLogoId,xt.Name,"description","type","change","change.1W","change.1M","Perf.3M","Perf.6M","Perf.YTD","Perf.Y","Perf.5Y","Perf.All","Volatility.D"],crypto:[xt.BaseCurrencyLogoId,xt.CurrencyLogoId,xt.Name,"description","type","change","change.1W","change.1M","Perf.3M","Perf.6M","Perf.YTD","Perf.Y","Perf.5Y","Perf.All","Volatility.D"],crypto_mkt:[xt.BaseCurrencyLogoId,xt.Sector,"description","type","change","change.1W","change.1M","Perf.3M","Perf.6M","Perf.YTD","Perf.Y","Volatility.D"],crypto_mkt_by_symbol:[xt.CurrencyLogoId,xt.Name,"description","type","change","change.1W","change.1M","Perf.3M","Perf.6M","Perf.YTD","Perf.Y","Volatility.D"],crypto_by_symbol:[xt.CurrencyLogoId,xt.Name,"exchange","description","type","change","change.1W","change.1M","Perf.3M","Perf.6M","Perf.YTD","Perf.Y","Volatility.D"],cfd:[xt.LogoId,xt.Name,"description","type","change","change.1W","change.1M","Perf.3M","Perf.6M","Perf.YTD","Perf.Y","Volatility.D"],sector:["description","change","change.1W","change.1M","Perf.3M","Perf.6M","Perf.YTD","Perf.Y"],industry:["description","change","change.1W","change.1M","Perf.3M","Perf.6M","Perf.YTD","Perf.Y"],currency:[xt.LogoId,xt.Name,"description","type","change","change.1W","change.1M","Perf.3M","Perf.6M","Perf.YTD","Perf.Y","Volatility.D"],bonds:[xt.LogoId,xt.Name,"description","type","change","change.1W","change.1M","Perf.3M","Perf.6M","Perf.YTD","Perf.Y","Volatility.D"]},content:[],screeners:[gt.Stock,gt.StockCompact,gt.Forex,gt.Futures,gt.ContinuousFutures,gt.Cfd,gt.Crypto,gt.CryptoMkt,gt.CryptoBySymbol,gt.CryptoMktBySymbol,gt.Sector,gt.Industry,gt.Currency,gt.Bonds,gt.PreMarket,gt.PostMarket],showOnWidget:!0},{id:"extended_hours",title:p.t(null,void 0,o(832349)),content:[xt.LogoId,xt.Name,"description","premarket_close","premarket_change","premarket_gap","premarket_volume","close","change","volume","postmarket_close","postmarket_change","postmarket_volume","Recommend.All","market_cap_basic"],screeners:[gt.Stock],showOnWidget:!1},{id:"valuation",title:p.t(null,void 0,o(201884)),content:[xt.LogoId,xt.Name,"description","type","close","market_cap_basic","price_earnings_ttm","price_revenue_ttm","earnings_per_share_basic_ttm","last_annual_eps","enterprise_value_ebitda_ttm","enterprise_value_fq","total_shares_outstanding_fundamental"],screeners:[gt.Stock,gt.StockCompact,gt.PreMarket,gt.PostMarket],showOnWidget:!0},{id:"dividends",title:p.t(null,void 0,o(137260)), content:[xt.LogoId,xt.Name,"description","type","close","dividend_yield_recent","dividends_paid","dps_common_stock_prim_issue_fy"],screeners:[gt.Stock,gt.StockCompact,gt.PreMarket,gt.PostMarket],showOnWidget:!0},{id:"margins",title:p.t(null,{context:"screener"},o(113262)),content:[xt.LogoId,xt.Name,"description","type","gross_margin","operating_margin","pre_tax_margin","after_tax_margin"],screeners:[gt.Stock,gt.StockCompact,gt.PreMarket,gt.PostMarket],showOnWidget:!0},{id:"income_statement",title:p.t(null,void 0,o(558462)),content:[xt.LogoId,xt.Name,"description","type","basic_eps_net_income","earnings_per_share_basic_ttm","earnings_per_share_diluted_ttm","ebitda","gross_profit_fq","gross_profit","total_revenue","last_annual_eps","last_annual_revenue","net_income"],screeners:[gt.Stock,gt.StockCompact,gt.PreMarket,gt.PostMarket],showOnWidget:!0},{id:"balance_sheet",title:p.t(null,void 0,o(902524)),content:[xt.LogoId,xt.Name,"description","type","current_ratio","debt_to_equity","net_debt","quick_ratio","total_assets","total_debt","total_current_assets"],screeners:[gt.Stock,gt.StockCompact,gt.PreMarket,gt.PostMarket],showOnWidget:!0},{id:"oscillators",title:p.t(null,void 0,o(749128)),screenerTypeContent:{stock:[xt.LogoId,xt.Name,"Recommend.Other","ADX","AO","ATR","CCI20","MACD.macd","MACD.signal","Mom","RSI","Stoch.K","Stoch.D","description","type"],forex:[xt.BaseCurrencyLogoId,xt.CurrencyLogoId,xt.Name,"Recommend.Other","ADX","AO","ATR","CCI20","MACD.macd","MACD.signal","Mom","RSI","Stoch.K","Stoch.D","description","type"],futures:[xt.LogoId,xt.Name,"Recommend.Other","ADX","AO","ATR","CCI20","MACD.macd","MACD.signal","Mom","RSI","Stoch.K","Stoch.D","description","type"],continuous_futures:[xt.LogoId,xt.Name,"Recommend.Other","ADX","AO","ATR","CCI20","MACD.macd","MACD.signal","Mom","RSI","Stoch.K","Stoch.D","description","type"],crypto:[xt.BaseCurrencyLogoId,xt.CurrencyLogoId,xt.Name,"Recommend.Other","ADX","AO","ATR","CCI20","MACD.macd","MACD.signal","Mom","RSI","Stoch.K","Stoch.D","description","type"],crypto_mkt:[xt.BaseCurrencyLogoId,xt.Sector,"Recommend.Other","ADX","AO","ATR","CCI20","MACD.macd","MACD.signal","Mom","RSI","Stoch.K","Stoch.D","description","type"],crypto_mkt_by_symbol:[xt.CurrencyLogoId,xt.Name,"Recommend.Other","ADX","AO","ATR","CCI20","MACD.macd","MACD.signal","Mom","RSI","Stoch.K","Stoch.D","description","type"],crypto_by_symbol:[xt.CurrencyLogoId,xt.Name,"exchange","Recommend.Other","ADX","AO","ATR","CCI20","MACD.macd","MACD.signal","Mom","RSI","Stoch.K","Stoch.D","description","type"],cfd:[xt.LogoId,xt.Name,"Recommend.Other","ADX","AO","ATR","CCI20","MACD.macd","MACD.signal","Mom","RSI","Stoch.K","Stoch.D","description","type"],currency:[xt.LogoId,xt.Name,"Recommend.Other","ADX","AO","ATR","CCI20","MACD.macd","MACD.signal","Mom","RSI","Stoch.K","Stoch.D","description","type"],bonds:[xt.LogoId,xt.Name,"Recommend.Other","ADX","AO","ATR","CCI20","MACD.macd","MACD.signal","Mom","RSI","Stoch.K","Stoch.D","description","type"]},content:[], screeners:[gt.Stock,gt.StockCompact,gt.Forex,gt.Futures,gt.ContinuousFutures,gt.Cfd,gt.Crypto,gt.CryptoMkt,gt.CryptoMktBySymbol,gt.CryptoBySymbol,gt.Currency,gt.Bonds,gt.PreMarket,gt.PostMarket],showOnWidget:!0},{id:"moving_averages",title:p.t(null,void 0,o(61980)),screenerTypeContent:{stock:[xt.LogoId,xt.Name,"Recommend.MA","close","SMA20","SMA50","SMA200","BB.upper","BB.lower","description","type"],forex:[xt.BaseCurrencyLogoId,xt.CurrencyLogoId,xt.Name,"Recommend.MA","close","SMA20","SMA50","SMA200","BB.upper","BB.lower","description","type"],futures:[xt.LogoId,xt.Name,"Recommend.MA","close","SMA20","SMA50","SMA200","BB.upper","BB.lower","description","type"],continuous_futures:[xt.LogoId,xt.Name,"Recommend.MA","close","SMA20","SMA50","SMA200","BB.upper","BB.lower","description","type"],crypto:[xt.BaseCurrencyLogoId,xt.CurrencyLogoId,xt.Name,"Recommend.MA","close","SMA20","SMA50","SMA200","BB.upper","BB.lower","description","type"],crypto_mkt:[xt.BaseCurrencyLogoId,xt.Sector,"Recommend.MA","close","SMA20","SMA50","SMA200","BB.upper","BB.lower","description","type"],crypto_mkt_by_symbol:[xt.CurrencyLogoId,xt.Name,"Recommend.MA","close","SMA20","SMA50","SMA200","BB.upper","BB.lower","description","type"],crypto_by_symbol:[xt.CurrencyLogoId,xt.Name,"exchange","Recommend.MA","close","SMA20","SMA50","SMA200","BB.upper","BB.lower","description","type"],cfd:[xt.LogoId,xt.Name,"Recommend.MA","close","SMA20","SMA50","SMA200","BB.upper","BB.lower","description","type"],currency:[xt.LogoId,xt.Name,"Recommend.MA","close","SMA20","SMA50","SMA200","BB.upper","BB.lower","description","type"],bonds:[xt.LogoId,xt.Name,"Recommend.MA","close","SMA20","SMA50","SMA200","BB.upper","BB.lower","description","type"]},content:[],screeners:[gt.Stock,gt.StockCompact,gt.Forex,gt.Futures,gt.ContinuousFutures,gt.Cfd,gt.Crypto,gt.CryptoMkt,gt.CryptoMktBySymbol,gt.CryptoBySymbol,gt.Currency,gt.Bonds,gt.PreMarket,gt.PostMarket],showOnWidget:!0}],Mt=[xt.LogoId,"name","market_cap_basic","earnings_per_share_forecast_next_fq","earnings_per_share_fq","eps_surprise_fq","eps_surprise_percent_fq","revenue_forecast_next_fq","revenue_fq","earnings_release_next_date","earnings_release_next_calendar_date","earnings_release_next_time","description","type"];function Et(e){const t={screenerType:gt.Stock,markets:["stock"],isCompact:!1,subtype:"",isOnWidget:!1};let o=Tt;const i=Object.assign(t,e),{screenerType:r,isCompact:n,subtype:l,isOnWidget:a}=i,{markets:c}=i;return o=o.filter((e=>{if(r===gt.Stock){const t=n?`${r}_compact`:r;return e.screeners.includes(t)}return e.screeners.includes(r)})),a&&(o=o.filter((e=>!0===e.showOnWidget))),o.forEach((e=>{if(void 0!==e.screenerTypeContent){const o=e.screenerTypeContent[(0,s.ensureDefined)(r)]||e.screenerTypeContent.stock;if(t=o,Array.isArray(t))e.content=(0,s.ensureDefined)(o);else{const t=Object.keys(o),i=c.reduce(((e,t)=>(e.push(`${(0,s.ensureDefined)(t)}_${(0,s.ensureDefined)(l)}`),e.push(`${(0,s.ensureDefined)(l)}`),e.push((0,s.ensureDefined)(t)),e)),[]),r=function(e,t){for(const o of e)if(t.includes(o))return o ;return"stock"}([...new Set(i)],t);e.content=o[r]}}var t;a&&(e.content=e.content.filter((e=>"description"!==e)))})),o}const Ft="america";function At(e){const t=Bt((0,g.getMarketsByScreenerType)("stock"),e),o=Bt((0,g.getMarketsByScreenerType)("forex"),e),i=Bt((0,g.getMarketsByScreenerType)("crypto"),e);return t.concat(o).concat(i)}function Bt(e,t){const o=function(e){const t=yt.slice();return e&&wt.includes(e)&&t.splice(t.indexOf("BMFBOVESPA"),1),"ambito"===e&&t.splice(t.indexOf("BCBA"),1),"hegnarno"===e&&t.splice(t.indexOf("OSL"),1),e&&bt.includes(e)&&t.splice(t.indexOf("BME"),1),e&&["riyadhcapitalD","riyadhcapitalRT"].includes(e)&&(t.splice(t.indexOf("TADAWUL"),1),t.splice(t.indexOf("DFM"),1)),"NGX"===e&&t.splice(t.indexOf("NSENG"),1),t}(t);return Object.keys(e).filter((t=>{if(["forex","crypto"].includes(t))return!0;const i=e[t];return!!i&&(i.stocks=i.stocks.filter((e=>-1===o.indexOf(e))),0!==i.stocks.length)})).map((t=>({title:e[t]?e[t].title+(e[t].stocks.length?` (${It(t,e)})`:""):t,value:t}))).sort(((e,t)=>e.value===Ft?-1:t.value===Ft||e.title>t.title?1:-1))}function It(e,t){let o=[...t[e].stocks];const i=(0,g.getUnavailableWidgetExchangesMap)()[e];return i&&(o=o.filter((e=>!i.includes(e)))),o.join(", ")}function Dt(e){return(0,g.getUnavailableWidgetMarkets)().includes(e)}const Pt={whitelabel:!0,permissionOverrides:!0};var Rt=o(439563);var Lt=o(931924),$t=(o(617525),o(832517),o(804840),o(950107),o(695556),o(275631),o(386727),o(713710),o(423777),o(38280),o(989767),o(506438),o(144669),o(88895),o(184121),o(481316),o(758804),o(941924),o(975351),o(93807),o(588978),o(926724),o(335048)),Nt=o(713438);var Ot=o(290484),Wt=o(207678);class Vt{constructor(e){this._coll=e}getItemByIdx(e){return this._coll.item(e)}getItems(){return Array.from(this._coll)}getFirstItem(){return this.getItemByIdx(0)}getLastItem(){const e=this._coll.length;return this.getItemByIdx(e-1)}getItemIdx(e){return Array.prototype.findIndex.call(this._coll,(t=>t===e))}getLength(){return this._coll.length}contains(e){return-1!==this.getItemIdx(e)}}var Ht,qt=o(799786);!function(e){e[e.Prev=-1]="Prev",e[e.Next=1]="Next"}(Ht||(Ht={}));const Ut="cursor";class jt{constructor(e){this._list=e.list,this._items=new Vt(this._list.getElementsByClassName(e.listItemClass)),this._focused=new Vt(this._list.getElementsByClassName(e.focusedListItemClass)),this._selected=new Vt(this._list.getElementsByClassName(e.selectedListItemClass)),this._cursor=new Vt(this._list.getElementsByClassName(Ut)),this._selectedListItemClass=e.selectedListItemClass,this._focusedListItemClass=e.focusedListItemClass,this._onSelect=e.onSelect,this._onNavigate=e.onNavigate,this._onConfirm=e.onConfirm,this._onDelete=e.onDelete,this._mouseActions=new Map,this.hotkeys=(0,qt.createGroup)({desc:"Selectable list"}),e.modes&&e.modes.forEach((t=>new t({selection:this,localHotkeyElement:this._list,globalHotkeyElement:e.globalHotkeys?null:this._list})))}selectItem(e){e.classList.add(this._selectedListItemClass)}unselectItem(e){e.classList.remove(this._selectedListItemClass)}focusItem(e){this.removeFocus(), e.classList.add(this._focusedListItemClass),this.setCursor(e)}getFocusedItemIdx(){const e=this._focused.getFirstItem();return e?this._items.getItemIdx(e):-1}getFocusedItem(){return this._focused.getFirstItem()}isSelected(e){return this._selected.contains(e)}isFocused(e){return this._focused.contains(e)}isListItem(e){return this._items.contains(e)}removeSelections(){this._selected.getItems().forEach((e=>e.classList.remove(this._selectedListItemClass)))}removeFocus(){this._focused.getItems().forEach((e=>e.classList.remove(this._focusedListItemClass)))}move(e,t,o){const i=e?this._items.getItemIdx(e):-1;let r;r="number"==typeof t?this._items.getItemByIdx(this._calcNextItemIdx(i,t)):t,r&&(o(r,e),this._scrollIfNotVisible(r))}getSelectedItems(){return this._selected.getItems()}getList(){return this._list}getItemsCollection(){return this._items}getSelectedCollection(){return this._selected}setCursor(e){this.removeCursor(),e.classList.add(Ut)}removeCursor(){this._cursor.getItems().forEach((e=>e.classList.remove(Ut)))}getCursorItem(){return this._cursor.getFirstItem()}getCursorItemIdx(){const e=this.getCursorItem();return e?this._items.getItemIdx(e):-1}onSelect(e,t){this._onSelect&&this._onSelect({cursor:t,items:this.getSelectedItems(),action:e})}onNavigate(e,t){this._onNavigate&&this._onNavigate({cursor:e,cursorIdx:this.getCursorItemIdx(),items:[e],action:t})}onConfirm(e,t){this._onConfirm&&this._onConfirm({cursor:e,items:[e],action:t})}onDelete(e,t,o){this._onDelete&&this._onDelete({cursor:o,items:e,action:t})}registerMouseAction(e,t){this._mouseActions.set(e,t)}dispatchMouseEvent(e,t){const o=this._mouseActions.get(e);o&&o(t)}delegateClick(e){return t=>{if(!t.defaultPrevented){const o=this._list.contains(t.target);let i=t.target;for(;o&&i!==this._list;){if(i&&this.isListItem(i))return void e(i);i=i&&i.parentElement}}}}clear(){this.removeSelections(),this.removeFocus(),this.removeCursor()}destroy(){this.hotkeys.destroy(),delete this._list,delete this._items,delete this._selected,delete this._focused,delete this._cursor,delete this._mouseActions}_scrollIfNotVisible(e){const t=this._list.getBoundingClientRect(),o=e.getBoundingClientRect(),i=t.top,r=t.bottom,n=o.top,s=o.bottom;nr&&(this._list.scrollTop+=s-r)}_calcNextItemIdx(e,t){const o=this._items.getLength()-1;let i=e+t;return i<0&&(i=o),i>o&&(i=0),i}}class zt{constructor(e){this._focusNext=()=>{if(!this._isValidNavigation())return;const e=this._selection.getCursorItem();this._selection.move(e,Ht.Next,this._focusItem.bind(this,"down"))},this._focusPrev=()=>{if(!this._isValidNavigation())return;const e=this._selection.getCursorItem();this._selection.move(e,Ht.Prev,this._focusItem.bind(this,"up"))},this._focusFirst=()=>{if(!this._isValidNavigation())return;const e=this._selection.getItemsCollection().getFirstItem(),t=this._selection.getFocusedItem();this._selection.move(t,e,this._focusItem.bind(this,"home"))},this._focusLast=()=>{if(!this._isValidNavigation())return ;const e=this._selection.getItemsCollection().getLastItem(),t=this._selection.getFocusedItem();this._selection.move(t,e,this._focusItem.bind(this,"end"))},this._selection=e.selection,this._selection.registerMouseAction("click",this._selection.delegateClick(this._focusItem.bind(this,"click"))),this._selection.hotkeys.add({desc:"Focus Previous",hotkey:38,handler:this._focusPrev,element:e.globalHotkeyElement}),this._selection.hotkeys.add({desc:"Focus Next",hotkey:40,handler:this._focusNext,element:e.globalHotkeyElement}),this._selection.hotkeys.add({desc:"Focus Previous",hotkey:qt.Modifiers.Shift+32,handler:this._focusPrev,element:e.globalHotkeyElement}),this._selection.hotkeys.add({desc:"Focus Next",hotkey:32,handler:this._focusNext,element:e.globalHotkeyElement}),this._selection.hotkeys.add({desc:"Focus First",hotkey:36,handler:this._focusFirst,element:e.globalHotkeyElement}),this._selection.hotkeys.add({desc:"Focus Last",hotkey:35,handler:this._focusLast,element:e.globalHotkeyElement})}_focusItem(e,t){this._selection.removeSelections(),this._selection.focusItem(t),this._selection.setCursor(t),this._selection.selectItem(t),this._selection.onNavigate(t,e)}_isValidNavigation(){return document.activeElement===document.body||this._selection.getList().contains(document.activeElement)}}class Gt{constructor(e){this._selection=e.selection,this._selection.hotkeys.add({hotkey:qt.Modifiers.Alt+13,handler:this._onItemKeyDown.bind(this,"alt+return"),element:e.localHotkeyElement}),this._selection.hotkeys.add({hotkey:qt.Modifiers.Alt+qt.Modifiers.Shift+13,handler:this._onItemKeyDown.bind(this,"alt+return"),element:e.localHotkeyElement})}_onItemKeyDown(e,t){const o=this._selection.getCursorItem();o&&this._selection.onConfirm(o,e)}}class Xt{constructor(e){this._selection=e.selection,this._selection.registerMouseAction("shift+click",this._selection.delegateClick(this._onItemClick.bind(this,"shift+click"))),this._selection.hotkeys.add({desc:"Extend Selection Down",hotkey:qt.Modifiers.Shift+40,handler:this._nextRangeItem.bind(this,"shift+down"),element:e.localHotkeyElement}),this._selection.hotkeys.add({desc:"Extend Selection Up",hotkey:qt.Modifiers.Shift+38,handler:this._prevRangeItem.bind(this,"shift+up"),element:e.localHotkeyElement})}_nextRangeItem(e){const t=this._selection.getItemsCollection(),o=this._selection.getCursorItem();this._selection.getCursorItemIdx()!==t.getLength()-1&&this._selection.move(o,Ht.Next,this._addItemToRange(e,((e,t)=>ee>t)))}_onItemClick(e,t){const o=this._selection.getItemsCollection().getItems(),i=this._getRangeInfo(t);this._selection.removeSelections();for(let e=i.start;e<=i.end;e++)this._selection.isSelected(o[e])||this._selection.selectItem(o[e]);this._selection.setCursor(t),this._selection.onSelect(e,t)}_getRangeInfo(e){const t=this._selection.getItemsCollection().getItemIdx(e),o=this._selection.getFocusedItemIdx(),i=-1!==o?o:0 ;return t>i?{start:i,end:t}:{start:t,end:i}}_addItemToRange(e,t){return(o,i)=>{const r=this._selection.getItemsCollection().getItemIdx(o),n=this._selection.getFocusedItemIdx();0===this._selection.getSelectedCollection().getLength()&&i&&this._selection.selectItem(i),t(n,r)?this._selection.selectItem(o):i&&this._selection.unselectItem(i),this._selection.setCursor(o),this._selection.onSelect(e,o)}}}class Kt{constructor(e){this._selection=e.selection,this._selection.registerMouseAction("ctrl+click",this._selection.delegateClick(this._onItemClick.bind(this,"ctrl+click"))),this._selection.registerMouseAction("meta+click",this._selection.delegateClick(this._onItemClick.bind(this,"meta+click"))),this._selection.hotkeys.add({hotkey:qt.Modifiers.Mod+65,handler:this._selectAll.bind(this,"ctrl+a"),element:e.localHotkeyElement}),this._selection.hotkeys.add({hotkey:27,handler:this._unselectAll.bind(this,"esc"),element:e.localHotkeyElement})}_onItemClick(e,t){const o=this._selection.getFocusedItem(),i=this._selection.getSelectedCollection().getLength();o&&0===i&&this._selection.selectItem(o),this._toggleSelection(t),this._selection.onSelect(e,t)}_toggleSelection(e){this._selection.isSelected(e)?this._selection.unselectItem(e):this._selection.selectItem(e),this._selection.setCursor(e)}_selectAll(e){this._selection.getItemsCollection().getItems().forEach((e=>this._selection.selectItem(e))),this._selection.onSelect(e)}_unselectAll(e){this._selection.removeSelections();const t=this._selection.getFocusedItem();t&&this._selection.setCursor(t),this._selection.onSelect(e)}}class Yt{constructor(e){this._selection=e.selection,this._selection.hotkeys.add({desc:"Delete",hotkey:46,handler:this._delete.bind(this,"del"),element:e.globalHotkeyElement})}_delete(e){const t=this._selection.getSelectedItems(),o=this._selection.getCursorItem();o&&t.length>0?this._selection.onDelete(t,e,o):o&&this._selection.onDelete([o],e,o)}}var Jt=o(638456);class Zt{constructor(e){this._dispatchClick=e=>{e.ctrlKey&&!(0,Jt.isMac)()?this._selection.dispatchMouseEvent("ctrl+click",e):e.shiftKey?this._selection.dispatchMouseEvent("shift+click",e):e.metaKey&&(0,Jt.isMac)()?this._selection.dispatchMouseEvent("meta+click",e):this._selection.dispatchMouseEvent("click",e)},this._onSelect=e=>{this._collectKeys(),this._opts.onSelect&&this._opts.onSelect(e)},this._onNavigate=e=>{this._collectKeys(),this._opts.onNavigate&&this._opts.onNavigate(e)},this._disableSelection=()=>{this._list.onselectstart=()=>!1},this._enableSelection=()=>{this._list.onselectstart=()=>null},this._opts=e,this._list=e.list,this._selection=new jt({list:e.list,listItemClass:e.listItemClass,selectedListItemClass:e.selectedListItemClass,focusedListItemClass:e.focusedListItemClass,onSelect:this._onSelect,onNavigate:this._onNavigate,onConfirm:e.onConfirm,onDelete:e.onDelete,modes:e.modes,globalHotkeys:Boolean(e.globalHotkeys)}),this._selectedKeys=[],this._focusedKey=null,this._cursorKey=null,this.activate(),this._collectKeys()}activate(){this._list.addEventListener("click",this._dispatchClick), this._list.addEventListener("keydown",this._disableSelection),this._list.addEventListener("keyup",this._enableSelection),this._selection.hotkeys.promote()}deactivate(){this._list.removeEventListener("click",this._dispatchClick),this._list.removeEventListener("keydown",this._disableSelection),this._list.removeEventListener("keyup",this._enableSelection)}focusItem(e){this._selection.isSelected(e)||this._selection.isFocused(e)||(this._selection.removeSelections(),this._selection.focusItem(e))}removeFocus(){this._selection.removeFocus()}restore(){if(this._opts.getNodeKey){const e=this._selection.getItemsCollection().getItems(),t=this._opts.getNodeKey;e.forEach((e=>{const o=t(e);this._focusedKey===o&&this._selection.focusItem(e),this._cursorKey===o&&this._selection.setCursor(e),this._selectedKeys.includes(o)&&this._selection.selectItem(e)}))}}getSelectedKeys(){return this._collectKeys(),this._selectedKeys}getFocusedKey(){return this._collectKeys(),this._focusedKey||null}clear(){this._selection.clear()}destroy(){this.deactivate(),this._selection.destroy(),delete this._selection,delete this._list,delete this._opts}_collectKeys(){if(this._opts.getNodeKey){const e=this._opts.getNodeKey,t=this._selection.getSelectedItems(),o=this._selection.getFocusedItem(),i=this._selection.getCursorItem();this._selectedKeys=t.map((t=>e(t))),this._focusedKey=o?e(o):null,this._cursorKey=i?e(i):null}}}var Qt,eo=o(31214),to=(o(236550),o(337793),o(810047),o(228931)),oo=(o(670431),o(707934)),io=o(779923),ro=o(406103),no=o(746849),so=o(104461);!function(e){e[e.None=0]="None",e[e.Widget=1]="Widget",e[e.Site=2]="Site"}(Qt||(Qt={}));var lo=o(16241),ao=o(833813),co=o(969680),uo=o(518643);class ho{constructor(e){this.event="change_timeframe",this.source="timeframe_selector",this.location="toolbar",this.state="",this.value=e}}class po{constructor(e,t){this.event="change_columnset",this.source="columset_selector",this.location="toolbar",this.state="",this.value=(0,uo.getColumnSetNameForSnowPlow)(t),this.source=e}}class go{constructor(e,t){this.event="change_favorite_columnsets",this.source="columnset_star_button",this.location="toolbar",this.value=(0,uo.getColumnSetNameForSnowPlow)(t),this.state=e}}class _o{constructor(){this.event="rename_custom_columnset",this.source="columnset_pen_button",this.location="toolbar",this.state="",this.value=""}}class mo{constructor(e){this.event="change_filterset",this.source="filterset_selector",this.location="toolbar",this.state="",this.value=(0,uo.getFilterSetNameForSnowPlow)(e)}}class vo{constructor(){this.event="rename_custom_filterset",this.source="filterset_pen_button",this.location="toolbar",this.state="",this.value=""}}var fo=o(957931);class yo{constructor(e,t,o){this.event="change_columns",this.source="column_selector",this.location="header_fields_popup"===e?"header":"toolbar",this.state=t?"added":"removed",this.value=o}}class bo{constructor(e){this.event="column_move",this.source="column_header",this.location="header",this.state=fo.UserActionState.Drag,this.value=e}}class wo{constructor(){ this.event="refresh_screener_data",this.source="refresh_button",this.location="toolbar",this.state="",this.value=""}}class So{constructor(e){this.event="change_refresh_interval",this.source="refresh_interval_selector",this.location="toolbar",this.state="",this.value=(0,uo.getSnowPlowRefreshInterval)(e)}}var Co=o(779893);const ko=o(735566).getLogger("Screener.Popups");class xo{constructor(e,t,o){this._model=e,this._view=t,this._bridge=o,this._markets=null,this._model.fieldSetSaved.subscribe(null,(()=>this._view.$fieldSetsButton.removeClass("tv-screener-toolbar__button--unsaved"))),this._model.filterSetSaved.subscribe(null,(()=>this._view.$filterSetsButton.removeClass("tv-screener-toolbar__button--unsaved"))),this._fieldsPopupCache={}}showPromptDialog(e,t){return new Promise((i=>{(0,io.showRename)({title:e.title,text:e.label,initValue:t,mainButtonText:p.t(null,void 0,o(664e3)),maxLength:128,onRename:({newValue:e,dialogClose:t})=>{i(e),t()},onClose:i})}))}showMaintenanceDialog(){(0,to.showNoticeDialog)({type:"modal",title:p.t(null,void 0,o(900543)),content:p.t(null,void 0,o(673937))})}showConfirmDialog(e){return new Promise((t=>{(0,io.showConfirm)({text:e,onConfirm:({dialogClose:e})=>{t(!0),e()},onClose:()=>t(!1)})}))}showNotice(e,t){(0,to.showNoticeDialog)({content:e,title:t})}setFieldsPopup(e,t,i){e.addClass("tv-dropdown-behavior__button");const r=Co(`
`);r.insertAfter(e).append(e);const n=Co('
').appendTo(r);i&&n.addClass(i);const s=Co('
').appendTo(n),l=Co(``).appendTo(s),a=Co('
').appendTo(n),c=Co('
').appendTo(a);"header_fields-button"===e.attr("data-name")&&c.attr({"data-name":"header_fields_popup"});const d=Co('
No matches
').appendTo(n);l.on("change input",(e=>{const t=l.val().trim().toLowerCase();t?c.find(".js-fields-item").each((function(){const e=Co(this);e.toggleClass("js-hidden",!~e.text().toLowerCase().indexOf(t))})):c.find(".js-fields-item").removeClass("js-hidden"),d.toggleClass("js-hidden",!!c.find(".js-fields-item:not(.js-hidden)").size()),r.tvDropdown("updateScroll")})),r.on("beforeOpenMenu",(()=>{l.val(""),c.find(".js-fields-item").removeClass("js-hidden"),d.addClass("js-hidden"),this.resetFieldsPopup(c),a.css("maxHeight",Co(window).height()-e.offset().top+Co(window).scrollTop()-e.outerHeight()-s.outerHeight()-20)})).on("afterOpenMenu",(()=>{l.focus()})).tvDropdown({scroll:!0,noAnimation:!0}),setTimeout((()=>this.resetFieldsPopup(c)),0)}resetFieldsPopup(e){e.empty();const t=e=>{if(e in this._fieldsPopupCache){const t=this._fieldsPopupCache[e] ;return t.checkbox.prop("checked",Xe[e].checked),t.item}const t=Co('
');Co(``).appendTo(t);const o=t.find(".js-field-checkbox").tvControlCheckbox();return this._fieldsPopupCache[e]={item:t,checkbox:o},t},o=this._view.sortedFields.filter(ht).sort(((e,t)=>Xe[e].title.localeCompare(Xe[t].title,void 0,{ignorePunctuation:!0,numeric:!0}))),i=o.filter((e=>Xe[e].checked)),r=o.filter((e=>!Xe[e].checked));i.concat(r).forEach((o=>{"is_primary"!==o&&t(o).appendTo(e)})),e.find(".js-field-checkbox").off("change"),e.find(".js-field-checkbox").on("change",(t=>{const o=Co(t.currentTarget),i=o.attr("name");Xe[i].checked=o.prop("checked");const r=e.attr("data-name"),n=Xe[i].checked;(0,uo.sendSnowPlowData)(new yo(r,n,i));const s=Xe[i].checked?this._view._table.fieldsOrder.concat(i):this._view._table.fieldsOrder.filter((e=>e!==i));this._model.preventPrevScanRequest(),this._model.fieldSetChanged.fire(s.filter((e=>Xe[e]&&!0!==Xe[e].disabled&&!0!==Xe[e].hiddenColumn))),this._model.update(),this._view.$fieldSetsButton.toggleClass("tv-screener-toolbar__button--unsaved",this._model.isFieldSetChanged())}))}setPopup(e,t,o){e.addClass("tv-dropdown-behavior__button");const i=Co(`
`);i.insertAfter(e).append(e);const r=Co('
').appendTo(i);o&&r.addClass(o);const n=Co('
').appendTo(r);return Co('
').appendTo(n),i.on("beforeOpenMenu",(()=>{n.css("maxHeight",Co(window).height()-e.offset().top+Co(window).scrollTop()-45)})).tvDropdown({scroll:!0,noAnimation:!0})}setFieldSetsPopup(e){const t=this.setPopup(e,"tv-screener-toolbar__button-wrap");t.tvDropdown("disable");const i=t.find(".js-content");i.on("click",".js-set",(e=>{const o=Co(e.currentTarget);i.find(".js-item-active").removeClass("tv-screener-popup__item--active js-item-active"),o.addClass("tv-screener-popup__item--active js-item-active");const r=o.attr("data-set");this._model.applyFieldSet(r),this._view.adjustToolbarWidth(),t.tvDropdown("close"),(0,uo.sendSnowPlowData)(new po("columnset_selector",r))})).on("click",".js-set-delete",(e=>{const i=Co(e.currentTarget),r=this._model.getFieldSetById(i.parent().attr("data-set")),n=this._model.currentFieldSetId()===r.id;this.showConfirmDialog(p.t(null,void 0,o(838537)).format({name:r.title})).then((e=>{e&&this._model.saveFieldSet({id:r.id,delete:1},"Delete field set").then((()=>{this._model.removeFavoriteFieldSet(r.id),n&&this._model.applyFieldSet(this._model.defaultFieldSets[0].id,null,!0),this._view.adjustToolbarWidth() }))})),t.tvDropdown("close"),e.stopPropagation()})).on("click",".js-set-star",(e=>{const t=Co(e.currentTarget),o=t.parent().attr("data-set");t.parent().toggleClass("tv-screener-popup__item--favorite"),this._model.addFavoriteFieldSet(o),e.stopPropagation(),(0,uo.sendSnowPlowData)(new go("added",o))})).on("click",".js-set-star-active",(e=>{const t=Co(e.currentTarget),o=t.parent().attr("data-set");t.parent().toggleClass("tv-screener-popup__item--favorite"),this._model.removeFavoriteFieldSet(o),e.stopPropagation(),(0,uo.sendSnowPlowData)(new go("removed",o))})).on("click",".js-set-rename",(e=>{const i=Co(e.currentTarget).parent().attr("data-set"),r=this._model.getFieldSetById(i);this.showPromptDialog({title:p.t(null,void 0,o(312286)),label:p.t(null,void 0,o(576904))},r.title).then((e=>{e&&e!==r.title&&(this._model.saveFieldSet({id:r.id,title:e},"Rename field set"),this._view.$fieldSetsButton.removeClass("tv-screener-toolbar__button--active js-no-pointer-events"),this._model.currentFieldSetId()==r.id&&this._view.$fieldSetsButton.text(e),(0,uo.sendSnowPlowData)(new _o))})),t.tvDropdown("close"),e.stopPropagation()})).on("click",".js-save",(e=>{this.confirmAndSaveCurrentFieldSet().then((e=>{const t=this._model.getFieldSetById(e.id);this._model.settingsSaver.setValue(this._model.settingKey+".fieldSetId",e.id,{forceFlush:!0}),this._view.$fieldSetsButton.text(t.title);const o=this.$favoritesBar&&this.$favoritesBar.find(`.js-favorite-item[data-set=${e.id}]`)||Co();o.size()&&o.removeClass("tv-screener-toolbar__favorites-item--active")})).catch((e=>{e&&ko.logError(e)})),t.tvDropdown("close")})),this._model.loadingComplete.subscribe(null,(()=>{t.tvDropdown("enable")}),!0),t.on("beforeOpenMenu",(()=>this.setFieldSetsPopupContent(i)))}setFieldSetsPopupContent(e){e.empty(),this._bridge.onWidget||Co(`
${(0,lo.appendEllipsis)(p.t(null,void 0,o(819213)))}
`).prepend(Co(o(470088)).attr({class:"tv-screener-toolbar__button-icon",width:"20",height:"14",style:"top: -2px; margin-right: 10px;"})).appendTo(e);const t=Co('
').appendTo(e);this._model.settings.fieldSets.forEach((e=>{ const i=Co(`
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t${o(711732)}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t${o(663719)}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t${o(372665)}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t${o(959597)}\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
`).appendTo(t);i.find(".js-field-set-name").text(To(e.title)),i.find(".js-set").toggleClass("tv-screener-popup__item--favorite",-1!==this._model.favoriteFieldSets.indexOf(e.id))})),this._model.defaultFieldSets.forEach((t=>{Co(`
\n\t\t\t\t
\n\t\t\t\t\t${t.title}\n\t\t\t\t\t${this._bridge.onWidget?"":`\n\t\t\t\t\t\t\t${o(372665)}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t${o(959597)}\n\t\t\t\t\t\t`}\n\t\t\t\t
\n\t\t\t
`).appendTo(e).find(".js-set").toggleClass("tv-screener-popup__item--favorite",-1!==this._model.favoriteFieldSets.indexOf(t.id))})),e.find(`[data-set="${this._model.currentFieldSetId()}"]`).addClass("tv-screener-popup__item--active js-item-active")}confirmAndSaveCurrentFieldSet(){const e=this._model.getFieldSetById(this._model.currentFieldSetId()),t=this._view._table.fieldsOrder.slice(0);if(!Xe.type.disabled&&Xe.type.checked){const e=t.indexOf("name");-1!==e&&t.splice(e+1,0,"type")}if(!Xe.description.disabled&&Xe.description.checked){const e=t.indexOf("name");-1!==e&&t.splice(e+1,0,"description")}const i=JSON.stringify(t),r=e&&!this._model.defaultFieldSets.find((t=>t.id===e.id));return new Promise(((t,n)=>runOrSignIn((()=>this.showPromptDialog({title:p.t(null,void 0,o(819213)),label:p.t(null,void 0,o(576904))},e&&e.title||"").then((o=>{if(void 0===o)return void n();const s={title:TradingView.clean(o),content:i};let l="Create field set";r&&e.title===o&&(s.id=e.id,l="Update field set"),this._model.saveFieldSet(s,l).then(t,n)}))),{source:"save columnset"})))}setFilterSetsPopup(e){const t=this.setPopup(e,"tv-screener-toolbar__button-wrap","tv-dropdown__body--position_right");t.tvDropdown("disable");const i=t.find(".js-content"),r=this._bridge.$body;function n(e){if((0,co.isRtl)())e.toggleClass("tv-dropdown__body--position_right",!0);else{ const o=t.width(),i=r.find(".tv-screener-toolbar").width(),n=t.position().left,s=i-(o+n);e.toggleClass("tv-dropdown__body--position_right",n>s)}}i.on("click",".js-set",(e=>{const r=Co(e.currentTarget);i.find(".js-item-active").removeClass("tv-screener-popup__item--active js-item-active"),r.addClass("tv-screener-popup__item--active js-item-active"),this._view.$filterSetsButton.toggleClass("i-disabled",!0),new Promise((e=>{this._bridge.onWidget?e():this._model.isFilterSetChanged()?this.showConfirmDialog(p.t(null,void 0,o(484124))).then((t=>{t?this.confirmAndSaveCurrentFilterSet().then(e,(t=>{t&&ko.logError(t),e()})):e()})):e()})).then((()=>{const e=To(r.attr("data-set"));this._model.applyFilterSet(e),this._model.trackEvent("Apply filter set "+e),this._view.$filterSetsButton.toggleClass("i-disabled",!1),(0,uo.sendSnowPlowData)(new mo(e))})),setTimeout((()=>t.tvDropdown("close")),200)})).on("click",".js-set-delete",(e=>{const i=Co(e.currentTarget),r=this._model.getFilterSetById(i.parent().attr("data-set")),n=this._model.currentFilterSetId()===r.id;this.showConfirmDialog(p.t(null,void 0,o(810292)).format({name:r.title})).then((e=>{e&&this._model.saveFilterSet({id:r.id,delete:1},"Delete filter set").then((()=>{if(n){const e=this._model.defaultFilterSets.find((e=>!0!==e.disabled))||this._model.defaultFilterSets[0];this._model.applyFilterSet(e.id)}}))})),t.tvDropdown("close"),e.stopPropagation()})).on("click",".js-set-rename",(e=>{const i=Co(e.currentTarget).parent().attr("data-set"),r=this._model.getFilterSetById(i);this.showPromptDialog({title:p.t(null,void 0,o(709186)),label:p.t(null,void 0,o(723299))},r.title).then((e=>{e&&e!==r.title&&(this._model.saveFilterSet({id:r.id,title:e},"Rename filter set"),this._view.$filterSetsButton.removeClass("tv-screener-toolbar__button--active js-no-pointer-events"),this._model.currentFilterSetId()==r.id&&this._view.$filterSetsButtonTitle.text(e),(0,uo.sendSnowPlowData)(new vo))})),t.tvDropdown("close"),e.stopPropagation()})).on("click",".js-save",(e=>{this.confirmAndSaveCurrentFilterSet().then((e=>{void 0!==e.id?(this._model.settingsSaver.setValue(this._model.settingKey+".filterSetId",e.id,{forceFlush:!0}),this._view.$filterSetsButtonTitle.text(this._model.getFilterSetById(e.id).title)):ko.logError("Unable to get id of created set")})).catch((e=>{e&&ko.logError(e)})),t.tvDropdown("close")})),this.$filterSetsPopupContent=i,this._bridge.width?(n(i.parent().parent()),this._bridge.width.subscribe((()=>{n(i.parent().parent())}))):Co(window).on("resize",(()=>{n(i.parent().parent())})),this._model.loadingComplete.subscribe(null,(()=>{t.tvDropdown("enable")}),!0),t.on("beforeOpenMenu",(()=>{this.setFilterSetsPopupContent()}))}setFilterSetsPopupContent(){const e=this.$filterSetsPopupContent;e.empty(),this._bridge.onWidget||Co(`
${(0,lo.appendEllipsis)(p.t(null,void 0,o(432248)))}
`).prepend(Co(o(470088)).attr({class:"tv-screener-toolbar__button-icon", width:"20",height:"14",style:"top: -2px; margin-right: 10px;"})).appendTo(e);const t=Co('
').appendTo(e);this._model.settings.filterSets.forEach((e=>{const i=Co(`
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t${o(663719)}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t${o(711732)}\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
`);i.find(".js-filter-set-name").text(To(e.title)),i.appendTo(t)})),this._model.defaultFilterSets.forEach((t=>{t.disabled||Co(`
\n\t\t\t\t
\n\t\t\t\t\t${t.title}\n\t\t\t\t
\n\t\t\t
`).appendTo(e)})),e.find(`[data-set="${this._model.currentFilterSetId()}"]`).addClass("tv-screener-popup__item--active js-item-active")}confirmAndSaveCurrentFilterSet(){const e=this._model.getFilterSetById(this._model.currentFilterSetId()),t=JSON.stringify(this._model.currentFilterState()),i=e&&!this._model.defaultFilterSets.find((t=>t.id===e.id));return new Promise(((r,n)=>runOrSignIn((()=>this.showPromptDialog({title:p.t(null,void 0,o(432248)),label:p.t(null,void 0,o(723299))},e.title).then((o=>{if(void 0===o)return void n();const s={title:TradingView.clean(o),content:t};let l="Create filter set";i&&e.title===o&&(s.id=e.id,l="Update filter set"),this._model.saveFilterSet(s,l).then(r,n)}))),{source:"save screen"})))}setHiddenFavoritesPopup(e,t,o,i){e.addClass("tv-dropdown-behavior__button");const r=Co('
');r.insertAfter(e).append(e);const n=Co('
').appendTo(r),s=Co('
').appendTo(n),l=Co('
').appendTo(s);l.on("click",".js-set",(e=>{const t=Co(e.currentTarget).attr("data-set");i(t),(0,uo.sendSnowPlowData)(new po("columnset_favorites_picker",t)),r.tvDropdown("close")}));const a=()=>{l.empty(),t().forEach((e=>{Co(`
\n\t\t\t\t\t
\n\t\t\t\t\t\t${TradingView.clean(e.title)}\n\t\t\t\t\t
\n\t\t\t\t
`).toggleClass("tv-screener-popup__item--active",o(e.id)).appendTo(l)})),r.tvDropdown("updateScroll")};return r.on("beforeOpenMenu",(()=>{a(), s.css("maxHeight",Co(window).height()-e.offset().top+Co(window).scrollTop()-45)})).on("resetContent",(()=>a())).on("forceClose",(()=>r.tvDropdown("close"))).tvDropdown({scroll:!0,noAnimation:!0})}setSelectPopup(e,t){const{wrapClass:o,buttonClass:i,dropdownClass:r}=e,{buttonTitle:n}=t,s=Co(`
`),l=Co(`
`).appendTo(s),a=Co(`
`).appendTo(s),c=Co('
').appendTo(a),d=Co('
').appendTo(c);return s.on("beforeOpenMenu",(()=>{c.css("maxHeight",Co(window).height()-l.offset().top+Co(window).scrollTop()-45)})).on("forceClose",(()=>s.tvDropdown("close"))).tvDropdown({scroll:!0,$wrap:l,$body:a,noAnimation:!0}),{$wrap:s,$button:l,$dropdownBody:a,$dropdownContent:d}}setMarketsList(e){this._markets=e}updateRefreshIntervalsPopupContent(){if(!this.$filterRefreshIntervalsPopup||!this.$filterRefreshIntervalsPopup.length)return;this.$filterRefreshIntervalsPopup.empty();const e=this._view.refreshIntervals;for(let t=0;t\n\t\t\t\t\n\t\t\t
`).appendTo(this.$filterRefreshIntervalsPopup)}}setRefreshIntervalsPopup(e){const t=this.setPopup(e,"tv-screener-toolbar__button-wrap","tv-screener-popup__refresh-intervals");e.toggleClass("js-prevent-dropdown",!window.is_authenticated),e.on("click",(()=>runOrSignIn((()=>{}),{source:"Screener refresh mode button"}))),window.loginStateChange.subscribe(null,(()=>{e.toggleClass("js-prevent-dropdown",!window.is_authenticated)}));const o=t.find(".js-content");this.$filterRefreshIntervalsPopup=o,this.updateRefreshIntervalsPopupContent(),t.on("beforeOpenMenu",(()=>{o.find(`input[value=${this._model.refreshInterval}]`).prop("checked",!0)})),o.on("click",".js-interval",(e=>{e.preventDefault();const i=+Co(e.currentTarget).find("input").val();setTimeout((()=>t.tvDropdown("close")),$t.dur/2),i!==this._model.refreshInterval&&(this._model.isFastRefresh?(o.find(`input[value=${i}]`).prop("checked",!0),this._model.refreshInterval=i):(0, eo.runOrGoPro)((()=>{o.find(`input[value=${i}]`).prop("checked",!0),this._model.refreshInterval=i}),ao.ProductFeaturesEnum.SCREENER_AUTO_REFRESH,{feature:"screenerAutoRefresh"},{value:-1===i}),(0,uo.sendSnowPlowData)(new So(i)))}))}setSelectIntervalContent(e,t,o=()=>{}){t.empty();const i=this._model.selectedIntervalId;for(const e of M)Co(`
\n\t\t\t\t
\n\t\t\t\t\t${e.shortTitle}\n\t\t\t\t
\n\t\t\t
`).appendTo(t);e.on("afterOpenMenu",(()=>{t.on("click",".js-select-interval",(i=>{i.preventDefault();const r=this._model.selectedIntervalId;let n=F(Co(i.currentTarget).data("interval"));if(!n||r===n.id)return;const s=this._model.eodRestriction.value();(0,eo.runOrGoPro)((()=>{s!==Qt.None&&"1d"!==n.id?((0,oo.createGoProDialog)({feature:"screenerIntervalsEod"}),n=F("1d")):(t.find(".tv-screener-popup__select-interval-active").removeClass("tv-screener-popup__select-interval-active"),t.find(`[data-interval='${n.id}']`).addClass("tv-screener-popup__select-interval-active"),o(n))}),ao.ProductFeaturesEnum.SCREENER_INTERVALS,{feature:"screenerIntervals"},{interval:n.id}),setTimeout((()=>{e.tvDropdown("close"),t.off("click")}),$t.dur/2),(0,uo.sendSnowPlowData)(new ho(n.id))}))}))}}function To(e){return TradingView.clean(e,!0)}var Mo=o(920057),Eo=o(650279);o(533659),o(703002);class Fo{constructor(e,t){this.event="open_filters_dialog",this.location="toolbar",this.value="",this.source=e,this.state=t>0?"with_counter":"without_counter"}}class Ao{constructor(e){this.event="change_filter_dialog_tab",this.source="filter_dialog_tab_button",this.location="filter_dialog",this.value="",this.state=e}}class Bo{constructor(){this.event="filter_dialog_search_input_click",this.source="filter_dialog_search_input",this.location="filter_dialog",this.state="user_clicked",this.value=""}}class Io{constructor(e){this.event="filter_dialog_search_no_terms_found",this.source="filter_dialog_search_input",this.location="filter_dialog",this.state="empty_search_result",this.value="",this.value=e}}class Do{constructor(e){this.event="filter_dialog_applied_filters",this.source="unknown",this.location="filter_dialog",this.state=fo.UserActionState.ApplyFilters,this.value=e}}class Po{constructor(e,t,o,i){this.event="filter_use",this.value=e,this.state=t,this.source=o,this.location=i}}class Ro{constructor(e){this.event="apply_flagged_filter",this.source="flagged_marker",this.location="header",this.state="enabled",this.value=e}}var Lo=o(779893);const $o={ filtersSearch:``,filtersBody:'
\n\t\t
\n\t
'};var No=[p.t(null,void 0,o(580066)),p.t(null,void 0,o(279304)),p.t(null,void 0,o(856135)),p.t(null,{context:"study"},o(786575))];class Oo{constructor(e,t,o){this._model=e,this._view=t,this._bridge=o,this._dialogTitle="screener_filters",this._categories=null}showFiltersDialog(e){return Promise.all([o.e(57335),o.e(41392),o.e(71761),o.e(64935),o.e(71353),o.e(30938),o.e(37384)]).then(o.bind(o,858510)).then((({createTabbedDialog:t})=>{this._categories=this._getCategories();const o=this._categories.map((e=>({name:No[e]}))),{dialog:i,tabs:r}=t({tabs:o,additionalHeaderContent:$o.filtersSearch,width:Math.min(1400,Math.max(646,Lo(window).width()-200)),height:Math.max(450,Lo(window).height()-200),contentAddClass:"js-dialog-content",doNotCreatePages:!0,destroyOnClose:!0}),n=i.$content.find(".js-dialog-content"),s=i.$content.find(".js-screener-search");this.$fieldSearchInput=s.find(".js-search-input"),this.$fieldSearchInput.on("input",(0,Mo.default)((e=>{this._view.updateFilterSearch(),i.updateScroll()}),100,{leading:!1,trailing:!0})),this.$fieldSearchInput.on("click",(()=>{(0,uo.sendSnowPlowData)(new Bo)}));s.find(".js-search-reset").on("click",(e=>this._view.resetAllFilters()));const l=()=>{const e=this.$filtersPopup.get(0).clientWidth>=1292;e&&!this._$filtersWrap.is(".js-2col")?this._$filtersWrap.addClass("js-2col tv-screener-dialog__wrap--2col"):!e&&this._$filtersWrap.is(".js-2col")&&this._$filtersWrap.removeClass("js-2col tv-screener-dialog__wrap--2col")};this.$filtersPopup=Lo($o.filtersBody),this._$filtersWrap=this.$filtersPopup.find(".js-filters-wrap");const a=[];this._view.sortedFields.forEach((e=>{Xe[e]&&!Xe[e].disabled&&Xe[e].control&&a.push(this._view.addFieldFilter(e,this._$filtersWrap))})),Promise.all(a).then((()=>this._$filtersWrap.find(".js-wrap").each(((e,t)=>{this._view.initFilterHandlers(Lo(t))})))),this.$filtersPopup.appendTo(n),e&&this._model.settingsSaver.setValue(this._model.settingKey+".filters.tab",0),r.tabChanged.subscribe(null,(e=>{this.filtersDialogTabChanged(e),i.scrollToStart(),0!==e&&(0,uo.sendSnowPlowData)(new Ao(e))})),this._view.$filtersButton.addClass("js-no-pointer-events"),i.on("scroll",(()=>{i.$content.find(".js-dropdown-toggle.i-opened").trigger("resetPosition",null,n.parent())}));const c=this._getActiveFilters(!1).sort();i.on("destroy",(e=>{const t=this._getActiveFilters(!1).sort();for(const e in Xe)"condition"===Xe[e].control&&Xe[e].value&&(De(Xe[e].value.value)||De(Xe[e].value.operator))&&(Xe[e].value=null) ;Lo(".tv-screener-dialog__filter-field").removeClass("js-hidden"),this.$fieldSearchInput.val(""),this.$filtersPopup.remove(),delete this.$filtersPopup,this._view.$filtersButton.removeClass("js-no-pointer-events"),delete this._dialog,Lo(window).off("resize",l),(0,Eo.default)(c,t)||(0,uo.sendSnowPlowData)(new Do(t.join(", ")))})),this._model.trackEvent("Open filters dialog"),i.open(),Lo(window).on("resize",l),l(),this.$dialogContainer=i.$content,this._dialog=i}))}filtersDialogTabChanged(e){const t=this._categories.map((e=>"tv-screener-dialog--cat"+e)).join(" ");this.$filtersPopup.removeClass(t).addClass("tv-screener-dialog--cat"+this._categories[e]).scrollTop(0)}destroy(){this._dialog&&(this._dialog.close(),delete this._dialog)}_getCategories(){const e=[0];return this._view.sortedFields.forEach((t=>{Xe[t]&&!Xe[t].disabled&&Xe[t].control&&(e.includes(Xe[t].category)||e.push(Xe[t].category))})),e.sort()}_getDefaultFiltersForCurrentFilterSet(){const{defaultFilterSets:e}=this._model,t=this._model.currentFilterSetId();return Object.values(e).filter((e=>e.id===t))[0].content.filters}_fieldValueIsEqualToDefaultFilter(e){const t=this._getDefaultFiltersForCurrentFilterSet()[e],o=Xe[e].value;switch(Xe[e].control){case"condition":return o.operator===t.operator&&o.value.toString()===t.value.toString();case"range":case"select":return o.sort().toString()===t.sort().toString();default:return Xe[e].value===o}}_getActiveFilters(e=!0){const t=[];for(const o in Xe)if(Xe[o].value){if("condition"===Xe[o].control&&(De(Xe[o].value.operator)||De(Xe[o].value.value)))continue;e?t.push(pt(Xe[o])):t.push(o)}return t}}var Wo=o(941285),Vo=o(927301),Ho=o(763532);class qo{constructor(){this._handlers=[]}registerHandlers(e){this._handlers.push(e)}beforeAppendSymbol(e,t){this._handlers.forEach((o=>{o.beforeAppendSymbol&&o.beforeAppendSymbol(e,t)}))}beforeAppendContextMenuItems(e){return this._handlers.reduce(((t,o)=>o.beforeAppendContextMenuItems?t.concat(o.beforeAppendContextMenuItems(e)):t),[])}afterSymbolConfirm(e,t){this._handlers.forEach((o=>{o.afterSymbolConfirm&&o.afterSymbolConfirm(e,t)}))}beforeAppendSymbolsHeader(e){this._handlers.forEach((t=>{t.beforeAppendSymbolsHeader&&t.beforeAppendSymbolsHeader(e)}))}}var Uo=o(857769),jo=o(251954),zo=o(904653);class Go{constructor(){this._retries=5,this._cache=null,this._tryLoad=(e,t)=>{this._retries=this._retries-1;this._startLoading(e).then(t,0!==this._retries?o=>{(0,zo.isAbortError)(o)||setTimeout((()=>this._tryLoad(e,t)),3e3)}:void 0)}}load(e){return this._cache||(this._cache=new Promise(this._tryLoad.bind(this,e??null))),this._cache}}class Xo extends Go{_startLoading(){return Promise.all([o.e(11553),o.e(42377)]).then(o.bind(o,825806)).then((e=>e.HammerJS))}}var Ko=o(50959),Yo=o(632227),Jo=o(497754),Zo=o.n(Jo),Qo=o(169986),ei=o(694553),ti=o(650133);function oi(e){const t=Object.keys(e.modes),o=Object.values(e.modes),[i,r]=Ko.useState(t[0]);return Ko.createElement(Qo.CustomBehaviourContext.Provider,{value:window.TradingView.onChartPage?Qo.presetPlatform:Qo.presetDefault},Ko.createElement(ii,{ isActive:i===t[0],title:o[0]}),Ko.createElement("span",{className:ti.switcherContainer},Ko.createElement(ei.Switch,{onChange:function(o){const i=o.currentTarget.checked?t[1]:t[0];r(i),e.onChange(i)},checked:i===t[1]})),Ko.createElement(ii,{isActive:i===t[1],title:o[1]}))}function ii(e){return Ko.createElement("span",{className:Zo()(ti.modeTitle,e.isActive&&ti.modeTitleActive)},e.title)}var ri=o(118821),ni=o(43681),si=o(389401),li=o(400236),ai=o(79205),ci=o(58407),di=o(444530);function ui(e){const{children:t,className:o,onResize:i,onClick:r}=e,n=(0,di.useResizeObserver)((([e])=>{i(e.target.getBoundingClientRect())}));return Ko.createElement("div",{ref:n,className:o,onClick:r},t)}var hi=o(690863);class pi extends Ko.PureComponent{constructor(e){super(e),this._getDropdownHeight=()=>{if(!this._dropdownParent)return;const e=window.innerHeight-this._dropdownParent.getBoundingClientRect().bottom-20;return e&&e<50?void 0:e},this._getFirstHiddenItemIndex=()=>{let e;if(this.state.availableWidth&&!this._itemSizes.includes(null)){let t=0;for(e=0;e{this.setState({availableWidth:e.contentRect.width,isOpened:!1})},this._onSelect=e=>{this.props.onSelect&&this.props.onSelect(e),this.setState({activeItem:e,isOpened:!1})},this._onDropdownSelect=(e,t)=>{this.props.onSelect&&this.props.onSelect(t.actualIndex),this.setState({activeItem:t.actualIndex,isOpened:!1})},this._onOutsideClick=e=>{this.state.isOpened&&(this.state.isOpened&&(e.preventDefault(),e.stopPropagation()),this.setState({isOpened:!1}))},this._onDropdownItemClick=()=>{this.setState({isOpened:!this.state.isOpened})},this._onItemResize=(e,t)=>{this._itemSizes[e]=t.width,this._itemSizes.includes(null)||this.forceUpdate()},this._itemSizes=this.props.items.map((e=>null)),this.state={availableWidth:0,activeItem:this.props.activeItem||0,isOpened:!1}}render(){const e=this._getFirstHiddenItemIndex(),t=this.props.items.slice(0,e),o=this.props.items.slice(e),i=t.map(((e,t)=>{const o=this.state.activeItem===t,i=Jo(ri.itemContent,{[ri.active]:o});return Ko.createElement(ui,{key:e.title,className:Jo(ri.item,{[ri.active]:o}),onClick:this._onSelect.bind(this,t),onResize:this._onItemResize.bind(this,t)},Ko.createElement("div",{className:i},e.title))})),r=o.map(((e,o)=>({elem:e.title,actualIndex:o+t.length}))),n=this.state.activeItem-e,s=n>=0,l=Ko.createElement(ci.OutsideEvent,{handler:this._onOutsideClick,click:!0},(e=>Ko.createElement("div",{ref:e=>e&&(this._dropdownParent=Yo.findDOMNode(e))},Ko.createElement("div",{className:Jo(ri.item,{[ri.active]:s}),ref:e,onClick:this._onDropdownItemClick},Ko.createElement("div",{className:Jo(ri.itemContent,ri.dropdownItem,{[ri.active]:s})},Ko.createElement(ai.Icon,{className:Jo(ri.dropdownIcon,{[ri.active]:this.state.isOpened}),icon:hi}),Ko.createElement(li.DropdownList,{isOpened:this.state.isOpened,items:r, selected:s?n:void 0,onSelect:this._onDropdownSelect,top:27,right:0,itemsClassName:Jo(ni.bluishItem,ri.dropdownListItem),selectedClassName:this.props.selectedItemClassName,maxHeight:this._getDropdownHeight()}))))));return Ko.createElement(si.Measure,{onResize:this._onElementResize},(e=>Ko.createElement("div",{className:Jo(ri.elementWrap,this.props.className),ref:e},Ko.createElement("div",{className:ri.itemsWrap},i,o.length?l:void 0))))}}function gi(e,t){Yo.render(Ko.createElement(pi,{...t}),e)}const _i=["country","sector","industry","description"],mi=["close","bid","ask","candlestick"],vi=["Recommend.All","Recommend.MA","Recommend.Other"];function fi(e,t){return e.indexOf(t)}function yi(e){return e.map((e=>(0,Ho.escapeCSVValue)(e))).join(",")}function bi(e){return e.map(((e,t)=>Boolean(e)?t:void 0)).filter(Boolean)}function wi(e){return be.find((t=>t.key===e))}var Si=o(688706),Ci=o(608571),ki=o(920389),xi=o(508822);class Ti{constructor(){this.event="export_screener_data",this.source="export_button",this.location="toolbar",this.state="",this.value=""}}class Mi{constructor(e,t){this.event="change_forex_group",this.source="forex_group_selector",this.location="toolbar",this.state=e,this.value=t}}var Ei=o(531327);function Fi(e){return Promise.all([o.e(96266),o.e(18883),o.e(15371),o.e(92537),o.e(46195),o.e(32937),o.e(61171),o.e(25563),o.e(97540),o.e(72232),o.e(90579),o.e(93015),o.e(44535),o.e(10445),o.e(78257),o.e(24543),o.e(52507),o.e(50083),o.e(89077),o.e(62526),o.e(66012),o.e(67911)]).then(o.bind(o,464320)).then((t=>t.showScreenerMarketDialog(e)))}const Ai=new Set(["dps_common_stock_prim_issue_yoy_growth_fy","earnings_per_share_diluted_qoq_growth_fq","earnings_per_share_diluted_yoy_growth_fq","earnings_per_share_diluted_yoy_growth_fy","earnings_per_share_diluted_yoy_growth_ttm","ebitda_qoq_growth_fq","ebitda_yoy_growth_fq","ebitda_yoy_growth_fy","ebitda_yoy_growth_ttm","free_cash_flow_margin_fy","free_cash_flow_margin_ttm","free_cash_flow_qoq_growth_fq","free_cash_flow_yoy_growth_fq","free_cash_flow_yoy_growth_fy","free_cash_flow_yoy_growth_ttm","gross_profit_margin_fy","gross_profit_qoq_growth_fq","gross_profit_yoy_growth_fq","gross_profit_yoy_growth_fy","gross_profit_yoy_growth_ttm","net_income_bef_disc_oper_margin_fy","net_income_qoq_growth_fq","net_income_yoy_growth_fq","net_income_yoy_growth_fy","net_income_yoy_growth_ttm","oper_income_margin_fy","total_assets_qoq_growth_fq","total_assets_yoy_growth_fq","total_assets_yoy_growth_fy","total_debt_qoq_growth_fq","total_debt_yoy_growth_fq","total_debt_yoy_growth_fy","total_revenue_qoq_growth_fq","total_revenue_yoy_growth_fq","total_revenue_yoy_growth_fy","total_revenue_yoy_growth_ttm"]);function Bi(e,t){return!!t.title&&(t.title.toLowerCase()!==t.shortTitle?.toLowerCase()||function(e){return Ai.has(e)}(e))}var Ii=o(659771),Di=o(779e3);function Pi(e,t){const o=setInterval((()=>{const i=document.querySelector(e);if(i){clearInterval(o);new ResizeObserver(t).observe(i),t()}}),20)}var Ri=o(586240),Li=o(779893);const $i=parseInt(Ri["size-sticky-symbol-header-height"]) ;function Ni(e){const{$toolbar:t}=e,o=t.outerHeight(),i=e.table.$stickyHeader,r=document.querySelector(".js-sticky-symbol-header-container")?64+$i:64;function n(t){const n=t||Li(document).scrollTop(),{isSticky:s,upperScrollLimit:l,bottomScrollLimit:a}=function(t){const n=e.table._$emptyMessage?e.table._$emptyMessage.outerHeight():0,s=e.$content.offset().top+e.$content.outerHeight(),l=n||48,a=e.$content.offset().top-r-o,c=s-l-r-o-i.outerHeight();return{isSticky:t>=a&&t<=c,bottomScrollLimit:c,upperScrollLimit:a}}(n);if(s)return"sticky";return Math.abs(a-l)<20||no)return"absolute"===i?{left:"",right:""}:{left:t,right:""};const r=e.$content.scrollLeft();if((0,co.isRtl)()){const t=e._getResizerBridgeWidth();return"absolute"===i?{left:"",right:r}:{left:"",right:t+r}}return{left:t-r,right:""}}(r),c={left:r,width:s},d={...a,width:l};if(t.css({left:"",right:""}),i.css({left:"",right:""}),"absolute"===o)return t.css({width:s}),void i.css(d);t.css(c),i.css(d)}function l(e){t.css({top:e});const r=e+o;i.css({top:r})}const a=function(){let e=Li(document).scrollTop(),a=n(e);return()=>{const c=Li(document).scrollTop(),u=n(c);if("bottom"===u){d(u);return l(e+r-c),void(a="bottom")}if(a!==u){if(d(u),"absolute"===u)return t.css({top:0}),i.css({top:o}),s(),void(a="absolute");"sticky"===u&&(s(),l(r),e=c,a="sticky")}}}();function c(){s(),a()}function d(e){const o="absolute"===e;t.toggleClass("tv-screener-toolbar--markets_absolute",o),i.toggleClass("tv-screener-sticky-header-wrapper--markets_absolute",o),t.toggleClass("tv-screener-toolbar--markets_sticky",!o),i.toggleClass("tv-screener-sticky-header-wrapper--standalone_sticky",!0),i.toggleClass("tv-screener-sticky-header-wrapper--markets_sticky",!o)}const u=function(){let e;return()=>{clearTimeout(e),e=setTimeout(c,0)}}();document.addEventListener("scroll",(function(){a(),(0,co.isRtl)()&&s()}),{passive:!0}),e.$content[0].addEventListener("scroll",s),window.addEventListener("resize",u),Pi(".widgetbar-wrap",s),Pi(".tv-screener-table",s),d(n()),c()}function Oi(e){const{$before:t=null,$appendTo:o=null,$dropdownContainer:i=null,beforeMakingSelectPopup:r=()=>{},makeSelectPopup:n,afterMakingSelectPopup:s=()=>{},afterSelectPopupAppend:l=()=>{}}=e,a={$dropdownContainer:i};r();const{$wrap:c,$button:d,$dropdownContent:u}=n(a);return s(c,d,u),(t||o)&&(t?c.insertBefore(t):c.appendTo(o),l(c,d,u)),d}var Wi,Vi=o(137674),Hi=o(212363);!function(e){e[e.Header=0]="Header",e[e.Table=1]="Table"}(Wi||(Wi={}));const qi={[Wi.Header]:{description:"Open header context menu",prepend:!1},[Wi.Table]:{description:"Open context menu",prepend:!0}};function Ui(e,t,i){return async function(){const[{Action:e},{AddToWatchlistAction:t}]=await Promise.all([o.e(34215).then(o.bind(o,172073)),o.e(26417).then(o.bind(o,518557))]);return{default:e,addToWatchlist:t} }().then((o=>t(e,o))).then((t=>{const o=Object.values(t);return qi[i].prepend?function(e,t){return e._lifecycle.beforeAppendContextMenuItems(t.length>0?"bottom":void 0).concat(t)}(e.view,o):o}))}function ji(e,t,i){const{view:r,e:n}=e;return Ui(e,t,i).then((e=>{return t=e,i=n,o.e(34215).then(o.bind(o,257381)).then((({ContextMenuManager:e})=>e.showMenu(t,i)));var t,i})).then((()=>{const e=qi[i].description;r._model.trackEvent(e)}))}var zi,Gi=o(990266),Xi=o(541543),Ki=o(324020),Yi=o(779893);function Ji(e,t){const{view:o}=e,i=o._bridge,r=t.default,n=o._selectableList?o._selectableList.getSelectedKeys().length:1,s={...e,selectedSymbolsCount:n};if((0,Di.isExternalWidget)(i))return{...Qi(s,r)};if((0,Di.isScreenerPage)(i)||(0,Di.isMarketPage)(i)){return{...0===n?Qi(s,r):{},...Zi(s,t.addToWatchlist)}}return{...Zi(s,t.addToWatchlist),...er(s,r),...tr(s,r)}}function Zi(e,t){const{view:i,symbol:r,shortName:n,selectedSymbolsCount:s}=e;let l,a;0===s?(l=p.t(null,void 0,o(883424)).format({symbolName:n}),a=[r]):(l=p.t(null,void 0,o(538843)),a=i._selectableList?i._selectableList.getSelectedKeys().slice(0):[]);return{addToWatchListAction:new t({label:l,disabled:!0,onExecute:()=>{(0,Xi.runOrSigninWithFeature)((()=>{const e=i._getWatchlist();e&&(e.addSymbols(a),(0,uo.sendSnowPlowData)(new Gi.DispatchContextMenuActionEvent(zi.AddToWatchlist,"row",!0)))}),{feature:"watchList",source:"add symbol to watchlist"})}})}}function Qi(e,t){const{view:i}=e;return["sector","industry"].includes(i._model.screener_type)?function(e,t){const{e:i}=e,r=Yi(i.target).closest(".tv-screener-table__result-row").find(".tv-screener__symbol");return{openSymbolPageAction:new t({actionId:"Watchlist.OpenSymbolOverview",options:{label:p.t(null,void 0,o(87294)).format({symbol:r.text()}),onExecute:()=>{window.open(r.attr("href"),"_blank"),(0,uo.sendSnowPlowData)(new Gi.DispatchContextMenuActionEvent(zi.OpenSymbolPage,"row",!0))}}})}}(e,t):function(e,t){const{view:i,shortName:r,symbol:n}=e;return{openChartAction:new t({actionId:"Watchlist.OpenSymbolChart",options:{label:p.t(null,void 0,o(575633)).format({symbol:r}),onExecute:()=>{const{applySymbol:e}=i._bridge;e&&(e(n,!0),(0,uo.sendSnowPlowData)(new Gi.DispatchContextMenuActionEvent(zi.OpenChart,"row",!0)))}}})}}(e,t)}function er(e,t){const{view:i,symbol:r,shortName:n,selectedSymbolsCount:s}=e;let l,a;0===s?(l=p.t(null,void 0,o(958471)).format({symbol:n}),a=[r]):(l=p.t(null,void 0,o(687186)),a=i._selectableList.getSelectedKeys());return{compareAction:new t({actionId:"Watchlist.AddSymbolToCompare",options:{label:l,onExecute:async()=>{for(const e of a)await(i._bridge.chartWidgetCollection?.activeChartWidget.value().addCompareAsOverlay(e,false))}}})}}function tr(e,t){const{symbol:i,shortName:r,selectedSymbolsCount:n}=e;if(n>0)return{};return{addToTextNotesAction:new t({actionId:"Note.Create",options:{icon:Ki,label:p.t(null,void 0,o(133333)).format({symbol:r}),onExecute:()=>{(0,ki.runOrSignIn)((()=>{(0,uo.sendSnowPlowData)(new Gi.DispatchContextMenuActionEvent(zi.AddTextNote,"row",!0)),window.widgetbar?.setPage("base"),(0, Vi.createSymbolNote)(i)}),{source:"Add text note in screener"})}}})}}!function(e){e.AddToWatchlist="add_to_watchlist",e.OpenChart="open_chart",e.AddToCompare="add_to_compare",e.AddTextNote="add_text_note",e.OpenSymbolPage="open_symbol_page"}(zi||(zi={}));var or=o(820028),ir=o(331633),rr=o(857430),nr=o(348091);function sr(e){const{symbolHtml:t,logoUrl:o,symbolFirstLetter:i,size:r="xsmall"}=e;return lr({symbolHtml:t,logoHtml:(0,rr.getCircleLogoHtml)({logoUrl:o,size:r,placeholderLetter:i,className:"tv-screener-table__logo-container"})})}function lr(e){const{logoHtml:t="",symbolHtml:o="",wrapHtmlClass:i=""}=e;return`\n\t\t
\n\t\t\t
\n\t\t\t${t}\n\t\t\t
\n\t\t\t\t${o}\n\t\t\t
\n\t\t
\n\t`}var ar=o(849204);const cr=(0,ar.getLogoUrlResolver)();function dr(e){if(e&&"null"!==e)return cr.getSymbolLogoUrl(e,ar.LogoSize.Medium)}function ur(e){const{fieldsOrder:t,proSymbol:o,rowData:i,symbolHtml:r}=e,n=t.indexOf(xt.LogoId);if(-1!==n){const e=i[n];return sr({symbolHtml:r,symbolFirstLetter:hr(o),logoUrl:dr(e)})}const s=t.indexOf(xt.BaseCurrencyLogoId),l=-1!==s,a=t.indexOf(xt.CurrencyLogoId),c=-1!==a;if(l&&c){const e=i[s],t=i[a];return function(e,t,o){return lr({symbolHtml:e,logoHtml:(0,nr.getCircleLogoPairHtml)({primaryLogoUrl:t,secondaryLogoUrl:o,size:"xsmall",className:"tv-screener-table__logo-container"})})}(r,dr(e),dr(t))}if(l){const e=i[s];return sr({symbolHtml:r,symbolFirstLetter:hr(o),logoUrl:dr(e)})}if(c){const e=i[a];return sr({symbolHtml:r,symbolFirstLetter:hr(o),logoUrl:dr(e)})}return lr({symbolHtml:r})}function hr(e){return(0,Hi.shortName)(e)[0]}function pr(e,t,o){return e.get(A(t,o))}var gr;!function(e){e.Bool="bool",e.FundamentalPrice="fundamental_price",e.Number="number",e.Percent="percent",e.Price="price",e.Text="text",e.Time="time"}(gr||(gr={}));const _r=["—",''];function mr(e,t,o,i,r){if(!fr()&&!r)return"";const n=!e&&o===gr.Price||!t&&o===gr.FundamentalPrice||_r.includes(i),s=![gr.Price,gr.FundamentalPrice].includes(o);if(n||s)return"";let l;return l=o===gr.Price?e:t,`${l}`}const vr="screener.showCurrencyLabel";function fr(){return r.getBool(vr,!0)}var yr=o(366619),br=o(267562),wr=o(182951),Sr=o(891250),Cr=o(779893),kr=o(779893);class xr{constructor(e){this._setOptions(e),this._fields={},this._fieldsOrder=Array.isArray(e.fieldsOrder)&&e.fieldsOrder||[],this.fieldsOrderChange=new St.Delegate,this._columnsMap=new Map,this.afterFixCols=new St.Delegate,this._additionalColumns=[],this._hiddenColumns=0,this._throttleFixCols=(0,Mo.default)((()=>{"minimized"!==(this._model._bridge.bottomToolbarMode?this._model._bridge.bottomToolbarMode.value():"normal")&&(this._unhideColumns(),this._unhideCells(),this._fixCols())}),10),this.dragStarted=new or.WatchedValue,this._fieldsOrderChange=!1, this._updateEmptyMessageIcon=this._updateEmptyMessageIcon.bind(this),ir.watchedTheme.subscribe(this._updateEmptyMessageIcon)}_setOptions(e){this._options=e||{},this._model=this._options.model,this._defaultFormatter=this._options.defaultFormatter||(e=>e.value),this._nullFormatter=this._options.nullFormatter||(()=>"—"),this._widthChange=this._options.widthChange,this._visibilityChange=this._options.visibilityChange,this._noDataString=this._options.noDataString,this._isUnavailableWidgetMarket=this._options.isUnavailableWidgetMarket,this._disableStickyHeader=e.disableStickyHeader}updateSortField(e,t){const o=this.getTh(e);e&&t&&o.size()&&(this.$theadRow.find(".tv-screener-table__sort--desc,.tv-screener-table__sort--asc").removeClass("tv-screener-table__sort--desc tv-screener-table__sort--asc"),o.find(".js-table-sort").empty().addClass(`tv-screener-table__sort--${t}`).append("asc"===t?wr:Sr))}highlightCell(e,t,o){const i=this.$tbody[0].querySelector(`tr[data-symbol="${e}"] td[data-field-key="${t}"]`);if(i){i.classList.add("tv-screener-table__cell--highlighted");const e=i.querySelector("span");if(e){const t=o?"tv-screener-table__cell--growing":"tv-screener-table__cell--falling";e.classList.add(t)}}}flickRow(e){this.$tbody[0].querySelectorAll(`tr[data-symbol="${e}"] td`).forEach((e=>{const t=e.querySelector("span");t&&t.classList.remove("tv-screener-table__cell--growing","tv-screener-table__cell--falling")}))}_createTable(){if(this._table)return;const e=document.createElement("table"),t=["tv-data-table"];this._options.addTableClasses&&t.push(...this._options.addTableClasses),e.classList.add(...t);const o=document.createElement("colgroup"),i=document.createElement("thead"),r=["tv-data-table__thead"];this._options.addTheadClasses&&r.push(...this._options.addTheadClasses),i.classList.add(...r);const n=document.createElement("tr"),s=["tv-data-table__thead-row"];this._options.addTheadRowClasses&&s.push(...this._options.addTheadRowClasses),n.classList.add(...s);const l=document.createElement("tbody");l.classList.add("tv-data-table__tbody"),e.appendChild(o),e.appendChild(i),i.appendChild(n),e.appendChild(l),this._table=e,this._colgroup=o,this._theadRow=n,this._tbody=l,window.addEventListener("resize",(()=>this._throttleFixCols())),this._widthChange.subscribe(this,(()=>this._throttleFixCols())),this._model._bridge.bottomToolbarMode&&this._model._bridge.bottomToolbarMode.subscribe((()=>this._throttleFixCols())),this._visibilityChange&&this._visibilityChange.subscribe((e=>{e&&this._throttleFixCols()}))}_createStickyWrapper(){if(this._stickyWrapper)return;const e=["tv-data-table-sticky-wrapper"];this._options.addStickyHeaderWrapperClasses&&e.push(...this._options.addStickyHeaderWrapperClasses);const t=document.createElement("div");t.classList.add(...e);const o=this._table.cloneNode(!0);t.append(o),this._stickyWrapper=t}_createHeader(){const e=document.createDocumentFragment(),t=document.createDocumentFragment();this._disableStickyHeader||this._createStickyWrapper();for(let i=0;i{if(t.data("field")===this._model.searchField)return;e.preventDefault(),t.css({position:"relative",left:0});const n=t.offset().left;let s=n;const l=e.pageX||e.originalEvent.touches[0].pageX,a=e=>{const c=(e.pageX||e.originalEvent.touches[0].pageX)-l;if(!r){if(Math.abs(c)<10)return;o.e(34215).then(o.bind(o,257381)).then((({ContextMenuManager:e})=>{null!==e.getShown()&&(r=!1,t.css("left","auto"),kr(window).off("mousemove touchmove",a),this._onDragStop(t))})),this._onDragStart(t),t.one("click",(e=>{r&&e.stopPropagation()}))}r=!0;const d=i.offset().left,u=i.outerWidth(),h=t.outerWidth(),p=Math.max(d,Math.min(d+u-h,n+c)),g=p+h/2;let _=kr(),m=!1;const v=t.prev();if(v.size()&&((0,co.isRtl)()?g>v.offset().left+v.outerWidth()/2:p<=d||g=d+u||((0,co.isRtl)()?ge.offset().left+e.outerWidth()/2))&&(_=e,m=!0)}}const f=_.data("field");if(_.size()&&"name"!==f){const e=t.data("field"),o=kr(this._colgroup).find(`.js-tv-data-table-col-${this._esc(e)}`),i=kr(this._colgroup).find(`.js-tv-data-table-col-${this._esc(f)}`);let r=kr(),n=kr();this._stickyWrapper&&(r=kr(this._stickyWrapper).find(`.js-tv-data-table-col-${this._esc(e)}`),n=kr(this._stickyWrapper).find(`.js-tv-data-table-col-${this._esc(f)}`)),m?(o.insertAfter(i), r.size()&&n.size()&&r.insertAfter(n)):(o.insertBefore(i),r.size()&&n.size()&&r.insertBefore(n));let l=kr(),a=kr();this._stickyWrapper&&(l=kr(this._stickyWrapper).find(`.js-tv-data-table-th-${this._esc(e)}`),a=kr(this._stickyWrapper).find(`.js-tv-data-table-th-${this._esc(f)}`)),m?(t.insertAfter(_),s=t.offset().left-_[0].offsetWidth,l.size()&&a.size()&&l.insertAfter(a)):(t.insertBefore(_),s=t.offset().left+_[0].offsetWidth,l.size()&&a.size()&&l.insertBefore(a)),this._swapCols(e,f)}t.css("left",p-s)};kr(window).on("mousemove touchmove",a).one("mouseup touchend",(e=>{setTimeout((()=>{r=!1}),0),t.css("left","auto"),kr(window).off("mousemove touchmove",a),r&&this._onDragStop(t)}))}))}_setSearchInput(e,t){const o=e.querySelector(".js-search-query");if(!o)return;const i=o.querySelector(".js-search-input"),r=o.querySelector(".js-input-reset");(0,Di.isScreenerPage)(this._model._bridge)&&i.focus();const n=Boolean(t);r.classList.toggle("i-hidden",!n),n&&(i.value=t),i.addEventListener("input",(()=>{r.classList.toggle("i-hidden",0===i.value.length)}));const s=(0,Ot.default)((()=>{this._fields[this._model.searchField].searchValue=i.value,this._model.loading||this._model.update()}),400);i.addEventListener("input",(()=>s()))}_onDragStart(e){this._model.preventPrevScanRequest(),this.dragStarted.setValue(!0);const t=e.data("field"),o=this._getColByField(t);o&&(this._options.addDraggingThClasses&&e[0].classList.add(...this._options.addDraggingThClasses),this._options.addDraggingColClasses&&o.classList.add(...this._options.addDraggingColClasses))}_swapCols(e,t){const o=this._columnsOrder.indexOf(e),i=this._columnsOrder.indexOf(t);this._columnsOrder[o]=this._columnsOrder.splice(i,1,this._columnsOrder[o])[0],this._fieldsOrderChanged=!0;const r=Math.min(o,i),n=Math.max(o,i),s=this._tbody.children;for(let e=0;eMath.floor(e.getBoundingClientRect().width)));const i="big"===this._options.table_style,r=window.innerWidth>Wt.breakpoints.tablet,n=this._table.parentNode.offsetWidth;let s=Mr(o);if(i&&r&&s>n){do{s>n&&(o.pop(), this._hideColumn()),s=Mr(o)}while(s>n);const e=Math.floor((n-s)/o.length);o=o.map((t=>t+e));const t=o.length-1,i=o[t],r=n-Mr(o);o[t]=i+r}if(t.forEach(((e,t)=>{const i=o[t];i?e.style.width=`${i}px`:e.classList.add("i-hidden")})),this._stickyWrapper){const e=this._stickyWrapper,t=e.querySelector("colgroup"),i=e.querySelector("table"),r=this._colgroup.cloneNode(!0);t.replaceWith(r),i.classList.add("tv-screener-table--fixed"),this._stickyWrapper.style.width=function(e,t){if(!((0,Di.isMarketPage)(e._model._bridge)&&window.innerWidth>Wt.breakpoints.phone))return;return e._stickyWrapper.querySelectorAll("th").forEach(((e,o)=>{t[o]?e.classList.remove("i-hidden"):e.classList.add("i-hidden")})),`${Li(e._table).width()}px`}(this,o)||`${s}px`}this._table.classList.add("tv-screener-table--fixed"),this.afterFixCols.fire()}_hideColumn(){const e=this._theadRow.children;for(let t=e.length-1;t>=0;t--){const o=e[t];if(!o.classList.contains("i-hidden")){o.classList.add("i-hidden");break}}this._hiddenColumns++}_unhideColumns(){const e=this._table.querySelectorAll("col"),t=this._theadRow.querySelectorAll("th");e.forEach(((e,o)=>{e.style.width="",e.classList.remove("i-hidden"),t[o].classList.remove("i-hidden")})),this._hiddenColumns=0}_unhideCells(){if(!this._tbody)return;this._tbody.querySelectorAll("td.i-hidden").forEach((e=>{e.classList.remove("i-hidden")}))}toggleSignals(e){const t=this._fields[e];t.displaySignal=!t.displaySignal;const o=this._columnsOrder.indexOf(e);if(-1===o)return;const i=this._tbody.querySelectorAll(`.tv-data-table__row .tv-data-table__cell:nth-child(${o+1}) .tv-screener-table__signal`);0!==i.length&&(i.forEach((e=>e.classList.toggle("i-hidden",!t.displaySignal))),this._fixCols())}get $element(){return this._createTable(),kr(this._table)}get $tbody(){return this._createTable(),kr(this._tbody)}get $stickyHeader(){return this._createTable(),this._createStickyWrapper(),kr(this._stickyWrapper)}get $theadRow(){return this._disableStickyHeader?kr(this._theadRow):kr(this._theadRowSticky)}get additionalColumns(){return this._additionalColumns}get fieldsOrder(){return this._fieldsOrder}get columnsOrder(){return this._columnsOrder}setColumnsMap(e){this._columnsMap=e}setFields(e){this._fieldsOrder=[],this._columnsOrder=[];for(const[t,o]of Object.entries(e))this._fieldsOrder.push(t),o.skipField||this._columnsOrder.push(t);this._fields={},this._additionalColumns=[],this._fieldsOrder.forEach((t=>{this._fields[t]=e[t],e[t]&&e[t].additionalColumns&&e[t].additionalColumns.forEach((e=>{this._additionalColumns.includes(e)||this._additionalColumns.push(e)}))})),this.fieldsOrderChange.fire(),this._fieldsOrderChange=!0}update(e){this._fieldsOrderChange&&(this._unhideColumns(),this._createTable(),this._createHeader()),this.clearData(),this.append(e),this._fieldsOrderChange&&(this._fieldsOrderChange=!1),this._fixCols()}_updateEmptyMessageIcon(){if(!this._$emptyMessage)return;const e=function(){const e=ir.watchedTheme.value();return e||(document.querySelector("html")?.classList.contains("theme-dark")?Ct.StdTheme.Dark:Ct.StdTheme.Light) }(),t=this._$emptyMessage.find("i"),o=e===Ct.StdTheme.Light?br:yr;t.html(o)}_setEmptyMessage(){let e,t="";(0,Di.isScreenerPage)(this._model._bridge)?t="tv-screener-table__empty-result--fixed":((0,Di.isChartPage)(this._model._bridge)||(0,Di.isExternalWidget)(this._model._bridge))&&(t="tv-screener-table__empty-result--relative"),e=this._isUnavailableWidgetMarket?p.t(null,void 0,o(838821)).format({openLink:'',closeLink:""}):this._noDataString||p.t(null,void 0,o(476822)),this._$emptyMessage=kr(`\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
${e}
\n\t\t\t
\n\t\t`).insertAfter(this._table),this._updateEmptyMessageIcon(),(0,Di.isMarketPage)(this._model._bridge)?this._fixCols():this._model._view.fixStandaloneWidth()}append(e){this._$emptyMessage&&this._$emptyMessage.remove();const t=pr(this._columnsMap,"currency",this._model.selectedIntervalId),o=pr(this._columnsMap,"fundamental_currency_code",this._model.selectedIntervalId),i=document.createDocumentFragment();for(let r=0;r=0;--e){const t=this._fieldsOrder[e],o=this._fields[t];if(!o||o.skipField)continue;const i=pr(this._columnsMap,t,this._model.selectedIntervalId),r=o.additionalColumns?o.additionalColumns.map((e=>Er(n.d,pr(this._columnsMap,e,this._model.selectedIntervalId)))):[];let a="";const c=["tv-data-table__cell"];let h;if(o.tooltip&&("function"==typeof o.tooltip?a=o.tooltip(...r,o):"string"==typeof o.tooltip&&(a=o.tooltip),c.push("apply-common-tooltip")),"price"===o.type&&r.length>=4){const e=r.slice(-4);e[2]="true"===e[2],h=ut(...e)}else h=ct(o,this._model.screener_type,!1);"name"===t&&r.push(n.s);const p=Er(n.d,i);let g=null===p?this._nullFormatter():h&&h.format(p)||this._defaultFormatter({value:p,fieldKey:t,field:o,rowData:n,fieldsOrder:this._fieldsOrder,title:a,columnsMap:this._columnsMap});if(this._options.addCellClasses){const e="function"==typeof this._options.addCellClasses?this._options.addCellClasses({value:p,fieldKey:t,field:o}):this._options.addCellClasses;c.push(...e)}const _=o.additionalFormatter?o.additionalFormatter(...r):"";o.mutateDisplayValue&&(g=o.mutateDisplayValue(g,...r,o)),this._model.hasMarkedSymbols()&&c.push("tv-screener-table__cell--with-marker"),u>0&&(c.push("i-hidden"),u--);let m=g+_+mr(s,l,o.type,g,(0, Di.isMarketPage)(this._model._bridge));(t===xt.Name||t===xt.Sector&&this._model.screener_type===gt.CryptoMkt)&&(m=ur({symbolHtml:m,fieldsOrder:this._fieldsOrder,rowData:n.d,proSymbol:n.s}));const v=document.createElement("td");v.classList.add(...c),v.title=a&&"name"!==t?a:"",v.setAttribute("data-field-key",t),v.innerHTML=m,d.prepend(v)}const h=document.createElement("tr");h.classList.add(...a),c.forEach((e=>h.setAttribute(...e))),h.append(d),this._options.onRowBuild&&this._options.onRowBuild(h,n),i.appendChild(h)}this._tbody.appendChild(i),0===this._tbody.querySelectorAll("tr").length&&this._setEmptyMessage(),this._options.onUpdate&&this._options.onUpdate()}clearData(e){if(this._tbody)if(e){const t=this._tbody.children,o=t.length;for(let i=e;ie.removeChild(t)))}function Mr(e){return e.reduce(((e,t)=>e+t))}function Er(e,t){return e[t]}var Fr=o(199583),Ar=o(23203);const Br={america:"usa",euronext:"europe",hongkong:"hong-kong",newzealand:"new-zealand",uk:"united-kingdom",rsa:"south-africa",srilanka:"sri-lanka"};function Ir(e,t,o="sector"){return e&&t?(Br[t]&&(t=Br[t]),`/markets/stocks-${t}/sectorandindustry-${o}/${(i=e,i.replace(/[^a-zA-Z0-9]+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")).toLowerCase()}/`):"/markets/stocks-usa/sectorandindustry-sector/";var i}function Dr(e){const t=e._model,o=e._bridge,i={screenerType:$r(t),market:t.markets[0],utm:t.utm,largeChartUrl:t.largeChartUrl,tableStyle:o.table_style,screenerPlacement:(0,Di.getScreenerPage)(o),openChartOnSameTab:o.open_chart_on_same_tab,bridgeBaseUrl:o.baseUrl,selectedIntervalId:t.selectedIntervalId};return e=>function(e){switch(e.fieldKey){case xt.Name:return function(e){const{value:t,title:o,screenerPlacement:i,openChartOnSameTab:r}=e;if("chart"!==i){const i=Nr(e);return`${t}`}return`
${t}
`}(e);case xt.Description:return function(e){const{value:t,screenerType:o,market:i}=e;if(["sector","industry"].includes(o)){const e=Pr(t);return`\n\t\t\t\t\t\t${e}\n\t\t\t\t\t`}return Rr(t)}(e);case xt.Sector:return function(e){ const{value:t,fieldKey:o,screenerType:i,market:r,tableStyle:n,utm:s,openChartOnSameTab:l}=e;if(i===gt.CryptoMkt){const o=Nr(e);return`\n\t\t\t\t\t\t${t}\n\t\t\t\t\t`}if("big"===n)return Lr(t,r,o);return t}(e);case xt.Industry:return function(e){const{value:t,fieldKey:o,screenerType:i,market:r,tableStyle:n}=e;if("big"===n&&i!==gt.CryptoMkt)return Lr(t,r,o);return Rr(t)}(e);case xt.Country:return(0,Si.triesTranslateCountrieName)(e.value);default:return e.value}}({...e,...i})}function Pr(e){return(0,H.triesTranslateScreenerData)(e)}function Rr(e){const t=Pr(e);return`${t}`}function Lr(e,t,o){const i=Pr(e);return`\n\t\t\t\t${i}\n\t\t\t`}function $r(e){return e.screener_type}function Nr(e){const{rowData:t,screenerType:o,screenerPlacement:i,utm:r,largeChartUrl:n,columnsMap:s,selectedIntervalId:l}=e;if(o===gt.CryptoMkt){const e={proName:t.s,type:"crypto"};return"widget"===i&&n?(0,Ar.makeTemplateSymbolUrl)(n,e):(0,Ar.makeSymbolPageUrl)(e)}const a=pr(s,"exchange",l);let c;a&&(c=t.d[a]);const d={proName:t.s,exchange:c,type:o};return o===gt.ContinuousFutures?(0,Ar.makeSymbolChartUrl)(d):"widget"===i&&n?(0,Ar.makeTemplateSymbolUrl)(n,d):(0,Ar.makeSymbolPageUrl)(d,r)}var Or,Wr=o(583912);function Vr(e){const t=e._fields_order,i=e._disableStickyHeader,r=e._lifecycle,n=e.widthChange,s=e._model,l=s.screener_type,a=e._bridge,c=a.table_style,d=a.hide_controls,u=a.visible,h=(0,Di.getScreenerPage)(a),g=Xe.description,_={model:s,fieldsOrder:t,titleFormatter:(t,o)=>{const i=e._getThContent(t,o);return t===xt.Name&&r.beforeAppendSymbolsHeader(i.get(0)),i},defaultFormatter:Dr(e),addTheadClasses:["tv-screener-table__thead",i?"tv-screener-table__thead--sticky":"tv-screener-table__thead--regular"],addThClasses:["tv-data-table__sortable","tv-screener-table__sortable","tv-screener-table__th",c?`tv-screener-table__th--${c}`:"","widget"===h&&d?"tv-screener-table__th--no-toolbar":""],addCellClasses:e=>{const{value:t,fieldKey:o,field:i}=e,r=["tv-screener-table__cell"];return r.push(...function(e){const t=[];e.align===Or.Right||e.align===Or.Center||e.control&&"select"!==e.control||t.push("tv-screener-table__cell--left");e.align!==Or.Center||e.control||t.push("tv-screener-table__cell--center");return t}(i)),i.highlightChange&&t&&r.push(t>=0?"tv-screener-table__cell--up":"tv-screener-table__cell--down"),o!==xt.Name||!g.disabled&&g.checked||r.push("widget"===h?"tv-screener-table__cell--widget-without-description":"tv-screener-table__cell--without-description"),c&&r.push(`tv-screener-table__cell--${c}`),"widget"===h&&r.push(...function(e,t){const o=[];e&&o.push("tv-screener-table__cell--no-toolbar");t===gt.CryptoMkt&&o.push("tv-screener-table__cell--crypto_mkt");return o}(d,l)),r},widthChange:n,visibilityChange:u, table_style:c,noDataString:e._noDataString,isUnavailableWidgetMarket:e._isUnavailableWidgetMarket,disableStickyHeader:i,onRowBuild:(t,o)=>{const i=e._selectableList;"chart"===h&&Wr.linking.proSymbol.value()===o.s&&i&&(e._setActiveElem(t),i.focusItem(t)),r.beforeAppendSymbol(o.s,t)},onUpdate:()=>{const t=e._selectableList;t&&t.restore()}},m={..._,sortable:!0,addTableClasses:["tv-screener-table"],addTheadRowClasses:["tv-data-table__stroke","tv-screener-table__head"],addRowClasses:()=>["tv-data-table__stroke","tv-screener-table__result-row"],addRowAttrs:e=>({"data-symbol":e.s}),addStickyHeaderWrapperClasses:["tv-screener-sticky-header-wrapper"],addDraggingThClasses:["tv-screener-table__th--dragging"],addDraggingColClasses:["tv-screener-table__col--dragging"]},v=new xr(m);return v.setFields({name:{title:p.t(null,void 0,o(905791))}}),v}!function(e){e.Center="center",e.Right="right"}(Or||(Or={}));var Hr,qr=o(779893);function Ur(e){const{view:t}=e;return t._bridge.hide_controls?Promise.resolve():ji(e,jr,Wi.Header)}function jr(e,t){const{fieldKey:o}=e,i=t.default,r=Xe[o],n={...e,field:r};return{...zr(n,i),...Gr(n,i),...Xr(n,i),...Kr(n,i)}}function zr(e,t){const{view:i,fieldKey:n}=e;if("name"!==n)return{};const s=new t({actionId:"Screener.ToggleVisibility.Description",options:{label:!Xe.description.disabled&&Xe.description.checked?p.t(null,void 0,o(838716)):p.t(null,void 0,o(2948)),disabled:Xe.description.disabled,onExecute:()=>{const e=!Xe.description.checked;Xe.description.checked=e,i.table.update(i._data),i.$fieldSetsButton.toggleClass("tv-screener-toolbar__button--unsaved",i._model.isFieldSetChanged()),(0,uo.sendSnowPlowData)(new Gi.DispatchContextMenuActionEvent(Hr.ToggleDescription,"header",e))}}}),l=new t({actionId:"Screener.ToggleVisibility.SymbolType",options:{label:!Xe.type.disabled&&Xe.type.checked?p.t(null,void 0,o(750892)):p.t(null,void 0,o(907661)),disabled:Xe.type.disabled,onExecute:()=>{const e=!Xe.type.checked;Xe.type.checked=e,i.table.update(i._data),i.$fieldSetsButton.toggleClass("tv-screener-toolbar__button--unsaved",i._model.isFieldSetChanged()),(0,uo.sendSnowPlowData)(new Gi.DispatchContextMenuActionEvent(Hr.ToggleSymbolType,"header",e))}}}),a=!["forex","crypto"].includes(i._model.screener_type),c=new t({actionId:"Screener.ToggleVisibility.Currency",options:{label:fr()?p.t(null,void 0,o(645946)):p.t(null,void 0,o(557413)),onExecute:()=>{const e=!fr();var t;t=e,r.setValue(vr,t),i.table.update(i._data),(0,uo.sendSnowPlowData)(new Gi.DispatchContextMenuActionEvent(Hr.ToggleShowCurrency,"header",e))}}});return{...a?{toggleCurrencyDisplayAction:c}:null,toggleDescriptionAction:s,toggleSymbolTypeAction:l}}function Gr(e,t){const{view:i,fieldKey:r,field:n}=e;if("name"===r)return{};return{removeColumnAction:new t({actionId:"Screener.Column.Remove",options:{label:p.t(null,void 0,o(433500)),onExecute:()=>{n.checked=!1;const e=i._table.fieldsOrder.filter((e=>e!==r));i._model.fieldSetChanged.fire(e.filter((e=>Xe[e]&&!0!==Xe[e].disabled&&!0!==Xe[e].hiddenColumn))),i._model.update(), i.$fieldSetsButton.toggleClass("tv-screener-toolbar__button--unsaved",i._model.isFieldSetChanged()),(0,uo.sendSnowPlowData)(new Gi.DispatchContextMenuActionEvent(Hr.RemoveColumn,"header",r))}}})}}function Xr(e,t){const{view:i,fieldKey:r,field:n,e:s}=e,l=s.currentTarget||s.target,a=new t({actionId:"Screener.Filter.Reset",options:{label:p.t(null,void 0,o(357670)),onExecute:()=>{i.resetFilter(r),(0,uo.sendSnowPlowData)(new Gi.DispatchContextMenuActionEvent(Hr.ResetFilter,"header",r))}}}),c=new t({actionId:"Screener.Filter.Change",options:{label:p.t(null,void 0,o(577779)),onExecute:()=>{const e=qr(l).closest("th");i.showInplaceEditor(r,e),s.stopPropagation(),(0,uo.sendSnowPlowData)(new Gi.DispatchContextMenuActionEvent(Hr.ChangeFilter,"header",r))}}});if(n.control){i.fieldValueString(r)||a.update({disabled:!0})}else a.update({disabled:!0}),c.update({disabled:!0});return{resetFilterAction:a,changeFilterAction:c}}function Kr(e,t){const{view:i,fieldKey:r,field:n}=e;if(!n.hasOwnProperty("displaySignal"))return{};const{displaySignal:s}=n;return{toggleSignalAction:new t({actionId:"Screener.ToggleVisibility.Rating",options:{label:s?p.t(null,void 0,o(219445)):p.t(null,void 0,o(59823)),onExecute:()=>{i._table.toggleSignals(r),(0,uo.sendSnowPlowData)(new Gi.DispatchContextMenuActionEvent(Hr.ToggleSignal,"header",!s))}}})}}!function(e){e.ActiveOnly="active_only",e.ToggleDescription="show_description",e.ToggleSymbolType="show_symbol_type",e.TogglePrimaryOnly="show_primary_only",e.RemoveColumn="remove_column",e.ResetFilter="reset_filter",e.ChangeFilter="change_filter",e.ToggleSignal="show_rating",e.ToggleShowCurrency="toggle_show_currency"}(Hr||(Hr={}));var Yr=o(793242),Jr=o(157234);const Zr="screener-market-select-mode";var Qr=o(35387),en=o(67905),tn=o(491540),on=o(779893);const rn=o(583912).linking;o(236550);const{Delegate:nn}=o(547465),sn=o(735566).getLogger("Screener.View"),{operators:ln,fields:an}=o(606550),cn=p.t(null,{context:"forex_screener_pairs_select"},o(567132)),dn=p.t(null,void 0,o(580066)),un=p.t(null,void 0,o(882675)),hn=o(182951),pn=o(891250),gn=[-1,10,60],_n=[-1,10],mn={bonds:{yields:p.t(null,{context:"Bonds"},o(393630)),prices:p.t(null,{context:"Bonds"},o(290229))},crypto_mkt:{USD:"USD",BTC:"BTC"}},vn=`
\n\t\t\n\t\t${o(62555)}\n\t\t${o(83170)}\n\t
`;class fn{constructor(e,t){this._bridge=e,this._model=t,this._onWidget=e.onWidget,this._activeElem=null,this._changeSymbol=(0,Ot.default)(this._changeSymbol,500),this._lifecycle=new qo,this.sortedFields=Object.keys(Xe).filter((e=>Boolean(pt(Xe[e])))),this._popups=new xo(t,this,e), this._dialog=new Oo(t,this,e),this._disableStickyHeader=this._bridge.disableStickyHeader,this._periodPicker=e.period_picker,this._noDataString=e.no_data_string,this._isUnavailableWidgetMarket=e.isUnavailableWidgetMarket,this._periodPickerButtons=[{id:"yesterday",title:p.t(null,void 0,o(943320))},{id:"today",title:p.t(null,void 0,o(205935))},{id:"tomorrow",title:p.t(null,void 0,o(315404))},{id:"this_week",title:p.t(null,void 0,o(847228))},{id:"next_week",title:p.t(null,void 0,o(116468))}];const i="undefined"===this._model.settingKey?this._model.screener_type:this._model.settingKey;this._fields_order=this._model.settingsSaver.getJSON(i+".fields_order",[]),this._data=[],this._lastSetId=null,this.widthChange=new nn,this._bridge.width&&this._bridge.width.subscribe((()=>{this.widthChange.fire()})),this._$groupSelect=null,this._preventHighlightChanges=!1,this._table=Vr(this),this._model.fieldSetChanged.subscribe(null,(e=>{const t={};e.forEach((e=>{t[e]=Xe[e]})),this._table.setFields(t)})),this._model.filterSetChanged.subscribe(null,(()=>{this.$filterSetsButton.toggleClass("tv-screener-toolbar__button--unsaved",this._model.isFilterSetChanged())})),this._table.fieldsOrderChange.subscribe(null,(()=>{this._model.fieldsOrder.setValue(this._table.fieldsOrder),this.$fieldSetsButton.toggleClass("tv-screener-toolbar__button--unsaved",this._model.isFieldSetChanged()),this._model.settingsSaver.setJSON(i+".fields_order",this._table.fieldsOrder,{forceFlush:!0})}));let r=0,n=!1;this._model.loadingStart.subscribe(null,(e=>{e?(n=!0,this._bridge.standalone&&(r=on(document).scrollTop()),this._showSpinner(this.$bottomLoadingScreen)):(r=0,this._model.isFastRefresh||this._showSpinner())})),this._model.loadingStart.subscribe(null,(()=>this.resetRefreshCounter(!0))),this._model.loadingComplete.subscribe(null,(()=>{n&&this._bridge.standalone&&0!==r&&on(document).scrollTop()!==r?(n=!1,on(document).scrollTop(r),r=0):this._bridge.standalone&&this._isScrollBottom()&&on(document).scrollTop(on(document).scrollTop()/2),this._hideSpinner(),this.resetRefreshCounter()})),this._model.eodRestriction.subscribe((()=>this.updateIntervalButton()),{callWithLast:!0}),window.loginStateChange&&window.loginStateChange.subscribe(null,(()=>{if(this.resetRefreshCounter(),"forex"===this._model.screener_type){const e=this._model.selectedGroups;Xe.sector.value=Array.isArray(e)&&e[0]===p.t(null,void 0,o(882675))?null:e,this._$groupSelectButton&&(this._$groupSelectButton.empty(),this.updateGroupsButton(this._$groupSelectButton,e))}})),this._bridge.standalone&&on(window).on("scroll",(()=>{on(".js-dropdown-toggle.i-opened").trigger("resetPosition")}));const s=(0,Ot.default)((()=>{this._tempBusy=!1}),250),l=()=>{this._tempBusy||(this._tempBusy=!0),s()};this._bridge.standalone&&on(window).on("scroll",l),on(window).on("resize",l),this.widthChange.subscribe(this,l),this._bridge.standalone||this._model.loadingComplete.subscribe(null,(()=>{this.isEndReached()?(this.$content.addClass("tv-screener__content-pane--fully-loaded"), this._table.$element.css("margin-bottom",-this._contentPadding)):(this.$content.removeClass("tv-screener__content-pane--fully-loaded"),this._table.$element.css("margin-bottom",""))})),TradingView.onChartPage&&jo.subscribe("screener.selected_type_on_chart",(e=>{this._model.changeScreenerType(e).then((()=>{this._lastSetId=null,this._popups.setMarketsList((0,g.getMarketsByScreenerType)(this._model.screener_type)),"forex"===this._model.screener_type?this._$groupSelect.removeClass("i-hidden"):this._$groupSelect.addClass("i-hidden"),this.updateIntervalButton(this._$selectIntervalButton,this._model.selectedIntervalId),this._popups.updateRefreshIntervalsPopupContent()})).then((()=>this.updateMarketButton())).catch((e=>{e&&sn.logError(e)}))}))}getSelectedSymbols(){return this._selectableList?this._selectableList.getSelectedKeys():[]}getFocusedSymbol(){if(this._selectableList)return this._selectableList.getFocusedKey()}registerHooksHandlers(e){this._lifecycle.registerHandlers(e)}_isScrollBottom(){return on(window).scrollTop()+on(window).height()===on(document).height()}_initSelectableList(){var e;this._selectableList=(e={list:this.$content.get(0),listItemClass:"tv-screener-table__result-row",selectedListItemClass:"tv-screener-table__result-row--selected",focusedListItemClass:"tv-screener-table__result-row--focused",onNavigate:this._onSymbolsNavigate.bind(this),onConfirm:this._onSymbolConfirm.bind(this),getNodeKey:e=>e.dataset.symbol},new Zt(Object.assign({},{modes:[zt,Gt,Yt,Kt,Xt]},e)))}_getThContent(e,t){t||(t=Xe[e]);const i=Bi(e,t)?on(`
`):on(`
`);t.disableHeaderControl&&i.addClass("tv-screener-table__head-wrap--disable-interaction");const r=on('
').appendTo(i),n=on('
').appendTo(r),s=on(`
${t.shortTitle||t.title}
`).appendTo(n);e===this._model.searchField&&r.addClass(!Xe.description.disabled&&Xe.description.checked?"tv-screener-table__head-left--name-col":this._onWidget?"tv-screener-table__head-left--widget-name-col-without-description":"tv-screener-table__head-left--name-col-without-description");const l=on(`${"asc"===this._model._sortDirection.value()?hn:pn}`);if(e===this._model.searchField){let e;e=this._totalCount?this._bridge.hide_load_more&&this._bridge.page_size&&this._totalCount>=this._bridge.page_size?p.t(null,{plural:"{number} matches",count:this._bridge.page_size},o(646182)).format({number:this._bridge.page_size}):p.t(null,{plural:"{number} matches",count:this._totalCount},o(646182)).format({number:this._totalCount}):p.t(null,void 0,o(681982)), on(`
${e}
`).appendTo(r),this._onWidget||on(vn).appendTo(r)}let a=!1;if(t.control&&!this._bridge.hide_controls){const t=on(`${o(630001)}`);t.appendTo(i);if(this.fieldValueString(e)){t.addClass("tv-screener-table__filter-button--active");const o=on(`${this.fieldValueString(e)}`);r.append(o),a=!0}}return l.appendTo(i),s.addClass(a?"tv-screener-table__head-left--title-two-lines":"tv-screener-table__head-left--title-three-lines"),i}_updateTableSortField(){const e=this._model._sortField.value(),t=this._model._sortDirection.value();this._table.updateSortField(e,t)}setFieldActive(e,t,o){this._dialog.$filtersPopup&&(o||(o=this._dialog.$filtersPopup.find(`.js-filter-field-${e.replace(/\W/g,"")}`)),o&&o.size()&&o.toggleClass("tv-screener-dialog__filter-field--active",t))}_resetSearchCount(){const e=this._getThContent(this._model.searchField).find(".js-field-total").text();this._table.setSearchText(e)}_resetField(e){this.setFieldActive(e,this._model.fieldActive(e));const t=this._getThContent(e);if("name"===e&&this._lifecycle.beforeAppendSymbolsHeader(t.get(0)),this._table.setThContent(e,t),!this._dialog.$filtersPopup&&this.$inplaceEditor&&e===this._inplaceEditorField){const t=!this._isFilterValueEmpty(e),o=this.$inplaceEditor.find(".js-reset"),i=this.$inplaceEditor.find(".js-wrap");t?(o.removeClass("i-hidden"),i.removeClass("tv-screener-inplace-editor__filter-without-reset"),this.$inplaceEditor.removeClass("tv-screener-inplace-editor__without-reset")):(o.addClass("i-hidden"),i.addClass("tv-screener-inplace-editor__filter-without-reset"),this.$inplaceEditor.addClass("tv-screener-inplace-editor__without-reset"))}}_setupStickyHeader(){if(this._disableStickyHeader)return;const e=this._table.$stickyHeader;e.insertBefore(this.$content);const t=on('').prependTo(this.$content);let r=Math.round(this.$toolbar.outerHeight());if(new ResizeObserver((()=>this.onResizeToolbar())).observe(this.$toolbar[0]),(0,Di.isMarketPage)(this._bridge))Ni(this);else if(this._bridge.standalone){const o=148;let i;this.$toolbar.toggleClass("tv-screener-toolbar--standalone_sticky",!0).css({top:o}),this._bridge.$body.css({"padding-top":r}),e.css({top:r});const n=(i,n)=>{n||(n=on(document).scrollTop()),this._bridge.$body.css({"padding-top":r}),this.$toolbar.css({top:i?0:o-n}),e.css({top:r}),t.css({top:i?r:0})},s=e=>on(document).scrollTop()-(this.$content.offset().top-e)>0;on(document).on("scroll",(()=>{r=Math.round(this.$toolbar.outerHeight());const o=on(document).scrollTop(),l=on(document).scrollLeft();let a;this._onWidget||(a=s(r),n(a,o),this._$mainContainer.css("top",-o)),e.toggleClass("tv-screener-sticky-header-wrapper--standalone_sticky",a);const c=(0, co.isRtl)()?document.body.clientWidth-this.$content[0].getBoundingClientRect().right:-l;e.css({[(0,co.isRtl)()?"right":"left"]:a?c:"auto"}),t.toggleClass("tv-screener-sticky-header-wrapper__right-substrate--standalone_sticky",a),i!==a&&this.updateToolbarButtons(),i=a,this.$bottomLoadingScreen.css({left:l})})),on(window).on("resize",(()=>{this.fixStandaloneWidth(),r=Math.round(this.$toolbar.outerHeight());const e=s(r);n(e),this.onResizeToolbar()})),this.fixStandaloneWidth(),this._table.afterFixCols.subscribe(null,(()=>{this.fixStandaloneHorizontalScroll()}))}else{this._bridge.$body.css({overflow:"hidden"});let o=!1,r=!1;this.onResizeToolbar();const n=()=>{const o=Math.round(e.outerHeight());t.css({top:-o}),this.$content.css({top:o}),this._table.$element.css({top:-o,position:"relative"})};(TradingView.onChartPage||this._onWidget)&&n(),this.$content.on("scroll",(()=>{(0,i.hide)(),Uo.PopupColorSelector.hide(),(0,co.isRtl)()?e.css("right",-(this.$content[0].scrollWidth-this.$content[0].clientWidth-(0,co.getLTRScrollLeft)(this.$content[0]))):e.css("left",-this.$content.scrollLeft()),this._onWidget&&this._bridge.hide_controls&&e.css({top:0})})),TradingView.onChartPage&&on(document).on("scroll",(()=>{window.innerWidth<=Wt.breakpoints.tablet&&(o=this.$content.get(0).getBoundingClientRect().top<0),e.toggleClass("tv-screener-sticky-header-wrapper--standalone_sticky",o),r!==o&&e.css({left:o?-this.$content.scrollLeft():0}),r=o}))}this._bridge.hide_controls||(this.$headerFieldsButton=on(`
\n\t\t\t\t${o(407499)}\n\t\t\t
`).appendTo(e),this.$headerFieldsButton.attr({"data-name":"header_fields-button"}),this._popups.setFieldsPopup(this.$headerFieldsButton,"tv-screener-sticky-header-wrapper__fields-button-wrap","tv-dropdown__body--position_right")),this._model.loadingComplete.subscribe(null,(()=>{t.show()}),!0)}_showSpinner(e=this.$loadingScreen){e.removeClass("js-hidden"),clearTimeout(this._spinnerTimeoutId),this._spinner||(this._spinnerTimeoutId=setTimeout((()=>{this._spinner=(new Wo.Spinner).spin(e.get(0))}),100))}_hideSpinner(){this.$loadingScreen.addClass("js-hidden"),this.$bottomLoadingScreen.addClass("js-hidden"),clearTimeout(this._spinnerTimeoutId),this._spinner&&(this._spinner.stop(),delete this._spinner)}_getResizerBridgeWidth(){return window.widgetbar?(0,Ei.getWidgetBarPadding)(window.widgetbar.resizerBridge.width.value()):0}fixStandaloneWidth(){if(this._bridge.standalone){this._bridge.$body.css({"padding-right":"","padding-left":""});const e=this._getResizerBridgeWidth(),t=(0,co.isRtl)()?"padding-left":"padding-right";this.$toolbar.width(on(window).width()-e),this._$mainHeader.css({[t]:e}),this.updateToolbarButtons(),this._table&&this._table._$emptyMessage&&!(0,Di.isMarketPage)(this._model._bridge)&&this._table._$emptyMessage.css({width:`calc(100% - ${e}px`}),this.widthChange.fire()}}fixStandaloneHorizontalScroll(){if(this._bridge.standalone){ const e=this._getResizerBridgeWidth(),t=this._table.$element.width()+((0,co.isRtl)()?0:e),o=on(window).width()`).appendTo(this._bridge.$body),this.$toolbar=on(`
`).appendTo(this._bridge.$body),this.$toolbar.on("contextmenu",(function(e){e.preventDefault()})),on(".tv-screener__content-pane").remove(),this.$content=on('
').data({localScroll:!this._bridge.standalone}).appendTo(this._bridge.$body),this.$content.on("contextmenu",(function(e){e.target.classList.contains("tv-screener__content-pane")&&e.preventDefault()})),this.$bottomLoadingScreen=on('
').appendTo(this._bridge.$body),this._$mainContainer=on(".tv-screener__standalone-main-container"),this._$mainHeader=this._$mainContainer.find(".tv-header"),this._onWidget||(this.$refreshButton=on(`
`).attr({"data-name":"screener-refresh","data-role":"button"}).append(on(o(820713)).attr({class:"tv-screener-toolbar__button-icon tv-screener-toolbar__button-icon--standalone-refresh",width:"18",height:"18"})).appendTo(this.$toolbar),this.$refreshCounter=on('').text("00:00").appendTo(this.$refreshButton),this.$refreshIntervalButton=on(`
`).attr({"data-name":"screener-refresh-interval","data-role":"button"}).append(on(o(407499)).attr({width:3,height:13,class:"tv-screener-toolbar__button-icon",style:"top: -1px"})).appendTo(this.$toolbar));const e=this._model.currentFieldSetId(),t=this._model.getFieldSetById(e);this.$fieldSetsButton=on(`
\n\t\t\t\t${t?t.title:""}\n\t\t\t
`).attr({"data-name":"screener-field-sets","data-role":"button","data-field-set":e}).appendTo(this.$toolbar), this.$fieldsButton=on(`
`).attr({"data-name":"screener-fields","data-role":"button"}).append(on(o(944499)).attr({class:"tv-screener-toolbar__button-icon"})).appendTo(this.$toolbar),this.$favoritesBar=on('
').appendTo(this.$toolbar),this.$periodPicker=on('
').appendTo(this.$toolbar);const i=mn[this._model.screener_type];i&&(this._createSwitch(i),this.$toolbar.addClass("tv-screener-toolbar--one-line"));const r=this._model.currentFilterSetId(),n=this._model.getFilterSetById(r);this.$filterSetsButton=on(`
`).attr({"data-name":"screener-filter-sets","data-role":"button","data-filter-set":r}).appendTo(this.$toolbar),this.$filterSetsButtonTitle=on(`${n?n.title:""}`).appendTo(this.$filterSetsButton),this.$filtersButton=on(`
${p.t(null,void 0,o(846994))}
`).attr({"data-name":"screener-filter","data-role":"button"}).append(on(o(630001)).attr({class:"tv-screener-toolbar__button-icon tv-screener-toolbar__button-icon--filters"})).appendTo(this.$toolbar),this._model.loadingComplete.subscribe(null,(()=>{this.$filtersButton.removeClass("i-disabled")}),!0);const s=on('
').on("click",(()=>{this.showActiveFilters(),(0,uo.sendSnowPlowData)(new Fo("filter_counter_button",this._getFiltersCounterValue()))})).appendTo(this.$toolbar);if(this.$filterCount=on(``).attr({"data-name":"screener-filter-count","data-role":"button"}).appendTo(s),this._table.$element.appendTo(this.$content),this.initHandlers(),this._bridge.selection_disabled||this._initSelectableList(),this._onWidget&&this._bridge.hide_controls&&(this._contentPadding=this.$content.innerHeight()-this.$content.height(),this.$content.css("height",`calc(100% - ${this._contentPadding}px)`),this.$toolbar.hide()),this._bridge.hide_controls)[this.$refreshButton,this.$refreshIntervalButton,this.$fieldSetsButton,this.$fieldsButton,this.$filterSetsButton,this.$filtersButton,this.$filterCount].forEach((e=>{e&&e.hide()})),this._onWidget&&(this._bridge.$body.addClass("tv-screener--hidden-toolbar"), this.$loadingScreen.addClass("tv-screener__loading-screen--hidden-toolbar"));else{this._onWidget||(this._$selectIntervalButton=this.addIntervalSelect({$before:this.$filterSetsButton}).attr({"data-name":"screener-time-interval","data-role":"button"}),this._$downloadButton=on(`
`).attr({"data-name":"screener-export-data","data-role":"button"}).append(on(o(764162)).attr({class:"tv-screener-toolbar__button-icon tv-screener-toolbar__button-icon--export"})),this._$downloadButton.insertBefore(this._$selectIntervalButton),this._$downloadButton.on("click",(e=>{(0,eo.runOrGoPro)((()=>{this._$downloadButton.toggleClass("i-loading",!0),this._model.getDownloadData().then((e=>{const[t,...o]=this._table.columnsOrder,i=[t,"description",...o];try{const t=function(e,t,o,i){const r=new Map,n=[];for(const e of t)n.push(Xe[e].title),r.set(e,fi(o,e));const s=[n];for(const t of e){const e=[];for(const[n,s]of Array.from(r.entries())){const r=Xe[n],l=t.d[s];if(null===l)e.push("");else if(_i.includes(n))e.push((0,H.triesTranslateScreenerData)(l));else if("earnings_release_date"===n||"earnings_release_next_date"===n){const t=ct(r,i,!1);e.push(t.format(l))}else if(r.signalComputation)vi.includes(n)?e.push(r.signalComputation(l).title):e.push(l.toString());else{const i=r.additionalColumns?r.additionalColumns.map((e=>t.d[fi(o,e)])):[];if(r.mutateDisplayValue&&!mi.includes(n))e.push(r.mutateDisplayValue(l,...i,n));else if("candlestick"===n&&r.additionalColumns){const{additionalColumns:t}=r,o=bi(i);if(0===o.length)e.push("");else{const i=o.map((e=>t[e])).map(wi).filter(Boolean).map((e=>e.name)).join(", ");e.push(i)}}else e.push(l.toString())}}s.push(e)}return s}(e.data,i,this._model.getRequestColumns(),this._model.screener_type),o=t.map(yi).join("\r\n"),r=Ci.dateFormatFunctions["yyyy-MM-dd"](new Date,!0),n=`${this._model.markets.join("_")}_${r}.csv`;(0,Ho.saveTextFile)(n,o,"text/csv")}catch(e){sn.logError(e.toString())}this._$downloadButton.toggleClass("i-loading",!1),this._model.trackEvent("Export screener data")}))}),ao.ProductFeaturesEnum.SCREENER_EXPORT_DATA,{feature:"screenerExportData"}),(0,uo.sendSnowPlowData)(new Ti)})),this._model.loadingComplete.subscribe(null,(()=>{this._$downloadButton.removeClass("i-disabled")}),!0));const e=this.addMarketSelect({$before:this.$filterSetsButton}),t=on('
').on("click",(()=>{this._showMarketsDialog()}));this.$marketCount=on(``).attr({"data-name":"screener-market-count","data-role":"button"}).appendTo(t),on(e).after(t),this._$groupSelectButton=this.addGroupSelect({$before:this.$filterSetsButton}), this._popups.setFieldsPopup(this.$fieldsButton,"tv-screener-toolbar__button-wrap"),this._popups.setFieldSetsPopup(this.$fieldSetsButton),this._popups.setFilterSetsPopup(this.$filterSetsButton),this._onWidget||this._popups.setRefreshIntervalsPopup(this.$refreshIntervalButton)}var l;(l=this._model.timezone)&&l!==j&&(j=l),this._periodPicker?(rt(),this._selectedPeriodId="today",this._setNewEarningsPeriod(this._selectedPeriodId),this.updatePeriodPicker(),this.$favoritesBar.hide(),Xe.earnings_release_next_date.onFilterChange=e=>{const t=this._periodPickerButtons.find((t=>t.title===e));this.changeEarningsPeriod(t?t.id:"",!0)}):this.$periodPicker.hide(),this._showSpinner(),this.updateToolbarButtons(),this.onResizeToolbar()}onResizeToolbar(){if(this._disableStickyHeader)return;if(this._table.$stickyHeader.position().top<0)return;const e=Math.round(this.$toolbar.outerHeight());(0,Di.isExternalWidget)(this._bridge)&&this._bridge.hide_controls?this._table.$stickyHeader.css({top:0}):this._table.$stickyHeader.css({top:e})}showMaintenance(){this._bridge.$body.html(`
${p.t(null,void 0,o(673937))}
`)}initHandlers(){this.$toolbar.on("hover",this.adjustToolbarWidth.bind(this)),this.$fieldSetsButton.on("transitionend",this.updateToolbarButtons.bind(this));const e=e=>{const t=e.data("field");if(!1===Xe[t].sortableColumn)return;const o=this._model._sortField.value(),i=this._model._sortDirection.value();Xe[t].disableHeaderControl||(o===t&&this._model._sortDirection.setValue("asc"===i?"desc":"asc"),this._model._sortField.setValue(t),this._model.update())};if(h.mobiletouch){(new Xo).load().then((t=>{const o=new t(on(".tv-screener")[0],{touchAction:"auto"});o.get("press").set({time:500}),o.on("press",(e=>{const t=on(e.target).closest(".js-head-wrap");if(t.length){Ur({view:this,fieldKey:on(t).data("field"),e:e.srcEvent})}e.preventDefault()})),o.on("tap",(t=>{if(on(t.target).closest(".js-search-input").length)return;const o=on(t.target).closest(".js-head-wrap");o.length&&e(o)}))}))}else on(".tv-screener").on("click",".js-head-wrap",(t=>{const o=on(t.currentTarget);e(o),t.stopPropagation()})).on("contextmenu",".js-head-wrap",(e=>{Ur({view:this,fieldKey:on(e.currentTarget).data("field"),e}),e.preventDefault()})),on(".tv-screener").on("click",".js-filter-button",(e=>{const t=on(e.currentTarget).closest("th"),o=t.data("field");this.showInplaceEditor(o,t),e.stopPropagation()}));on(".tv-screener").on("click",".js-search-input",(e=>{e.stopPropagation()})),on(".tv-screener").on("click",".js-input-reset",(e=>{on(e.currentTarget).addClass("i-hidden"),on(".tv-screener").find(".js-search-input").val(""),Xe[this._model.searchField].searchValue="",this._model.update(),e.stopPropagation()})),on(".tv-screener").on("click",".js-filter-button",(e=>{const t=on(e.currentTarget).closest("th"),o=t.data("field");this.showInplaceEditor(o,t),e.stopPropagation()})),this._bridge.table_context_menu_disabled||this._initTableContextMenu(),this.$content.on("scrolltoend",(e=>{this._model.loading||this._model.update(null,!0)})), this.$refreshButton&&this.$refreshButton.click((e=>{(0,ki.runOrSignIn)((()=>{this._model.loading||this.refresh(),(0,uo.sendSnowPlowData)(new wo)}),{source:"Screener refresh button"})})),this.$filtersButton.click((()=>{this._dialog.showFiltersDialog(),(0,uo.sendSnowPlowData)(new Fo("filter_button",this._getFiltersCounterValue()))})),rn.proSymbol.subscribe((e=>{const t=this.$content.find(`[data-symbol="${e}"]`).get(0);this._setActiveElem(t),this._selectableList&&(t?this._selectableList.focusItem(t):this._selectableList.clear())})),this.$fieldSetsButton.on("click",(()=>{this._lastSetId=null})),this.$toolbar.on("click",".js-favorite-item",(e=>{const t=on(e.currentTarget).attr("data-set");this._lastSetId!==t&&(this._model.preventPrevScanRequest(),this.updateSetId(t,!1,this._bridge.hide_controls)),(0,uo.sendSnowPlowData)(new po("columnset_favorites_picker",t))})),this.$toolbar.on("click",".js-period-picker-item",(e=>{const t=on(e.currentTarget).attr("data-period");this.changeEarningsPeriod(t)})),on(window).resize((e=>this.updateToolbarButtons())),this._bridge.width&&this._bridge.width.subscribe((()=>this.updateToolbarButtons())),this._bridge.visible&&this._bridge.visible.subscribe((e=>{e&&(this.updateToolbarButtons(),this.adjustToolbarWidth())})),this.updateFavoritesToolbar()}_initTableContextMenu(){this.$content.on("contextmenu",".tv-screener-table__result-row",(e=>{const t=on(e.currentTarget).data("symbol");this._selectableList&&this._selectableList.focusItem(e.currentTarget),function(e){const t=(0,Hi.ticker)(e.symbol);ji({...e,shortName:t},Ji,Wi.Table)}({view:this,symbol:t,e}),e.preventDefault()}))}_onSymbolsNavigate(e){const t=e.cursor;if(t){if(TradingView.onChartPage&&this._setActiveElem(t),["sector","industry"].includes(this._model.screener_type))return;const e=t.dataset.symbol;this._changeSymbol(e)}}_changeSymbol(e){const t=rn.preventFeedBySymbol;rn.setPreventFeedBySymbol(!0),rn.setSymbolAndLogInitiator(e,"screener"),rn.setPreventFeedBySymbol(t),this._model.trackEvent("Change symbol from table")}_setActiveElem(e){this._activeElem&&this._activeElem.classList.remove("tv-screener-table__result-row--active"),e?(e.classList.add("tv-screener-table__result-row--active"),this._activeElem=e):this._activeElem=null}_onSymbolConfirm(e){e.items.forEach((t=>{const o=t.dataset.symbol;o&&this._lifecycle.afterSymbolConfirm(o,e.action)}))}changeEarningsPeriod(e,t=!1){if(this._selectedPeriodId===e)return;this._selectedPeriodId=e,this.updatePeriodPicker(),this._model.applyFieldSetContent(Mt);"tomorrow"===e||"next_week"===e?(Xe.earnings_per_share_fq.mutateDisplayValue=()=>nt,Xe.eps_surprise_fq.mutateDisplayValue=()=>nt,Xe.eps_surprise_percent_fq.mutateDisplayValue=()=>nt,Xe.revenue_fq.mutateDisplayValue=()=>nt):at(),t||this._setNewEarningsPeriod(e,(()=>{this._resetField("earnings_release_next_date"),this._model.preventPrevScanRequest(),this._model.update()}))}_setNewEarningsPeriod(e,t=()=>{}){const o=Xe.earnings_release_next_date.sourceRange.find((t=>t.key===e));o&&(Xe.earnings_release_next_date.value=o.name,t())}get totalCount(){ return this._totalCount}get itemsCount(){return this._itemsCount}set itemsCount(e){this._itemsCount=+e}set lastSetId(e){this._lastSetId=e}get popups(){return this._popups}isEndReached(){return 0===this._data.length||"number"==typeof this._totalCount&&this._data.length>=this._totalCount}display(e,t,o){if(this._hideSpinner(),this._setFiltersCount(),this._setMarketsCount(),this.$filterSetsButton.toggleClass("tv-screener-toolbar__button--unsaved",this._model.isFilterSetChanged()),!e||e.error||!e.data&&!e.symbols)"abort"!==o&&(this.resetItems(),this._table.setColumnsMap(t),this._table.update([]),this._resetField("name"),"error"===o?sn.logError(e.responseText||o):e&&e.error&&sn.logError(e.error));else{let o=e.data||e.symbols;for(let e=0;e0?(o=o.slice(e),this._data=this._data.slice(0,e),this._table.clearData(e)):o=o.slice(this._data.length),this._data=this._data.concat(o),this._table.setColumnsMap(t),this._table.append(o))}setTimeout((()=>this.highlightChanges()),0),this._totalCount=e.totalCount,this._resetSearchCount(),this._model._initialSortField&&(this._model._sortField.setValue(this._model._initialSortField,!0),this._model._sortDirection.setValue(this._model._initialSortDirection,!0),delete this._model._initialSortField,delete this._model._initialSortDirection)}}_getInvalidatedFrom(e){for(let t=0;t{o.push(this._getFieldValueFromRangeTitles(e,t))})),o.join(", ")}_getFieldValueFromRangeTitles(e,t,o=!1){return Xe[t].rangeTitles&&Xe[t].rangeTitles[e]?Xe[t].rangeTitles[e][o?1:0]:"string"!=typeof e?"":e}fieldValueString(e){const t=Xe[e].value;if(De(t)||!1===t)return"";if("select"===Xe[e].control){const i=p.t(null,{plural:"{number} items",count:t.length,context:"combobox_input"},o(432121)).format({number:t.length});return Array.isArray(t)?`${i}`:this._getFieldValueFromRangeTitles(t,e,"dr"===t&&"name"===e)} return"range"===Xe[e].control?Array.isArray(t)?this._rangeLeftValue(e)+" – "+this._rangeRightValue(e):"":"toggle"===Xe[e].control?-1!==e.toLowerCase().indexOf("high")?p.t(null,void 0,o(980121)):p.t(null,void 0,o(478104)):"condition"!==Xe[e].control||De(t.operator)||De(t.value)?"":"in_range"===t.operator?t.value[0]===t.value[1]?ln.equal+" "+t.value[0]:-1e100===t.value[0]||this._isLessThenMin(t.value[0],e)?ln.less+" "+t.value[1]:1e100===t.value[1]||this._isGreaterThenMax(t.value[1],e)?ln.greater+" "+t.value[0]:this._rangeLeftValue(e)+" – "+this._rangeRightValue(e):"not_in_range"===t.operator?t.value[0]===t.value[1]?ln.nequal+" "+t.value[0]:-1e100===t.value[0]||this._isLessThenMin(t.value[0],e)?ln.greater+" "+t.value[1]:1e100===t.value[1]||this._isGreaterThenMax(t.value[1],e)?ln.less+" "+t.value[0]:`${ln.not_in_range} ${this._rangeLeftValue(e)} – ${this._rangeRightValue(e)}`:ln[t.operator]+" "+("number"==typeof t.value?t.value:Xe[t.value].title)}updateToolbarButtons(){this._bridge.period_picker?this.updatePeriodPicker():this._bridge.originalStandalone&&this.updateOldFavoritesToolbar()}updateOldFavoritesToolbar(){this.$hiddenFavoritesButtonWrap&&this.$hiddenFavoritesButtonWrap.hide(),this.$favoritesBar.find(".js-favorite-item").remove();let e=0;this.hiddenFavorites=[];const t=this.$favoritesBar.width(),i="forex"!==this._model.screener_type||this._bridge.hide_controls?40:160,r=e=>e===this._model.currentFieldSetId();if(this._model.favoriteFieldSets){let o=null;for(let n=0;n\n\t\t\t\t\t${(0,Vo.htmlEscape)(l.title)}\n\t\t\t\t
`).toggleClass("tv-screener-toolbar__favorites-item--active",r(l.id));o?a.insertAfter(o):a.prependTo(this.$favoritesBar);let c=a.outerWidth();a[0].scrollWidth>c&&a.addClass("apply-common-tooltip").attr("title",l.title),c+=9,e+=c,e+i>t?(e-=c,a.remove(),this.hiddenFavorites.push({id:l.id,title:l.title})):o=a}}if(this.hiddenFavorites.length){if(this.hiddenFavorites.length===this._model.favoriteFieldSets.length&&this.$hiddenFavoritesButtonWrap)return void this.$hiddenFavoritesButtonWrap.hide();if(this.$hiddenFavoritesButtonWrap)this.$hiddenFavoritesButtonWrap.trigger("resetContent").show();else{const e=on(`
`).appendTo(this.$favoritesBar);this.$hiddenFavoritesButtonWrap=this._popups.setHiddenFavoritesPopup(e,(()=>this.hiddenFavorites),r,(e=>this.updateSetId(e,!1,this._bridge.hide_controls)))}}}updateSetId(e,t,o){this._lastSetId=e,this._model.applyFieldSet(e,t,o)}updateNewFavoritesToolbar(){if(!this._model.favoriteFieldSets)return;const e={items:this._model.favoriteFieldSets.map((e=>({title:this._model.getFieldSetById(e).title}))),activeItem:this._model.favoriteFieldSets.indexOf(this._model.currentFieldSetId()), onSelect:e=>{const t=this._model.favoriteFieldSets[e];this._lastSetId!==t&&(this._model.preventPrevScanRequest(),this.updateSetId(t,!1,this._bridge.hide_controls))},className:"tv-screener-toolbar__no-scroll-choicer-react-root",selectedItemClassName:"tv-screener-toolbar__no-scroll-choicer-react-root-dropdown-item--selected"};gi(this.$favoritesBar.get(0),e)}updateFavoritesToolbar(){this._onWidget||(this._bridge.originalStandalone?this.updateOldFavoritesToolbar():this.updateNewFavoritesToolbar())}updatePeriodPicker(){const e={items:this._periodPickerButtons.map((e=>({title:e.title}))),activeItem:this._periodPickerButtons.findIndex((e=>e.id===this._selectedPeriodId)),onSelect:e=>{const t=this._periodPickerButtons[e].id;this.changeEarningsPeriod(t)},className:"tv-screener-toolbar__no-scroll-choicer-react-root",selectedItemClassName:"tv-screener-toolbar__no-scroll-choicer-react-root-dropdown-item--selected"};gi(this.$periodPicker.get(0),e)}_getWatchlist(){if(window.widgetbar){const t=window.widgetbar.setPage("base");let o;for(var e=0;e{let s=r;e.hasOwnProperty(o)&&(e[o].state===t&&(s=t),clearTimeout(e[o].sender),r===fo.UserActionState.Click&&!1===i)||(e[o]={state:s,sender:setTimeout((()=>(0,uo.sendSnowPlowData)(new Po(i.toString(),r,o,n))),1e4)})}}(),o=(e,t)=>t.reduce(((t,o)=>(o===e&&(o-=1),t+=Math.floor(o/e/(1/4)))),"");e.off("change.op").on("change.op","select.js-filter-operator",(o=>{const i=on(o.target),r=i.attr("name");Xe[r].value||(Xe[r].value={}),Xe[r].value.operator=i.val(),this._resetField(r),this._model.update();const{operator:n}=Xe[r].value,s=e.hasClass("tv-screener-dialog__filter-field")?"filter_dialog":"columns";t(r,n,fo.UserActionState.Click,s)})),e.off("change.op-val").on("change.op-val","select.js-filter-operator-value",(o=>{const i=on(o.target),{value:r}=o.target,n=i.attr("name");Xe[n].value||(Xe[n].value={}),Xe[n].value.value=i.val(),this._resetField(n),this._model.update();let{operator:s}=Xe[n].value;const l=e.hasClass("tv-screener-dialog__filter-field")?"filter_dialog":"columns";""!==r&&(s+="."+r),t(n,s,fo.UserActionState.Click,l)})),e.off("update.op-arb-val").on("update.op-arb-val","input.js-filter-operator-arb-value",(o=>{const i=on(o.target),r=i.attr("name");Xe[r].value||(Xe[r].value={});let n=+i.val();isFinite(n)&&!De(i.val())||(n=null),Xe[r].value.value=n,this._resetField(r),this._model.update();const{operator:s}=Xe[r].value,l=e.hasClass("tv-screener-dialog__filter-field")?"filter_dialog":"columns" ;t(r,s,fo.UserActionState.Click,l)}));const i=e.find("input.js-filter-operator-between-left"),r=e.find("input.js-filter-operator-between-right"),n=e=>{const t=on(e.target).attr("name");Xe[t].value||(Xe[t].value={});let o=+i.val();(!isFinite(o)||De(i.val())||this._isLessThenMin(o,t)||this._isGreaterThenMax(o,t))&&(o=-1e100);let n=+r.val();if((!isFinite(n)||De(r.val())||this._isLessThenMin(n,t)||this._isGreaterThenMax(n,t))&&(n=1e100),o>n){const e=o;o=n,n=e}Xe[t].value.value=[o,n],-1e100===Xe[t].value.value[0]&&1e100===Xe[t].value.value[1]&&(Xe[t].value.value=""),this._resetField(t),this._model.update()};e.off("update.op-between-left-val").on("update.op-between-left-val","input.js-filter-operator-between-left",n),e.off("update.op-between-right-val").on("update.op-between-right-val","input.js-filter-operator-between-right",n),e.off("change.toggle-val").on("change.toggle-val","input.js-filter-toggle",(o=>{const i=on(o.target),r=i.attr("name");Xe[r].value=i.prop("checked"),this._resetField(r),this._model.update();const n=e.hasClass("tv-screener-dialog__filter-field")?"filter_dialog":"columns";t(r,i.prop("checked"),fo.UserActionState.Click,n)})),e.off("click.reset").on("click.reset",".js-reset",(e=>{const t=on(e.currentTarget).data("field");this.resetFilter(t)}));let s="";e.off("keydown.filterInput").on("keydown.filterInput","input:not(.js-search-input):not(.js-filter-operator-arb-value)",(e=>{const t=on(e.currentTarget);s=t.val()})),e.off("keyup.filterInput").on("keyup.filterInput","input:not(.js-search-input):not(.js-filter-operator-arb-value)",(i=>{const r=on(i.currentTarget),n=r.data("field"),l=r.data("bound");if(void 0===n||void 0===l||s===r.val())return;const a=[this.parseRangeValue(n,r.val(),l),Xe[n].value?Xe[n].value[1-l]:Xe[n].range[1-l]].sort(this._model.numericSorter),c=this.approximateSliderValues(n,a);if(e.find(`.tv-slider[data-field="${n}"]`).slider("values",c),Xe[n].value=a,this._resetField(n),this._model.update(),Xe[n].values){const i=e.hasClass("tv-screener-dialog__filter-field")?"filter_dialog":"columns",r=o(Xe[n].values.length+1,c);t(n,r,fo.UserActionState.Type,i)}}));e.find(".tv-slider").off("slidechange").on("slidechange",((e,t)=>{const o=on(e.currentTarget).data("field");Xe[o].values?0===t.values[0]&&t.values[1]===Xe[o].values.length+1?Xe[o].value=null:Xe[o].value=[0===t.values[0]?-1e100:parseInt(Xe[o].values[t.values[0]-1],10),t.values[1]===Xe[o].values.length+1?1e100:parseInt(Xe[o].values[t.values[1]-1],10)]:t.values[0]===Xe[o].range[0]&&t.values[1]===Xe[o].range[1]?Xe[o].value=null:Xe[o].value=t.values,this._resetField(o),this._model.update()})).off("slide").on("slide",((e,t)=>{const o=on(e.currentTarget),i=o.data("field");let r=t.values[0],n=t.values[1];if(r===n)return!1;Xe[i].values&&(r=0===t.values[0]?this._rangeMinValue(i):ct(Xe[i],this._model.screener_type).format(Xe[i].values[t.values[0]-1]),n=t.values[1]===Xe[i].values.length+1?this._rangeMaxValue(i):ct(Xe[i],this._model.screener_type).format(Xe[i].values[t.values[1]-1])), t.value===t.values[0]?o.find(".tv-slider__label--left").val(r):(t.value===t.values[1]||o.find(".tv-slider__label--left").val(r),o.find(".tv-slider__label--right").val(n))})).on("slidechange",((i,r)=>{const n=on(i.currentTarget).data("field");if(Xe[n].values){const i=e.hasClass("tv-screener-dialog__filter-field")?"filter_dialog":"columns",s=o(Xe[n].values.length+1,r.values);t(n,s,fo.UserActionState.Slide,i)}}))}parseRangeValue(e,t,o){if(-1!==t.indexOf("<"))return Xe[e].range[0];if(-1!==t.indexOf(">"))return Xe[e].range[1];t=t.replace(/%/g,"");let i=ct(Xe[e],this._model.screener_type).parse(t);if(!i.res)return Xe[e].range[o];const r=i.value||0===i.value?i.value:i.price;return i=Math.min(Xe[e].range[1],Math.max(Xe[e].range[0],r)),i}approximateSliderValues(e,t){const o=[0,0],i=[].concat(-1e100,Xe[e].values,1e100);for(let e=0;e<2;e++)for(let r=0;r{let o=!1;for(const i in Xe){const r=Array.from(t.querySelectorAll(`.js-filter-field-${i.replace(/\W/g,"")}:not(.js-found)`)),n=pt(Xe[i]),s=-1!==i.toLowerCase().indexOf(e)||Boolean(n)&&-1!==n.toLowerCase().indexOf(e);s&&(o=!0),r.forEach((e=>{e.classList.toggle("js-hidden",!s),e.classList.toggle("js-found",s)}))}o||0===e.length||(0,uo.sendSnowPlowData)(new Io(e))}))}showActiveFilters(){if(this._dialog.$filtersPopup)return;const e=this._dialog._getActiveFilters();this._dialog.showFiltersDialog(!0).then((()=>{this._dialog.$dialogContainer.find(".js-search-input").val(e.join(", ")),this.updateFilterSearch()}))}resetAllFilters(){this._resetAllFilters=!0;for(const e in Xe)this._isFilterValueEmpty(e)||this.resetFilter(e);this._dialog.$dialogContainer.find(".js-search-input").val(""),this.updateFilterSearch(),this._resetAllFilters=!1}resetFilter(e){if(!Xe[e].value||!1===Xe[e].resettableFilter)return;Xe[e].value=null;const t=this._dialog.$filtersPopup||this.$inplaceEditor;if(t)if("select"===Xe[e].control)t.find(`.js-filter-field-${e.replace(/\W/g,"")}`).trigger("reset");else if("condition"===Xe[e].control)t.find(`[name="${e}"]`).val("").trigger("change");else if("toggle"===Xe[e].control)t.find(`[name="${e}"]`).prop("checked",!1);else if("range"===Xe[e].control){let o=Xe[e].range;Xe[e].values&&(o=[0,Xe[e].values.length+1]),t.find(`.ui-slider[data-field="${e}"]`).slider("values",o).trigger("slide",{values:o})}this._resetField(e),this._model.update()}_rangeLeftValue(e){let t=Xe[e].value;return"in_range"!==t.operator&&"not_in_range"!==t.operator||(t=t.value),this._isLessThenMin(t[0],e)?this._rangeMinValue(e):ct(Xe[e],this._model.screener_type).format(t[0])}_rangeRightValue(e){let t=Xe[e].value;return"in_range"!==t.operator&&"not_in_range"!==t.operator||(t=t.value), this._isGreaterThenMax(t[1],e)?this._rangeMaxValue(e):ct(Xe[e],this._model.screener_type).format(t[1])}_isGreaterThenMax(e,t){return Xe[t].range&&e>=Xe[t].range[1]}_isLessThenMin(e,t){return Xe[t].range&&e<=Xe[t].range[0]}_rangeMinValue(e){return"<"+ct(Xe[e],this._model.screener_type).format(Xe[e].values[0])}_rangeMaxValue(e){return">"+ct(Xe[e],this._model.screener_type).format(Xe[e].values[Xe[e].values.length-1])}_highlightActiveItems(e){if(!e.find(".js-filter-checkbox:checked").size())return e.find(".tv-control-select__option-wrap").removeClass("i-active"),void e.find(".js-item-wrap-any .tv-control-select__option-wrap").addClass("i-active");e.find(".js-filter-checkbox:checked, .js-filter-checkbox-any:checked").each((function(){e.find(".tv-control-select__option-wrap").removeClass("i-active"),on(this).closest(".tv-control-select__option-wrap").addClass("i-active")}))}_closeDropdown(e){e.tvDropdown("close"),this.$inplaceEditor&&this.$inplaceEditor.focus()}_createMultiSelectItems(e,t,o,i,r){const n=(Xe[e].useDefaultRange?Xe[e].defaultRange:Xe[e].range).slice().sort(((t,o)=>{if(!1!==Xe[e].sortSelectedFirst){const i=Xe[e].value===t||Array.isArray(Xe[e].value)&&~Xe[e].value.indexOf(t),r=Xe[e].value===o||Array.isArray(Xe[e].value)&&~Xe[e].value.indexOf(o);if(i&&!r)return-1;if(r&&!i)return 1}return!1===Xe[e].sortable?0:t>o?1:-1}));for(let s=null===o?0:-1;s`);-1===s&&(o=a),-1===s&&r&&(l=r);const c=Xe[e].rangeTitles,d=c&&c[l]&&c[l][2],u=this._getFieldValueFromRangeTitles(l,e);let h;h=d&&!0===d.nowrap?`${u}`:"country"===e?(0,Si.triesTranslateCountrieName)(u):(0,H.triesTranslateScreenerData)(u);const p=on(`
`).appendTo(t);on(`