initial commit with charts and assistant chat

This commit is contained in:
2026-03-02 00:08:19 -04:00
commit d907c5765e
1828 changed files with 50054 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[607],{14472:(e,t,i)=>{i.r(t),i.d(t,{LineDataSourceDefinitionsViewModel:()=>g,LineDataSourceTabTypes:()=>s,pointPriceBarTitle:()=>v});var s,o=i(50151),r=i(11542),n=i(95804),l=(i(40167),i(95338)),a=i(60567),u=i(22613),p=i(73863),d=i(97578),c=i(81634),y=i(36313);!function(e){e.Visibility="visibility",e.Coordinates="coordinates",e.Style="style",e.Text="text",e.Inputs="inputs"}(s||(s={}));const h=r.t(null,void 0,i(40091)),_=r.t(null,void 0,i(78930)),f=r.t(null,void 0,i(92516)),P=r.t(null,void 0,i(70320)),S=r.t(null,void 0,i(21429)),v=r.t(null,{context:"linetool point"},i(80166));class g{constructor(e,t){this._yCoordinateStepWV=null,this._propertyPages=[],this._source=t,this._undoModel=e,this._ownerSource=(0,o.ensureNotNull)(this._source.ownerSource()),this._propertyApplier=new c.PropertyApplierWithoutSavingChart((()=>e)),this._createPropertyRages()}destroy(){null!==this._yCoordinateStepWV&&(this._source.ownerSourceChanged().unsubscribeAll(this),this._ownerSource.priceStepChanged().unsubscribeAll(this)),this._source.pointAdded().unsubscribeAll(this),this._propertyPages.forEach((e=>{(0,l.destroyDefinitions)(e.definitions.value())}))}propertyPages(){return Promise.resolve(this._propertyPages)}_createPropertyRages(){this._propertyPages=[];const e=this._createInputsPropertyPage();null!==e&&this._propertyPages.push(e);const t=this._createStylePropertyPage();null!==t&&this._propertyPages.push(t);const i=this._createTextPropertyPage();null!==i&&this._propertyPages.push(i);const s=this._createCoordinatesPropertyPage();null!==s&&(s.visible=this._source.hasEditableCoordinates(),this._propertyPages.push(s));const o=this._createVisibilitiesPropertyPage();this._propertyPages.push(o)}_createVisibilitiesPropertyPage(){const e=this._source.properties().childs().intervalsVisibilities.childs();return(0,a.createPropertyPage)((0,p.getIntervalsVisibilitiesPropertiesDefinitions)(this._propertyApplier,e,new n.TranslatedString(this._source.name(),this._source.title(y.TitleDisplayTarget.StatusLine,!0))),"visibility",h)}_createCoordinatesPropertyPage(){const e=this._coordinatesPropertyDefinitions();return null!==e?(e.definitions.length<this._source.pointsCount()&&this._source.pointAdded().subscribe(this,this._updateCoordinatesPropertyDefinitons),(0,a.createPropertyPage)(e,"coordinates",_)):null}_getYCoordinateStepWV(){return null===this._yCoordinateStepWV&&(this._yCoordinateStepWV=new u.WatchedValue(function(e){if(null!==e){const t=e.priceStep();if(null!==t)return t}return 1}(this._source.ownerSource())),this._ownerSource.priceStepChanged().subscribe(this,(()=>this._updateYCoordinateStep())),this._source.ownerSourceChanged().subscribe(this,(()=>{this._ownerSource.priceStepChanged().unsubscribeAll(this),this._ownerSource=(0,o.ensureNotNull)(this._source.ownerSource()),this._ownerSource.priceStepChanged().subscribe(this,(()=>this._updateYCoordinateStep()))}))),this._yCoordinateStepWV}_coordinatesPropertyDefinitions(){
const e=this._source.points(),t=this._source.pointsProperty().childs().points,i=[],s=this._getYCoordinateStepWV();return e.forEach(((e,o)=>{const r=t[o].childs();r&&i.push((0,d.getCoordinatesPropertiesDefinitions)(this._propertyApplier,r,e,s,v.format({count:(o+1).toString()}),this._source.name()))})),{definitions:i}}_createStylePropertyPage(){const e=this._stylePropertyDefinitions();return null!==e?(0,a.createPropertyPage)(e,"style",f):null}_stylePropertyDefinitions(){return null}_createTextPropertyPage(){const e=this._textPropertyDefinitions();return null!==e?(0,a.createPropertyPage)(e,"text",P):null}_textPropertyDefinitions(){return null}_createInputsPropertyPage(){const e=this._inputsPropertyDefinitions();return null!==e?(0,a.createPropertyPage)(e,"inputs",S):null}_inputsPropertyDefinitions(){return null}_updateYCoordinateStep(){const e=this._ownerSource.priceStep();this._getYCoordinateStepWV().setValue(e||1)}_updateCoordinatesPropertyDefinitons(){const e=this._coordinatesPropertyDefinitions();if(null!==e){(0,o.ensureDefined)(this._propertyPages.find((e=>"coordinates"===e.id))).definitions.setValue(e.definitions),this._source.points().length===this._source.pointsCount()&&this._source.pointAdded().unsubscribeAll(this)}}}},3223:(e,t,i)=>{i.r(t),i.d(t,{RegressionTrendDefinitionsViewModel:()=>V});var s=i(11542),o=i(95804),r=(i(40167),i(95338)),n=i(34108),l=i(91682),a=i(57058);const u=new o.TranslatedString("change {title} base line visibility",s.t(null,void 0,i(96177))),p=new o.TranslatedString("change {title} base line color",s.t(null,void 0,i(78509))),d=new o.TranslatedString("change {title} base line width",s.t(null,void 0,i(17926))),c=new o.TranslatedString("change {title} base line style",s.t(null,void 0,i(57853))),y=new o.TranslatedString("change {title} up line visibility",s.t(null,void 0,i(42553))),h=new o.TranslatedString("change {title} up line color",s.t(null,void 0,i(89178))),_=new o.TranslatedString("change {title} up line width",s.t(null,void 0,i(63824))),f=new o.TranslatedString("change {title} up line style",s.t(null,void 0,i(51188))),P=new o.TranslatedString("change {title} down line visibility",s.t(null,void 0,i(46410))),S=new o.TranslatedString("change {title} down line color",s.t(null,void 0,i(41638))),v=new o.TranslatedString("change {title} down line width",s.t(null,void 0,i(64615))),g=new o.TranslatedString("change {title} down line style",s.t(null,void 0,i(51842))),m=new o.TranslatedString("change {title} extend lines",s.t(null,void 0,i(76295))),b=new o.TranslatedString("change {title} show pearson's r",s.t(null,void 0,i(6207))),D=s.t(null,void 0,i(42398)),I=s.t(null,void 0,i(22691)),w=s.t(null,void 0,i(71776)),T=s.t(null,void 0,i(13350)),C=s.t(null,void 0,i(819));class V extends n.StudyLineDataSourceDefinitionsViewModel{constructor(e,t){super(e,t)}_stylePropertyDefinitions(){const e=this._source.properties().childs().styles.childs(),t=this._source.name(),i=(0,l.removeSpaces)(t),s=new o.TranslatedString(t,this._source.translatedType()),n=e.baseLine.childs(),V=(0,
r.createLinePropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(this._propertyApplier,new a.StudyPlotVisibleProperty(n.display),u.format({title:s})),color:(0,r.getColorDefinitionProperty)(this._propertyApplier,n.color,e.transparency,p.format({title:s})),width:(0,r.convertToDefinitionProperty)(this._propertyApplier,n.linewidth,d.format({title:s})),style:(0,r.convertToDefinitionProperty)(this._propertyApplier,n.linestyle,c.format({title:s}))},{id:`${i}BaseLine`,title:D}),A=e.upLine.childs(),M=(0,r.createLinePropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(this._propertyApplier,new a.StudyPlotVisibleProperty(A.display),y.format({title:s})),color:(0,r.getColorDefinitionProperty)(this._propertyApplier,A.color,e.transparency,h.format({title:s})),width:(0,r.convertToDefinitionProperty)(this._propertyApplier,A.linewidth,_.format({title:s})),style:(0,r.convertToDefinitionProperty)(this._propertyApplier,A.linestyle,f.format({title:s}))},{id:`${i}UpLine`,title:I}),L=e.downLine.childs();return{definitions:[V,M,(0,r.createLinePropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(this._propertyApplier,new a.StudyPlotVisibleProperty(L.display),P.format({title:s})),color:(0,r.getColorDefinitionProperty)(this._propertyApplier,L.color,e.transparency,S.format({title:s})),width:(0,r.convertToDefinitionProperty)(this._propertyApplier,L.linewidth,v.format({title:s})),style:(0,r.convertToDefinitionProperty)(this._propertyApplier,L.linestyle,g.format({title:s}))},{id:`${i}DownLine`,title:w}),(0,r.createCheckablePropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(this._propertyApplier,e.extendLines,m.format({title:s}))},{id:`${i}ExtendLines`,title:C}),(0,r.createCheckablePropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(this._propertyApplier,e.showPearsons,b.format({title:s}))},{id:`${i}Pearsons`,title:T})]}}}},34108:(e,t,i)=>{i.r(t),i.d(t,{StudyLineDataSourceDefinitionsViewModel:()=>p});var s=i(11542),o=(i(40167),i(48096)),r=i(95338),n=i(14472),l=i(32823),a=i(97578),u=i(91682);class p extends n.LineDataSourceDefinitionsViewModel{constructor(e,t){super(e,t)}_inputsPropertyDefinitions(){return{definitions:[(0,r.createStudyInputsPropertyDefinition)({},{id:"StudyInputs",inputs:new l.MetaInfoHelper(this._source.metaInfo()).getUserEditableInputs(),inputsTabProperty:this._source.properties(),model:this._undoModel,studyMetaInfo:this._source.metaInfo(),source:{isInputsStudy:!0,symbolsResolved:()=>new o.Delegate,resolvedSymbolInfoBySymbol:e=>null}})]}}_coordinatesPropertyDefinitions(){const e=this._source.points(),t=this._source.pointsProperty().childs().points,o=[];return e.forEach(((e,n)=>{const l=t[n].childs();if(!l)return;const p=(0,a.getCoordinateXMetaInfo)(this._propertyApplier,l);o.push((0,r.createCoordinatesPropertyDefinition)({x:p.property},{id:(0,u.removeSpaces)(`${this._source.name()}Point${n}`),title:s.t(null,{context:"linetool point"},i(13616)).format({count:(n+1).toString()}),...p.info}))})),{definitions:o}}}},70162:(e,t,i)=>{i.r(t),i.d(t,{StudyOverlayDefinitionsViewModel:()=>X})
;var s=i(11542),o=i(95804),r=i(37103),n=i(50151),l=(i(40167),i(95338)),a=i(60567),u=i(69422),p=i(22613),d=i(3618),c=i(91682);const y=new o.TranslatedString("change {inputName} property",s.t(null,void 0,i(66110)));function h(e,t){const i=e.id;return i!==u.RangeDependentStudyInputNames.FirstBar&&i!==u.RangeDependentStudyInputNames.LastBar&&("time"!==e.type&&(!e.isHidden&&(!(t&&!e.confirm)&&void 0===e.groupId)))}function _(e){return e.name||(0,c.capitalizeFirstLetterInWord)(e.id.toLowerCase())}var f,P=i(19844),S=i(87296),v=i(36313),g=i(73863),m=i(44360);!function(e){e.Style="style",e.Inputs="inputs",e.Visibility="visibility"}(f||(f={}));const b=s.t(null,void 0,i(92516)),D=s.t(null,void 0,i(21429)),I=s.t(null,void 0,i(40091)),w=["1","3","5","15","30","45","60","120","180","240","1D","1W","1M"].map((e=>({value:e,title:(0,S.getTranslatedResolutionModel)(e).hint})));class T{constructor(e,t){this._inputSourceItems=null,this._propertyPages=[],this._sourceInput=null,this._source=t,this._undoModel=e;const i=this._sortInputs(this._source.metaInfo().inputs);for(const e of i)"source"===e.type&&(this._sourceInput=e);this._createPropertyRages(),null!==this._inputSourceItems&&this._undoModel.model().dataSourceCollectionChanged().subscribe(this,(()=>{null!==this._inputSourceItems&&this._inputSourceItems.setValue(this._getInputSourceItems())}))}destroy(){null!==this._inputSourceItems&&this._undoModel.model().dataSourceCollectionChanged().unsubscribeAll(this),this._propertyPages.forEach((e=>{(0,l.destroyDefinitions)(e.definitions.value())}))}propertyPages(){return Promise.resolve(this._propertyPages)}_createPropertyRages(){this._propertyPages=[];const e=this._createInputsPropertyPage();null!==e&&this._propertyPages.push(e);const t=this._createStylePropertyPage();null!==t&&this._propertyPages.push(t),this._propertyPages.push(this._createVisibilitiesPropertyPage())}_createStylePropertyPage(){const e=this._stylePropertyDefinitions();return null!==e?(0,a.createPropertyPage)(e,"style",b):null}_createVisibilitiesPropertyPage(){const e=this._source.properties().childs().intervalsVisibilities.childs();return(0,a.createPropertyPage)((0,g.getIntervalsVisibilitiesPropertiesDefinitions)(this._undoModel,e,new o.TranslatedString(this._source.name(!0),this._source.title(v.TitleDisplayTarget.StatusLine,!0))),"visibility",I)}_stylePropertyDefinitions(){return null}_createInputsPropertyPage(){const e=this._inputsPropertyDefinitions();return null!==e?(0,a.createPropertyPage)(e,"inputs",D):null}_inputsPropertyDefinitions(){const e=this._sortInputs(this._source.metaInfo().inputs),t=this._source.properties().childs().inputs.childs();return null!==this._sourceInput&&(this._inputSourceItems=new p.WatchedValue(this._getInputSourceItems())),function(e,t,i,s,r){const a=[];for(const u of t){if(!h(u,s))continue;const t=_(u),c=`StudyInput${u.id}`,f=(0,d.getTranslatedInputTitle)(t),P=new o.TranslatedString(t,f);let S=null;if("resolution"===u.type)S=(0,l.createOptionsPropertyDefinition)({option:(0,l.convertToDefinitionProperty)(e,i[u.id],y.format({inputName:P}))},{
id:c,title:f,options:new p.WatchedValue(r.resolutionItems)});else if("source"===u.type){const t=(0,n.ensure)(r.sourcesItems);S=(0,l.createOptionsPropertyDefinition)({option:(0,l.convertToDefinitionProperty)(e,i[u.id],y.format({inputName:P}))},{id:c,title:f,options:t})}else if("options"in u&&void 0!==u.options){const t=[];for(const e of u.options){const i=u.optionsTitles&&u.optionsTitles[e]||e,s=(0,d.getTranslatedInputTitle)(i);t.push({value:e,title:s})}S=(0,l.createOptionsPropertyDefinition)({option:(0,l.convertToDefinitionProperty)(e,i[u.id],y.format({inputName:P}))},{id:c,title:f,options:new p.WatchedValue(t)})}else if("symbol"===u.type){const t=i[u.id],s=(0,n.ensure)(r.getSymbolInfoBySymbol),o=(0,n.ensure)(r.onSymbolsInfosChanged);S=(0,l.createSymbolPropertyDefinition)({symbol:(0,l.getSymbolDefinitionProperty)(e,t,s,o,y.format({inputName:P}),r.customSymbolInputSetter)},{id:c,title:f})}else if("session"===u.type)S=(0,l.createSessionPropertyDefinition)({session:(0,l.convertToDefinitionProperty)(e,i[u.id],y.format({inputName:P}))},{id:c,title:f});else if("bool"===u.type)S=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,i[u.id],y.format({inputName:P}))},{id:c,title:f});else if("integer"===u.type||"float"===u.type||"price"===u.type){const t={id:c,title:f,type:"float"===u.type||"price"===u.type?1:0,defval:u.defval};void 0!==u.min&&(t.min=new p.WatchedValue(u.min)),void 0!==u.max&&(t.max=new p.WatchedValue(u.max)),void 0!==u.step&&isFinite(u.step)&&u.step>0&&(t.step=new p.WatchedValue(u.step)),S=(0,l.createNumberPropertyDefinition)({value:(0,l.convertToDefinitionProperty)(e,i[u.id],y.format({inputName:P}))},t)}else S=(0,l.createTextPropertyDefinition)({text:(0,l.convertToDefinitionProperty)(e,i[u.id],y.format({inputName:P}))},{id:c,title:f,isEditable:!0,isMultiLine:!1});a.push(S)}return 0===a.length?null:{definitions:a}}(this._undoModel,e,t,!1,{resolutionItems:w,customSymbolInputSetter:this._customSymbolInputSetter(),getSymbolInfoBySymbol:this._getSymbolInfoBySymbol.bind(this),onSymbolsInfosChanged:this._source.symbolsResolved(),sourcesItems:this._inputSourceItems})}_sortInputs(e){return e}_getInputSourceItems(){const e=m.basePriceSources.slice(),t=(0,n.ensureNotNull)(this._sourceInput);if(this._source&&this._source.isChildStudy()){const i=this._source.inputs()[t.id],s=(0,n.ensureNotNull)(this._source.parentSourceForInput(i.v)),o=s.title(v.TitleDisplayTarget.StatusLine),r=P.StudyMetaInfo.getChildSourceInputTitles(t,s.metaInfo(),o);for(const t of Object.keys(r))e.push({id:t,value:t,title:r[t]})}if(r.enabled("study_on_study")&&this._source&&(this._source.isChildStudy()||P.StudyMetaInfo.canBeChild(this._source.metaInfo()))){const t=new Set([this._source,...this._source.getAllChildren()]);this._undoModel.model().allStudies().filter((e=>e.canHaveChildren()&&!t.has(e))).forEach((t=>{const i=t.title(v.TitleDisplayTarget.StatusLine,!0,void 0,!0),s=t.sourceId()||"#"+t.id(),o=t.metaInfo(),r=o.styles,l=o.plots||[];if(1===l.length)e.push({id:s,value:s,title:i});else if(l.length>1){
const t=l.reduce(((e,t,o)=>{if(!P.StudyMetaInfo.canPlotBeSourceOfChildStudy(t.type))return e;let l;try{l=(0,n.ensureDefined)((0,n.ensureDefined)(r)[t.id]).title}catch(e){l=t.id}return{...e,[`${s}$${o}`]:`${i}: ${l}`}}),{});for(const i of Object.keys(t))e.push({id:i,value:i,title:t[i]})}}))}return e}_customSymbolInputSetter(){}_getSymbolInfoBySymbol(e){return this._source.resolvedSymbolInfoBySymbol(e.value())}}var C=i(42258),V=i(37903),A=i(95059),M=i(14032);const L=new o.TranslatedString("change study overlay style",s.t(null,void 0,i(82924))),W=new o.TranslatedString("change price line visibility",s.t(null,void 0,i(8662))),k=new o.TranslatedString("change study overlay min tick",s.t(null,void 0,i(91109))),x=s.t(null,void 0,i(27377)),N=s.t(null,void 0,i(45054)),B=s.t(null,void 0,i(13459)),E=s.t(null,void 0,i(55761)),O=s.t(null,void 0,i(3554)),R=s.t(null,void 0,i(34456)),$=s.t(null,void 0,i(99906)),U=s.t(null,void 0,i(59213)),H=s.t(null,void 0,i(98236)),F=s.t(null,void 0,i(9394)),Y=s.t(null,void 0,i(69217)),G=s.t(null,void 0,i(886)),j=s.t(null,void 0,i(92516)),q=s.t(null,void 0,i(72926)),z=s.t(null,void 0,i(64075)),J=[{title:x,value:0},{title:N,value:1},{title:B,value:9},{title:E,value:13},{title:O,value:2},{title:F,value:14},{title:Y,value:15},{title:R,value:3},{title:$,value:16},{title:U,value:10},{title:G,value:21}];r.enabled("chart_style_hilo")&&J.push({title:H,value:12});class X extends T{constructor(e,t){super(e,t),this._stylesPropertyPage=null,this.propertyPages().then((e=>{this._stylesPropertyPage=e.filter((e=>"style"===e.id))[0]})),this._source.properties().childs().style.subscribe(this,(e=>{null!==this._stylesPropertyPage&&((0,l.destroyDefinitions)(this._stylesPropertyPage.definitions.value()),this._stylesPropertyPage.definitions.setValue(this._stylePropertyDefinitions().definitions)),this._availableStylesWV?.setValue(this._availableStyles())}))}destroy(){this._source.properties().childs().style.unsubscribeAll(this),this._source.symbolResolved().unsubscribeAll(this),super.destroy()}_customSymbolInputSetter(){return e=>{this._undoModel.setSymbol(this._source,e)}}_stylePropertyDefinitions(){void 0===this._availableStylesWV&&(this._availableStylesWV=new p.WatchedValue(this._availableStyles()),this._source.symbolResolved().subscribe(this,(()=>{this._availableStylesWV?.setValue(this._availableStyles())})));const e=this._source.properties().childs(),t=(0,l.createOptionsPropertyDefinition)({option:(0,l.convertToDefinitionProperty)(this._undoModel,e.style,L)},{id:"StudyOverlayStyle",title:j,options:this._availableStylesWV}),i=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._undoModel,e.showPriceLine,W)},{id:"StudyOverlayPriceLine",title:q}),s=(0,l.createOptionsPropertyDefinition)({option:(0,l.convertToDefinitionProperty)(this._undoModel,e.minTick,k)},{id:"StudyOverlayMinTick",title:z,options:new p.WatchedValue((0,V.seriesPrecisionValues)())}),o=(0,c.removeSpaces)(this._source.title(v.TitleDisplayTarget.StatusLine));return{definitions:[(0,
l.createPropertyDefinitionsGeneralGroup)([t,...this._getSeriesStylesDefinitions()],`SeriesStyleGroup${o}`),i,s]}}_getSeriesStylesDefinitions(){const e=this._source.properties().childs(),t=e.style.value();return(0,C.getSeriesStylePropertiesDefinitions)(this._undoModel,e,t,{seriesPriceSources:m.basePriceSources,isJapaneseChartsAvailable:!1},"mainSeries",M.LineStylePropertyDefinitionsMode.Simple)}_availableStyles(){const e=this._source.symbolInfo();return J.map((t=>t.readonly?t:{readonly:!1,value:t.value,title:t.title,disabled:(0,A.isCloseBasedSymbol)(e)&&!(0,A.isSingleValueBasedStyle)(t.value)||"hlc"===e?.visible_plots_set&&!((0,A.isHLCBasedStyle)(t.value)||(0,A.isSingleValueBasedStyle)(t.value))}))}}},48282:(e,t,i)=>{i.d(t,{isCustomStudy:()=>o});const s={VbPFixed:!0,PivotPointsStandard:!0,VbPVisible:!0,VbPAnchored:!0};function o(e){return e in s}},32823:(e,t,i)=>{i.d(t,{MetaInfoHelper:()=>c});var s=i(50151),o=i(9343),r=i(19844),n=i(4359),l=i(87465),a=i(69422);function u(e){return!e.groupId&&!e.isHidden&&e.id!==a.RangeDependentStudyInputNames.FirstBar&&e.id!==a.RangeDependentStudyInputNames.LastBar}var p=i(48282);const d=(0,o.getLogger)("Platform.GUI.PropertyDialog.Indicators.MetaInfo");class c{constructor(e){this._metaInfo=e}hasUserEditableInputs(){return this._metaInfo.inputs.some(u)}getUserEditableInputs(){return this._metaInfo.inputs.filter(u)}hasUserEditableProperties(){return r.StudyMetaInfo.isScriptStrategy(this._metaInfo)}hasUserEditableStyles(){const e=this._metaInfo;return e.plots.length>0||void 0!==e.bands||void 0!==e.filledAreas||(0,p.isCustomStudy)(e.shortId)||r.StudyMetaInfo.isScriptStrategy(this._metaInfo)||Object.values(e.graphics).some((e=>void 0!==e))}getUserEditablePlots(){const e=new Set,t=this._metaInfo;return t.plots.filter((i=>{if((0,n.isColorerPlot)(i)||(0,n.isTextColorerPlot)(i)||(0,n.isDataOffsetPlot)(i)||(0,n.isOhlcColorerPlot)(i)||(0,n.isAlertConditionPlot)(i)||(0,n.isDataPlot)(i))return!1;if((0,n.isOhlcPlot)(i)){const o=i.target;if(e.has(o))return!1;e.add(o);const r=(0,s.ensureDefined)(t.ohlcPlots);return!(0,s.ensureDefined)(r[o]).isHidden}{const e=t.styles?t.styles[i.id]:void 0;return void 0===e||!e.isHidden}}))}hasUserEditableOptions(){return this.hasUserEditableInputs()||this.hasUserEditableProperties()||this.hasUserEditableStyles()}getStrategyProperties(){const e=this._metaInfo,t=e.inputs.filter(h),i={...y};for(const s of t){const t=s.internalID;i[t]=s,y.hasOwnProperty(t)||d.logWarn(`Unknown strategy input internal id ${t} in ${e.fullId}`)}return(0,l.clone)(i)}}const y={currency:void 0,backtest_fill_limits_assumption:void 0,calc_on_every_tick:void 0,calc_on_order_fills:void 0,commission_value:void 0,commission_type:void 0,initial_capital:void 0,pyramiding:void 0,slippage:void 0,default_qty_type:void 0,default_qty_value:void 0,margin_long:void 0,margin_short:void 0,use_bar_magnifier:void 0,process_orders_on_close:void 0,fill_orders_on_standard_ohlc:void 0};function h(e){return"strategy_props"===e.groupId}},57058:(e,t,i)=>{i.d(t,{StudyPlotVisibleProperty:()=>r});var s=i(38486),o=i(79603)
;class r extends o.PropertyBase{constructor(e){super(),this._displayProperty=e,this._displayProperty.subscribe(this,this._displayPropertyValueChanged)}destroy(){this._displayProperty.unsubscribe(this,this._displayPropertyValueChanged),this._listeners.destroy()}value(){return 0!==this._displayProperty.value()}setValue(e,t){this._displayProperty.setValue(e?15:0)}setValueSilently(e){this._displayProperty.setValueSilently(e?15:0)}storeStateIfUndefined(){return!1}weakReference(){return(0,s.weakReference)(this)}ownership(){return(0,s.ownership)(this)}_displayPropertyValueChanged(){this.fireChanged()}}}}]);