commit 2018-09-07 09:51:06.817032
Randomly clickable area on chart that redirects user to tradingview.com #3299
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -477,8 +477,8 @@ n=o.length-1;n>0;n--)e(o[n])&&e(o[n-1])&&o.splice(n,1);return o.length&&e(o[0])&
|
||||
t.position&&"top"===t.position?i.top.push(e):i.bottom.push(e)}})}}),i):i},o.prototype._timeAxisMenu=function(){if(this._chart.model().timeScale().isEmpty())return null;var t=this._chart.getTimeScale();return new S({text:window.t("Time Scale"),subActions:t.getContextMenuActions(),statName:"TimeScale"})},o.prototype.getDefaultPriceAxisWidget=function(){var t=this._state.defaultPriceScale();return t.isEmpty()?null:t===this._state.leftPriceScale?this.leftPriceAxisWidget():this.rightPriceAxisWidget()},o.prototype._priceAxisMenu=function(){var t=this.getDefaultPriceAxisWidget();return t?new S({text:window.t("Price Scale"),subActions:t.getContextMenuActions(),statName:"PriceScale"}):null},o.prototype._seriesContextMenu=function(t){var i,o,n,r,s,a=this._chart.actions(),l=t.properties().visible.value(),c=null;if(this._chart.readOnly())i=[l?a.seriesHide:this.createActionShow(t),new T,this.createActionShowCountdown(t),new T,this.createActionScaleLeft(t),this.createActionScaleRight(t),this.createActionNoScale(t)],e.enabled("countdown")||i.splice(3,1),c=C.createMenu(i);else{if(o=this._mergeContentMenuItems(t),n=[a.showSymbolInfoDialog,a.compare,l?a.seriesHide:this.createActionShow(t),this.createVisualOrderAction(t),new T,this.createActionShowCountdown(t),new T],e.enabled("countdown")||n.splice(5,2),e.enabled("compare_symbol")||n.splice(1,1),e.enabled("symbol_info")||n.splice(0,1),!this.chart().onWidget()&&e.enabled("show_chart_property_page")&&n.unshift(a.format),r=this.createActionLockScale(t),r&&n.push(r,new T),o.length>0){for(s=0;s<o.length;s++)n.push(o[s]);n.push(new T)}n.push(this.createActionScaleLeft(t),this.createActionScaleRight(t),this.createActionNoScale(t)),pro.hasPackage("mtp-mtpredictor")&&n.push(new T,this._createMTPredictorActions()),c=C.createMenu(n)}return c},o.prototype.toggleLockTimeAxis=function(t,e){var i,o,n;"boolean"!=typeof e&&(e=!x.lockTimeAxis().value()),e&&(i=this._chart.model().timeScale(),o=i.coordinateToIndex(t),n=i.points().roughTime(o),x.lockTimeAxisTime.setValue(n)),x.lockTimeAxis().setValue(e)},o.prototype._createLockTimeAxisAction=function(t){var e=new S({text:window.t("Lock Cursor In Time"),checkable:!0,statName:"ToggleLockCursorInTime"}),i=x.lockTimeAxis().value();return e.setChecked(i),e.callbacks().subscribe(null,this.toggleLockTimeAxis.bind(this,t.localX,!i)),e},o.prototype._createHVLineAction=function(t,e){e="vertical"===e&&"vertical"||"horizontal";var i=new S({text:"vertical"===e?window.t("Create Vertical Line"):window.t("Create Horizontal Line"),statName:"vertical"===e?"CreateVerticalLine":"CreateHorizontalLine"});return i.callbacks().subscribe(this,function(){var i=this._chart.model().timeScale().coordinateToIndex(t.localX),o=this._state.defaultPriceScale().coordinateToPrice(t.localY),n=this._chart.model().createLineTool(this._state,{index:i,price:o},"vertical"===e&&"LineToolVertLine"||"LineToolHorzLine");this._finishTool(n)}),i},o.prototype._createMTPredictorActions=function(){var t=this,e=function(e,i,o){var n=new S({text:e});return n.callbacks().subscribe(t,function(){
|
||||
var t,e,n=this._chart.model(),r=n.timeScale(),s=this._state.defaultPriceScale();r.isEmpty()||s.isEmpty()||(o?(t=s.coordinateToPrice(this._contextMenuY),e=Math.round(r.coordinateToIndex(this._contextMenuX)),n.createLineTool(this._state,{index:e,price:t},i)):x.tool.setValue(i))}),n};return new S({text:window.t("MTPredictor"),subActions:[e(window.t("Apply Manual Risk/Reward"),"LineStudyMtpRiskReward",!1),e(window.t("Apply Manual Decision Point"),"LineStudyMtpDecisionPoint",!0),e(window.t("Analyze Trade Setup"),"LineStudyMtpAnalysis",!0),new S({text:window.t("Apply Elliot Wave"),subActions:[e(window.t("Apply Elliot Wave Intermediate"),"LineStudyMtpElliotWaveMain",!0),e(window.t("Apply Elliot Wave Major"),"LineStudyMtpElliotWaveMajor",!0),e(window.t("Apply Elliot Wave Minor"),"LineStudyMtpElliotWaveMinor",!0)]}),new S({text:window.t("Apply WPT Up Wave"),subActions:[e(window.t("Up Wave 1 or A"),"LineStudyMtpUpWave1OrA",!1),e(window.t("Up Wave 2 or B"),"LineStudyMtpUpWave2OrB",!1),e(window.t("Up Wave C"),"LineStudyMtpUpWaveC",!1),e(window.t("Up Wave 3"),"LineStudyMtpUpWave3",!1),e(window.t("Up Wave 4"),"LineStudyMtpUpWave4",!1),e(window.t("Up Wave 5"),"LineStudyMtpUpWave5",!1)]}),new S({text:window.t("Apply WPT Down Wave"),subActions:[e(window.t("Down Wave 1 or A"),"LineStudyMtpDownWave1OrA",!1),e(window.t("Down Wave 2 or B"),"LineStudyMtpDownWave2OrB",!1),e(window.t("Down Wave C"),"LineStudyMtpDownWaveC",!1),e(window.t("Down Wave 3"),"LineStudyMtpDownWave3",!1),e(window.t("Down Wave 4"),"LineStudyMtpDownWave4",!1),e(window.t("Down Wave 5"),"LineStudyMtpDownWave5",!1)]})]})},o.prototype.createEarningsShow=function(t){var e=this._chart.model().mainSeries().properties().esdShowEarnings,i=new S({checkable:!0,text:window.t("Show Earnings"),enabled:!0,checked:e.value(),statName:"ToggleShowEarnings"});return i.callbacks().subscribe(this,function(t){this._chart.model().setProperty(e,t.checked,"Show Earnings")}),i},o.prototype.createDividendsShow=function(t){var e=this._chart.model().mainSeries().properties().esdShowDividends,i=new S({checkable:!0,text:window.t("Show Dividends"),enabled:!0,checked:e.value(),statName:"ToggleShowDividends"});return i.callbacks().subscribe(this,function(t){this._chart.model().setProperty(e,t.checked,"Show Dividends")}),i},o.prototype.createSplitsShow=function(t){var e=this._chart.model().mainSeries().properties().esdShowSplits,i=new S({checkable:!0,text:window.t("Show Splits"),enabled:!0,checked:e.value(),statName:"ToggleShowSplits"});return i.callbacks().subscribe(this,function(t){this._chart.model().setProperty(e,t.checked,"Show Splits")}),i},o.prototype._studyEsdContextMenu=function(t){var e=[];return this._chart.readOnly()||e.push(this.createDividendsShow(t),this.createSplitsShow(t),this.createEarningsShow(t)),C.createMenu(e)},o.prototype._studyContextMenu=function(t){var i,o,n,r,s,a=this._chart.actions(),l=t.properties().visible.value(),c=[];return t.userEditEnabled()?(i=this._chart,
|
||||
this._chart.readOnly()?c=[l?a.studyHide:this.createActionShow(t),new T,this.createActionScaleLeft(t),this.createActionScaleRight(t),this.createActionNoScale(t)]:(o=[],n=t.metaInfo(),n.pine&&(o=[a.viewSourceCode],a.viewSourceCode.setEnabled(!0),ScriptLib.isAuthToGetPineSourceCode(n.scriptIdPart,n.pine.version).done(function(t){t||a.viewSourceCode.setEnabled(!1)}).fail(function(t){N.logError("Failed isAuthToGetPineSourceCode, reason: "+t)})),c=[],e.enabled("study_on_study")&&t.canHaveChildren()&&c.push(this.createActionAddChildStudy(t)),e.enabled("property_pages")&&c.push(a.format),c=c.concat(o),c=c.concat([l?a.studyHide:this.createActionShow(t),this.createVisualOrderAction(t),new T]),r=this._mergeContentMenuItems(t),!r.length||t.properties().linkedToSeries&&t.properties().linkedToSeries.value()||(r.push(new T),c=c.concat(r)),c.push(this.createActionScaleLeft(t),this.createActionScaleRight(t),this.createActionNoScale(t),new T),e.enabled("datasource_copypaste")&&!t.isChildStudy()&&(s=new S({text:window.t("Copy"),shortcut:"Ctrl-C",statName:"Copy"}),s.callbacks().subscribe(null,function(){i.onAppClipboardCopy(t)}),c.push(s)),c.push(a.studyRemove)),C.createMenu(c)):C.createMenu(c)},o.prototype.createLineToolTemplateAction=function(t){var e,i,o,n,r,s=window.lineToolPropertiesToolbar.templatesList(),a=new S({text:window.t("Templates"),statName:"Templates"});return a.subActions||(a.subActions=[]),e=a.subActions,i=new S({text:window.t("Save As..."),statName:"SaveAs"}),i.callbacks().subscribe(this,function(){s.showSaveDialog(function(e){var i=JSON.stringify(t.template());s.saveTemplate(e,i)})}),e.push(i),o=new S({text:window.t("Apply Default"),statName:"ApplyDefault"}),o.callbacks().subscribe(this,function(){this._chart.model().restoreLineToolFactoryDefaults(t,"Load default drawing template"),window.lineToolPropertiesToolbar.onSourceChanged(t)}),e.push(o),n=$.Deferred(),s.templatesLoaded().then(function(){var t=s.getData(),e=[];0!==t.length&&e.push(new T),$.each(t,function(t,i){function o(t){return function(){var e=this.getTopLevelMenu();return e&&e.hide(),s.deleteAction(t),!0}}var n=new S({text:i,statName:"ApplyTemplate"});n.callbacks().subscribe(this,function(){s.loadTemplate(i)}),n.deleteButton={action:o(n.text)},e.push(n)}),n.resolve(e)}),r=new w(n),e.push(r),a},o.prototype._lineContextMenu=function(t){var n=[],r=this._chart,s=r.actions(),a=this;return new Promise(function(l){i.e(12).then(function(c){var h,u,d,p,_,f=i(1077).hasStylesPropertyPage;if(r.readOnly())n.push(s.lineHide);else if(t.userEditEnabled()&&(e.enabled("alerts")&&!a.chart().onWidget()&&t.hasAlert.value()&&n.push(a._createEditAlertDrawingAction(t)),e.enabled("property_pages")&&f(t,r.model())&&n.push(s.format),n.push(s.paneObjectTree),e.enabled("charting_library_base")||n.push(a.createLineToolTemplateAction(t)),n.push(a.createVisualOrderAction(t),new T,s.lineHide,s.lineToggleLock),t.properties().clonable&&t.properties().clonable.value()&&(h=new S({text:window.t("Clone"),callbackContext:{target:t},shortcut:"Ctrl+Drag",doNotBindShortcut:!0,statName:"Clone"}),
|
||||
h.callbacks().subscribe(a,o.prototype.cloneLineTool.bind(a,t,!1)),n.push(h)),e.enabled("datasource_copypaste")&&!t.properties().blockCopying&&(u=new S({text:window.t("Copy"),shortcut:"Ctrl-C",statName:"Copy"}),u.callbacks().subscribe(null,function(){r.onAppClipboardCopy(t)}),n.push(u)),e.enabled("support_multicharts")&&(t.linkKey?n.push(s.lineUnlink):n.push(s.lineCopyToCharts)),n.push(s.lineRemove),t.additionalActions))for(n.push(new T),d=t.additionalActions(r.model()),p=0;p<d.length;p++)n.push(d[p]);_=C.createMenu(n),l(_)}.bind(null,i)).catch(i.oe)})},o.prototype._tradingDrawingsContextMenu=function(t){return C.createMenu(t.contextMenuItems())},o.prototype._chartEventsContextMenu=function(t){var i,o,n,r=[];return e.enabled("property_pages")&&(i=this._chart,o=new S({text:window.t("Format..."),enabled:!0,statName:"Format"}),o.callbacks().subscribe(this,function(t){TVSettings.setValue("properties_dialog.active_tab.chart",window.t("Events & Alerts")),i.showChartProperties()}),r.push(o)),n=new S({text:window.t("Hide Events on Chart"),enabled:!0,statName:"HideEvents"}),n.callbacks().subscribe(this,function(e){t.properties().visible.setValue(!1)}),r.push(n),C.createMenu(r)},o.prototype._createAlertToggleHorzLineLabelAction=function(t){var e=t.properties().line.visible,i=new S({checkable:!0,text:window.t("Extend Alert Line"),enabled:!0,checked:e.value(),statName:"ToggleExtendAlertLine"});return i.callbacks().subscribe(this,function(t){var i=t.checked,o=i?window.t("Show alert label line"):window.t("Hide alert label line");this._chart.model().setProperty(e,i,o)}),i.setEnabled(t.globalProperties().line.visible.value()),i},o.prototype._createShowGlobalAlertPropertiesLabelAction=function(t){var e=this.chart(),i=new S({text:window.t("Visual settings..."),statName:"VisualSettings"});return i.callbacks().subscribe(this,function(t){e.showChartProperties({selectAlertEvent:!0})}),i},o.prototype._createEditAlertDrawingAction=function(t){if(t.hasAlert.value()){var e=new S({text:window.t("Edit {0} Alert...").format(t.title()),statName:"EditAlert"});return e.callbacks().subscribe(null,function(){runOrSignIn(function(){t.editAlert()},{source:"Alert edit from pane context menu"})}),e}},o.prototype.cloneLineTool=function(t,e){return this._chart.model().cloneLineTool(t,e)},o.prototype.setPriceAxisSize=function(t,e){this._priceAxisWidget(t).setSize(e)},o.prototype.setPriceAxisVisible=function(t,e){this._priceAxisWidget(t).setVisible(e),this._cachedStatus=null},o.prototype.resetPriceAxisOptimalWidth=function(t){this._priceAxisWidget(t).resetOptimalWidth(),this._cachedStatus=null},o.prototype.setSize=function(t){this.size&&this.size.equals(t)||(this.size=t,M(this.canvas,t),M(this.top_canvas,t),this.ctx=this.canvas.getContext("2d"),this.jqPane.width(t.w),this.jqPane.height(t.h),this._cachedStatus=null,this.jqRow.toggleClass("js-hidden",0===t.h))},o.prototype.dataSourceAtPoint=function(t,e){var i,o,r,s,a,l,c,h,u,d,p,_,f,m,g,v=null,y=null;if(!this._state)return null;for(i=this._state.hitTestSources(),o=i.length;0<o--;)if(r=i[o],
|
||||
s=r.paneViews(this._state))for(a=s.length;0<a--;)(l=s[a].renderer(e))&&l.hitTest&&(c=l.hitTest(new n(t,e)))&&(h=y?y.result():0,c.result()>h&&(y=c,v=r));if(this.containsMainSeries()){for(u=this._chart.model().barsMarksSources(),o=0;o<u.length;++o)for(r=u[o],s=r.paneViews(),a=0;a<s.length;a++)if(l=s[a].renderer(e),d=l.hitTest(new n(t,e))){y=d,v=r;break}p=this._chart.model().activeStrategySource().value(),_=p&&p._strategyOrdersPaneView,_&&(f=_.renderer())&&(m=f.hitTest(new n(t,e)))&&(y=m,v=p)}return null===v&&(v=this.legendWidget.dataSourceAtPoint(t,e)),g=this._chart.model().brandingSource(),g&&(m=g.hitTest(new n(t,e)))&&(y=m,v=g),{source:v,hittest:y}},o.prototype.update=function(){this.lhsPriceAxisWidget.update(),this.rhsPriceAxisWidget.update(),this.legendWidget.update(),this.paneControls&&this.paneControls.update()},o.prototype.updateControls=function(){this.paneControls&&this.paneControls.update()},o.prototype.drawBackground=function(t,e){D(t,0,0,this.size.w,this.size.h,e)},o.prototype.drawGrid=function(t){var e,i,o=this._chart.model().gridSource(),n=o.paneViews(this._state),r=this._state.height(),s=this._state.width();for(e=0;e<n.length;e++)t.save(),i=n[e].renderer(r,s),i&&i.draw(t),t.restore()},o.prototype.drawWatermark=function(t){var e,i,o=this._chart.model().watermarkSource(),n=o.paneViews(this._state),r=this._state.height(),s=this._state.width();for(e=0;e<n.length;e++)t.save(),i=n[e].renderer(r,s),i&&i.draw(t),t.restore()},o.prototype.drawBranding=function(t){var e,i,o,n,r,s=this._chart.model().brandingSource();if(s)for(e=s.paneViews(this._state),i=this._state.height(),o=this._state.width(),n=0;n<e.length;n++)(r=e[n].renderer(i,o))&&(t.save(),r.draw(t),t.restore())},o.prototype.drawCrossHair=function(t){var e=this._chart.model().crossHairSource();e.visibleTrap&&(!e.visible&&x.lockTimeAxis().value()&&(e.setLockedPosition(this._state),e.updateAllViews()),this._drawSource(e,t))},o.prototype._drawSource=function(t,e){var i,o,n,r,s=t.paneViews(this._state);if(s)for(i=this._state.height(),o=this._state.width(),n=0;n<s.length;n++)(r=s[n].renderer(i,o))&&(e.save(),r.draw(e),e.restore())},o.prototype._drawSourceStrategyOrders=function(t,e){var i,o=t._strategyOrdersPaneView;o&&(i=o.renderer())&&(e.save(),i.draw(e),e.restore())},o.prototype._drawSourceBackground=function(t,e){var i,o,n,r,s=t.paneViews(this._state);if(s)for(i=this._state.height(),o=this._state.width(),n=0;n<s.length;n++)(r=s[n].renderer(i,o))&&r.drawBackground&&(e.save(),r.drawBackground(e),e.restore())},o.prototype.drawActiveLineTool=function(t){var e,i,o=[this._chart.model().lineBeingCreated(),this._chart.model().sourceBeingMoved(),this._chart.model().lineBeingEdited()];for(e=0;e<o.length;e++)(i=o[e])&&this._chart.model().paneForSource(i)===this._state&&this._drawSource(i,t)},o.prototype.disableDrawOnTop=function(t){return t&&t.hasOwnProperty("_metaInfo")&&"Volume@tv-basicstudies"===t._metaInfo.id},o.prototype.drawSources=function(t){
|
||||
h.callbacks().subscribe(a,o.prototype.cloneLineTool.bind(a,t,!1)),n.push(h)),e.enabled("datasource_copypaste")&&!t.properties().blockCopying&&(u=new S({text:window.t("Copy"),shortcut:"Ctrl-C",statName:"Copy"}),u.callbacks().subscribe(null,function(){r.onAppClipboardCopy(t)}),n.push(u)),e.enabled("support_multicharts")&&(t.linkKey?n.push(s.lineUnlink):n.push(s.lineCopyToCharts)),n.push(s.lineRemove),t.additionalActions))for(n.push(new T),d=t.additionalActions(r.model()),p=0;p<d.length;p++)n.push(d[p]);_=C.createMenu(n),l(_)}.bind(null,i)).catch(i.oe)})},o.prototype._tradingDrawingsContextMenu=function(t){return C.createMenu(t.contextMenuItems())},o.prototype._chartEventsContextMenu=function(t){var i,o,n,r=[];return e.enabled("property_pages")&&(i=this._chart,o=new S({text:window.t("Format..."),enabled:!0,statName:"Format"}),o.callbacks().subscribe(this,function(t){TVSettings.setValue("properties_dialog.active_tab.chart",window.t("Events & Alerts")),i.showChartProperties()}),r.push(o)),n=new S({text:window.t("Hide Events on Chart"),enabled:!0,statName:"HideEvents"}),n.callbacks().subscribe(this,function(e){t.properties().visible.setValue(!1)}),r.push(n),C.createMenu(r)},o.prototype._createAlertToggleHorzLineLabelAction=function(t){var e=t.properties().line.visible,i=new S({checkable:!0,text:window.t("Extend Alert Line"),enabled:!0,checked:e.value(),statName:"ToggleExtendAlertLine"});return i.callbacks().subscribe(this,function(t){var i=t.checked,o=i?window.t("Show alert label line"):window.t("Hide alert label line");this._chart.model().setProperty(e,i,o)}),i.setEnabled(t.globalProperties().line.visible.value()),i},o.prototype._createShowGlobalAlertPropertiesLabelAction=function(t){var e=this.chart(),i=new S({text:window.t("Visual settings..."),statName:"VisualSettings"});return i.callbacks().subscribe(this,function(t){e.showChartProperties({selectAlertEvent:!0})}),i},o.prototype._createEditAlertDrawingAction=function(t){if(t.hasAlert.value()){var e=new S({text:window.t("Edit {0} Alert...").format(t.title()),statName:"EditAlert"});return e.callbacks().subscribe(null,function(){runOrSignIn(function(){t.editAlert()},{source:"Alert edit from pane context menu"})}),e}},o.prototype.cloneLineTool=function(t,e){return this._chart.model().cloneLineTool(t,e)},o.prototype.setPriceAxisSize=function(t,e){this._priceAxisWidget(t).setSize(e)},o.prototype.setPriceAxisVisible=function(t,e){this._priceAxisWidget(t).setVisible(e),this._cachedStatus=null},o.prototype.resetPriceAxisOptimalWidth=function(t){this._priceAxisWidget(t).resetOptimalWidth(),this._cachedStatus=null},o.prototype.setSize=function(t){this.size&&this.size.equals(t)||(this.size=t,M(this.canvas,t),M(this.top_canvas,t),this.ctx=this.canvas.getContext("2d"),this.jqPane.width(t.w),this.jqPane.height(t.h),this._cachedStatus=null,this.jqRow.toggleClass("js-hidden",0===t.h))},o.prototype.dataSourceAtPoint=function(t,e){var i,o,r,s,a,l,c,h,u,d,p,_,f,m,g,v,y,b=null,S=null;if(!this._state)return null;for(i=this._state.hitTestSources(),o=new n(t,e),r=i.length;0<r--;)if(s=i[r],
|
||||
a=s.paneViews(this._state))for(l=a.length;0<l--;)(c=a[l].renderer(e))&&c.hitTest&&(h=c.hitTest(o))&&(u=S?S.result():0,h.result()>u&&(S=h,b=s));if(this.containsMainSeries()){for(d=this._chart.model().barsMarksSources(),r=0;r<d.length;++r)for(s=d[r],a=s.paneViews(),l=0;l<a.length;l++)if(c=a[l].renderer(e),p=c.hitTest(o)){S=p,b=s;break}_=this._chart.model().activeStrategySource().value(),f=_&&_._strategyOrdersPaneView,f&&(m=f.renderer())&&(g=m.hitTest(o))&&(S=g,b=_)}return null===b&&(b=this.legendWidget.dataSourceAtPoint(t,e)),v=this._chart.model().brandingSource(),v&&(y=v.paneViews(this._state),y.forEach(function(t){var e=t.renderer().hitTest(o);e&&(S=e,b=v)})),{source:b,hittest:S}},o.prototype.update=function(){this.lhsPriceAxisWidget.update(),this.rhsPriceAxisWidget.update(),this.legendWidget.update(),this.paneControls&&this.paneControls.update()},o.prototype.updateControls=function(){this.paneControls&&this.paneControls.update()},o.prototype.drawBackground=function(t,e){D(t,0,0,this.size.w,this.size.h,e)},o.prototype.drawGrid=function(t){var e,i,o=this._chart.model().gridSource(),n=o.paneViews(this._state),r=this._state.height(),s=this._state.width();for(e=0;e<n.length;e++)t.save(),i=n[e].renderer(r,s),i&&i.draw(t),t.restore()},o.prototype.drawWatermark=function(t){var e,i,o=this._chart.model().watermarkSource(),n=o.paneViews(this._state),r=this._state.height(),s=this._state.width();for(e=0;e<n.length;e++)t.save(),i=n[e].renderer(r,s),i&&i.draw(t),t.restore()},o.prototype.drawBranding=function(t){var e,i,o,n,r,s=this._chart.model().brandingSource();if(s)for(e=s.paneViews(this._state),i=this._state.height(),o=this._state.width(),n=0;n<e.length;n++)(r=e[n].renderer(i,o))&&(t.save(),r.draw(t),t.restore())},o.prototype.drawCrossHair=function(t){var e=this._chart.model().crossHairSource();e.visibleTrap&&(!e.visible&&x.lockTimeAxis().value()&&(e.setLockedPosition(this._state),e.updateAllViews()),this._drawSource(e,t))},o.prototype._drawSource=function(t,e){var i,o,n,r,s=t.paneViews(this._state);if(s)for(i=this._state.height(),o=this._state.width(),n=0;n<s.length;n++)(r=s[n].renderer(i,o))&&(e.save(),r.draw(e),e.restore())},o.prototype._drawSourceStrategyOrders=function(t,e){var i,o=t._strategyOrdersPaneView;o&&(i=o.renderer())&&(e.save(),i.draw(e),e.restore())},o.prototype._drawSourceBackground=function(t,e){var i,o,n,r,s=t.paneViews(this._state);if(s)for(i=this._state.height(),o=this._state.width(),n=0;n<s.length;n++)(r=s[n].renderer(i,o))&&r.drawBackground&&(e.save(),r.drawBackground(e),e.restore())},o.prototype.drawActiveLineTool=function(t){var e,i,o=[this._chart.model().lineBeingCreated(),this._chart.model().sourceBeingMoved(),this._chart.model().lineBeingEdited()];for(e=0;e<o.length;e++)(i=o[e])&&this._chart.model().paneForSource(i)===this._state&&this._drawSource(i,t)},o.prototype.disableDrawOnTop=function(t){return t&&t.hasOwnProperty("_metaInfo")&&"Volume@tv-basicstudies"===t._metaInfo.id},o.prototype.drawSources=function(t){
|
||||
var e,i,o,n,r,s=this._state.orderedSources(),a=this._state.model(),l=this._chart.model().selectedSource(),c=this._chart.model().hoveredSource(),h=a.crossHairSource(),u=[this._chart.model().lineBeingCreated(),this._chart.model().sourceBeingMoved(),this._chart.model().lineBeingEdited()];for(this.disableDrawOnTop(l)&&(l=void 0),this.disableDrawOnTop(c)&&(c=void 0),e=this._chart.model().model().panes(),i=e.length-1;i>=0;i--)e[i].createDrawingsCaches();for(i=0;i<s.length;i++)this._drawSourceBackground(s[i],t);for(i=0;i<s.length;i++)(o=s[i])!==h&&o!==l&&o!==c&&-1===u.indexOf(o)&&this._drawSource(o,t);for(n=null,l&&-1===u.indexOf(l)&&-1!==s.indexOf(l)&&(n=l,this._drawSource(l,t)),c&&c!==n&&-1===u.indexOf(c)&&-1!==s.indexOf(c)&&this._drawSource(c,t),r=this._chart.model().activeStrategySource().value(),r&&this.containsMainSeries()&&this._drawSourceStrategyOrders(r,t),i=e.length-1;i>=0;i--)e[i].clearDrawingCaches()},o.prototype.recalculatePriceScale=function(){var t,e,i,o=this._state;for(o.recalculatePriceScale(o.m_rightPriceScale),o.recalculatePriceScale(o.m_leftPriceScale),t=o.dataSources(),e=0;e<t.length;++e)i=t[e],o.isOverlay(i)&&(i instanceof d||o.recalculatePriceScale(i.priceScale()),i.updateAllViews())},o.prototype.containsMainSeries=function(){return this._state.containsMainSeries()},o.prototype.drawBarsMarks=function(t,e){var i,o;this.containsMainSeries()&&!e&&(i=this._chart.model().barsMarksSources(),o=this,i.forEach(function(e){o._drawSource(e,t)}))},o.prototype._syncOverlays=function(){var t,e,i=this._state.orderedSources(),o={},n=this;$.each(i,function(){var t,e,i=this.paneViews(n._state);if(i)for(t=0;t<i.length;t++)e=i[t],e.uid&&(o[e.uid()]=e)});for(t in this._overlays)o[t]||(this._dv.remove(this._overlays[t]),this._overlays[t]=void 0);for(t in o)this._overlays[t]||(e=o[t].overlay(),this._dv.append(e),this._overlays[t]=e)},o.prototype.hardResetCanvas=function(){this.size&&(E(this.canvas,this.size),E(this.top_canvas,this.size),this.lhsPriceAxisWidget.hardResetCanvas(),this.rhsPriceAxisWidget.hardResetCanvas())},o.prototype.paint=function(t,e){if(t&&this._chart.model())if(this.lhsPriceAxisWidget.paint(t),this.rhsPriceAxisWidget.paint(t),t===I.FULL_UPDATE&&(this._cachedStatus=null),t===I.UPDATE_CURSOR_ONLY)this.top_ctx.clearRect(-.5,-.5,this.size.w,this.size.h),this.drawCrossHair(this.top_ctx),this.drawActiveLineTool(this.top_ctx);else{var i=this.ctx;this.top_ctx.clearRect(-.5,-.5,this.size.w,this.size.h),this.drawBackground(i,this.backgroundColor()),this._state&&(this.recalculatePriceScale(),this.drawGrid(i),this.drawWatermark(i),this.drawSources(i),this.drawBarsMarks(i,e),this.drawCrossHair(this.top_ctx),this.drawActiveLineTool(this.top_ctx),this.drawBranding(i))}},o.prototype.leftPriceAxisWidget=function(){return this.lhsPriceAxisWidget},o.prototype.rightPriceAxisWidget=function(){return this.rhsPriceAxisWidget},o.prototype._priceAxisWidget=function(t){return l.isLeft(t)?this.lhsPriceAxisWidget:this.rhsPriceAxisWidget},o.prototype.statusWidget=function(){return this.legendWidget},
|
||||
o.prototype.onScaleLeft=function(t){var e=t.callbackContext();-1===this._state.leftPriceScale().dataSources().indexOf(e)&&this.chart().model().move(e,this._state,this._state.leftPriceScale())},o.prototype.onScaleRight=function(t){var e=t.callbackContext();-1===this._state.rightPriceScale().dataSources().indexOf(e)&&this.chart().model().move(e,this._state,this._state.rightPriceScale())},o.prototype.onNoScale=function(t){var e=t.callbackContext();this._state.isOverlay(e)||this.chart().model().move(e,this._state,null)},o.prototype.onRiskReward=function(t){},o.prototype.createActionRiskReward=function(t){var e=new S({checkable:!1,text:window.t("Risk/Reward"),enabled:!0,statName:"RiskReward"});return e.setCallbackContext(t),e.callbacks().subscribe(this,o.prototype.onRiskReward),e},o.prototype.createActionScaleLeft=function(t){var e=new S({checkable:!0,text:window.t("Scale Left"),enabled:!0,statName:"ToggleScaleLeft"});return e.setCallbackContext(t),e.setChecked(-1!==this._state.leftPriceScale().dataSources().indexOf(t)),e.callbacks().subscribe(this,o.prototype.onScaleLeft),e},o.prototype.createActionScaleRight=function(t){var e=new S({checkable:!0,text:window.t("Scale Right"),enabled:!0,statName:"ToggleScaleRight"});return e.setCallbackContext(t),e.setChecked(-1!==this._state.rightPriceScale().dataSources().indexOf(t)),e.callbacks().subscribe(this,o.prototype.onScaleRight),e},o.prototype.createActionNoScale=function(t){var e=this._chart.model().paneForSource(t),i=e.actionNoScaleIsEnabled(t),n=new S({checkable:!0,text:window.t("Screen (No Scale)"),enabled:i,statName:"ToggleNoScale"});return n.setCallbackContext(t),n.setChecked(this._state.isOverlay(t)),n.callbacks().subscribe(this,o.prototype.onNoScale),n},o.prototype.createActionShowCountdown=function(t){var e=new S({checkable:!0,text:window.t("Show Countdown"),enabled:!0,statName:"ToggleShowCountdown"}),i=this._chart.model().mainSeries().properties();return e._binding=new v(e,i.showCountdown,this._chart.model(),e.text),e._binding.setValue(i.showCountdown.value()),e},o.prototype.createActionLockScale=function(t){var e,i,o;return t instanceof TradingView.Series?(e=c(t.priceScale(),this._chart.model().model().mainSeriesScaleRatio()),i=new S({checkable:t.priceScale().isLockScale(),text:window.t("Lock Scale")+" "+e,enabled:!0,statName:"LockScale"}),o=function(e){this._undoModel.setLockScaleProperty(this._property,e.checked,t,this._undoText)},i._binding=new v(i,t.priceScale().properties().lockScale,this._chart.model(),"Lock Scale",o),i):null},o.prototype.createActionMergeUp=function(t){if(!this._chart.model().model().isMergeUpAvailableForSource(t))return null;var e=new S({checkable:!1,text:window.t("Merge Up"),enabled:!0,statName:"MergeUp"});return e.setCallbackContext(t),e.callbacks().subscribe(this,o.prototype.onMergeUp),e},o.prototype.onMergeUp=function(t){var e=t.callbackContext();this._chart.model().mergeSourceUp(e)},o.prototype.createActionUnmergeUp=function(t){if(!this._chart.model().model().isUnmergeAvailableForSource(t))return null;var e=new S({checkable:!1,
|
||||
text:window.t("Unmerge Up"),enabled:!0,statName:"UnmergeUp"});return e.setCallbackContext(t),e.callbacks().subscribe(this,o.prototype.onUnmergeUp),e},o.prototype.onUnmergeUp=function(t){var e=t.callbackContext();this._chart.model().unmergeSourceUp(e)},o.prototype.createActionMergeDown=function(t){if(!this._chart.model().model().isMergeDownAvailableForSource(t))return null;var e=new S({checkable:!1,text:window.t("Merge Down"),enabled:!0,statName:"MergeDown"});return e.setCallbackContext(t),e.callbacks().subscribe(this,o.prototype.onMergeDown),e},o.prototype.onMergeDown=function(t){var e=t.callbackContext();this._chart.model().mergeSourceDown(e)},o.prototype.createActionUnmergeDown=function(t){if(!this._chart.model().model().isUnmergeAvailableForSource(t))return null;var e=new S({checkable:!1,text:window.t("Unmerge Down"),enabled:!0,statName:"UnmergeDown"});return e.setCallbackContext(t),e.callbacks().subscribe(this,o.prototype.onUnmergeDown),e},o.prototype.onUnmergeDown=function(t){var e=t.callbackContext();this._chart.model().unmergeSourceDown(e)},o.prototype._mergeContentMenuItems=function(t){var e=[],i=this.createActionMergeUp(t);return i&&e.push(i),i=this.createActionUnmergeUp(t),i&&e.push(i),i=this.createActionMergeDown(t),i&&e.push(i),i=this.createActionUnmergeDown(t),i&&e.push(i),e},o.prototype.createActionShow=function(t){var e=new S({checkable:!0,text:window.t("Show"),enabled:!0,statName:"ToggleShow"});return e._binding=new v(e,t.properties().visible,this._chart.model(),e.text),e._binding.setValue(t.properties().visible.value()),e},o.prototype.createActionAddChildStudy=function(t){var e=new S({text:window.t("Apply Indicator on {0} ...").format(t.title(!0)),enabled:!0,statName:"ApplyIndicator"});return e.callbacks().subscribe(this,function(){var e,i,o=this._chart.showIndicators(t);o&&(e=function(){f("SOS","Apply SOS","Apply by RC menu")},i=this._chart.model().model().studyInserted(),i.subscribe(this,e),o.visibilityChanged.subscribe(this,function(t){t||i.unsubscribe(this,e)},!0))}),e},o.prototype.bringObjectForward=function(t){var e=this._chart.model().selectedSource();e&&this._chart.model().changeZOrder(e,1)},o.prototype.sendObjectToBack=function(t){var e=this._chart.model().selectedSource();e&&this._chart.model().sendToBack(e)},o.prototype.bringObjectToFront=function(t){var e=this._chart.model().selectedSource();e&&this._chart.model().bringToFront(e)},o.prototype.sendObjectBackward=function(t){var e=this._chart.model().selectedSource();e&&this._chart.model().changeZOrder(e,-1)},o.prototype.createVisualOrderAction=function(t){var e,i,n,r,s,a,l=new S({text:window.t("Visual Order"),statName:"VisualOrder"});return l.subActions||(l.subActions=[]),e=new S({text:window.t("Bring to Front"),statName:"BringToFront"}),e.callbacks().subscribe(this,o.prototype.bringObjectToFront),l.subActions.push(e),i=new S({text:window.t("Send to Back"),statName:"SendToBack"}),i.callbacks().subscribe(this,o.prototype.sendObjectToBack),l.subActions.push(i),n=new S({text:window.t("Bring Forward"),statName:"BringForward"}),
|
||||
@@ -611,7 +611,7 @@ o.prototype.findOrCreateTooltip=function(t){var e=this.tooltips[t.id];return nul
|
||||
z=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,F=z&&navigator.userAgent.toLowerCase().indexOf("windows")>-1,N=navigator.userAgent.toLowerCase().indexOf("chrome")>-1&&-1===navigator.userAgent.toLowerCase().indexOf("edge"),W=function(){var t,e=window.navigator.userAgent,i=e.indexOf("MSIE ");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):e.indexOf("Trident/")>0&&(t=e.indexOf("rv:"),parseInt(e.substring(t+3,e.indexOf(".",t)),10))}(),H=window.urlParams||{},window.initData,U=window.hidpiCanvasRatio||1,j=null,q=function(){function t(e){var i=e.layout,o=void 0===i?P:i,n=e.symbol,s=void 0===n?"":n,l=e.model,c=e.onReadyCallback;r(this,t),this._model=l,this._image=null,this._imageReady=!1,this._needDisplay=!1,this._imageWidth=22,this._imageHeight=13,this.show=!0,this.width=100,this.height=14,this._bottomShift=0,this._brandCircleSize=32,this._layout=o,this._symbol=s,this._fillColor=v.color.brandNew,this._colorOldBlue=v.color.brandDown,this._colorOldGray=v.color.black30,this._strokeColor=v.color.black255,this._brandCircleColor=v.color.black255,this._brandCircleShadowColor=v.color.black0,this._strokeWidth=4,this._fontSize=14,this._font='px "Trebuchet MS", Tahoma, Arial, sans-serif',this._txt="TradingView",this._onReadyCallback=c,this._upscaleRatio=N?1:2,this._strokeCanv=null,this._fillCanv=null,W&&(this._init=a(this._init,this)),this._init()}return c(t,[{key:"_init",value:function(){this._checkLayout(),this.show&&(this._loadImage(b,"tvLogo"),this._updateStrokeColor(),this._model.properties().paneProperties.background.subscribe(this,this._updateStrokeColor),this._model.onChartThemeLoaded().subscribe(this,this._updateStrokeColor))}},{key:"_updateStrokeColor",value:function(){var t=(0,y.getLuminance)(this._model.properties().paneProperties.background.value());this._strokeCanv=null,this._fillCanv=null,t>B?(this._brandCircleShadowopacity=.09,this._strokeOpacity=.8,this._circleOpacity=1):(this._brandCircleShadowopacity=.16,this._strokeOpacity=.1,this._circleOpacity=.1)}},{key:"_loadImage",value:function(t,e){var i=this;this._needDisplay&&(this._image=new Image,this._image.src=W?j.fallbackImages[e]:"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(t),this._image.addEventListener("load",function(){F&&(i._image=s(i._image,i._imageWidth,i._imageHeight)),i._imageReady=!0,"function"==typeof i._onReadyCallback&&i._onReadyCallback()}))}},{key:"_checkLayout",value:function(){switch(this._layout){case L:case I:case k:case M:case E:case O:case V:this.show=!0;break;case P:case A:case D:case R:this.show=!1}switch(this._layout){case V:this._needDisplay=!0,this._txt=$.t(C);break;case O:this._txt=$.t(x)}}},{key:"_drawTextStroke",value:function(t){var e,i;this._strokeCanv||(this._strokeCanv=document.createElement("canvas"),e=this._strokeCanv.getContext("2d"),i=Math.round(this._strokeWidth*this._upscaleRatio),e.font=this._fontSize*this._upscaleRatio+this._font,this._textWidth=e.measureText(this._txt).width,this._strokeCanv.width=(this._textWidth+2*i)*U,this._strokeCanv.height=(this._fontSize+2*i)*this._upscaleRatio*U,
|
||||
this._strokeCanv.width%2==0&&(this._strokeCanv.width+=1,this._strokeCanv.height+=1),e.textBaseline="top",e.textAlign="start",e.font=this._fontSize*this._upscaleRatio+this._font,e.strokeStyle=this._strokeColor,e.lineWidth=this._strokeWidth*this._upscaleRatio*U,e.lineJoin="round",e.strokeText(this._txt,i,z?4:0)),t.save(),t.globalAlpha=this._strokeOpacity,t.drawImage(this._strokeCanv,0,0,this._strokeCanv.width,this._strokeCanv.height,0,0,this._strokeCanv.width/this._upscaleRatio/U,this._strokeCanv.height/this._upscaleRatio/U),t.restore()}},{key:"_drawTextFill",value:function(t){var e,i;this._fillCanv||(this._fillCanv=document.createElement("canvas"),e=this._fillCanv.getContext("2d"),i=Math.round(this._strokeWidth*this._upscaleRatio),this._fillCanv.width=(this._textWidth+2*i)*U,this._fillCanv.height=(this._fontSize+2*i)*this._upscaleRatio*U,this._fillCanv.width%2==0&&(this._fillCanv.width+=1,this._fillCanv.height+=1),e.textBaseline="top",e.textAlign="start",e.font=this._fontSize*this._upscaleRatio+this._font,e.fillStyle=this._fillColor,e.fillText(this._txt,i,z?4:0)),t.save(),t.drawImage(this._fillCanv,0,0,this._fillCanv.width,this._fillCanv.height,0,0,this._fillCanv.width/this._upscaleRatio/U,this._fillCanv.height/this._upscaleRatio/U),t.restore()}},{key:"_drawBgCircle",value:function(t){t.save(),t.beginPath(),t.fillStyle=this._brandCircleShadowColor,t.globalAlpha=this._brandCircleShadowopacity,t.arc(this._imageWidth/2,this._imageHeight/2,this._brandCircleSize/2+1,0,2*Math.PI),t.fill(),t.closePath(),t.restore(),t.save(),t.beginPath(),t.globalAlpha=this._circleOpacity,t.fillStyle=this._brandCircleColor,t.arc(this._imageWidth/2,this._imageHeight/2,this._brandCircleSize/2,0,2*Math.PI,!1),t.fill(),t.closePath(),t.restore()}},{key:"bottomShift",value:function(){return this._bottomShift}},{key:"draw",value:function(t,e){var i,o,n,r,s,a;this._layout===k||this._layout===E?(i='12px "Trebuchet MS", Tahoma, Arial, sans-serif',t.font=i,o=t.measureText(this._txt).width,this.width=o+t.measureText("TradingView").width,t.save(),t.globalAlpha=.7,t.fillStyle=this._colorOldGray,t.fillText(this._txt,0,12),t.fillStyle=this._colorOldBlue,t.fillText("TradingView",o,12),t.restore()):this._needDisplay&&this._imageReady?(t.save(),n=(this._brandCircleSize-this._imageWidth)/2,t.translate(n,0),this._drawBgCircle(t),t.drawImage(this._image,0,-.5,this._imageWidth,this._imageHeight),r=12+(N?-.5:0),t.translate(this._imageWidth+r,-.5),s=l(e),s&&(this._drawTextStroke(t),this._drawTextFill(t)),t.restore(),this.width=this._imageWidth+n,this.width+=s?r+this._strokeCanv.width/this._upscaleRatio/U:n,this.height=this._brandCircleSize,this._bottomShift=this._brandCircleSize-this._imageHeight):(t.save(),t.translate(0,0),a=l(e),a&&(this._drawTextStroke(t),this._drawTextFill(t)),t.restore(),a&&(this.width=this._strokeCanv.width/this._upscaleRatio/U))}}]),t}(),G=function(){function t(e){var i=e.layout,o=void 0===i?P:i,n=e.src,s=e.onReadyCallback;r(this,t),this._img=new Image,this._ready=!1,this.show=!1,this.width=0,this.height=0,this._layout=o,this._src=n,
|
||||
this._onReadyCallback=s,W&&(this._init=a(this._init,this)),this._init()}return c(t,[{key:"_init",value:function(){var t,e,i=this;this._checkLayout(),this.show&&(t=this._src.match(/(\w+)\.svg/),W&&t&&2===t.length?(e=t[1],this._img.src=j.fallbackImages[e],this._img.addEventListener("load",function(){var t=j.logoSizes;e in t?(i.width=t[e].width,i.height=t[e].height):(i.width=135,i.height=25),i._ready=!0,"function"==typeof i._onReadyCallback&&i._onReadyCallback()})):(this._img.src=this._src,this._img.addEventListener("load",function(){i.width=Math.round(i._img.width),i.height=Math.round(i._img.height),F&&(i._img=s(i._img,i.width,i.height)),i._ready=!0,"function"==typeof i._onReadyCallback&&i._onReadyCallback()})))}},{key:"_checkLayout",value:function(){switch(this._layout){case k:case A:case E:case D:case O:case R:this.show=!0;break;case P:case L:case I:case M:case V:this.show=!1}}},{key:"draw",value:function(t){this._ready&&t.drawImage(this._img,0,0,this.width,this.height)}}]),t}(),e.Branding=function(){function t(e){var i,o=this;r(this,t),this._model=e,this._mainSeries=this._model.mainSeries(),this._canvasWidth=0,this._paneHeight=0,this._left=13,this._bottom=24,this._layout=P,this._needToShow=!0,this._customLogoSrc="",this._customLogoLink="",this._checkLayout(),this._layout!==k&&this._layout!==E||(this._left=8,this._bottom=5),i=function(){o._needToShow?o._layout===P?o._showBranding=window.innerWidth>=768:o._showBranding=!0:o._showBranding=!1},this._resizeHandlerDelayed=(0,g.default)(i,200),i(),window.addEventListener("resize",this._resizeHandlerDelayed),this._model.isSnapshot()?this._init():this._mainSeries.onSymbolResolved().subscribe(this,this._init)}return c(t,[{key:"destroy",value:function(){window.removeEventListener("resize",this._resizeHandlerDelayed)}},{key:"_init",value:function(){var t=this,e=this._mainSeries.symbolInfo()||{};this._powBy=new q({layout:this._layout,symbol:e.name,model:this._model,onReadyCallback:function(){return t._model.fullUpdate()}}),this._custom=new G({layout:this._layout,src:this._customLogoSrc,onReadyCallback:function(){return t._model.fullUpdate()}})}},{key:"_checkLayout",value:function(){if(p.enabled("widget"));else if(p.enabled("charting_library")||p.enabled("amp_terminal")||p.enabled("cqg_terminal")||p.enabled("trading_terminal")){var t=JSON.parse(H.logo)||{};t.image?(this._customLogoSrc=t.image,this._customLogoLink=t.link,this._needToShow=p.enabled("widget_logo"),p.enabled("link_to_tradingview")?this._layout=O:this._layout=R):(this._layout=V,this._needToShow=p.enabled("widget_logo"))}else this._layout=P}},{key:"updateAllViews",value:function(){}},{key:"priceScale",value:function(){}},{key:"priceAxisViews",value:function(){}},{key:"onClickOutside",value:function(){}},{key:"hasContextMenu",value:function(){return!1}},{key:"hitTest",value:function(t){var e=this;return!this._showBranding||p.enabled("logo_without_link")?null:this._powBy&&this._layout!==P&&this._layout!==A&&this._layout!==D&&(0,
|
||||
u.pointInRectangle)(t,new h.Point(this._left,this._paneHeight-this._bottom+this._powBy.bottomShift()/2-Math.max(this._powBy.height,void 0!==this._custom?this._custom.height:0)),new h.Point(this._left+Math.max(this._powBy.width,void 0!==this._custom?this._custom.width:0),this._paneHeight-this._bottom+this._powBy.bottomShift()/2))?new f.default(f.default.CUSTOM,{mouseUpHandler:function(){window.open(e.tvUrl(),"_blank").opener=null}}):null}},{key:"tvUrl",value:function(){var t,e="https://www.tradingview.com/";if(this._customLogoLink)return this._customLogoLink;if(this._layout===V||this._layout===O){switch(t=void 0,!0){case p.enabled("charting_library"):t="library";break;case p.enabled("trading_terminal"):case p.enabled("amp_terminal"):case p.enabled("cqg_terminal"):t="trading-terminal"}return e+="/"===e[e.length-1]?"?":"&",e+="utm_source="+window.location.origin+"&utm_medium=library"+(t?"&utm_campaign="+t:"")}return e}},{key:"draw",value:function(t){if(this._showBranding){var e=0;this._powBy&&this._powBy.show&&(e=this._powBy.height-this._powBy.bottomShift(),t.save(),t.translate(this._left,this._paneHeight-this._bottom-e),this._powBy.draw(t,this._canvasWidth),t.restore()),this._custom&&this._custom.show&&(t.save(),t.translate(this._left,this._paneHeight-this._bottom-e-this._custom.height),this._custom.draw(t),t.restore())}}},{key:"renderer",value:function(t,e){return this._paneHeight=this._pane.height(),this._canvasWidth=e,{draw:this.draw.bind(this)}}},{key:"paneViews",value:function(t){var e=p.enabled("move_logo_to_main_pane");return e&&t.isMainPane()||!e&&t.isLast()||t.isMaximized()?(this._pane=t,[{renderer:this.renderer.bind(this)}]):[]}}]),t}()},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 13" width="22" height="13"><path fill="#37A6EF" fill-rule="nonzero" d="M19.354 4.932c.379.55.611 1.207.642 1.918A3.007 3.007 0 0 1 22 9.686a3.003 3.003 0 0 1-3 3.006H4a3.983 3.983 0 0 1-2.814-1.16l6.363-5.048a1.657 1.657 0 0 0 1.495.037l3.034 2.66a1.672 1.672 0 0 0 1.589 2.175 1.668 1.668 0 0 0 1.552-2.28l4.135-4.144zm-.942-.945L14.276 8.13a1.66 1.66 0 0 0-1.32.044l-3.034-2.66A1.672 1.672 0 0 0 8.333 3.34a1.668 1.668 0 0 0-1.611 2.097l-6.316 5.01A3.999 3.999 0 0 1 0 8.683a4.004 4.004 0 0 1 4.041-4.008A5.338 5.338 0 0 1 9.333 0a5.337 5.337 0 0 1 5.124 3.857 3.644 3.644 0 0 1 1.876-.517c.772 0 1.488.239 2.079.647z"/></svg>'},function(t,e,i){"use strict";var o,n;Object.defineProperty(e,"__esModule",{value:!0}),o=i(10),n=function(){function t(t){this._changed=new o,this._model=t}return t.prototype.getStepChangeValue=function(){return.1},t.prototype.getMinValue=function(){return 1e-7},t.prototype.getMaxValue=function(){return 9999},t.prototype.value=function(){return this._model.mainSeriesScaleRatio()},t.prototype.setValue=function(t,e){(t!==this.value()||e)&&(this._model.setMainSeriesScaleRatio(t),this._onChanged())},t.prototype.state=function(){return null},t.prototype.clone=function(){return new t(this._model)},t.prototype.listeners=function(){return this._changed},
|
||||
u.pointInRectangle)(t,new h.Point(this._left,this._paneHeight-this._bottom+this._powBy.bottomShift()/2-Math.max(this._powBy.height,void 0!==this._custom?this._custom.height:0)),new h.Point(this._left+Math.max(this._powBy.width,void 0!==this._custom?this._custom.width:0),this._paneHeight-this._bottom+this._powBy.bottomShift()/2))?new f.default(f.default.CUSTOM,{mouseUpHandler:function(){window.open(e.tvUrl(),"_blank").opener=null}}):null}},{key:"tvUrl",value:function(){var t,e="https://www.tradingview.com/";if(this._customLogoLink)return this._customLogoLink;if(this._layout===V||this._layout===O){switch(t=void 0,!0){case p.enabled("charting_library"):t="library";break;case p.enabled("trading_terminal"):case p.enabled("amp_terminal"):case p.enabled("cqg_terminal"):t="trading-terminal"}return e+="/"===e[e.length-1]?"?":"&",e+="utm_source="+window.location.origin+"&utm_medium=library"+(t?"&utm_campaign="+t:"")}return e}},{key:"draw",value:function(t){if(this._showBranding){var e=0;this._powBy&&this._powBy.show&&(e=this._powBy.height-this._powBy.bottomShift(),t.save(),t.translate(this._left,this._paneHeight-this._bottom-e),this._powBy.draw(t,this._canvasWidth),t.restore()),this._custom&&this._custom.show&&(t.save(),t.translate(this._left,this._paneHeight-this._bottom-e-this._custom.height),this._custom.draw(t),t.restore())}}},{key:"renderer",value:function(t,e){return this._paneHeight=this._pane.height(),this._canvasWidth=e,{draw:this.draw.bind(this),hitTest:this.hitTest.bind(this)}}},{key:"paneViews",value:function(t){var e=p.enabled("move_logo_to_main_pane");return e&&t.isMainPane()||!e&&t.isLast()||t.isMaximized()?(this._pane=t,[{renderer:this.renderer.bind(this)}]):[]}}]),t}()},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 13" width="22" height="13"><path fill="#37A6EF" fill-rule="nonzero" d="M19.354 4.932c.379.55.611 1.207.642 1.918A3.007 3.007 0 0 1 22 9.686a3.003 3.003 0 0 1-3 3.006H4a3.983 3.983 0 0 1-2.814-1.16l6.363-5.048a1.657 1.657 0 0 0 1.495.037l3.034 2.66a1.672 1.672 0 0 0 1.589 2.175 1.668 1.668 0 0 0 1.552-2.28l4.135-4.144zm-.942-.945L14.276 8.13a1.66 1.66 0 0 0-1.32.044l-3.034-2.66A1.672 1.672 0 0 0 8.333 3.34a1.668 1.668 0 0 0-1.611 2.097l-6.316 5.01A3.999 3.999 0 0 1 0 8.683a4.004 4.004 0 0 1 4.041-4.008A5.338 5.338 0 0 1 9.333 0a5.337 5.337 0 0 1 5.124 3.857 3.644 3.644 0 0 1 1.876-.517c.772 0 1.488.239 2.079.647z"/></svg>'},function(t,e,i){"use strict";var o,n;Object.defineProperty(e,"__esModule",{value:!0}),o=i(10),n=function(){function t(t){this._changed=new o,this._model=t}return t.prototype.getStepChangeValue=function(){return.1},t.prototype.getMinValue=function(){return 1e-7},t.prototype.getMaxValue=function(){return 9999},t.prototype.value=function(){return this._model.mainSeriesScaleRatio()},t.prototype.setValue=function(t,e){(t!==this.value()||e)&&(this._model.setMainSeriesScaleRatio(t),this._onChanged())},t.prototype.state=function(){return null},t.prototype.clone=function(){return new t(this._model)},t.prototype.listeners=function(){return this._changed},
|
||||
t.prototype.subscribe=function(t,e){this._changed.subscribe(t,e)},t.prototype.unsubscribe=function(t,e){this._changed.unsubscribe(t,e)},t.prototype.unsubscribeAll=function(t){this._changed.unsubscribeAll(t)},t.prototype._onChanged=function(){this._changed.fire(this)},t}(),e.MainSeriesScaleRatioProperty=n},function(t,e,i){"use strict";function o(t){"LineToolGannComplex"!==t.type||void 0!==t.version&&1!==t.version||(t.type="LineToolGannFixed")}Object.defineProperty(e,"__esModule",{value:!0}),e.migrateState=o},function(t,e,i){"use strict";function o(t){this._data=t}function n(t,e,i){if(i===CanvasEx.HHISTDIR_LEFTTORIGHT)return t+e;if(i===CanvasEx.HHISTDIR_RIGHTTOLEFT)return e+t;throw Error("Unknown direction value: "+i)}var r=i(8),s=r.Point,a=r.equalPoints,l=i(60),c=l.pointInRectangle,h=l.pointInTriangle,u=i(132).intersectRayAndRectangle,d=i(166).TextRenderer,p=i(94).HorizontalLineRenderer,_=i(110).TrendLineRenderer,f=i(919).HorizHistogramRenderer,m=i(920).HLinesPriceAxisView,g=i(380),v=TradingView.Study,y=i(921),b=i(11),S=i(53).CompositeRenderer,w=i(130).clearRect,T=i(30),C=i(32).shiftColor,x=i(7).getLogger("Chart.StudyGraphicsPaneViews");v.graphicsZOrderPriority=function(t){switch(t){case"polygons":return-100;case"trendchannels":return-90;default:return 0}},v.StudyPaneView_horizlines=function(t,e){this._study=t,this._model=e,this._data=[]},v.StudyPaneView_horizlines.prototype.update=function(){this._invalidated=!0},v.StudyPaneView_horizlines.prototype.renderer=function(){var t,e,i;for(this._invalidated&&(this._updateViewInternal(),this._invalidated=!1),t=new S,e=0;e<this._data.length;e++)i=new _,i.setData(this._data[e]),i.setHitTest(new b(b.REGULAR)),t.append(i);return t},v.StudyPaneView_horizlines.prototype._updateViewInternal=function(){var t,e,i,o,n,r,a,l,c,h,u,d,p,_,f,m,g,v,y,b,S,w;if(this._data=[],(t=this._study.graphics().horizlines)&&(e=this._study.priceScale(),i=this._study._model.timeScale(),e&&!e.isEmpty()&&i&&!i.isEmpty()))for(o=this._study.graphics().indexes,n=this._model.timeScale().visibleBars(),r=n.firstBar(),a=n.lastBar(),l=0;l<t.length;l++)if(c=t[l],c.data&&(h=this._study.properties().graphics.horizlines[c.styleId],h.visible.value()))for(u=0;u<c.data.length;u++)d=c.data[u],p=o[d.startIndex],_=o[d.endIndex],!d.extendRight&&Math.max(p,_)<r||!d.extendLeft&&Math.min(p,_)>a||(f={},m=i.indexToCoordinate(p),g=i.indexToCoordinate(_),v=d.level,e.isPercent()&&(y=this._study.firstValue(),v=e.priceRange().convertToPercent(v,y)),b=e.priceToCoordinate(v),S=new s(m,b),w=new s(g,b),f.points=[S,w],f.extendleft=d.extendLeft,f.extendright=d.extendRight,f.width=i.width(),f.height=e.height(),f.color=h.color.value(),f.linewidth=h.width.value(),f.linestyle=h.style.value(),this._data.push(f))},v.StudyPaneView_vertlines=function(t,e){this._study=t,this._model=e,this._data=[]},v.StudyPaneView_vertlines.prototype.update=function(){this._invalidated=!0},v.StudyPaneView_vertlines.prototype.renderer=function(){var t,e,i;for(this._invalidated&&(this._updateViewInternal(),this._invalidated=!1),t=new S,
|
||||
e=0;e<this._data.length;e++)i=new _,i.setData(this._data[e]),i.setHitTest(new b(b.REGULAR)),t.append(i);return t},v.StudyPaneView_vertlines.prototype._updateViewInternal=function(){var t,e,i,o,n,r,a,l,c,h,u,d,p,_,f,m,g,v,y,b,S;if(this._data=[],(t=this._study.graphics().vertlines)&&(e=this._study.priceScale(),i=this._study._model.timeScale(),e&&!e.isEmpty()&&i&&!i.isEmpty()))for(o=this._study.graphics().indexes,n=this._model.timeScale().visibleBars(),r=n.firstBar(),a=n.lastBar(),l=0;l<t.length;l++)if(c=t[l],c.data&&(h=this._study.properties().graphics.vertlines[c.styleId],h.visible.value()))for(u=0;u<c.data.length;u++)d=c.data[u],p={},o[d.index]<r||o[d.index]>a||(_=i.indexToCoordinate(o[d.index])+1,f=null,d.extendBottom?m=e.height():(v=d.startPrice,e.isPercent()&&(f=f||this._study.firstValue(),v=e.priceRange().convertToPercent(v,f)),m=e.priceToCoordinate(v)),d.extendTop?g=0:(y=d.endPrice,e.isPercent()&&(f=f||this._study.firstValue(),y=e.priceRange().convertToPercent(y,f)),g=e.priceToCoordinate(y)),b=new s(_,m),S=new s(_,g),p.points=[b,S],p.extendleft=d.extendBottom,p.extendright=d.extendTop,p.width=i.width(),p.height=e.height(),p.color=h.color.value(),p.linewidth=h.width.value(),p.linestyle=h.style.value(),this._data.push(p))},v.StudyPaneView_lines=function(t,e){this._study=t,this._model=e,this._data=[]},v.StudyPaneView_lines.prototype.update=function(){this._invalidated=!0},v.StudyPaneView_lines.prototype.renderer=function(){var t,e,i;for(this._invalidated&&(this._updateViewInternal(),this._invalidated=!1),t=new S,e=0;e<this._data.length;e++)i=new _,i.setData(this._data[e]),i.setHitTest(new b(b.REGULAR)),t.append(i);return t},v.StudyPaneView_lines.prototype._updateViewInternal=function(){var t,e,i,o,n,r,a,l,c,h,u,d,p,_,f,m,g,v,y,b,S,w,T,C,x,P;if(this._data=[],(t=this._study.graphics().lines)&&(e=this._study.priceScale(),i=this._study._model.timeScale(),e&&!e.isEmpty()&&i&&!i.isEmpty()))for(o=this._study.graphics().indexes,n=this._model.timeScale().visibleBars(),r=n.firstBar(),a=n.lastBar(),l=this._study.priceScale().height(),c=i.width(),h=0;h<t.length;h++)if(u=t[h],u.data&&(d=this._study.properties().graphics.lines[u.styleId],d.visible.value()))for(p=0;p<u.data.length;p++)_=u.data[p],f=o[_.startIndex]+(_.startOffset||0),m=o[_.endIndex]+(_.endOffset||0),!_.extendRight&&Math.max(f,m)<r||!_.extendLeft&&Math.min(f,m)>a||(g={},v=i.indexToCoordinate(f),y=i.indexToCoordinate(m),b=_.startPrice,S=_.endPrice,e.isPercent()&&(w=this._study.firstValue(),b=e.priceRange().convertToPercent(b,w),S=e.priceRange().convertToPercent(S,w)),T=e.priceToCoordinate(b),C=e.priceToCoordinate(S),x=new s(v,T),P=new s(y,C),g.points=[x,P],g.width=c,g.height=l,g.color=d.color.value(),g.linewidth=d.width.value(),g.linestyle=d.style.value(),this._data.push(g))},v.StudyPaneView_hlines=function(t,e){this._study=t,this._model=e,this._data=[],this._textData=[]},v.StudyPaneView_hlines.prototype.update=function(){this._invalidated=!0},v.StudyPaneView_hlines.prototype.renderer=function(){var t,e,i;for(this._invalidated&&(this._updateViewInternal(),
|
||||
this._invalidated=!1),t=new S,e=0;e<this._data.length;e++)i=new p,i.setData(this._data[e]),t.append(i);for(e=0;e<this._textData.length;e++)t.append(new d(this._textData[e],new b(b.REGULAR)));return t},v.StudyPaneView_hlines.prototype._updateViewInternal=function(){this._calcHorzLinesData(),this._calcTextData()},v.StudyPaneView_hlines.prototype._calcTextData=function(){var t,e,i,o,n,r,a,l,c,h,u,d,p,_,f;if(this._textData=[],(t=this._study.graphics().hlines)&&(e=this._study.priceScale(),i=this._study._model.timeScale(),e&&!e.isEmpty()&&i&&!i.isEmpty()))for(o=0;o<t.length;o++)if(n=t[o],n.data&&(r=this._study.properties().graphics.hlines[n.styleId],r.enableText.value()&&r.showText.value()))for(a=0;a<n.data.length;a++)l=n.data[a],c={},c.text=void 0===l.text?"":l.text,c.color=r.color.value(),c.font="arial",c.fontsize=r.fontSize.value(),h=l.level,e.isPercent()&&(u=this._study.firstValue(),h=e.priceRange().convertToPercent(h,u)),d=e.priceToCoordinate(h),p=r.textPos.value(),p===CanvasEx.TEXTPOS_TOPLEFT||p===CanvasEx.TEXTPOS_MIDDLELEFT||p===CanvasEx.TEXTPOS_BOTTOMLEFT?(_=4,c.horzAlign="left"):p===CanvasEx.TEXTPOS_TOPCENTER||p===CanvasEx.TEXTPOS_MIDDLECENTER||p===CanvasEx.TEXTPOS_BOTTOMCENTER?(_=i.width()/2,c.horzAlign="center"):p!==CanvasEx.TEXTPOS_TOPRIGHT&&p!==CanvasEx.TEXTPOS_MIDDLERIGHT&&p!==CanvasEx.TEXTPOS_BOTTOMRIGHT||(_=i.width(),c.horzAlign="right"),p===CanvasEx.TEXTPOS_TOPLEFT||p===CanvasEx.TEXTPOS_TOPCENTER||p===CanvasEx.TEXTPOS_TOPRIGHT?(c.vertAlign="bottom",d-=4):p===CanvasEx.TEXTPOS_MIDDLELEFT||p===CanvasEx.TEXTPOS_MIDDLECENTER||p===CanvasEx.TEXTPOS_MIDDLERIGHT?(c.vertAlign="middle",d-=2):p!==CanvasEx.TEXTPOS_BOTTOMLEFT&&p!==CanvasEx.TEXTPOS_BOTTOMCENTER&&p!==CanvasEx.TEXTPOS_BOTTOMRIGHT||(c.vertAlign="top"),f=new s(_,d),c.points=[f],c.offsetX=0,c.offsetY=0,this._textData.push(c)},v.StudyPaneView_hlines.prototype._calcHorzLinesData=function(){var t,e,i,o,n,r,a,l,c,h,u,d;if(this._data=[],(t=this._study.graphics().hlines)&&(e=this._study.priceScale())&&!e.isEmpty())for(i=0;i<t.length;i++)if(o=t[i],o.data&&(n=this._study.properties().graphics.hlines[o.styleId],n.visible.value()))for(r=0;r<o.data.length;r++)a=o.data[r],l={},c=0,h=a.level,e.isPercent()&&(u=this._study.firstValue(),h=e.priceRange().convertToPercent(h,u)),d=e.priceToCoordinate(h),l.points=[new s(c,d)],l.color=n.color.value(),l.linewidth=n.width.value(),l.linestyle=n.style.value(),l.hitTestResult=b.REGULAR,this._data.push(l)},v.StudyPriceAxisView_hlines=m,TradingView.TriangleTextMarkRenderer=function(t,e){this._data=t,this._textCache=e},TradingView.TriangleTextMarkRenderer.prototype.fontStyle=function(){return(this._data.bold?"bold ":"")+(this._data.italic?"italic ":"")+this._data.fontSize+"px "+this._data.font},TradingView.TriangleTextMarkRenderer.prototype.draw=function(t){var e,i,o,n,r,s,a;if(this._data){switch(e="up"===this._data.direction?1:-1,i=this._data.point.x,"left"===this._data.halign?i-=this._data.size:"right"===this._data.halign&&(i+=this._data.size),o=this._data.point.y,t.font=this.fontStyle(),n=t.measureText(this._data.text).width,
|
||||
@@ -1,4 +1,4 @@
|
||||
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n,r,o=window.webpackJsonp;window.webpackJsonp=function(n,i,a){for(var s,u,l,c=0,f=[];c<n.length;c++)u=n[c],r[u]&&f.push(r[u][0]),r[u]=0;for(s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s]);for(o&&o(n,i,a);f.length;)f.shift()();if(a)for(c=0;c<a.length;c++)l=t(t.s=a[c]);return l},n={},r={16:0},t.e=function(e){function n(){a.onerror=a.onload=null,clearTimeout(s);var t=r[e];0!==t&&(t&&t[1](Error("Loading chunk "+e+" failed.")),r[e]=void 0)}var o,i,a,s,u=r[e];return 0===u?new Promise(function(e){e()}):u?u[2]:(o=new Promise(function(t,n){u=r[e]=[t,n]}),u[2]=o,i=document.getElementsByTagName("head")[0],a=document.createElement("script"),a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,t.nc&&a.setAttribute("nonce",t.nc),a.src=t.p+""+({0:"lazy-velocity",1:"lt-pane-views",2:"take-chart-image-dialog-impl",3:"ds-property-pages",4:"go-to-date-dialog-impl",5:"symbol-info-dialog-impl",6:"objecttreedialog",7:"lazy-jquery-ui",8:"editobjectdialog",11:"ie-fallback-logos",12:"propertypagesfactory",14:"library"}[e]||e)+"."+{0:"832705322dfa540785f6",1:"dda44202da975d956b7b",2:"0e1b5c4adb4a0f91ae6b",3:"32e5c40c0d43a1c499d6",4:"1fd01bb757e29b98a2c4",5:"7cc4262db972e773d5ad",6:"33adfe386aa3612bb60e",7:"80fda7f0fdda5f17c4c8",8:"87341e675e49f8f78022",9:"8309436d1561a99a7fad",10:"001220e38ce0a39f882e",11:"8319ee6d7ee230348d2d",12:"37bd38e8744b0cc04a07",13:"03948444fb8e65f7a856",14:"db04e45ec22f0b637da3",15:"14e44c9fe762e0c75635"}[e]+".js",s=setTimeout(n,12e4),a.onerror=a.onload=n,i.appendChild(a),o)},t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="bundles/",t.p=window.WEBPACK_PUBLIC_PATH||t.p,t.oe=function(e){throw console.error(e),e},t(t.s=418)}([,,function(e,t,n){"use strict";e.exports=n(544)},,function(e,t,n){var r=n(18),o=n(95),i=n(79),a=n(96),s=n(68),u="prototype",l=function(e,t,n){var c,f,d,p,h=e&l.F,m=e&l.G,g=e&l.S,y=e&l.P,v=e&l.B,b=m?r:g?r[t]||(r[t]={}):(r[t]||{})[u],_=m?o:o[t]||(o[t]={}),w=_[u]||(_[u]={});m&&(n=t);for(c in n)f=!h&&b&&void 0!==b[c],d=(f?b:n)[c],p=v&&f?s(d,r):y&&"function"==typeof d?s(Function.call,d):d,b&&a(b,c,d,e&l.U),_[c]!=d&&i(_,c,p),y&&w[c]!=d&&(w[c]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},,,,,,,,,function(e,t){function n(e){var t,n,r=kt[e]={};for(e=e.split(/\s+/),t=0,n=e.length;t<n;t++)r[e[t]]=!0;return r}function r(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(j,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:xt.isNumeric(n)?+n:L.test(n)?xt.parseJSON(n):n)}catch(e){}xt.data(e,t,n)}else n=void 0}return n}function o(e){
|
||||
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n,r,o=window.webpackJsonp;window.webpackJsonp=function(n,i,a){for(var s,u,l,c=0,f=[];c<n.length;c++)u=n[c],r[u]&&f.push(r[u][0]),r[u]=0;for(s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s]);for(o&&o(n,i,a);f.length;)f.shift()();if(a)for(c=0;c<a.length;c++)l=t(t.s=a[c]);return l},n={},r={16:0},t.e=function(e){function n(){a.onerror=a.onload=null,clearTimeout(s);var t=r[e];0!==t&&(t&&t[1](Error("Loading chunk "+e+" failed.")),r[e]=void 0)}var o,i,a,s,u=r[e];return 0===u?new Promise(function(e){e()}):u?u[2]:(o=new Promise(function(t,n){u=r[e]=[t,n]}),u[2]=o,i=document.getElementsByTagName("head")[0],a=document.createElement("script"),a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,t.nc&&a.setAttribute("nonce",t.nc),a.src=t.p+""+({0:"lazy-velocity",1:"lt-pane-views",2:"take-chart-image-dialog-impl",3:"ds-property-pages",4:"go-to-date-dialog-impl",5:"symbol-info-dialog-impl",6:"objecttreedialog",7:"lazy-jquery-ui",8:"editobjectdialog",11:"ie-fallback-logos",12:"propertypagesfactory",14:"library"}[e]||e)+"."+{0:"832705322dfa540785f6",1:"7df9edb244fbdda2ee13",2:"b60665314521ef3361a1",3:"bfd2564e4fd770bc0b0c",4:"c121ad9ddaf13331c500",5:"eba97409764f2b04ac83",6:"33adfe386aa3612bb60e",7:"e4174a65a8360a06f2da",8:"c39226f8a9a3231aef9a",9:"8309436d1561a99a7fad",10:"5fc4bebecf627d0a0f2f",11:"8319ee6d7ee230348d2d",12:"37bd38e8744b0cc04a07",13:"44339b003e12eadcd24e",14:"5dad2b9a34c29a058bba",15:"14e44c9fe762e0c75635"}[e]+".js",s=setTimeout(n,12e4),a.onerror=a.onload=n,i.appendChild(a),o)},t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="bundles/",t.p=window.WEBPACK_PUBLIC_PATH||t.p,t.oe=function(e){throw console.error(e),e},t(t.s=418)}([,,function(e,t,n){"use strict";e.exports=n(544)},,function(e,t,n){var r=n(18),o=n(95),i=n(79),a=n(96),s=n(68),u="prototype",l=function(e,t,n){var c,f,d,p,h=e&l.F,m=e&l.G,g=e&l.S,y=e&l.P,v=e&l.B,b=m?r:g?r[t]||(r[t]={}):(r[t]||{})[u],_=m?o:o[t]||(o[t]={}),w=_[u]||(_[u]={});m&&(n=t);for(c in n)f=!h&&b&&void 0!==b[c],d=(f?b:n)[c],p=v&&f?s(d,r):y&&"function"==typeof d?s(Function.call,d):d,b&&a(b,c,d,e&l.U),_[c]!=d&&i(_,c,p),y&&w[c]!=d&&(w[c]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},,,,,,,,,function(e,t){function n(e){var t,n,r=kt[e]={};for(e=e.split(/\s+/),t=0,n=e.length;t<n;t++)r[e[t]]=!0;return r}function r(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(j,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:xt.isNumeric(n)?+n:L.test(n)?xt.parseJSON(n):n)}catch(e){}xt.data(e,t,n)}else n=void 0}return n}function o(e){
|
||||
for(var t in e)if(("data"!==t||!xt.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function i(e,t,n){var r=t+"defer",o=t+"queue",i=t+"mark",a=xt._data(e,r);!a||"queue"!==n&&xt._data(e,o)||"mark"!==n&&xt._data(e,i)||setTimeout(function(){xt._data(e,o)||xt._data(e,i)||(xt.removeData(e,r,!0),a.fire())},0)}function a(){return!1}function s(){return!0}function u(e){return!e||!e.parentNode||11===e.parentNode.nodeType}function l(e,t,n){if(t=t||0,xt.isFunction(t))return xt.grep(e,function(e,r){return!!t.call(e,r,e)===n});if(t.nodeType)return xt.grep(e,function(e,r){return e===t===n});if("string"==typeof t){var r=xt.grep(e,function(e){return 1===e.nodeType});if(ie.test(t))return xt.filter(t,r,!n);t=xt.filter(t,r)}return xt.grep(e,function(e,r){return xt.inArray(e,t)>=0===n})}function c(e){var t=le.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function f(e,t){return xt.nodeName(e,"table")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function d(e,t){if(1===t.nodeType&&xt.hasData(e)){var n,r,o,i=xt._data(e),a=xt._data(t,i),s=i.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,o=s[n].length;r<o;r++)xt.event.add(t,n,s[n][r])}a.data&&(a.data=xt.extend({},a.data))}}function p(e,t){var n;1===t.nodeType&&(t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),n=t.nodeName.toLowerCase(),"object"===n?t.outerHTML=e.outerHTML:"input"!==n||"checkbox"!==e.type&&"radio"!==e.type?"option"===n?t.selected=e.defaultSelected:"input"===n||"textarea"===n?t.defaultValue=e.defaultValue:"script"===n&&t.text!==e.text&&(t.text=e.text):(e.checked&&(t.defaultChecked=t.checked=e.checked),t.value!==e.value&&(t.value=e.value)),t.removeAttribute(xt.expando),t.removeAttribute("_submit_attached"),t.removeAttribute("_change_attached"))}function h(e){return void 0!==e.getElementsByTagName?e.getElementsByTagName("*"):void 0!==e.querySelectorAll?e.querySelectorAll("*"):[]}function m(e){"checkbox"!==e.type&&"radio"!==e.type||(e.defaultChecked=e.checked)}function g(e){var t=(e.nodeName||"").toLowerCase();"input"===t?m(e):"script"!==t&&void 0!==e.getElementsByTagName&&xt.grep(e.getElementsByTagName("input"),m)}function y(e){var t=bt.createElement("div");return ke.appendChild(t),t.innerHTML=e.outerHTML,t.firstChild}function v(e,t,n){var r="width"===t?e.offsetWidth:e.offsetHeight,o="width"===t?1:0,i=4;if(r>0){if("border"!==n)for(;o<i;o+=2)n||(r-=parseFloat(xt.css(e,"padding"+Pe[o]))||0),"margin"===n?r+=parseFloat(xt.css(e,n+Pe[o]))||0:r-=parseFloat(xt.css(e,"border"+Pe[o]+"Width"))||0;return r+"px"}if(r=Le(e,t),(r<0||null==r)&&(r=e.style[t]),Me.test(r))return r;if(r=parseFloat(r)||0,n)for(;o<i;o+=2)r+=parseFloat(xt.css(e,"padding"+Pe[o]))||0,"padding"!==n&&(r+=parseFloat(xt.css(e,"border"+Pe[o]+"Width"))||0),"margin"===n&&(r+=parseFloat(xt.css(e,n+Pe[o]))||0);return r+"px"}function b(e){return function(t,n){if("string"!=typeof t&&(n=t,t="*"),
|
||||
xt.isFunction(n))for(var r,o,i,a=t.toLowerCase().split(Ke),s=0,u=a.length;s<u;s++)r=a[s],i=/^\+/.test(r),i&&(r=r.substr(1)||"*"),o=e[r]=e[r]||[],o[i?"unshift":"push"](n)}}function _(e,t,n,r,o,i){o=o||t.dataTypes[0],i=i||{},i[o]=!0;for(var a,s=e[o],u=0,l=s?s.length:0,c=e===Qe;u<l&&(c||!a);u++)"string"==typeof(a=s[u](t,n,r))&&(!c||i[a]?a=void 0:(t.dataTypes.unshift(a),a=_(e,t,n,r,a,i)));return!c&&a||i["*"]||(a=_(e,t,n,r,"*",i)),a}function w(e,t){var n,r,o=xt.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);r&&xt.extend(!0,e,r)}function x(e,t,n,r){if(xt.isArray(t))xt.each(t,function(t,o){n||Re.test(e)?r(e,o):x(e+"["+("object"==typeof o?t:"")+"]",o,n,r)});else if(n||"object"!==xt.type(t))r(e,t);else for(var o in t)x(e+"["+o+"]",t[o],n,r)}function k(e,t,n){var r,o,i,a,s=e.contents,u=e.dataTypes,l=e.responseFields;for(o in l)o in n&&(t[l[o]]=n[o]);for(;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("content-type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){u.unshift(o);break}if(u[0]in n)i=u[0];else{for(o in n){if(!u[0]||e.converters[o+" "+u[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==u[0]&&u.unshift(i),n[i]}function T(e,t){e.dataFilter&&(t=e.dataFilter(t,e.dataType));var n,r,o,i,a,s,u,l,c=e.dataTypes,f={},d=c.length,p=c[0];for(n=1;n<d;n++){if(1===n)for(r in e.converters)"string"==typeof r&&(f[r.toLowerCase()]=e.converters[r]);if(i=p,"*"===(p=c[n]))p=i;else if("*"!==i&&i!==p){if(a=i+" "+p,!(s=f[a]||f["* "+p])){l=void 0;for(u in f)if(o=u.split(" "),(o[0]===i||"*"===o[0])&&(l=f[o[1]+" "+p])){u=f[u],!0===u?s=l:!0===l&&(s=u);break}}s||l||xt.error("No conversion from "+a.replace(" "," to ")),!0!==s&&(t=s?s(t):l(u(t)))}}return t}function S(){try{return new window.XMLHttpRequest}catch(e){}}function C(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function E(){return setTimeout(M,0),mt=xt.now()}function M(){mt=void 0}function O(e,t){var n={};return xt.each(ht.concat.apply([],ht.slice(0,t)),function(){n[this]=e}),n}function D(e){if(!ut[e]){var t=bt.body,n=xt("<"+e+">").appendTo(t),r=n.css("display");n.remove(),"none"!==r&&""!==r||(lt||(lt=bt.createElement("iframe"),lt.frameBorder=lt.width=lt.height=0),t.appendChild(lt),ct&<.createElement||(ct=(lt.contentWindow||lt.contentDocument).document,ct.write((xt.support.boxModel?"<!doctype html>":"")+"<html><body>"),ct.close()),n=ct.createElement(e),ct.body.appendChild(n),r=xt.css(n,"display"),t.removeChild(lt)),ut[e]=r}return ut[e]}function N(e){return xt.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var P,L,j,A,F,R,I,H,Y,W,U,z,B,V,q,$,K,G,J,X,Q,Z,ee,te,ne,re,oe,ie,ae,se,ue,le,ce,fe,de,pe,he,me,ge,ye,ve,be,_e,we,xe,ke,Te,Se,Ce,Ee,Me,Oe,De,Ne,Pe,Le,je,Ae,Fe,Re,Ie,He,Ye,We,Ue,ze,Be,Ve,qe,$e,Ke,Ge,Je,Xe,Qe,Ze,et,tt,nt,rt,ot,it,at,st,ut,lt,ct,ft,dt,pt,ht,mt,gt,yt,vt,bt=window.document,_t=window.navigator,wt=window.location,xt=function(){function e(){if(!i.isReady){try{bt.documentElement.doScroll("left")}catch(t){return void setTimeout(e,1)}i.ready()}}var t,n,r,o,i=function(e,n){
|
||||
return new i.fn.init(e,n,t)},a=window.jQuery,s=window.$,u=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,l=/\S/,c=/^\s+/,f=/\s+$/,d=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,p=/^[\],:{}\s]*$/,h=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,m=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,g=/(?:^|:|,)(?:\s*\[)+/g,y=/(webkit)[ \/]([\w.]+)/,v=/(opera)(?:.*version)?[ \/]([\w.]+)/,b=/(msie) ([\w.]+)/,_=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z]|[0-9])/gi,x=/^-ms-/,k=function(e,t){return(t+"").toUpperCase()},T=_t.userAgent,S=Object.prototype.toString,C=Object.prototype.hasOwnProperty,E=Array.prototype.push,M=Array.prototype.slice,O=String.prototype.trim,D=Array.prototype.indexOf,N={};return i.fn=i.prototype={constructor:i,init:function(e,t,n){var r,o,a,s;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("body"===e&&!t&&bt.body)return this.context=bt,this[0]=bt.body,this.selector=e,this.length=1,this;if("string"==typeof e){if(!(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:u.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1])return t=t instanceof i?t[0]:t,s=t?t.ownerDocument||t:bt,a=d.exec(e),a?i.isPlainObject(t)?(e=[bt.createElement(a[1])],i.fn.attr.call(e,t,!0)):e=[s.createElement(a[1])]:(a=i.buildFragment([r[1]],[s]),e=(a.cacheable?i.clone(a.fragment):a.fragment).childNodes),i.merge(this,e);if((o=bt.getElementById(r[2]))&&o.parentNode){if(o.id!==r[2])return n.find(e);this.length=1,this[0]=o}return this.context=bt,this.selector=e,this}return i.isFunction(e)?n.ready(e):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),i.makeArray(e,this))},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return M.call(this,0)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=this.constructor();return i.isArray(e)?E.apply(r,e):i.merge(r,e),r.prevObject=this,r.context=this.context,"find"===t?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return i.each(this,e,t)},ready:function(e){return i.bindReady(),r.add(e),this},eq:function(e){return e=+e,-1===e?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(M.apply(this,arguments),"slice",M.call(arguments).join(","))},map:function(e){return this.pushStack(i.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},i.fn.init.prototype=i.fn,i.extend=i.fn.extend=function(){var e,t,n,r,o,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},u=2),"object"==typeof s||i.isFunction(s)||(s={}),l===u&&(s=this,--u);u<l;u++)if(null!=(e=arguments[u]))for(t in e)n=s[t],r=e[t],s!==r&&(c&&r&&(i.isPlainObject(r)||(o=i.isArray(r)))?(o?(o=!1,a=n&&i.isArray(n)?n:[]):a=n&&i.isPlainObject(n)?n:{},
|
||||
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
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
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
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
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
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
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
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user