Files
ai/charting_library/charting_library.standalone.js

2 lines
59 KiB
JavaScript

var TradingView=function(e){"use strict";function t(e){if(null!==e)return e.getAttribute("nonce")||e.nonce}var i,o,r,n,a,s,l,c,d,h,g,u,C,p,S,m,y,_,T,b,P,w,L,f,A,v,I,O,R,D,k,V,F,W,E,M,N,B,U,x,H,j,z,G,$,q,J,K,Z,Q,Y,X,ee,te,ie,oe,re,ne,ae,se,le,ce,de,he,ge,ue,Ce,pe,Se,me,ye,_e,Te,be,Pe,we,Le,fe,Ae,ve,Ie,Oe,Re,De,ke,Ve,Fe;function We(e,t){const i={...e};for(const o in t)"object"!=typeof e[o]||null===e[o]||Array.isArray(e[o])?void 0!==t[o]&&(i[o]=t[o]):i[o]=We(e[o],t[o]);return i}e.ActionId=void 0,(i=e.ActionId||(e.ActionId={})).UnknownAction="UnknownAction",i.Spinner="Spinner",i.Loading="Loading",i.AlertAdd="Alert.Add",i.AlertEdit="Alert.Edit",i.AlertsClone="Alerts.Clone",i.AlertsRemove="Alerts.Remove",i.AlertsRemoveAll="Alerts.RemoveAll",i.AlertsRemoveFiltered="Alerts.RemoveFiltered",i.AlertsRemoveAllInactive="Alerts.RemoveAllInactive",i.AlertsRemoveAllWatchlistInactive="Alerts.RemoveAllWatchlistInactive",i.AlertsRemoveFires="Alerts.RemoveFires",i.AlertsRestart="Alerts.Restart",i.AlertsRestartAllInactive="Alerts.RestartAllInactive",i.AlertsRestartFilteredInactive="Alerts.RestartFilteredInactive",i.AlertsStop="Alerts.Stop",i.AlertsStopAll="Alerts.StopAll",i.AlertsStopFilteredActive="Alerts.StopFilteredActive",i.AlertsExportFiresToCSV="Alerts.ExportFiresToCSV",i.AlertsLogClear="AlertsLog.Clear",i.AlertsLogRemoveFiltered="AlertsLog.RemoveFiltered",i.ChartAddIndicatorToAllCharts="Chart.AddIndicatorToAllCharts",i.ChartAddSymbolToWatchList="Chart.AddSymbolToWatchList",i.ChartAlertLabelToggleExtendLines="Chart.AlertLabel.ToggleExtendLines",i.ChartApplyIndicatorsToAllCharts="Chart.ApplyIndicatorsToAllCharts",i.ChartIndicatorApplyChildIndicator="Chart.Indicator.ApplyChildIndicator",i.ChartIndicatorApplyFinancials="Chart.Indicator.ApplyFinancials",i.ChartIndicatorAbout="Chart.Indicator.About",i.ChartIndicatorPineLogs="Chart.Indicator.PineLogs",i.ChartIndicatorPineSource="Chart.Indicator.PineSource",i.ChartIndicatorAddFavorites="Chart.Indicator.AddFavorites",i.ChartChangeTimeZone="Chart.ChangeTimeZone",i.ChartClipboardCopyPrice="Chart.Clipboard.CopyPrice",i.ChartClipboardCopyLineTools="Chart.Clipboard.CopyLineTools",i.ChartClipboardCopySource="Chart.Clipboard.CopySource",i.ChartClipboardPasteSource="Chart.Clipboard.PasteSource",i.ChartCrosshairLockVerticalCursor="Chart.Crosshair.LockVerticalCursor",i.ChartCrosshairPlusButtonDrawHorizontalLine="Chart.Crosshair.PlusButton.DrawHorizontalLine",i.ChartCustomActionId="Chart.CustomActionId",i.ChartDialogsShowChangeInterval="Chart.Dialogs.ShowChangeInterval",i.ChartDialogsShowChangeSymbol="Chart.Dialogs.ShowChangeSymbol",i.ChartDialogsShowCompareOrAddSymbol="Chart.Dialogs.ShowCompareOrAddSymbol",i.ChartDialogsShowGeneralSettings="Chart.Dialogs.ShowGeneralSettings",i.ChartDialogsShowGeneralSettingsLegendTab="Chart.Dialogs.ShowGeneralSettings.LegendTab",i.ChartDialogsShowGeneralSettingsSymbolTab="Chart.Dialogs.ShowGeneralSettings.SymbolTab",i.ChartDialogsShowGeneralScalesTab="Chart.Dialogs.ShowGeneralSettings.ScalesTab",i.ChartDialogsShowGeneralSettingsEventsTab="Chart.Dialogs.ShowGeneralSettings.EventsTab",i.ChartDialogsShowGeneralSettingsAlertsTab="Chart.Dialogs.ShowGeneralSettings.AlertsTab",i.ChartDialogsShowGoToDate="Chart.Dialogs.ShowGoToDate",i.ChartDialogsShowInsertIndicators="Chart.Dialogs.ShowInsertIndicators",i.ChartDialogsShowInsertFinancials="Chart.Dialogs.ShowInsertFinancials",i.ChartDialogsShowNews="Chart.Dialogs.ShowNews",i.ChartDialogsShowInsertSeasonals="Chart.Dialogs.ShowInsertSeasonals",i.ChartDialogsShowInsertStockBonds="Chart.Dialogs.ShowInsertStockBonds",i.ChartDialogsShowForwardCurve="Chart.Dialogs.ShowForwardCurve",i.ChartDialogsShowInsertDocuments="Chart.Dialogs.ShowInsertDocuments",i.ChartDialogsShowInsertEtfs="Chart.Dialogs.ShowInsertEtfs",i.ChartDialogsShowInsertContracts="Chart.Dialogs.ShowInsertContracts",i.ChartDialogsShowInsertAnalysis="Chart.Dialogs.ShowInsertAnalysis",i.ChartDialogsShowInsertTechnicals="Chart.Dialogs.ShowInsertTechnicals",i.ChartDialogsShowInsertForecast="Chart.Dialogs.ShowInsertForecast",i.ChartDialogsShowInsertOptions="Chart.Dialogs.ShowInsertOptions",i.ChartDetailsMetricsActionId="Chart.Dialogs.DetailsMetrics",i.ChartDialogsShowInsertEconomyIndicators="Chart.Dialogs.ShowInsertEconomyIndicators",i.ChartDialogsShowSymbolInfo="Chart.Dialogs.ShowSymbolInfo",i.ChartDrawingToolbarToggleVisibility="Chart.DrawingToolbar.ToggleVisibility",i.ChartExternalActionId="Chart.ExternalActionId",i.ChartFavoriteDrawingToolsToolbarHide="Chart.FavoriteDrawingToolsToolbar.Hide",i.ChartIndicatorShowSettingsDialog="Chart.Indicator.ShowSettingsDialog",i.ChartLegendToggleLastDayChangeValuesVisibility="Chart.Legend.ToggleLastDayChangeValuesVisibility",i.ChartLinkingGroupSync="Chart.LinkingGroupSync",i.ChartLinkingGroupSyncChangeGroup="Chart.LinkingGroupSync.ChangeGroup",i.ChartLegendToggleBarChangeValuesVisibility="Chart.Legend.ToggleBarChangeValuesVisibility",i.ChartLegendToggleBarChangeColor="Chart.Legend.ToggleBarChangeColor",i.ChartLegendTogglePriceSourceVisibility="Chart.Legend.TogglePriceSourceVisibility",i.ChartLegendToggleIndicatorArgumentsVisibility="Chart.Legend.ToggleIndicatorArgumentsVisibility",i.ChartLegendToggleIndicatorTitlesVisibility="Chart.Legend.ToggleIndicatorTitlesVisibility",i.ChartLegendToggleIndicatorValuesVisibility="Chart.Legend.ToggleIndicatorValuesVisibility",i.ChartLegendToggleOhlcValuesVisibility="Chart.Legend.ToggleOhlcValuesVisibility",i.ChartLegendToggleOpenMarketStatusVisibility="Chart.Legend.ToggleOpenMarketStatusVisibility",i.ChartLegendToggleSymbolVisibility="Chart.Legend.ToggleSymbolVisibility",i.ChartLegendToggleVolumeVisibility="Chart.Legend.ToggleVolumeVisibility",i.ChartLines="Chart.Lines",i.ChartLinesToggleBidAskLinesVisibility="Chart.Lines.ToggleBidAskLinesVisibility",i.ChartLinesToggleHighLowLinesVisibility="Chart.Lines.ToggleHighLowLinesVisibility",i.ChartLinesToggleAverageLineVisibility="Chart.Lines.ToggleAverageLineVisibility",i.ChartLinesTogglePrePostMarketPriceLineVisibility="Chart.Lines.TogglePrePostMarketPriceLineVisibility",i.ChartLinesToggleSeriesPrevCloseLineVisibility="Chart.Lines.ToggleSeriesPrevCloseLineVisibility",i.ChartLinesToggleSeriesPriceLineVisibility="Chart.Lines.ToggleSeriesPriceLineVisibility",i.ChartLineToolBarsPatternToggleFlipped="Chart.LineTool.BarsPattern.ToggleFlipped",i.ChartLineToolBarsPatternToggleMirrored="Chart.LineTool.BarsPattern.ToggleMirrored",i.ChartLineToolRiskRewardReverse="Chart.LineTool.RiskReward.Reverse",i.ChartLineToolClone="Chart.LineTool.Clone",i.ChartLineToolCreateLimitOrderFromState="Chart.LineTool.CreateLimitOrderFromState",i.ChartLineToolElliotChangeDegreeProperty="Chart.LineTool.Elliot.ChangeDegreeProperty",i.ChartLineToolNoSync="Chart.LineTool.NoSync",i.ChartLineToolPitchforkChangeTypeToInside="Chart.LineTool.Pitchfork.ChangeTypeToInside",i.ChartLineToolPitchforkChangeTypeToModifiedSchiff="Chart.LineTool.Pitchfork.ChangeTypeToModifiedSchiff",i.ChartLineToolPitchforkChangeTypeToOriginal="Chart.LineTool.Pitchfork.ChangeTypeToOriginal",i.ChartLineToolPitchforkChangeTypeToSchiff="Chart.LineTool.Pitchfork.ChangeTypeToSchiff",i.ChartLineToolSyncInLayout="Chart.LineTool.SyncInLayout",i.ChartLineToolSyncGlobally="Chart.LineTool.SyncGlobally",i.ChartLineToolTemplates="Chart.LineTool.Templates",i.ChartLineToolTemplatesApply="Chart.LineTool.Templates.Apply",i.ChartLineToolTemplatesApplyDefaults="Chart.LineTool.Templates.ApplyDefaults",i.ChartLineToolTemplatesSaveAs="Chart.LineTool.Templates.SaveAs",i.ChartLineToolToolbarChangeFontSizeProperty="Chart.LineTool.Toolbar.ChangeFontSizeProperty",i.ChartLineToolToolbarChangeLineStyleToDashed="Chart.LineTool.Toolbar.ChangeLineStyleToDashed",i.ChartLineToolToolbarChangeLineStyleToDotted="Chart.LineTool.Toolbar.ChangeLineStyleToDotted",i.ChartLineToolToolbarChangeLineStyleToSolid="Chart.LineTool.Toolbar.ChangeLineStyleToSolid",i.ChartMarksToggleVisibility="Chart.Marks.ToggleVisibility",i.ChartMoveChartInLayout="Chart.MoveChartInLayout",i.ChartMoveChartInLayoutBack="Chart.MoveChartInLayout.Back",i.ChartMoveChartInLayoutForward="Chart.MoveChartInLayout.Forward",i.ChartTpoResetAllMergesAndSplits="Chart.TPO.ResetAllMergesAndSplits",i.ChartTpoSplitBlock="Chart.TPO.SplitBlock",i.ChartTpoMergeBlock="Chart.TPO.MergeBlock",i.ChartObjectTreeShow="Chart.ObjectTree.Show",i.ChartDataWindowShow="Chart.DataWindow.Show",i.ChartPaneControlsDeletePane="Chart.PaneControls.DeletePane",i.ChartPaneControlsMaximizePane="Chart.PaneControls.MaximizePane",i.ChartPaneControlsMinimizePane="Chart.PaneControls.MinimizePane",i.ChartPaneControlsMovePaneDown="Chart.PaneControls.MovePaneDown",i.ChartPaneControlsMovePaneUp="Chart.PaneControls.MovePaneUp",i.ChartPaneControlsCollapsePane="Chart.PaneControls.CollapsePane",i.ChartPaneControlsRestorePane="Chart.PaneControls.RestorePane",i.ChartPriceScaleLabels="Chart.PriceScale.Labels",i.ChartPriceScaleLabelsToggleBidAskLabelsVisibility="Chart.PriceScale.Labels.ToggleBidAskLabelsVisibility",i.ChartPriceScaleLabelsToggleHighLowPriceLabelsVisibility="Chart.PriceScale.Labels.ToggleHighLowPriceLabelsVisibility",i.ChartPriceScaleLabelsToggleAveragePriceLabelVisibility="Chart.PriceScale.Labels.ToggleAveragePriceLabelVisibility",i.ChartPriceScaleLabelsToggleIndicatorsNameLabelsVisibility="Chart.PriceScale.Labels.ToggleIndicatorsNameLabelsVisibility",i.ChartPriceScaleLabelsToggleIndicatorsValueLabelsVisibility="Chart.PriceScale.Labels.ToggleIndicatorsValueLabelsVisibility",i.ChartPriceScaleLabelsTogglePrePostMarketLabelsVisibility="Chart.PriceScale.Labels.TogglePrePostMarketLabelsVisibility",i.ChartPriceScaleLabelsToggleNoOverlappingLabelsVisibility="Chart.PriceScale.Labels.ToggleNoOverlappingLabelsVisibility",i.ChartPriceScaleLabelsToggleSeriesLastValueVisibility="Chart.PriceScale.Labels.ToggleSeriesLastValueVisibility",i.ChartPriceScaleLabelsToggleSymbolNameLabelsVisibility="Chart.PriceScale.Labels.ToggleSymbolNameLabelsVisibility",i.ChartPriceScaleLabelsToggleSymbolPrevCloseValueVisibility="Chart.PriceScale.Labels.ToggleSymbolPrevCloseValueVisibility",i.ChartPriceScaleMergeAllScales="Chart.PriceScale.MergeAllScales",i.ChartPriceScaleMergeAllScalesToLeft="Chart.PriceScale.MergeAllScalesToLeft",i.ChartPriceScaleMergeAllScalesToRight="Chart.PriceScale.MergeAllScalesToRight",i.ChartPriceScaleMoveToLeft="Chart.PriceScale.MoveToLeft",i.ChartPriceScaleMoveToRight="Chart.PriceScale.MoveToRight",i.ChartPriceScaleReset="Chart.PriceScale.Reset",i.ChartPriceScaleToggleAddOrderPlusButtonVisibility="Chart.PriceScale.ToggleAddOrderPlusButtonVisibility",i.ChartPriceScaleToggleAutoScale="Chart.PriceScale.ToggleAutoScale",i.ChartPriceScaleToggleAutoScaleSeriesOnly="Chart.PriceScale.ToggleAutoScaleSeriesOnly",i.ChartPriceScaleToggleCountdownToBarCloseVisibility="Chart.PriceScale.ToggleCountdownToBarCloseVisibility",i.ChartPriceScaleToggleIndexedTo100="Chart.PriceScale.ToggleIndexedTo100",i.ChartPriceScaleToggleInvertScale="Chart.PriceScale.ToggleInvertScale",i.ChartPriceScaleToggleLogarithmic="Chart.PriceScale.ToggleLogarithmic",i.ChartPriceScaleTogglePercentage="Chart.PriceScale.TogglePercentage",i.ChartPriceScaleToggleRegular="Chart.PriceScale.ToggleRegular",i.ChartRedo="Chart.Redo",i.ChartRemoveAllIndicators="Chart.RemoveAllIndicators",i.ChartRemoveAllIndicatorsAndLineTools="Chart.RemoveAllIndicatorsAndLineTools",i.ChartRemoveAllLineTools="Chart.RemoveAllLineTools",i.ChartScalesReset="Chart.Scales.Reset",i.ChartScalesToggleLockPriceToBarRatio="Chart.Scales.ToggleLockPriceToBarRatio",i.ChartScrollToLineTool="Chart.ScrollToLineTool",i.ChartSelectedObjectHide="Chart.SelectedObject.Hide",i.ChartSelectedObjectRemove="Chart.SelectedObject.Remove",i.ChartSelectedObjectShow="Chart.SelectedObject.Show",i.ChartSelectedObjectShowSettingsDialog="Chart.SelectedObject.ShowSettingsDialog",i.ChartSelectedObjectInsertRowTable="Chart.SelectedObject.InsertRowTable",i.ChartSelectedObjectInsertColumnTable="Chart.SelectedObject.InsertColumnTable",i.ChartSelectedObjectRemoveRowTable="Chart.SelectedObject.RemoveRowTable",i.ChartSelectedObjectRemoveColumnTable="Chart.SelectedObject.RemoveColumnTable",i.ChartSelectedObjectToggleLocked="Chart.SelectedObject.ToggleLocked",i.ChartSelectedObjectToggleAnchored="Chart.SelectedObject.ToggleAnchored",i.ChartSeriesPriceScaleToggleAutoScale="Chart.Series.PriceScale.ToggleAutoScale",i.ChartSeriesPriceScaleToggleIndexedTo100="Chart.Series.PriceScale.ToggleIndexedTo100",i.ChartSeriesPriceScaleToggleInvertPriceScale="Chart.Series.PriceScale.ToggleInvertPriceScale",i.ChartSeriesPriceScaleToggleLogarithmic="Chart.Series.PriceScale.ToggleLogarithmic",i.ChartSeriesPriceScaleTogglePercentage="Chart.Series.PriceScale.TogglePercentage",i.ChartSeriesPriceScaleToggleRegular="Chart.Series.PriceScale.ToggleRegular",i.ChartSessionBreaksToggleVisibility="Chart.SessionBreaks.ToggleVisibility",i.ChartSetSession="Chart.SetSession",i.ChartSourceChangePriceScale="Chart.Source.ChangePriceScale",i.ChartSourceMergeDown="Chart.Source.MergeDown",i.ChartSourceMergeUp="Chart.Source.MergeUp",i.ChartSourceMoveToNoScale="Chart.Source.MoveToNoScale",i.ChartSourceMoveToOtherScale="Chart.Source.MoveToOtherScale",i.ChartSourceMoveToPane="Chart.Source.MoveToPane",i.ChartSourceUnmergeDown="Chart.Source.UnmergeDown",i.ChartSourceUnmergeUp="Chart.Source.UnmergeUp",i.ChartSourceVisualOrder="Chart.Source.VisualOrder",i.ChartSourceVisualOrderBringForward="Chart.Source.VisualOrder.BringForward",i.ChartSourceVisualOrderBringToFront="Chart.Source.VisualOrder.BringToFront",i.ChartSourceVisualOrderSendBackward="Chart.Source.VisualOrder.SendBackward",i.ChartSourceVisualOrderSendToBack="Chart.Source.VisualOrder.SendToBack",i.ChartSourceResetInputPoints="Chart.Source.ResetInputPoints",i.ChartOpenTableView="Chart.OpenTableView",i.ChartThemeApply="Chart.Theme.Apply",i.ChartThemeApplyCustom="Chart.Theme.Apply.Custom",i.ChartThemeSaveAs="Chart.Theme.SaveAs",i.ChartTimeScaleReset="Chart.TimeScale.Reset",i.ChartUndo="Chart.Undo",i.ChartShowAllIdeas="Chart.ShowAllIdeas",i.ChartShowIdeasOfFollowedUsers="Chart.ShowIdeasOfFollowedUsers",i.ChartShowMyIdeasOnly="Chart.ShowMyIdeasOnly",i.ChartToggleVisibilityAllLineTools="Chart.ToggleVisibility.AllLineTools",i.ChartToggleVisibilityContinuousContractSwitch="Chart.ToggleVisibility.ContinuousContractSwitch",i.ChartToggleVisibilityContractExpiration="Chart.ToggleVisibility.ContractExpiration",i.ChartToggleVisibilityDividends="Chart.ToggleVisibility.Dividends",i.ChartToggleVisibilityEarnings="Chart.ToggleVisibility.Earnings",i.ChartToggleVisibilityEconomicEvents="Chart.ToggleVisibility.EconomicEvents",i.ChartToggleVisibilitySplits="Chart.ToggleVisibility.Splits",i.ChartToggleVisibilityLatestNewsAndMinds="Chart.ToggleVisibility.LatestNewsAndMinds",i.ChartToggleVisibilityKeyFactsToday="Chart.ToggleVisibility.KeyFactsToday",i.ChartSourceIntervalsVisibility="Chart.Source.IntervalsVisibility",i.ChartSourceIntervalsVisibilityCurrentAndAbove="Chart.Source.IntervalsVisibility.CurrentAndAbove",i.ChartSourceIntervalsVisibilityCurrentAndBelow="Chart.Source.IntervalsVisibility.CurrentAndBelow",i.ChartSourceIntervalsVisibilityOnlyCurrent="Chart.Source.IntervalsVisibility.Current",i.ChartSourceIntervalsVisibilityAll="Chart.Source.IntervalsVisibility.All",i.NoteCreate="Note.Create",i.NoteEdit="Note.Edit",i.NoteRemove="Note.Remove",i.ObjectsTreeCreateGroup="ObjectsTree.CreateGroup",i.ObjectsTreeRemoveItem="ObjectsTree.RemoveItem",i.ObjectsTreeRenameItem="ObjectsTree.RenameItem",i.ObjectsTreeToggleItemLocked="ObjectsTree.ToggleItemLocked",i.ObjectsTreeToggleItemVisibility="ObjectsTree.ToggleItemVisibility",i.PineEditorConsoleCopyMessage="PineEditor.Console.CopyMessage",i.PineEditorConsoleToggleVisibility="PineEditor.Console.ToggleVisibility",i.PineEditorConsoleClear="PineEditor.Console.Clear",i.ScreenerColumnRemove="Screener.Column.Remove",i.ScreenerFilterChange="Screener.Filter.Change",i.ScreenerFilterReset="Screener.Filter.Reset",i.ScreenerToggleVisibilityCurrency="Screener.ToggleVisibility.Currency",i.ScreenerToggleVisibilityDescription="Screener.ToggleVisibility.Description",i.ScreenerToggleVisibilityRating="Screener.ToggleVisibility.Rating",i.ScreenerToggleVisibilitySymbolType="Screener.ToggleVisibility.SymbolType",i.TradingAddOrder="Trading.AddOrder",i.TradingCancelOrder="Trading.CancelOrder",i.TradingClosePosition="Trading.ClosePosition",i.TradingCustomActionId="Trading.CustomActionId",i.TradingDOMPlaceLimitOrder="Trading.DOMPlaceLimitOrder",i.TradingDOMPlaceMarketOrder="Trading.DOMPlaceMarketOrder",i.TradingDOMPlaceStopLimitOrder="Trading.DOMPlaceStopLimitOrder",i.TradingDOMPlaceStopOrder="Trading.DOMPlaceStopOrder",i.TradingEditOrder="Trading.EditOrder",i.TradingModifyPosition="Trading.ModifyPosition",i.TradingReversePosition="Trading.ReversePosition",i.TradingSellBuyButtonsToggleVisibility="Trading.SellBuyButtonsToggleVisibility",i.TradingTradeFromChart="Trading.TradeFromChart",i.TradingNoOverlapMode="Trading.NoOverlapMode",i.TradingShowSelectBrokerPanel="Trading.ShowSelectBrokerPanel",i.TradingOrderTitle="Trading.OrderTitle",i.TradingPositionTitle="Trading.PositionTitle",i.WatchlistActions="Watchlist.Actions",i.WatchlistAddSelectedSymbolsToCompare="Watchlist.AddSelectedSymbolsToCompare ",i.WatchlistAddSymbolToCompare="Watchlist.AddSymbolToCompare",i.WatchlistAddSymbolToSection="Watchlist.AddSymbolToSection",i.WatchlistChangeFlaggedGroupColor="Watchlist.ChangeFlaggedGroupColor",i.WatchlistAddSymbol="Watchlist.AddSymbol",i.WatchlistCreate="Watchlist.Create",i.WatchlistAddSelectedSymbols="Watchlist.AddSelectedSymbols",i.WatchlistAddSelectedSymbolsLists="Watchlist.AddSelectedSymbols.Lists",i.WatchlistGetDisplayedTickerDescription="Watchlist.GetDisplayedTickerDescription",i.WatchlistCreateSection="Watchlist.CreateSection",i.WatchlistFlagSelectedSymbols="Watchlist.FlagSelectedSymbols",i.WatchlistFlagSymbol="Watchlist.FlagSymbol",i.WatchlistOpenSymbolChart="Watchlist.OpenSymbolChart",i.WatchlistOpenSymbolOverview="Watchlist.OpenSymbolOverview",i.WatchlistRemoveSection="Watchlist.RemoveSection",i.WatchlistRemoveSymbol="Watchlist.RemoveSymbol",i.WatchlistRenameSection="Watchlist.RenameSection",i.WatchlistUnflagAllSymbols="Watchlist.UnflagAllSymbols",i.WatchlistUnflagSelectedSymbols="Watchlist.UnflagSelectedSymbols",i.WatchlistUnflagSymbol="Watchlist.UnflagSymbol",function(e){e.extractErrorReason=function(e){return e.params[1]}}(o||(o={})),function(e){e.Default="default",e.FullSingleSession="full_single_session"}(r||(r={})),e.TimeFrameType=void 0,(n=e.TimeFrameType||(e.TimeFrameType={})).PeriodBack="period-back",n.TimeRange="time-range",function(e){e.PeriodBack="period-back",e.TimeRange="time-range"}(a||(a={})),e.MarketStatus=void 0,(s=e.MarketStatus||(e.MarketStatus={})).Open="market",s.Pre="pre_market",s.Post="post_market",s.Close="out_of_session",s.Holiday="holiday",e.MenuItemType=void 0,(l=e.MenuItemType||(e.MenuItemType={})).Separator="separator",l.Action="action",e.ClearMarksMode=void 0,(c=e.ClearMarksMode||(e.ClearMarksMode={}))[c.All=0]="All",c[c.BarMarks=1]="BarMarks",c[c.TimeScaleMarks=2]="TimeScaleMarks",e.LineStudyPlotStyle=void 0,(d=e.LineStudyPlotStyle||(e.LineStudyPlotStyle={}))[d.Line=0]="Line",d[d.Histogram=1]="Histogram",d[d.Cross=3]="Cross",d[d.Area=4]="Area",d[d.Columns=5]="Columns",d[d.Circles=6]="Circles",d[d.LineWithBreaks=7]="LineWithBreaks",d[d.AreaWithBreaks=8]="AreaWithBreaks",d[d.StepLine=9]="StepLine",d[d.StepLineWithDiamonds=10]="StepLineWithDiamonds",d[d.StepLineWithBreaks=11]="StepLineWithBreaks",e.StudyPlotType=void 0,(h=e.StudyPlotType||(e.StudyPlotType={})).Line="line",h.Colorer="colorer",h.BarColorer="bar_colorer",h.BgColorer="bg_colorer",h.TextColorer="text_colorer",h.OhlcColorer="ohlc_colorer",h.CandleWickColorer="wick_colorer",h.CandleBorderColorer="border_colorer",h.UpColorer="up_colorer",h.DownColorer="down_colorer",h.Shapes="shapes",h.Chars="chars",h.Arrows="arrows",h.Data="data",h.DataOffset="dataoffset",h.OhlcOpen="ohlc_open",h.OhlcHigh="ohlc_high",h.OhlcLow="ohlc_low",h.OhlcClose="ohlc_close",function(e){e.AlertCondition="alertcondition"}(g||(g={})),e.StudyPlotDisplayTarget=void 0,(u=e.StudyPlotDisplayTarget||(e.StudyPlotDisplayTarget={}))[u.None=0]="None",u[u.Pane=1]="Pane",u[u.DataWindow=2]="DataWindow",u[u.PriceScale=4]="PriceScale",u[u.StatusLine=8]="StatusLine",u[u.PineScreener=16]="PineScreener",u[u.All=4294967295]="All",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.PineScreener=16]="PineScreener",e[e.All=4294967295]="All"}(C||(C={})),e.OhlcStudyPlotStyle=void 0,(p=e.OhlcStudyPlotStyle||(e.OhlcStudyPlotStyle={})).OhlcBars="ohlc_bars",p.OhlcCandles="ohlc_candles",function(e){e.Auto="auto",e.Tiny="tiny",e.Small="small",e.Normal="normal",e.Large="large",e.Huge="huge"}(S||(S={})),e.StudyInputType=void 0,(m=e.StudyInputType||(e.StudyInputType={})).Integer="integer",m.Float="float",m.Price="price",m.Bool="bool",m.Text="text",m.Symbol="symbol",m.Session="session",m.Source="source",m.Resolution="resolution",m.Time="time",m.BarTime="bar_time",m.Color="color",m.Textarea="text_area",function(e){e[e.None=0]="None",e[e.DataWindow=2]="DataWindow",e[e.StatusLine=8]="StatusLine",e[e.All=15]="All"}(y||(y={})),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"}(_||(_={})),function(e){e.Fixed="fixed",e.CashPerOrder="cash_per_order",e.PercentOfEquity="percent_of_equity"}(T||(T={})),function(e){e.Percent="percent",e.CashPerContract="cash_per_contract",e.CashPerOrder="cash_per_order"}(b||(b={})),function(e){e.FirstBar="first_visible_bar_time",e.LastBar="last_visible_bar_time",e.Realtime="subscribeRealtime"}(P||(P={})),function(e){e.FgColor="__chart_fgcolor",e.BgColor="__chart_bgcolor"}(w||(w={})),e.StudyTargetPriceScale=void 0,(L=e.StudyTargetPriceScale||(e.StudyTargetPriceScale={}))[L.Right=0]="Right",L[L.Left=1]="Left",L[L.NoScale=2]="NoScale",function(e){e[e.Right=0]="Right",e[e.Left=1]="Left",e[e.None=2]="None"}(f||(f={})),e.FilledAreaType=void 0,(A=e.FilledAreaType||(e.FilledAreaType={})).TypePlots="plot_plot",A.TypeHlines="hline_hline",function(e){e[e.StopLoss=0]="StopLoss",e[e.TrailingStop=1]="TrailingStop",e[e.GuaranteedStop=2]="GuaranteedStop"}(v||(v={})),function(e){e.Futures="futures",e.Options="options",e.Others="others",e.FutureAndOptions="futureAndOptions"}(I||(I={})),function(e){e.PerContract="contract",e.Fixed="fixed",e.Percent="percent",e.Disabled="disabled"}(O||(O={})),function(e){e.Stocks="stocks",e.Futures="futures",e.Forex="forex",e.Crypto="crypto",e.Others="others"}(R||(R={})),function(e){e.Symbol="symbol"}(D||(D={})),function(e){e[e.Critical=0]="Critical",e[e.Informational=1]="Informational"}(k||(k={})),function(e){e[e.PopUp=0]="PopUp",e[e.Notification=1]="Notification"}(V||(V={})),function(e){e.Quantity="qty",e.OrderSide="side",e.Price="price",e.Duration="duration",e.Brackets="brackets",e.StopLossType="slType"}(F||(F={})),function(e){e[e.CONNECTED=1]="CONNECTED",e[e.CONNECTING=2]="CONNECTING",e[e.DISCONNECTED=3]="DISCONNECTED",e[e.ERROR=4]="ERROR"}(W||(W={})),e.ConnectionStatus=void 0,(E=e.ConnectionStatus||(e.ConnectionStatus={}))[E.Connected=1]="Connected",E[E.Connecting=2]="Connecting",E[E.Disconnected=3]="Disconnected",E[E.Error=4]="Error",function(e){e[e.LIMIT=1]="LIMIT",e[e.MARKET=2]="MARKET",e[e.STOP=3]="STOP",e[e.STOPLIMIT=4]="STOPLIMIT"}(M||(M={})),e.OrderType=void 0,(N=e.OrderType||(e.OrderType={}))[N.Limit=1]="Limit",N[N.Market=2]="Market",N[N.Stop=3]="Stop",N[N.StopLimit=4]="StopLimit",function(e){e[e.BUY=1]="BUY",e[e.SELL=-1]="SELL"}(B||(B={})),e.Side=void 0,(U=e.Side||(e.Side={}))[U.Buy=1]="Buy",U[U.Sell=-1]="Sell",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"}(x||(x={})),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"}(H||(H={})),e.OrderStatus=void 0,(j=e.OrderStatus||(e.OrderStatus={}))[j.Canceled=1]="Canceled",j[j.Filled=2]="Filled",j[j.Inactive=3]="Inactive",j[j.Placing=4]="Placing",j[j.Rejected=5]="Rejected",j[j.Working=6]="Working",e.OrderStatusFilter=void 0,(z=e.OrderStatusFilter||(e.OrderStatusFilter={}))[z.All=0]="All",z[z.Canceled=1]="Canceled",z[z.Filled=2]="Filled",z[z.Inactive=3]="Inactive",z[z.Rejected=5]="Rejected",z[z.Working=6]="Working",function(e){e[e.Order=1]="Order",e[e.Position=2]="Position"}(G||(G={})),function(e){e[e.ORDER=1]="ORDER",e[e.POSITION=2]="POSITION"}($||($={})),e.ParentType=void 0,(q=e.ParentType||(e.ParentType={}))[q.Order=1]="Order",q[q.Position=2]="Position",q[q.IndividualPosition=3]="IndividualPosition",function(e){e[e.StopLoss=0]="StopLoss",e[e.TakeProfit=1]="TakeProfit",e[e.TrailingStop=2]="TrailingStop",e[e.GuaranteedStop=3]="GuaranteedStop"}(J||(J={})),function(e){e[e.LIMITPRICE=1]="LIMITPRICE",e[e.STOPPRICE=2]="STOPPRICE",e[e.TAKEPROFIT=3]="TAKEPROFIT",e[e.STOPLOSS=4]="STOPLOSS"}(K||(K={})),e.OrderTicketFocusControl=void 0,(Z=e.OrderTicketFocusControl||(e.OrderTicketFocusControl={}))[Z.LimitPrice=1]="LimitPrice",Z[Z.StopPrice=2]="StopPrice",Z[Z.TakeProfit=3]="TakeProfit",Z[Z.StopLoss=4]="StopLoss",Z[Z.Quantity=5]="Quantity",function(e){e[e.ERROR=0]="ERROR",e[e.SUCCESS=1]="SUCCESS"}(Q||(Q={})),e.NotificationType=void 0,(Y=e.NotificationType||(e.NotificationType={}))[Y.Error=0]="Error",Y[Y.Success=1]="Success",function(e){e[e.Demo=1]="Demo",e[e.Real=0]="Real"}(X||(X={})),e.OrderOrPositionMessageType=void 0,(ee=e.OrderOrPositionMessageType||(e.OrderOrPositionMessageType={})).Information="information",ee.Warning="warning",ee.Error="error",function(e){e.Demo="demo",e.Live="live"}(te||(te={})),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.Reconnect=9]="Reconnect",e[e.FailedSignIn=10]="FailedSignIn",e[e.SwitchBroker=11]="SwitchBroker"}(ie||(ie={})),function(e){e[e.None=0]="None",e[e.Pips=1]="Pips",e[e.Ticks=2]="Ticks"}(oe||(oe={})),function(e){e.Halted="HALTED",e.NotShortable="NOT-SHORTABLE",e.HardToBorrow="HARD-TO-BORROW"}(re||(re={})),function(e){e[e.Limit=1]="Limit",e[e.Stop=2]="Stop"}(ne||(ne={})),function(e){e.Disallowed="disallowed",e.Allowed="allowed",e.AllowedWithWarning="allowed_with_warning"}(ae||(ae={})),function(e){e.PlaceOrder="place_order",e.ModifyOrder="modify_order",e.CancelOrder="cancel_order",e.CancelMultipleOrders="cancel_multiple_orders",e.ModifyPosition="modify_position",e.ClosePosition="close_position",e.ModifyIndividualPosition="modify_individual_position",e.CloseIndividualPosition="close_individual_position",e.CloseNetPosition="close_net_position"}(se||(se={})),function(e){e.TakeProfit="take_profit",e.ExitLevels="exit_levels"}(le||(le={})),e.StandardFormatterName=void 0,(ce=e.StandardFormatterName||(e.StandardFormatterName={})).Date="date",ce.DateOrDateTime="dateOrDateTime",ce.Default="default",ce.Fixed="fixed",ce.FixedInCurrency="fixedInCurrency",ce.VariablePrecision="variablePrecision",ce.FormatQuantity="formatQuantity",ce.FormatPrice="formatPrice",ce.FormatPriceForexSup="formatPriceForexSup",ce.FormatExitLevels="formatExitLevels",ce.FormatPriceInCurrency="formatPriceInCurrency",ce.IntegerSeparated="integerSeparated",ce.LocalDate="localDate",ce.LocalDateOrDateTime="localDateOrDateTime",ce.Percentage="percentage",ce.ColoredPercentage="coloredPercentage",ce.Pips="pips",ce.Profit="profit",ce.ProfitInInstrumentCurrency="profitInInstrumentCurrency",ce.ProfitInPercent="profitInPercent",ce.Side="side",ce.PositionSide="positionSide",ce.Status="status",ce.Symbol="symbol",ce.Text="text",ce.Type="type",ce.MarginPercent="marginPercent",ce.Empty="empty",e.OverridePriceAxisLastValueMode=void 0,(de=e.OverridePriceAxisLastValueMode||(e.OverridePriceAxisLastValueMode={}))[de.LastPriceAndPercentageValue=0]="LastPriceAndPercentageValue",de[de.LastValueAccordingToScale=1]="LastValueAccordingToScale",e.OverrideLineStyle=void 0,(he=e.OverrideLineStyle||(e.OverrideLineStyle={}))[he.Solid=0]="Solid",he[he.Dotted=1]="Dotted",he[he.Dashed=2]="Dashed",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"}(ge||(ge={})),function(e){e[e.Markers=0]="Markers",e[e.Stepline=1]="Stepline",e[e.Simple=2]="Simple"}(ue||(ue={})),e.ChartStyle=void 0,(Ce=e.ChartStyle||(e.ChartStyle={}))[Ce.Bar=0]="Bar",Ce[Ce.Candle=1]="Candle",Ce[Ce.Line=2]="Line",Ce[Ce.Area=3]="Area",Ce[Ce.Renko=4]="Renko",Ce[Ce.Kagi=5]="Kagi",Ce[Ce.PnF=6]="PnF",Ce[Ce.LineBreak=7]="LineBreak",Ce[Ce.HeikinAshi=8]="HeikinAshi",Ce[Ce.HollowCandle=9]="HollowCandle",Ce[Ce.Baseline=10]="Baseline",Ce[Ce.Range=11]="Range",Ce[Ce.HiLo=12]="HiLo",Ce[Ce.Column=13]="Column",Ce[Ce.LineWithMarkers=14]="LineWithMarkers",Ce[Ce.Stepline=15]="Stepline",Ce[Ce.HLCArea=16]="HLCArea",Ce[Ce.VolFootprint=17]="VolFootprint",Ce[Ce.TPO=18]="TPO",Ce[Ce.VolCandle=19]="VolCandle",Ce[Ce.SVP=20]="SVP",Ce[Ce.HLCBars=21]="HLCBars",e.TimeHoursFormat=void 0,(pe=e.TimeHoursFormat||(e.TimeHoursFormat={})).TwentyFourHours="24-hours",pe.TwelveHours="12-hours",function(e){e[e.Initial=2]="Initial",e[e.SeriesZOrderIsAlwaysZero=3]="SeriesZOrderIsAlwaysZero",e[e.Current=3]="Current"}(Se||(Se={})),e.PlDisplay=void 0,(me=e.PlDisplay||(e.PlDisplay={}))[me.Money=0]="Money",me[me.Pips=1]="Pips",me[me.Percentage=2]="Percentage",e.TradedGroupHorizontalAlignment=void 0,(ye=e.TradedGroupHorizontalAlignment||(e.TradedGroupHorizontalAlignment={}))[ye.Left=0]="Left",ye[ye.Center=1]="Center",ye[ye.Right=2]="Right",e.PlDisplay.Money,e.PlDisplay.Money,e.TradedGroupHorizontalAlignment.Right,function(e){e[e.Background=0]="Background",e[e.Foreground=1]="Foreground",e[e.Topmost=2]="Topmost"}(_e||(_e={})),function(e){e[e.Unavailable=0]="Unavailable",e[e.AvailableReadonlyAlwaysDisabled=1]="AvailableReadonlyAlwaysDisabled",e[e.AvailableReadonlyAlwaysEnabled=2]="AvailableReadonlyAlwaysEnabled",e[e.Available=3]="Available"}(Te||(Te={})),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"}(be||(be={})),function(e){e[e.Chart=0]="Chart"}(Pe||(Pe={})),e.VisibilityType=void 0,(we=e.VisibilityType||(e.VisibilityType={})).AlwaysOn="alwaysOn",we.VisibleOnMouseOver="visibleOnMouseOver",we.AlwaysOff="alwaysOff",e.PriceScaleMode=void 0,(Le=e.PriceScaleMode||(e.PriceScaleMode={}))[Le.Normal=0]="Normal",Le[Le.Log=1]="Log",Le[Le.Percentage=2]="Percentage",Le[Le.IndexedTo100=3]="IndexedTo100",e.SeriesType=void 0,(fe=e.SeriesType||(e.SeriesType={}))[fe.Bars=0]="Bars",fe[fe.Candles=1]="Candles",fe[fe.Line=2]="Line",fe[fe.Area=3]="Area",fe[fe.HeikenAshi=8]="HeikenAshi",fe[fe.HollowCandles=9]="HollowCandles",fe[fe.Baseline=10]="Baseline",fe[fe.HiLo=12]="HiLo",fe[fe.Column=13]="Column",fe[fe.LineWithMarkers=14]="LineWithMarkers",fe[fe.Stepline=15]="Stepline",fe[fe.HLCArea=16]="HLCArea",fe[fe.VolCandle=19]="VolCandle",fe[fe.HLCBars=21]="HLCBars",fe[fe.Renko=4]="Renko",fe[fe.Kagi=5]="Kagi",fe[fe.PointAndFigure=6]="PointAndFigure",fe[fe.LineBreak=7]="LineBreak",function(e){e.Value="_seriesId"}(Ae||(Ae={})),function(e){e[e.InvalidSymbol=0]="InvalidSymbol",e[e.ReplayUnsupported=1]="ReplayUnsupported",e[e.UnsupportedDepth=2]="UnsupportedDepth",e[e.UnsupportedIntradyReplay=3]="UnsupportedIntradyReplay"}(ve||(ve={})),e.HHistDirection=void 0,(Ie=e.HHistDirection||(e.HHistDirection={})).LeftToRight="left_to_right",Ie.RightToLeft="right_to_left",function(e){e.Relative="relative",e.Absolute="absolute"}(Oe||(Oe={})),function(e){e.UpDown="Up/Down",e.Total="Total",e.Delta="Delta"}(Re||(Re={})),e.MarkLocation=void 0,(De=e.MarkLocation||(e.MarkLocation={})).AboveBar="AboveBar",De.BelowBar="BelowBar",De.Top="Top",De.Bottom="Bottom",De.Right="Right",De.Left="Left",De.Absolute="Absolute",De.AbsoluteUp="AbsoluteUp",De.AbsoluteDown="AbsoluteDown",function(e){e.Left="left",e.Center="center",e.Right="right"}(ke||(ke={})),function(e){e.Top="top",e.Middle="middle",e.Bottom="bottom"}(Ve||(Ve={})),e.LineStyle=void 0,(Fe=e.LineStyle||(e.LineStyle={}))[Fe.Solid=0]="Solid",Fe[Fe.Dotted=1]="Dotted",Fe[Fe.Dashed=2]="Dashed";const Ee={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:[]}},Me=JSON.parse('[{"iso":"en","dir":"ltr","language":"en"},{"iso":"en","dir":"ltr","language":"en"},{"iso":"de","dir":"ltr","language":"de"},{"iso":"fr","dir":"ltr","language":"fr"},{"iso":"ca","dir":"ltr","language":"ca_ES"},{"iso":"es","dir":"ltr","language":"es"},{"iso":"it","dir":"ltr","language":"it"},{"iso":"pl","dir":"ltr","language":"pl"},{"iso":"hu","dir":"ltr","language":"hu_HU"},{"iso":"sv","dir":"ltr","language":"sv"},{"iso":"tr","dir":"ltr","language":"tr"},{"iso":"ru","dir":"ltr","language":"ru"},{"iso":"pt","dir":"ltr","language":"pt"},{"iso":"id","dir":"ltr","language":"id_ID"},{"iso":"ms","dir":"ltr","language":"ms_MY"},{"iso":"th","dir":"ltr","language":"th"},{"iso":"vi","dir":"ltr","language":"vi"},{"iso":"ja","dir":"ltr","language":"ja"},{"iso":"ko","dir":"ltr","language":"ko"},{"iso":"zh-Hans","dir":"ltr","language":"zh"},{"iso":"zh-Hant","dir":"ltr","language":"zh_TW"},{"iso":"ar","dir":"rtl","language":"ar"},{"iso":"he","dir":"rtl","language":"he_IL"}]');let Ne=!1;function Be(e){return e||void 0}function Ue(e){for(const i of Array.from(e.querySelectorAll("script[nonce]"))){const e=Be(t(i));if(void 0!==e)return e}}function xe(e){const t=Be(e);return void 0===t?"":` nonce="${i=t,i.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}"`;var i}function He(e,t){return`<script defer crossorigin="anonymous" src="${e}"${xe(t)}><\/script>`}function je(e,t,i,o){const r=new URL(`${e||""}`,location.href).href,n=JSON.parse('["bundles/runtime.5b6d75def6817e7edaaf.js","bundles/__LANG__.500.40eab369dd334e9c974e.js","bundles/2116.700159b1d79897f33385.css","bundles/8224.a47a4a1d886aaa664d1e.js","bundles/library.712f3e04d22f5d8d2971.js"]'),a=encodeURIComponent(t),s="light"!==i.toLowerCase()?"dark":"light",l=Me.find((e=>e.language===a))??{iso:"en",dir:"ltr"},c=`lang="${l.iso}" dir="${l.dir}" data-theme="${s}" class="theme-${s}"`,d=xe(o),h=`\n${function(e,t,i,o){if(void 0===e)return"";const r=[],n=[];for(const a of e)a.endsWith(".js")?r.push(He(a.replace("__LANG__",i),o)):a.endsWith(".css")&&n.push(`<link type="text/css" href="${t?a.replace(/\.css$/i,".rtl.css"):a}" rel="stylesheet"/>`);return[...r,...n].join("\n")}(n,"rtl"===l.dir,a,o)}\n`;return`<!DOCTYPE html><html ${(g={bundles:h,localeLanguage:a,htmlAttrs:c,libraryPath:r,nonceAttr:d}).htmlAttrs}><head><base href="${g.libraryPath}"><meta charset="utf-8"><script ${g.nonceAttr}>window===window.parent&&(location.href="about:blank")<\/script> ${g.bundles} <style ${g.nonceAttr}>.lib-icon{display:inline-block;width:100%;height:100%;mask-image:var(--icon-url);-webkit-mask-image:var(--icon-url);mask-size:contain;-webkit-mask-size:contain;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center;background-color:currentColor}</style></head><body class="chart-page unselectable on-widget"><div class="loading-indicator" id="loading-indicator"></div><script ${g.nonceAttr}>var JSServer={},__initialEnabledFeaturesets=["charting_library"]<\/script><script ${g.nonceAttr}>(function() {\n\t\tvar existingCspNonce = window.__tvCspNonce || window.cspNonce;\n\t\tvar currentScriptNonce = document.currentScript && (document.currentScript.getAttribute('nonce') || document.currentScript.nonce);\n\t\tvar cspNonce = existingCspNonce || currentScriptNonce || undefined;\n\t\tif (cspNonce && !window.__tvCspNonce) {\n\t\t\twindow.__tvCspNonce = cspNonce;\n\t\t}\n\t\twindow.cspNonce = window.__tvCspNonce;\n\t\tcspNonce = window.__tvCspNonce;\n\n\t\twindow.urlParams = (function () {\n\t\t\tvar match,\n\t\t\t\tpl\t = /\\+/g, // Regex for replacing addition symbol with a space\n\t\t\t\tsearch = /([^&=]+)=?([^&]*)/g,\n\t\t\t\tdecode = function (s) { return decodeURIComponent(s.replace(pl, ' ')).replace(/<\\/?[^>]+(>|$)/g, ''); },\n\t\t\t\tquery = function() {\n\t\t\t\t\t// We don't use hash on the url because: safari 13 throws an error if you attempt this\n\t\t\t\t\t// on a blob, and safari 14 will strip hash from blob urls.\n\t\t\t\t\tif (frameElement && frameElement.dataset.widgetOptions) {\n\t\t\t\t\t\treturn frameElement.dataset.widgetOptions;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow "Unexpected use of this page";\n\t\t\t\t\t}\n\t\t\t\t}(),\n\t\t\t\tresult = {};\n\n\t\t\twhile (match = search.exec(query)) {\n\t\t\t\tresult[decode(match[1])] = decode(match[2]);\n\t\t\t}\n\n\t\t\tvar additionalSettingsObject = window.parent[result.uid];\n\n\t\t\tvar customObjectNames = ['datafeed', 'customFormatters', 'brokerFactory', 'save_load_adapter', 'customTranslateFunction', 'contextMenu'];\n\n\t\t\tfor (var p in additionalSettingsObject) {\n\t\t\t\tif (customObjectNames.indexOf(p) === -1) {\n\t\t\t\t\tresult[p] = JSON.stringify(additionalSettingsObject[p]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn result;\n\t\t})();\n\n\t\twindow.locale = urlParams.locale;\n\t\twindow.language = urlParams.locale; // a very big attention needed here\n\t\twindow.customTranslateFunction = window.parent[urlParams.uid].customTranslateFunction;\n\t\twindow.customChartDescriptionFunction = window.parent[urlParams.uid].customChartDescriptionFunction;\n\n\t\twindow.addCustomCSSFile = function(href) {\n\t\t\tvar link = document.createElement('link');\n\t\t\tlink.setAttribute('type', 'text/css');\n\t\t\tlink.setAttribute('rel', 'stylesheet');\n\t\t\tlink.setAttribute('href', href);\n\t\t\tlink.setAttribute('cross-origin', 'anonymous');\n\n\t\t\twindow.loadedCustomCss = new Promise((resolve) => {\n\t\t\t\tlink.onload = resolve;\n\t\t\t\tlink.onerror = resolve;\n\t\t\t});\n\t\t\tdocument.body.appendChild(link);\n\t\t};\n\n\t\twindow.loadedCustomCss = Promise.resolve();\n\t\tif (!!urlParams.customCSS) {\n\t\t\twindow.addCustomCSSFile(urlParams.customCSS);\n\t\t}\n\n\t\twindow.addCustomIconsCSS = function (cssText) {\n\t\t\tvar style = document.createElement('style');\n\t\t\tstyle.setAttribute('type', 'text/css');\n\t\t\tstyle.setAttribute('data-custom-icons', 'true');\n\t\t\tif (cspNonce) {\n\t\t\t\tstyle.setAttribute('nonce', cspNonce);\n\t\t\t}\n\t\t\tstyle.textContent = cssText;\n\t\t\tdocument.head.appendChild(style);\n\t\t};\n\t\tvar loadingScreenParams = {};\n\n\t\tif (typeof urlParams.loading_screen === 'string') {\n\t\t\ttry {\n\t\t\t\tloadingScreenParams = JSON.parse(urlParams.loading_screen);\n\t\t\t} catch(e) {}\n\t\t}\n\n\t\tvar loadingIndicatorElement = document.getElementById('loading-indicator');\n\n\t\tif (loadingScreenParams.backgroundColor) {\n\t\t\tloadingIndicatorElement.style.backgroundColor = loadingScreenParams.backgroundColor;\n\t\t}\n\n\t\t!function(){"use strict";var t,e=new WeakMap;function n(t,n){var i=function(t){var n,i;return n=document.documentElement,e&&(i=e.get(n)),i||((i=n.ownerDocument.createRange()).selectNodeContents(n),e&&e.set(n,i)),i.createContextualFragment(t)}(t),s=i.firstElementChild;return null!==s&&i.removeChild(s),s}!function(t){t[t.Element=1]="Element",t[t.Document=9]="Document"}(t||(t={}));var i={mini:"xsmall",xxsmall:"xxsmall",xsmall:"xsmall",small:"small",medium:"medium",large:"large"};var s=function(){function t(t){var e;this._shown=!1,this._el=n((void 0===e&&(e=""),'<div class="tv-spinner '.concat(e,'" role="progressbar"></div>'))),this.setSize(i[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 i=t[n];void 0!==i&&e._el.style.setProperty(n,i)})),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=s}();\n\n\n\t\tvar spinnerColor = (loadingScreenParams.foregroundColor) ? loadingScreenParams.foregroundColor : undefined;\n\n\t\tvar loadingSpinner = new Spinner('large').setStyle({\n\t\t\t'--tv-spinner-color': spinnerColor,\n\t\t\tzIndex: String(2e9),\n\t\t});\n\t\tloadingSpinner.getEl().classList.add('spinner');\n\t\tloadingSpinner.spin(loadingIndicatorElement);\n\t})();<\/script></body></html>`;var g}function ze(){return"CL v31.1.0 (internal id 6b804c486857f27920cf761aa7eb6e29d9bb6362 @ 2026-04-08T18:06:35.118Z)"}const Ge=class{constructor(e){if(this._id=`tradingview_${(1048576*(1+Math.random())|0).toString(16).substring(1)}`,this._ready=!1,this._readyHandlers=[],this._onWindowResize=this._autoResizeChart.bind(this),!e.datafeed)throw new Error("Datafeed is not defined");e.overrides?.["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=We(Ee,e),this._resolvedNonce=Be(this._options.nonce)??function(e=window,t=document){const i=Be(e.__tvCspNonce);return void 0!==i?i:Ue(t)}();"dark"===(this._options.theme||"light").toLowerCase()&&void 0===this._options.loading_screen&&(this._options.loading_screen={backgroundColor:"#131722"}),(this._options.debug||this._options.debug_broker)&&(Ne||(Ne=!0,console.log("Using CL v31.1.0 (internal id 6b804c486857f27920cf761aa7eb6e29d9bb6362 @ 2026-04-08T18:06:35.118Z)"))),this._innerWindowLoaded=new Promise((e=>{this._innerWindowResolver=e})),this._create()}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)}closePopupsAndDialogs(){this._doWhenInnerApiLoaded((e=>{e.closePopupsAndDialogs()}))}selectLineTool(e,t){return this._innerAPI().selectLineTool(e,t)}selectedLineTool(){return this._innerAPI().selectedLineTool()}save(e,t){this._innerAPI().saveChart(e,t)}async load(e,t){return this._innerAPI().loadChart({json:e,extendedData:t})}getSavedCharts(e){this._innerAPI().getSavedCharts(e)}loadChartFromServer(e){return 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)}removeButton(e){this._innerWindow().removeButton(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=We(this._options,{overrides:e}),this._doWhenInnerWindowLoaded((t=>{t.applyOverrides(e)}))}applyTradingCustomization(e){return new Promise(((t,i)=>{this._doWhenInnerWindowLoaded((o=>{o.applyTradingCustomization(e).then(t).catch(i)}))}))}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)}setLayoutSizes(e,t){this._innerAPI().setLayoutSizes(e,t)}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 new Error("customPropertyName should begin with a double hyphen");this._innerWindow().document.body.style.setProperty(e,t)}getCSSCustomPropertyValue(e){if(!1===e.startsWith("--"))throw new Error("customPropertyName should begin with a double hyphen");const t=this._innerWindow().document.body,i=t.style.getPropertyValue(e);if(i)return i;return getComputedStyle(t).getPropertyValue(e)}unloadUnusedCharts(){this._innerAPI().unloadUnusedCharts()}async customThemes(){return this._innerWindow().customThemes()}resetCache(){this._innerAPI().resetCache()}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",$e&&setTimeout((()=>{this._iFrame.style.height=window.innerHeight+"px"}),30))}_waitForIframeLoad(e){const t=()=>{const t=e.contentWindow,i=e.contentDocument;return null!==t&&null!==i&&"about:blank"!==t.location.href&&"loading"!==i.readyState};return t()?Promise.resolve():new Promise((i=>{const o=()=>{e.removeEventListener("load",o),i()};e.addEventListener("load",o,{once:!0}),t()&&o()}))}_resolveSameOriginCspNonce(e){const t=e.contentWindow,i=e.contentDocument;return Be(t?.__tvCspNonce)??Be(t?.cspNonce)??(null===i?void 0:Ue(i))??this._resolvedNonce}_generateIframeHtml(e=this._resolvedNonce){const t=(this._options.theme||"light").toLowerCase();return je(this._options.library_path||"",this._options.locale,t,e)}async _create(){const e=this._options.enabled_features?.includes("iframe_loading_same_origin")??!1,t=e||(this._options.enabled_features?.includes("iframe_loading_compatibility_mode")??!1),i=e&&(this._options.enabled_features?.includes("iframe_loading_root_path")??!1),[o,r]=this._render(!t,e,i);let n=r;const a=this._options.container,s="string"==typeof a?document.getElementById(a):a;if(null===s)throw new Error(`There is no such element - #${this._options.container}`);s.innerHTML=o,this._iFrame=s.querySelector(`#${this._id}`);const l=this._iFrame;e&&(await this._waitForIframeLoad(l),this._resolvedNonce=this._resolveSameOriginCspNonce(l),window[this._id].resolvedNonce=this._resolvedNonce,n=this._generateIframeHtml()),t&&(l.contentWindow?(l.contentWindow.document.open(),l.contentWindow.document.write(n),l.contentWindow.document.close()):console.warn("Unable to locate contentWindow for the created iframe. Please try disabling the `iframe_loading_compatibility_mode` featureset.")),this._innerWindow().addEventListener("innerWindowLoad",(e=>{e.detail.received=!0,function(e,t){if(void 0===e)throw new Error(`${t} is undefined`);return e}(this._innerWindowResolver,"_innerWindowResolver")()}),{once:!0}),(this._options.autosize||this._options.fullscreen)&&(l.style.width="100%",this._options.fullscreen||(l.style.height="100%")),window.addEventListener("resize",this._onWindowResize),this._onWindowResize(),this._applyCustomIcons(),this._innerWindowLoaded.then((()=>{try{this._innerWindow().widgetReady((()=>{this._ready=!0;for(const e of 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 new 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 ${window.location.host}/${this._options.library_path||""} or correct the library_path option.`)}}))}_generateCustomIconsCSS(){if(!this._options.custom_icons||0===this._options.custom_icons.length)return"";const e=[];for(const t of this._options.custom_icons){const i=t.name,o=!!t.useCurrentColor,r=e=>{const t=e.trim().startsWith("<"),i=e.startsWith("data:");if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")||i)return e;if(!t){const t=this._options.library_path||"",i=new URL(t,window.location.href);return new URL(e,i.href).href}return`data:image/svg+xml;utf8,${e.replace(/"/g,"'").replace(/'/g,"%27").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ").trim()}`},n=r(t.icon);if(o)e.push(`.lib-icon--${i} {\n\t\t\t\t\t--icon-url: url('${n}') !important;\n\t\t\t\t}`);else if(e.push(`.lib-icon--${i} {\n\t\t\t\t\t--icon-url: url('${n}') !important;\n\t\t\t\t\tmask-image: none !important;\n\t\t\t\t\t-webkit-mask-image: none !important;\n\t\t\t\t\tbackground-color: transparent !important;\n\t\t\t\t\tbackground-image: var(--icon-url) !important;\n\t\t\t\t\tbackground-size: contain;\n\t\t\t\t\tbackground-repeat: no-repeat;\n\t\t\t\t\tbackground-position: center;\n\t\t\t\t}`),t.iconDark){const o=r(t.iconDark);e.push(`html[data-theme="dark"] .lib-icon--${i} {\n\t\t\t\t\t\t--icon-url: url('${o}') !important;\n\t\t\t\t\t}`)}}return e.join("\n\n")}_applyCustomIcons(){if(!this._options.custom_icons||0===this._options.custom_icons.length)return;const e=this._generateCustomIconsCSS();e&&this._doWhenInnerWindowLoaded((t=>{t.addCustomIconsCSS(e)}))}_render(e,t,i){const o=window;if(o[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,imageStorageAdapter:this._options.image_storage_adapter,resolvedNonce:this._resolvedNonce},this._options.saved_data)o[this._id].chartContent={json:this._options.saved_data},this._options.saved_data_meta_info&&(o[this._id].chartContentExtendedData=this._options.saved_data_meta_info);else if(!this._options.load_last_chart&&!this._options.symbol)throw new 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){const e=encodeURIComponent(this._options.locale);Me.findIndex((t=>t.language===e))>=0||(console.warn("locale isn't supported. Using default of `en`."),this._options.locale="en")}const r=this._generateIframeHtml();let n=new URL("about:blank");if(e){const e=new Blob([r],{type:"text/html"}),t=URL.createObjectURL(e);n=new URL(t)}else if(t){const e=this._options.library_path??"/",t=i?location.origin:location.href;n=new URL(e+"sameorigin.html",t)}const 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))+(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\t\tversion="CL v31.1.0 (internal id 6b804c486857f27920cf761aa7eb6e29d9bb6362 @ 2026-04-08T18:06:35.118Z)" id="${this._id}" name="${this._id}" src="${n.href}" data-widget-options="${a}"\n\t\t${this._options.autosize||this._options.fullscreen?"":`width="${this._options.width}" height="${this._options.height}"`} title="Financial Chart" frameborder="0" allowTransparency="true" scrolling="no" allowfullscreen style="display:block;">\n\t</iframe>`,r]}};"undefined"!=typeof window&&(window.TradingView=window.TradingView||{},window.TradingView.version=ze);const $e=!("undefined"==typeof window||!window.navigator||!window.navigator.userAgent)&&window.navigator.userAgent.includes("CriOS");return e.version=ze,e.widget=Ge,e}({});