Files
ai/charting_library/bundles/new-edit-object-dialog.1ef64942a9d85088f33c.js

33 lines
95 KiB
JavaScript

(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5237],{40446:e=>{e.exports={small:"small-CtnpmPzP",medium:"medium-CtnpmPzP",large:"large-CtnpmPzP",switchView:"switchView-CtnpmPzP",checked:"checked-CtnpmPzP",disabled:"disabled-CtnpmPzP",track:"track-CtnpmPzP",thumb:"thumb-CtnpmPzP"}},62293:e=>{e.exports={switcher:"switcher-fwE97QDf",input:"input-fwE97QDf",thumbWrapper:"thumbWrapper-fwE97QDf",disabled:"disabled-fwE97QDf",checked:"checked-fwE97QDf"}},39600:e=>{e.exports={scrollable:"scrollable-vwgPOHG8",tabs:"tabs-vwgPOHG8"}},64672:e=>{e.exports={defaultsButtonText:"defaultsButtonText-aJgjxj2V",defaultsButtonItem:"defaultsButtonItem-aJgjxj2V",defaultsButtonIcon:"defaultsButtonIcon-aJgjxj2V"}},33347:e=>{e.exports={themesButtonText:"themesButtonText-AeBgp7zz",themesButtonIcon:"themesButtonIcon-AeBgp7zz",defaultsButtonText:"defaultsButtonText-AeBgp7zz",defaultsButtonItem:"defaultsButtonItem-AeBgp7zz"}},52417:e=>{e.exports={separator:"separator-QjUlCDId",small:"small-QjUlCDId",normal:"normal-QjUlCDId",large:"large-QjUlCDId"}},61893:e=>{e.exports={"link-item":"link-item-eIA09f0e"}},26946:e=>{e.exports={"arrow-icon":"arrow-icon-NIrWNOPk",dropped:"dropped-NIrWNOPk","size-xsmall":"size-xsmall-NIrWNOPk","size-small":"size-small-NIrWNOPk","size-medium":"size-medium-NIrWNOPk","size-large":"size-large-NIrWNOPk","size-xlarge":"size-xlarge-NIrWNOPk"}},3257:e=>{e.exports={"underline-tab":"underline-tab-cfYYXvwA","disable-focus-outline":"disable-focus-outline-cfYYXvwA","enable-cursor-pointer":"enable-cursor-pointer-cfYYXvwA",disabled:"disabled-cfYYXvwA",selected:"selected-cfYYXvwA","disable-active-state-styles":"disable-active-state-styles-cfYYXvwA","size-xsmall":"size-xsmall-cfYYXvwA","size-small":"size-small-cfYYXvwA","size-medium":"size-medium-cfYYXvwA","size-large":"size-large-cfYYXvwA","size-xlarge":"size-xlarge-cfYYXvwA",fake:"fake-cfYYXvwA","margin-xsmall":"margin-xsmall-cfYYXvwA","margin-small":"margin-small-cfYYXvwA","margin-medium":"margin-medium-cfYYXvwA","margin-large":"margin-large-cfYYXvwA","margin-xlarge":"margin-xlarge-cfYYXvwA",collapse:"collapse-cfYYXvwA","ellipsis-children":"ellipsis-children-cfYYXvwA"}},52915:e=>{e.exports={"scroll-wrap":"scroll-wrap-SmxgjhBJ","size-xlarge":"size-xlarge-SmxgjhBJ","enable-scroll":"enable-scroll-SmxgjhBJ","underline-tabs":"underline-tabs-SmxgjhBJ","size-large":"size-large-SmxgjhBJ","size-medium":"size-medium-SmxgjhBJ","size-small":"size-small-SmxgjhBJ","size-xsmall":"size-xsmall-SmxgjhBJ","make-grid-column":"make-grid-column-SmxgjhBJ","stretch-tabs":"stretch-tabs-SmxgjhBJ","equal-tab-size":"equal-tab-size-SmxgjhBJ"}},38057:e=>{e.exports={underline:"underline-Pun8HxCz",center:"center-Pun8HxCz",corner:"corner-Pun8HxCz",disabled:"disabled-Pun8HxCz"}},87688:(e,t,l)=>{"use strict";l.d(t,{DialogTabs:()=>o});var n=l(79474),r=l(60591);const o=n.forwardRef((function(e,t){const{id:l,tabs:o,activeTab:s,onChange:i,className:a}=e;return n.createElement("div",{className:a,ref:t},n.createElement(r.UnderlineButtonTabs,{id:l,items:o,isActive:function(e){return e.id===s},
onActivate:function(e){i(e.id)},overflowBehaviour:"scroll"}))}))},37542:(e,t,l)=>{"use strict";l.r(t),l.d(t,{EditObjectDialogRenderer:()=>$l});var n=l(79474),r=l(85842),o=l(91599),s=l(16905),i=l(72769),a=l(59793),c=l(82287),d=l(96375),p=l(64906),u=l(51349),h=l(11463),m=l(75026),y=l(62352),v=l(34022),g=l(49104),b=l(74417),f=l(87688),w=l(38595),C=l(39600);class S extends n.PureComponent{constructor(e){super(e),this._handleClose=e=>{const{onClose:t,closeOnOutsideClick:l=!0}=this.props;l&&(e?.target&&(e.target.closest('[data-dialog-name="gopro"]')||e.target.closest("[data-name=support-dialog]"))||t())},this._handleResetToDefaults=()=>{const{source:e,model:t}=this.props;(0,y.isStudy)(e)&&t.restorePropertiesForSource(e)},this._handleSaveAsDefaults=()=>{const{source:e}=this.props;(0,y.isStudy)(e)&&(e.properties().saveDefaults(),d.emit("study_dialog_save_defaults",e.id()))},this._renderFooterLeft=e=>{const{source:t,model:l}=this.props;if((0,g.isLineTool)(t))return n.createElement(b.FooterMenu,{sources:[t],chartUndoModel:l});if((0,y.isStudy)(t))return n.createElement(w.PropertyActions,{saveAsDefaults:this._handleSaveAsDefaults,resetToDefaults:this._handleResetToDefaults,mode:e?"compact":"normal"});throw new TypeError("Unsupported source type.")},this._handleSelect=e=>{this.setState({activeTabId:e},(()=>{this._requestResize&&this._requestResize()})),this.props.onActiveTabChanged&&this.props.onActiveTabChanged(e)},this._handleScroll=()=>{h.globalCloseDelegate.fire()},this._handleSubmit=()=>{this.props.onSubmit(),this.props.onClose()};const{pages:t,initialActiveTab:l}=this.props,r=t.find((e=>e.id===l))??t[0];this.state={activeTabId:r.id}}render(){const{title:e,onCancel:t,onClose:l,shouldReturnFocus:r}=this.props;return n.createElement(u.AdaptiveConfirmDialog,{dataName:"indicator-properties-dialog",title:e,isOpened:!0,onSubmit:this._handleSubmit,onCancel:t,onClickOutside:this._handleClose,onClose:l,footerLeftRenderer:this._renderFooterLeft,render:this._renderChildren(),submitOnEnterKey:!1,shouldReturnFocus:r})}_renderChildren(){return({requestResize:e})=>{this._requestResize=e;const{pages:t,source:l,model:r}=this.props,{activeTabId:o}=this.state,s=t.find((e=>e.id===o))??t[0],i="Component"in s?void 0:s.page,a=t.map((({label:e,id:t})=>({label:e,id:t,dataId:`indicator-properties-dialog-tabs-${t}`})));return n.createElement(n.Fragment,null,n.createElement(f.DialogTabs,{className:C.tabs,id:"indicator-properties-dialog-tabs",activeTab:s.id,onChange:this._handleSelect,tabs:a}),n.createElement(m.TouchScrollContainer,{className:C.scrollable,onScroll:this._handleScroll},"Component"in s?n.createElement(s.Component,{source:l,model:r}):n.createElement(v.PropertiesEditorTab,{page:i,tableKey:s.id})))}}}var P=l(6620),E=l(16570),_=l(28187),T=l(65366),x=l(74129),k=l(24981),I=l(5003),R=l(65399);class D extends n.PureComponent{constructor(e){super(e),this._getInputs=()=>new I.MetaInfoHelper(this._metaInfoWV?.value()??this._initialMetaInfo).getUserEditableInputs(),this._handleMetaInfoChange=e=>{const t=this._getInputs();this.setState({inputs:t,
studyInfo:(0,x.getStudyInfo)(e,this.props.source),availableSources:this._getAvailableSources(t)})},this._setProperty=(e,t,l,n)=>{const{source:r,model:o}=this.props,s=n??this._properties.inputs;(0,k.setPropertyThroughUndoModel)({value:e,id:t,name:l,model:o,isStudyLineTool:!(0,y.isStudy)(r),property:s})},this._properties=this.props.source.properties(),this._metaInfoWV=this.props.source.metaInfoWV?.(),this._initialMetaInfo=this.props.source.metaInfo();const t=this._getInputs();this.state={inputs:t,studyInfo:(0,x.getStudyInfo)(this._initialMetaInfo,this.props.source),availableSources:this._getAvailableSources(t)}}componentDidMount(){this._metaInfoWV?.subscribe(this._handleMetaInfoChange)}componentWillUnmount(){this._metaInfoWV?.unsubscribe(this._handleMetaInfoChange)}render(){return n.createElement(R.UserInputsTabContent,{property:this._properties,studyInfo:this.state.studyInfo,inputs:this.state.inputs,setProperty:this._setProperty,availableSources:this.state.availableSources,tzName:(0,_.getTimezoneName)(this.props.model)})}_getAvailableSources(e){const t=e.some((e=>"source"===e.type)),l=this.props.source.isChildStudy()||P.StudyMetaInfo.canBeChild(this.props.source.metaInfo());if(!t||!(0,s.isFeaturesetEnabled)("study_on_study")||!l)return;const n={},r=(0,y.isStudy)(this.props.source)?this.props.source.getAllChildren():[],o=new Set([this.props.source,...r]),i=this.props.model.model().allStudies().filter((e=>e.canHaveChildren()&&!o.has(e)));for(const e of i){const t=e.title(T.TitleDisplayTarget.StatusLine,!0,void 0,!0),l=e.id(),r=e.metaInfo(),o=r.styles,s=r.plots||[];0!==s.length&&(1!==s.length?s.forEach(((e,r)=>{if(!P.StudyMetaInfo.canPlotBeSourceOfChildStudy(e.type))return;const s=o?.[e.id]?.title??e.id;n[`${l}$${r}`]=`${t}: ${s}`})):n[l+"$0"]=t)}const a=this._getSourceInputsOptions(e);return{...n,...a}}_getSourceInputsOptions(e){if(!this.props.source.isChildStudy())return;const t=e.filter((e=>"source"===e.type));if(0===t.length||!(0,y.isStudy)(this.props.source))return;const l=this.props.source.inputs();let n={};for(const e of t){const t=(0,E.getInputValue)(l[e.id]),r=this.props.source.parentSourceForInput(t);if(r&&(0,y.isStudy)(r)){const t=r.title(T.TitleDisplayTarget.StatusLine),l=P.StudyMetaInfo.getChildSourceInputTitles(e,r.metaInfo(),t);n={...n,...l}}}return n}}var L=l(18632),V=l(87740),N=l(5258),B=l(64483);const A=n.createContext(null);const M=n.createContext(null);var z=l(48504),W=l(65164),H=l(34773);function O(e){return(0,y.isStudy)(e)||!H.lineToolsDoNotAffectChartInvalidation}var F=l(83186),U=l(20819),G=l(20714),j=l(82372);const Y=n.createContext(null);class X extends n.PureComponent{constructor(){super(...arguments),this._setValue=(e,t,l)=>{const{model:n,affectSave:r}=this.props;Array.isArray(e)?n.setProperties(e,e.map((()=>t)),l,r):n.setProperty(e,t,l,!r)}}componentDidMount(){const{property:e}=this.props;e.subscribe(this,(()=>this.forceUpdate()))}componentWillUnmount(){const{property:e}=this.props;e.unsubscribeAll(this)}render(){const e={setValue:this._setValue};return n.createElement(Y.Provider,{value:e
},this.props.children)}}function q(e,t,l){return function(e,t){return n.createElement(A.Consumer,null,(l=>l?n.createElement(e,{...Object.assign({model:l},t)}):null))}((({model:r})=>n.createElement(X,{model:r,affectSave:l,property:t.property},n.createElement(e,{...t}))),t)}function $(e){return Array.isArray(e)?e[0].value():e.value()}var J=l(75753);const K=new i.TranslatedString("change visibility",o.t(null,void 0,l(25187)));class Q extends n.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{setValue:t}=this.context,{visible:l}=this.props;l&&t(l,e,K)}}render(){const{id:e,title:t,visible:l,disabled:r}=this.props,o=(0,a.clean)((0,j.getTranslatedInputTitle)(t),!0);return n.createElement(J.BoolInputComponent,{label:o,disabled:r,input:{id:e,type:"bool",defval:!0,name:"visible"},value:!l||$(l),onChange:this._onChange})}}Q.contextType=Y;var Z=l(59346),ee=l(68814);const te=new i.TranslatedString("change line style",o.t(null,void 0,l(47517)));class le extends n.PureComponent{constructor(){super(...arguments),this._onLineStyleChange=e=>{const{setValue:t}=this.context,{lineStyle:l}=this.props;t(l,e,te)}}render(){const{lineStyle:e,...t}=this.props;return n.createElement(ee.LineStyleSelect,{...t,lineStyle:$(e),lineStyleChange:this._onLineStyleChange})}}le.contextType=Y;var ne=l(55482),re=l(82347),oe=l(14946),se=l(12091);const ie=new i.TranslatedString("change thickness",o.t(null,void 0,l(67924))),ae=new i.TranslatedString("change color",o.t(null,void 0,l(9248))),ce=new i.TranslatedString("change opacity",o.t(null,void 0,l(19608))),de=new i.TranslatedString("change line style",o.t(null,void 0,l(47517))),pe=[1,2,3,4];class ue extends n.PureComponent{constructor(){super(...arguments),this._trackEventLabel=null,this._getTransparencyValue=()=>{const{transparency:e}=this.props;return e?e.value():0},this._getOpacityValue=()=>{const{color:e}=this.props,t=$(e);if(t)return(0,re.isHexColor)(t)?(0,re.transparencyToAlpha)(this._getTransparencyValue()):(0,ne.parseRgba)(t)[3]},this._getColorValueInHex=()=>{const{color:e}=this.props,t=$(e);return t?(0,re.isHexColor)(t)?t:(0,ne.rgbToHexString)((0,ne.parseRgb)(t)):null},this._onThicknessChange=e=>{const{thickness:t}=this.props;void 0!==t&&this._setProperty(t,e,ie)},this._onLineStyleChange=e=>{const{lineStyle:t}=this.props;void 0!==t&&this._setProperty(t,e,de)},this._onColorChange=e=>{const{color:t,isPaletteColor:l}=this.props,n=$(t);let r=0;n&&(r=(0,re.isHexColor)(n)?this._getTransparencyValue():(0,re.alphaToTransparency)((0,ne.parseRgba)(n)[3])),this._setProperty(t,(0,re.generateColor)(String(e),r,!0),ae),this._trackEventLabel="Plot color > "+(l?"Palette":"Single")},this._onOpacityChange=e=>{const{color:t}=this.props,l=$(t);this._setProperty(t,(0,re.generateColor)(l,(0,re.alphaToTransparency)(e),!0),ce)},this._onPopupClose=()=>{this._trackEventLabel&&((0,p.trackEvent)("GUI","Study settings",this._trackEventLabel),this._trackEventLabel=null)}}componentWillUnmount(){this._onPopupClose()}render(){const{selectOpacity:e=!0,disabled:t,className:l}=this.props
;return n.createElement(oe.ColorSelect,{className:l,disabled:t,color:this._getColorValueInHex(),selectOpacity:e,opacity:this._getOpacityValue(),thickness:this._getThicknessValue(),lineStyle:this._getLineStyleValue(),thicknessItems:pe,lineStyleItems:se.defaultLineStyleItems,onColorChange:this._onColorChange,onOpacityChange:this._onOpacityChange,onThicknessChange:this._onThicknessChange,onLineStyleChange:this._onLineStyleChange,onPopupClose:this._onPopupClose})}_getThicknessValue(){const{thickness:e}=this.props;return e?$(e):void 0}_getLineStyleValue(){const{lineStyle:e}=this.props;return e?$(e):void 0}_setProperty(e,t,l){const{setValue:n}=this.context;n(e,t,l)}}ue.contextType=Y;var he=l(29808);class me extends n.PureComponent{render(){const{id:e,isRGB:t,title:l,visible:r,color:o,transparency:s,thickness:i,children:a,switchable:c=!0,offset:d,grouped:p,disabled:u,lineStyle:h}=this.props,m=u||r&&!(Array.isArray(r)?r[0].value():r.value());return n.createElement(Z.InputRow,{label:c?n.createElement(Q,{id:e,title:l,visible:r,disabled:u}):l,offset:d,grouped:p},t?h?n.createElement(le,{id:(0,z.createDomId)(e,"line-style-select"),disabled:m,className:he.smallStyleControl,lineStyle:h}):null:n.createElement(ue,{disabled:m,color:o,transparency:s,thickness:i,lineStyle:h}),a)}}me.contextType=Y;var ye=l(28986),ve=l(58113);const ge=new i.TranslatedString("change precision",o.t(null,void 0,l(8872))),be=o.t(null,void 0,l(37732)),fe=o.t(null,void 0,l(64005)),we=[{value:"default",content:be}];for(let e=0;e<=8;e++)we.push({value:e,content:e.toString()});class Ce extends n.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{setValue:t}=this.context,{precision:l}=this.props;t(l,e,ge)}}render(){const{id:e,precision:t}=this.props;return n.createElement(Z.InputRow,{label:fe},n.createElement(ye.Select,{id:e,className:ve.defaultSelect,menuItemClassName:ve.defaultSelectItem,items:we,value:t.value(),onChange:this._onChange}))}}Ce.contextType=Y;var Se=l(14487),Pe=l.n(Se),Ee=l(66728);const _e=new i.TranslatedString("change font size",o.t(null,void 0,l(46845))),Te=[10,11,12,14,16,20,24,28,32,40].map((e=>({value:e,title:e.toString()})));class xe extends n.PureComponent{constructor(){super(...arguments),this._onFontSizeChange=e=>{const{setValue:t}=this.context,{fontSize:l}=this.props;t(l,e,_e)}}render(){const{fontSize:e,...t}=this.props;return n.createElement(Ee.FontSizeSelect,{...t,fontSizes:Te,fontSize:e.value(),fontSizeChange:this._onFontSizeChange})}}xe.contextType=Y;var ke=l(78795);const Ie=o.t(null,{context:"input title"},l(83487)),Re=[{value:ke.HHistDirection.RightToLeft,content:o.t(null,{context:"input option"},l(61402))},{value:ke.HHistDirection.LeftToRight,content:o.t(null,{context:"input option"},l(13375))}],De=o.t(null,{context:"input title"},l(44901)),Le=o.t(null,{context:"input title"},l(34802)),Ve=new i.TranslatedString("change visibility",o.t(null,{context:"undo input change"},l(65149)));new i.TranslatedString("change expand blocks",o.t(null,{context:"undo input change"},l(21885)));var Ne=l(33255)
;const Be=o.t(null,void 0,l(73027)),Ae=o.t(null,void 0,l(27150)),Me={Traditional:new Set(["S5/R5","S4/R4","S3/R3","S2/R2","S1/R1","P"]),Fibonacci:new Set(["S3/R3","S2/R2","S1/R1","P"]),Woodie:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"]),Classic:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"]),DM:new Set(["S1/R1","P"]),DeMark:new Set(["S1/R1","P"]),Camarilla:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"]),Floor:new Set(["S3/R3","S2/R2","S1/R1","P"])};class ze extends n.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{setValue:t}=this.context,{levelsStyle:l}=this.props.property.childs(),{showLabels:n}=l.childs();t(n,e,Ve)}}render(){const{fontsize:e,levelsStyle:t}=this.props.property.childs();return n.createElement(n.Fragment,null,n.createElement(Z.InputRow,{labelAlign:"adaptive",label:n.createElement("span",null,Be)},n.createElement("div",{className:Ne.block},n.createElement("div",{className:Se(Ne.wrapGroup,Ne.additionalSelect)},n.createElement(xe,{id:"pivot-points-standard-font-size-select",fontSize:e})))),n.createElement(U.PropertyTable.Row,null,n.createElement(U.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(J.BoolInputComponent,{label:Ae,input:{id:"ShowLabels",type:"bool",defval:!0,name:"visible"},value:t.childs().showLabels.value(),onChange:this._onChange}))),this._renderColors())}_renderColors(){const{levelsStyle:e,inputs:t}=this.props.property.childs(),{colors:l,widths:o,visibility:s}=e.childs(),{kind:i}=t.childs(),a=(0,r.ensureDefined)(Me[i.value()]);return l.childNames().filter((e=>a.has(e))).map((e=>n.createElement(me,{key:e,id:e,title:e,color:l.childs()[e],visible:s.childs()[e],thickness:o.childs()[e]})))}}ze.contextType=Y;var We=l(76210),He=l(97101);function Oe(e){return n.createElement(ue,{...e})}const Fe=o.t(null,void 0,l(19286)),Ue=o.t(null,void 0,l(86960)),Ge=o.t(null,void 0,l(62081)),je=o.t(null,void 0,l(38564)),Ye=o.t(null,{context:"input"},l(61531)),Xe=o.t(null,{context:"input"},l(90520));class qe extends n.PureComponent{constructor(){super(...arguments),this._onChange=e=>{this._setHhistsProperty("visible",e)},this._onShowValuesChange=e=>{this._setHhistsProperty("showValues",e)},this._onValueChange=e=>{this._setHhistsProperty("percentWidth",e)},this._onDirectionChange=e=>{this._setHhistsProperty("direction",e)}}render(){const{metaInfo:e}=this.props,{graphics:t,styles:l,showLabelsOnPriceScale:o,showLegendValues:s}=this.props.property.childs(),{hhists:i,horizlines:a,polygons:c}=t.childs(),d=(0,r.ensureDefined)(e.graphics.hhists),p=Object.keys(d),u=i.childs()[p[0]],h=u.childs().visible,m=p.map((e=>i.childs()[e].childs().showValues)),y=u.childs().percentWidth,v=u.childs().direction,g=p.map((e=>i.childs()[e].childs().valuesColor)),b=a.childs()?.vahLines,f=e.graphics.horizlines?.vahLines,w=a.childs()?.valLines,C=e.graphics.horizlines?.valLines,S=a.childs().pocLines,P=(0,r.ensureDefined)(e.graphics.horizlines?.pocLines),E=l.childs().developingPoc,_=new We.StudyPlotVisibleProperty(E.childs().display),T=(0,
r.ensureDefined)(e.styles?.developingPoc),x=l.childs().developingVAHigh,k=new We.StudyPlotVisibleProperty(x.childs().display),I=l.childs().developingVALow,R=new We.StudyPlotVisibleProperty(I.childs().display),D=e.graphics.polygons&&e.graphics.polygons.histBoxBg;return n.createElement(n.Fragment,null,n.createElement(U.PropertyTable.Row,null,n.createElement(U.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(J.BoolInputComponent,{label:Fe,input:{id:"VolumeProfile",type:"bool",defval:!0,name:"visible"},value:h.value(),onChange:this._onChange}))),n.createElement(U.PropertyTable.Row,null,n.createElement(U.PropertyTable.Cell,{placement:"first"},n.createElement("div",{className:Ne.childRowContainer},n.createElement(J.BoolInputComponent,{disabled:!h.value(),label:Ue,input:{id:"ShowValues",type:"bool",defval:!0,name:"visible"},value:m[0].value(),onChange:this._onShowValuesChange}))),n.createElement(U.PropertyTable.Cell,{placement:"last"},n.createElement(Oe,{disabled:!h.value()||!m[0].value(),color:g}))),n.createElement(U.PropertyTable.Row,null,n.createElement(U.PropertyTable.Cell,{placement:"first"},n.createElement("div",{className:Ne.childRowContainer},Ge)),n.createElement(U.PropertyTable.Cell,{placement:"last"},n.createElement(He.IntegerInputComponent,{disabled:!h.value(),input:{id:"",name:"",type:"integer",defval:0},value:y.value(),onChange:this._onValueChange}))),n.createElement(U.PropertyTable.Row,null,n.createElement(U.PropertyTable.Cell,{placement:"first"},n.createElement("div",{className:Ne.childRowContainer},Ie)),n.createElement(U.PropertyTable.Cell,{placement:"last"},n.createElement(ye.Select,{id:"hhist-direction-select",disabled:!h.value(),className:Ne.defaultSelect,menuItemClassName:Ne.defaultSelectItem,items:Re,value:v.value(),onChange:this._onDirectionChange}))),p.map((e=>n.createElement(n.Fragment,{key:e},i.childs()[e].childs().colors.childNames().map(((t,l)=>{const r=d[e];return n.createElement(Z.InputRow,{key:l,label:n.createElement("div",{className:Ne.childRowContainer},r&&(0,j.getTranslatedInputTitle)(r.titles[l])||"")},n.createElement(Oe,{disabled:!h.value(),color:i.childs()[e].childs().colors.childs()[l],transparency:i.childs()[e].childs().transparencies.childs()[l]}))}))))),f&&b&&n.createElement(me,{id:"vahLines",title:f.name,color:b.childs().color,visible:b.childs().visible,thickness:b.childs().width,lineStyle:b.childs().style}),C&&w&&n.createElement(me,{id:"valLines",title:C.name,color:w.childs().color,visible:w.childs().visible,thickness:w.childs().width,lineStyle:w.childs().style}),n.createElement(me,{id:"pocLines",title:P.name,color:S.childs().color,visible:S.childs().visible,thickness:S.childs().width,lineStyle:S.childs().style}),E&&n.createElement(me,{id:"developingPoc",title:T.title&&(0,j.getTranslatedInputTitle)(T.title)||"",color:E.childs().color,visible:_,thickness:E.childs().linewidth,lineStyle:E.childs().linestyle}),x&&I&&n.createElement(me,{id:"developingPoc",title:je,color:[x.childs().color,I.childs().color],visible:[k,R],
thickness:[x.childs().linewidth,I.childs().linewidth],lineStyle:[x.childs().linestyle,I.childs().linestyle]}),c&&D&&n.createElement(Z.InputRow,{label:n.createElement("div",null,(0,j.getTranslatedInputTitle)(D.name)||"")},n.createElement(Oe,{color:c.childs().histBoxBg.childs().color,transparency:c.childs().histBoxBg.childs().transparency})),(o||s)&&"VbPFixed"!==e.shortId&&n.createElement(n.Fragment,null,o&&n.createElement(U.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(Q,{id:"showLabelsOnPriceScale",title:Xe,visible:o})),s&&n.createElement(U.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(Q,{id:"showLegendValues",title:Ye,visible:s}))))}_setHhistsProperty(e,t){const{setValue:l}=this.context,{metaInfo:n,property:o}=this.props,s=o.childs().graphics.childs().hhists,i=Object.keys((0,r.ensureDefined)(n.graphics.hhists)),a=s.childs();l(i.map((t=>(0,r.ensureDefined)(a[t].child(e)))),t,Ve)}}function $e(){const e=(0,r.ensureNotNull)((0,n.useContext)(M)),t=e.metaInfo(),l=e.properties();return n.createElement(qe,{metaInfo:t,property:l})}qe.contextType=Y;const Je={VbPFixed:$e,PivotPointsStandard:function(){const e=(0,r.ensureNotNull)((0,n.useContext)(M)).properties();return n.createElement(ze,{property:e})},VbPVisible:$e,VbPAnchored:$e},Ke=o.t(null,{context:"group inputs title"},l(60353)),Qe=o.t(null,void 0,l(67569));class Ze extends n.PureComponent{render(){const e=(0,r.ensureNotNull)(this.context);return n.createElement(M.Consumer,null,(t=>n.createElement(X,{property:(0,r.ensureNotNull)(t).properties(),affectSave:O((0,r.ensureNotNull)(t)),model:e},n.createElement(U.PropertyTable,null,this._renderCustomContent((0,r.ensureNotNull)(t).metaInfo().shortId),this._renderShowInputValues(t)))))}_renderCustomContent(e){if(e in Je){const t=Je[e];return n.createElement(t,null)}return null}_renderShowInputValues(e){const t=!!e&&(0,y.isStudy)(e),l=e?.metaInfo(),r=l?new I.MetaInfoHelper(l):null,o=r?.hasUserEditableInputs()??!1;return null!==e&&t&&o?n.createElement(U.PropertyTable.Row,null,n.createElement(F.GroupTitleSection,{title:Ke,name:Ke}),n.createElement(U.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(Q,{id:"showStudyLegendInputs",title:Qe,visible:e.properties().childs().showLegendInputs}))):null}}Ze.contextType=A;class et extends n.PureComponent{render(){const{id:e,isRGB:t,title:l,visible:r,bottomColor:o,topColor:s,transparency:i,children:a,switchable:c=!0,offset:d,grouped:p}=this.props;return n.createElement(Z.InputRow,{label:c?n.createElement(Q,{id:e,title:l,visible:r}):l,offset:d,grouped:p},t?null:n.createElement(n.Fragment,null,s&&n.createElement(Oe,{disabled:r&&!(Array.isArray(r)?r[0].value():r.value()),color:s,transparency:i}),o&&n.createElement("div",{className:Pe()(o&&s&&ve.additionalSelect)},n.createElement(Oe,{disabled:r&&!(Array.isArray(r)?r[0].value():r.value()),color:o,transparency:i}))),a)}}et.contextType=Y
;var tt=l(29796),lt=l(73522),nt=l(72958),rt=l(50685),ot=l(31302),st=l(76468),it=l(17090),at=l(78057),ct=l(67747),dt=l(24145),pt=l(25084),ut=l(14669),ht=l(96964),mt=l(78898);const yt={[W.LineStudyPlotStyle.Line]:{type:W.LineStudyPlotStyle.Line,order:0,icon:rt,label:o.t(null,void 0,l(27912))},[W.LineStudyPlotStyle.LineWithBreaks]:{type:W.LineStudyPlotStyle.LineWithBreaks,order:1,icon:ot,label:o.t(null,void 0,l(41985))},[W.LineStudyPlotStyle.StepLine]:{type:W.LineStudyPlotStyle.StepLine,order:2,icon:st,label:o.t(null,void 0,l(53759))},[W.LineStudyPlotStyle.StepLineWithBreaks]:{type:W.LineStudyPlotStyle.StepLineWithBreaks,order:3,icon:it,label:o.t(null,void 0,l(38376))},[W.LineStudyPlotStyle.StepLineWithDiamonds]:{type:W.LineStudyPlotStyle.StepLineWithDiamonds,order:4,icon:at,label:o.t(null,void 0,l(49306))},[W.LineStudyPlotStyle.Histogram]:{type:W.LineStudyPlotStyle.Histogram,order:5,icon:ct,label:o.t(null,void 0,l(56249))},[W.LineStudyPlotStyle.Cross]:{type:W.LineStudyPlotStyle.Cross,order:6,icon:dt,label:o.t(null,{context:"chart_type"},l(30280))},[W.LineStudyPlotStyle.Area]:{type:W.LineStudyPlotStyle.Area,order:7,icon:pt,label:o.t(null,void 0,l(45086))},[W.LineStudyPlotStyle.AreaWithBreaks]:{type:W.LineStudyPlotStyle.AreaWithBreaks,order:8,icon:ut,label:o.t(null,void 0,l(99739))},[W.LineStudyPlotStyle.Columns]:{type:W.LineStudyPlotStyle.Columns,order:9,icon:ht,label:o.t(null,void 0,l(62639))},[W.LineStudyPlotStyle.Circles]:{type:W.LineStudyPlotStyle.Circles,order:10,icon:mt,label:o.t(null,void 0,l(24838))}},vt=Object.values(yt).sort(((e,t)=>e.order-t.order)).map((e=>({value:e.type,selectedContent:n.createElement(nt.DisplayItem,{icon:e.icon}),content:n.createElement(nt.DropItem,{icon:e.icon,label:e.label})}))),gt=o.t(null,void 0,l(80222));class bt extends n.PureComponent{render(){const{id:e,plotType:t,className:l,priceLine:r,plotTypeChange:o,priceLineChange:s,disabled:i}=this.props;if(!(t in yt))return null;const a={readonly:!0,content:n.createElement(n.Fragment,null,n.createElement(lt.MenuItemSwitcher,{id:"PlotTypePriceLineSwitch",checked:r,label:gt,preventLabelHighlight:!0,value:"priceLineSwitcher",onChange:s}),n.createElement(tt.PopupMenuSeparator,null))};return n.createElement(nt.IconDropdown,{id:e,disabled:i,className:l,hideArrowButton:!0,items:[a,...vt],value:t,onChange:o})}}const ft=new i.TranslatedString("change plot type",o.t(null,void 0,l(37728))),wt=new i.TranslatedString("change price line visibility",o.t(null,void 0,l(22912)));class Ct extends n.PureComponent{constructor(){super(...arguments),this._onPlotTypeChange=e=>{const{setValue:t}=this.context,{styleProp:{plottype:l}}=this.props;l&&t(l,e,ft)},this._onPriceLineChange=e=>{const{setValue:t}=this.context,{styleProp:{trackPrice:l}}=this.props;l&&t(l,e,wt)}}render(){const{id:e,paletteColor:t,paletteColorProps:l,styleProp:r,isLine:o,hasPlotTypeSelect:s,grouped:i,offset:a,showLineStyle:c}=this.props,d=l.childs();return n.createElement(Z.InputRow,{grouped:i,label:n.createElement("div",{className:ve.childRowContainer},(0,j.getTranslatedInputTitle)(t.name)),
offset:a},n.createElement(ue,{disabled:!r.visible.value(),color:d.color,transparency:r.transparency,thickness:o?d.width:void 0,isPaletteColor:!0,lineStyle:c?d.style:void 0}),o&&s&&r.plottype&&r.trackPrice?n.createElement(bt,{id:(0,z.createDomId)(e,"plot-type-select"),disabled:!r.visible.value(),className:ve.smallStyleControl,plotType:r.plottype.value(),priceLine:r.trackPrice.value(),plotTypeChange:this._onPlotTypeChange,priceLineChange:this._onPriceLineChange}):null)}}function St(e,t,l,o,s,i,a,c){const d=t.colors,p=l.colors;return Object.keys(d).map(((t,l)=>n.createElement(Ct,{key:a?`${t}-secondary`:t,id:e,grouped:!0,paletteColor:(0,r.ensureDefined)(d[t]),paletteColorProps:(0,r.ensureDefined)(p[t]),styleProp:o,isLine:s,hasPlotTypeSelect:0===l,offset:i,showLineStyle:c})))}Ct.contextType=Y;class Pt extends n.PureComponent{render(){const{plot:e,area:t,palette:l,paletteProps:o,hideVisibilitySwitch:s,styleProp:i,showOnlyTitle:a,showSeparator:c=!0,showLineStyle:d=!1,offset:p,secondaryPalette:u,secondaryPaletteProps:h,title:m}=this.props,y=e?e.id:(0,r.ensureDefined)(t).id,v=!y.startsWith("fill")&&e&&(0,W.isLinePlot)(e);return n.createElement(n.Fragment,null,!s&&n.createElement(U.PropertyTable.Row,null,n.createElement(U.PropertyTable.Cell,{placement:"first",colSpan:2,offset:p},a?n.createElement("div",null,m):n.createElement(Q,{id:y,title:m,visible:i.visible}))),St(y,l,o,i,v,p,!1,d),u&&h&&St(y,u,h,i,v,p,!0,d),c&&n.createElement(U.PropertyTable.GroupSeparator,null))}}Pt.contextType=Y;const Et=new i.TranslatedString("change min tick",o.t(null,void 0,l(97321))),_t=o.t(null,void 0,l(37732)),Tt=o.t(null,void 0,l(61547)),xt=[{priceScale:1,minMove:1,frac:!1},{priceScale:10,minMove:1,frac:!1},{priceScale:100,minMove:1,frac:!1},{priceScale:1e3,minMove:1,frac:!1},{priceScale:1e4,minMove:1,frac:!1},{priceScale:1e5,minMove:1,frac:!1},{priceScale:1e6,minMove:1,frac:!1},{priceScale:1e7,minMove:1,frac:!1},{priceScale:1e8,minMove:1,frac:!1},{priceScale:2,minMove:1,frac:!0},{priceScale:4,minMove:1,frac:!0},{priceScale:8,minMove:1,frac:!0},{priceScale:16,minMove:1,frac:!0},{priceScale:32,minMove:1,frac:!0},{priceScale:64,minMove:1,frac:!0},{priceScale:128,minMove:1,frac:!0},{priceScale:320,minMove:1,frac:!0}],kt=[{id:"tick-default",value:"default",content:_t}];for(let e=0;e<xt.length;e++){const t=xt[e];kt.push({value:t.priceScale+","+t.minMove+","+t.frac,content:t.minMove+"/"+t.priceScale})}class It extends n.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{setValue:t}=this.context,{minTick:l}=this.props;t(l,e,Et)}}render(){const{id:e,minTick:t}=this.props;return n.createElement(Z.InputRow,{label:Tt},n.createElement(ye.Select,{id:e,className:ve.defaultSelect,menuItemClassName:ve.defaultSelectItem,items:kt,value:t.value(),onChange:this._onChange}))}}It.contextType=Y;var Rt=l(29497);const Dt=new i.TranslatedString("change value",o.t(null,void 0,l(4698)));class Lt extends n.PureComponent{constructor(){super(...arguments),this._onValueChange=e=>{const{setValue:t}=this.context,{value:l}=this.props.property;t(l,e,Dt)}}
render(){const{id:e,name:t,property:{color:l,linestyle:r,linewidth:o,transparency:s,value:i,visible:a}}=this.props;return n.createElement(Z.InputRow,{labelAlign:"adaptive",label:n.createElement(Q,{id:e,title:t,visible:a})},n.createElement("div",{className:Ne.block},n.createElement("div",{className:Ne.group},n.createElement(ue,{disabled:!a.value(),color:l,transparency:s,thickness:o,lineStyle:r})),n.createElement("div",{className:Se(Ne.wrapGroup,Ne.defaultSelect,Ne.additionalSelect)},n.createElement(Rt.FloatInputComponent,{input:{id:"",name:"",type:"float",defval:0},value:i.value(),disabled:!a.value(),onChange:this._onValueChange}))))}}Lt.contextType=Y;var Vt=l(70945);const Nt=new i.TranslatedString("change percent width",o.t(null,void 0,l(85533))),Bt=new i.TranslatedString("change placement",o.t(null,void 0,l(47956))),At=new i.TranslatedString("change values visibility",o.t(null,void 0,l(80650))),Mt=[{value:ke.HHistDirection.LeftToRight,content:o.t(null,void 0,l(48816))},{value:ke.HHistDirection.RightToLeft,content:o.t(null,void 0,l(98415))}],zt=o.t(null,void 0,l(62081)),Wt=o.t(null,void 0,l(86960)),Ht=o.t(null,void 0,l(77717));class Ot extends n.PureComponent{constructor(){super(...arguments),this._onPercentWidthChange=e=>{const{setValue:t}=this.context,{percentWidth:l}=this.props.property.childs();t(l,e,Nt)},this._onPlacementChange=e=>{const{setValue:t}=this.context,{direction:l}=this.props.property.childs();t(l,e,Bt)},this._onShowValuesChange=e=>{const{setValue:t}=this.context,{showValues:l}=this.props.property.childs();t(l,e,At)}}render(){const{hHistInfo:e,property:t}=this.props,{percentWidth:l,direction:r,showValues:o,valuesColor:s,visible:i}=t.childs(),{title:a}=e;return n.createElement(n.Fragment,null,n.createElement(U.PropertyTable.Row,null,n.createElement(U.PropertyTable.Cell,{placement:"first",colSpan:2,grouped:!0},n.createElement(Q,{id:a,title:a,visible:i}))),n.createElement(Z.InputRow,{label:n.createElement("div",{className:Vt.childRowContainer},zt),grouped:!0},n.createElement(He.IntegerInputComponent,{input:{id:"",name:"",type:"integer",defval:0},value:l.value(),disabled:!i.value(),onChange:this._onPercentWidthChange})),n.createElement(Z.InputRow,{label:n.createElement("div",{className:Vt.childRowContainer},Ie),grouped:!0},n.createElement(ye.Select,{id:"hhist-graphic-placement-select",disabled:!i.value(),className:Vt.defaultSelect,menuItemClassName:Vt.defaultSelectItem,items:Mt,value:r.value(),onChange:this._onPlacementChange})),n.createElement(U.PropertyTable.Row,null,n.createElement(U.PropertyTable.Cell,{className:Vt.childRowContainer,placement:"first",colSpan:2,grouped:!0},n.createElement(J.BoolInputComponent,{label:Wt,input:{id:a+"_showValues",type:"bool",defval:!0,name:"visible"},value:!o||o.value(),disabled:!i.value(),onChange:this._onShowValuesChange}))),n.createElement(Z.InputRow,{label:n.createElement("div",{className:Vt.childRowContainer},Ht),grouped:!0},n.createElement(Oe,{disabled:i&&!i.value(),color:s})),this._renderColors(),n.createElement(U.PropertyTable.GroupSeparator,null))}
_renderColors(){const{property:e,hHistInfo:t}=this.props,{colors:l,transparencies:r,visible:o}=e.childs(),{titles:s}=t;return l.childNames().map((e=>n.createElement(Z.InputRow,{key:e,grouped:!0,label:n.createElement("div",{className:Vt.childRowContainer},s[+e])},n.createElement(Oe,{disabled:!o.value(),color:l[+e],transparency:r[+e]}))))}}Ot.contextType=Y;class Ft extends n.PureComponent{render(){const{title:e,property:t}=this.props,{color:l,width:r,style:o,visible:s}=t.childs();return n.createElement(Z.InputRow,{label:n.createElement(Q,{id:e,title:e,visible:s})},n.createElement(ue,{disabled:!s.value(),color:l,transparency:t.child("transparency"),thickness:r,lineStyle:o}))}}Ft.contextType=Y;class Ut extends n.PureComponent{render(){const{graphicType:e,study:t}=this.props,l=t.metaInfo(),o=l.graphics,s=t.properties().graphics.childs(),i=(0,r.ensureDefined)(o[e]);return Object.keys(i).map(((t,o)=>{const i=(0,r.ensureDefined)(s[e]?.childs()[t]);return"horizlines"===e||"vertlines"===e?n.createElement(Ft,{key:t,title:(0,r.ensureDefined)(l.graphics[e]?.[t]).name,property:i}):"lines"===e?n.createElement(Ft,{key:t,title:(0,r.ensureDefined)(l.graphics.lines?.[t]).title,property:i}):"hhists"===e?n.createElement(Ot,{key:t,hHistInfo:(0,r.ensureDefined)(l.graphics.hhists?.[t]),property:i}):null}))}}class Gt extends n.PureComponent{render(){const{orders:{visible:e,showLabels:t,showQty:r}}=this.props;return n.createElement(n.Fragment,null,n.createElement(U.PropertyTable.Row,null,n.createElement(U.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(Q,{id:"chart-orders-switch",title:o.t(null,void 0,l(18698)),visible:e}))),n.createElement(U.PropertyTable.Row,null,n.createElement(U.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(Q,{id:"chart-orders-labels-switch",title:o.t(null,void 0,l(16357)),visible:t}))),n.createElement(U.PropertyTable.Row,null,n.createElement(U.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(Q,{id:"chart-orders-qty-switch",title:o.t(null,void 0,l(59021)),visible:r}))))}}Gt.contextType=Y;var jt=l(73775);function Yt(e,t){const l=(0,r.ensureDefined)(e.metaInfo().styles),{title:n}=(0,r.ensureDefined)(l[t]);return(0,r.ensureDefined)(n)}class Xt extends n.PureComponent{constructor(e){super(e),this._visible=new We.StudyPlotVisibleProperty(e.display)}render(){const{id:e,isRGB:t,title:l,color:r,transparency:o,thickness:s,children:i,switchable:a=!0,offset:c,grouped:d}=this.props;return n.createElement(me,{id:e,isRGB:t,title:l,color:r,transparency:o,thickness:s,children:i,switchable:a,offset:c,grouped:d,visible:this._visible})}componentWillUnmount(){this._visible.destroy()}}Xt.contextType=Y;class qt extends n.PureComponent{constructor(e){super(e),this._visible=new We.StudyPlotVisibleProperty(e.display)}render(){const{id:e,title:t,disabled:l}=this.props;return n.createElement(Q,{id:e,title:t,disabled:l,visible:this._visible})}componentWillUnmount(){this._visible.destroy()}}qt.contextType=Y;class $t extends n.PureComponent{render(){
const{id:e,isRGB:t,property:{colorup:l,colordown:o,transparency:s,display:i}}=this.props;return n.createElement(M.Consumer,null,(a=>n.createElement(n.Fragment,null,n.createElement(U.PropertyTable.Row,null,n.createElement(U.PropertyTable.Cell,{placement:"first",colSpan:2,grouped:!0},n.createElement(qt,{id:e,title:Yt((0,r.ensureNotNull)(a),e),display:i}))),!t&&n.createElement(n.Fragment,null,n.createElement(Xt,{id:e,title:De,color:l,transparency:s,display:i,switchable:!1,offset:!0,grouped:!0}),n.createElement(Xt,{id:e,title:Le,color:o,transparency:s,display:i,switchable:!1,offset:!0,grouped:!0})),n.createElement(U.PropertyTable.GroupSeparator,null))))}}$t.contextType=Y;var Jt=l(53660),Kt=l.n(Jt),Qt=l(82651),Zt=l(62565);const el={[Zt.MarkLocation.AboveBar]:{value:Zt.MarkLocation.AboveBar,content:o.t(null,void 0,l(86289)),order:0},[Zt.MarkLocation.BelowBar]:{value:Zt.MarkLocation.BelowBar,content:o.t(null,void 0,l(31764)),order:1},[Zt.MarkLocation.Top]:{value:Zt.MarkLocation.Top,content:o.t(null,void 0,l(65388)),order:2},[Zt.MarkLocation.Bottom]:{value:Zt.MarkLocation.Bottom,content:o.t(null,void 0,l(65244)),order:3},[Zt.MarkLocation.Absolute]:{value:Zt.MarkLocation.Absolute,content:o.t(null,void 0,l(95852)),order:4}},tl=Object.values(el).sort(((e,t)=>e.order-t.order));class ll extends n.PureComponent{render(){const{id:e,shapeLocation:t,className:l,menuItemClassName:r,shapeLocationChange:o,disabled:s}=this.props;return n.createElement(ye.Select,{id:e,disabled:s,className:l,menuItemClassName:r,items:tl,value:t,onChange:o})}}const nl=new i.TranslatedString("change char",o.t(null,void 0,l(73430))),rl=new i.TranslatedString("change location",o.t(null,void 0,l(17888)));class ol extends n.PureComponent{constructor(){super(...arguments),this._onCharChange=e=>{const{setValue:t}=this.context,l=e.currentTarget.value.trim(),n=Kt()(l),o=0===n.length?"":n[n.length-1];t((0,r.ensureDefined)(this.props.property.childs().char),o,nl)},this._onLocationChange=e=>{const{setValue:t}=this.context;t(this.props.property.childs().location,e,rl)}}render(){const{id:e,title:t,char:l,isRGB:o,property:s,hasPalette:i}=this.props,{color:a,transparency:c,char:d,location:p,display:u}=s.childs();return n.createElement(Z.InputRow,{grouped:i,label:n.createElement(qt,{id:e,title:t,display:u})},!i&&!o&&n.createElement(Oe,{disabled:0===u.value(),color:a,transparency:c}),n.createElement(Qt.InputControl,{disabled:void 0===d||0===u.value(),className:ve.smallStyleControl,value:(0,r.ensureDefined)(d?.value()??l),onChange:this._onCharChange}),n.createElement(ll,{id:(0,z.createDomId)(e,"shape-style-select"),disabled:0===u.value(),className:Se(ve.defaultSelect,ve.additionalSelect),menuItemClassName:ve.defaultSelectItem,shapeLocation:p.value(),shapeLocationChange:this._onLocationChange}))}}ol.contextType=Y;class sl extends n.PureComponent{constructor(e){super(e),this._visible=new We.StudyPlotVisibleProperty(e.styleProp.display)}render(){
const{title:e,plot:t,area:l,palette:r,paletteProps:o,hideVisibilitySwitch:s,styleProp:i,showOnlyTitle:a,showSeparator:c=!0,offset:d}=this.props,p=!!this.props.styleProp.plottype&&(0,W.doesLinePlotStyleSupportLineStyle)(this.props.styleProp.plottype.value());return n.createElement(Pt,{plot:t,area:l,title:e,palette:r,paletteProps:o,styleProp:{...i,visible:this._visible},showSeparator:c,showLineStyle:p,hideVisibilitySwitch:s,showOnlyTitle:a,offset:d})}componentWillUnmount(){this._visible.destroy()}}sl.contextType=Y;var il,al=l(30220),cl=l(7998),dl=l(81877),pl=l(37314),ul=l(59754),hl=l(5882),ml=l(3376),yl=l(49477),vl=l(8970),gl=l(9063),bl=l(72339),fl=l(17196),wl=l(91745);!function(e){e.ArrowDown="arrow_down",e.ArrowUp="arrow_up",e.Circle="circle",e.Cross="cross",e.Diamond="diamond",e.Flag="flag",e.LabelDown="label_down",e.LabelUp="label_up",e.Square="square",e.TriangleDown="triangle_down",e.TriangleUp="triangle_up",e.XCross="x_cross"}(il||(il={}));const Cl={arrow_down:cl,arrow_up:dl,circle:pl,cross:ul,diamond:hl,flag:ml,label_down:yl,label_up:vl,square:gl,triangle_down:bl,triangle_up:fl,x_cross:wl};function Sl(e){return Cl[e]}const Pl=[];Object.keys(al.plotShapesData).forEach((e=>{const t=al.plotShapesData[e];Pl.push({id:t.id,value:t.id,selectedContent:n.createElement(nt.DisplayItem,{icon:Sl(t.icon)}),content:n.createElement(nt.DropItem,{icon:Sl(t.icon),label:t.guiName})})}));class El extends n.PureComponent{render(){const{id:e,shapeStyleId:t,className:l,shapeStyleChange:r,disabled:o}=this.props;return n.createElement(nt.IconDropdown,{id:e,disabled:o,className:l,hideArrowButton:!0,items:Pl,value:t,onChange:r})}}const _l=new i.TranslatedString("change shape",o.t(null,void 0,l(92148))),Tl=new i.TranslatedString("change location",o.t(null,void 0,l(17888)));class xl extends n.PureComponent{constructor(){super(...arguments),this._onPlotTypeChange=e=>{const{setValue:t}=this.context;t(this.props.property.childs().plottype,e,_l)},this._onLocationChange=e=>{const{setValue:t}=this.context;t(this.props.property.childs().location,e,Tl)}}render(){const{id:e,title:t,isRGB:l,hasPalette:r,property:o}=this.props,{color:s,transparency:i,plottype:a,location:c,display:d}=o.childs();return n.createElement(Z.InputRow,{grouped:r,label:n.createElement(qt,{id:e,title:t,display:d})},!r&&!l&&n.createElement(Oe,{disabled:0===d.value(),color:s,transparency:i}),n.createElement(El,{id:(0,z.createDomId)(e,"shape-style-select"),disabled:0===d.value(),className:ve.smallStyleControl,shapeStyleId:a.value(),shapeStyleChange:this._onPlotTypeChange}),n.createElement(ll,{id:(0,z.createDomId)(e,"shape-location-select"),disabled:0===d.value(),className:Se(ve.defaultSelect,ve.additionalSelect),menuItemClassName:ve.defaultSelectItem,shapeLocation:c.value(),shapeLocationChange:this._onLocationChange}))}}xl.contextType=Y;var kl=l(13146),Il=l(97367);const Rl=new i.TranslatedString("change plot type",o.t(null,void 0,l(37728))),Dl=new i.TranslatedString("change price line visibility",o.t(null,void 0,l(22912)));class Ll extends n.PureComponent{constructor(e){super(e),
this._onPlotTypeChange=e=>{const{setValue:t}=this.context,{property:{plottype:l}}=this.props;l&&(t(l,e,Rl),this.setState({showLineStyle:(0,W.doesLinePlotStyleSupportLineStyle)(e)}))},this._onPriceLineChange=e=>{const{setValue:t}=this.context,{property:{trackPrice:l}}=this.props;l&&t(l,e,Dl)},this.state={showLineStyle:(0,W.doesLinePlotStyleSupportLineStyle)(e.property.plottype.value())}}render(){const{id:e,title:t,isRGB:l,isFundamental:r,property:{color:o,plottype:s,linewidth:i,transparency:a,trackPrice:c,display:d,linestyle:p}}=this.props;return n.createElement(Z.InputRow,{label:n.createElement(qt,{id:e,title:t,display:d})},l&&!r?this._getInputForRgb():n.createElement(ue,{disabled:0===d.value(),color:o,transparency:a,thickness:i,lineStyle:this.state.showLineStyle?p:void 0}),n.createElement(bt,{id:(0,z.createDomId)(e,"plot-type-select"),disabled:0===d.value(),className:ve.smallStyleControl,plotType:s.value(),priceLine:c.value(),plotTypeChange:this._onPlotTypeChange,priceLineChange:this._onPriceLineChange}))}_getInputForRgb(){const{id:e,showLineWidth:t,property:l}=this.props,{linewidth:r,linestyle:o,display:s}=l;return n.createElement(n.Fragment,null,r&&t&&n.createElement(Il.LineWidthSelect,{id:(0,z.createDomId)(e,"line-width-select"),property:r,disabled:0===s.value()}),o&&this.state.showLineStyle&&n.createElement(kl.LineStyleSelect,{id:(0,z.createDomId)(e,"line-style-select"),property:o,disabled:0===s.value(),className:ve.smallStyleControl}))}}Ll.contextType=Y;const Vl=(0,jt.getLogger)("Chart.Study.PropertyPage"),Nl=o.t(null,void 0,l(40949)),Bl=o.t(null,void 0,l(32807)),Al=o.t(null,void 0,l(69407));class Ml extends n.PureComponent{render(){const{plot:e,palettes:t,study:l}=this.props,o=e.id,s=l.properties().styles,i=l.metaInfo().styles,a=s[o],c=e.type,d=t.main,p=!!l.metaInfo().isRGB;if("line"===c||"bar_colorer"===c||"bg_colorer"===c)return d&&d.palette&&d.paletteProps?n.createElement(sl,{title:i?.[o]?.title??o,plot:e,palette:d.palette,paletteProps:d.paletteProps,styleProp:a}):n.createElement(Ll,{id:o,title:(0,r.ensureDefined)(i?.[o]?.title),property:a,isRGB:p,isFundamental:false,showLineWidth:"line"===c});if("arrows"===c){const r=this._getPlotSwitch(o,Yt(l,o),a.display);if(p)return r;const s=t.up,i=t.down;return s||i?n.createElement(n.Fragment,null,r,s&&s.palette&&s.paletteProps?n.createElement(sl,{title:De,plot:e,palette:s.palette,paletteProps:s.paletteProps,styleProp:a,showSeparator:!1,showOnlyTitle:!0,offset:!0}):n.createElement(Xt,{id:o,isRGB:p,title:De,color:a.colorup,display:a.display,transparency:a.transparency,switchable:!1,grouped:!0,offset:!0}),i&&i.palette&&i.paletteProps?n.createElement(sl,{title:Le,plot:e,palette:i.palette,paletteProps:i.paletteProps,styleProp:a,showSeparator:!1,showOnlyTitle:!0,offset:!0}):n.createElement(Xt,{id:o,isRGB:p,title:Le,color:a.colordown,display:a.display,transparency:a.transparency,switchable:!1,grouped:!0,offset:!0}),n.createElement(U.PropertyTable.GroupSeparator,null)):n.createElement($t,{id:o,property:a,isRGB:p,plot:e,palettes:t,styleProp:a})}if("chars"===c||"shapes"===c){
const t=(0,r.ensureDefined)(i?.[o]),l=t.title;return n.createElement(n.Fragment,null,"chars"===c?n.createElement(ol,{id:o,title:l,char:t.char,property:a,hasPalette:Boolean(d&&d.palette),isRGB:p}):n.createElement(xl,{id:o,title:l,property:a,hasPalette:Boolean(d&&d.palette),isRGB:p}),d&&d.palette&&d.paletteProps&&n.createElement(sl,{title:l,plot:e,palette:d.palette,paletteProps:d.paletteProps,hideVisibilitySwitch:!0,styleProp:a}))}if((0,W.isOhlcPlot)(e)){const s=e.target,i=l.properties().ohlcPlots[s],a=(0,r.ensureDefined)((0,r.ensureDefined)(l.metaInfo().ohlcPlots)[s]),c=this._getPlotSwitch(o,a.title,i.display);if(p)return c;const u=t.wick&&t.wick.palette&&t.wick.paletteProps,h=t.border&&t.border.palette&&t.border.paletteProps;return n.createElement(n.Fragment,null,c,d&&d.palette&&d.paletteProps?n.createElement(sl,{title:Nl,plot:e,palette:d.palette,paletteProps:d.paletteProps,styleProp:i,showSeparator:!1,showOnlyTitle:!0,offset:!0}):n.createElement(Xt,{id:o,isRGB:p,title:Nl,display:i.display,color:i.color,transparency:i.transparency,switchable:!1,grouped:!0,offset:!0}),t.wick&&t.wick.palette&&t.wick.paletteProps&&n.createElement(sl,{title:Bl,plot:e,palette:t.wick.palette,paletteProps:t.wick.paletteProps,styleProp:i,showSeparator:!1,showOnlyTitle:!0,offset:!0}),Boolean(!u&&i.wickColor)&&n.createElement(Xt,{id:o,isRGB:p,title:Bl,display:i.display,color:i.wickColor,transparency:i.transparency,switchable:!1,grouped:!0,offset:!0}),t.border&&t.border.palette&&t.border.paletteProps&&n.createElement(sl,{title:Al,plot:e,palette:t.border.palette,paletteProps:t.border.paletteProps,styleProp:i,showSeparator:!1,showOnlyTitle:!0,offset:!0}),Boolean(!h&&i.borderColor)&&n.createElement(Xt,{id:o,isRGB:p,title:Al,display:i.display,color:i.borderColor,transparency:i.transparency,switchable:!1,grouped:!0,offset:!0}),n.createElement(U.PropertyTable.GroupSeparator,null))}return Vl.logError("Unknown plot type: "+c),null}_getPlotSwitch(e,t,l){return n.createElement(U.PropertyTable.Row,null,n.createElement(U.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(qt,{id:e,title:t,display:l})))}}var zl=l(76060);const Wl=o.t(null,{context:"input"},l(65107)),Hl=o.t(null,{context:"input"},l(61531)),Ol=o.t(null,{context:"input"},l(90520)),Fl=o.t(null,{context:"input"},l(46433)),Ul=o.t(null,{context:"input"},l(89365)),Gl=o.t(null,{context:"input"},l(43905)),jl=o.t(null,void 0,l(67569));class Yl extends n.PureComponent{constructor(){super(...arguments),this._findPlotPalettes=e=>{const{study:t}=this.props,l=t.metaInfo(),n=(0,r.ensureDefined)(l.palettes);return(0,W.isBarColorerPlot)(e)||(0,W.isBgColorerPlot)(e)?{main:{palette:n[e.palette],paletteProps:t.properties().palettes[e.palette]}}:this._findPalettesByTargetId(e.id)}}render(){const{study:e}=this.props,t=e.metaInfo();if((0,G.isCustomStudy)(t.shortId))return n.createElement(Ze,null);const l=e.properties(),{precision:r,strategy:o,minTick:s,showLabelsOnPriceScale:i,showLegendValues:a}=l,c=t.plots.length>0,d=t.plots.some((e=>!(0,
W.isPlotWithTechnicalValues)(e))),p=c||t.inputs.some((e=>"price"===e.type)),u=function(e){if((0,g.isLineTool)(e))return{isPine:()=>!1,isStandardPine:()=>!1,canOverrideMinTick:()=>!1,resolvedSymbolInfoBySymbol:()=>{throw new TypeError("Only study is supported.")},symbolsResolved:()=>{throw new TypeError("Only study is supported.")},parentSources:()=>{throw new TypeError("Only study is supported.")},getAllChildren:()=>[],sourceId:()=>{throw new TypeError("Only study is supported.")},inputs:()=>({}),parentSourceForInput:()=>{throw new TypeError("Only study is supported.")}};if((0,y.isStudy)(e))return e;if("isInputsStudy"in e)return e;throw new TypeError("Unsupported source type.")}(e).canOverrideMinTick(),h=(0,y.isStudy)(e)&&new I.MetaInfoHelper(t).hasUserEditableInputs();return n.createElement(U.PropertyTable,null,this._plotsElement(),this._bandsElement(),this._bandsBackgroundsElement(),this._areasBackgroundsElement(),this._filledAreasElement(),this._graphicsElement(),u&&n.createElement(It,{id:(0,z.createDomId)(t.id,"min-tick-select"),minTick:s}),P.StudyMetaInfo.isScriptStrategy(t)&&n.createElement(Gt,{orders:o.orders}),(p||d)&&n.createElement(U.PropertyTable.Row,null,n.createElement(U.PropertyTable.GroupSeparator,{size:1}),n.createElement(F.GroupTitleSection,{title:Fl,name:Fl}),p&&n.createElement(Ce,{id:(0,z.createDomId)(t.id,"precision-select"),precision:r}),d&&n.createElement(n.Fragment,null,n.createElement(U.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(Q,{id:"showLabelsOnPriceScale",title:Ol,visible:i})),n.createElement(U.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(Q,{id:"showLegendValues",title:Hl,visible:a})))),h&&n.createElement(U.PropertyTable.Row,null,n.createElement(F.GroupTitleSection,{title:Gl,name:Gl}),n.createElement(U.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(Q,{id:"showStudyLegendInputs",title:jl,visible:e.properties().childs().showLegendInputs}))))}_plotsElement(){const{study:e}=this.props,t=e.metaInfo();return new I.MetaInfoHelper(t).getUserEditablePlots().filter((e=>!((0,W.isUpColorerPlot)(e)||(0,W.isDownColorerPlot)(e)||(0,W.isCandleBorderColorerPlot)(e)||(0,W.isCandleWickColorerPlot)(e)))).map((t=>{const l=(0,W.isOhlcPlot)(t)?{...t,id:t.target}:t,r=this._findPlotPalettes(l);return n.createElement(Ml,{key:t.id,plot:t,palettes:r,study:e})}))}_bandsElement(){const{study:e}=this.props,t=e.metaInfo().bands,l=e.properties().childs().bands;return t&&l&&t.map(((e,t)=>{if(!e.isHidden)return n.createElement(Lt,{key:t,id:e.name,name:e.name,property:l[t]})}))}_bandsBackgroundsElement(){const{study:e}=this.props,t=e.properties(),{bandsBackground:l}=t;return l&&n.createElement(me,{id:"bandsBackground",title:Wl,visible:l.fillBackground,color:l.backgroundColor,transparency:l.transparency})}_areasBackgroundsElement(){const{study:e}=this.props,t=e.metaInfo(),l=e.properties(),{areaBackground:r}=l;return t.isRGB?null:r&&n.createElement(me,{id:"areaBackground",title:Wl,visible:r.fillBackground,color:r.backgroundColor,transparency:r.transparency})}
_filledAreasElement(){const{study:e}=this.props,t=e.metaInfo(),l=t.filledAreas;return!l||t.isRGB?[]:l.map((l=>{const o=t.filledAreasStyle?.[l.id];if(o){if(o.isHidden)return null}else if(l.isHidden)return null;const s=e.properties().filledAreasStyle[l.id],i=l.title||Wl;if(s.hasChild("fillType")&&"gradient"===s.childs().fillType.value()){if(s.topColor||s.bottomColor)return n.createElement(et,{key:l.id,id:l.id,title:i,bottomColor:s.bottomColor,topColor:s.topColor,visible:s.visible,transparency:s.transparency});if(l.palette){const e=this._findPalettesByTargetId(l.id),t=(0,r.ensureDefined)(e.main),o=e.secondary;return n.createElement(Pt,{key:l.id,title:l.title,area:l,palette:(0,r.ensureDefined)(t.palette),paletteProps:(0,r.ensureDefined)(t.paletteProps),secondaryPalette:o?.palette,secondaryPaletteProps:o?.paletteProps,styleProp:s})}return null}if(l.palette){const e=this._findPalettesByTargetId(l.id),t=(0,r.ensureDefined)(e.main);return n.createElement(Pt,{key:l.id,title:l.title,area:l,palette:(0,r.ensureDefined)(t.palette),paletteProps:(0,r.ensureDefined)(t.paletteProps),styleProp:s})}return n.createElement(me,{key:l.id,id:l.id,title:i,color:s.color,visible:s.visible,transparency:s.transparency})}))}_graphicsElement(){const{study:e}=this.props,t=e.metaInfo().graphics,l=Object.keys(t);return l.length?n.createElement(n.Fragment,null,n.createElement(U.PropertyTable.GroupSeparator,{className:zl.groupSeparator,size:1}),n.createElement(U.PropertyTable.Row,null,n.createElement(F.GroupTitleSection,{title:Ul,name:Ul}),l.map((t=>n.createElement(Ut,{key:t,graphicType:t,study:e}))))):null}_findPalettesByTargetId(e){const{study:t}=this.props,l=t.metaInfo(),n=l.plots,o=(0,r.ensureDefined)(l.palettes),s={};for(const l of n){if(((0,W.isPaletteColorerPlot)(l)||(0,W.isOhlcColorerPlot)(l))&&l.target===e){if(s.main){s.secondary={palette:o[l.palette],paletteProps:t.properties().palettes[l.palette]};continue}s.main={palette:o[l.palette],paletteProps:t.properties().palettes[l.palette]}}(0,W.isUpColorerPlot)(l)&&l.target===e&&(s.up={palette:o[l.palette],paletteProps:t.properties().palettes[l.palette]}),(0,W.isDownColorerPlot)(l)&&l.target===e&&(s.down={palette:o[l.palette],paletteProps:t.properties().palettes[l.palette]}),(0,W.isCandleWickColorerPlot)(l)&&l.target===e&&(s.wick={palette:o[l.palette],paletteProps:t.properties().palettes[l.palette]}),(0,W.isCandleBorderColorerPlot)(l)&&l.target===e&&(s.border={palette:o[l.palette],paletteProps:t.properties().palettes[l.palette]})}return s}}function Xl(e){return q(Yl,{...e,property:e.study.properties()},O(e.study))}class ql extends n.PureComponent{render(){return n.createElement(A.Provider,{value:this.props.model},n.createElement(M.Provider,{value:this.props.source},n.createElement(Xl,{study:this.props.source})))}}class $l extends V.DialogRenderer{constructor(e,t,l,n){super(),this._timeout=null,this._onDestroy=null,this._handleClose=()=>{this._rootInstance?.unmount(),this._onDestroy?.(),this._setVisibility(!1),this._subscription.unsubscribe(this,this._handleCollectionChanged)},
this._handleCancel=()=>{this._model.undoToCheckpoint(this._checkpoint)},this._handleSubmit=()=>{},this._handleActiveTabChanged=e=>{c.setValue(this._activeTabSettingsName(),e)},this._source=e,this._model=t,this._propertyPages=n,this._checkpoint=this._ensureCheckpoint(l),this._subscription=this._model.model().dataSourceCollectionChanged(),this._subscription.subscribe(this,this._handleCollectionChanged)}hide(e){e?this._handleCancel():this._handleSubmit(),this._handleClose()}isVisible(){return this.visible().value()}show(e={}){if(!(0,s.isFeaturesetEnabled)("property_pages")||this.isVisible())return;const t=this._source.metaInfo();if((0,g.isLineTool)(this._source)&&(0,p.trackEvent)("GUI","Drawing Properties",this._source.name()),(0,y.isStudy)(this._source)){const e=!this._source.isPine()||this._source.isStandardPine()?t.description:"Custom Pine";(0,p.trackEvent)("GUI","Study Properties",e)}let r=[];const i=new I.MetaInfoHelper(t);i.hasUserEditableInputs()&&r.push({id:"inputs",label:o.t(null,void 0,l(2931)),Component:D}),i.hasUserEditableProperties(),i.hasUserEditableStyles()&&r.push({id:"style",label:o.t(null,void 0,l(31992)),Component:ql}),this._propertyPages||r.push({id:"visibilities",label:o.t(null,void 0,l(87733)),page:this._createVisibilitiesPropertyPage()}),r=this._getPagesForStudyLineTool(r);const u=e.initialTab||c.getValue(this._activeTabSettingsName())||"inputs";let h=(0,a.clean)(t.shortDescription,!0);const m=r.find((e=>e.id===u))??r[0];this._rootInstance=(0,B.createReactRoot)(n.createElement(S,{title:h,model:this._model,source:this._source,initialActiveTab:m.id,pages:r,shouldReturnFocus:e.shouldReturnFocus,onSubmit:this._handleSubmit,onCancel:this._handleCancel,onClose:this._handleClose,onActiveTabChanged:this._handleActiveTabChanged,closeOnOutsideClick:e.closeOnOutsideClick}),this._container),e.onDestroy&&(this._onDestroy=e.onDestroy),this._setVisibility(!0),d.emit("edit_object_dialog",{objectType:"study",scriptTitle:this._source.title(T.TitleDisplayTarget.StatusLine)})}_createVisibilitiesPropertyPage(){const e=this._source.properties().childs().intervalsVisibilities.childs();return(0,L.createPropertyPage)((0,N.getIntervalsVisibilitiesPropertiesDefinitions)(this._model,e,new i.TranslatedString(this._source.name(!0),this._source.title(T.TitleDisplayTarget.StatusLine,!0))),"visibility",o.t(null,void 0,l(87733)))}_activeTabSettingsName(){return"properties_dialog.active_tab.study"}_ensureCheckpoint(e){return void 0===e&&(e=this._model.createUndoCheckpoint()),e}_getPagesForStudyLineTool(e){if(this._propertyPages){const t=this._propertyPages.filter((e=>"coordinates"===e.id||"visibility"===e.id));return[...e,...t.map((e=>({id:e.id,label:e.title,page:e})))]}return e}_handleCollectionChanged(){null===this._timeout&&(this._timeout=setTimeout((()=>{this._closeDialogIfSourceIsDeleted(),this._timeout=null})))}_closeDialogIfSourceIsDeleted(){const e=this._model.model().dataSourceForId(this._source.id());null!==e?e.instanceId()!==this._source.instanceId()&&this._handleClose():this._handleClose()}}},38595:(e,t,l)=>{
"use strict";l.d(t,{PropertyActions:()=>m});var n=l(79474),r=l(14487),o=l.n(r),s=l(66334),i=l(91599),a=l(15923),c=l(1642),d=l(78025),p=l(64672);const u={reset:i.t(null,void 0,l(6328)),saveAsDefault:i.t(null,void 0,l(12354)),defaults:i.t(null,void 0,l(7178))};var h;!function(e){e.Normal="normal",e.Compact="compact"}(h||(h={}));class m extends n.PureComponent{render(){const{mode:e,saveAsDefaults:t,resetToDefaults:l}=this.props;return n.createElement(a.ControlDisclosure,{id:"property-actions",className:o()("normal"===e&&p.defaultsButtonText),hideArrowButton:"compact"===e,buttonChildren:this._getPlaceHolderItem("compact"===e)},n.createElement(c.PopupMenuItem,{className:p.defaultsButtonItem,isActive:!1,label:u.reset,onClick:l}),n.createElement(c.PopupMenuItem,{className:p.defaultsButtonItem,isActive:!1,label:u.saveAsDefault,onClick:t}))}_getPlaceHolderItem(e){return e?n.createElement(s.Icon,{className:p.defaultsButtonIcon,icon:d}):u.defaults}}},74417:(e,t,l)=>{"use strict";l.d(t,{FooterMenu:()=>f});var n=l(79474),r=l(91599),o=l(66334),s=l(15923),i=l(54466),a=l(33347),c=l(78025);function d(e){return e.isTabletWidth?n.createElement(o.Icon,{className:a.themesButtonIcon,icon:c}):n.createElement(n.Fragment,null,r.t(null,void 0,l(15256)))}function p(e){return n.createElement(i.MatchMedia,{rule:"(max-width: 768px)"},(t=>n.createElement(s.ControlDisclosure,{className:!t&&a.themesButtonText,hideArrowButton:t,buttonChildren:n.createElement(d,{isTabletWidth:t})},e.children)))}var u=l(1642),h=l(57058),m=l(53530),y=l(72445),v=l(32509);function g(e){const{name:t,onRemove:l,onClick:r}=e,[o,s]=(0,m.useHoverDeprecated)(),i=n.useCallback((()=>r(t)),[r,t]),c=n.useCallback((()=>{l&&l(t)}),[l,t]);return n.createElement("div",{...s},n.createElement(u.PopupMenuItem,{className:a.defaultsButtonItem,isActive:!1,label:t,onClick:i,toolbox:l&&n.createElement(h.RemoveButton,{hidden:!y.mobiletouch&&!o,onClick:c,icon:v})}))}function b(e){return n.createElement(p,null,n.createElement(g,{onClick:function(){const{sources:t,chartUndoModel:l}=e;l.restoreLineToolsFactoryDefaults(t)},name:r.t(null,void 0,l(14916))}))}function f(e){return n.createElement(b,{...e})}},34022:(e,t,l)=>{"use strict";l.d(t,{PropertiesEditorTab:()=>c});var n=l(79474),r=l(99189);const o={"Elliott Impulse Wave (12345)Degree":"normal","Elliott Triangle Wave (ABCDE)Degree":"normal","Elliott Triple Combo Wave (WXYXZ)Degree":"normal","Elliott Correction Wave (ABC)Degree":"normal","Elliott Double Combo Wave (WXY)Degree":"normal",BarsPatternMode:"normal",StudyInputSource:"normal",trendLineToolCheckableListGroup:"big",trendLineToolStatsPosition:"big",lineExtend:"big",datePriceRangeCheckableListGroup:"big",riskRewardCheckableListGroup:"big"},s={TextText:"big",AnchoredTextText:"big",NoteText:"big",AnchoredNoteText:"big",CalloutText:"big",BalloonText:"big"};var i=l(20819),a=l(73951);function c(e){const{page:t,pageRef:l,tableKey:c}=e;return n.createElement(r.ControlCustomHeightContext.Provider,{value:s},n.createElement(r.ControlCustomWidthContext.Provider,{value:o
},t&&n.createElement(i.PropertyTable,{reference:l,key:c},t.definitions.value().map((e=>n.createElement(a.Section,{key:e.id,definition:e}))))))}},29796:(e,t,l)=>{"use strict";l.d(t,{PopupMenuSeparator:()=>a});var n,r=l(79474),o=l(14487),s=l.n(o),i=l(52417);function a(e){const{size:t="normal",className:l,ariaHidden:n=!1}=e;return r.createElement("div",{className:s()(i.separator,"small"===t&&i.small,"normal"===t&&i.normal,"large"===t&&i.large,l),role:"separator","aria-hidden":n})}!function(e){e.Small="small",e.Large="large",e.Normal="normal"}(n||(n={}))},60591:(e,t,l)=>{"use strict";l.d(t,{UnderlineButtonTabs:()=>$});var n,r=l(79474),o=l(14487),s=l.n(o),i=l(91599),a=l(98028),c=l(9774),d=l(69550),p=l(59654),u=l(1500),h=l(55501);!function(e){e.XSmall="xsmall",e.Small="small",e.Medium="medium",e.Large="large",e.XLarge="xlarge"}(n||(n={}));const m=(0,r.createContext)({size:"small",overflowBehaviour:void 0});var y=l(42391),v=l(3257);function g(e){const{size:t="xsmall",active:l,fake:n,enableActiveStateStyles:r,anchor:o=!1,hideFocusOutline:i=!1,equalTabSize:a,className:c,overflowBehaviour:d,disabled:p}=e;return s()(v["underline-tab"],v[`size-${t}`],l&&v.selected,!r&&v["disable-active-state-styles"],i&&v["disable-focus-outline"],n&&v.fake,o&&v["enable-cursor-pointer"],a&&v[`margin-${t}`],"collapse"===d&&v.collapse,p&&v.disabled,c)}const b=(0,r.forwardRef)(((e,t)=>{const{size:l,overflowBehaviour:n}=(0,r.useContext)(m),o=(0,r.useContext)(y.CustomBehaviourContext),{active:i,fake:a,className:c,enableActiveStateStyles:d=o.enableActiveStateStyles,hideFocusOutline:p=!1,equalTabSize:u,children:h,disabled:b,...f}=e;return r.createElement("button",{...f,ref:t,className:g({size:l,active:i,fake:a,enableActiveStateStyles:d,hideFocusOutline:p,equalTabSize:u,className:c,overflowBehaviour:n,disabled:b})},u&&"string"==typeof h?r.createElement("span",{className:s()(v["ellipsis-children"],"apply-overflow-tooltip")},h):h)}));b.displayName="UnderlineTabsBaseButton";const f=(0,r.forwardRef)(((e,t)=>{const{item:l,highlighted:n,handleItemRef:o,onClick:s,...i}=e,a=(0,r.useCallback)((()=>{s&&s(l)}),[s,l]),c=(0,r.useCallback)((e=>{o&&o(l,e),t&&"object"==typeof t?t.current=e:"function"==typeof t&&t(e)}),[l,o,t]);return r.createElement(b,{...i,id:l.id,onClick:a,ref:c},l.label)}));f.displayName="UnderlineButtonTab";var w=l(85842),C=l(1642),S=l(19840),P=l(66334),E=l(22955),_=l(43616),T=l(88860),x=l(25029),k=l(26946);function I(e){switch(e){case"xsmall":return E;case"small":return _;case"medium":case"large":return T;case"xlarge":return x}}function R(e){const{size:t,isDropped:l=!1}=e;return r.createElement(P.Icon,{icon:I(t),className:o(k["arrow-icon"],k[`size-${t}`],l&&k.dropped)})}var D=l(61893);const L=4,V=4;function N(e){const{size:t,disabled:l,isOpened:n,enableActiveStateStyles:o,hideFocusOutline:s,fake:i,items:a,buttonContent:d,buttonRef:p,isAnchorTabs:u,isHighlighted:h,onButtonClick:m,onItemClick:y,onClose:v}=e,g=(0,r.useRef)(null),f=(0,c.useMergedRefs)([p,g]),P=function(e,t){const l=(0,r.useRef)(A);return(0,r.useEffect)((()=>{
const e=getComputedStyle((0,w.ensureNotNull)(t.current));l.current={xsmall:B(e,"xsmall"),small:B(e,"small"),medium:B(e,"medium"),large:B(e,"large"),xlarge:B(e,"xlarge")}}),[t]),(0,r.useCallback)((()=>{const n=(0,w.ensureNotNull)(t.current).getBoundingClientRect(),r=l.current[e];return{x:n.left,y:n.top+n.height+r+L,indentFromWindow:{top:V,bottom:V,left:V,right:V}}}),[t,e])}(t,g);return r.createElement(S.PopupMenuDisclosureView,{buttonRef:g,listboxTabIndex:-1,isOpened:n,onClose:v,listboxAria:{"aria-hidden":!0},popupPosition:P,button:r.createElement(b,{"aria-hidden":!0,disabled:l,active:n,onClick:m,ref:f,tabIndex:-1,enableActiveStateStyles:o,hideFocusOutline:s,fake:i},d,r.createElement(R,{size:t,isDropped:n})),popupChildren:a.map((e=>r.createElement(C.PopupMenuItem,{key:e.id,className:u?D["link-item"]:void 0,onClick:y,onClickArg:e,isActive:h(e),label:e.label,isDisabled:e.disabled,link:"href"in e?e.href:void 0,rel:"rel"in e?e.rel:void 0,target:"target"in e?e.target:void 0,renderComponent:"renderComponent"in e?e.renderComponent:void 0,dontClosePopup:!0})))})}function B(e,t){return parseInt(e.getPropertyValue(`--ui-lib-underline-tabs-tab-margin-bottom-${t}`),10)}const A={xsmall:0,small:0,medium:0,large:0,xlarge:0};var M=l(56688),z=l(90632),W=l(90353),H=l(52915);function O(e){const{size:t,overflowBehaviour:l,className:n}=e;return s()(H["scroll-wrap"],H[`size-${t}`],"scroll"===l&&H["enable-scroll"],n)}function F(){const[e,t]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{t(M.mobiletouch)}),[]),e}var U=l(88434),G=l(81458),j=l(38057),Y=l.n(j);const X=100;function q(e){const{disabled:t,translateX:l,transitionDuration:n}=e,s=e.scale/100;return r.createElement("div",{className:o(Y().underline,t&&Y().disabled),style:{transform:`translateX(${l}px) scaleX(${s})`,transitionDuration:`${n}ms`}},r.createElement("div",{className:Y().corner,style:{transform:`scaleX(${1/s})`}}),r.createElement("div",{className:Y().center,style:{transform:`scaleX(${1-30/e.scale})`}}),r.createElement("div",{className:Y().corner,style:{transform:`scaleX(${1/s})`}}))}function $(e){const{id:t,items:n,activationType:o,disabled:y,moreButtonContent:v=i.t(null,void 0,l(94947)),size:g="small",onActivate:b,isActive:w,className:C,style:S,overflowBehaviour:P,enableActiveStateStyles:E,tablistLabelId:_,tablistLabel:T,"data-name":x="underline-tabs-buttons",stretchTabs:k,equalTabSize:I,defaultKeyboardFocus:R,stopPropagationIfKeyboardActionHandled:D,keyboardNavigationLoop:L,focusableItemAttributes:V,dataQaId:B="underline-tabs-buttons"}=e,A=F(),M=function(e){const t=(0,z.useSafeMatchMedia)(W["media-mf-phone-landscape"],!0),l=F();return e??(l||!t?"scroll":"collapse")}(P),j=(0,r.useRef)(!1),Y=(0,r.useCallback)((e=>e.id),[]),$="none"===M&&k,J="none"===M&&I,K=E??!A,{visibleItems:Q,hiddenItems:Z,containerRefCallback:ee,innerContainerRefCallback:te,moreButtonRef:le,setItemRef:ne}=(0,a.useCollapsible)(n,Y,w),re="collapse"===M?Q:n,oe="collapse"===M?Z:[],se=(0,r.useCallback)((e=>oe.includes(e)),[oe]),ie=(0,r.useRef)(new Map),{isOpened:ae,open:ce,close:de,onButtonClick:pe}=(0,
p.useDisclosure)({id:t,disabled:y}),ue=function(e="xsmall"){switch(e){case"xsmall":case"small":return 12;case"medium":return 16;case"large":case"xlarge":return 20}}(g),{tabsBindings:he,tablistBinding:me,scrollWrapBinding:ye,onActivate:ve,onHighlight:ge,isHighlighted:be}=(0,u.useTabs)({id:t,items:[...re,...oe],activationType:o,disabled:y,tablistLabelId:_,tablistLabel:T,onActivate:b,isActive:w,isCollapsed:se,isRtl:G.isRtl,itemsRefs:ie,isDisclosureOpened:ae,defaultKeyboardFocus:R,stopPropagationIfKeyboardActionHandled:D,keyboardNavigationLoop:L,focusableItemAttributes:V,scrollIntoViewOptions:{additionalScroll:ue}}),fe=n.find(w),we=oe.find(be),Ce=(0,r.useCallback)((()=>{fe&&ge(fe)}),[ge,fe]),Se=(0,r.useCallback)((e=>he.find((t=>t.id===e.id))??{}),[he]),Pe=(0,r.useCallback)((()=>{de(),Ce(),j.current=!0}),[de,Ce]),Ee=(0,r.useCallback)((()=>{we&&(ve(we),ge(we,200))}),[ve,ge,we]);ye.ref=(0,c.useMergedRefs)([ye.ref,ee]),me.ref=(0,c.useMergedRefs)([me.ref,te]),me.onKeyDown=(0,d.createSafeMulticastEventHandler)((0,h.useKeyboardEventHandler)([(0,h.useKeyboardClose)(ae,Pe),(0,h.useKeyboardActionHandler)([13,32],Ee,(0,r.useCallback)((()=>Boolean(we)),[we]))]),me.onKeyDown);const _e=(0,r.useCallback)((e=>{j.current=!0,pe(e)}),[j,pe]),Te=(0,r.useCallback)((e=>{e&&ve(e)}),[ve]);(0,r.useEffect)((()=>{j.current?j.current=!1:(we&&!ae&&ce(),!we&&ae&&de())}),[we,ae,ce,de]);const xe=function(e,t,l=[]){const[n,o]=(0,r.useState)(),s=(0,r.useRef)(),i=(0,r.useRef)(),a=(0,r.useRef)(),c=e=>{const t=e.parentElement??void 0;if(void 0===t)return;const l=void 0===i.current||i.current===e?0:X;i.current=e;const{left:n,right:r,width:s}=e.getBoundingClientRect(),{left:a,right:c}=t.getBoundingClientRect(),d=(0,G.isRtl)()?r-c:n-a;o({translateX:d,scale:s,transitionDuration:l})};return(0,r.useEffect)((()=>{const e=(0,U.default)((()=>{const e=a.current;e&&c(e)}),50);s.current=new ResizeObserver(e)}),[]),(0,r.useEffect)((()=>{if(void 0===t)return;const l=e.get(t),n=s.current;if(n){for(const t of e.values())n.observe(t);return a.current=l,l&&c(l),()=>n.disconnect()}}),l),n}(ie.current,fe??we,[fe??we,re,g,$,M]);return r.createElement(m.Provider,{value:{size:g,overflowBehaviour:M}},r.createElement("div",{...ye,className:O({size:g,overflowBehaviour:M,className:C}),style:S,"data-name":x,"data-qa-id":B},r.createElement("div",{...me,className:s()(H["underline-tabs"],{[H["make-grid-column"]]:$||J,[H["stretch-tabs"]]:$,[H["equal-tab-size"]]:J})},re.map((e=>r.createElement(f,{...Se(e),key:e.id,item:e,onClick:ve,enableActiveStateStyles:K,hideFocusOutline:A,ref:ne(Y(e)),...e.dataId&&{"data-id":e.dataId},"data-qa-id":e.dataId,equalTabSize:J}))),oe.map((e=>r.createElement(f,{...Se(e),ref:ne(Y(e)),key:e.id,item:e,fake:!0}))),"collapse"===M&&r.createElement(N,{size:g,disabled:y,isOpened:ae,items:oe,buttonContent:v,buttonRef:le,isHighlighted:be,onButtonClick:_e,onItemClick:Te,onClose:de,enableActiveStateStyles:K,hideFocusOutline:A,fake:0===oe.length}),xe?r.createElement(q,{...xe,disabled:y}):r.createElement("div",null))))}var J=l(94949);function K(e){
return r.createElement("a",{...(0,J.renameRef)(e)})}(0,r.forwardRef)(((e,t)=>{const{size:l,overflowBehaviour:n}=(0,r.useContext)(m),o=(0,r.useContext)(y.CustomBehaviourContext),{item:s,highlighted:i,handleItemRef:a,onClick:c,active:d,fake:p,className:u,enableActiveStateStyles:h=o.enableActiveStateStyles,hideFocusOutline:v=!1,disabled:b,"aria-disabled":f,...w}=e,C=(0,r.useCallback)((e=>{f?e.preventDefault():c&&c(s)}),[c,f,s]),S=(0,r.useCallback)((e=>{a&&a(s,e),t&&"object"==typeof t?t.current=e:"function"==typeof t&&t(e)}),[s,a,t]),P=s.renderComponent??K;return r.createElement(P,{...w,id:s.id,"aria-disabled":f,onClick:C,reference:S,href:s.href,rel:s.rel,target:s.target,className:g({size:l,active:d,fake:p,enableActiveStateStyles:h,anchor:!0,hideFocusOutline:v,className:u,overflowBehaviour:n})},s.label)})).displayName="UnderlineAnchorTab"},53660:e=>{"use strict";const t=55296,l=127995,n=127999,r=[776,2359,2359,2367,2367,2984,3007,3021,3633,3635,3648,3657,4352,4449,4520];function o(e){if("string"!=typeof e)throw new Error("string cannot be undefined or null");const t=[];let l=0,n=0;for(;l<e.length;)n+=s(l+n,e),d(e[l+n])&&n++,a(e[l+n])&&n++,c(e[l+n])&&n++,p(e[l+n])?n++:(t.push(e.substring(l,l+n)),l+=n,n=0);return t}function s(e,r){const o=r[e];if(!function(e){return e&&h(e[0].charCodeAt(0),t,56319)}(o)||e===r.length-1)return 1;const s=o+r[e+1];let a=r.substring(e+2,e+5);return i(s)&&i(a)||function(e){return h(u(e),l,n)}(a)?4:2}function i(e){return h(u(e),127462,127487)}function a(e){return"string"==typeof e&&h(e.charCodeAt(0),65024,65039)}function c(e){return"string"==typeof e&&h(e.charCodeAt(0),8400,8447)}function d(e){return"string"==typeof e&&-1!==r.indexOf(e.charCodeAt(0))}function p(e){return"string"==typeof e&&8205===e.charCodeAt(0)}function u(e){return(e.charCodeAt(0)-t<<10)+(e.charCodeAt(1)-56320)+65536}function h(e,t,l){return e>=t&&e<=l}e.exports=o,e.exports.substr=function(e,t,l){const n=o(e);if(void 0===t)return e;if(t>=n.length)return"";const r=n.length-t;let s=t+(void 0===l?r:l);return s>t+r&&(s=void 0),n.slice(t,s).join("")}},30062:e=>{e.exports={wrapper:"wrapper-bl9AR3Gv",hovered:"hovered-bl9AR3Gv",switchWrap:"switchWrap-bl9AR3Gv",withIcon:"withIcon-bl9AR3Gv",labelRow:"labelRow-bl9AR3Gv",label:"label-bl9AR3Gv",icon:"icon-bl9AR3Gv",label_disabled:"label_disabled-bl9AR3Gv",labelHint:"labelHint-bl9AR3Gv",labelOn:"labelOn-bl9AR3Gv",accessible:"accessible-bl9AR3Gv"}},70945:e=>{e.exports={smallStyleControl:"smallStyleControl-y4hmobiE"}},58113:e=>{e.exports={smallStyleControl:"smallStyleControl-rzBVhDsM",additionalSelect:"additionalSelect-rzBVhDsM",childRowContainer:"childRowContainer-rzBVhDsM",defaultSelect:"defaultSelect-rzBVhDsM",defaultSelectItem:"defaultSelectItem-rzBVhDsM",transparency:"transparency-rzBVhDsM",color:"color-rzBVhDsM"}},33255:e=>{e.exports={additionalSelect:"additionalSelect-HsOHD2bT",childRowContainer:"childRowContainer-HsOHD2bT",defaultSelect:"defaultSelect-HsOHD2bT",defaultSelectItem:"defaultSelectItem-HsOHD2bT",block:"block-HsOHD2bT",group:"group-HsOHD2bT",wrapGroup:"wrapGroup-HsOHD2bT",
transparency:"transparency-HsOHD2bT",color:"color-HsOHD2bT"}},76060:e=>{e.exports={groupSeparator:"groupSeparator-g6PDOfX4"}},73522:(e,t,l)=>{"use strict";l.d(t,{DEFAULT_MENU_ITEM_SWITCHER_THEME:()=>w,MenuItemSwitcher:()=>C});var n,r=l(79474),o=l(14487),s=l.n(o),i=l(42391),a=l(40446),c=l.n(a);function d(e){const{size:t="small",checked:l,disabled:n}=e;return r.createElement("span",{className:s()(c().switchView,c()[t],n&&c().disabled,l&&c().checked)},r.createElement("span",{className:c().track}),r.createElement("span",{className:c().thumb}))}!function(e){e.Small="small",e.Medium="medium",e.Large="large"}(n||(n={}));var p,u=l(47893),h=l(62293),m=l.n(h);function y(e){const t=(0,r.useContext)(i.CustomBehaviourContext),{size:l,intent:n="default",checked:o,className:a,enableActiveStateStyles:c=t.enableActiveStateStyles,disabled:p,onChange:h,title:y,id:v,name:g,value:b,tabIndex:f,role:w="switch",ariaDisabled:C,reference:S,ariaLabelledBy:P,ariaLabel:E,..._}=e;return r.createElement("span",{className:s()(a,m().switcher)},r.createElement("input",{..._,type:"checkbox",className:s()(m().input,c&&m().activeStylesEnabled,o&&m().checked,p&&m().disabled),role:w,"aria-checked":o,checked:o,onKeyDown:e=>{13===(0,u.hashFromEvent)(e)&&e.currentTarget?.click()},onChange:h,disabled:p,"aria-disabled":C,tabIndex:f,title:y,id:v,name:g,value:b,ref:S,"aria-label":E,"aria-labelledby":P}),r.createElement("span",{className:s()(m().thumbWrapper,m()[n])},r.createElement(d,{checked:o,size:l,disabled:p})))}!function(e){e.Default="default",e.Select="select"}(p||(p={}));var v=l(66334),g=l(21404),b=l(40197),f=l(30062);const w=f;function C(e){const{role:t,checked:l,onChange:n,className:o,id:i,label:a,labelDescription:c,preventLabelHighlight:d,value:p,reference:h,switchReference:m,theme:w=f,disabled:C,switchRole:S,icon:P}=e,[E,_]=(0,g.useRovingTabindexElement)(null),T=s()(w.label,l&&!d&&w.labelOn,C&&f.label_disabled),x=s()(o,w.wrapper,l&&w.wrapperWithOnLabel,c&&w.wrapperWithDescription);return r.createElement("label",{role:t,className:s()(x,P&&w.withIcon,f.accessible),htmlFor:i,ref:h,onKeyDown:function(e){if(e.target!==e.currentTarget)return;const t=(0,u.hashFromEvent)(e);13!==t&&32!==t||(e.preventDefault(),E.current instanceof HTMLElement&&E.current.click())},tabIndex:_,"data-role":"menuitem","aria-disabled":C||void 0,"aria-selected":l},void 0!==P&&r.createElement(v.Icon,{className:w.icon,icon:P}),r.createElement("div",{className:w.labelRow},r.createElement("div",{className:T},a),c&&r.createElement("div",{className:w.labelHint},c)),r.createElement("div",{className:f.switchWrap},r.createElement(y,{disabled:C,className:w.switch,reference:function(e){E(e),m?.(e)},checked:l,onChange:function(e){const t=e.target.checked;void 0!==n&&n(t)},value:p,tabIndex:-1,id:i,role:S,ariaDisabled:!0,...(0,b.filterDataProps)(e)})))}},18632:(e,t,l)=>{"use strict";l.r(t),l.d(t,{createPropertyPage:()=>r});var n=l(89659);function r(e,t,l,r=null){const o={id:t,title:l,definitions:new n.WatchedValue(e.definitions),visible:e.visible??new n.WatchedValue(!0).readonly()}
;return null!==r&&(o.icon=r),o}},5258:(e,t,l)=>{"use strict";l.r(t),l.d(t,{getIntervalsVisibilitiesPropertiesDefinitions:()=>ae,getSelectionIntervalsVisibilitiesPropertiesDefinition:()=>ce});var n=l(91599),r=l(72769),o=l(73405),s=l(89659),i=l(77555),a=l(47778),c=l(33993),d=l(92401);const p=new r.TranslatedString("change {title} visibility on ticks",n.t(null,void 0,l(51732))),u=new r.TranslatedString("change {title} visibility on seconds",n.t(null,void 0,l(4910))),h=new r.TranslatedString("change {title} seconds from",n.t(null,void 0,l(34736))),m=new r.TranslatedString("change {title} seconds to",n.t(null,void 0,l(82723))),y=new r.TranslatedString("change {title} visibility on minutes",n.t(null,void 0,l(3879))),v=new r.TranslatedString("change {title} minutes from",n.t(null,void 0,l(31281))),g=new r.TranslatedString("change {title} minutes to",n.t(null,void 0,l(12570))),b=new r.TranslatedString("change {title} visibility on hours",n.t(null,void 0,l(41369))),f=new r.TranslatedString("change {title} hours from",n.t(null,void 0,l(31657))),w=new r.TranslatedString("change {title} hours to",n.t(null,void 0,l(76212))),C=new r.TranslatedString("change {title} visibility on days",n.t(null,void 0,l(92284))),S=new r.TranslatedString("change {title} days from",n.t(null,void 0,l(3901))),P=new r.TranslatedString("change {title} days to",n.t(null,void 0,l(70790))),E=new r.TranslatedString("change {title} visibility on weeks",n.t(null,void 0,l(7662))),_=new r.TranslatedString("change {title} weeks from",n.t(null,void 0,l(75220))),T=new r.TranslatedString("change {title} weeks to",n.t(null,void 0,l(14204))),x=new r.TranslatedString("change {title} visibility on months",n.t(null,void 0,l(91395))),k=new r.TranslatedString("change {title} months from",n.t(null,void 0,l(78990))),I=new r.TranslatedString("change {title} months to",n.t(null,void 0,l(23882))),R=(new r.TranslatedString("change {title} visibility on ranges",n.t(null,{replace:{ranges:"ranges"}},l(14065))),
n.t(null,void 0,l(70243))),D=n.t(null,void 0,l(54814)),L=n.t(null,void 0,l(26671)),V=n.t(null,void 0,l(26403)),N=n.t(null,void 0,l(30721)),B=n.t(null,void 0,l(51728)),A=n.t(null,void 0,l(95337)),M=new r.TranslatedString("ticks",n.t(null,void 0,l(55569))),z=new r.TranslatedString("seconds",n.t(null,void 0,l(32660))),W=new r.TranslatedString("seconds from",n.t(null,void 0,l(10470))),H=new r.TranslatedString("seconds to",n.t(null,void 0,l(49557))),O=new r.TranslatedString("minutes",n.t(null,void 0,l(81701))),F=new r.TranslatedString("minutes from",n.t(null,void 0,l(72399))),U=new r.TranslatedString("minutes to",n.t(null,void 0,l(74356))),G=new r.TranslatedString("hours",n.t(null,void 0,l(92113))),j=new r.TranslatedString("hours from",n.t(null,void 0,l(87376))),Y=new r.TranslatedString("hours to",n.t(null,void 0,l(30949))),X=new r.TranslatedString("days",n.t(null,void 0,l(27529))),q=new r.TranslatedString("days from",n.t(null,void 0,l(2051))),$=new r.TranslatedString("days to",n.t(null,void 0,l(13096))),J=new r.TranslatedString("weeks",n.t(null,void 0,l(56398))),K=new r.TranslatedString("weeks from",n.t(null,void 0,l(39142))),Q=new r.TranslatedString("weeks to",n.t(null,void 0,l(20786))),Z=new r.TranslatedString("months",n.t(null,void 0,l(94355))),ee=new r.TranslatedString("months from",n.t(null,void 0,l(92656))),te=new r.TranslatedString("months to",n.t(null,void 0,l(35600))),le=(new r.TranslatedString("ranges","ranges"),[1,59]),ne=[1,59],re=[1,24],oe=[1,366],se=[1,52],ie=[1,12];function ae(e,t,l){const n=[];if((0,a.isTicksEnabled)()){const r=(0,o.createCheckablePropertyDefinition)({checked:(0,o.convertToDefinitionProperty)(e,t.ticks,p.format({title:l}))},{id:"IntervalsVisibilitiesTicks",title:R});n.push(r)}if((0,i.isSecondsEnabled)()){const r=(0,o.createRangePropertyDefinition)({checked:(0,o.convertToDefinitionProperty)(e,t.seconds,u.format({title:l})),from:(0,o.convertToDefinitionProperty)(e,t.secondsFrom,h.format({title:l})),to:(0,o.convertToDefinitionProperty)(e,t.secondsTo,m.format({title:l}))},{id:"IntervalsVisibilitiesSecond",title:D,min:new s.WatchedValue(le[0]),max:new s.WatchedValue(le[1])});n.push(r)}const r=(0,o.createRangePropertyDefinition)({checked:(0,o.convertToDefinitionProperty)(e,t.minutes,y.format({title:l})),from:(0,o.convertToDefinitionProperty)(e,t.minutesFrom,v.format({title:l})),to:(0,o.convertToDefinitionProperty)(e,t.minutesTo,g.format({title:l}))},{id:"IntervalsVisibilitiesMinutes",title:L,min:new s.WatchedValue(ne[0]),max:new s.WatchedValue(ne[1])}),c=(0,o.createRangePropertyDefinition)({checked:(0,o.convertToDefinitionProperty)(e,t.hours,b.format({title:l})),from:(0,o.convertToDefinitionProperty)(e,t.hoursFrom,f.format({title:l})),to:(0,o.convertToDefinitionProperty)(e,t.hoursTo,w.format({title:l}))},{id:"IntervalsVisibilitiesHours",title:V,min:new s.WatchedValue(re[0]),max:new s.WatchedValue(re[1])}),d=(0,o.createRangePropertyDefinition)({checked:(0,o.convertToDefinitionProperty)(e,t.days,C.format({title:l})),from:(0,o.convertToDefinitionProperty)(e,t.daysFrom,S.format({title:l})),to:(0,
o.convertToDefinitionProperty)(e,t.daysTo,P.format({title:l}))},{id:"IntervalsVisibilitiesDays",title:N,min:new s.WatchedValue(oe[0]),max:new s.WatchedValue(oe[1])});n.push(r,c,d);const M=(0,o.createRangePropertyDefinition)({checked:(0,o.convertToDefinitionProperty)(e,t.weeks,E.format({title:l})),from:(0,o.convertToDefinitionProperty)(e,t.weeksFrom,_.format({title:l})),to:(0,o.convertToDefinitionProperty)(e,t.weeksTo,T.format({title:l}))},{id:"IntervalsVisibilitiesWeeks",title:B,min:new s.WatchedValue(se[0]),max:new s.WatchedValue(se[1])}),z=(0,o.createRangePropertyDefinition)({checked:(0,o.convertToDefinitionProperty)(e,t.months,x.format({title:l})),from:(0,o.convertToDefinitionProperty)(e,t.monthsFrom,k.format({title:l})),to:(0,o.convertToDefinitionProperty)(e,t.monthsTo,I.format({title:l}))},{id:"IntervalsVisibilitiesMonths",title:A,min:new s.WatchedValue(ie[0]),max:new s.WatchedValue(ie[1])});return n.push(M,z),{definitions:n}}function ce(e,t){const l=[];if((0,a.isTicksEnabled)()){const n=(0,o.createCheckablePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.ticks),M,t)},{id:"IntervalsVisibilitiesTicks",title:R});l.push(n)}if((0,i.isSecondsEnabled)()){const n=(0,o.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.seconds),z,t),from:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.secondsFrom),W,t),to:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.secondsTo),H,t)},{id:"IntervalsVisibilitiesSecond",title:D,min:new s.WatchedValue(le[0]),max:new s.WatchedValue(le[1])});l.push(n)}const n=(0,o.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.minutes),O,t),from:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.minutesFrom),F,t),to:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.minutesTo),U,t)},{id:"IntervalsVisibilitiesMinutes",title:L,min:new s.WatchedValue(ne[0]),max:new s.WatchedValue(ne[1])}),r=(0,o.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.hours),G,t),from:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.hoursFrom),j,t),to:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.hoursTo),Y,t)},{id:"IntervalsVisibilitiesHours",title:V,min:new s.WatchedValue(re[0]),max:new s.WatchedValue(re[1])}),p=(0,o.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.days),X,t),from:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.daysFrom),q,t),to:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.daysTo),$,t)},{id:"IntervalsVisibilitiesDays",title:N,min:new s.WatchedValue(oe[0]),max:new s.WatchedValue(oe[1])});l.push(n,r,p);const u=(0,o.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.weeks),J,t),
from:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.weeksFrom),K,t),to:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.weeksTo),Q,t)},{id:"IntervalsVisibilitiesWeeks",title:B,min:new s.WatchedValue(se[0]),max:new s.WatchedValue(se[1])}),h=(0,o.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.months),Z,t),from:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.monthsFrom),ee,t),to:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.monthsTo),te,t)},{id:"IntervalsVisibilitiesMonths",title:A,min:new s.WatchedValue(ie[0]),max:new s.WatchedValue(ie[1])});return l.push(u,h),{definitions:l}}},20714:(e,t,l)=>{"use strict";l.d(t,{isCustomStudy:()=>r});const n={VbPFixed:!0,PivotPointsStandard:!0,VbPVisible:!0,VbPAnchored:!0};function r(e){return e in n}},5003:(e,t,l)=>{"use strict";l.d(t,{MetaInfoHelper:()=>u});var n=l(85842),r=l(73775),o=l(6620),s=l(65164),i=l(7321),a=l(16570);function c(e){return!e.groupId&&!e.isHidden&&e.id!==a.RangeDependentStudyInputNames.FirstBar&&e.id!==a.RangeDependentStudyInputNames.LastBar}var d=l(20714);const p=(0,r.getLogger)("Platform.GUI.PropertyDialog.Indicators.MetaInfo");class u{constructor(e){this._metaInfo=e}hasUserEditableInputs(){return this._metaInfo.inputs.some(c)}getUserEditableInputs(){return this._metaInfo.inputs.filter(c)}hasUserEditableProperties(){return o.StudyMetaInfo.isScriptStrategy(this._metaInfo)}hasUserEditableStyles(){const e=this._metaInfo;return e.plots.length>0||void 0!==e.bands||void 0!==e.filledAreas||(0,d.isCustomStudy)(e.shortId)||o.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((l=>{if((0,s.isColorerPlot)(l)||(0,s.isTextColorerPlot)(l)||(0,s.isDataOffsetPlot)(l)||(0,s.isOhlcColorerPlot)(l)||(0,s.isAlertConditionPlot)(l)||(0,s.isDataPlot)(l))return!1;if((0,s.isOhlcPlot)(l)){const r=l.target;if(e.has(r))return!1;e.add(r);const o=(0,n.ensureDefined)(t.ohlcPlots);return!(0,n.ensureDefined)(o[r]).isHidden}{const e=t.styles?t.styles[l.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(m),l={...h};for(const n of t){const t=n.internalID;l[t]=n,h.hasOwnProperty(t)||p.logWarn(`Unknown strategy input internal id ${t} in ${e.fullId}`)}return(0,i.clone)(l)}}const h={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 m(e){return"strategy_props"===e.groupId}},92401:(e,t,l)=>{
"use strict";l.d(t,{CollectiblePropertyUndoWrapper:()=>a});var n=l(85842),r=l(91599),o=l(72769),s=l(22384);const i=new o.TranslatedString("change {propertyName} property",r.t(null,void 0,l(3327)));class a extends s.Property{constructor(e,t,l){super(),this._isProcess=!1,this._listenersMappers=[],this._valueApplier={applyValue:(e,t)=>{this._propertyApplier.setProperty(e,t,i)}},this._baseProperty=e,this._propertyApplier=l,this._propertyName=t}destroy(){this._baseProperty.destroy(),super.destroy()}value(){return this._baseProperty.value()}setValue(e,t){this._propertyApplier.beginUndoMacro(i.format({propertyName:this._propertyName})),this._isProcess=!0,this._baseProperty.setValue(e,void 0,this._valueApplier),this._isProcess=!1,this._propertyApplier.endUndoMacro(),this._listenersMappers.forEach((e=>{e.method.call(e.obj,this,"")}))}subscribe(e,t){const l=()=>{this._isProcess||t.call(e,this,"")};this._listenersMappers.push({obj:e,method:t,callback:l}),this._baseProperty.subscribe(e,l)}unsubscribe(e,t){const l=(0,n.ensureDefined)(this._listenersMappers.find((l=>l.obj===e&&l.method===t))?.callback);this._baseProperty.unsubscribe(e,l)}unsubscribeAll(e){this._baseProperty.unsubscribeAll(e)}}},76210:(e,t,l)=>{"use strict";l.d(t,{StudyPlotVisibleProperty:()=>o});var n=l(944),r=l(68484);class o extends r.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?4294967295:0)}setValueSilently(e){this._displayProperty.setValueSilently(e?4294967295:0)}storeStateIfUndefined(){return!1}weakReference(){return(0,n.weakReference)(this)}ownership(){return(0,n.ownership)(this)}_displayPropertyValueChanged(){this.fireChanged()}}},30220:(e,t,l)=>{"use strict";l.d(t,{plotShapesData:()=>r});var n=l(91599);const r={shape_arrow_down:{guiName:n.t(null,void 0,l(4458)),id:"shape_arrow_down",paneRendererClass:"PaneRendererArrowDown",pineName:"shape.arrowdown",icon:"arrow_down"},shape_arrow_up:{guiName:n.t(null,void 0,l(62061)),id:"shape_arrow_up",paneRendererClass:"PaneRendererArrowUp",pineName:"shape.arrowup",icon:"arrow_up"},shape_circle:{guiName:n.t(null,void 0,l(94408)),id:"shape_circle",paneRendererClass:"PaneRendererCircleShape",pineName:"shape.circle",icon:"circle"},shape_cross:{guiName:n.t(null,void 0,l(88180)),id:"shape_cross",paneRendererClass:"PaneRendererCrossShape",pineName:"shape.cross",icon:"cross"},shape_diamond:{guiName:n.t(null,void 0,l(81248)),id:"shape_diamond",paneRendererClass:"PaneRendererDiamond",pineName:"shape.diamond",icon:"diamond"},shape_flag:{guiName:n.t(null,void 0,l(71527)),id:"shape_flag",paneRendererClass:"PaneRendererFlagShape",pineName:"shape.flag",icon:"flag"},shape_label_down:{guiName:n.t(null,void 0,l(62458)),id:"shape_label_down",paneRendererClass:"PaneRendererLabelDown",pineName:"shape.labeldown",icon:"label_down"},shape_label_up:{
guiName:n.t(null,void 0,l(64157)),id:"shape_label_up",paneRendererClass:"PaneRendererLabelUp",pineName:"shape.labelup",icon:"label_up"},shape_square:{guiName:n.t(null,void 0,l(16215)),id:"shape_square",paneRendererClass:"PaneRendererSquare",pineName:"shape.square",icon:"square"},shape_triangle_down:{guiName:n.t(null,void 0,l(71745)),id:"shape_triangle_down",paneRendererClass:"PaneRendererTriangleApexDown",pineName:"shape.triangledown",icon:"triangle_down"},shape_triangle_up:{guiName:n.t(null,void 0,l(99688)),id:"shape_triangle_up",paneRendererClass:"PaneRendererTriangleApexUp",pineName:"shape.triangleup",icon:"triangle_up"},shape_xcross:{guiName:n.t(null,void 0,l(10222)),id:"shape_xcross",paneRendererClass:"PaneRendererXCross",pineName:"shape.xcross",icon:"x_cross"}}},59793:(e,t,l)=>{"use strict";function n(e,t){return r(e,t,t?["&amp;"]:["&"])}function r(e,t,l){const n=[["&","&amp;"],["<","&lt;"],[">","&gt;"],['"',"&quot;"],["'","&#039;"],["'","&#39;"]];t&&n.forEach((e=>e.reverse()));let r=e;if(!e||!e.replace)return r;for(const e of n){const[t,n]=e;l&&-1!==l.indexOf(t)||(r=r.replace(new RegExp(t,"g"),n))}return r}l.d(t,{clean:()=>r,cleanButAmpersand:()=>n})},88860:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M3.57 7.85 9 12.62l5.43-4.77-1.32-1.5L9 9.95l-4.11-3.6-1.32 1.5Z"/></svg>'},25029:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="m14 18.41-6.7-6.7 1.4-1.42 5.3 5.3 5.3-5.3 1.4 1.41-6.7 6.71Z"/></svg>'},7998:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M14 21l7.424-6.114a.5.5 0 0 0-.318-.886H18.5V7h-9v7H6.894a.5.5 0 0 0-.318.886L14 21z"/></svg>'},81877:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M14 7l7.424 6.114a.5.5 0 0 1-.318.886H18.5v7h-9v-7H6.894a.5.5 0 0 1-.318-.886L14 7z"/></svg>'},37314:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><circle stroke="currentColor" cx="14" cy="14" r="6.5"/></svg>'},59754:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path stroke="currentColor" d="M9 14.5h11M14.5 20V9"/></svg>'},5882:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M14.354 6.646L14 6.293l-.354.353-7 7-.353.354.353.354 7 7 .354.353.354-.353 7-7 .353-.354-.353-.354-7-7z"/></svg>'},3376:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M8.5 22v-5.5m0 0v-8L12 7l4 2.5 3.5-1v8l-3.5 1-4-2.5-3.5 1.5z"/></svg>'},49477:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M11 8.5h-.5v9.707l.146.147 3 3 .354.353.354-.353 3-3 .146-.147V8.5H11z"/></svg>'},8970:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M11 18.5h-.5V8.793l.146-.147 3-3L14 5.293l.354.353 3 3 .146.147V18.5H11z"/></svg>'},9063:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M7.5 7.5h13v13h-13z"/></svg>'},72339:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M19.424 11.265l.478-.765H8.098l.478.765 5 8 .424.678.424-.678 5-8z"/></svg>'},17196:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M19.424 16.735l.478.765H8.098l.478-.765 5-8L14 8.057l.424.678 5 8z"/></svg>'},91745:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path stroke="currentColor" d="M9 9l11 11M9 20L20 9"/></svg>'},14669:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M13 11.5l-1.915-1.532a1 1 0 0 0-1.198-.039l-3.96 2.772a1 1 0 0 0-.427.82V18.5a1 1 0 0 0 1 1H13m3.5-7l4.293-4.293c.63-.63 1.707-.184 1.707.707V18.5a1 1 0 0 1-1 1H16"/><path fill="currentColor" d="M14 6h1v2h-1zM14 11h1v2h-1zM14 16h1v2h-1zM14 21h1v2h-1z"/></svg>'},25084:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M5.5 13.52v4.98a1 1 0 0 0 1 1h15a1 1 0 0 0 1-1V8.914c0-.89-1.077-1.337-1.707-.707l-4.66 4.66a1 1 0 0 1-1.332.074l-3.716-2.973a1 1 0 0 0-1.198-.039l-3.96 2.772a1 1 0 0 0-.427.82z"/></svg>'},78898:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M10.5 13a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0zM16.5 19a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0zM22.5 8a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0z"/></svg>'},96964:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M6.5 12.5v8h3v-8h-3zM12.5 7.5v13h3v-13h-3zM18.5 15.5v5h3v-5h-3z"/></svg>'},24145:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path stroke="currentColor" d="M17 8.5h7M20.5 12V5M10 19.5h7M13.5 23v-7M3 12.5h7M6.5 16V9"/></svg>'},67747:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path stroke="currentColor" d="M4.5 20v-7m3 7V10m3 10V8m3 12V10m3 10v-8m3 8V10m3 10V8"/></svg>'},31302:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M5.5 16.5l5-5a1.414 1.414 0 0 1 2 0m11-1l-5 5a1.414 1.414 0 0 1-2 0"/><path fill="currentColor" d="M14 5h1v2h-1zM14 10h1v2h-1zM14 15h1v2h-1zM14 20h1v2h-1z"/></svg>'},50685:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M5.5 16.5l4.586-4.586a2 2 0 0 1 2.828 0l3.172 3.172a2 2 0 0 0 2.828 0L23.5 10.5"/></svg>'},17090:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M14 3h1v2h-1V3Zm1 5h-1v2h1V8Zm-1 5h1v2h-1v-2Zm0 5h1v2h-1v-2Zm0 5h1v2h-1v-2ZM10 5h2V4H9v18H6v-5H5v6h5V5Zm11 16h1V7h-5v10h1V8h3v13Z"/></svg>'},78057:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path fill="currentColor" fill-rule="evenodd" d="M9.8 2.7l.7-.7.7.7 2.1 2.1.2.2H18v9.5l.2.2 2.1 2.1.2.2H24v1h-3.5l-.2.2-2.1 2.1-.7.7-.7-.7-2.1-2.1-.7-.7.7-.7 2.1-2.1.2-.2V6h-3.5l-.2.2-2.1 2.1-.2.2V24H5.5v-1H10V8.5l-.2-.2-2.1-2.1-.7-.7.7-.7 2.1-2.1zM8.4 5.5l2.09 2.09 2.09-2.09-2.09-2.09L8.41 5.5zm9.09 14.09l-2.09-2.09 2.09-2.09 2.09 2.09-2.09 2.09z"/></svg>'},76468:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M5.5 17v5.5h4v-18h4v12h4v-9h4V21"/></svg>'}}]);