1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4635],{27027:(e,t,i)=>{i.r(t),i.d(t,{TVChartContainer:()=>te});var r,o,n,a,l,s,c,d,h,u,g,C,p,m,S,y,_,b,T,f,L,P,w,v,A,I,O,k,R,F,E,D,B,V,W,x,N,M,U,j,H,z,G,q,Q,J,Y,K,Z,X,$,ee,et,ei,er,eo,en,ea,el,es,ec,ed,eh,eu,eg,eC,ep,em,eS,ey,e_,eb,eT,ef,eL,eP,ew,ev,eA,eI,eO,ek,eR=i(80069),eF=i(34852),eE=i(20801),eD=i(66926),eB=i(83046),eV=i(70140),eW=i(81430),ex=i(41886),eN=i(42351),eM=i(34733);let eU="#2EBD85",ej="#E43C5A",eH={lineStyle:2,lineLength:70,bodyBackgroundColor:"#FFFFFF",quantityBackgroundColor:"#FFFFFF",cancellable:!1,extendLeft:!1},ez={lineStyle:2,lineLength:0,lineWidth:2,bodyColor:"#FFFFFF",quantityColor:"#FFFFFF",bodyBackgroundColor:"#1A91F3",quantityBorderColor:"#1A91F3",quantityBackgroundColor:"#1A91F3",cancellable:!0,cancelTooltipKey:"trade.cancel_order",cancelButtonIconColor:"#6C757DCC",cancelButtonBorderColor:"#1A91F3",cancelButtonBackgroundColor:"#FFFFFF",extendLeft:!0};function eG(){return(eG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(null,arguments)}let eq=function(e){return eE.createElement("svg",eG({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),r||(r=eE.createElement("path",{fill:"currentColor",d:"M12.444 0A3.556 3.556 0 0 1 16 3.556v8.888A3.556 3.556 0 0 1 12.444 16H3.556A3.556 3.556 0 0 1 0 12.444V3.556A3.556 3.556 0 0 1 3.556 0zm-1.181 5.203a.75.75 0 0 0-1.06.034l-3.25 3.467L5.247 7.19a.75.75 0 0 0-.996 1.122l2.25 2a.75.75 0 0 0 1.045-.048l3.75-4a.75.75 0 0 0-.034-1.06"})))};function eQ(){return(eQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(null,arguments)}let eJ=function(e){return eE.createElement("svg",eQ({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),o||(o=eE.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M3.556.5h8.888A3.056 3.056 0 0 1 15.5 3.556v8.888a3.056 3.056 0 0 1-3.056 3.056H3.556A3.056 3.056 0 0 1 .5 12.444V3.556A3.056 3.056 0 0 1 3.556.5"})))};
1function eY(e){let{contentRef:t,widget:i}=e,{t:r}=(0,eD.Bd)(),[o,n]=(0,eE.useState)(null),a=(0,eE.useRef)(null),[l,s]=(0,eE.useState)(()=>{let e=localStorage.getItem(eN.Sj);return null===e||"true"===e}),[c,d]=(0,eE.useState)(()=>{let e=localStorage.getItem(eN.oO);return null===e||"true"===e}),[h,u]=(0,eE.useState)(()=>{let e=localStorage.getItem(eN.Io);return null===e||"true"===e}),[g,C]=(0,eE.useState)(()=>{let e=localStorage.getItem(eN.y9);return null===e||"true"===e}),p=(0,eE.useRef)(l),m=(0,eE.useRef)(c),S=(0,eE.useRef)(h),y=(0,eE.useRef)(g);return((0,eE.useEffect)(()=>{let e=e=>{n(e.detail)};return window.addEventListener("TV_SHOW_PANEL",e),()=>window.removeEventListener("TV_SHOW_PANEL",e)},[]),(0,eE.useEffect)(()=>{let e=e=>{a.current&&(a.current.contains(e.target)||n(null))};return o&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[o]),(0,eE.useEffect)(()=>{if(!o)return;let e=t.current;if(!e)return;let i=e.querySelector("iframe");if(!i)return;let r=()=>n(null);return i.contentWindow.addEventListener("pointerdown",r,{passive:!0}),()=>i.removeEventListener("pointerdown",r)},[o,t]),o)?(0,eR.jsxs)("div",{ref:a,style:{position:"absolute",left:o.left+8,top:o.top+4,minWidth:o.width,borderRadius:8,padding:12,zIndex:30,boxShadow:"0 2px 8px rgba(33, 37, 41, 0.15)"},className:"bg-panel-background border border-panel-outer-border-color",children:[(0,eR.jsxs)("div",{className:"w-full flex items-center cursor-pointer",onClick:()=>{i&&(s(!l),p.current=!p.current,p.current?i.current.refreshMarks():i.current.clearMarks(),localStorage.setItem(eN.Sj,"".concat(p.current)))},children:[!l&&(0,eR.jsx)(eJ,{className:"text-text-light"}),l&&(0,eR.jsx)(eq,{className:"text-text-dark"}),(0,eR.jsx)("span",{className:"text-sm font-normal ml-1.5 text-text-dark ",children:r("trade.mine_trade")})]}),(0,eR.jsxs)("div",{className:"w-full flex items-center cursor-pointer mt-4",onClick:()=>{i&&(d(!c),m.current=!m.current,localStorage.setItem(eN.oO,"".concat(m.current)),window.dispatchEvent(new CustomEvent("TV_OVERLAY_VISIBILITY_CHANGE")))},children:[!c&&(0,eR.jsx)(eJ,{className:"text-text-light"}),c&&(0,eR.jsx)(eq,{className:"text-text-dark"}),(0,eR.jsx)("span",{className:"text-sm font-normal ml-1.5 text-text-dark ",children:r("trade.tp_sl_text")})]}),(0,eR.jsxs)("div",{className:"w-full flex items-center cursor-pointer mt-4",onClick:()=>{i&&(u(!h),S.current=!S.current,localStorage.setItem(eN.Io,"".concat(S.current)),window.dispatchEvent(new CustomEvent("TV_OVERLAY_VISIBILITY_CHANGE")))},children:[!h&&(0,eR.jsx)(eJ,{className:"text-text-light"}),h&&(0,eR.jsx)(eq,{className:"text-text-dark"}),(0,eR.jsx)("span",{className:"text-sm font-normal ml-1.5 text-text-dark ",children:r("trade.enter_price")})]}),(0,eR.jsxs)("div",{className:"w-full flex items-center cursor-pointer mt-4",onClick:()=>{i&&(C(!g),y.current=!y.current,localStorage.setItem(eN.y9,"".concat(y.current)),window.dispatchEvent(new CustomEvent("TV_OVERLAY_VISIBILITY_CHANGE")))},children:[!g&&(0,eR.jsx)(eJ,{className:"text-text-light"}),g&&(0,eR.jsx)(eq,{className:"text-text-dark"}),(0,eR.jsx)("span",{className:"text-sm font-normal ml-1.5 text-text-dark ",children:r("trade.open_orders")})]})]}):null}var eK=i(76055),eZ=i(39580),eX=i(63764),e$=i(57454);let e0=i.p+"static/media/ic_mark_buy.19e9e9e7.svg",e1=i.p+"static/media/ic_mark_sell.17c764cf.svg",e2=Date.UTC(2025,5,1)/1e3,e5=(()=>{let e=new Map,t=new Map,i=new Map,r=Intl.DateTimeFormat().resolvedOptions().timeZone,o={1:"1m",5:"5m",15:"15m",60:"1h",240:"4h",D:"1D",W:"1W","1D":"1D","1W":"1W"},n=(i,r,n,a)=>{let l=o[r]||"1m",s="".concat(i.name,"_").concat(l);(0,eM.Rm)("â
subscribe:",n,s);let c=e=>{if(e.symbol===i.ticker&&e.interval===l){let t={time:e.timestamp,open:+Number(e.open),high:+Number(e.high),low:+Number(e.low),close:+Number(e.close),volume:+Number(e.volume)};(0,eX.gs)(e.symbol,t.close,e.interval,()=>{a(t)})}};eZ.z.subscribeTopic("subscribe","ohlcv",s,c),e.set(n,s),t.set(n,c)};return{onReady:e=>{setTimeout(()=>e({supported_resolutions:["1","5","15","60","240","D","W"],supports_group_request:!1,supports_marks:!0,supports_timescale_marks:!1,supports_time:!0}),0)},resolveSymbol:(e,t)=>{let i=100;switch(e){case"EUR/USD":case"GBP/USD":i=1e5;break;case"XAG/USD":case"USD/JPY":i=1e3}let o={ticker:e,name:e,description:e,session:"24x7",timezone:r,exchange:"XStable",minmov:1,pricescale:i,has_intraday:!0,has_daily:!0,has_weekly_and_monthly:!0,supported_resolutions:["1","5","15","60","240","D","W"],volume_precision:0,data_status:"streaming"};setTimeout(()=>t(o),0)},getBars:async(e,t,i,r,n)=>{try{let{countBack:n,from:a,to:l}=i,s=o[t]||"1m",c=(0,eM.pL)(t),d=e=>e.map(e=>({time:e.timestamp,open:Number(e.open),high:Number(e.high),low:Number(e.low),close:Number(e.close),volume:Number(e.volume)})),h=c>0?900*c:Math.max(l-a,1),u=[],g=l-1;if(g<e2)return void r([],{noData:!0});let C=Number(n),p=Number.isFinite(C)&&C>0?C:void 0;if(void 0!==p){let t=Math.ceil(p/900)+8,i=0;for(;u.length<p&&i<t&&g>=e2;
1){let t=Math.max(e2,g-h),r=await (0,eV.w5)({symbol:e.ticker,interval:s,startTime:1e3*t,endTime:1e3*g});if(r&&r.length>0&&(u=d(r).concat(u)),t<=e2)break;g=t-1,i+=1}u.length>p&&(u=u.slice(-p))}else{let t=Math.max(a,e2);for(;g>t;){let i=Math.max(t,g-h),r=await (0,eV.w5)({symbol:e.ticker,interval:s,startTime:1e3*i,endTime:1e3*g});r&&r.length>0&&(u=d(r).concat(u)),g=i-1}let i=0;for(;0===u.length&&i<604800&&g>=e2;){let t=Math.max(e2,g-h),r=await (0,eV.w5)({symbol:e.ticker,interval:s,startTime:1e3*t,endTime:1e3*g});if(r&&r.length>0&&(u=d(r)),t<=e2)break;g=t,i+=h}}r(u,{noData:0===u.length})}catch(e){n(e)}},subscribeBars:(r,o,a,l)=>{if(i.get(l)){console.warn("â³ Switching in progress, delaying subscribe:",r.name),setTimeout(()=>{n(r,o,l,a),i.delete(l)},60);return}let s=e.get(l),c=t.get(l);s&&c&&(console.log("\uD83D\uDD01 Unsub old topic before new subscribe:",s),eZ.z.unsubscribeTopic("unsubscribe","ohlcv",s,c),e.delete(l),t.delete(l)),setTimeout(()=>{n(r,o,l,a)},50)},unsubscribeBars:r=>{i.set(r,!0);let o=e.get(r),n=t.get(r);o&&n&&(eZ.z.unsubscribeTopic("unsubscribe","ohlcv",o,n),e.delete(r),t.delete(r)),setTimeout(()=>{i.delete(r)},50)},calculateHistoryDepth:()=>void 0,getMarks:async(e,t,i,r,o)=>{let n=localStorage.getItem(eN.Sj);if(!(0,e$.W5)()||n&&"false"===n)return void r([]);let a={symbol:e.ticker,startTime:1e3*t,endTime:1e3*i};r((await (0,eV.vD)(a)).map(e=>{let t=(0,eM.e1)(e.timestamp,o),i="Open";"close"===e.tradeType&&(i="Close");let r="Long";return("short"===e.positionSide&&(r="Short"),"long"===e.side)?{id:e.id,time:t,text:["".concat(i," ").concat(r," at ").concat((0,eM.XU)(e.price))],color:{border:"#03B37D",background:"#03B37D"},labelFontColor:"white",minSize:20,borderWidth:0,showLabelWhenImageLoaded:!1,imageUrl:e0}:{id:e.id,time:t,text:["".concat(i," ").concat(r," at ").concat((0,eM.XU)(e.price))],color:{border:"#E43C5A",background:"#E43C5A"},labelFontColor:"white",minSize:20,borderWidth:0,showLabelWhenImageLoaded:!1,imageUrl:e1}}))},getTimescaleMarks:()=>{},getServerTime:e=>{e(Math.floor(Date.now()/1e3))},searchSymbols:(e,t,i,r)=>{r([])}}})();function e3(e,t){let i={...e};for(let r in t)"object"!=typeof e[r]||null===e[r]||Array.isArray(e[r])?void 0!==t[r]&&(i[r]=t[r]):i[r]=e3(e[r],t[r]);return i}!function(e){e.UnknownAction="UnknownAction",e.Spinner="Spinner",e.Loading="Loading",e.AlertAdd="Alert.Add",e.AlertEdit="Alert.Edit",e.AlertsClone="Alerts.Clone",e.AlertsRemove="Alerts.Remove",e.AlertsRemoveAll="Alerts.RemoveAll",e.AlertsRemoveFiltered="Alerts.RemoveFiltered",e.AlertsRemoveAllInactive="Alerts.RemoveAllInactive",e.AlertsRemoveFires="Alerts.RemoveFires",e.AlertsRestart="Alerts.Restart",e.AlertsRestartAllInactive="Alerts.RestartAllInactive",e.AlertsRestartFilteredInactive="Alerts.RestartFilteredInactive",e.AlertsStop="Alerts.Stop",e.AlertsStopAll="Alerts.StopAll",e.AlertsStopFilteredActive="Alerts.StopFilteredActive",e.AlertsExportFiresToCSV="Alerts.ExportFiresToCSV",e.AlertsLogClear="AlertsLog.Clear",e.ChartAddIndicatorToAllCharts="Chart.AddIndicatorToAllCharts",e.ChartAddSymbolToWatchList="Chart.AddSymbolToWatchList",e.ChartAlertLabelToggleExtendLines="Chart.AlertLabel.ToggleExtendLines",e.ChartApplyIndicatorsToAllCharts="Chart.ApplyIndicatorsToAllCharts",e.ChartIndicatorApplyChildIndicator="Chart.Indicator.ApplyChildIndicator",e.ChartIndicatorApplyFinancials="Chart.Indicator.ApplyFinancials",e.ChartIndicatorAbout="Chart.Indicator.About",e.ChartIndicatorPineLogs="Chart.Indicator.PineLogs",e.ChartIndicatorPineSource="Chart.Indicator.PineSource",e.ChartIndicatorAddFavorites="Chart.Indicator.AddFavorites",e.ChartChangeTimeZone="Chart.ChangeTimeZone",e.ChartClipboardCopyPrice="Chart.Clipboard.CopyPrice",e.ChartClipboardCopyLineTools="Chart.Clipboard.CopyLineTools",e.ChartClipboardCopySource="Chart.Clipboard.CopySource",e.ChartClipboardPasteSource="Chart.Clipboard.PasteSource",e.ChartCrosshairLockVerticalCursor="Chart.Crosshair.LockVerticalCursor",e.ChartCrosshairPlusButtonDrawHorizontalLine="Chart.Crosshair.PlusButton.DrawHorizontalLine",e.ChartCustomActionId="Chart.CustomActionId",e.ChartDialogsShowChangeInterval="Chart.Dialogs.ShowChangeInterval",e.ChartDialogsShowChangeSymbol="Chart.Dialogs.ShowChangeSymbol",e.ChartDialogsShowCompareOrAddSymbol="Chart.Dialogs.ShowCompareOrAddSymbol",e.ChartDialogsShowGeneralSettings="Chart.Dialogs.ShowGeneralSettings",e.ChartDialogsShowGeneralSettingsLegendTab="Chart.Dialogs.ShowGeneralSettings.LegendTab",e.ChartDialogsShowGeneralSettingsSymbolTab="Chart.Dialogs.ShowGeneralSettings.SymbolTab",e.ChartDialogsShowGeneralScalesTab="Chart.Dialogs.ShowGeneralSettings.ScalesTab",e.ChartDialogsShowGeneralSettingsEventsAndAlertsTab="Chart.Dialogs.ShowGeneralSettings.EventsAndAlertsTab",e.ChartDialogsShowGoToDate="Chart.Dialogs.ShowGoToDate",e.ChartDialogsShowInsertIndicators="Chart.Dialogs.ShowInsertIndicators",e.ChartDialogsShowInsertFinancials="Chart.Dialogs.ShowInsertFinancials",e.ChartDialogsShowSymbolInfo="Chart.Dialogs.ShowSymbolInfo",e.ChartDrawingToolbarToggleVisibility="Chart.DrawingToolbar.ToggleVisibility",e.ChartExternalActionId="Chart.ExternalActionId",e.ChartFavoriteDrawingToolsToolbarHide="Chart.FavoriteDrawingToolsToolbar.Hide",e.ChartIndicatorShowSettingsDialog="Chart.Indicator.ShowSettingsDialog",e.ChartLegendToggleLastDayChangeValuesVisibility="Chart.Legend.ToggleLastDayChangeValuesVisibility",e.ChartLinkingGroupSync="Chart.LinkingGroupSync",e.ChartLinkingGroupSyncChangeGroup="Chart.LinkingGroupSync.ChangeGroup",e.ChartLegendToggleBarChangeValuesVisibility="Chart.Legend.ToggleBarChangeValuesVisibility",e.ChartLegendTogglePriceSourceVisibility="Chart.Legend.TogglePriceSourceVisibility",e.ChartLegendToggleIndicatorArgumentsVisibility="Chart.Legend.ToggleIndicatorArgumentsVisibility",e.ChartLegendToggleIndicatorTitlesVisibility="Chart.Legend.ToggleIndicatorTitlesVisibility",e.ChartLegendToggleIndicatorValuesVisibility="Chart.Legend.ToggleIndicatorValuesVisibility",e.ChartLegendToggleOhlcValuesVisibility="Chart.Legend.ToggleOhlcValuesVisibility",e.ChartLegendToggleOpenMarketStatusVisibility="Chart.Legend.ToggleOpenMarketStatusVisibility",e.ChartLegendToggleSymbolVisibility="Chart.Legend.ToggleSymbolVisibility",e.ChartLegendToggleVolumeVisibility="Chart.Legend.ToggleVolumeVisibility",e.ChartLines="Chart.Lines",e.ChartLinesToggleBidAskLinesVisibility="Chart.Lines.ToggleBidAskLinesVisibility",e.ChartLinesToggleHighLowLinesVisibility="Chart.Lines.ToggleHighLowLinesVisibility",e.ChartLinesToggleAverageLineVisibility="Chart.Lines.ToggleAverageLineVisibility",e.ChartLinesTogglePrePostMarketLineVisibility="Chart.Lines.TogglePrePostMarketLineVisibility",e.ChartLinesTogglePrePostMarketPriceLineVisibility="Chart.Lines.TogglePrePostMarketPriceLineVisibility",e.ChartLinesToggleSeriesPrevCloseLineVisibility="Chart.Lines.ToggleSeriesPrevCloseLineVisibility",e.ChartLinesToggleSeriesPriceLineVisibility="Chart.Lines.ToggleSeriesPriceLineVisibility",e.ChartLineToolBarsPatternToggleFlipped="Chart.LineTool.BarsPattern.ToggleFlipped",e.ChartLineToolBarsPatternToggleMirrored="Chart.LineTool.BarsPattern.ToggleMirrored",e.ChartLineToolClone="Chart.LineTool.Clone",e.ChartLineToolCreateLimitOrderFromState="Chart.LineTool.CreateLimitOrderFromState",e.ChartLineToolElliotChangeDegreeProperty="Chart.LineTool.Elliot.ChangeDegreeProperty",e.ChartLineToolNoSync="Chart.LineTool.NoSync",e.ChartLineToolPitchforkChangeTypeToInside="Chart.LineTool.Pitchfork.ChangeTypeToInside",e.ChartLineToolPitchforkChangeTypeToModifiedSchiff="Chart.LineTool.Pitchfork.ChangeTypeToModifiedSchiff",e.ChartLineToolPitchforkChangeTypeToOriginal="Chart.LineTool.Pitchfork.ChangeTypeToOriginal",e.ChartLineToolPitchforkChangeTypeToSchiff="Chart.LineTool.Pitchfork.ChangeTypeToSchiff",e.ChartLineToolSyncInLayout="Chart.LineTool.SyncInLayout",e.ChartLineToolSyncGlobally="Chart.LineTool.SyncGlobally",e.ChartLineToolTemplates="Chart.LineTool.Templates",e.ChartLineToolTemplatesApply="Chart.LineTool.Templates.Apply",e.ChartLineToolTemplatesApplyDefaults="Chart.LineTool.Templates.ApplyDefaults",e.ChartLineToolTemplatesSaveAs="Chart.LineTool.Templates.SaveAs",e.ChartLineToolToolbarChangeFontSizeProperty="Chart.LineTool.Toolbar.ChangeFontSizeProperty",e.ChartLineToolToolbarChangeLineStyleToDashed="Chart.LineTool.Toolbar.ChangeLineStyleToDashed",e.ChartLineToolToolbarChangeLineStyleToDotted="Chart.LineTool.Toolbar.ChangeLineStyleToDotted",e.ChartLineToolToolbarChangeLineStyleToSolid="Chart.LineTool.Toolbar.ChangeLineStyleToSolid",e.ChartMarksToggleVisibility="Chart.Marks.ToggleVisibility",e.ChartMoveChartInLayout="Chart.MoveChartInLayout",e.ChartMoveChartInLayoutBack="Chart.MoveChartInLayout.Back",e.ChartMoveChartInLayoutForward="Chart.MoveChartInLayout.Forward",e.ChartTpoResetAllMergesAndSplits="Chart.TPO.ResetAllMergesAndSplits",e.ChartTpoSplitBlock="Chart.TPO.SplitBlock",e.ChartTpoMergeBlock="Chart.TPO.MergeBlock",e.ChartObjectTreeShow="Chart.ObjectTree.Show",e.ChartDataWindowShow="Chart.DataWindow.Show",e.ChartPaneControlsDeletePane="Chart.PaneControls.DeletePane",e.ChartPaneControlsMaximizePane="Chart.PaneControls.MaximizePane",e.ChartPaneControlsMinimizePane="Chart.PaneControls.MinimizePane",e.ChartPaneControlsMovePaneDown="Chart.PaneControls.MovePaneDown",e.ChartPaneControlsMovePaneUp="Chart.PaneControls.MovePaneUp",e.ChartPaneControlsCollapsePane="Chart.PaneControls.CollapsePane",e.ChartPaneControlsRestorePane="Chart.PaneControls.RestorePane",e.ChartPriceScaleLabels="Chart.PriceScale.Labels",e.ChartPriceScaleLabelsToggleBidAskLabelsVisibility="Chart.PriceScale.Labels.ToggleBidAskLabelsVisibility",e.ChartPriceScaleLabelsToggleHighLowPriceLabelsVisibility="Chart.PriceScale.Labels.ToggleHighLowPriceLabelsVisibility",e.ChartPriceScaleLabelsToggleAveragePrice
1LabelVisibility="Chart.PriceScale.Labels.ToggleAveragePriceLabelVisibility",e.ChartPriceScaleLabelsToggleIndicatorsNameLabelsVisibility="Chart.PriceScale.Labels.ToggleIndicatorsNameLabelsVisibility",e.ChartPriceScaleLabelsToggleIndicatorsValueLabelsVisibility="Chart.PriceScale.Labels.ToggleIndicatorsValueLabelsVisibility",e.ChartPriceScaleLabelsTogglePrePostMarketLabelsVisibility="Chart.PriceScale.Labels.TogglePrePostMarketLabelsVisibility",e.ChartPriceScaleLabelsToggleNoOverlappingLabelsVisibility="Chart.PriceScale.Labels.ToggleNoOverlappingLabelsVisibility",e.ChartPriceScaleLabelsToggleSeriesLastValueVisibility="Chart.PriceScale.Labels.ToggleSeriesLastValueVisibility",e.ChartPriceScaleLabelsToggleSymbolNameLabelsVisibility="Chart.PriceScale.Labels.ToggleSymbolNameLabelsVisibility",e.ChartPriceScaleLabelsToggleSymbolPrevCloseValueVisibility="Chart.PriceScale.Labels.ToggleSymbolPrevCloseValueVisibility",e.ChartPriceScaleMergeAllScales="Chart.PriceScale.MergeAllScales",e.ChartPriceScaleMergeAllScalesToLeft="Chart.PriceScale.MergeAllScalesToLeft",e.ChartPriceScaleMergeAllScalesToRight="Chart.PriceScale.MergeAllScalesToRight",e.ChartPriceScaleMoveToLeft="Chart.PriceScale.MoveToLeft",e.ChartPriceScaleMoveToRight="Chart.PriceScale.MoveToRight",e.ChartPriceScaleReset="Chart.PriceScale.Reset",e.ChartPriceScaleToggleAddOrderPlusButtonVisibility="Chart.PriceScale.ToggleAddOrderPlusButtonVisibility",e.ChartPriceScaleToggleAutoScale="Chart.PriceScale.ToggleAutoScale",e.ChartPriceScaleToggleAutoScaleSeriesOnly="Chart.PriceScale.ToggleAutoScaleSeriesOnly",e.ChartPriceScaleToggleCountdownToBarCloseVisibility="Chart.PriceScale.ToggleCountdownToBarCloseVisibility",e.ChartPriceScaleToggleIndexedTo100="Chart.PriceScale.ToggleIndexedTo100",e.ChartPriceScaleToggleInvertScale="Chart.PriceScale.ToggleInvertScale",e.ChartPriceScaleToggleLogarithmic="Chart.PriceScale.ToggleLogarithmic",e.ChartPriceScaleTogglePercentage="Chart.PriceScale.TogglePercentage",e.ChartPriceScaleToggleRegular="Chart.PriceScale.ToggleRegular",e.ChartRedo="Chart.Redo",e.ChartRemoveAllIndicators="Chart.RemoveAllIndicators",e.ChartRemoveAllIndicatorsAndLineTools="Chart.RemoveAllIndicatorsAndLineTools",e.ChartRemoveAllLineTools="Chart.RemoveAllLineTools",e.ChartScalesReset="Chart.Scales.Reset",e.ChartScalesToggleLockPriceToBarRatio="Chart.Scales.ToggleLockPriceToBarRatio",e.ChartScrollToLineTool="Chart.ScrollToLineTool",e.ChartSelectedObjectHide="Chart.SelectedObject.Hide",e.ChartSelectedObjectRemove="Chart.SelectedObject.Remove",e.ChartSelectedObjectShow="Chart.SelectedObject.Show",e.ChartSelectedObjectShowSettingsDialog="Chart.SelectedObject.ShowSettingsDialog",e.ChartSelectedObjectToggleLocked="Chart.SelectedObject.ToggleLocked",e.ChartSeriesPriceScaleToggleAutoScale="Chart.Series.PriceScale.ToggleAutoScale",e.ChartSeriesPriceScaleToggleIndexedTo100="Chart.Series.PriceScale.ToggleIndexedTo100",e.ChartSeriesPriceScaleToggleInvertPriceScale="Chart.Series.PriceScale.ToggleInvertPriceScale",e.ChartSeriesPriceScaleToggleLogarithmic="Chart.Series.PriceScale.ToggleLogarithmic",e.ChartSeriesPriceScaleTogglePercentage="Chart.Series.PriceScale.TogglePercentage",e.ChartSeriesPriceScaleToggleRegular="Chart.Series.PriceScale.ToggleRegular",e.ChartSessionBreaksToggleVisibility="Chart.SessionBreaks.ToggleVisibility",e.ChartSetSession="Chart.SetSession",e.ChartSourceChangePriceScale="Chart.Source.ChangePriceScale",e.ChartSourceMergeDown="Chart.Source.MergeDown",e.ChartSourceMergeUp="Chart.Source.MergeUp",e.ChartSourceMoveToNoScale="Chart.Source.MoveToNoScale",e.ChartSourceMoveToOtherScale="Chart.Source.MoveToOtherScale",e.ChartSourceMoveToPane="Chart.Source.MoveToPane",e.ChartSourceUnmergeDown="Chart.Source.UnmergeDown",e.ChartSourceUnmergeUp="Chart.Source.UnmergeUp",e.ChartSourceVisualOrder="Chart.Source.VisualOrder",e.ChartSourceVisualOrderBringForward="Chart.Source.VisualOrder.BringForward",e.ChartSourceVisualOrderBringToFront="Chart.Source.VisualOrder.BringToFront",e.ChartSourceVisualOrderSendBackward="Chart.Source.VisualOrder.SendBackward",e.ChartSourceVisualOrderSendToBack="Chart.Source.VisualOrder.SendToBack",e.ChartSourceResetInputPoints="Chart.Source.ResetInputPoints",e.ChartThemeApply="Chart.Theme.Apply",e.ChartThemeApplyCustom="Chart.Theme.Apply.Custom",e.ChartThemeSaveAs="Chart.Theme.SaveAs",e.ChartTimeScaleReset="Chart.TimeScale.Re
1set",e.ChartUndo="Chart.Undo",e.ChartShowAllIdeas="Chart.ShowAllIdeas",e.ChartShowIdeasOfFollowedUsers="Chart.ShowIdeasOfFollowedUsers",e.ChartShowMyIdeasOnly="Chart.ShowMyIdeasOnly",e.ChartToggleVisibilityAllLineTools="Chart.ToggleVisibility.AllLineTools",e.ChartToggleVisibilityContinuousContractSwitch="Chart.ToggleVisibility.ContinuousContractSwitch",e.ChartToggleVisibilityContractExpiration="Chart.ToggleVisibility.ContractExpiration",e.ChartToggleVisibilityDividends="Chart.ToggleVisibility.Dividends",e.ChartToggleVisibilityEarnings="Chart.ToggleVisibility.Earnings",e.ChartToggleVisibilityEconomicEvents="Chart.ToggleVisibility.EconomicEvents",e.ChartToggleVisibilitySplits="Chart.ToggleVisibility.Splits",e.ChartToggleVisibilityLatestNewsAndMinds="Chart.ToggleVisibility.LatestNewsAndMinds",e.ChartSourceIntervalsVisibility="Chart.Source.IntervalsVisibility",e.ChartSourceIntervalsVisibilityCurrentAndAbove="Chart.Source.IntervalsVisibility.CurrentAndAbove",e.ChartSourceIntervalsVisibilityCurrentAndBelow="Chart.Source.IntervalsVisibility.CurrentAndBelow",e.ChartSourceIntervalsVisibilityOnlyCurrent="Chart.Source.IntervalsVisibility.Current",e.ChartSourceIntervalsVisibilityAll="Chart.Source.IntervalsVisibility.All",e.NoteCreate="Note.Create",e.NoteEdit="Note.Edit",e.NoteRemove="Note.Remove",e.ObjectsTreeCreateGroup="ObjectsTree.CreateGroup",e.ObjectsTreeRemoveItem="ObjectsTree.RemoveItem",e.ObjectsTreeRenameItem="ObjectsTree.RenameItem",e.ObjectsTreeToggleItemLocked="ObjectsTree.ToggleItemLocked",e.ObjectsTreeToggleItemVisibility="ObjectsTree.ToggleItemVisibility",e.PineEditorConsoleCopyMessage="PineEditor.Console.CopyMessage",e.PineEditorConsoleToggleVisibility="PineEditor.Console.ToggleVisibility",e.PineEditorConsoleClear="PineEditor.Console.Clear",e.ScreenerAddSymbolToCompare="Screener.AddSymbolToCompare",e.ScreenerColumnRemove="Screener.Column.Remove",e.ScreenerFilterChange="Screener.Filter.Change",e.ScreenerFilterReset="Screener.Filter.Reset",e.ScreenerOpenSymbolChart="Screener.OpenSymbolChart",e.ScreenerOpenSymbolOverview="Screener.OpenSymbolOverview",e.ScreenerToggleVisibilityCurrency="Screener.ToggleVisibility.Currency",e.ScreenerToggleVisibilityDescription="Screener.ToggleVisibility.Description",e.ScreenerToggleVisibilityRating="Screener.ToggleVisibility.Rating",e.ScreenerToggleVisibilitySymbolType="Screener.ToggleVisibility.SymbolType",e.TradingCancelOrder="Trading.CancelOrder",e.TradingClosePosition="Trading.ClosePosition",e.TradingCustomActionId="Trading.CustomActionId",e.TradingDOMPlaceLimitOrder="Trading.DOMPlaceLimitOrder",e.TradingDOMPlaceMarketOrder="Trading.DOMPlaceMarketOrder",e.TradingDOMPlaceStopLimitOrder="Trading.DOMPlaceStopLimitOrder",e.TradingDOMPlaceStopOrder="Trading.DOMPlaceStopOrder",e.TradingEditOrder="Trading.EditOrder",e.TradingModifyPosition="Trading.ModifyPosition",e.TradingReversePosition="Trading.ReversePosition",e.TradingSellBuyButtonsToggleVisibility="Trading.SellBuyButtonsToggleVisibility",e.TradingTradeFromChart="Trading.TradeFromChart",e.TradingNoOverlapM
1ode="Trading.NoOverlapMode",e.TradingShowSelectBrokerPanel="Trading.ShowSelectBrokerPanel",e.TradingOrderTitle="Trading.OrderTitle",e.TradingPositionTitle="Trading.PositionTitle",e.WatchlistActions="Watchlist.Actions",e.WatchlistAddSelectedSymbolsToCompare="Watchlist.AddSelectedSymbolsToCompare ",e.WatchlistAddSymbolToCompare="Watchlist.AddSymbolToCompare",e.WatchlistAddSymbolToSection="Watchlist.AddSymbolToSection",e.WatchlistChangeFlaggedGroupColor="Watchlist.ChangeFlaggedGroupColor",e.WatchlistAddSymbol="Watchlist.AddSymbol",e.WatchlistCreate="Watchlist.Create",e.WatchlistAddSelectedSymbols="Watchlist.AddSelectedSymbols",e.WatchlistAddSelectedSymbolsLists="Watchlist.AddSelectedSymbols.Lists",e.WatchlistGetDisplayedTickerDescription="Watchlist.GetDisplayedTickerDescription",e.WatchlistCreateSection="Watchlist.CreateSection",e.WatchlistFlagSelectedSymbols="Watchlist.FlagSelectedSymbols",e.WatchlistFlagSymbol="Watchlist.FlagSymbol",e.WatchlistOpenSymbolChart="Watchlist.OpenSymbolChart",e.WatchlistOpenSymbolOverview="Watchlist.OpenSymbolOverview",e.WatchlistRemoveSection="Watchlist.RemoveSection",e.WatchlistRemoveSymbol="Watchlist.RemoveSymbol",e.WatchlistRenameSection="Watchlist.RenameSection",e.WatchlistUnflagAllSymbols="Watchlist.UnflagAllSymbols",e.WatchlistUnflagSelectedSymbols="Watchlist.UnflagSelectedSymbols",e.WatchlistUnflagSymbol="Watchlist.UnflagSymbol"}(n||(n={})),(a||(a={})).extractErrorReason=function(e){return e.params[1]},function(e){e.Default="default",e.FullSingleSession="full_single_session"}(l||(l={})),function(e){e.PeriodBack="period-back",e.TimeRange="time-range"}(s||(s={})),function(e){e.PeriodBack="period-back",e.TimeRange="time-range"}(c||(c={})),function(e){e.Open="market",e.Pre="pre_market",e.Post="post_market",e.Close="out_of_session",e.Holiday="holiday"}(d||(d={})),function(e){e.Separator="separator",e.Action="action"}(h||(h={})),function(e){e[e.All=0]="All",e[e.BarMarks=1]="BarMarks",e[e.TimeScaleMarks=2]="TimeScaleMarks"}(u||(u={})),function(e){e[e.Line=0]="Line",e[e.Histogram=1]="Histogram",e[e.Cross=3]="Cross",e[e.Area=4]="Area",e[e.Columns=5]="Columns",e[e.Circles=6]="Circles",e[e.LineWithBreaks=7]="LineWithBreaks",e[e.AreaWithBreaks=8]="AreaWithBreaks",e[e.StepLine=9]="StepLine",e[e.StepLineWithDiamonds=10]="StepLineWithDiamonds",e[e.StepLineWithBreaks=11]="StepLineWithBreaks"}(g||(g={})),function(e){e.Line="line",e.Colorer="colorer",e.BarColorer="bar_colorer",e.BgColorer="bg_colorer",e.TextColorer="text_colorer",e.OhlcColorer="ohlc_colorer",e.CandleWickColorer="wick_colorer",e.CandleBorderColorer="border_colorer",e.UpColorer="up_colorer",e.DownColorer="down_colorer",e.Shapes="shapes",e.Chars="chars",e.Arrows="arrows",e.Data="data",e.DataOffset="dataoffset",e.OhlcOpen="ohlc_open",e.OhlcHigh="ohlc_high",e.OhlcLow="ohlc_low",e.OhlcClose="ohlc_close"}(C||(C={})),(p||(p={})).AlertCondition="alertcondition",function(e){e[e.None=0]="None",e[e.Pane=1]="Pane",e[e.DataWindow=2]="DataWindow",e[e.PriceScale=4]="PriceScale",e[e.StatusLine=8]="StatusLine",e[e.All=15]="All"}(m||(m={})),function(e){e[e.None=0]="None",e[e.Pane=1]="Pane",e[e.DataWindow=2]="DataWindow",e[e.PriceScale=4]="PriceScale",e[e.StatusLine=8]="StatusLine",e[e.All=15]="All"}(S||(S={})),function(e){e.OhlcBars="ohlc_bars",e.OhlcCandles="ohlc_candles"}(y||(y={})),function(e){e.Auto="auto",e.Tiny="tiny",e.Small="small",e.Normal="normal",e.Large="large",e.Huge="huge"}(_||(_={})),function(e){e.Integer="integer",e.Float="float",e.Price="price",e.Bool="bool",e.Text="text",e.Symbol="symbol",e.Session="session",e.Source="source",e.Resolution="resolution",e.Time="time",e.BarTime="bar_time",e.Color="color",e.Textarea="text_area"}(b||(b={})),function(e){e[e.None=0]="None",e[e.DataWindow=2]="DataWindow",e[e.StatusLine=8]="StatusLine",e[e.All=15]="All"}(T||(T={})),function(e){e.InitialCapital="initial_capital",e.Currency="currency",e.DefaultQTYValue="default_qty_value",e.DefaultQTYType="default_qty_type",e.Pyramiding="pyramiding",e.ComissionValue="commission_value",e.ComissionType="commission_type",e.BacktestFillLimitsAssumtion="backtest_fill_limits_assumption",e.Slippage="slippage",e.CalcOnOrderFills="calc_on_order_fills",e.CalcOnEveryTick="calc_on_every_tick",e.MarginLong="margin_long",e.MarginShort="margin_short",e.UseBarMagnifier="use_bar_magnifier",e.ProcessOrdersOnClose="process_orders_on_close",e.FillOrdersOnStandardOHLC="fill_orders_on_standard_ohlc"}(f||(f={})),function(e){e.Fixed="fixed",e.CashPerOrder="cash_per_order",e.PercentOfEquity="percent_of_equity"}(L||(L={})),function(e){e.Percent="percent",e.CashPerContract="cash_per_contract",e.CashPerOrder="cash_per_order"}(P||(P={})),function(e){e.FirstBar="first_visible_bar_time",e.LastBar="last_visible_bar_time",e.Realtime="subscribeRealtime"}(w||(w={})),function(e){e.FgColor="__chart_fgcolor",e.BgColor="__chart_bgcolor"}(v||(v={})),function(e){e[e.Right=0]="Right",e[e.Left=1]="Left",e[e.NoScale=2]="NoScale"}(A||(A={})),function(e){e[e.Right=0]="Right",e[e.Left=1]="Left",e[e.None=2]="None"}(I||(I={})),function(e){e.TypePlots="plot_plot",e.TypeHlines="hline_hline"}(O||(O={})),function(e){e[e.StopLoss=0]="StopLoss",e[e.TrailingStop=1]="TrailingStop",e[e.GuaranteedStop=2]="GuaranteedStop"}(k||(k={})),(R||(R={})).Symbol="symbol",function(e){e[e.PopUp=0]="PopUp",e[e.Notification=1]="Notification"}(F||(F={})),function(e){e[e.CONNECTED=1]="CONNECTED",e[e.CONNECTING=2]="CONNECTING",e[e.DISCONNECTED=3]="DISCONNECTED",e[e.ERROR=4]="ERROR"}(E||(E={})),function(e){e[e.Connected=1]="Connected",e[e.Connecting=2]="Connecting",e[e.Disconnected=3]="Disconnected",e[e.Error=4]="Error"}(D||(D={})),function(e){e[e.LIMIT=1]="LIMIT",e[e.MARKET=2]="MARKET",e[e.STOP=3]="STOP",e[e.STOPLIMIT=4]="STOPLIMIT"}(B||(B={})),function(e){e[e.Limit=1]="Limit",e[e.Market=2]="Market",e[e.Stop=3]="Stop",e[e.StopLimit=4]="StopLimit"}(V||(V={})),function(e){e[e.BUY=1]="BUY",e[e.SELL=-1]="SELL"}(W||(W={})),function(e){e[e.Buy=1]="Buy",e[e.Sell=-1]="Sell"}(x||(x={})),function(e){e[e.CANCELED=1]="CANCELED",e[e.FILLED=2]="FILLED",e[e.INACTIVE=3]="INACTIVE",e[e.PLACING=4]="PLACING",e[e.REJECTED=5]="REJECTED",e[e.WORKING=6]="WORKING"}(N||(N={})),function(e){e[e.ALL=0]="ALL",e[e.CANCELED=1]="CANCELED",e[e.FILLED=2]="FILLED",e[e.INACTIVE=3]="INACTIVE",e[e.REJECTED=5]="REJECTED",e[e.WORKING=6]="WORKING"}(M||(M={})),function(e){e[e.Canceled=1]="Canceled",e[e.Filled=2]="Filled",e[e.Inactive=3]="Inactive",e[e.Placing=4]="Placing",e[e.Rejected=5]="Rejected",e[e.Working=6]="Working"}(U||(U={})),function(e){e[e.All=0]="All",e[e.Canceled=1]="Canceled",e[e.Filled=2]="Filled",e[e.Inactive=3]="Inactive",e[e.Rejected=5]="Rejected",e[e.Working=6]="Working"}(j||(j={})),function(e){e[e.Order=1]="Order",e[e.Position=2]="Position"}(H||(H={})),function(e){e[e.ORDER=1]="ORDER",e[e.POSITION=2]="POSITION"}(z||(z={})),function(e){e[e.Order=1]="Order",e[e.Position=2]="Position",e[e.Indiv
1idualPosition=3]="IndividualPosition"}(G||(G={})),function(e){e[e.StopLoss=0]="StopLoss",e[e.TakeProfit=1]="TakeProfit",e[e.TrailingStop=2]="TrailingStop",e[e.GuaranteedStop=3]="GuaranteedStop"}(q||(q={})),function(e){e[e.LIMITPRICE=1]="LIMITPRICE",e[e.STOPPRICE=2]="STOPPRICE",e[e.TAKEPROFIT=3]="TAKEPROFIT",e[e.STOPLOSS=4]="STOPLOSS"}(Q||(Q={})),function(e){e[e.LimitPrice=1]="LimitPrice",e[e.StopPrice=2]="StopPrice",e[e.TakeProfit=3]="TakeProfit",e[e.StopLoss=4]="StopLoss",e[e.Quantity=5]="Quantity"}(J||(J={})),function(e){e[e.ERROR=0]="ERROR",e[e.SUCCESS=1]="SUCCESS"}(Y||(Y={})),function(e){e[e.Error=0]="Error",e[e.Success=1]="Success"}(K||(K={})),function(e){e[e.Demo=1]="Demo",e[e.Real=0]="Real"}(Z||(Z={})),function(e){e.Information="information",e.Warning="warning",e.Error="error"}(X||(X={})),function(e){e.Demo="demo",e.Live="live"}($||($={})),function(e){e[e.LogOut=0]="LogOut",e[e.FailedRestoring=1]="FailedRestoring",e[e.Offline=2]="Offline",e[e.APIError=3]="APIError",e[e.TwoFactorRequired=4]="TwoFactorRequired",e[e.CancelAuthorization=5]="CancelAuthorization",e[e.TimeOutForAuthorization=6]="TimeOutForAuthorization",e[e.OauthError=7]="OauthError",e[e.BrokenConnection=8]="BrokenConnection",e[e.FailedSignIn=9]="FailedSignIn"}(ee||(ee={})),function(e){e[e.None=0]="None",e[e.Pips=1]="Pips",e[e.Ticks=2]="Ticks"}(et||(et={})),function(e){e.Halted="HALTED",e.NotShortable="NOT-SHORTABLE",e.HardToBorrow="HARD-TO-BORROW"}(ei||(ei={})),function(e){e[e.Limit=1]="Limit",e[e.Stop=2]="Stop"}(er||(er={})),function(e){e.Disallowed="disallowed",e.Allowed="allowed",e.AllowedWithWarning="allowed_with_warning"}(eo||(eo={})),function(e){e.PlaceOrder="place_order",e.ModifyOrder="modify_order",e.CancelOrder="cancel_order",e.ModifyPosition="modify_position",e.ClosePosition="close_position",e.ModifyIndividualPosition="modify_individual_position",e.CloseIndividualPosition="close_individual_position",e.CloseNetPosition="close_net_position"}(en||(en={})),function(e){e.Date="date",e.DateOrDateTime="dateOrDateTime",e.Default="default",e.Fixed="fixed",e.FixedInCurrency="fixedInCurrency",e.VariablePrecision="variablePrecision",e.FormatQuantity="formatQuantity",e.FormatPrice="formatPrice",e.FormatPriceForexSup="formatPriceForexSup",e.FormatPriceInCurrency="formatPriceInCurrency",e.IntegerSeparated="integerSeparated",e.LocalDate="localDate",e.LocalDateOrDateTime="localDateOrDateTime",e.Percentage="percentage",e.Pips="pips",e.Profit="profit",e.ProfitInInstrumentCurrency="profitInInstrumentCurrency",e.Side="side",e.PositionSide="positionSide",e.Status="status",e.Symbol="symbol",e.Text="text",e.Type="type",e.MarginPercent="marginPercent",e.Empty="empty"}(ea||(ea={})),function(e){e[e.LastPriceAndPercentageValue=0]="LastPriceAndPercentageValue",e[e.LastValueAccordingToScale=1]="LastValueAccordingToScale"}(el||(el={})),function(e){e[e.Solid=0]="Solid",e[e.Dotted=1]="Dotted",e[e.Dashed=2]="Dashed"}(es||(es={})),function(e){e[e.Offline=0]="Offline",e[e.Resolving=1]="Resolving",e[e.Loading=2]="Loading",e[e.Ready=3]="Ready",e[e.InvalidSymbol=4]="InvalidSymbol",e[e.Snapshot=5]="Snapshot",e[e.EOD=6]="EOD",e[e.Pulse=7]="Pulse",e[e.Delayed=8]="Delayed",e[e.DelayedSteaming=9]="DelayedSteaming",e[e.NoBars=10]="NoBars",e[e.Replay=11]="Replay",e[e.Error=12]="Error",e[e.CalculationError=13]="CalculationError",e[e.UnsupportedResolution=14]="UnsupportedResolution"}(ec||(ec={})),function(e){e[e.Markers=0]="Markers",e[e.Stepline=1]="Stepline",e[e.Simple=2]="Simple"}(ed||(ed={})),function(e){e[e.Bar=0]="Bar",e[e.Candle=1]="Candle",e[e.Line=2]="Line",e[e.Area=3]="Area",e[e.Renko=4]="Renko",e[e.Kagi=5]="Kagi",e[e.PnF=6]="PnF",e[e.LineBreak=7]="LineBreak",e[e.HeikinAshi=8]="HeikinAshi",e[e.HollowCandle=9]="HollowCandle",e[e.Baseline=10]="Baseline",e[e.Range=11]="Range",e[e.HiLo=12]="HiLo",e[e.Column=13]="Column",e[e.LineWithMarkers=14]="LineWithMarkers",e[e.Stepline=15]="Stepline",e[e.HLCArea=16]="HLCArea",e[e.VolFootprint=17]="VolFootprint",e[e.TPO=18]="TPO",e[e.VolCandle=19]="VolCandle",e[e.SVP=20]="SVP"}(eh||(eh={})),function(e){e.TwentyFourHours="24-hours",e.TwelveHours="12-hours"}(eu||(eu={})),function(e){e[e.Initial=2]="Initial",e[e.SeriesZOrderIsAlwaysZero=3]="SeriesZOrderIsAlwaysZero",e[e.Current=3]="Current"}(eg||(eg={})),function(e){e[e.Money=0]="Money",e[e.Pips=1]="Pips",e[e.Percentage=2]="Percentage"}(eC||(eC={})),function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(ep||(ep={}
1)),eC.Money,eC.Money,ep.Right,function(e){e[e.Background=0]="Background",e[e.Foreground=1]="Foreground",e[e.Topmost=2]="Topmost"}(em||(em={})),function(e){e[e.Unavailable=0]="Unavailable",e[e.AvailableReadonlyAlwaysDisabled=1]="AvailableReadonlyAlwaysDisabled",e[e.AvailableReadonlyAlwaysEnabled=2]="AvailableReadonlyAlwaysEnabled",e[e.Available=3]="Available"}(eS||(eS={})),function(e){e[e.ViewportChangeUserAction=0]="ViewportChangeUserAction",e[e.DataUpdate=1]="DataUpdate",e[e.SeriesRestart=2]="SeriesRestart",e[e.SeriesCompleted=3]="SeriesCompleted",e[e.StudyCreation=4]="StudyCreation"}(ey||(ey={})),function(e){e[e.Chart=0]="Chart"}(e_||(e_={})),function(e){e.AlwaysOn="alwaysOn",e.VisibleOnMouseOver="visibleOnMouseOver",e.AlwaysOff="alwaysOff"}(eb||(eb={})),function(e){e[e.Normal=0]="Normal",e[e.Log=1]="Log",e[e.Percentage=2]="Percentage",e[e.IndexedTo100=3]="IndexedTo100"}(eT||(eT={})),function(e){e[e.Bars=0]="Bars",e[e.Candles=1]="Candles",e[e.Line=2]="Line",e[e.Area=3]="Area",e[e.HeikenAshi=8]="HeikenAshi",e[e.HollowCandles=9]="HollowCandles",e[e.Baseline=10]="Baseline",e[e.HiLo=12]="HiLo",e[e.Column=13]="Column",e[e.LineWithMarkers=14]="LineWithMarkers",e[e.Stepline=15]="Stepline",e[e.HLCArea=16]="HLCArea",e[e.VolCandle=19]="VolCandle",e[e.Renko=4]="Renko",e[e.Kagi=5]="Kagi",e[e.PointAndFigure=6]="PointAndFigure",e[e.LineBreak=7]="LineBreak"}(ef||(ef={})),(eL||(eL={})).Value="_seriesId",function(e){e.LeftToRight="left_to_right",e.RightToLeft="right_to_left"}(eP||(eP={})),function(e){e.Relative="relative",e.Absolute="absolute"}(ew||(ew={})),function(e){e.UpDown="Up/Down",e.Total="Total",e.Delta="Delta"}(ev||(ev={})),function(e){e.AboveBar="AboveBar",e.BelowBar="BelowBar",e.Top="Top",e.Bottom="Bottom",e.Right="Right",e.Left="Left",e.Absolute="Absolute",e.AbsoluteUp="AbsoluteUp",e.AbsoluteDown="AbsoluteDown"}(eA||(eA={})),function(e){e.Left="left",e.Center="center",e.Right="right"}(eI||(eI={})),function(e){e.Top="top",e.Middle="middle",e.Bottom="bottom"}(eO||(eO={})),function(e){e[e.Solid=0]="Solid",e[e.Dotted=1]="Dotted",e[e.Dashed=2]="Dashed"}(ek||(ek={}));let e4={width:800,height:500,interval:"1D",timezone:"Etc/UTC",container:"",library_path:"",locale:"en",widgetbar:{details:!1,watchlist:!1,news:!1,datawindow:!1,watchlist_settings:{default_symbols:[]}},overrides:{"mainSeriesProperties.showCountdown":!1},studies_overrides:{},trading_customization:{position:{},order:{}},brokerConfig:{configFlags:{}},fullscreen:!1,autosize:!1,disabled_features:[],enabled_features:[],debug:!1,logo:{},time_frames:[{text:"5y",resolution:"1W"},{text:"1y",resolution:"1W"},{text:"6m",resolution:"120"},{text:"3m",resolution:"60"},{text:"1m",resolution:"30"},{text:"5d",resolution:"5"},{text:"1d",resolution:"1"}],client_id:"0",user_id:"0",charts_storage_api_version:"1.0",favorites:{intervals:[],chartTypes:[],indicators:[],drawingTools:[]}},e6=JSON.parse('[{"iso":"ar","dir":"rtl","language":"ar"},{"iso":"pt","dir":"ltr","language":"pt"},{"iso":"ca","dir":"ltr","language":"ca_ES"},{"iso":"cs","dir":"ltr","language":"cs"},{"iso":"de","dir":"ltr","language":"de"},{"iso":"en","dir":"ltr","language":"en"},{"iso":"es","dir":"ltr","language":"es"},{"iso":"fa","dir":"rtl","language":"fa"},{"iso":"fr","dir":"ltr","language":"fr"},{"iso":"he","dir":"rtl","language":"he_IL"},{"iso":"hu","dir":"ltr","language":"hu_HU"},{"iso":"id","dir":"ltr","language":"id_ID"},{"iso":"en","dir":"ltr","language":"en"},{"iso":"it","dir":"ltr","language":"it"},{"iso":"ja","dir":"ltr","language":"ja"},{"iso":"ko","dir":"ltr","language":"ko"},{"iso":"ms","dir":"ltr","language":"ms_MY"},{"iso":"pl","dir":"ltr","language":"pl"},{"iso":"ru","dir":"ltr","language":"ru"},{"iso":"sv","dir":"ltr","language":"sv"},{"iso":"th","dir":"ltr","language":"th"},{"iso":"tr","dir":"ltr","language":"tr"},{"iso":"vi","dir":"ltr","language":"vi"},{"iso":"zh-Hans","dir":"ltr","language":"zh"},{"iso":"zh-Hant","dir":"ltr","language":"zh_TW"},{"iso":"el","dir":"ltr","language":"el"},{"iso":"nl","dir":"ltr","language":"nl_NL"},{"iso":"ro","dir":"ltr","language":"ro"}]'),e7=!1,e8=class{setDebugMode(e){this._innerAPI().setDebugMode(e)}onChartReady(e){this._ready?e.call(this):this._readyHandlers.push(e)}headerReady(){return this._innerWindowLoaded.then(()=>this._innerWindow().headerReady())}onGrayedObjectClicked(e){this._doWhenInnerApiLoaded(t=>{t.onGrayedObjectClicked(e)})}onShortcut(e,t){this._doWhenInnerWindowLoaded(i=>{i.createShortcutAction(e,t)})}subscribe(e,t){this._doWhenInnerApiLoaded(i=>{i.subscribe(e,t)})}unsubscribe(e,t){this._doWhenInnerApiLoaded(i=>{i.unsubscribe(e,t)})}chart(e){return this._innerAPI().chart(e)}getLanguage(){return this._options.locale}setSymbol(e,t,i){this._innerAPI().changeSymbol(e,t,i)}remove(){window.removeEventListener("resize",this._onWindowResize),this._readyHandlers.splice(0,this._readyHandlers.length),delete window[this._id],this._iFrame.parentNode&&this._iFrame.parentNode.removeChild(this._iFrame)}
1closePopupsAndDialogs(){this._doWhenInnerApiLoaded(e=>{e.closePopupsAndDialogs()})}selectLineTool(e,t){this._innerAPI().selectLineTool(e,t)}selectedLineTool(){return this._innerAPI().selectedLineTool()}save(e,t){this._innerAPI().saveChart(e,t)}load(e,t){this._innerAPI().loadChart({json:e,extendedData:t})}getSavedCharts(e){this._innerAPI().getSavedCharts(e)}loadChartFromServer(e){this._innerAPI().loadChartFromServer(e)}saveChartToServer(e,t,i){this._innerAPI().saveChartToServer(e,t,i)}removeChartFromServer(e,t){this._innerAPI().removeChartFromServer(e,t)}onContextMenu(e){this._doWhenInnerApiLoaded(t=>{t.onContextMenu(e)})}createButton(e){return this._innerWindow().createButton(e)}createDropdown(e){return this._innerWindow().createDropdown(e)}showNoticeDialog(e){this._doWhenInnerApiLoaded(t=>{t.showNoticeDialog(e)})}showConfirmDialog(e){this._doWhenInnerApiLoaded(t=>{t.showConfirmDialog(e)})}showLoadChartDialog(){this._innerAPI().showLoadChartDialog()}showSaveAsChartDialog(){this._innerAPI().showSaveAsChartDialog()}symbolInterval(){return this._innerAPI().getSymbolInterval()}mainSeriesPriceFormatter(){return this._innerAPI().mainSeriesPriceFormatter()}getIntervals(){return this._innerAPI().getIntervals()}getStudiesList(){return this._innerAPI().getStudiesList()}getStudyInputs(e){return this._innerAPI().getStudyInputs(e)}getStudyStyles(e){return this._innerAPI().getStudyStyles(e)}addCustomCSSFile(e){this._innerWindow().addCustomCSSFile(e)}applyOverrides(e){this._options=e3(this._options,{overrides:e}),this._doWhenInnerWindowLoaded(t=>{t.applyOverrides(e)})}applyStudiesOverrides(e){this._doWhenInnerWindowLoaded(t=>{t.applyStudiesOverrides(e)})}watchList(){return this._innerAPI().watchlist()}news(){return this._innerAPI().news()}widgetbar(){return this._innerAPI().widgetbar()}activeChart(){return this._innerAPI().activeChart()}activeChartIndex(){return this._innerAPI().activeChartIndex()}setActiveChart(e){return this._innerAPI().setActiveChart(e)}chartsCount(){return this._innerAPI().chartsCount()}layout(){return this._innerAPI().layout()}setLayout(e){this._innerAPI().setLayout(e)}layoutName(){return this._innerAPI().layoutName()}resetLayoutSizes(e){this._innerAPI().resetLayoutSizes(e)}changeTheme(e,t){return this._innerWindow().changeTheme(e,t)}getTheme(){return this._innerWindow().getTheme()}takeScreenshot(){this._doWhenInnerApiLoaded(e=>{e.takeScreenshot()})}lockAllDrawingTools(){return this._innerAPI().lockAllDrawingTools()}hideAllDrawingTools(){return this._innerAPI().hideAllDrawingTools()}drawOnAllChartsEnabled(){return this._innerAPI().drawOnAllChartsEnabled()}drawOnAllCharts(e){this._innerAPI().drawOnAllCharts(e)}magnetEnabled(){return this._innerAPI().magnetEnabled()}magnetMode(){return this._innerAPI().magnetMode()}undoRedoState(){return this._innerAPI().undoRedoState()}setIntervalLinkingEnabled(e){this._innerAPI().setIntervalLinkingEnabled(e)}setDateRangeLinkingEnabled(e){this._innerAPI().setDateRangeLinkingEnabled(e)}setTimeFrame(e){this._innerAPI().setTimeFrame(e)}symbolSync(){return this._innerAPI().symbolSync()}intervalSync(){return this._innerAPI().intervalSync()}crosshairSync(){return this._innerAPI().crosshairSync()}timeSync(){return this._innerAPI().timeSync()}dateRangeSync(){return this._innerAPI().dateRangeSync()}setFeatureEnabled(e,t){this._innerAPI().setFeatureEnabled(e,t)}getAllFeatures(){return this._innerWindow().getAllFeatures()}clearUndoHistory(){return this._innerAPI().clearUndoHistory()}undo(){return this._innerAPI().undo()}redo(){return this._innerAPI().redo()}startFullscreen(){this._innerAPI().startFullscreen()}exitFullscreen(){this._innerAPI().exitFullscreen()}takeClientScreenshot(e){return this._innerAPI().takeClientScreenshot(e)}navigationButtonsVisibility(){return this._innerWindow().getNavigationButtonsVisibility()}paneButtonsVisibility(){return this._innerWindow().getPaneButtonsVisibility()}dateFormat(){return this._innerWindow().getDateFormat()}timeHoursFormat(){return this._innerWindow().getTimeHoursFormat()}currencyAndUnitVisibility(){return this._innerWindow().getCurrencyAndUnitVisibility()}supportedChartTypes(){return this._innerAPI().supportedChartTypes()}watermark(){return this._innerAPI().watermark()}customSymbolStatus(){return this._innerWindow().customSymbolStatus()}setCSSCustomProperty(e,t){if(!1===e.startsWith("--"))throw Error("customPropertyName should begin with a double hyphen");this._innerWindow().document.body.style.setProperty(e,t)}getCSSCustomPropertyValue(e){if(!1===e.startsWith("--"))throw Error("customPropertyName should begin with a double hyphen");let t=this._innerWindow().document.body,i=t.style.getPropertyValue(e);return i||getComputedStyle(t).getPropertyValue(e)}unloadUnusedCharts(){this._innerAPI().unloadUnusedCharts()}async customThemes(){return this._innerWindow().customThemes()}linking(){return this._innerAPI().linking}_innerAPI(){return this._innerWindow().tradingViewApi}_innerWindow(){return this._iFrame.contentWindow}_doWhenInnerWindowLoaded(e){this._ready?e(this._innerWindow()):this._innerWindowLoaded.then(()=>{e(this._innerWindow())})}_doWhenInnerApiLoaded(e){this._doWhenInnerWindowLoaded(t=>{t.doWhenApiIsReady(()=>e(this._innerAPI()))})}_autoResizeChart(){this._options.fullscreen&&(this._iFrame.style.height=window.innerHeight+"px",e9&&setTimeout(()=>{this._iFrame.style.height=window.innerHeight+"px"},30))}async _create(){var e,t,i,r;let o=null!=(t=null==(e=this._options.enabled_features)?void 0:e.includes("iframe_loading_same_origin"))&&t,n=o||null!=(r=null==(i=this._options.enabled_features)?void 0:i.includes("iframe_loading_compatibility_mode"))&&r,[a,l]=this._render(!n,o),s=this._options.container,c="string"==typeof s?document.getElementById(s):s;
1if(null===c)throw Error("There is no such element - #".concat(this._options.container));c.innerHTML=a,this._iFrame=c.querySelector("#".concat(this._id));let d=this._iFrame;o&&await this._innerWindowEvent("sameOriginLoad"),n&&(d.contentWindow?(d.contentWindow.document.open(),d.contentWindow.document.write(l),d.contentWindow.document.close()):console.warn("Unable to locate contentWindow for the created iframe. Please try disabling the `iframe_loading_compatibility_mode` featureset.")),this._innerWindowLoaded=this._innerWindowEvent("innerWindowLoad"),(this._options.autosize||this._options.fullscreen)&&(d.style.width="100%",this._options.fullscreen||(d.style.height="100%")),window.addEventListener("resize",this._onWindowResize),this._onWindowResize(),this._innerWindowLoaded.then(()=>{try{this._innerWindow().widgetReady(()=>{for(let e of(this._ready=!0,this._readyHandlers))try{e.call(this)}catch(e){console.error(e)}this._innerWindow().initializationFinished()})}catch(e){if(e instanceof Error&&/widgetReady is not a function/.test(e.message))throw Error("There was an error when loading the library. Usually this error means the library failed to load its static files. Check that the library files are available at ".concat(window.location.host,"/").concat(this._options.library_path||""," or correct the library_path option."))}})}_innerWindowEvent(e){return new Promise(t=>{let i=()=>{this._innerWindow().removeEventListener(e,i),t()};this._innerWindow().addEventListener(e,i)})}_render(e,t){var i;let r=window;if(r[this._id]={datafeed:this._options.datafeed,customFormatters:this._options.custom_formatters,brokerFactory:this._options.broker_factory,overrides:this._options.overrides,studiesOverrides:this._options.studies_overrides,tradingCustomization:this._options.trading_customization,disabledFeatures:this._options.disabled_features,enabledFeatures:this._options.enabled_features,brokerConfig:this._options.broker_config||this._options.brokerConfig,restConfig:this._options.restConfig,favorites:this._options.favorites,logo:this._options.logo,numeric_formatting:this._options.numeric_formatting,rss_news_feed:this._options.rss_news_feed,rss_news_title:this._options.rss_news_title,newsProvider:this._options.news_provider,loadLastChart:this._options.load_last_chart,saveLoadAdapter:this._options.save_load_adapter,loading_screen:this._options.loading_screen,settingsAdapter:this._options.settings_adapter,getCustomIndicators:this._options.custom_indicators_getter,additionalSymbolInfoFields:this._options.additional_symbol_info_fields,headerWidgetButtonsMode:this._options.header_widget_buttons_mode,customTranslateFunction:this._options.custom_translate_function,symbolSearchComplete:this._options.symbol_search_complete,contextMenu:this._options.context_menu,settingsOverrides:this._options.settings_overrides,timeframe:this._options.timeframe,customTimezones:this._options.custom_timezones,customChartDescriptionFunction:this._options.custom_chart_description_function,customThemes:this._options.custom_themes},this._options.saved_data)r[this._id].chartContent={json:this._options.saved_data},this._options.saved_data_meta_info&&(r[this._id].chartContentExtendedData=this._options.saved_data_meta_info);else if(!this._options.load_last_chart&&!this._options.symbol)throw Error("Symbol is not defined: either 'symbol' or 'load_last_chart' option must be set");if(this._options.library_path&&!this._options.library_path.endsWith("/")&&console.warn("library_path option should contain a trailing forward slash"),this._options.locale){let e=encodeURIComponent(this._options.locale);e6.findIndex(t=>t.language===e)>=0||(console.warn("locale isn't supported. Using default of `en`."),this._options.locale="en")}let o=function(e,t){var i,r;let o=new URL("".concat(e||""),location.href).href,n=JSON.parse('["bundles/runtime.7dd2b495dd46fa7aaf80.js","bundles/__LANG__.4026.45ee1092b1b9fbf8f257.js","bundles/9662.03109f673cda5962c847.css","bundles/7346.b02c4b5d2d08b5be4162.js","bundles/library.34b18c357d450582c1a4.js"]'),a=encodeURIComponent(t),l=null!=(r=e6.find(e=>e.language===a))?r:{iso:"en",dir:"ltr"}
1,s='lang="'.concat(l.iso,'" dir="').concat(l.dir,'"'),c="\n".concat(function(e,t,i){if(void 0===e)return"";let r=[],o=[];for(let n of e)n.endsWith(".js")?r.push('<script defer crossorigin="anonymous" src="'.concat(n.replace("__LANG__",i),'"><\/script>')):n.endsWith(".css")&&o.push('<link type="text/css" href="'.concat(t?n.replace(/\.css$/i,".rtl.css"):n,'" rel="stylesheet"/>'));return[...r,...o].join("\n")}(n,"rtl"===l.dir,a),"\n");return"<!DOCTYPE html><html ".concat((i={bundles:c,localeLanguage:a,htmlAttrs:s,libraryPath:o}).htmlAttrs,'><head><base href="').concat(i.libraryPath,'"><meta charset="utf-8"><script>window===window.parent&&(location.href="about:blank")<\/script> ').concat(i.bundles,' </head><body class="chart-page unselectable on-widget"><div class="loading-indicator" id="loading-indicator"></div><script>var JSServer={},__initialEnabledFeaturesets=["charting_library"]<\/script><script>(function() {\n window.urlParams = (function () {\n var match,\n pl = /\\+/g, // Regex for replacing addition symbol with a space\n search = /([^&=]+)=?([^&]*)/g,\n decode = function (s) { return decodeURIComponent(s.replace(pl, \' \')).replace(/<\\/?[^>]+(>|$)/g, \'\'); },\n query = function() {\n // We don\'t use hash on the url because: safari 13 throws an error if you attempt this\n // on a blob, and safari 14 will strip hash from blob urls.\n if (frameElement && frameElement.dataset.widgetOptions) {\n return frameElement.dataset.widgetOptions;\n } else {\n throw "Unexpected use of this page";\n }\n }(),\n result = {};\n\n while (match = search.exec(query)) {\n result[decode(match[1])] = decode(match[2]);\n }\n\n var additionalSettingsObject = window.parent[result.uid];\n\n var customObjectNames = [\'datafeed\', \'customFormatters\', \'brokerFactory\', \'save_load_adapter\', \'customTranslateFunction\', \'contextMenu\'];\n\n for (var p in additionalSettingsObject) {\n if (customObjectNames.indexOf(p) === -1) {\n result[p] = JSON.stringify(additionalSettingsObject[p]);\n }\n }\n\n return result;\n })();\n\n window.locale = urlParams.locale;\n window.language = urlParams.locale; // a very big attention needed here\n window.customTranslateFunction = window.parent[urlParams.uid].customTranslateFunction;\n window.customChartDescriptionFunction = window.parent[urlParams.uid].customChartDescriptionFunction;\n\n window.addCustomCSSFile = function(href) {\n var link = document.createElement(\'link\');\n link.setAttribute(\'type\', \'text/css\');\n link.setAttribute(\'rel\', \'stylesheet\');\n link.setAttribute(\'href\', href);\n link.setAttribute(\'cross-origin\', \'anonymous\');\n\n window.loadedCustomCss = new Promise((resolve) => {\n link.onload = resolve;\n link.onerror = resolve;\n });\n document.body.appendChild(link);\n };\n\n window.loadedCustomCss = Promise.resolve();\n if (!!urlParams.customCSS) {\n window.addCustomCSSFile(urlParams.customCSS);\n }\n\n var loadingScreenParams = {};\n\n if (typeof urlParams.loading_screen === \'string\') {\n try {\n loadingScreenParams = JSON.parse(urlParams.loading_screen);\n } catch(e) {}\n }\n\n var loadingIndicatorElement = document.getElementById(\'loading-indicator\');\n\n if (loadingScreenParams.backgroundColor) {\n loadingIndicatorElement.style = \'background-color: \' + loadingScreenParams.backgroundColor;\n }\n\n !function(){"use strict";var t,e=new WeakMap;!function(t){t[t.Element=1]="Element",t[t.Document=9]="Document"}(t||(t={}));var n={mini:"xsmall",xxsmall:"xxsmall",xsmall:"xsmall",small:"small",medium:"medium",large:"large"};var s,i,o,r,l,c=(void 0===l&&(l=""),s=\'<div class="tv-spinner \'.concat(l,\'" role="progressbar"></div>\'),o=function(n,s){var i,o;return i=null==s?document.documentElement:s.nodeType===t.Document?s.documentElement:s,e&&(o=e.get(i)),o||((o=i.ownerDocument.createRange()).selectNodeContents(i),e&&e.set(i,o)),o.createContextualFragment(n)}(s,i),null!==(r=o.firstElementChild)&&o.removeChild(r),r),a=function(){function t(t){this._shown=!1,this._el=c.cloneNode(!0),this.setSize(n[t||"large"])}return t.prototype.spin=function(t){return this._el.classList.add("tv-spinner--shown"),void 0===this._container&&(this._container=t,void 0!==t&&t.appendChild(this._el)),this._shown=!0,this},t.prototype.stop=function(t){return t&&void 0!==this._container&&this._container.removeChild(this._el),this._el&&this._el.classList.remove("tv-spinner--shown"),this._shown=!1,this},t.prototype.setStyle=function(t){var e=this;return Object.keys(t).forEach((function(n){var s=t[n];void 0!==s&&e._el.style.setProperty(n,s)})),this},t.prototype.style=function(){return this._el.style},t.prototype.setSize=function(t){var e=void 0!==t?"tv-spinner--size_".concat(t):"";return this._el.className="tv-spinner ".concat(e," ").concat(this._shown?"tv-spinner--shown":""),this},t.prototype.getEl=function(){return this._el},t.prototype.destroy=function(){this.stop(),delete this._el,delete this._container},t}();window.Spinner=a}();\n\n\n var spinnerColor = (loadingScreenParams.foregroundColor) ? loadingScreenParams.foregroundColor : undefined;\n\n var loadingSpinner = new Spinner(\'large\').setStyle({\n \'--tv-spinner-color\': spinnerColor,\n zIndex: String(2e9),\n });\n loadingSpinner.getEl().classList.add(\'spinner\');\n loadingSpinner.spin(loadingIndicatorElement);\n })();<\/script></body></html>')}(this._options.library_path||"",this._options.locale),n=new URL("about:blank");if(e){let e=new Blob([o],{type:"text/html"}),t=URL.createObjectURL(e);n=new URL(t)}else t&&(n=new URL((null!=(i=this._options.library_path)?i:"/")+"sameorigin.html",location.origin));let a="symbol="+encodeURIComponent(this._options.symbol||"")+"&interval="+encodeURIComponent(this._options.interval)+(this._options.toolbar_bg?"&toolbarbg="+encodeURIComponent(this._options.toolbar_bg.replace("#","")):"")+(this._options.studies_access?"&studiesAccess="+encodeURIComponent(JSON.stringify(this._options.studies_access)):"")+"&widgetbar="+encodeURIComponent(JSON.stringify(this._options.widgetbar))+(this._options.drawings_access?"&drawingsAccess="+encodeURIComponent(JSON.stringify(this._options.drawings_access)):"")+"&timeFrames="+encodeURIComponent(JSON.stringify(this._options.time_frames))+"&locale="+encodeURIComponent(this._options.locale)+"&uid="+encodeURIComponent(this._id)+"&clientId="+encodeURIComponent(String(this._options.client_id))+"&userId="+encodeURIComponent(String(this._options.user_id
1))+(this._options.charts_storage_url?"&chartsStorageUrl="+encodeURIComponent(this._options.charts_storage_url):"")+(this._options.charts_storage_api_version?"&chartsStorageVer="+encodeURIComponent(this._options.charts_storage_api_version):"")+(this._options.custom_css_url?"&customCSS="+encodeURIComponent(this._options.custom_css_url):"")+(this._options.custom_font_family?"&customFontFamily="+encodeURIComponent(this._options.custom_font_family):"")+(this._options.auto_save_delay?"&autoSaveDelay="+encodeURIComponent(String(this._options.auto_save_delay)):"")+"&debug="+encodeURIComponent(String(this._options.debug))+(this._options.debug_broker?"&debugBroker="+encodeURIComponent(String(this._options.debug_broker)):"")+(this._options.snapshot_url?"&snapshotUrl="+encodeURIComponent(this._options.snapshot_url):"")+(this._options.timezone?"&timezone="+encodeURIComponent(this._options.timezone):"")+(this._options.study_count_limit?"&studyCountLimit="+encodeURIComponent(String(this._options.study_count_limit)):"")+(this._options.symbol_search_request_delay?"&ssreqdelay="+encodeURIComponent(String(this._options.symbol_search_request_delay)):"")+(this._options.compare_symbols?"&compareSymbols="+encodeURIComponent(JSON.stringify(this._options.compare_symbols)):"")+(this._options.theme?"&theme="+encodeURIComponent(String(this._options.theme)):"")+(this._options.header_widget_buttons_mode?"&header_widget_buttons_mode="+encodeURIComponent(String(this._options.header_widget_buttons_mode)):"")+(this._options.time_scale?"&time_scale="+encodeURIComponent(JSON.stringify(this._options.time_scale)):"");return['<iframe\n id="'.concat(this._id,'" name="').concat(this._id,'" src="').concat(n.href,'" data-widget-options="').concat(a,'"\n ').concat(this._options.autosize||this._options.fullscreen?"":'width="'.concat(this._options.width,'" height="').concat(this._options.height,'"'),' title="Financial Chart" frameborder="0" allowTransparency="true" scrolling="no" allowfullscreen style="display:block;">\n </iframe>'),o]}constructor(e){var t,i;if(this._id="tradingview_".concat((1048576*(1+Math.random())|0).toString(16).substring(1)),this._ready=!1,this._readyHandlers=[],this._onWindowResize=this._autoResizeChart.bind(this),!e.datafeed)throw Error("Datafeed is not defined");(null==(t=e.overrides)?void 0:t["mainSeriesProperties.priceAxisProperties.lockScale"])&&(console.warn("mainSeriesProperties.priceAxisProperties.lockScale can not be set to true within the widget constructor"),delete e.overrides["mainSeriesProperties.priceAxisProperties.lockScale"]),this._options=e3(e4,e),"dark"===(null!=(i=this._options.theme)?i:"light").toLowerCase()&&void 0===this._options.loading_screen&&(this._options.loading_screen={backgroundColor:"#131722"}),(this._options.debug||this._options.debug_broker)&&(e7||(e7=!0,console.log("Using CL v28.2.0 (internal id d99cb263 @ 2024-10-02T08:48:25.942Z)"))),this._create()}};window.TradingView=window.TradingView||{},window.TradingView.version=function(){return"CL v28.2.0 (internal id d99cb263 @ 2024-10-02T08:48:25.942Z)"};let e9=!(!window.navigator||!window.navigator.userAgent)&&window.navigator.userAgent.includes("CriOS"),te=e=>{let{props:t,showChart:i,dataLoadedCallback:r,selectedPositionId:o=null}=e,{t:n}=(0,eD.Bd)(),a=(0,eE.useRef)(null),l=(0,eE.useRef)(null),s=(0,eE.useRef)(null),c=(0,e$.kH)(e=>e.isLogined),d=(0,e$.kH)(e=>e.placeOrderCompleted),h=(0,eW.WG)(e=>e.overlaySyncVersion),{isPhone:u}=function(){let[e,t]=(0,eE.useState)(()=>window.innerWidth<768),[i,r]=(0,eE.useState)(()=>window.innerWidth>=768),o=()=>{t(window.innerWidth<768),r(window.innerWidth>=768)};return(0,eE.useEffect)(()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)})),{isPhone:e,isWeb:i}}(),g=(0,e$.kH)(e=>e.language),[C,p]=(0,eE.useState)(!0),{theme:m}=(0,eF.D)(),S=(0,eE.useRef)(null),y=(0,eE.useRef)(null),_=(0,eE.useRef)(t.symbol||""),{showClosePositionDialog:b,showEditOpenOrderTPSLDialog:T}=(0,eK.s)(),f=(0,eE.useRef)(b),L=(0,eE.useRef)(null),{library_path:P,charts_storage_url:w,charts_storage_api_version:v,client_id:A,user_id:I,fullscreen:O,autosize:k,timezone:R,overrides:F}=t,E={"mainSeriesProperties.candleStyle.upColor":"#2EBD85","mainSeriesProperties.candleStyle.downColor":"#E43C5A","mainSeriesProperties.candleStyle.drawBorder":!0,"mainSeriesProperties.candleStyle.borderUpColor":"#2EBD85","mainSeriesProperties.candleStyle.borderDownColor":"#E43C5A","paneProperties.background":"#070808","paneProperties.backgroundType":"solid","paneProperties.vertGridProperties.color":"#101213","paneProperties.vertGridProperties.style":0,"paneProperties.horzGridProperties.color":"#101213","paneProperties.horzGridProperties.style":0,"scalesProperties.lineColor":"#1E2023","scalesProperties.textColor":"#d1d4dc"},D={"mainSeriesProperties.candleStyle.upColor":"#2EBD85","mainSeriesProperties.candleStyle.downColor":"#E43C5A","mainSeriesProperties.candleStyle.drawBorder":!0,"mainSeriesProperties.candleStyle.borderUpColor":"#2EBD85","mainSeriesProperties.candleStyle.borderDownColor":"#E43C5A","mainSeriesProperties.areaStyle.color2":"#2EBD85","paneProperties.background":"#FFFFFF","paneProperties.backgroundType":"solid","paneProperties.vertGridProperties.color":"#F2F2F2","paneProperties.vertGridProperties.style":0,"paneProperties.horzGridProperties.color":"#F2F2F2","paneProperties.horzGridProperties.style":0,"scalesProperties.lineColor":"#ffffff","scalesProperties.textColor":"#000000"},B=e=>{let t="";if((e=>"string"==typeof e&&""!==e.trim()&&!Number.isNaN(Number(e)))(e)){let i=Number(e);i<60?t="".concat(e,"m"):60===i?t="1h":240===i&&(t="4h")}else t=e;return t},V={"en-US":"en","zh-CN":"zh","zh-TW":"zh_TW","pt-BR":"pt"};return(0,eE.useEffect)(()=>{f.current=b},[b]),(0,eE.useEffect)(()=>(L.current=function(e){let{chartRef:t,symbolRef:i,t:r,onClosePosition:o,onEditPositionTPSL:n}=e,a=new Map,l=new Map,s=[],c=[],d=!1,h=0,u=0,g=!1,C=null,p=null,m=e=>{if(e&&"function"==typeof e.remove)try{e.remove()}catch(e){(0,eM.Rm)("remove line failed",e)}},S=(e,t)=>!!e&&!!t&&(e===t||(0,eM.vT)(e)===(0,eM.vT)(t)),y=e=>{let t=null,i=null;
1return e.takeProfitStopLossOrders.forEach(r=>{let o=Number((0,eM.hE)((0,eM.oT)(e.positionSide,(null==r?void 0:r.triggerPrice)||0,(null==r?void 0:r.spread)||0),e.pricePrecision,!1));"take_profit_market"===r.type&&(t=o),"stop_market"===r.type&&(i=o)}),{tp:t,sl:i}},_=e=>{let t=a.get(e);t&&(m(t.positionLine),m(t.tpLine),m(t.slLine),a.delete(e))},b=e=>{let t=l.get(e);t&&(m(t.orderLine),l.delete(e))},T=()=>{a.forEach((e,t)=>_(t)),l.forEach((e,t)=>b(t))},f=e=>{let t=window.localStorage.getItem(e);return null===t||"true"===t},L=(e,i,o,n,a,l)=>{let s=t.current;if(!s)return e;try{let t=e||s.createOrderLine();return t.setPrice(i),t.setText(""),t.setLineColor(n),t.setBodyBorderColor(n),t.setBodyBackgroundColor(a.bodyBackgroundColor),t.setLineStyle(a.lineStyle),t.setLineLength(a.lineLength),"number"==typeof a.lineWidth&&t.setLineWidth(a.lineWidth),t.setExtendLeft(a.extendLeft),t.setQuantity(o),t.setQuantityTextColor(a.quantityColor?a.quantityColor:n),t.setQuantityBorderColor(a.quantityBorderColor?a.quantityBorderColor:n),t.setQuantityBackgroundColor(a.quantityBackgroundColor),t.setEditable(!!l),l&&(t.setModifyTooltip(r("trade.edit_text")),t.onModify(l)),t.setCancellable(a.cancellable),a.cancellable&&(a.cancelTooltipKey&&t.setCancelTooltip(r(a.cancelTooltipKey)),a.cancelButtonIconColor&&t.setCancelButtonIconColor(a.cancelButtonIconColor),a.cancelButtonBorderColor&&t.setCancelButtonBorderColor(a.cancelButtonBorderColor),a.cancelButtonBackgroundColor&&t.setCancelButtonBackgroundColor(a.cancelButtonBackgroundColor)),t}catch(e){(0,eM.Rm)("ensure order line failed",e);return}},P=function(e){let p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,P=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s=e,c=p,d=d||P,(()=>{if(!t.current||g)return;let e=i.current||"",p=Date.now(),P=d||p-h>=0;if(!P&&0!==u&&p-u<16)return;u=p;let w=s.filter(t=>S(t.symbol,e));null!==C&&(w=w.filter(e=>e.positionId===C));let v=null===C?c.filter(t=>S(t.symbol,e)):[],A=new Set(w.map(e=>e.positionId)),I=new Set(v.map(e=>String(e.orderId)));if(P&&(h=p),0===w.length&&0===v.length){T(),d=!1;return}a.forEach((e,t)=>{A.has(t)||_(t)}),w.forEach(e=>{((e,i)=>{var l,s,c,d,h,u,g,C,p,S,b,T,P,w;let v=t.current;if(!v)return;let{tp:A,sl:I}=y(e),O=(e=>{let{tp:t,sl:i}=y(e);return[e.entryPrice,e.quantity,e.positionSide,e.leverage,e.pricePrecision,null!=t?t:"",null!=i?i:""].join("|")})(e),k=[e.unrealizedPnl,e.returnRate].join("|"),R=Number((0,eM.hE)((0,eM.Ik)(e.positionSide,e.entryPrice,0),e.pricePrecision,!1)),F=a.get(e.positionId),E=(e=>{let t=(0,eM.ax)(e.unrealizedPnl,2);return"".concat((0,eD.TO)().t("trade.pnl_text")," ").concat(t)})(e),D=(e=>{let t=e>=0,i=t?eU:ej;
1return{pnlNonNegative:t,pnlColor:i,pnlBgColor:i}})(e.unrealizedPnl),B=f(eN.Io),V=f(eN.oO);if(!F){let t;if(B){try{t=v.createPositionLine().setPrice(R).setText(E).setLineColor(D.pnlColor).setBodyTextColor("#FFFFFF").setBodyBorderColor(D.pnlColor).setBodyBackgroundColor(D.pnlBgColor).setQuantity((0,eM.HD)(e.quantity,4)).setQuantityBackgroundColor("#FFFFFF").setQuantityTextColor("#212529").setQuantityBorderColor(D.pnlColor).setCloseButtonIconColor("#6C757DCC").setCloseButtonBorderColor(D.pnlColor).setCloseButtonBackgroundColor("#FFFFFF").setLineLength(70).setLineStyle(2).setLineWidth(1).setExtendLeft(!1).setCloseTooltip(r("trade.close_position"))}catch(e){(0,eM.Rm)("create position line failed",e);return}null==t||t.onClose(e.positionId,e=>{var t;let i=null==(t=a.get(e))?void 0:t.position;i&&o(i)})}let i=V&&null!==A?L(void 0,A,(0,eD.TO)().t("trade.tp"),eU,eH,()=>n(e.positionId)):void 0,l=V&&null!==I?L(void 0,I,(0,eD.TO)().t("trade.sl"),ej,eH,()=>n(e.positionId)):void 0;a.set(e.positionId,{position:e,stableFingerprint:O,textFingerprint:k,pnlNonNegative:D.pnlNonNegative,positionLine:t,tpLine:i,slLine:l});return}let W=F.stableFingerprint!==O,x=F.textFingerprint!==k,N=F.pnlNonNegative!==D.pnlNonNegative;if(!B&&F.positionLine&&(m(F.positionLine),F.positionLine=void 0),B&&!F.positionLine)try{F.positionLine=v.createPositionLine().setPrice(R).setText(E).setLineColor(D.pnlColor).setBodyTextColor("#FFFFFF").setBodyBorderColor(D.pnlColor).setBodyBackgroundColor(D.pnlBgColor).setQuantity((0,eM.HD)(e.quantity,4)).setQuantityBackgroundColor("#FFFFFF").setQuantityTextColor("#212529").setQuantityBorderColor(D.pnlColor).setCloseButtonIconColor("#6C757DCC").setCloseButtonBorderColor(D.pnlColor).setCloseButtonBackgroundColor("#FFFFFF").setLineLength(70).setLineStyle(2).setLineWidth(1).setExtendLeft(!1).setCloseTooltip(r("trade.close_position")),null==(l=F.positionLine)||l.onClose(e.positionId,e=>{var t;let i=null==(t=a.get(e))?void 0:t.position;i&&o(i)})}catch(t){(0,eM.Rm)("recreate position line failed",t),_(e.positionId);return}if(F.positionLine&&(W||N||i&&x)){if(F.position=e,W){F.stableFingerprint=O,F.textFingerprint=k;try{null==(s=F.positionLine)||s.setPrice(R),null==(c=F.positionLine)||c.setQuantity((0,eM.HD)(e.quantity,4)),null==(d=F.positionLine)||d.setLineColor(D.pnlColor),null==(h=F.positionLine)||h.setBodyBorderColor(D.pnlColor),null==(u=F.positionLine)||u.setBodyBackgroundColor(D.pnlColor),null==(g=F.positionLine)||g.setCloseButtonBorderColor(D.pnlColor),null==(C=F.positionLine)||C.setQuantityBorderColor(D.pnlColor)}catch(t){(0,eM.Rm)("update position line stable failed",t),_(e.positionId);return}}if(N){F.pnlNonNegative=D.pnlNonNegative;try{null==(p=F.positionLine)||p.setLineColor(D.pnlColor),null==(S=F.positionLine)||S.setBodyBorderColor(D.pnlColor),null==(b=F.positionLine)||b.setBodyBackgroundColor(D.pnlColor),null==(T=F.positionLine)||T.setCloseButtonBorderColor(D.pnlColor),null==(P=F.positionLine)||P.setQuantityBorderColor(D.pnlColor)}catch(t){(0,eM.Rm)("update position line pnl style failed",t),_(e.positionId);return}}if(i&&x){F.textFingerprint=k;try{null==(w=F.positionLine)||w.setText(E)}catch(t){(0,eM.Rm)("update position line text failed",t),_(e.positionId);return}}}else F.position=e;if(V){let t=null!==A&&!F.tpLine,i=null!==I&&!F.slLine;(W||t||i)&&(null===A?(m(F.tpLine),F.tpLine=void 0):F.tpLine=L(F.tpLine,A,(0,eD.TO)().t("trade.tp"),eU,eH,()=>n(e.positionId)),null===I?(m(F.slLine),F.slLine=void 0):F.slLine=L(F.slLine,I,(0,eD.TO)().t("trade.sl"),ej,eH,()=>n(e.positionId)))}else m(F.tpLine),m(F.slLine),F.tpLine=void 0,F.slLine=void 0})(e,P)}),l.forEach((e,t)=>{I.has(t)||b(t)}),v.forEach(e=>{(e=>{var i,o,n,a,s,c,d,h;let u;if(!t.current)return;let g=String(e.orderId),C=l.get(g);if(!f(eN.y9)){b(g),C&&(C.orderLine=void 0);return}let p=[e.triggerPrice,e.quantity,e.side,e.leverage,e.type].join("|"),m="#1A91F3",S=Number(e.triggerPrice),y=(u=r("trade.price_above"),e.reduceOnly&&"limit"===e.type&&"long"!==e.side?u=r("trade.price_below"):e.reduceOnly||"limit"!==e.type||"short"===e.side?"short"===e.side&&"take_profit_market"===e.type?u=r("trade.price_below"):"long"===e.side&&"stop_market"===e.type&&(u=r("trade.price_below")):u=r("trade.price_below"),"".concat((0,eD.TO)().t("trade.limit_order_text")," ").concat(u," ").concat((0,eM.hE)((0,eM.Ik)(e.side,e.triggerPrice,e.firstSpread),e.pricePrecision)));if(!C){let t=L(void 0,S,y,m,ez);
1if(!t)return;"limit"===e.type&&t.onCancel(e,e=>{"limit"===e.type&&(0,eV.Qh)(e.orderId).then(()=>{(0,eW.vX)(),(0,ex.P0)("success",r("trade.open_order_cancel_success"))}).catch(()=>{})}),l.set(g,{order:e,fingerprint:p,orderLine:t});return}C.order=e,C.fingerprint!==p&&(C.fingerprint=p,null==(i=C.orderLine)||i.setPrice(S),null==(o=C.orderLine)||o.setQuantity(y),null==(n=C.orderLine)||n.setLineColor(m),null==(a=C.orderLine)||a.setBodyTextColor(m),null==(s=C.orderLine)||s.setBodyBorderColor(m),null==(c=C.orderLine)||c.setQuantityTextColor(m),null==(d=C.orderLine)||d.setQuantityBorderColor(m),null==(h=C.orderLine)||h.setBodyBackgroundColor("#1A91F3"))})(e)}),d=!1})()},w=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=eW.WG.getState();P(t.positionList,t.openOrderList,e)},v=()=>{};return p=eW.WG.subscribe((e,t)=>{(e.positionList!==t.positionList||e.openOrderList!==t.openOrderList)&&P(e.positionList,e.openOrderList)}),{beginSymbolSwitch:()=>{g=!0,C=null,v(),T()},endSymbolSwitch:()=>{g=!1},clearAllOverlays:T,destroy:()=>{v(),T(),null==p||p(),p=null},scheduleOverlaySync:P,scheduleSyncFromStore:w,cancelPendingSync:v,setFocusedPositionId:e=>{C="number"==typeof e?e:null,w(!0)}}}({chartRef:s,symbolRef:_,t:n,onClosePosition:e=>{f.current(e,()=>{})},onEditPositionTPSL:e=>{T(0,e,e=>{e&&!eZ.z.isConnected()&&(0,eW.cR)()})}}),()=>{var e;null==(e=L.current)||e.destroy(),L.current=null}),[]),(0,eE.useEffect)(()=>{(0,eM.Rm)("isLogined",c),s.current&&(c?s.current.refreshMarks():s.current.clearMarks())},[c]),(0,eE.useEffect)(()=>{d&&s.current&&s.current.refreshMarks(),(0,e$.Gj)()},[d]),(0,eE.useEffect)(()=>{var e;null==(e=L.current)||e.scheduleSyncFromStore(!0)},[h]),(0,eE.useEffect)(()=>{let e=()=>{var e;null==(e=L.current)||e.scheduleSyncFromStore(!0)};return window.addEventListener("TV_OVERLAY_VISIBILITY_CHANGE",e),()=>{window.removeEventListener("TV_OVERLAY_VISIBILITY_CHANGE",e)}},[]),(0,eE.useEffect)(()=>{if(p(!0),!a.current)return;let e=localStorage.getItem("chart_layout"),i=e?JSON.parse(e):null,o={symbol:t.symbol,datafeed:e5,interval:"1",container:a.current,library_path:P,locale:V[g],saved_data:i,disabled_features:["header_symbol_search","header_quick_search","header_compare","study_templates","header_screenshot","header_fullscreen_button","border_around_the_chart","header_undo_redo","create_volume_indicator_by_default","display_market_status","symbol_info",...u?["left_toolbar","property_pages","timeframes_toolbar"]:[]],enabled_features:["use_localstorage_for_settings"],charts_storage_url:w,charts_storage_api_version:v,client_id:A,user_id:I,fullscreen:O,autosize:k,theme:m,timezone:R,overrides:F,custom_css_url:"/static/charting_library/style.css",auto_save_delay:.1,studies_access:{type:"black",tools:[{name:"Volume"},{name:"Volume Profile Fixed Range"},{name:"Volume Profile Session"},{name:"Volume Profile Visible Range"},{name:"Up/Down Volume"},{name:"Volume Oscillator"},{name:"Volume Weighted Average Price"},{name:"VWAP"},{name:"Net Volume"}
1,{name:"Price Volume Trend"},{name:"On Balance Volume"}]}},c=new e8(o);l.current=c;let d=()=>{c.save(e=>{localStorage.setItem("chart_layout",JSON.stringify(e))})};return c.onChartReady(()=>{var e,t;(0,eM.Rm)("Chart is ready â
"),s.current=c.activeChart(),c.activeChart().onDataLoaded().subscribe(null,()=>{(0,eM.Rm)("New history bars are loaded"),p(!1),r&&r()},!0),c.activeChart().onIntervalChanged().subscribe(null,d),c.applyOverrides("dark"===m?E:D),(0,eX.TD)(B(s.current.resolution())),c.activeChart().onIntervalChanged().subscribe(null,e=>{let t=B(e);(0,eX.TD)(t)}),c.subscribe("onAutoSaveNeeded",()=>{d()}),null==(e=L.current)||e.scheduleSyncFromStore(!0),null==(t=y.current)||t.call(y),y.current=eW.WG.subscribe((e,t)=>{var i;(e.positionList!==t.positionList||e.openOrderList!==t.openOrderList)&&(null==(i=L.current)||i.scheduleOverlaySync(e.positionList,e.openOrderList))})}),c.headerReady().then(()=>{!function(e){let t=e.createButton();t.innerHTML='\n <div style="\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 14px;\n color: var(--text-dark);\n cursor: pointer;\n user-select: none;\n ">\n <span>'.concat(n("trade.display"),"</span>\n ").concat('\n <svg width="16" height="16" viewBox="0 0 16 16" fill="none"\n xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M3.21811 5.22781C3.50893 4.92406 3.98043 4.92406 4.27125 5.22781L8 9.12228L11.7288 5.22781C12.0196 4.92406 12.4911 4.92406 12.7819 5.22781C13.0727 5.53155 13.0727 6.02401 12.7819 6.32775L8.52657 10.7722C8.23575 11.0759 7.76425 11.0759 7.47343 10.7722L3.21811 6.32775C2.9273 6.02401 2.9273 5.53155 3.21811 5.22781Z"\n fill="#6C757D"/>\n </svg>\n ',"\n </div>\n "),t.onclick=()=>{let e=t.getBoundingClientRect();window.dispatchEvent(new CustomEvent("TV_SHOW_PANEL",{detail:{left:e.left,top:e.bottom,width:e.width}}))}}(c)}),()=>{var e,t;null==(e=y.current)||e.call(y),y.current=null,null==(t=L.current)||t.destroy(),c.remove(),l.current=null,s.current=null}},[u,g,i,m]),(0,eE.useEffect)(()=>{_.current=t.symbol||""},[t.symbol]),(0,eE.useEffect)(()=>{if(s.current&&t.symbol){var e;null==(e=L.current)||e.beginSymbolSwitch(),s.current.setSymbol(t.symbol,()=>{var e,i;console.log("Symbol changed to",t.symbol),null==(e=L.current)||e.endSymbolSwitch(),null==(i=L.current)||i.scheduleSyncFromStore(!0)})}},[t.symbol]),(0,eE.useEffect)(()=>{var e;null==(e=L.current)||e.setFocusedPositionId(o)},[o]),(0,eR.jsxs)("div",{ref:S,className:"w-full h-full relative",children:[i&&(0,eR.jsx)(eR.Fragment,{children:(0,eR.jsx)("div",{ref:a,className:"w-full h-full"})}),(0,eR.jsx)(eY,{contentRef:S,widget:s}),C&&(0,eR.jsx)("div",{className:"text-white w-full h-full flex items-center justify-center absolute bg-main-background left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%]",children:(0,eR.jsx)(eB.A,{className:"w-12 h-12"})})]})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.