(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1196],{994861:e=>{e.exports={}},989897:e=>{e.exports={}},165719:e=>{e.exports={}},257240:e=>{e.exports={container:"container-M1mz4quA",pairContainer:"pairContainer-M1mz4quA",logo:"logo-M1mz4quA",hidden:"hidden-M1mz4quA"}},408114:e=>{e.exports={button:"button-jpZsjw5k",withIcon:"withIcon-jpZsjw5k","a11y-text":"a11y-text-jpZsjw5k",buttonIcon:"buttonIcon-jpZsjw5k"}},517723:e=>{e.exports={footer:"footer-dwINHZFL"}},678810:e=>{e.exports={footer:"footer-kcB9V_Ib",shortcuts:"shortcuts-kcB9V_Ib",buttonGroup:"buttonGroup-kcB9V_Ib",button:"button-kcB9V_Ib",withIcon:"withIcon-kcB9V_Ib",icon:"icon-kcB9V_Ib"}},538720:e=>{e.exports={container:"container-u7Ufi_N7",leftSlot:"leftSlot-u7Ufi_N7",rightSlot:"rightSlot-u7Ufi_N7",rightSlotSeparator:"rightSlotSeparator-u7Ufi_N7"}},88148:e=>{e.exports={button:"button-g115eYH4",hover:"hover-g115eYH4",isOpened:"isOpened-g115eYH4",inner:"inner-g115eYH4"}},45195:e=>{e.exports={node:"node-lhJq7vpW"}},654145:e=>{e.exports={removeButton:"removeButton-Tf8QRdrk"}},344390:e=>{e.exports={separator:"separator-eCC6Skn5",innerWrapper:"innerWrapper-eCC6Skn5",selected:"selected-eCC6Skn5",removeButton:"removeButton-eCC6Skn5",small:"small-eCC6Skn5",highlighted:"highlighted-eCC6Skn5",firstItem:"firstItem-eCC6Skn5",label:"label-eCC6Skn5",renaming:"renaming-eCC6Skn5",hasExpand:"hasExpand-eCC6Skn5",renamableInput:"renamableInput-eCC6Skn5",touch:"touch-eCC6Skn5",expandHandle:"expandHandle-eCC6Skn5",hovered:"hovered-eCC6Skn5",disabled:"disabled-eCC6Skn5"}},705665:e=>{e.exports={wrap:"wrap-g71rrBCn",scrollable:"scrollable-g71rrBCn",content:"content-g71rrBCn",empty:"empty-g71rrBCn",centered:"centered-g71rrBCn",emptyIcon:"emptyIcon-g71rrBCn",separatorDragPreview:"separatorDragPreview-g71rrBCn"}},927677:e=>{e.exports={}},448306:e=>{e.exports={}},978636:e=>{e.exports={icon:"icon-BHdu7XsL",long:"long-BHdu7XsL"}},780732:e=>{e.exports={wrapper:"wrapper-bIGHJRgI",description:"description-bIGHJRgI",dot:"dot-bIGHJRgI",marketOpen:"marketOpen-bIGHJRgI",marketPre:"marketPre-bIGHJRgI",marketPost:"marketPost-bIGHJRgI",marketClose:"marketClose-bIGHJRgI",marketHoliday:"marketHoliday-bIGHJRgI"}},154576:e=>{e.exports={symbol:"symbol-RsFlttSS",tileView:"tileView-RsFlttSS",small:"small-RsFlttSS",firstRow:"firstRow-RsFlttSS",selected:"selected-RsFlttSS",removeButton:"removeButton-RsFlttSS",active:"active-RsFlttSS",flag:"flag-RsFlttSS",indicators:"indicators-RsFlttSS",highlighted:"highlighted-RsFlttSS",invalid:"invalid-RsFlttSS",cell:"cell-RsFlttSS",inner:"inner-RsFlttSS",logo:"logo-RsFlttSS",symbolName:"symbolName-RsFlttSS",tileSymbolName:"tileSymbolName-RsFlttSS",warningIcon:"warningIcon-RsFlttSS",notes:"notes-RsFlttSS",positions:"positions-RsFlttSS",symbolNameText:"symbolNameText-RsFlttSS",tileNameContent:"tileNameContent-RsFlttSS",description:"description-RsFlttSS",last:"last-RsFlttSS",change:"change-RsFlttSS",changeInPercents:"changeInPercents-RsFlttSS",volume:"volume-RsFlttSS",prePostMarket:"prePostMarket-RsFlttSS",
prePostMarketNoPrice:"prePostMarketNoPrice-RsFlttSS",tileItem:"tileItem-RsFlttSS",tileChange:"tileChange-RsFlttSS",hidden:"hidden-RsFlttSS",tileChanges:"tileChanges-RsFlttSS",displayContents:"displayContents-RsFlttSS",tileWrap:"tileWrap-RsFlttSS",ellipsis:"ellipsis-RsFlttSS",plus:"plus-RsFlttSS",minus:"minus-RsFlttSS",firstItem:"firstItem-RsFlttSS",lastItem:"lastItem-RsFlttSS",flexCell:"flexCell-RsFlttSS",highlightUp:"highlightUp-RsFlttSS",highlightDown:"highlightDown-RsFlttSS",overlayEnd:"overlayEnd-RsFlttSS",touch:"touch-RsFlttSS"}},899840:e=>{e.exports={wrap:"wrap-evmjQ0gK",columnsMenu:"columnsMenu-evmjQ0gK",checkbox:"checkbox-evmjQ0gK",hovered:"hovered-evmjQ0gK",mobile:"mobile-evmjQ0gK"}},931040:e=>{e.exports={columnHeader:"columnHeader-k67yvGbk",small:"small-k67yvGbk",label:"label-k67yvGbk",sortable:"sortable-k67yvGbk",sortActivated:"sortActivated-k67yvGbk",flagSortable:"flagSortable-k67yvGbk",flagWrap:"flagWrap-k67yvGbk",sortArrow:"sortArrow-k67yvGbk",visible:"visible-k67yvGbk",desc:"desc-k67yvGbk"}},907052:e=>{e.exports={placeholder:"placeholder-qp5yBxtk",wrap:"wrap-qp5yBxtk",handle:"handle-qp5yBxtk",active:"active-qp5yBxtk",separator:"separator-qp5yBxtk"}},42141:e=>{e.exports={wrap:"wrap-Nz1M1_XP",menu:"menu-Nz1M1_XP",tableHeader:"tableHeader-Nz1M1_XP",columnHeader:"columnHeader-Nz1M1_XP",readonly:"readonly-Nz1M1_XP",symbolName:"symbolName-Nz1M1_XP",last:"last-Nz1M1_XP",change:"change-Nz1M1_XP",changeInPercents:"changeInPercents-Nz1M1_XP",volume:"volume-Nz1M1_XP",prePostMarket:"prePostMarket-Nz1M1_XP",prePostMarketNoPrice:"prePostMarketNoPrice-Nz1M1_XP",label:"label-Nz1M1_XP",firstItem:"firstItem-Nz1M1_XP",lastItem:"lastItem-Nz1M1_XP",mobileItem:"mobileItem-Nz1M1_XP",sortingMenu:"sortingMenu-Nz1M1_XP",reset:"reset-Nz1M1_XP"}},173394:e=>{e.exports={item:"item-mcATxxXd"}},660662:e=>{e.exports={item:"item-E2qCgOMz",withIcon:"withIcon-E2qCgOMz"}},684200:e=>{e.exports={container:"container-mQBvegEO",hidden:"hidden-mQBvegEO",watchlistMenu:"watchlistMenu-mQBvegEO",title:"title-mQBvegEO",titleRow:"titleRow-mQBvegEO",flag:"flag-mQBvegEO",headerButton:"headerButton-mQBvegEO",disabled:"disabled-mQBvegEO",mobileMenu:"mobileMenu-mQBvegEO",buttonWrap:"buttonWrap-mQBvegEO",menuWrap:"menuWrap-mQBvegEO",columnsTitle:"columnsTitle-mQBvegEO",small:"small-mQBvegEO",copyLink:"copyLink-mQBvegEO",loaderWrapper:"loaderWrapper-mQBvegEO",loader:"loader-mQBvegEO",switcherMobileLabel:"switcherMobileLabel-mQBvegEO",widgetbarWidgetHeaderLeftSlot:"widgetbarWidgetHeaderLeftSlot-mQBvegEO",widgetbarWidgetHeaderRightSlot:"widgetbarWidgetHeaderRightSlot-mQBvegEO"}},350464:e=>{e.exports={toolbox:"toolbox-MeieydGw"}},119271:e=>{e.exports={toolbox:"toolbox-iUEJczsW"}},359705:e=>{e.exports={item:"item-Pho75f2H",active:"active-Pho75f2H",toolboxCount:"toolboxCount-Pho75f2H",count:"count-Pho75f2H",countVisible:"countVisible-Pho75f2H",title:"title-Pho75f2H",flag:"flag-Pho75f2H",small:"small-Pho75f2H",removeButton:"removeButton-Pho75f2H",toolboxItem:"toolboxItem-Pho75f2H",touch:"touch-Pho75f2H"}},882112:e=>{e.exports={}},92910:e=>{e.exports={
separator:"separator-QjUlCDId",small:"small-QjUlCDId",normal:"normal-QjUlCDId",large:"large-QjUlCDId"}},927306:e=>{e.exports={button:"button-iLKiGOdQ",hovered:"hovered-iLKiGOdQ",disabled:"disabled-iLKiGOdQ",active:"active-iLKiGOdQ",hidden:"hidden-iLKiGOdQ"}},452671:e=>{e.exports={renameInput:"renameInput-sZgG7O9F"}},609970:(e,t,n)=>{"use strict";n.d(t,{AbstractIndicator:()=>r});var s=n(6835),o=n(189904),i=n(382563);n(744471);const l=(0,s.getLogger)("GUI.Blocks.AbstractIndicator");class r{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,i.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)}_init(e){this._el=e.el?e.el:document.createElement("span"),this._el.innerHTML="",this._classMap=e.classMap,this._labelMap=e.labelMap,this._showTooltip=e.showTooltip,this._classSuffix=e.classSuffix,this._symbolName=e.symbol,e.tooltipType&&(this._tooltipType=e.tooltipType),this._quoteSessionGUID=(0,o.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 n=this._getValueFromData(e);(t||n!==this._value)&&(this._value=n)}_renderClasses(){const e=this._el.classList;e.add(this._componentClass,this._componentClass+this._classSuffix);const t=this._classMap[this._value];for(const n in this._classMap){const s=this._classMap[n];s&&(s===t?e.add(s,s+this._classSuffix):e.remove(s,s+this._classSuffix))}!t&&this._value&&l.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}`}}},678100:(e,t,n)=>{
"use strict";n.d(t,{DataModeIndicator:()=>a});var s=n(609838),o=(n(336379),n(994861),n(609970));const i={connecting:"tv-data-mode--connecting",delayed:"tv-data-mode--delayed",delayed_streaming:"tv-data-mode--delayed",endofday:"tv-data-mode--endofday",forbidden:"tv-data-mode--forbidden",realtime:"tv-data-mode--realtime",snapshot:"tv-data-mode--snapshot",loading:"tv-data-mode--loading",replay:"tv-data-mode--replay"};function l(){return{connecting:s.t(null,{context:"data_mode_connecting_letter"},n(52587)),delayed:s.t(null,{context:"data_mode_delayed_letter"},n(469219)),delayed_streaming:s.t(null,{context:"data_mode_delayed_streaming_letter"},n(426211)),endofday:s.t(null,{context:"data_mode_end_of_day_letter"},n(960582)),forbidden:s.t(null,{context:"data_mode_forbidden_letter"},n(957357)),realtime:s.t(null,{context:"data_mode_realtime_letter"},n(647310)),snapshot:s.t(null,{context:"data_mode_snapshot_letter"},n(87817)),loading:"",replay:s.t(null,{context:"data_mode_replay_letter"},n(214485))}}const r={streaming:"realtime"};class a extends o.AbstractIndicator{constructor(e){super(e),this._quoteSessionPrefix="data-mode-indicator",this._componentClass="tv-data-mode",this._init(e)}getLabel(){return!0===this._shortMode?this._shortLabelMap[this._value]||"":super.getLabel()}setMode(e,t){this.update({values:{update_mode:e,update_mode_seconds:t}})}hide(){this._el.classList.add("i-hidden")}show(){this._el.classList.remove("i-hidden")}getTooltipText(){let e="";const t=this.getValue();if(""===t)return e;switch(t){case"delayed":e=s.t(null,void 0,n(728332));break;case"delayed_streaming":e=s.t(null,void 0,n(887267));break;default:e=this._labelMap[t]||e}return["delayed","delayed_streaming"].includes(t)&&(e=e.format({number:String(Math.round(this._modeInterval/60))})),e}_init(e={}){const t=Object.assign({},{classMap:i,classSuffix:"",data:{values:{update_mode:"connecting"}},labelMap:{connecting:s.t(null,void 0,n(413859)),delayed:s.t(null,void 0,n(78211)),delayed_streaming:s.t(null,void 0,n(78211)),endofday:s.t(null,void 0,n(132023)),forbidden:s.t(null,void 0,n(113439)),realtime:s.t(null,void 0,n(906530)),snapshot:s.t(null,void 0,n(502927)),loading:"",replay:s.t(null,void 0,n(688506))},modeInterval:600,short:!1,shortLabelMap:l(),showTooltip:!0,tooltipType:"custom"},e);this._modeInterval=t.modeInterval||600,this._shortLabelMap=t.shortLabelMap||l(),super._init(t),this._render()}_getValueFromData(e){let t;return t=void 0!==e.values&&void 0!==e.values.update_mode?e.values.update_mode:this.getValue(),r[t]||t}_updateValue(e,t){void 0!==e.values&&void 0!==e.values.update_mode_seconds&&(this._modeInterval=e.values.update_mode_seconds),super._updateValue(e,t)}}},496818:(e,t,n)=>{"use strict";n.d(t,{Draggable:()=>r,PointerBackend:()=>a});var s=n(650151),o=n(821205),i=n(601227),l=n(972535);n(165719);class r{constructor(e){var t,n;this._helper=null,this._handleDragStart=e=>{var t;if(null!==this._helper)return;const n=this._source;n.classList.add("ui-draggable-dragging");const[s,i]=[(0,o.outerWidth)(n),(0,o.outerHeight)(n)];this._helper={
startTop:parseFloat(n.style.top)||0,startLeft:parseFloat(n.style.left)||0,nextTop:null,nextLeft:null,raf:null,size:[s,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(n).marginLeft)-parseInt(getComputedStyle(n).marginRight)-s,this._containment.offsetHeight-parseInt(getComputedStyle(this._containment).borderBottomWidth)-parseInt(getComputedStyle(this._containment).paddingBottom)-parseInt(getComputedStyle(n).marginTop)-parseInt(getComputedStyle(n).marginBottom)-i]:"window"===this._containment?[window.scrollX,window.scrollY,window.scrollX+document.documentElement.offsetWidth-s,window.scrollY+document.documentElement.offsetHeight-i]:null},null===(t=this._start)||void 0===t||t.call(this)},this._handleDragMove=e=>{var t;if(null===this._helper)return;const{current:n,initial:s}=e.detail,o=this._source,i=this._helper.nextTop,l=this._helper.nextLeft,r="y"===this._axis||!1===this._axis||0!==n.movementY;if(r){const e=this._helper.startTop;isFinite(e)&&(this._helper.nextTop=n.clientY-s.clientY+e)}const a="x"===this._axis||!1===this._axis||0!==n.movementY;if(a){const e=this._helper.startLeft;isFinite(e)&&(this._helper.nextLeft=n.clientX-s.clientX+e)}if(null!==this._helper.containment){const[e,t,n,s]=this._helper.containment;r&&this._helper.nextTop&&(this._helper.nextTop=Math.min(this._helper.nextTop,s),this._helper.nextTop=Math.max(this._helper.nextTop,t)),a&&this._helper.nextLeft&&(this._helper.nextLeft=Math.min(this._helper.nextLeft,n),this._helper.nextLeft=Math.max(this._helper.nextLeft,e))}null!==this._helper.raf||i===this._helper.nextTop&&l===this._helper.nextLeft||(this._helper.raf=requestAnimationFrame((()=>{null!==this._helper&&(null!==this._helper.nextTop&&(o.style.top=this._helper.nextTop+"px",this._helper.nextTop=null),null!==this._helper.nextLeft&&(o.style.left=this._helper.nextLeft+"px",this._helper.nextLeft=null),this._helper.raf=null)}))),null===(t=this._drag)||void 0===t||t.call(this)},this._handleDragStop=e=>{var t;if(null===this._helper)return;this._source.classList.remove("ui-draggable-dragging"),this._helper=null,null===(t=this._stop)||void 0===t||t.call(this)};const s=this._source=e.source;s.classList.add("ui-draggable");const i=this._handle=null!==(t=e.handle?s.querySelector(e.handle):null)&&void 0!==t?t:s;i.classList.add("ui-draggable-handle"),this._start=e.start,this._stop=e.stop,this._drag=e.drag,this._backend=new a({handle:i,onDragStart:this._handleDragStart,onDragMove:this._handleDragMove,onDragStop:this._handleDragStop}),this._axis=null!==(n=e.axis)&&void 0!==n&&n,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 a{constructor(e){this._initial=null,this._handlePointerDown=e=>{if(null!==this._initial)return;if(!(e.target instanceof Element&&this._handle.contains(e.target)))return;if(this._initial=e,!this._dispatchEvent(this._createEvent("pointer-drag-start",e)))return void(this._initial=null);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._handlePointerUp),t.setPointerCapture(e.pointerId)},this._handlePointerMove=e=>{null!==this._initial&&this._initial.pointerId===e.pointerId&&(e.preventDefault(),this._dispatchEvent(this._createEvent("pointer-drag-move",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),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,t.style.touchAction="none";this._getEventTarget().addEventListener("pointerdown",this._handlePointerDown)}destroy(){this._handle.style.touchAction="";const e=this._getEventTarget();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)}_getEventTarget(){return i.CheckMobile.iOS()||(0,i.isMac)()&&l.touch?window.document.documentElement: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,s.assert)(null!==this._initial),new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:{backend:this,initial:this._initial,current:t}})}}},670086:(e,t,n)=>{"use strict";n.d(t,{FragmentMap:()=>o});var s=n(50959);function o(e){if(e.map){return s.Children.toArray(e.children).map(e.map)}return e.children}},868333:(e,t,n)=>{"use strict";var s;n.d(t,{LogoSize:()=>s,getLogoUrlResolver:()=>l}),function(e){e[e.Medium=0]="Medium",e[e.Large=1]="Large"}(s||(s={}));class o{getSymbolLogoUrl(e){return e}
getCountryFlagUrl(){return""}getCryptoLogoUrl(e){return e}getProviderLogoUrl(e){return e}getSourceLogoUrl(e){return e}}let i;function l(){return i||(i=new o),i}},821205:(e,t,n)=>{"use strict";n.d(t,{contentHeight:()=>o.contentHeight,html:()=>i,outerHeight:()=>o.outerHeight,outerWidth:()=>o.outerWidth,position:()=>r});var s=n(650151),o=n(65160);function i(e,t){return void 0===t||(null===t&&(e.innerHTML=""),"string"!=typeof t&&"number"!=typeof t||(e.innerHTML=String(t))),e}function l(e){if(!e.getClientRects().length)return{top:0,left:0};const t=e.getBoundingClientRect(),n=(0,s.ensureNotNull)(e.ownerDocument.defaultView);return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}}function r(e){const t=getComputedStyle(e);let n,s={top:0,left:0};if("fixed"===t.position)n=e.getBoundingClientRect();else{n=l(e);const t=e.ownerDocument;let o=e.offsetParent||t.documentElement;for(;o&&(o===t.body||o===t.documentElement)&&"static"===getComputedStyle(o).position;)o=o.parentElement;o&&o!==e&&1===o.nodeType&&(s=l(o),s.top+=parseFloat(getComputedStyle(o).borderTopWidth),s.left+=parseFloat(getComputedStyle(o).borderLeftWidth))}return{top:n.top-s.top-parseFloat(t.marginTop),left:n.left-s.left-parseFloat(t.marginLeft)}}},789749:(e,t,n)=>{"use strict";n.d(t,{CachedLogo:()=>h});var s=n(50959),o=n(497754),i=n.n(o),l=(n(449943),n(636080)),r=n(439067),a=n(41192),c=n(741134),d=n(855393),u=n(257240);function h(e){const{className:t,placeholderLetter:n,url1:o,url2:h,size:g="xxxsmall"}=e,f=(0,s.useRef)(null),v=(0,s.useRef)(null),_=(0,s.useRef)(null),b=(0,s.useRef)(null),S=(0,s.useRef)(null),y=(0,s.useRef)(null);return(0,d.useIsomorphicLayoutEffect)((()=>{const e=void 0===o?[]:void 0===h?[o]:[o,h],t=y.current=(n=e,Promise.all(n.map((e=>(0,c.getImage)(`symbol_logo_${e}`,e,p).then((e=>e.cloneNode()))))));var n;t.then((e=>{var n,s,o,i,r,a,c,d,h;if(t===y.current)switch(e.length){case 0:null===(n=_.current)||void 0===n||n.classList.add(u.hidden),null===(s=v.current)||void 0===s||s.classList.add(l.hiddenCircleLogoClass),null===(o=f.current)||void 0===o||o.classList.remove(l.hiddenCircleLogoClass);break;case 1:m(v.current,e[0]),null===(i=_.current)||void 0===i||i.classList.add(u.hidden),null===(r=v.current)||void 0===r||r.classList.remove(l.hiddenCircleLogoClass),null===(a=f.current)||void 0===a||a.classList.add(l.hiddenCircleLogoClass);break;case 2:m(b.current,e[0]),m(S.current,e[1]),null===(c=_.current)||void 0===c||c.classList.remove(u.hidden),null===(d=v.current)||void 0===d||d.classList.add(l.hiddenCircleLogoClass),null===(h=f.current)||void 0===h||h.classList.add(l.hiddenCircleLogoClass)}}))}),[o,h]),s.createElement("span",{className:i()(t,u.container)},s.createElement("span",{ref:_,className:i()(u.pairContainer,u.hidden)},s.createElement("span",{className:(0,a.getBlockStyleClasses)(g)},s.createElement("span",{ref:S,className:i()(u.logo,(0,a.getLogoStyleClasses)(g))}),s.createElement("span",{ref:b,className:i()(u.logo,(0,a.getLogoStyleClasses)(g))}))),s.createElement("span",{ref:v,className:i()(u.logo,l.hiddenCircleLogoClass,(0,
r.getStyleClasses)(g))}),s.createElement("span",{ref:f,className:i()(u.logo,(0,r.getStyleClasses)(g))},s.createElement(l.CircleLogo,{size:g,placeholderLetter:n})))}function m(e,t){e&&(e.innerHTML="",e.appendChild(t))}function p(e){e.crossOrigin="",e.decoding="async"}},366171:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchDialogFooter:()=>r});var s=n(50959),o=n(497754),i=n.n(o),l=n(517723);function r(e){const{className:t,children:n}=e;return s.createElement("div",{className:i()(l.footer,t)},n)}},912015:(e,t,n)=>{"use strict";n.d(t,{isPlatformMobile:()=>o});var s=n(69111);n(156963),n(601227);function o(){return!(0,s.isOnMobileAppPage)("any")&&(window.matchMedia("(min-width: 602px) and (min-height: 445px)").matches,!1)}},856105:(e,t,n)=>{"use strict";n.d(t,{showWatchlistSearchDialog:()=>D});var s=n(50959),o=n(650151),i=n(609838),l=n(972535),r=n(386942),a=n(113060);function c(e){const{targetSymbol:t,store:n,children:o,handleTargetSymbolRemoved:i}=e,[l,c]=(0,s.useState)(null),[u,h]=(0,s.useState)(t),[m,p]=(0,s.useState)(null),g=(0,s.useRef)(null),f=(0,s.useMemo)((()=>({selectedAction:l,setSelectedAction:e=>c(e),isSpreadOrMultipleMode:d,addAfter:u,clearTargetSymbol:v,highlighted:m,highlight:_})),[l,c,u,m,p]);return(0,s.useEffect)((()=>()=>{null!==g.current&&clearTimeout(g.current)}),[]),s.createElement(r.Provider,{store:n},s.createElement(a.SymbolSearchWatchlistContext.Provider,{value:f},o));function v(){h(void 0),i()}function _(e){p(e),null!==g.current&&clearTimeout(g.current),g.current=setTimeout((()=>p(null)),500)}}function d(e,t){const n=!!t.current&&t.current.value.includes(",");return e||n}function u(e,t,n){return o=>s.createElement(c,{...o,store:e,targetSymbol:n,handleTargetSymbolRemoved:t})}var h=n(743717),m=n(691622),p=n(601373),g=n(979359),f=n(607898);function v(e,t){const n=(0,p.getCurrentViewableListByWidgetId)(e,g.WATCHLIST_WIDGET_ID),{fullSymbolName:s}=t;return null===n||void 0===s?{}:{existInWatchlist:n.symbols.includes(s)}}function _(e){return(0,m.bindActionCreators)({addToWatchlist:f.addSymbolsThunk,removeFromWatchlist:f.removeSymbolsThunk,findInWatchlist:f.findInWatchlistThunk},e)}function b(e){return(0,m.bindActionCreators)({addToWatchlist:f.addSymbolsThunk,removeFromWatchlist:f.removeSymbolsThunk,findInWatchlist:f.findInWatchlistThunk},e)}var S=n(688324),y=n(497754),w=n.n(y),C=n(944080),E=n(180185),x=n(366171),k=n(72571),T=n(408114);function I(e){const{icon:t,title:n,className:o,iconClassName:i,a11yLabel:l}=e,r=Boolean(t);return s.createElement("kbd",{className:y(T.button,r&&T.withIcon,o)},r?s.createElement(s.Fragment,null,s.createElement(k.Icon,{"aria-hidden":!0,className:y(T.buttonIcon,i),icon:t}),s.createElement("span",{className:T["a11y-text"]},n)):l?s.createElement(s.Fragment,null,s.createElement("span",{"aria-hidden":!0},n),s.createElement("span",{className:T["a11y-text"]},l)):n)}var L=n(72952),M=n(678810);function N(e){const{searchRef:t,searchSpreads:l}=(0,o.ensureNotNull)((0,s.useContext)(C.SymbolSearchItemsDialogContext)),{isSpreadOrMultipleMode:r}=(0,o.ensureNotNull)((0,
s.useContext)(a.SymbolSearchWatchlistContext)),c=r(l,t);return s.createElement(x.SymbolSearchDialogFooter,{className:M.footer},s.createElement("div",{className:M.shortcuts},c?s.createElement("div",{className:M.buttonGroup},s.createElement(I,{title:"Enter",className:M.button})):s.createElement(s.Fragment,null,s.createElement("div",{className:M.buttonGroup},d(),"+",s.createElement(I,{title:i.t(null,void 0,n(613750)),className:M.button})),i.t(null,void 0,n(96921)),s.createElement("div",{className:M.buttonGroup},d(),"+",s.createElement(I,{title:"Enter",className:M.button})))),s.createElement("div",{className:M.text},i.t(null,void 0,n(291635))));function d(){return E.isMacKeyboard?s.createElement(I,{title:"Shift",icon:L,className:w()(M.button,M.withIcon),iconClassName:M.icon}):s.createElement(I,{title:"Shift",className:M.button})}}n(912015);let A=null;function D(e){const{fullscreen:t,onSearchComplete:a,targetSymbol:c}=e;let d=!1;const m={dialogTitle:i.t(null,void 0,n(57590)),fullscreen:t,onSearchComplete:e=>d?a(e):a(e,c)},p=()=>d=!0;(0,h.initSymbolListService)().then((e=>{const t=A=(0,S.loadNewSymbolSearch)().then((a=>{if(t!==A)return;const{showSymbolSearchItemsDialog:d,Components:h}=a;var g,f;d({...m,wrapper:u(e.store,p,c),dialog:(f=(0,o.ensureNotNull)(h.SymbolSearchWatchlistDialog),(0,r.connect)(null,b)(f)),contentItem:(g=(0,o.ensureNotNull)(h.SymbolSearchWatchlistDialogContentItem),(0,r.connect)(v,_)(g)),placeholder:i.t(null,void 0,n(252298)),footer:l.mobiletouch?void 0:s.createElement(N)})}))}))}},944080:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchItemsDialogContext:()=>s});const s=n(50959).createContext(null)},424076:(e,t,n)=>{"use strict";n.r(t),n.d(t,{watchListSaga:()=>Q});var s=n(336349),o=n(254773),i=n(382280),l=n(650151),r=n(481853),a=n(466052);class c extends r.BrokerService{constructor(e){super(e),this.positionsUpdate=new a.Delegate,this._symbols=[],this._symbolPositions={}}positions(e){return-1!==this._symbols.indexOf(e)?this._symbolPositions[e]:[]}setSymbols(e){const t=Object.keys(this._symbolPositions);this._symbols.forEach((n=>{-1===e.indexOf(n)&&-1!==t.indexOf(n)&&delete this._symbolPositions[n]}));const n=[];e.forEach((e=>{-1===this._symbols.indexOf(e)&&(n.push(e),this._symbolPositions[e]=[])})),this._symbols=e,n.length&&this._requestPositions(n)}stopService(){this._clearPositions();(0,l.ensure)(this.activeBroker()).positionUpdate.unsubscribe(this,this._positionUpdate)}startService(){this._symbols&&this._requestPositions(this._symbols);(0,l.ensure)(this.activeBroker()).positionUpdate.subscribe(this,this._positionUpdate)}_clearPositions(){Object.keys(this._symbolPositions).forEach((e=>{this._symbolPositions[e].length&&(this._symbolPositions[e]=[],this.positionsUpdate.fire(e,[]))}))}_positionUpdate(e){const t=e.symbol;if(-1===this._symbols.indexOf(t))return;const n=this._symbolPositions[t],s=n.reduce(((t,n,s)=>n.id===e.id?s:t),-1),o=0===e.qty;-1!==s&&o?n.splice(s,1):-1!==s||o?n[s]=e:n.push(e),this.positionsUpdate.fire(t,n)}_requestPositions(e){const t=this.activeBroker();t&&e.length&&t.positions().then((t=>{
t.forEach((t=>{-1!==e.indexOf(t.symbol)&&this._positionUpdate(t)}))}))}}var d=n(219769),u=n(601373),h=n(706474);const m=(0,n(6835).getLogger)("Platform.Model.Watchlist");function*p(e){const t=(n=e,(0,o.eventChannel)((e=>{const t={};return n.positionsUpdate.subscribe(t,((t,n)=>{const[s]=n;e((0,d.updatePosition)(t,s?(0,h.toPositionRecord)(s):void 0))})),()=>n.positionsUpdate.unsubscribeAll(t)})));var n;try{for(;;){const e=yield(0,s.take)(t),n=(0,u.positionSelector)(yield(0,s.select)(),e.symbol);(!n||!e.position||e.position&&n.side!==e.position.side)&&(yield(0,s.put)(e))}}finally{t.close()}}function*g(e){const t=yield(0,s.call)(i.waitTradingService),n=new c(t);yield(0,s.fork)(p,n);let o=null;function*l(){const t=(0,u.getCurrentViewableListByWidgetId)(yield(0,s.select)(),e);if(o!==t){const e=null===t?[]:t.symbols;m.logNormal(`Setting watched positions: ${e}`),n.setSymbols(e);const i={};for(const t of e){const[e]=n.positions(t);i[t]=e?(0,h.toPositionRecord)(e):void 0}yield(0,s.put)((0,d.updateBulkPositions)(i)),o=t}}yield(0,s.call)(l),yield(0,s.takeEvery)("*",l)}var f=n(70644),v=n(979359),_=n(530401),b=n(688401),S=n(363940),y=n(697169),w=n(354364);function*C(){yield(0,s.takeLatest)(f.INIT_WIDGET,(function*(e){yield(0,s.call)(x)}))}function*E(){0}function*x(){const e=(0,u.getGlobalActiveID)(yield(0,s.select)());null===e&&(yield(0,s.put)((0,y.asAction)((0,S.getActiveWatchlistThunk)(null)))),yield(0,s.put)((0,d.updateWidget)(v.WATCHLIST_WIDGET_ID,{listId:e}));const t=b.linking.proSymbol.value();t&&(yield(0,s.put)((0,d.updateWidget)(v.WATCHLIST_WIDGET_ID,{scrollToId:{id:t}})))}function*k(){let e=(0,u.getGlobalActiveID)(yield(0,s.select)());for(;;){yield(0,s.take)("*");const t=(0,u.getGlobalActiveID)(yield(0,s.select)());e!==t&&(e=t,yield(0,s.put)((0,d.updateWidget)(v.WATCHLIST_WIDGET_ID,{listId:t,selectedSymbols:[]})))}}function*T(){yield(0,s.takeEvery)(f.UPDATE_WIDGET,I),yield(0,s.takeEvery)(f.UPDATE_WIDGET_OPTIONS,L)}function*I(e){const t=new _.WatchlistWidgetViewState;void 0!==e.widget.columns&&(t.setColumns(e.widget.columns),(0,w.expandWatchlist)()),void 0!==e.widget.tickerType&&((0,w.setInitialTickerType)(e.widget.tickerType),(0,w.expandWatchlist)())}function*L(e){const t=new _.WatchlistWidgetViewState;void 0!==e.options.isLogoEnabled&&(t.setIsLogoEnabled(e.options.isLogoEnabled),(0,w.expandWatchlist)()),void 0!==e.options.isTableView&&(t.setIsTableView(e.options.isTableView),(0,w.expandWatchlist)())}var M=n(244e3),N=n(626800),A=n(607898),D=n(609838),W=n(557883),R=n(973602),P=n(856105),B=n(398171),F=(n(372605),n(833366));class z{constructor(e){this._onMoveSymbolsToList=new a.Delegate,this._onAddSymbolsToList=new a.Delegate,this._onMoveSymbolsToNewList=new a.Delegate,this._onAddSymbolsToNewList=new a.Delegate,this._onCreateSection=new a.Delegate,this._onAddSymbols=new a.Delegate,this._onRemoveSymbol=new a.Delegate,this._addEconomyActions=!1,this._isAddToCompareAllowed=!0,this._isAddNoteAllowed=!0,this._getLists=null,this._lists=[],this._transferActions=[],this._service=null,this._trackEvent=null,
this._chartWidgetCollection=(0,W.chartWidgetCollectionService)(),this._allowExtendTimeScale=Boolean(TVSettings.getBool("showAddSymbolDialog.extendCheckboxState")),this._detailsWebviewController=null,this._colorManager=null,this._getTransferActionByType=e=>()=>{},this._updateList=(e,t)=>{},this._onTransferActionExecute=(e,t)=>{},this._getIsChecked=e=>!1,this._getIndeterminate=e=>!1,this._mapListsToActions=e=>[],this._createFinancialsAction=()=>null,this._createDetailsAction=()=>null;const{...t}=e;this._params=t}setWidgetId(e){this._widgetId=e}setList(e){this._list=e}setSymbol(e){this._symbol=e}setSelectedSymbols(e){this._selectedSymbols=new Set(e)}setShortName(e){this._shortName=e}setListGetter(e){this._getLists=e}setMenuSize(e){this._menuSize=e}setTickerUrl(e){this._tickerUrl=e}setAddEconomyActions(e){this._addEconomyActions=e}setTrackEventCb(e){this._trackEvent=e}setIsAddingSymbolsAllowed(e){this._isAddingSymbolsAllowed=e}setIsAddToCompareAllowed(e){this._isAddToCompareAllowed=e}setIsAddNoteAllowed(e){this._isAddNoteAllowed=e}onMoveSymbolsToList(){return this._onMoveSymbolsToList}onAddSymbolsToList(){return this._onAddSymbolsToList}onMoveSymbolsToNewList(){return this._onMoveSymbolsToNewList}onAddSymbolsToNewList(){return this._onAddSymbolsToNewList}onCreateSection(){return this._onCreateSection}onAddSymbols(){return this._onAddSymbols}onRemoveSymbol(){return this._onRemoveSymbol}getContextMenuActions(){return this._getLibraryContextMenuActions()}_getTVContextMenuActions(){return[]}_getLibraryContextMenuActions(){const e=[],t=this._selectedSymbols.size<=1||!this._selectedSymbols.has(this._symbol);return this._isAddingSymbolsAllowed&&this._list&&e.push(this._createAddSymbolAction()),this._isAddToCompareAllowed&&(e.length>0&&!this._params.isMultipleListAllowed&&e.push(new R.Separator),t?e.push(this._createAddSymbolToCompareAction()):this._selectedSymbols.size<=10&&e.push(this._createAddSelectionToCompareAction())),e}_createUnflagAllSymbolsAction(){return null}_createNewSectionAction(){return null}_createAddSymbolAction(){return new R.Action({actionId:"Watchlist.AddSymbol",options:{label:D.t(null,void 0,n(57590)),icon:F,disabled:!1,onExecute:()=>{(0,P.showWatchlistSearchDialog)({fullscreen:1===this._menuSize,targetSymbol:this._symbol,onSearchComplete:(e,t)=>{runOrSigninWithFeature((()=>{const n=e.map((e=>e.symbol));this._onAddSymbols.fire(n,t)}),{feature:"watchList",source:"add symbol to watchlist"})}})}}})}_createUnflagSymbolAction(){return null}_createFlagSymbolAction(){return[]}_createFlagAllSelectedAction(){return[]}_createUnflagAllSelectedAction(){return null}_createTextNotesAction(){return null}_createAddSymbolToCompareAction(){const e=D.t(null,{replace:{symbol:this._shortName}},n(465687)),t=()=>{var e;null===(e=this._chartWidgetCollection)||void 0===e||e.activeChartWidget.value().addCompareAsOverlay(this._symbol,this._allowExtendTimeScale)};return new R.Action({actionId:"Watchlist.AddSymbolToCompare",options:{label:e,onExecute:t}})}_createAddSelectionToCompareAction(){
const e=D.t(null,void 0,n(695296)),t=async()=>{var e;const t=Array.from(this._selectedSymbols).filter((e=>!(0,B.isSeparatorItem)(e)));for(const n of t)await(null===(e=this._chartWidgetCollection)||void 0===e?void 0:e.activeChartWidget.value().addCompareAsOverlay(n,this._allowExtendTimeScale))};return new R.Action({actionId:"Watchlist.AddSelectedSymbolsToCompare ",options:{label:e,onExecute:t}})}_createNewListAction(e,t){return new R.Action({actionId:"Watchlist.Create",options:{label:appendEllipsis(D.t(null,void 0,n(732340))),onExecute:()=>{t()},icon:1===this._menuSize?addToListIcon:void 0}})}_getCreateNewListActionByType(e){return null}_createSymbolTransferAction(e,t,n){return null}_createRemoveSymbolAction(){return null}_createOpenSymbolAction(){return null}_createEconomyActions(){return[]}_createAddSymbolToAction(){return null}_createAddSelectionToAction(){return null}}var H=n(462056),V=n(156963);function*O(e){const t=(0,o.eventChannel)((t=>{const n=()=>{t((0,A.updateScrollToIdThunk)(e,b.linking.proSymbol.value()))};return b.linking.proSymbol.subscribe(n),()=>b.linking.proSymbol.unsubscribe(n)}));try{for(;;)yield(0,s.put)(yield(0,s.take)(t))}finally{t.close()}}function*U(e){yield(0,s.takeLatest)(f.SELECT_NEXT_AVAILABLE_SYMBOL,(function*(t){const{widgetId:n,currentSymbol:o,keyboardAction:i,cancelSetOnChart:l}=t,r=(0,u.getCurrentViewableListByWidgetId)(yield(0,s.select)(),n);if(null===r)return;const a=r.symbols,c=(0,h.findNextAvailableSymbol)(a.indexOf(o),a,i);c&&(yield(0,s.put)((0,d.updateWidget)(n,{selectedSymbols:[c]})),l||b.linking.setSymbolAndLogInitiator(c,e))}))}function*G(e,t){{let n=null;try{const i=V.enabled("multiple_watchlists"),r=new z({isMultipleListAllowed:i,componentLogName:t}),a=n=(0,o.eventChannel)((e=>{const t={};return r.onAddSymbols().subscribe(t,((t,n)=>e((0,A.addSymbolsThunk)(v.WATCHLIST_WIDGET_ID,t,n)))),r.onCreateSection().subscribe(t,((t,n)=>e((0,A.insertSymbolBeforeThunk)(v.WATCHLIST_WIDGET_ID,t,n)))),r.onCreateSection().subscribe(t,((t,n)=>e((0,A.findInWatchlistThunk)(v.WATCHLIST_WIDGET_ID,n)))),r.onRemoveSymbol().subscribe(t,((t,n,s)=>e((0,A.removeSymbolsThunk)(t,n,s)))),i&&(r.onAddSymbolsToList().subscribe(t,((t,n,s,o)=>e((0,A.addSymbolsToCustomListThunk)(t,n,s,void 0,o)))),r.onMoveSymbolsToList().subscribe(t,((t,n,s)=>e((0,A.moveSymbolsToCustomListThunk)(t,n,s)))),r.onAddSymbolsToNewList().subscribe(t,(t=>e((0,A.userCreateWatchlistThunk)(null,{symbols:t})))),r.onMoveSymbolsToNewList().subscribe(t,((t,n)=>e((0,A.userCreateWatchlistThunk)(null,{symbols:n},t))))),()=>{r.onAddSymbolsToList().unsubscribeAll(t),r.onMoveSymbolsToList().unsubscribeAll(t),r.onAddSymbolsToNewList().unsubscribeAll(t),r.onMoveSymbolsToNewList().unsubscribeAll(t),r.onCreateSection().unsubscribeAll(t),r.onRemoveSymbol().unsubscribeAll(t)}}));yield(0,s.takeEvery)(a,(function*(e){yield(0,s.put)(e)}));const c=yield(0,s.takeLatest)(f.SHOW_CONTEXT_MENU,(function*(t){const{symbol:n,position:o,widgetId:i,size:a}=t;if(e!==i)return;const{isDeletable:c}=(0,u.widgetOptionsSelector)(yield(0,s.select)(),i),d=(0,
u.selectedSymbolsSelector)(yield(0,s.select)(),i),h=(0,l.ensureNotNull)((0,u.widgetSelector)(yield(0,s.select)(),i).listId);let m;m=(0,u.getCustomListById)(yield(0,s.select)(),h);const p=yield(0,s.fork)((function*(){return yield(0,s.put)((0,y.asAction)((0,S.getCustomWatchlistsThunk)(null))),yield(0,s.take)(M.setup),(0,u.getCustomLists)(yield(0,s.select)())})),g=p.toPromise();r.setWidgetId(i),r.setListGetter((()=>g)),r.setList((0,l.ensureNotNull)(m)),r.setSelectedSymbols(d),r.setSymbol(n),r.setShortName((0,N.safeShortName)(n)),r.setMenuSize(a),r.setIsAddingSymbolsAllowed(c),yield(0,s.call)(H.ContextMenuManager.showMenu,r.getContextMenuActions(),o,{mode:1===a?"drawer":void 0,returnFocus:!0,takeFocus:!0},void 0,(()=>{r.setListGetter(null),p.cancel()}))}));yield(0,s.join)(c)}finally{null!==n&&n.close()}}}function*q(e){yield(0,s.takeLatest)(f.SELECT_ALL_SYMBOLS,(function*(t){const{widgetId:n}=t;if(e!==n)return;const o=(0,u.getCurrentViewableListByWidgetId)(yield(0,s.select)(),n);null!==o&&(yield(0,s.put)((0,d.updateWidget)(n,{selectedSymbols:o.symbols})))}))}var $=n(601227);function*Q(e){yield(0,s.fork)(C),yield(0,s.fork)(k),yield(0,s.fork)(q,v.WATCHLIST_WIDGET_ID),yield(0,s.fork)(G,v.WATCHLIST_WIDGET_ID,e),yield(0,s.fork)(O,v.WATCHLIST_WIDGET_ID),yield(0,s.fork)(U,e),(0,$.onWidget)()||(yield(0,s.fork)(g,v.WATCHLIST_WIDGET_ID),yield(0,s.fork)(E)),yield(0,s.fork)(T)}},25091:(e,t,n)=>{"use strict";n.r(t),n.d(t,{WatchListApi:()=>m});var s=n(650151),o=n(740662),i=n(706474),l=n(189904),r=n(6835),a=n(601373),c=n(363940),d=n(968962);const u=(0,r.getLogger)("WatchList.Api");function h(e){return{id:e.id,symbols:e.symbols,title:e.name}}class m{constructor(e){this._store=e}defaultList(){return(0,d.defaultWatchlistSymbols)()}getList(e){const t=this._store.getState();if(!e){const e=this.getActiveListId();return e?(0,s.ensureNotNull)((0,a.getCustomListById)(t,e)).symbols:null}const n=(0,a.getCustomListById)(t,e);return null===n?null:n.symbols}getActiveListId(){return(0,a.getGlobalActiveID)(this._store.getState())}setActiveList(e){this._store.dispatch((0,c.setActiveWatchlistThunk)(null,e))}getAllLists(){const e=(0,a.getCustomLists)(this._store.getState()),t={};return e.forEach((e=>{t[e.id]=h(e)})),0===Object.keys(t).length?null:t}setList(e){const t=this.getActiveListId();t&&(u.logWarn("`setList` is deprecated. Use `updateList` instead"),this.updateList(t,e))}updateList(e,t){const n=(0,a.getCustomListById)(this._store.getState(),e);null!==n&&this._store.dispatch((0,c.replaceWatchlistSymbolsThunk)(null,n,t))}renameList(e,t){const n=(0,a.getCustomListById)(this._store.getState(),e);null!==n&&this._store.dispatch((0,c.renameWatchlistThunk)(null,n,t))}createList(e,t=[]){if(void 0===e)return null;let n=(0,l.randomHash)();for(;null!==this.getList(n);)n=(0,l.randomHash)();const s=(0,i.createWatchList)(n,e,t);return this._store.dispatch((0,c.createWatchlistThunk)(s)),h(s)}saveList(e){const{id:t,title:n,symbols:s}=e,o=(0,a.getCustomListsMap)(this._store.getState()),l=(0,i.createWatchList)(t,n,s);return void 0!==o[t]?(this._store.dispatch((0,
c.putCustomWatchlistsThunk)(null,l)),!1):(this._store.dispatch((0,c.createWatchlistThunk)(l)),!0)}deleteList(e){const t=(0,a.getCustomListById)(this._store.getState(),e);null!==t&&this._store.dispatch((0,c.removeWatchlistThunk)(null,t))}onListChanged(){return o.onListChanged}onActiveListChanged(){return o.onActiveListChanged}onListAdded(){return o.onListAdded}onListRemoved(){return o.onListRemoved}onListRenamed(){return o.onListRenamed}}},856067:(e,t,n)=>{"use strict";n.r(t),n.d(t,{WatchList:()=>Mt});var s=n(386942),o=n(691622),i=n(50959),l=n(650151),r=n(609838),a=n(354364),c=n(180185),d=n(497754),u=n.n(d),h=n(132455),m=n(102478),p=n(28466),g=n(626800),f=n(45195);function v(e){const{id:t,className:n}=e;return i.createElement("div",{className:u()(f.node,n)},(0,g.safeShortName)(t))}var _=n(317447),b=n(219769),S=n(535842),y=n(37914),w=n(744471),C=n(972535),E=n(688401),x=n(104728),k=n(706474),T=n(311757),I=n(780732);const L={market:"marketOpen",pre_market:"marketPre",post_market:"marketPost",out_of_session:"marketClose",holiday:"marketHoliday"},M={market:r.t(null,void 0,n(383949)),pre_market:r.t(null,void 0,n(943608)),post_market:r.t(null,void 0,n(556604)),out_of_session:r.t(null,void 0,n(895814)),holiday:r.t(null,void 0,n(988958))},N={delayed_streaming:r.t(null,void 0,n(78211)),pulsed:r.t(null,void 0,n(78211)),streaming:r.t(null,void 0,n(906530)),endofday:r.t(null,void 0,n(132023))};function A(e){const t=M[e];return`<span class="${I[L[e]]}">${(0,T.htmlEscape)(t)}</span>`}var D=n(398171),W=n(800296),R=n(607898),P=n(654145),B=n(333765);const F=(0,s.connect)(null,(function(e){return(0,o.bindActionCreators)({removeSymbol:R.removeSymbolsThunk},e)}))((function(e){return i.createElement(W.ListItemButton,{onClick:function(t){const{widgetId:n,removeSymbol:s,symbolName:o}=e;t.preventDefault(),s(n,o)},className:u()(e.className,P.removeButton),icon:B})}));var z=n(192607);function H(e){if(3===e.nodeType&&e.data.trim())return e;if(e.childNodes)for(let t=e.childNodes.length;t--;){const n=H(e.childNodes[t]);if(n)return n}return null}function V(e,t){const n=t.parentNode;if(!n)return;const s=t.nextSibling;s?n.insertBefore(e,s):n.appendChild(e)}function O(e){const t=H(e);if(t){const e=t.data;if(t.parentNode&&t.parentNode.tagName&&"sup"===t.parentNode.tagName.toLowerCase())return;const n=/^([^]*)(\S)(\s*)$/.exec(e);if(n){t.data=n[1];const e=document.createElement("sup");e.textContent=n[2],V(e,t),n[3]&&V(document.createTextNode(n[3]),e)}}}var U=n(154576);class G extends i.PureComponent{constructor(){super(...arguments),this._ref=null,this._highlightTimeout=null,this._context=null,this._values=null,this._handleRef=e=>{this._ref=e}}componentWillUnmount(){this._highlightTimeout&&clearTimeout(this._highlightTimeout)}render(){const{isHidden:e,className:t,ellipsis:n}=this.props;return i.createElement("span",{className:d(t,U.cell,U.last,e&&U.hidden)},i.createElement("span",{className:d(U.inner,n&&U.ellipsis),ref:this._handleRef}))}update(e){const{values:t}=e,n=this._values;if(void 0===t.last_price||null===this._ref)return
;const s=null===n||n.pricescale!==t.pricescale||n.minmov!==t.minmov||n.fractional!==t.fractional||n.minmove2!==t.minmove2,o=null===n||n.last_price!==t.last_price;if(!s&&!o)return;this._values={...t};const{format:i,pricescale:l=100,minmov:r=1,fractional:a,minmove2:c,variable_tick_size:d}=t,u=new z.LastChangeFormatter({format:i,pricescale:l,minmov:r,fractional:a,minmove2:c,variableMinTick:d}),h=t.last_price,m=u.format(t.last_price),p=null!==this._context?this._context.currentText:null,g=null!==this._context?this._context.currentValue:null,f=this._context={formatter:u,currentValue:h,currentText:m,previousValue:g,previousText:p};this._ref.innerText=m,this._processHighlight(this._ref,f);u.hasForexAdditionalPrecision()&&O(this._ref)}_processNumericDiff(e){const{previousValue:t,previousText:n,currentValue:s,currentText:o,formatter:i}=e;if(null===t||null===n||null===this._ref)return;const l=d(s>t&&U.plus,s<t&&U.minus),r=Math.min(n.length,o.length);let a=0;for(;a<r&&n.charAt(a)===o.charAt(a);)a++;const c=o.slice(0,a),u=o.slice(a);u.length&&l?this._ref.innerHTML=c+`<span class="${l}">${u}</span>`:this._ref.innerText=o;i.hasForexAdditionalPrecision()&&O(this._ref)}_processHighlight(e,t){const{previousValue:n,currentValue:s}=t;null!==n&&n!==s&&(null!==this._highlightTimeout&&(clearTimeout(this._highlightTimeout),this._highlightTimeout=null),e.classList.toggle(U.highlightUp,s>n),e.classList.toggle(U.highlightDown,s<n),this._highlightTimeout=setTimeout((()=>{e.classList.remove(U.highlightUp,U.highlightDown),this._processNumericDiff(t)}),500))}}var q=n(150335);const $=new(n(424030).NumericFormatter);class Q extends i.PureComponent{constructor(){super(...arguments),this._ref=null,this._handleRef=e=>{this._ref=e}}render(){const{isHidden:e,className:t}=this.props;return i.createElement("span",{className:d(t,U.cell,U.change,e&&U.hidden)},i.createElement("span",{className:U.inner,ref:this._handleRef}))}update(e){const{values:t}=e,n=t.change;if(!(0,q.isNumber)(n)||null===this._ref)return;const{last_price:s,format:o,pricescale:i=100,minmov:r=1,fractional:a,minmove2:c,type:d,variable_tick_size:u}=t;this._ref.innerText="spread"!==d||a?new z.LastChangeFormatter({format:o,pricescale:i,minmov:r,fractional:a,minmove2:c,variableMinTick:u}).formatChange((0,l.ensureDefined)(s),(0,l.ensureDefined)(s)-n):$.format(n),0!==n&&(this._ref.classList.remove(U.plus,U.minus),this._ref.classList.add(n>0?U.plus:U.minus))}}const j=new(n(637927).PercentageFormatter);class X extends i.PureComponent{constructor(){super(...arguments),this._ref=null,this._handleRef=e=>{this._ref=e}}render(){const{isHidden:e,className:t}=this.props;return i.createElement("span",{className:d(t,U.cell,U.changeInPercents,e&&U.hidden)},i.createElement("span",{className:U.inner,ref:this._handleRef}))}update(e){const{values:t}=e,n=t.change_percent;(0,q.isNumber)(n)&&null!==this._ref&&(this._ref.innerText=j.format(n),0!==n&&(this._ref.classList.remove(U.plus,U.minus),this._ref.classList.add(n>0?U.plus:U.minus)))}}const K=new(n(357407).VolumeFormatter);class Y extends i.PureComponent{
constructor(){super(...arguments),this._ref=null,this._handleRef=e=>{this._ref=e}}render(){const{isHidden:e,className:t}=this.props;return i.createElement("span",{className:d(t,U.cell,U.volume,e&&U.hidden)},i.createElement("span",{className:U.inner,ref:this._handleRef}))}update(e){const{values:t}=e,n=t.volume;void 0===n||null===this._ref||Math.abs(n)>=1e100||(this._ref.innerText=K.format(n),this._ref.setAttribute("data-value",`${n}`))}}var Z=n(678100),J=(n(989897),n(609970));const ee={invalid:"tv-market-status--invalid",market:"tv-market-status--market",out_of_session:"tv-market-status--out-of-session",post_market:"tv-market-status--post-market",pre_market:"tv-market-status--pre-market",loading:"tv-market-status--loading",holiday:"tv-market-status--holiday",replay:"tv-market-status--replay"};class te extends J.AbstractIndicator{constructor(e){super(e),this._quoteSessionPrefix="market-status-indicator",this._componentClass="tv-market-status",this._extraTitle="",this._init(e)}setStatus(e,t){const n={values:{current_session:e}};this.update(n,t)}getTooltipText(){let e=super.getTooltipText();return""===e||""!==this._extraTitle&&(e=`${e}, ${this._extraTitle}`),e}setExtraTitle(e){this._extraTitle=e}reset(){this._clearClasses(),this._labelEl.textContent="",this._extraTitle="",this._el.setAttribute("title",""),this._value=""}enableShortMode(e=!0){void 0!==this._labelEl&&this._labelEl.classList.add("i-hidden"),super.enableShortMode()}disableShortMode(){void 0!==this._labelEl&&this._labelEl.classList.remove("i-hidden"),super.disableShortMode()}_renderLabel(){this._labelEl.textContent=this.getLabel()}_getValueFromData(e){return void 0!==e.values&&void 0!==e.values.current_session?e.values.current_session:this.getValue()}_render(){this._renderLabelElement(),this._renderDotElement(),super._render()}_init(e){const t=Object.assign({},function(){const e={invalid:r.t(null,void 0,n(814177)),market:r.t(null,void 0,n(486533)),out_of_session:r.t(null,void 0,n(548979)),post_market:r.t(null,void 0,n(566812)),pre_market:r.t(null,void 0,n(845198)),loading:r.t(null,void 0,n(25911)),holiday:r.t(null,void 0,n(988958)),replay:""};return{classMap:ee,classSuffix:"",data:{},extraTitle:"",labelMap:e,short:!1,showTooltip:!0,tooltipType:"custom"}}(),e);super._init(t),this.setExtraTitle(t.extraTitle),this._render()}_renderLabelElement(){void 0===this._labelEl&&(this._labelEl=document.createElement("span"),this._labelEl.classList.add(`${this._componentClass}__label`),this._labelEl.classList.add(`${this._componentClass}__label${this._classSuffix}`),this._el.appendChild(this._labelEl))}_renderDotElement(){void 0===this._dotEl&&(this._dotEl=document.createElement("span"),this._dotEl.classList.add(`${this._componentClass}__dot`),this._dotEl.classList.add(`${this._componentClass}__dot${this._classSuffix}`),this._el.appendChild(this._dotEl))}}var ne=n(72571),se=n(563140),oe=n(531340),ie=n(978636);function le(e,t){const s=y.quoteSessionAdapters.get(e).getLastSymbolData(t.symbol);if(!s)return""
;const o=s.values,{format:i,pricescale:l=100,minmov:a=1,fractional:c,minmove2:d,variable_tick_size:u}=o,h=new z.LastChangeFormatter({format:i,pricescale:l,minmov:a,fractional:c,minmove2:d,variableMinTick:u});return`${1===t.side?r.t(null,void 0,n(273064)):r.t(null,void 0,n(777851))} ${Math.abs(t.qty)} @ ${h.format(t.avgPrice)}`}var re=n(601373);const ae=(0,s.connect)((function(e,t){return{position:(0,re.positionSelector)(e,t.symbolName)}}))((function(e){const{position:t,className:n,widgetId:s}=e;if(void 0===t)return null;const o=1===t.side;return i.createElement(ne.Icon,{className:d("apply-common-tooltip",ie.icon,o&&ie.long,n),icon:o?se:oe,title:le(s,t)})}));var ce=n(662654),de=n(789749);n(448306),n(927677);const ue=(e,t)=>({classSuffix:"--for-symbol-list",el:e,short:!0,symbol:t,manualUpdate:!0,tooltipType:"custom"});class he extends i.PureComponent{constructor(){super(...arguments),this._nameRef=null,this._descRef=null,this._marketStatusIndicator=null,this._dataModeIndicator=null,this._description=null,this._handleNameContentSet=()=>{if(null===this._nameRef)return;const{tickerType:e,symbolName:t,isTileView:n}=this.props,s={[ce.TickerType.Description]:()=>this._description||(0,g.safeShortName)(t),[ce.TickerType.Ticker]:()=>(0,g.safeShortName)(t)};this._nameRef.textContent=s[n?ce.TickerType.Ticker:e]()},this._handleDescContentSet=()=>{null!==this._descRef&&this.props.isTileView&&(this._descRef.textContent=this._description)},this._handleNameRef=e=>{this._nameRef=e},this._handleDescRef=e=>{this._descRef=e},this._handleMarketStatusRef=e=>{const{symbolName:t}=this.props;null!==e&&(this._marketStatusIndicator=new te(ue(e,t)))},this._handleDataModeRef=e=>{const{symbolName:t}=this.props;null!==e&&(this._dataModeIndicator=new Z.DataModeIndicator(ue(e,t)))}}componentDidMount(){this._handleNameContentSet(),this._handleDescContentSet()}componentDidUpdate(e){null!==this._nameRef&&(e.tickerType===this.props.tickerType||this.props.isTileView||this._handleNameContentSet())}render(){const{symbolName:e,className:t,logoUrls:n,isTileView:s}=this.props,o=s?"xsmall":"xxxsmall";return i.createElement("div",{className:u()(t,U.symbolName,s&&U.tileSymbolName)},i.createElement("span",{className:u()(U.cell,U.flexCell)},n&&i.createElement(de.CachedLogo,{key:o,className:U.logo,url1:n[0],url2:n[1],placeholderLetter:(0,g.safeShortName)(e)[0],size:o}),i.createElement("div",{className:u()(U.displayContents,s&&U.tileWrap)},i.createElement("div",{className:u()(U.flexCell,s&&U.tileNameContent)},this._renderContent()),s&&i.createElement("div",{className:U.description,ref:this._handleDescRef},this._description))))}update(e){if(null===this._nameRef)return;const{values:t}=e;this._marketStatusIndicator&&this._marketStatusIndicator.update({values:t}),this._dataModeIndicator&&("economic"===t.type&&"endofday"===t.update_mode?this._dataModeIndicator.hide():(this._dataModeIndicator.show(),this._dataModeIndicator.update({values:t}))),this._description=(0,x.getTranslatedSymbolDescription)(t),this._handleNameContentSet(),this._handleDescContentSet()}
_renderContent(){const{isInvalid:e,symbolName:t,shouldDisplayPositions:n,widgetId:s,warningText:o}=this.props;return i.createElement(i.Fragment,null,i.createElement("span",{className:u()(U.inner,U.symbolNameText),ref:this._handleNameRef}),!e&&i.createElement(i.Fragment,null,!1,!o&&i.createElement(i.Fragment,null,i.createElement("span",{ref:this._handleDataModeRef}),i.createElement("span",{ref:this._handleMarketStatusRef}),n&&i.createElement(ae,{widgetId:s,className:U.positions,symbolName:t}))),!1)}}var me=n(601227),pe=n(670086);class ge extends i.PureComponent{constructor(e){super(e),this._injectListClasses=(e,t)=>{if(!i.isValidElement(e))return e;const n=["short_name","last_price","change","change_percent","volume","rchp"].map(((e,t)=>[t,e])).filter((([e,t])=>this.props.columns.includes(t))),[s]=n[0];t===s&&(e=i.cloneElement(e,{className:d(e.props.className,U.firstItem)}));const[o]=n[n.length-1];return t===o&&(e=i.cloneElement(e,{className:d(e.props.className,U.lastItem)})),e},this._lastPrice=i.createRef(),this._change=i.createRef(),this._changeInPercents=i.createRef(),this._volume=i.createRef(),this._prePostMarket=i.createRef(),this._symbolName=i.createRef()}render(){const{id:e,columns:t,tickerType:n,widgetId:s,isDeletable:o,shouldDisplayPositions:l,hasLogo:r,logoUrls:a,isInvalid:c,isActive:u,warningText:h}=this.props,{size:m}=this.context;return i.createElement(i.Fragment,null,i.createElement("div",{className:d(U.indicators,u&&U.active)},!(0,me.onWidget)()&&!1),i.createElement(pe.FragmentMap,{map:this._injectListClasses},i.createElement(he,{symbolName:e,shouldDisplayPositions:l,ref:this._symbolName,warningText:h,isInvalid:c,widgetId:s,tickerType:n,logoUrls:r?a:void 0,isTileView:!1}),i.createElement(G,{ref:this._lastPrice,isHidden:!t.includes("last_price")}),i.createElement(Q,{ref:this._change,isHidden:!t.includes("change")}),i.createElement(X,{ref:this._changeInPercents,isHidden:!t.includes("change_percent")}),i.createElement(Y,{ref:this._volume,isHidden:!t.includes("volume")}),!1),o&&i.createElement("div",{className:U.overlayEnd},i.createElement(F,{className:U.removeButton,widgetId:s,symbolName:e})))}update(e){null!==this._symbolName.current&&this._symbolName.current.update(e),null!==this._lastPrice.current&&this._lastPrice.current.update(e),null!==this._change.current&&this._change.current.update(e),null!==this._changeInPercents.current&&this._changeInPercents.current.update(e),null!==this._volume.current&&this._volume.current.update(e)}}ge.contextType=S.SizeContext;var fe=n(156963),ve=n(118737),_e=n(868333);function be(e){if(!e)return!1;const{complete:t,values:n}=e,{"currency-logoid":s,"base-currency-logoid":o,logoid:i}=n;return Boolean(i||s&&o||t)}function Se(e){const{values:t}=e;return(0,ve.removeUsdFromCryptoPairLogos)((0,ve.resolveLogoUrls)(t,_e.LogoSize.Medium))}const ye=fe.enabled("show_symbol_logos");class we extends i.PureComponent{constructor(e){super(e),this._observer=null,this._ref=null,this._raf=null,this._onData=e=>{this._data=e,this._resolvedName=e.values.pro_name,
null===this._raf&&(this._raf=requestAnimationFrame((()=>{const{id:e}=this.props,{logoUrls:t}=this.state,n=(0,l.ensureDefined)(this._data),{symbolname:s,status:o,errmsg:i}=n;if(e===s){if(this._ref&&this._ref.setAttribute("data-status","resolved"),ye&&0===t.length&&be(n)){const e=Se(n);e.length>0&&this.setState({logoUrls:e})}"error"===o&&i&&i.toLowerCase().includes("continuous limit")?this.setState({warningText:null}):"error"===o?this.setState({isInvalid:!0}):"sf_data"===o?this.setState({warningText:null}):(null!==this._symbolItem.current&&this._symbolItem.current.update(n),null!==this._symbolTileItem.current&&this._symbolTileItem.current.update(n))}this._handleCustomTooltipSetter("error"===o,n),this._raf=null})))},this._handleCustomTooltipSetter=(e,t)=>{if(null===this._ref)return;if(e)return void this._ref.setAttribute("data-tooltip","");const n=function(e){const{description:t,exchange:n,updateMode:s,marketStatus:o}=e,i=t?`<div class="${I.description}">${(0,T.htmlEscape)(t)}</div>`:null,l=`<span class="${I.dot}">•</span>`,r=[n?`<span>${(0,T.htmlEscape)(n)}</span>`:null,s?`<span>${(0,T.htmlEscape)(N[s])}</span>`:null,o?A(o):null].filter((e=>null!==e)).join(l),a=i?[i,r].join(""):r;return`<div class="${I.wrapper}">${a}</div>`}(this._getSymbolTooltipData(t));n&&this._ref.getAttribute("data-tooltip")!==n&&this._ref.setAttribute("data-tooltip",n)},this._handleRef=e=>{if(null!==e){const t=.25;this._observer=new IntersectionObserver((e=>{e[e.length-1].intersectionRatio<t?this._onInvisible():this._onVisible()}),{threshold:[0,.25,.5,.75,1],root:null,rootMargin:"0px"}),this._observer.observe(e)}this._ref=e},this._handleContextMenu=e=>{e.preventDefault(),this._showContextMenu(e,0)},this._handleSmallContextMenu=e=>{this._showContextMenu(e,1)},this._showContextMenu=(e,t)=>{e.persist();const{showContextMenu:n,id:s,widgetId:o}=this.props;n(o,s,e,t)},this._onSymbolChanged=e=>{const t=this._computeActive(e);t!==this.state.isActive&&this.setState({isActive:t}),(0,w.hide)()},this._onAliasesChange=e=>{if(!e||!e.length||this.state.isActive)return;const t=e.some((e=>this._computeActive(e)));t&&this.setState({isActive:t})},this._symbolItem=i.createRef(),this._symbolTileItem=i.createRef();const t=this._getLastSymbolData();this._resolvedName=null==t?void 0:t.values.pro_name;const n=ye&&be(t)?Se((0,l.ensureDefined)(t)):[];this.state={isInvalid:!1,warningText:null,isActive:this._computeActive(E.linking.proSymbol.value()),logoUrls:n}}componentDidMount(){const{id:e,widgetId:t}=this.props;null!==this._ref&&this._ref.setAttribute("data-status","pending");const n=y.quoteSessionAdapters.get(t),s=this._getLastSymbolData();s&&this._onData(s),n.addSymbolDataHandler(e,this._onData),E.linking.proSymbol.subscribe(this._onSymbolChanged),E.linking.symbolNamesList.subscribe(this._onAliasesChange,{callWithLast:!0})}componentDidUpdate(e){this._data&&e.typeView!==this.props.typeView&&this._onData(this._data)}componentWillUnmount(){const{id:e,widgetId:t}=this.props;y.quoteSessionAdapters.get(t).removeSymbolDataHandler(e),
this._observer&&this._observer.disconnect(),E.linking.proSymbol.unsubscribe(this._onSymbolChanged),E.linking.symbolNamesList.unsubscribe(this._onAliasesChange),null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null)}render(){const{id:e,columns:t,tickerType:n,isSelected:s,isHighlighted:o,widgetId:l,isDeletable:r,enableContextMenu:a,shouldDisplayPositions:c,isContainedByMultiSelection:u,isFirstListItem:h,isLogoEnabled:m,typeView:p}=this.props,{isInvalid:f,warningText:v,isActive:_,logoUrls:b}=this.state,{size:S}=this.context,y=_?u:s,w=(0,D.isSeparatorItem)(e)||f,E="tile"===p,x={widgetId:l,isDeletable:r,shouldDisplayPositions:c,hasLogo:(E||m)&&ye,logoUrls:b,isInvalid:f,isActive:_,warningText:v,id:e};return i.createElement("div",{className:d(U.symbol,E&&U.tileView,1===S&&U.small,y&&U.selected,_&&U.active,C.mobiletouch&&U.touch,o&&U.highlighted,w&&U.invalid,h&&U.firstRow,"common-tooltip-html","common-tooltip-vertical","apply-common-tooltip"),ref:this._handleRef,"data-tooltip-delay":1500,"data-symbol-full":e,"data-symbol-short":(0,g.safeShortName)(e),"data-active":_,"data-selected":s,onClick:1===S&&a?this._handleSmallContextMenu:void 0,onContextMenu:0===S&&a?this._handleContextMenu:void 0},i.createElement(ge,{...x,ref:this._symbolItem,columns:t,tickerType:n}))}_onVisible(){const{id:e,widgetId:t}=this.props;y.quoteSessionAdapters.get(t).addFastSymbol(e)}_onInvisible(){const{id:e,widgetId:t}=this.props;y.quoteSessionAdapters.get(t).removeFastSymbol(e)}_getSymbolTooltipData(e){const{values:t}=e;let n;n=t.exchange||null;const s="economic"===t.type&&"endofday"===t.update_mode?null:t.update_mode||null;return{description:(0,x.getTranslatedSymbolDescription)(t)||null,exchange:n,updateMode:s,marketStatus:t.current_session||null}}_computeActive(e){if(void 0===e)return!1;let t=(0,k.compareSymbols)(e,this.props.id);return!t&&this._resolvedName&&(t=(0,k.compareSymbols)(e,this._resolvedName)),t}_getLastSymbolData(){const{id:e,widgetId:t}=this.props;return y.quoteSessionAdapters.get(t).getLastSymbolData(e)}}we.contextType=S.SizeContext;const Ce=(0,s.connect)((function(){const e=(0,re.makeGetIsContainedByMultiSelection)();return(t,n)=>{const{isDeletable:s,enableContextMenu:o,isLogoEnabled:i}=(0,re.widgetOptionsSelector)(t,n.widgetId),l=(0,re.highlightedSymbolsSelector)(t,n.widgetId);return{isDeletable:s,enableContextMenu:o,isContainedByMultiSelection:e(t,{widgetId:n.widgetId,symbol:n.id}),isLogoEnabled:i,shouldDisplayPositions:(0,re.shouldDisplayPositionsSelector)(t,n.widgetId),columns:(0,re.columnsSelector)(t,n.widgetId),tickerType:(0,re.tickerTypeSelector)(t,n.widgetId),isHighlighted:!!l&&l.includes(n.id)}}}),(function(e){return(0,o.bindActionCreators)({showContextMenu:b.showContextMenu},e)}))(we);var Ee=n(518799),xe=n(32133),ke=n(302946),Te=n(899840);const Ie=[{column:"last_price",label:r.t(null,void 0,n(915107))},{column:"change",label:r.t(null,void 0,n(349329))},{column:"change_percent",label:r.t(null,void 0,n(680027))},{column:"volume",label:r.t(null,void 0,n(101111))}];function Le(e){
const{columns:t,updateWidget:n,widgetId:s}=e,{size:o}=(0,i.useContext)(S.SizeContext),l=1===o;return i.createElement(i.Fragment,null,Ie.map((e=>{const{column:n,label:s}=e;return i.createElement(ke.Checkbox,{key:n,className:u()(Te.checkbox,l&&Te.mobile),name:n,label:s,checked:t.includes(n),onChange:r(n)})})));function r(e){return()=>{const o=[...t];o.includes(e)?o.splice(o.indexOf(e),1):o.push(e),n(s,{columns:o})}}}var Me=n(715336);const Ne=(0,s.connect)((function(e,t){return{columns:(0,re.columnsSelector)(e,t.widgetId)}}),(function(e){return(0,o.bindActionCreators)({updateWidget:b.updateWidget},e)}))((function(e){const{columns:t,updateWidget:n,className:s,widgetId:o}=e,{size:l}=(0,i.useContext)(S.SizeContext),r=1===l;return i.createElement("div",{className:u()(Te.wrap,s)},i.createElement(Ee.ToolWidgetMenu,{content:i.createElement(ne.Icon,{className:Te.icon,icon:Me}),arrow:!1,className:Te.columnsMenu,onClose:function(){(0,xe.trackEvent)("Watchlist","Change columns",t.join(", "))},isDrawer:r,drawerPosition:"Bottom"},i.createElement(Le,{widgetId:o,columns:t,updateWidget:n})))}));var Ae=n(522224);const De=i.createContext({});var We=n(710263),Re=n(496818),Pe=n(907052);const Be=(0,We.isRtl)();function Fe(e){const{column:t}=e,{columnResizeDelegate:n,columnResizeStopDelegate:s}=(0,i.useContext)(De),o=(0,i.useRef)(null);return(0,i.useEffect)((()=>{const e=new Re.PointerBackend({handle:(0,l.ensureNotNull)(o.current),onDragStart:()=>{var e;null===(e=o.current)||void 0===e||e.classList.add(Pe.active)},onDragMove:e=>{const{current:s,initial:o}=e.detail,i=s.pageX-o.pageX;null==n||n.fire(t,i*(Be?1:-1))},onDragStop:()=>{var e;null===(e=o.current)||void 0===e||e.classList.remove(Pe.active),null==s||s.fire()}});return()=>{e.destroy()}}),[t,n,s]),i.createElement("div",{className:Pe.placeholder},i.createElement("div",{ref:o,className:Pe.wrap},i.createElement("div",{className:Pe.handle}),i.createElement("div",{className:Pe.separator})))}var ze=n(913042),He=n(975361),Ve=n(119850),Oe=n(931040);const Ue=(0,s.connect)((function(e,t){return{sorting:(0,re.sortingSelector)(e,t.widgetId)}}),(function(e){return(0,o.bindActionCreators)({sortSymbols:R.sortSymbolsThunk},e)}))((function(e){const{widgetId:t,isSortable:s,tickerType:o,column:a,className:c,sortSymbols:u,label:h,sorting:m}=e,[g,f]=(0,i.useState)(!1),v=(0,i.useRef)(null),_=(0,i.useRef)(null),[b,y]=(0,Ae.useHover)(),{size:C}=(0,i.useContext)(S.SizeContext),E=(0,i.useContext)(p.CloseDelegateContext),x=1===C,{columnResizeDelegate:k,requestColumnInitWidthDelegate:T,setColumnInitWidthDelegate:I}=(0,i.useContext)(De),L=(0,i.useMemo)((()=>function(e,t,s,o){if(!t)return"";const i=r.t(null,void 0,n(768973)).format({columnLabel:s});if(null!==e&&e.column===o&&1===e.direction)return`${i} ${Ve}`;return`${i} ${He}`}(m,s,h,a)),[m,s,h,a]);return(0,i.useEffect)((()=>{const e=e=>{e===a&&(null==I||I.fire(a,(0,l.ensureNotNull)(v.current).getBoundingClientRect().width))};return null==T||T.subscribe(null,e),()=>null==T?void 0:T.unsubscribe(null,e)}),[T,I,a]),(0,i.useEffect)((()=>(E.subscribe(null,w.hide),
()=>E.unsubscribe(null,w.hide))),[]),(0,i.useEffect)((()=>{s&&(b?(0,w.showOnElement)((0,l.ensureNotNull)(_.current),{content:{type:"html",data:L}}):(0,w.hide)())}),[b,L]),(0,i.useEffect)((()=>{if((null==m?void 0:m.column)!==a||!s)return;f(!0);const e=setTimeout((()=>f(!1)),5e3);return()=>{clearTimeout(e),f(!1)}}),[m,a]),i.createElement(i.Fragment,null,i.createElement("span",{ref:v,key:a,className:d(Oe.columnHeader,c,x&&Oe.small)},s&&i.createElement(ne.Icon,{className:d(Oe.sortArrow,g&&Oe.visible,1!==(null==m?void 0:m.direction)&&Oe.desc),icon:ze}),i.createElement("span",{...y,ref:_,className:d(Oe.label,s&&Oe.sortable,g&&Oe.sortActivated),onClick:s?function(){let e={column:a,direction:1};null!==m&&m.column===a&&1===m.direction&&(e={...m,direction:-1});u(t,e,o);const n=e?1===e.direction?"ascending":"descending":"default";(0,xe.trackEvent)("Watchlist","Sort",`Sort by ${a} ${n}`)}:void 0,"data-column-type":a},h)),k&&i.createElement(Fe,{column:a}))}));var Ge=n(672197),qe=n(42141);const $e=(0,s.connect)((function(e,t){const{shouldDisplayColumnsMenu:n,isTableView:s,isSortable:o}=(0,re.widgetOptionsSelector)(e,t.widgetId),i=(0,re.getCurrentViewableListByWidgetId)(e,t.widgetId);return{shouldDisplayColumnsMenu:n,isTableView:s,isSortable:o,columns:(0,re.columnsSelector)(e,t.widgetId),tickerType:(0,re.tickerTypeSelector)(e,t.widgetId),hasFlagColumn:"custom"===(null==i?void 0:i.type)&&o,sorting:(0,re.sortingSelector)(e,t.widgetId)}}))((function(e){const{columns:t,widgetId:o,shouldDisplayColumnsMenu:l,tickerType:a,hasFlagColumn:c,sorting:d,isTableView:h,isSortable:m}=e,p=(0,s.useDispatch)(),{size:g}=(0,i.useContext)(S.SizeContext),f=(0,i.useMemo)((()=>!0),[g,h]),v=(0,i.useMemo)((()=>function(e,t,s){const o={[ce.TickerType.Ticker]:r.t(null,void 0,n(589053)),[ce.TickerType.Description]:r.t(null,void 0,n(629601))};0;return[{column:"short_name",label:o[t],className:qe.symbolName},{column:"last_price",label:r.t(null,void 0,n(915107)),className:qe.last},{column:"change",label:r.t(null,void 0,n(34565)),className:qe.change},{column:"change_percent",label:r.t(null,void 0,n(191198)),className:qe.changeInPercents},{column:"volume",label:r.t(null,{context:"study"},n(32819)),className:qe.volume}].filter((t=>e.includes(t.column)||s&&"flag"===t.column))}(f?t:["short_name"],f?a:ce.TickerType.Ticker,c)),[t,a,c,f]);return i.createElement("div",{className:qe.wrap},l&&i.createElement(Ne,{widgetId:o,className:qe.menu}),i.createElement("div",{className:qe.tableHeader},v.map(((e,t)=>i.createElement(Ue,{widgetId:o,isSortable:m&&f,key:e.column,tickerType:a,label:e.label,column:e.column,className:u()(e.className,0===t&&qe.firstItem,f&&t===v.length-1&&qe.lastItem,!f&&qe.mobileItem)}))),!f&&m&&i.createElement(SortingMenu,{className:qe.sortingMenu,widgetId:o})),f&&Boolean(d)&&i.createElement(ne.Icon,{className:u()(qe.reset,"apply-common-tooltip"),title:r.t(null,void 0,n(344200)),icon:Ge,onClick:function(){p((0,R.sortSymbolsThunk)(o,null,a)),(0,xe.trackEvent)("Watchlist","Sort","Sort by custom order")}}))}))
;var Qe=n(199663),je=n(117601),Xe=n(973602),Ke=n(462056),Ye=n(856105),Ze=n(837210),Je=(n(615309),n(347531),n(133055)),et=n(535149),tt=n(833366),nt=n(344390);var st=n(356752),ot=n(363940);function it(e,t,n){return async(s,o)=>{const i=o();if(t===n)return;const l=(0,re.getCurrentViewableListByWidgetId)(i,e);if(null===l)return;if("hot"===l.type)return;const{symbols:r}=l,a=r.filter(D.isSeparatorItem),c=(0,k.buildUniqueName)(a,n,!1);r.includes(c)||"custom"===l.type&&await s((0,ot.renameSeparatorThunk)(null,l,t,c))}}function lt(e,t,n){return async(e,t)=>{}}const rt=(0,s.connect)((function(){const e=(0,re.makeGetIsContainedByMultiSelection)();return(t,n)=>{const{isDeletable:s,enableContextMenu:o}=(0,re.widgetOptionsSelector)(t,n.widgetId),i=(0,re.highlightedSymbolsSelector)(t,n.widgetId);return{isCollapsed:(0,st.separatorIsCollapsedSelector)(t,n.widgetId,n.id),isContainedByMultiSelection:e(t,{widgetId:n.widgetId,symbol:n.id}),isDeletable:s,enableContextMenu:o,isHighlighted:!!i&&i.includes(n.id)}}}),(function(e){return(0,o.bindActionCreators)({renameSymbol:it,removeSymbol:R.removeSymbolsThunk,addSymbols:R.addSymbolsThunk,showContextMenu:b.showContextMenu,setSeparatorCollapse:lt},e)}))((function(e){const{isCollapsed:t,widgetId:s,id:o,isSelected:l,removeSymbol:a,renameSymbol:d,enableContextMenu:h,isDeletable:m,isContainedByMultiSelection:p,isFirstListItem:g,showContextMenu:f,addSymbols:v,isHighlighted:_,setSeparatorCollapse:b}=e,{size:y}=(0,i.useContext)(S.SizeContext),[w,E]=(0,i.useState)(!1),[x,T]=(0,i.useState)(!1),I=false,L=m&&!0,M=(0,k.separatorValToDisplayVal)(o);return i.createElement("div",{className:u()(nt.separator,1===y&&nt.small,g&&nt.firstItem,l&&nt.selected,_&&nt.highlighted,C.mobiletouch&&nt.touch),onClick:function(e){if(T(!1),x||e.isDefaultPrevented())return;if([c.Modifiers.Mod,c.Modifiers.Shift].includes((0,c.modifiersFromEvent)(e)))return;if(1===y&&!w)return void function(e){e.persist(),A(e)}(e);l&&m&&E(!0)},onMouseDown:function(){w&&T(!0)},onKeyDown:function(e){if(!w)return;(0,c.hashFromEvent)(e)!==c.Modifiers.Mod+65&&46!==(0,c.hashFromEvent)(e)&&8!==(0,c.hashFromEvent)(e)&&40!==(0,c.hashFromEvent)(e)&&38!==(0,c.hashFromEvent)(e)||e.stopPropagation()},onContextMenu:0===y&&h?function(e){if(e.preventDefault(),e.persist(),w)return;if(p)return void f(s,o,e,0);A(e)}:void 0,"data-collapsed":void 0},i.createElement("div",{className:u()(nt.innerWrapper,I,w&&nt.renaming)},i.createElement(je.Renamable,{inputClassName:nt.renamableInput,name:M,isRenaming:w,onSubmit:function(e){N();const t=e.trim().toUpperCase();if(0===t.length)return;const n=(0,k.convertToSeparatorName)(t);d(s,o,n)},onClose:N,size:"xxsmall"},i.createElement(i.Fragment,null,I,i.createElement("span",{className:nt.label},M),L&&i.createElement(F,{className:nt.removeButton,widgetId:s,symbolName:o})))));function N(){E(!1)}function A(e){if(!m)return;const t=[new Xe.Action({actionId:"Watchlist.RenameSection",options:{label:r.t(null,void 0,n(435038)),icon:Je,onExecute:()=>{E(!0)}}})];L&&t.push(new Xe.Action({actionId:"Watchlist.RemoveSection",options:{
label:r.t(null,void 0,n(86261)),icon:et,onExecute:()=>{a(s,o)}}})),Ke.ContextMenuManager.showMenu([...t,new Xe.Separator,new Xe.Action({actionId:"Watchlist.AddSymbolToSection",options:{label:r.t(null,void 0,n(57590)),icon:tt,onExecute:()=>{(0,Ye.showWatchlistSearchDialog)({fullscreen:1===y,targetSymbol:o,onSearchComplete:e=>{(0,Ze.runOrSigninWithFeature)((()=>{const t=e.map((e=>e.symbol));v(s,t,o)}),{feature:"watchList",source:"add symbol to watchlist"})}})}}})],e,{mode:1===y?"drawer":void 0,returnFocus:!0,takeFocus:!0})}}));var at=n(466052);const ct=32;var dt=n(44681),ut=n(705665);const ht={32:"next",[32+c.Modifiers.Shift]:"previous"},mt=C.mobiletouch?"touch":"native",pt=["flag","short_name","last_price","change","change_percent","volume","rchp"];function gt(e){return Array.from(e).sort(((e,t)=>pt.indexOf(e)-pt.indexOf(t)))}function ft(e,t,n,s){let o=16,i=ct;const l=gt(t);return l.forEach(((t,r)=>{const a=Math.max(ct,n-o-ct*(l.length-r-1));t===e&&(i=a);const c=s.get(t);if(c){const e=(0,dt.clamp)(c*n,ct,a);o+=e}})),vt(i)}function vt(e){return Math.round(10*e)/10}function _t(e){const{dropType:t,boundBox:n}=e,{top:s,bottom:o,left:i}=(0,l.ensureDefined)(n);return[i,"before"===t||"inside"===t?s+.5:o-.5]}function bt(e){return i.createElement("div",{className:ut.empty},i.createElement("div",{className:ut.centered},e.children))}function St(e,t){const{listId:n}=e.widgets[t];return null!==n?"custom":null}const yt=(0,s.connect)((function(e,t){const{isMovable:n,isTableView:s}=(0,re.widgetOptionsSelector)(e,t.widgetId),o=(0,re.getCurrentViewableListByWidgetId)(e,t.widgetId);return{columns:(0,re.columnsSelector)(e,t.widgetId),isMovable:n,isTableView:s,isLoading:(0,re.isLoadingSelector)(e,t.widgetId),selectedSymbols:(0,re.selectedSymbolsSelector)(e,t.widgetId),scrollToId:(0,re.scrollToIdSelector)(e,t.widgetId),listType:St(e,t.widgetId),isHotlist:Boolean("hot"===(null==o?void 0:o.type))}}),(function(e){return(0,o.bindActionCreators)({updateWidget:b.updateWidget,selectNextAvailableSymbol:b.selectNextAvailableSymbol},e)}))((function(e){const{columns:t,symbols:n,icon:s,isLoading:o,noSymbolsPlaceholder:r,selectedSymbols:u,updateWidget:g,selectNextAvailableSymbol:f,onKeyDown:b,isMovable:w,widgetId:C,scrollToId:x,listType:T,isHotlist:I,viewState:L,isTableView:M,...N}=e,A=(0,i.useMemo)((()=>(0,a.createNodes)(n)),[n]),D=(0,i.useContext)(p.CloseDelegateContext),{size:W}=(0,i.useContext)(S.SizeContext),R=1===W,P=(0,i.useMemo)((()=>!0),[R,M]),B=(0,i.useRef)(performance.now()),F=(0,i.useRef)(null),z=(0,i.useCallback)((e=>(0,k.isValidSeparatorItem)(e.id)?i.createElement(rt,{...e,widgetId:C}):i.createElement(Ce,{...e,widgetId:C,typeView:P?"table":"tile"})),[C,P]),H=(0,i.useCallback)((e=>i.createElement(v,{...e,widgetId:C,id:(0,k.isValidSeparatorItem)(e.id)?(0,k.separatorValToDisplayVal)(e.id):e.id,className:d((0,k.isValidSeparatorItem)(e.id)&&ut.separatorDragPreview)})),[C]),V=(0,i.useCallback)(((e,t)=>{switch(t.type){case"node":return(0,k.isValidSeparatorItem)(t.node.props.id)?36:P?30:42;case"separator":return 13}}),[P]),O=(0,
i.useCallback)(((e,t)=>{var n;0!==e.button||0!==(0,c.modifiersFromEvent)(e)||(0,k.isValidSeparatorItem)(t)||(1===e.nativeEvent.detail&&E.linking.setSymbolAndLogInitiator(t,I?"hotlist":"watchlist"),2===e.nativeEvent.detail&&(null===(n=E.linking.getChartWidget())||void 0===n||n.chartWidgetCollection().setSymbolAll(t)))}),[]),U=(0,i.useCallback)((e=>{(0,k.isValidSeparatorItem)(e)||E.linking.setSymbolAndLogInitiator(e,I?"hotlist":"watchlist")}),[]),G=(0,i.useCallback)(((e,t)=>t&&1===e.length&&(0,k.isValidSeparatorItem)(e[0])?f(C,e[0],t):g(C,{selectedSymbols:e})),[C,f,g]),[q,$]=(0,i.useState)(void 0),[Q,j]=(0,i.useState)((function(){var e;return null!==(e=null==L?void 0:L.getColumnsPercentages())&&void 0!==e?e:new Map}));(0,i.useEffect)((()=>{const e=y.quoteSessionAdapters.get(C);return e.addToSubscriptionSet(n),e.commitSubscriptionChanges(),E.linking.proSymbol.subscribe(se),()=>{e.addToCancelSubscriptionSet(n),E.linking.proSymbol.unsubscribe(se)}}),[n]),(0,i.useEffect)((()=>()=>{const e=y.quoteSessionAdapters.get(C);e.clearSubscriptionSet(),e.commitSubscriptionChanges()}),[]);const[X,K]=(0,i.useState)((()=>({height:0,width:0}))),Y=(0,m.useResizeObserver)((e=>{const[t]=e,{width:n,height:s}=t.contentRect;K((e=>e.width===n&&e.height===s?e:{height:s,width:n}))})),Z=(0,i.useRef)(null),J=(0,i.useMemo)((()=>Boolean((null==L?void 0:L.canResizeColumns())&&P)?{requestColumnInitWidthDelegate:new at.Delegate,setColumnInitWidthDelegate:new at.Delegate,columnResizeStartDelegate:new at.Delegate,columnResizeDelegate:new at.Delegate,columnResizeStopDelegate:new at.Delegate}:{}),[L,P]),ee=function(e,t,n,s){const o={},i=gt(e);!s&&t<=200&&(o["--tv-symbol-list-column-change-display"]="none");return Array.from(n.entries()).forEach((([s,l])=>{if(!i.includes(s))return;if(i.indexOf(s)===i.length-1)return void("change_percent"!==s&&"volume"!==s||(o[`--tv-symbol-list-column-${s}-flex`]="1 1"));const r=ft(s,e,t,n);o[`--tv-symbol-list-column-${s}-flex`]=`0 0 ${(0,dt.clamp)(vt(l*t),ct,r)}px`})),o}(t,X.width,Q,P),te=(0,i.useCallback)(((e,t)=>{const{requestColumnInitWidthDelegate:n,setColumnInitWidthDelegate:s}=J;let o=!1;return t.forEach((t=>{if(!e.has(t)){o=!0;const i=(t,n)=>e.set(t,n/X.width);null==s||s.subscribe(null,i,!0),null==n||n.fire(t),null==s||s.unsubscribeAll(null)}})),Array.from(e.keys()).forEach((n=>{-1===t.indexOf(n)&&(o=!0,e.delete(n))})),o}),[X,J]);return(0,i.useEffect)((()=>{var e;if(Q.size>0&&(null==L?void 0:L.canResizeColumns())&&P){const n=new Map(Q);te(n,t)&&(j(n),null===(e=L.saveColumnsPercentages)||void 0===e||e.call(L,n))}}),[t,Q,te,L,P]),(0,i.useEffect)((()=>{const{columnResizeDelegate:e}=J,n=(e,n)=>{j((s=>{const o=new Map(s);te(o,t);const i=n=>(0,dt.clamp)(n,ct,ft(e,t,X.width,o));null===F.current&&(F.current=i((0,l.ensureDefined)(o.get(e))*X.width));const r=i(F.current-n);return o.set(e,r/X.width),o}))};return null==e||e.subscribe(null,n),()=>null==e?void 0:e.unsubscribe(null,n)}),[t,X,J,te]),(0,i.useEffect)((()=>{const{columnResizeStopDelegate:e}=J,t=()=>{var e;F.current=null,
null===(e=null==L?void 0:L.saveColumnsPercentages)||void 0===e||e.call(L,Q)};return null==e||e.subscribe(null,t),()=>null==e?void 0:e.unsubscribe(null,t)}),[Q,J,L]),i.createElement(De.Provider,{value:J},i.createElement("div",{className:ut.wrap,style:ee,onContextMenu:Qe.preventDefaultForContextMenu},i.createElement($e,{widgetId:C}),i.createElement("div",{ref:Y,className:ut.content},i.createElement("div",{className:d(ut.scrollable,0===n.length&&ut.noData),onMouseDown:function(e){if(!(e.target instanceof Element)||null===Z.current)return;const{activeElement:t}=document;e.target===Z.current&&(Z.current.contains(t)&&e.preventDefault(),oe())},onKeyDown:function(e){27===(0,c.hashFromEvent)(e)&&(e.preventDefault(),oe());if(1===u.length&&(null==q?void 0:q.id)!==u[0]&&(null==q?void 0:q.id)===E.linking.proSymbol.value()){if(40===(0,c.hashFromEvent)(e))return void E.linking.setSymbolAndLogInitiator(u[0],I?"hotlist":"watchlist");if(38===(0,c.hashFromEvent)(e))return void f(C,u[0],"previous")}b&&b(e)},"data-name":"symbol-list-wrap",onScrollCapture:function(){if(B.current+500>performance.now())return;D.fire()}},!o&&n.length>0&&0!==X.width&&i.createElement(_.Tree,{...N,key:String(T),height:X.height,width:X.width,navigationKeys:ht,nodeRenderer:z,drag:mt,dragPreviewRenderer:H,nodes:A,onClick:R?void 0:O,selectedIds:u,onSelect:G,readOnly:!w,rowHeight:V,scrollToId:x,onKeyboardSelect:U,dropLayerTransform:_t,lastFocusedNodeObject:q,outerRef:function(e){Z.current=e},lastSyncTimestampRef:B}),o&&i.createElement(h.Spinner,null),!o&&r&&0===n.length&&i.createElement(bt,null,i.createElement("div",null,s&&i.createElement(ne.Icon,{icon:s,className:ut.emptyIcon}),i.createElement("div",null,r)))))));function se(e){const t=(0,k.getSymbolFromList)(e,n);t&&!(0,k.isValidSeparatorItem)(t)&&(G([t]),$({id:t}))}function oe(){se(E.linking.proSymbol.value())}}));var wt=n(297265),Ct=n(702054),Et=n(651049),xt=n(753074),kt=n(34360);function Tt(e,t){return Boolean(t[e])}function It(e){return new Map(e.map(((e,t)=>[e,t])))}function Lt(e,t){return new Map(e.map(((n,s)=>{if(!(0,k.isValidSeparatorItem)(n))return 3;if(Tt(n,t))return 2;const o=s<e.length-1&&(0,k.isValidSeparatorItem)(e[s+1]),i=s===e.length-1;return o||i?0:1})).map(((t,n)=>[e[n],t])))}const Mt=(0,s.connect)((function(){const e=[],t=(t,n)=>{const s=(0,re.getCurrentViewableWatchListByWidgetId)(t,n);return null===s?e:s.symbols},n=(e,n)=>t(e,n);return(e,s)=>({symbols:t(e,s.widgetId),displaySymbols:n(e,s.widgetId),collapsedSeparatorsState:(s.widgetId,{})})}),(function(e){return(0,o.bindActionCreators)({reorderSymbols:R.reorderSymbolsThunk,removeSelectedSymbols:R.removeSelectedSymbolsThunk,markSymbol:R.markSymbolsThunk,selectAllSymbols:b.selectAllSymbols},e)}))((function(e){const{symbols:t,displaySymbols:s,collapsedSeparatorsState:o,reorderSymbols:d,widgetId:u,removeSelectedSymbols:h,markSymbol:m,selectAllSymbols:p,viewState:g}=e,f=(0,i.useRef)({displaySymbols:s,collapsedSeparatorsState:o,indexMap:It(s),itemTypeMap:Lt(s,o)});(0,i.useEffect)((()=>{f.current={displaySymbols:s,collapsedSeparatorsState:o,
indexMap:It(s),itemTypeMap:Lt(s,o)}}),[s,o]);const v=(0,wt.useWatchedValueReadonly)({watchedValue:Ct.watchedTheme})===Et.StdTheme.Dark?xt:kt;return i.createElement(yt,{widgetId:u,onMove:function(e){d(u,e[a.ROOT_ID].children)},onDrop:function(e){const{detail:{nodes:t}}=e;t.length>1?(0,xe.trackEvent)("Watchlist","Multi select","Drag"):(0,xe.trackEvent)("Watchlist","Drag")},symbols:t,onKeyDown:function(e){const t=(0,c.hashFromEvent)(e);46!==t&&8!==t||(e.preventDefault(),h(u));t===c.Modifiers.Alt+13&&(e.preventDefault(),(0,Ze.runOrSigninWithFeature)((()=>m(u,void 0,void 0,!0)),{feature:"flaggedSymbolsColors",source:"Set symbol color"}),(0,xe.trackEvent)("Watchlist","Alt+Enter"));t===c.Modifiers.Mod+65&&(e.preventDefault(),p(u),(0,xe.trackEvent)("Watchlist","Ctrl+A"));27===t&&(0,xe.trackEvent)("Watchlist","Esc")},noSymbolsPlaceholder:r.t(null,void 0,n(456502)),icon:v,viewState:g,canMove:function(e,t,n){return!0;const{displaySymbols:s,collapsedSeparatorsState:o,indexMap:i,itemTypeMap:r}=f.current;if("inside"===n)return!1;const[,a,c,d]=[0,1,2,3].map((t=>e.some((e=>r.get(e.id)===t))));if(c&&(a||d))return!1;if(c&&!a&&!d){const e=t.id;if(Tt(e,o))return!0;const r=(0,l.ensureDefined)(i.get(e));if(r===s.length-1&&"after"===n)return!0;return!(!(r<s.length-1&&(0,k.isValidSeparatorItem)(s[r+1]))||"after"!==n)||(0,k.isValidSeparatorItem)(e)&&"before"===n}return!0}})}))},573491:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Header:()=>ue});var s=n(691622),o=n(386942),i=n(50959),l=n(497754),r=n.n(l),a=n(650151),c=n(609838),d=n(706474),u=n(192063),h=n(153055);function m(e,t,n){(0,i.useRef)(null);(0,i.useEffect)((()=>()=>{0}),[e.current,t,n])}var p=n(972535),g=n(32133),f=n(535842),v=n(493173),_=n(72621),b=n(359705),S=n(350464),y=n(119271);const w=(0,v.mergeThemes)(u.DEFAULT_POPUP_MENU_ITEM_THEME,S),C=(0,v.mergeThemes)(u.DEFAULT_POPUP_MENU_ITEM_THEME,y);var E=n(607898),x=n(601373),k=n(363940);const T=(0,o.connect)(null,{removeWatchList:function(e){return async(t,n)=>{const s=n();{const n=(0,a.ensureNotNull)((0,x.getCustomListById)(s,e));await t((0,k.removeWatchlistThunk)(null,n))}}},selectWatchList:E.selectSymbolListThunk})((function(e){const{className:t,watchList:s,selectWatchList:o,removeWatchList:l,hideRemoveButton:d,isActive:v,isSmallSize:S,onSelect:y}=e,{size:E}=(0,i.useContext)(f.SizeContext),{color:x=null}=s,k=s.symbols.length,T=(0,i.useRef)(null),I=!d&&null===x&&!v;m(T,x,b.flag);let L=s.name;return L||(L=c.t(null,void 0,n(213402))),i.createElement(u.PopupMenuItem,{key:s.id,theme:S?C:w,className:r()(t,b.item,v&&b.active,1===E&&b.small,!I&&b.countVisible),label:i.createElement("div",null,i.createElement("span",{className:b.title,ref:T},L),S&&i.createElement("span",{className:b.count},c.t(null,{plural:"{count} symbols",count:k},n(337628)))),toolbox:i.createElement(i.Fragment,null,I&&i.createElement(_.RemoveButton,{className:r()(b.removeButton,b.toolboxItem,p.touch&&b.touch,S&&b.small),isActive:v,onClick:function(){const e=s.name||getColoredListTitle((0,a.ensureDefined)(s.color)),t=c.t(null,void 0,n(722753)).format({name:e});(0,h.showConfirm)({
text:t,onConfirm:async({dialogClose:e})=>{await l(s.id),e()}}),(0,g.trackEvent)("Watchlist","Popup menu","Remove list")}}),i.createElement("span",{className:r()(b.toolboxCount,b.toolboxItem,(S||p.touch)&&b.touch)},k)),onClick:function(){var e;v||(o(null,null!==(e=s.color)&&void 0!==e?e:s.id),null==y||y(),(0,g.trackEvent)("Watchlist","Popup menu","Change active list"))}})}));var I=n(917850),L=n(230553),M=n(879530),N=n(354364);function A(e){const{isLoading:t,list:n,current:s,isSmallSize:o,isReadonly:l,onSelect:r}=e,a=(0,i.useContext)(L.MenuContext);(0,i.useEffect)((()=>{a&&a.update()}),[n]);const c=[],d=[];for(const e of n)c.push(e);c.sort(N.sortComparator);const u=[[],c];return d.length&&u.push(d),i.createElement(i.Fragment,null,t&&i.createElement(M.ToolWidgetMenuSpinner,null),!t&&u.map(((e,t,n)=>e.length>0&&i.createElement(i.Fragment,{key:t},e.map((e=>i.createElement(T,{key:e.id,watchList:e,isActive:null!==s&&s.id===e.id,hideRemoveButton:1===c.length||l||!1,isSmallSize:o,onSelect:r}))),t!==n.length-1&&0!==e.length&&i.createElement(I.PopupMenuSeparator,null)))))}var D=n(518799),W=n(88148);const R=(0,v.mergeThemes)(D.DEFAULT_TOOL_WIDGET_MENU_THEME,{button:W.button,hover:W.hover,isOpened:W.isOpened});function P(e){const{className:t,content:n,...s}=e;return i.createElement(D.ToolWidgetMenu,{...s,theme:R,className:r()(t),content:i.createElement("span",{className:r()(W.inner)},n)})}var B=n(398171),F=n(28466),z=n(117601),H=n(601227),V=(n(976052),n(156963)),O=n(190410),U=n(350299),G=n(395907),q=n(856105),$=n(190266);const Q=n(538720);function j(e){const{leftSlot:t,rightSlot:n,withRightSlotSeparator:s,theme:o=Q}=e;return i.createElement("div",{className:o.container},i.createElement("div",{className:o.leftSlot},t),i.createElement("div",{className:l(o.rightSlot,s&&o.rightSlotSeparator)},n))}var X=n(688401),K=n(845437),Y=n(636296),Z=n(133055),J=n(323595),ee=n(808757),te=n(133736),ne=n(660662),se=n(173394),oe=n(833366),ie=n(388140),le=n(684200);const re=(0,v.mergeThemes)(Q,{leftSlot:le.widgetbarWidgetHeaderLeftSlot,rightSlot:le.widgetbarWidgetHeaderRightSlot}),ae=(0,v.mergeThemes)(u.DEFAULT_POPUP_MENU_ITEM_THEME,ne),ce=(0,v.mergeThemes)(u.DEFAULT_POPUP_MENU_ITEM_THEME,se);var de=n(219769);const ue=(0,o.connect)((function(){const e=(e,t)=>{const n=(0,x.getCurrentViewableListByWidgetId)(e,t);return null===n?null:"custom"===n.type?{id:n.id,name:n.name,description:n.description,symbols:n.symbols,shared:n.shared}:null},t=e=>{const t=[];return t.push(...(0,x.getCustomLists)(e)),t};return(n,s)=>{const{enableAddSymbolsByAnon:o,shouldDisplaySymbolSearch:i,isDeletable:l,isLogoEnabled:r,isTableView:a}=(0,x.widgetOptionsSelector)(n,s.widgetId);return{isLoading:!(0,x.getIsReadyCustomLists)(n),enableAddSymbolsByAnon:o,shouldDisplaySymbolSearch:i,isLogoEnabled:r,isTableView:a,list:t(n),current:e(n,s.widgetId),columns:(0,x.columnsSelector)(n,s.widgetId),tickerType:(0,x.tickerTypeSelector)(n,s.widgetId),isReadonly:!l}}}),(function(e){const t={createNewWatchList:E.userCreateWatchlistThunk,saveListAs:E.saveListAsThunk,
renameWatchList:E.renameSymbolListThunk,clearWatchList:E.clearSymbolListThunk,getWatchLists:()=>(0,k.getCustomWatchlistsThunk)(null),addSymbols:E.addSymbolsThunk,insertSymbolBefore:E.insertSymbolBeforeThunk,scrollToSymbol:E.findInWatchlistThunk,updateWidget:de.updateWidget,updateWidgetOptions:de.updateWidgetOptions};return(0,s.bindActionCreators)(t,e)}))((function(e){var t;const{isLoading:s,list:o,current:r,getWatchLists:p,createNewWatchList:v,saveListAs:_,enableAddSymbolsByAnon:b,shouldDisplaySymbolSearch:S,renameWatchList:y,clearWatchList:w,addSymbols:C,insertSymbolBefore:E,widgetId:x,isReadonly:k,scrollToSymbol:T,shareList:L,isLogoEnabled:M,isTableView:D}=e,{size:W}=(0,i.useContext)(f.SizeContext),R=(0,i.useContext)(F.CloseDelegateContext),{setHideClose:Q}=(0,i.useContext)(O.DialogHeaderContext),ne=(0,i.useRef)(null),se=(0,i.useRef)(null),[de,ue]=(0,i.useState)(!1),he=(0,i.useRef)([]),me=(0,i.useRef)(void 0),pe=(0,i.useRef)(null);pe.current=function(){const e=he.current;he.current=[],me.current=void 0,!1;b?Ne(e):(0,$.runOrSignInWithPromo)("watchList",{source:"add symbol to watchlist"},(()=>Ne(e)))};const[ge,fe]=(0,i.useState)(!1);m(ne,null!==(t=null==r?void 0:r.color)&&void 0!==t?t:null,le.flag);const ve=function(){const e=c.t(null,void 0,n(213402));if(!r)return e;0;return r.name||e}(),_e=!((0,H.onWidget)()||k&&1===o.length),be=1===W,Se=be?ce:ae;return(0,i.useRef)(null),(0,i.useRef)(null),(0,i.useRef)(null),i.createElement("div",{className:l(le.container,be&&le.mobile),onClick:function(){ge||be||R.fire()}},i.createElement(z.Renamable,{name:ve,isRenaming:de,onSubmit:function(e){ke(!1),null!==r&&y(r.id,e)},onClose:function(){ke(!1)},maxLength:128},i.createElement(j,{leftSlot:_e?i.createElement(P,{className:l(be&&le.mobileMenu),onOpen:p,menuClassName:le.watchlistMenu,content:i.createElement("span",{className:le.titleRow},ve,i.createElement("span",{ref:ne})),isDrawer:be,"data-name":"watchlists-button"},!k&&i.createElement(i.Fragment,null,i.createElement(u.PopupMenuItem,{key:"new",theme:Se,icon:K,label:(0,U.appendEllipsis)(c.t(null,void 0,n(732340))),onClick:function(){R.fire(),Le((()=>v(null)),"new"),Ae("Create new list")}}),V.enabled("watchlist_import_export")&&false,De(),i.createElement(I.PopupMenuSeparator,null)),i.createElement(A,{isLoading:s,list:o,current:r,isSmallSize:be,isReadonly:k,onSelect:be?()=>R.fire():void 0})):i.createElement("div",{className:le.title},c.t(null,void 0,n(213402))),rightSlot:S&&!k&&i.createElement("div",{className:le.buttonWrap},i.createElement(G.ToolWidgetIconButton,{title:c.t(null,void 0,n(57590)),className:le.headerButton,icon:oe,onClick:function(){(0,q.showWatchlistSearchDialog)({fullscreen:be,onSearchComplete:e=>{(0,$.runOrSignInWithPromo)("watchList",{source:"add symbol to watchlist"},(()=>{for(const t of e)Me(t.symbol)}))}}),(0,g.trackEvent)("GUI","SS","watchlist")},"data-name":"add-symbol-button","data-role":"button",isDisabled:!1}),false,false),withRightSlotSeparator:be,theme:re})),V.enabled("watchlist_import_export")&&i.createElement("form",{className:le.hidden
},i.createElement("input",{accept:"text/plain",type:"file",ref:function(e){V.enabled("watchlist_import_export")&&(se.current=e)},onChange:function(e){if(V.enabled("watchlist_import_export")){const t=(0,a.ensureNotNull)(e.target.files)[0];if(!t)return void ye(se.current);const s=t.size/1024,o=250;if(s>o)return ye(se.current),void(0,h.showWarning)({title:c.t(null,void 0,n(705847)),text:c.t(null,{replace:{fileLimit:String(o)}},n(974587))});const i=new FileReader;ye(se.current),i.onload=()=>{(0,d.isImportDataValid)(i.result)?v(null,{name:t.name.replace(/^(.+)\..+$/,"$1"),symbols:String(i.result).toUpperCase().split(/[\t\r\n,]+/).filter(Boolean)}):(0,h.showWarning)({title:c.t(null,void 0,n(713774)),text:c.t(null,void 0,n(594071))})},i.readAsText(t)}}})));function ye(e){e&&(e.value="")}function we(){function e(){(0,a.ensureNotNull)(se.current).click()}V.enabled("watchlist_import_export")&&e()}function Ce(){function e(){const{name:e,color:t,symbols:n}=(0,a.ensureNotNull)(r),s=e||t||"watchlist";(0,N.exportList)(s,n)}V.enabled("watchlist_import_export")&&e()}function Ee(){null!==r&&((0,h.showConfirm)({text:c.t(null,void 0,n(265662)),onConfirm:({dialogClose:e})=>{w(r.id),e()}}),Ae("Clear list"))}function xe(){r&&(0,$.runOrSignIn)((()=>{const e=X.linking.symbol.value(),t=Boolean(r.symbols.find((t=>t===e))),n=(0,d.buildUniqueName)(r.symbols.filter(B.isSeparatorItem),(0,d.convertToSeparatorName)("SECTION"));t?(E(x,e,n),T(x,n)):Me(n),be&&R.fire()}),{source:"Add new section"})}function ke(e){ue(e),Q(e)}function Te(){(()=>{ke(!0)})(),Ae("Rename")}function Ie(){Le((()=>_(e.widgetId,(0,a.ensureNotNull)(r).symbols)),"saveAs"),Ae("Make a copy")}function Le(e,t){e()}function Me(e){he.current.push(e),me.current||(me.current=setTimeout((()=>{null!==pe.current&&pe.current()}),0))}function Ne(e){C(x,Array.from(new Set(e)))}function Ae(e){(0,g.trackEvent)("Watchlist","Popup menu",e)}function De(){return null===r?null:i.createElement(i.Fragment,null,false,i.createElement(u.PopupMenuItem,{key:"copy",theme:Se,icon:Y,label:(0,U.appendEllipsis)(c.t(null,void 0,n(180959))),onClick:Ie}),i.createElement(u.PopupMenuItem,{key:"rename",theme:Se,icon:Z,label:c.t(null,void 0,n(435038)),onClick:Te,isDisabled:!1}),V.enabled("watchlist_import_export")&&!be&&i.createElement(i.Fragment,null,i.createElement(u.PopupMenuItem,{key:"import",theme:ae,icon:J,label:(0,U.appendEllipsis)(c.t(null,void 0,n(61466))),onClick:we}),i.createElement(u.PopupMenuItem,{key:"export",theme:ae,icon:ee,label:c.t(null,void 0,n(982543)),onClick:Ce})),i.createElement(u.PopupMenuItem,{key:"clear",theme:Se,icon:te,label:c.t(null,void 0,n(60640)),onClick:Ee}),V.enabled("watchlist_sections")&&i.createElement(u.PopupMenuItem,{key:"section",theme:Se,icon:ie,label:c.t(null,void 0,n(871550)),onClick:xe,isDisabled:!1}),!1)}}))},113060:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchWatchlistContext:()=>s});const s=n(50959).createContext(null)},190266:(e,t,n)=>{"use strict";n.d(t,{runOrSignIn:()=>s,runOrSignInWithPromo:()=>o});function s(e,t){e()}function o(e,t,n){n()}},118737:(e,t,n)=>{"use strict"
;n.d(t,{removeUsdFromCryptoPairLogos:()=>l,resolveLogoUrls:()=>i});var s=n(868333);const o=(0,s.getLogoUrlResolver)();function i(e,t=s.LogoSize.Medium){const n=e.logoid,i=e["base-currency-logoid"],l=e["currency-logoid"],r=n&&o.getSymbolLogoUrl(n,t);if(r)return[r];const a=i&&o.getSymbolLogoUrl(i,t),c=l&&o.getSymbolLogoUrl(l,t);return a&&c?[a,c]:a?[a]:c?[c]:[]}function l(e){return 2!==e.length?e:function(e){return e.some((e=>r(e)))}(e)&&!function(e){return e.some((e=>e.includes("country")&&!r(e)))}(e)?e.filter((e=>!r(e))):e}function r(e){return!1}},449943:(e,t,n)=>{"use strict";n.d(t,{CircleLogoPair:()=>i});var s=n(50959),o=n(41192);n(882112);function i(e){const{primaryLogoUrl:t,secondaryLogoUrl:n,size:i,className:r}=e;return s.createElement("span",{className:(0,o.getBlockStyleClasses)(i,r),title:e.title},s.createElement(l,{logoUrl:n,size:i}),s.createElement(l,{logoUrl:t,size:i}))}function l(e){const{logoUrl:t,size:n}=e,i=(0,o.getLogoStyleClasses)(n);return void 0===t?s.createElement("span",{className:i}):s.createElement("img",{className:i,crossOrigin:"",src:t,alt:""})}},41192:(e,t,n)=>{"use strict";n.d(t,{getBlockStyleClasses:()=>o,getLogoStyleClasses:()=>i});var s=n(497754);function o(e,t){return s("tv-circle-logo-pair",`tv-circle-logo-pair--${e}`,t)}function i(e,t){return s("tv-circle-logo-pair__logo",`tv-circle-logo-pair__logo--${e}`,!t&&"tv-circle-logo-pair__logo-empty")}},102478:(e,t,n)=>{"use strict";n.d(t,{useResizeObserver:()=>s.useResizeObserver});var s=n(664332)},917850:(e,t,n)=>{"use strict";n.d(t,{PopupMenuSeparator:()=>r});var s=n(50959),o=n(497754),i=n.n(o),l=n(92910);function r(e){const{size:t="normal",className:n,ariaHidden:o=!1}=e;return s.createElement("div",{className:i()(l.separator,"small"===t&&l.small,"normal"===t&&l.normal,"large"===t&&l.large,n),role:"separator","aria-hidden":o})}},72621:(e,t,n)=>{"use strict";n.d(t,{RemoveButton:()=>c});var s=n(609838),o=n(50959),i=n(497754),l=n(72571),r=n(333765),a=n(927306);function c(e){const{className:t,isActive:c,onClick:d,onMouseDown:u,title:h,hidden:m,"data-name":p="remove-button",...g}=e;return o.createElement(l.Icon,{...g,"data-name":p,className:i(a.button,"apply-common-tooltip",c&&a.active,m&&a.hidden,t),icon:r,onClick:d,onMouseDown:u,title:h||s.t(null,void 0,n(734596))})}},117601:(e,t,n)=>{"use strict";n.d(t,{Renamable:()=>c});var s=n(50959),o=n(497754),i=n(654936),l=n(199663),r=n(180185),a=n(452671);function c(e){const{name:t,maxLength:n,onSubmit:c,onClose:d,isRenaming:u,children:h,inputClassName:m,size:p}=e,[g,f]=(0,s.useState)(t),v=(0,s.useRef)(null);return(0,s.useEffect)((()=>{f(t)}),[t]),(0,s.useEffect)((()=>{u&&null!==v.current&&(v.current.focus(),v.current.setSelectionRange(0,g.length))}),[u]),u?s.createElement(i.InputControl,{value:g,onChange:function(e){f(e.currentTarget.value)},onClick:l.preventDefault,className:o(a.renameInput),inputClassName:m,onKeyDown:function(e){27===(0,r.hashFromEvent)(e)?_():13===(0,r.hashFromEvent)(e)&&b()},reference:function(e){v.current=e},onBlur:b,onDragStart:function(e){e.preventDefault(),e.stopPropagation()},
size:p,maxLength:n,draggable:!0,stretch:!0}):h;function _(){f(t),d()}function b(){""!==g?c(g):_()}}},493173:(e,t,n)=>{"use strict";function s(e,t,n={}){return Object.assign({},e,function(e,t,n={}){const s=Object.assign({},t);for(const o of Object.keys(t)){const i=n[o]||o;i in e&&(s[o]=[e[i],t[o]].join(" "))}return s}(e,t,n))}n.d(t,{mergeThemes:()=>s})},739357:e=>{e.exports={spinnerWrap:"spinnerWrap-cZT0OZe0"}},879530:(e,t,n)=>{"use strict";n.d(t,{ToolWidgetMenuSpinner:()=>a});var s=n(50959),o=n(497754),i=n.n(o),l=n(234404),r=n(739357);function a(e){const{className:t}=e;return s.createElement("div",{className:i()(r.spinnerWrap,t)},s.createElement(l.Loader,null))}},192607:(e,t,n)=>{"use strict";n.d(t,{LastChangeFormatter:()=>i});var s=n(918114),o=n(357407);class i{constructor(e){const{pricescale:t,minmov:n,fractional:i,minmove2:l,variableMinTick:r,precision:a,format:c}=e;this._formatter="volume"===c?new o.VolumeFormatter(null!=a?a:2):new s.PriceFormatter(t,n,i,l,r||void 0)}format(e,t,n,s=!0,o=!0){return"price"===this._formatter.type?this._formatter.format(e,t,n,s,o):this._formatter.format(e,t)}formatChange(e,t,n){return"price"===this._formatter.type?this._formatter.formatChange(e,t,n):this._formatter.format(e-t,n)}hasForexAdditionalPrecision(){return"hasForexAdditionalPrecision"in this._formatter&&this._formatter.hasForexAdditionalPrecision()}}},913042:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M8.5 3.84l.34.28 4 3.5-.66.76L9.01 5.6V14H8V5.6L4.84 8.38l-.66-.76 4-3.5.33-.28z"/></svg>'},347531:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="m4.67 7.38.66-.76L9 9.84l3.67-3.22.66.76L9 11.16 4.67 7.38Z"/></svg>'},615309:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M9.84 9 6.62 5.33l.76-.66L11.16 9l-3.78 4.33-.76-.66L9.84 9Z"/></svg>'},672197:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M10 6.13V8L6 5.5 10 3v2.1A5 5 0 1 1 4 10a.5.5 0 0 1 1 0 4 4 0 1 0 5-3.87Z"/></svg>'},388140:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M4 10h5V9H4v1zM11 10h6V9h-6v1zM24 10h-5V9h5v1zM6.5 14c-.83 0-1.5.67-1.5 1.5v3c0 .83.67 1.5 1.5 1.5h15c.83 0 1.5-.67 1.5-1.5v-3c0-.83-.67-1.5-1.5-1.5h-15zM6 15.5c0-.28.22-.5.5-.5h15c.28 0 .5.22.5.5v3a.5.5 0 0 1-.5.5h-15a.5.5 0 0 1-.5-.5v-3z"/></svg>'},845437:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><g fill="none" fill-rule="evenodd"><path stroke="currentColor" d="M13 22.5H5.5a2 2 0 0 1-2-2v-14a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2V14"/><path stroke="currentColor" stroke-linecap="square" d="M18.5 15.5v8m-4-4h8"/><path fill="currentColor" d="M7 8h11v1H7zm0 4h11v1H7zm0 4h5v1H7z"/></g></svg>'},72952:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M9 4.5l4.39 3.61a.5.5 0 0 1-.32.89h-1.18v4.5H6.11V9H4.93a.5.5 0 0 1-.32-.89L9 4.5z"/></svg>'},833366:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path fill="currentColor" d="M7 13h7V6h1v7h7v1h-7v7h-1v-7H7v-1z"/></svg>'},119850:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 7 9" width="7" height="9" fill="none"><path stroke="currentColor" d="M6 5L3.5 7.5L1 5M3.5 7.5V0"/></svg>'},975361:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 7 9" width="7" height="9" fill="none"><path stroke="currentColor" d="M6 4L3.5 1.5L1 4M3.5 9V2"/></svg>'},133736:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M5.5 16.5c1 3 7 7 11 7 2-4 2-8.5 2-8.5s-1-3.5-2-4-4.5.5-4.5.5-3 3.5-6.5 5z"/><path stroke="currentColor" d="M15.5 11l3-6s.5-1 1.5-.5.5 1.5.5 1.5l-3 6M12 11.5l6.5 3.5M7.5 19c2-.5 4-2.5 4-2.5m0 5.5c2-1 3-3.5 3-3.5"/></svg>'},808757:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M6.5 16v4.5a1 1 0 001 1h14a1 1 0 001-1V16M14.5 18V5.5m-4 4l4-4l4 4"/></svg>'},323595:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M6.5 16v4.5a1 1 0 001 1h14a1 1 0 001-1V16M14.5 5V17m-4-3.5l4 4l4-4"/></svg>'},715336:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="11" height="20" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M5.5 14a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm0-5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zM7 5.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0z"/></svg>'},563140:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none"><circle stroke="currentColor" cx="6" cy="6" r="5.5"/><path fill="currentColor" d="M4.5 8.523V2.8h.928v4.826H8.5v.897h-4z"/></svg>'},531340:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none"><circle stroke="#F44336" cx="6" cy="6" r="5.5"/><path fill="#F44336" d="M4.267 8.636l.31-.73c.159.11.355.2.59.274.238.071.45.107.638.107.33 0 .597-.084.798-.253a.806.806 0 0 0 .302-.646.945.945 0 0 0-.17-.542c-.11-.17-.391-.353-.841-.551l-.501-.218c-.425-.185-.722-.404-.892-.657-.167-.254-.251-.559-.251-.915 0-.433.164-.792.493-1.077C5.07 3.143 5.493 3 6.008 3c.689 0 1.167.104 1.436.313l-.25.689a2.019 2.019 0 0 0-.519-.222 2.21 2.21 0 0 0-.645-.107c-.29 0-.517.077-.684.23a.77.77 0 0 0-.246.59c0 .148.03.283.089.404.06.121.141.223.246.305.108.082.326.197.654.345l.51.225c.425.188.722.412.892.674.173.258.259.588.259.99 0 .435-.188.805-.565 1.109C6.811 8.848 6.31 9 5.681 9c-.552 0-1.023-.121-1.414-.364z"/></svg>'},753074:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120" width="120" height="120" fill="none"><path fill="none" d="M0 0h120v120H0V0z"/><g clip-path="url(#a3hxvgxzo)"><path fill="none" d="M10 10h101.05v101.05H10z"/><path fill="#2A2E39" fill-rule="evenodd" clip-rule="evenodd" d="M55.47 95.26a8.1 8.1 0 0 1 6.15.04 26.05 26.05 0 0 0 31.23-8.79A26 26 0 1 0 58.9 48.7a5.54 5.54 0 0 1-4.54.42c-2.9-1-5.91-1.43-8.9-1.32a.09.09 0 0 1-.07-.14A16.29 16.29 0 0 0 41.7 24.9a16.29 16.29 0 0 0-22.73 3.7 16.28 16.28 0 0 0 5.91 24.1c1.82.92 2.64 3.66 1.45 5.3a24.63 24.63 0 0 0 5.55 34.4 24.58 24.58 0 0 0 23.58 2.85z"/><rect width="38.5" height="12.5" fill="#1E222D" stroke="#B2B5BE" stroke-width="1.5" rx="2.25" x="21.75" y="53.75"/><circle stroke="#B2B5BE" stroke-linecap="round" stroke-width="1.5" cx="28.52" cy="60" r="3"/><path stroke="#B2B5BE" stroke-linecap="round" stroke-width="1.5" d="M35.25 59.75h5.22M49.4 58.75h5.22M47.17 62.25h7.45"/><rect width="38.5" height="12.5" fill="#1E222D" stroke="#B2B5BE" stroke-width="1.5" rx="2.25" x="21.75" y="73.75"/><circle stroke="#B2B5BE" stroke-linecap="round" stroke-width="1.5" cx="28.52" cy="80" r="3"/><path stroke="#B2B5BE" stroke-linecap="round" stroke-width="1.5" d="M35.25 79.75h5.22M49.4 78.75h5.22M47.17 82.25h7.45"/><path fill="#1E222D" stroke="#B2B5BE" stroke-width="1.5" d="M43.75 29c0-2.35 1.9-4.25 4.25-4.25h34c2.35 0 4.25 1.9 4.25 4.25v60c0 2.35-1.9 4.25-4.25 4.25H48A4.25 4.25 0 0 1 43.75 89V29z"/><rect width="38.5" height="12.5" fill="#1E222D" stroke="#B2B5BE" stroke-width="1.5" rx="2.25" x="32.75" y="33.75"/><circle stroke="#B2B5BE" stroke-linecap="round" stroke-width="1.5" cx="39.52" cy="40" r="3"/><path stroke="#B2B5BE" stroke-linecap="round" stroke-width="1.5" d="M45.25 39.75h5.22M54.5 39.75h3.71M62.5 39.75h4.12M27.63 38.25h-7M27.63 41.25h-4"/><circle fill="#1848CC" cx="64.75" cy="61.75" r="10.75"/><path fill="#D1D4DC" d="M65.48 56.79a.75.75 0 0 0-1.5 0h1.5zm-1.5 10.1a.75.75 0 0 0 1.5 0h-1.5zm0-10.1v10.1h1.5V56.8h-1.5z"/><path fill="#D1D4DC" d="M59.68 61.09a.75.75 0 0 0 0 1.5v-1.5zm10.1 1.5a.75.75 0 0 0 0-1.5v1.5zm-10.1 0h10.1v-1.5h-10.1v1.5z"/></g><defs><clipPath id="a3hxvgxzo"><path fill="#fff" d="M10 10h101.05v101.05H10z"/></clipPath></defs></svg>'},34360:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120" width="120" height="120" fill="none"><path fill="#fff" d="M0 0h120v120H0V0z"/><g clip-path="url(#aercrx3gr)"><path fill="#fff" d="M10 10h101.05v101.05H10z"/><path fill="#F0F3FA" fill-rule="evenodd" clip-rule="evenodd" d="M55.47 95.26a8.1 8.1 0 0 1 6.15.04 26.05 26.05 0 0 0 31.23-8.79A26 26 0 1 0 58.9 48.7a5.54 5.54 0 0 1-4.54.42c-2.9-1-5.91-1.43-8.9-1.32a.09.09 0 0 1-.07-.14A16.29 16.29 0 0 0 41.7 24.9a16.29 16.29 0 0 0-22.73 3.7 16.28 16.28 0 0 0 5.91 24.1c1.82.92 2.64 3.66 1.45 5.3a24.63 24.63 0 0 0 5.55 34.4 24.58 24.58 0 0 0 23.58 2.85z"/><rect width="38.5" height="12.5" fill="#fff" stroke="#1E222D" stroke-width="1.5" rx="2.25" x="21.75" y="53.75"/><circle stroke="#1E222D" stroke-linecap="round" stroke-width="1.5" cx="28.52" cy="60" r="3"/><path stroke="#1E222D" stroke-linecap="round" stroke-width="1.5" d="M35.25 59.75h5.22M49.4 58.75h5.22M47.17 62.25h7.45"/><rect width="38.5" height="12.5" fill="#fff" stroke="#1E222D" stroke-width="1.5" rx="2.25" x="21.75" y="73.75"/><circle stroke="#1E222D" stroke-linecap="round" stroke-width="1.5" cx="28.52" cy="80" r="3"/><path stroke="#1E222D" stroke-linecap="round" stroke-width="1.5" d="M35.25 79.75h5.22M49.4 78.75h5.22M47.17 82.25h7.45"/><path fill="#fff" stroke="#1E222D" stroke-width="1.5" d="M43.75 29c0-2.35 1.9-4.25 4.25-4.25h34c2.35 0 4.25 1.9 4.25 4.25v60c0 2.35-1.9 4.25-4.25 4.25H48A4.25 4.25 0 0 1 43.75 89V29z"/><rect width="38.5" height="12.5" fill="#fff" stroke="#1E222D" stroke-width="1.5" rx="2.25" x="32.75" y="33.75"/><circle stroke="#1E222D" stroke-linecap="round" stroke-width="1.5" cx="39.52" cy="40" r="3"/><path stroke="#1E222D" stroke-linecap="round" stroke-width="1.5" d="M45.25 39.75h5.22M54.5 39.75h3.71M62.5 39.75h4.12M27.63 38.25h-7M27.63 41.25h-4"/><circle fill="#2962FF" cx="64.75" cy="61.75" r="10.75"/><path fill="#fff" d="M65.48 56.79a.75.75 0 0 0-1.5 0h1.5zm-1.5 10.1a.75.75 0 0 0 1.5 0h-1.5zm0-10.1v10.1h1.5V56.8h-1.5z"/><path fill="#fff" d="M59.68 61.09a.75.75 0 0 0 0 1.5v-1.5zm10.1 1.5a.75.75 0 0 0 0-1.5v1.5zm-10.1 0h10.1v-1.5h-10.1v1.5z"/></g><defs><clipPath id="aercrx3gr"><path fill="#fff" d="M10 10h101.05v101.05H10z"/></clipPath></defs></svg>'}}]);