Release v19.031 (from f524baa5)

Fixes tradingview/charting_library#5730
This commit is contained in:
jenkins@nwork.local
2021-06-14 09:59:30 +00:00
parent bc9775e401
commit de3678132c
38 changed files with 72 additions and 72 deletions

View File

@@ -198,18 +198,18 @@ return new m({chartWidgetCollection:this._chartWidgetCollection})},P.prototype.u
;return e.points=this._points,e.backcolor=this._source.properties().bandsBackground.backgroundColor.value(),e.transparency=this._source.properties().bandsBackground.transparency.value(),this._bandBgRenderer.setData(e),this._bandBgRenderer},p.prototype._initBandIndexes=function(e,t){this._bandAKey=null,this._bandBKey=null;for(var i=0;i<this._source.metaInfo().bands.length;++i){var n=this._source.metaInfo().bands[i];null===this._bandAKey&&n.id===e&&(this._bandAKey=i),null===this._bandBKey&&n.id===t&&(this._bandBKey=i)}},p.prototype.update=function(){if(this._points=[],this._fillStyleProps.visible.value()){var e=this._source.properties().bands[this._bandAKey],t=this._source.properties().bands[this._bandBKey],i=this._source.priceScale();if(i&&!i.isEmpty()){var n=this._source.firstValue();this._points.push(i.priceToCoordinate(e.value.value(),n)),this._points.push(i.priceToCoordinate(t.value.value(),n))}}},p.prototype.renderer=function(){var e=this._fillStyleProps.transparency.value();e=o(e,0,100);var t={};return t.points=this._points,t.backcolor=l.generateColor(this._fillStyleProps.color.value(),e),t.transparency=this._fillStyleProps.transparency.value(),this._bandBgRenderer.setData(t),this._bandBgRenderer},t.BandPaneView=u,t.BandBackgroundPaneView=d,t.HlineFillPaneView=p},"Aba+":function(e,t,i){},ApcL:function(e,t,i){"use strict";i.r(t);var n=i("mrSG"),r=i("ogJP"),o=i("vTIA"),s=i("txPx"),a=i("oXaB"),l=i("wZIs"),c=i("KUek"),u=i("FIi8"),h=i("4vW/");i.d(t,"gridPreferencesDefault",(function(){return p})),i.d(t,"crossHairPreferencesDefault",(function(){return f})),i.d(t,"legendPreferencesDefault",(function(){return _})),i.d(t,"priceScalePreferencesDefault",(function(){return m})),i.d(t,"panePreferencesDefault",(function(){return v})),i.d(t,"scalesPreferencesBaseDefault",(function(){return y})),i.d(t,"scalesPreferencesToApplyDefault",(function(){return g})),i.d(t,"chartEventsSourceBreaksPreferencesDefault",(function(){return b})),i.d(t,"chartEventsSourcePreferencesDefault",(function(){return S})),i.d(t,"timeScalePreferencesDefault",(function(){return w})),i.d(t,"statusViewPreferencesDefault",(function(){return P})),i.d(t,"highLowAvgPreferencesDefault",(function(){return C})),i.d(t,"mainSeriesPreferencesDefault",(function(){return T})),i.d(t,"chartPreferencesBaseDefault",(function(){return x})),i.d(t,"chartPreferencesToApplyDefault",(function(){return I})),i.d(t,"chartPreferencesToRestoreDefault",(function(){return L})),i.d(t,"createPreferencesObject",(function(){return O})),i.d(t,"preferencesByWhiteList",(function(){return M})),i.d(t,"defaultsPreferencesByWhiteList",(function(){return A}));var d=Object(s.getLogger)("Chart.ApplyPreferencesToAllCharts"),p={color:"",style:0},f={color:"",style:0,transparency:0,width:0},_={showStudyArguments:!1,showStudyTitles:!1,showStudyValues:!1,showSeriesTitle:!1,showSeriesOHLC:!1,showLegend:!1,showBarChange:!0,showBackground:!0,backgroundTransparency:0,wrapText:!1},m={autoScale:!1,autoScaleDisabled:!1,lockScale:!1,percentage:!1,percentageDisabled:!1,log:!1,logDisabled:!1,alignLabels:!1, ;return e.points=this._points,e.backcolor=this._source.properties().bandsBackground.backgroundColor.value(),e.transparency=this._source.properties().bandsBackground.transparency.value(),this._bandBgRenderer.setData(e),this._bandBgRenderer},p.prototype._initBandIndexes=function(e,t){this._bandAKey=null,this._bandBKey=null;for(var i=0;i<this._source.metaInfo().bands.length;++i){var n=this._source.metaInfo().bands[i];null===this._bandAKey&&n.id===e&&(this._bandAKey=i),null===this._bandBKey&&n.id===t&&(this._bandBKey=i)}},p.prototype.update=function(){if(this._points=[],this._fillStyleProps.visible.value()){var e=this._source.properties().bands[this._bandAKey],t=this._source.properties().bands[this._bandBKey],i=this._source.priceScale();if(i&&!i.isEmpty()){var n=this._source.firstValue();this._points.push(i.priceToCoordinate(e.value.value(),n)),this._points.push(i.priceToCoordinate(t.value.value(),n))}}},p.prototype.renderer=function(){var e=this._fillStyleProps.transparency.value();e=o(e,0,100);var t={};return t.points=this._points,t.backcolor=l.generateColor(this._fillStyleProps.color.value(),e),t.transparency=this._fillStyleProps.transparency.value(),this._bandBgRenderer.setData(t),this._bandBgRenderer},t.BandPaneView=u,t.BandBackgroundPaneView=d,t.HlineFillPaneView=p},"Aba+":function(e,t,i){},ApcL:function(e,t,i){"use strict";i.r(t);var n=i("mrSG"),r=i("ogJP"),o=i("vTIA"),s=i("txPx"),a=i("oXaB"),l=i("wZIs"),c=i("KUek"),u=i("FIi8"),h=i("4vW/");i.d(t,"gridPreferencesDefault",(function(){return p})),i.d(t,"crossHairPreferencesDefault",(function(){return f})),i.d(t,"legendPreferencesDefault",(function(){return _})),i.d(t,"priceScalePreferencesDefault",(function(){return m})),i.d(t,"panePreferencesDefault",(function(){return v})),i.d(t,"scalesPreferencesBaseDefault",(function(){return y})),i.d(t,"scalesPreferencesToApplyDefault",(function(){return g})),i.d(t,"chartEventsSourceBreaksPreferencesDefault",(function(){return b})),i.d(t,"chartEventsSourcePreferencesDefault",(function(){return S})),i.d(t,"timeScalePreferencesDefault",(function(){return w})),i.d(t,"statusViewPreferencesDefault",(function(){return P})),i.d(t,"highLowAvgPreferencesDefault",(function(){return C})),i.d(t,"mainSeriesPreferencesDefault",(function(){return T})),i.d(t,"chartPreferencesBaseDefault",(function(){return x})),i.d(t,"chartPreferencesToApplyDefault",(function(){return I})),i.d(t,"chartPreferencesToRestoreDefault",(function(){return L})),i.d(t,"createPreferencesObject",(function(){return O})),i.d(t,"preferencesByWhiteList",(function(){return M})),i.d(t,"defaultsPreferencesByWhiteList",(function(){return A}));var d=Object(s.getLogger)("Chart.ApplyPreferencesToAllCharts"),p={color:"",style:0},f={color:"",style:0,transparency:0,width:0},_={showStudyArguments:!1,showStudyTitles:!1,showStudyValues:!1,showSeriesTitle:!1,showSeriesOHLC:!1,showLegend:!1,showBarChange:!0,showBackground:!0,backgroundTransparency:0,wrapText:!1},m={autoScale:!1,autoScaleDisabled:!1,lockScale:!1,percentage:!1,percentageDisabled:!1,log:!1,logDisabled:!1,alignLabels:!1,
isInverted:!1,indexedTo100:!1},v={backgroundType:h.ColorType.Solid,background:"",backgroundGradientStartColor:"",backgroundGradientEndColor:"",topMargin:0,bottomMargin:0,rightOffset:0,horzGridProperties:Object(u.deepExtend)({},p),vertGridProperties:Object(u.deepExtend)({},p),crossHairProperties:Object(u.deepExtend)({},f),legendProperties:Object(u.deepExtend)({},_),axisProperties:Object(u.deepExtend)({},m)},y={lineColor:"",textColor:"",fontSize:0,scaleSeriesOnly:!1,showSeriesLastValue:!1,seriesLastValueMode:a.PriceAxisLastValueMode.LastValueAccordingToScale,showSeriesPrevCloseValue:!1,showStudyLastValue:!1,showSymbolLabels:!1,showStudyPlotLabels:!1,showBidAskLabels:!1,showPrePostMarketPriceLabel:!0,showFundamentalLastValue:!1,showFundamentalNameLabel:!1,showCurrency:!0},g=Object(n.a)({},y),b={color:"",visible:!1,style:0,width:0},S={visible:!1,futureOnly:!1,breaks:Object(u.deepExtend)({},b)},w={defaultRightOffset:0},P={fontSize:16,showExchange:!0,showInterval:!0,symbolTextSource:"description"},C={highLowPriceLinesVisible:!1,highLowPriceLabelsVisible:!1,averageClosePriceLineVisible:!1,averageClosePriceLabelVisible:!1},T={style:0,minTick:0,showPriceLine:!1,priceLineWidth:0,priceLineColor:"",showPrevClosePriceLine:!1,showCountdown:!0,prevClosePriceLineWidth:0,extendedHours:!1,prevClosePriceLineColor:"",esdShowDividends:!1,esdShowSplits:!1,esdShowEarnings:!1,esdShowBreaks:!1,dividendsAdjustment:!1,statusViewStyle:Object(u.deepExtend)({},P),priceAxisProperties:Object(u.deepExtend)({},m),esdBreaksStyle:Object(u.deepExtend)({},{color:"",style:0,width:0}),highLowAvgPrice:Object(u.deepExtend)({},C),candleStyle:Object(u.deepExtend)({},{upColor:"",downColor:"",drawWick:!1,drawBorder:!1,drawBody:!0,borderColor:"",borderUpColor:"",borderDownColor:"",wickColor:"",wickUpColor:"",wickDownColor:"",barColorsOnPrevClose:!1}),hollowCandleStyle:Object(u.deepExtend)({},{upColor:"",downColor:"",drawWick:!1,drawBorder:!1,drawBody:!0,borderColor:"",borderUpColor:"",borderDownColor:"",wickColor:"",wickUpColor:"",wickDownColor:""}),barStyle:Object(u.deepExtend)({},{upColor:"",downColor:"",barColorsOnPrevClose:!1,dontDrawOpen:!1,thinBars:!0}),lineStyle:Object(u.deepExtend)({},{color:"",linestyle:0,linewidth:0,styleType:0}),areaStyle:Object(u.deepExtend)({},{color1:"",color2:"",linecolor:"",linestyle:0,linewidth:0,transparency:0}),baselineStyle:Object(u.deepExtend)({},{topFillColor1:"",topFillColor2:"",bottomFillColor1:"",bottomFillColor2:"",topLineColor:"",bottomLineColor:"",topLineWidth:0,bottomLineWidth:0,transparency:0,baseLevelPercentage:0}),hiloStyle:Object(u.deepExtend)({},{color:"",showBorders:!1,borderColor:"",showLabels:!1,labelColor:"",fontSize:0,drawBody:!0}),haStyle:Object(u.deepExtend)({},{upColor:"",downColor:"",drawWick:!1,drawBorder:!1,drawBody:!0,borderColor:"",borderUpColor:"",borderDownColor:"",wickColor:"",wickUpColor:"",wickDownColor:"",showRealLastPrice:!1,barColorsOnPrevClose:!1,inputs:{}}),renkoStyle:Object(u.deepExtend)({},{upColor:"",downColor:"",borderUpColor:"",borderDownColor:"",upColorProjection:"", isInverted:!1,indexedTo100:!1},v={backgroundType:h.ColorType.Solid,background:"",backgroundGradientStartColor:"",backgroundGradientEndColor:"",topMargin:0,bottomMargin:0,rightOffset:0,horzGridProperties:Object(u.deepExtend)({},p),vertGridProperties:Object(u.deepExtend)({},p),crossHairProperties:Object(u.deepExtend)({},f),legendProperties:Object(u.deepExtend)({},_),axisProperties:Object(u.deepExtend)({},m)},y={lineColor:"",textColor:"",fontSize:0,scaleSeriesOnly:!1,showSeriesLastValue:!1,seriesLastValueMode:a.PriceAxisLastValueMode.LastValueAccordingToScale,showSeriesPrevCloseValue:!1,showStudyLastValue:!1,showSymbolLabels:!1,showStudyPlotLabels:!1,showBidAskLabels:!1,showPrePostMarketPriceLabel:!0,showFundamentalLastValue:!1,showFundamentalNameLabel:!1,showCurrency:!0},g=Object(n.a)({},y),b={color:"",visible:!1,style:0,width:0},S={visible:!1,futureOnly:!1,breaks:Object(u.deepExtend)({},b)},w={defaultRightOffset:0},P={fontSize:16,showExchange:!0,showInterval:!0,symbolTextSource:"description"},C={highLowPriceLinesVisible:!1,highLowPriceLabelsVisible:!1,averageClosePriceLineVisible:!1,averageClosePriceLabelVisible:!1},T={style:0,minTick:0,showPriceLine:!1,priceLineWidth:0,priceLineColor:"",showPrevClosePriceLine:!1,showCountdown:!0,prevClosePriceLineWidth:0,extendedHours:!1,prevClosePriceLineColor:"",esdShowDividends:!1,esdShowSplits:!1,esdShowEarnings:!1,esdShowBreaks:!1,dividendsAdjustment:!1,statusViewStyle:Object(u.deepExtend)({},P),priceAxisProperties:Object(u.deepExtend)({},m),esdBreaksStyle:Object(u.deepExtend)({},{color:"",style:0,width:0}),highLowAvgPrice:Object(u.deepExtend)({},C),candleStyle:Object(u.deepExtend)({},{upColor:"",downColor:"",drawWick:!1,drawBorder:!1,drawBody:!0,borderColor:"",borderUpColor:"",borderDownColor:"",wickColor:"",wickUpColor:"",wickDownColor:"",barColorsOnPrevClose:!1}),hollowCandleStyle:Object(u.deepExtend)({},{upColor:"",downColor:"",drawWick:!1,drawBorder:!1,drawBody:!0,borderColor:"",borderUpColor:"",borderDownColor:"",wickColor:"",wickUpColor:"",wickDownColor:""}),barStyle:Object(u.deepExtend)({},{upColor:"",downColor:"",barColorsOnPrevClose:!1,dontDrawOpen:!1,thinBars:!0}),lineStyle:Object(u.deepExtend)({},{color:"",linestyle:0,linewidth:0,styleType:0}),areaStyle:Object(u.deepExtend)({},{color1:"",color2:"",linecolor:"",linestyle:0,linewidth:0,transparency:0}),baselineStyle:Object(u.deepExtend)({},{topFillColor1:"",topFillColor2:"",bottomFillColor1:"",bottomFillColor2:"",topLineColor:"",bottomLineColor:"",topLineWidth:0,bottomLineWidth:0,transparency:0,baseLevelPercentage:0}),hiloStyle:Object(u.deepExtend)({},{color:"",showBorders:!1,borderColor:"",showLabels:!1,labelColor:"",fontSize:0,drawBody:!0}),haStyle:Object(u.deepExtend)({},{upColor:"",downColor:"",drawWick:!1,drawBorder:!1,drawBody:!0,borderColor:"",borderUpColor:"",borderDownColor:"",wickColor:"",wickUpColor:"",wickDownColor:"",showRealLastPrice:!1,barColorsOnPrevClose:!1,inputs:{}}),renkoStyle:Object(u.deepExtend)({},{upColor:"",downColor:"",borderUpColor:"",borderDownColor:"",upColorProjection:"",
downColorProjection:"",borderUpColorProjection:"",borderDownColorProjection:"",wickUpColor:"",wickDownColor:"",inputs:{boxSize:0,style:"",atrLength:0,wicks:!1,sources:"",source:""}}),pbStyle:Object(u.deepExtend)({},{upColor:"",downColor:"",borderUpColor:"",borderDownColor:"",upColorProjection:"",downColorProjection:"",borderUpColorProjection:"",borderDownColorProjection:"",inputs:{source:"",lb:0}}),kagiStyle:Object(u.deepExtend)({},{upColor:"",downColor:"",upColorProjection:"",downColorProjection:"",inputs:{style:"",atrLength:0,reversalAmount:0}}),pnfStyle:Object(u.deepExtend)({},{upColor:"",downColor:"",upColorProjection:"",downColorProjection:"",inputs:{reversalAmount:0,boxSize:0,style:"",atrLength:0}}),rangeStyle:Object(u.deepExtend)({},{upColor:"",downColor:"",upColorProjection:"",downColorProjection:"",thinBars:!1,inputs:{range:0,phantomBars:!1}})},x={priceScaleSelectionStrategyName:"auto",timeScale:Object(u.deepExtend)({},w),mainSeries:Object(u.deepExtend)({},T),sessions:Object(u.deepExtend)({},c.sessionsPreferencesDefault),paneProperties:Object(u.deepExtend)({},v),chartEventsSourceProperties:Object(u.deepExtend)({},S),tradingProperties:Object(u.deepExtend)({},o.b)},I=Object(n.a)({timezone:"",scalesProperties:Object(u.deepExtend)({},g)},x),L=Object(n.a)({scalesProperties:Object(u.deepExtend)({},y)},x);function O(e,t,i,n,o){if(void 0===o&&(o=!0),void 0===t[e])return d.logDebug("We haven't had this property "+n+"."+e+" yet, please, remove it from whiteList"),null;if(Object(r.isObject)(i[e])){var s=Object.keys(i[e]),a="";return s.map((function(r){var s;return(s={})[r]=O(r,t[e],i[e],n+"."+e,o),s})).reduce((function(e,t){return e[a=Object.keys(t)[0]]=t[a],e}),{})}return o?t[e].value():t[e]}function M(e,t,i){void 0===i&&(i=I);var n={timezone:"",priceScaleSelectionStrategyName:"auto",timeScale:{defaultRightOffset:e.timeScale().defaultRightOffsetProperty().value()},mainSeries:{},sessions:{},paneProperties:{},scalesProperties:{},chartEventsSourceProperties:{},tradingProperties:{}},r=["timeScale","mainSeries","sessions"],o=i.mainSeries,s=Object.keys(i),a=Object.keys(o),l=t.properties(),c=e.properties(),u=i.sessions,h=Object.keys(u),d=e.sessions().properties();return a.forEach((function(e){n.mainSeries[e]=O(e,l,o,"mainSeries")})),h.forEach((function(e){n.sessions[e]=O(e,d,u,"sessions")})),s.forEach((function(e){r.includes(e)||(n[e]=O(e,c,i,"preferences"))})),n}function A(e,t,i){void 0===i&&(i=L);var n={timeScale:{defaultRightOffset:e.timeScale().rightOffsetDefaultValue()},mainSeries:{},sessions:Object(u.deepExtend)({},c.sessionsPreferencesDefault),paneProperties:{},scalesProperties:{},chartEventsSourceProperties:{},tradingProperties:{},priceScaleSelectionStrategyName:"auto"},r=["timeScale","mainSeries","sessions"],o=i.mainSeries,s=Object.keys(i),a=Object.keys(o),h=Object(l.factoryDefaults)("chartproperties.mainSeriesProperties"),d=Object(l.factoryDefaults)("chartproperties");return a.forEach((function(e){n.mainSeries[e]=O(e,h,o,"mainSeries",!1)})),s.forEach((function(e){r.includes(e)||(n[e]=O(e,d,i,"preferences",!1))})),n downColorProjection:"",borderUpColorProjection:"",borderDownColorProjection:"",wickUpColor:"",wickDownColor:"",inputs:{boxSize:0,style:"",atrLength:0,wicks:!1,sources:"",source:""}}),pbStyle:Object(u.deepExtend)({},{upColor:"",downColor:"",borderUpColor:"",borderDownColor:"",upColorProjection:"",downColorProjection:"",borderUpColorProjection:"",borderDownColorProjection:"",inputs:{source:"",lb:0}}),kagiStyle:Object(u.deepExtend)({},{upColor:"",downColor:"",upColorProjection:"",downColorProjection:"",inputs:{style:"",atrLength:0,reversalAmount:0}}),pnfStyle:Object(u.deepExtend)({},{upColor:"",downColor:"",upColorProjection:"",downColorProjection:"",inputs:{reversalAmount:0,boxSize:0,style:"",atrLength:0}}),rangeStyle:Object(u.deepExtend)({},{upColor:"",downColor:"",upColorProjection:"",downColorProjection:"",thinBars:!1,inputs:{range:0,phantomBars:!1}})},x={priceScaleSelectionStrategyName:"auto",timeScale:Object(u.deepExtend)({},w),mainSeries:Object(u.deepExtend)({},T),sessions:Object(u.deepExtend)({},c.sessionsPreferencesDefault),paneProperties:Object(u.deepExtend)({},v),chartEventsSourceProperties:Object(u.deepExtend)({},S),tradingProperties:Object(u.deepExtend)({},o.b)},I=Object(n.a)({timezone:"",scalesProperties:Object(u.deepExtend)({},g)},x),L=Object(n.a)({scalesProperties:Object(u.deepExtend)({},y)},x);function O(e,t,i,n,o){if(void 0===o&&(o=!0),void 0===t[e])return d.logDebug("We haven't had this property "+n+"."+e+" yet, please, remove it from whiteList"),null;if(Object(r.isObject)(i[e])){var s=Object.keys(i[e]),a="";return s.map((function(r){var s;return(s={})[r]=O(r,t[e],i[e],n+"."+e,o),s})).reduce((function(e,t){return e[a=Object.keys(t)[0]]=t[a],e}),{})}return o?t[e].value():t[e]}function M(e,t,i){void 0===i&&(i=I);var n={timezone:"",priceScaleSelectionStrategyName:"auto",timeScale:{defaultRightOffset:e.timeScale().defaultRightOffsetProperty().value()},mainSeries:{},sessions:{},paneProperties:{},scalesProperties:{},chartEventsSourceProperties:{},tradingProperties:{}},r=["timeScale","mainSeries","sessions"],o=i.mainSeries,s=Object.keys(i),a=Object.keys(o),l=t.properties(),c=e.properties(),u=i.sessions,h=Object.keys(u),d=e.sessions().properties();return a.forEach((function(e){n.mainSeries[e]=O(e,l,o,"mainSeries")})),h.forEach((function(e){n.sessions[e]=O(e,d,u,"sessions")})),s.forEach((function(e){r.includes(e)||(n[e]=O(e,c,i,"preferences"))})),n}function A(e,t,i){void 0===i&&(i=L);var n={timeScale:{defaultRightOffset:e.timeScale().rightOffsetDefaultValue()},mainSeries:{},sessions:Object(u.deepExtend)({},c.sessionsPreferencesDefault),paneProperties:{},scalesProperties:{},chartEventsSourceProperties:{},tradingProperties:{},priceScaleSelectionStrategyName:"auto"},r=["timeScale","mainSeries","sessions"],o=i.mainSeries,s=Object.keys(i),a=Object.keys(o),h=Object(l.factoryDefaults)("chartproperties.mainSeriesProperties"),d=Object(l.factoryDefaults)("chartproperties");return a.forEach((function(e){n.mainSeries[e]=O(e,h,o,"mainSeries",!1)})),s.forEach((function(e){r.includes(e)||(n[e]=O(e,d,i,"preferences",!1))})),n
}},Az04:function(e,t,i){"use strict";var n=i("aO4+").Point,r=i("GEp6").distanceToLine,o=i("Ss5c").LineDataSource,s=i("Ocx9").DefaultProperty,a=i("j3hX").LineToolColorsProperty;function l(e,t){var n=t||l.createProperties();o.call(this,e,n),i.e("lt-pane-views").then(function(e){var t=i("lZ9F").RotatedRectanglePaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(l,o),l.prototype.startChanging=function(e,t){if(o.prototype.startChanging.call(this,e,t),0===e||1===e){var i=this._getPaneViews()[0],n=i._points[0],s=i._points[1],a=i._points[2];this._distance=r(n,s,a).distance}},l.prototype.setPoint=function(e,t,i){if(o.prototype.setPoint.call(this,e,t,i),0===e||1===e){var r=this._getPaneViews()[0];r.update();var s=r._points[0],a=r._points[1].subtract(s),l=new n(a.y,-a.x).normalized().scaled(this._distance),c=s.add(l),u=this.screenPointToPoint(c);this._points[2]=u}},l.prototype.endChanging=function(e,t){delete this._distance,o.prototype.endChanging.call(this,e,t)},l.prototype.pointsCount=function(){return 3},l.prototype.name=function(){return"Rotated Rectangle"},l.prototype.hasEditableCoordinates=function(){return!1},l.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("Zd1D").GeneralFiguresDefinitionsViewModel}.bind(null,i)).catch(i.oe)},l.createProperties=function(e){var t=new s("linetoolrotatedrectangle",e);return l._configureProperties(t),t},l._configureProperties=function(e){o._configureProperties(e),e.addChild("linesColors",new a([e.color]))},t.LineToolRotatedRectangle=l},"B4/o":function(e,t,i){"use strict";(function(e){var n=i("QIuV").LineToolTrading,r=i("4TVt").LineToolPriceAxisView,o=i("jkoZ"),s=i("Ss5c").LineDataSource,a=i("Ocx9").DefaultProperty,l=i("s1Gx").sortSourcesPreOrdered.LineToolOrder;function c(e){this._line=e,this._data={bodyText:"order",quantityText:"0"},this._editable=!0,this._cancellable=!0,this._mode="",this._direction="buy",this._active=!0}function u(e){return null==e?e="":e+="",e}function h(e,t){this._adapter=new c(this);var r=t||h.createProperties();n.call(this,e,r),this.customization.disableSelection=!1,i.e("lt-pane-views").then(function(e){var t=i("LMGK").OrderPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}c.prototype.setMode=function(e){return this._mode=e,this._line.updateAllViewsAndRedraw(),this},c.prototype.setDirection=function(e){return this._direction=e,this._line.updateAllViewsAndRedraw(),this},c.prototype.setActive=function(e){return this._active=e,this._line.updateAllViewsAndRedraw(),this},c.prototype.setEditable=function(e){return this._editable=e,this._line.updateAllViewsAndRedraw(),this},c.prototype.getEditable=function(){return this._editable},c.prototype.setCancellable=function(e){return this._cancellable=e,this._line.updateAllViewsAndRedraw(),this},c.prototype.getCancellable=function(){return this._cancellable},c.prototype.hasMoveCallback=function(){ }},Az04:function(e,t,i){"use strict";var n=i("aO4+").Point,r=i("GEp6").distanceToLine,o=i("Ss5c").LineDataSource,s=i("Ocx9").DefaultProperty,a=i("j3hX").LineToolColorsProperty;function l(e,t){var n=t||l.createProperties();o.call(this,e,n),i.e("lt-pane-views").then(function(e){var t=i("lZ9F").RotatedRectanglePaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(l,o),l.prototype.startChanging=function(e,t){if(o.prototype.startChanging.call(this,e,t),0===e||1===e){var i=this._getPaneViews()[0],n=i._points[0],s=i._points[1],a=i._points[2];this._distance=r(n,s,a).distance}},l.prototype.setPoint=function(e,t,i){if(o.prototype.setPoint.call(this,e,t,i),0===e||1===e){var r=this._getPaneViews()[0];r.update();var s=r._points[0],a=r._points[1].subtract(s),l=new n(a.y,-a.x).normalized().scaled(this._distance),c=s.add(l),u=this.screenPointToPoint(c);this._points[2]=u}},l.prototype.endChanging=function(e,t){delete this._distance,o.prototype.endChanging.call(this,e,t)},l.prototype.pointsCount=function(){return 3},l.prototype.name=function(){return"Rotated Rectangle"},l.prototype.hasEditableCoordinates=function(){return!1},l.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("Zd1D").GeneralFiguresDefinitionsViewModel}.bind(null,i)).catch(i.oe)},l.createProperties=function(e){var t=new s("linetoolrotatedrectangle",e);return l._configureProperties(t),t},l._configureProperties=function(e){o._configureProperties(e),e.addChild("linesColors",new a([e.color]))},t.LineToolRotatedRectangle=l},"B4/o":function(e,t,i){"use strict";(function(e){var n=i("QIuV").LineToolTrading,r=i("4TVt").LineToolPriceAxisView,o=i("jkoZ"),s=i("Ss5c").LineDataSource,a=i("Ocx9").DefaultProperty,l=i("s1Gx").sortSourcesPreOrdered.LineToolOrder;function c(e){this._line=e,this._data={bodyText:"order",quantityText:"0"},this._editable=!0,this._cancellable=!0,this._mode="",this._direction="buy",this._active=!0}function u(e){return null==e?e="":e+="",e}function h(e,t){this._adapter=new c(this);var r=t||h.createProperties();n.call(this,e,r),this.setSelectionEnabled(!0),i.e("lt-pane-views").then(function(e){var t=i("LMGK").OrderPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}c.prototype.setMode=function(e){return this._mode=e,this._line.updateAllViewsAndRedraw(),this},c.prototype.setDirection=function(e){return this._direction=e,this._line.updateAllViewsAndRedraw(),this},c.prototype.setActive=function(e){return this._active=e,this._line.updateAllViewsAndRedraw(),this},c.prototype.setEditable=function(e){return this._editable=e,this._line.updateAllViewsAndRedraw(),this},c.prototype.getEditable=function(){return this._editable},c.prototype.setCancellable=function(e){return this._cancellable=e,this._line.updateAllViewsAndRedraw(),this},c.prototype.getCancellable=function(){return this._cancellable},c.prototype.hasMoveCallback=function(){return this.isFunction(this._onMoveCallback)},
return this.isFunction(this._onMoveCallback)},c.prototype.hasModifyCallback=function(){return this.isFunction(this._onModifyCallback)},c.prototype.getPrice=function(){return this._line.points().length>0?this._line.points()[0].price:this._line._timePoint.length>0?this._line._timePoint[0].price:void 0},c.prototype.setPrice=function(e){if(this._line.points().length>0){var t=this._line.points()[0];t.price=e,this._line._points[0]=t,this._line.normalizePoints(),this._line.updateAllViewsAndRedraw()}return this._line._timePoint.length>0&&(this._line._timePoint[0].price=e),this},c.prototype.getText=function(){return this._data.bodyText},c.prototype.setText=function(e){return this._data.bodyText=e||"",this._line.updateAllViewsAndRedraw(),this},c.prototype.setTooltip=function(e){return this._line.properties().tooltip.setValue(u(e)),this},c.prototype.getTooltip=function(){return this._line.properties().tooltip.value()},c.prototype.setModifyTooltip=function(e){return this._line.properties().modifyTooltip.setValue(u(e)),this},c.prototype.getModifyTooltip=function(){return this._line.properties().modifyTooltip.value()},c.prototype.setCancelTooltip=function(e){return this._line.properties().cancelTooltip.setValue(u(e)),this},c.prototype.getCancelTooltip=function(){return this._line.properties().cancelTooltip.value()},c.prototype.getQuantity=function(){return this._data.quantityText},c.prototype.setQuantity=function(e){return this._data.quantityText=e||"",this._line.updateAllViewsAndRedraw(),this},c.prototype.getExtendLeft=function(){var e=this._line.properties().extendLeft.value();return"inherit"===e?this._line._model.properties().tradingProperties.extendLeft.value():e},c.prototype.setExtendLeft=function(e){return this._line.properties().extendLeft.setValue(e),this},c.prototype.getLineLength=function(){var e=this._line.properties().lineLength.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineLength.value():e},c.prototype.setLineLength=function(e){return this._line.properties().lineLength.setValue(Math.max(0,Math.min(e,100))),this},c.prototype.getLineColor=function(){var e=this._line.properties();return"buy"===this._direction?this._active?e.lineActiveBuyColor.value():e.lineInactiveBuyColor.value():this._active?e.lineActiveSellColor.value():e.lineInactiveSellColor.value()},c.prototype.setLineColor=function(e){return"buy"===this._direction?this._active?this.setLineActiveBuyColor(e):this.setLineInactiveBuyColor(e):this._active?this.setLineActiveSellColor(e):this.setLineInactiveSellColor(e),this},c.prototype.setLineActiveBuyColor=function(e){return this._line.properties().lineActiveBuyColor.setValue(e),this},c.prototype.setLineInactiveBuyColor=function(e){return this._line.properties().lineInactiveBuyColor.setValue(e),this},c.prototype.setLineActiveSellColor=function(e){return this._line.properties().lineActiveSellColor.setValue(e),this},c.prototype.setLineInactiveSellColor=function(e){return this._line.properties().lineInactiveSellColor.setValue(e),this},c.prototype.getLineStyle=function(){ c.prototype.hasModifyCallback=function(){return this.isFunction(this._onModifyCallback)},c.prototype.getPrice=function(){return this._line.points().length>0?this._line.points()[0].price:this._line._timePoint.length>0?this._line._timePoint[0].price:void 0},c.prototype.setPrice=function(e){if(this._line.points().length>0){var t=this._line.points()[0];t.price=e,this._line._points[0]=t,this._line.normalizePoints(),this._line.updateAllViewsAndRedraw()}return this._line._timePoint.length>0&&(this._line._timePoint[0].price=e),this},c.prototype.getText=function(){return this._data.bodyText},c.prototype.setText=function(e){return this._data.bodyText=e||"",this._line.updateAllViewsAndRedraw(),this},c.prototype.setTooltip=function(e){return this._line.properties().tooltip.setValue(u(e)),this},c.prototype.getTooltip=function(){return this._line.properties().tooltip.value()},c.prototype.setModifyTooltip=function(e){return this._line.properties().modifyTooltip.setValue(u(e)),this},c.prototype.getModifyTooltip=function(){return this._line.properties().modifyTooltip.value()},c.prototype.setCancelTooltip=function(e){return this._line.properties().cancelTooltip.setValue(u(e)),this},c.prototype.getCancelTooltip=function(){return this._line.properties().cancelTooltip.value()},c.prototype.getQuantity=function(){return this._data.quantityText},c.prototype.setQuantity=function(e){return this._data.quantityText=e||"",this._line.updateAllViewsAndRedraw(),this},c.prototype.getExtendLeft=function(){var e=this._line.properties().extendLeft.value();return"inherit"===e?this._line._model.properties().tradingProperties.extendLeft.value():e},c.prototype.setExtendLeft=function(e){return this._line.properties().extendLeft.setValue(e),this},c.prototype.getLineLength=function(){var e=this._line.properties().lineLength.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineLength.value():e},c.prototype.setLineLength=function(e){return this._line.properties().lineLength.setValue(Math.max(0,Math.min(e,100))),this},c.prototype.getLineColor=function(){var e=this._line.properties();return"buy"===this._direction?this._active?e.lineActiveBuyColor.value():e.lineInactiveBuyColor.value():this._active?e.lineActiveSellColor.value():e.lineInactiveSellColor.value()},c.prototype.setLineColor=function(e){return"buy"===this._direction?this._active?this.setLineActiveBuyColor(e):this.setLineInactiveBuyColor(e):this._active?this.setLineActiveSellColor(e):this.setLineInactiveSellColor(e),this},c.prototype.setLineActiveBuyColor=function(e){return this._line.properties().lineActiveBuyColor.setValue(e),this},c.prototype.setLineInactiveBuyColor=function(e){return this._line.properties().lineInactiveBuyColor.setValue(e),this},c.prototype.setLineActiveSellColor=function(e){return this._line.properties().lineActiveSellColor.setValue(e),this},c.prototype.setLineInactiveSellColor=function(e){return this._line.properties().lineInactiveSellColor.setValue(e),this},c.prototype.getLineStyle=function(){var e=this._line.properties().lineStyle.value()
var e=this._line.properties().lineStyle.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineStyle.value():e},c.prototype.setLineStyle=function(e){return this._line.properties().lineStyle.setValue(e),this},c.prototype.getLineWidth=function(){var e=this._line.properties().lineWidth.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineWidth.value():e},c.prototype.setLineWidth=function(e){return this._line.properties().lineWidth.setValue(e),this},c.prototype.getBodyBorderColor=function(){var e=this._line.properties();return"buy"===this._direction?this._active?e.bodyBorderActiveBuyColor.value():e.bodyBorderInactiveBuyColor.value():this._active?e.bodyBorderActiveSellColor.value():e.bodyBorderInactiveSellColor.value()},c.prototype.setBodyBorderColor=function(e){return"buy"===this._direction?this._active?this.setBodyBorderActiveBuyColor(e):this.setBodyBorderInactiveBuyColor(e):this._active?this.setBodyBorderActiveSellColor(e):this.setBodyBorderInactiveSellColor(e),this},c.prototype.setBodyBorderActiveBuyColor=function(e){return this._line.properties().bodyBorderActiveBuyColor.setValue(e),this},c.prototype.setBodyBorderInactiveBuyColor=function(e){return this._line.properties().bodyBorderInactiveBuyColor.setValue(e),this},c.prototype.setBodyBorderActiveSellColor=function(e){return this._line.properties().bodyBorderActiveSellColor.setValue(e),this},c.prototype.setBodyBorderInactiveSellColor=function(e){return this._line.properties().bodyBorderInactiveSellColor.setValue(e),this},c.prototype.getBodyBackgroundColor=function(){return o.getColorFromProperties(this._line.properties().bodyBackgroundColor,this._line.properties().bodyBackgroundTransparency)},c.prototype.setBodyBackgroundColor=function(e){return o.setColorToProperties(e,this._line.properties().bodyBackgroundColor,this._line.properties().bodyBackgroundTransparency),this},c.prototype.getBodyTextColor=function(){var e=this._line.properties();return"limit"===this._mode?this._active?e.bodyTextActiveLimitColor.value():e.bodyTextInactiveLimitColor.value():"stop"===this._mode?this._active?e.bodyTextActiveStopColor.value():e.bodyTextInactiveStopColor.value():"buy"===this._direction?this._active?e.bodyTextActiveBuyColor.value():e.bodyTextInactiveBuyColor.value():this._active?e.bodyTextActiveSellColor.value():e.bodyTextInactiveSellColor.value()},c.prototype.setBodyTextColor=function(e){return"limit"===this._mode?this._active?this.setBodyTextActiveLimitColor(e):this.setBodyTextInactiveLimitColor(e):"stop"===this._mode?this._active?this.setBodyTextActiveStopColor(e):this.setBodyTextInactiveStopColor(e):"buy"===this._direction?this._active?this.setBodyTextActiveBuyColor(e):this.setBodyTextInactiveBuyColor(e):this._active?this.setBodyTextActiveSellColor(e):this.setBodyTextInactiveSellColor(e),this},c.prototype.setBodyTextInactiveLimitColor=function(e){return this._line.properties().bodyTextInactiveLimitColor.setValue(e),this},c.prototype.setBodyTextActiveLimitColor=function(e){ ;return"inherit"===e?this._line._model.properties().tradingProperties.lineStyle.value():e},c.prototype.setLineStyle=function(e){return this._line.properties().lineStyle.setValue(e),this},c.prototype.getLineWidth=function(){var e=this._line.properties().lineWidth.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineWidth.value():e},c.prototype.setLineWidth=function(e){return this._line.properties().lineWidth.setValue(e),this},c.prototype.getBodyBorderColor=function(){var e=this._line.properties();return"buy"===this._direction?this._active?e.bodyBorderActiveBuyColor.value():e.bodyBorderInactiveBuyColor.value():this._active?e.bodyBorderActiveSellColor.value():e.bodyBorderInactiveSellColor.value()},c.prototype.setBodyBorderColor=function(e){return"buy"===this._direction?this._active?this.setBodyBorderActiveBuyColor(e):this.setBodyBorderInactiveBuyColor(e):this._active?this.setBodyBorderActiveSellColor(e):this.setBodyBorderInactiveSellColor(e),this},c.prototype.setBodyBorderActiveBuyColor=function(e){return this._line.properties().bodyBorderActiveBuyColor.setValue(e),this},c.prototype.setBodyBorderInactiveBuyColor=function(e){return this._line.properties().bodyBorderInactiveBuyColor.setValue(e),this},c.prototype.setBodyBorderActiveSellColor=function(e){return this._line.properties().bodyBorderActiveSellColor.setValue(e),this},c.prototype.setBodyBorderInactiveSellColor=function(e){return this._line.properties().bodyBorderInactiveSellColor.setValue(e),this},c.prototype.getBodyBackgroundColor=function(){return o.getColorFromProperties(this._line.properties().bodyBackgroundColor,this._line.properties().bodyBackgroundTransparency)},c.prototype.setBodyBackgroundColor=function(e){return o.setColorToProperties(e,this._line.properties().bodyBackgroundColor,this._line.properties().bodyBackgroundTransparency),this},c.prototype.getBodyTextColor=function(){var e=this._line.properties();return"limit"===this._mode?this._active?e.bodyTextActiveLimitColor.value():e.bodyTextInactiveLimitColor.value():"stop"===this._mode?this._active?e.bodyTextActiveStopColor.value():e.bodyTextInactiveStopColor.value():"buy"===this._direction?this._active?e.bodyTextActiveBuyColor.value():e.bodyTextInactiveBuyColor.value():this._active?e.bodyTextActiveSellColor.value():e.bodyTextInactiveSellColor.value()},c.prototype.setBodyTextColor=function(e){return"limit"===this._mode?this._active?this.setBodyTextActiveLimitColor(e):this.setBodyTextInactiveLimitColor(e):"stop"===this._mode?this._active?this.setBodyTextActiveStopColor(e):this.setBodyTextInactiveStopColor(e):"buy"===this._direction?this._active?this.setBodyTextActiveBuyColor(e):this.setBodyTextInactiveBuyColor(e):this._active?this.setBodyTextActiveSellColor(e):this.setBodyTextInactiveSellColor(e),this},c.prototype.setBodyTextInactiveLimitColor=function(e){return this._line.properties().bodyTextInactiveLimitColor.setValue(e),this},c.prototype.setBodyTextActiveLimitColor=function(e){return this._line.properties().bodyTextActiveLimitColor.setValue(e),this},
return this._line.properties().bodyTextActiveLimitColor.setValue(e),this},c.prototype.setBodyTextInactiveStopColor=function(e){return this._line.properties().bodyTextInactiveStopColor.setValue(e),this},c.prototype.setBodyTextActiveStopColor=function(e){return this._line.properties().bodyTextActiveStopColor.setValue(e),this},c.prototype.setBodyTextInactiveBuyColor=function(e){return this._line.properties().bodyTextInactiveBuyColor.setValue(e),this},c.prototype.setBodyTextActiveBuyColor=function(e){return this._line.properties().bodyTextActiveBuyColor.setValue(e),this},c.prototype.setBodyTextInactiveSellColor=function(e){return this._line.properties().bodyTextInactiveSellColor.setValue(e),this},c.prototype.setBodyTextActiveSellColor=function(e){return this._line.properties().bodyTextActiveSellColor.setValue(e),this},c.prototype.getBodyFont=function(){return o.getFontFromProperties(this._line.properties().bodyFontFamily,this._line.properties().bodyFontSize,this._line.properties().bodyFontBold,this._line.properties().bodyFontItalic)},c.prototype.setBodyFont=function(e){return o.setFontToProperties(e,this._line.properties().bodyFontFamily,this._line.properties().bodyFontSize,this._line.properties().bodyFontBold,this._line.properties().bodyFontItalic),this},c.prototype.getQuantityBorderColor=function(){var e=this._line.properties();return"buy"===this._direction?this._active?e.quantityBorderActiveBuyColor.value():e.quantityBorderInactiveBuyColor.value():this._active?e.quantityBorderActiveSellColor.value():e.quantityBorderInactiveSellColor.value()},c.prototype.setQuantityBorderColor=function(e){return"buy"===this._direction?this._active?this.setQuantityBorderActiveBuyColor(e):this.setQuantityBorderInactiveBuyColor(e):this._active?this.setQuantityBorderActiveSellColor(e):this.setQuantityBorderInactiveSellColor(e),this},c.prototype.setQuantityBorderActiveBuyColor=function(e){return this._line.properties().quantityBorderActiveBuyColor.setValue(e),this},c.prototype.setQuantityBorderInactiveBuyColor=function(e){return this._line.properties().quantityBorderInactiveBuyColor.setValue(e),this},c.prototype.setQuantityBorderActiveSellColor=function(e){return this._line.properties().quantityBorderActiveSellColor.setValue(e),this},c.prototype.setQuantityBorderInactiveSellColor=function(e){return this._line.properties().quantityBorderInactiveSellColor.setValue(e),this},c.prototype.getQuantityBackgroundColor=function(){var e=this._line.properties();return"buy"===this._direction?this._active?e.quantityBackgroundActiveBuyColor.value():e.quantityBackgroundInactiveBuyColor.value():this._active?e.quantityBackgroundActiveSellColor.value():e.quantityBackgroundInactiveSellColor.value()},c.prototype.setQuantityBackgroundColor=function(e){return"buy"===this._direction?this._active?this.setQuantityBackgroundActiveBuyColor(e):this.setQuantityBackgroundInactiveBuyColor(e):this._active?this.setQuantityBackgroundActiveSellColor(e):this.setQuantityBackgroundInactiveSellColor(e),this},c.prototype.setQuantityBackgroundActiveBuyColor=function(e){ c.prototype.setBodyTextInactiveStopColor=function(e){return this._line.properties().bodyTextInactiveStopColor.setValue(e),this},c.prototype.setBodyTextActiveStopColor=function(e){return this._line.properties().bodyTextActiveStopColor.setValue(e),this},c.prototype.setBodyTextInactiveBuyColor=function(e){return this._line.properties().bodyTextInactiveBuyColor.setValue(e),this},c.prototype.setBodyTextActiveBuyColor=function(e){return this._line.properties().bodyTextActiveBuyColor.setValue(e),this},c.prototype.setBodyTextInactiveSellColor=function(e){return this._line.properties().bodyTextInactiveSellColor.setValue(e),this},c.prototype.setBodyTextActiveSellColor=function(e){return this._line.properties().bodyTextActiveSellColor.setValue(e),this},c.prototype.getBodyFont=function(){return o.getFontFromProperties(this._line.properties().bodyFontFamily,this._line.properties().bodyFontSize,this._line.properties().bodyFontBold,this._line.properties().bodyFontItalic)},c.prototype.setBodyFont=function(e){return o.setFontToProperties(e,this._line.properties().bodyFontFamily,this._line.properties().bodyFontSize,this._line.properties().bodyFontBold,this._line.properties().bodyFontItalic),this},c.prototype.getQuantityBorderColor=function(){var e=this._line.properties();return"buy"===this._direction?this._active?e.quantityBorderActiveBuyColor.value():e.quantityBorderInactiveBuyColor.value():this._active?e.quantityBorderActiveSellColor.value():e.quantityBorderInactiveSellColor.value()},c.prototype.setQuantityBorderColor=function(e){return"buy"===this._direction?this._active?this.setQuantityBorderActiveBuyColor(e):this.setQuantityBorderInactiveBuyColor(e):this._active?this.setQuantityBorderActiveSellColor(e):this.setQuantityBorderInactiveSellColor(e),this},c.prototype.setQuantityBorderActiveBuyColor=function(e){return this._line.properties().quantityBorderActiveBuyColor.setValue(e),this},c.prototype.setQuantityBorderInactiveBuyColor=function(e){return this._line.properties().quantityBorderInactiveBuyColor.setValue(e),this},c.prototype.setQuantityBorderActiveSellColor=function(e){return this._line.properties().quantityBorderActiveSellColor.setValue(e),this},c.prototype.setQuantityBorderInactiveSellColor=function(e){return this._line.properties().quantityBorderInactiveSellColor.setValue(e),this},c.prototype.getQuantityBackgroundColor=function(){var e=this._line.properties();return"buy"===this._direction?this._active?e.quantityBackgroundActiveBuyColor.value():e.quantityBackgroundInactiveBuyColor.value():this._active?e.quantityBackgroundActiveSellColor.value():e.quantityBackgroundInactiveSellColor.value()},c.prototype.setQuantityBackgroundColor=function(e){return"buy"===this._direction?this._active?this.setQuantityBackgroundActiveBuyColor(e):this.setQuantityBackgroundInactiveBuyColor(e):this._active?this.setQuantityBackgroundActiveSellColor(e):this.setQuantityBackgroundInactiveSellColor(e),this},c.prototype.setQuantityBackgroundActiveBuyColor=function(e){return this._line.properties().quantityBackgroundActiveBuyColor.setValue(e),this},
return this._line.properties().quantityBackgroundActiveBuyColor.setValue(e),this},c.prototype.setQuantityBackgroundInactiveBuyColor=function(e){return this._line.properties().quantityBackgroundInactiveBuyColor.setValue(e),this},c.prototype.setQuantityBackgroundActiveSellColor=function(e){return this._line.properties().quantityBackgroundActiveSellColor.setValue(e),this},c.prototype.setQuantityBackgroundInactiveSellColor=function(e){return this._line.properties().quantityBackgroundInactiveSellColor.setValue(e),this},c.prototype.getQuantityTextColor=function(){return o.getColorFromProperties(this._line.properties().quantityTextColor,this._line.properties().quantityTextTransparency)},c.prototype.setQuantityTextColor=function(e){return o.setColorToProperties(e,this._line.properties().quantityTextColor,this._line.properties().quantityTextTransparency),this},c.prototype.getQuantityFont=function(){return o.getFontFromProperties(this._line.properties().quantityFontFamily,this._line.properties().quantityFontSize,this._line.properties().quantityFontBold,this._line.properties().quantityFontItalic)},c.prototype.setQuantityFont=function(e){return o.setFontToProperties(e,this._line.properties().quantityFontFamily,this._line.properties().quantityFontSize,this._line.properties().quantityFontBold,this._line.properties().quantityFontItalic),this},c.prototype.getCancelButtonBorderColor=function(){var e=this._line.properties();return"buy"===this._direction?this._active?e.cancelButtonBorderActiveBuyColor.value():e.cancelButtonBorderInactiveBuyColor.value():this._active?e.cancelButtonBorderActiveSellColor.value():e.cancelButtonBorderInactiveSellColor.value()},c.prototype.setCancelButtonBorderColor=function(e){return"buy"===this._direction?this._active?this.setCancelButtonBorderActiveBuyColor(e):this.setCancelButtonBorderInactiveBuyColor(e):this._active?this.setCancelButtonBorderActiveSellColor(e):this.setCancelButtonBorderInactiveSellColor(e),this},c.prototype.setCancelButtonBorderActiveBuyColor=function(e){return this._line.properties().cancelButtonBorderActiveBuyColor.setValue(e),this},c.prototype.setCancelButtonBorderInactiveBuyColor=function(e){return this._line.properties().cancelButtonBorderInactiveBuyColor.setValue(e),this},c.prototype.setCancelButtonBorderActiveSellColor=function(e){return this._line.properties().cancelButtonBorderActiveSellColor.setValue(e),this},c.prototype.setCancelButtonBorderInactiveSellColor=function(e){return this._line.properties().cancelButtonBorderInactiveSellColor.setValue(e),this},c.prototype.getCancelButtonBackgroundColor=function(){return o.getColorFromProperties(this._line.properties().cancelButtonBackgroundColor,this._line.properties().cancelButtonBackgroundTransparency)},c.prototype.setCancelButtonBackgroundColor=function(e){return o.setColorToProperties(e,this._line.properties().cancelButtonBackgroundColor,this._line.properties().cancelButtonBackgroundTransparency),this},c.prototype.getCancelButtonIconColor=function(){var e=this._line.properties() c.prototype.setQuantityBackgroundInactiveBuyColor=function(e){return this._line.properties().quantityBackgroundInactiveBuyColor.setValue(e),this},c.prototype.setQuantityBackgroundActiveSellColor=function(e){return this._line.properties().quantityBackgroundActiveSellColor.setValue(e),this},c.prototype.setQuantityBackgroundInactiveSellColor=function(e){return this._line.properties().quantityBackgroundInactiveSellColor.setValue(e),this},c.prototype.getQuantityTextColor=function(){return o.getColorFromProperties(this._line.properties().quantityTextColor,this._line.properties().quantityTextTransparency)},c.prototype.setQuantityTextColor=function(e){return o.setColorToProperties(e,this._line.properties().quantityTextColor,this._line.properties().quantityTextTransparency),this},c.prototype.getQuantityFont=function(){return o.getFontFromProperties(this._line.properties().quantityFontFamily,this._line.properties().quantityFontSize,this._line.properties().quantityFontBold,this._line.properties().quantityFontItalic)},c.prototype.setQuantityFont=function(e){return o.setFontToProperties(e,this._line.properties().quantityFontFamily,this._line.properties().quantityFontSize,this._line.properties().quantityFontBold,this._line.properties().quantityFontItalic),this},c.prototype.getCancelButtonBorderColor=function(){var e=this._line.properties();return"buy"===this._direction?this._active?e.cancelButtonBorderActiveBuyColor.value():e.cancelButtonBorderInactiveBuyColor.value():this._active?e.cancelButtonBorderActiveSellColor.value():e.cancelButtonBorderInactiveSellColor.value()},c.prototype.setCancelButtonBorderColor=function(e){return"buy"===this._direction?this._active?this.setCancelButtonBorderActiveBuyColor(e):this.setCancelButtonBorderInactiveBuyColor(e):this._active?this.setCancelButtonBorderActiveSellColor(e):this.setCancelButtonBorderInactiveSellColor(e),this},c.prototype.setCancelButtonBorderActiveBuyColor=function(e){return this._line.properties().cancelButtonBorderActiveBuyColor.setValue(e),this},c.prototype.setCancelButtonBorderInactiveBuyColor=function(e){return this._line.properties().cancelButtonBorderInactiveBuyColor.setValue(e),this},c.prototype.setCancelButtonBorderActiveSellColor=function(e){return this._line.properties().cancelButtonBorderActiveSellColor.setValue(e),this},c.prototype.setCancelButtonBorderInactiveSellColor=function(e){return this._line.properties().cancelButtonBorderInactiveSellColor.setValue(e),this},c.prototype.getCancelButtonBackgroundColor=function(){return o.getColorFromProperties(this._line.properties().cancelButtonBackgroundColor,this._line.properties().cancelButtonBackgroundTransparency)},c.prototype.setCancelButtonBackgroundColor=function(e){return o.setColorToProperties(e,this._line.properties().cancelButtonBackgroundColor,this._line.properties().cancelButtonBackgroundTransparency),this},c.prototype.getCancelButtonIconColor=function(){var e=this._line.properties()
;return"buy"===this._direction?this._active?e.cancelButtonIconActiveBuyColor.value():e.cancelButtonIconInactiveBuyColor.value():this._active?e.cancelButtonIconActiveSellColor.value():e.cancelButtonIconInactiveSellColor.value()},c.prototype.setCancelButtonIconColor=function(e){return"buy"===this._direction?this._active?this.setCancelButtonIconActiveBuyColor(e):this.setCancelButtonIconInactiveBuyColor(e):this._active?this.setCancelButtonIconActiveSellColor(e):this.setCancelButtonIconInactiveSellColor(e),this},c.prototype.setCancelButtonIconActiveBuyColor=function(e){return this._line.properties().cancelButtonIconActiveBuyColor.setValue(e),this},c.prototype.setCancelButtonIconInactiveBuyColor=function(e){return this._line.properties().cancelButtonIconInactiveBuyColor.setValue(e),this},c.prototype.setCancelButtonIconActiveSellColor=function(e){return this._line.properties().cancelButtonIconActiveSellColor.setValue(e),this},c.prototype.setCancelButtonIconInactiveSellColor=function(e){return this._line.properties().cancelButtonIconInactiveSellColor.setValue(e),this},c.prototype.block=function(){this._blocked=!0,this._line.updateAllViewsAndRedraw()},c.prototype.unblock=function(){this._blocked=!1,this._line.updateAllViewsAndRedraw()},c.prototype.isFunction=function(e){return"function"==typeof e},c.prototype.onCancel=function(e,t){return t?this.isFunction(t)&&(this._onCancelData=e,this._onCancelCallback=t):this.isFunction(e)&&(this._onCancelCallback=e),this},c.prototype.callOnCancel=function(){this.isFunction(this._onCancelCallback)&&this._onCancelCallback.call(this,this._onCancelData)},c.prototype.isOnCancelCallbackPresent=function(){return this.isFunction(this._onCancelCallback)},c.prototype.onModify=function(e,t){return t?this.isFunction(t)&&(this._onModifyData=e,this._onModifyCallback=t):this.isFunction(e)&&(this._onModifyCallback=e),this},c.prototype.callOnModify=function(){this.isFunction(this._onModifyCallback)&&this._onModifyCallback.call(this,this._onModifyData)},c.prototype.onMove=function(e,t){return t?this.isFunction(t)&&(this._onMoveData=e,this._onMoveCallback=t):this.isFunction(e)&&(this._onMoveCallback=e),this},c.prototype.callOnMove=function(){this.isFunction(this._onMoveCallback)&&this._onMoveCallback.call(this,this._onMoveData)},c.prototype.onContextMenu=function(e,t){return t?this.isFunction(t)&&(this._onContextMenuData=e,this._onContextMenuCallback=t):this.isFunction(e)&&(this._onContextMenuCallback=e),this},c.prototype.shouldShowContextMenu=function(){return this.isFunction(this._onContextMenuCallback)},c.prototype.callOnContextMenu=function(){if(this.isFunction(this._onContextMenuCallback))return this._onContextMenuCallback.call(this,this._onContextMenuData)},c.prototype.remove=function(){this._line._model.removeSource(this._line),delete this._line},inherit(h,n),h.prototype.zorder=function(){return l},h.prototype.setPoint=function(e,t,i){this._points[e]=t,this.normalizePoints()},h.prototype.addPoint=function(e,t){return this._points.push(e),this._lastPoint=null,this.normalizePoints(), ;return"buy"===this._direction?this._active?e.cancelButtonIconActiveBuyColor.value():e.cancelButtonIconInactiveBuyColor.value():this._active?e.cancelButtonIconActiveSellColor.value():e.cancelButtonIconInactiveSellColor.value()},c.prototype.setCancelButtonIconColor=function(e){return"buy"===this._direction?this._active?this.setCancelButtonIconActiveBuyColor(e):this.setCancelButtonIconInactiveBuyColor(e):this._active?this.setCancelButtonIconActiveSellColor(e):this.setCancelButtonIconInactiveSellColor(e),this},c.prototype.setCancelButtonIconActiveBuyColor=function(e){return this._line.properties().cancelButtonIconActiveBuyColor.setValue(e),this},c.prototype.setCancelButtonIconInactiveBuyColor=function(e){return this._line.properties().cancelButtonIconInactiveBuyColor.setValue(e),this},c.prototype.setCancelButtonIconActiveSellColor=function(e){return this._line.properties().cancelButtonIconActiveSellColor.setValue(e),this},c.prototype.setCancelButtonIconInactiveSellColor=function(e){return this._line.properties().cancelButtonIconInactiveSellColor.setValue(e),this},c.prototype.block=function(){this._blocked=!0,this._line.updateAllViewsAndRedraw()},c.prototype.unblock=function(){this._blocked=!1,this._line.updateAllViewsAndRedraw()},c.prototype.getBlocked=function(){return this._blocked},c.prototype.isFunction=function(e){return"function"==typeof e},c.prototype.onCancel=function(e,t){return t?this.isFunction(t)&&(this._onCancelData=e,this._onCancelCallback=t):this.isFunction(e)&&(this._onCancelCallback=e),this},c.prototype.callOnCancel=function(){this.isFunction(this._onCancelCallback)&&this._onCancelCallback.call(this,this._onCancelData)},c.prototype.isOnCancelCallbackPresent=function(){return this.isFunction(this._onCancelCallback)},c.prototype.onModify=function(e,t){return t?this.isFunction(t)&&(this._onModifyData=e,this._onModifyCallback=t):this.isFunction(e)&&(this._onModifyCallback=e),this},c.prototype.callOnModify=function(){this.isFunction(this._onModifyCallback)&&this._onModifyCallback.call(this,this._onModifyData)},c.prototype.onMove=function(e,t){return t?this.isFunction(t)&&(this._onMoveData=e,this._onMoveCallback=t):this.isFunction(e)&&(this._onMoveCallback=e),this},c.prototype.callOnMove=function(){this.isFunction(this._onMoveCallback)&&this._onMoveCallback.call(this,this._onMoveData)},c.prototype.onContextMenu=function(e,t){return t?this.isFunction(t)&&(this._onContextMenuData=e,this._onContextMenuCallback=t):this.isFunction(e)&&(this._onContextMenuCallback=e),this},c.prototype.shouldShowContextMenu=function(){return this.isFunction(this._onContextMenuCallback)},c.prototype.callOnContextMenu=function(){if(this.isFunction(this._onContextMenuCallback))return this._onContextMenuCallback.call(this,this._onContextMenuData)},c.prototype.remove=function(){this._line._model.removeSource(this._line),delete this._line},inherit(h,n),h.prototype.zorder=function(){return l},h.prototype.setPoint=function(e,t,i){this._points[e]=t,this.normalizePoints()},h.prototype.addPoint=function(e,t){return this._points.push(e),
this.createServerPoints(),!0},h.prototype.name=function(){return"Order"},h.prototype.endMoving=function(e){var t=this._startMovingPoint&&this._currentMovingPoint&&this._startMovingPoint.logical.price!==this._currentMovingPoint.logical.price;n.prototype.endMoving.call(this),!e&&t&&this._adapter.callOnMove()},h.prototype.createPriceAxisView=function(e){var t={pointIndex:e,backgroundPropertyGetter:this._adapter.getLineColor.bind(this._adapter)};return this._priceAxisView=new r(this,t),this._priceAxisView},h.prototype.paneViews=function(){return TradingView.printing&&!e.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showOrders.value()?s.prototype.paneViews.call(this):null},h.prototype.priceAxisViews=function(t,i){return TradingView.printing&&!e.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showOrders.value()?s.prototype.priceAxisViews.call(this,t,i):null},h.prototype.hasContextMenu=function(){return this._adapter.shouldShowContextMenu()},h.prototype.contextMenuItems=function(){return this._adapter.callOnContextMenu()},h.prototype.onlyYMoving=function(){return!0},h.prototype.movable=function(){return Boolean(this._adapter._onMoveCallback)},h.createProperties=function(e){var t=new a("linetoolorder",e,!1,!1);return h._configureProperties(t),t},h._configureProperties=function(e){n._configureProperties(e)},t.LineToolOrder=h}).call(this,i("Kxc7"))},BBCR:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="square" d="M6.145 11.968L14 5.5l7.855 6.468a.3.3 0 0 1-.191.532H6.336a.3.3 0 0 1-.19-.532zm0 4.064L14 22.5l7.855-6.468a.3.3 0 0 0-.191-.532H6.336a.3.3 0 0 0-.19.532z"/></svg>'},BHQF:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetch=function(e,t){return window.fetch(e,t)};(0,i("txPx").getLogger)("Fetch")},BOPY:function(e,t,i){"use strict";var n=i("aO4+").Point,r=i("f6yo").pointInCircle,o=i("VdBB").HitTestResult,s=i("zDbI").CHART_FONT_FAMILY,a=i("cPgM").ScaledPaneRenderer;function l(e,t){this.source=e,this._rendererFactory=t}function c(e,t){a.call(this),this._barWidth=e.barWidth,this._plates=e.plates,this._tooltip=e.tooltip,this._model=t}l.prototype.update=function(){},l.prototype.renderer=function(e,t){return this._rendererFactory(this.source)},inherit(c,a),c.prototype._drawImpl=function(e){e.save();for(var t=0;t<this._plates.length;t++)if(this._plates[t].highlightByAuthor){this._highlightByAuthor=!0;break}this._plates.forEach(this._drawItem.bind(this,e)),this._tooltip.draw(this._plates.map(function(e){return this._plateTransform(e)}.bind(this)),e),this._tooltip.endDraw(),e.restore()},c.prototype._drawItem=function(e,t){e.save(),this._highlightByAuthor&&!t.highlightByAuthor&&(e.globalAlpha=.4);var i=this._dotTransform(t);i.mine?this._drawTriangle(e,i):this._drawDot(e,i),e.restore()},c.prototype._commonTransform=function(e){var t=Math.max(1.4*e.minSize,this._barWidth+4),i={up:-1,down:1 this._lastPoint=null,this.normalizePoints(),this.createServerPoints(),!0},h.prototype.name=function(){return"Order"},h.prototype.endMoving=function(e){var t=this._startMovingPoint&&this._currentMovingPoint&&this._startMovingPoint.logical.price!==this._currentMovingPoint.logical.price;n.prototype.endMoving.call(this),!e&&t&&this._adapter.callOnMove()},h.prototype.createPriceAxisView=function(e){var t={pointIndex:e,backgroundPropertyGetter:this._adapter.getLineColor.bind(this._adapter)};return this._priceAxisView=new r(this,t),this._priceAxisView},h.prototype.paneViews=function(){return TradingView.printing&&!e.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showOrders.value()?s.prototype.paneViews.call(this):null},h.prototype.priceAxisViews=function(t,i){return TradingView.printing&&!e.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showOrders.value()?s.prototype.priceAxisViews.call(this,t,i):null},h.prototype.adapter=function(){return this._adapter},h.prototype.hasContextMenu=function(){return this._adapter.shouldShowContextMenu()},h.prototype.contextMenuItems=function(){return this._adapter.callOnContextMenu()},h.prototype.onlyYMoving=function(){return!0},h.prototype.movable=function(){return Boolean(this._adapter._onMoveCallback)},h.createProperties=function(e){var t=new a("linetoolorder",e,!1,!1);return h._configureProperties(t),t},h._configureProperties=function(e){n._configureProperties(e)},t.LineToolOrder=h}).call(this,i("Kxc7"))},BBCR:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="square" d="M6.145 11.968L14 5.5l7.855 6.468a.3.3 0 0 1-.191.532H6.336a.3.3 0 0 1-.19-.532zm0 4.064L14 22.5l7.855-6.468a.3.3 0 0 0-.191-.532H6.336a.3.3 0 0 0-.19.532z"/></svg>'},BHQF:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetch=function(e,t){return window.fetch(e,t)};(0,i("txPx").getLogger)("Fetch")},BOPY:function(e,t,i){"use strict";var n=i("aO4+").Point,r=i("f6yo").pointInCircle,o=i("VdBB").HitTestResult,s=i("zDbI").CHART_FONT_FAMILY,a=i("cPgM").ScaledPaneRenderer;function l(e,t){this.source=e,this._rendererFactory=t}function c(e,t){a.call(this),this._barWidth=e.barWidth,this._plates=e.plates,this._tooltip=e.tooltip,this._model=t}l.prototype.update=function(){},l.prototype.renderer=function(e,t){return this._rendererFactory(this.source)},inherit(c,a),c.prototype._drawImpl=function(e){e.save();for(var t=0;t<this._plates.length;t++)if(this._plates[t].highlightByAuthor){this._highlightByAuthor=!0;break}this._plates.forEach(this._drawItem.bind(this,e)),this._tooltip.draw(this._plates.map(function(e){return this._plateTransform(e)}.bind(this)),e),this._tooltip.endDraw(),e.restore()},c.prototype._drawItem=function(e,t){e.save(),this._highlightByAuthor&&!t.highlightByAuthor&&(e.globalAlpha=.4);var i=this._dotTransform(t);i.mine?this._drawTriangle(e,i):this._drawDot(e,i),e.restore()},
}[e.direction]*(e.yInverted?-1:1)*(t*(e.order+.6)+.25*t),n=e.y+i,r=TradingView.clone(e.overridedTheme||this.themes[e.theme]);return r.dotBorderWidth=e.hovered||e.highlightByAuthor?4:2,{id:e.id,theme:r,themeName:e.theme,x:Math.round(e.x+1),y:Math.round(n),yInverted:e.yInverted,pinned:e.pinned,hovered:e.hovered}},c.prototype._dotTransform=function(e){var t=this._commonTransform(e);return t.radius=Math.max(e.minSize/2,.4*this._barWidth),t.label=e.label,t.labelFontColor=e.labelFontColor,t.labelFontSize=Math.ceil(Math.max(10,Math.min(t.radius,20))),this._model.updateDotData(e,t)},c.prototype._plateTransform=function(e){var t=this._commonTransform(e);return this._model.updatePlateData(e,t)},c.prototype.themes={green:{border:"#78C143",background:"#8DDD54"},red:{border:"#CC4545",background:"#ED5A5A"},neutral:{border:"#EAC300",background:"#FFD400"},yellow:{border:"#EAC300",background:"#FFD400"},blue:{border:"#047ACE",background:"#0496FF"}},c.prototype._drawTriangle=function(e,t){e.strokeStyle=t.theme.border,e.fillStyle=t.theme.background,e.lineWidth=t.theme.dotBorderWidth;var i=t,n=t.radius,r=Math.cos(Math.PI/6)*n,o=Math.sin(Math.PI/6)*n;e.translate(i.x,i.y),"up"===t.direction!==t.yInverted&&e.rotate(Math.PI),t.public||(e.lineWidth/=2),e.beginPath(),e.moveTo(0,-n),e.lineTo(r,o),e.lineTo(-r,o),e.lineTo(0,-n),e.closePath(),e.stroke(),t.public&&e.fill()},c.prototype._drawDot=function(e,t){e.strokeStyle=t.theme.border,e.fillStyle=t.theme.background,e.lineWidth=t.theme.dotBorderWidth,e.beginPath(),e.arc(t.x,t.y,t.radius,0,2*Math.PI,!0),e.closePath(),e.stroke(),e.fill(),t.label&&t.radius>6&&(e.textAlign="center",e.textBaseline="middle",e.font="bold "+t.labelFontSize+"px "+s,e.fillStyle=t.labelFontColor,e.fillText(t.label,t.x,t.y))},c.prototype.hitTest=function(e){for(var t,i=this._plates.length-1;i>=0;--i)if(t=this._hitTestDot(this._plates[i],e))return t;return null},c.prototype._hitTestDot=function(e,t){var i=this._dotTransform(e),s=new n(i.x,i.y);return r(t,s,Math.max(i.radius,8))?new o(o.REGULAR,e):null},t.BarsMarksContainerPaneView=l,t.BarsMarksContainerRenderer=c},Bt3k:function(e,t,i){"use strict";function n(e,t){this.tooltips={},this.tooltipFactory=e,this.source=t}function r(e,t){this.renderer=e,this._tooltip=t,this.visible=!1}n.prototype.findOrCreateTooltip=function(e){var t=this.tooltips[e.id];return null==t&&(e.hovered||e.pinned)&&(t=this._createTooltip(),this.tooltips[e.id]=t),t},n.prototype.showPlate=function(e,t){var i=this.findOrCreateTooltip(e);null!=i&&(i._drawPlate(e,t),i.plateData=e)},n.prototype.draw=function(e,t){this.hoveredId=null;for(var i=0;i<e.length;i++)e[i].hovered&&(this.hoveredId=e[i].id);e.forEach(function(e){this.showPlate(e,t)}.bind(this))},n.prototype.endDraw=function(){for(var e in this.tooltips)if(this.tooltips.hasOwnProperty(e)){var t=this.tooltips[e];t.toggleVisibility(),this.hoveredId&&t.plateData.id!==this.hoveredId&&!t.plateData.pinned&&(t.remove(),delete this.tooltips[e])}},n.prototype.removeAll=function(){for(var e in this.tooltips){ c.prototype._commonTransform=function(e){var t=Math.max(1.4*e.minSize,this._barWidth+4),i={up:-1,down:1}[e.direction]*(e.yInverted?-1:1)*(t*(e.order+.6)+.25*t),n=e.y+i,r=TradingView.clone(e.overridedTheme||this.themes[e.theme]);return r.dotBorderWidth=e.hovered||e.highlightByAuthor?4:2,{id:e.id,theme:r,themeName:e.theme,x:Math.round(e.x+1),y:Math.round(n),yInverted:e.yInverted,pinned:e.pinned,hovered:e.hovered}},c.prototype._dotTransform=function(e){var t=this._commonTransform(e);return t.radius=Math.max(e.minSize/2,.4*this._barWidth),t.label=e.label,t.labelFontColor=e.labelFontColor,t.labelFontSize=Math.ceil(Math.max(10,Math.min(t.radius,20))),this._model.updateDotData(e,t)},c.prototype._plateTransform=function(e){var t=this._commonTransform(e);return this._model.updatePlateData(e,t)},c.prototype.themes={green:{border:"#78C143",background:"#8DDD54"},red:{border:"#CC4545",background:"#ED5A5A"},neutral:{border:"#EAC300",background:"#FFD400"},yellow:{border:"#EAC300",background:"#FFD400"},blue:{border:"#047ACE",background:"#0496FF"}},c.prototype._drawTriangle=function(e,t){e.strokeStyle=t.theme.border,e.fillStyle=t.theme.background,e.lineWidth=t.theme.dotBorderWidth;var i=t,n=t.radius,r=Math.cos(Math.PI/6)*n,o=Math.sin(Math.PI/6)*n;e.translate(i.x,i.y),"up"===t.direction!==t.yInverted&&e.rotate(Math.PI),t.public||(e.lineWidth/=2),e.beginPath(),e.moveTo(0,-n),e.lineTo(r,o),e.lineTo(-r,o),e.lineTo(0,-n),e.closePath(),e.stroke(),t.public&&e.fill()},c.prototype._drawDot=function(e,t){e.strokeStyle=t.theme.border,e.fillStyle=t.theme.background,e.lineWidth=t.theme.dotBorderWidth,e.beginPath(),e.arc(t.x,t.y,t.radius,0,2*Math.PI,!0),e.closePath(),e.stroke(),e.fill(),t.label&&t.radius>6&&(e.textAlign="center",e.textBaseline="middle",e.font="bold "+t.labelFontSize+"px "+s,e.fillStyle=t.labelFontColor,e.fillText(t.label,t.x,t.y))},c.prototype.hitTest=function(e){for(var t,i=this._plates.length-1;i>=0;--i)if(t=this._hitTestDot(this._plates[i],e))return t;return null},c.prototype._hitTestDot=function(e,t){var i=this._dotTransform(e),s=new n(i.x,i.y);return r(t,s,Math.max(i.radius,8))?new o(o.REGULAR,e):null},t.BarsMarksContainerPaneView=l,t.BarsMarksContainerRenderer=c},Bt3k:function(e,t,i){"use strict";function n(e,t){this.tooltips={},this.tooltipFactory=e,this.source=t}function r(e,t){this.renderer=e,this._tooltip=t,this.visible=!1}n.prototype.findOrCreateTooltip=function(e){var t=this.tooltips[e.id];return null==t&&(e.hovered||e.pinned)&&(t=this._createTooltip(),this.tooltips[e.id]=t),t},n.prototype.showPlate=function(e,t){var i=this.findOrCreateTooltip(e);null!=i&&(i._drawPlate(e,t),i.plateData=e)},n.prototype.draw=function(e,t){this.hoveredId=null;for(var i=0;i<e.length;i++)e[i].hovered&&(this.hoveredId=e[i].id);e.forEach(function(e){this.showPlate(e,t)}.bind(this))},n.prototype.endDraw=function(){for(var e in this.tooltips)if(this.tooltips.hasOwnProperty(e)){var t=this.tooltips[e];t.toggleVisibility(),this.hoveredId&&t.plateData.id!==this.hoveredId&&!t.plateData.pinned&&(t.remove(),delete this.tooltips[e])}},
if(this.tooltips.hasOwnProperty(e))this.tooltips[e].remove()}this.tooltips={}},n.prototype.removeTooltip=function(e){delete this.tooltips[e]},n.prototype._createTooltip=function(){return new r(this,this.tooltipFactory())},r.prototype._drawPlate=function(e,t){var i=this;this.visible=!0,this._tooltip.setSource(this.renderer.source),this._tooltip.showPlate(e,t),e.hovered||e.pinned||this._tooltip.hide((function(){i.renderer.removeTooltip(e.id)}))},r.prototype.remove=function(){this._tooltip._removeLayout()},r.prototype.toggleVisibility=function(){this._tooltip._toggleLayout(this.visible),this.visible=!1},t.TooltipRenderer=n},"C2K+":function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var n=i("mrSG"),r=i("YFKU"),o=i("6I19"),s=i("n5al"),a={open:Object(r.t)("O",{context:"in_legend"}),high:Object(r.t)("H",{context:"in_legend"}),low:Object(r.t)("L",{context:"in_legend"}),close:Object(r.t)("C",{context:"in_legend"}),hl2:Object(r.t)("HL2",{context:"in_legend"}),hlc3:Object(r.t)("HLC3",{context:"in_legend"}),ohlc4:Object(r.t)("OHLC4",{context:"in_legend"})},l=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n._showBarChange=i.properties().paneProperties.legendProperties.showBarChange,n._showSeriesOHLC=i.properties().paneProperties.legendProperties.showSeriesOHLC,n._seriesStyle=t.properties().childs().style,n._emptyValues[0].title=a.open,n._emptyValues[1].title=a.high,n._emptyValues[2].title=a.low,n._emptyValues[3].title=a.close,n._emptyValues[6].title="",n._emptyValues[4].title="",n}return Object(n.c)(t,e),t.prototype.getValues=function(t){var i=e.prototype.getValues.call(this,t),n=this._showSeriesOHLC.value(),r=this._showBarChange.value(),o=12===this._series.style(),a=i[6];if(a.visible=a.visible&&r&&!o,this._showLastPriceAndChangeOnly()){var l=i[5];return l.visible=l.visible&&n,i}var c=Object(s.isPriceSourceStyle)(this._seriesStyle.value()),u=n&&!c,h=n&&c;return i[0].visible=u&&!o,i[1].visible=u,i[2].visible=u,i[3].visible=u&&!o,i[4].visible=h,i},t}(o.a)},CCPt:function(e,t,i){"use strict";i.r(t);var n=i("mrSG"),r=i("Eyy1");function o(e,t,i){return new Promise((function(n){i&&e.classList.remove(i),e.classList.add(t);var r=function(i){i.target===e&&i.animationName===t&&(e.removeEventListener(i.type,r),n(i))};e.addEventListener("animationend",r,!1),e.addEventListener("webkitAnimationEnd",r,!1),e.addEventListener("MSAnimationEnd",r,!1)}))}function s(e){return o(e,"tv-transition--fade-in","tv-transition--fade-out")}var a=function(){function e(){this._source=null,this._tooltipHovered=!1,this._layout=null,this._container=null,this._context=null,this._plateArrowSize=14}return e.prototype.showPlate=function(e,t){var i=this;if(this._currentId!==e.id||!this._layout||null===this._layout.parentNode){this._currentId=e.id,this._createLayout();var n=Object(r.ensureNotNull)(this._layout);this._getContainer(t).appendChild(n),n.addEventListener("mouseenter",(function(){i._tooltipHovered=!0,s(Object(r.ensureNotNull)(i._layout))})),n.addEventListener("mouseleave",(function(){i._tooltipHovered=!1}))} n.prototype.removeAll=function(){for(var e in this.tooltips){if(this.tooltips.hasOwnProperty(e))this.tooltips[e].remove()}this.tooltips={}},n.prototype.removeTooltip=function(e){delete this.tooltips[e]},n.prototype._createTooltip=function(){return new r(this,this.tooltipFactory())},r.prototype._drawPlate=function(e,t){var i=this;this.visible=!0,this._tooltip.setSource(this.renderer.source),this._tooltip.showPlate(e,t),e.hovered||e.pinned||this._tooltip.hide((function(){i.renderer.removeTooltip(e.id)}))},r.prototype.remove=function(){this._tooltip._removeLayout()},r.prototype.toggleVisibility=function(){this._tooltip._toggleLayout(this.visible),this.visible=!1},t.TooltipRenderer=n},"C2K+":function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var n=i("mrSG"),r=i("YFKU"),o=i("6I19"),s=i("n5al"),a={open:Object(r.t)("O",{context:"in_legend"}),high:Object(r.t)("H",{context:"in_legend"}),low:Object(r.t)("L",{context:"in_legend"}),close:Object(r.t)("C",{context:"in_legend"}),hl2:Object(r.t)("HL2",{context:"in_legend"}),hlc3:Object(r.t)("HLC3",{context:"in_legend"}),ohlc4:Object(r.t)("OHLC4",{context:"in_legend"})},l=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n._showBarChange=i.properties().paneProperties.legendProperties.showBarChange,n._showSeriesOHLC=i.properties().paneProperties.legendProperties.showSeriesOHLC,n._seriesStyle=t.properties().childs().style,n._emptyValues[0].title=a.open,n._emptyValues[1].title=a.high,n._emptyValues[2].title=a.low,n._emptyValues[3].title=a.close,n._emptyValues[6].title="",n._emptyValues[4].title="",n}return Object(n.c)(t,e),t.prototype.getValues=function(t){var i=e.prototype.getValues.call(this,t),n=this._showSeriesOHLC.value(),r=this._showBarChange.value(),o=12===this._series.style(),a=i[6];if(a.visible=a.visible&&r&&!o,this._showLastPriceAndChangeOnly()){var l=i[5];return l.visible=l.visible&&n,i}var c=Object(s.isPriceSourceStyle)(this._seriesStyle.value()),u=n&&!c,h=n&&c;return i[0].visible=u&&!o,i[1].visible=u,i[2].visible=u,i[3].visible=u&&!o,i[4].visible=h,i},t}(o.a)},CCPt:function(e,t,i){"use strict";i.r(t);var n=i("mrSG"),r=i("Eyy1");function o(e,t,i){return new Promise((function(n){i&&e.classList.remove(i),e.classList.add(t);var r=function(i){i.target===e&&i.animationName===t&&(e.removeEventListener(i.type,r),n(i))};e.addEventListener("animationend",r,!1),e.addEventListener("webkitAnimationEnd",r,!1),e.addEventListener("MSAnimationEnd",r,!1)}))}function s(e){return o(e,"tv-transition--fade-in","tv-transition--fade-out")}var a=function(){function e(){this._source=null,this._tooltipHovered=!1,this._layout=null,this._container=null,this._context=null,this._plateArrowSize=14}return e.prototype.showPlate=function(e,t){var i=this;if(this._currentId!==e.id||!this._layout||null===this._layout.parentNode){this._currentId=e.id,this._createLayout();var n=Object(r.ensureNotNull)(this._layout);this._getContainer(t).appendChild(n),n.addEventListener("mouseenter",(function(){i._tooltipHovered=!0,s(Object(r.ensureNotNull)(i._layout))})),
var o=Object(r.ensureNotNull)(this._layout),a=Math.round(e.barWidth/2);a>15&&(a=15),a<10&&(a=10),this._updatePlate(e);var l=t.canvas.getBoundingClientRect(),c=e.x-o.offsetWidth<this._plateArrowSize,u=l.width-e.x+Math.round(e.barWidth/2+a);c&&(u-=o.offsetWidth+2*this._plateArrowSize);var h=l.height,d=Math.min(Math.max(e.y,20),h-o.offsetHeight-10)+"px";o.classList.toggle("right",c),o.style.display="block",o.style.top=d,o.style.right=u+"px",o.style.fontSize=a+"px"},e.prototype.hide=function(e){var t,i=Object(r.ensureNotNull)(this._layout);this._tooltipHovered?s(i):(t=i,o(t,"tv-transition--fade-out","tv-transition--fade-in")).then((function(){i.remove(),e()}))},e.prototype.setSource=function(e){this._source=e},e.prototype._getContainer=function(e){return this._container&&this._context===e||(this._context=e,this._container=e.canvas.parentElement),Object(r.ensureNotNull)(this._container)},e.prototype._removeLayout=function(){var e;this._tooltipHovered||null===(e=this._layout)||void 0===e||e.remove()},e.prototype._toggleLayout=function(e){Object(r.ensureNotNull)(this._layout).style.visibility=e?"visible":"hidden"},e}();i.d(t,"UserDefinedBarsMarksTooltip",(function(){return l}));var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._layoutText=null,t}return Object(n.c)(t,e),t.prototype._createLayout=function(){this._layout=document.createElement("div"),this._layout.classList.add("bar-mark-tooltip"),this._layoutText=document.createElement("div"),this._layoutText.classList.add("text"),this._layout.appendChild(this._layoutText)},t.prototype._updatePlate=function(e){this._currentId=e.id;var t=Object(r.ensureNotNull)(this._layout);t.style.borderColor=e.theme.border,t.style.marginTop=e.tooltipMargin+"px";var i=Object(r.ensureNotNull)(this._layoutText);i.innerHTML=e.text,t.appendChild(i)},t}(a)},CHw2:function(e,t,i){"use strict";var n=i("WPQD").LineToolTrendLine,r=i("Ocx9").DefaultProperty;function o(e,t){var i=t||o.createProperties();n.call(this,e,i)}inherit(o,n),o.prototype.name=function(){return"Extended Line"},o.createProperties=function(e){var t=new r("linetoolextended",e);return o._configureProperties(t),t},o._configureProperties=function(e){n._configureProperties(e)},t.LineToolExtended=o},CJIV:function(e,t,i){"use strict";var n=i("Ss5c").LineDataSource,r=i("p1SQ").LineToolHorzLinePriceAxisView,o=i("tc+8"),s=i("Ocx9").DefaultProperty;function a(e,t){var o=t||a.createProperties();this._priceAxisView=new r(this),n.call(this,e,o),i.e("lt-pane-views").then(function(e){var t=i("1oDZ").HorzRayPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(a,n),a.prototype.pointsCount=function(){return 1},a.prototype.name=function(){return"Horizontal Ray"},a.prototype.priceAxisViews=function(e,t){return this.isSourceHidden()?null:t===this.priceScale()&&this.properties().showPrice.value()&&this._model.paneForSource(this)===e?[this._priceAxisView]:null},a.prototype.updateAllViews=function(){n.prototype.updateAllViews.call(this),this._priceAxisView.update()}, n.addEventListener("mouseleave",(function(){i._tooltipHovered=!1}))}var o=Object(r.ensureNotNull)(this._layout),a=Math.round(e.barWidth/2);a>15&&(a=15),a<10&&(a=10),this._updatePlate(e);var l=t.canvas.getBoundingClientRect(),c=e.x-o.offsetWidth<this._plateArrowSize,u=l.width-e.x+Math.round(e.barWidth/2+a);c&&(u-=o.offsetWidth+2*this._plateArrowSize);var h=l.height,d=Math.min(Math.max(e.y,20),h-o.offsetHeight-10)+"px";o.classList.toggle("right",c),o.style.display="block",o.style.top=d,o.style.right=u+"px",o.style.fontSize=a+"px"},e.prototype.hide=function(e){var t,i=Object(r.ensureNotNull)(this._layout);this._tooltipHovered?s(i):(t=i,o(t,"tv-transition--fade-out","tv-transition--fade-in")).then((function(){i.remove(),e()}))},e.prototype.setSource=function(e){this._source=e},e.prototype._getContainer=function(e){return this._container&&this._context===e||(this._context=e,this._container=e.canvas.parentElement),Object(r.ensureNotNull)(this._container)},e.prototype._removeLayout=function(){var e;this._tooltipHovered||null===(e=this._layout)||void 0===e||e.remove()},e.prototype._toggleLayout=function(e){Object(r.ensureNotNull)(this._layout).style.visibility=e?"visible":"hidden"},e}();i.d(t,"UserDefinedBarsMarksTooltip",(function(){return l}));var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._layoutText=null,t}return Object(n.c)(t,e),t.prototype._createLayout=function(){this._layout=document.createElement("div"),this._layout.classList.add("bar-mark-tooltip"),this._layoutText=document.createElement("div"),this._layoutText.classList.add("text"),this._layout.appendChild(this._layoutText)},t.prototype._updatePlate=function(e){this._currentId=e.id;var t=Object(r.ensureNotNull)(this._layout);t.style.borderColor=e.theme.border,t.style.marginTop=e.tooltipMargin+"px";var i=Object(r.ensureNotNull)(this._layoutText);i.innerHTML=e.text,t.appendChild(i)},t}(a)},CHw2:function(e,t,i){"use strict";var n=i("WPQD").LineToolTrendLine,r=i("Ocx9").DefaultProperty;function o(e,t){var i=t||o.createProperties();n.call(this,e,i)}inherit(o,n),o.prototype.name=function(){return"Extended Line"},o.createProperties=function(e){var t=new r("linetoolextended",e);return o._configureProperties(t),t},o._configureProperties=function(e){n._configureProperties(e)},t.LineToolExtended=o},CJIV:function(e,t,i){"use strict";var n=i("Ss5c").LineDataSource,r=i("p1SQ").LineToolHorzLinePriceAxisView,o=i("tc+8"),s=i("Ocx9").DefaultProperty;function a(e,t){var o=t||a.createProperties();this._priceAxisView=new r(this),n.call(this,e,o),i.e("lt-pane-views").then(function(e){var t=i("1oDZ").HorzRayPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(a,n),a.prototype.pointsCount=function(){return 1},a.prototype.name=function(){return"Horizontal Ray"},a.prototype.priceAxisViews=function(e,t){return this.isSourceHidden()?null:t===this.priceScale()&&this.properties().showPrice.value()&&this._model.paneForSource(this)===e?[this._priceAxisView]:null},a.prototype.updateAllViews=function(){
a.prototype.canHasAlert=function(){return!0},a.prototype._getAlertPlots=function(){var e=this._points[0],t={index:e.index+1,price:e.price};return[this._linePointsToAlertPlot([e,t],null,!1,!0)]},a.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("e0H+").HorizontalRayDefinitionsViewModel}.bind(null,i)).catch(i.oe)},a.prototype.template=function(){var e=n.prototype.template.call(this);return e.text=this.properties().childs().text.value(),e},a.prototype._applyTemplateImpl=function(e){n.prototype._applyTemplateImpl.call(this,e),this.properties().childs().text.setValue(e.text)},a.createProperties=function(e){var t=new s("linetoolhorzray",e);return a._configureProperties(t),t},a._configureProperties=function(e){n._configureProperties(e),e.hasChild("text")||e.addChild("text",new o("")),e.addExclusion("text")},t.LineToolHorzRay=a},CLNU:function(e,t,i){(function(e){TradingView.cleanButAmpersand=function(e,t){var i=t?["&amp;"]:["&"];return TradingView.clean(e,t,i)},TradingView.strip_tags=function(e){return e&&e.replace?e.replace(/(<([^>]+)>)/gi,""):e},TradingView.encodeSpread=function(e){return encodeURIComponent(e)},TradingView.clean=function(e,t,i){var n=[["&","&amp;"],["<","&lt;"],[">","&gt;"],['"',"&quot;"],["'","&#039;"],["'","&#39;"]],r=e;if(!e||!e.replace)return r;for(var o=0;o<n.length;o++){var s=n[o][0],a=n[o][1];i&&i.indexOf&&-1!==i.indexOf(t?a:s)||(r=t?r.replace(new RegExp(a,"g"),s):r.replace(new RegExp(s,"g"),a))}return r},e&&e.exports&&(e.exports={clean:TradingView.clean,cleanButAmpersand:TradingView.cleanButAmpersand,stripTags:TradingView.strip_tags})}).call(this,i("YuTi")(e))},CPmC:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return o}));var n=new WeakMap;function r(e,t){var i=n.get(e);return i instanceof Function?i(t):i&&i[t]}function o(e,t,i){if(i instanceof Function)n.set(e,i);else{var r=n.get(e),o=void 0===r||r instanceof Function?{}:r;o[t]=i,n.set(e,o)}}},CW80:function(e,t,i){"use strict";i.r(t),i.d(t,"createLineTool",(function(){return c})),i.d(t,"createLineToolProperties",(function(){return u})),i.d(t,"createStudyLineToolProperties",(function(){return h})),i.d(t,"supportsPhantomMode",(function(){return d})),i.d(t,"isLineTool",(function(){return p})),i.d(t,"isStudyLineTool",(function(){return f})),i.d(t,"isTrading",(function(){return _})),i.d(t,"tryFindStudyLineToolNameByStudyId",(function(){return m})),i.d(t,"cloneLineTool",(function(){return v})),i.d(t,"isMTPredictionTool",(function(){return y}));var n=i("Eyy1"),r=i("aO4+"),o=i("Ss5c"),s=i("OH2X"),a=i("e92V"),l=i("QIuV");function c(e,t,i,r,o){var l;return Object(n.assert)(Object(a.isLineToolName)(e),"Unknown line tool: "+e),(l=new(Object(n.ensureDefined)(s[e]))(t,i,o)).toolname=e,l}function u(e,t){return Object(n.assert)(Object(a.isLineToolName)(e),e+" should be name of the line tool"),Object(n.ensureDefined)(s[e]).createProperties(t)}function h(e,t,i,r,o){ n.prototype.updateAllViews.call(this),this._priceAxisView.update()},a.prototype.canHasAlert=function(){return!0},a.prototype._getAlertPlots=function(){var e=this._points[0],t={index:e.index+1,price:e.price};return[this._linePointsToAlertPlot([e,t],null,!1,!0)]},a.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("e0H+").HorizontalRayDefinitionsViewModel}.bind(null,i)).catch(i.oe)},a.prototype.template=function(){var e=n.prototype.template.call(this);return e.text=this.properties().childs().text.value(),e},a.prototype._applyTemplateImpl=function(e){n.prototype._applyTemplateImpl.call(this,e),this.properties().childs().text.setValue(e.text)},a.createProperties=function(e){var t=new s("linetoolhorzray",e);return a._configureProperties(t),t},a._configureProperties=function(e){n._configureProperties(e),e.hasChild("text")||e.addChild("text",new o("")),e.addExclusion("text")},t.LineToolHorzRay=a},CLNU:function(e,t,i){(function(e){TradingView.cleanButAmpersand=function(e,t){var i=t?["&amp;"]:["&"];return TradingView.clean(e,t,i)},TradingView.strip_tags=function(e){return e&&e.replace?e.replace(/(<([^>]+)>)/gi,""):e},TradingView.encodeSpread=function(e){return encodeURIComponent(e)},TradingView.clean=function(e,t,i){var n=[["&","&amp;"],["<","&lt;"],[">","&gt;"],['"',"&quot;"],["'","&#039;"],["'","&#39;"]],r=e;if(!e||!e.replace)return r;for(var o=0;o<n.length;o++){var s=n[o][0],a=n[o][1];i&&i.indexOf&&-1!==i.indexOf(t?a:s)||(r=t?r.replace(new RegExp(a,"g"),s):r.replace(new RegExp(s,"g"),a))}return r},e&&e.exports&&(e.exports={clean:TradingView.clean,cleanButAmpersand:TradingView.cleanButAmpersand,stripTags:TradingView.strip_tags})}).call(this,i("YuTi")(e))},CPmC:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return o}));var n=new WeakMap;function r(e,t){var i=n.get(e);return i instanceof Function?i(t):i&&i[t]}function o(e,t,i){if(i instanceof Function)n.set(e,i);else{var r=n.get(e),o=void 0===r||r instanceof Function?{}:r;o[t]=i,n.set(e,o)}}},CW80:function(e,t,i){"use strict";i.r(t),i.d(t,"createLineTool",(function(){return c})),i.d(t,"createLineToolProperties",(function(){return u})),i.d(t,"createStudyLineToolProperties",(function(){return h})),i.d(t,"supportsPhantomMode",(function(){return d})),i.d(t,"isLineTool",(function(){return p})),i.d(t,"isStudyLineTool",(function(){return f})),i.d(t,"isTrading",(function(){return _})),i.d(t,"tryFindStudyLineToolNameByStudyId",(function(){return m})),i.d(t,"cloneLineTool",(function(){return v})),i.d(t,"isMTPredictionTool",(function(){return y}));var n=i("Eyy1"),r=i("aO4+"),o=i("Ss5c"),s=i("OH2X"),a=i("e92V"),l=i("QIuV");function c(e,t,i,r,o){var l;return Object(n.assert)(Object(a.isLineToolName)(e),"Unknown line tool: "+e),(l=new(Object(n.ensureDefined)(s[e]))(t,i,o)).toolname=e,l}function u(e,t){return Object(n.assert)(Object(a.isLineToolName)(e),e+" should be name of the line tool"),Object(n.ensureDefined)(s[e]).createProperties(t)}
throw Object(n.assert)(Object(a.isStudyLineToolName)(e),e+" should be name of the study line tool"),new Error("Property creation is not implemented for study line tool "+e)}function d(e){Object(n.assert)(Object(a.isLineToolName)(e),e+" should be name of the line tool");var t=s[e];return void 0!==t&&Boolean(t.supportPhantomMode)}function p(e){return e instanceof o.LineDataSource}function f(e){return!1}function _(e){return e instanceof l.LineToolTrading}function m(e){return null}function v(e,t,i,o){var s=t.toolname,a=u(t.toolname,t.properties().state());a.childs().visible.setValue(!0);var l=Object(n.ensureNotNull)(t.ownerSource()),h=c(s,e,a);void 0!==o&&h.setId(o),h.setOwnerSource(l),h.toolname=s;var d=h.clonePositionOffset(),p=t.fixedPoints();(i?p.map((function(e){return e.add(new r.Point(d.xCoordOffset,d.yCoordOffset))})):p).forEach((function(e){return h.addFixedPoint(e)}));var f=t.normalizedPoints(),_=i?function(e,t,i){var r=Object(n.ensureNotNull)(t.priceScale()),o=Object(n.ensureNotNull)(t.firstValue());return e.map((function(e){var t=e.price,n=r.priceToCoordinate(t,o)+i.yCoordOffset,s=r.coordinateToPrice(n,o);return{time_t:e.time_t,price:s,offset:e.offset+i.barOffset}}))}(f,l,d):f,m=t.points();return h.restorePoints(_,m),h.cloneData&&h.cloneData(t),h.checkAlert&&h.checkAlert(),h}function y(e){return!1}i.d(t,"isLineToolName",(function(){return a.isLineToolName})),i.d(t,"isStudyLineToolName",(function(){return a.isStudyLineToolName})),i.d(t,"isLineDrawnWithPressedButton",(function(){return a.isLineDrawnWithPressedButton})),function(e){for(var t=0,i=Object.keys(e);t<i.length;t++){var n=i[t];TradingView[n]=e[n]}}(s)},Cf1E:function(e,t,i){"use strict";function n(e){if(void 0===e)return"";if(e instanceof Error){var t=e.message;return e.stack&&(t+=" "+e.stack),t}return"string"==typeof e?e.toString():JSON.stringify(e)}i.d(t,"a",(function(){return n}))},CsKN:function(e,t,i){"use strict";i.r(t),i.d(t,"SetScaleRatioPropertiesCommand",(function(){return s}));var n=i("mrSG"),r=i("RDU5"),o=i("Ocx9"),s=function(e){function t(t,i,n,r){var o=e.call(this,n)||this;return o._property=t,o._newValue=i,o._model=r,o._priceScale=o._model.mainSeries().priceScale(),o._oldValue=o._property.value(),o._oldMode=o._priceScale.mode(),o}return Object(n.c)(t,e),t.prototype.redo=function(){this._oldValue=this._property.value(),this._oldMode=this._priceScale.mode(),Object(o.saveDefaultProperties)(!0),this._priceScale.setMode({autoScale:!1,percentage:!1,log:!1}),this._property.setValue(this._newValue),Object(o.saveDefaultProperties)(!1),this._model.recalculateAllPanes(),this._model.lightUpdate()},t.prototype.undo=function(){Object(o.saveDefaultProperties)(!0),this._property.setValue(this._oldValue),this._priceScale.setMode(this._oldMode),Object(o.saveDefaultProperties)(!1),this._model.recalculateAllPanes(),this._model.lightUpdate()},t}(r.UndoCommand)},CwKc:function(e,t){ function h(e,t,i,r,o){throw Object(n.assert)(Object(a.isStudyLineToolName)(e),e+" should be name of the study line tool"),new Error("Property creation is not implemented for study line tool "+e)}function d(e){Object(n.assert)(Object(a.isLineToolName)(e),e+" should be name of the line tool");var t=s[e];return void 0!==t&&Boolean(t.supportPhantomMode)}function p(e){return e instanceof o.LineDataSource}function f(e){return!1}function _(e){return e instanceof l.LineToolTrading}function m(e){return null}function v(e,t,i,o){var s=t.toolname,a=u(t.toolname,t.properties().state());a.childs().visible.setValue(!0);var l=Object(n.ensureNotNull)(t.ownerSource()),h=c(s,e,a);void 0!==o&&h.setId(o),h.setOwnerSource(l),h.toolname=s;var d=h.clonePositionOffset(),p=t.fixedPoints();(i?p.map((function(e){return e.add(new r.Point(d.xCoordOffset,d.yCoordOffset))})):p).forEach((function(e){return h.addFixedPoint(e)}));var f=t.normalizedPoints(),_=i?function(e,t,i){var r=Object(n.ensureNotNull)(t.priceScale()),o=Object(n.ensureNotNull)(t.firstValue());return e.map((function(e){var t=e.price,n=r.priceToCoordinate(t,o)+i.yCoordOffset,s=r.coordinateToPrice(n,o);return{time_t:e.time_t,price:s,offset:e.offset+i.barOffset}}))}(f,l,d):f,m=t.points();return h.restorePoints(_,m),h.cloneData&&h.cloneData(t),h.checkAlert&&h.checkAlert(),h}function y(e){return!1}i.d(t,"isLineToolName",(function(){return a.isLineToolName})),i.d(t,"isStudyLineToolName",(function(){return a.isStudyLineToolName})),i.d(t,"isLineDrawnWithPressedButton",(function(){return a.isLineDrawnWithPressedButton})),function(e){for(var t=0,i=Object.keys(e);t<i.length;t++){var n=i[t];TradingView[n]=e[n]}}(s)},Cf1E:function(e,t,i){"use strict";function n(e){if(void 0===e)return"";if(e instanceof Error){var t=e.message;return e.stack&&(t+=" "+e.stack),t}return"string"==typeof e?e.toString():JSON.stringify(e)}i.d(t,"a",(function(){return n}))},CsKN:function(e,t,i){"use strict";i.r(t),i.d(t,"SetScaleRatioPropertiesCommand",(function(){return s}));var n=i("mrSG"),r=i("RDU5"),o=i("Ocx9"),s=function(e){function t(t,i,n,r){var o=e.call(this,n)||this;return o._property=t,o._newValue=i,o._model=r,o._priceScale=o._model.mainSeries().priceScale(),o._oldValue=o._property.value(),o._oldMode=o._priceScale.mode(),o}return Object(n.c)(t,e),t.prototype.redo=function(){this._oldValue=this._property.value(),this._oldMode=this._priceScale.mode(),Object(o.saveDefaultProperties)(!0),this._priceScale.setMode({autoScale:!1,percentage:!1,log:!1}),this._property.setValue(this._newValue),Object(o.saveDefaultProperties)(!1),this._model.recalculateAllPanes(),this._model.lightUpdate()},t.prototype.undo=function(){Object(o.saveDefaultProperties)(!0),this._property.setValue(this._oldValue),this._priceScale.setMode(this._oldMode),Object(o.saveDefaultProperties)(!1),this._model.recalculateAllPanes(),this._model.lightUpdate()},t}(r.UndoCommand)},CwKc:function(e,t){
e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><g fill="none" fill-rule="evenodd" stroke="currentColor"><path stroke-linecap="square" d="M11.5 21.5v-7m3 7v-5m3 5v-3m-9 3v-5"/><path d="M5.5 22v-3"/><path stroke-linecap="square" d="M5.5 13.5l4.297-4.297a2.406 2.406 0 0 1 3.406 0l2.594 2.594c.94.94 2.463.943 3.406 0L23.5 7.5M22.5 12.5v6m-3-3h6"/></g></svg>'},CxTi:function(e,t,i){e.exports={css_value_currency_label_top:"6",css_value_currency_label_radius:"4",css_value_border_color_light:"#D1D4DC",css_value_border_color_dark:"#363A45","price-axis-currency-label-wrapper":"price-axis-currency-label-wrapper-opoVZ91E","price-axis-currency-label":"price-axis-currency-label-1aGvtcW9",readonly:"readonly-OYsh-rpT","price-axis-currency-label-text":"price-axis-currency-label-text-1o_xgUrU","price-axis-currency-label-arrow-down":"price-axis-currency-label-arrow-down-243KKK5C"}},DVnF:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i("mrSG"),r=i("Ss5c"),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._finished=!1,t}return Object(n.c)(t,e),t.prototype.pointsCount=function(){return-1},t.prototype.finished=function(){return this._finished},t.prototype.finish=function(){this._finished=!0,this._lastPoint=null,this.normalizePoints(),this.createServerPoints()},t.prototype.hasEditableCoordinates=function(){return!1},t.prototype.addPoint=function(t,i,n){if(this._finished)return!0;if(this._lastPoint=null,this._points.length>0){var r=this._points[this._points.length-1],o=this.pointToScreenPoint(r)[1];if(this.pointToScreenPoint(t)[1].subtract(o).length()<2)return this._finished}return e.prototype.addPoint.call(this,t),this._finished},t.prototype.restorePoints=function(t,i,n){e.prototype.restorePoints.call(this,t,i,n),this._finished=!0},t}(r.LineDataSource)},DYI2:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><g fill="none" fill-rule="evenodd" stroke="currentColor" transform="translate(3 5)"><path d="M.964 9C3 5 6.679 1.5 11 1.5c4.32 0 8 3.5 10.036 7.5C19 13 15.32 16.5 11 16.5 6.679 16.5 3 13 .964 9z"/><circle cx="11" cy="9" r="3.5"/><path stroke-linecap="square" d="M2.5 17.5l17-17"/></g></svg>'},Daqx:function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));var n=["Z","Y","X","W","V","U","T","S"],r=["A","B","C","D","E","F","G","H"],o=function(){function e(e){this.label=e}return e.prototype.equals=function(e){return null!==e&&this.label===e.label},e}();function s(e,t){var i="left"===e?n:r;return new o(t<i.length?i[t]:"")}},Dq3s:function(e){ e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><g fill="none" fill-rule="evenodd" stroke="currentColor"><path stroke-linecap="square" d="M11.5 21.5v-7m3 7v-5m3 5v-3m-9 3v-5"/><path d="M5.5 22v-3"/><path stroke-linecap="square" d="M5.5 13.5l4.297-4.297a2.406 2.406 0 0 1 3.406 0l2.594 2.594c.94.94 2.463.943 3.406 0L23.5 7.5M22.5 12.5v6m-3-3h6"/></g></svg>'},CxTi:function(e,t,i){e.exports={css_value_currency_label_top:"6",css_value_currency_label_radius:"4",css_value_border_color_light:"#D1D4DC",css_value_border_color_dark:"#363A45","price-axis-currency-label-wrapper":"price-axis-currency-label-wrapper-opoVZ91E","price-axis-currency-label":"price-axis-currency-label-1aGvtcW9",readonly:"readonly-OYsh-rpT","price-axis-currency-label-text":"price-axis-currency-label-text-1o_xgUrU","price-axis-currency-label-arrow-down":"price-axis-currency-label-arrow-down-243KKK5C"}},DVnF:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i("mrSG"),r=i("Ss5c"),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._finished=!1,t}return Object(n.c)(t,e),t.prototype.pointsCount=function(){return-1},t.prototype.finished=function(){return this._finished},t.prototype.finish=function(){this._finished=!0,this._lastPoint=null,this.normalizePoints(),this.createServerPoints()},t.prototype.hasEditableCoordinates=function(){return!1},t.prototype.addPoint=function(t,i,n){if(this._finished)return!0;if(this._lastPoint=null,this._points.length>0){var r=this._points[this._points.length-1],o=this.pointToScreenPoint(r)[1];if(this.pointToScreenPoint(t)[1].subtract(o).length()<2)return this._finished}return e.prototype.addPoint.call(this,t),this._finished},t.prototype.restorePoints=function(t,i,n){e.prototype.restorePoints.call(this,t,i,n),this._finished=!0},t}(r.LineDataSource)},DYI2:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><g fill="none" fill-rule="evenodd" stroke="currentColor" transform="translate(3 5)"><path d="M.964 9C3 5 6.679 1.5 11 1.5c4.32 0 8 3.5 10.036 7.5C19 13 15.32 16.5 11 16.5 6.679 16.5 3 13 .964 9z"/><circle cx="11" cy="9" r="3.5"/><path stroke-linecap="square" d="M2.5 17.5l17-17"/></g></svg>'},Daqx:function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));var n=["Z","Y","X","W","V","U","T","S"],r=["A","B","C","D","E","F","G","H"],o=function(){function e(e){this.label=e}return e.prototype.equals=function(e){return null!==e&&this.label===e.label},e}();function s(e,t){var i="left"===e?n:r;return new o(t<i.length?i[t]:"")}},Dq3s:function(e){
e.exports=JSON.parse('{"4":["v",["h",0,2],["h",1,3]],"6":["v",["h",0,2,4],["h",1,3,5]],"8":["v",["h",0,2,4,6],["h",1,3,5,7]],"2h":["h",0,1],"2v":["v",0,1],"2-1":["v",["h",0,2],1],"3s":["h",0,["v",1,2]],"3h":["h",0,1,2],"3v":["v",0,1,2],"1-2":["v",0,["h",1,2]],"3r":["h",["v",0,1],2],"4h":["h",0,1,2,3],"4v":["v",0,1,2,3],"4s":["h",0,["v",1,2,3]],"1-3":["v",0,["h",1,2,3]],"2-2":["v",["h",0,1],["v",2,3]],"1-4":["v",0,["h",1,2,3,4]],"5s":["h",0,["v",1,2,3,4]],"6c":["v",["h",0,1],["h",2,3],["h",4,5]],"8c":["v",["h",0,1],["h",2,3],["h",4,5],["h",6,7]],"s":0}')},DsEq:function(e,t,i){"use strict";i.r(t),i.d(t,"DataProblemModel",(function(){return o}));var n=i("QfUd"),r=i("ogJP"),o=function(){function e(e,t){this._dataProblem=new n.a(null),this._quotesProvider=e,this._quotesProvider.quotesUpdate().subscribe(this,this._update.bind(this)),this._resetSubscription=t,this._resetSubscription.subscribe(this,this._resetStatus)}return e.prototype.destroy=function(){this._quotesProvider.quotesUpdate().unsubscribeAll(this),this._resetSubscription.unsubscribeAll(this)},e.prototype.status=function(){return this._dataProblem},e.prototype._resetStatus=function(){this._dataProblem.setValue(null)},e.prototype._update=function(e){void 0===e.values||void 0===e.values.data_problem?this._resetStatus():this._dataProblem.setValue(Object(r.clone)(e.values.data_problem))},e}()},E3Wt:function(e,t,i){"use strict";i.r(t);var n=i("Eyy1"),r=i("mrSG"),o=function(e){function t(t,i){var n=e.call(this,"")||this;return n._chartModel=t,n._targetIndex=i,n}return Object(r.c)(t,e),t.prototype.redo=function(){var e=this._chartModel.createPane(this._targetIndex,void 0,this._paneId);this._paneId=e.id()},t.prototype.undo=function(){var e=Object(n.ensureDefined)(this._paneId),t=this._chartModel.panes().find((function(t){return t.id()===e}));void 0!==t&&this._chartModel.removePane(t)},t.prototype.createdPaneId=function(){return this._paneId},t}(i("RDU5").UndoCommand);function s(e,t){var i=t.model().model().studyTemplate();e.undoHistory.beginUndoMacro("Apply Indicators to Entire Layout");for(var n=0;n<e.chartWidgetsDefs.length;n++){var r=e.chartWidgetsDefs[n].chartWidget;if(r!==t){var o=r.model();o&&o.applyStudyTemplate(i,"")}}e.undoHistory.endUndoMacro()}function a(e,t,i,r,s){e.undoHistory.beginUndoMacro(s);for(var a=function(a){var l=e.chartWidgetsDefs[a].chartWidget;if(l===t)return"continue";var c=l.model();if(c){var u=void 0;if(r.isOnMainPane)u=Object(n.ensureNotNull)(c.model().paneForSource(l.model().model().mainSeries()));else{var h=new o(c.model(),r.paneIndex);e.undoHistory.pushUndoCommand(h);var d=Object(n.ensureDefined)(h.createdPaneId());u=Object(n.ensureDefined)(c.model().panes().find((function(e){return e.id()===d})))}var p=c.pasteSourceFromClip(u,i,!0);if(p&&1===p.length){var f=p[0];if(r.asCompare){var _=Object(n.ensureNotNull)(c.mainSeries().priceScale());c.moveToScale(f,Object(n.ensureDefined)(u),_,s),c.setPriceScaleMode({percentage:!0},_,"")}}c.model().lightUpdate()}},l=0;l<e.chartWidgetsDefs.length;l++)a(l);e.undoHistory.endUndoMacro()} e.exports=JSON.parse('{"4":["v",["h",0,2],["h",1,3]],"6":["v",["h",0,2,4],["h",1,3,5]],"8":["v",["h",0,2,4,6],["h",1,3,5,7]],"2h":["h",0,1],"2v":["v",0,1],"2-1":["v",["h",0,2],1],"3s":["h",0,["v",1,2]],"3h":["h",0,1,2],"3v":["v",0,1,2],"1-2":["v",0,["h",1,2]],"3r":["h",["v",0,1],2],"4h":["h",0,1,2,3],"4v":["v",0,1,2,3],"4s":["h",0,["v",1,2,3]],"1-3":["v",0,["h",1,2,3]],"2-2":["v",["h",0,1],["v",2,3]],"1-4":["v",0,["h",1,2,3,4]],"5s":["h",0,["v",1,2,3,4]],"6c":["v",["h",0,1],["h",2,3],["h",4,5]],"8c":["v",["h",0,1],["h",2,3],["h",4,5],["h",6,7]],"s":0}')},DsEq:function(e,t,i){"use strict";i.r(t),i.d(t,"DataProblemModel",(function(){return o}));var n=i("QfUd"),r=i("ogJP"),o=function(){function e(e,t){this._dataProblem=new n.a(null),this._quotesProvider=e,this._quotesProvider.quotesUpdate().subscribe(this,this._update.bind(this)),this._resetSubscription=t,this._resetSubscription.subscribe(this,this._resetStatus)}return e.prototype.destroy=function(){this._quotesProvider.quotesUpdate().unsubscribeAll(this),this._resetSubscription.unsubscribeAll(this)},e.prototype.status=function(){return this._dataProblem},e.prototype._resetStatus=function(){this._dataProblem.setValue(null)},e.prototype._update=function(e){void 0===e.values||void 0===e.values.data_problem?this._resetStatus():this._dataProblem.setValue(Object(r.clone)(e.values.data_problem))},e}()},E3Wt:function(e,t,i){"use strict";i.r(t);var n=i("Eyy1"),r=i("mrSG"),o=function(e){function t(t,i){var n=e.call(this,"")||this;return n._chartModel=t,n._targetIndex=i,n}return Object(r.c)(t,e),t.prototype.redo=function(){var e=this._chartModel.createPane(this._targetIndex,void 0,this._paneId);this._paneId=e.id()},t.prototype.undo=function(){var e=Object(n.ensureDefined)(this._paneId),t=this._chartModel.panes().find((function(t){return t.id()===e}));void 0!==t&&this._chartModel.removePane(t)},t.prototype.createdPaneId=function(){return this._paneId},t}(i("RDU5").UndoCommand);function s(e,t){var i=t.model().model().studyTemplate();e.undoHistory.beginUndoMacro("Apply Indicators to Entire Layout");for(var n=0;n<e.chartWidgetsDefs.length;n++){var r=e.chartWidgetsDefs[n].chartWidget;if(r!==t){var o=r.model();o&&o.applyStudyTemplate(i,"")}}e.undoHistory.endUndoMacro()}function a(e,t,i,r,s){e.undoHistory.beginUndoMacro(s);for(var a=function(a){var l=e.chartWidgetsDefs[a].chartWidget;if(l===t)return"continue";var c=l.model();if(c){var u=void 0;if(r.isOnMainPane)u=Object(n.ensureNotNull)(c.model().paneForSource(l.model().model().mainSeries()));else{var h=new o(c.model(),r.paneIndex);e.undoHistory.pushUndoCommand(h);var d=Object(n.ensureDefined)(h.createdPaneId());u=Object(n.ensureDefined)(c.model().panes().find((function(e){return e.id()===d})))}var p=c.pasteSourceFromClip(u,i,!0);if(p&&1===p.length){var f=p[0];if(r.asCompare){var _=Object(n.ensureNotNull)(c.mainSeries().priceScale());c.moveToScale(f,Object(n.ensureDefined)(u),_,s),c.setPriceScaleMode({percentage:!0},_,"")}}c.model().lightUpdate()}},l=0;l<e.chartWidgetsDefs.length;l++)a(l);e.undoHistory.endUndoMacro()}
i.d(t,"applyIndicatorsToAllChartsImpl",(function(){return s})),i.d(t,"applyIndicatorToAllChartsImpl",(function(){return a}))},E6p6:function(e,t,i){"use strict";var n;i.r(t),i.d(t,"SessionStage",(function(){return n})),function(e){e[e.PRE_SESSION=-1]="PRE_SESSION",e[e.POST_SESSION=-2]="POST_SESSION",e[e.LASTBAR_SESSION=-3]="LASTBAR_SESSION"}(n||(n={}))},EJcV:function(e,t,i){"use strict";var n=i("rQHv"),r=i("ocLq"),o=i("8gnj"),s=i("33fJ").TimeScaleBuilder,a=i("gzUS").PointsetsManager,l=i("IiTo"),c=i("OLhd").createDwmAligner,u=i("LxhU").Interval,h=i("FQhm"),d=i("TlGQ").visitObject,p=i("ogJP").isObject;i("2cgs"),i("MrEN");var f=i("WIS0").DatafeedRequestsCachedProcessor,_=i("+6ja").timezoneIsAvailable,m=i("OLhd").isAlignmentEnabled,v=i("5fI3"),y=v.isEncodedExtendedSymbol,g=v.decodeExtendedSymbol,b=i("M/W+").replaceGraphicsTimesToSeriesIndexes,S=i("Kxc7");function w(e){var t=e.findIndex((function(e){return-5e6!==e.index}));return 0===t?e:e.slice(t)}var P=function(e){var t=this;this._studiesCache={},this._sessionsLastDataCache={},this._metainfoCache=[],this._barsCoefficientsCache={},this._externalDatafeed=e,e.getVolumeProfileResolutionForPeriod&&r.overwriteVolumeProfileResolutionForPeriodGetter((function(t,i,n,r){return e.getVolumeProfileResolutionForPeriod(t,i,n,r)})),this._datafeedConfiguration=null,this._marketStatusWatchers={},this._resolveRequests={},this._callbacks={},this._serverTimeOffset=0,t._logMessage("Datafeed settings received: {0}".format(JSON.stringify(window.configurationData))),t._datafeedConfiguration=t._adoptConfigurationData(window.configurationData),t._fireEvent("configuration_received"),t._externalDatafeed.getServerTime&&t._externalDatafeed.getServerTime((function(e){t._serverTimeOffset=e-(new Date).valueOf()/1e3})),this._invalidatedPointsetSessions=new Set,this._refreshPointsetsTimerId=null,this._pointsetsManagers={},this._quotesInfo=[],this._depthInfo=[],this._endOfData={},this._computeStudyCounter=0,this._timeScaleBuilders={},this._cachedDatafeed=new f(e,this.serverTimeOffset.bind(this),this._datafeedConfiguration.reset_cache_timeout),o.setupFeed({resolve:function(e,i,n,r){t._resolveSymbolByName(e,i,n,r)},subscribe:function(e,i,n,r,o){return t._cachedDatafeed.subscribe(e,i,n,function(e,i,n){var r=new l.SessionInfo(e.timezone,e.session,e.holidays,e.corrections),o=l.newBarBuilder(i,r,r);return function(e){if(e&&e.count()){var i=1e3*t.getCurrentUTCTime();o.moveTo(i),o.indexOfBar(i)>=0&&e.setLastBarClosed(!1)}n(e)}}(e,i,r),o)},unsubscribe:function(e){return t._cachedDatafeed.unsubscribe(e)}})};function C(e,t,i){return e+","+t.full_name+","+i}P.prototype._removeTimeScaleBuilder=function(e,t,i){var n=this._timeScaleBuilders[C(e,t,i)];delete this._timeScaleBuilders[C(e,t,i)],void 0!==n&&n.destroy()},P.prototype._getTimeScaleBuilder=function(e,t,i){var n=u.normalize(i),r=C(e,t,n),o=this._timeScaleBuilders[r];return void 0===o&&(o=new s(t,n),this._timeScaleBuilders[r]=o),o},P.prototype._barsCoefficients=function(e,t){if(void 0===g(e).type)return{};var i=e+t i.d(t,"applyIndicatorsToAllChartsImpl",(function(){return s})),i.d(t,"applyIndicatorToAllChartsImpl",(function(){return a}))},E6p6:function(e,t,i){"use strict";var n;i.r(t),i.d(t,"SessionStage",(function(){return n})),function(e){e[e.PRE_SESSION=-1]="PRE_SESSION",e[e.POST_SESSION=-2]="POST_SESSION",e[e.LASTBAR_SESSION=-3]="LASTBAR_SESSION"}(n||(n={}))},EJcV:function(e,t,i){"use strict";var n=i("rQHv"),r=i("ocLq"),o=i("8gnj"),s=i("33fJ").TimeScaleBuilder,a=i("gzUS").PointsetsManager,l=i("IiTo"),c=i("OLhd").createDwmAligner,u=i("LxhU").Interval,h=i("FQhm"),d=i("TlGQ").visitObject,p=i("ogJP").isObject;i("2cgs"),i("MrEN");var f=i("WIS0").DatafeedRequestsCachedProcessor,_=i("+6ja").timezoneIsAvailable,m=i("OLhd").isAlignmentEnabled,v=i("5fI3"),y=v.isEncodedExtendedSymbol,g=v.decodeExtendedSymbol,b=i("M/W+").replaceGraphicsTimesToSeriesIndexes,S=i("Kxc7");function w(e){var t=e.findIndex((function(e){return-5e6!==e.index}));return 0===t?e:e.slice(t)}var P=function(e){var t=this;this._studiesCache={},this._sessionsLastDataCache={},this._metainfoCache=[],this._barsCoefficientsCache={},this._externalDatafeed=e,e.getVolumeProfileResolutionForPeriod&&r.overwriteVolumeProfileResolutionForPeriodGetter((function(t,i,n,r){return e.getVolumeProfileResolutionForPeriod(t,i,n,r)})),this._datafeedConfiguration=null,this._marketStatusWatchers={},this._resolveRequests={},this._callbacks={},this._serverTimeOffset=0,t._logMessage("Datafeed settings received: {0}".format(JSON.stringify(window.configurationData))),t._datafeedConfiguration=t._adoptConfigurationData(window.configurationData),t._fireEvent("configuration_received"),t._externalDatafeed.getServerTime&&t._externalDatafeed.getServerTime((function(e){t._serverTimeOffset=e-(new Date).valueOf()/1e3})),this._invalidatedPointsetSessions=new Set,this._refreshPointsetsTimerId=null,this._pointsetsManagers={},this._quotesInfo=[],this._depthInfo=[],this._endOfData={},this._computeStudyCounter=0,this._timeScaleBuilders={},this._cachedDatafeed=new f(e,this.serverTimeOffset.bind(this),this._datafeedConfiguration.reset_cache_timeout),o.setupFeed({resolve:function(e,i,n,r){t._resolveSymbolByName(e,i,n,r)},subscribe:function(e,i,n,r,o){return t._cachedDatafeed.subscribe(e,i,n,function(e,i,n){var r=new l.SessionInfo(e.timezone,e.session,e.holidays,e.corrections),o=l.newBarBuilder(i,r,r);return function(e){if(e&&e.count()){var i=1e3*t.getCurrentUTCTime();o.moveTo(i),o.indexOfBar(i)>=0&&e.setLastBarClosed(!1)}n(e)}}(e,i,r),o)},unsubscribe:function(e){return t._cachedDatafeed.unsubscribe(e)}})};function C(e,t,i){return e+","+t.full_name+","+i}P.prototype._removeTimeScaleBuilder=function(e,t,i){var n=this._timeScaleBuilders[C(e,t,i)];delete this._timeScaleBuilders[C(e,t,i)],void 0!==n&&n.destroy()},P.prototype._getTimeScaleBuilder=function(e,t,i){var n=u.normalize(i),r=C(e,t,n),o=this._timeScaleBuilders[r];return void 0===o&&(o=new s(t,n),this._timeScaleBuilders[r]=o),o},P.prototype._barsCoefficients=function(e,t){if(void 0===g(e).type)return{};var i=e+t

View File

@@ -11,12 +11,12 @@ imageData:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXd
;var e=Object(c.createDisconnectedCanvas)(document,new c.Size(0,0));return _=Object(c.getPrescaledContext2D)(e)}(),t=this._data.points[0].x+(this._data.offsetX||0),i=t,n=this._data.points[0].y+(this._data.offsetY||0),a=n,s=this._fontSize,l=this._lineSpacing,h=(s+l)*this._lines.length-l;e.textBaseline="top",e.font=this.fontStyle();var d,u=[];if(this._data.wordWrapWidth){d=this._data.wordWrapWidth;for(var p=0;p<this._lines.length;p++)u.push(this._data.wordWrapWidth)}else{d=0;for(p=0;p<this._lines.length;p++){var f=e.measureText(this._lines[p]).width;u.push(f),d=Math.max(d,f)}}var v={top:this._data.paddingTop,right:this._data.paddingRight,bottom:this._data.paddingBottom,left:this._data.paddingLeft},y={x:Math.floor(t),y:Math.floor(n),w:Math.ceil(d+v.left+v.right),h:Math.ceil(h+v.top+v.bottom)};if(i+=v.left,a+=v.top,!o.isIE&&this._data.icons){var w=void 0!==this._data.textPadding?this._data.textPadding:Math.round(s/2);i+=g+w,y.w+=g+w}if("bottom"===this._data.vertAlign||"middle"===this._data.vertAlign){var m="middle"===this._data.vertAlign?n-y.h/2:n-y.h-(y.y-n);a+=m-y.y,y.y=m}if("right"===this._data.horzAlign||"center"===this._data.horzAlign){var x="center"===this._data.horzAlign?t-y.w/2:t-y.w-(y.x-t);i+=x-y.x,y.x=x,!0!==this._data.doNotAlignText&&("right"===this._data.horzAlign?(e.textAlign="end",i+=d):(e.textAlign="center",i+=d/2))}y.w%2!=0&&y.w++,y.x+=.5,y.y+=.5,this._boundingBox=Object(r.box)(new r.Point(y.x,y.y),new r.Point(y.x+y.w,y.y+y.h)),this._rect=y,this._padding=v,this._textPoint={x:i,y:a},this._textSizeCache&&(this._textSizeCache.widths=u),this._preRendered=!0}},e.prototype._drawIcon=function(e,t,i,r,n,s){var l=""+r+this._data.isDark+s.pixelRatio,h=y.get(l);if(!h){(h=document.createElement("canvas")).width=g*s.pixelRatio,h.height=g*s.pixelRatio,h.style.width=g+"px",h.style.height=g+"px";var d=Object(a.ensureNotNull)(h.getContext("2d"));d.setTransform(1,0,0,1,0,0),o.isEdge||d.scale(s.pixelRatio,s.pixelRatio);var c=v.getIcon(r,n?"dark":"light");c.ready()&&(d.drawImage(c.image(),0,0),y.set(l,h))}e.drawImage(h,t-.5,i-.5,g,g)},e}()},"6MfG":function(e,t,i){"use strict";i.r(t),i.d(t,"Pattern5pointsPaneView",(function(){return p}));var r=i("mrSG"),n=i("8Uy/"),a=i("a7Ha"),o=i("Zy3/"),s=i("qgcf"),l=i("/S7V"),h=i("pJOz"),d=i("zXvd"),c=i("VdBB"),u=i("BCbF"),p=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._abRetracement=NaN,r._bcRetracement=NaN,r._cdRetracement=NaN,r._xdRetracement=NaN,r._numericFormatter=new d.NumericFormatter,r._bcRetracementTrend=new h.TrendLineRenderer,r._xdRetracementTrend=new h.TrendLineRenderer,r._xbTrend=new h.TrendLineRenderer,r._bdTrend=new h.TrendLineRenderer,r._polylineRenderer=new u.PolygonRenderer(new c.HitTestResult(c.HitTestResult.MOVEPOINT)),r._mainTriangleRenderer=new l.TriangleRenderer,r._triangleRendererPoints234=new l.TriangleRenderer,r._xbLabelRenderer=new s.TextRenderer,r._acLabelRenderer=new s.TextRenderer,r._bdLabelRenderer=new s.TextRenderer,r._xdLabelRenderer=new s.TextRenderer,r._textRendererALabel=new s.TextRenderer,r._textRendererBLabel=new s.TextRenderer, ;var e=Object(c.createDisconnectedCanvas)(document,new c.Size(0,0));return _=Object(c.getPrescaledContext2D)(e)}(),t=this._data.points[0].x+(this._data.offsetX||0),i=t,n=this._data.points[0].y+(this._data.offsetY||0),a=n,s=this._fontSize,l=this._lineSpacing,h=(s+l)*this._lines.length-l;e.textBaseline="top",e.font=this.fontStyle();var d,u=[];if(this._data.wordWrapWidth){d=this._data.wordWrapWidth;for(var p=0;p<this._lines.length;p++)u.push(this._data.wordWrapWidth)}else{d=0;for(p=0;p<this._lines.length;p++){var f=e.measureText(this._lines[p]).width;u.push(f),d=Math.max(d,f)}}var v={top:this._data.paddingTop,right:this._data.paddingRight,bottom:this._data.paddingBottom,left:this._data.paddingLeft},y={x:Math.floor(t),y:Math.floor(n),w:Math.ceil(d+v.left+v.right),h:Math.ceil(h+v.top+v.bottom)};if(i+=v.left,a+=v.top,!o.isIE&&this._data.icons){var w=void 0!==this._data.textPadding?this._data.textPadding:Math.round(s/2);i+=g+w,y.w+=g+w}if("bottom"===this._data.vertAlign||"middle"===this._data.vertAlign){var m="middle"===this._data.vertAlign?n-y.h/2:n-y.h-(y.y-n);a+=m-y.y,y.y=m}if("right"===this._data.horzAlign||"center"===this._data.horzAlign){var x="center"===this._data.horzAlign?t-y.w/2:t-y.w-(y.x-t);i+=x-y.x,y.x=x,!0!==this._data.doNotAlignText&&("right"===this._data.horzAlign?(e.textAlign="end",i+=d):(e.textAlign="center",i+=d/2))}y.w%2!=0&&y.w++,y.x+=.5,y.y+=.5,this._boundingBox=Object(r.box)(new r.Point(y.x,y.y),new r.Point(y.x+y.w,y.y+y.h)),this._rect=y,this._padding=v,this._textPoint={x:i,y:a},this._textSizeCache&&(this._textSizeCache.widths=u),this._preRendered=!0}},e.prototype._drawIcon=function(e,t,i,r,n,s){var l=""+r+this._data.isDark+s.pixelRatio,h=y.get(l);if(!h){(h=document.createElement("canvas")).width=g*s.pixelRatio,h.height=g*s.pixelRatio,h.style.width=g+"px",h.style.height=g+"px";var d=Object(a.ensureNotNull)(h.getContext("2d"));d.setTransform(1,0,0,1,0,0),o.isEdge||d.scale(s.pixelRatio,s.pixelRatio);var c=v.getIcon(r,n?"dark":"light");c.ready()&&(d.drawImage(c.image(),0,0),y.set(l,h))}e.drawImage(h,t-.5,i-.5,g,g)},e}()},"6MfG":function(e,t,i){"use strict";i.r(t),i.d(t,"Pattern5pointsPaneView",(function(){return p}));var r=i("mrSG"),n=i("8Uy/"),a=i("a7Ha"),o=i("Zy3/"),s=i("qgcf"),l=i("/S7V"),h=i("pJOz"),d=i("zXvd"),c=i("VdBB"),u=i("BCbF"),p=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._abRetracement=NaN,r._bcRetracement=NaN,r._cdRetracement=NaN,r._xdRetracement=NaN,r._numericFormatter=new d.NumericFormatter,r._bcRetracementTrend=new h.TrendLineRenderer,r._xdRetracementTrend=new h.TrendLineRenderer,r._xbTrend=new h.TrendLineRenderer,r._bdTrend=new h.TrendLineRenderer,r._polylineRenderer=new u.PolygonRenderer(new c.HitTestResult(c.HitTestResult.MOVEPOINT)),r._mainTriangleRenderer=new l.TriangleRenderer,r._triangleRendererPoints234=new l.TriangleRenderer,r._xbLabelRenderer=new s.TextRenderer,r._acLabelRenderer=new s.TextRenderer,r._bdLabelRenderer=new s.TextRenderer,r._xdLabelRenderer=new s.TextRenderer,r._textRendererALabel=new s.TextRenderer,r._textRendererBLabel=new s.TextRenderer,
r._textRendererCLabel=new s.TextRenderer,r._textRendererDLabel=new s.TextRenderer,r._textRendererXLabel=new s.TextRenderer,r._renderer=null,r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){if(e.prototype._updateImpl.call(this),this._updateBaseData(),this._renderer=null,!(this._points.length<2)){var t=this._source.properties().childs(),i=new o.CompositeRenderer,r=function(e,i){return{points:[e],text:i,color:t.textcolor.value(),vertAlign:"middle",horzAlign:"center",font:t.font.value(),offsetX:0,offsetY:0,bold:t.bold&&t.bold.value(),italic:t.italic&&t.italic.value(),fontsize:t.fontsize.value(),backgroundColor:t.color.value(),backgroundRoundRect:4}},s=function(e,i){return{points:[e,i],color:t.color.value(),linewidth:1,linestyle:n.LINESTYLE_DOTTED,extendleft:!1,extendright:!1,leftend:a.LineEnd.Normal,rightend:a.LineEnd.Normal}},l=this._points,h=l[0],d=l[1],c=l[2],u=l[3],p=l[4],_={points:[h,d,this._points.length<3?d:c],color:"rgba(0, 0, 0, 0)",linewidth:t.linewidth.value(),backcolor:t.backgroundColor.value(),fillBackground:t.fillBackground.value(),transparency:t.transparency.value()};if(this._mainTriangleRenderer.setData(_),i.append(this._mainTriangleRenderer),this._points.length>3){var f={points:[c,u,5===this._points.length?p:u],color:"rgba(0, 0, 0, 0)",linewidth:t.linewidth.value(),backcolor:t.backgroundColor.value(),fillBackground:t.fillBackground.value(),transparency:t.transparency.value()};this._triangleRendererPoints234.setData(f),i.append(this._triangleRendererPoints234)}var v={points:this._points,color:t.color.value(),linewidth:t.linewidth.value(),backcolor:t.backgroundColor.value(),fillBackground:!1,linestyle:n.LINESTYLE_SOLID,filled:!1};if(this._polylineRenderer.setData(v),i.append(this._polylineRenderer),this._points.length>=3){var g=r(h.add(c).scaled(.5),this._numericFormatter.format(this._abRetracement));this._xbLabelRenderer.setData(g),i.append(this._xbLabelRenderer),this._xbTrend.setData(s(h,c)),i.append(this._xbTrend)}if(this._points.length>=4){this._bcRetracementTrend.setData(s(d,u)),i.append(this._bcRetracementTrend);g=r(d.add(u).scaled(.5),this._numericFormatter.format(this._bcRetracement));this._acLabelRenderer.setData(g),i.append(this._acLabelRenderer)}if(this._points.length>=5){var y=r(c.add(p).scaled(.5),this._numericFormatter.format(this._cdRetracement));this._bdLabelRenderer.setData(y),i.append(this._bdLabelRenderer),this._xdRetracementTrend.setData(s(h,p)),i.append(this._xdRetracementTrend);var w=r(h.add(p).scaled(.5),this._numericFormatter.format(this._xdRetracement));this._xdLabelRenderer.setData(w),i.append(this._xdLabelRenderer),this._bdTrend.setData(s(c,p)),i.append(this._bdTrend)}var m=r(h,"X");d.y>h.y?(m.vertAlign="bottom",m.offsetY=5):(m.vertAlign="top",m.offsetY=5),this._textRendererXLabel.setData(m),i.append(this._textRendererXLabel);var x=r(d,"A");if(d.y<h.y?(x.vertAlign="bottom",x.offsetY=5):(x.vertAlign="top",x.offsetY=5),this._textRendererALabel.setData(x), r._textRendererCLabel=new s.TextRenderer,r._textRendererDLabel=new s.TextRenderer,r._textRendererXLabel=new s.TextRenderer,r._renderer=null,r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){if(e.prototype._updateImpl.call(this),this._updateBaseData(),this._renderer=null,!(this._points.length<2)){var t=this._source.properties().childs(),i=new o.CompositeRenderer,r=function(e,i){return{points:[e],text:i,color:t.textcolor.value(),vertAlign:"middle",horzAlign:"center",font:t.font.value(),offsetX:0,offsetY:0,bold:t.bold&&t.bold.value(),italic:t.italic&&t.italic.value(),fontsize:t.fontsize.value(),backgroundColor:t.color.value(),backgroundRoundRect:4}},s=function(e,i){return{points:[e,i],color:t.color.value(),linewidth:1,linestyle:n.LINESTYLE_DOTTED,extendleft:!1,extendright:!1,leftend:a.LineEnd.Normal,rightend:a.LineEnd.Normal}},l=this._points,h=l[0],d=l[1],c=l[2],u=l[3],p=l[4],_={points:[h,d,this._points.length<3?d:c],color:"rgba(0, 0, 0, 0)",linewidth:t.linewidth.value(),backcolor:t.backgroundColor.value(),fillBackground:t.fillBackground.value(),transparency:t.transparency.value()};if(this._mainTriangleRenderer.setData(_),i.append(this._mainTriangleRenderer),this._points.length>3){var f={points:[c,u,5===this._points.length?p:u],color:"rgba(0, 0, 0, 0)",linewidth:t.linewidth.value(),backcolor:t.backgroundColor.value(),fillBackground:t.fillBackground.value(),transparency:t.transparency.value()};this._triangleRendererPoints234.setData(f),i.append(this._triangleRendererPoints234)}var v={points:this._points,color:t.color.value(),linewidth:t.linewidth.value(),backcolor:t.backgroundColor.value(),fillBackground:!1,linestyle:n.LINESTYLE_SOLID,filled:!1};if(this._polylineRenderer.setData(v),i.append(this._polylineRenderer),this._points.length>=3){var g=r(h.add(c).scaled(.5),this._numericFormatter.format(this._abRetracement));this._xbLabelRenderer.setData(g),i.append(this._xbLabelRenderer),this._xbTrend.setData(s(h,c)),i.append(this._xbTrend)}if(this._points.length>=4){this._bcRetracementTrend.setData(s(d,u)),i.append(this._bcRetracementTrend);g=r(d.add(u).scaled(.5),this._numericFormatter.format(this._bcRetracement));this._acLabelRenderer.setData(g),i.append(this._acLabelRenderer)}if(this._points.length>=5){var y=r(c.add(p).scaled(.5),this._numericFormatter.format(this._cdRetracement));this._bdLabelRenderer.setData(y),i.append(this._bdLabelRenderer),this._xdRetracementTrend.setData(s(h,p)),i.append(this._xdRetracementTrend);var w=r(h.add(p).scaled(.5),this._numericFormatter.format(this._xdRetracement));this._xdLabelRenderer.setData(w),i.append(this._xdLabelRenderer),this._bdTrend.setData(s(c,p)),i.append(this._bdTrend)}var m=r(h,"X");d.y>h.y?(m.vertAlign="bottom",m.offsetY=5):(m.vertAlign="top",m.offsetY=5),this._textRendererXLabel.setData(m),i.append(this._textRendererXLabel);var x=r(d,"A");if(d.y<h.y?(x.vertAlign="bottom",x.offsetY=5):(x.vertAlign="top",x.offsetY=5),this._textRendererALabel.setData(x),
i.append(this._textRendererALabel),this._points.length>2){g=r(c,"B");c.y<d.y?(g.vertAlign="bottom",g.offsetY=5):(g.vertAlign="top",g.offsetY=5),this._textRendererBLabel.setData(g),i.append(this._textRendererBLabel)}if(this._points.length>3){g=r(u,"C");u.y<c.y?(g.vertAlign="bottom",g.offsetY=5):(g.vertAlign="top",g.offsetY=5),this._textRendererCLabel.setData(g),i.append(this._textRendererCLabel)}if(this._points.length>4){g=r(p,"D");p.y<u.y?(g.vertAlign="bottom",g.offsetY=5):(g.vertAlign="top",g.offsetY=5),this._textRendererDLabel.setData(g),i.append(this._textRendererDLabel)}this.addAnchors(i),this._renderer=i}},t.prototype._updateBaseData=function(){if(this._source.points().length>=3){var e=this._source.points(),t=e[0],i=e[1],r=e[2];this._abRetracement=Math.round(1e3*Math.abs((r.price-i.price)/(i.price-t.price)))/1e3}if(this._source.points().length>=4){var n=this._source.points(),a=(i=n[1],r=n[2],n[3]);this._bcRetracement=Math.round(1e3*Math.abs((a.price-r.price)/(r.price-i.price)))/1e3}if(this._source.points().length>=5){var o=this._source.points(),s=(t=o[0],i=o[1],r=o[2],a=o[3],o[4]);this._cdRetracement=Math.round(1e3*Math.abs((s.price-a.price)/(a.price-r.price)))/1e3,this._xdRetracement=Math.round(1e3*Math.abs((s.price-i.price)/(i.price-t.price)))/1e3}},t}(i("aB9a").LineSourcePaneView)},"6sSH":function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("IjC5").RectangleRenderer,a=i("pJOz").TrendLineRenderer,o=i("cjIn").PaneRendererCachedImage,s=i("VdBB").HitTestResult,l=i("Zy3/").CompositeRenderer,h=i("a7Ha").LineEnd,d=i("d1Pk").fibLevelCoordinate,c=i("NCfL").LineToolPaneViewWithLevelledTextCache,u=i("xUGI");function p(e,t,i){u.call(this,e,t,i)}function _(e,t){c.call(this,e,t),this._rendererCache={},this._trendLineRendererPoints12=new a,this._trendLineRendererPoints23=new a,this._renderer=null}inherit(p,u),p.prototype._selectStartPrice=function(e){return e.points()[2].price},p.prototype.priceRange=function(e,t){var i=this.points(e),r=i[0],n=i[1],a=t?r.price-n.price:n.price-r.price;if(!this._calculateLogLevels(e))return{price:a};var o=e.priceScale(),s=e.ownerSource().firstValue(),l=o.priceToCoordinate(r.price,s),h=o.priceToCoordinate(n.price,s);return{price:a,coordinate:t?l-h:h-l}},inherit(_,c),_.prototype.getCacheRects=function(e,t){c.prototype.getCacheRects.call(this,e,t);var i=this._cacheState.preparedCells.cells[this._levels[t].index-1];if(i){var n=this._points[1],a=this._points[2],o=Math.min(n.x,a.x),s=Math.max(n.x,a.x);n=new r(o,this._levels[t].y),a=new r(s,this._levels[t].y);var l,h=this._source.properties(),d=h.extendLines.value()?this._model.timeScale().width():s;switch(h.horzLabelsAlign.value()){case"left":l=n;break;case"center":(l=n.add(a).scaled(.5)).x+=i.width/2,l.x=Math.round(l.x);break;case"right":h.extendLines.value()?l=new r(d-4,this._levels[t].y):((l=new r(d+4,this._levels[t].y)).x+=i.width,l.x=Math.round(l.x))}var u={left:i.left,top:this._cache.topByRow(this._cacheState.row),width:i.width,height:this._cache.rowHeight(this._cacheState.row)},p={left:l.x-u.width,top:l.y,width:i.width,height:u.height i.append(this._textRendererALabel),this._points.length>2){g=r(c,"B");c.y<d.y?(g.vertAlign="bottom",g.offsetY=5):(g.vertAlign="top",g.offsetY=5),this._textRendererBLabel.setData(g),i.append(this._textRendererBLabel)}if(this._points.length>3){g=r(u,"C");u.y<c.y?(g.vertAlign="bottom",g.offsetY=5):(g.vertAlign="top",g.offsetY=5),this._textRendererCLabel.setData(g),i.append(this._textRendererCLabel)}if(this._points.length>4){g=r(p,"D");p.y<u.y?(g.vertAlign="bottom",g.offsetY=5):(g.vertAlign="top",g.offsetY=5),this._textRendererDLabel.setData(g),i.append(this._textRendererDLabel)}this.addAnchors(i),this._renderer=i}},t.prototype._updateBaseData=function(){if(this._source.points().length>=3){var e=this._source.points(),t=e[0],i=e[1],r=e[2];this._abRetracement=Math.round(1e3*Math.abs((r.price-i.price)/(i.price-t.price)))/1e3}if(this._source.points().length>=4){var n=this._source.points(),a=(i=n[1],r=n[2],n[3]);this._bcRetracement=Math.round(1e3*Math.abs((a.price-r.price)/(r.price-i.price)))/1e3}if(this._source.points().length>=5){var o=this._source.points(),s=(t=o[0],i=o[1],r=o[2],a=o[3],o[4]);this._cdRetracement=Math.round(1e3*Math.abs((s.price-a.price)/(a.price-r.price)))/1e3,this._xdRetracement=Math.round(1e3*Math.abs((s.price-i.price)/(i.price-t.price)))/1e3}},t}(i("aB9a").LineSourcePaneView)},"6sSH":function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("IjC5").RectangleRenderer,a=i("pJOz").TrendLineRenderer,o=i("cjIn").PaneRendererCachedImage,s=i("VdBB").HitTestResult,l=i("Zy3/").CompositeRenderer,h=i("a7Ha").LineEnd,d=i("d1Pk").fibLevelCoordinate,c=i("NCfL").LineToolPaneViewWithLevelledTextCache,u=i("xUGI");function p(e,t,i){u.call(this,e,t,i)}function _(e,t){c.call(this,e,t),this._rendererCache={},this._trendLineRendererPoints12=new a,this._trendLineRendererPoints23=new a,this._renderer=null}inherit(p,u),p.prototype._selectStartPrice=function(e){return e.points()[2].price},p.prototype.priceRange=function(e,t){var i=this.points(e),r=i[0],n=i[1],a=t?r.price-n.price:n.price-r.price;if(!this._calculateLogLevels(e))return{price:a};var o=e.priceScale(),s=e.ownerSource().firstValue(),l=o.priceToCoordinate(r.price,s),h=o.priceToCoordinate(n.price,s);return{price:a,coordinate:t?l-h:h-l}},inherit(_,c),_.prototype.getCacheRects=function(e,t){c.prototype.getCacheRects.call(this,e,t);var i=this._cacheState.preparedCells.cells[this._levels[t].index-1];if(i){var n=this._points[1],a=this._points[2],o=Math.min(n.x,a.x),s=Math.max(n.x,a.x);n=new r(o,this._levels[t].y),a=new r(s,this._levels[t].y);var l,h=this._source.properties(),d=h.extendLines.value()?this._model.timeScale().width():s;switch(h.horzLabelsAlign.value()){case"left":l=n;break;case"center":(l=n.add(a).scaled(.5)).x+=i.width/2,l.x=Math.round(l.x);break;case"right":h.extendLines.value()?l=new r(d-4,this._levels[t].y):((l=new r(d+4,this._levels[t].y)).x+=i.width,l.x=Math.round(l.x))}var u={left:i.left,top:this._cache.topByRow(this._cacheState.row),width:i.width,height:this._cache.rowHeight(this._cacheState.row)},p={left:l.x-u.width,top:l.y,width:i.width,height:u.height
},_=h.vertLabelsAlign.value();return"middle"===_&&(p.top-=p.height/2),"bottom"===_&&(p.top-=p.height),{cacheRect:u,targetRect:p}}},_.prototype._createCache=function(e){return new p(this._source.properties().fibLevelsBasedOnLogScale,this._source.levelsCount(),e)},_.prototype._updateImpl=function(){if(c.prototype._updateImpl.call(this),this._renderer=null,3===this._source.points().length){var e=this._source.priceScale();if(!e||e.isEmpty()||this._model.timeScale().isEmpty())return;var t=this._source.ownerSource().firstValue();if(null==t)return;var i=this._source.points()[0],u=this._source.points()[1],p=this._source.points()[2],_=!1;(M=this._source.properties()).reverse&&M.reverse.value()&&(_=M.reverse.value()),this._levels=[];var f,v,g=_?i.price:u.price,y=_?u.price:i.price,w=g-y,m=e.isLog()&&M.fibLevelsBasedOnLogScale.value();if(m)f=e.priceToCoordinate(g,t)-e.priceToCoordinate(y,t),v=e.priceToCoordinate(p.price,t);for(var x={price:p.price,coordinate:v},b={price:w,coordinate:f},R=this._source.levelsCount(),T=1;T<=R;T++){var S=M["level"+T];if(S.visible.value()){var P=S.coeff.value(),L=S.color.value(),C=d(x,b,P,e,t,m);this._levels.push({color:L,y:C,linewidth:M.levelsStyle.linewidth.value(),linestyle:M.levelsStyle.linestyle.value(),index:T})}}}if(!(this._points.length<2)){var M,I=new l;i=this._points[0],u=this._points[1];if((M=this._source.properties()).trendline.visible.value()){var O={points:[i,u],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:M.trendline.color.value(),linewidth:M.trendline.linewidth.value(),linestyle:M.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._trendLineRendererPoints12.setData(O),I.append(this._trendLineRendererPoints12)}if(this._points.length<3)return this.addAnchors(I),void(this._renderer=I);p=this._points[2];if(M.trendline.visible.value()){O={points:[u,p],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:M.trendline.color.value(),linewidth:M.trendline.linewidth.value(),linestyle:M.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._trendLineRendererPoints23.setData(O),I.append(this._trendLineRendererPoints23)}var D=Math.min(p.x,u.x),k=Math.max(p.x,u.x),N=M.fillBackground.value(),B=M.transparency.value(),A=M.extendLinesLeft.value(),j=M.extendLines.value();if(N)for(T=0;T<this._levels.length;T++)if(T>0&&N){var E=this._levels[T-1],z=(i=new r(D,this._levels[T].y),u=new r(k,E.y),{});z.points=[i,u],z.color=this._levels[T].color,z.linewidth=0,z.backcolor=this._levels[T].color,z.fillBackground=!0,z.transparency=B,z.extendLeft=A,z.extendRight=j;var V=new n(void 0,void 0,!0);V.setData(z),I.append(V)}var H=D,W=k;H===W&&(A&&(H-=1),j&&(W+=1));for(T=0;T<this._levels.length;T++){O={points:[i=new r(H,this._levels[T].y),u=new r(W,this._levels[T].y)],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._levels[T].color,linewidth:this._levels[T].linewidth,linestyle:this._levels[T].linestyle,extendleft:A, },_=h.vertLabelsAlign.value();return"middle"===_&&(p.top-=p.height/2),"bottom"===_&&(p.top-=p.height),{cacheRect:u,targetRect:p}}},_.prototype._createCache=function(e){return new p(this._source.properties().fibLevelsBasedOnLogScale,this._source.levelsCount(),e)},_.prototype._updateImpl=function(){if(c.prototype._updateImpl.call(this),this._renderer=null,3===this._source.points().length){var e=this._source.priceScale();if(!e||e.isEmpty()||this._model.timeScale().isEmpty())return;var t=this._source.ownerSource().firstValue();if(null==t)return;var i=this._source.points()[0],u=this._source.points()[1],p=this._source.points()[2],_=!1;(M=this._source.properties()).reverse&&M.reverse.value()&&(_=M.reverse.value()),this._levels=[];var f,v,g=_?i.price:u.price,y=_?u.price:i.price,w=g-y,m=e.isLog()&&M.fibLevelsBasedOnLogScale.value();if(m)f=e.priceToCoordinate(g,t)-e.priceToCoordinate(y,t),v=e.priceToCoordinate(p.price,t);for(var x={price:p.price,coordinate:v},b={price:w,coordinate:f},R=this._source.levelsCount(),T=1;T<=R;T++){var S=M["level"+T];if(S.visible.value()){var P=S.coeff.value(),L=S.color.value(),C=d(x,b,P,e,t,m);this._levels.push({color:L,y:C,linewidth:M.levelsStyle.linewidth.value(),linestyle:M.levelsStyle.linestyle.value(),index:T})}}}if(!(this._points.length<2)){var M,I=new l;i=this._points[0],u=this._points[1];if((M=this._source.properties()).trendline.visible.value()){var O={points:[i,u],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:M.trendline.color.value(),linewidth:M.trendline.linewidth.value(),linestyle:M.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._trendLineRendererPoints12.setData(O),I.append(this._trendLineRendererPoints12)}if(this._points.length<3)return this.addAnchors(I),void(this._renderer=I);p=this._points[2];if(M.trendline.visible.value()){O={points:[u,p],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:M.trendline.color.value(),linewidth:M.trendline.linewidth.value(),linestyle:M.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._trendLineRendererPoints23.setData(O),I.append(this._trendLineRendererPoints23)}var D=Math.min(p.x,u.x),k=Math.max(p.x,u.x),B=M.fillBackground.value(),N=M.transparency.value(),A=M.extendLinesLeft.value(),j=M.extendLines.value();if(B)for(T=0;T<this._levels.length;T++)if(T>0&&B){var z=this._levels[T-1],E=(i=new r(D,this._levels[T].y),u=new r(k,z.y),{});E.points=[i,u],E.color=this._levels[T].color,E.linewidth=0,E.backcolor=this._levels[T].color,E.fillBackground=!0,E.transparency=N,E.extendLeft=A,E.extendRight=j;var V=new n(void 0,void 0,!0);V.setData(E),I.append(V)}var H=D,W=k;H===W&&(A&&(H-=1),j&&(W+=1));for(T=0;T<this._levels.length;T++){O={points:[i=new r(H,this._levels[T].y),u=new r(W,this._levels[T].y)],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._levels[T].color,linewidth:this._levels[T].linewidth,linestyle:this._levels[T].linestyle,extendleft:A,
extendright:j,leftend:h.Normal,rightend:h.Normal};var Y=new a;if(Y.setData(O),Y.setHitTest(new s(s.MOVEPOINT,null,this._levels[T].index)),I.append(Y),M.showCoeffs.value()||M.showPrices.value()){var F=new o(this,T);I.append(F)}}this.addAnchors(I),this._renderer=I}},_.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.TrendBasedFibExtensionPaneView=_},"8GeE":function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("aO4+"),a=i("hfHJ"),o=i("Zy3/"),s=i("a7Ha"),l=i("8Uy/"),h=i("//lt"),d=i("pJOz"),c=i("aB9a"),u=i("Ialn"),p=i("ikwP"),_=i("cPgM"),f=i("VdBB"),v=function(e){function t(t){var i=e.call(this)||this;return i._data=null,i._cache=t,i}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e,t){if(null===this._data)return null;var i=65536*this._data.icon+this._data.size,r=this._cache[i]*this._data.scale,n=Object(a.rotationMatrix)(-this._data.angle),o=e.subtract(this._data.point);return o=Object(a.transformPoint)(n,o),Math.abs(o.y)<=r/2&&Math.abs(o.x)<=this._data.size/2?new f.HitTestResult(f.HitTestResult.MOVEPOINT):null},t.prototype._drawImpl=function(e,t){if(null!==this._data){var i=String.fromCharCode(this._data.icon);e.font=this._data.size+"px FontAwesome";var r=e.measureText(i).width;e.textBaseline="middle";var n=this._data.point;e.translate(n.x,n.y),e.rotate(this._data.angle-Math.PI/2),e.scale(this._data.scale,1);var a=65536*this._data.icon+this._data.size;e.textAlign=Object(u.isRtl)()?"right":"left";var o=Object(p.calcTextHorizontalShift)(e,r);this._cache[a]=r,this._data.selected&&(e.fillStyle="rgba(80, 80, 80, 0.2)",e.fillRect(-this._cache[a]/2,-this._data.size/2,this._cache[a],this._data.size)),e.fillStyle=this._data.color,e.fillText(i,-this._cache[a]/2+o,0)}},t}(_.ScaledPaneRenderer);i.d(t,"IconPaneView",(function(){return g}));var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._cache={},t._dashRenderer=new d.TrendLineRenderer,t._iconRenderer=new v(t._cache),t._renderer=null,t}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){if(e.prototype._updateImpl.call(this),this._renderer=null,!(this._points.length<1)){var t=new o.CompositeRenderer,i=this._source.properties().childs(),r={point:this._points[0],color:i.color.value(),size:i.size.value(),icon:i.icon.value(),angle:i.angle.value(),scale:i.scale.value(),selected:this.areAnchorsVisible()};this._iconRenderer.setData(r),t.append(this._iconRenderer);var d=65536*r.icon+r.size,u=this._cache[d],p=r.size,_=this._points[0],f=i.scale.value(),v=this._source.getAnchorLimit(),g=new n.Point(Math.max(v,p)/2,0),y=new n.Point(0,Math.max(v,f*u)/2),w=Object(a.rotationMatrix)(i.angle.value());g=Object(a.transformPoint)(w,g),y=Object(a.transformPoint)(w,y);var m=_.add(g);m.data=0;var x=_.subtract(g);x.data=1;var b=_.add(y);b.data=2,b.square=!0;var R=_.subtract(y);if(R.data=3,R.square=!0,this.areAnchorsVisible()){var T={points:[m,x],color:"#808080", extendright:j,leftend:h.Normal,rightend:h.Normal};var Y=new a;if(Y.setData(O),Y.setHitTest(new s(s.MOVEPOINT,null,this._levels[T].index)),I.append(Y),M.showCoeffs.value()||M.showPrices.value()){var F=new o(this,T);I.append(F)}}this.addAnchors(I),this._renderer=I}},_.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.TrendBasedFibExtensionPaneView=_},"8GeE":function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("aO4+"),a=i("hfHJ"),o=i("Zy3/"),s=i("a7Ha"),l=i("8Uy/"),h=i("//lt"),d=i("pJOz"),c=i("aB9a"),u=i("Ialn"),p=i("ikwP"),_=i("cPgM"),f=i("VdBB"),v=function(e){function t(t){var i=e.call(this)||this;return i._data=null,i._cache=t,i}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e,t){if(null===this._data)return null;var i=65536*this._data.icon+this._data.size,r=this._cache[i]*this._data.scale,n=Object(a.rotationMatrix)(-this._data.angle),o=e.subtract(this._data.point);return o=Object(a.transformPoint)(n,o),Math.abs(o.y)<=r/2&&Math.abs(o.x)<=this._data.size/2?new f.HitTestResult(f.HitTestResult.MOVEPOINT):null},t.prototype._drawImpl=function(e,t){if(null!==this._data){var i=String.fromCharCode(this._data.icon);e.font=this._data.size+"px FontAwesome";var r=e.measureText(i).width;e.textBaseline="middle";var n=this._data.point;e.translate(n.x,n.y),e.rotate(this._data.angle-Math.PI/2),e.scale(this._data.scale,1);var a=65536*this._data.icon+this._data.size;e.textAlign=Object(u.isRtl)()?"right":"left";var o=Object(p.calcTextHorizontalShift)(e,r);this._cache[a]=r,this._data.selected&&(e.fillStyle="rgba(80, 80, 80, 0.2)",e.fillRect(-this._cache[a]/2,-this._data.size/2,this._cache[a],this._data.size)),e.fillStyle=this._data.color,e.fillText(i,-this._cache[a]/2+o,0)}},t}(_.ScaledPaneRenderer);i.d(t,"IconPaneView",(function(){return g}));var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._cache={},t._dashRenderer=new d.TrendLineRenderer,t._iconRenderer=new v(t._cache),t._renderer=null,t}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){if(e.prototype._updateImpl.call(this),this._renderer=null,!(this._points.length<1)){var t=new o.CompositeRenderer,i=this._source.properties().childs(),r={point:this._points[0],color:i.color.value(),size:i.size.value(),icon:i.icon.value(),angle:i.angle.value(),scale:i.scale.value(),selected:this.areAnchorsVisible()};this._iconRenderer.setData(r),t.append(this._iconRenderer);var d=65536*r.icon+r.size,u=this._cache[d],p=r.size,_=this._points[0],f=i.scale.value(),v=this._source.getAnchorLimit(),g=new n.Point(Math.max(v,p)/2,0),y=new n.Point(0,Math.max(v,f*u)/2),w=Object(a.rotationMatrix)(i.angle.value());g=Object(a.transformPoint)(w,g),y=Object(a.transformPoint)(w,y);var m=_.add(g);m.data=0;var x=_.subtract(g);x.data=1;var b=_.add(y);b.data=2,b.square=!0;var R=_.subtract(y);if(R.data=3,R.square=!0,this.areAnchorsVisible()){var T={points:[m,x],color:"#808080",
linewidth:1,linestyle:l.LINESTYLE_DASHED,extendleft:!1,extendright:!1,leftend:s.LineEnd.Normal,rightend:s.LineEnd.Normal};this._dashRenderer.setData(T),t.append(this._dashRenderer)}var S=Object(c.thirdPointCursorType)(m,x),P=[h.PaneCursorType.Default,h.PaneCursorType.Default,S,S];t.append(this.createLineAnchor({points:[m,x,b,R],pointsCursorType:P})),this._renderer=t}},t}(c.LineSourcePaneView)},"8MBc":function(e,t,i){"use strict";var r=i("aB9a").LineSourcePaneView,n=i("pJOz").TrendLineRenderer,a=i("VdBB").HitTestResult,o=i("Zy3/").CompositeRenderer,s=i("a7Ha").LineEnd,l=i("cPgM").ScaledPaneRenderer;function h(){l.call(this),this._data=null}function d(e,t){r.call(this,e,t),this._trendLineRenderer=new n,this._spiralRenderer=new h,this._renderer=null}inherit(h,l),h.prototype.setData=function(e){this._data=e},h.prototype._fibNumbers=function(){return[0,1,2,3,5,8,13,21,34,55,89]},h.prototype._continiusFib=function(e){var t=this._fibNumbers(),i=Math.floor(e),r=Math.ceil(e);if(r>=t.length)return null;var n=e-i;n=Math.pow(n,1.15);var a=t[r]-t[i];return t[i]+a*n},h.prototype.hitTest=function(e){if(null===this._data)return null;var t=this._data.points[0],i=this._data.points[1].subtract(t),r=e.subtract(t),n=i.normalized(),o=n.transposed(),s=r.normalized(),l=Math.acos(n.dotProduct(s));Math.asin(o.dotProduct(s))<0&&(l=2*Math.PI-l);for(var h=this._data.counterclockwise?-1:1,d=r.length(),c=0;c<4;c++){var u=h*l/(.5*Math.PI),p=this._continiusFib(u+4*c);if(null!==(p=p*i.length()/5)&&Math.abs(p-d)<5)return new a(a.MOVEPOINT)}return null},h.prototype._drawImpl=function(e){if(null!==this._data){e.lineCap="round",e.strokeStyle=this._data.color;var t=this._data.points[0],i=this._data.points[1];e.translate(t.x,t.y);var r=i.subtract(t),n=r.length();r=r.normalized();var a=Math.acos(r.x);Math.asin(r.y)<0&&(a=2*Math.PI-a),e.rotate(a),e.scale(n/5,n/5),e.lineWidth=this._data.linewidth,CanvasEx.setLineStyle(e,this._data.linestyle);var o=Math.PI/100;e.moveTo(0,0);for(var s=this._data.counterclockwise?-1:1,l=0;l<50*(this._fibNumbers().length-1);l++){var h=s*l*o,d=this._continiusFib(l/50),c=Math.cos(h)*d,u=Math.sin(h)*d;e.lineTo(c,u)}e.scale(5/n,5/n),e.rotate(-a),e.stroke()}},inherit(d,r),d.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},d.prototype._updateImpl=function(){if(r.prototype._updateImpl.call(this),this._renderer=null,!(this._floatPoints.length<2)){var e,t=new o;(e={}).points=this._floatPoints,e.width=this._model.timeScale().width(),e.height=this._source.priceScale().height(),e.color=this._source.properties().linecolor.value(),e.linewidth=this._source.properties().linewidth.value(),e.linestyle=this._source.properties().linestyle.value(),e.extendleft=!1,e.extendright=!0,e.leftend=s.Normal,e.rightend=s.Normal,this._trendLineRenderer.setData(e),t.append(this._trendLineRenderer),(e={}).points=this._floatPoints,e.width=this._model.timeScale().width(),e.height=this._source.priceScale().height(),e.color=this._source.properties().linecolor.value(),e.linewidth=this._source.properties().linewidth.value(), linewidth:1,linestyle:l.LINESTYLE_DASHED,extendleft:!1,extendright:!1,leftend:s.LineEnd.Normal,rightend:s.LineEnd.Normal};this._dashRenderer.setData(T),t.append(this._dashRenderer)}var S=Object(c.thirdPointCursorType)(m,x),P=[h.PaneCursorType.Default,h.PaneCursorType.Default,S,S];t.append(this.createLineAnchor({points:[m,x,b,R],pointsCursorType:P})),this._renderer=t}},t}(c.LineSourcePaneView)},"8MBc":function(e,t,i){"use strict";var r=i("aB9a").LineSourcePaneView,n=i("pJOz").TrendLineRenderer,a=i("VdBB").HitTestResult,o=i("Zy3/").CompositeRenderer,s=i("a7Ha").LineEnd,l=i("cPgM").ScaledPaneRenderer;function h(){l.call(this),this._data=null}function d(e,t){r.call(this,e,t),this._trendLineRenderer=new n,this._spiralRenderer=new h,this._renderer=null}inherit(h,l),h.prototype.setData=function(e){this._data=e},h.prototype._fibNumbers=function(){return[0,1,2,3,5,8,13,21,34,55,89]},h.prototype._continiusFib=function(e){var t=this._fibNumbers(),i=Math.floor(e),r=Math.ceil(e);if(r>=t.length)return null;var n=e-i;n=Math.pow(n,1.15);var a=t[r]-t[i];return t[i]+a*n},h.prototype.hitTest=function(e){if(null===this._data)return null;var t=this._data.points[0],i=this._data.points[1].subtract(t),r=e.subtract(t),n=i.normalized(),o=n.transposed(),s=r.normalized(),l=Math.acos(n.dotProduct(s));Math.asin(o.dotProduct(s))<0&&(l=2*Math.PI-l);for(var h=this._data.counterclockwise?-1:1,d=r.length(),c=0;c<4;c++){var u=h*l/(.5*Math.PI),p=this._continiusFib(u+4*c);if(null!==(p=p*i.length()/5)&&Math.abs(p-d)<5)return new a(a.MOVEPOINT)}return null},h.prototype._drawImpl=function(e){if(null!==this._data){e.lineCap="round",e.strokeStyle=this._data.color;var t=this._data.points[0],i=this._data.points[1];e.translate(t.x,t.y);var r=i.subtract(t),n=r.length();r=r.normalized();var a=Math.acos(r.x);Math.asin(r.y)<0&&(a=2*Math.PI-a),e.rotate(a),e.scale(n/5,n/5),e.lineWidth=this._data.linewidth,CanvasEx.setLineStyle(e,this._data.linestyle);var o=Math.PI/100;e.moveTo(0,0);for(var s=this._data.counterclockwise?-1:1,l=0;l<50*(this._fibNumbers().length-1);l++){var h=s*l*o,d=this._continiusFib(l/50),c=Math.cos(h)*d,u=Math.sin(h)*d;e.lineTo(c,u)}e.scale(5/n,5/n),e.rotate(-a),e.stroke()}},inherit(d,r),d.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},d.prototype._updateImpl=function(){if(r.prototype._updateImpl.call(this),this._renderer=null,!(this._floatPoints.length<2)){var e,t=new o;(e={}).points=this._floatPoints,e.width=this._model.timeScale().width(),e.height=this._source.priceScale().height(),e.color=this._source.properties().linecolor.value(),e.linewidth=this._source.properties().linewidth.value(),e.linestyle=this._source.properties().linestyle.value(),e.extendleft=!1,e.extendright=!0,e.leftend=s.Normal,e.rightend=s.Normal,this._trendLineRenderer.setData(e),t.append(this._trendLineRenderer),(e={}).points=this._floatPoints,e.width=this._model.timeScale().width(),e.height=this._source.priceScale().height(),e.color=this._source.properties().linecolor.value(),e.linewidth=this._source.properties().linewidth.value(),
e.linestyle=this._source.properties().linestyle.value(),e.counterclockwise=this._source.properties().counterclockwise.value(),this._spiralRenderer.setData(e),t.append(this._spiralRenderer),this.addAnchors(t),this._renderer=t}},t.FibSpiralPaneView=d},"8xAY":function(e,t,i){"use strict";var r;i.r(t),i.d(t,"LabelSettings",(function(){return r})),function(e){e.offset=8,e.fontSize=12,e.lineSpacing=16,e.rectRadius=4,e.bgColorLight="rgba(227,242,253,0.9)",e.bgColorDark="rgba(67,70,81,0.9)",e.textColorLight="#2A2E39",e.textColorDark="#F8F9FD",e.textPadding=10,e.paddingTopBottom=13,e.paddingLeftRight=10}(r||(r={}))},"9FRF":function(e,t,i){"use strict";var r=i("aB9a").LineSourcePaneView,n=i("NN6M").ParallelChannelRenderer,a=i("Zy3/").CompositeRenderer,o=i("//lt").PaneCursorType,s=[o.Default,o.Default,o.Default,o.Default,o.VerticalResize,o.VerticalResize];function l(e,t){r.call(this,e,t),this._channelRenderer=new n,this._renderer=null,this._p3=null,this._p4=null}inherit(l,r),l.prototype._updateImpl=function(){if(r.prototype._updateImpl.call(this),this._renderer=null,this._source.priceScale()&&!this._source.priceScale().isEmpty()&&0!==this._source.points().length){if(this._source._priceOffset||this._source.calculatePriceDiff(),3===this._points.length&&this._source._priceOffset){var e=this._points[0],t=this._points[1],i=this._source._priceOffset+this._source.points()[0].price,n=this._source._priceOffset+this._source.points()[1].price;this._p3=e.clone(),this._p4=t.clone();var o=this._source.priceScale(),l=this._source.ownerSource().firstValue();if(o.isLog()){var h=.5*(i+n)-this._source._priceOffset,d=.5*(i+n),c=this._source.priceScale().priceToCoordinate(h,l),u=this._source.priceScale().priceToCoordinate(d,l)-c;this._p3.y+=u,this._p4.y+=u}else this._p3.y=this._source.priceScale().priceToCoordinate(i,l),this._p4.y=this._source.priceScale().priceToCoordinate(n,l)}var p={points:[]};this._points.length>1&&(p.points.push(this._points[0]),p.points.push(this._points[1])),this._points.length>2&&null!==this._p3&&null!==this._p4&&(p.points.push(this._p3),p.points.push(this._p4)),p.color=this._source.properties().linecolor.value(),p.width=this._model.timeScale().width(),p.height=this._source.priceScale().height();var _=this._source.properties();p.linewidth=_.linewidth.value(),p.linestyle=_.linestyle.value(),p.extendleft=_.extendLeft.value(),p.extendright=_.extendRight.value(),p.fillBackground=_.fillBackground.value(),p.backcolor=_.backgroundColor.value(),p.transparency=_.transparency.value(),p.showMidline=_.showMidline.value(),p.midlinewidth=_.midlinewidth.value(),p.midlinestyle=_.midlinestyle.value(),p.midcolor=_.midlinecolor.value(),p.fillBackground=_.fillBackground.value(),p.hittestOnBackground=!0,this._channelRenderer.setData(p);var f=new a;f.append(this._channelRenderer);var v=[];if(this._points[0]&&v.push(this._points[0]),this._points[1]&&v.push(this._points[1]),this._p3){var g=this._p3;g.data=2,v.push(g);var y=this._p4;y.data=3,v.push(y);var w=this._p3.add(this._p4).scaled(.5);w.data=4,w.square=!0,v.push(w) e.linestyle=this._source.properties().linestyle.value(),e.counterclockwise=this._source.properties().counterclockwise.value(),this._spiralRenderer.setData(e),t.append(this._spiralRenderer),this.addAnchors(t),this._renderer=t}},t.FibSpiralPaneView=d},"8xAY":function(e,t,i){"use strict";var r;i.r(t),i.d(t,"LabelSettings",(function(){return r})),function(e){e.offset=8,e.fontSize=12,e.lineSpacing=16,e.rectRadius=4,e.bgColorLight="rgba(227,242,253,0.9)",e.bgColorDark="rgba(67,70,81,0.9)",e.textColorLight="#2A2E39",e.textColorDark="#F8F9FD",e.textPadding=10,e.paddingTopBottom=13,e.paddingLeftRight=10}(r||(r={}))},"9FRF":function(e,t,i){"use strict";var r=i("aB9a").LineSourcePaneView,n=i("NN6M").ParallelChannelRenderer,a=i("Zy3/").CompositeRenderer,o=i("//lt").PaneCursorType,s=[o.Default,o.Default,o.Default,o.Default,o.VerticalResize,o.VerticalResize];function l(e,t){r.call(this,e,t),this._channelRenderer=new n,this._renderer=null,this._p3=null,this._p4=null}inherit(l,r),l.prototype._updateImpl=function(){if(r.prototype._updateImpl.call(this),this._renderer=null,this._source.priceScale()&&!this._source.priceScale().isEmpty()&&0!==this._source.points().length){if(this._source._priceOffset||this._source.calculatePriceDiff(),3===this._points.length&&this._source._priceOffset){var e=this._points[0],t=this._points[1],i=this._source._priceOffset+this._source.points()[0].price,n=this._source._priceOffset+this._source.points()[1].price;this._p3=e.clone(),this._p4=t.clone();var o=this._source.priceScale(),l=this._source.ownerSource().firstValue();if(o.isLog()){var h=.5*(i+n)-this._source._priceOffset,d=.5*(i+n),c=this._source.priceScale().priceToCoordinate(h,l),u=this._source.priceScale().priceToCoordinate(d,l)-c;this._p3.y+=u,this._p4.y+=u}else this._p3.y=this._source.priceScale().priceToCoordinate(i,l),this._p4.y=this._source.priceScale().priceToCoordinate(n,l)}var p={points:[]};this._points.length>1&&(p.points.push(this._points[0]),p.points.push(this._points[1])),this._points.length>2&&null!==this._p3&&null!==this._p4&&(p.points.push(this._p3),p.points.push(this._p4)),p.color=this._source.properties().linecolor.value(),p.width=this._model.timeScale().width(),p.height=this._source.priceScale().height();var _=this._source.properties();p.linewidth=_.linewidth.value(),p.linestyle=_.linestyle.value(),p.extendleft=_.extendLeft.value(),p.extendright=_.extendRight.value(),p.fillBackground=_.fillBackground.value(),p.backcolor=_.backgroundColor.value(),p.transparency=_.transparency.value(),p.showMidline=_.showMidline.value(),p.midlinewidth=_.midlinewidth.value(),p.midlinestyle=_.midlinestyle.value(),p.midcolor=_.midlinecolor.value(),p.fillBackground=_.fillBackground.value(),p.hittestOnBackground=!0,this._channelRenderer.setData(p);var f=new a;f.append(this._channelRenderer);var v=[];if(this._points[0]&&v.push(this._points[0]),this._points[1]&&v.push(this._points[1]),this._p3){var g=this._p3;g.data=2,v.push(g);var y=this._p4;y.data=3,v.push(y);var w=this._p3.add(this._p4).scaled(.5);w.data=4,w.square=!0,v.push(w)
;var m=v[0].add(v[1]).scaled(.5);m.data=5,m.square=!0,v.push(m)}var x=3===this._points.length&&!this._p3;this._model.lineBeingCreated()!==this._source||x||(v.pop(),v.pop()),f.append(this.createLineAnchor({points:v,pointsCursorType:s})),this._renderer=f}},l.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.ParallelChannelPaneView=l},"9XXR":function(e,t,i){"use strict";i.r(t),i.d(t,"splitThousands",(function(){return n}));var r=i("ivNn");function n(e,t){void 0===t&&(t="&nbsp;");var i=e+"";-1!==i.indexOf("e")&&(i=function(e){return Object(r.fixComputationError)(e).toFixed(10).replace(/\.?0+$/,"")}(Number(e)));var n=i.split(".");return n[0].replace(/\B(?=(\d{3})+(?!\d))/g,t)+(n[1]?"."+n[1]:"")}},Ay2m:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("LxhU").Interval,o=i("VdBB").HitTestResult,s=i("Zy3/").CompositeRenderer,l=i("UfPO"),h=i("Hr11"),d=i("GH0z").PercentageFormatter,c=i("gQ5K").DateFormatter,u=i("4kQX").TimeFormatter,p=i("nda6").TimeSpanFormatter,_=i("Tmoa"),f=i("08i5"),v=i("ikwP").calcTextHorizontalShift,g=i("Ialn").isRtl,y=i("jFln").drawRoundRect,w=i("XlJ7").makeFont,m=i("cPgM").ScaledPaneRenderer,x=i("Ialn"),b=x.forceLTRStr,R=x.startWithLTR,T=i("zDbI").CHART_FONT_FAMILY;function S(){m.call(this),this._data=null,this._font=T,this._targetFontSize1=14,this._targetFontSize2=11,this._sourceFontSize1=12,this._sourceFontSize2=10,this._arrowOffset=6,this._arrowWidth=5,this._arrowHeight=5,this._radius=3,this._sourceWidth=void 0,this._sourceHeight=void 0,this._sourceRectLeftOffset=void 0,this._targetWidth=void 0,this._targetHeight=void 0,this._targetRectLeftOffset=void 0}function P(e,t){n.call(this,e,t),this._clockWhite=l("prediction-clock-white",i("qjB4")),this._clockBlack=l("prediction-clock-black",i("ukvZ")),this._successIcon=l("prediction-success-white",i("mJB8")),this._failureIcon=l("prediction-failure-white",i("V8bI")),this._percentageFormatter=new d,this._predictionRenderer=new S,this._renderer=null}inherit(S,m),S.prototype.setData=function(e){this._data=e},S.prototype.drawBalloon=function(e,t,i,n,a,o){var s=o||20;if(e.beginPath(),"down"===a){var l=new r(t.x-s,t.y-this._arrowOffset-this._arrowHeight-n);return e.moveTo(l.x+this._radius,l.y),e.lineTo(l.x+i-this._radius,l.y),e.arcTo(l.x+i,l.y,l.x+i,l.y+this._radius,this._radius),e.lineTo(l.x+i,l.y+n-this._radius),e.arcTo(l.x+i,l.y+n,l.x+i-this._radius,l.y+n,this._radius),e.lineTo(l.x+s+this._arrowWidth,l.y+n),e.lineTo(l.x+s,l.y+n+this._arrowHeight),e.lineTo(l.x+s-this._arrowWidth,l.y+n),e.lineTo(l.x+this._radius,l.y+n),e.arcTo(l.x,l.y+n,l.x,l.y+n-this._radius,this._radius),e.lineTo(l.x,l.y+this._radius),e.arcTo(l.x,l.y,l.x+this._radius,l.y,this._radius),l}var h=new r(t.x-s,t.y+this._arrowOffset+this._arrowHeight+n);return e.moveTo(h.x+this._radius,h.y),e.lineTo(h.x+i-this._radius,h.y),e.arcTo(h.x+i,h.y,h.x+i,h.y-this._radius,this._radius),e.lineTo(h.x+i,h.y-n+this._radius),e.arcTo(h.x+i,h.y-n,h.x+i-this._radius,h.y-n,this._radius),e.lineTo(h.x+s+this._arrowWidth,h.y-n), ;var m=v[0].add(v[1]).scaled(.5);m.data=5,m.square=!0,v.push(m)}var x=3===this._points.length&&!this._p3;this._model.lineBeingCreated()!==this._source||x||(v.pop(),v.pop()),f.append(this.createLineAnchor({points:v,pointsCursorType:s})),this._renderer=f}},l.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.ParallelChannelPaneView=l},"9XXR":function(e,t,i){"use strict";i.r(t),i.d(t,"splitThousands",(function(){return n}));var r=i("ivNn");function n(e,t){void 0===t&&(t="&nbsp;");var i=e+"";-1!==i.indexOf("e")&&(i=function(e){return Object(r.fixComputationError)(e).toFixed(10).replace(/\.?0+$/,"")}(Number(e)));var n=i.split(".");return n[0].replace(/\B(?=(\d{3})+(?!\d))/g,t)+(n[1]?"."+n[1]:"")}},Ay2m:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("LxhU").Interval,o=i("VdBB").HitTestResult,s=i("Zy3/").CompositeRenderer,l=i("UfPO"),h=i("Hr11"),d=i("GH0z").PercentageFormatter,c=i("gQ5K").DateFormatter,u=i("4kQX").TimeFormatter,p=i("nda6").TimeSpanFormatter,_=i("Tmoa"),f=i("08i5"),v=i("ikwP").calcTextHorizontalShift,g=i("Ialn").isRtl,y=i("jFln").drawRoundRect,w=i("XlJ7").makeFont,m=i("cPgM").ScaledPaneRenderer,x=i("Ialn"),b=x.forceLTRStr,R=x.startWithLTR,T=i("zDbI").CHART_FONT_FAMILY;function S(){m.call(this),this._data=null,this._font=T,this._targetFontSize1=14,this._targetFontSize2=11,this._sourceFontSize1=12,this._sourceFontSize2=10,this._arrowOffset=6,this._arrowWidth=5,this._arrowHeight=5,this._radius=3,this._sourceWidth=void 0,this._sourceHeight=void 0,this._sourceRectLeftOffset=void 0,this._targetWidth=void 0,this._targetHeight=void 0,this._targetRectLeftOffset=void 0}function P(e,t){n.call(this,e,t),this._clockWhite=l("prediction-clock-white",i("qjB4")),this._clockBlack=l("prediction-clock-black",i("ukvZ")),this._successIcon=l("prediction-success-white",i("mJB8")),this._failureIcon=l("prediction-failure-white",i("V8bI")),this._percentageFormatter=new d,this._predictionRenderer=new S,this._renderer=null}inherit(S,m),S.prototype.setData=function(e){this._data=e},S.prototype.drawBalloon=function(e,t,i,n,a,o){var s=o||20;if(e.beginPath(),"down"===a){var l=new r(t.x-s,t.y-this._arrowOffset-this._arrowHeight-n);return e.moveTo(l.x+this._radius,l.y),e.lineTo(l.x+i-this._radius,l.y),e.arcTo(l.x+i,l.y,l.x+i,l.y+this._radius,this._radius),e.lineTo(l.x+i,l.y+n-this._radius),e.arcTo(l.x+i,l.y+n,l.x+i-this._radius,l.y+n,this._radius),e.lineTo(l.x+s+this._arrowWidth,l.y+n),e.lineTo(l.x+s,l.y+n+this._arrowHeight),e.lineTo(l.x+s-this._arrowWidth,l.y+n),e.lineTo(l.x+this._radius,l.y+n),e.arcTo(l.x,l.y+n,l.x,l.y+n-this._radius,this._radius),e.lineTo(l.x,l.y+this._radius),e.arcTo(l.x,l.y,l.x+this._radius,l.y,this._radius),l}var h=new r(t.x-s,t.y+this._arrowOffset+this._arrowHeight+n);return e.moveTo(h.x+this._radius,h.y),e.lineTo(h.x+i-this._radius,h.y),e.arcTo(h.x+i,h.y,h.x+i,h.y-this._radius,this._radius),e.lineTo(h.x+i,h.y-n+this._radius),e.arcTo(h.x+i,h.y-n,h.x+i-this._radius,h.y-n,this._radius),e.lineTo(h.x+s+this._arrowWidth,h.y-n),
e.lineTo(h.x+s,h.y-n-this._arrowHeight),e.lineTo(h.x+s-this._arrowWidth,h.y-n),e.lineTo(h.x+this._radius,h.y-n),e.arcTo(h.x,h.y-n,h.x,h.y-n+this._radius,this._radius),e.lineTo(h.x,h.y-this._radius),e.arcTo(h.x,h.y,h.x+this._radius,h.y,this._radius),new r(h.x,h.y-n)},S.prototype.drawTargetLabel=function(e){e.save(),e.translate(.5,.5);var t=w(this._targetFontSize1,this._font,"normal"),i=w(this._targetFontSize2,this._font,"normal"),r=this._data.targetLine1,n=this._data.targetLine2,a=this._data.targetLine3,o=this._data.targetLine4;e.font=t;var s=e.measureText(r).width,l=e.measureText(n).width,h=e.measureText(" ").width;e.font=i;var d=e.measureText(a).width,c=e.measureText(o).width,u=e.measureText(" ").width,p=this._data.clockWhite.width;this._targetWidth=Math.max(s+l+h,d+c+p+2*u)+8+4,this._targetHeight=this._targetFontSize1+this._targetFontSize2+9+4;var m=this._data.points[1],x=m.x+this._targetWidth-e.canvas.width+5;this._targetRectLeftOffset=Math.max(20,Math.min(this._targetWidth-15,x));var b="up"===this._data.direction?"down":"up",R=this.drawBalloon(e,m,this._targetWidth,this._targetHeight,b,this._targetRectLeftOffset);e.fillStyle=_.generateColor(this._data.targetBackColor,this._data.transparency),e.fill(),e.lineWidth=2,e.strokeStyle=_.generateColor(this._data.targetStrokeColor,this._data.transparency),e.stroke();e.beginPath(),e.arc(m.x,m.y,3,0,2*Math.PI,!1),e.fillStyle=this._data.centersColor,e.fill(),e.textBaseline="top",e.fillStyle=this._data.targetTextColor;var T=2+R.x+4,S=2+R.y+3,P=this._targetWidth-8-4;e.font=t,e.textAlign=g()?"right":"left";var L=v(e,P-l-h);e.fillText(r,T+L,S);var C=v(e,P-s);e.fillText(n,T+s+h+C,S),e.font=i;var M=S+this._targetFontSize1+3,I=v(e,P-c-p-u);e.fillText(a,T+I,M);var O=v(e,P-d-u-p-c);e.drawImage(this._data.clockWhite,T+d+u+O,M+1);var D=v(e,P-d-p);if(e.fillText(o,T+d+p+2*u+D,M),this._data.status){var k,N,B,A;switch(e.font=w(this._targetFontSize1,this._font,"bold"),this._data.status){case f.AlertStatus.Success:k=$.t("SUCCESS"),N=_.generateColor(this._data.successBackground,this._data.transparency),B=this._data.successTextColor,A=this._data.successIcon;break;case f.AlertStatus.Failure:k=$.t("FAILURE"),N=_.generateColor(this._data.failureBackground,this._data.transparency),B=this._data.failureTextColor,A=this._data.failureIcon}var j=this._targetFontSize1+4,E=e.measureText(k).width,z=Math.round((this._targetWidth-E)/2),V=v(e,E);e.fillStyle=N,"up"===this._data.direction?(y(e,R.x-1,R.y-j-2,this._targetWidth+2,j,5),e.fill(),e.fillStyle=B,e.fillText(k,R.x+z+V,R.y-j+1),e.drawImage(A,R.x+z-A.width-4,R.y-j-2+Math.abs(j-A.height)/2)):(y(e,R.x-1,R.y+this._targetHeight+2,this._targetWidth+2,j,5),e.fill(),e.fillStyle=B,e.fillText(k,R.x+z+V,R.y+this._targetHeight+5),e.drawImage(A,R.x+z-A.width-4,R.y+this._targetHeight+10-Math.abs(j-A.height)/2)),e.restore()}else e.restore()},S.prototype.drawStartLabel=function(e){e.save(),e.translate(.5,.5);var t=w(this._sourceFontSize1,this._font,"normal"),i=w(this._sourceFontSize2,this._font,"normal");e.font=t;var r=e.measureText(this._data.sourceLine1).width e.lineTo(h.x+s,h.y-n-this._arrowHeight),e.lineTo(h.x+s-this._arrowWidth,h.y-n),e.lineTo(h.x+this._radius,h.y-n),e.arcTo(h.x,h.y-n,h.x,h.y-n+this._radius,this._radius),e.lineTo(h.x,h.y-this._radius),e.arcTo(h.x,h.y,h.x+this._radius,h.y,this._radius),new r(h.x,h.y-n)},S.prototype.drawTargetLabel=function(e){e.save(),e.translate(.5,.5);var t=w(this._targetFontSize1,this._font,"normal"),i=w(this._targetFontSize2,this._font,"normal"),r=this._data.targetLine1,n=this._data.targetLine2,a=this._data.targetLine3,o=this._data.targetLine4;e.font=t;var s=e.measureText(r).width,l=e.measureText(n).width,h=e.measureText(" ").width;e.font=i;var d=e.measureText(a).width,c=e.measureText(o).width,u=e.measureText(" ").width,p=this._data.clockWhite.width;this._targetWidth=Math.max(s+l+h,d+c+p+2*u)+8+4,this._targetHeight=this._targetFontSize1+this._targetFontSize2+9+4;var m=this._data.points[1],x=m.x+this._targetWidth-e.canvas.width+5;this._targetRectLeftOffset=Math.max(20,Math.min(this._targetWidth-15,x));var b="up"===this._data.direction?"down":"up",R=this.drawBalloon(e,m,this._targetWidth,this._targetHeight,b,this._targetRectLeftOffset);e.fillStyle=_.generateColor(this._data.targetBackColor,this._data.transparency),e.fill(),e.lineWidth=2,e.strokeStyle=_.generateColor(this._data.targetStrokeColor,this._data.transparency),e.stroke();e.beginPath(),e.arc(m.x,m.y,3,0,2*Math.PI,!1),e.fillStyle=this._data.centersColor,e.fill(),e.textBaseline="top",e.fillStyle=this._data.targetTextColor;var T=2+R.x+4,S=2+R.y+3,P=this._targetWidth-8-4;e.font=t,e.textAlign=g()?"right":"left";var L=v(e,P-l-h);e.fillText(r,T+L,S);var C=v(e,P-s);e.fillText(n,T+s+h+C,S),e.font=i;var M=S+this._targetFontSize1+3,I=v(e,P-c-p-u);e.fillText(a,T+I,M);var O=v(e,P-d-u-p-c);e.drawImage(this._data.clockWhite,T+d+u+O,M+1);var D=v(e,P-d-p);if(e.fillText(o,T+d+p+2*u+D,M),this._data.status){var k,B,N,A;switch(e.font=w(this._targetFontSize1,this._font,"bold"),this._data.status){case f.AlertStatus.Success:k=$.t("SUCCESS"),B=_.generateColor(this._data.successBackground,this._data.transparency),N=this._data.successTextColor,A=this._data.successIcon;break;case f.AlertStatus.Failure:k=$.t("FAILURE"),B=_.generateColor(this._data.failureBackground,this._data.transparency),N=this._data.failureTextColor,A=this._data.failureIcon}var j=this._targetFontSize1+4,z=e.measureText(k).width,E=Math.round((this._targetWidth-z)/2),V=v(e,z);e.fillStyle=B,"up"===this._data.direction?(y(e,R.x-1,R.y-j-2,this._targetWidth+2,j,5),e.fill(),e.fillStyle=N,e.fillText(k,R.x+E+V,R.y-j+1),e.drawImage(A,R.x+E-A.width-4,R.y-j-2+Math.abs(j-A.height)/2)):(y(e,R.x-1,R.y+this._targetHeight+2,this._targetWidth+2,j,5),e.fill(),e.fillStyle=N,e.fillText(k,R.x+E+V,R.y+this._targetHeight+5),e.drawImage(A,R.x+E-A.width-4,R.y+this._targetHeight+10-Math.abs(j-A.height)/2)),e.restore()}else e.restore()},S.prototype.drawStartLabel=function(e){e.save(),e.translate(.5,.5);var t=w(this._sourceFontSize1,this._font,"normal"),i=w(this._sourceFontSize2,this._font,"normal");e.font=t;var r=e.measureText(this._data.sourceLine1).width
;e.font=i;var n=e.measureText(this._data.sourceLine2).width;this._sourceWidth=Math.max(r,n)+6+4,this._sourceHeight=this._sourceFontSize1+this._sourceFontSize2+6+4;var a=this._data.points[0],o=a.x+this._sourceWidth-e.canvas.width+5;this._sourceRectLeftOffset=Math.max(20,Math.min(this._sourceWidth-15,o));var s=this.drawBalloon(e,a,this._sourceWidth,this._sourceHeight,this._data.direction,this._sourceRectLeftOffset);e.fillStyle=_.generateColor(this._data.sourceBackColor,this._data.transparency),e.fill(),e.lineWidth=2,e.strokeStyle=_.generateColor(this._data.sourceStrokeColor,this._data.transparency),e.stroke(),e.textAlign=g()?"right":"left",e.textBaseline="top",e.fillStyle=this._data.sourceTextColor;var l=v(e,this._sourceWidth-6-4),h=2+s.x+3+l,d=2+s.y+2;e.font=t,e.fillText(this._data.sourceLine1,h,d),e.font=i,e.fillText(this._data.sourceLine2,h,d+this._sourceFontSize1+2);e.beginPath(),e.arc(a.x,a.y,3,0,2*Math.PI,!1),e.fillStyle=this._data.centersColor,e.fill(),e.restore()},S.prototype._drawImpl=function(e){if(!(null===this._data||this._data.points.length<2)){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.lineStyle=this._data.linestyle;var t=this._data.points[0],i=this._data.points[1],r=i.subtract(t);Math.abs(r.x)<1||Math.abs(r.y)<1?(e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),e.stroke()):(e.save(),e.beginPath(),e.translate(t.x,t.y),e.scale(1,r.y/r.x),e.moveTo(0,0),e.arcTo(r.x,0,r.x,r.x,Math.abs(r.x)),e.lineTo(r.x,r.x),e.restore(),e.stroke()),this.drawTargetLabel(e),this.drawStartLabel(e);var n=Math.max(8,4*this._data.linewidth);e.fillStyle=this._data.color;var a=r.y<0?1:-1;if(Math.abs(r.x)<1||Math.abs(r.y)<1)var o=Math.atan(r.x/r.y);else{var s,l,h=Math.abs(r.x),d=Math.abs(r.y),c=0,u=Math.PI/2,p=(c+u)/2;if(r.length()>n)for(;;){s=h*Math.sin(p),l=d*(1-Math.cos(p));var _=Math.sqrt((s-h)*(s-h)+(l-d)*(l-d));if(Math.abs(_-n)<1)break;_>n?c=p:u=p,p=(c+u)/2}o=Math.atan((h-s)/(d-l)),r.x*r.y<0&&(o=-o)}e.save(),e.beginPath(),e.translate(i.x,i.y),e.rotate(-o),e.moveTo(0,0),e.lineTo(-n/2,a*n),e.lineTo(n/2,a*n),e.lineTo(0,0),e.restore(),e.fill()}},S.prototype.targetLabelHitTest=function(e){if(void 0===this._targetWidth||void 0===this._targetHeight||void 0===this._targetRectLeftOffset)return null;var t=this._targetHeight+this._arrowHeight;this._data.status&&(t+=this._targetFontSize1+10);var i="up"===this._data.direction?-1:1,r=this._radius,n=this._data.points[1],a=n.x-this._targetRectLeftOffset,s=n.y+i*r,l=n.y+i*(t+r),h=Math.min(s,l),d=Math.max(s,l);return e.x>=a&&e.x<=a+this._targetWidth&&e.y>=h&&e.y<=d?new o(o.MOVEPOINT):null},S.prototype.sourceLabelHitTest=function(e){if(void 0===this._sourceHeight||void 0===this._sourceWidth||void 0===this._sourceRectLeftOffset)return null;var t="up"===this._data.direction?1:-1,i=this._radius,r=this._data.points[0],n=r.x-this._sourceRectLeftOffset,a=r.y+i*t,s=r.y+(i+this._sourceHeight+this._arrowHeight)*t,l=Math.min(a,s),h=Math.max(a,s);return e.x>=n&&e.x<=n+this._sourceWidth&&e.y>=l&&e.y<=h?new o(o.MOVEPOINT):null},S.prototype.hitTest=function(e){ ;e.font=i;var n=e.measureText(this._data.sourceLine2).width;this._sourceWidth=Math.max(r,n)+6+4,this._sourceHeight=this._sourceFontSize1+this._sourceFontSize2+6+4;var a=this._data.points[0],o=a.x+this._sourceWidth-e.canvas.width+5;this._sourceRectLeftOffset=Math.max(20,Math.min(this._sourceWidth-15,o));var s=this.drawBalloon(e,a,this._sourceWidth,this._sourceHeight,this._data.direction,this._sourceRectLeftOffset);e.fillStyle=_.generateColor(this._data.sourceBackColor,this._data.transparency),e.fill(),e.lineWidth=2,e.strokeStyle=_.generateColor(this._data.sourceStrokeColor,this._data.transparency),e.stroke(),e.textAlign=g()?"right":"left",e.textBaseline="top",e.fillStyle=this._data.sourceTextColor;var l=v(e,this._sourceWidth-6-4),h=2+s.x+3+l,d=2+s.y+2;e.font=t,e.fillText(this._data.sourceLine1,h,d),e.font=i,e.fillText(this._data.sourceLine2,h,d+this._sourceFontSize1+2);e.beginPath(),e.arc(a.x,a.y,3,0,2*Math.PI,!1),e.fillStyle=this._data.centersColor,e.fill(),e.restore()},S.prototype._drawImpl=function(e){if(!(null===this._data||this._data.points.length<2)){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.lineStyle=this._data.linestyle;var t=this._data.points[0],i=this._data.points[1],r=i.subtract(t);Math.abs(r.x)<1||Math.abs(r.y)<1?(e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),e.stroke()):(e.save(),e.beginPath(),e.translate(t.x,t.y),e.scale(1,r.y/r.x),e.moveTo(0,0),e.arcTo(r.x,0,r.x,r.x,Math.abs(r.x)),e.lineTo(r.x,r.x),e.restore(),e.stroke()),this.drawTargetLabel(e),this.drawStartLabel(e);var n=Math.max(8,4*this._data.linewidth);e.fillStyle=this._data.color;var a=r.y<0?1:-1;if(Math.abs(r.x)<1||Math.abs(r.y)<1)var o=Math.atan(r.x/r.y);else{var s,l,h=Math.abs(r.x),d=Math.abs(r.y),c=0,u=Math.PI/2,p=(c+u)/2;if(r.length()>n)for(;;){s=h*Math.sin(p),l=d*(1-Math.cos(p));var _=Math.sqrt((s-h)*(s-h)+(l-d)*(l-d));if(Math.abs(_-n)<1)break;_>n?c=p:u=p,p=(c+u)/2}o=Math.atan((h-s)/(d-l)),r.x*r.y<0&&(o=-o)}e.save(),e.beginPath(),e.translate(i.x,i.y),e.rotate(-o),e.moveTo(0,0),e.lineTo(-n/2,a*n),e.lineTo(n/2,a*n),e.lineTo(0,0),e.restore(),e.fill()}},S.prototype.targetLabelHitTest=function(e){if(void 0===this._targetWidth||void 0===this._targetHeight||void 0===this._targetRectLeftOffset)return null;var t=this._targetHeight+this._arrowHeight;this._data.status&&(t+=this._targetFontSize1+10);var i="up"===this._data.direction?-1:1,r=this._radius,n=this._data.points[1],a=n.x-this._targetRectLeftOffset,s=n.y+i*r,l=n.y+i*(t+r),h=Math.min(s,l),d=Math.max(s,l);return e.x>=a&&e.x<=a+this._targetWidth&&e.y>=h&&e.y<=d?new o(o.MOVEPOINT):null},S.prototype.sourceLabelHitTest=function(e){if(void 0===this._sourceHeight||void 0===this._sourceWidth||void 0===this._sourceRectLeftOffset)return null;var t="up"===this._data.direction?1:-1,i=this._radius,r=this._data.points[0],n=r.x-this._sourceRectLeftOffset,a=r.y+i*t,s=r.y+(i+this._sourceHeight+this._arrowHeight)*t,l=Math.min(a,s),h=Math.max(a,s);return e.x>=n&&e.x<=n+this._sourceWidth&&e.y>=l&&e.y<=h?new o(o.MOVEPOINT):null},S.prototype.hitTest=function(e){
if(null===this._data||this._data.points.length<2)return null;var t=this._data.points[0],i=this._data.points[1],r=i.subtract(t),n=(r=i.subtract(t),e.subtract(t)),a=Math.abs(r.x),s=Math.abs(r.y),l=h.sign(r.y)*(s-s*Math.sqrt(1-n.x*n.x/(a*a)));if(Math.abs(l-n.y)<3)return new o(o.MOVEPOINT);var d=this.targetLabelHitTest(e);return d||this.sourceLabelHitTest(e)},inherit(P,n),P.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},P.prototype._updateImpl=function(){if((n.prototype._updateImpl.call(this),this._renderer=null,this._targetLine1="",this._targetLine2="",this._targetLine3="",this._targetLine4="",!(this._source.points().length<2))&&this._source.priceScale()){var e=this._source.ownerSource().formatter(),t=this._source.points()[1],i=this._source.points()[0];this._targetLine3=b(e.format(t.price));var r=t.price-i.price,o=r/Math.abs(i.price)*100;this._targetLine1=b(e.format(r)+" ("+this._percentageFormatter.format(o)+")");var l=this._model.timeScale().indexToUserTime(i.index),h=this._model.timeScale().indexToUserTime(t.index);i.time&&t.time&&(l=TradingView.isString(i.time)?new Date(Date.parse(i.time)):i.time,h=TradingView.isString(t.time)?new Date(Date.parse(t.time)):t.time);var d=this._model.mainSeries().isDWM(),_=a.parse(this._model.mainSeries().interval()),v=_.isSeconds()||_.isTicks();if(h&&l){this._targetLine4=(new c).format(h),d||(this._targetLine4=this._targetLine4+" "+new u(v?"%h:%m:%s":"%h:%m").format(h));var g=(h.valueOf()-l.valueOf())/1e3;this._targetLine2=$.t("in",{context:"dates"})+" "+R((new p).format(g))}this._sourceLine1=e.format(i.price),this._sourceLine2="";var y=this._model.timeScale().indexToUserTime(i.index);y&&(this._sourceLine2=(new c).format(y),d||(this._sourceLine2=this._sourceLine2+" "+new u(v?"%h:%m:%s":"%h:%m").format(y))),this._direction=this._source.direction()===f.Direction.Up?"up":"down",this._finished=this._model.lineBeingCreated()!==this._source&&this._model.lineBeingEdited()!==this._source&&!this._model.sourcesBeingMoved().includes(this._source);var w={};w.points=this._points,w.color=this._source.properties().linecolor.value(),w.linewidth=this._source.properties().linewidth.value(),w.targetLine1=this._targetLine1,w.targetLine2=this._targetLine2,w.targetLine3=this._targetLine3,w.targetLine4=this._targetLine4,w.status=this._source.properties().status.value(),w.transparency=this._source.properties().transparency.value(),w.targetBackColor=this._source.properties().targetBackColor.value(),w.targetStrokeColor=this._source.properties().targetStrokeColor.value(),w.targetTextColor=this._source.properties().targetTextColor.value(),w.sourceBackColor=this._source.properties().sourceBackColor.value(),w.sourceStrokeColor=this._source.properties().sourceStrokeColor.value(),w.sourceTextColor=this._source.properties().sourceTextColor.value(),w.successBackground=this._source.properties().successBackground.value(),w.successTextColor=this._source.properties().successTextColor.value(),w.failureBackground=this._source.properties().failureBackground.value(), if(null===this._data||this._data.points.length<2)return null;var t=this._data.points[0],i=this._data.points[1],r=i.subtract(t),n=(r=i.subtract(t),e.subtract(t)),a=Math.abs(r.x),s=Math.abs(r.y),l=h.sign(r.y)*(s-s*Math.sqrt(1-n.x*n.x/(a*a)));if(Math.abs(l-n.y)<3)return new o(o.MOVEPOINT);var d=this.targetLabelHitTest(e);return d||this.sourceLabelHitTest(e)},inherit(P,n),P.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},P.prototype._updateImpl=function(){if((n.prototype._updateImpl.call(this),this._renderer=null,this._targetLine1="",this._targetLine2="",this._targetLine3="",this._targetLine4="",!(this._source.points().length<2))&&this._source.priceScale()){var e=this._source.ownerSource().formatter(),t=this._source.points()[1],i=this._source.points()[0];this._targetLine3=b(e.format(t.price));var r=t.price-i.price,o=r/Math.abs(i.price)*100;this._targetLine1=b(e.format(r)+" ("+this._percentageFormatter.format(o)+")");var l=this._model.timeScale().indexToUserTime(i.index),h=this._model.timeScale().indexToUserTime(t.index);i.time&&t.time&&(l=TradingView.isString(i.time)?new Date(Date.parse(i.time)):i.time,h=TradingView.isString(t.time)?new Date(Date.parse(t.time)):t.time);var d=this._model.mainSeries().isDWM(),_=a.parse(this._model.mainSeries().interval()),v=_.isSeconds()||_.isTicks();if(h&&l){this._targetLine4=(new c).format(h),d||(this._targetLine4=this._targetLine4+" "+new u(v?"%h:%m:%s":"%h:%m").format(h));var g=(h.valueOf()-l.valueOf())/1e3;this._targetLine2=$.t("in",{context:"dates"})+" "+R((new p).format(g))}this._sourceLine1=e.format(i.price),this._sourceLine2="";var y=this._model.timeScale().indexToUserTime(i.index);y&&(this._sourceLine2=(new c).format(y),d||(this._sourceLine2=this._sourceLine2+" "+new u(v?"%h:%m:%s":"%h:%m").format(y))),this._direction=this._source.direction()===f.Direction.Up?"up":"down",this._finished=this._model.lineBeingCreated()!==this._source&&this._model.lineBeingEdited()!==this._source&&!this._model.sourcesBeingMoved().includes(this._source);var w={};w.points=this._points,w.color=this._source.properties().linecolor.value(),w.linewidth=this._source.properties().linewidth.value(),w.targetLine1=this._targetLine1,w.targetLine2=this._targetLine2,w.targetLine3=this._targetLine3,w.targetLine4=this._targetLine4,w.status=this._source.properties().status.value(),w.transparency=this._source.properties().transparency.value(),w.targetBackColor=this._source.properties().targetBackColor.value(),w.targetStrokeColor=this._source.properties().targetStrokeColor.value(),w.targetTextColor=this._source.properties().targetTextColor.value(),w.sourceBackColor=this._source.properties().sourceBackColor.value(),w.sourceStrokeColor=this._source.properties().sourceStrokeColor.value(),w.sourceTextColor=this._source.properties().sourceTextColor.value(),w.successBackground=this._source.properties().successBackground.value(),w.successTextColor=this._source.properties().successTextColor.value(),w.failureBackground=this._source.properties().failureBackground.value(),
w.failureTextColor=this._source.properties().failureTextColor.value(),w.intermediateBackColor=this._source.properties().intermediateBackColor.value(),w.intermediateTextColor=this._source.properties().intermediateTextColor.value(),w.sourceLine1=this._sourceLine1,w.sourceLine2=this._sourceLine2,w.direction=this._direction,w.clockWhite=this._clockWhite,w.clockBlack=this._clockBlack,w.successIcon=this._successIcon,w.failureIcon=this._failureIcon,w.finished=this._finished,w.centersColor=this._model.backgroundCounterColor(),this._predictionRenderer.setData(w);var m=new s;m.append(this._predictionRenderer),this.addAnchors(m),this._renderer=m}},t.PredictionPaneView=P},B4Hi:function(e,t,i){"use strict";var r,n=i("aO4+").Point,a=i("aB9a").LineSourcePaneView,o=i("VdBB").HitTestResult,s=i("Zy3/").CompositeRenderer,l=i("Tmoa"),h=i("jTis").CalloutConsts,d=i("ikwP").calcTextHorizontalShift,c=i("Ialn").isRtl,u=i("cPgM").ScaledPaneRenderer;function p(e){u.call(this),this._data=null,this._textSizeCache=e}function _(e,t){a.call(this,e,t),this._textSizeCache={},this._calloutRenderer=new p(this._textSizeCache),this._renderer=null}inherit(p,u),p.prototype.wordWrap=function(e,t){var i;r||((i=document.createElement("canvas")).width=0,i.height=0,r=i.getContext("2d"),i=null),t=+t;var n=(e+="").split(/[^\S\r\n]*(?:\r\n|\r|\n|$)/);if(n[n.length-1]||n.pop(),!isFinite(t)||t<=0)return n;r.font=this.fontStyle();for(var a=[],o=0;o<n.length;o++){var s=n[o];if((h=r.measureText(s).width)<=t)a.push(s);else for(var l=s.split(/([-)\]},.!?:;])|(\s+)/);l.length;){var h,d=~~(t/h*(l.length+2)/3);if(d<=0||r.measureText(l.slice(0,3*d-1).join("")).width<=t)for(;r.measureText(l.slice(0,3*(d+1)-1).join("")).width<=t;)d++;else for(;d>0&&r.measureText(l.slice(0,3*--d-1).join("")).width>t;);if(d>0)a.push(l.slice(0,3*d-1).join("")),l.splice(0,3*d);else{var c=l[0]+(l[1]||""),u=1===u?1:~~(t/r.measureText(c)*c.length);if(r.measureText(c.substr(0,u)).width<=t)for(;r.measureText(c.substr(0,u+1)).width<=t;)u++;else for(;u>1&&r.measureText(c.substr(0,--u)).width>t;);u<1&&(u=1),a.push(c.substr(0,u)),l[0]=c.substr(u),l[1]=""}if((h=r.measureText(l.join("")).width)<=t){a.push(l.join(""));break}}}return a},p.prototype.setData=function(e){this._data=e,this._data.lines=this.wordWrap(e.text,e.wordWrapWidth)},p.prototype.hitTest=function(e){if(null===this._data||this._data.points.length<2)return null;var t=this._data.points[0],i=this._data.points[1];if(t.subtract(e).length()<3)return new o(o.CHANGEPOINT,0);var r=i.x-this._textSizeCache.totalWidth/2,n=i.y-this._textSizeCache.totalHeight/2;return e.x>=r&&e.x<=r+this._textSizeCache.totalWidth&&e.y>=n&&e.y<=n+this._textSizeCache.totalHeight?new o(o.MOVEPOINT,{areaName:"Text"}):null},p.prototype.fontStyle=function(){return(this._data.bold?"bold ":"")+(this._data.italic?"italic ":"")+this._data.fontSize+"px "+this._data.font},p.prototype._drawImpl=function(e){if(!(null===this._data||this._data.points.length<2)){var t=this._data.points[0].clone(),i=this._data.points[1].clone();e.lineCap="butt",e.strokeStyle=this._data.bordercolor, w.failureTextColor=this._source.properties().failureTextColor.value(),w.intermediateBackColor=this._source.properties().intermediateBackColor.value(),w.intermediateTextColor=this._source.properties().intermediateTextColor.value(),w.sourceLine1=this._sourceLine1,w.sourceLine2=this._sourceLine2,w.direction=this._direction,w.clockWhite=this._clockWhite,w.clockBlack=this._clockBlack,w.successIcon=this._successIcon,w.failureIcon=this._failureIcon,w.finished=this._finished,w.centersColor=this._model.backgroundCounterColor(),this._predictionRenderer.setData(w);var m=new s;m.append(this._predictionRenderer),this.addAnchors(m),this._renderer=m}},t.PredictionPaneView=P},B4Hi:function(e,t,i){"use strict";var r,n=i("aO4+").Point,a=i("aB9a").LineSourcePaneView,o=i("VdBB").HitTestResult,s=i("Zy3/").CompositeRenderer,l=i("Tmoa"),h=i("jTis").CalloutConsts,d=i("ikwP").calcTextHorizontalShift,c=i("Ialn").isRtl,u=i("cPgM").ScaledPaneRenderer;function p(e){u.call(this),this._data=null,this._textSizeCache=e}function _(e,t){a.call(this,e,t),this._textSizeCache={},this._calloutRenderer=new p(this._textSizeCache),this._renderer=null}inherit(p,u),p.prototype.wordWrap=function(e,t){var i;r||((i=document.createElement("canvas")).width=0,i.height=0,r=i.getContext("2d"),i=null),t=+t;var n=(e+="").split(/[^\S\r\n]*(?:\r\n|\r|\n|$)/);if(n[n.length-1]||n.pop(),!isFinite(t)||t<=0)return n;r.font=this.fontStyle();for(var a=[],o=0;o<n.length;o++){var s=n[o];if((h=r.measureText(s).width)<=t)a.push(s);else for(var l=s.split(/([-)\]},.!?:;])|(\s+)/);l.length;){var h,d=~~(t/h*(l.length+2)/3);if(d<=0||r.measureText(l.slice(0,3*d-1).join("")).width<=t)for(;r.measureText(l.slice(0,3*(d+1)-1).join("")).width<=t;)d++;else for(;d>0&&r.measureText(l.slice(0,3*--d-1).join("")).width>t;);if(d>0)a.push(l.slice(0,3*d-1).join("")),l.splice(0,3*d);else{var c=l[0]+(l[1]||""),u=1===u?1:~~(t/r.measureText(c)*c.length);if(r.measureText(c.substr(0,u)).width<=t)for(;r.measureText(c.substr(0,u+1)).width<=t;)u++;else for(;u>1&&r.measureText(c.substr(0,--u)).width>t;);u<1&&(u=1),a.push(c.substr(0,u)),l[0]=c.substr(u),l[1]=""}if((h=r.measureText(l.join("")).width)<=t){a.push(l.join(""));break}}}return a},p.prototype.setData=function(e){this._data=e,this._data.lines=this.wordWrap(e.text,e.wordWrapWidth)},p.prototype.hitTest=function(e){if(null===this._data||this._data.points.length<2)return null;var t=this._data.points[0],i=this._data.points[1];if(t.subtract(e).length()<3)return new o(o.CHANGEPOINT,0);var r=i.x-this._textSizeCache.totalWidth/2,n=i.y-this._textSizeCache.totalHeight/2;return e.x>=r&&e.x<=r+this._textSizeCache.totalWidth&&e.y>=n&&e.y<=n+this._textSizeCache.totalHeight?new o(o.MOVEPOINT,{areaName:"Text"}):null},p.prototype.fontStyle=function(){return(this._data.bold?"bold ":"")+(this._data.italic?"italic ":"")+this._data.fontSize+"px "+this._data.font},p.prototype._drawImpl=function(e){if(!(null===this._data||this._data.points.length<2)){var t=this._data.points[0].clone(),i=this._data.points[1].clone();e.lineCap="butt",e.strokeStyle=this._data.bordercolor,
@@ -34,31 +34,31 @@ this._trendLineRenderer=new n,this._renderer=null}inherit(u,c),u.prototype.getCa
};this._textRenderer.setData(x),r.append(this._textRenderer)}this._addAnchors(o,l,r),this._renderer=r}},t.prototype._addAnchors=function(e,t,i){var r=new n.Point(e.x,t.y);r.data=2;var a=new n.Point(t.x,e.y);a.data=3;var o=new n.Point(e.x,.5*(e.y+t.y));o.data=4;var s=new n.Point(t.x,.5*(e.y+t.y));s.data=5;var l=new n.Point(.5*(e.x+t.x),e.y);l.data=6;var h=new n.Point(.5*(e.x+t.x),t.y);h.data=7,[o,s,l,h].forEach((function(e){return e.square=!0}));var c=e.x-t.x,u=e.y-t.y,p=Math.sign(c*u),_=[p<0?d.PaneCursorType.DiagonalNeSwResize:d.PaneCursorType.DiagonalNwSeResize,p<0?d.PaneCursorType.DiagonalNeSwResize:d.PaneCursorType.DiagonalNwSeResize,p>0?d.PaneCursorType.DiagonalNeSwResize:d.PaneCursorType.DiagonalNwSeResize,p>0?d.PaneCursorType.DiagonalNeSwResize:d.PaneCursorType.DiagonalNwSeResize,d.PaneCursorType.HorizontalResize,d.PaneCursorType.HorizontalResize,d.PaneCursorType.VerticalResize,d.PaneCursorType.VerticalResize];i.append(this.createLineAnchor({points:[e,t,r,a,o,s,l,h],pointsCursorType:_}))},t}(h.LineSourcePaneView)},GzSs:function(e,t,i){"use strict";var r=i("aB9a").LineSourcePaneView,n=i("jkoZ"),a=i("VdBB").HitTestResult,o=i("9XXR").splitThousands,s=i("Ialn"),l=i("2uTr").appendEllipsis,h=i("cPgM").ScaledPaneRenderer;function d(e,t){h.call(this),this._data=null,this._cache=e,this._adapter=t}function c(e,t){r.call(this,e,t),this._rendererCache={},this._renderer=new d(this._rendererCache,e._adapter)}inherit(d,h),d.prototype.setData=function(e){this._data=e},d.prototype._height=function(){return Math.max(20,1+Math.max(n.fontHeight(this._adapter.getBodyFont()),n.fontHeight(this._adapter.getQuantityFont())))},d.prototype._bodyWidth=function(e){if(0===this._adapter.getText().length)return 0;e.save(),e.font=this._adapter.getBodyFont();var t=e.measureText(this._adapter.getText()).width;return e.restore(),Math.round(10+t)},d.prototype._getQuantity=function(){var e=this._adapter.getQuantity();return isNaN(e)?e:o(this._adapter.getQuantity()," ")},d.prototype._quantityWidth=function(e){if(0===this._getQuantity().length)return 0;e.save(),e.font=this._adapter.getQuantityFont();var t=e.measureText(this._getQuantity()).width;return e.restore(),Math.round(Math.max(this._height(),10+t))},d.prototype._reverseButtonWidth=function(){return this._adapter.isOnReverseCallbackPresent()?this._height():0},d.prototype._closeButtonWidth=function(){return this._adapter.isOnCloseCallbackPresent()?this._height():0},d.prototype._drawLines=function(e,t,i,r,n){e.save(),e.strokeStyle=this._adapter.getLineColor(),e.lineStyle=this._adapter.getLineStyle(),e.lineWidth=this._adapter.getLineWidth(),CanvasEx.drawLine(e,i,r,n,r),this._adapter.getExtendLeft()&&CanvasEx.drawLine(e,0,r,t,r),e.restore()},d.prototype._drawBody=function(e,t,i){e.strokeStyle=this._adapter.getBodyBorderColor(),e.fillStyle=this._adapter.getBodyBackgroundColor();var r=this._bodyWidth(e),n=this._height();e.fillRect(t+.5,i+.5,r-1,n-1),e.strokeRect(t,i,r,n)},d.prototype._drawBodyText=function(e,t,i){e.save(),e.textAlign="center",e.textBaseline="middle", };this._textRenderer.setData(x),r.append(this._textRenderer)}this._addAnchors(o,l,r),this._renderer=r}},t.prototype._addAnchors=function(e,t,i){var r=new n.Point(e.x,t.y);r.data=2;var a=new n.Point(t.x,e.y);a.data=3;var o=new n.Point(e.x,.5*(e.y+t.y));o.data=4;var s=new n.Point(t.x,.5*(e.y+t.y));s.data=5;var l=new n.Point(.5*(e.x+t.x),e.y);l.data=6;var h=new n.Point(.5*(e.x+t.x),t.y);h.data=7,[o,s,l,h].forEach((function(e){return e.square=!0}));var c=e.x-t.x,u=e.y-t.y,p=Math.sign(c*u),_=[p<0?d.PaneCursorType.DiagonalNeSwResize:d.PaneCursorType.DiagonalNwSeResize,p<0?d.PaneCursorType.DiagonalNeSwResize:d.PaneCursorType.DiagonalNwSeResize,p>0?d.PaneCursorType.DiagonalNeSwResize:d.PaneCursorType.DiagonalNwSeResize,p>0?d.PaneCursorType.DiagonalNeSwResize:d.PaneCursorType.DiagonalNwSeResize,d.PaneCursorType.HorizontalResize,d.PaneCursorType.HorizontalResize,d.PaneCursorType.VerticalResize,d.PaneCursorType.VerticalResize];i.append(this.createLineAnchor({points:[e,t,r,a,o,s,l,h],pointsCursorType:_}))},t}(h.LineSourcePaneView)},GzSs:function(e,t,i){"use strict";var r=i("aB9a").LineSourcePaneView,n=i("jkoZ"),a=i("VdBB").HitTestResult,o=i("9XXR").splitThousands,s=i("Ialn"),l=i("2uTr").appendEllipsis,h=i("cPgM").ScaledPaneRenderer;function d(e,t){h.call(this),this._data=null,this._cache=e,this._adapter=t}function c(e,t){r.call(this,e,t),this._rendererCache={},this._renderer=new d(this._rendererCache,e._adapter)}inherit(d,h),d.prototype.setData=function(e){this._data=e},d.prototype._height=function(){return Math.max(20,1+Math.max(n.fontHeight(this._adapter.getBodyFont()),n.fontHeight(this._adapter.getQuantityFont())))},d.prototype._bodyWidth=function(e){if(0===this._adapter.getText().length)return 0;e.save(),e.font=this._adapter.getBodyFont();var t=e.measureText(this._adapter.getText()).width;return e.restore(),Math.round(10+t)},d.prototype._getQuantity=function(){var e=this._adapter.getQuantity();return isNaN(e)?e:o(this._adapter.getQuantity()," ")},d.prototype._quantityWidth=function(e){if(0===this._getQuantity().length)return 0;e.save(),e.font=this._adapter.getQuantityFont();var t=e.measureText(this._getQuantity()).width;return e.restore(),Math.round(Math.max(this._height(),10+t))},d.prototype._reverseButtonWidth=function(){return this._adapter.isOnReverseCallbackPresent()?this._height():0},d.prototype._closeButtonWidth=function(){return this._adapter.isOnCloseCallbackPresent()?this._height():0},d.prototype._drawLines=function(e,t,i,r,n){e.save(),e.strokeStyle=this._adapter.getLineColor(),e.lineStyle=this._adapter.getLineStyle(),e.lineWidth=this._adapter.getLineWidth(),CanvasEx.drawLine(e,i,r,n,r),this._adapter.getExtendLeft()&&CanvasEx.drawLine(e,0,r,t,r),e.restore()},d.prototype._drawBody=function(e,t,i){e.strokeStyle=this._adapter.getBodyBorderColor(),e.fillStyle=this._adapter.getBodyBackgroundColor();var r=this._bodyWidth(e),n=this._height();e.fillRect(t+.5,i+.5,r-1,n-1),e.strokeRect(t,i,r,n)},d.prototype._drawBodyText=function(e,t,i){e.save(),e.textAlign="center",e.textBaseline="middle",
e.font=this._adapter.getBodyFont(),e.fillStyle=this._adapter.getBodyTextColor();var r=t+this._bodyWidth(e)/2,n=i+this._height()/2;e.fillText(this._adapter.getText(),r,n),e.restore()},d.prototype._drawQuantity=function(e,t,i){e.strokeStyle=this._adapter.getQuantityBorderColor(),e.fillStyle=this._adapter.getQuantityBackgroundColor();var r=this._quantityWidth(e),n=this._height();e.fillRect(t+.5,i+.5,r-1,n-1),e.strokeRect(t,i,r,n)},d.prototype._drawQuantityText=function(e,t,i){e.save(),e.textAlign="center",e.textBaseline="middle",e.font=this._adapter.getQuantityFont(),e.fillStyle=this._adapter.getQuantityTextColor();var r=t+this._quantityWidth(e)/2,n=i+this._height()/2;e.fillText(s.startWithLTR(this._getQuantity()+""),r,n),e.restore()},d.prototype._drawReverseButton=function(e,t,i){e.save(),e.strokeStyle=this._adapter.getReverseButtonBorderColor(),e.fillStyle=this._adapter.getReverseButtonBackgroundColor();var r=this._reverseButtonWidth(),n=this._height();e.fillRect(t+.5,i+.5,r-1,n-1),e.strokeRect(t,i,r,n),e.strokeStyle=this._adapter.getReverseButtonIconColor();var a=function(e,t){CanvasEx.setLineStyle(e,CanvasEx.LINESTYLE_SOLID),CanvasEx.drawLine(e,0,0,0,t),CanvasEx.drawLine(e,-1,1,1,1),CanvasEx.drawLine(e,-2,2,2,2)},o=t+Math.round((this._reverseButtonWidth()-6)/2),s=i+5;e.save(),e.translate(o,s),a(e,10),e.translate(6,10),e.rotate(Math.PI),a(e,10),e.restore(),this._adapter._blocked&&(e.fillStyle="rgba(140, 140, 140, 0.75)",e.fillRect(t+.5,i+.5,r-1,n-1)),e.restore()},d.prototype._drawCloseButton=function(e,t,i){e.save(),e.strokeStyle=this._adapter.getCloseButtonBorderColor(),e.fillStyle=this._adapter.getCloseButtonBackgroundColor();var r=this._closeButtonWidth(),n=this._height();e.fillRect(t+.5,i+.5,r-1,n-1),e.strokeRect(t,i,r,n);var a=t+r,o=i+n;e.strokeStyle=this._adapter.getCloseButtonIconColor();var s=(this._closeButtonWidth()-8)/2,l=(this._height()-8)/2;CanvasEx.drawPoly(e,[{x:t+s,y:i+l},{x:a-s,y:o-l}],!0),CanvasEx.drawPoly(e,[{x:a-s,y:i+l},{x:t+s,y:o-l}],!0),this._adapter._blocked&&(e.fillStyle="rgba(140, 140, 140, 0.75)",e.fillRect(t+.5,i+.5,r-1,n-1)),e.restore()},d.prototype._drawImpl=function(e){if(null!==this._data&&this._data.points&&!(this._data.points.length<1)){var t=this._data.width,i=this._bodyWidth(e),r=this._quantityWidth(e),n=this._reverseButtonWidth(e),a=i+r+n+this._closeButtonWidth(),o=t-a,s=Math.max(this._adapter.getLineLength()/100*t,1),l=Math.round(t-Math.min(o,s)),h=l-a,d=Math.round(this._data.points[0].y),c=Math.round(d-(this._height()+1)/2);this._cache.bodyRight=h+i,this._cache.quantityRight=this._cache.bodyRight+r,this._cache.reverseButtonRight=this._cache.quantityRight+n,this._cache.top=c,this._cache.bottom=c+this._height(),this._cache.left=h,this._cache.right=l,this._drawLines(e,h,l,d,t),0!==i&&(this._drawBody(e,h,c),this._drawBodyText(e,h,c)),0!==r&&(this._drawQuantity(e,this._cache.bodyRight,c),this._drawQuantityText(e,this._cache.bodyRight,c)),0!==n&&this._drawReverseButton(e,this._cache.quantityRight,c), e.font=this._adapter.getBodyFont(),e.fillStyle=this._adapter.getBodyTextColor();var r=t+this._bodyWidth(e)/2,n=i+this._height()/2;e.fillText(this._adapter.getText(),r,n),e.restore()},d.prototype._drawQuantity=function(e,t,i){e.strokeStyle=this._adapter.getQuantityBorderColor(),e.fillStyle=this._adapter.getQuantityBackgroundColor();var r=this._quantityWidth(e),n=this._height();e.fillRect(t+.5,i+.5,r-1,n-1),e.strokeRect(t,i,r,n)},d.prototype._drawQuantityText=function(e,t,i){e.save(),e.textAlign="center",e.textBaseline="middle",e.font=this._adapter.getQuantityFont(),e.fillStyle=this._adapter.getQuantityTextColor();var r=t+this._quantityWidth(e)/2,n=i+this._height()/2;e.fillText(s.startWithLTR(this._getQuantity()+""),r,n),e.restore()},d.prototype._drawReverseButton=function(e,t,i){e.save(),e.strokeStyle=this._adapter.getReverseButtonBorderColor(),e.fillStyle=this._adapter.getReverseButtonBackgroundColor();var r=this._reverseButtonWidth(),n=this._height();e.fillRect(t+.5,i+.5,r-1,n-1),e.strokeRect(t,i,r,n),e.strokeStyle=this._adapter.getReverseButtonIconColor();var a=function(e,t){CanvasEx.setLineStyle(e,CanvasEx.LINESTYLE_SOLID),CanvasEx.drawLine(e,0,0,0,t),CanvasEx.drawLine(e,-1,1,1,1),CanvasEx.drawLine(e,-2,2,2,2)},o=t+Math.round((this._reverseButtonWidth()-6)/2),s=i+5;e.save(),e.translate(o,s),a(e,10),e.translate(6,10),e.rotate(Math.PI),a(e,10),e.restore(),this._adapter._blocked&&(e.fillStyle="rgba(140, 140, 140, 0.75)",e.fillRect(t+.5,i+.5,r-1,n-1)),e.restore()},d.prototype._drawCloseButton=function(e,t,i){e.save(),e.strokeStyle=this._adapter.getCloseButtonBorderColor(),e.fillStyle=this._adapter.getCloseButtonBackgroundColor();var r=this._closeButtonWidth(),n=this._height();e.fillRect(t+.5,i+.5,r-1,n-1),e.strokeRect(t,i,r,n);var a=t+r,o=i+n;e.strokeStyle=this._adapter.getCloseButtonIconColor();var s=(this._closeButtonWidth()-8)/2,l=(this._height()-8)/2;CanvasEx.drawPoly(e,[{x:t+s,y:i+l},{x:a-s,y:o-l}],!0),CanvasEx.drawPoly(e,[{x:a-s,y:i+l},{x:t+s,y:o-l}],!0),this._adapter._blocked&&(e.fillStyle="rgba(140, 140, 140, 0.75)",e.fillRect(t+.5,i+.5,r-1,n-1)),e.restore()},d.prototype._drawImpl=function(e){if(null!==this._data&&this._data.points&&!(this._data.points.length<1)){var t=this._data.width,i=this._bodyWidth(e),r=this._quantityWidth(e),n=this._reverseButtonWidth(e),a=i+r+n+this._closeButtonWidth(),o=t-a,s=Math.max(this._adapter.getLineLength()/100*t,1),l=Math.round(t-Math.min(o,s)),h=l-a,d=Math.round(this._data.points[0].y),c=Math.round(d-(this._height()+1)/2);this._cache.bodyRight=h+i,this._cache.quantityRight=this._cache.bodyRight+r,this._cache.reverseButtonRight=this._cache.quantityRight+n,this._cache.top=c,this._cache.bottom=c+this._height(),this._cache.left=h,this._cache.right=l,this._drawLines(e,h,l,d,t),0!==i&&(this._drawBody(e,h,c),this._drawBodyText(e,h,c)),0!==r&&(this._drawQuantity(e,this._cache.bodyRight,c),this._drawQuantityText(e,this._cache.bodyRight,c)),0!==n&&this._drawReverseButton(e,this._cache.quantityRight,c),
0!==this._closeButtonWidth()&&this._drawCloseButton(e,this._cache.reverseButtonRight,c)}},d.prototype.hitTest=function(e){return null===this._data||0===this._data.points.length||e.y<this._cache.top||e.y>this._cache.bottom||e.x<this._cache.left||this._cache.right<e.x?null:this._adapter._blocked?new a(a.CUSTOM,{}):e.x>=this._cache.bodyRight&&e.x<this._cache.quantityRight&&this._adapter._onModifyCallback?new a(a.CUSTOM,{clickHandler:this._adapter.callOnModify.bind(this._adapter),tapHandler:this._adapter.callOnModify.bind(this._adapter),tooltip:{text:this._adapter.getProtectTooltip()||l(window.t("Protect Position")),rect:{x:this._cache.bodyRight,y:this._cache.top,w:this._cache.quantityRight-this._cache.bodyRight,h:this._cache.bottom-this._cache.top}}}):e.x>=this._cache.quantityRight&&e.x<this._cache.reverseButtonRight?new a(a.CUSTOM,{clickHandler:this._adapter.callOnReverse.bind(this._adapter),tapHandler:this._adapter.callOnReverse.bind(this._adapter),tooltip:{text:this._adapter.getReverseTooltip()||window.t("Reverse Position"),rect:{x:this._cache.quantityRight,y:this._cache.top,w:this._cache.reverseButtonRight-this._cache.quantityRight,h:this._cache.bottom-this._cache.top}}}):e.x>=this._cache.reverseButtonRight&&e.x<this._cache.right?new a(a.CUSTOM,{clickHandler:this._adapter.callOnClose.bind(this._adapter),tapHandler:this._adapter.callOnClose.bind(this._adapter),tooltip:{text:this._adapter.getCloseTooltip()||window.t("Close Position"),rect:{x:this._cache.reverseButtonRight,y:this._cache.top,w:this._cache.right-this._cache.reverseButtonRight,h:this._cache.bottom-this._cache.top}}}):new a(a.CUSTOM,{clickHandler:function(){},tapHandler:function(){},tooltip:{text:this._adapter.getTooltip(),rect:{x:this._cache.left,y:this._cache.top,w:this._cache.bodyRight-this._cache.left,h:this._cache.bottom-this._cache.top}}})},inherit(c,r),c.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer.setData({points:this._points,width:this._model.timeScale().width()}),this._renderer},t.PositionPaneView=c},"Ht/7":function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("pJOz").TrendLineRenderer,o=i("VdBB").HitTestResult,s=i("Zy3/").CompositeRenderer,l=i("Hr11"),h=i("Tmoa"),d=i("zDbI").CHART_FONT_FAMILY,c=i("QPcX").LetterInCircleRenderer,u=i("Tmoa").resetTransparency,p={4:{font:24,circle:36,circleBorderWidth:1,bold:!0},3:{font:20,circle:28,circleBorderWidth:1,bold:!1},2:{font:18,circle:22,circleBorderWidth:1,bold:!1},1:{font:16,circle:22,circleBorderWidth:1,bold:!1},0:{font:11,circle:14,circleBorderWidth:1,bold:!0}};function _(e,t){n.call(this,e,t),this._renderer=null}inherit(_,n),_.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},_.prototype._updateImpl=function(){n.prototype._updateImpl.call(this),this._renderer=null,this._wave=[];var e=this._source.properties(),t=this._source.priceScale(),i=this._model.timeScale();if(t&&!t.isEmpty()&&!i.isEmpty()){var _=e.color.value() 0!==this._closeButtonWidth()&&this._drawCloseButton(e,this._cache.reverseButtonRight,c)}},d.prototype.hitTest=function(e){return null===this._data||0===this._data.points.length||e.y<this._cache.top||e.y>this._cache.bottom||e.x<this._cache.left||this._cache.right<e.x?null:this._adapter._blocked?new a(a.CUSTOM,{}):e.x>=this._cache.bodyRight&&e.x<this._cache.quantityRight&&this._adapter._onModifyCallback?new a(a.CUSTOM,{clickHandler:this._adapter.callOnModify.bind(this._adapter),tapHandler:this._adapter.callOnModify.bind(this._adapter),tooltip:{text:this._adapter.getProtectTooltip()||l(window.t("Protect Position")),rect:{x:this._cache.bodyRight,y:this._cache.top,w:this._cache.quantityRight-this._cache.bodyRight,h:this._cache.bottom-this._cache.top}}}):e.x>=this._cache.quantityRight&&e.x<this._cache.reverseButtonRight?new a(a.CUSTOM,{clickHandler:this._adapter.callOnReverse.bind(this._adapter),tapHandler:this._adapter.callOnReverse.bind(this._adapter),tooltip:{text:this._adapter.getReverseTooltip()||window.t("Reverse Position"),rect:{x:this._cache.quantityRight,y:this._cache.top,w:this._cache.reverseButtonRight-this._cache.quantityRight,h:this._cache.bottom-this._cache.top}}}):e.x>=this._cache.reverseButtonRight&&e.x<this._cache.right?new a(a.CUSTOM,{clickHandler:this._adapter.callOnClose.bind(this._adapter),tapHandler:this._adapter.callOnClose.bind(this._adapter),tooltip:{text:this._adapter.getCloseTooltip()||window.t("Close Position"),rect:{x:this._cache.reverseButtonRight,y:this._cache.top,w:this._cache.right-this._cache.reverseButtonRight,h:this._cache.bottom-this._cache.top}}}):new a(a.CUSTOM,{clickHandler:function(){},tapHandler:function(){},tooltip:{text:this._adapter.getTooltip(),rect:{x:this._cache.left,y:this._cache.top,w:this._cache.bodyRight-this._cache.left,h:this._cache.bottom-this._cache.top}}})},inherit(c,r),c.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer.setData({points:this._points,width:this._model.timeScale().width()}),this._renderer},t.PositionPaneView=c},"Ht/7":function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("pJOz").TrendLineRenderer,o=i("VdBB").HitTestResult,s=i("Zy3/").CompositeRenderer,l=i("Hr11"),h=i("Tmoa"),d=i("zDbI").CHART_FONT_FAMILY,c=i("QPcX").LetterInCircleRenderer,u=i("Tmoa").resetTransparency,p={4:{font:24,circle:36,circleBorderWidth:1,bold:!0},3:{font:20,circle:28,circleBorderWidth:1,bold:!1},2:{font:18,circle:22,circleBorderWidth:1,bold:!1},1:{font:16,circle:22,circleBorderWidth:1,bold:!1},0:{font:11,circle:14,circleBorderWidth:1,bold:!0}};function _(e,t){n.call(this,e,t),this._renderer=null}inherit(_,n),_.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},_.prototype._updateImpl=function(){n.prototype._updateImpl.call(this),this._renderer=null,this._wave=[];var e=this._source.properties(),t=this._source.priceScale(),i=this._model.timeScale();if(t&&!t.isEmpty()&&!i.isEmpty()){var _=e.color.value()
;if(e.showWave.value())for(var f=this._source.ownerSource().firstValue(),v=this._source.points(),g=1;g<v.length;g++){var y=v[g-1],w=v[g],m=i.indexToCoordinate(y.index),x=i.indexToCoordinate(w.index),b=y.price,R=w.price,T=t.priceToCoordinate(b,f),S=t.priceToCoordinate(R,f),P={points:[new r(m,T),new r(x,S)],width:i.width(),height:t.height(),color:h.generateColor(_,0),linewidth:e.linewidth.value(),linestyle:CanvasEx.LINESTYLE_SOLID,extendleft:!1,extendright:!1,overlayLineEndings:!0};this._wave.push(P)}var L=this.areAnchorsVisible()?0:1,C=new s;for(e=this._source.properties(),g=0;g<this._wave.length;g++){var M=new a;M.setData(this._wave[g]),C.append(M)}var I=1;if(this._points.length>2){y=this._points[2],w=this._points[1];I=l.sign(y.y-w.y)}var O=0;this._model.lineBeingCreated()===this._source&&(O=1);for(_=u(e.color.value()),g=0;g<this._points.length-O;g++,I=-I)if(!(g<L)){var D=this._source.label(g),k=D.label,N="circle"===D.decoration;"brackets"===D.decoration&&(k="("+k+")");var B=p[D.group],A=new o(o.CHANGEPOINT,{pointIndex:g});C.append(new c({point:this._points[g],letter:k,color:_,font:d,fontSize:B.font,bold:B.bold,showCircle:N,circleRadius:B.circle/2,circleBorderWidth:B.circleBorderWidth,yOffset:10,vertAlign:1===I?"top":"bottom"},A))}for(var j=[],E=0;E<this._points.length;E++){var z=this._points[E].clone();z.data=E,j.push(z)}this._model.lineBeingCreated()===this._source&&j.pop(),C.append(this.createLineAnchor({points:j})),this._renderer=C}},t.ElliottLabelsPaneView=_},Hyqq:function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("XlJ7"),a=i("Tmoa"),o=i("zDbI"),s=i("aB9a"),l=i("aO4+"),h=i("f6yo"),d=i("Ialn"),c=i("ikwP"),u=i("cPgM"),p=i("VdBB"),_=function(e){function t(){var t=e.call(this)||this;return t._geometryCache={innerHeight:NaN,textHorizontalPadding:NaN,innerWidth:NaN,paddingLeft:NaN},t._geomertryCacheInvalidated=!0,t._data=null,t}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e,this._geomertryCacheInvalidated=!0},t.prototype.hitTest=function(e,t){if(null===this._data||0===this._data.points.length)return null;var i=this._data.points[0].x-(this._geometryCache.paddingLeft+20),r=this._data.points[0].y-(this._geometryCache.innerHeight+9),n=Object(l.box)(new l.Point(i,r),new l.Point(i+this._geometryCache.innerWidth,r+this._geometryCache.innerHeight));return Object(h.pointInBox)(e,n)?new p.HitTestResult(p.HitTestResult.MOVEPOINT,{areaName:"Text"}):null},t.prototype._drawImpl=function(e,t){if(null!==this._data&&0!==this._data.points.length){e.font=this._data.font;var i=this._measureInfo(e,this._data.label,this._data.fontSize),r=i.paddingLeft,n=i.innerHeight,a=i.innerWidth,o=i.textHorizontalPadding;e.textAlign=Object(d.isRtl)()?"right":"left";var s=this._data.points[0].x-(r+20),l=this._data.points[0].y-(n+9);e.translate(s,l),e.beginPath(),e.moveTo(24,n),e.lineTo(15,n),e.arcTo(-1e3,0,1e3,0,n/2),e.lineTo(a-15,0),e.arcTo(1e3,n,-1e3,n,n/2),e.lineTo(33,n),e.quadraticCurveTo(33,n+4,35,n+9),e.quadraticCurveTo(27,n+6,24,n),e.fillStyle=this._data.backgroundColor,e.fill(),e.strokeStyle=this._data.borderColor, ;if(e.showWave.value())for(var f=this._source.ownerSource().firstValue(),v=this._source.points(),g=1;g<v.length;g++){var y=v[g-1],w=v[g],m=i.indexToCoordinate(y.index),x=i.indexToCoordinate(w.index),b=y.price,R=w.price,T=t.priceToCoordinate(b,f),S=t.priceToCoordinate(R,f),P={points:[new r(m,T),new r(x,S)],width:i.width(),height:t.height(),color:h.generateColor(_,0),linewidth:e.linewidth.value(),linestyle:CanvasEx.LINESTYLE_SOLID,extendleft:!1,extendright:!1,overlayLineEndings:!0};this._wave.push(P)}var L=this.areAnchorsVisible()?0:1,C=new s;for(e=this._source.properties(),g=0;g<this._wave.length;g++){var M=new a;M.setData(this._wave[g]),C.append(M)}var I=1;if(this._points.length>2){y=this._points[2],w=this._points[1];I=l.sign(y.y-w.y)}var O=0;this._model.lineBeingCreated()===this._source&&(O=1);for(_=u(e.color.value()),g=0;g<this._points.length-O;g++,I=-I)if(!(g<L)){var D=this._source.label(g),k=D.label,B="circle"===D.decoration;"brackets"===D.decoration&&(k="("+k+")");var N=p[D.group],A=new o(o.CHANGEPOINT,{pointIndex:g});C.append(new c({point:this._points[g],letter:k,color:_,font:d,fontSize:N.font,bold:N.bold,showCircle:B,circleRadius:N.circle/2,circleBorderWidth:N.circleBorderWidth,yOffset:10,vertAlign:1===I?"top":"bottom"},A))}for(var j=[],z=0;z<this._points.length;z++){var E=this._points[z].clone();E.data=z,j.push(E)}this._model.lineBeingCreated()===this._source&&j.pop(),C.append(this.createLineAnchor({points:j})),this._renderer=C}},t.ElliottLabelsPaneView=_},Hyqq:function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("XlJ7"),a=i("Tmoa"),o=i("zDbI"),s=i("aB9a"),l=i("aO4+"),h=i("f6yo"),d=i("Ialn"),c=i("ikwP"),u=i("cPgM"),p=i("VdBB"),_=function(e){function t(){var t=e.call(this)||this;return t._geometryCache={innerHeight:NaN,textHorizontalPadding:NaN,innerWidth:NaN,paddingLeft:NaN},t._geomertryCacheInvalidated=!0,t._data=null,t}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e,this._geomertryCacheInvalidated=!0},t.prototype.hitTest=function(e,t){if(null===this._data||0===this._data.points.length)return null;var i=this._data.points[0].x-(this._geometryCache.paddingLeft+20),r=this._data.points[0].y-(this._geometryCache.innerHeight+9),n=Object(l.box)(new l.Point(i,r),new l.Point(i+this._geometryCache.innerWidth,r+this._geometryCache.innerHeight));return Object(h.pointInBox)(e,n)?new p.HitTestResult(p.HitTestResult.MOVEPOINT,{areaName:"Text"}):null},t.prototype._drawImpl=function(e,t){if(null!==this._data&&0!==this._data.points.length){e.font=this._data.font;var i=this._measureInfo(e,this._data.label,this._data.fontSize),r=i.paddingLeft,n=i.innerHeight,a=i.innerWidth,o=i.textHorizontalPadding;e.textAlign=Object(d.isRtl)()?"right":"left";var s=this._data.points[0].x-(r+20),l=this._data.points[0].y-(n+9);e.translate(s,l),e.beginPath(),e.moveTo(24,n),e.lineTo(15,n),e.arcTo(-1e3,0,1e3,0,n/2),e.lineTo(a-15,0),e.arcTo(1e3,n,-1e3,n,n/2),e.lineTo(33,n),e.quadraticCurveTo(33,n+4,35,n+9),e.quadraticCurveTo(27,n+6,24,n),e.fillStyle=this._data.backgroundColor,e.fill(),e.strokeStyle=this._data.borderColor,
e.lineWidth=2,e.stroke(),e.closePath(),e.textBaseline="middle",e.fillStyle=this._data.color,e.fillText(this._data.label,r+o,n/2)}},t.prototype._measureInfo=function(e,t,i){if(this._geomertryCacheInvalidated){var r=e.measureText(t),a=Object(n.fontSizeToPixels)(i),o=Math.round(a/1.3),s=r.width+30,l=a+2*o,h=Object(c.calcTextHorizontalShift)(e,r.width);this._geometryCache={paddingLeft:15,innerWidth:s,innerHeight:l,textHorizontalPadding:h},this._geomertryCacheInvalidated=!1}return this._geometryCache},t}(u.ScaledPaneRenderer),f=i("Zy3/"),v=i("vq8G");i.d(t,"BalloonPaneView",(function(){return g}));var g=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._balloonRenderer=new _,r._renderer=null,r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(t,i){e.prototype._updateImpl.call(this,t,i);var r=this._source.properties().childs(),s={points:this._points,color:r.color.value(),borderColor:r.borderColor.value(),backgroundColor:Object(a.generateColor)(r.backgroundColor.value(),r.transparency.value()),font:Object(n.makeFont)(r.fontsize.value(),o.CHART_FONT_FAMILY),fontSize:r.fontsize.value(),label:r.text.value()};if(this._balloonRenderer.setData(s),1===s.points.length){var l=new f.CompositeRenderer;return l.append(this._balloonRenderer),l.append(new v.SelectionRenderer({points:s.points,bgColors:this._lineAnchorColors(s.points),visible:this.areAnchorsVisible(),barSpacing:this._model.timeScale().barSpacing(),hittestResult:p.HitTestResult.MOVEPOINT})),void(this._renderer=l)}this._renderer=this._balloonRenderer},t}(s.LineSourcePaneView)},Jej9:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolTrianglePatternPaneView",(function(){return u}));var r=i("mrSG"),n=i("Eyy1"),a=i("aO4+"),o=i("8Uy/"),s=i("Zy3/"),l=i("pJOz"),h=i("/S7V"),d=i("qgcf"),c=i("a7Ha"),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._trendLineRendererPoints01=new l.TrendLineRenderer,t._trendLineRendererPoints12=new l.TrendLineRenderer,t._trendLineRendererPoints23=new l.TrendLineRenderer,t._intersectionRenderer=new h.TriangleRenderer,t._aLabelRenderer=new d.TextRenderer,t._bLabelRenderer=new d.TextRenderer,t._cLabelRenderer=new d.TextRenderer,t._dLabelRenderer=new d.TextRenderer,t._renderer=null,t}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this),this._renderer=null;var t,i,r,l=this._points,h=l[0],d=l[1],u=l[2],p=l[3];if(4===this._points.length){if(Math.abs(u.x-h.x)<1||Math.abs(p.x-d.x)<1)return;var _=Math.min(h.x,d.x);_=Math.min(_,u.x),_=Math.min(_,p.x);var f=(u.y-h.y)/(u.x-h.x),v=h.y+(_-h.x)*f,g=(p.y-d.y)/(p.x-d.x),y=d.y+(_-d.x)*g;if(Math.abs(f-g)<1e-6)return;i=new a.Point(_,v),r=new a.Point(_,y);var w=(d.y-h.y+(h.x*f-d.x*g))/(f-g);if(w<_){var m=Math.max(h.x,d.x);m=Math.max(m,u.x),m=Math.max(m,p.x),i=new a.Point(m,h.y+(m-h.x)*f),r=new a.Point(m,d.y+(m-d.x)*g)}var x=h.y+(w-h.x)*f e.lineWidth=2,e.stroke(),e.closePath(),e.textBaseline="middle",e.fillStyle=this._data.color,e.fillText(this._data.label,r+o,n/2)}},t.prototype._measureInfo=function(e,t,i){if(this._geomertryCacheInvalidated){var r=e.measureText(t),a=Object(n.fontSizeToPixels)(i),o=Math.round(a/1.3),s=r.width+30,l=a+2*o,h=Object(c.calcTextHorizontalShift)(e,r.width);this._geometryCache={paddingLeft:15,innerWidth:s,innerHeight:l,textHorizontalPadding:h},this._geomertryCacheInvalidated=!1}return this._geometryCache},t}(u.ScaledPaneRenderer),f=i("Zy3/"),v=i("vq8G");i.d(t,"BalloonPaneView",(function(){return g}));var g=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._balloonRenderer=new _,r._renderer=null,r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(t,i){e.prototype._updateImpl.call(this,t,i);var r=this._source.properties().childs(),s={points:this._points,color:r.color.value(),borderColor:r.borderColor.value(),backgroundColor:Object(a.generateColor)(r.backgroundColor.value(),r.transparency.value()),font:Object(n.makeFont)(r.fontsize.value(),o.CHART_FONT_FAMILY),fontSize:r.fontsize.value(),label:r.text.value()};if(this._balloonRenderer.setData(s),1===s.points.length){var l=new f.CompositeRenderer;return l.append(this._balloonRenderer),l.append(new v.SelectionRenderer({points:s.points,bgColors:this._lineAnchorColors(s.points),visible:this.areAnchorsVisible(),barSpacing:this._model.timeScale().barSpacing(),hittestResult:p.HitTestResult.MOVEPOINT})),void(this._renderer=l)}this._renderer=this._balloonRenderer},t}(s.LineSourcePaneView)},Jej9:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolTrianglePatternPaneView",(function(){return u}));var r=i("mrSG"),n=i("Eyy1"),a=i("aO4+"),o=i("8Uy/"),s=i("Zy3/"),l=i("pJOz"),h=i("/S7V"),d=i("qgcf"),c=i("a7Ha"),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._trendLineRendererPoints01=new l.TrendLineRenderer,t._trendLineRendererPoints12=new l.TrendLineRenderer,t._trendLineRendererPoints23=new l.TrendLineRenderer,t._intersectionRenderer=new h.TriangleRenderer,t._aLabelRenderer=new d.TextRenderer,t._bLabelRenderer=new d.TextRenderer,t._cLabelRenderer=new d.TextRenderer,t._dLabelRenderer=new d.TextRenderer,t._renderer=null,t}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this),this._renderer=null;var t,i,r,l=this._points,h=l[0],d=l[1],u=l[2],p=l[3];if(4===this._points.length){if(Math.abs(u.x-h.x)<1||Math.abs(p.x-d.x)<1)return;var _=Math.min(h.x,d.x);_=Math.min(_,u.x),_=Math.min(_,p.x);var f=(u.y-h.y)/(u.x-h.x),v=h.y+(_-h.x)*f,g=(p.y-d.y)/(p.x-d.x),y=d.y+(_-d.x)*g;if(Math.abs(f-g)<1e-6)return;i=new a.Point(_,v),r=new a.Point(_,y);var w=(d.y-h.y+(h.x*f-d.x*g))/(f-g);if(w<_){var m=Math.max(h.x,d.x);m=Math.max(m,u.x),m=Math.max(m,p.x),i=new a.Point(m,h.y+(m-h.x)*f),r=new a.Point(m,d.y+(m-d.x)*g)}var x=h.y+(w-h.x)*f
;t=new a.Point(w,x)}if(!(this._points.length<2)){var b=this._source.properties().childs(),R=new s.CompositeRenderer,T=function(e,t){return{points:[e],text:t,color:b.textcolor.value(),vertAlign:"middle",horzAlign:"center",font:b.font.value(),offsetX:0,offsetY:0,bold:b.bold&&b.bold.value(),italic:b.italic&&b.italic.value(),fontsize:b.fontsize.value(),backgroundColor:b.color.value(),backgroundRoundRect:4}},S=function(e,t){return{points:[e,t],color:b.color.value(),linewidth:b.linewidth.value(),linestyle:o.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:c.LineEnd.Normal,rightend:c.LineEnd.Normal}};if(this._trendLineRendererPoints01.setData(S(h,d)),R.append(this._trendLineRendererPoints01),this._points.length>=3&&(this._trendLineRendererPoints12.setData(S(d,u)),R.append(this._trendLineRendererPoints12)),4===this._points.length&&(this._trendLineRendererPoints23.setData(S(u,p)),R.append(this._trendLineRendererPoints23),t)){var P={points:[Object(n.ensureDefined)(i),Object(n.ensureDefined)(r),t],color:b.color.value(),linewidth:b.linewidth.value(),backcolor:b.backgroundColor.value(),fillBackground:b.fillBackground.value(),transparency:b.transparency.value(),linestyle:o.LINESTYLE_DOTTED};this._intersectionRenderer.setData(P),R.append(this._intersectionRenderer)}var L=T(h,"A");d.y>h.y?(L.vertAlign="bottom",L.offsetY=5):(L.vertAlign="top",L.offsetY=5),this._aLabelRenderer.setData(L),R.append(this._aLabelRenderer);var C=T(d,"B");if(d.y<h.y?(C.vertAlign="bottom",C.offsetY=5):(C.vertAlign="top",C.offsetY=5),this._bLabelRenderer.setData(C),R.append(this._bLabelRenderer),this._points.length>2){var M=T(u,"C");u.y<d.y?(M.vertAlign="bottom",M.offsetY=5):(M.vertAlign="top",M.offsetY=5),this._cLabelRenderer.setData(M),R.append(this._cLabelRenderer)}if(this._points.length>3){var I=T(p,"D");p.y<u.y?(I.vertAlign="bottom",I.offsetY=5):(I.vertAlign="top",I.offsetY=5),this._dLabelRenderer.setData(I),R.append(this._dLabelRenderer)}this.addAnchors(R),this._renderer=R}},t}(i("aB9a").LineSourcePaneView)},JeuX:function(e,t,i){"use strict";i.r(t),i.d(t,"PathPaneView",(function(){return o}));var r=i("mrSG"),n=i("BCbF"),a=i("Zy3/"),o=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._polygonRenderer=new n.PolygonRenderer(null),r._renderer=new a.CompositeRenderer,r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this),this._renderer.clear();var t=this._source.properties().childs(),i={points:this._points,color:t.lineColor.value(),linewidth:t.lineWidth.value(),linestyle:t.lineStyle.value(),leftend:t.leftEnd.value(),rightend:t.rightEnd.value(),filled:!1,backcolor:"",fillBackground:!1,transparency:0};this._polygonRenderer.setData(i),this._renderer.append(this._polygonRenderer),this.addAnchors(this._renderer)},t}(i("aB9a").LineSourcePaneView)},KFbh:function(e,t,i){"use strict";i.r(t) ;t=new a.Point(w,x)}if(!(this._points.length<2)){var b=this._source.properties().childs(),R=new s.CompositeRenderer,T=function(e,t){return{points:[e],text:t,color:b.textcolor.value(),vertAlign:"middle",horzAlign:"center",font:b.font.value(),offsetX:0,offsetY:0,bold:b.bold&&b.bold.value(),italic:b.italic&&b.italic.value(),fontsize:b.fontsize.value(),backgroundColor:b.color.value(),backgroundRoundRect:4}},S=function(e,t){return{points:[e,t],color:b.color.value(),linewidth:b.linewidth.value(),linestyle:o.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:c.LineEnd.Normal,rightend:c.LineEnd.Normal}};if(this._trendLineRendererPoints01.setData(S(h,d)),R.append(this._trendLineRendererPoints01),this._points.length>=3&&(this._trendLineRendererPoints12.setData(S(d,u)),R.append(this._trendLineRendererPoints12)),4===this._points.length&&(this._trendLineRendererPoints23.setData(S(u,p)),R.append(this._trendLineRendererPoints23),t)){var P={points:[Object(n.ensureDefined)(i),Object(n.ensureDefined)(r),t],color:b.color.value(),linewidth:b.linewidth.value(),backcolor:b.backgroundColor.value(),fillBackground:b.fillBackground.value(),transparency:b.transparency.value(),linestyle:o.LINESTYLE_DOTTED};this._intersectionRenderer.setData(P),R.append(this._intersectionRenderer)}var L=T(h,"A");d.y>h.y?(L.vertAlign="bottom",L.offsetY=5):(L.vertAlign="top",L.offsetY=5),this._aLabelRenderer.setData(L),R.append(this._aLabelRenderer);var C=T(d,"B");if(d.y<h.y?(C.vertAlign="bottom",C.offsetY=5):(C.vertAlign="top",C.offsetY=5),this._bLabelRenderer.setData(C),R.append(this._bLabelRenderer),this._points.length>2){var M=T(u,"C");u.y<d.y?(M.vertAlign="bottom",M.offsetY=5):(M.vertAlign="top",M.offsetY=5),this._cLabelRenderer.setData(M),R.append(this._cLabelRenderer)}if(this._points.length>3){var I=T(p,"D");p.y<u.y?(I.vertAlign="bottom",I.offsetY=5):(I.vertAlign="top",I.offsetY=5),this._dLabelRenderer.setData(I),R.append(this._dLabelRenderer)}this.addAnchors(R),this._renderer=R}},t}(i("aB9a").LineSourcePaneView)},JeuX:function(e,t,i){"use strict";i.r(t),i.d(t,"PathPaneView",(function(){return o}));var r=i("mrSG"),n=i("BCbF"),a=i("Zy3/"),o=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._polygonRenderer=new n.PolygonRenderer(null),r._renderer=new a.CompositeRenderer,r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this),this._renderer.clear();var t=this._source.properties().childs(),i={points:this._points,color:t.lineColor.value(),linewidth:t.lineWidth.value(),linestyle:t.lineStyle.value(),leftend:t.leftEnd.value(),rightend:t.rightEnd.value(),filled:!1,backcolor:"",fillBackground:!1,transparency:0};this._polygonRenderer.setData(i),this._renderer.append(this._polygonRenderer),this.addAnchors(this._renderer)},t}(i("aB9a").LineSourcePaneView)},KFbh:function(e,t,i){"use strict";i.r(t)
;var r=i("mrSG"),n=i("aO4+"),a=i("Eyy1"),o=i("HGP3"),s=i("zDbI"),l=i("jvrd"),h=i("GEp6"),d=i("f6yo"),c=i("VaSN"),u=i("ikwP"),p=i("qgcf"),_=i("VdBB"),f=i("XXdw"),v=i("QloM"),g=new WeakMap;function y(e,t,i,r){var n=g.get(e);return void 0!==n&&n.width===t||(n=function(e,t,i,r){var n=Object(u.createDisconnectedCanvas)(document,new u.Size(t,t),1),a=0===r?Math.min(e.width,e.height):Math.max(e.width,e.height),o=Math.round(e.width/2-a/2),s=Math.round(e.height/2-a/2),l=Object(u.getContext2D)(n);return i&&(l.beginPath(),l.arc(t/2,t/2,t/2,0,2*Math.PI,!0),l.closePath(),l.clip()),l.imageSmoothingEnabled=!0,l.imageSmoothingQuality="high",l.drawImage(e,o,s,a,a,0,0,t,t),n}(e,t,i,r),g.set(e,n)),n}function w(e,t){var i=Math.max(1,Math.floor(t))%2?.5:0;return Math.round(e*t)+i}function m(e){return e.poleStartY}function x(e){return e.inverseAnchorPosition?e.anchorY:e.anchorY+(e.labelHeight+e.poleTailHeight+2*e.circleRadius)*e.direction}function b(e){return e.inverseAnchorPosition?e.anchorY+(2*e.circleRadius+e.poleTailHeight)*e.direction:e.anchorY+e.labelHeight*e.direction}function R(e){return e.inverseAnchorPosition?b(e)-e.poleTailHeight*e.direction:b(e)+e.poleTailHeight*e.direction}function T(e,t,i,r,n,a){var o=w(t.circleRadius,a),s=Math.round(t.x*a),l=t.inverseAnchorPosition?Math.round(t.anchorY*a)+Math.round(t.circleRadius*a)*t.direction:Math.round(t.anchorY*a)+Math.round((t.labelHeight+t.poleTailHeight+t.circleRadius)*a)*t.direction,h=Math.max(1,Math.floor(a))%2/2,d=s+h,c=l+h;e.save();var u=c+.05*o,p=e.createRadialGradient(d,u,o/2,d,u,1.1*o);if(p.addColorStop(0,"transparent"),p.addColorStop(.1,r),p.addColorStop(1,"transparent"),e.fillStyle=p,e.beginPath(),e.arc(d,u,1.1*o,0,2*Math.PI,!0),e.closePath(),e.fill(),e.restore(),e.beginPath(),e.arc(d,c,o,0,2*Math.PI,!0),e.closePath(),e.fill(),null!==t.image){var _=t.srcItem.type()===f.StoriesTimeLineItemType.Emoji,v=_?2*w(i,a):2*o,g=y(t.image,v,!_,_?1:0);e.drawImage(g,d-v/2,c-v/2)}var m=Math.round(t.circleBorderWidth*a),x=function(e,t,i){var r=Math.max(1,Math.floor(t))%2?.5:0;return Math.round(e*t)+(r!==i%2?.5:0)}(t.circleRadius,a,m);if(e.lineWidth=m,e.beginPath(),e.arc(d,c,x,0,2*Math.PI,!0),e.closePath(),e.stroke(),t.outsideBorderWidth){e.save();var b=Math.round(t.outsideBorderWidth*a),R=x+m/2+b/2;e.lineWidth=b,e.strokeStyle=n,e.beginPath(),e.arc(d,c,R,0,2*Math.PI,!0),e.closePath(),e.stroke(),e.restore()}}var S=function(){function e(e,t,i,r){this._data=null,this._labels=[],this._cacheRects={},this._items=[],this._hitTestResult=e,this._showTooltipHandler=t,this._clearSelectedDataHandler=i,this._phantomMode=Boolean(r)}return e.prototype.setData=function(e){this._data=e},e.prototype.clearItems=function(){this._labels=[],this._items=[],this._cacheRects={}},e.prototype.addItem=function(e){var t={circleBackgroundColor:e.circleBackgroundColor,circleBorderColor:e.circleBorderColor,circleBorderWidth:e.circleBorderWidth,outsideBorderWidth:e.outsideBorderWidth,image:e.image,itemIndex:e.itemIndex,labelIndex:e.labelIndex,x:e.x,anchorY:e.anchorY,poleTailHeight:e.poleTailHeight,poleStartY:e.poleStartY, ;var r=i("mrSG"),n=i("aO4+"),a=i("Eyy1"),o=i("HGP3"),s=i("zDbI"),l=i("jvrd"),h=i("GEp6"),d=i("f6yo"),c=i("VaSN"),u=i("ikwP"),p=i("qgcf"),_=i("VdBB"),f=i("XXdw"),v=i("QloM"),g=new WeakMap;function y(e,t,i,r){var n=g.get(e);return void 0!==n&&n.width===t||(n=function(e,t,i,r){var n=Object(u.createDisconnectedCanvas)(document,new u.Size(t,t),1),a=0===r?Math.min(e.width,e.height):Math.max(e.width,e.height),o=Math.round(e.width/2-a/2),s=Math.round(e.height/2-a/2),l=Object(u.getContext2D)(n);return i&&(l.beginPath(),l.arc(t/2,t/2,t/2,0,2*Math.PI,!0),l.closePath(),l.clip()),l.imageSmoothingEnabled=!0,l.imageSmoothingQuality="high",l.drawImage(e,o,s,a,a,0,0,t,t),n}(e,t,i,r),g.set(e,n)),n}function w(e,t){var i=Math.max(1,Math.floor(t))%2?.5:0;return Math.round(e*t)+i}function m(e){return e.poleStartY}function x(e){return e.inverseAnchorPosition?e.anchorY:e.anchorY+(e.labelHeight+e.poleTailHeight+2*e.circleRadius)*e.direction}function b(e){return e.inverseAnchorPosition?e.anchorY+(2*e.circleRadius+e.poleTailHeight)*e.direction:e.anchorY+e.labelHeight*e.direction}function R(e){return e.inverseAnchorPosition?b(e)-e.poleTailHeight*e.direction:b(e)+e.poleTailHeight*e.direction}function T(e,t,i,r,n,a){var o=w(t.circleRadius,a),s=Math.round(t.x*a),l=t.inverseAnchorPosition?Math.round(t.anchorY*a)+Math.round(t.circleRadius*a)*t.direction:Math.round(t.anchorY*a)+Math.round((t.labelHeight+t.poleTailHeight+t.circleRadius)*a)*t.direction,h=Math.max(1,Math.floor(a))%2/2,d=s+h,c=l+h;e.save();var u=c+.05*o,p=e.createRadialGradient(d,u,o/2,d,u,1.1*o);if(p.addColorStop(0,"transparent"),p.addColorStop(.1,r),p.addColorStop(1,"transparent"),e.fillStyle=p,e.beginPath(),e.arc(d,u,1.1*o,0,2*Math.PI,!0),e.closePath(),e.fill(),e.restore(),e.beginPath(),e.arc(d,c,o,0,2*Math.PI,!0),e.closePath(),e.fill(),null!==t.image){var _=t.srcItem.type()===f.StoriesTimeLineItemType.Emoji,v=_?2*w(i,a):2*o,g=y(t.image,v,!_,_?1:0);e.drawImage(g,d-v/2,c-v/2)}var m=Math.round(t.circleBorderWidth*a),x=function(e,t,i){var r=Math.max(1,Math.floor(t))%2?.5:0;return Math.round(e*t)+(r!==i%2?.5:0)}(t.circleRadius,a,m);if(e.lineWidth=m,e.beginPath(),e.arc(d,c,x,0,2*Math.PI,!0),e.closePath(),e.stroke(),t.outsideBorderWidth){e.save();var b=Math.round(t.outsideBorderWidth*a),R=x+m/2+b/2;e.lineWidth=b,e.strokeStyle=n,e.beginPath(),e.arc(d,c,R,0,2*Math.PI,!0),e.closePath(),e.stroke(),e.restore()}}var S=function(){function e(e,t,i,r){this._data=null,this._labels=[],this._cacheRects={},this._items=[],this._hitTestResult=e,this._showTooltipHandler=t,this._clearSelectedDataHandler=i,this._phantomMode=Boolean(r)}return e.prototype.setData=function(e){this._data=e},e.prototype.clearItems=function(){this._labels=[],this._items=[],this._cacheRects={}},e.prototype.addItem=function(e){var t={circleBackgroundColor:e.circleBackgroundColor,circleBorderColor:e.circleBorderColor,circleBorderWidth:e.circleBorderWidth,outsideBorderWidth:e.outsideBorderWidth,image:e.image,itemIndex:e.itemIndex,labelIndex:e.labelIndex,x:e.x,anchorY:e.anchorY,poleTailHeight:e.poleTailHeight,poleStartY:e.poleStartY,
circleRadius:e.circleRadius,srcItem:e.srcItem,direction:e.direction*(e.inverseAnchorPosition?-1:1),labelHeight:0,labelId:-1,inverseAnchorPosition:e.inverseAnchorPosition},i={offsetX:0,offsetY:0,points:[new n.Point(e.x,e.anchorY)],forceCalculateMaxLineWidth:!0,vertAlign:-1===e.labelDirection?"bottom":"top",horzAlign:"center",horzTextAlign:"center",font:e.labelFont,fontSize:e.labelFontSize,bold:e.labelFontBold,italic:e.labelFontItalic,backgroundRoundRect:e.labelBorderRadius,padding:e.labelPadding,boxPaddingVert:e.labelBoxPaddingVert,boxPaddingHorz:e.labelBoxPaddingHorz,wordWrapWidth:e.labelWordWrapWidth,color:e.labelColor,borderColor:e.labelBorderColor,borderWidth:1,backgroundColor:e.labelBackgroundColor,text:e.text};if(e.inverseAnchorPosition){var r=Object(a.ensureDefined)(i.points);r[0]=new n.Point(r[0].x,b(t)),t.labelId=this._labels.length}else{var o=new p.TextRenderer(i);this._labels.push(o),t.labelId=this._labels.length,t.labelHeight=o.measure().height;var s=1===e.direction?Math.min(t.poleStartY-t.labelHeight,t.anchorY):Math.max(t.poleStartY+t.labelHeight,t.anchorY);t.anchorY!==s&&(t.anchorY=s,i.points=[new n.Point(e.x,s)],o.setData(i))}var l=new p.TextRenderer(i);this._labels.push(l),this._items.push(t)},e.prototype.itemAnchorY=function(e){return e>=this._items.length?null:this._items[e].anchorY},e.prototype.hitTest=function(e,t){var i=this;if(null===this._data)return null;for(var r=function(r){var o=a._items[r],s=a._doesPointBelongToItem(o,e),l=s[0],h=s[1],d=s[2];if(l||h||d){var c={hideCrosshairLinesOnHover:!0,itemIndex:l||h?o.itemIndex:o.labelIndex};d?c.areaName=v.TabNames.text:h&&(c.areaName=v.TabNames.style);var u=a._showTooltipHandler;if(void 0!==u){var p={targetBox:a._itemRect(o,t.cssHeight),item:o.srcItem},f=function(e){var t=i._doesPointBelongToItem(o,e),r=t[0],n=t[1];return r||n};c.tapHandler=function(e){e.preventDefault(),u(p,new n.Point(e.clientX-e.localX,e.clientY-e.localY),f)},c.clickHandler=function(e){u(p,new n.Point(e.clientX-e.localX,e.clientY-e.localY),f)};var g=a._clearSelectedDataHandler;void 0!==g&&(c.doubleClickHandler=function(e){return g()},c.pressedMouseMoveHandler=function(e){return g()},c.executeDefaultAction={pressedMouseMoveHandler:!0,touchMoveHandler:!0})}return{value:new _.HitTestResult(a._hitTestResult,c)}}},a=this,o=this._items.length-1;o>=0;--o){var s=r(o);if("object"==typeof s)return s.value}return null},e.prototype.draw=function(e,t){if(null!==this._data){e.save(),this._phantomMode&&(e.globalAlpha=.5);var i=this._data,r=i.poleColor,n=i.emojiRadius,a=t.pixelRatio,o=Math.max(1,Math.floor(a)),s=o%2?.5:0;e.beginPath(),e.strokeStyle=r,e.lineWidth=o;for(var l=0,h=this._items;l<h.length;l++){var d=h[l],c=Math.round(d.x*a)+s;e.moveTo(c,Math.round(m(d)*a)),e.lineTo(c,Math.round(x(d)*a)),0!==d.poleTailHeight&&(e.moveTo(c,Math.round(b(d)*a)),e.lineTo(c,Math.round(R(d)*a)))}e.stroke();for(var u=0,p=this._items;u<p.length;u++){d=p[u];e.strokeStyle=d.circleBorderColor,e.fillStyle=d.circleBackgroundColor,d.circleRadius>0&&T(e,d,n,this._data.shadowColor,this._data.outsideBorderColor,a), circleRadius:e.circleRadius,srcItem:e.srcItem,direction:e.direction*(e.inverseAnchorPosition?-1:1),labelHeight:0,labelId:-1,inverseAnchorPosition:e.inverseAnchorPosition},i={offsetX:0,offsetY:0,points:[new n.Point(e.x,e.anchorY)],forceCalculateMaxLineWidth:!0,vertAlign:-1===e.labelDirection?"bottom":"top",horzAlign:"center",horzTextAlign:"center",font:e.labelFont,fontSize:e.labelFontSize,bold:e.labelFontBold,italic:e.labelFontItalic,backgroundRoundRect:e.labelBorderRadius,padding:e.labelPadding,boxPaddingVert:e.labelBoxPaddingVert,boxPaddingHorz:e.labelBoxPaddingHorz,wordWrapWidth:e.labelWordWrapWidth,color:e.labelColor,borderColor:e.labelBorderColor,borderWidth:1,backgroundColor:e.labelBackgroundColor,text:e.text};if(e.inverseAnchorPosition){var r=Object(a.ensureDefined)(i.points);r[0]=new n.Point(r[0].x,b(t)),t.labelId=this._labels.length}else{var o=new p.TextRenderer(i);this._labels.push(o),t.labelId=this._labels.length,t.labelHeight=o.measure().height;var s=1===e.direction?Math.min(t.poleStartY-t.labelHeight,t.anchorY):Math.max(t.poleStartY+t.labelHeight,t.anchorY);t.anchorY!==s&&(t.anchorY=s,i.points=[new n.Point(e.x,s)],o.setData(i))}var l=new p.TextRenderer(i);this._labels.push(l),this._items.push(t)},e.prototype.itemAnchorY=function(e){return e>=this._items.length?null:this._items[e].anchorY},e.prototype.hitTest=function(e,t){var i=this;if(null===this._data)return null;for(var r=function(r){var o=a._items[r],s=a._doesPointBelongToItem(o,e),l=s[0],h=s[1],d=s[2];if(l||h||d){var c={hideCrosshairLinesOnHover:!0,itemIndex:l||h?o.itemIndex:o.labelIndex};d?c.areaName=v.TabNames.text:h&&(c.areaName=v.TabNames.style);var u=a._showTooltipHandler;if(void 0!==u){var p={targetBox:a._itemRect(o,t.cssHeight),item:o.srcItem},f=function(e){var t=i._doesPointBelongToItem(o,e),r=t[0],n=t[1];return r||n};c.tapHandler=function(e){e.preventDefault(),u(p,new n.Point(e.clientX-e.localX,e.clientY-e.localY),f)},c.clickHandler=function(e){u(p,new n.Point(e.clientX-e.localX,e.clientY-e.localY),f)};var g=a._clearSelectedDataHandler;void 0!==g&&(c.doubleClickHandler=function(e){return g()},c.pressedMouseMoveHandler=function(e){return g()},c.executeDefaultAction={pressedMouseMoveHandler:!0,touchMoveHandler:!0})}return{value:new _.HitTestResult(a._hitTestResult,c)}}},a=this,o=this._items.length-1;o>=0;--o){var s=r(o);if("object"==typeof s)return s.value}return null},e.prototype.draw=function(e,t){if(null!==this._data){e.save(),this._phantomMode&&(e.globalAlpha=.5);var i=this._data,r=i.poleColor,n=i.emojiRadius,a=t.pixelRatio,o=Math.max(1,Math.floor(a)),s=o%2?.5:0;e.beginPath(),e.strokeStyle=r,e.lineWidth=o;for(var l=0,h=this._items;l<h.length;l++){var d=h[l],c=Math.round(d.x*a)+s;e.moveTo(c,Math.round(m(d)*a)),e.lineTo(c,Math.round(x(d)*a)),0!==d.poleTailHeight&&(e.moveTo(c,Math.round(b(d)*a)),e.lineTo(c,Math.round(R(d)*a)))}e.stroke();for(var u=0,p=this._items;u<p.length;u++){d=p[u];e.strokeStyle=d.circleBorderColor,e.fillStyle=d.circleBackgroundColor,d.circleRadius>0&&T(e,d,n,this._data.shadowColor,this._data.outsideBorderColor,a),
this._labels[d.labelId].draw(e,t)}e.restore()}},e.prototype._itemRect=function(e,t){if(!this._cacheRects[e.labelId]){var i=this._labels[e.labelId].rect(),r=e.circleRadius>0?e.circleRadius+e.circleBorderWidth:0,n=i.y<e.poleStartY;this._cacheRects[e.labelId]={top:Math.max(n?i.y:e.poleStartY,0),bottom:Math.min(n?e.poleStartY:i.y+i.height,t),left:Math.min(e.x-r,i.x),right:Math.max(e.x+r,i.x+i.width)}}return this._cacheRects[e.labelId]},e.prototype._doesPointBelongToItem=function(e,t){var i=Object(c.lastEventIsTouch)()?20:3,r=e.x,a=Object(h.distanceToSegment)(new n.Point(r,m(e)),new n.Point(r,x(e)),t).distance<i,o=!a&&e.circleRadius>0&&Object(d.pointInCircle)(t,new n.Point(r,function(e){return e.inverseAnchorPosition?e.anchorY+e.circleRadius*e.direction:e.anchorY+(e.labelHeight+e.poleTailHeight+e.circleRadius)*e.direction}(e)),e.circleRadius+i);return[a,o,!a&&!o&&null!==this._labels[e.labelId].hitTest(t)]},e}(),P={circleBackgroundColor:o.a["color-cold-gray-800"],circleBorderColor:o.a["color-cold-gray-900"],labelBackgroundColor:o.a["color-cold-gray-900"],labelBorderColor:o.a["color-cold-gray-800"],labelTextColor:o.a["color-cold-gray-200"],poleColor:o.a["color-cold-gray-500"],shadowColor:"rgba(0,0,0,0.4)",selectionColor:o.a["color-tv-blue-500"],labelHoveredColor:o.a["color-cold-gray-800"],labelSelectedColor:o.a["color-tv-blue-a900"]},L={circleBackgroundColor:o.a["color-cold-gray-100"],circleBorderColor:o.a["color-white"],labelBackgroundColor:o.a["color-white"],labelBorderColor:o.a["color-cold-gray-150"],labelTextColor:o.a["color-cold-gray-900"],poleColor:o.a["color-cold-gray-500"],shadowColor:"rgba(107,121,136,0.4)",selectionColor:o.a["color-tv-blue-500"],labelHoveredColor:o.a["color-cold-gray-100"],labelSelectedColor:o.a["color-tv-blue-50"]};function C(e,t,i){var r=Object(l.a)(e,t,i);if(null===r)return null;var n=Object(l.c)(e.position(),t.isInverted());return{index:r.index,price:r.price,poleStartY:t.height(),visualDirection:1,positionPointDirection:n}}function M(e,t){var i=Object(l.d)(e,t),r=e.priceScale(),n=Object(a.ensureNotNull)(e.firstValue());if(null===i)return C(t,r,n);var o=0,s=e.properties(),h=e.model().timeScale(),d=r.priceToCoordinate(i.price,n);switch(e.style()){case 3:o=s.areaStyle.linewidth.value()/2;break;case 2:o=s.lineStyle.linewidth.value()/2;break;case 10:var c=Math.abs(100-s.baselineStyle.baseLevelPercentage.value());o=r.height()*c/100>d?s.baselineStyle.topLineWidth.value()/2:s.baselineStyle.bottomLineWidth.value()/2;break;case 1:case 9:case 8:case 12:o=3;break;case 0:o=s.barStyle.thinBars.value()?3:Math.max(3,.25*h.barSpacing());break;case 11:o=s.rangeStyle.thinBars.value()?3:Math.max(3,.25*h.barSpacing());break;case 4:case 7:o=3;break;case 5:o=Math.max(4,.25*h.barSpacing());break;case 6:o=Math.max(5,.25*h.barSpacing())}var u=Object(l.c)(t.position(),r.isInverted()),p=d-u*o;return{index:i.index,price:i.price,poleStartY:p,visualDirection:u,positionPointDirection:u}}var I=function(){function e(e,t,i,r,n){this._renderer=null,this._invalidated=!0,this._model=e,this._timeLine=t, this._labels[d.labelId].draw(e,t)}e.restore()}},e.prototype._itemRect=function(e,t){if(!this._cacheRects[e.labelId]){var i=this._labels[e.labelId].rect(),r=e.circleRadius>0?e.circleRadius+e.circleBorderWidth:0,n=i.y<e.poleStartY;this._cacheRects[e.labelId]={top:Math.max(n?i.y:e.poleStartY,0),bottom:Math.min(n?e.poleStartY:i.y+i.height,t),left:Math.min(e.x-r,i.x),right:Math.max(e.x+r,i.x+i.width)}}return this._cacheRects[e.labelId]},e.prototype._doesPointBelongToItem=function(e,t){var i=Object(c.lastEventIsTouch)()?20:3,r=e.x,a=Object(h.distanceToSegment)(new n.Point(r,m(e)),new n.Point(r,x(e)),t).distance<i,o=!a&&e.circleRadius>0&&Object(d.pointInCircle)(t,new n.Point(r,function(e){return e.inverseAnchorPosition?e.anchorY+e.circleRadius*e.direction:e.anchorY+(e.labelHeight+e.poleTailHeight+e.circleRadius)*e.direction}(e)),e.circleRadius+i);return[a,o,!a&&!o&&null!==this._labels[e.labelId].hitTest(t)]},e}(),P={circleBackgroundColor:o.a["color-cold-gray-800"],circleBorderColor:o.a["color-cold-gray-900"],labelBackgroundColor:o.a["color-cold-gray-900"],labelBorderColor:o.a["color-cold-gray-800"],labelTextColor:o.a["color-cold-gray-200"],poleColor:o.a["color-cold-gray-500"],shadowColor:"rgba(0,0,0,0.4)",selectionColor:o.a["color-tv-blue-500"],labelHoveredColor:o.a["color-cold-gray-800"],labelSelectedColor:o.a["color-tv-blue-a900"]},L={circleBackgroundColor:o.a["color-cold-gray-100"],circleBorderColor:o.a["color-white"],labelBackgroundColor:o.a["color-white"],labelBorderColor:o.a["color-cold-gray-150"],labelTextColor:o.a["color-cold-gray-900"],poleColor:o.a["color-cold-gray-500"],shadowColor:"rgba(107,121,136,0.4)",selectionColor:o.a["color-tv-blue-500"],labelHoveredColor:o.a["color-cold-gray-100"],labelSelectedColor:o.a["color-tv-blue-50"]};function C(e,t,i){var r=Object(l.a)(e,t,i);if(null===r)return null;var n=Object(l.c)(e.position(),t.isInverted());return{index:r.index,price:r.price,poleStartY:t.height(),visualDirection:1,positionPointDirection:n}}function M(e,t){var i=Object(l.d)(e,t),r=e.priceScale(),n=Object(a.ensureNotNull)(e.firstValue());if(null===i)return C(t,r,n);var o=0,s=e.properties(),h=e.model().timeScale(),d=r.priceToCoordinate(i.price,n);switch(e.style()){case 3:o=s.areaStyle.linewidth.value()/2;break;case 2:o=s.lineStyle.linewidth.value()/2;break;case 10:var c=Math.abs(100-s.baselineStyle.baseLevelPercentage.value());o=r.height()*c/100>d?s.baselineStyle.topLineWidth.value()/2:s.baselineStyle.bottomLineWidth.value()/2;break;case 1:case 9:case 8:case 12:o=3;break;case 0:o=s.barStyle.thinBars.value()?3:Math.max(3,.25*h.barSpacing());break;case 11:o=s.rangeStyle.thinBars.value()?3:Math.max(3,.25*h.barSpacing());break;case 4:case 7:o=3;break;case 5:o=Math.max(4,.25*h.barSpacing());break;case 6:o=Math.max(5,.25*h.barSpacing())}var u=Object(l.c)(t.position(),r.isInverted()),p=d-u*o;return{index:i.index,price:i.price,poleStartY:p,visualDirection:u,positionPointDirection:u}}var I=function(){function e(e,t,i,r,n){this._renderer=null,this._invalidated=!0,this._model=e,this._timeLine=t,
this._timeLineItemsRenderer=new S(i,null==r?void 0:r.tooltipHandler,null==r?void 0:r.clearSelectedDataHandler,n)}return e.prototype.update=function(){this._invalidated=!0},e.prototype.renderer=function(e,t){return this._invalidated&&(this._updateImpl(e),this._invalidated=!1),this._renderer},e.prototype.itemAnchorY=function(e){return this._timeLineItemsRenderer.itemAnchorY(e)},e.prototype._updateImpl=function(e){this._renderer=null,this._timeLineItemsRenderer.clearItems();var t=this._timeLine.priceSource();if(null!==t){var i=this._model.timeScale(),r=t.priceScale(),n=t.firstValue();if(!i.isEmpty()&&null!==r&&!r.isEmpty()&&null!==n){for(var a,o=this._model.isDark(),h=o?P:L,d=this._model.mainSeries(),c=0,u=this._timeLine.items();c<u.length;c++){var p=u[c];if(!this._timeLine.isHidden(p.category())){var _=p.position(),f=t===d?M(d,p):C(p,r,n);if(null!==f){var v=i.indexToCoordinate(f.index),g=r.priceToCoordinate(f.price,n),y=p.showPlate(),w=Object(l.b)(_,e,g,f.positionPointDirection);w>=-1e-10&&w<=e+1e-10&&(w=Math.min(e-2,Math.max(2,w)));var m=f.visualDirection!==f.positionPointDirection,x=f.visualDirection,b=this._timeLine.isItemSelected(p),R=this._timeLine.isItemHovered(p),T={circleBackgroundColor:p.backgroundPlateColor(o)||h.circleBackgroundColor,outsideBorderWidth:b?2:R?1:0,circleBorderColor:h.circleBorderColor,circleBorderWidth:1,image:p.image(),itemIndex:p.itemIndex(),labelIndex:p.labelIndex(),x:v,anchorY:w,poleTailHeight:p.headline()&&y?10:0,poleStartY:f.poleStartY,circleRadius:y?35:0,direction:x,inverseAnchorPosition:m,srcItem:p,text:p.headline(),labelDirection:f.positionPointDirection,labelFont:s.CHART_FONT_FAMILY,labelFontSize:p.fontSize&&p.fontSize()||12,labelFontBold:p.fontBold&&p.fontBold()||!1,labelFontItalic:p.fontItalic&&p.fontItalic()||!1,labelBorderRadius:4,labelPadding:3,labelBoxPaddingVert:6,labelBoxPaddingHorz:8,labelWordWrapWidth:134,labelColor:h.labelTextColor,labelBorderColor:h.labelBorderColor,labelBackgroundColor:b?h.labelSelectedColor:R?h.labelHoveredColor:h.labelBackgroundColor};this._timeLine.isItemHovered(p)?a=T:this._timeLineItemsRenderer.addItem(T)}}}void 0!==a&&this._timeLineItemsRenderer.addItem(a),this._timeLineItemsRenderer.setData({emojiRadius:16,poleColor:h.poleColor,shadowColor:h.shadowColor,outsideBorderColor:h.selectionColor}),this._renderer=this._timeLineItemsRenderer}}},e}(),O=i("Zy3/"),D=i("//lt"),k=i("aB9a");i.d(t,"SignpostPaneView",(function(){return N}));var N=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._renderer=new O.CompositeRenderer,r._storiesEventsPaneView=new I(i,t,_.HitTestResult.MOVEPOINT,void 0,t.isPhantom()),r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(e,t),this._renderer},t.prototype._updateImpl=function(t,i){e.prototype._updateImpl.call(this),this._renderer.clear(),this._storiesEventsPaneView.update();var r=this._storiesEventsPaneView.renderer(t,i);if(null!==r&&this._renderer.append(r),!this._source.isPhantom()){var a=this._storiesEventsPaneView.itemAnchorY(0);if(null!==a){ this._timeLineItemsRenderer=new S(i,null==r?void 0:r.tooltipHandler,null==r?void 0:r.clearSelectedDataHandler,n)}return e.prototype.update=function(){this._invalidated=!0},e.prototype.renderer=function(e,t){return this._invalidated&&(this._updateImpl(e),this._invalidated=!1),this._renderer},e.prototype.itemAnchorY=function(e){return this._timeLineItemsRenderer.itemAnchorY(e)},e.prototype._updateImpl=function(e){this._renderer=null,this._timeLineItemsRenderer.clearItems();var t=this._timeLine.priceSource();if(null!==t){var i=this._model.timeScale(),r=t.priceScale(),n=t.firstValue();if(!i.isEmpty()&&null!==r&&!r.isEmpty()&&null!==n){for(var a,o=this._model.isDark(),h=o?P:L,d=this._model.mainSeries(),c=0,u=this._timeLine.items();c<u.length;c++){var p=u[c];if(!this._timeLine.isHidden(p.category())){var _=p.position(),f=t===d?M(d,p):C(p,r,n);if(null!==f){var v=i.indexToCoordinate(f.index),g=r.priceToCoordinate(f.price,n),y=p.showPlate(),w=Object(l.b)(_,e,g,f.positionPointDirection);w>=-1e-10&&w<=e+1e-10&&(w=Math.min(e-2,Math.max(2,w)));var m=f.visualDirection!==f.positionPointDirection,x=f.visualDirection,b=this._timeLine.isItemSelected(p),R=this._timeLine.isItemHovered(p),T={circleBackgroundColor:p.backgroundPlateColor(o)||h.circleBackgroundColor,outsideBorderWidth:b?2:R?1:0,circleBorderColor:h.circleBorderColor,circleBorderWidth:1,image:p.image(),itemIndex:p.itemIndex(),labelIndex:p.labelIndex(),x:v,anchorY:w,poleTailHeight:p.headline()&&y?10:0,poleStartY:f.poleStartY,circleRadius:y?35:0,direction:x,inverseAnchorPosition:m,srcItem:p,text:p.headline(),labelDirection:f.positionPointDirection,labelFont:s.CHART_FONT_FAMILY,labelFontSize:p.fontSize&&p.fontSize()||12,labelFontBold:p.fontBold&&p.fontBold()||!1,labelFontItalic:p.fontItalic&&p.fontItalic()||!1,labelBorderRadius:4,labelPadding:3,labelBoxPaddingVert:6,labelBoxPaddingHorz:8,labelWordWrapWidth:134,labelColor:h.labelTextColor,labelBorderColor:h.labelBorderColor,labelBackgroundColor:b?h.labelSelectedColor:R?h.labelHoveredColor:h.labelBackgroundColor};this._timeLine.isItemHovered(p)?a=T:this._timeLineItemsRenderer.addItem(T)}}}void 0!==a&&this._timeLineItemsRenderer.addItem(a),this._timeLineItemsRenderer.setData({emojiRadius:16,poleColor:h.poleColor,shadowColor:h.shadowColor,outsideBorderColor:h.selectionColor}),this._renderer=this._timeLineItemsRenderer}}},e}(),O=i("Zy3/"),D=i("//lt"),k=i("aB9a");i.d(t,"SignpostPaneView",(function(){return B}));var B=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._renderer=new O.CompositeRenderer,r._storiesEventsPaneView=new I(i,t,_.HitTestResult.MOVEPOINT,void 0,t.isPhantom()),r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(e,t),this._renderer},t.prototype._updateImpl=function(t,i){e.prototype._updateImpl.call(this),this._renderer.clear(),this._storiesEventsPaneView.update();var r=this._storiesEventsPaneView.renderer(t,i);if(null!==r&&this._renderer.append(r),!this._source.isPhantom()){var a=this._storiesEventsPaneView.itemAnchorY(0);if(null!==a){
var o=this._points[0],s=new n.Point(o.x,a);s.data=o.data,s.square=!0,this._renderer.append(this.createLineAnchor({points:[s],pointsCursorType:[D.PaneCursorType.VerticalResize]}))}}},t}(k.LineSourcePaneView)},LMGK:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("jkoZ"),a=i("aB9a").LineSourcePaneView,o=i("VdBB").HitTestResult,s=i("9XXR").splitThousands,l=i("vq8G").SelectionRenderer,h=i("Zy3/").CompositeRenderer,d=i("cPgM").ScaledPaneRenderer,c=i("2uTr").appendEllipsis;function u(e,t){d.call(this),this._data=null,this._cache=e,this._adapter=t}function p(e,t){a.call(this,e,t),this._renderer=new h,this._adapter=e._adapter,this._orderRendererCache={},this._orderRenderer=new u(this._orderRendererCache,e._adapter),this._selectionRenderer=new l,this._renderer.append(this._orderRenderer),this._renderer.append(this._selectionRenderer),this._selectionData=null}inherit(u,d),u.prototype.setData=function(e){this._data=e},u.prototype._height=function(){return Math.max(20,1+Math.max(n.fontHeight(this._adapter.getBodyFont()),n.fontHeight(this._adapter.getQuantityFont())))},u.prototype._bodyWidth=function(e){if(0===this._adapter.getText().length)return 0;e.save(),e.font=this._adapter.getBodyFont();var t=e.measureText(this._adapter.getText()).width;return e.restore(),Math.round(20+t)},u.prototype._getQuantity=function(){return s(this._adapter.getQuantity()," ")},u.prototype._quantityWidth=function(e){if(0===this._getQuantity().length)return 0;e.save(),e.font=this._adapter.getQuantityFont();var t=e.measureText(this._getQuantity()).width;return e.restore(),Math.round(Math.max(this._height(),10+t))},u.prototype._cancelButtonWidth=function(){return this._adapter.isOnCancelCallbackPresent()?this._height():0},u.prototype._drawLines=function(e,t,i,r,n){e.save(),e.strokeStyle=this._adapter.getLineColor(),e.lineStyle=this._adapter.getLineStyle(),e.lineWidth=this._adapter.getLineWidth(),CanvasEx.drawLine(e,i,r,n,r),this._adapter.getExtendLeft()&&CanvasEx.drawLine(e,0,r,t,r),e.restore()},u.prototype._drawMovePoints=function(e,t,i){e.save(),e.strokeStyle=this._adapter.getBodyBorderColor(),e.fillStyle=this._adapter.getBodyBorderColor();for(var r=t+4,n=r+2,a=Math.floor((this._height()-10)/2)+1,o=0;o<a;++o){var s=i+5+2*o;CanvasEx.drawLine(e,r,s,n,s)}e.restore()},u.prototype._drawBody=function(e,t,i){e.strokeStyle=this._adapter.getBodyBorderColor(),e.fillStyle=this._adapter.getBodyBackgroundColor();var r=this._bodyWidth(e),n=this._height();e.fillRect(t+.5,i+.5,r-1,n-1),e.strokeRect(t,i,r,n)},u.prototype._drawBodyText=function(e,t,i){e.textAlign="center",e.textBaseline="middle",e.font=this._adapter.getBodyFont(),e.fillStyle=this._adapter.getBodyTextColor();var r=t+this._bodyWidth(e)/2,n=i+this._height()/2;e.fillText(this._adapter.getText(),5+r-2,n)},u.prototype._drawQuantity=function(e,t,i,r){e.save(),e.strokeStyle=this._adapter.getQuantityBorderColor(),e.fillStyle=this._adapter.getQuantityBackgroundColor();var n=this._quantityWidth(e),a=this._height();e.fillRect(t+.5,i+.5,n-1,a-1),r&&e.clip&&(e.beginPath(),e.rect(t+.5,i-.5,n+1,a+1),e.clip()), var o=this._points[0],s=new n.Point(o.x,a);s.data=o.data,s.square=!0,this._renderer.append(this.createLineAnchor({points:[s],pointsCursorType:[D.PaneCursorType.VerticalResize]}))}}},t}(k.LineSourcePaneView)},LMGK:function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("aO4+"),a=i("aB9a"),o=i("Zy3/"),s=i("YFKU"),l=i("9XXR"),h=i("jFln"),d=i("cPgM"),c=i("VdBB"),u=i("2uTr"),p=i("jkoZ"),_=Object(s.t)("Modify Order"),f=Object(s.t)("Cancel Order"),v=function(e){function t(t){var i=e.call(this)||this;return i._data=null,i._cache={},i._data=null,i._adapter=t,i}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e,t){if(null===this._data||0===this._data.points.length)return null;var i=this._cache;if(e.y<i.top||e.y>i.bottom)return null;if(this._adapter.getBlocked()&&e.x>=i.left&&e.x<i.right)return new c.HitTestResult(c.HitTestResult.CUSTOM,{});if(this._adapter.getEditable()&&e.x>=i.left&&e.x<i.bodyRight){var r=this._adapter.hasMoveCallback()?c.HitTestResult.MOVEPOINT:c.HitTestResult.REGULAR;return 0===this._adapter.getTooltip().length?new c.HitTestResult(r):new c.HitTestResult(r,{tooltip:{text:this._adapter.getTooltip(),rect:{x:i.left,y:i.top,w:i.bodyRight-i.left,h:i.bottom-i.top}}})}return this._adapter.getEditable()&&e.x>=i.bodyRight&&e.x<i.quantityRight?this._adapter.hasModifyCallback()?new c.HitTestResult(c.HitTestResult.CUSTOM,{clickHandler:this._adapter.callOnModify.bind(this._adapter),tapHandler:this._adapter.callOnModify.bind(this._adapter),tooltip:{text:this._adapter.getModifyTooltip()||Object(u.appendEllipsis)(_),rect:{x:i.bodyRight,y:i.top,w:i.quantityRight-i.bodyRight,h:i.bottom-i.top}}}):new c.HitTestResult(c.HitTestResult.REGULAR):this._adapter.getCancellable()&&e.x>=i.quantityRight&&e.x<i.right?new c.HitTestResult(c.HitTestResult.CUSTOM,{clickHandler:this._adapter.callOnCancel.bind(this._adapter),tapHandler:this._adapter.callOnCancel.bind(this._adapter),tooltip:{text:this._adapter.getCancelTooltip()||f,rect:{x:i.quantityRight,y:i.top,w:i.right-i.quantityRight,h:i.bottom-i.top}}}):null},t.prototype._drawImpl=function(e,t){if(null!==this._data&&this._data.points&&!(this._data.points.length<1)){var i=t.cssWidth,r=this._bodyWidth(e),n=this._quantityWidth(e),a=r+n+this._cancelButtonWidth(),o=i-a,s=Math.max(this._adapter.getLineLength()/100*i,1),l=Math.round(i-Math.min(o,s)),h=l-a,d=Math.round(this._data.points[0].y),c=Math.round(d-(this._height()+1)/2);this._cache.bodyRight=h+r,this._cache.quantityRight=h+r+n,this._cache.top=c,this._cache.bottom=c+this._height(),this._cache.left=h,this._cache.right=l,this._drawLines(e,h,l,d,i);var u=!1;0!==r&&(this._drawBody(e,h,c),this._adapter.hasMoveCallback()&&this._drawMovePoints(e,h,c),this._drawBodyText(e,h,c),u=!0),0!==n&&(this._drawQuantity(e,h+r,c,u),this._drawQuantityText(e,h+r,c),u=!0),0!==this._cancelButtonWidth()&&this._drawCancelButton(e,h+r+n,c,u)}},t.prototype._height=function(){return Math.max(20,1+Math.max(p.fontHeight(this._adapter.getBodyFont()),p.fontHeight(this._adapter.getQuantityFont())))},
e.strokeRect(t,i,n,a),e.restore()},u.prototype._drawQuantityText=function(e,t,i){e.save(),e.textAlign="center",e.textBaseline="middle",e.font=this._adapter.getQuantityFont(),e.fillStyle=this._adapter.getQuantityTextColor();var r=t+this._quantityWidth(e)/2,n=i+this._height()/2;e.fillText(this._getQuantity(),r,n),e.restore()},u.prototype._drawCancelButton=function(e,t,i,r){e.strokeStyle=this._adapter.getCancelButtonBorderColor(),e.fillStyle=this._adapter.getCancelButtonBackgroundColor();var n=this._cancelButtonWidth(),a=this._height();e.fillRect(t+.5,i+.5,n-1,a-1),this._adapter._blocked&&(e.fillStyle="rgba(140, 140, 140, 0.75)",e.fillRect(t+.5,i+.5,n-1,a-1)),e.save(),r&&e.clip&&(e.beginPath(),e.rect(t+.5,i-.5,n+1,a+1),e.clip()),e.strokeRect(t,i,n,a),e.restore();var o=t+n,s=i+a;e.strokeStyle=this._adapter.getCancelButtonIconColor();var l=(this._cancelButtonWidth()-8)/2,h=(this._height()-8)/2;CanvasEx.drawPoly(e,[{x:t+l,y:i+h},{x:o-l,y:s-h}],!0),CanvasEx.drawPoly(e,[{x:o-l,y:i+h},{x:t+l,y:s-h}],!0)},u.prototype._drawImpl=function(e){if(null!==this._data&&this._data.points&&!(this._data.points.length<1)){var t=this._data.width,i=this._bodyWidth(e),r=this._quantityWidth(e),n=i+r+this._cancelButtonWidth(),a=t-n,o=Math.max(this._adapter.getLineLength()/100*t,1),s=Math.round(t-Math.min(a,o)),l=s-n,h=Math.round(this._data.points[0].y),d=Math.round(h-(this._height()+1)/2);this._cache.bodyRight=l+i,this._cache.quantityRight=l+i+r,this._cache.top=d,this._cache.bottom=d+this._height(),this._cache.left=l,this._cache.right=s,this._drawLines(e,l,s,h,t);var c=!1;0!==i&&(this._drawBody(e,l,d),this._adapter.hasMoveCallback()&&this._drawMovePoints(e,l,d),this._drawBodyText(e,l,d),c=!0),0!==r&&(this._drawQuantity(e,l+i,d,c),this._drawQuantityText(e,l+i,d),c=!0),0!==this._cancelButtonWidth()&&this._drawCancelButton(e,l+i+r,d,c)}},u.prototype.hitTest=function(e){if(null===this._data||0===this._data.points.length)return null;if(e.y<this._cache.top||e.y>this._cache.bottom)return null;if(this._adapter._blocked&&e.x>=this._cache.left&&e.x<this._cache.right)return new o(o.CUSTOM,{});if(this._adapter._editable&&e.x>=this._cache.left&&e.x<this._cache.bodyRight){var t=this._adapter.hasMoveCallback()?o.MOVEPOINT:o.REGULAR;return 0===this._adapter.getTooltip().length?new o(t):new o(t,{tooltip:{text:this._adapter.getTooltip(),rect:{x:this._cache.left,y:this._cache.top,w:this._cache.bodyRight-this._cache.left,h:this._cache.bottom-this._cache.top}}})}return this._adapter._editable&&e.x>=this._cache.bodyRight&&e.x<this._cache.quantityRight?this._adapter.hasModifyCallback()?new o(o.CUSTOM,{clickHandler:this._adapter.callOnModify.bind(this._adapter),tapHandler:this._adapter.callOnModify.bind(this._adapter),tooltip:{text:this._adapter.getModifyTooltip()||c(window.t("Modify Order")),rect:{x:this._cache.bodyRight,y:this._cache.top,w:this._cache.quantityRight-this._cache.bodyRight,h:this._cache.bottom-this._cache.top}}}):new o(o.REGULAR):this._adapter._cancellable&&e.x>=this._cache.quantityRight&&e.x<this._cache.right?new o(o.CUSTOM,{ t.prototype._bodyWidth=function(e){if(0===this._adapter.getText().length)return 0;e.save(),e.font=this._adapter.getBodyFont();var t=e.measureText(this._adapter.getText()).width;return e.restore(),Math.round(20+t)},t.prototype._getQuantity=function(){return Object(l.splitThousands)(this._adapter.getQuantity()," ")},t.prototype._quantityWidth=function(e){if(0===this._getQuantity().length)return 0;e.save(),e.font=this._adapter.getQuantityFont();var t=e.measureText(this._getQuantity()).width;return e.restore(),Math.round(Math.max(this._height(),10+t))},t.prototype._cancelButtonWidth=function(){return this._adapter.isOnCancelCallbackPresent()?this._height():0},t.prototype._drawLines=function(e,t,i,r,n){e.save(),e.strokeStyle=this._adapter.getLineColor(),Object(h.setLineStyle)(e,this._adapter.getLineStyle()),e.lineWidth=this._adapter.getLineWidth(),Object(h.drawLine)(e,i,r,n,r),this._adapter.getExtendLeft()&&Object(h.drawLine)(e,0,r,t,r),e.restore()},t.prototype._drawMovePoints=function(e,t,i){e.save(),e.strokeStyle=this._adapter.getBodyBorderColor(),e.fillStyle=this._adapter.getBodyBorderColor();for(var r=t+4,n=r+2,a=Math.floor((this._height()-10)/2)+1,o=0;o<a;++o){var s=i+5+2*o;Object(h.drawLine)(e,r,s,n,s)}e.restore()},t.prototype._drawBody=function(e,t,i){e.strokeStyle=this._adapter.getBodyBorderColor(),e.fillStyle=this._adapter.getBodyBackgroundColor();var r=this._bodyWidth(e),n=this._height();e.fillRect(t+.5,i+.5,r-1,n-1),e.strokeRect(t,i,r,n)},t.prototype._drawBodyText=function(e,t,i){e.textAlign="center",e.textBaseline="middle",e.font=this._adapter.getBodyFont(),e.fillStyle=this._adapter.getBodyTextColor();var r=t+this._bodyWidth(e)/2,n=i+this._height()/2;e.fillText(this._adapter.getText(),5+r-2,n)},t.prototype._drawQuantity=function(e,t,i,r){e.save(),e.strokeStyle=this._adapter.getQuantityBorderColor(),e.fillStyle=this._adapter.getQuantityBackgroundColor();var n=this._quantityWidth(e),a=this._height();e.fillRect(t+.5,i+.5,n-1,a-1),r&&e.clip&&(e.beginPath(),e.rect(t+.5,i-.5,n+1,a+1),e.clip()),e.strokeRect(t,i,n,a),e.restore()},t.prototype._drawQuantityText=function(e,t,i){e.save(),e.textAlign="center",e.textBaseline="middle",e.font=this._adapter.getQuantityFont(),e.fillStyle=this._adapter.getQuantityTextColor();var r=t+this._quantityWidth(e)/2,n=i+this._height()/2;e.fillText(this._getQuantity(),r,n),e.restore()},t.prototype._drawCancelButton=function(e,t,i,r){e.strokeStyle=this._adapter.getCancelButtonBorderColor(),e.fillStyle=this._adapter.getCancelButtonBackgroundColor();var a=this._cancelButtonWidth(),o=this._height();e.fillRect(t+.5,i+.5,a-1,o-1),this._adapter.getBlocked()&&(e.fillStyle="rgba(140, 140, 140, 0.75)",e.fillRect(t+.5,i+.5,a-1,o-1)),e.save(),r&&e.clip&&(e.beginPath(),e.rect(t+.5,i-.5,a+1,o+1),e.clip()),e.strokeRect(t,i,a,o),e.restore();var s=t+a,l=i+o;e.strokeStyle=this._adapter.getCancelButtonIconColor();var d=(this._cancelButtonWidth()-8)/2,c=(this._height()-8)/2;Object(h.drawPoly)(e,[new n.Point(t+d,i+c),new n.Point(s-d,l-c)],!0),
clickHandler:this._adapter.callOnCancel.bind(this._adapter),tapHandler:this._adapter.callOnCancel.bind(this._adapter),tooltip:{text:this._adapter.getCancelTooltip()||window.t("Cancel Order"),rect:{x:this._cache.quantityRight,y:this._cache.top,w:this._cache.right-this._cache.quantityRight,h:this._cache.bottom-this._cache.top}}}):null},inherit(p,a),p.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(t),this._renderer},p.prototype._updateImpl=function(e){if(a.prototype._updateImpl.call(this),this._selectionData=null,this.isSelectedSource()&&this._points.length>0){var t=this._points[0].y,i=e-l.RADIUS-1,n=this._adapter.hasMoveCallback()?o.MOVEPOINT:o.REGULAR,s=[new r(i,t)];this._selectionData={points:s,bgColors:this._lineAnchorColors(s),hittestResult:n,visible:!0}}this._orderRenderer.setData({points:this._points,width:this._model.timeScale().width()}),this._selectionRenderer.setData(this._selectionData)},t.OrderPaneView=p},NCfL:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolPaneViewWithLevelledTextCache",(function(){return h}));var r=i("mrSG"),n=i("Eyy1"),a=i("aB9a"),o=i("xUGI"),s=i.n(o),l=i("c44N"),h=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._cache=null,r._cacheDrawParams=null,r._cacheInvalidated=!0,r}return Object(r.c)(t,e),t.prototype.getCacheCanvas=function(e){return this._createCacheIfRequired(e),Object(n.ensureNotNull)(this._cache).canvas()},t.prototype.getCacheRects=function(e,t){return this._createCacheIfRequired(e),null},t.prototype.destroy=function(){var e;null===(e=this._cache)||void 0===e||e.destroy()},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this),this._cacheInvalidated=!0},t.prototype._createCache=function(e){return new s.a(this._source.properties().fibLevelsBasedOnLogScale,this._source.levelsCount(),e)},t.prototype._createCacheIfRequired=function(e){var t;null!==this._cache&&null!==this._cacheDrawParams&&Object(l.areEqualPaneRenderParams)(e,this._cacheDrawParams)||(null===(t=this._cache)||void 0===t||t.destroy(),this._cache=this._createCache(e),this._cacheState=this._cache.updateSource(this._source),this._cacheDrawParams=e,this._cacheInvalidated=!1),this._cacheInvalidated&&(this._cacheState=this._cache.updateSource(this._source),this._cacheInvalidated=!1)},t}(a.LineSourcePaneView)},NN6M:function(e,t,i){"use strict";i.r(t),i.d(t,"ParallelChannelRenderer",(function(){return u}));var r=i("mrSG"),n=i("Eyy1"),a=i("aO4+"),o=i("GEp6"),s=i("hBTJ"),l=i("jFln"),h=i("VdBB"),d=i("Zp/P"),c=i("Tmoa"),u=function(e){function t(t,i){var r=e.call(this)||this;return r._data=null,r._hittestResult=t||new h.HitTestResult(h.HitTestResult.MOVEPOINT),r._backHittestResult=i||new h.HitTestResult(h.HitTestResult.MOVEPOINT_BACKGROUND),r}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e,t){if(null===this._data||this._data.points.length<2)return null;var i=this._data.points,r=i[0],n=i[1],a=this._extendAndHitTestLineSegment(e,r,n,t);if(null!==a)return a;if(4===this._data.points.length&&!this._data.skipTopLine){ Object(h.drawPoly)(e,[new n.Point(s-d,i+c),new n.Point(t+d,l-c)],!0)},t}(d.ScaledPaneRenderer),g=i("vq8G");i.d(t,"OrderPaneView",(function(){return y}));var y=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._renderer=new o.CompositeRenderer,r._selectionRenderer=new g.SelectionRenderer,r._selectionData=null,r._adapter=t.adapter(),r._orderRenderer=new v(t.adapter()),r._renderer.append(r._orderRenderer),r._renderer.append(r._selectionRenderer),r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(t),this._renderer},t.prototype._updateImpl=function(t){if(e.prototype._updateImpl.call(this),this._selectionData=null,this.isSelectedSource()&&this._points.length>0){var i=this._points[0].y,r=t-3.5-1,a=this._adapter.hasMoveCallback()?c.HitTestResult.MOVEPOINT:c.HitTestResult.REGULAR,o=[new n.Point(r,i)];this._selectionData={barSpacing:this._model.timeScale().barSpacing(),points:o,bgColors:this._lineAnchorColors(o),hittestResult:a,visible:!0}}this._orderRenderer.setData({points:this._points}),this._selectionRenderer.setData(this._selectionData)},t}(a.LineSourcePaneView)},NCfL:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolPaneViewWithLevelledTextCache",(function(){return h}));var r=i("mrSG"),n=i("Eyy1"),a=i("aB9a"),o=i("xUGI"),s=i.n(o),l=i("c44N"),h=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._cache=null,r._cacheDrawParams=null,r._cacheInvalidated=!0,r}return Object(r.c)(t,e),t.prototype.getCacheCanvas=function(e){return this._createCacheIfRequired(e),Object(n.ensureNotNull)(this._cache).canvas()},t.prototype.getCacheRects=function(e,t){return this._createCacheIfRequired(e),null},t.prototype.destroy=function(){var e;null===(e=this._cache)||void 0===e||e.destroy()},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this),this._cacheInvalidated=!0},t.prototype._createCache=function(e){return new s.a(this._source.properties().fibLevelsBasedOnLogScale,this._source.levelsCount(),e)},t.prototype._createCacheIfRequired=function(e){var t;null!==this._cache&&null!==this._cacheDrawParams&&Object(l.areEqualPaneRenderParams)(e,this._cacheDrawParams)||(null===(t=this._cache)||void 0===t||t.destroy(),this._cache=this._createCache(e),this._cacheState=this._cache.updateSource(this._source),this._cacheDrawParams=e,this._cacheInvalidated=!1),this._cacheInvalidated&&(this._cacheState=this._cache.updateSource(this._source),this._cacheInvalidated=!1)},t}(a.LineSourcePaneView)},NN6M:function(e,t,i){"use strict";i.r(t),i.d(t,"ParallelChannelRenderer",(function(){return u}));var r=i("mrSG"),n=i("Eyy1"),a=i("aO4+"),o=i("GEp6"),s=i("hBTJ"),l=i("jFln"),h=i("VdBB"),d=i("Zp/P"),c=i("Tmoa"),u=function(e){function t(t,i){var r=e.call(this)||this;return r._data=null,r._hittestResult=t||new h.HitTestResult(h.HitTestResult.MOVEPOINT),r._backHittestResult=i||new h.HitTestResult(h.HitTestResult.MOVEPOINT_BACKGROUND),r}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e,t){
var o=this._data.points,s=o[2],l=o[3],h=this._extendAndHitTestLineSegment(e,s,l,t);if(null!==h)return h;if(this._data.showMidline&&!this._data.skipLines){var d=r.add(s).scaled(.5),c=n.add(l).scaled(.5),u=this._extendAndHitTestLineSegment(e,d,c,t);if(null!==u)return u}}return this._data.hittestOnBackground&&this._data.fillBackground?this._hitTestBackground(e):null},t.prototype._drawImpl=function(e,t){if(!(null===this._data||this._data.points.length<2)){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,Object(l.setLineStyle)(e,this._data.linestyle);var i=this._data.points,r=i[0],n=i[1];if(this._data.skipLines||this._extendAndDrawLineSegment(e,r,n,t),4===this._data.points.length){var a=this._data.points,o=a[2],s=a[3];if(this._data.skipLines||this._data.skipTopLine||this._extendAndDrawLineSegment(e,o,s,t),this._data.fillBackground&&this._drawBackground(e,this._data.points,t),this._data.showMidline&&!this._data.skipLines){e.strokeStyle=this._data.midcolor,e.lineWidth=this._data.midlinewidth,Object(l.setLineStyle)(e,this._data.midlinestyle);var h=r.add(o).scaled(.5),d=n.add(s).scaled(.5);this._extendAndDrawLineSegment(e,h,d,t)}}}},t.prototype._getColor=function(){var e=Object(n.ensureNotNull)(this._data);return Object(c.generateColor)(e.backcolor,e.transparency)},t.prototype._extendAndDrawLineSegment=function(e,t,i,r){var n=this._extendAndClipLineSegment(t,i,r);null!==n&&Object(l.drawLine)(e,n[0].x,n[0].y,n[1].x,n[1].y)},t.prototype._extendAndHitTestLineSegment=function(e,t,i,r){var n=this._extendAndClipLineSegment(t,i,r);if(null!==n&&Object(o.distanceToSegment)(n[0],n[1],e).distance<=3)return this._hittestResult;return null},t.prototype._extendAndClipLineSegment=function(e,t,i){var r=Object(n.ensureNotNull)(this._data);return Object(d.extendAndClipLineSegment)(e,t,i.cssWidth,i.cssHeight,r.extendleft,r.extendright)},t.prototype._drawBackground=function(e,t,i){var r=Object(n.ensureNotNull)(this._data),s=t[0],l=t[1],h=t[2],d=t[3];if(!(Object(a.equalPoints)(s,l)||Object(a.equalPoints)(h,d)||Object(o.distanceToLine)(s,l,h).distance<1e-6||Object(o.distanceToLine)(s,l,d).distance<1e-6||i.cssWidth<=0||i.cssHeight<=0)){var c=[new a.Point(0,0),new a.Point(i.cssWidth,0),new a.Point(i.cssWidth,i.cssHeight),new a.Point(0,i.cssHeight)];if(c=p(c,s,l,d),r.extendright||(c=p(c,l,d,h)),c=p(c,d,h,s),r.extendleft||(c=p(c,h,s,l)),null!==c){e.beginPath(),e.moveTo(c[0].x,c[0].y);for(var u=1;u<c.length;u++)e.lineTo(c[u].x,c[u].y);e.fillStyle=this._getColor(),e.fill()}}},t.prototype._hitTestBackground=function(e){var t=Object(n.ensureNotNull)(this._data);if(4!==t.points.length)return null;var i=t.points,r=i[0],a=i[1],o=i[2],s=(a.y-r.y)/(a.x-r.x),l=r.y+s*(e.x-r.x),h=o.y+s*(e.x-o.x),d=Math.max(l,h),c=Math.min(l,h),u=Math.min(r.x,a.x),p=Math.max(r.x,a.x);return!t.extendleft&&e.x<u||!t.extendright&&e.x>p?null:e.y>=c&&e.y<=d?this._backHittestResult:null},t}(i("cPgM").ScaledPaneRenderer);function p(e,t,i,r){ if(null===this._data||this._data.points.length<2)return null;var i=this._data.points,r=i[0],n=i[1],a=this._extendAndHitTestLineSegment(e,r,n,t);if(null!==a)return a;if(4===this._data.points.length&&!this._data.skipTopLine){var o=this._data.points,s=o[2],l=o[3],h=this._extendAndHitTestLineSegment(e,s,l,t);if(null!==h)return h;if(this._data.showMidline&&!this._data.skipLines){var d=r.add(s).scaled(.5),c=n.add(l).scaled(.5),u=this._extendAndHitTestLineSegment(e,d,c,t);if(null!==u)return u}}return this._data.hittestOnBackground&&this._data.fillBackground?this._hitTestBackground(e):null},t.prototype._drawImpl=function(e,t){if(!(null===this._data||this._data.points.length<2)){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,Object(l.setLineStyle)(e,this._data.linestyle);var i=this._data.points,r=i[0],n=i[1];if(this._data.skipLines||this._extendAndDrawLineSegment(e,r,n,t),4===this._data.points.length){var a=this._data.points,o=a[2],s=a[3];if(this._data.skipLines||this._data.skipTopLine||this._extendAndDrawLineSegment(e,o,s,t),this._data.fillBackground&&this._drawBackground(e,this._data.points,t),this._data.showMidline&&!this._data.skipLines){e.strokeStyle=this._data.midcolor,e.lineWidth=this._data.midlinewidth,Object(l.setLineStyle)(e,this._data.midlinestyle);var h=r.add(o).scaled(.5),d=n.add(s).scaled(.5);this._extendAndDrawLineSegment(e,h,d,t)}}}},t.prototype._getColor=function(){var e=Object(n.ensureNotNull)(this._data);return Object(c.generateColor)(e.backcolor,e.transparency)},t.prototype._extendAndDrawLineSegment=function(e,t,i,r){var n=this._extendAndClipLineSegment(t,i,r);null!==n&&Object(l.drawLine)(e,n[0].x,n[0].y,n[1].x,n[1].y)},t.prototype._extendAndHitTestLineSegment=function(e,t,i,r){var n=this._extendAndClipLineSegment(t,i,r);if(null!==n&&Object(o.distanceToSegment)(n[0],n[1],e).distance<=3)return this._hittestResult;return null},t.prototype._extendAndClipLineSegment=function(e,t,i){var r=Object(n.ensureNotNull)(this._data);return Object(d.extendAndClipLineSegment)(e,t,i.cssWidth,i.cssHeight,r.extendleft,r.extendright)},t.prototype._drawBackground=function(e,t,i){var r=Object(n.ensureNotNull)(this._data),s=t[0],l=t[1],h=t[2],d=t[3];if(!(Object(a.equalPoints)(s,l)||Object(a.equalPoints)(h,d)||Object(o.distanceToLine)(s,l,h).distance<1e-6||Object(o.distanceToLine)(s,l,d).distance<1e-6||i.cssWidth<=0||i.cssHeight<=0)){var c=[new a.Point(0,0),new a.Point(i.cssWidth,0),new a.Point(i.cssWidth,i.cssHeight),new a.Point(0,i.cssHeight)];if(c=p(c,s,l,d),r.extendright||(c=p(c,l,d,h)),c=p(c,d,h,s),r.extendleft||(c=p(c,h,s,l)),null!==c){e.beginPath(),e.moveTo(c[0].x,c[0].y);for(var u=1;u<c.length;u++)e.lineTo(c[u].x,c[u].y);e.fillStyle=this._getColor(),e.fill()}}},t.prototype._hitTestBackground=function(e){var t=Object(n.ensureNotNull)(this._data);if(4!==t.points.length)return null;var i=t.points,r=i[0],a=i[1],o=i[2],s=(a.y-r.y)/(a.x-r.x),l=r.y+s*(e.x-r.x),h=o.y+s*(e.x-o.x),d=Math.max(l,h),c=Math.min(l,h),u=Math.min(r.x,a.x),p=Math.max(r.x,a.x)
return null!==e?Object(s.intersectPolygonAndHalfplane)(e,Object(a.halfplaneThroughPoint)(Object(a.lineThroughPoints)(t,i),r)):null}},Ni7V:function(e,t,i){"use strict";var r=i("aO4+"),n=r.Point,a=r.box,o=i("f6yo").pointInBox,s=i("aB9a").LineSourcePaneView,l=i("vq8G").SelectionRenderer,h=i("VdBB").HitTestResult,d=i("Zy3/").CompositeRenderer,c=i("UfPO"),u=i("Tmoa"),p=i("ikwP").calcTextHorizontalShift,_=i("Ialn").isRtl,f=i("cPgM").ScaledPaneRenderer;function v(e,t){f.call(this),this._data=null,this._measureCache=e,this._chartModel=t,this._points=null}function g(e,t,r){s.call(this,e,t),this._image=c("price_label",i("Pyj3")),this._rendererCache={},this._priceLabelRenderer=new v(this._rendererCache,t),this._renderer=null}inherit(v,f),v.prototype.setData=function(e){this._data=e,this._points=e.points},v.prototype._drawImpl=function(e){if(null!==this._data&&null!==this._points&&0!==this._points.length){e.font=[this._data.fontWeight,this._data.fontSize+"px",this._data.fontFamily].join(" ");var t=e.measureText(this._data.label);t.height=this._data.fontSize;var i=10,r=5,n=t.width+2*i,a=t.height+2*r,o=this._points[0].x- -9,s=this._points[0].y-(a+15);e.textAlign=_()?"right":"left";var l=p(e,t.width);this._measureCache&&Object.assign(this._measureCache,{innerWidth:n,innerHeight:a,tailLeft:-9,tailHeight:15}),e.translate(.5+o,.5+s),e.beginPath(),e.moveTo(12,a),e.lineTo(-9,a+15),e.lineTo(-10,a+15-1),e.lineTo(5,a),e.lineTo(3,a),e.arcTo(0,a,0,0,3),e.lineTo(0,3),e.arcTo(0,0,n,0,3),e.lineTo(n-3,0),e.arcTo(n,0,n,a,3),e.lineTo(n,a-3),e.arcTo(n,a,0,a,3),e.lineTo(12,a),e.fillStyle=u.generateColor(this._data.backgroundColor,this._data.transparency),e.fill(),e.strokeStyle=this._data.borderColor,e.lineWidth=2,e.stroke(),e.closePath(),e.textBaseline="alphabetic",e.fillStyle=this._data.color,e.fillText(this._data.label,i+l,a/2+Math.floor(.35*this._data.fontSize)),e.translate(-.5,-.5),e.beginPath(),e.arc(-9,a+15,2.5,0,2*Math.PI,!1),e.fillStyle=u.generateColor(this._data.borderColor,this._data.transparency),e.fill(),e.strokeStyle=this._chartModel.backgroundColor().value(),e.lineWidth=1,e.stroke(),e.closePath()}},v.prototype.hitTest=function(e){if(null===this._data||null===this._points||0===this._points.length)return null;var t=this._points[0].x-this._measureCache.tailLeft,i=this._points[0].y-(this._measureCache.innerHeight+this._measureCache.tailHeight),r=a(new n(t,i),new n(t+this._measureCache.innerWidth,i+this._measureCache.innerHeight));return o(e,r)?new h(h.MOVEPOINT):null},inherit(g,s),g.prototype._updateImpl=function(){if(s.prototype._updateImpl.call(this),this._renderer=null,this._source.points().length>0){var e=this._source.points()[0].price,t=this._source.priceScale();if(!t||t.isEmpty())return;var i=this._source.ownerSource().firstValue();this._priceLabel=t.formatPrice(e,i)}var r={};if(r.points=this._points,r.borderColor=this._source.properties().borderColor.value(),r.backgroundColor=this._source.properties().backgroundColor.value(),r.color=this._source.properties().color.value(),r.fontWeight=this._source.properties().fontWeight.value(), ;return!t.extendleft&&e.x<u||!t.extendright&&e.x>p?null:e.y>=c&&e.y<=d?this._backHittestResult:null},t}(i("cPgM").ScaledPaneRenderer);function p(e,t,i,r){return null!==e?Object(s.intersectPolygonAndHalfplane)(e,Object(a.halfplaneThroughPoint)(Object(a.lineThroughPoints)(t,i),r)):null}},Ni7V:function(e,t,i){"use strict";var r=i("aO4+"),n=r.Point,a=r.box,o=i("f6yo").pointInBox,s=i("aB9a").LineSourcePaneView,l=i("vq8G").SelectionRenderer,h=i("VdBB").HitTestResult,d=i("Zy3/").CompositeRenderer,c=i("UfPO"),u=i("Tmoa"),p=i("ikwP").calcTextHorizontalShift,_=i("Ialn").isRtl,f=i("cPgM").ScaledPaneRenderer;function v(e,t){f.call(this),this._data=null,this._measureCache=e,this._chartModel=t,this._points=null}function g(e,t,r){s.call(this,e,t),this._image=c("price_label",i("Pyj3")),this._rendererCache={},this._priceLabelRenderer=new v(this._rendererCache,t),this._renderer=null}inherit(v,f),v.prototype.setData=function(e){this._data=e,this._points=e.points},v.prototype._drawImpl=function(e){if(null!==this._data&&null!==this._points&&0!==this._points.length){e.font=[this._data.fontWeight,this._data.fontSize+"px",this._data.fontFamily].join(" ");var t=e.measureText(this._data.label);t.height=this._data.fontSize;var i=10,r=5,n=t.width+2*i,a=t.height+2*r,o=this._points[0].x- -9,s=this._points[0].y-(a+15);e.textAlign=_()?"right":"left";var l=p(e,t.width);this._measureCache&&Object.assign(this._measureCache,{innerWidth:n,innerHeight:a,tailLeft:-9,tailHeight:15}),e.translate(.5+o,.5+s),e.beginPath(),e.moveTo(12,a),e.lineTo(-9,a+15),e.lineTo(-10,a+15-1),e.lineTo(5,a),e.lineTo(3,a),e.arcTo(0,a,0,0,3),e.lineTo(0,3),e.arcTo(0,0,n,0,3),e.lineTo(n-3,0),e.arcTo(n,0,n,a,3),e.lineTo(n,a-3),e.arcTo(n,a,0,a,3),e.lineTo(12,a),e.fillStyle=u.generateColor(this._data.backgroundColor,this._data.transparency),e.fill(),e.strokeStyle=this._data.borderColor,e.lineWidth=2,e.stroke(),e.closePath(),e.textBaseline="alphabetic",e.fillStyle=this._data.color,e.fillText(this._data.label,i+l,a/2+Math.floor(.35*this._data.fontSize)),e.translate(-.5,-.5),e.beginPath(),e.arc(-9,a+15,2.5,0,2*Math.PI,!1),e.fillStyle=u.generateColor(this._data.borderColor,this._data.transparency),e.fill(),e.strokeStyle=this._chartModel.backgroundColor().value(),e.lineWidth=1,e.stroke(),e.closePath()}},v.prototype.hitTest=function(e){if(null===this._data||null===this._points||0===this._points.length)return null;var t=this._points[0].x-this._measureCache.tailLeft,i=this._points[0].y-(this._measureCache.innerHeight+this._measureCache.tailHeight),r=a(new n(t,i),new n(t+this._measureCache.innerWidth,i+this._measureCache.innerHeight));return o(e,r)?new h(h.MOVEPOINT):null},inherit(g,s),g.prototype._updateImpl=function(){if(s.prototype._updateImpl.call(this),this._renderer=null,this._source.points().length>0){var e=this._source.points()[0].price,t=this._source.priceScale();if(!t||t.isEmpty())return;var i=this._source.ownerSource().firstValue();this._priceLabel=t.formatPrice(e,i)}var r={};if(r.points=this._points,r.borderColor=this._source.properties().borderColor.value(),
r.fontSize=this._source.properties().fontsize.value(),r.fontFamily=this._source.properties().font.value(),r.transparency=this._source.properties().transparency.value(),r.label=this._priceLabel,r.image=this._image,this._priceLabelRenderer.setData(r),1===r.points.length){var n=new d;return n.append(this._priceLabelRenderer),n.append(new l({points:r.points,bgColors:this._lineAnchorColors(r.points),visible:this.areAnchorsVisible()})),void(this._renderer=n)}this._renderer=this._priceLabelRenderer},g.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.PriceLabelPaneView=g},Pyj3:function(e,t,i){e.exports=i.p+"6bbe99469a47c58a056f32085bbdfc26.png"},QA6D:function(e,t,i){"use strict";i.r(t),i.d(t,"EllipseRendererSimple",(function(){return h}));var r=i("mrSG"),n=i("VdBB"),a=i("Hr11"),o=i("aO4+"),s=i("Tmoa"),l=i("jFln"),h=function(e){function t(t,i,r){var a=e.call(this)||this;return a._data=t,a._hitTest=i||new n.HitTestResult(n.HitTestResult.MOVEPOINT),a._backgroundHitTest=r||new n.HitTestResult(n.HitTestResult.MOVEPOINT_BACKGROUND),a}return Object(r.c)(t,e),t.prototype.hitTest=function(e){if(this._data.points.length<2)return null;var t=this._data.points[0],i=this._data.points[1],r=.5*Math.abs(t.x-i.x),n=Math.abs(t.x-i.x),s=Math.abs(t.y-i.y),l=t.add(i).scaled(.5),h=e.subtract(l);if(n<1||s<1)return null;var d=(i.y-t.y)/(i.x-t.x),c=(h=new o.Point(h.x,h.y/d)).x*h.x+h.y*h.y-r*r;return c=Object(a.sign)(c)*Math.sqrt(Math.abs(c/r)),Math.abs(c)<3?this._hitTest:this._data.fillBackground&&!this._data.noHitTestOnBackground&&c<3?this._backgroundHitTest:null},t.prototype._drawImpl=function(e){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,void 0!==this._data.linestyle&&Object(l.setLineStyle)(e,this._data.linestyle);var t=this._data.points[0],i=this._data.points[1],r=Math.abs(t.x-i.x),n=Math.abs(t.y-i.y),a=t.add(i).scaled(.5);if(!(r<1||n<1)){var o=0;if(this._data.wholePoints){var h=this._data.wholePoints[0],d=this._data.wholePoints[1];o=Math.abs(h.x-d.x)}e.save(),e.translate(a.x,a.y),e.scale(1,n/r),e.beginPath(),e.arc(0,0,r/2,0,2*Math.PI,!1),e.restore(),e.stroke(),this._data.fillBackground&&(this._data.wholePoints&&(e.translate(a.x,a.y),e.scale(1,n/r),e.arc(0,0,o/2,0,2*Math.PI,!0)),e.fillStyle=Object(s.generateColor)(this._data.backcolor,this._data.transparency,!0),e.fill())}},t}(i("cPgM").ScaledPaneRenderer)},QPcX:function(e,t,i){"use strict";i.r(t),i.d(t,"LetterInCircleRenderer",(function(){return s}));var r=i("aO4+"),n=i("f6yo"),a=i("ikwP"),o=i("XlJ7"),s=function(){function e(e,t){this._data=e,this._hitTestResult=t}return e.prototype.hitTest=function(e){var t=this._center(),i=this._data.circleRadius,a={min:new r.Point(t.x-i,t.y-i),max:new r.Point(t.x+i,t.y+i)};return Object(n.pointInBox)(e,a)?this._hitTestResult:null},e.prototype.draw=function(e,t){var i=this;e.save();var r=t.pixelRatio,n=Math.max(1,Math.floor(r))%2/2,s=this._center(),l=Math.round(s.x*r)+n,h=Math.round(s.y*r)+n;if(this._data.showCircle){ r.backgroundColor=this._source.properties().backgroundColor.value(),r.color=this._source.properties().color.value(),r.fontWeight=this._source.properties().fontWeight.value(),r.fontSize=this._source.properties().fontsize.value(),r.fontFamily=this._source.properties().font.value(),r.transparency=this._source.properties().transparency.value(),r.label=this._priceLabel,r.image=this._image,this._priceLabelRenderer.setData(r),1===r.points.length){var n=new d;return n.append(this._priceLabelRenderer),n.append(new l({points:r.points,bgColors:this._lineAnchorColors(r.points),visible:this.areAnchorsVisible()})),void(this._renderer=n)}this._renderer=this._priceLabelRenderer},g.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.PriceLabelPaneView=g},Pyj3:function(e,t,i){e.exports=i.p+"6bbe99469a47c58a056f32085bbdfc26.png"},QA6D:function(e,t,i){"use strict";i.r(t),i.d(t,"EllipseRendererSimple",(function(){return h}));var r=i("mrSG"),n=i("VdBB"),a=i("Hr11"),o=i("aO4+"),s=i("Tmoa"),l=i("jFln"),h=function(e){function t(t,i,r){var a=e.call(this)||this;return a._data=t,a._hitTest=i||new n.HitTestResult(n.HitTestResult.MOVEPOINT),a._backgroundHitTest=r||new n.HitTestResult(n.HitTestResult.MOVEPOINT_BACKGROUND),a}return Object(r.c)(t,e),t.prototype.hitTest=function(e){if(this._data.points.length<2)return null;var t=this._data.points[0],i=this._data.points[1],r=.5*Math.abs(t.x-i.x),n=Math.abs(t.x-i.x),s=Math.abs(t.y-i.y),l=t.add(i).scaled(.5),h=e.subtract(l);if(n<1||s<1)return null;var d=(i.y-t.y)/(i.x-t.x),c=(h=new o.Point(h.x,h.y/d)).x*h.x+h.y*h.y-r*r;return c=Object(a.sign)(c)*Math.sqrt(Math.abs(c/r)),Math.abs(c)<3?this._hitTest:this._data.fillBackground&&!this._data.noHitTestOnBackground&&c<3?this._backgroundHitTest:null},t.prototype._drawImpl=function(e){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,void 0!==this._data.linestyle&&Object(l.setLineStyle)(e,this._data.linestyle);var t=this._data.points[0],i=this._data.points[1],r=Math.abs(t.x-i.x),n=Math.abs(t.y-i.y),a=t.add(i).scaled(.5);if(!(r<1||n<1)){var o=0;if(this._data.wholePoints){var h=this._data.wholePoints[0],d=this._data.wholePoints[1];o=Math.abs(h.x-d.x)}e.save(),e.translate(a.x,a.y),e.scale(1,n/r),e.beginPath(),e.arc(0,0,r/2,0,2*Math.PI,!1),e.restore(),e.stroke(),this._data.fillBackground&&(this._data.wholePoints&&(e.translate(a.x,a.y),e.scale(1,n/r),e.arc(0,0,o/2,0,2*Math.PI,!0)),e.fillStyle=Object(s.generateColor)(this._data.backcolor,this._data.transparency,!0),e.fill())}},t}(i("cPgM").ScaledPaneRenderer)},QPcX:function(e,t,i){"use strict";i.r(t),i.d(t,"LetterInCircleRenderer",(function(){return s}));var r=i("aO4+"),n=i("f6yo"),a=i("ikwP"),o=i("XlJ7"),s=function(){function e(e,t){this._data=e,this._hitTestResult=t}return e.prototype.hitTest=function(e){var t=this._center(),i=this._data.circleRadius,a={min:new r.Point(t.x-i,t.y-i),max:new r.Point(t.x+i,t.y+i)};return Object(n.pointInBox)(e,a)?this._hitTestResult:null},e.prototype.draw=function(e,t){var i=this;e.save()
var d=Math.round(l+this._data.circleRadius*r)-l-this._data.circleBorderWidth*r/2;e.strokeStyle=this._data.color,e.lineWidth=this._data.circleBorderWidth*r,e.beginPath(),e.moveTo(l+d,h),e.arc(l,h,d,0,2*Math.PI,!1),e.stroke()}e.font=Object(o.makeFont)(this._data.fontSize,this._data.font,this._data.bold?"bold":void 0),e.textBaseline="middle",e.textAlign="center",e.fillStyle=this._data.color,Object(a.drawScaled)(e,r,(function(){e.fillText(i._data.letter,l/r,h/r+.05*i._data.fontSize)})),e.restore()},e.prototype._center=function(){var e="bottom"===this._data.vertAlign?-1:1,t=this._data.point.y+e*this._data.yOffset+e*this._data.circleRadius,i=this._data.point.x;return new r.Point(i,t)},e}()},Qa6j:function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("aB9a"),a=i("Zy3/"),o=i("qgcf"),s=i("aO4+"),l=i("VaSN"),h=i("cPgM"),d=i("VdBB");function c(e){if(e<92)return 18;var t=.25*e;return t=Math.min(t,106),t=Math.max(t,18),t=Math.min(t,.9*e)}var u=function(e){function t(t){var i=e.call(this)||this;return i._data=t,i}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e){if(this._data.points.length<2)return null;var t=this._data.points[0],i=this._data.points[1].subtract(t),r=i.length();(i=this._data.points[1].subtract(this._data.points[0])).length()<22&&(t=this._data.points[1].addScaled(i.normalized(),-22),i=this._data.points[1].subtract(t));var n=e.subtract(t),a=i.dotProduct(n)/r;if(a<0||a>r)return null;for(var o=i.scaled(1/r),s=t.addScaled(o,a),h=e.subtract(s),c=Object(l.lastEventIsTouch)()?24:3,u=this._hittestGeometry(r),p=u.length-2;p>=0;p--){var _=u[p];if(a>=_.x){var f=u[p+1],v=f.x-_.x,g=f.y-_.y,y=(a-_.x)/v,w=_.y+g*y;return h.length()<=w+c?new d.HitTestResult(d.HitTestResult.MOVEPOINT):null}}return h.length()<3?new d.HitTestResult(d.HitTestResult.MOVEPOINT):null},t.prototype._drawImpl=function(e){if(!(this._data.points.length<2)){e.fillStyle=this._data.color,e.strokeStyle=this._data.color,e.lineJoin="round",e.lineCap="round";var t=this._data.points[1].subtract(this._data.points[0]),i=t.length(),r=this._data.points[0];i<22&&(r=this._data.points[1].addScaled(t.normalized(),-22),t=this._data.points[1].subtract(r));var n,a,o=new s.Point(t.y,-t.x).normalized(),l=this._arrowGeometry(t.length()),h=t.normalized();e.lineWidth=(n=t.length(),a=Math.round(.02*n),a=Math.min(a,5),a=Math.max(a,2)),e.beginPath(),e.moveTo(r.x,r.y);for(var d=0;d<l.length;d++){var c=l[d],u=r.addScaled(h,c.x).addScaled(o,c.y);e.lineTo(u.x,u.y)}e.lineTo(this._data.points[1].x,this._data.points[1].y);for(d=l.length-1;d>=0;d--){c=l[d],u=r.addScaled(h,c.x).addScaled(o,-c.y);e.lineTo(u.x,u.y)}e.lineTo(r.x,r.y),e.stroke(),e.fill()}},t.prototype._arrowGeometry=function(e){var t=c(e),i=[],r=e>=35?.1:0;return i.push(new s.Point(0,0)),i.push(new s.Point(e-t+t*r,1.22*t/4)),i.push(new s.Point(e-t,1.22*t/2)),i.push(new s.Point(e,0)),i},t.prototype._hittestGeometry=function(e){var t=c(e),i=[];return i.push(new s.Point(0,0)),i.push(new s.Point(e-t,1.22*t/4)),i.push(new s.Point(e-t,1.22*t/2)),i.push(new s.Point(e,0)),i},t ;var r=t.pixelRatio,n=Math.max(1,Math.floor(r))%2/2,s=this._center(),l=Math.round(s.x*r)+n,h=Math.round(s.y*r)+n;if(this._data.showCircle){var d=Math.round(l+this._data.circleRadius*r)-l-this._data.circleBorderWidth*r/2;e.strokeStyle=this._data.color,e.lineWidth=this._data.circleBorderWidth*r,e.beginPath(),e.moveTo(l+d,h),e.arc(l,h,d,0,2*Math.PI,!1),e.stroke()}e.font=Object(o.makeFont)(this._data.fontSize,this._data.font,this._data.bold?"bold":void 0),e.textBaseline="middle",e.textAlign="center",e.fillStyle=this._data.color,Object(a.drawScaled)(e,r,(function(){e.fillText(i._data.letter,l/r,h/r+.05*i._data.fontSize)})),e.restore()},e.prototype._center=function(){var e="bottom"===this._data.vertAlign?-1:1,t=this._data.point.y+e*this._data.yOffset+e*this._data.circleRadius,i=this._data.point.x;return new r.Point(i,t)},e}()},Qa6j:function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("aB9a"),a=i("Zy3/"),o=i("qgcf"),s=i("aO4+"),l=i("VaSN"),h=i("cPgM"),d=i("VdBB");function c(e){if(e<92)return 18;var t=.25*e;return t=Math.min(t,106),t=Math.max(t,18),t=Math.min(t,.9*e)}var u=function(e){function t(t){var i=e.call(this)||this;return i._data=t,i}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e){if(this._data.points.length<2)return null;var t=this._data.points[0],i=this._data.points[1].subtract(t),r=i.length();(i=this._data.points[1].subtract(this._data.points[0])).length()<22&&(t=this._data.points[1].addScaled(i.normalized(),-22),i=this._data.points[1].subtract(t));var n=e.subtract(t),a=i.dotProduct(n)/r;if(a<0||a>r)return null;for(var o=i.scaled(1/r),s=t.addScaled(o,a),h=e.subtract(s),c=Object(l.lastEventIsTouch)()?24:3,u=this._hittestGeometry(r),p=u.length-2;p>=0;p--){var _=u[p];if(a>=_.x){var f=u[p+1],v=f.x-_.x,g=f.y-_.y,y=(a-_.x)/v,w=_.y+g*y;return h.length()<=w+c?new d.HitTestResult(d.HitTestResult.MOVEPOINT):null}}return h.length()<3?new d.HitTestResult(d.HitTestResult.MOVEPOINT):null},t.prototype._drawImpl=function(e){if(!(this._data.points.length<2)){e.fillStyle=this._data.color,e.strokeStyle=this._data.color,e.lineJoin="round",e.lineCap="round";var t=this._data.points[1].subtract(this._data.points[0]),i=t.length(),r=this._data.points[0];i<22&&(r=this._data.points[1].addScaled(t.normalized(),-22),t=this._data.points[1].subtract(r));var n,a,o=new s.Point(t.y,-t.x).normalized(),l=this._arrowGeometry(t.length()),h=t.normalized();e.lineWidth=(n=t.length(),a=Math.round(.02*n),a=Math.min(a,5),a=Math.max(a,2)),e.beginPath(),e.moveTo(r.x,r.y);for(var d=0;d<l.length;d++){var c=l[d],u=r.addScaled(h,c.x).addScaled(o,c.y);e.lineTo(u.x,u.y)}e.lineTo(this._data.points[1].x,this._data.points[1].y);for(d=l.length-1;d>=0;d--){c=l[d],u=r.addScaled(h,c.x).addScaled(o,-c.y);e.lineTo(u.x,u.y)}e.lineTo(r.x,r.y),e.stroke(),e.fill()}},t.prototype._arrowGeometry=function(e){var t=c(e),i=[],r=e>=35?.1:0;return i.push(new s.Point(0,0)),i.push(new s.Point(e-t+t*r,1.22*t/4)),i.push(new s.Point(e-t,1.22*t/2)),i.push(new s.Point(e,0)),i},t.prototype._hittestGeometry=function(e){var t=c(e),i=[]
}(h.ScaledPaneRenderer),p=i("QA6D");i.d(t,"ArrowMarkerPaneView",(function(){return _}));var _=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._textRendererData={text:"",color:"",vertAlign:"middle",horzAlign:"center",font:"",offsetX:10,offsetY:10,points:[],forceTextAlign:!0},r._arrowRendererData={points:[],color:""},r._ellipseRendererData={color:"",linewidth:0,points:[],fillBackground:!0,backcolor:"",noHitTestOnBackground:!0},r._drawAsCircle=!1,r._textRenderer=new o.TextRenderer(r._textRendererData),r._arrowRenderer=new u(r._arrowRendererData),r._ellipseRenderer=new p.EllipseRendererSimple(r._ellipseRendererData),r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){this._invalidated&&this._updateImpl();var i=new a.CompositeRenderer;this._drawAsCircle?i.append(this._ellipseRenderer):i.append(this._arrowRenderer);var n=this._getSource().properties();return this._textRendererData.points&&this._textRendererData.points.length>0&&n.showLabel.value()&&(this._textRenderer.setData(Object(r.a)({},this._textRendererData)),i.append(this._textRenderer)),this.addAnchors(i),i},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this);var t=this._getPoints(),i=this._getSource().properties();if(this._arrowRendererData.color=i.backgroundColor.value(),this._arrowRendererData.points=t,this._textRendererData.text=i.text.value(),this._textRendererData.color=i.textColor.value(),this._textRendererData.font=i.font.value(),this._textRendererData.bold=i.bold.value(),this._textRendererData.italic=i.italic.value(),this._textRendererData.fontsize=i.fontsize.value(),t.length>=2){var r=this._getSource().points(),n=r[0].index-r[1].index,a=r[0].price-r[1].price;if(this._drawAsCircle=0===n&&Math.abs(a)<1e-8,this._textRendererData.points=[t[0]],this._drawAsCircle){this._textRendererData.horzAlign="left",this._textRendererData.vertAlign="middle";var o=new s.Point(t[0].x-9,t[0].y-9),l=new s.Point(t[0].x+9,t[0].y+9);this._ellipseRendererData.points=[o,l],this._ellipseRendererData.backcolor=i.backgroundColor.value(),this._ellipseRendererData.color=i.backgroundColor.value()}else{var h=t[1].subtract(t[0]);Math.abs(h.x)>=Math.abs(h.y)?(t[1].x>t[0].x?this._textRendererData.horzAlign="right":this._textRendererData.horzAlign="left",this._textRendererData.vertAlign="middle"):(t[1].y>t[0].y?this._textRendererData.vertAlign="bottom":this._textRendererData.vertAlign="top",this._textRendererData.horzAlign="center")}}},t}(n.LineSourcePaneView)},R7Bt:function(e,t,i){"use strict";var r=i("Eyy1").ensureNotNull,n=i("aO4+").Point,a=i("IjC5").RectangleRenderer,o=i("pJOz").TrendLineRenderer,s=i("cjIn").PaneRendererCachedImage,l=i("VdBB").HitTestResult,h=i("Zy3/").CompositeRenderer,d=i("a7Ha").LineEnd,c=i("d1Pk").fibLevelCoordinate,u=i("NCfL").LineToolPaneViewWithLevelledTextCache;function p(e,t){u.call(this,e,t),this._rendererCache={},this._trendLineRenderer=new o,this._renderer=null}inherit(p,u),p.prototype.getCacheRects=function(e,t){if(u.prototype.getCacheRects.call(this,e,i),!this._cacheState.preparedCells)return null ;return i.push(new s.Point(0,0)),i.push(new s.Point(e-t,1.22*t/4)),i.push(new s.Point(e-t,1.22*t/2)),i.push(new s.Point(e,0)),i},t}(h.ScaledPaneRenderer),p=i("QA6D");i.d(t,"ArrowMarkerPaneView",(function(){return _}));var _=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._textRendererData={text:"",color:"",vertAlign:"middle",horzAlign:"center",font:"",offsetX:10,offsetY:10,points:[],forceTextAlign:!0},r._arrowRendererData={points:[],color:""},r._ellipseRendererData={color:"",linewidth:0,points:[],fillBackground:!0,backcolor:"",noHitTestOnBackground:!0},r._drawAsCircle=!1,r._textRenderer=new o.TextRenderer(r._textRendererData),r._arrowRenderer=new u(r._arrowRendererData),r._ellipseRenderer=new p.EllipseRendererSimple(r._ellipseRendererData),r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){this._invalidated&&this._updateImpl();var i=new a.CompositeRenderer;this._drawAsCircle?i.append(this._ellipseRenderer):i.append(this._arrowRenderer);var n=this._getSource().properties();return this._textRendererData.points&&this._textRendererData.points.length>0&&n.showLabel.value()&&(this._textRenderer.setData(Object(r.a)({},this._textRendererData)),i.append(this._textRenderer)),this.addAnchors(i),i},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this);var t=this._getPoints(),i=this._getSource().properties();if(this._arrowRendererData.color=i.backgroundColor.value(),this._arrowRendererData.points=t,this._textRendererData.text=i.text.value(),this._textRendererData.color=i.textColor.value(),this._textRendererData.font=i.font.value(),this._textRendererData.bold=i.bold.value(),this._textRendererData.italic=i.italic.value(),this._textRendererData.fontsize=i.fontsize.value(),t.length>=2){var r=this._getSource().points(),n=r[0].index-r[1].index,a=r[0].price-r[1].price;if(this._drawAsCircle=0===n&&Math.abs(a)<1e-8,this._textRendererData.points=[t[0]],this._drawAsCircle){this._textRendererData.horzAlign="left",this._textRendererData.vertAlign="middle";var o=new s.Point(t[0].x-9,t[0].y-9),l=new s.Point(t[0].x+9,t[0].y+9);this._ellipseRendererData.points=[o,l],this._ellipseRendererData.backcolor=i.backgroundColor.value(),this._ellipseRendererData.color=i.backgroundColor.value()}else{var h=t[1].subtract(t[0]);Math.abs(h.x)>=Math.abs(h.y)?(t[1].x>t[0].x?this._textRendererData.horzAlign="right":this._textRendererData.horzAlign="left",this._textRendererData.vertAlign="middle"):(t[1].y>t[0].y?this._textRendererData.vertAlign="bottom":this._textRendererData.vertAlign="top",this._textRendererData.horzAlign="center")}}},t}(n.LineSourcePaneView)},R7Bt:function(e,t,i){"use strict";var r=i("Eyy1").ensureNotNull,n=i("aO4+").Point,a=i("IjC5").RectangleRenderer,o=i("pJOz").TrendLineRenderer,s=i("cjIn").PaneRendererCachedImage,l=i("VdBB").HitTestResult,h=i("Zy3/").CompositeRenderer,d=i("a7Ha").LineEnd,c=i("d1Pk").fibLevelCoordinate,u=i("NCfL").LineToolPaneViewWithLevelledTextCache;function p(e,t){u.call(this,e,t),this._rendererCache={},this._trendLineRenderer=new o,this._renderer=null}inherit(p,u),
;var i=this._levels[t].index-1,a=this._cacheState.preparedCells.cells[i];if(!a)return null;var o=this._points[0],s=this._points[1],l=Math.min(o.x,s.x),h=Math.max(o.x,s.x);o=new n(l,this._levels[t].y),s=new n(h,this._levels[t].y);var d,c=this._source.properties(),p=c.extendLines.value()?this._model.timeScale().width():h,_=r(this._cache);switch(c.horzLabelsAlign.value()){case"left":d=o;break;case"center":(d=o.add(s).scaled(.5)).x+=a.width/2,d.x=Math.round(d.x);break;case"right":c.extendLines.value()?d=new n(p-4,this._levels[t].y):((d=new n(p+4,this._levels[t].y)).x+=a.width,d.x=Math.round(d.x))}var f={left:a.left,top:_.topByRow(this._cacheState.row),width:a.width,height:_.rowHeight(this._cacheState.row)},v={left:d.x-f.width,top:d.y,width:a.width,height:f.height},g=c.vertLabelsAlign.value();return"middle"===g&&(v.top-=v.height/2),"bottom"===g&&(v.top-=v.height),{cacheRect:f,targetRect:v}},p.prototype._updateImpl=function(){if(u.prototype._updateImpl.call(this),this._renderer=null,!(this._source.points().length<2)){var e=this._source.priceScale();if(e&&!e.isEmpty()&&!this._model.timeScale().isEmpty()){var t=this._source.ownerSource().firstValue();if(null!=t){var i=this._source.points()[0],r=this._source.points()[1],p=!1;(C=this._source.properties()).reverse&&C.reverse.value()&&(p=C.reverse.value()),this._levels=[];var _,f,v=p?i.price:r.price,g=p?r.price:i.price,y=g-v,w=e.isLog()&&C.fibLevelsBasedOnLogScale.value();if(w)_=e.priceToCoordinate(v,t),f=e.priceToCoordinate(g,t)-_;for(var m={price:v,coordinate:_},x={price:y,coordinate:f},b=this._source.levelsCount(),R=1;R<=b;R++){var T=C["level"+R];if(T.visible.value()){var S=T.coeff.value(),P=T.color.value(),L=c(m,x,S,e,t,w);this._levels.push({color:P,y:L,linewidth:C.levelsStyle.linewidth.value(),linestyle:C.levelsStyle.linestyle.value(),index:R})}}if(!(this._points.length<2)){var C,M=new h,I=(i=this._points[0],r=this._points[1],Math.min(i.x,r.x)),O=Math.max(i.x,r.x),D=(C=this._source.properties()).fillBackground.value(),k=C.transparency.value(),N=C.extendLinesLeft.value(),B=C.extendLines.value();if(D)for(R=0;R<this._levels.length;R++)if(R>0&&D){var A=this._levels[R-1],j=(i=new n(I,this._levels[R].y),r=new n(O,A.y),{});j.points=[i,r],j.color=this._levels[R].color,j.linewidth=0,j.backcolor=this._levels[R].color,j.fillBackground=!0,j.transparency=k,j.extendLeft=N,j.extendRight=B,(V=new a(void 0,void 0,!0)).setData(j),M.append(V)}var E=I,z=O;E===z&&(N&&(E-=1),B&&(z+=1));for(R=0;R<this._levels.length;R++){var V,H={points:[i=new n(E,this._levels[R].y),r=new n(z,this._levels[R].y)],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._levels[R].color,linewidth:this._levels[R].linewidth,linestyle:this._levels[R].linestyle,extendleft:N,extendright:B,leftend:d.Normal,rightend:d.Normal};if((V=new o).setData(H),V.setHitTest(new l(l.MOVEPOINT,null,this._levels[R].index)),M.append(V),C.showCoeffs.value()||C.showPrices.value()){var W=new s(this,R);M.append(W)}}if(C.trendline.visible.value()){H={points:[this._points[0],this._points[1]], p.prototype.getCacheRects=function(e,t){if(u.prototype.getCacheRects.call(this,e,i),!this._cacheState.preparedCells)return null;var i=this._levels[t].index-1,a=this._cacheState.preparedCells.cells[i];if(!a)return null;var o=this._points[0],s=this._points[1],l=Math.min(o.x,s.x),h=Math.max(o.x,s.x);o=new n(l,this._levels[t].y),s=new n(h,this._levels[t].y);var d,c=this._source.properties(),p=c.extendLines.value()?this._model.timeScale().width():h,_=r(this._cache);switch(c.horzLabelsAlign.value()){case"left":d=o;break;case"center":(d=o.add(s).scaled(.5)).x+=a.width/2,d.x=Math.round(d.x);break;case"right":c.extendLines.value()?d=new n(p-4,this._levels[t].y):((d=new n(p+4,this._levels[t].y)).x+=a.width,d.x=Math.round(d.x))}var f={left:a.left,top:_.topByRow(this._cacheState.row),width:a.width,height:_.rowHeight(this._cacheState.row)},v={left:d.x-f.width,top:d.y,width:a.width,height:f.height},g=c.vertLabelsAlign.value();return"middle"===g&&(v.top-=v.height/2),"bottom"===g&&(v.top-=v.height),{cacheRect:f,targetRect:v}},p.prototype._updateImpl=function(){if(u.prototype._updateImpl.call(this),this._renderer=null,!(this._source.points().length<2)){var e=this._source.priceScale();if(e&&!e.isEmpty()&&!this._model.timeScale().isEmpty()){var t=this._source.ownerSource().firstValue();if(null!=t){var i=this._source.points()[0],r=this._source.points()[1],p=!1;(C=this._source.properties()).reverse&&C.reverse.value()&&(p=C.reverse.value()),this._levels=[];var _,f,v=p?i.price:r.price,g=p?r.price:i.price,y=g-v,w=e.isLog()&&C.fibLevelsBasedOnLogScale.value();if(w)_=e.priceToCoordinate(v,t),f=e.priceToCoordinate(g,t)-_;for(var m={price:v,coordinate:_},x={price:y,coordinate:f},b=this._source.levelsCount(),R=1;R<=b;R++){var T=C["level"+R];if(T.visible.value()){var S=T.coeff.value(),P=T.color.value(),L=c(m,x,S,e,t,w);this._levels.push({color:P,y:L,linewidth:C.levelsStyle.linewidth.value(),linestyle:C.levelsStyle.linestyle.value(),index:R})}}if(!(this._points.length<2)){var C,M=new h,I=(i=this._points[0],r=this._points[1],Math.min(i.x,r.x)),O=Math.max(i.x,r.x),D=(C=this._source.properties()).fillBackground.value(),k=C.transparency.value(),B=C.extendLinesLeft.value(),N=C.extendLines.value();if(D)for(R=0;R<this._levels.length;R++)if(R>0&&D){var A=this._levels[R-1],j=(i=new n(I,this._levels[R].y),r=new n(O,A.y),{});j.points=[i,r],j.color=this._levels[R].color,j.linewidth=0,j.backcolor=this._levels[R].color,j.fillBackground=!0,j.transparency=k,j.extendLeft=B,j.extendRight=N,(V=new a(void 0,void 0,!0)).setData(j),M.append(V)}var z=I,E=O;z===E&&(B&&(z-=1),N&&(E+=1));for(R=0;R<this._levels.length;R++){var V,H={points:[i=new n(z,this._levels[R].y),r=new n(E,this._levels[R].y)],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._levels[R].color,linewidth:this._levels[R].linewidth,linestyle:this._levels[R].linestyle,extendleft:B,extendright:N,leftend:d.Normal,rightend:d.Normal};if((V=new o).setData(H),V.setHitTest(new l(l.MOVEPOINT,null,this._levels[R].index)),M.append(V),C.showCoeffs.value()||C.showPrices.value()){
width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:C.trendline.color.value(),linewidth:C.trendline.linewidth.value(),linestyle:C.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal};this._trendLineRenderer.setData(H),M.append(this._trendLineRenderer)}this.addAnchors(M),this._renderer=M}}}}},p.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.FibRetracementPaneView=p},S6aM:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolThreeDrivesPaneView",(function(){return c}));var r=i("mrSG"),n=i("8Uy/"),a=i("Zy3/"),o=i("qgcf"),s=i("zXvd"),l=i("pJOz"),h=i("a7Ha"),d=i("BCbF"),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._numericFormatter=new s.NumericFormatter,t._retrace1LabelRenderer=new o.TextRenderer,t._retrace12LabelRenderer=new o.TextRenderer,t._polyLineRenderer=new d.PolygonRenderer(null),t._renderer=null,t}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this),this._renderer=null;var t=NaN,i=NaN;if(this._source.points().length>=4){var r=this._source.points(),o=r[1],s=r[2],d=r[3];t=Math.round(100*Math.abs((d.price-s.price)/(s.price-o.price)))/100}if(this._source.points().length>=6){var c=this._source.points(),u=(d=c[3],c[4]),p=c[5];i=Math.round(100*Math.abs((p.price-u.price)/(u.price-d.price)))/100}if(!(this._points.length<2)){var _=this._source.properties().childs(),f=new a.CompositeRenderer,v=function(e,t){return{points:[e],text:t,color:_.textcolor.value(),vertAlign:"middle",horzAlign:"center",font:_.font.value(),offsetX:0,offsetY:0,bold:_.bold&&_.bold.value(),italic:_.italic&&_.italic.value(),fontsize:_.fontsize.value(),backgroundColor:_.color.value(),backgroundRoundRect:4}},g=function(e,t){return{points:[e,t],color:_.color.value(),linewidth:_.linewidth.value(),linestyle:n.LINESTYLE_DOTTED,extendleft:!1,extendright:!1,leftend:h.LineEnd.Normal,rightend:h.LineEnd.Normal}},y={points:this._points,color:_.color.value(),linewidth:_.linewidth.value(),linestyle:n.LINESTYLE_SOLID,leftend:h.LineEnd.Normal,rightend:h.LineEnd.Normal,backcolor:"rgba(0, 0, 0, 0)",fillBackground:!1,filled:!1};if(this._polyLineRenderer.setData(y),f.append(this._polyLineRenderer),!isNaN(t)){(m=new l.TrendLineRenderer).setData(g(this._points[1],this._points[3])),f.append(m);var w=v(this._points[1].add(this._points[3]).scaled(.5),this._numericFormatter.format(t));this._retrace1LabelRenderer.setData(w),f.append(this._retrace1LabelRenderer)}if(!isNaN(i)){var m;(m=new l.TrendLineRenderer).setData(g(this._points[3],this._points[5])),f.append(m);w=v(this._points[5].add(this._points[3]).scaled(.5),this._numericFormatter.format(i));this._retrace12LabelRenderer.setData(w),f.append(this._retrace12LabelRenderer)}this.addAnchors(f),this._renderer=f}},t}(i("aB9a").LineSourcePaneView)},SvjA:function(e,t,i){"use strict" var W=new s(this,R);M.append(W)}}if(C.trendline.visible.value()){H={points:[this._points[0],this._points[1]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:C.trendline.color.value(),linewidth:C.trendline.linewidth.value(),linestyle:C.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal};this._trendLineRenderer.setData(H),M.append(this._trendLineRenderer)}this.addAnchors(M),this._renderer=M}}}}},p.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.FibRetracementPaneView=p},S6aM:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolThreeDrivesPaneView",(function(){return c}));var r=i("mrSG"),n=i("8Uy/"),a=i("Zy3/"),o=i("qgcf"),s=i("zXvd"),l=i("pJOz"),h=i("a7Ha"),d=i("BCbF"),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._numericFormatter=new s.NumericFormatter,t._retrace1LabelRenderer=new o.TextRenderer,t._retrace12LabelRenderer=new o.TextRenderer,t._polyLineRenderer=new d.PolygonRenderer(null),t._renderer=null,t}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this),this._renderer=null;var t=NaN,i=NaN;if(this._source.points().length>=4){var r=this._source.points(),o=r[1],s=r[2],d=r[3];t=Math.round(100*Math.abs((d.price-s.price)/(s.price-o.price)))/100}if(this._source.points().length>=6){var c=this._source.points(),u=(d=c[3],c[4]),p=c[5];i=Math.round(100*Math.abs((p.price-u.price)/(u.price-d.price)))/100}if(!(this._points.length<2)){var _=this._source.properties().childs(),f=new a.CompositeRenderer,v=function(e,t){return{points:[e],text:t,color:_.textcolor.value(),vertAlign:"middle",horzAlign:"center",font:_.font.value(),offsetX:0,offsetY:0,bold:_.bold&&_.bold.value(),italic:_.italic&&_.italic.value(),fontsize:_.fontsize.value(),backgroundColor:_.color.value(),backgroundRoundRect:4}},g=function(e,t){return{points:[e,t],color:_.color.value(),linewidth:_.linewidth.value(),linestyle:n.LINESTYLE_DOTTED,extendleft:!1,extendright:!1,leftend:h.LineEnd.Normal,rightend:h.LineEnd.Normal}},y={points:this._points,color:_.color.value(),linewidth:_.linewidth.value(),linestyle:n.LINESTYLE_SOLID,leftend:h.LineEnd.Normal,rightend:h.LineEnd.Normal,backcolor:"rgba(0, 0, 0, 0)",fillBackground:!1,filled:!1};if(this._polyLineRenderer.setData(y),f.append(this._polyLineRenderer),!isNaN(t)){(m=new l.TrendLineRenderer).setData(g(this._points[1],this._points[3])),f.append(m);var w=v(this._points[1].add(this._points[3]).scaled(.5),this._numericFormatter.format(t));this._retrace1LabelRenderer.setData(w),f.append(this._retrace1LabelRenderer)}if(!isNaN(i)){var m;(m=new l.TrendLineRenderer).setData(g(this._points[3],this._points[5])),f.append(m);w=v(this._points[5].add(this._points[3]).scaled(.5),this._numericFormatter.format(i));this._retrace12LabelRenderer.setData(w),f.append(this._retrace12LabelRenderer)}this.addAnchors(f),this._renderer=f}},t
;var r=i("aO4+").Point,n=i("z+cS").VerticalLineRenderer,a=i("aB9a").LineSourcePaneView,o=i("qgcf").TextRenderer,s=i("IjC5").RectangleRenderer,l=i("pJOz").TrendLineRenderer,h=i("VdBB").HitTestResult,d=i("Zy3/").CompositeRenderer,c=i("a7Ha").LineEnd;function u(e,t){a.call(this,e,t),this._trendLineRendererPoints12=new l,this._trendLineRendererPoints23=new l,this._renderer=null}inherit(u,a),u.prototype._updateImpl=function(){if(a.prototype._updateImpl.call(this),this._renderer=null,3===this._source.points().length){if(!this._source.priceScale()||this._source.priceScale().isEmpty()||this._model.timeScale().isEmpty())return;var e=this._source.points()[0],t=this._source.points()[1],i=this._source.points()[2];if(this._levels=[],t.index===e.index)return;var l=t.index-e.index,u=this._source.properties(),p=i.index;if(null===this._model.timeScale().visibleBarsStrictRange())return;for(var _=1;_<=11;_++){var f=u["level"+_];if(f.visible.value()){var v=f.coeff.value(),g=f.color.value(),y=Math.round(p+v*l),w={x:this._model.timeScale().indexToCoordinate(y),coeff:v,color:g,linewidth:f.linewidth.value(),linestyle:f.linestyle.value(),index:_};u.showCoeffs.value()&&(w.text=v,w.y=this._source.priceScale().height()),this._levels.push(w)}}}if(!(this._points.length<2)){var m=new d;e=this._points[0],t=this._points[1];if((u=this._source.properties()).trendline.visible.value()){var x={points:[e,t],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:u.trendline.color.value(),linewidth:u.trendline.linewidth.value(),linestyle:u.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal};this._trendLineRendererPoints12.setData(x),m.append(this._trendLineRendererPoints12)}if(this._points.length<3)return this.addAnchors(m),void(this._renderer=m);i=this._points[2];if(u.trendline.visible.value()){x={points:[t,i],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:u.trendline.color.value(),linewidth:u.trendline.linewidth.value(),linestyle:u.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal};this._trendLineRendererPoints23.setData(x),m.append(this._trendLineRendererPoints23)}var b=u.fillBackground.value(),R=u.transparency.value(),T=this._model.timeScale().width(),S=this._source.priceScale().height();if(b)for(_=1;_<this._levels.length;_++){var P=this._levels[_-1],L=(e=new r(P.x,0),t=new r(this._levels[_].x,this._source.priceScale().height()),{});L.points=[e,t],L.color=this._levels[_].color,L.linewidth=0,L.backcolor=this._levels[_].color,L.fillBackground=!0,L.transparency=R,L.extendLeft=!1,L.extendRight=!1,(D=new s(void 0,void 0,!0)).setData(L),m.append(D)}for(_=0;_<this._levels.length;_++){if(void 0!==this._levels[_].text){var C,M=u.horzLabelsAlign.value();switch(M="left"===M?"right":"right"===M?"left":"center",u.vertLabelsAlign.value()){case"top":C=new r(this._levels[_].x,0);break;case"middle":C=new r(this._levels[_].x,.5*this._levels[_].y);break;case"bottom":C=new r(this._levels[_].x,this._levels[_].y)}var I={ }(i("aB9a").LineSourcePaneView)},SvjA:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("z+cS").VerticalLineRenderer,a=i("aB9a").LineSourcePaneView,o=i("qgcf").TextRenderer,s=i("IjC5").RectangleRenderer,l=i("pJOz").TrendLineRenderer,h=i("VdBB").HitTestResult,d=i("Zy3/").CompositeRenderer,c=i("a7Ha").LineEnd;function u(e,t){a.call(this,e,t),this._trendLineRendererPoints12=new l,this._trendLineRendererPoints23=new l,this._renderer=null}inherit(u,a),u.prototype._updateImpl=function(){if(a.prototype._updateImpl.call(this),this._renderer=null,3===this._source.points().length){if(!this._source.priceScale()||this._source.priceScale().isEmpty()||this._model.timeScale().isEmpty())return;var e=this._source.points()[0],t=this._source.points()[1],i=this._source.points()[2];if(this._levels=[],t.index===e.index)return;var l=t.index-e.index,u=this._source.properties(),p=i.index;if(null===this._model.timeScale().visibleBarsStrictRange())return;for(var _=1;_<=11;_++){var f=u["level"+_];if(f.visible.value()){var v=f.coeff.value(),g=f.color.value(),y=Math.round(p+v*l),w={x:this._model.timeScale().indexToCoordinate(y),coeff:v,color:g,linewidth:f.linewidth.value(),linestyle:f.linestyle.value(),index:_};u.showCoeffs.value()&&(w.text=v,w.y=this._source.priceScale().height()),this._levels.push(w)}}}if(!(this._points.length<2)){var m=new d;e=this._points[0],t=this._points[1];if((u=this._source.properties()).trendline.visible.value()){var x={points:[e,t],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:u.trendline.color.value(),linewidth:u.trendline.linewidth.value(),linestyle:u.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal};this._trendLineRendererPoints12.setData(x),m.append(this._trendLineRendererPoints12)}if(this._points.length<3)return this.addAnchors(m),void(this._renderer=m);i=this._points[2];if(u.trendline.visible.value()){x={points:[t,i],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:u.trendline.color.value(),linewidth:u.trendline.linewidth.value(),linestyle:u.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal};this._trendLineRendererPoints23.setData(x),m.append(this._trendLineRendererPoints23)}var b=u.fillBackground.value(),R=u.transparency.value(),T=this._model.timeScale().width(),S=this._source.priceScale().height();if(b)for(_=1;_<this._levels.length;_++){var P=this._levels[_-1],L=(e=new r(P.x,0),t=new r(this._levels[_].x,this._source.priceScale().height()),{});L.points=[e,t],L.color=this._levels[_].color,L.linewidth=0,L.backcolor=this._levels[_].color,L.fillBackground=!0,L.transparency=R,L.extendLeft=!1,L.extendRight=!1,(D=new s(void 0,void 0,!0)).setData(L),m.append(D)}for(_=0;_<this._levels.length;_++){if(void 0!==this._levels[_].text){var C,M=u.horzLabelsAlign.value();switch(M="left"===M?"right":"right"===M?"left":"center",u.vertLabelsAlign.value()){case"top":C=new r(this._levels[_].x,0);break;case"middle":C=new r(this._levels[_].x,.5*this._levels[_].y);break
points:[C],text:""+this._levels[_].text,color:this._levels[_].color,vertAlign:u.vertLabelsAlign.value(),horzAlign:M,font:u.font.value(),offsetX:2,offsetY:0,fontsize:12};m.append(new o(I))}var O={};O.width=T,O.height=S,O.x=this._levels[_].x,O.color=this._levels[_].color,O.linewidth=this._levels[_].linewidth,O.linestyle=this._levels[_].linestyle;var D,k=new h(h.MOVEPOINT,null,this._levels[_].index);(D=new n).setData(O),D.setHitTest(k),m.append(D)}this.addAnchors(m),this._renderer=m}},u.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.TrendBasedFibTimePaneView=u},UcQu:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("qgcf").TextRenderer,o=i("qgcf").calculateLabelPosition,s=i("IjC5").RectangleRenderer,l=i("pJOz").TrendLineRenderer,h=i("Zy3/").CompositeRenderer,d=i("GH0z").PercentageFormatter,c=i("nda6").TimeSpanFormatter,u=i("5C6T").PipFormatter,p=i("a7Ha").LineEnd,_=i("Ialn"),f=_.forceLTRStr,v=_.startWithLTR;function g(e,t){n.call(this,e,t),this._percentageFormatter=new d,this._pipFormatter=null,this._lastSymbolInfo=null,this._distanceLineRenderer=new l,this._distancePriceRenderer=new l,this._backgroundRenderer=new s,this._borderRenderer=new s,this._textRenderer=new a,this._renderer=null}inherit(g,n),g.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},g.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._points.length<2||this._source.points().length<2)){var e=new h,t=this._source.properties();if(t.fillBackground&&t.fillBackground.value())(k={}).points=this._points,k.color="white",k.linewidth=0,k.backcolor=t.backgroundColor.value(),k.fillBackground=!0,k.transparency=t.backgroundTransparency.value(),k.extendLeft=!1,k.extendRight=!1,this._backgroundRenderer.setData(k),e.append(this._backgroundRenderer);var i=this._points[0],a=this._points[1];t.drawBorder.value()&&(this._borderRenderer.setData({points:this._points,color:t.borderColor.value(),linewidth:t.borderWidth.value(),fillBackground:!1,extendLeft:!1,extendRight:!1}),e.append(this._borderRenderer));var s=t.drawBorder.value()?t.borderWidth.value()/2:0,l=Math.round((i.y+a.y)/2),d=new r(i.x+Math.sign(a.x-i.x)*s,l),_=new r(a.x+Math.sign(i.x-a.x)*s,l);(k={}).points=[d,_],k.width=this._model.timeScale().width(),k.height=this._source.priceScale().height(),k.color=this._source.properties().linecolor.value(),k.linewidth=this._source.properties().linewidth.value(),k.linestyle=CanvasEx.LINESTYLE_SOLID,k.extendleft=!1,k.extendright=!1,k.leftend=p.Normal,k.rightend=Math.abs(i.x-a.x)>=25*k.linewidth?p.Arrow:p.Normal,this._distanceLineRenderer.setData(k),e.append(this._distanceLineRenderer);i=this._points[0],a=this._points[1];var g=Math.round((i.x+a.x)/2);d=new r(g,i.y+Math.sign(a.y-i.y)*s),_=new r(g,a.y+Math.sign(i.y-a.y)*s);(k={}).points=[d,_],k.width=this._model.timeScale().width(),k.height=this._source.priceScale().height(),k.color=this._source.properties().linecolor.value(), ;case"bottom":C=new r(this._levels[_].x,this._levels[_].y)}var I={points:[C],text:""+this._levels[_].text,color:this._levels[_].color,vertAlign:u.vertLabelsAlign.value(),horzAlign:M,font:u.font.value(),offsetX:2,offsetY:0,fontsize:12};m.append(new o(I))}var O={};O.width=T,O.height=S,O.x=this._levels[_].x,O.color=this._levels[_].color,O.linewidth=this._levels[_].linewidth,O.linestyle=this._levels[_].linestyle;var D,k=new h(h.MOVEPOINT,null,this._levels[_].index);(D=new n).setData(O),D.setHitTest(k),m.append(D)}this.addAnchors(m),this._renderer=m}},u.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.TrendBasedFibTimePaneView=u},UcQu:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("qgcf").TextRenderer,o=i("qgcf").calculateLabelPosition,s=i("IjC5").RectangleRenderer,l=i("pJOz").TrendLineRenderer,h=i("Zy3/").CompositeRenderer,d=i("GH0z").PercentageFormatter,c=i("nda6").TimeSpanFormatter,u=i("5C6T").PipFormatter,p=i("a7Ha").LineEnd,_=i("Ialn"),f=_.forceLTRStr,v=_.startWithLTR;function g(e,t){n.call(this,e,t),this._percentageFormatter=new d,this._pipFormatter=null,this._lastSymbolInfo=null,this._distanceLineRenderer=new l,this._distancePriceRenderer=new l,this._backgroundRenderer=new s,this._borderRenderer=new s,this._textRenderer=new a,this._renderer=null}inherit(g,n),g.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},g.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._points.length<2||this._source.points().length<2)){var e=new h,t=this._source.properties();if(t.fillBackground&&t.fillBackground.value())(k={}).points=this._points,k.color="white",k.linewidth=0,k.backcolor=t.backgroundColor.value(),k.fillBackground=!0,k.transparency=t.backgroundTransparency.value(),k.extendLeft=!1,k.extendRight=!1,this._backgroundRenderer.setData(k),e.append(this._backgroundRenderer);var i=this._points[0],a=this._points[1];t.drawBorder.value()&&(this._borderRenderer.setData({points:this._points,color:t.borderColor.value(),linewidth:t.borderWidth.value(),fillBackground:!1,extendLeft:!1,extendRight:!1}),e.append(this._borderRenderer));var s=t.drawBorder.value()?t.borderWidth.value()/2:0,l=Math.round((i.y+a.y)/2),d=new r(i.x+Math.sign(a.x-i.x)*s,l),_=new r(a.x+Math.sign(i.x-a.x)*s,l);(k={}).points=[d,_],k.width=this._model.timeScale().width(),k.height=this._source.priceScale().height(),k.color=this._source.properties().linecolor.value(),k.linewidth=this._source.properties().linewidth.value(),k.linestyle=CanvasEx.LINESTYLE_SOLID,k.extendleft=!1,k.extendright=!1,k.leftend=p.Normal,k.rightend=Math.abs(i.x-a.x)>=25*k.linewidth?p.Arrow:p.Normal,this._distanceLineRenderer.setData(k),e.append(this._distanceLineRenderer);i=this._points[0],a=this._points[1];var g=Math.round((i.x+a.x)/2);d=new r(g,i.y+Math.sign(a.y-i.y)*s),_=new r(g,a.y+Math.sign(i.y-a.y)*s);(k={}).points=[d,_],k.width=this._model.timeScale().width(),k.height=this._source.priceScale().height(),
k.linewidth=this._source.properties().linewidth.value(),k.linestyle=CanvasEx.LINESTYLE_SOLID,k.extendleft=!1,k.extendright=!1,k.leftend=p.Normal,k.rightend=Math.abs(d.y-_.y)>=25*k.linewidth?p.Arrow:p.Normal,this._distancePriceRenderer.setData(k),e.append(this._distancePriceRenderer);var y=this._source.points()[0].price,w=this._source.points()[1].price,m=w-y,x=100*m/Math.abs(y),b=this._source.points()[0].index,R=this._source.points()[1].index,T=f(R-b+""),S=this._model.timeScale().indexToUserTime(b),P=this._model.timeScale().indexToUserTime(R),L="";if(S&&P){var C=(P.valueOf()-S.valueOf())/1e3;L=", "+v((new c).format(C))}var M=this._model.mainSeries().symbolInfo();M&&M!==this._lastSymbolInfo&&(this._pipFormatter=new u(M.pricescale,M.minmov,M.type,M.minmove2),this._lastSymbolInfo=M);var I,O=this._source.ownerSource().formatter().format(m)+" ("+this._percentageFormatter.format(Math.round(100*x)/100)+") "+(this._pipFormatter?this._pipFormatter.format(m):""),D=f(O)+"\n"+$.t("{0} bars").format(T)+L,k={};if(w>y)(I=a.clone()).y-=2*t.fontsize.value(),I.x=.5*(i.x+a.x),k.points=[I];else(I=a.clone()).x=.5*(i.x+a.x),I.y+=.7*t.fontsize.value(),k.points=[I];var N={x:0,y:10};k.text=D,k.color=t.textcolor.value(),k.height=this._source.priceScale().height(),k.font=t.font.value(),k.offsetX=N.x,k.offsetY=N.y,k.padding=8,k.vertAlign="middle",k.horzAlign="center",k.fontsize=t.fontsize.value(),k.backgroundRoundRect=4,k.backgroundHorzInflate=.4*t.fontsize.value(),k.backgroundVertInflate=.2*t.fontsize.value(),t.fillLabelBackground&&t.fillLabelBackground.value()&&(k.backgroundColor=t.labelBackgroundColor.value()),this._textRenderer.setData(k);var B=this._textRenderer.measure(),A=o(B,i,a,N,this._source.priceScale().height());this._textRenderer.setPoints([A]),e.append(this._textRenderer),this.addAnchors(e),this._renderer=e}},t.DateAndPriceRangePaneView=g},UfPO:function(e,t,i){"use strict";e.exports=function(e,t){var i=document.body,r=i[e];return r||((r=document.createElement("img")).src=t,i[e]=r),r}},V8bI:function(e,t,i){e.exports=i.p+"898929f1acdb622689e0fc0c95c8fcd0.png"},VghZ:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("qgcf").TextRenderer,o=i("qgcf").calculateLabelPosition,s=i("IjC5").RectangleRenderer,l=i("pJOz").TrendLineRenderer,h=i("Zy3/").CompositeRenderer,d=i("GH0z").PercentageFormatter,c=i("5C6T").PipFormatter,u=i("a7Ha").LineEnd,p=i("Ialn").forceLTRStr;function _(e,t){n.call(this,e,t),this._percentageFormatter=new d,this._pipFormatter=null,this._lastSymbolInfo=null,this._topBorderRenderer=new l,this._bottomBorderRenderer=new l,this._distanceRenderer=new l,this._backgroundRenderer=new s,this._labelRenderer=new a,this._renderer=null}inherit(_,n),_.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},_.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._points.length<2||this._source.points().length<2)){ k.color=this._source.properties().linecolor.value(),k.linewidth=this._source.properties().linewidth.value(),k.linestyle=CanvasEx.LINESTYLE_SOLID,k.extendleft=!1,k.extendright=!1,k.leftend=p.Normal,k.rightend=Math.abs(d.y-_.y)>=25*k.linewidth?p.Arrow:p.Normal,this._distancePriceRenderer.setData(k),e.append(this._distancePriceRenderer);var y=this._source.points()[0].price,w=this._source.points()[1].price,m=w-y,x=100*m/Math.abs(y),b=this._source.points()[0].index,R=this._source.points()[1].index,T=f(R-b+""),S=this._model.timeScale().indexToUserTime(b),P=this._model.timeScale().indexToUserTime(R),L="";if(S&&P){var C=(P.valueOf()-S.valueOf())/1e3;L=", "+v((new c).format(C))}var M=this._model.mainSeries().symbolInfo();M&&M!==this._lastSymbolInfo&&(this._pipFormatter=new u(M.pricescale,M.minmov,M.type,M.minmove2),this._lastSymbolInfo=M);var I,O=this._source.ownerSource().formatter().format(m)+" ("+this._percentageFormatter.format(Math.round(100*x)/100)+") "+(this._pipFormatter?this._pipFormatter.format(m):""),D=f(O)+"\n"+$.t("{0} bars").format(T)+L,k={};if(w>y)(I=a.clone()).y-=2*t.fontsize.value(),I.x=.5*(i.x+a.x),k.points=[I];else(I=a.clone()).x=.5*(i.x+a.x),I.y+=.7*t.fontsize.value(),k.points=[I];var B={x:0,y:10};k.text=D,k.color=t.textcolor.value(),k.height=this._source.priceScale().height(),k.font=t.font.value(),k.offsetX=B.x,k.offsetY=B.y,k.padding=8,k.vertAlign="middle",k.horzAlign="center",k.fontsize=t.fontsize.value(),k.backgroundRoundRect=4,k.backgroundHorzInflate=.4*t.fontsize.value(),k.backgroundVertInflate=.2*t.fontsize.value(),t.fillLabelBackground&&t.fillLabelBackground.value()&&(k.backgroundColor=t.labelBackgroundColor.value()),this._textRenderer.setData(k);var N=this._textRenderer.measure(),A=o(N,i,a,B,this._source.priceScale().height());this._textRenderer.setPoints([A]),e.append(this._textRenderer),this.addAnchors(e),this._renderer=e}},t.DateAndPriceRangePaneView=g},UfPO:function(e,t,i){"use strict";e.exports=function(e,t){var i=document.body,r=i[e];return r||((r=document.createElement("img")).src=t,i[e]=r),r}},V8bI:function(e,t,i){e.exports=i.p+"898929f1acdb622689e0fc0c95c8fcd0.png"},VghZ:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("qgcf").TextRenderer,o=i("qgcf").calculateLabelPosition,s=i("IjC5").RectangleRenderer,l=i("pJOz").TrendLineRenderer,h=i("Zy3/").CompositeRenderer,d=i("GH0z").PercentageFormatter,c=i("5C6T").PipFormatter,u=i("a7Ha").LineEnd,p=i("Ialn").forceLTRStr;function _(e,t){n.call(this,e,t),this._percentageFormatter=new d,this._pipFormatter=null,this._lastSymbolInfo=null,this._topBorderRenderer=new l,this._bottomBorderRenderer=new l,this._distanceRenderer=new l,this._backgroundRenderer=new s,this._labelRenderer=new a,this._renderer=null}inherit(_,n),_.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},_.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._points.length<2||this._source.points().length<2)){
var e=new h,t=this._source.properties(),i=t.extendLeft.value(),a=t.extendRight.value(),s=this._points[0],l=this._points[1],d=Math.min(s.x,l.x),_=Math.max(s.x,l.x);if(t.fillBackground&&t.fillBackground.value())(M={}).points=[new r(d,s.y),new r(_,l.y)],M.color="white",M.linewidth=0,M.backcolor=t.backgroundColor.value(),M.fillBackground=!0,M.transparency=t.backgroundTransparency.value(),M.extendLeft=i,M.extendRight=a,this._backgroundRenderer.setData(M),e.append(this._backgroundRenderer);var f=this,v=function(t,r,n){var o={};o.points=[r,n],o.width=f._model.timeScale().width(),o.height=f._source.priceScale().height(),o.color=f._source.properties().linecolor.value(),o.linewidth=f._source.properties().linewidth.value(),o.linestyle=CanvasEx.LINESTYLE_SOLID,o.extendleft=i,o.extendright=a,o.leftend=u.Normal,o.rightend=u.Normal,t.setData(o),e.append(t)},g=d,y=_;g===y&&(i&&(g-=1),a&&(y+=1)),v(this._topBorderRenderer,new r(g,s.y),new r(y,s.y)),v(this._bottomBorderRenderer,new r(g,l.y),new r(y,l.y));s=this._points[0],l=this._points[1];var w=Math.round((s.x+l.x)/2),m=new r(w,s.y),x=new r(w,l.y);(M={}).points=[m,x],M.width=f._model.timeScale().width(),M.height=f._source.priceScale().height(),M.color=f._source.properties().linecolor.value(),M.linewidth=f._source.properties().linewidth.value(),M.linestyle=CanvasEx.LINESTYLE_SOLID,M.extendleft=!1,M.extendright=!1,M.leftend=u.Normal,M.rightend=Math.abs(m.y-x.y)>=15*M.linewidth?u.Arrow:u.Normal,this._distanceRenderer.setData(M),e.append(this._distanceRenderer);var b=this._source.points()[0].price,R=this._source.points()[1].price,T=R-b,S=100*T/Math.abs(b),P=this._model.mainSeries().symbolInfo();P&&P!==this._lastSymbolInfo&&(this._pipFormatter=new c(P.pricescale,P.minmov,P.type,P.minmove2),this._lastSymbolInfo=P);var L,C=p(this._source.ownerSource().formatter().format(T)+" ("+this._percentageFormatter.format(S)+") "+(this._pipFormatter?this._pipFormatter.format(T):"")),M={};if(R>b)(L=l.clone()).y-=2*t.fontsize.value(),L.x=.5*(s.x+l.x),M.points=[L];else(L=l.clone()).x=.5*(s.x+l.x),L.y+=.7*t.fontsize.value(),M.points=[L];var I={x:0,y:10};M.text=C,M.color=t.textcolor.value(),M.height=f._source.priceScale().height(),M.font=t.font.value(),M.offsetX=I.x,M.offsetY=I.y,M.vertAlign="middle",M.horzAlign="center",M.fontsize=t.fontsize.value(),M.backgroundRoundRect=4,M.backgroundHorzInflate=.4*t.fontsize.value(),M.backgroundVertInflate=.2*t.fontsize.value(),t.fillLabelBackground&&t.fillLabelBackground.value()&&(M.backgroundColor=t.labelBackgroundColor.value()),t.drawBorder&&t.drawBorder.value()&&(M.borderColor=t.borderColor.value()),this._labelRenderer.setData(M);var O=this._labelRenderer.measure(),D=o(O,s,l,I,f._source.priceScale().height());this._labelRenderer.setPoints([D]),e.append(this._labelRenderer),this.addAnchors(e),this._renderer=e}},t.PriceRangePaneView=_},X4Cb:function(e,t,i){"use strict";i.r(t),i.d(t,"GannComplexPaneView",(function(){return p}));var r=i("mrSG"),n=i("aO4+"),a=i("aB9a"),o=i("pJOz"),s=i("qgcf"),l=i("Zy3/"),h=i("a7Ha"),d=i("8Uy/"),c=i("amvX"),u=i("Ialn"),p=function(e){ var e=new h,t=this._source.properties(),i=t.extendLeft.value(),a=t.extendRight.value(),s=this._points[0],l=this._points[1],d=Math.min(s.x,l.x),_=Math.max(s.x,l.x);if(t.fillBackground&&t.fillBackground.value())(M={}).points=[new r(d,s.y),new r(_,l.y)],M.color="white",M.linewidth=0,M.backcolor=t.backgroundColor.value(),M.fillBackground=!0,M.transparency=t.backgroundTransparency.value(),M.extendLeft=i,M.extendRight=a,this._backgroundRenderer.setData(M),e.append(this._backgroundRenderer);var f=this,v=function(t,r,n){var o={};o.points=[r,n],o.width=f._model.timeScale().width(),o.height=f._source.priceScale().height(),o.color=f._source.properties().linecolor.value(),o.linewidth=f._source.properties().linewidth.value(),o.linestyle=CanvasEx.LINESTYLE_SOLID,o.extendleft=i,o.extendright=a,o.leftend=u.Normal,o.rightend=u.Normal,t.setData(o),e.append(t)},g=d,y=_;g===y&&(i&&(g-=1),a&&(y+=1)),v(this._topBorderRenderer,new r(g,s.y),new r(y,s.y)),v(this._bottomBorderRenderer,new r(g,l.y),new r(y,l.y));s=this._points[0],l=this._points[1];var w=Math.round((s.x+l.x)/2),m=new r(w,s.y),x=new r(w,l.y);(M={}).points=[m,x],M.width=f._model.timeScale().width(),M.height=f._source.priceScale().height(),M.color=f._source.properties().linecolor.value(),M.linewidth=f._source.properties().linewidth.value(),M.linestyle=CanvasEx.LINESTYLE_SOLID,M.extendleft=!1,M.extendright=!1,M.leftend=u.Normal,M.rightend=Math.abs(m.y-x.y)>=15*M.linewidth?u.Arrow:u.Normal,this._distanceRenderer.setData(M),e.append(this._distanceRenderer);var b=this._source.points()[0].price,R=this._source.points()[1].price,T=R-b,S=100*T/Math.abs(b),P=this._model.mainSeries().symbolInfo();P&&P!==this._lastSymbolInfo&&(this._pipFormatter=new c(P.pricescale,P.minmov,P.type,P.minmove2),this._lastSymbolInfo=P);var L,C=p(this._source.ownerSource().formatter().format(T)+" ("+this._percentageFormatter.format(S)+") "+(this._pipFormatter?this._pipFormatter.format(T):"")),M={};if(R>b)(L=l.clone()).y-=2*t.fontsize.value(),L.x=.5*(s.x+l.x),M.points=[L];else(L=l.clone()).x=.5*(s.x+l.x),L.y+=.7*t.fontsize.value(),M.points=[L];var I={x:0,y:10};M.text=C,M.color=t.textcolor.value(),M.height=f._source.priceScale().height(),M.font=t.font.value(),M.offsetX=I.x,M.offsetY=I.y,M.vertAlign="middle",M.horzAlign="center",M.fontsize=t.fontsize.value(),M.backgroundRoundRect=4,M.backgroundHorzInflate=.4*t.fontsize.value(),M.backgroundVertInflate=.2*t.fontsize.value(),t.fillLabelBackground&&t.fillLabelBackground.value()&&(M.backgroundColor=t.labelBackgroundColor.value()),t.drawBorder&&t.drawBorder.value()&&(M.borderColor=t.borderColor.value()),this._labelRenderer.setData(M);var O=this._labelRenderer.measure(),D=o(O,s,l,I,f._source.priceScale().height());this._labelRenderer.setPoints([D]),e.append(this._labelRenderer),this.addAnchors(e),this._renderer=e}},t.PriceRangePaneView=_},X4Cb:function(e,t,i){"use strict";i.r(t),i.d(t,"GannComplexPaneView",(function(){return p}));var r=i("mrSG"),n=i("aO4+"),a=i("aB9a"),o=i("pJOz"),s=i("qgcf"),l=i("Zy3/"),h=i("a7Ha"),d=i("8Uy/"),c=i("amvX"),u=i("Ialn"),p=function(e){
function t(t,i){var r=e.call(this,t,i)||this;return r._verticalLevelsRenderers=[],r._horizontalLevelsRenderers=[],r._fanRenderers=[],r._arcRenderers=[],r._priceDiffTextRenderer=new s.TextRenderer,r._indexDiffTextRenderer=new s.TextRenderer,r._ratioTextRenderer=new s.TextRenderer,r._renderer=null,r._initRenderers(),r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this),this._renderer=null;var t=new l.CompositeRenderer,i=this._getPoints();if(i.length<2)return this.addAnchors(t),void(this._renderer=t);var r=i[0],n=i[1],a=this._getSource(),o=a.isReversed();o&&(n=i[0],r=i[1]);var s=n.x-r.x,h=n.y-r.y,d=r,c=n,u=this._getModel(),p={barsCoordsRange:s,priceCoordsRange:h,startPoint:d,endPoint:c,p1:r,p2:n,isLabelsVisible:a.isLabelsVisible(),reversed:o};this._prepareLevels(t,p),this._prepareFanLines(t,p),this._prepareArcs(t,p),this._prepareLabels(t,p);var _=[r,n];u.lineBeingCreated()===a&&_.pop(),t.append(this.createLineAnchor({points:_})),this._renderer=t},t.prototype._initRenderers=function(){for(var e=this._getSource(),t=e.levelsCount(),i=0;i<t;i++)this._verticalLevelsRenderers.push(new o.TrendLineRenderer),this._horizontalLevelsRenderers.push(new o.TrendLineRenderer);var r=e.fanLinesCount();for(i=0;i<r;i++)this._fanRenderers.push(new o.TrendLineRenderer);var n=e.arcsCount();for(i=0;i<n;i++)this._arcRenderers.push(new c.a)},t.prototype._prepareLevels=function(e,t){for(var i=t.startPoint,r=t.endPoint,a=t.barsCoordsRange,o=t.priceCoordsRange,s=0,l=this._getSource().levels();s<l.length;s++){var c=l[s];if(c.visible){var u=c.index/5,p=i.x+u*a,_={points:[new n.Point(p,i.y),new n.Point(p,r.y)],color:c.color,linewidth:c.width,linestyle:d.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:h.LineEnd.Normal,rightend:h.LineEnd.Normal},f=this._verticalLevelsRenderers[c.index];f.setData(_),e.append(f);var v=i.y+u*o,g={points:[new n.Point(i.x,v),new n.Point(r.x,v)],color:c.color,linewidth:c.width,linestyle:d.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:h.LineEnd.Normal,rightend:h.LineEnd.Normal},y=this._horizontalLevelsRenderers[c.index];y.setData(g),e.append(y)}}},t.prototype._prepareFanLines=function(e,t){for(var i=t.p1,r=t.startPoint,a=t.endPoint,o=t.barsCoordsRange,s=t.priceCoordsRange,l=0,c=this._getSource().fanLines();l<c.length;l++){var u=c[l];if(u.visible){var p=u.x,_=u.y,f=void 0,v=void 0;if(p>_){f=a.x;var g=_/p;v=r.y+g*s}else{v=a.y;g=p/_;f=r.x+g*o}var y={points:[i,new n.Point(f,v)],color:u.color,linewidth:u.width,linestyle:d.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:h.LineEnd.Normal,rightend:h.LineEnd.Normal},w=this._fanRenderers[u.index];w.setData(y),e.append(w)}}},t.prototype._prepareArcs=function(e,t){for(var i=t.p1,r=t.startPoint,a=t.endPoint,o=t.barsCoordsRange,s=t.priceCoordsRange,l=i,h=this._getSource(),d=h.isArcsBackgroundFilled(),c=h.arcsBackgroundTransparency(),u=0,p=h.arcs();u<p.length;u++){var _=p[u];if(_.visible){var f=_.x/5,v=_.y/5,g=r.x+f*o,y=r.y+v*s,w={ function t(t,i){var r=e.call(this,t,i)||this;return r._verticalLevelsRenderers=[],r._horizontalLevelsRenderers=[],r._fanRenderers=[],r._arcRenderers=[],r._priceDiffTextRenderer=new s.TextRenderer,r._indexDiffTextRenderer=new s.TextRenderer,r._ratioTextRenderer=new s.TextRenderer,r._renderer=null,r._initRenderers(),r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this),this._renderer=null;var t=new l.CompositeRenderer,i=this._getPoints();if(i.length<2)return this.addAnchors(t),void(this._renderer=t);var r=i[0],n=i[1],a=this._getSource(),o=a.isReversed();o&&(n=i[0],r=i[1]);var s=n.x-r.x,h=n.y-r.y,d=r,c=n,u=this._getModel(),p={barsCoordsRange:s,priceCoordsRange:h,startPoint:d,endPoint:c,p1:r,p2:n,isLabelsVisible:a.isLabelsVisible(),reversed:o};this._prepareLevels(t,p),this._prepareFanLines(t,p),this._prepareArcs(t,p),this._prepareLabels(t,p);var _=[r,n];u.lineBeingCreated()===a&&_.pop(),t.append(this.createLineAnchor({points:_})),this._renderer=t},t.prototype._initRenderers=function(){for(var e=this._getSource(),t=e.levelsCount(),i=0;i<t;i++)this._verticalLevelsRenderers.push(new o.TrendLineRenderer),this._horizontalLevelsRenderers.push(new o.TrendLineRenderer);var r=e.fanLinesCount();for(i=0;i<r;i++)this._fanRenderers.push(new o.TrendLineRenderer);var n=e.arcsCount();for(i=0;i<n;i++)this._arcRenderers.push(new c.a)},t.prototype._prepareLevels=function(e,t){for(var i=t.startPoint,r=t.endPoint,a=t.barsCoordsRange,o=t.priceCoordsRange,s=0,l=this._getSource().levels();s<l.length;s++){var c=l[s];if(c.visible){var u=c.index/5,p=i.x+u*a,_={points:[new n.Point(p,i.y),new n.Point(p,r.y)],color:c.color,linewidth:c.width,linestyle:d.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:h.LineEnd.Normal,rightend:h.LineEnd.Normal},f=this._verticalLevelsRenderers[c.index];f.setData(_),e.append(f);var v=i.y+u*o,g={points:[new n.Point(i.x,v),new n.Point(r.x,v)],color:c.color,linewidth:c.width,linestyle:d.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:h.LineEnd.Normal,rightend:h.LineEnd.Normal},y=this._horizontalLevelsRenderers[c.index];y.setData(g),e.append(y)}}},t.prototype._prepareFanLines=function(e,t){for(var i=t.p1,r=t.startPoint,a=t.endPoint,o=t.barsCoordsRange,s=t.priceCoordsRange,l=0,c=this._getSource().fanLines();l<c.length;l++){var u=c[l];if(u.visible){var p=u.x,_=u.y,f=void 0,v=void 0;if(p>_){f=a.x;var g=_/p;v=r.y+g*s}else{v=a.y;g=p/_;f=r.x+g*o}var y={points:[i,new n.Point(f,v)],color:u.color,linewidth:u.width,linestyle:d.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:h.LineEnd.Normal,rightend:h.LineEnd.Normal},w=this._fanRenderers[u.index];w.setData(y),e.append(w)}}},t.prototype._prepareArcs=function(e,t){for(var i=t.p1,r=t.startPoint,a=t.endPoint,o=t.barsCoordsRange,s=t.priceCoordsRange,l=i,h=this._getSource(),d=h.isArcsBackgroundFilled(),c=h.arcsBackgroundTransparency(),u=0,p=h.arcs();u<p.length;u++){var _=p[u];if(_.visible){var f=_.x/5,v=_.y/5,g=r.x+f*o,y=r.y+v*s,w={
center:r,point:new n.Point(g,y),edge:a,color:_.color,linewidth:_.width,fillBack:d,transparency:c,prevPoint:l},m=this._arcRenderers[_.index];m.setData(w),e.append(m),l=w.point}}},t.prototype._prepareLabels=function(e,t){var i=t.p1,r=t.p2,a=t.isLabelsVisible,o=t.reversed;if(a){var s=this._getSource(),l=s.ownerSource(),h=s.getPriceDiff(),d=s.getIndexDiff();if(null!==h&&null!==d&&null!==l){o&&(h=-h,d=-d);var c=new n.Point(i.x,r.y),p=Object(u.forceLTRStr)(l.formatter().format(h)),_=this._getLabelData(c,p);_.horzAlign=d>0?"right":"left",_.vertAlign=h>0?"bottom":"top",_.offsetX=10,_.offsetY=h>0?8:10,_.forceTextAlign=!0,this._priceDiffTextRenderer.setData(_),e.append(this._priceDiffTextRenderer);var f=new n.Point(r.x,i.y),v=Object(u.forceLTRStr)(d.toString()),g=this._getLabelData(f,v);g.horzAlign=d>0?"left":"right",g.vertAlign=h>0?"top":"bottom",g.offsetX=10,g.offsetY=h>0?10:8,g.forceTextAlign=!0,this._indexDiffTextRenderer.setData(g),e.append(this._indexDiffTextRenderer);var y=s.getScaleRatio();if(null!==y){var w=s.getScaleRatioFormatter(),m=Object(u.forceLTRStr)(w.format(y)),x=this._getLabelData(r,m);x.horzAlign=d>0?"left":"right",x.vertAlign=h>0?"bottom":"top",x.offsetX=10,x.offsetY=h>0?8:10,x.forceTextAlign=!0,this._ratioTextRenderer.setData(x),e.append(this._ratioTextRenderer)}}}},t.prototype._getLabelData=function(e,t){var i=this._getSource().getLabelsStyle(),r=i.textColor,n=i.font,a=i.fontSize;return{points:[e],backgroundColor:"transparent",text:t,font:n,bold:i.bold,italic:i.italic,fontsize:a,color:r,vertAlign:"top",horzAlign:"center",offsetX:0,offsetY:0,backgroundRoundRect:4}},t}(a.LineSourcePaneView)},XHET:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("5/lF").TrendLineStatsRenderer,o=i("qgcf").TextRenderer,s=i("pJOz").TrendLineRenderer,l=i("Zy3/").CompositeRenderer,h=i("GH0z").PercentageFormatter,d=i("vq8G").SelectionRenderer,c=i("5C6T").PipFormatter,u=i("a7Ha").LineEnd,p=i("8xAY").LabelSettings,_=i("zDbI").CHART_FONT_FAMILY,f=i("VdBB").HitTestResult,v=i("cPgM").ScaledPaneRenderer,g=i("cPgM").ScaledPaneRendererWrapper,y=i("Ialn").forceLTRStr;function w(){v.call(this),this._data=null}function m(e,t){n.call(this,e,t),this._label=null,this._rendererCache={},this._pipFormatter=null,this._lastSymbolInfo=null,this._trendLineRenderer=new s,this._angleRenderer=new w,this._angleLabelRenderer=new o,this._renderer=null}inherit(w,v),w.prototype.setData=function(e){this._data=e},w.prototype.hitTest=function(){return null},w.prototype._drawImpl=function(e){if(null!==this._data){e.save(),e.translate(this._data.point.x,this._data.point.y),e.strokeStyle=this._data.color;var t=[1,2];"function"==typeof e.setLineDash?e.setLineDash(t):void 0!==e.mozDash?e.mozDash=t:void 0!==e.webkitLineDash&&(e.webkitLineDash=t);var i=this._data.size;e.beginPath(),e.moveTo(0,0),e.lineTo(i,0),e.arc(0,0,i,0,-this._data.angle,this._data.angle>0),e.stroke(),e.restore()}},inherit(m,n),m.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null, center:r,point:new n.Point(g,y),edge:a,color:_.color,linewidth:_.width,fillBack:d,transparency:c,prevPoint:l},m=this._arcRenderers[_.index];m.setData(w),e.append(m),l=w.point}}},t.prototype._prepareLabels=function(e,t){var i=t.p1,r=t.p2,a=t.isLabelsVisible,o=t.reversed;if(a){var s=this._getSource(),l=s.ownerSource(),h=s.getPriceDiff(),d=s.getIndexDiff();if(null!==h&&null!==d&&null!==l){o&&(h=-h,d=-d);var c=new n.Point(i.x,r.y),p=Object(u.forceLTRStr)(l.formatter().format(h)),_=this._getLabelData(c,p);_.horzAlign=d>0?"right":"left",_.vertAlign=h>0?"bottom":"top",_.offsetX=10,_.offsetY=h>0?8:10,_.forceTextAlign=!0,this._priceDiffTextRenderer.setData(_),e.append(this._priceDiffTextRenderer);var f=new n.Point(r.x,i.y),v=Object(u.forceLTRStr)(d.toString()),g=this._getLabelData(f,v);g.horzAlign=d>0?"left":"right",g.vertAlign=h>0?"top":"bottom",g.offsetX=10,g.offsetY=h>0?10:8,g.forceTextAlign=!0,this._indexDiffTextRenderer.setData(g),e.append(this._indexDiffTextRenderer);var y=s.getScaleRatio();if(null!==y){var w=s.getScaleRatioFormatter(),m=Object(u.forceLTRStr)(w.format(y)),x=this._getLabelData(r,m);x.horzAlign=d>0?"left":"right",x.vertAlign=h>0?"bottom":"top",x.offsetX=10,x.offsetY=h>0?8:10,x.forceTextAlign=!0,this._ratioTextRenderer.setData(x),e.append(this._ratioTextRenderer)}}}},t.prototype._getLabelData=function(e,t){var i=this._getSource().getLabelsStyle(),r=i.textColor,n=i.font,a=i.fontSize;return{points:[e],backgroundColor:"transparent",text:t,font:n,bold:i.bold,italic:i.italic,fontsize:a,color:r,vertAlign:"top",horzAlign:"center",offsetX:0,offsetY:0,backgroundRoundRect:4}},t}(a.LineSourcePaneView)},XHET:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("5/lF").TrendLineStatsRenderer,o=i("qgcf").TextRenderer,s=i("pJOz").TrendLineRenderer,l=i("Zy3/").CompositeRenderer,h=i("GH0z").PercentageFormatter,d=i("vq8G").SelectionRenderer,c=i("5C6T").PipFormatter,u=i("a7Ha").LineEnd,p=i("8xAY").LabelSettings,_=i("zDbI").CHART_FONT_FAMILY,f=i("VdBB").HitTestResult,v=i("cPgM").ScaledPaneRenderer,g=i("cPgM").ScaledPaneRendererWrapper,y=i("Ialn").forceLTRStr;function w(){v.call(this),this._data=null}function m(e,t){n.call(this,e,t),this._label=null,this._rendererCache={},this._pipFormatter=null,this._lastSymbolInfo=null,this._trendLineRenderer=new s,this._angleRenderer=new w,this._angleLabelRenderer=new o,this._renderer=null}inherit(w,v),w.prototype.setData=function(e){this._data=e},w.prototype.hitTest=function(){return null},w.prototype._drawImpl=function(e){if(null!==this._data){e.save(),e.translate(this._data.point.x,this._data.point.y),e.strokeStyle=this._data.color;var t=[1,2];"function"==typeof e.setLineDash?e.setLineDash(t):void 0!==e.mozDash?e.mozDash=t:void 0!==e.webkitLineDash&&(e.webkitLineDash=t);var i=this._data.size;e.beginPath(),e.moveTo(0,0),e.lineTo(i,0),e.arc(0,0,i,0,-this._data.angle,this._data.angle>0),e.stroke(),e.restore()}},inherit(m,n),m.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,
this._points.length>0&&void 0!==this._source._angle){var e=this._points[0],t=Math.cos(this._source._angle),i=-Math.sin(this._source._angle),o=new r(t,i);this._secondPoint=e.addScaled(o,this._source._distance),this._secondPoint.data=1,this._middlePoint=this._source.calcMiddlePoint(this._points[0],this._secondPoint)}if(this._label=null,!(this._source.points().length<2)){e=this._source.points()[0];var s,v,w=this._source.points()[1],m=[];if(this._source.properties().showPriceRange.value()&&this._source.priceScale()){var x=w.price-e.price,b=x/Math.abs(e.price);s=this._source.ownerSource().formatter().format(x)+" ("+(new h).format(100*b)+") ";var R=this._model.mainSeries().symbolInfo();R&&R!==this._lastSymbolInfo&&(this._pipFormatter=new c(R.pricescale,R.minmov,R.type,R.minmove2),this._lastSymbolInfo=R),s+=this._pipFormatter?", "+this._pipFormatter.format(x):"",m.push("priceRange")}if(this._source.properties().showBarsRange.value()){v="";var T=w.index-e.index;v+=$.t("{0} bars").format(y(T)),m.push("barsRange")}this._label=[y(s),v].filter((function(e){return e})).join("\n")||null,this._icons=m;var S=new l,P={},L=this.isHoveredSource()||this.isSelectedSource()||this._source.properties().alwaysShowStats.value(),C=(this.isHoveredSource()||this.isSelectedSource())&&this._source.properties().showMiddlePoint.value();if(this._secondPoint&&this._points.length>0){var M=this._source.properties().linecolor.value();if(P.points=[this._points[0],this._secondPoint],P.width=this._model.timeScale().width(),P.height=this._source.priceScale().height(),P.color=M,P.linewidth=this._source.properties().linewidth.value(),P.linestyle=this._source.properties().linestyle.value(),P.extendleft=this._source.properties().extendLeft.value(),P.extendright=this._source.properties().extendRight.value(),P.leftend=u.Normal,P.rightend=u.Normal,this._trendLineRenderer.setData(P),S.append(this._trendLineRenderer),L&&this._label&&2===this._points.length){var I=this._source.properties().statsPosition.value(),O=this._source.getPointByPosition(I,P.points[0],this._middlePoint,P.points[1]),D=this._model.isDark(),k=D?p.bgColorDark:p.bgColorLight,N=D?p.textColorDark:p.textColorLight,B={points:[O],text:this._label,color:N,isDark:D,font:_,fontSize:p.fontSize,lineSpacing:p.lineSpacing,backgroundColor:k,backgroundRoundRect:p.rectRadius,paddingLeft:p.paddingLeftRight,paddingRight:p.paddingLeftRight,paddingTop:p.paddingTopBottom,paddingBottom:p.paddingTopBottom,textPadding:p.textPadding,doNotAlignText:!0,icons:this._icons},A=p.offset;B.offsetX=A,B.offsetY=A,(this._points[1].y<this._points[0].y&&this._points[1].x<this._points[0].x||this._points[1].y>this._points[0].y&&this._points[1].x>this._points[0].x)&&(B.vertAlign="bottom"),S.append(new g(new a(B,this._rendererCache)))}this._middlePoint&&S.append(new d({points:[this._middlePoint],bgColors:this._lineAnchorColors([this._middlePoint]),color:M,visible:C&&this.areAnchorsVisible(),hittestResult:f.REGULAR}));var j={};j.point=this._points[0],j.angle=this._source._angle,j.color=this._source.properties().linecolor.value(),j.size=50, this._points.length>0&&void 0!==this._source._angle){var e=this._points[0],t=Math.cos(this._source._angle),i=-Math.sin(this._source._angle),o=new r(t,i);this._secondPoint=e.addScaled(o,this._source._distance),this._secondPoint.data=1,this._middlePoint=this._source.calcMiddlePoint(this._points[0],this._secondPoint)}if(this._label=null,!(this._source.points().length<2)){e=this._source.points()[0];var s,v,w=this._source.points()[1],m=[];if(this._source.properties().showPriceRange.value()&&this._source.priceScale()){var x=w.price-e.price,b=x/Math.abs(e.price);s=this._source.ownerSource().formatter().format(x)+" ("+(new h).format(100*b)+") ";var R=this._model.mainSeries().symbolInfo();R&&R!==this._lastSymbolInfo&&(this._pipFormatter=new c(R.pricescale,R.minmov,R.type,R.minmove2),this._lastSymbolInfo=R),s+=this._pipFormatter?", "+this._pipFormatter.format(x):"",m.push("priceRange")}if(this._source.properties().showBarsRange.value()){v="";var T=w.index-e.index;v+=$.t("{0} bars").format(y(T)),m.push("barsRange")}this._label=[y(s),v].filter((function(e){return e})).join("\n")||null,this._icons=m;var S=new l,P={},L=this.isHoveredSource()||this.isSelectedSource()||this._source.properties().alwaysShowStats.value(),C=(this.isHoveredSource()||this.isSelectedSource())&&this._source.properties().showMiddlePoint.value();if(this._secondPoint&&this._points.length>0){var M=this._source.properties().linecolor.value();if(P.points=[this._points[0],this._secondPoint],P.width=this._model.timeScale().width(),P.height=this._source.priceScale().height(),P.color=M,P.linewidth=this._source.properties().linewidth.value(),P.linestyle=this._source.properties().linestyle.value(),P.extendleft=this._source.properties().extendLeft.value(),P.extendright=this._source.properties().extendRight.value(),P.leftend=u.Normal,P.rightend=u.Normal,this._trendLineRenderer.setData(P),S.append(this._trendLineRenderer),L&&this._label&&2===this._points.length){var I=this._source.properties().statsPosition.value(),O=this._source.getPointByPosition(I,P.points[0],this._middlePoint,P.points[1]),D=this._model.isDark(),k=D?p.bgColorDark:p.bgColorLight,B=D?p.textColorDark:p.textColorLight,N={points:[O],text:this._label,color:B,isDark:D,font:_,fontSize:p.fontSize,lineSpacing:p.lineSpacing,backgroundColor:k,backgroundRoundRect:p.rectRadius,paddingLeft:p.paddingLeftRight,paddingRight:p.paddingLeftRight,paddingTop:p.paddingTopBottom,paddingBottom:p.paddingTopBottom,textPadding:p.textPadding,doNotAlignText:!0,icons:this._icons},A=p.offset;N.offsetX=A,N.offsetY=A,(this._points[1].y<this._points[0].y&&this._points[1].x<this._points[0].x||this._points[1].y>this._points[0].y&&this._points[1].x>this._points[0].x)&&(N.vertAlign="bottom"),S.append(new g(new a(N,this._rendererCache)))}this._middlePoint&&S.append(new d({points:[this._middlePoint],bgColors:this._lineAnchorColors([this._middlePoint]),color:M,visible:C&&this.areAnchorsVisible(),hittestResult:f.REGULAR}));var j={};j.point=this._points[0],j.angle=this._source._angle,j.color=this._source.properties().linecolor.value(),j.size=50,
this._angleRenderer.setData(j),S.append(this._angleRenderer);var E=Math.round(180*j.angle/Math.PI)+"º";(O=this._points[0].clone()).x=O.x+50;var z={points:[O],text:y(E),color:this._source.properties().textcolor.value(),horzAlign:"left",font:this._source.properties().font.value(),offsetX:5,offsetY:0,bold:this._source.properties().bold.value(),italic:this._source.properties().italic.value(),fontsize:this._source.properties().fontsize.value(),vertAlign:"middle"};this._angleLabelRenderer.setData(z),S.append(this._angleLabelRenderer)}0,this._secondPoint&&this._points.length>0&&S.append(this.createLineAnchor({points:[this._points[0],this._secondPoint]})),this._renderer=S}},m.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.TrendAnglePaneView=m},ZJWf:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("2trc").ChannelRenderer,o=i("qgcf").TextRenderer,s=i("pJOz").TrendLineRenderer,l=i("VdBB").HitTestResult,h=i("Zy3/").CompositeRenderer,d=i("a7Ha").LineEnd;function c(e,t){n.call(this,e,t),this._renderer=null}inherit(c,n),c.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._source.points().length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){var e=this._floatPoints[0],t=this._floatPoints[1];this._fans=[];for(var i=t.x-e.x,c=t.y-e.y,u=1;u<=9;u++){var p="level"+u,_=this._source.properties()[p];if(_.visible.value()){var f,v,g=_.coeff1.value(),y=_.coeff2.value(),w=g/y,m=_.color.value(),x=g+"/"+y;g>y?(f=t.x,v=e.y+c/w):(f=e.x+i*w,v=t.y),this._fans.push({label:x,color:m,x:f,y:v,linewidth:_.linewidth.value(),linestyle:_.linestyle.value(),index:u})}}if(!(this._floatPoints.length<2)){var b=new h,R=(e=this._floatPoints[0],this._source.properties()),T=this._source.properties().fillBackground.value(),S=this._source.properties().transparency.value();for(u=0;u<this._fans.length;u++){var P=new r(this._fans[u].x,this._fans[u].y);if(T)if(this._fans[u].index<4){var L=new r(this._fans[u+1].x,this._fans[u+1].y);(C={}).width=this._model.timeScale().width(),C.height=this._source.priceScale().height(),C.p1=e,C.p2=P,C.p3=e,C.p4=L,C.color=this._fans[u].color,C.transparency=S,C.hittestOnBackground=!0,(M=new a).setData(C),b.append(M)}else if(this._fans[u].index>4&&u>0){var C;L=new r(this._fans[u-1].x,this._fans[u-1].y);(C={}).width=this._model.timeScale().width(),C.height=this._source.priceScale().height(),C.p1=e,C.p2=P,C.p3=e,C.p4=L,C.color=this._fans[u].color,C.transparency=S,C.hittestOnBackground=!0,(M=new a).setData(C),b.append(M)}var M,I={points:[e,P],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._fans[u].color,linewidth:this._fans[u].linewidth,linestyle:this._fans[u].linestyle,extendleft:!1,extendright:!0,leftend:d.Normal,rightend:d.Normal};if((M=new s).setData(I),M.setHitTest(new l(l.MOVEPOINT,null,this._fans[u].index)),b.append(M),R.showLabels.value()){var O={points:[P],text:this._fans[u].label, this._angleRenderer.setData(j),S.append(this._angleRenderer);var z=Math.round(180*j.angle/Math.PI)+"º";(O=this._points[0].clone()).x=O.x+50;var E={points:[O],text:y(z),color:this._source.properties().textcolor.value(),horzAlign:"left",font:this._source.properties().font.value(),offsetX:5,offsetY:0,bold:this._source.properties().bold.value(),italic:this._source.properties().italic.value(),fontsize:this._source.properties().fontsize.value(),vertAlign:"middle"};this._angleLabelRenderer.setData(E),S.append(this._angleLabelRenderer)}0,this._secondPoint&&this._points.length>0&&S.append(this.createLineAnchor({points:[this._points[0],this._secondPoint]})),this._renderer=S}},m.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.TrendAnglePaneView=m},ZJWf:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("2trc").ChannelRenderer,o=i("qgcf").TextRenderer,s=i("pJOz").TrendLineRenderer,l=i("VdBB").HitTestResult,h=i("Zy3/").CompositeRenderer,d=i("a7Ha").LineEnd;function c(e,t){n.call(this,e,t),this._renderer=null}inherit(c,n),c.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._source.points().length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){var e=this._floatPoints[0],t=this._floatPoints[1];this._fans=[];for(var i=t.x-e.x,c=t.y-e.y,u=1;u<=9;u++){var p="level"+u,_=this._source.properties()[p];if(_.visible.value()){var f,v,g=_.coeff1.value(),y=_.coeff2.value(),w=g/y,m=_.color.value(),x=g+"/"+y;g>y?(f=t.x,v=e.y+c/w):(f=e.x+i*w,v=t.y),this._fans.push({label:x,color:m,x:f,y:v,linewidth:_.linewidth.value(),linestyle:_.linestyle.value(),index:u})}}if(!(this._floatPoints.length<2)){var b=new h,R=(e=this._floatPoints[0],this._source.properties()),T=this._source.properties().fillBackground.value(),S=this._source.properties().transparency.value();for(u=0;u<this._fans.length;u++){var P=new r(this._fans[u].x,this._fans[u].y);if(T)if(this._fans[u].index<4){var L=new r(this._fans[u+1].x,this._fans[u+1].y);(C={}).width=this._model.timeScale().width(),C.height=this._source.priceScale().height(),C.p1=e,C.p2=P,C.p3=e,C.p4=L,C.color=this._fans[u].color,C.transparency=S,C.hittestOnBackground=!0,(M=new a).setData(C),b.append(M)}else if(this._fans[u].index>4&&u>0){var C;L=new r(this._fans[u-1].x,this._fans[u-1].y);(C={}).width=this._model.timeScale().width(),C.height=this._source.priceScale().height(),C.p1=e,C.p2=P,C.p3=e,C.p4=L,C.color=this._fans[u].color,C.transparency=S,C.hittestOnBackground=!0,(M=new a).setData(C),b.append(M)}var M,I={points:[e,P],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._fans[u].color,linewidth:this._fans[u].linewidth,linestyle:this._fans[u].linestyle,extendleft:!1,extendright:!0,leftend:d.Normal,rightend:d.Normal};if((M=new s).setData(I),M.setHitTest(new l(l.MOVEPOINT,null,this._fans[u].index)),b.append(M),R.showLabels.value()){var O={points:[P],text:this._fans[u].label,
color:this._fans[u].color,vertAlign:"middle",horzAlign:"left",font:R.font.value(),offsetX:0,offsetY:5,fontsize:12};b.append(new o(O))}}this.addAnchors(b),this._renderer=b}}},c.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.GannFanPaneView=c},a6on:function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("Tmoa"),a=i("aB9a"),o=i("VaSN"),s=i("cPgM"),l=i("VdBB"),h=i("2hKl"),d=i("jFln"),c=i("pJOz"),u=i("a7Ha"),p=i("e9yB"),_=function(e){function t(t){var i=e.call(this)||this;return i._data=t||null,i}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e,t){var i=this._data;if(null===i)return null;if(4===i.points.length){var r=Object(o.lastEventIsTouch)()?10:3,n=i.points,a=n[0],s=n[1],d=n[2],c=n[3],u=c.subtract(a),_=d.subtract(u.scaled(.25)),f=d.add(u.scaled(.25)),v=s.subtract(d),g=c.subtract(v.scaled(.25)),y=c.add(v.scaled(.25));if(Object(h.c)(d,a,_,e,r)||Object(h.a)(d,c,f,g,e,r)||Object(h.c)(c,s,y,e,r))return new l.HitTestResult(l.HitTestResult.MOVEPOINT);var w=Object(p.c)(e,r,i.extendLeftPoints);return null===w&&(w=Object(p.c)(e,r,i.extendRightPoints)),w}return null},t.prototype._drawImpl=function(e,t){if(null!==this._data){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.lineWidth,Object(d.setLineStyle)(e,this._data.lineStyle);var i=this._data.points[0],r=this._data.points[1];if(2===this._data.points.length)e.beginPath(),e.moveTo(i.x,i.y),e.lineTo(r.x,r.y),e.stroke(),this._data.leftEnd===u.LineEnd.Arrow&&Object(c.drawArrow)(r,i,e,e.lineWidth,t.pixelRatio),this._data.rightEnd===u.LineEnd.Arrow&&Object(c.drawArrow)(i,r,e,e.lineWidth,t.pixelRatio);else{var n=this._data.points[2],a=this._data.points[3],o=a.subtract(i),s=n.subtract(o.scaled(.25)),l=n.add(o.scaled(.25)),h=r.subtract(n),_=a.subtract(h.scaled(.25)),f=a.add(h.scaled(.25));this._data.fillBack&&this._data.points.length>2&&(e.fillStyle=this._data.backColor,e.beginPath(),e.moveTo(i.x,i.y),e.quadraticCurveTo(s.x,s.y,n.x,n.y),e.bezierCurveTo(l.x,l.y,_.x,_.y,a.x,a.y),e.quadraticCurveTo(f.x,f.y,r.x,r.y),e.fill()),e.beginPath(),Object(p.b)(e,this._data.extendLeftPoints),e.moveTo(i.x,i.y),e.quadraticCurveTo(s.x,s.y,n.x,n.y),e.bezierCurveTo(l.x,l.y,_.x,_.y,a.x,a.y),e.quadraticCurveTo(f.x,f.y,r.x,r.y),Object(p.b)(e,this._data.extendRightPoints),e.stroke(),this._data.leftEnd===u.LineEnd.Arrow&&Object(c.drawArrow)(s,i,e,e.lineWidth,t.pixelRatio),this._data.rightEnd===u.LineEnd.Arrow&&Object(c.drawArrow)(f,r,e,e.lineWidth,t.pixelRatio)}}},t}(s.ScaledPaneRenderer),f=i("Zy3/"),v=i("4Ptp"),g=i("Eyy1");i.d(t,"BezierCubicPaneView",(function(){return y}));var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._bezierCubicRenderer=new _,t._renderer=null,t._extendedSegmentLeftCache=null,t._extendedSegmentRightCache=null,t}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(e,t),this._renderer},t.prototype._updateImpl=function(t,i){if(e.prototype._updateImpl.call(this,t,i),this._renderer=null, color:this._fans[u].color,vertAlign:"middle",horzAlign:"left",font:R.font.value(),offsetX:0,offsetY:5,fontsize:12};b.append(new o(O))}}this.addAnchors(b),this._renderer=b}}},c.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.GannFanPaneView=c},a6on:function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("Tmoa"),a=i("aB9a"),o=i("VaSN"),s=i("cPgM"),l=i("VdBB"),h=i("2hKl"),d=i("jFln"),c=i("pJOz"),u=i("a7Ha"),p=i("e9yB"),_=function(e){function t(t){var i=e.call(this)||this;return i._data=t||null,i}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e,t){var i=this._data;if(null===i)return null;if(4===i.points.length){var r=Object(o.lastEventIsTouch)()?10:3,n=i.points,a=n[0],s=n[1],d=n[2],c=n[3],u=c.subtract(a),_=d.subtract(u.scaled(.25)),f=d.add(u.scaled(.25)),v=s.subtract(d),g=c.subtract(v.scaled(.25)),y=c.add(v.scaled(.25));if(Object(h.c)(d,a,_,e,r)||Object(h.a)(d,c,f,g,e,r)||Object(h.c)(c,s,y,e,r))return new l.HitTestResult(l.HitTestResult.MOVEPOINT);var w=Object(p.c)(e,r,i.extendLeftPoints);return null===w&&(w=Object(p.c)(e,r,i.extendRightPoints)),w}return null},t.prototype._drawImpl=function(e,t){if(null!==this._data){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.lineWidth,Object(d.setLineStyle)(e,this._data.lineStyle);var i=this._data.points[0],r=this._data.points[1];if(2===this._data.points.length)e.beginPath(),e.moveTo(i.x,i.y),e.lineTo(r.x,r.y),e.stroke(),this._data.leftEnd===u.LineEnd.Arrow&&Object(c.drawArrow)(r,i,e,e.lineWidth,t.pixelRatio),this._data.rightEnd===u.LineEnd.Arrow&&Object(c.drawArrow)(i,r,e,e.lineWidth,t.pixelRatio);else{var n=this._data.points[2],a=this._data.points[3],o=a.subtract(i),s=n.subtract(o.scaled(.25)),l=n.add(o.scaled(.25)),h=r.subtract(n),_=a.subtract(h.scaled(.25)),f=a.add(h.scaled(.25));this._data.fillBack&&this._data.points.length>2&&(e.fillStyle=this._data.backColor,e.beginPath(),e.moveTo(i.x,i.y),e.quadraticCurveTo(s.x,s.y,n.x,n.y),e.bezierCurveTo(l.x,l.y,_.x,_.y,a.x,a.y),e.quadraticCurveTo(f.x,f.y,r.x,r.y),e.fill()),e.beginPath(),Object(p.b)(e,this._data.extendLeftPoints),e.moveTo(i.x,i.y),e.quadraticCurveTo(s.x,s.y,n.x,n.y),e.bezierCurveTo(l.x,l.y,_.x,_.y,a.x,a.y),e.quadraticCurveTo(f.x,f.y,r.x,r.y),Object(p.b)(e,this._data.extendRightPoints),e.stroke(),this._data.leftEnd===u.LineEnd.Arrow&&Object(c.drawArrow)(s,i,e,e.lineWidth,t.pixelRatio),this._data.rightEnd===u.LineEnd.Arrow&&Object(c.drawArrow)(f,r,e,e.lineWidth,t.pixelRatio)}}},t}(s.ScaledPaneRenderer),f=i("Zy3/"),v=i("4Ptp"),g=i("Eyy1");i.d(t,"BezierCubicPaneView",(function(){return y}));var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._bezierCubicRenderer=new _,t._renderer=null,t._extendedSegmentLeftCache=null,t._extendedSegmentRightCache=null,t}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(e,t),this._renderer},t.prototype._updateImpl=function(t,i){if(e.prototype._updateImpl.call(this,t,i),this._renderer=null,
!(this._points.length<2)){var r=this._source.properties().childs(),a=[],o=[];if(4===this._source.points().length){var s=this._source.pointToScreenPoint(this._source.points()[0])[1],l=this._source.pointToScreenPoint(this._source.points()[1])[1],h=this._source.pointToScreenPoint(this._source.points()[2])[1],d=this._source.pointToScreenPoint(this._source.points()[3])[1],c=d.subtract(s),u=h.subtract(c.scaled(.25)),p=l.subtract(h),_=d.add(p.scaled(.25));r.extendLeft.value()&&(a=this._extendSegmentLeft(h,s,u,i,t)),r.extendRight.value()&&(o=this._extendSegmentRight(d,l,_,i,t))}var v=this._points.slice(),g=this._source.controlPoints();null!==g&&(v.push(this._source.pointToScreenPoint(g[0])[0]),v.push(this._source.pointToScreenPoint(g[1])[0]));var y={points:v,color:r.linecolor.value(),lineWidth:r.linewidth.value(),lineStyle:r.linestyle.value(),leftEnd:r.leftEnd.value(),rightEnd:r.rightEnd.value(),fillBack:r.fillBackground.value(),backColor:Object(n.generateColor)(r.backgroundColor.value(),r.transparency.value()),extendLeftPoints:a,extendRightPoints:o};this._bezierCubicRenderer.setData(y);var w=new f.CompositeRenderer;w.append(this._bezierCubicRenderer),this.addAnchors(w),this._renderer=w}},t.prototype._extendSegmentLeft=function(e,t,i,r,n){return Object(v.cacheIsValid)(this._extendedSegmentLeftCache,e,t,i,r,n)||(this._extendedSegmentLeftCache={p1:e,p2:t,p3:i,width:r,height:n,segment:Object(h.b)(e,t,i,r,n)}),Object(g.ensureNotNull)(this._extendedSegmentLeftCache).segment},t.prototype._extendSegmentRight=function(e,t,i,r,n){return Object(v.cacheIsValid)(this._extendedSegmentRightCache,e,t,i,r,n)||(this._extendedSegmentRightCache={p1:e,p2:t,p3:i,width:r,height:n,segment:Object(h.b)(e,t,i,r,n)}),Object(g.ensureNotNull)(this._extendedSegmentRightCache).segment},t}(a.LineSourcePaneView)},aB9a:function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("aO4+"),a=i("VaSN"),o=i("VdBB"),s=i("vq8G"),l=i("f6yo"),h=i("jFln"),d=i("ogJP"),c=i("//lt");function u(){return Object(a.lastEventIsTouch)()?16:8}var p=function(e){function t(t,i,r,n){var a=e.call(this,t,i)||this;return a.data=r,a.square=n,a}return Object(r.c)(t,e),t}(n.Point);function _(e,t,i,r){var n=i+r/2;Object(h.drawRoundRect)(e,t.x-n,t.y-n,2*n,2*n,(i+r)/2),e.closePath(),e.lineWidth=r}function f(e,t,i,r){e.globalAlpha=.2,_(e,t,i,r),e.stroke(),e.globalAlpha=1}function v(e,t,i,r){_(e,t,i-r,r),e.fill(),e.stroke()}function g(e,t,i,r){e.globalAlpha=.2,e.beginPath(),e.arc(t.x,t.y,i+r/2,0,2*Math.PI,!0),e.closePath(),e.lineWidth=r,e.stroke(),e.globalAlpha=1}function y(e,t,i,r){e.beginPath(),e.arc(t.x,t.y,i-r/2,0,2*Math.PI,!0),e.closePath(),e.lineWidth=r,e.fill(),e.stroke()}var w=function(){function e(e){this._data=e}return e.prototype.draw=function(e,t){if(this._data.visible){for(var i=[],r=[],n=[],a=[],o=0;o<this._data.points.length;++o){var s=this._data.points[o],l=this._data.backgroundColors[o];s.square?(i.push(s),r.push(l)):(n.push(s),a.push(l))}i.length&&(e.strokeStyle=this._data.color,this._drawPoints(e,t.pixelRatio,i,r,v,f)),n.length&&(e.strokeStyle=this._data.color, !(this._points.length<2)){var r=this._source.properties().childs(),a=[],o=[];if(4===this._source.points().length){var s=this._source.pointToScreenPoint(this._source.points()[0])[1],l=this._source.pointToScreenPoint(this._source.points()[1])[1],h=this._source.pointToScreenPoint(this._source.points()[2])[1],d=this._source.pointToScreenPoint(this._source.points()[3])[1],c=d.subtract(s),u=h.subtract(c.scaled(.25)),p=l.subtract(h),_=d.add(p.scaled(.25));r.extendLeft.value()&&(a=this._extendSegmentLeft(h,s,u,i,t)),r.extendRight.value()&&(o=this._extendSegmentRight(d,l,_,i,t))}var v=this._points.slice(),g=this._source.controlPoints();null!==g&&(v.push(this._source.pointToScreenPoint(g[0])[0]),v.push(this._source.pointToScreenPoint(g[1])[0]));var y={points:v,color:r.linecolor.value(),lineWidth:r.linewidth.value(),lineStyle:r.linestyle.value(),leftEnd:r.leftEnd.value(),rightEnd:r.rightEnd.value(),fillBack:r.fillBackground.value(),backColor:Object(n.generateColor)(r.backgroundColor.value(),r.transparency.value()),extendLeftPoints:a,extendRightPoints:o};this._bezierCubicRenderer.setData(y);var w=new f.CompositeRenderer;w.append(this._bezierCubicRenderer),this.addAnchors(w),this._renderer=w}},t.prototype._extendSegmentLeft=function(e,t,i,r,n){return Object(v.cacheIsValid)(this._extendedSegmentLeftCache,e,t,i,r,n)||(this._extendedSegmentLeftCache={p1:e,p2:t,p3:i,width:r,height:n,segment:Object(h.b)(e,t,i,r,n)}),Object(g.ensureNotNull)(this._extendedSegmentLeftCache).segment},t.prototype._extendSegmentRight=function(e,t,i,r,n){return Object(v.cacheIsValid)(this._extendedSegmentRightCache,e,t,i,r,n)||(this._extendedSegmentRightCache={p1:e,p2:t,p3:i,width:r,height:n,segment:Object(h.b)(e,t,i,r,n)}),Object(g.ensureNotNull)(this._extendedSegmentRightCache).segment},t}(a.LineSourcePaneView)},aB9a:function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("aO4+"),a=i("VaSN"),o=i("VdBB"),s=i("vq8G"),l=i("f6yo"),h=i("jFln"),d=i("ogJP"),c=i("//lt");function u(){return Object(a.lastEventIsTouch)()?16:8}var p=function(e){function t(t,i,r,n){var a=e.call(this,t,i)||this;return a.data=r,a.square=n,a}return Object(r.c)(t,e),t}(n.Point);function _(e,t,i,r){var n=i+r/2;Object(h.drawRoundRect)(e,t.x-n,t.y-n,2*n,2*n,(i+r)/2),e.closePath(),e.lineWidth=r}function f(e,t,i,r){e.globalAlpha=.2,_(e,t,i,r),e.stroke(),e.globalAlpha=1}function v(e,t,i,r){_(e,t,i-r,r),e.fill(),e.stroke()}function g(e,t,i,r){e.globalAlpha=.2,e.beginPath(),e.arc(t.x,t.y,i+r/2,0,2*Math.PI,!0),e.closePath(),e.lineWidth=r,e.stroke(),e.globalAlpha=1}function y(e,t,i,r){e.beginPath(),e.arc(t.x,t.y,i-r/2,0,2*Math.PI,!0),e.closePath(),e.lineWidth=r,e.fill(),e.stroke()}var w=function(){function e(e){this._data=e}return e.prototype.draw=function(e,t){if(this._data.visible){for(var i=[],r=[],n=[],a=[],o=0;o<this._data.points.length;++o){var s=this._data.points[o],l=this._data.backgroundColors[o];s.square?(i.push(s),r.push(l)):(n.push(s),a.push(l))}i.length&&(e.strokeStyle=this._data.color,this._drawPoints(e,t.pixelRatio,i,r,v,f)),n.length&&(e.strokeStyle=this._data.color,
this._drawPoints(e,t.pixelRatio,n,a,y,g))}},e.prototype.hitTest=function(e){for(var t=this._data.radius||u(),i=0;i<this._data.points.length;++i){var r=this._data.points[i];if(r.subtract(e).length()<=t+2){var n=void 0!==this._data.pointsCursorType?this._data.pointsCursorType[i]:c.PaneCursorType.Default;return new o.HitTestResult(this._data.hittestResult,{pointIndex:r.data,cursorType:n})}}return null},e.prototype.doesIntersectWithBox=function(e){return this._data.points.some((function(t){return Object(l.pointInBox)(t,e)}))},e.prototype._drawPoints=function(e,t,i,r,n,a){var o=this._data.currentPoint,s=this._data.radius||u(),l=Math.max(1,Math.floor((this._data.strokeWidth||2)*t));this._data.selected&&(l+=Math.max(1,Math.floor(t/2)));var h=Math.max(1,Math.floor(t)),c=Math.round(s*t*2);c%2!=h%2&&(c+=1);for(var _=h%2/2,f=0;f<i.length;++f){var v=i[f];if(e.fillStyle=r[f],!(Object(d.isInteger)(v.data)&&this._data.linePointBeingEdited===v.data))if(n(e,new p(Math.round(v.x*t)+_,Math.round(v.y*t)+_,v.data,v.square),c/2,l),v.subtract(o).length()<=s+2){var g=Math.max(1,Math.floor(this._data.selectedStrokeWidth*t)),y=Math.round(s*t*2);y%2!=h%2&&(y+=1),a(e,new p(Math.round(v.x*t)+_,Math.round(v.y*t)+_,v.data,v.square),y/2,g)}}},e}(),m=i("Eyy1");function x(e,t){var i=t.x-e.x,r=t.y-e.y,n=Math.abs(Math.atan2(i,r));return n>Math.PI/4&&n<3*Math.PI/4?c.PaneCursorType.VerticalResize:c.PaneCursorType.HorizontalResize}i.d(t,"thirdPointCursorType",(function(){return x})),i.d(t,"LineSourcePaneView",(function(){return b}));var b=function(){function e(e,t){this._invalidated=!0,this._points=[],this._floatPoints=[],this._middlePoint=null,this._source=e,this._model=t}return e.prototype.priceToCoordinate=function(e){var t=this._source.priceScale();if(null===t)return null;var i=this._source.ownerSource(),r=null!==i?i.firstValue():null;return null===r?null:t.priceToCoordinate(e,r)},e.prototype.currentPoint=function(){var e=this._model.crossHairSource();return new n.Point(e.originX(),e.originY())},e.prototype.anchorColor=function(){return"#1E88E5"},e.prototype.isHoveredSource=function(){return this._source===this._model.hoveredSource()},e.prototype.isSelectedSource=function(){return this._model.selection().isSelected(this._source)},e.prototype.isBeingEdited=function(){return this._model.lineBeingEdited()===this._source},e.prototype.isEditMode=function(){return!this._model.isSnapshot()},e.prototype.areAnchorsVisible=function(){return(this.isHoveredSource()&&!this.isLocked()||this.isSelectedSource())&&this.isEditMode()},e.prototype.update=function(){this._invalidated=!0},e.prototype.isLocked=function(){return Boolean(this._source.isLocked&&this._source.isLocked())},e.prototype.addAnchors=function(e){var t=this._points;this._model.lineBeingCreated()===this._source&&(t=t.slice(0,-1)),e.append(this.createLineAnchor({points:t}))},e.prototype.createLineAnchor=function(e){if(this.isLocked())return new s.SelectionRenderer({bgColors:this._lineAnchorColors(e.points),points:e.points,visible:this.areAnchorsVisible(),hittestResult:o.HitTestResult.REGULAR, this._drawPoints(e,t.pixelRatio,n,a,y,g))}},e.prototype.hitTest=function(e){for(var t=this._data.radius||u(),i=0;i<this._data.points.length;++i){var r=this._data.points[i];if(r.subtract(e).length()<=t+2){var n=void 0!==this._data.pointsCursorType?this._data.pointsCursorType[i]:c.PaneCursorType.Default;return new o.HitTestResult(this._data.hittestResult,{pointIndex:r.data,cursorType:n})}}return null},e.prototype.doesIntersectWithBox=function(e){return this._data.points.some((function(t){return Object(l.pointInBox)(t,e)}))},e.prototype._drawPoints=function(e,t,i,r,n,a){var o=this._data.currentPoint,s=this._data.radius||u(),l=Math.max(1,Math.floor((this._data.strokeWidth||2)*t));this._data.selected&&(l+=Math.max(1,Math.floor(t/2)));var h=Math.max(1,Math.floor(t)),c=Math.round(s*t*2);c%2!=h%2&&(c+=1);for(var _=h%2/2,f=0;f<i.length;++f){var v=i[f];if(e.fillStyle=r[f],!(Object(d.isInteger)(v.data)&&this._data.linePointBeingEdited===v.data))if(n(e,new p(Math.round(v.x*t)+_,Math.round(v.y*t)+_,v.data,v.square),c/2,l),v.subtract(o).length()<=s+2){var g=Math.max(1,Math.floor(this._data.selectedStrokeWidth*t)),y=Math.round(s*t*2);y%2!=h%2&&(y+=1),a(e,new p(Math.round(v.x*t)+_,Math.round(v.y*t)+_,v.data,v.square),y/2,g)}}},e}(),m=i("Eyy1");function x(e,t){var i=t.x-e.x,r=t.y-e.y,n=Math.abs(Math.atan2(i,r));return n>Math.PI/4&&n<3*Math.PI/4?c.PaneCursorType.VerticalResize:c.PaneCursorType.HorizontalResize}i.d(t,"thirdPointCursorType",(function(){return x})),i.d(t,"LineSourcePaneView",(function(){return b}));var b=function(){function e(e,t){this._invalidated=!0,this._points=[],this._floatPoints=[],this._middlePoint=null,this._source=e,this._model=t}return e.prototype.priceToCoordinate=function(e){var t=this._source.priceScale();if(null===t)return null;var i=this._source.ownerSource(),r=null!==i?i.firstValue():null;return null===r?null:t.priceToCoordinate(e,r)},e.prototype.currentPoint=function(){var e=this._model.crossHairSource();return new n.Point(e.originX(),e.originY())},e.prototype.anchorColor=function(){return"#1E88E5"},e.prototype.isHoveredSource=function(){return this._source===this._model.hoveredSource()},e.prototype.isSelectedSource=function(){return this._model.selection().isSelected(this._source)},e.prototype.isBeingEdited=function(){return this._model.lineBeingEdited()===this._source},e.prototype.isEditMode=function(){return!this._model.isSnapshot()},e.prototype.areAnchorsVisible=function(){return(this.isHoveredSource()&&!this.isLocked()||this.isSelectedSource())&&this.isEditMode()},e.prototype.update=function(){this._invalidated=!0},e.prototype.isLocked=function(){return Boolean(this._source.isLocked&&this._source.isLocked())},e.prototype.addAnchors=function(e){var t=this._points;this._model.lineBeingCreated()===this._source&&(t=t.slice(0,-1)),e.append(this.createLineAnchor({points:t}))},e.prototype.createLineAnchor=function(e){if(this.isLocked())return new s.SelectionRenderer({bgColors:this._lineAnchorColors(e.points),points:e.points,visible:this.areAnchorsVisible(),hittestResult:o.HitTestResult.REGULAR,
@@ -67,7 +67,7 @@ var e=this._source.points(),t=e[0],i=e[1],a=Math.min(t.index,i.index),s=Math.max
;var t=this._data.edge.subtract(this._data.center),i=t.y/t.x,r=this._data.point.subtract(this._data.center),o=(r=new n.Point(r.x,r.y/i)).length(),s=this._data.prevPoint.subtract(this._data.center),l=(s=new n.Point(s.x,s.y/i)).length();e.scale(1,i),this._data.fillBack&&(this._data.point.x<this._data.center.x&&(o=-o,l=-l),e.beginPath(),e.moveTo(l,0),e.lineTo(o,0),e.arcTo(o,o,0,o,Math.abs(o)),e.lineTo(0,l),e.arcTo(l,l,l,0,Math.abs(l)),e.fillStyle=Object(a.generateColor)(this._data.color,this._data.transparency,!0),e.fill()),e.beginPath(),this._data.point.x>this._data.center.x?e.arc(0,0,Math.abs(o),0,Math.PI/2,!1):e.arc(0,0,Math.abs(o),-Math.PI/2,-Math.PI,!0),e.scale(1,1/i),e.stroke()}},t}(i("cPgM").ScaledPaneRenderer)},bFMU:function(e,t,i){"use strict";i.r(t),i.d(t,"ABCDPaneView",(function(){return u}));var r=i("mrSG"),n=i("8Uy/"),a=i("Zy3/"),o=i("zXvd"),s=i("pJOz"),l=i("qgcf"),h=i("a7Ha"),d=i("BCbF"),c=i("VdBB"),u=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._numericFormatter=new o.NumericFormatter,r._abRetracementTrend=new s.TrendLineRenderer,r._cdRetracementTrend=new s.TrendLineRenderer,r._polylineRenderer=new d.PolygonRenderer(new c.HitTestResult(c.HitTestResult.MOVEPOINT)),r._abLabelRenderer=new l.TextRenderer,r._cdLabelRenderer=new l.TextRenderer,r._textRendererALabel=new l.TextRenderer,r._textRendererBLabel=new l.TextRenderer,r._textRendererCLabel=new l.TextRenderer,r._textRendererDLabel=new l.TextRenderer,r._renderer=null,r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){if(e.prototype._updateImpl.call(this),this._points.length<2)this._renderer=null;else{var t=this._source.properties().childs(),i=new a.CompositeRenderer,r=function(e,i){return{points:[e],text:i,color:t.textcolor.value(),vertAlign:"middle",horzAlign:"center",font:t.font.value(),offsetX:0,offsetY:0,bold:t.bold&&t.bold.value(),italic:t.italic&&t.italic.value(),fontsize:t.fontsize.value(),backgroundColor:t.color.value(),backgroundRoundRect:4}},o=function(e,i){return{points:[e,i],color:t.color.value(),linewidth:t.linewidth.value(),linestyle:n.LINESTYLE_DOTTED,extendleft:!1,extendright:!1,leftend:h.LineEnd.Normal,rightend:h.LineEnd.Normal}},s=this._points,l=s[0],d=s[1],c=s[2],u=s[3],p={points:this._points,color:t.color.value(),linewidth:t.linewidth.value(),linestyle:n.LINESTYLE_SOLID,fillBackground:!1,filled:!1,backcolor:"rgba(0, 0, 0, 0)"};this._polylineRenderer.setData(p),i.append(this._polylineRenderer);var _=r(l,"A");d.y>l.y?(_.vertAlign="bottom",_.offsetY=5):(_.vertAlign="top",_.offsetY=5),this._textRendererALabel.setData(_),i.append(this._textRendererALabel);var f=r(d,"B");if(d.y<l.y?(f.vertAlign="bottom",f.offsetY=5):(f.vertAlign="top",f.offsetY=5),this._textRendererBLabel.setData(f),i.append(this._textRendererBLabel),this._points.length>2){var v=r(c,"C");c.y<d.y?(v.vertAlign="bottom",v.offsetY=5):(v.vertAlign="top",v.offsetY=5),this._textRendererCLabel.setData(v),i.append(this._textRendererCLabel)} ;var t=this._data.edge.subtract(this._data.center),i=t.y/t.x,r=this._data.point.subtract(this._data.center),o=(r=new n.Point(r.x,r.y/i)).length(),s=this._data.prevPoint.subtract(this._data.center),l=(s=new n.Point(s.x,s.y/i)).length();e.scale(1,i),this._data.fillBack&&(this._data.point.x<this._data.center.x&&(o=-o,l=-l),e.beginPath(),e.moveTo(l,0),e.lineTo(o,0),e.arcTo(o,o,0,o,Math.abs(o)),e.lineTo(0,l),e.arcTo(l,l,l,0,Math.abs(l)),e.fillStyle=Object(a.generateColor)(this._data.color,this._data.transparency,!0),e.fill()),e.beginPath(),this._data.point.x>this._data.center.x?e.arc(0,0,Math.abs(o),0,Math.PI/2,!1):e.arc(0,0,Math.abs(o),-Math.PI/2,-Math.PI,!0),e.scale(1,1/i),e.stroke()}},t}(i("cPgM").ScaledPaneRenderer)},bFMU:function(e,t,i){"use strict";i.r(t),i.d(t,"ABCDPaneView",(function(){return u}));var r=i("mrSG"),n=i("8Uy/"),a=i("Zy3/"),o=i("zXvd"),s=i("pJOz"),l=i("qgcf"),h=i("a7Ha"),d=i("BCbF"),c=i("VdBB"),u=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._numericFormatter=new o.NumericFormatter,r._abRetracementTrend=new s.TrendLineRenderer,r._cdRetracementTrend=new s.TrendLineRenderer,r._polylineRenderer=new d.PolygonRenderer(new c.HitTestResult(c.HitTestResult.MOVEPOINT)),r._abLabelRenderer=new l.TextRenderer,r._cdLabelRenderer=new l.TextRenderer,r._textRendererALabel=new l.TextRenderer,r._textRendererBLabel=new l.TextRenderer,r._textRendererCLabel=new l.TextRenderer,r._textRendererDLabel=new l.TextRenderer,r._renderer=null,r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){if(e.prototype._updateImpl.call(this),this._points.length<2)this._renderer=null;else{var t=this._source.properties().childs(),i=new a.CompositeRenderer,r=function(e,i){return{points:[e],text:i,color:t.textcolor.value(),vertAlign:"middle",horzAlign:"center",font:t.font.value(),offsetX:0,offsetY:0,bold:t.bold&&t.bold.value(),italic:t.italic&&t.italic.value(),fontsize:t.fontsize.value(),backgroundColor:t.color.value(),backgroundRoundRect:4}},o=function(e,i){return{points:[e,i],color:t.color.value(),linewidth:t.linewidth.value(),linestyle:n.LINESTYLE_DOTTED,extendleft:!1,extendright:!1,leftend:h.LineEnd.Normal,rightend:h.LineEnd.Normal}},s=this._points,l=s[0],d=s[1],c=s[2],u=s[3],p={points:this._points,color:t.color.value(),linewidth:t.linewidth.value(),linestyle:n.LINESTYLE_SOLID,fillBackground:!1,filled:!1,backcolor:"rgba(0, 0, 0, 0)"};this._polylineRenderer.setData(p),i.append(this._polylineRenderer);var _=r(l,"A");d.y>l.y?(_.vertAlign="bottom",_.offsetY=5):(_.vertAlign="top",_.offsetY=5),this._textRendererALabel.setData(_),i.append(this._textRendererALabel);var f=r(d,"B");if(d.y<l.y?(f.vertAlign="bottom",f.offsetY=5):(f.vertAlign="top",f.offsetY=5),this._textRendererBLabel.setData(f),i.append(this._textRendererBLabel),this._points.length>2){var v=r(c,"C");c.y<d.y?(v.vertAlign="bottom",v.offsetY=5):(v.vertAlign="top",v.offsetY=5),this._textRendererCLabel.setData(v),i.append(this._textRendererCLabel)}
if(this._points.length>3){var g=r(u,"D");u.y<c.y?(g.vertAlign="bottom",g.offsetY=5):(g.vertAlign="top",g.offsetY=5),this._textRendererDLabel.setData(g),i.append(this._textRendererDLabel)}if(this._points.length>=3){this._abRetracementTrend.setData(o(l,c)),i.append(this._abRetracementTrend);var y=l.add(c).scaled(.5),w=this._source.points(),m=w[0],x=w[1],b=w[2],R=Math.round(1e3*Math.abs((b.price-x.price)/(x.price-m.price)))/1e3,T=r(y,this._numericFormatter.format(R));this._abLabelRenderer.setData(T),i.append(this._abLabelRenderer)}if(this._points.length>=4){this._cdRetracementTrend.setData(o(d,u)),i.append(this._cdRetracementTrend);var S=d.add(u).scaled(.5),P=this._source.points(),L=(x=P[1],b=P[2],P[3]),C=Math.round(1e3*Math.abs((L.price-b.price)/(b.price-x.price)))/1e3,M=r(S,this._numericFormatter.format(C));this._cdLabelRenderer.setData(M),i.append(this._cdLabelRenderer)}this.addAnchors(i),this._renderer=i}},t}(i("aB9a").LineSourcePaneView)},bcXK:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("Hr11"),a=i("pJOz").TrendLineRenderer,o=i("cjIn").PaneRendererCachedImage,s=i("VdBB").HitTestResult,l=i("Zy3/").CompositeRenderer,h=i("Tmoa"),d=i("a7Ha").LineEnd,c=i("cPgM").ScaledPaneRenderer,u=i("NCfL").LineToolPaneViewWithLevelledTextCache;function p(e,t,i){c.call(this),this._data=e,this._hittest=t||new s(s.MOVEPOINT),this._backHittest=i||new s(s.MOVEPOINT_BACKGROUND)}function _(e,t){u.call(this,e,t),this._rendererCache={},this._trendLineRenderer=new a,this._renderer=null}inherit(p,c),p.prototype._drawImpl=function(e){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.translate(this._data.center.x,this._data.center.y),e.beginPath(),this._data.fullCircles?e.arc(0,0,this._data.radius,2*Math.PI,0,!1):this._data.dir>0?e.arc(0,0,this._data.radius,0,Math.PI,!1):e.arc(0,0,this._data.radius,Math.PI,0,!1),e.stroke(),this._data.fillBackground&&(this._data.radius2&&(this._data.fullCircles?e.arc(0,0,this._data.radius2,2*Math.PI,0,!0):this._data.dir>0?e.arc(0,0,this._data.radius2,Math.PI,0,!0):e.arc(0,0,this._data.radius2,0,Math.PI,!0)),e.fillStyle=h.generateColor(this._data.color,this._data.transparency,!0),e.fill())},p.prototype.hitTest=function(e){if(n.sign(e.y-this._data.center.y)!==this._data.dir&&!this._data.fullCircles)return null;var t=e.subtract(this._data.center).length();return Math.abs(t-this._data.radius)<3?this._hittest:this._data.hittestOnBackground&&Math.abs(t)<=this._data.radius+3?this._backHittest:null},inherit(_,u),_.prototype.getCacheRects=function(e,t){u.prototype.getCacheRects.call(this,e,t);var i=this._cacheState.preparedCells.cells[this._levels[t].index-1];if(i){var r=this._levels[t],n={left:i.left,top:this._cache.topByRow(this._cacheState.row),width:i.width,height:this._cache.rowHeight(this._cacheState.row)};return{cacheRect:n,targetRect:{left:Math.round(r.labelPoint.x-n.width),top:Math.round(r.labelPoint.y-n.height/2),width:i.width,height:n.height}}}},_.prototype._updateImpl=function(){if(u.prototype._updateImpl.call(this),this._renderer=null, if(this._points.length>3){var g=r(u,"D");u.y<c.y?(g.vertAlign="bottom",g.offsetY=5):(g.vertAlign="top",g.offsetY=5),this._textRendererDLabel.setData(g),i.append(this._textRendererDLabel)}if(this._points.length>=3){this._abRetracementTrend.setData(o(l,c)),i.append(this._abRetracementTrend);var y=l.add(c).scaled(.5),w=this._source.points(),m=w[0],x=w[1],b=w[2],R=Math.round(1e3*Math.abs((b.price-x.price)/(x.price-m.price)))/1e3,T=r(y,this._numericFormatter.format(R));this._abLabelRenderer.setData(T),i.append(this._abLabelRenderer)}if(this._points.length>=4){this._cdRetracementTrend.setData(o(d,u)),i.append(this._cdRetracementTrend);var S=d.add(u).scaled(.5),P=this._source.points(),L=(x=P[1],b=P[2],P[3]),C=Math.round(1e3*Math.abs((L.price-b.price)/(b.price-x.price)))/1e3,M=r(S,this._numericFormatter.format(C));this._cdLabelRenderer.setData(M),i.append(this._cdLabelRenderer)}this.addAnchors(i),this._renderer=i}},t}(i("aB9a").LineSourcePaneView)},bcXK:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("Hr11"),a=i("pJOz").TrendLineRenderer,o=i("cjIn").PaneRendererCachedImage,s=i("VdBB").HitTestResult,l=i("Zy3/").CompositeRenderer,h=i("Tmoa"),d=i("a7Ha").LineEnd,c=i("cPgM").ScaledPaneRenderer,u=i("NCfL").LineToolPaneViewWithLevelledTextCache;function p(e,t,i){c.call(this),this._data=e,this._hittest=t||new s(s.MOVEPOINT),this._backHittest=i||new s(s.MOVEPOINT_BACKGROUND)}function _(e,t){u.call(this,e,t),this._rendererCache={},this._trendLineRenderer=new a,this._renderer=null}inherit(p,c),p.prototype._drawImpl=function(e){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.translate(this._data.center.x,this._data.center.y),e.beginPath(),this._data.fullCircles?e.arc(0,0,this._data.radius,2*Math.PI,0,!1):this._data.dir>0?e.arc(0,0,this._data.radius,0,Math.PI,!1):e.arc(0,0,this._data.radius,Math.PI,0,!1),e.stroke(),this._data.fillBackground&&(this._data.radius2&&(this._data.fullCircles?e.arc(0,0,this._data.radius2,2*Math.PI,0,!0):this._data.dir>0?e.arc(0,0,this._data.radius2,Math.PI,0,!0):e.arc(0,0,this._data.radius2,0,Math.PI,!0)),e.fillStyle=h.generateColor(this._data.color,this._data.transparency,!0),e.fill())},p.prototype.hitTest=function(e){if(n.sign(e.y-this._data.center.y)!==this._data.dir&&!this._data.fullCircles)return null;var t=e.subtract(this._data.center).length();return Math.abs(t-this._data.radius)<3?this._hittest:this._data.hittestOnBackground&&Math.abs(t)<=this._data.radius+3?this._backHittest:null},inherit(_,u),_.prototype.getCacheRects=function(e,t){u.prototype.getCacheRects.call(this,e,t);var i=this._cacheState.preparedCells.cells[this._levels[t].index-1];if(i){var r=this._levels[t],n={left:i.left,top:this._cache.topByRow(this._cacheState.row),width:i.width,height:this._cache.rowHeight(this._cacheState.row)};return{cacheRect:n,targetRect:{left:Math.round(r.labelPoint.x-n.width),top:Math.round(r.labelPoint.y-n.height/2),width:i.width,height:n.height}}}},_.prototype._updateImpl=function(){if(u.prototype._updateImpl.call(this),this._renderer=null,
!(this._floatPoints.length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){var e=this._floatPoints[0],t=this._floatPoints[1],i=e.subtract(t).length();this._levels=[];for(var a=this._source.properties(),h=this._source.levelsCount(),c=1;c<=h;c++){var _=a["level"+c];if(_.visible.value()){var f=_.coeff.value(),v=_.color.value(),g=t.subtract(e).length()*f,y=n.sign(t.y-e.y),w=new r(e.x,e.y+y*i*f);this._levels.push({color:v,radius:g,dir:y,labelPoint:w,linewidth:_.linewidth.value(),linestyle:_.linestyle.value(),index:c})}}if(!(this._floatPoints.length<2)){var m=new l,x=(e=this._floatPoints[0],(a=this._source.properties()).fillBackground.value()),b=a.transparency.value();for(c=0;c<this._levels.length;c++){var R=this._levels[c],T={};T.center=e,T.color=R.color,T.linewidth=R.linewidth,T.radius=R.radius,T.dir=R.dir,T.transparency=b,T.fillBackground=x,T.hittestOnBackground=!0,T.fullCircles=a.fullCircles.value(),c>0&&(T.radius2=this._levels[c-1].radius);var S=new s(s.MOVEPOINT,null,R.index);if(m.append(new p(T,S)),a.showCoeffs.value()){var P=new o(this,c);m.append(P)}}if(a.trendline.visible.value()){var L={points:[this._floatPoints[0],this._floatPoints[1]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:a.trendline.color.value(),linewidth:a.trendline.linewidth.value(),linestyle:a.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal};this._trendLineRenderer.setData(L),m.append(this._trendLineRenderer)}this.addAnchors(m),this._renderer=m}}},_.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.FibSpeedResistanceArcsPaneView=_},c6sA:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("z+cS").VerticalLineRenderer,o=i("IjC5").RectangleRenderer,s=i("pJOz").TrendLineRenderer,l=i("VdBB").HitTestResult,h=i("gyZD").PaneRendererLine,d=i("Zy3/").CompositeRenderer,c=i("Tmoa"),u=i("Ye2/").LineToolBarsPatternMode,p=i("a7Ha").LineEnd;function _(e,t){n.call(this,e,t),this._vertLineRenderer1=new a,this._vertLineRenderer2=new a,this._medianRenderer=new s,this._renderer=null}inherit(_,n),_.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},_.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(!this._source.priceScale()||this._source.priceScale().isEmpty()||this._points.length<2)){if(this._source._pattern&&this._source._pattern.length>0&&2===this._source.points().length){var e=this._source.priceScale(),t=this._source.firstPatternPrice(),i=this._source.pressCoeff(),a=this._source.ownerSource().firstValue(),s=e.priceToCoordinate(t,a),_=function(r){var n=(r-t)*i+t;return e.priceToCoordinate(n,a)-s},f=parseInt(this._source.properties().mode.value()),v=this._source.points()[0].index>this._source.points()[1].index?1:0,g=this._points[v],y=g.x,w=Math.abs((this._points[0].x-this._points[1].x)/(this._source._pattern.length-1)),m={0:function(e){return{ !(this._floatPoints.length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){var e=this._floatPoints[0],t=this._floatPoints[1],i=e.subtract(t).length();this._levels=[];for(var a=this._source.properties(),h=this._source.levelsCount(),c=1;c<=h;c++){var _=a["level"+c];if(_.visible.value()){var f=_.coeff.value(),v=_.color.value(),g=t.subtract(e).length()*f,y=n.sign(t.y-e.y),w=new r(e.x,e.y+y*i*f);this._levels.push({color:v,radius:g,dir:y,labelPoint:w,linewidth:_.linewidth.value(),linestyle:_.linestyle.value(),index:c})}}if(!(this._floatPoints.length<2)){var m=new l,x=(e=this._floatPoints[0],(a=this._source.properties()).fillBackground.value()),b=a.transparency.value();for(c=0;c<this._levels.length;c++){var R=this._levels[c],T={};T.center=e,T.color=R.color,T.linewidth=R.linewidth,T.radius=R.radius,T.dir=R.dir,T.transparency=b,T.fillBackground=x,T.hittestOnBackground=!0,T.fullCircles=a.fullCircles.value(),c>0&&(T.radius2=this._levels[c-1].radius);var S=new s(s.MOVEPOINT,null,R.index);if(m.append(new p(T,S)),a.showCoeffs.value()){var P=new o(this,c);m.append(P)}}if(a.trendline.visible.value()){var L={points:[this._floatPoints[0],this._floatPoints[1]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:a.trendline.color.value(),linewidth:a.trendline.linewidth.value(),linestyle:a.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal};this._trendLineRenderer.setData(L),m.append(this._trendLineRenderer)}this.addAnchors(m),this._renderer=m}}},_.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.FibSpeedResistanceArcsPaneView=_},c6sA:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("z+cS").VerticalLineRenderer,o=i("IjC5").RectangleRenderer,s=i("pJOz").TrendLineRenderer,l=i("VdBB").HitTestResult,h=i("gyZD").PaneRendererLine,d=i("Zy3/").CompositeRenderer,c=i("Tmoa"),u=i("Ye2/").LineToolBarsPatternMode,p=i("a7Ha").LineEnd;function _(e,t){n.call(this,e,t),this._vertLineRenderer1=new a,this._vertLineRenderer2=new a,this._medianRenderer=new s,this._renderer=null}inherit(_,n),_.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},_.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(!this._source.priceScale()||this._source.priceScale().isEmpty()||this._points.length<2)){if(this._source._pattern&&this._source._pattern.length>0&&2===this._source.points().length){var e=this._source.priceScale(),t=this._source.firstPatternPrice(),i=this._source.pressCoeff(),a=this._source.ownerSource().firstValue(),s=e.priceToCoordinate(t,a),_=function(r){var n=(r-t)*i+t;return e.priceToCoordinate(n,a)-s},f=parseInt(this._source.properties().mode.value()),v=this._source.points()[0].index>this._source.points()[1].index?1:0,g=this._points[v],y=g.x,w=Math.abs((this._points[0].x-this._points[1].x)/(this._source._pattern.length-1)),m={0:function(e){return{
high:_(e[TradingView.HIGH_PLOT]),low:_(e[TradingView.LOW_PLOT])}},1:function(e,t){return new r(y+t*w,_(e[TradingView.CLOSE_PLOT])+g.y)},2:function(e){return{open:_(e[TradingView.OPEN_PLOT]),close:_(e[TradingView.CLOSE_PLOT])}},3:function(e,t){return new r(y+t*w,_(e[TradingView.OPEN_PLOT])+g.y)},4:function(e,t){return new r(y+t*w,_(e[TradingView.HIGH_PLOT])+g.y)},5:function(e,t){return new r(y+t*w,_(e[TradingView.LOW_PLOT])+g.y)},6:function(e,t){return new r(y+t*w,_((e[TradingView.HIGH_PLOT]+e[TradingView.LOW_PLOT])/2)+g.y)}};this._pattern=this._source._pattern.map(m[f])}else delete this._pattern;if(this._pattern&&2===this._source.points().length){var x=this._source.points()[0].index<this._source.points()[1].index?this._points[0]:this._points[1];if(!x)return void(this._renderer=new d);f=parseInt(this._source.properties().mode.value(),10),w=Math.abs((this._points[0].x-this._points[1].x)/(this._pattern.length-1));if(f===u.Bars||f===u.OpenClose){for(var b=new d,R=f===u.Bars?["high","low"]:["open","close"],T=R[0],S=R[1],P=0;P<this._pattern.length;P++){var L=Math.round(x.x+P*w+.5),C=x.y+Math.round(this._pattern[P][T]),M=x.y+Math.round(this._pattern[P][S]);(O={}).points=[new r(L-1,C),new r(L+1,M)],O.color=this._source.properties().color.value(),O.linewidth=1,O.backcolor=this._source.properties().color.value(),O.fillBackground=!0,O.transparency=10,O.extendLeft=!1,O.extendRight=!1;var I=new o;I.setData(O),b.append(I)}b.append(this.createLineAnchor({points:this._points})),this._renderer=b}else{var O;b=new d;(O={}).barSpacing=w,O.items=this._pattern,O.histogramBase=0,O.lineIndex=0,O.lineColor=c.generateColor(this._source.properties().color.value(),10),O.lineStyle=CanvasEx.LINESTYLE_SOLID,O.lineWidth=2,O.hittest=new l(l.MOVEPOINT),b.append(new h(O)),b.append(this.createLineAnchor({points:this._points})),this._renderer=b}}else{b=new d;if(this._points.length<2)return void(this._renderer=b);var D=this._model.timeScale().width(),k=this._source.priceScale().height(),N=this._points[0],B=this._points[1],A={};A.width=D,A.height=k,A.x=N.x,A.color="#808080",A.linewidth=1,A.linestyle=CanvasEx.LINESTYLE_SOLID,this._vertLineRenderer1.setData(A),b.append(this._vertLineRenderer1);var j={};j.width=D,j.height=k,j.x=B.x,j.color="#808080",j.linewidth=1,j.linestyle=CanvasEx.LINESTYLE_SOLID,this._vertLineRenderer2.setData(j),b.append(this._vertLineRenderer2);var E={points:[N,B],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:"#808080",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:p.Normal,rightend:p.Normal};this._medianRenderer.setData(E),b.append(this._medianRenderer),this._renderer=b}}},t.BarsPatternPaneView=_},"cT+B":function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("pJOz").TrendLineRenderer,o=i("2trc").ChannelRenderer,s=i("VdBB").HitTestResult,l=i("Zy3/").CompositeRenderer,h=i("a7Ha").LineEnd;function d(e,t){n.call(this,e,t),this._medianRenderer=new a,this._sideRenderer=new a,this._renderer=null}function c(e,t){d.call(this,e,t), high:_(e[TradingView.HIGH_PLOT]),low:_(e[TradingView.LOW_PLOT])}},1:function(e,t){return new r(y+t*w,_(e[TradingView.CLOSE_PLOT])+g.y)},2:function(e){return{open:_(e[TradingView.OPEN_PLOT]),close:_(e[TradingView.CLOSE_PLOT])}},3:function(e,t){return new r(y+t*w,_(e[TradingView.OPEN_PLOT])+g.y)},4:function(e,t){return new r(y+t*w,_(e[TradingView.HIGH_PLOT])+g.y)},5:function(e,t){return new r(y+t*w,_(e[TradingView.LOW_PLOT])+g.y)},6:function(e,t){return new r(y+t*w,_((e[TradingView.HIGH_PLOT]+e[TradingView.LOW_PLOT])/2)+g.y)}};this._pattern=this._source._pattern.map(m[f])}else delete this._pattern;if(this._pattern&&2===this._source.points().length){var x=this._source.points()[0].index<this._source.points()[1].index?this._points[0]:this._points[1];if(!x)return void(this._renderer=new d);f=parseInt(this._source.properties().mode.value(),10),w=Math.abs((this._points[0].x-this._points[1].x)/(this._pattern.length-1));if(f===u.Bars||f===u.OpenClose){for(var b=new d,R=f===u.Bars?["high","low"]:["open","close"],T=R[0],S=R[1],P=0;P<this._pattern.length;P++){var L=Math.round(x.x+P*w+.5),C=x.y+Math.round(this._pattern[P][T]),M=x.y+Math.round(this._pattern[P][S]);(O={}).points=[new r(L-1,C),new r(L+1,M)],O.color=this._source.properties().color.value(),O.linewidth=1,O.backcolor=this._source.properties().color.value(),O.fillBackground=!0,O.transparency=10,O.extendLeft=!1,O.extendRight=!1;var I=new o;I.setData(O),b.append(I)}b.append(this.createLineAnchor({points:this._points})),this._renderer=b}else{var O;b=new d;(O={}).barSpacing=w,O.items=this._pattern,O.histogramBase=0,O.lineIndex=0,O.lineColor=c.generateColor(this._source.properties().color.value(),10),O.lineStyle=CanvasEx.LINESTYLE_SOLID,O.lineWidth=2,O.hittest=new l(l.MOVEPOINT),b.append(new h(O)),b.append(this.createLineAnchor({points:this._points})),this._renderer=b}}else{b=new d;if(this._points.length<2)return void(this._renderer=b);var D=this._model.timeScale().width(),k=this._source.priceScale().height(),B=this._points[0],N=this._points[1],A={};A.width=D,A.height=k,A.x=B.x,A.color="#808080",A.linewidth=1,A.linestyle=CanvasEx.LINESTYLE_SOLID,this._vertLineRenderer1.setData(A),b.append(this._vertLineRenderer1);var j={};j.width=D,j.height=k,j.x=N.x,j.color="#808080",j.linewidth=1,j.linestyle=CanvasEx.LINESTYLE_SOLID,this._vertLineRenderer2.setData(j),b.append(this._vertLineRenderer2);var z={points:[B,N],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:"#808080",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:p.Normal,rightend:p.Normal};this._medianRenderer.setData(z),b.append(this._medianRenderer),this._renderer=b}}},t.BarsPatternPaneView=_},"cT+B":function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("pJOz").TrendLineRenderer,o=i("2trc").ChannelRenderer,s=i("VdBB").HitTestResult,l=i("Zy3/").CompositeRenderer,h=i("a7Ha").LineEnd;function d(e,t){n.call(this,e,t),this._medianRenderer=new a,this._sideRenderer=new a,this._renderer=null}function c(e,t){d.call(this,e,t),
this._backSideRenderer=new a}function u(e,t){c.call(this,e,t)}function p(e,t){d.call(this,e,t),this._backSideRenderer=new a,this._centerRenderer=new a}inherit(d,n),d.prototype._updateImpl=function(){n.prototype._updateImpl.call(this),this._renderer=null,0!==this._floatPoints.length&&(3===this._floatPoints.length?(this._medianPoint=this._floatPoints[1].add(this._floatPoints[2]).scaled(.5),this._medianPoint.data=3):2===this._floatPoints.length?(this._medianPoint=this._floatPoints[1],this._medianPoint.data=3):(this._medianPoint=this._floatPoints[0],this._medianPoint.data=3),this._updateRenderer())},d.prototype._updateRenderer=function(){if(!(this._floatPoints.length<2)&&this._medianPoint){var e=this._source.properties(),t=new l,i={points:[this._floatPoints[0],this._medianPoint],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:e.median.color.value(),linewidth:e.median.linewidth.value(),linestyle:e.median.linestyle.value(),extendleft:e.extendLines.value(),extendright:!0,leftend:h.Normal,rightend:h.Normal};if(this._medianRenderer.setData(i),t.append(this._medianRenderer),this._floatPoints.length<3)return this.addAnchors(t),void(this._renderer=t);var r={points:[this._floatPoints[1],this._floatPoints[2]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:e.median.color.value(),linewidth:e.median.linewidth.value(),linestyle:e.median.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._sideRenderer.setData(r),t.append(this._sideRenderer);for(var n=this._floatPoints[2].subtract(this._floatPoints[1]).scaled(.5),d=this._medianPoint.subtract(this._floatPoints[0]),c=0,u=e.fillBackground.value(),p=e.transparency.value(),_=0;_<=8;_++){var f=e["level"+_];if(f.visible.value()){var v,g,y=this._medianPoint.addScaled(n,f.coeff.value()),w=y.add(d),m=this._medianPoint.addScaled(n,-f.coeff.value()),x=m.add(d);if(u)(v={}).p1=y,v.p2=w,v.p3=this._medianPoint.addScaled(n,c),v.p4=v.p3.add(d),v.color=f.color.value(),v.width=this._model.timeScale().width(),v.height=this._source.priceScale().height(),v.transparency=p,v.hittestOnBackground=!0,v.extendLeft=e.extendLines.value(),(g=new o).setData(v),t.append(g),(v={}).p1=m,v.p2=x,v.p3=this._medianPoint.addScaled(n,-c),v.p4=v.p3.add(d),v.color=f.color.value(),v.width=this._model.timeScale().width(),v.height=this._source.priceScale().height(),v.transparency=p,v.hittestOnBackground=!0,v.extendLeft=e.extendLines.value(),(g=new o).setData(v),t.append(g);c=f.coeff.value();var b={points:[y,w],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:f.color.value(),linewidth:f.linewidth.value(),linestyle:f.linestyle.value(),extendleft:e.extendLines.value(),extendright:!0,leftend:h.Normal,rightend:h.Normal},R=new a;R.setData(b),R.setHitTest(new s(s.MOVEPOINT,null,_)),t.append(R);var T={points:[m,x],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:f.color.value(),linewidth:f.linewidth.value(),linestyle:f.linestyle.value(), this._backSideRenderer=new a}function u(e,t){c.call(this,e,t)}function p(e,t){d.call(this,e,t),this._backSideRenderer=new a,this._centerRenderer=new a}inherit(d,n),d.prototype._updateImpl=function(){n.prototype._updateImpl.call(this),this._renderer=null,0!==this._floatPoints.length&&(3===this._floatPoints.length?(this._medianPoint=this._floatPoints[1].add(this._floatPoints[2]).scaled(.5),this._medianPoint.data=3):2===this._floatPoints.length?(this._medianPoint=this._floatPoints[1],this._medianPoint.data=3):(this._medianPoint=this._floatPoints[0],this._medianPoint.data=3),this._updateRenderer())},d.prototype._updateRenderer=function(){if(!(this._floatPoints.length<2)&&this._medianPoint){var e=this._source.properties(),t=new l,i={points:[this._floatPoints[0],this._medianPoint],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:e.median.color.value(),linewidth:e.median.linewidth.value(),linestyle:e.median.linestyle.value(),extendleft:e.extendLines.value(),extendright:!0,leftend:h.Normal,rightend:h.Normal};if(this._medianRenderer.setData(i),t.append(this._medianRenderer),this._floatPoints.length<3)return this.addAnchors(t),void(this._renderer=t);var r={points:[this._floatPoints[1],this._floatPoints[2]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:e.median.color.value(),linewidth:e.median.linewidth.value(),linestyle:e.median.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._sideRenderer.setData(r),t.append(this._sideRenderer);for(var n=this._floatPoints[2].subtract(this._floatPoints[1]).scaled(.5),d=this._medianPoint.subtract(this._floatPoints[0]),c=0,u=e.fillBackground.value(),p=e.transparency.value(),_=0;_<=8;_++){var f=e["level"+_];if(f.visible.value()){var v,g,y=this._medianPoint.addScaled(n,f.coeff.value()),w=y.add(d),m=this._medianPoint.addScaled(n,-f.coeff.value()),x=m.add(d);if(u)(v={}).p1=y,v.p2=w,v.p3=this._medianPoint.addScaled(n,c),v.p4=v.p3.add(d),v.color=f.color.value(),v.width=this._model.timeScale().width(),v.height=this._source.priceScale().height(),v.transparency=p,v.hittestOnBackground=!0,v.extendLeft=e.extendLines.value(),(g=new o).setData(v),t.append(g),(v={}).p1=m,v.p2=x,v.p3=this._medianPoint.addScaled(n,-c),v.p4=v.p3.add(d),v.color=f.color.value(),v.width=this._model.timeScale().width(),v.height=this._source.priceScale().height(),v.transparency=p,v.hittestOnBackground=!0,v.extendLeft=e.extendLines.value(),(g=new o).setData(v),t.append(g);c=f.coeff.value();var b={points:[y,w],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:f.color.value(),linewidth:f.linewidth.value(),linestyle:f.linestyle.value(),extendleft:e.extendLines.value(),extendright:!0,leftend:h.Normal,rightend:h.Normal},R=new a;R.setData(b),R.setHitTest(new s(s.MOVEPOINT,null,_)),t.append(R);var T={points:[m,x],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:f.color.value(),linewidth:f.linewidth.value(),linestyle:f.linestyle.value(),
extendleft:e.extendLines.value(),extendright:!0,leftend:h.Normal,rightend:h.Normal},S=new a;S.setData(T),S.setHitTest(new s(s.MOVEPOINT,null,_)),t.append(S)}}this.addAnchors(t),this._renderer=t}},d.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},inherit(c,d),c.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},c.prototype._updateRenderer=function(){if(!(this._floatPoints.length<2)){this._calcMofifiedBase();var e=this._source.properties(),t=new l,i={points:[this._floatPoints[0],this._floatPoints[1]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:e.median.color.value(),linewidth:e.median.linewidth.value(),linestyle:e.median.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};if(this._backSideRenderer.setData(i),t.append(this._backSideRenderer),!this._medianPoint||!this._modifiedBase)return this.addAnchors(t),void(this._renderer=t);var r={points:[this._modifiedBase,this._medianPoint],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:e.median.color.value(),linewidth:e.median.linewidth.value(),linestyle:e.median.linestyle.value(),extendleft:e.extendLines.value(),extendright:!0,leftend:h.Normal,rightend:h.Normal};if(this._medianRenderer.setData(r),t.append(this._medianRenderer),this._floatPoints.length<3)return this.addAnchors(t),void(this._renderer=t);var n={points:[this._floatPoints[1],this._floatPoints[2]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:e.median.color.value(),linewidth:e.median.linewidth.value(),linestyle:e.median.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._sideRenderer.setData(n),t.append(this._sideRenderer);for(var d=this._floatPoints[2].subtract(this._floatPoints[1]).scaled(.5),c=this._medianPoint.subtract(this._modifiedBase),u=0,p=e.fillBackground.value(),_=e.transparency.value(),f=0;f<=8;f++){var v=e["level"+f];if(v.visible.value()){var g=this._medianPoint.addScaled(d,v.coeff.value()),y=g.add(c),w=this._medianPoint.addScaled(d,-v.coeff.value()),m=w.add(c);if(p)(i={}).p1=g,i.p2=y,i.p3=this._medianPoint.addScaled(d,u),i.p4=i.p3.add(c),i.color=v.color.value(),i.width=this._model.timeScale().width(),i.height=this._source.priceScale().height(),i.transparency=_,i.hittestOnBackground=!0,i.extendLeft=e.extendLines.value(),(R=new o).setData(i),t.append(R),(i={}).p1=w,i.p2=m,i.p3=this._medianPoint.addScaled(d,-u),i.p4=i.p3.add(c),i.color=v.color.value(),i.width=this._model.timeScale().width(),i.height=this._source.priceScale().height(),i.transparency=_,i.hittestOnBackground=!0,i.extendLeft=e.extendLines.value(),(R=new o).setData(i),t.append(R);u=v.coeff.value();var x={points:[g,y],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:v.color.value(),linewidth:v.linewidth.value(),linestyle:v.linestyle.value(),extendleft:e.extendLines.value(),extendright:!0,leftend:h.Normal,rightend:h.Normal},b=new a extendleft:e.extendLines.value(),extendright:!0,leftend:h.Normal,rightend:h.Normal},S=new a;S.setData(T),S.setHitTest(new s(s.MOVEPOINT,null,_)),t.append(S)}}this.addAnchors(t),this._renderer=t}},d.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},inherit(c,d),c.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},c.prototype._updateRenderer=function(){if(!(this._floatPoints.length<2)){this._calcMofifiedBase();var e=this._source.properties(),t=new l,i={points:[this._floatPoints[0],this._floatPoints[1]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:e.median.color.value(),linewidth:e.median.linewidth.value(),linestyle:e.median.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};if(this._backSideRenderer.setData(i),t.append(this._backSideRenderer),!this._medianPoint||!this._modifiedBase)return this.addAnchors(t),void(this._renderer=t);var r={points:[this._modifiedBase,this._medianPoint],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:e.median.color.value(),linewidth:e.median.linewidth.value(),linestyle:e.median.linestyle.value(),extendleft:e.extendLines.value(),extendright:!0,leftend:h.Normal,rightend:h.Normal};if(this._medianRenderer.setData(r),t.append(this._medianRenderer),this._floatPoints.length<3)return this.addAnchors(t),void(this._renderer=t);var n={points:[this._floatPoints[1],this._floatPoints[2]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:e.median.color.value(),linewidth:e.median.linewidth.value(),linestyle:e.median.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._sideRenderer.setData(n),t.append(this._sideRenderer);for(var d=this._floatPoints[2].subtract(this._floatPoints[1]).scaled(.5),c=this._medianPoint.subtract(this._modifiedBase),u=0,p=e.fillBackground.value(),_=e.transparency.value(),f=0;f<=8;f++){var v=e["level"+f];if(v.visible.value()){var g=this._medianPoint.addScaled(d,v.coeff.value()),y=g.add(c),w=this._medianPoint.addScaled(d,-v.coeff.value()),m=w.add(c);if(p)(i={}).p1=g,i.p2=y,i.p3=this._medianPoint.addScaled(d,u),i.p4=i.p3.add(c),i.color=v.color.value(),i.width=this._model.timeScale().width(),i.height=this._source.priceScale().height(),i.transparency=_,i.hittestOnBackground=!0,i.extendLeft=e.extendLines.value(),(R=new o).setData(i),t.append(R),(i={}).p1=w,i.p2=m,i.p3=this._medianPoint.addScaled(d,-u),i.p4=i.p3.add(c),i.color=v.color.value(),i.width=this._model.timeScale().width(),i.height=this._source.priceScale().height(),i.transparency=_,i.hittestOnBackground=!0,i.extendLeft=e.extendLines.value(),(R=new o).setData(i),t.append(R);u=v.coeff.value();var x={points:[g,y],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:v.color.value(),linewidth:v.linewidth.value(),linestyle:v.linestyle.value(),extendleft:e.extendLines.value(),extendright:!0,leftend:h.Normal,rightend:h.Normal},b=new a
;b.setData(x),b.setHitTest(new s(s.MOVEPOINT,null,f)),t.append(b);var R,T={points:[w,m],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:v.color.value(),linewidth:v.linewidth.value(),linestyle:v.linestyle.value(),extendleft:e.extendLines.value(),extendright:!0,leftend:h.Normal,rightend:h.Normal};(R=new a).setData(T),R.setHitTest(new s(s.MOVEPOINT,null,f)),t.append(R)}}this.addAnchors(t),this._renderer=t}},c.prototype._calcMofifiedBase=function(){this._floatPoints.length>1&&(this._modifiedBase=this._floatPoints[0].add(this._floatPoints[1]).scaled(.5))},inherit(u,c),u.prototype._calcMofifiedBase=function(){if(this._floatPoints.length>2){var e=this._floatPoints[0].x,t=.5*(this._floatPoints[0].y+this._floatPoints[1].y),i=new r(e,t);this._modifiedBase=i}},inherit(p,d),p.prototype._updateRenderer=function(){if(this._floatPoints.length>1&&(this._modifiedBase=this._floatPoints[0].add(this._floatPoints[1]).scaled(.5)),!(this._floatPoints.length<2)){var e=new l;if(this._medianPoint&&this._modifiedBase){var t=this._source.properties();if(3===this._floatPoints.length){var i={points:[this._modifiedBase,this._floatPoints[2]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.median.color.value(),linewidth:t.median.linewidth.value(),linestyle:t.median.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._medianRenderer.setData(i),e.append(this._medianRenderer)}var r={points:[this._floatPoints[0],this._floatPoints[1]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.median.color.value(),linewidth:t.median.linewidth.value(),linestyle:t.median.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};if(this._backSideRenderer.setData(r),e.append(this._backSideRenderer),this._floatPoints.length<3)return this.addAnchors(e),void(this._renderer=e);var n={points:[this._floatPoints[1],this._floatPoints[2]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.median.color.value(),linewidth:t.median.linewidth.value(),linestyle:t.median.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._sideRenderer.setData(n),e.append(this._sideRenderer);var d=this._floatPoints[2].subtract(this._floatPoints[1]).scaled(.5),c=this._floatPoints[2].subtract(this._modifiedBase),u=0,p=t.fillBackground.value(),_=t.transparency.value(),f={points:[this._medianPoint,this._medianPoint.add(c)],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.median.color.value(),linewidth:t.median.linewidth.value(),linestyle:t.median.linestyle.value(),extendleft:t.extendLines.value(),extendright:!0,leftend:h.Normal,rightend:h.Normal};this._centerRenderer.setData(f),e.append(this._centerRenderer);for(var v=0;v<=8;v++){var g=t["level"+v];if(g.visible.value()){var y=this._medianPoint.addScaled(d,g.coeff.value()),w=y.add(c),m=this._medianPoint.addScaled(d,-g.coeff.value()),x=m.add(c);if(p)(r={}).p1=y,r.p2=w, ;b.setData(x),b.setHitTest(new s(s.MOVEPOINT,null,f)),t.append(b);var R,T={points:[w,m],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:v.color.value(),linewidth:v.linewidth.value(),linestyle:v.linestyle.value(),extendleft:e.extendLines.value(),extendright:!0,leftend:h.Normal,rightend:h.Normal};(R=new a).setData(T),R.setHitTest(new s(s.MOVEPOINT,null,f)),t.append(R)}}this.addAnchors(t),this._renderer=t}},c.prototype._calcMofifiedBase=function(){this._floatPoints.length>1&&(this._modifiedBase=this._floatPoints[0].add(this._floatPoints[1]).scaled(.5))},inherit(u,c),u.prototype._calcMofifiedBase=function(){if(this._floatPoints.length>2){var e=this._floatPoints[0].x,t=.5*(this._floatPoints[0].y+this._floatPoints[1].y),i=new r(e,t);this._modifiedBase=i}},inherit(p,d),p.prototype._updateRenderer=function(){if(this._floatPoints.length>1&&(this._modifiedBase=this._floatPoints[0].add(this._floatPoints[1]).scaled(.5)),!(this._floatPoints.length<2)){var e=new l;if(this._medianPoint&&this._modifiedBase){var t=this._source.properties();if(3===this._floatPoints.length){var i={points:[this._modifiedBase,this._floatPoints[2]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.median.color.value(),linewidth:t.median.linewidth.value(),linestyle:t.median.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._medianRenderer.setData(i),e.append(this._medianRenderer)}var r={points:[this._floatPoints[0],this._floatPoints[1]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.median.color.value(),linewidth:t.median.linewidth.value(),linestyle:t.median.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};if(this._backSideRenderer.setData(r),e.append(this._backSideRenderer),this._floatPoints.length<3)return this.addAnchors(e),void(this._renderer=e);var n={points:[this._floatPoints[1],this._floatPoints[2]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.median.color.value(),linewidth:t.median.linewidth.value(),linestyle:t.median.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._sideRenderer.setData(n),e.append(this._sideRenderer);var d=this._floatPoints[2].subtract(this._floatPoints[1]).scaled(.5),c=this._floatPoints[2].subtract(this._modifiedBase),u=0,p=t.fillBackground.value(),_=t.transparency.value(),f={points:[this._medianPoint,this._medianPoint.add(c)],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.median.color.value(),linewidth:t.median.linewidth.value(),linestyle:t.median.linestyle.value(),extendleft:t.extendLines.value(),extendright:!0,leftend:h.Normal,rightend:h.Normal};this._centerRenderer.setData(f),e.append(this._centerRenderer);for(var v=0;v<=8;v++){var g=t["level"+v];if(g.visible.value()){var y=this._medianPoint.addScaled(d,g.coeff.value()),w=y.add(c),m=this._medianPoint.addScaled(d,-g.coeff.value()),x=m.add(c);if(p)(r={}).p1=y,r.p2=w,
@@ -77,7 +77,7 @@ e.moveTo(d,u),e.fill()}(e,this._data.point,this._data.direction,t.pixelRatio)}e.
;if(d<1)return e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),void e.stroke();var c=i.subtract(t),u=t.add(i).scaled(.5),p=new r(-c.y,c.x);p=p.normalized(),a=u.add(p.scaled(d)),e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth;var f=c.length(),v=c.x/f,g=c.y/f,y=Math.acos(v);g<0&&(y=-y);var w=this._data.points[2],m=l(-u.x,-u.y);w=h(m,w),m=o(-y),w=h(m,w),m=s(1,f/(2*d)),(w=h(m,w)).y<0?this._data.clockwise=!0:this._data.clockwise=!1,e.save(),e.beginPath(),e.translate(t.x,t.y),e.rotate(y);var x=1-Math.sqrt(3)/2;e.scale(1,d/(f*x)),this._data.clockwise?e.arc(.5*f,f*Math.sqrt(3)/2,f,-2*Math.PI/3,-Math.PI/3,!1):e.arc(.5*f,-f*Math.sqrt(3)/2,f,Math.PI/3,2*Math.PI/3,!1),e.restore(),e.stroke(),this._data.fillBackground&&(e.fillStyle=_.generateColor(this._data.backcolor,this._data.transparency),e.fill())}},g.prototype.hitTest=function(e){if(null===this._data||this._data.points.length<3)return null;var t=this._data.points[0],i=this._data.points[1],a=this._data.points[2],d=n(t,i,a).distance;if(d<1)return(d=n(t,i,e).distance)<5?new u(u.MOVEPOINT):null;var c=i.subtract(t),p=c.length(),_=t.add(i).scaled(.5),f=a.subtract(_);f=f.normalized(),a=_.add(f.scaled(d));var v=c.x/p,g=c.y/p,y=Math.acos(v);g<0&&(y=-y);var w=l(-t.x,-t.y);e=h(w,e),w=o(-y),e=h(w,e),f=h(w,f);var m,x=1-Math.sqrt(3)/2;if(w=s(1,p*x/d),e=h(w,e),f=h(w,f),e.y*f.y<0)return null;m=e.y<0?new r(.5*p,p*Math.sqrt(3)/2):new r(.5*p,-p*Math.sqrt(3)/2);var b=e.subtract(m).length();return Math.abs(b-p)<=5?new u(u.MOVEPOINT):null},inherit(y,d),y.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},y.prototype._updateImpl=function(){if(d.prototype._updateImpl.call(this),this._renderer=null,0!==this._points.length){var e={};e.points=this._points,e.color=this._source.properties().color.value(),e.linewidth=this._source.properties().linewidth.value(),e.backcolor=this._source.properties().backgroundColor.value(),e.fillBackground=this._source.properties().fillBackground.value(),e.transparency=this._source.properties().transparency.value(),this._arcRenderer.setData(e);var t=new p;this._renderer=t,t.append(this._arcRenderer);var i=[],a=e.points[0],u=new r(a.x,a.y);if(u.data=0,i.push(u),1!==e.points.length){var _=e.points[1],f=new r(_.x,_.y);if(f.data=1,2!==e.points.length){i.push(f);var g=e.points[2],y=n(a,_,g).distance,w=_.subtract(a),m=a.add(_).scaled(.5),x=new r(-w.y,w.x);x=x.normalized(),g=m.add(x.scaled(y));var b=m.add(x.scaled(-y)),R=w.length(),T=w.x/R,S=w.y/R,P=Math.acos(T);S<0&&(P=-P);var L=e.points[2],C=l(-m.x,-m.y);L=h(C,L),C=o(-P),L=h(C,L),C=s(1,R/(2*y));var M=(L=h(C,L)).y>=0?new r(g.x,g.y):new r(b.x,b.y);M.data=2,i.push(M);var I=[v.Default,v.Default,c(a,_)];t.append(this.createLineAnchor({points:i,pointsCursorType:I}))}else this.addAnchors(t)}}},t.ArcPaneView=y},dMkl:function(e,t,i){"use strict" ;if(d<1)return e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),void e.stroke();var c=i.subtract(t),u=t.add(i).scaled(.5),p=new r(-c.y,c.x);p=p.normalized(),a=u.add(p.scaled(d)),e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth;var f=c.length(),v=c.x/f,g=c.y/f,y=Math.acos(v);g<0&&(y=-y);var w=this._data.points[2],m=l(-u.x,-u.y);w=h(m,w),m=o(-y),w=h(m,w),m=s(1,f/(2*d)),(w=h(m,w)).y<0?this._data.clockwise=!0:this._data.clockwise=!1,e.save(),e.beginPath(),e.translate(t.x,t.y),e.rotate(y);var x=1-Math.sqrt(3)/2;e.scale(1,d/(f*x)),this._data.clockwise?e.arc(.5*f,f*Math.sqrt(3)/2,f,-2*Math.PI/3,-Math.PI/3,!1):e.arc(.5*f,-f*Math.sqrt(3)/2,f,Math.PI/3,2*Math.PI/3,!1),e.restore(),e.stroke(),this._data.fillBackground&&(e.fillStyle=_.generateColor(this._data.backcolor,this._data.transparency),e.fill())}},g.prototype.hitTest=function(e){if(null===this._data||this._data.points.length<3)return null;var t=this._data.points[0],i=this._data.points[1],a=this._data.points[2],d=n(t,i,a).distance;if(d<1)return(d=n(t,i,e).distance)<5?new u(u.MOVEPOINT):null;var c=i.subtract(t),p=c.length(),_=t.add(i).scaled(.5),f=a.subtract(_);f=f.normalized(),a=_.add(f.scaled(d));var v=c.x/p,g=c.y/p,y=Math.acos(v);g<0&&(y=-y);var w=l(-t.x,-t.y);e=h(w,e),w=o(-y),e=h(w,e),f=h(w,f);var m,x=1-Math.sqrt(3)/2;if(w=s(1,p*x/d),e=h(w,e),f=h(w,f),e.y*f.y<0)return null;m=e.y<0?new r(.5*p,p*Math.sqrt(3)/2):new r(.5*p,-p*Math.sqrt(3)/2);var b=e.subtract(m).length();return Math.abs(b-p)<=5?new u(u.MOVEPOINT):null},inherit(y,d),y.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},y.prototype._updateImpl=function(){if(d.prototype._updateImpl.call(this),this._renderer=null,0!==this._points.length){var e={};e.points=this._points,e.color=this._source.properties().color.value(),e.linewidth=this._source.properties().linewidth.value(),e.backcolor=this._source.properties().backgroundColor.value(),e.fillBackground=this._source.properties().fillBackground.value(),e.transparency=this._source.properties().transparency.value(),this._arcRenderer.setData(e);var t=new p;this._renderer=t,t.append(this._arcRenderer);var i=[],a=e.points[0],u=new r(a.x,a.y);if(u.data=0,i.push(u),1!==e.points.length){var _=e.points[1],f=new r(_.x,_.y);if(f.data=1,2!==e.points.length){i.push(f);var g=e.points[2],y=n(a,_,g).distance,w=_.subtract(a),m=a.add(_).scaled(.5),x=new r(-w.y,w.x);x=x.normalized(),g=m.add(x.scaled(y));var b=m.add(x.scaled(-y)),R=w.length(),T=w.x/R,S=w.y/R,P=Math.acos(T);S<0&&(P=-P);var L=e.points[2],C=l(-m.x,-m.y);L=h(C,L),C=o(-P),L=h(C,L),C=s(1,R/(2*y));var M=(L=h(C,L)).y>=0?new r(g.x,g.y):new r(b.x,b.y);M.data=2,i.push(M);var I=[v.Default,v.Default,c(a,_)];t.append(this.createLineAnchor({points:i,pointsCursorType:I}))}else this.addAnchors(t)}}},t.ArcPaneView=y},dMkl:function(e,t,i){"use strict"
;var r=i("Hr11"),n=i("aB9a").LineSourcePaneView,a=i("pJOz").TrendLineRenderer,o=i("VdBB").HitTestResult,s=i("/hKg").PaneRendererCandles,l=i("Zy3/").CompositeRenderer,h=i("a7Ha").LineEnd,d=i("Zp/P");function c(e,t){n.call(this,e,t),this._renderer=null}inherit(c,n),c.prototype._udpateImpl=function(){n.prototype._updateImpl.call(this),this._renderer=null;var e=this;if(this._segments=[],!(e._points.length<2)){this._segments=this._source.segments().map((function(t,i){var n=e._source.points();if(i>=e._points.length-1)return null;var a=e._points[i].x,o=n[i].price,s=n[i+1].price,l=n[i+1].index-n[i].index,h=e._model.timeScale().barSpacing()*r.sign(l),d=(s-o)/(t.bars().length-1),c=e._source.properties(),u=c.candleStyle.upColor.value(),p=c.candleStyle.downColor.value(),_=c.candleStyle.borderUpColor.value(),f=c.candleStyle.borderDownColor.value();return{bars:t.bars().map((function(t,i){var r=t.c>=t.o;return{time:a+i*h,open:e.priceToCoordinate(t.o+o+i*d),high:e.priceToCoordinate(t.h+o+i*d),low:e.priceToCoordinate(t.l+o+i*d),close:e.priceToCoordinate(t.c+o+i*d),color:r?u:p,borderColor:r?_:f,hollow:!1}}))}})).filter((function(e){return!!e}));for(var t=new l,i=1;i<this._points.length;i++){var c={points:[this._points[i-1],this._points[i]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:"#808080",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal},u=new a;u.setData(c),u.setHitTest(new o(o.MOVEPOINT,null)),t.append(u)}var p=this._source.properties(),_=p.candleStyle.drawWick.value(),f=p.candleStyle.drawBorder.value(),v=p.candleStyle.borderColor.value(),g=p.candleStyle.wickColor.value(),y=new l;y.setGlobalAlpha(1-p.transparency.value()/100);var w=this._model.timeScale().barSpacing();for(i=0;i<this._segments.length;i++){var m={bars:this._segments[i].bars,barSpacing:w,wickVisible:_,bodyVisible:!0,borderVisible:f,borderColor:v,wickColor:g,barWidth:d.optimalBarWidth(w),hittest:new o(o.MOVEPOINT,null)};y.append(new s(m))}t.append(y),this.addAnchors(t),this._renderer=t}},c.prototype.renderer=function(e,t){return this._invalidated&&this._udpateImpl(),this._renderer},t.GhostFeedPaneView=c},e9yB:function(e,t,i){"use strict";i.d(t,"c",(function(){return u})),i.d(t,"b",(function(){return p})),i.d(t,"a",(function(){return _}));var r=i("mrSG"),n=i("GEp6"),a=i("VaSN"),o=i("cPgM"),s=i("a7Ha"),l=i("jFln"),h=i("VdBB"),d=i("2hKl"),c=i("pJOz");function u(e,t,i){for(var r=0,a=i;r<a.length;r++)for(var o=a[r],s=1;s<o.length;s++){var l=o[s-1],d=o[s];if(Object(n.distanceToSegment)(l,d,e).distance<t)return new h.HitTestResult(h.HitTestResult.MOVEPOINT)}return null}function p(e,t){for(var i=0;i<t.length;i++){var r=t[i],n=r[0];e.moveTo(n.x,n.y);for(var a=1;a<r.length;a++){var o=r[a];e.lineTo(o.x,o.y)}}}var _=function(e){function t(t){var i=e.call(this)||this;return i._data=t||null,i}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e,t){if(null!==this._data&&3===this._data.points.length){ ;var r=i("Hr11"),n=i("aB9a").LineSourcePaneView,a=i("pJOz").TrendLineRenderer,o=i("VdBB").HitTestResult,s=i("/hKg").PaneRendererCandles,l=i("Zy3/").CompositeRenderer,h=i("a7Ha").LineEnd,d=i("Zp/P");function c(e,t){n.call(this,e,t),this._renderer=null}inherit(c,n),c.prototype._udpateImpl=function(){n.prototype._updateImpl.call(this),this._renderer=null;var e=this;if(this._segments=[],!(e._points.length<2)){this._segments=this._source.segments().map((function(t,i){var n=e._source.points();if(i>=e._points.length-1)return null;var a=e._points[i].x,o=n[i].price,s=n[i+1].price,l=n[i+1].index-n[i].index,h=e._model.timeScale().barSpacing()*r.sign(l),d=(s-o)/(t.bars().length-1),c=e._source.properties(),u=c.candleStyle.upColor.value(),p=c.candleStyle.downColor.value(),_=c.candleStyle.borderUpColor.value(),f=c.candleStyle.borderDownColor.value();return{bars:t.bars().map((function(t,i){var r=t.c>=t.o;return{time:a+i*h,open:e.priceToCoordinate(t.o+o+i*d),high:e.priceToCoordinate(t.h+o+i*d),low:e.priceToCoordinate(t.l+o+i*d),close:e.priceToCoordinate(t.c+o+i*d),color:r?u:p,borderColor:r?_:f,hollow:!1}}))}})).filter((function(e){return!!e}));for(var t=new l,i=1;i<this._points.length;i++){var c={points:[this._points[i-1],this._points[i]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:"#808080",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal},u=new a;u.setData(c),u.setHitTest(new o(o.MOVEPOINT,null)),t.append(u)}var p=this._source.properties(),_=p.candleStyle.drawWick.value(),f=p.candleStyle.drawBorder.value(),v=p.candleStyle.borderColor.value(),g=p.candleStyle.wickColor.value(),y=new l;y.setGlobalAlpha(1-p.transparency.value()/100);var w=this._model.timeScale().barSpacing();for(i=0;i<this._segments.length;i++){var m={bars:this._segments[i].bars,barSpacing:w,wickVisible:_,bodyVisible:!0,borderVisible:f,borderColor:v,wickColor:g,barWidth:d.optimalBarWidth(w),hittest:new o(o.MOVEPOINT,null)};y.append(new s(m))}t.append(y),this.addAnchors(t),this._renderer=t}},c.prototype.renderer=function(e,t){return this._invalidated&&this._udpateImpl(),this._renderer},t.GhostFeedPaneView=c},e9yB:function(e,t,i){"use strict";i.d(t,"c",(function(){return u})),i.d(t,"b",(function(){return p})),i.d(t,"a",(function(){return _}));var r=i("mrSG"),n=i("GEp6"),a=i("VaSN"),o=i("cPgM"),s=i("a7Ha"),l=i("jFln"),h=i("VdBB"),d=i("2hKl"),c=i("pJOz");function u(e,t,i){for(var r=0,a=i;r<a.length;r++)for(var o=a[r],s=1;s<o.length;s++){var l=o[s-1],d=o[s];if(Object(n.distanceToSegment)(l,d,e).distance<t)return new h.HitTestResult(h.HitTestResult.MOVEPOINT)}return null}function p(e,t){for(var i=0;i<t.length;i++){var r=t[i],n=r[0];e.moveTo(n.x,n.y);for(var a=1;a<r.length;a++){var o=r[a];e.lineTo(o.x,o.y)}}}var _=function(e){function t(t){var i=e.call(this)||this;return i._data=t||null,i}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e,t){if(null!==this._data&&3===this._data.points.length){
var i=Object(a.lastEventIsTouch)()?10:3,r=this._data.points,n=r[0],o=r[1],s=r[2],l=o.subtract(n),c=s.subtract(l.scaled(.25)),p=s.add(l.scaled(.25));if(Object(d.c)(s,n,c,e,i)||Object(d.c)(s,o,p,e,i))return new h.HitTestResult(h.HitTestResult.MOVEPOINT);var _=u(e,i,this._data.extendLeftSegments);return null===_&&(_=u(e,i,this._data.extendRightSegments)),_}return null},t.prototype._drawImpl=function(e,t){if(null!==this._data){var i=this._data.points,r=i[0],n=i[1],a=i[2];if(e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.lineWidth,Object(l.setLineStyle)(e,this._data.lineStyle),2===this._data.points.length)e.beginPath(),e.moveTo(r.x,r.y),e.lineTo(n.x,n.y),e.stroke();else{var o=n.subtract(r),h=a.subtract(o.scaled(.25)),d=a.add(o.scaled(.25));this._data.fillBack&&this._data.points.length>2&&(e.fillStyle=this._data.backColor,e.beginPath(),e.moveTo(r.x,r.y),e.quadraticCurveTo(h.x,h.y,a.x,a.y),e.quadraticCurveTo(d.x,d.y,n.x,n.y),e.fill()),e.beginPath(),p(e,this._data.extendLeftSegments),e.moveTo(r.x,r.y),e.quadraticCurveTo(h.x,h.y,a.x,a.y),e.quadraticCurveTo(d.x,d.y,n.x,n.y),p(e,this._data.extendRightSegments),e.stroke(),this._data.leftEnd===s.LineEnd.Arrow&&Object(c.drawArrow)(h,r,e,e.lineWidth,t.pixelRatio),this._data.rightEnd===s.LineEnd.Arrow&&Object(c.drawArrow)(d,n,e,e.lineWidth,t.pixelRatio)}}},t}(o.ScaledPaneRenderer)},eg8N:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("qgcf").TextRenderer,o=i("IjC5").RectangleRenderer,s=i("pJOz").TrendLineRenderer,l=i("Zy3/").CompositeRenderer,h=i("zXvd").NumericFormatter,d=i("a7Ha").LineEnd;function c(e,t){n.call(this,e,t),this._numericFormatter=new h,this._renderer=null}inherit(c,n),c.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},c.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._source.points().length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){var e=this._source.points()[0],t=this._source.points()[1],i=(C=this._source.properties()).reverse&&C.reverse.value();this._hlevels=[];for(var h=i?e.price-t.price:t.price-e.price,c=i?t.price:e.price,u=this._source.ownerSource().firstValue(),p=1;p<=7;p++){if((m=C["hlevel"+p]).visible.value()){var _=m.coeff.value(),f=m.color.value(),v=c+_*h,g=this._source.priceScale().priceToCoordinate(v,u);this._hlevels.push({coeff:_,color:f,y:g})}}this._vlevels=[];var y=i?e.index-t.index:t.index-e.index,w=i?t.index:e.index;for(p=1;p<=7;p++){var m;if((m=C["vlevel"+p]).visible.value()){_=m.coeff.value(),f=m.color.value();var x=Math.round(w+_*y),b=this._model.timeScale().indexToCoordinate(x);this._vlevels.push({coeff:_,color:f,x:b})}}if(this._hfans=[],this._vfans=[],C.fans.visible.value())for(p=1;p<=7;p++){x=Math.round(w+C["hlevel"+p].coeff.value()*y),v=c+C["vlevel"+p].coeff.value()*h;this._hfans.push(this._model.timeScale().indexToCoordinate(x)),this._vfans.push(this._source.priceScale().priceToCoordinate(v,u))}var R=new l var i=Object(a.lastEventIsTouch)()?10:3,r=this._data.points,n=r[0],o=r[1],s=r[2],l=o.subtract(n),c=s.subtract(l.scaled(.25)),p=s.add(l.scaled(.25));if(Object(d.c)(s,n,c,e,i)||Object(d.c)(s,o,p,e,i))return new h.HitTestResult(h.HitTestResult.MOVEPOINT);var _=u(e,i,this._data.extendLeftSegments);return null===_&&(_=u(e,i,this._data.extendRightSegments)),_}return null},t.prototype._drawImpl=function(e,t){if(null!==this._data){var i=this._data.points,r=i[0],n=i[1],a=i[2];if(e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.lineWidth,Object(l.setLineStyle)(e,this._data.lineStyle),2===this._data.points.length)e.beginPath(),e.moveTo(r.x,r.y),e.lineTo(n.x,n.y),e.stroke();else{var o=n.subtract(r),h=a.subtract(o.scaled(.25)),d=a.add(o.scaled(.25));this._data.fillBack&&this._data.points.length>2&&(e.fillStyle=this._data.backColor,e.beginPath(),e.moveTo(r.x,r.y),e.quadraticCurveTo(h.x,h.y,a.x,a.y),e.quadraticCurveTo(d.x,d.y,n.x,n.y),e.fill()),e.beginPath(),p(e,this._data.extendLeftSegments),e.moveTo(r.x,r.y),e.quadraticCurveTo(h.x,h.y,a.x,a.y),e.quadraticCurveTo(d.x,d.y,n.x,n.y),p(e,this._data.extendRightSegments),e.stroke(),this._data.leftEnd===s.LineEnd.Arrow&&Object(c.drawArrow)(h,r,e,e.lineWidth,t.pixelRatio),this._data.rightEnd===s.LineEnd.Arrow&&Object(c.drawArrow)(d,n,e,e.lineWidth,t.pixelRatio)}}},t}(o.ScaledPaneRenderer)},eg8N:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("qgcf").TextRenderer,o=i("IjC5").RectangleRenderer,s=i("pJOz").TrendLineRenderer,l=i("Zy3/").CompositeRenderer,h=i("zXvd").NumericFormatter,d=i("a7Ha").LineEnd;function c(e,t){n.call(this,e,t),this._numericFormatter=new h,this._renderer=null}inherit(c,n),c.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},c.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._source.points().length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){var e=this._source.points()[0],t=this._source.points()[1],i=(C=this._source.properties()).reverse&&C.reverse.value();this._hlevels=[];for(var h=i?e.price-t.price:t.price-e.price,c=i?t.price:e.price,u=this._source.ownerSource().firstValue(),p=1;p<=7;p++){if((m=C["hlevel"+p]).visible.value()){var _=m.coeff.value(),f=m.color.value(),v=c+_*h,g=this._source.priceScale().priceToCoordinate(v,u);this._hlevels.push({coeff:_,color:f,y:g})}}this._vlevels=[];var y=i?e.index-t.index:t.index-e.index,w=i?t.index:e.index;for(p=1;p<=7;p++){var m;if((m=C["vlevel"+p]).visible.value()){_=m.coeff.value(),f=m.color.value();var x=Math.round(w+_*y),b=this._model.timeScale().indexToCoordinate(x);this._vlevels.push({coeff:_,color:f,x:b})}}if(this._hfans=[],this._vfans=[],C.fans.visible.value())for(p=1;p<=7;p++){x=Math.round(w+C["hlevel"+p].coeff.value()*y),v=c+C["vlevel"+p].coeff.value()*h;this._hfans.push(this._model.timeScale().indexToCoordinate(x)),this._vfans.push(this._source.priceScale().priceToCoordinate(v,u))}var R=new l
;if(this._points.length<2)return this.addAnchors(R),void(this._renderer=R);e=this._points[0],t=this._points[1];var T=Math.min(e.x,t.x),S=Math.min(e.y,t.y),P=Math.max(e.x,t.x),L=Math.max(e.y,t.y),C=this._source.properties(),M=this._source.properties().fillHorzBackground.value(),I=this._source.properties().horzTransparency.value(),O=this._source.properties().fillVertBackground.value(),D=this._source.properties().vertTransparency.value();for(p=0;p<this._hlevels.length;p++){if(p>0&&M){var k=this._hlevels[p-1];e=new r(T,this._hlevels[p].y),t=new r(P,k.y);(j={}).points=[e,t],j.color=this._hlevels[p].color,j.linewidth=0,j.backcolor=this._hlevels[p].color,j.fillBackground=!0,j.transparency=I,j.extendLeft=!1,j.extendRight=!1,(z=new o(void 0,void 0,!0)).setData(j),R.append(z)}var N={points:[e=new r(T,this._hlevels[p].y),t=new r(P,this._hlevels[p].y)],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._hlevels[p].color,linewidth:C.linewidth.value(),linestyle:C.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal};if((z=new s).setData(N),R.append(z),C.showLeftLabels.value()){var B={points:[e],text:this._numericFormatter.format(this._hlevels[p].coeff),color:this._hlevels[p].color,vertAlign:"middle",horzAlign:"right",font:C.font.value(),offsetX:5,offsetY:0,fontsize:12,forceTextAlign:!0};R.append(new a(B))}if(C.showRightLabels.value()){var A={points:[t],text:this._numericFormatter.format(this._hlevels[p].coeff),color:this._hlevels[p].color,vertAlign:"middle",horzAlign:"left",font:C.font.value(),offsetX:5,offsetY:0,fontsize:12};R.append(new a(A))}}for(p=0;p<this._vlevels.length;p++){e=new r(this._vlevels[p].x,S),t=new r(this._vlevels[p].x,L);if(p>0&&O){k=this._vlevels[p-1];var j,E=new r(k.x,S);(j={}).points=[E,t],j.color=this._vlevels[p].color,j.linewidth=0,j.backcolor=this._vlevels[p].color,j.fillBackground=!0,j.transparency=D,j.extendLeft=!1,j.extendRight=!1,(z=new o(void 0,void 0,!0)).setData(j),R.append(z)}var z;N={points:[e,t],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._vlevels[p].color,linewidth:C.linewidth.value(),linestyle:C.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal};if((z=new s).setData(N),R.append(z),C.showTopLabels.value()){var V={points:[e],text:this._numericFormatter.format(this._vlevels[p].coeff),color:this._vlevels[p].color,vertAlign:"bottom",horzAlign:"center",font:C.font.value(),offsetX:0,offsetY:3,fontsize:12};R.append(new a(V))}if(C.showBottomLabels.value()){var H={points:[t],text:this._numericFormatter.format(this._vlevels[p].coeff),color:this._vlevels[p].color,vertAlign:"top",horzAlign:"center",font:C.font.value(),offsetX:0,offsetY:5,fontsize:12};R.append(new a(H))}}var W=this;Y(R,this._hfans,!0),Y(R,this._vfans,!1),this.addAnchors(R),this._renderer=R}function Y(e,t,i){var n=new r(T,S),a=new r(P,S),o=new r(T,L),l=new r(P,L),h={width:W._model.timeScale().width(),height:W._source.priceScale().height(),color:C.fans.color.value(),linewidth:C.linewidth.value(), ;if(this._points.length<2)return this.addAnchors(R),void(this._renderer=R);e=this._points[0],t=this._points[1];var T=Math.min(e.x,t.x),S=Math.min(e.y,t.y),P=Math.max(e.x,t.x),L=Math.max(e.y,t.y),C=this._source.properties(),M=this._source.properties().fillHorzBackground.value(),I=this._source.properties().horzTransparency.value(),O=this._source.properties().fillVertBackground.value(),D=this._source.properties().vertTransparency.value();for(p=0;p<this._hlevels.length;p++){if(p>0&&M){var k=this._hlevels[p-1];e=new r(T,this._hlevels[p].y),t=new r(P,k.y);(j={}).points=[e,t],j.color=this._hlevels[p].color,j.linewidth=0,j.backcolor=this._hlevels[p].color,j.fillBackground=!0,j.transparency=I,j.extendLeft=!1,j.extendRight=!1,(E=new o(void 0,void 0,!0)).setData(j),R.append(E)}var B={points:[e=new r(T,this._hlevels[p].y),t=new r(P,this._hlevels[p].y)],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._hlevels[p].color,linewidth:C.linewidth.value(),linestyle:C.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal};if((E=new s).setData(B),R.append(E),C.showLeftLabels.value()){var N={points:[e],text:this._numericFormatter.format(this._hlevels[p].coeff),color:this._hlevels[p].color,vertAlign:"middle",horzAlign:"right",font:C.font.value(),offsetX:5,offsetY:0,fontsize:12,forceTextAlign:!0};R.append(new a(N))}if(C.showRightLabels.value()){var A={points:[t],text:this._numericFormatter.format(this._hlevels[p].coeff),color:this._hlevels[p].color,vertAlign:"middle",horzAlign:"left",font:C.font.value(),offsetX:5,offsetY:0,fontsize:12};R.append(new a(A))}}for(p=0;p<this._vlevels.length;p++){e=new r(this._vlevels[p].x,S),t=new r(this._vlevels[p].x,L);if(p>0&&O){k=this._vlevels[p-1];var j,z=new r(k.x,S);(j={}).points=[z,t],j.color=this._vlevels[p].color,j.linewidth=0,j.backcolor=this._vlevels[p].color,j.fillBackground=!0,j.transparency=D,j.extendLeft=!1,j.extendRight=!1,(E=new o(void 0,void 0,!0)).setData(j),R.append(E)}var E;B={points:[e,t],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._vlevels[p].color,linewidth:C.linewidth.value(),linestyle:C.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal};if((E=new s).setData(B),R.append(E),C.showTopLabels.value()){var V={points:[e],text:this._numericFormatter.format(this._vlevels[p].coeff),color:this._vlevels[p].color,vertAlign:"bottom",horzAlign:"center",font:C.font.value(),offsetX:0,offsetY:3,fontsize:12};R.append(new a(V))}if(C.showBottomLabels.value()){var H={points:[t],text:this._numericFormatter.format(this._vlevels[p].coeff),color:this._vlevels[p].color,vertAlign:"top",horzAlign:"center",font:C.font.value(),offsetX:0,offsetY:5,fontsize:12};R.append(new a(H))}}var W=this;Y(R,this._hfans,!0),Y(R,this._vfans,!1),this.addAnchors(R),this._renderer=R}function Y(e,t,i){var n=new r(T,S),a=new r(P,S),o=new r(T,L),l=new r(P,L),h={width:W._model.timeScale().width(),height:W._source.priceScale().height(),color:C.fans.color.value(),linewidth:C.linewidth.value(),
linestyle:C.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal};function c(t){var i=new s;i.setData(Object.assign({},h,{points:t})),e.append(i)}for(var u=0;u<t.length;++u){var p=i?L:t[u],_=i?S:t[u],f=i?t[u]:T,v=i?t[u]:P,g=new r(v,p),y=new r(f,p),w=new r(v,_),m=new r(f,_);c([o,w]),c([l,m]),c([n,g]),c([a,y])}}},t.GannSquarePaneView=c},gr7S:function(e,t,i){"use strict";var r=i("aB9a").LineSourcePaneView,n=i("wacn").DisjointChannelRenderer,a=i("pJOz").TrendLineRenderer,o=i("qgcf").TextRenderer,s=i("Zy3/").CompositeRenderer;function l(e,t){r.call(this,e,t),this._label1=null,this._label2=null,this._trendLineRendererPoints12=new a,this._trendLineRendererPoints43=new a,this._disjointChannelRenderer=new n,this._p1LabelRenderer=new o,this._p2LabelRenderer=new o,this._p3LabelRenderer=new o,this._p4LabelRenderer=new o,this._renderer=null}inherit(l,r),l.prototype._updateImpl=function(){if(r.prototype._updateImpl.call(this),this._renderer=null,this._label1=null,this._label2=null,!(this._source.points().length<2)&&this._source.priceScale()){var e=this._source.points()[0],t=this._source.points()[1],i=this._source.ownerSource().firstValue();if(this._price1=this._source.priceScale().formatPrice(e.price,i),this._price2=this._source.priceScale().formatPrice(t.price,i),3===this._source.points().length){var n=this._source.points()[2];this._price3=this._source.priceScale().formatPrice(n.price,i)}if(!(this._points.length<2)){var a,o=new s,l=(e=this._points[0],t=this._points[1],this._source.properties()),h=this._model,d=this._source;if(3===this._points.length&&((n=this._points[2]).x=t.x,(a=e.clone()).y=n.y,a.data=3,l.fillBackground.value())){var c=h.timeScale().width(),u=d.priceScale().height(),p=l.extendLeft.value(),_=l.extendRight.value();this._disjointChannelRenderer.setData({width:c,height:u,extendleft:p,extendright:_,points:[e,t,n,a],backcolor:l.backgroundColor.value(),transparency:l.transparency.value(),hittestOnBackground:TradingView.isMobile.any()}),o.append(this._disjointChannelRenderer)}var f=function(e,t){return{points:[e,t],width:h.timeScale().width(),height:d.priceScale().height(),color:l.linecolor.value(),linewidth:l.linewidth.value(),linestyle:l.linestyle.value(),extendleft:l.extendLeft.value(),extendright:l.extendRight.value(),leftend:l.leftEnd.value(),rightend:l.rightEnd.value()}};if(this._trendLineRendererPoints12.setData(f(e,t)),o.append(this._trendLineRendererPoints12),2===this._points.length)return this.addAnchors(o),void(this._renderer=o);var v=this,g=function(e,t,i,r,n,a){if(v._source.properties().showPrices.value()){var s={points:[i],text:n,color:v._source.properties().textcolor.value(),horzAlign:i.x>r.x?"left":"right",vertAlign:"middle",font:v._source.properties().font.value(),offsetX:6,offsetY:0,boxPadding:0,bold:v._source.properties().bold.value(),italic:v._source.properties().italic.value(),fontsize:v._source.properties().fontsize.value(),forceTextAlign:!0};e.setData(s),o.append(e);s={points:[r],text:a,color:v._source.properties().textcolor.value(),horzAlign:i.x<r.x?"left":"right", linestyle:C.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal};function c(t){var i=new s;i.setData(Object.assign({},h,{points:t})),e.append(i)}for(var u=0;u<t.length;++u){var p=i?L:t[u],_=i?S:t[u],f=i?t[u]:T,v=i?t[u]:P,g=new r(v,p),y=new r(f,p),w=new r(v,_),m=new r(f,_);c([o,w]),c([l,m]),c([n,g]),c([a,y])}}},t.GannSquarePaneView=c},gr7S:function(e,t,i){"use strict";var r=i("aB9a").LineSourcePaneView,n=i("wacn").DisjointChannelRenderer,a=i("pJOz").TrendLineRenderer,o=i("qgcf").TextRenderer,s=i("Zy3/").CompositeRenderer;function l(e,t){r.call(this,e,t),this._label1=null,this._label2=null,this._trendLineRendererPoints12=new a,this._trendLineRendererPoints43=new a,this._disjointChannelRenderer=new n,this._p1LabelRenderer=new o,this._p2LabelRenderer=new o,this._p3LabelRenderer=new o,this._p4LabelRenderer=new o,this._renderer=null}inherit(l,r),l.prototype._updateImpl=function(){if(r.prototype._updateImpl.call(this),this._renderer=null,this._label1=null,this._label2=null,!(this._source.points().length<2)&&this._source.priceScale()){var e=this._source.points()[0],t=this._source.points()[1],i=this._source.ownerSource().firstValue();if(this._price1=this._source.priceScale().formatPrice(e.price,i),this._price2=this._source.priceScale().formatPrice(t.price,i),3===this._source.points().length){var n=this._source.points()[2];this._price3=this._source.priceScale().formatPrice(n.price,i)}if(!(this._points.length<2)){var a,o=new s,l=(e=this._points[0],t=this._points[1],this._source.properties()),h=this._model,d=this._source;if(3===this._points.length&&((n=this._points[2]).x=t.x,(a=e.clone()).y=n.y,a.data=3,l.fillBackground.value())){var c=h.timeScale().width(),u=d.priceScale().height(),p=l.extendLeft.value(),_=l.extendRight.value();this._disjointChannelRenderer.setData({width:c,height:u,extendleft:p,extendright:_,points:[e,t,n,a],backcolor:l.backgroundColor.value(),transparency:l.transparency.value(),hittestOnBackground:TradingView.isMobile.any()}),o.append(this._disjointChannelRenderer)}var f=function(e,t){return{points:[e,t],width:h.timeScale().width(),height:d.priceScale().height(),color:l.linecolor.value(),linewidth:l.linewidth.value(),linestyle:l.linestyle.value(),extendleft:l.extendLeft.value(),extendright:l.extendRight.value(),leftend:l.leftEnd.value(),rightend:l.rightEnd.value()}};if(this._trendLineRendererPoints12.setData(f(e,t)),o.append(this._trendLineRendererPoints12),2===this._points.length)return this.addAnchors(o),void(this._renderer=o);var v=this,g=function(e,t,i,r,n,a){if(v._source.properties().showPrices.value()){var s={points:[i],text:n,color:v._source.properties().textcolor.value(),horzAlign:i.x>r.x?"left":"right",vertAlign:"middle",font:v._source.properties().font.value(),offsetX:6,offsetY:0,boxPadding:0,bold:v._source.properties().bold.value(),italic:v._source.properties().italic.value(),fontsize:v._source.properties().fontsize.value(),forceTextAlign:!0};e.setData(s),o.append(e);s={points:[r],text:a,color:v._source.properties().textcolor.value(),horzAlign:i.x<r.x?"left":"right",
vertAlign:"middle",font:v._source.properties().font.value(),offsetX:6,offsetY:0,boxPadding:0,bold:v._source.properties().bold.value(),italic:v._source.properties().italic.value(),fontsize:v._source.properties().fontsize.value(),forceTextAlign:!0};t.setData(s),o.append(t)}};g(this._p1LabelRenderer,this._p2LabelRenderer,e,t,this._price1,this._price2),this._trendLineRendererPoints43.setData(f(a,n)),o.append(this._trendLineRendererPoints43),g(this._p3LabelRenderer,this._p4LabelRenderer,n,a,this._price3,this._price3);var y=[e,t,n,a];this._model.lineBeingCreated()===this._source&&y.pop(),o.append(this.createLineAnchor({points:y})),this._renderer=o}}},l.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.FlatBottomPaneView=l},hzaj:function(e,t,i){"use strict";i.d(t,"a",(function(){return h}));var r=i("mrSG"),n=i("aO4+"),a=i("BCbF"),o=i("vq8G"),s=i("Zy3/"),l=i("VdBB"),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._polygonRenderer=new a.PolygonRenderer(null),t._renderer=new s.CompositeRenderer,t}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this);var t=Math.max(1,this._source.smooth()),i=this._points;if(0!==i.length){for(var r=[i[0]],n=1;n<i.length;n++){for(var a=i[n].subtract(i[n-1]),h=a.length(),d=Math.min(5,Math.floor(h/t)),c=a.normalized().scaled(h/d),u=0;u<d-1;u++)r.push(i[n-1].add(c.scaled(u)));r.push(i[n])}this._points=this._smoothArray(r,t);var p=this._createPolygonRendererData();if(this._polygonRenderer.setData(p),this._renderer=new s.CompositeRenderer,this._renderer.append(this._polygonRenderer),this._source.finished()&&p.points.length>0){var _=[p.points[0],p.points[p.points.length-1]],f=new o.SelectionRenderer({points:_,bgColors:this._lineAnchorColors(_),visible:this.areAnchorsVisible(),hittestResult:l.HitTestResult.REGULAR,barSpacing:this._getModel().timeScale().barSpacing()});this._renderer.append(f)}}else this._renderer.clear()},t.prototype._smoothArray=function(e,t){for(var i=new Array(e.length),r=0;r<e.length;r++){for(var a=new n.Point(0,0),o=0;o<t;o++){var s=Math.max(r-o,0),l=Math.min(r+o,e.length-1);a=(a=a.add(e[s])).add(e[l])}i[r]=a.scaled(.5/t)}return i.push(e[e.length-1]),i},t}(i("aB9a").LineSourcePaneView)},isd9:function(e,t,i){"use strict";i.r(t),i.d(t,"ArcWedgeRenderer",(function(){return o}));var r=i("mrSG"),n=i("VdBB"),a=i("Tmoa"),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._data=null,t._hitTest=new n.HitTestResult(n.HitTestResult.MOVEPOINT),t._backHitTest=new n.HitTestResult(n.HitTestResult.MOVEPOINT_BACKGROUND),t}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.setHitTest=function(e){this._hitTest=e},t.prototype.hitTest=function(e){if(null===this._data)return null;var t=e.subtract(this._data.center),i=t.length();if(Math.abs(i-this._data.radius)<=4){ vertAlign:"middle",font:v._source.properties().font.value(),offsetX:6,offsetY:0,boxPadding:0,bold:v._source.properties().bold.value(),italic:v._source.properties().italic.value(),fontsize:v._source.properties().fontsize.value(),forceTextAlign:!0};t.setData(s),o.append(t)}};g(this._p1LabelRenderer,this._p2LabelRenderer,e,t,this._price1,this._price2),this._trendLineRendererPoints43.setData(f(a,n)),o.append(this._trendLineRendererPoints43),g(this._p3LabelRenderer,this._p4LabelRenderer,n,a,this._price3,this._price3);var y=[e,t,n,a];this._model.lineBeingCreated()===this._source&&y.pop(),o.append(this.createLineAnchor({points:y})),this._renderer=o}}},l.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.FlatBottomPaneView=l},hzaj:function(e,t,i){"use strict";i.d(t,"a",(function(){return h}));var r=i("mrSG"),n=i("aO4+"),a=i("BCbF"),o=i("vq8G"),s=i("Zy3/"),l=i("VdBB"),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._polygonRenderer=new a.PolygonRenderer(null),t._renderer=new s.CompositeRenderer,t}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this);var t=Math.max(1,this._source.smooth()),i=this._points;if(0!==i.length){for(var r=[i[0]],n=1;n<i.length;n++){for(var a=i[n].subtract(i[n-1]),h=a.length(),d=Math.min(5,Math.floor(h/t)),c=a.normalized().scaled(h/d),u=0;u<d-1;u++)r.push(i[n-1].add(c.scaled(u)));r.push(i[n])}this._points=this._smoothArray(r,t);var p=this._createPolygonRendererData();if(this._polygonRenderer.setData(p),this._renderer=new s.CompositeRenderer,this._renderer.append(this._polygonRenderer),this._source.finished()&&p.points.length>0){var _=[p.points[0],p.points[p.points.length-1]],f=new o.SelectionRenderer({points:_,bgColors:this._lineAnchorColors(_),visible:this.areAnchorsVisible(),hittestResult:l.HitTestResult.REGULAR,barSpacing:this._getModel().timeScale().barSpacing()});this._renderer.append(f)}}else this._renderer.clear()},t.prototype._smoothArray=function(e,t){for(var i=new Array(e.length),r=0;r<e.length;r++){for(var a=new n.Point(0,0),o=0;o<t;o++){var s=Math.max(r-o,0),l=Math.min(r+o,e.length-1);a=(a=a.add(e[s])).add(e[l])}i[r]=a.scaled(.5/t)}return i.push(e[e.length-1]),i},t}(i("aB9a").LineSourcePaneView)},isd9:function(e,t,i){"use strict";i.r(t),i.d(t,"ArcWedgeRenderer",(function(){return o}));var r=i("mrSG"),n=i("VdBB"),a=i("Tmoa"),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._data=null,t._hitTest=new n.HitTestResult(n.HitTestResult.MOVEPOINT),t._backHitTest=new n.HitTestResult(n.HitTestResult.MOVEPOINT_BACKGROUND),t}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.setHitTest=function(e){this._hitTest=e},t.prototype.hitTest=function(e){if(null===this._data)return null;var t=e.subtract(this._data.center),i=t.length();if(Math.abs(i-this._data.radius)<=4){
var r=e.subtract(this._data.p1).length(),n=e.subtract(this._data.p2).length();if(Math.max(r,n)<=this._data.p1.subtract(this._data.p2).length())return this._hitTest}if(this._data.fillBackground&&i<=this._data.radius){var a=this._data.p1.subtract(this._data.center).normalized(),o=this._data.p2.subtract(this._data.center).normalized(),s=t.normalized(),l=a.dotProduct(o),h=s.dotProduct(a),d=s.dotProduct(o);if(h>=l&&d>=l)return this._backHitTest}return null},t.prototype._drawImpl=function(e){if(null!==this._data&&(e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.beginPath(),e.arc(this._data.center.x,this._data.center.y,this._data.radius,this._data.edge1,this._data.edge2,!0),e.stroke(),this._data.fillBackground)){if(e.arc(this._data.center.x,this._data.center.y,this._data.prevRadius,this._data.edge2,this._data.edge1,!1),this._data.gradient){var t=e.createRadialGradient(this._data.center.x,this._data.center.y,this._data.prevRadius,this._data.center.x,this._data.center.y,this._data.radius);t.addColorStop(0,Object(a.generateColor)(this._data.color1,this._data.transparency)),t.addColorStop(1,Object(a.generateColor)(this._data.color2,this._data.transparency)),e.fillStyle=t}else e.fillStyle=Object(a.generateColor)(this._data.color,this._data.transparency,!0);e.fill()}},t}(i("cPgM").ScaledPaneRenderer)},jlk4:function(e,t,i){"use strict";var r=i("isd9").ArcWedgeRenderer,n=i("1SUO").FibWedgePaneView,a=i("pJOz").TrendLineRenderer,o=i("Zy3/").CompositeRenderer,s=i("a7Ha").LineEnd;function l(e,t){n.call(this,e,t),this._baseTrendRenderer=new a,this._edgeTrendRenderer=new a,this._arcWedgeRenderer=new r}inherit(l,n),l.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},l.prototype._updateRenderer=function(){if(!(this._points.length<2)){var e=new o,t=this._source.properties(),i=this._points,r=i[0],n=i[1],a={points:[r,n],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.trendline.color.value(),linewidth:t.linewidth.value(),linestyle:t.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:s.Normal,rightend:s.Normal};if(this._baseTrendRenderer.setData(a),e.append(this._baseTrendRenderer),this._points.length<3)return this.addAnchors(e),void(this._renderer=e);var l=i[2],h=l.data,d=n.subtract(r).length(),c=l.subtract(r).normalized();(l=r.add(c.scaled(d))).data=h,a={points:[r,l],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.trendline.color.value(),linewidth:t.linewidth.value(),linestyle:t.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:s.Normal,rightend:s.Normal},this._edgeTrendRenderer.setData(a),e.append(this._edgeTrendRenderer);var u=this._levels[0],p={};p.center=this._points[0],p.radius=u.radius,p.prevRadius=0,p.edge=this._edge,p.color=t.trendline.color.value(),p.color1=t.color1.value(),p.color2=t.color2.value(),p.linewidth=t.linewidth.value(),p.edge1=this._edge1,p.edge2=this._edge2,p.p1=u.p1,p.p2=u.p2,p.fillBackground=t.fillBackground.value(), var r=e.subtract(this._data.p1).length(),n=e.subtract(this._data.p2).length();if(Math.max(r,n)<=this._data.p1.subtract(this._data.p2).length())return this._hitTest}if(this._data.fillBackground&&i<=this._data.radius){var a=this._data.p1.subtract(this._data.center).normalized(),o=this._data.p2.subtract(this._data.center).normalized(),s=t.normalized(),l=a.dotProduct(o),h=s.dotProduct(a),d=s.dotProduct(o);if(h>=l&&d>=l)return this._backHitTest}return null},t.prototype._drawImpl=function(e){if(null!==this._data&&(e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.beginPath(),e.arc(this._data.center.x,this._data.center.y,this._data.radius,this._data.edge1,this._data.edge2,!0),e.stroke(),this._data.fillBackground)){if(e.arc(this._data.center.x,this._data.center.y,this._data.prevRadius,this._data.edge2,this._data.edge1,!1),this._data.gradient){var t=e.createRadialGradient(this._data.center.x,this._data.center.y,this._data.prevRadius,this._data.center.x,this._data.center.y,this._data.radius);t.addColorStop(0,Object(a.generateColor)(this._data.color1,this._data.transparency)),t.addColorStop(1,Object(a.generateColor)(this._data.color2,this._data.transparency)),e.fillStyle=t}else e.fillStyle=Object(a.generateColor)(this._data.color,this._data.transparency,!0);e.fill()}},t}(i("cPgM").ScaledPaneRenderer)},jlk4:function(e,t,i){"use strict";var r=i("isd9").ArcWedgeRenderer,n=i("1SUO").FibWedgePaneView,a=i("pJOz").TrendLineRenderer,o=i("Zy3/").CompositeRenderer,s=i("a7Ha").LineEnd;function l(e,t){n.call(this,e,t),this._baseTrendRenderer=new a,this._edgeTrendRenderer=new a,this._arcWedgeRenderer=new r}inherit(l,n),l.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},l.prototype._updateRenderer=function(){if(!(this._points.length<2)){var e=new o,t=this._source.properties(),i=this._points,r=i[0],n=i[1],a={points:[r,n],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.trendline.color.value(),linewidth:t.linewidth.value(),linestyle:t.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:s.Normal,rightend:s.Normal};if(this._baseTrendRenderer.setData(a),e.append(this._baseTrendRenderer),this._points.length<3)return this.addAnchors(e),void(this._renderer=e);var l=i[2],h=l.data,d=n.subtract(r).length(),c=l.subtract(r).normalized();(l=r.add(c.scaled(d))).data=h,a={points:[r,l],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.trendline.color.value(),linewidth:t.linewidth.value(),linestyle:t.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:s.Normal,rightend:s.Normal},this._edgeTrendRenderer.setData(a),e.append(this._edgeTrendRenderer);var u=this._levels[0],p={};p.center=this._points[0],p.radius=u.radius,p.prevRadius=0,p.edge=this._edge,p.color=t.trendline.color.value(),p.color1=t.color1.value(),p.color2=t.color2.value(),p.linewidth=t.linewidth.value(),p.edge1=this._edge1,p.edge2=this._edge2,p.p1=u.p1,p.p2=u.p2,p.fillBackground=t.fillBackground.value(),
@@ -92,11 +92,11 @@ var o,l=new s,d=(e=this._points[0],t=this._points[1],this._source.properties()),
;e.lineTo(this._data.point.x+t,this._data.point.y+r+this._data.height/2)}e.stroke()},l.prototype.hitTest=function(e){if(e.x<this._data.point.x||e.x>this._data.point.x+2*this._data.width)return null;var t=(e.x-this._data.point.x)*Math.PI/this._data.width,i=Math.sin(t-Math.PI/2)*this._data.height/2;i=this._data.point.y+i+this._data.height/2;return Math.abs(i-e.y)<=3?new a(a.MOVEPOINT):null},inherit(h,n),h.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},h.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._points.length<2)){var e=this._source.points(),t=e[0],i=e[1],a=Math.min(t.index,i.index),s=2*(Math.max(t.index,i.index)-a),h=this._points[0],d=this._points[1],c=Math.abs(h.x-d.x),u=d.y-h.y,p=new o,_=this._source.properties(),f=this._model.timeScale();if(0!==s){for(var v=f.indexToCoordinate(a),g=[],y=a;v>-c;y-=s)v=f.indexToCoordinate(y),g.push(v);v=v=f.indexToCoordinate(a+s);for(y=a+s;v<f.width();y+=s)v=f.indexToCoordinate(y),g.push(v);for(var w=0;w<g.length;w++){var m=new l({point:new r(g[w],h.y),width:c,height:u,color:_.linecolor.value(),linewidth:_.linewidth.value(),linestyle:_.linestyle.value()});p.append(m)}this.addAnchors(p),this._renderer=p}}},t.SineLinePaneView=h},qjB4:function(e,t,i){e.exports=i.p+"f55394b616ed1ae9462c37daab941d93.png"},tjxb:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("jkoZ"),o=i("VdBB").HitTestResult,s=i("cPgM").ScaledPaneRenderer;function l(e,t){s.call(this),this._data=e,this._adapter=t}function h(e,t){n.call(this,e,t)}inherit(l,s),l.prototype._textWidth=function(e){if(0===this._adapter.getText().length)return 0;e.save(),e.font=this._adapter.getFont();var t=e.measureText(this._adapter.getText()).width;return e.restore(),5+t},l.prototype._drawArrow=function(e,t,i){e.save(),e.strokeStyle=this._adapter.getArrowColor(),e.fillStyle=this._adapter.getArrowColor();var r=this._adapter.getArrowHeight(),n=this._adapter.getDirection();e.translate(t,i),"buy"!==n&&e.rotate(Math.PI),CanvasEx.drawArrow(e,0,0,0,r),e.restore()},l.prototype._drawText=function(e,t,i){var r=this._adapter.getText();if(r){e.save(),e.textAlign="center",e.textBaseline="middle",e.font=this._adapter.getFont(),e.fillStyle=this._adapter.getTextColor();var n=t+this._textWidth(e)/2,o=i+a.fontHeight(this._adapter.getFont())/2;e.fillText(r,n,o-1),e.restore()}},l.prototype._drawImpl=function(e){var t=Math.round(this._data.points[0].x+.5),i=Math.round(this._data.points[0].y);this._drawArrow(e,t,i);var r=this._textWidth(e);if(0!==r){var n=this._adapter.getArrowHeight(),o=this._adapter.getArrowSpacing(),s=a.fontHeight(this._adapter.getFont()),l="buy"===this._adapter.getDirection()?i+n+o:i-n-o-s;this._drawText(e,Math.round(t-r/2),l)}},l.prototype.hitTest=function(e){var t,i,r=Math.round(this._data.points[0].x),n=Math.round(this._data.points[0].y),a=this._adapter.getArrowHeight();if("buy"===this._adapter.getDirection()?(t=n,i=n+a):(t=n-a,i=n),e.x>=r-2&&e.x<=r+2&&e.y>=t&&e.y<=i){var s=this._adapter.getTooltip() ;e.lineTo(this._data.point.x+t,this._data.point.y+r+this._data.height/2)}e.stroke()},l.prototype.hitTest=function(e){if(e.x<this._data.point.x||e.x>this._data.point.x+2*this._data.width)return null;var t=(e.x-this._data.point.x)*Math.PI/this._data.width,i=Math.sin(t-Math.PI/2)*this._data.height/2;i=this._data.point.y+i+this._data.height/2;return Math.abs(i-e.y)<=3?new a(a.MOVEPOINT):null},inherit(h,n),h.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},h.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._points.length<2)){var e=this._source.points(),t=e[0],i=e[1],a=Math.min(t.index,i.index),s=2*(Math.max(t.index,i.index)-a),h=this._points[0],d=this._points[1],c=Math.abs(h.x-d.x),u=d.y-h.y,p=new o,_=this._source.properties(),f=this._model.timeScale();if(0!==s){for(var v=f.indexToCoordinate(a),g=[],y=a;v>-c;y-=s)v=f.indexToCoordinate(y),g.push(v);v=v=f.indexToCoordinate(a+s);for(y=a+s;v<f.width();y+=s)v=f.indexToCoordinate(y),g.push(v);for(var w=0;w<g.length;w++){var m=new l({point:new r(g[w],h.y),width:c,height:u,color:_.linecolor.value(),linewidth:_.linewidth.value(),linestyle:_.linestyle.value()});p.append(m)}this.addAnchors(p),this._renderer=p}}},t.SineLinePaneView=h},qjB4:function(e,t,i){e.exports=i.p+"f55394b616ed1ae9462c37daab941d93.png"},tjxb:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("jkoZ"),o=i("VdBB").HitTestResult,s=i("cPgM").ScaledPaneRenderer;function l(e,t){s.call(this),this._data=e,this._adapter=t}function h(e,t){n.call(this,e,t)}inherit(l,s),l.prototype._textWidth=function(e){if(0===this._adapter.getText().length)return 0;e.save(),e.font=this._adapter.getFont();var t=e.measureText(this._adapter.getText()).width;return e.restore(),5+t},l.prototype._drawArrow=function(e,t,i){e.save(),e.strokeStyle=this._adapter.getArrowColor(),e.fillStyle=this._adapter.getArrowColor();var r=this._adapter.getArrowHeight(),n=this._adapter.getDirection();e.translate(t,i),"buy"!==n&&e.rotate(Math.PI),CanvasEx.drawArrow(e,0,0,0,r),e.restore()},l.prototype._drawText=function(e,t,i){var r=this._adapter.getText();if(r){e.save(),e.textAlign="center",e.textBaseline="middle",e.font=this._adapter.getFont(),e.fillStyle=this._adapter.getTextColor();var n=t+this._textWidth(e)/2,o=i+a.fontHeight(this._adapter.getFont())/2;e.fillText(r,n,o-1),e.restore()}},l.prototype._drawImpl=function(e){var t=Math.round(this._data.points[0].x+.5),i=Math.round(this._data.points[0].y);this._drawArrow(e,t,i);var r=this._textWidth(e);if(0!==r){var n=this._adapter.getArrowHeight(),o=this._adapter.getArrowSpacing(),s=a.fontHeight(this._adapter.getFont()),l="buy"===this._adapter.getDirection()?i+n+o:i-n-o-s;this._drawText(e,Math.round(t-r/2),l)}},l.prototype.hitTest=function(e){var t,i,r=Math.round(this._data.points[0].x),n=Math.round(this._data.points[0].y),a=this._adapter.getArrowHeight();if("buy"===this._adapter.getDirection()?(t=n,i=n+a):(t=n-a,i=n),e.x>=r-2&&e.x<=r+2&&e.y>=t&&e.y<=i){var s=this._adapter.getTooltip()
;const e=()=>{TradingView.TradingWidget&&TradingView.TradingWidget.journalDialog()};return new o(o.CUSTOM,{clickHandler:e,tapHandler:e,tooltip:""!==s?{text:s,rect:{x:r,y:t,w:2,h:i-t}}:null})}return null},inherit(h,n),h.prototype._renderer=null,h.prototype._rendererCached=!1,h.prototype._updateImpl=function(){n.prototype._updateImpl.call(this),this._renderer=null,this._rendererCached=!1},h.prototype.renderer=function(e,t){if(this._invalidated&&this._updateImpl(),this._rendererCached)return this._renderer;this._rendererCached=!0;var i=this._source,n=i.points();if(0===n.length)return null;var a=i._adapter,o=i._model.timeScale(),s=this._source._model.paneForSource(this._source).executionsPositionController().getXYCoordinate(a,o,n[0].index);if(!isFinite(s.y)||s.y<0||s.y>e||s.x<0)return this._renderer=null,null;var h={points:[new r(s.x,s.y)]};return this._renderer=new l(h,a),this._renderer},t.ExecutionPaneView=h},"u+oH":function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("pJOz").TrendLineRenderer,o=i("qgcf").TextRenderer,s=i("IjC5").RectangleRenderer,l=i("VdBB").HitTestResult,h=i("Zy3/").CompositeRenderer,d=i("GH0z").PercentageFormatter,c=i("zXvd").NumericFormatter,u=i("5C6T").PipFormatter,p=i("Tmoa"),_=i("a7Ha").LineEnd,f=i("wGNx").RiskRewardPointIndex,v=i("Ialn").forceLTRStr,g=i("//lt").PaneCursorType,y=[g.Default,g.HorizontalResize,g.VerticalResize,g.VerticalResize];function w(e,t){n.call(this,e,t),this._percentageFormatter=new d,this._numericFormatter=new c,this._pipFormatter=null,this._lastSymbolInfo=null,this._entryLineRenderer=new a,this._stopLineRenderer=new a,this._targetLineRenderer=new a,this._positionLineRenderer=new a,this._fullStopBgRenderer=new s(new l(l.MOVEPOINT),new l(l.MOVEPOINT)),this._stopBgRenderer=new s(new l(l.MOVEPOINT),new l(l.MOVEPOINT)),this._fullTargetBgRenderer=new s(new l(l.MOVEPOINT),new l(l.MOVEPOINT)),this._targetBgRenderer=new s(new l(l.MOVEPOINT),new l(l.MOVEPOINT)),this._stopLabelRenderer=new o,this._middleLabelRenderer=new o,this._profitLabelRenderer=new o,this._renderer=null}inherit(w,n),w.prototype.i18nCache={pnl:$.t("{0} P&L: {1}"),open:$.t("Open",{context:"line_tool_position"}),closed:$.t("Closed",{context:"line_tool_position"}),ratio:$.t("Risk/Reward Ratio: {0}"),stop:$.t("Stop: {0} ({1}) {2}, Amount: {3}"),target:$.t("Target: {0} ({1}) {2}, Amount: {3}"),qty:$.t("Qty: {0}")},w.prototype._formatInTicks=function(e){var t=this._model.mainSeries().base();return Math.round(e*t)},w.prototype.isLabelVisible=function(){return this.isHoveredSource()||this.isSelectedSource()||this._source.properties().alwaysShowStats.value()},w.prototype._updateImpl=function(){n.prototype._updateImpl.call(this),this._renderer=null,this._stopLevel=null,this._profitLevel=null;var e=this._model.timeScale(),t=this._source.priceScale();if(t&&!t.isEmpty()&&!e.isEmpty()&&0!==this._source.points().length&&0!==this._points.length&&null!==this._model.mainSeries().bars().last()&&!(this._source.points().length<2)&&0!==this._model.mainSeries().bars().length){ ;const e=()=>{TradingView.TradingWidget&&TradingView.TradingWidget.journalDialog()};return new o(o.CUSTOM,{clickHandler:e,tapHandler:e,tooltip:""!==s?{text:s,rect:{x:r,y:t,w:2,h:i-t}}:null})}return null},inherit(h,n),h.prototype._renderer=null,h.prototype._rendererCached=!1,h.prototype._updateImpl=function(){n.prototype._updateImpl.call(this),this._renderer=null,this._rendererCached=!1},h.prototype.renderer=function(e,t){if(this._invalidated&&this._updateImpl(),this._rendererCached)return this._renderer;this._rendererCached=!0;var i=this._source,n=i.points();if(0===n.length)return null;var a=i._adapter,o=i._model.timeScale(),s=this._source._model.paneForSource(this._source).executionsPositionController().getXYCoordinate(a,o,n[0].index);if(!isFinite(s.y)||s.y<0||s.y>e||s.x<0)return this._renderer=null,null;var h={points:[new r(s.x,s.y)]};return this._renderer=new l(h,a),this._renderer},t.ExecutionPaneView=h},"u+oH":function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("pJOz").TrendLineRenderer,o=i("qgcf").TextRenderer,s=i("IjC5").RectangleRenderer,l=i("VdBB").HitTestResult,h=i("Zy3/").CompositeRenderer,d=i("GH0z").PercentageFormatter,c=i("zXvd").NumericFormatter,u=i("5C6T").PipFormatter,p=i("Tmoa"),_=i("a7Ha").LineEnd,f=i("wGNx").RiskRewardPointIndex,v=i("Ialn").forceLTRStr,g=i("//lt").PaneCursorType,y=[g.Default,g.HorizontalResize,g.VerticalResize,g.VerticalResize];function w(e,t){n.call(this,e,t),this._percentageFormatter=new d,this._numericFormatter=new c,this._pipFormatter=null,this._lastSymbolInfo=null,this._entryLineRenderer=new a,this._stopLineRenderer=new a,this._targetLineRenderer=new a,this._positionLineRenderer=new a,this._fullStopBgRenderer=new s(new l(l.MOVEPOINT),new l(l.MOVEPOINT)),this._stopBgRenderer=new s(new l(l.MOVEPOINT),new l(l.MOVEPOINT)),this._fullTargetBgRenderer=new s(new l(l.MOVEPOINT),new l(l.MOVEPOINT)),this._targetBgRenderer=new s(new l(l.MOVEPOINT),new l(l.MOVEPOINT)),this._stopLabelRenderer=new o,this._middleLabelRenderer=new o,this._profitLabelRenderer=new o,this._renderer=null}inherit(w,n),w.prototype.i18nCache={pnl:$.t("{0} P&L: {1}"),open:$.t("Open",{context:"line_tool_position"}),closed:$.t("Closed",{context:"line_tool_position"}),ratio:$.t("Risk/Reward Ratio: {0}"),stop:$.t("Stop: {0} ({1}) {2}, Amount: {3}"),target:$.t("Target: {0} ({1}) {2}, Amount: {3}"),qty:$.t("Qty: {0}")},w.prototype._formatInTicks=function(e){var t=this._model.mainSeries().base();return Math.round(e*t)},w.prototype.isLabelVisible=function(){return this.isHoveredSource()||this.isSelectedSource()||this._source.properties().alwaysShowStats.value()},w.prototype._updateImpl=function(){n.prototype._updateImpl.call(this),this._renderer=null,this._stopLevel=null,this._profitLevel=null;var e=this._model.timeScale(),t=this._source.priceScale();if(t&&!t.isEmpty()&&!e.isEmpty()&&0!==this._source.points().length&&0!==this._points.length&&null!==this._model.mainSeries().bars().last()&&!(this._source.points().length<2)&&0!==this._model.mainSeries().bars().length){
this._isClosed=4===this._source.points().length;var i=this._source.lastBarData();if(i){var a=this._source.stopPrice(),o=this._source.profitPrice();this._pl=this._source.points().length>1?this._source.calculatePL(i.closePrice):0;var s=this._source.ownerSource().firstValue();if(this._entryLevel=this._points[f.Entry].y,this._stopLevel=t.priceToCoordinate(a,s),this._profitLevel=t.priceToCoordinate(o,s),this._closeLevel=t.priceToCoordinate(i.closePrice,s),this._closeBar=this._source._model.timeScale().indexToCoordinate(i.index),!(this._points.length<2||this._source.points().length<2)){var l=new h,d=this,c=this._source.properties(),g=this._points[f.Entry].x,w=this._points[f.ActualEntry]?this._points[f.ActualEntry].x:this._points[f.Close].x,m=this._points[f.ActualClose]?this._points[f.ActualClose].x:this._points[f.Close].x,x=this._points[f.Close].x,b=new r(g,this._entryLevel),R=new r(x,this._stopLevel);if((C={}).points=[b,R],C.color="white",C.linewidth=0,C.backcolor=c.stopBackground.value(),C.fillBackground=!0,C.transparency=c.stopBackgroundTransparency.value(),C.extendLeft=!1,C.extendRight=!1,this._fullStopBgRenderer.setData(C),l.append(this._fullStopBgRenderer),this._pl<0){b=new r(w,this._entryLevel),R=new r(m,this._closeLevel);(C={}).points=[b,R],C.color="white",C.linewidth=0,C.backcolor=c.stopBackground.value(),C.fillBackground=!0;var T=100-100*(1-(S=.01*c.stopBackgroundTransparency.value())*S*S);C.transparency=T,C.extendLeft=!1,C.extendRight=!1,this._stopBgRenderer.setData(C),l.append(this._stopBgRenderer)}b=new r(g,this._entryLevel),R=new r(x,this._profitLevel);if((C={}).points=[b,R],C.color="white",C.linewidth=0,C.backcolor=c.profitBackground.value(),C.fillBackground=!0,C.transparency=c.profitBackgroundTransparency.value(),C.extendLeft=!1,C.extendRight=!1,this._fullTargetBgRenderer.setData(C),l.append(this._fullTargetBgRenderer),this._pl>0){b=new r(w,this._entryLevel),R=new r(m,this._closeLevel);(C={}).points=[b,R],C.color="white",C.linewidth=0,C.backcolor=c.profitBackground.value(),C.fillBackground=!0;var S,P=100-100*(1-(S=.01*c.profitBackgroundTransparency.value())*S*S);C.transparency=P,C.extendLeft=!1,C.extendRight=!1,this._targetBgRenderer.setData(C),l.append(this._targetBgRenderer)}var L=function(e,t,i,r){var n={};n.points=[t,i],n.width=d._model.timeScale().width(),n.height=d._source.priceScale().height(),n.color=r||d._source.properties().linecolor.value(),n.linewidth=d._source.properties().linewidth.value(),n.linestyle=CanvasEx.LINESTYLE_SOLID,n.extendleft=!1,n.extendright=!1,n.leftend=_.Normal,n.rightend=_.Normal,e.setData(n),l.append(e)};if(this._points[f.ActualEntry]){var C;b=this._points[f.ActualEntry],R=this._isClosed?this._points[f.ActualClose]:new r(this._closeBar,this._closeLevel);(C={}).points=[b,R],C.width=d._model.timeScale().width(),C.height=d._source.priceScale().height(),C.color=d._source.properties().linecolor.value(),C.linewidth=1,C.linestyle=CanvasEx.LINESTYLE_DASHED,C.extendleft=!1,C.extendright=!1,C.leftend=_.Normal,C.rightend=_.Arrow,this._positionLineRenderer.setData(C), this._isClosed=4===this._source.points().length;var i=this._source.lastBarData();if(i){var a=this._source.stopPrice(),o=this._source.profitPrice();this._pl=this._source.points().length>1?this._source.calculatePL(i.closePrice):0;var s=this._source.ownerSource().firstValue();if(this._entryLevel=this._points[f.Entry].y,this._stopLevel=t.priceToCoordinate(a,s),this._profitLevel=t.priceToCoordinate(o,s),this._closeLevel=t.priceToCoordinate(i.closePrice,s),this._closeBar=this._source._model.timeScale().indexToCoordinate(i.index),!(this._points.length<2||this._source.points().length<2)){var l=new h,d=this,c=this._source.properties(),g=this._points[f.Entry].x,w=this._points[f.ActualEntry]?this._points[f.ActualEntry].x:this._points[f.Close].x,m=this._points[f.ActualClose]?this._points[f.ActualClose].x:this._points[f.Close].x,x=this._points[f.Close].x,b=new r(g,this._entryLevel),R=new r(x,this._stopLevel);if((C={}).points=[b,R],C.color="white",C.linewidth=0,C.backcolor=c.stopBackground.value(),C.fillBackground=!0,C.transparency=c.stopBackgroundTransparency.value(),C.extendLeft=!1,C.extendRight=!1,this._fullStopBgRenderer.setData(C),l.append(this._fullStopBgRenderer),this._pl<0){b=new r(w,this._entryLevel),R=new r(m,this._closeLevel);(C={}).points=[b,R],C.color="white",C.linewidth=0,C.backcolor=c.stopBackground.value(),C.fillBackground=!0;var T=100-100*(1-(S=.01*c.stopBackgroundTransparency.value())*S*S);C.transparency=T,C.extendLeft=!1,C.extendRight=!1,this._stopBgRenderer.setData(C),l.append(this._stopBgRenderer)}b=new r(g,this._entryLevel),R=new r(x,this._profitLevel);if((C={}).points=[b,R],C.color="white",C.linewidth=0,C.backcolor=c.profitBackground.value(),C.fillBackground=!0,C.transparency=c.profitBackgroundTransparency.value(),C.extendLeft=!1,C.extendRight=!1,this._fullTargetBgRenderer.setData(C),l.append(this._fullTargetBgRenderer),this._pl>0){b=new r(w,this._entryLevel),R=new r(m,this._closeLevel);(C={}).points=[b,R],C.color="white",C.linewidth=0,C.backcolor=c.profitBackground.value(),C.fillBackground=!0;var S,P=100-100*(1-(S=.01*c.profitBackgroundTransparency.value())*S*S);C.transparency=P,C.extendLeft=!1,C.extendRight=!1,this._targetBgRenderer.setData(C),l.append(this._targetBgRenderer)}var L=function(e,t,i,r){var n={};n.points=[t,i],n.width=d._model.timeScale().width(),n.height=d._source.priceScale().height(),n.color=r||d._source.properties().linecolor.value(),n.linewidth=d._source.properties().linewidth.value(),n.linestyle=CanvasEx.LINESTYLE_SOLID,n.extendleft=!1,n.extendright=!1,n.leftend=_.Normal,n.rightend=_.Normal,e.setData(n),l.append(e)};if(this._points[f.ActualEntry]){var C;b=this._points[f.ActualEntry],R=this._isClosed?this._points[f.ActualClose]:new r(this._closeBar,this._closeLevel);(C={}).points=[b,R],C.width=d._model.timeScale().width(),C.height=d._source.priceScale().height(),C.color=d._source.properties().linecolor.value(),C.linewidth=1,C.linestyle=CanvasEx.LINESTYLE_DASHED,C.extendleft=!1,C.extendright=!1,C.leftend=_.Normal,C.rightend=_.Arrow,this._positionLineRenderer.setData(C),
l.append(this._positionLineRenderer)}d=this;var M=function(e,t,i,r,n,a,o){if(d.isLabelVisible()){var s={};s.points=[t],s.text=i,s.color=c.textcolor.value(),s.font=c.font.value(),s.offsetX=3,s.offsetY=a,s.vertAlign=n,s.horzAlign="center",s.backgroundRoundRect=4,s.backgroundColor=p.resetTransparency(r),s.fontsize=c.fontsize.value(),s.backgroundHorzInflate=4,o&&(s.borderColor=o),e.setData(s),l.append(e)}},I=this._source.entryPrice(),O=this._source.stopPrice(),D=this._source.profitPrice(),k=Math.abs(O-I),N=Math.round(1e4*k/I)/100,B=Math.abs(D-I),A=Math.round(1e4*B/I)/100,j=Math.abs(I-D)/Math.abs(I-O);b=new r(g,this._points[f.Entry].y),R=new r(x,this._points[f.Entry].y);L(this._entryLineRenderer,b,R);var E=new r((g+x)/2,Math.round(this._points[0].y)+.5),z="",V="",H=this._numericFormatter.format(Math.round(100*j)/100);if(this._points[1]&&void 0!==this._pl&&(V=this._source.ownerSource().formatter().format(this._pl)),c.compact.value())z+=V?V+" ~ ":"",z+=c.qty.value()+"\n",z+=H;else{var W=this._isClosed?this.i18nCache.closed:this.i18nCache.open;z+=V?this.i18nCache.pnl.format(W,V)+", ":"",z+=this.i18nCache.qty.format(c.qty.value())+"\n",z+=this.i18nCache.ratio.format(H)+" "}var Y=c.linecolor.value();this._pl<0?Y=c.stopBackground.value():this._pl>0&&(Y=c.profitBackground.value()),M(this._middleLabelRenderer,E,z,Y,"middle",0,"white");b=new r(g,this._stopLevel),R=new r(x,this._stopLevel);L(this._stopLineRenderer,b,R,c.stopBackground.value());var F=this._model.mainSeries().symbolInfo();F&&F!==this._lastSymbolInfo&&(this._pipFormatter=new u(F.pricescale,F.minmov,F.type,F.minmove2),this._lastSymbolInfo=F);E=new r((g+x)/2,this._stopLevel),z="";var U=this._source.ownerSource().formatter().format(k),Z=this._percentageFormatter.format(N);z=c.compact.value()?U+" ("+Z+") "+c.amountStop.value():this.i18nCache.stop.format(v(this._source.ownerSource().formatter().format(k)),v(this._percentageFormatter.format(N)),this._pipFormatter?v(this._pipFormatter.format(k)):"",v(c.amountStop.value())),M(this._stopLabelRenderer,E,z,c.stopBackground.value(),I<O?"bottom":"top",0);b=new r(g,this._profitLevel),R=new r(x,this._profitLevel);L(this._targetLineRenderer,b,R,c.profitBackground.value());E=new r((g+x)/2,this._profitLevel),z="",U=this._source.ownerSource().formatter().format(B),Z=this._percentageFormatter.format(A);z=c.compact.value()?U+" ("+Z+") "+c.amountTarget.value():this.i18nCache.target.format(v(this._source.ownerSource().formatter().format(B)),v(this._percentageFormatter.format(A)),this._pipFormatter?v(this._pipFormatter.format(B)):"",v(c.amountTarget.value())),M(this._profitLabelRenderer,E,z,c.profitBackground.value(),I<O?"top":"bottom",0);var G=this._points[0].clone();G.data=0;var q=new r(g,this._stopLevel);q.data=2,q.square=!0;var Q=new r(g,this._profitLevel);Q.data=3,Q.square=!0;var X=new r(x,G.y);X.data=1,X.square=!0;var J={points:[G,X,q,Q],pointsCursorType:y};l.append(this.createLineAnchor(J)),this._renderer=l}}}},w.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.RiskRewardPaneView=w}, l.append(this._positionLineRenderer)}d=this;var M=function(e,t,i,r,n,a,o){if(d.isLabelVisible()){var s={};s.points=[t],s.text=i,s.color=c.textcolor.value(),s.font=c.font.value(),s.offsetX=3,s.offsetY=a,s.vertAlign=n,s.horzAlign="center",s.backgroundRoundRect=4,s.backgroundColor=p.resetTransparency(r),s.fontsize=c.fontsize.value(),s.backgroundHorzInflate=4,o&&(s.borderColor=o),e.setData(s),l.append(e)}},I=this._source.entryPrice(),O=this._source.stopPrice(),D=this._source.profitPrice(),k=Math.abs(O-I),B=Math.round(1e4*k/I)/100,N=Math.abs(D-I),A=Math.round(1e4*N/I)/100,j=Math.abs(I-D)/Math.abs(I-O);b=new r(g,this._points[f.Entry].y),R=new r(x,this._points[f.Entry].y);L(this._entryLineRenderer,b,R);var z=new r((g+x)/2,Math.round(this._points[0].y)+.5),E="",V="",H=this._numericFormatter.format(Math.round(100*j)/100);if(this._points[1]&&void 0!==this._pl&&(V=this._source.ownerSource().formatter().format(this._pl)),c.compact.value())E+=V?V+" ~ ":"",E+=c.qty.value()+"\n",E+=H;else{var W=this._isClosed?this.i18nCache.closed:this.i18nCache.open;E+=V?this.i18nCache.pnl.format(W,V)+", ":"",E+=this.i18nCache.qty.format(c.qty.value())+"\n",E+=this.i18nCache.ratio.format(H)+" "}var Y=c.linecolor.value();this._pl<0?Y=c.stopBackground.value():this._pl>0&&(Y=c.profitBackground.value()),M(this._middleLabelRenderer,z,E,Y,"middle",0,"white");b=new r(g,this._stopLevel),R=new r(x,this._stopLevel);L(this._stopLineRenderer,b,R,c.stopBackground.value());var F=this._model.mainSeries().symbolInfo();F&&F!==this._lastSymbolInfo&&(this._pipFormatter=new u(F.pricescale,F.minmov,F.type,F.minmove2),this._lastSymbolInfo=F);z=new r((g+x)/2,this._stopLevel),E="";var U=this._source.ownerSource().formatter().format(k),Z=this._percentageFormatter.format(B);E=c.compact.value()?U+" ("+Z+") "+c.amountStop.value():this.i18nCache.stop.format(v(this._source.ownerSource().formatter().format(k)),v(this._percentageFormatter.format(B)),this._pipFormatter?v(this._pipFormatter.format(k)):"",v(c.amountStop.value())),M(this._stopLabelRenderer,z,E,c.stopBackground.value(),I<O?"bottom":"top",0);b=new r(g,this._profitLevel),R=new r(x,this._profitLevel);L(this._targetLineRenderer,b,R,c.profitBackground.value());z=new r((g+x)/2,this._profitLevel),E="",U=this._source.ownerSource().formatter().format(N),Z=this._percentageFormatter.format(A);E=c.compact.value()?U+" ("+Z+") "+c.amountTarget.value():this.i18nCache.target.format(v(this._source.ownerSource().formatter().format(N)),v(this._percentageFormatter.format(A)),this._pipFormatter?v(this._pipFormatter.format(N)):"",v(c.amountTarget.value())),M(this._profitLabelRenderer,z,E,c.profitBackground.value(),I<O?"top":"bottom",0);var G=this._points[0].clone();G.data=0;var q=new r(g,this._stopLevel);q.data=2,q.square=!0;var Q=new r(g,this._profitLevel);Q.data=3,Q.square=!0;var X=new r(x,G.y);X.data=1,X.square=!0;var J={points:[G,X,q,Q],pointsCursorType:y};l.append(this.createLineAnchor(J)),this._renderer=l}}}},w.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.RiskRewardPaneView=w},
uRW3:function(e,t,i){"use strict";i.r(t),i.d(t,"HighlighterPaneView",(function(){return a}));var r=i("mrSG"),n=i("8Uy/"),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype._createPolygonRendererData=function(){var e=this._source.properties().childs();return{points:this._points,color:e.linecolor.value(),linewidth:20,backcolor:"rgba(0, 0, 0, 0)",fillBackground:!1,linestyle:n.LINESTYLE_SOLID,linecap:"round",linejoin:"round",filled:!1,transparency:e.transparency.value()}},t}(i("hzaj").a)},ukvZ:function(e,t,i){e.exports=i.p+"932c209e6bf69970ca313047d5da8964.png"},wacn:function(e,t,i){"use strict";i.r(t),i.d(t,"DisjointChannelRenderer",(function(){return _}));var r=i("mrSG"),n=i("Eyy1"),a=i("aO4+"),o=i("f6yo"),s=i("GEp6"),l=i("hBTJ"),h=i("8Uy/"),d=i("VdBB"),c=i("NN6M"),u=i("Tmoa"),p=i("cPgM"),_=function(){function e(){this._parallelChannelRenderer=new c.ParallelChannelRenderer,this._disjointChannelIntersectionRenderer=new f,this._selectedRenderer=this._disjointChannelIntersectionRenderer}return e.prototype.setData=function(e){if(!(e.points.length<4)){var t=e.points,i=t[0],r=t[1],n=t[2],o=t[3];if(Object(a.equalPoints)(i,r)||Object(a.equalPoints)(n,o)||Object(s.distanceToLine)(i,r,n).distance<1e-6&&Object(s.distanceToLine)(i,r,o).distance<1e-6)this._selectedRenderer=null;else null!==Object(l.intersectLines)(Object(a.lineThroughPoints)(i,r),Object(a.lineThroughPoints)(n,o))?(this._disjointChannelIntersectionRenderer.setData(e),this._selectedRenderer=this._disjointChannelIntersectionRenderer):(this._parallelChannelRenderer.setData({extendleft:e.extendleft,extendright:e.extendright,points:[i,r,o,n],fillBackground:!0,backcolor:e.backcolor,transparency:e.transparency,color:"rgba(0,0,0,0)",linestyle:h.LINESTYLE_SOLID,linewidth:0,showMidline:!1,hittestOnBackground:e.hittestOnBackground}),this._selectedRenderer=this._parallelChannelRenderer)}},e.prototype.hitTest=function(e,t){return null!==this._selectedRenderer?this._selectedRenderer.hitTest(e,t):null},e.prototype.draw=function(e,t){null!==this._selectedRenderer&&this._selectedRenderer.draw(e,t)},e}(),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._data=null,t}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e,t){if(null===this._data||!this._data.hittestOnBackground)return null;for(var i=0,r=this._visiblePolygons(t);i<r.length;i++){var n=r[i];if(Object(o.pointInPolygon)(e,n))return new d.HitTestResult(d.HitTestResult.MOVEPOINT_BACKGROUND)}return null},t.prototype._drawImpl=function(e,t){if(!(null===this._data||this._data.points.length<4)){e.fillStyle=Object(u.generateColor)(this._data.backcolor,this._data.transparency);for(var i=0,r=this._visiblePolygons(t);i<r.length;i++){var n=r[i];e.beginPath(),e.moveTo(n[0].x,n[0].y);for(var a=1;a<n.length;a++)e.lineTo(n[a].x,n[a].y);e.fill()}}},t.prototype._visiblePolygons=function(e){var t=Object(n.ensureNotNull)(this._data),i=t.points,r=i[0],o=i[1],s=i[2],h=i[3] uRW3:function(e,t,i){"use strict";i.r(t),i.d(t,"HighlighterPaneView",(function(){return a}));var r=i("mrSG"),n=i("8Uy/"),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype._createPolygonRendererData=function(){var e=this._source.properties().childs();return{points:this._points,color:e.linecolor.value(),linewidth:20,backcolor:"rgba(0, 0, 0, 0)",fillBackground:!1,linestyle:n.LINESTYLE_SOLID,linecap:"round",linejoin:"round",filled:!1,transparency:e.transparency.value()}},t}(i("hzaj").a)},ukvZ:function(e,t,i){e.exports=i.p+"932c209e6bf69970ca313047d5da8964.png"},wacn:function(e,t,i){"use strict";i.r(t),i.d(t,"DisjointChannelRenderer",(function(){return _}));var r=i("mrSG"),n=i("Eyy1"),a=i("aO4+"),o=i("f6yo"),s=i("GEp6"),l=i("hBTJ"),h=i("8Uy/"),d=i("VdBB"),c=i("NN6M"),u=i("Tmoa"),p=i("cPgM"),_=function(){function e(){this._parallelChannelRenderer=new c.ParallelChannelRenderer,this._disjointChannelIntersectionRenderer=new f,this._selectedRenderer=this._disjointChannelIntersectionRenderer}return e.prototype.setData=function(e){if(!(e.points.length<4)){var t=e.points,i=t[0],r=t[1],n=t[2],o=t[3];if(Object(a.equalPoints)(i,r)||Object(a.equalPoints)(n,o)||Object(s.distanceToLine)(i,r,n).distance<1e-6&&Object(s.distanceToLine)(i,r,o).distance<1e-6)this._selectedRenderer=null;else null!==Object(l.intersectLines)(Object(a.lineThroughPoints)(i,r),Object(a.lineThroughPoints)(n,o))?(this._disjointChannelIntersectionRenderer.setData(e),this._selectedRenderer=this._disjointChannelIntersectionRenderer):(this._parallelChannelRenderer.setData({extendleft:e.extendleft,extendright:e.extendright,points:[i,r,o,n],fillBackground:!0,backcolor:e.backcolor,transparency:e.transparency,color:"rgba(0,0,0,0)",linestyle:h.LINESTYLE_SOLID,linewidth:0,showMidline:!1,hittestOnBackground:e.hittestOnBackground}),this._selectedRenderer=this._parallelChannelRenderer)}},e.prototype.hitTest=function(e,t){return null!==this._selectedRenderer?this._selectedRenderer.hitTest(e,t):null},e.prototype.draw=function(e,t){null!==this._selectedRenderer&&this._selectedRenderer.draw(e,t)},e}(),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._data=null,t}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e,t){if(null===this._data||!this._data.hittestOnBackground)return null;for(var i=0,r=this._visiblePolygons(t);i<r.length;i++){var n=r[i];if(Object(o.pointInPolygon)(e,n))return new d.HitTestResult(d.HitTestResult.MOVEPOINT_BACKGROUND)}return null},t.prototype._drawImpl=function(e,t){if(!(null===this._data||this._data.points.length<4)){e.fillStyle=Object(u.generateColor)(this._data.backcolor,this._data.transparency);for(var i=0,r=this._visiblePolygons(t);i<r.length;i++){var n=r[i];e.beginPath(),e.moveTo(n[0].x,n[0].y);for(var a=1;a<n.length;a++)e.lineTo(n[a].x,n[a].y);e.fill()}}},t.prototype._visiblePolygons=function(e){var t=Object(n.ensureNotNull)(this._data),i=t.points,r=i[0],o=i[1],s=i[2],h=i[3]
;if(e.cssWidth<=0||e.cssHeight<=0)return[];var d=Object(l.intersectLines)(Object(a.lineThroughPoints)(r,o),Object(a.lineThroughPoints)(s,h));if(null===d)return[];var c=[new a.Point(0,0),new a.Point(e.cssWidth,0),new a.Point(e.cssWidth,e.cssHeight),new a.Point(0,e.cssHeight)],u=[],p=c,_=r.subtract(o).add(d),f=h.subtract(s).add(d);p=v(p,d,_,[f,f]),null!==(p=v(p=y(p,t),f,d,[_,_]))&&u.push(p);p=c;var g=o.subtract(r).add(d),w=s.subtract(h).add(d);return p=v(p,d,g,[w,w]),null!==(p=v(p=y(p,t),w,d,[g,g]))&&u.push(p),u},t}(p.ScaledPaneRenderer);function v(e,t,i,r){var n=Object(a.equalPoints)(i,r[0])?Object(a.equalPoints)(i,r[1])?null:r[1]:r[0];return null!==e&&null!==n?Object(l.intersectPolygonAndHalfplane)(e,Object(a.halfplaneThroughPoint)(Object(a.lineThroughPoints)(t,i),n)):null}function g(e,t,i){return null!==e?Object(l.intersectPolygonAndHalfplane)(e,Object(a.halfplaneThroughPoint)((r=t,Object(a.line)(1,0,-r)),new a.Point(i,0))):null;var r}function y(e,t){var i=t.points,r=i[0],n=i[1];return t.extendleft||(e=g(e,r.x,n.x)),t.extendright||(e=g(e,n.x,r.x)),e}},wdUH:function(e,t,i){"use strict";i.r(t),i.d(t,"GannFixedPaneView",(function(){return c}));var r=i("mrSG"),n=i("aO4+"),a=i("aB9a"),o=i("pJOz"),s=i("Zy3/"),l=i("a7Ha"),h=i("8Uy/"),d=i("amvX"),c=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._verticalLevelsRenderers=[],r._horizontalLevelsRenderers=[],r._fanRenderers=[],r._arcRenderers=[],r._renderer=null,r._initRenderers(),r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this),this._renderer=null;var t=this._getSource(),i=this._getPoints(),r=t.getScreenPoints();if(!(i.length<2||r.length<2)){var n=r[0],a=r[1];i[1]=n,i[1].data=1,i[2]=a;var o=this._getPoints(),l=new s.CompositeRenderer;if(o.length<2)return this.addAnchors(l),void(this._renderer=l);var h=o[0],d=3===o.length?o[2]:o[1],c=d.x-h.x,u=d.y-h.y,p=h,_=d,f=this._getModel(),v={barsCoordsRange:c,priceCoordsRange:u,startPoint:p,endPoint:_,p1:h,p2:d};this._prepareLevels(l,v),this._prepareFanLines(l,v),this._prepareArcs(l,v);var g=[h,o[1]];f.lineBeingCreated()===t&&g.pop(),l.append(this.createLineAnchor({points:g})),this._renderer=l}},t.prototype._initRenderers=function(){for(var e=this._getSource(),t=e.levelsCount(),i=0;i<t;i++)this._verticalLevelsRenderers.push(new o.TrendLineRenderer),this._horizontalLevelsRenderers.push(new o.TrendLineRenderer);var r=e.fanLinesCount();for(i=0;i<r;i++)this._fanRenderers.push(new o.TrendLineRenderer);var n=e.arcsCount();for(i=0;i<n;i++)this._arcRenderers.push(new d.a)},t.prototype._prepareLevels=function(e,t){for(var i=t.startPoint,r=t.endPoint,a=t.barsCoordsRange,o=t.priceCoordsRange,s=0,d=this._getSource().levels();s<d.length;s++){var c=d[s];if(c.visible){var u=c.index/5,p=i.x+u*a,_={points:[new n.Point(p,i.y),new n.Point(p,r.y)],color:c.color,linewidth:c.width,linestyle:h.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:l.LineEnd.Normal,rightend:l.LineEnd.Normal ;if(e.cssWidth<=0||e.cssHeight<=0)return[];var d=Object(l.intersectLines)(Object(a.lineThroughPoints)(r,o),Object(a.lineThroughPoints)(s,h));if(null===d)return[];var c=[new a.Point(0,0),new a.Point(e.cssWidth,0),new a.Point(e.cssWidth,e.cssHeight),new a.Point(0,e.cssHeight)],u=[],p=c,_=r.subtract(o).add(d),f=h.subtract(s).add(d);p=v(p,d,_,[f,f]),null!==(p=v(p=y(p,t),f,d,[_,_]))&&u.push(p);p=c;var g=o.subtract(r).add(d),w=s.subtract(h).add(d);return p=v(p,d,g,[w,w]),null!==(p=v(p=y(p,t),w,d,[g,g]))&&u.push(p),u},t}(p.ScaledPaneRenderer);function v(e,t,i,r){var n=Object(a.equalPoints)(i,r[0])?Object(a.equalPoints)(i,r[1])?null:r[1]:r[0];return null!==e&&null!==n?Object(l.intersectPolygonAndHalfplane)(e,Object(a.halfplaneThroughPoint)(Object(a.lineThroughPoints)(t,i),n)):null}function g(e,t,i){return null!==e?Object(l.intersectPolygonAndHalfplane)(e,Object(a.halfplaneThroughPoint)((r=t,Object(a.line)(1,0,-r)),new a.Point(i,0))):null;var r}function y(e,t){var i=t.points,r=i[0],n=i[1];return t.extendleft||(e=g(e,r.x,n.x)),t.extendright||(e=g(e,n.x,r.x)),e}},wdUH:function(e,t,i){"use strict";i.r(t),i.d(t,"GannFixedPaneView",(function(){return c}));var r=i("mrSG"),n=i("aO4+"),a=i("aB9a"),o=i("pJOz"),s=i("Zy3/"),l=i("a7Ha"),h=i("8Uy/"),d=i("amvX"),c=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._verticalLevelsRenderers=[],r._horizontalLevelsRenderers=[],r._fanRenderers=[],r._arcRenderers=[],r._renderer=null,r._initRenderers(),r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this),this._renderer=null;var t=this._getSource(),i=this._getPoints(),r=t.getScreenPoints();if(!(i.length<2||r.length<2)){var n=r[0],a=r[1];i[1]=n,i[1].data=1,i[2]=a;var o=this._getPoints(),l=new s.CompositeRenderer;if(o.length<2)return this.addAnchors(l),void(this._renderer=l);var h=o[0],d=3===o.length?o[2]:o[1],c=d.x-h.x,u=d.y-h.y,p=h,_=d,f=this._getModel(),v={barsCoordsRange:c,priceCoordsRange:u,startPoint:p,endPoint:_,p1:h,p2:d};this._prepareLevels(l,v),this._prepareFanLines(l,v),this._prepareArcs(l,v);var g=[h,o[1]];f.lineBeingCreated()===t&&g.pop(),l.append(this.createLineAnchor({points:g})),this._renderer=l}},t.prototype._initRenderers=function(){for(var e=this._getSource(),t=e.levelsCount(),i=0;i<t;i++)this._verticalLevelsRenderers.push(new o.TrendLineRenderer),this._horizontalLevelsRenderers.push(new o.TrendLineRenderer);var r=e.fanLinesCount();for(i=0;i<r;i++)this._fanRenderers.push(new o.TrendLineRenderer);var n=e.arcsCount();for(i=0;i<n;i++)this._arcRenderers.push(new d.a)},t.prototype._prepareLevels=function(e,t){for(var i=t.startPoint,r=t.endPoint,a=t.barsCoordsRange,o=t.priceCoordsRange,s=0,d=this._getSource().levels();s<d.length;s++){var c=d[s];if(c.visible){var u=c.index/5,p=i.x+u*a,_={points:[new n.Point(p,i.y),new n.Point(p,r.y)],color:c.color,linewidth:c.width,linestyle:h.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:l.LineEnd.Normal,rightend:l.LineEnd.Normal
},f=this._verticalLevelsRenderers[c.index];f.setData(_),e.append(f);var v=i.y+u*o,g={points:[new n.Point(i.x,v),new n.Point(r.x,v)],color:c.color,linewidth:c.width,linestyle:h.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:l.LineEnd.Normal,rightend:l.LineEnd.Normal},y=this._horizontalLevelsRenderers[c.index];y.setData(g),e.append(y)}}},t.prototype._prepareFanLines=function(e,t){for(var i=t.p1,r=t.startPoint,a=t.endPoint,o=t.barsCoordsRange,s=t.priceCoordsRange,d=0,c=this._getSource().fanLines();d<c.length;d++){var u=c[d];if(u.visible){var p=u.x,_=u.y,f=void 0,v=void 0;if(p>_){f=a.x;var g=_/p;v=r.y+g*s}else{v=a.y;g=p/_;f=r.x+g*o}var y={points:[i,new n.Point(f,v)],color:u.color,linewidth:u.width,linestyle:h.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:l.LineEnd.Normal,rightend:l.LineEnd.Normal},w=this._fanRenderers[u.index];w.setData(y),e.append(w)}}},t.prototype._prepareArcs=function(e,t){for(var i=t.p1,r=t.startPoint,a=t.endPoint,o=t.barsCoordsRange,s=t.priceCoordsRange,l=i,h=this._getSource(),d=h.isArcsBackgroundFilled(),c=h.arcsBackgroundTransparency(),u=0,p=h.arcs();u<p.length;u++){var _=p[u];if(_.visible){var f=_.x/5,v=_.y/5,g=r.x+f*o,y=r.y+v*s,w={center:r,point:new n.Point(g,y),edge:a,color:_.color,linewidth:_.width,fillBack:d,transparency:c,prevPoint:l},m=this._arcRenderers[_.index];m.setData(w),e.append(m),l=w.point}}},t}(a.LineSourcePaneView)},wgWl:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("z+cS").VerticalLineRenderer,o=i("qgcf").TextRenderer,s=i("IjC5").RectangleRenderer,l=i("pJOz").TrendLineRenderer,h=i("VdBB").HitTestResult,d=i("Zy3/").CompositeRenderer,c=i("a7Ha").LineEnd;function u(e,t){n.call(this,e,t),this._levels=[],this._trendRenderer=new l,this._renderer=null}inherit(u,n),u.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._source.points().length<1)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){var e=this._source.points()[0];2===this._source.points().length&&(y=this._source.points()[1]);var t=this._source.properties(),i=this._source.points()[0].index;if(null!==this._model.timeScale().visibleBarsStrictRange()){this._levels=[];for(var l=y?y.index-e.index:1,u=1;u<=11;u++){var p=t["level"+u];if(p.visible.value()){var _=Math.round(i+p.coeff.value()*l),f={index:u,x:this._model.timeScale().indexToCoordinate(_),color:p.color.value(),width:p.linewidth.value(),style:p.linestyle.value()};t.showLabels.value()&&(f.text=p.coeff.value(),f.y=this._source.priceScale().height()),this._levels.push(f)}}var v=new d;if((t=this._source.properties()).fillBackground.value())for(u=1;u<this._levels.length;u++){var g=this._levels[u-1],y=(e=new r(this._levels[u].x,0),new r(g.x,this._source.priceScale().height())),w={};w.points=[e,y],w.color=this._levels[u].color,w.linewidth=0,w.backcolor=this._levels[u].color,w.fillBackground=!0,w.transparency=t.transparency.value(),w.extendLeft=!1,w.extendRight=!1,(x=new s(void 0,void 0,!0)).setData(w),v.append(x)} },f=this._verticalLevelsRenderers[c.index];f.setData(_),e.append(f);var v=i.y+u*o,g={points:[new n.Point(i.x,v),new n.Point(r.x,v)],color:c.color,linewidth:c.width,linestyle:h.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:l.LineEnd.Normal,rightend:l.LineEnd.Normal},y=this._horizontalLevelsRenderers[c.index];y.setData(g),e.append(y)}}},t.prototype._prepareFanLines=function(e,t){for(var i=t.p1,r=t.startPoint,a=t.endPoint,o=t.barsCoordsRange,s=t.priceCoordsRange,d=0,c=this._getSource().fanLines();d<c.length;d++){var u=c[d];if(u.visible){var p=u.x,_=u.y,f=void 0,v=void 0;if(p>_){f=a.x;var g=_/p;v=r.y+g*s}else{v=a.y;g=p/_;f=r.x+g*o}var y={points:[i,new n.Point(f,v)],color:u.color,linewidth:u.width,linestyle:h.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:l.LineEnd.Normal,rightend:l.LineEnd.Normal},w=this._fanRenderers[u.index];w.setData(y),e.append(w)}}},t.prototype._prepareArcs=function(e,t){for(var i=t.p1,r=t.startPoint,a=t.endPoint,o=t.barsCoordsRange,s=t.priceCoordsRange,l=i,h=this._getSource(),d=h.isArcsBackgroundFilled(),c=h.arcsBackgroundTransparency(),u=0,p=h.arcs();u<p.length;u++){var _=p[u];if(_.visible){var f=_.x/5,v=_.y/5,g=r.x+f*o,y=r.y+v*s,w={center:r,point:new n.Point(g,y),edge:a,color:_.color,linewidth:_.width,fillBack:d,transparency:c,prevPoint:l},m=this._arcRenderers[_.index];m.setData(w),e.append(m),l=w.point}}},t}(a.LineSourcePaneView)},wgWl:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("z+cS").VerticalLineRenderer,o=i("qgcf").TextRenderer,s=i("IjC5").RectangleRenderer,l=i("pJOz").TrendLineRenderer,h=i("VdBB").HitTestResult,d=i("Zy3/").CompositeRenderer,c=i("a7Ha").LineEnd;function u(e,t){n.call(this,e,t),this._levels=[],this._trendRenderer=new l,this._renderer=null}inherit(u,n),u.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._source.points().length<1)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){var e=this._source.points()[0];2===this._source.points().length&&(y=this._source.points()[1]);var t=this._source.properties(),i=this._source.points()[0].index;if(null!==this._model.timeScale().visibleBarsStrictRange()){this._levels=[];for(var l=y?y.index-e.index:1,u=1;u<=11;u++){var p=t["level"+u];if(p.visible.value()){var _=Math.round(i+p.coeff.value()*l),f={index:u,x:this._model.timeScale().indexToCoordinate(_),color:p.color.value(),width:p.linewidth.value(),style:p.linestyle.value()};t.showLabels.value()&&(f.text=p.coeff.value(),f.y=this._source.priceScale().height()),this._levels.push(f)}}var v=new d;if((t=this._source.properties()).fillBackground.value())for(u=1;u<this._levels.length;u++){var g=this._levels[u-1],y=(e=new r(this._levels[u].x,0),new r(g.x,this._source.priceScale().height())),w={};w.points=[e,y],w.color=this._levels[u].color,w.linewidth=0,w.backcolor=this._levels[u].color,w.fillBackground=!0,w.transparency=t.transparency.value(),w.extendLeft=!1,w.extendRight=!1,(x=new s(void 0,void 0,!0)).setData(w),v.append(x)}
for(u=0;u<this._levels.length;u++){var m={};m.x=this._levels[u].x,m.color=this._levels[u].color,m.linewidth=this._levels[u].width,m.linestyle=this._levels[u].style;var x,b=new h(h.MOVEPOINT,null,this._levels[u].index);if((x=new a).setData(m),x.setHitTest(b),v.append(x),void 0!==this._levels[u].text){var R,T=t.horzLabelsAlign.value();switch(T="left"===T?"right":"right"===T?"left":"center",t.vertLabelsAlign.value()){case"top":R=new r(this._levels[u].x,0);break;case"middle":R=new r(this._levels[u].x,.5*this._levels[u].y);break;case"bottom":R=new r(this._levels[u].x,this._levels[u].y)}var S={points:[R],text:""+this._levels[u].text,color:m.color,vertAlign:t.vertLabelsAlign.value(),horzAlign:T,font:t.font.value(),offsetX:2,offsetY:0,fontsize:12};v.append(new o(S))}}if(2===this._points.length){var P={points:[this._points[0],this._points[1]],color:t.trendline.color.value(),linewidth:t.trendline.linewidth.value(),linestyle:t.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal};this._trendRenderer.setData(P),v.append(this._trendRenderer)}2===this._source.points().length?v.append(this.createLineAnchor({points:this._points})):this._points.length>0&&v.append(this.createLineAnchor({points:[new r(this._points[0].x,this._source.priceScale().height()/2)],hittestResult:h.MOVEPOINT})),this._renderer=v}}},u.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.FibTimeZonePaneView=u},xiOp:function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("aO4+"),a=i("//lt"),o=i("Zy3/"),s=i("f6yo"),l=i("VdBB"),h=function(e){function t(t){var i=e.call(this)||this;return i._data=t,i}return Object(r.c)(t,e),t.prototype.hitTest=function(e){if(!this._data)return null;var t=this._data,i=this._data.cssWidth/2,r=this._data.cssHeight/2,a=new n.Point(t.point.x-i,t.point.y-r),o=new n.Point(t.point.x+i,t.point.y+r);return Object(s.pointInBox)(e,Object(n.box)(a,o))?new l.HitTestResult(l.HitTestResult.MOVEPOINT):null},t.prototype.setData=function(e){this._data=e},t.prototype._drawImpl=function(e){if(this._data){e.globalAlpha=this._data.transparency;var t=this._data.cssWidth/2,i=this._data.cssHeight/2;Math.abs(this._data.angle)<1e-4?e.drawImage(this._data.img,this._data.point.x-t,this._data.point.y-i,this._data.cssWidth,this._data.cssHeight):(e.translate(this._data.point.x-t,this._data.point.y-i),e.rotate(this._data.angle),e.drawImage(this._data.img,0,0,this._data.cssWidth,this._data.cssHeight))}},t}(i("cPgM").ScaledPaneRenderer),d=i("aB9a");i.d(t,"ImagePaneView",(function(){return c}));var c=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._imageRenderer=new h,r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){if(this._invalidated&&this._updateImpl(),!this._points.length)return null;var i=new o.CompositeRenderer;return i.append(this._imageRenderer),this._addAnchors(i),i},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this);var t=this._points[0],i=this._source.properties();this._imageRenderer.setData({point:t,img:this._source.image(), for(u=0;u<this._levels.length;u++){var m={};m.x=this._levels[u].x,m.color=this._levels[u].color,m.linewidth=this._levels[u].width,m.linestyle=this._levels[u].style;var x,b=new h(h.MOVEPOINT,null,this._levels[u].index);if((x=new a).setData(m),x.setHitTest(b),v.append(x),void 0!==this._levels[u].text){var R,T=t.horzLabelsAlign.value();switch(T="left"===T?"right":"right"===T?"left":"center",t.vertLabelsAlign.value()){case"top":R=new r(this._levels[u].x,0);break;case"middle":R=new r(this._levels[u].x,.5*this._levels[u].y);break;case"bottom":R=new r(this._levels[u].x,this._levels[u].y)}var S={points:[R],text:""+this._levels[u].text,color:m.color,vertAlign:t.vertLabelsAlign.value(),horzAlign:T,font:t.font.value(),offsetX:2,offsetY:0,fontsize:12};v.append(new o(S))}}if(2===this._points.length){var P={points:[this._points[0],this._points[1]],color:t.trendline.color.value(),linewidth:t.trendline.linewidth.value(),linestyle:t.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal};this._trendRenderer.setData(P),v.append(this._trendRenderer)}2===this._source.points().length?v.append(this.createLineAnchor({points:this._points})):this._points.length>0&&v.append(this.createLineAnchor({points:[new r(this._points[0].x,this._source.priceScale().height()/2)],hittestResult:h.MOVEPOINT})),this._renderer=v}}},u.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.FibTimeZonePaneView=u},xiOp:function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("aO4+"),a=i("//lt"),o=i("Zy3/"),s=i("f6yo"),l=i("VdBB"),h=function(e){function t(t){var i=e.call(this)||this;return i._data=t,i}return Object(r.c)(t,e),t.prototype.hitTest=function(e){if(!this._data)return null;var t=this._data,i=this._data.cssWidth/2,r=this._data.cssHeight/2,a=new n.Point(t.point.x-i,t.point.y-r),o=new n.Point(t.point.x+i,t.point.y+r);return Object(s.pointInBox)(e,Object(n.box)(a,o))?new l.HitTestResult(l.HitTestResult.MOVEPOINT):null},t.prototype.setData=function(e){this._data=e},t.prototype._drawImpl=function(e){if(this._data){e.globalAlpha=this._data.transparency;var t=this._data.cssWidth/2,i=this._data.cssHeight/2;Math.abs(this._data.angle)<1e-4?e.drawImage(this._data.img,this._data.point.x-t,this._data.point.y-i,this._data.cssWidth,this._data.cssHeight):(e.translate(this._data.point.x-t,this._data.point.y-i),e.rotate(this._data.angle),e.drawImage(this._data.img,0,0,this._data.cssWidth,this._data.cssHeight))}},t}(i("cPgM").ScaledPaneRenderer),d=i("aB9a");i.d(t,"ImagePaneView",(function(){return c}));var c=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._imageRenderer=new h,r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){if(this._invalidated&&this._updateImpl(),!this._points.length)return null;var i=new o.CompositeRenderer;return i.append(this._imageRenderer),this._addAnchors(i),i},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this);var t=this._points[0],i=this._source.properties();this._imageRenderer.setData({point:t,img:this._source.image(),
cssWidth:this._source.cssWidth(),cssHeight:this._source.cssHeight(),angle:0,transparency:i.child("transparency").value()})},t.prototype._addAnchors=function(e){var t=this._calculateBox(),i=new n.Point(t.min.x,t.min.y);i.data=0;var r=new n.Point(t.max.x,t.min.y);r.data=1;var o=new n.Point(t.min.x,t.max.y);o.data=2;var s=new n.Point(t.max.x,t.max.y);s.data=3;var l=[a.PaneCursorType.DiagonalNwSeResize,a.PaneCursorType.DiagonalNeSwResize,a.PaneCursorType.DiagonalNeSwResize,a.PaneCursorType.DiagonalNwSeResize];e.append(this.createLineAnchor({points:[i,r,o,s],pointsCursorType:l}))},t.prototype._calculateBox=function(){var e=this._source.cssWidth()/2,t=this._source.cssHeight()/2,i=this._points[0],r=new n.Point(i.x-e+1,i.y-t+1),a=new n.Point(i.x+e-1,i.y+t-1);return Object(n.box)(r,a)},t}(d.LineSourcePaneView)},xp9B:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("2trc").ChannelRenderer,o=i("qgcf").TextRenderer,s=i("pJOz").TrendLineRenderer,l=i("VdBB").HitTestResult,h=i("Zy3/").CompositeRenderer,d=i("zXvd").NumericFormatter,c=i("a7Ha").LineEnd;function u(e,t){n.call(this,e,t),this._numericFormatter=new d,this._renderer=null}inherit(u,n),u.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._source.points().length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){var e=this._source.points()[0],t=this._source.points()[1],i=this._source.properties(),d=i.reverse.value();this._hlevels=[];for(var u=d?t.price-e.price:e.price-t.price,p=d?e.price:t.price,_=this._source.ownerSource().firstValue(),f=1;f<=7;f++){if((b=i["hlevel"+f]).visible.value()){var v=b.coeff.value(),g=b.color.value(),y=p+v*u,w=this._source.priceScale().priceToCoordinate(y,_);this._hlevels.push({coeff:v,color:g,y:w,index:f})}}this._vlevels=[];var m=d?t.index-e.index:e.index-t.index,x=d?e.index:t.index;for(f=1;f<=7;f++){var b;if((b=i["vlevel"+f]).visible.value()){v=b.coeff.value(),g=b.color.value();var R=Math.round(x+v*m),T=this._model.timeScale().indexToCoordinate(R,!0);this._vlevels.push({coeff:v,color:g,x:T,index:f})}}if(!(this._floatPoints.length<2)){var S=new h,P=(e=this._floatPoints[0],t=this._floatPoints[1],Math.min(e.x,t.x)),L=Math.min(e.y,t.y),C=Math.max(e.x,t.x),M=Math.max(e.y,t.y),I=i.grid.color.value(),O=i.grid.linewidth.value(),D=i.grid.linestyle.value();for(f=0;f<this._hlevels.length;f++){e=new r(P,this._hlevels[f].y),t=new r(C,this._hlevels[f].y);if(i.grid.visible.value()){var k={points:[e,t],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:I,linewidth:O,linestyle:D,extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal};(F=new s).setData(k),S.append(F)}if(i.showLeftLabels.value()){var N={points:[e],text:this._numericFormatter.format(this._hlevels[f].coeff),color:this._hlevels[f].color,vertAlign:"middle",horzAlign:"right",font:i.font.value(),offsetX:5,offsetY:0,fontsize:12,forceTextAlign:!0};S.append(new o(N))}if(i.showRightLabels.value()){var B={points:[t], cssWidth:this._source.cssWidth(),cssHeight:this._source.cssHeight(),angle:0,transparency:i.child("transparency").value()})},t.prototype._addAnchors=function(e){var t=this._calculateBox(),i=new n.Point(t.min.x,t.min.y);i.data=0;var r=new n.Point(t.max.x,t.min.y);r.data=1;var o=new n.Point(t.min.x,t.max.y);o.data=2;var s=new n.Point(t.max.x,t.max.y);s.data=3;var l=[a.PaneCursorType.DiagonalNwSeResize,a.PaneCursorType.DiagonalNeSwResize,a.PaneCursorType.DiagonalNeSwResize,a.PaneCursorType.DiagonalNwSeResize];e.append(this.createLineAnchor({points:[i,r,o,s],pointsCursorType:l}))},t.prototype._calculateBox=function(){var e=this._source.cssWidth()/2,t=this._source.cssHeight()/2,i=this._points[0],r=new n.Point(i.x-e+1,i.y-t+1),a=new n.Point(i.x+e-1,i.y+t-1);return Object(n.box)(r,a)},t}(d.LineSourcePaneView)},xp9B:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("2trc").ChannelRenderer,o=i("qgcf").TextRenderer,s=i("pJOz").TrendLineRenderer,l=i("VdBB").HitTestResult,h=i("Zy3/").CompositeRenderer,d=i("zXvd").NumericFormatter,c=i("a7Ha").LineEnd;function u(e,t){n.call(this,e,t),this._numericFormatter=new d,this._renderer=null}inherit(u,n),u.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._source.points().length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){var e=this._source.points()[0],t=this._source.points()[1],i=this._source.properties(),d=i.reverse.value();this._hlevels=[];for(var u=d?t.price-e.price:e.price-t.price,p=d?e.price:t.price,_=this._source.ownerSource().firstValue(),f=1;f<=7;f++){if((b=i["hlevel"+f]).visible.value()){var v=b.coeff.value(),g=b.color.value(),y=p+v*u,w=this._source.priceScale().priceToCoordinate(y,_);this._hlevels.push({coeff:v,color:g,y:w,index:f})}}this._vlevels=[];var m=d?t.index-e.index:e.index-t.index,x=d?e.index:t.index;for(f=1;f<=7;f++){var b;if((b=i["vlevel"+f]).visible.value()){v=b.coeff.value(),g=b.color.value();var R=Math.round(x+v*m),T=this._model.timeScale().indexToCoordinate(R,!0);this._vlevels.push({coeff:v,color:g,x:T,index:f})}}if(!(this._floatPoints.length<2)){var S=new h,P=(e=this._floatPoints[0],t=this._floatPoints[1],Math.min(e.x,t.x)),L=Math.min(e.y,t.y),C=Math.max(e.x,t.x),M=Math.max(e.y,t.y),I=i.grid.color.value(),O=i.grid.linewidth.value(),D=i.grid.linestyle.value();for(f=0;f<this._hlevels.length;f++){e=new r(P,this._hlevels[f].y),t=new r(C,this._hlevels[f].y);if(i.grid.visible.value()){var k={points:[e,t],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:I,linewidth:O,linestyle:D,extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal};(F=new s).setData(k),S.append(F)}if(i.showLeftLabels.value()){var B={points:[e],text:this._numericFormatter.format(this._hlevels[f].coeff),color:this._hlevels[f].color,vertAlign:"middle",horzAlign:"right",font:i.font.value(),offsetX:5,offsetY:0,fontsize:12,forceTextAlign:!0};S.append(new o(B))}if(i.showRightLabels.value()){var N={points:[t],
text:this._numericFormatter.format(this._hlevels[f].coeff),color:this._hlevels[f].color,vertAlign:"middle",horzAlign:"left",font:i.font.value(),offsetX:5,offsetY:0,fontsize:12,forceTextAlign:!0};S.append(new o(B))}}for(f=0;f<this._vlevels.length;f++){e=new r(this._vlevels[f].x,L),t=new r(this._vlevels[f].x,M);if(i.grid.visible.value()){k={points:[e,t],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:I,linewidth:O,linestyle:D,extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal};(F=new s).setData(k),S.append(F)}if(i.showTopLabels.value()){var A={points:[e],text:this._numericFormatter.format(this._vlevels[f].coeff),color:this._vlevels[f].color,vertAlign:"bottom",horzAlign:"center",font:i.font.value(),offsetX:0,offsetY:5,fontsize:12};S.append(new o(A))}if(i.showBottomLabels.value()){var j={points:[t],text:this._numericFormatter.format(this._vlevels[f].coeff),color:this._vlevels[f].color,vertAlign:"top",horzAlign:"center",font:i.font.value(),offsetX:0,offsetY:5,fontsize:12};S.append(new o(j))}}var E=i.fillBackground.value(),z=i.transparency.value();for(e=this._floatPoints[0],t=this._floatPoints[1],f=0;f<this._hlevels.length;f++){var V=new r(t.x,this._hlevels[f].y);if(f>0&&E){var H=new r(t.x,this._hlevels[f-1].y);(Y={}).width=this._model.timeScale().width(),Y.height=this._source.priceScale().height(),Y.p1=e,Y.p2=V,Y.p3=e,Y.p4=H,Y.color=this._hlevels[f].color,Y.transparency=z,Y.hittestOnBackground=!0,(F=new a).setData(Y),S.append(F)}k={points:[e,V],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._hlevels[f].color,linewidth:i.linewidth.value(),linestyle:i.linestyle.value(),extendleft:!1,extendright:!0,leftend:c.Normal,rightend:c.Normal};(F=new s).setData(k),F.setHitTest(new l(l.MOVEPOINT,null,{type:"h",index:this._hlevels[f].index})),S.append(F)}for(f=0;f<this._vlevels.length;f++){var W=new r(this._vlevels[f].x,t.y);if(f>0&&E){var Y;H=new r(this._vlevels[f-1].x,t.y);(Y={}).width=this._model.timeScale().width(),Y.height=this._source.priceScale().height(),Y.p1=e,Y.p2=W,Y.p3=e,Y.p4=H,Y.color=this._vlevels[f].color,Y.transparency=z,Y.hittestOnBackground=!0,(F=new a).setData(Y),S.append(F)}var F;k={points:[e,W],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._vlevels[f].color,linewidth:i.linewidth.value(),linestyle:i.linestyle.value(),extendleft:!1,extendright:!0,leftend:c.Normal,rightend:c.Normal};(F=new s).setData(k),F.setHitTest(new l(l.MOVEPOINT,null,{type:"v",index:this._vlevels[f].index})),S.append(F)}this.addAnchors(S),this._renderer=S}}},u.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.FibSpeedResistanceFanPaneView=u},"y/56":function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("aB9a"),a=i("Zy3/"),o=i("vq8G"),s=i("VdBB"),l=i("f6yo"),h=i("jFln"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._data=null,t}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e){ text:this._numericFormatter.format(this._hlevels[f].coeff),color:this._hlevels[f].color,vertAlign:"middle",horzAlign:"left",font:i.font.value(),offsetX:5,offsetY:0,fontsize:12,forceTextAlign:!0};S.append(new o(N))}}for(f=0;f<this._vlevels.length;f++){e=new r(this._vlevels[f].x,L),t=new r(this._vlevels[f].x,M);if(i.grid.visible.value()){k={points:[e,t],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:I,linewidth:O,linestyle:D,extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal};(F=new s).setData(k),S.append(F)}if(i.showTopLabels.value()){var A={points:[e],text:this._numericFormatter.format(this._vlevels[f].coeff),color:this._vlevels[f].color,vertAlign:"bottom",horzAlign:"center",font:i.font.value(),offsetX:0,offsetY:5,fontsize:12};S.append(new o(A))}if(i.showBottomLabels.value()){var j={points:[t],text:this._numericFormatter.format(this._vlevels[f].coeff),color:this._vlevels[f].color,vertAlign:"top",horzAlign:"center",font:i.font.value(),offsetX:0,offsetY:5,fontsize:12};S.append(new o(j))}}var z=i.fillBackground.value(),E=i.transparency.value();for(e=this._floatPoints[0],t=this._floatPoints[1],f=0;f<this._hlevels.length;f++){var V=new r(t.x,this._hlevels[f].y);if(f>0&&z){var H=new r(t.x,this._hlevels[f-1].y);(Y={}).width=this._model.timeScale().width(),Y.height=this._source.priceScale().height(),Y.p1=e,Y.p2=V,Y.p3=e,Y.p4=H,Y.color=this._hlevels[f].color,Y.transparency=E,Y.hittestOnBackground=!0,(F=new a).setData(Y),S.append(F)}k={points:[e,V],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._hlevels[f].color,linewidth:i.linewidth.value(),linestyle:i.linestyle.value(),extendleft:!1,extendright:!0,leftend:c.Normal,rightend:c.Normal};(F=new s).setData(k),F.setHitTest(new l(l.MOVEPOINT,null,{type:"h",index:this._hlevels[f].index})),S.append(F)}for(f=0;f<this._vlevels.length;f++){var W=new r(this._vlevels[f].x,t.y);if(f>0&&z){var Y;H=new r(this._vlevels[f-1].x,t.y);(Y={}).width=this._model.timeScale().width(),Y.height=this._source.priceScale().height(),Y.p1=e,Y.p2=W,Y.p3=e,Y.p4=H,Y.color=this._vlevels[f].color,Y.transparency=E,Y.hittestOnBackground=!0,(F=new a).setData(Y),S.append(F)}var F;k={points:[e,W],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._vlevels[f].color,linewidth:i.linewidth.value(),linestyle:i.linestyle.value(),extendleft:!1,extendright:!0,leftend:c.Normal,rightend:c.Normal};(F=new s).setData(k),F.setHitTest(new l(l.MOVEPOINT,null,{type:"v",index:this._vlevels[f].index})),S.append(F)}this.addAnchors(S),this._renderer=S}}},u.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.FibSpeedResistanceFanPaneView=u},"y/56":function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("aB9a"),a=i("Zy3/"),o=i("vq8G"),s=i("VdBB"),l=i("f6yo"),h=i("jFln"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._data=null,t}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e){
if(null===this._data)return null;var t=this._data.point,i=t.x,r=t.y;return e.x<i||e.x>i+20||e.y<r-22||e.y>r?null:new s.HitTestResult(s.HitTestResult.MOVEPOINT)},t.prototype.doesIntersectWithBox=function(e){return null!==this._data&&Object(l.pointInBox)(this._data.point,e)},t.prototype._drawImpl=function(e){null!==this._data&&(e.save(),e.translate(Math.round(this._data.point.x)-.5,Math.round(this._data.point.y-22)-.5),e.fillStyle="#434651",Object(h.drawRoundRect)(e,0,0,2,22,1),e.fill(),e.fillStyle=this._data.color,e.beginPath(),e.moveTo(6.87,0),e.bezierCurveTo(5.62,0,4.46,.23,3.32,.69),e.bezierCurveTo(3.26,.71,3.2,.75,3.15,.8),e.bezierCurveTo(3.06,.89,3,1.02,3,1.16),e.lineTo(3,1.19),e.lineTo(3,12.5),e.bezierCurveTo(3,12.8,3.3,13.02,3.59,12.93),e.bezierCurveTo(4.61,12.64,5.94,12.44,6.87,12.44),e.bezierCurveTo(8.5,12.44,10.09,12.83,11.63,13.21),e.bezierCurveTo(13.19,13.6,14.79,14,16.45,14),e.bezierCurveTo(17.59,14,18.65,13.81,19.69,13.43),e.bezierCurveTo(19.88,13.36,20,13.18,20,12.98),e.lineTo(20,1.19),e.bezierCurveTo(20,1.06,19.83,.93,19.66,.99),e.bezierCurveTo(18.63,1.38,17.58,1.56,16.45,1.56),e.bezierCurveTo(14.82,1.56,13.23,1.17,11.69,.79),e.bezierCurveTo(10.14,.4,8.53,0,6.87,0),e.closePath(),e.fill(),e.restore())},t}(i("cPgM").ScaledPaneRenderer);i.d(t,"FlagMarkPaneView",(function(){return c}));var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._flagMarkRenderer=new d,t._renderer=null,t._anchorsOffset=null,t}return Object(r.c)(t,e),t.prototype.setAnchors=function(e){this._anchorsOffset=e},t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){if(e.prototype._updateImpl.call(this),this._renderer=null,1===this._points.length){this._flagMarkRenderer.setData({point:this._points[0],color:this._getSource().properties().childs().flagColor.value()});var t=this._getModel();this._renderer=new a.CompositeRenderer,this._renderer.append(this._flagMarkRenderer);var i=[this._anchorsOffset?this._points[0].add(this._anchorsOffset):this._points[0].clone()];this._renderer.append(new o.SelectionRenderer({points:i,bgColors:this._lineAnchorColors(i),visible:this.areAnchorsVisible(),barSpacing:t.timeScale().barSpacing(),hittestResult:s.HitTestResult.MOVEPOINT}))}},t}(n.LineSourcePaneView)}}]); if(null===this._data)return null;var t=this._data.point,i=t.x,r=t.y;return e.x<i||e.x>i+20||e.y<r-22||e.y>r?null:new s.HitTestResult(s.HitTestResult.MOVEPOINT)},t.prototype.doesIntersectWithBox=function(e){return null!==this._data&&Object(l.pointInBox)(this._data.point,e)},t.prototype._drawImpl=function(e){null!==this._data&&(e.save(),e.translate(Math.round(this._data.point.x)-.5,Math.round(this._data.point.y-22)-.5),e.fillStyle="#434651",Object(h.drawRoundRect)(e,0,0,2,22,1),e.fill(),e.fillStyle=this._data.color,e.beginPath(),e.moveTo(6.87,0),e.bezierCurveTo(5.62,0,4.46,.23,3.32,.69),e.bezierCurveTo(3.26,.71,3.2,.75,3.15,.8),e.bezierCurveTo(3.06,.89,3,1.02,3,1.16),e.lineTo(3,1.19),e.lineTo(3,12.5),e.bezierCurveTo(3,12.8,3.3,13.02,3.59,12.93),e.bezierCurveTo(4.61,12.64,5.94,12.44,6.87,12.44),e.bezierCurveTo(8.5,12.44,10.09,12.83,11.63,13.21),e.bezierCurveTo(13.19,13.6,14.79,14,16.45,14),e.bezierCurveTo(17.59,14,18.65,13.81,19.69,13.43),e.bezierCurveTo(19.88,13.36,20,13.18,20,12.98),e.lineTo(20,1.19),e.bezierCurveTo(20,1.06,19.83,.93,19.66,.99),e.bezierCurveTo(18.63,1.38,17.58,1.56,16.45,1.56),e.bezierCurveTo(14.82,1.56,13.23,1.17,11.69,.79),e.bezierCurveTo(10.14,.4,8.53,0,6.87,0),e.closePath(),e.fill(),e.restore())},t}(i("cPgM").ScaledPaneRenderer);i.d(t,"FlagMarkPaneView",(function(){return c}));var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._flagMarkRenderer=new d,t._renderer=null,t._anchorsOffset=null,t}return Object(r.c)(t,e),t.prototype.setAnchors=function(e){this._anchorsOffset=e},t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){if(e.prototype._updateImpl.call(this),this._renderer=null,1===this._points.length){this._flagMarkRenderer.setData({point:this._points[0],color:this._getSource().properties().childs().flagColor.value()});var t=this._getModel();this._renderer=new a.CompositeRenderer,this._renderer.append(this._flagMarkRenderer);var i=[this._anchorsOffset?this._points[0].add(this._anchorsOffset):this._points[0].clone()];this._renderer.append(new o.SelectionRenderer({points:i,bgColors:this._lineAnchorColors(i),visible:this.areAnchorsVisible(),barSpacing:t.timeScale().barSpacing(),hittestResult:s.HitTestResult.MOVEPOINT}))}},t}(n.LineSourcePaneView)}}]);

View File

@@ -2,5 +2,5 @@
75:"a18f9c5574042edccb0c",76:"8b955329496da7d36718",77:"c2f762ec24ba1279c464",78:"764fc3f71f5324ce7293",79:"17abe3e8dce352c1b3ab",80:"38244b86bc9840075bb5",81:"430b6fd4ee5eb09a4566",82:"7f8e58d310a50057ccf6",83:"8add9e22bb9dfb7c8aad",84:"533a21e5886f7b8d232a",85:"ca2cc06c230c1c63e7c8",86:"b87d617cc897f663442c",87:"09f8767750ff28ef4979",88:"3259d48ee3e8c45a291b",89:"0add1f62c82866a2d5f7",90:"ee9032b7dbf988aeda7c",91:"eb69a67796d2aa2e3a38",92:"3f98f1eb055238a52282",93:"9f4af1b4b96c0ab704be",94:"e9a6bec06ee11d2c2d4a",95:"8f574331c5f7254e658c",96:"ce3193491dd785bd0aea",97:"cc1ebe280e7f1c658409",98:"b58f53d578fc65c1d1e0",99:"26d22fe672825cc3e1c7",100:"325b9405f45d6fda33a6","general-property-page":"31d6cfe0d16ae931b73c","study-property-pages-with-definitions":"31d6cfe0d16ae931b73c","lt-property-pages-with-definitions":"31d6cfe0d16ae931b73c",editobjectdialog:"31d6cfe0d16ae931b73c","ds-property-pages":"31d6cfe0d16ae931b73c",symbolsearch:"31d6cfe0d16ae931b73c","change-interval-dialog":"31d6cfe0d16ae931b73c","line-tools-icons":"31d6cfe0d16ae931b73c","floating-toolbars":"31d6cfe0d16ae931b73c","chart-widget-gui":"31d6cfe0d16ae931b73c","dialogs-core":"9db9c82fc6dd9472e2cc","create-dialog":"31d6cfe0d16ae931b73c","add-compare-dialog":"31d6cfe0d16ae931b73c","export-data":"31d6cfe0d16ae931b73c","lt-pane-views":"31d6cfe0d16ae931b73c",react:"31d6cfe0d16ae931b73c","symbol-info-dialog-impl":"31d6cfe0d16ae931b73c","general-chart-properties-dialog":"31d6cfe0d16ae931b73c","new-edit-object-dialog":"31d6cfe0d16ae931b73c","new-confirm-inputs-dialog":"31d6cfe0d16ae931b73c","study-market":"31d6cfe0d16ae931b73c","study-template-dialog":"31d6cfe0d16ae931b73c","simple-dialog":"31d6cfe0d16ae931b73c","go-to-date-dialog-impl":"31d6cfe0d16ae931b73c","chart-bottom-toolbar":"31d6cfe0d16ae931b73c","currency-label-menu":"31d6cfe0d16ae931b73c","restricted-toolset":"31d6cfe0d16ae931b73c","drawing-toolbar":"31d6cfe0d16ae931b73c","take-chart-image-dialog-impl":"31d6cfe0d16ae931b73c","header-toolbar":"31d6cfe0d16ae931b73c","context-menu-renderer":"31d6cfe0d16ae931b73c","chart-event-hint":"31d6cfe0d16ae931b73c",redux:"31d6cfe0d16ae931b73c","load-chart-dialog":"31d6cfe0d16ae931b73c","source-properties-editor":"31d6cfe0d16ae931b73c","object-tree-dialog":"31d6cfe0d16ae931b73c","series-pane-views":"31d6cfe0d16ae931b73c","study-pane-views":"31d6cfe0d16ae931b73c","lazy-jquery-ui":"31d6cfe0d16ae931b73c",hammerjs:"31d6cfe0d16ae931b73c","full-tooltips-popup":"31d6cfe0d16ae931b73c","lazy-velocity":"31d6cfe0d16ae931b73c","show-theme-save-dialog":"31d6cfe0d16ae931b73c","custom-intervals-add-dialog":"31d6cfe0d16ae931b73c",clipboard:"31d6cfe0d16ae931b73c","manage-drawings-dialog":"31d6cfe0d16ae931b73c","series-icons-map":"31d6cfe0d16ae931b73c"}[e]+("rtl"===document.dir?".rtl.css":".css"),f=o.p+c,b=document.getElementsByTagName("link"),r=0;r<b.length;r++){var i=(l=b[r]).getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(i===c||i===f))return a()}var n=document.getElementsByTagName("style");for(r=0;r<n.length;r++){var l 75:"a18f9c5574042edccb0c",76:"8b955329496da7d36718",77:"c2f762ec24ba1279c464",78:"764fc3f71f5324ce7293",79:"17abe3e8dce352c1b3ab",80:"38244b86bc9840075bb5",81:"430b6fd4ee5eb09a4566",82:"7f8e58d310a50057ccf6",83:"8add9e22bb9dfb7c8aad",84:"533a21e5886f7b8d232a",85:"ca2cc06c230c1c63e7c8",86:"b87d617cc897f663442c",87:"09f8767750ff28ef4979",88:"3259d48ee3e8c45a291b",89:"0add1f62c82866a2d5f7",90:"ee9032b7dbf988aeda7c",91:"eb69a67796d2aa2e3a38",92:"3f98f1eb055238a52282",93:"9f4af1b4b96c0ab704be",94:"e9a6bec06ee11d2c2d4a",95:"8f574331c5f7254e658c",96:"ce3193491dd785bd0aea",97:"cc1ebe280e7f1c658409",98:"b58f53d578fc65c1d1e0",99:"26d22fe672825cc3e1c7",100:"325b9405f45d6fda33a6","general-property-page":"31d6cfe0d16ae931b73c","study-property-pages-with-definitions":"31d6cfe0d16ae931b73c","lt-property-pages-with-definitions":"31d6cfe0d16ae931b73c",editobjectdialog:"31d6cfe0d16ae931b73c","ds-property-pages":"31d6cfe0d16ae931b73c",symbolsearch:"31d6cfe0d16ae931b73c","change-interval-dialog":"31d6cfe0d16ae931b73c","line-tools-icons":"31d6cfe0d16ae931b73c","floating-toolbars":"31d6cfe0d16ae931b73c","chart-widget-gui":"31d6cfe0d16ae931b73c","dialogs-core":"9db9c82fc6dd9472e2cc","create-dialog":"31d6cfe0d16ae931b73c","add-compare-dialog":"31d6cfe0d16ae931b73c","export-data":"31d6cfe0d16ae931b73c","lt-pane-views":"31d6cfe0d16ae931b73c",react:"31d6cfe0d16ae931b73c","symbol-info-dialog-impl":"31d6cfe0d16ae931b73c","general-chart-properties-dialog":"31d6cfe0d16ae931b73c","new-edit-object-dialog":"31d6cfe0d16ae931b73c","new-confirm-inputs-dialog":"31d6cfe0d16ae931b73c","study-market":"31d6cfe0d16ae931b73c","study-template-dialog":"31d6cfe0d16ae931b73c","simple-dialog":"31d6cfe0d16ae931b73c","go-to-date-dialog-impl":"31d6cfe0d16ae931b73c","chart-bottom-toolbar":"31d6cfe0d16ae931b73c","currency-label-menu":"31d6cfe0d16ae931b73c","restricted-toolset":"31d6cfe0d16ae931b73c","drawing-toolbar":"31d6cfe0d16ae931b73c","take-chart-image-dialog-impl":"31d6cfe0d16ae931b73c","header-toolbar":"31d6cfe0d16ae931b73c","context-menu-renderer":"31d6cfe0d16ae931b73c","chart-event-hint":"31d6cfe0d16ae931b73c",redux:"31d6cfe0d16ae931b73c","load-chart-dialog":"31d6cfe0d16ae931b73c","source-properties-editor":"31d6cfe0d16ae931b73c","object-tree-dialog":"31d6cfe0d16ae931b73c","series-pane-views":"31d6cfe0d16ae931b73c","study-pane-views":"31d6cfe0d16ae931b73c","lazy-jquery-ui":"31d6cfe0d16ae931b73c",hammerjs:"31d6cfe0d16ae931b73c","full-tooltips-popup":"31d6cfe0d16ae931b73c","lazy-velocity":"31d6cfe0d16ae931b73c","show-theme-save-dialog":"31d6cfe0d16ae931b73c","custom-intervals-add-dialog":"31d6cfe0d16ae931b73c",clipboard:"31d6cfe0d16ae931b73c","manage-drawings-dialog":"31d6cfe0d16ae931b73c","series-icons-map":"31d6cfe0d16ae931b73c"}[e]+("rtl"===document.dir?".rtl.css":".css"),f=o.p+c,b=document.getElementsByTagName("link"),r=0;r<b.length;r++){var i=(l=b[r]).getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(i===c||i===f))return a()}var n=document.getElementsByTagName("style");for(r=0;r<n.length;r++){var l
;if((i=(l=n[r]).getAttribute("data-href"))===c||i===f)return a()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=a,s.onerror=function(a){var c=a&&a.target&&a.target.src||f,b=new Error("Loading CSS chunk "+e+" failed.\n("+c+")");b.code="CSS_CHUNK_LOAD_FAILED",b.request=c,delete t[e],s.parentNode.removeChild(s),d(b)},s.href=f,document.getElementsByTagName("head")[0].appendChild(s)})).then((function(){t[e]=0})));var d=f[e];if(0!==d&&!{1:1,2:1,5:1,6:1,7:1,9:1,10:1,11:1,12:1,15:1,16:1,19:1,20:1,21:1,25:1,26:1,27:1,28:1,29:1,31:1,33:1,34:1,35:1,36:1,41:1,43:1,44:1,45:1,46:1,47:1,48:1,53:1,57:1,58:1,61:1,62:1,63:1,64:1,65:1,66:1,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:1,75:1,76:1,77:1,78:1,79:1,80:1,81:1,82:1,83:1,84:1,85:1,86:1,87:1,88:1,89:1,90:1,91:1,92:1,93:1,94:1,95:1,96:1,97:1,98:1,99:1,100:1}[e])if(d)a.push(d[2]);else{var c=new Promise((function(a,c){d=f[e]=[a,c]}));a.push(d[2]=c);var b,r=document.createElement("script");r.charset="utf-8",r.timeout=120,o.nc&&r.setAttribute("nonce",o.nc),r.src=function(e){return o.p+""+({"general-property-page":"general-property-page","study-property-pages-with-definitions":"study-property-pages-with-definitions","lt-property-pages-with-definitions":"lt-property-pages-with-definitions",editobjectdialog:"editobjectdialog","ds-property-pages":"ds-property-pages",symbolsearch:"symbolsearch","change-interval-dialog":"change-interval-dialog","line-tools-icons":"line-tools-icons","floating-toolbars":"floating-toolbars","chart-widget-gui":"chart-widget-gui","dialogs-core":"dialogs-core","create-dialog":"create-dialog","add-compare-dialog":"add-compare-dialog","export-data":"export-data","lt-pane-views":"lt-pane-views",react:"react","symbol-info-dialog-impl":"symbol-info-dialog-impl","general-chart-properties-dialog":"general-chart-properties-dialog","new-edit-object-dialog":"new-edit-object-dialog","new-confirm-inputs-dialog":"new-confirm-inputs-dialog","study-market":"study-market","study-template-dialog":"study-template-dialog","simple-dialog":"simple-dialog","go-to-date-dialog-impl":"go-to-date-dialog-impl","chart-bottom-toolbar":"chart-bottom-toolbar","currency-label-menu":"currency-label-menu","restricted-toolset":"restricted-toolset","drawing-toolbar":"drawing-toolbar","take-chart-image-dialog-impl":"take-chart-image-dialog-impl","header-toolbar":"header-toolbar","context-menu-renderer":"context-menu-renderer","chart-event-hint":"chart-event-hint",redux:"redux","load-chart-dialog":"load-chart-dialog","source-properties-editor":"source-properties-editor","object-tree-dialog":"object-tree-dialog","series-pane-views":"series-pane-views","study-pane-views":"study-pane-views","lazy-jquery-ui":"lazy-jquery-ui",hammerjs:"hammerjs","full-tooltips-popup":"full-tooltips-popup","lazy-velocity":"lazy-velocity","show-theme-save-dialog":"show-theme-save-dialog","custom-intervals-add-dialog":"custom-intervals-add-dialog",clipboard:"clipboard","manage-drawings-dialog":"manage-drawings-dialog","series-icons-map":"series-icons-map"}[e]||e)+"."+{0:"c51b65452dbabc9c25f1", ;if((i=(l=n[r]).getAttribute("data-href"))===c||i===f)return a()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=a,s.onerror=function(a){var c=a&&a.target&&a.target.src||f,b=new Error("Loading CSS chunk "+e+" failed.\n("+c+")");b.code="CSS_CHUNK_LOAD_FAILED",b.request=c,delete t[e],s.parentNode.removeChild(s),d(b)},s.href=f,document.getElementsByTagName("head")[0].appendChild(s)})).then((function(){t[e]=0})));var d=f[e];if(0!==d&&!{1:1,2:1,5:1,6:1,7:1,9:1,10:1,11:1,12:1,15:1,16:1,19:1,20:1,21:1,25:1,26:1,27:1,28:1,29:1,31:1,33:1,34:1,35:1,36:1,41:1,43:1,44:1,45:1,46:1,47:1,48:1,53:1,57:1,58:1,61:1,62:1,63:1,64:1,65:1,66:1,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:1,75:1,76:1,77:1,78:1,79:1,80:1,81:1,82:1,83:1,84:1,85:1,86:1,87:1,88:1,89:1,90:1,91:1,92:1,93:1,94:1,95:1,96:1,97:1,98:1,99:1,100:1}[e])if(d)a.push(d[2]);else{var c=new Promise((function(a,c){d=f[e]=[a,c]}));a.push(d[2]=c);var b,r=document.createElement("script");r.charset="utf-8",r.timeout=120,o.nc&&r.setAttribute("nonce",o.nc),r.src=function(e){return o.p+""+({"general-property-page":"general-property-page","study-property-pages-with-definitions":"study-property-pages-with-definitions","lt-property-pages-with-definitions":"lt-property-pages-with-definitions",editobjectdialog:"editobjectdialog","ds-property-pages":"ds-property-pages",symbolsearch:"symbolsearch","change-interval-dialog":"change-interval-dialog","line-tools-icons":"line-tools-icons","floating-toolbars":"floating-toolbars","chart-widget-gui":"chart-widget-gui","dialogs-core":"dialogs-core","create-dialog":"create-dialog","add-compare-dialog":"add-compare-dialog","export-data":"export-data","lt-pane-views":"lt-pane-views",react:"react","symbol-info-dialog-impl":"symbol-info-dialog-impl","general-chart-properties-dialog":"general-chart-properties-dialog","new-edit-object-dialog":"new-edit-object-dialog","new-confirm-inputs-dialog":"new-confirm-inputs-dialog","study-market":"study-market","study-template-dialog":"study-template-dialog","simple-dialog":"simple-dialog","go-to-date-dialog-impl":"go-to-date-dialog-impl","chart-bottom-toolbar":"chart-bottom-toolbar","currency-label-menu":"currency-label-menu","restricted-toolset":"restricted-toolset","drawing-toolbar":"drawing-toolbar","take-chart-image-dialog-impl":"take-chart-image-dialog-impl","header-toolbar":"header-toolbar","context-menu-renderer":"context-menu-renderer","chart-event-hint":"chart-event-hint",redux:"redux","load-chart-dialog":"load-chart-dialog","source-properties-editor":"source-properties-editor","object-tree-dialog":"object-tree-dialog","series-pane-views":"series-pane-views","study-pane-views":"study-pane-views","lazy-jquery-ui":"lazy-jquery-ui",hammerjs:"hammerjs","full-tooltips-popup":"full-tooltips-popup","lazy-velocity":"lazy-velocity","show-theme-save-dialog":"show-theme-save-dialog","custom-intervals-add-dialog":"custom-intervals-add-dialog",clipboard:"clipboard","manage-drawings-dialog":"manage-drawings-dialog","series-icons-map":"series-icons-map"}[e]||e)+"."+{0:"c51b65452dbabc9c25f1",
1:"b288a641198a0f397ac3",2:"28f081c808a9558ca34f",3:"b623d0646c03530f1105",4:"4adf1cf209602d27db55",5:"c509c0cc19ec66d5c4fa",6:"fcc6fec60acc5d922a67",7:"ed2052c5b657f5d653a5",8:"3ce79a9e0dd5888c97b9",9:"c893b34fedaa1aaead69",10:"f71cece1b9ed270fa72b",11:"6ba2ee83530adf0eda84",12:"51460a349f8063ca0fc9",13:"26df2ab4d58291d7d0db",14:"8a1c09d0cc046ee352ea",15:"b2cd90ad262ace3738d5",16:"ce20b7ac96647a3f8db3",17:"812967a3f6bf3ba37d40",18:"0e2d5b879751afe5175f",19:"d82fd24c19b8b5b0168c",20:"ac1df5ba118b3c643984",21:"9864c695bca01fd6a832",22:"5e99faa1b95838e65246",23:"0048763e760dd9c09f28",24:"3b5295668ac3a4340170",25:"65a26b3cf9d34008ce74",26:"fec5a763f673fd4b61da",27:"1315fbf8ca84500bff60",28:"4ff6cc36779a613b5a8a",29:"4c923634e8711048f68e",30:"36ec5a509607267bd818",31:"c031c34eff81df66ef7c",32:"1fd23ee9324c9649d92e",33:"adbdf95fb83198a65aa6",34:"63b784d91d939bfbf239",35:"8fcd38d8bd520da19f02",36:"50b67a4f1f492f8621d6",37:"39f9db9142205c486897",38:"40fb00ae9a08f9dd5349",39:"a6130664dae0d4fc80ab",40:"9949ef6da731c6a83385",41:"7194ede4f533ae00748b",42:"63484ca26d29678c6f2d",43:"d0fb62d739ece98891c1",44:"41a84319e3fd92e98c79",45:"11bad41d3b9230cd2771",46:"6614f1d452109bd0ef6a",47:"8b5d822739a0f401220f",48:"60defb1a29bfc2a642c5",49:"145e6fc62a3fd24a376d",50:"2a1814f78e291ad8914d",51:"534960ff72639f0b05ce",52:"03392a9d764c54226cc8",53:"d9fb9c76030bff678c62",54:"cc43bf9282bd82379b96",55:"4d271142585f592d0c26",56:"f01357fbc83a4835d9e1",57:"09075183cf8651c76e8a",58:"ac20449ddbb7f37874cc",59:"c2ed5d36f77360f27b6d",60:"df2891bf011c68732c8b",61:"fb29f65342062c04fe5b",62:"40b2f091122109aa2e58",63:"a4646519c7b7cc08d52e",64:"db4e3db232312db40830",65:"837b4c0cde707c4ed481",66:"6a1a05ff6258f0d9c0b5",67:"2cf5dadaebf6858d8623",68:"b36f4cddc110cd1477c0",69:"7d3206a8fc66bf9d894d",70:"50a6d9aa8157538b5bd6",71:"0647b6ab152cbbfe213f",72:"4b79d29d2c0e13ea94c5",73:"801f0de9b068229d1755",74:"2521feec78da95ba2621",75:"8bb207814ad927d3c48d",76:"4db2074aaa017b28c166",77:"8587c41bdb5c9a5ff60c",78:"0836c0a10065469ef826",79:"d0fe3aa80138c7afb9d7",80:"c12bb8ac041c5c08c24e",81:"ade0deec07870e8797be",82:"b5b1ff09fec0a31d9994",83:"49cdafc9d9d9ae09e012",84:"d0bc6b5ed24222952735",85:"bf8b8486318ff980a873",86:"f3b65677452be8f13552",87:"f1667756b87758e62352",88:"3566ae24d07b0a360ea7",89:"38c1dbb0153001054e99",90:"d2b7abe9dbef67c1ac2f",91:"483a8d7dc828f742da6e",92:"cb54431056b47772623a",93:"397809bee4d08b92d346",94:"981d08217c30a7c30653",95:"5f5f61714eed37a54f31",96:"21768dcd59bb782e1582",97:"980a538b52d89163fa5b",98:"2c086de4934c319951b5",99:"ddd3a12ae5dd02879b57",100:"53362ee86ad359a596b6","general-property-page":"c6ebbf6b39755edf1a26","study-property-pages-with-definitions":"803356ca3b9a74b7da72","lt-property-pages-with-definitions":"7973568e8f5324791942",editobjectdialog:"345ceed6a57a262d23dc","ds-property-pages":"de11a7cf49bbaf631d95",symbolsearch:"21be776b6eb3e5dd4087","change-interval-dialog":"acea3a9e262520a749cc","line-tools-icons":"b7202bf0cb964a3a2881","floating-toolbars":"8c93d6bcf28bc158d850","chart-widget-gui":"4e5320634881c9448336", 1:"b288a641198a0f397ac3",2:"28f081c808a9558ca34f",3:"b623d0646c03530f1105",4:"4adf1cf209602d27db55",5:"c509c0cc19ec66d5c4fa",6:"fcc6fec60acc5d922a67",7:"ed2052c5b657f5d653a5",8:"3ce79a9e0dd5888c97b9",9:"c893b34fedaa1aaead69",10:"f71cece1b9ed270fa72b",11:"6ba2ee83530adf0eda84",12:"51460a349f8063ca0fc9",13:"26df2ab4d58291d7d0db",14:"8a1c09d0cc046ee352ea",15:"b2cd90ad262ace3738d5",16:"ce20b7ac96647a3f8db3",17:"812967a3f6bf3ba37d40",18:"0e2d5b879751afe5175f",19:"d82fd24c19b8b5b0168c",20:"ac1df5ba118b3c643984",21:"9864c695bca01fd6a832",22:"5e99faa1b95838e65246",23:"0048763e760dd9c09f28",24:"3b5295668ac3a4340170",25:"65a26b3cf9d34008ce74",26:"fec5a763f673fd4b61da",27:"1315fbf8ca84500bff60",28:"4ff6cc36779a613b5a8a",29:"4c923634e8711048f68e",30:"36ec5a509607267bd818",31:"c031c34eff81df66ef7c",32:"1fd23ee9324c9649d92e",33:"adbdf95fb83198a65aa6",34:"63b784d91d939bfbf239",35:"8fcd38d8bd520da19f02",36:"50b67a4f1f492f8621d6",37:"39f9db9142205c486897",38:"40fb00ae9a08f9dd5349",39:"a6130664dae0d4fc80ab",40:"9949ef6da731c6a83385",41:"7194ede4f533ae00748b",42:"63484ca26d29678c6f2d",43:"d0fb62d739ece98891c1",44:"41a84319e3fd92e98c79",45:"11bad41d3b9230cd2771",46:"6614f1d452109bd0ef6a",47:"8b5d822739a0f401220f",48:"60defb1a29bfc2a642c5",49:"145e6fc62a3fd24a376d",50:"2a1814f78e291ad8914d",51:"534960ff72639f0b05ce",52:"03392a9d764c54226cc8",53:"d9fb9c76030bff678c62",54:"cc43bf9282bd82379b96",55:"4d271142585f592d0c26",56:"f01357fbc83a4835d9e1",57:"09075183cf8651c76e8a",58:"ac20449ddbb7f37874cc",59:"c2ed5d36f77360f27b6d",60:"df2891bf011c68732c8b",61:"fb29f65342062c04fe5b",62:"40b2f091122109aa2e58",63:"a4646519c7b7cc08d52e",64:"db4e3db232312db40830",65:"837b4c0cde707c4ed481",66:"6a1a05ff6258f0d9c0b5",67:"2cf5dadaebf6858d8623",68:"b36f4cddc110cd1477c0",69:"7d3206a8fc66bf9d894d",70:"50a6d9aa8157538b5bd6",71:"0647b6ab152cbbfe213f",72:"4b79d29d2c0e13ea94c5",73:"801f0de9b068229d1755",74:"2521feec78da95ba2621",75:"8bb207814ad927d3c48d",76:"4db2074aaa017b28c166",77:"8587c41bdb5c9a5ff60c",78:"0836c0a10065469ef826",79:"d0fe3aa80138c7afb9d7",80:"c12bb8ac041c5c08c24e",81:"ade0deec07870e8797be",82:"b5b1ff09fec0a31d9994",83:"49cdafc9d9d9ae09e012",84:"d0bc6b5ed24222952735",85:"bf8b8486318ff980a873",86:"f3b65677452be8f13552",87:"f1667756b87758e62352",88:"3566ae24d07b0a360ea7",89:"38c1dbb0153001054e99",90:"d2b7abe9dbef67c1ac2f",91:"483a8d7dc828f742da6e",92:"cb54431056b47772623a",93:"397809bee4d08b92d346",94:"981d08217c30a7c30653",95:"5f5f61714eed37a54f31",96:"21768dcd59bb782e1582",97:"980a538b52d89163fa5b",98:"2c086de4934c319951b5",99:"ddd3a12ae5dd02879b57",100:"53362ee86ad359a596b6","general-property-page":"c6ebbf6b39755edf1a26","study-property-pages-with-definitions":"803356ca3b9a74b7da72","lt-property-pages-with-definitions":"7973568e8f5324791942",editobjectdialog:"345ceed6a57a262d23dc","ds-property-pages":"de11a7cf49bbaf631d95",symbolsearch:"21be776b6eb3e5dd4087","change-interval-dialog":"acea3a9e262520a749cc","line-tools-icons":"b7202bf0cb964a3a2881","floating-toolbars":"8c93d6bcf28bc158d850","chart-widget-gui":"4e5320634881c9448336",
"dialogs-core":"e38859b0949bd10b7f09","create-dialog":"ad987459f1f3e4a16faa","add-compare-dialog":"a581e24a8887be371793","export-data":"d7d4f02b4d586230f673","lt-pane-views":"9c47c255761757c6fd03",react:"aacf0bcbee216278af76","symbol-info-dialog-impl":"14dd926290a6921e5afb","general-chart-properties-dialog":"7eeff981b93b2f39a5ad","new-edit-object-dialog":"b61885e9e9239e869ac8","new-confirm-inputs-dialog":"accc796e3312b8e73941","study-market":"74d3711522bad571b9e0","study-template-dialog":"99a59d3d0e93d2745694","simple-dialog":"60546930528a419a157b","go-to-date-dialog-impl":"250a661e3dac87c233c9","chart-bottom-toolbar":"cda64ea7fc816a874774","currency-label-menu":"331fbca389fa984bc7e1","restricted-toolset":"073389147986701b4bcf","drawing-toolbar":"0826f776d30b0764b5b9","take-chart-image-dialog-impl":"4ef0571bf678dc8a066a","header-toolbar":"4fd903fadcdd081ad879","context-menu-renderer":"aa746a31f064f280158a","chart-event-hint":"3efa961f8c64d2df9d35",redux:"68330eeba49586b58519","load-chart-dialog":"69bd22f3b856a2183ffc","source-properties-editor":"fa7b9bb7d6d02bc9e12a","object-tree-dialog":"ebe748a34f1de01a65ca","series-pane-views":"9ae3734ef4c977e2abd8","study-pane-views":"663d848d1f862c7722fb","lazy-jquery-ui":"249e13605f8c71ad218d",hammerjs:"301c6434a50c89e51f83","full-tooltips-popup":"4f18578449a7ae3bc3a6","lazy-velocity":"90ed6d5911c9f69dd4d3","show-theme-save-dialog":"4c32f91c3866201ca968","custom-intervals-add-dialog":"e5f82cb6a33a4fceb970",clipboard:"995cff27aef8666b7892","manage-drawings-dialog":"5728a003305f935bc342","series-icons-map":"44b038e5d25e419aed88"}[e]+".js"}(e);var i=new Error;b=function(a){r.onerror=r.onload=null,clearTimeout(n);var d=f[e];if(0!==d){if(d){var c=a&&("load"===a.type?"missing":a.type),t=a&&a.target&&a.target.src;i.message="Loading chunk "+e+" failed.\n("+c+": "+t+")",i.name="ChunkLoadError",i.type=c,i.request=t,d[1](i)}f[e]=void 0}};var n=setTimeout((function(){b({type:"timeout",target:r})}),12e4);r.onerror=r.onload=b,document.head.appendChild(r)}return Promise.all(a)},o.m=e,o.c=c,o.d=function(e,a,d){o.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:d})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,a){if(1&a&&(e=o(e)),8&a)return e;if(4&a&&"object"==typeof e&&e&&e.__esModule)return e;var d=Object.create(null);if(o.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:e}),2&a&&"string"!=typeof e)for(var c in e)o.d(d,c,function(a){return e[a]}.bind(null,c));return d},o.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(a,"a",a),a},o.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},o.p="bundles/",o.p=window.WEBPACK_PUBLIC_PATH||o.p;var r=o.e,i=Object.create(null);o.e=function(e){if(!i[e]){i[e]=function e(a,d){return r(a).catch((function(){return new Promise((function(c){var t=function(){window.removeEventListener("online",t,!1), "dialogs-core":"e38859b0949bd10b7f09","create-dialog":"ad987459f1f3e4a16faa","add-compare-dialog":"a581e24a8887be371793","export-data":"d7d4f02b4d586230f673","lt-pane-views":"7e5dac32ee7c5ae0cd9c",react:"aacf0bcbee216278af76","symbol-info-dialog-impl":"14dd926290a6921e5afb","general-chart-properties-dialog":"7eeff981b93b2f39a5ad","new-edit-object-dialog":"b61885e9e9239e869ac8","new-confirm-inputs-dialog":"accc796e3312b8e73941","study-market":"74d3711522bad571b9e0","study-template-dialog":"99a59d3d0e93d2745694","simple-dialog":"60546930528a419a157b","go-to-date-dialog-impl":"250a661e3dac87c233c9","chart-bottom-toolbar":"cda64ea7fc816a874774","currency-label-menu":"331fbca389fa984bc7e1","restricted-toolset":"073389147986701b4bcf","drawing-toolbar":"0826f776d30b0764b5b9","take-chart-image-dialog-impl":"4ef0571bf678dc8a066a","header-toolbar":"4fd903fadcdd081ad879","context-menu-renderer":"aa746a31f064f280158a","chart-event-hint":"3efa961f8c64d2df9d35",redux:"68330eeba49586b58519","load-chart-dialog":"69bd22f3b856a2183ffc","source-properties-editor":"fa7b9bb7d6d02bc9e12a","object-tree-dialog":"ebe748a34f1de01a65ca","series-pane-views":"9ae3734ef4c977e2abd8","study-pane-views":"663d848d1f862c7722fb","lazy-jquery-ui":"249e13605f8c71ad218d",hammerjs:"301c6434a50c89e51f83","full-tooltips-popup":"4f18578449a7ae3bc3a6","lazy-velocity":"90ed6d5911c9f69dd4d3","show-theme-save-dialog":"4c32f91c3866201ca968","custom-intervals-add-dialog":"e5f82cb6a33a4fceb970",clipboard:"995cff27aef8666b7892","manage-drawings-dialog":"5728a003305f935bc342","series-icons-map":"44b038e5d25e419aed88"}[e]+".js"}(e);var i=new Error;b=function(a){r.onerror=r.onload=null,clearTimeout(n);var d=f[e];if(0!==d){if(d){var c=a&&("load"===a.type?"missing":a.type),t=a&&a.target&&a.target.src;i.message="Loading chunk "+e+" failed.\n("+c+": "+t+")",i.name="ChunkLoadError",i.type=c,i.request=t,d[1](i)}f[e]=void 0}};var n=setTimeout((function(){b({type:"timeout",target:r})}),12e4);r.onerror=r.onload=b,document.head.appendChild(r)}return Promise.all(a)},o.m=e,o.c=c,o.d=function(e,a,d){o.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:d})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,a){if(1&a&&(e=o(e)),8&a)return e;if(4&a&&"object"==typeof e&&e&&e.__esModule)return e;var d=Object.create(null);if(o.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:e}),2&a&&"string"!=typeof e)for(var c in e)o.d(d,c,function(a){return e[a]}.bind(null,c));return d},o.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(a,"a",a),a},o.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},o.p="bundles/",o.p=window.WEBPACK_PUBLIC_PATH||o.p;var r=o.e,i=Object.create(null);o.e=function(e){if(!i[e]){i[e]=function e(a,d){return r(a).catch((function(){return new Promise((function(c){var t=function(){window.removeEventListener("online",t,!1),
!1===navigator.onLine?window.addEventListener("online",t,!1):c(d<2?e(a,d+1):r(a))};setTimeout(t,d*d*1e3)}))}))}(e,0);var a=function(){delete i[e]};i[e].then(a,a)}return i[e]},o.oe=function(e){throw console.error(e),e};var n=window.webpackJsonp=window.webpackJsonp||[],l=n.push.bind(n);n.push=a,n=n.slice();for(var s=0;s<n.length;s++)a(n[s]);var p=l;d()}([]); !1===navigator.onLine?window.addEventListener("online",t,!1):c(d<2?e(a,d+1):r(a))};setTimeout(t,d*d*1e3)}))}))}(e,0);var a=function(){delete i[e]};i[e].then(a,a)}return i[e]},o.oe=function(e){throw console.error(e),e};var n=window.webpackJsonp=window.webpackJsonp||[],l=n.push.bind(n);n.push=a,n=n.slice();for(var s=0;s<n.length;s++)a(n[s]);var p=l;d()}([]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{ {
"private": true, "private": true,
"description": "CL v19.030 (internal id f4b993ed @ 2021-06-10T11:03:14.501Z)", "description": "CL v19.031 (internal id f524baa5 @ 2021-06-14T09:55:41.738Z)",
"type": "module", "type": "module",
"main": "charting_library.cjs.js", "main": "charting_library.cjs.js",
"module": "charting_library.esm.js", "module": "charting_library.esm.js",