openc3-cosmos-tool-scriptrunner 5.16.0 → 5.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/scriptrunner/js/384.js +1 -1
- data/tools/scriptrunner/js/384.js.map +1 -1
- metadata +2 -2
@@ -1,2 +1,2 @@
|
|
1
|
-
(self["webpackChunk_openc3_cosmos_tool_scriptrunner"]=self["webpackChunk_openc3_cosmos_tool_scriptrunner"]||[]).push([[384],{7448:(e,n,t)=>{var l={"./ArrayWidget.vue":8687,"./BlockWidget.vue":171,"./ButtonWidget.vue":4814,"./CanvasWidget.vue":2430,"./CanvasdotWidget.vue":6614,"./CanvasimageWidget.vue":8239,"./CanvasimagevalueWidget.vue":4653,"./CanvaslabelWidget.vue":6631,"./CanvaslabelvalueWidget.vue":8211,"./CanvaslineWidget.vue":4352,"./CanvaslinevalueWidget.vue":4291,"./CheckbuttonWidget.vue":5733,"./ComboboxWidget.vue":3835,"./DynamicWidget.vue":3634,"./FormatvalueWidget.vue":2656,"./HorizontalWidget.vue":2907,"./HorizontalboxWidget.vue":4812,"./HorizontallineWidget.vue":9646,"./IframeWidget.vue":527,"./ImageviewerWidget.vue":1404,"./LabelWidget.vue":4858,"./LabelledWidget.vue":9830,"./LabelprogressbarWidget.vue":2503,"./LabelsparklineWidget.vue":2194,"./LabelvalueWidget.vue":9089,"./LabelvaluedescWidget.vue":974,"./LabelvaluelimitsbarWidget.vue":2171,"./LabelvaluelimitscolumnWidget.vue":8981,"./LabelvaluerangebarWidget.vue":9124,"./LedWidget.vue":6507,"./LimitsbarWidget.vue":1057,"./LimitscolorWidget.vue":8518,"./LimitscolumnWidget.vue":6992,"./LinegraphWidget.vue":2653,"./MatrixbycolumnsWidget.vue":5043,"./ProgressbarWidget.vue":6825,"./RadiobuttonWidget.vue":5993,"./RadiogroupWidget.vue":5758,"./RangebarWidget.vue":5736,"./ScrollwindowWidget.vue":9769,"./SectionheaderWidget.vue":2959,"./SpacerWidget.vue":6637,"./SparklineWidget.vue":6115,"./TabbookWidget.vue":2926,"./TextboxWidget.vue":2128,"./TextfieldWidget.vue":7540,"./TitleWidget.vue":6525,"./ValueWidget.vue":4348,"./ValuelimitsbarWidget.vue":440,"./ValuelimitscolumnWidget.vue":6931,"./ValuerangebarWidget.vue":5918,"./VerticalWidget.vue":1629,"./VerticalboxWidget.vue":5757};function i(e){var n=s(e);return t(n)}function s(e){if(!t.o(l,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return l[e]}i.keys=function(){return Object.keys(l)},i.resolve=s,e.exports=i,i.id=7448},1033:(e,n,t)=>{"use strict";t.d(n,{A:()=>o});t(7107),t(9375);var l=t(4554),i=t(7408),s=t(9729);const o={mixins:[s.A],data:function(){return{id:Math.floor(1e11*Math.random()),state:"start",items:[{targetName:this.parameters[0],packetName:this.parameters[1],itemName:this.parameters[2],valueType:this.parameters[3]||"CONVERTED",reduced:this.parameters[4]||"DECOM",reducedType:this.parameters[5]||null}],startTime:null,secondsGraphed:3600,pointsSaved:3600,pointsGraphed:3600,size:{height:300,width:400}}},created:function(){this.settings.forEach((e=>{switch(e[0]){case"ITEM":this.items.push({targetName:e[1],packetName:e[2],itemName:e[3],valueType:e[4]||"CONVERTED",reduced:e[5]||"DECOM",reducedType:e[6]||null});case"STARTTIME":let n=(0,l.qg)(e[1],"yyyy/MM/dd HH:mm:ss",new Date);this.startTime=1e6*n.getTime();break;case"HISTORY":let t=parseInt(e[1].slice(0,e[1].length-1)),s=null,o=1;switch(e[1][e[1].length-1]){case"d":s="days",o=86400;break;case"h":s="hours",o=3600;break;case"m":s="minutes",o=60;break;case"s":s="seconds";break;default:throw new Error(`Unknown time suffix: ${e[1]}!`)}let a={};a[s]=t,this.startTime=1e6*(0,i.j)(new Date,a).getTime(),t*o>this.secondsGraphed&&(this.secondsGraphed=t*o),t*o>this.pointsSaved&&(this.pointsSaved=t*o),t*o>this.pointsGraphed&&(this.pointsGraphed=t*o);break;case"SECONDSGRAPHED":this.secondsGraphed=parseInt(e[1]);break;case"POINTSSAVED":this.pointsSaved=parseInt(e[1]);break;case"POINTSGRAPHED":this.pointsGraphed=parseInt(e[1]);break;case"SIZE":this.size.width=parseInt(e[1]),this.size.height=parseInt(e[2]);break}})),this.screen&&this.items.map((e=>this.screen.addItem(`${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`)))},destroyed(){this.screen&&this.items.map((e=>this.screen.deleteItem(`${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`)))}}},7163:(e,n,t)=>{"use strict";t.d(n,{A:()=>i});var l=t(2795);const i={props:{target:{type:String,require:!0}},methods:{getPresignedUrl:async function(e){var n="targets_modified";await l.A.get(`/openc3-api/storage/exists/${encodeURIComponent(`${window.openc3Scope}/${n}/${this.target}/public/${e}`)}?bucket=OPENC3_CONFIG_BUCKET`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).catch((e=>{n="targets"}));var t=await l.A.get(`/openc3-api/storage/download/${encodeURIComponent(`${window.openc3Scope}/${n}/${this.target}/public/${e}`)}?bucket=OPENC3_CONFIG_BUCKET`);return t.data.url}}}},9843:(e,n,t)=>{"use strict";t.d(n,{A:()=>i});var l=t(9729);const i={mixins:[l.A],props:{widgets:{type:Array,default:()=>[]}}}},2967:(e,n,t)=>{"use strict";t.d(n,{A:()=>i});var l=t(9729);t(9471);const i={mixins:[l.A],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null},data(){return{curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+this.parameters[0]+"/"+this.parameters[1]+"/"+this.parameters[2],"_blank")}}]}},watch:{_counter:function(e,n){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,null===this.curValue&&(this.screen?this.screen.screenValues[this.valueId]&&(this.curValue=this.screen.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let e=this.limitsState;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][1]):e=null),e},_counter:function(){let e=this.counter;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroIcon(){switch(this.limitsColor){case"green":return"$vuetify.icons.astro-status-normal";case"yellow":return"$vuetify.icons.astro-status-caution";case"red":return"$vuetify.icons.astro-status-critical";case"blue":return"$vuetify.icons.astro-status-standby";default:return null}},limitsColor(){let e=this._limitsState;if(null!=e)switch(e){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let e=this._limitsState;if(null!=e){let n=e.charAt(0);return e.endsWith("_LOW")&&(n=n.toLowerCase()),n}return""}},created(){null!==this.value&&null!==this.limitsState||(this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.screen&&this.screen.addItem(this.valueId))},destroyed(){null!==this.value&&null!==this.limitsState||this.screen&&this.screen.deleteItem(this.valueId)},methods:{getType(){var e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){if(e&&"String"===e["json_class"]&&void 0!==e["raw"]){let n=Array.from(e["raw"].slice(0,32),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase();return e["raw"].length>32&&(n+="..."),n}if("Array"===Object.prototype.toString.call(e).slice(8,-1)){let n="[";for(let t=0;t<e.length;t++)"String"===Object.prototype.toString.call(e[t]).slice(8,-1)?n+='"'+e[t]+'"':n+=e[t],t!=e.length-1&&(n+=", ");return n+="]",n}return"Object"===Object.prototype.toString.call(e).slice(8,-1)?"":this.formatString&&e?sprintf(this.formatString,e):""+e},showContextMenu(e){e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick((()=>{this.contextMenuShown=!0}))}}}},9729:(e,n,t)=>{"use strict";t.d(n,{A:()=>i});t(9375),t(7534);var l=t(3069);const i={props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{screen:null}},computed:{computedStyle(){let e={};return this.settings.forEach((n=>{const t=parseInt(n[0]);if(null!==this.widgetIndex){if(this.widgetIndex!==t)return;n=n.slice(1)}this.applySetting(e,n)})),void 0===e["width"]&&(e["flex"]="0 10 100%"),e}},created(){this.settings.forEach((e=>{"__SCREEN__"===e[0]&&(this.screen=e[1])}))},methods:{applySetting(e,n){switch(n[0]){case"TEXTALIGN":e["text-align"]=n[1].toLowerCase()+" !important",e["--text-align"]=n[1].toLowerCase();break;case"PADDING":isNaN(Number(n[1]))||(n[1]+="px"),e["padding"]=n[1]+" !important";break;case"MARGIN":isNaN(Number(n[1]))||(n[1]+="px"),e["margin"]=n[1]+" !important";break;case"BACKCOLOR":e["background-color"]=this.getColor(n.slice(1))+" !important";break;case"TEXTCOLOR":e["color"]=this.getColor(n.slice(1))+" !important";break;case"BORDERCOLOR":e["border-width"]="1px!important",e["border-style"]="solid!important",e["border-color"]=this.getColor(n.slice(1))+" !important";break;case"WIDTH":isNaN(Number(n[1]))||(n[1]+="px"),e["width"]=n[1]+" !important";break;case"HEIGHT":isNaN(Number(n[1]))||(n[1]+="px"),e["height"]=n[1]+" !important";break;case"RAW":e[n[1].toLowerCase()]=n[2]+" !important";break}},verifyNumParams(e,n,t,i=""){let s={line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters};for(var o=1;o<=n;o++)if(void 0===this.parameters[o-1])throw new l.o(s,`Not enough parameters for ${e}.`,i,"https://docs.openc3.com/docs/configuration");if(null!==t&&this.parameters.length>t)throw new l.o(s,`Too many parameters for ${e}.`,i,"https://docs.openc3.com/docs/configuration")},setWidth(e,n="px",t="120"){let l=null;if(l=null!==this.widgetIndex?this.settings.find((e=>parseInt(e[0])===this.widgetIndex&&"WIDTH"===e[1])):this.settings.find((e=>"WIDTH"===e[0])),l)return l["WIDTH"];if(e){let t=["WIDTH",`${e}${n}`];return null!==this.widgetIndex&&t.unshift(this.widgetIndex),this.settings.push(t),parseInt(e)}{let e=["WIDTH",`${t}${n}`];return null!==this.widgetIndex&&e.unshift(this.widgetIndex),this.settings.push(e),parseInt(t)}},setHeight(e,n="px",t="20"){let l=null;if(l=null!==this.widgetIndex?this.settings.find((e=>parseInt(e[0])===this.widgetIndex&&"HEIGHT"===e[1])):this.settings.find((e=>"HEIGHT"===e[0])),l)return l["HEIGHT"];if(e){let t=["HEIGHT",`${e}${n}`];return null!==this.widgetIndex&&t.unshift(this.widgetIndex),this.settings.push(t),parseInt(e)}{let e=["HEIGHT",`${t}${n}`];return null!==this.widgetIndex&&e.unshift(this.widgetIndex),this.settings.push(e),parseInt(t)}},getColor(e){switch(e.length){case 1:return e[0].toLowerCase();case 3:return`rgb(${e[0]},${e[1]},${e[2]})`}}}}},2795:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var l=t(2673);const i=async function(e,n,{data:t,params:i={},headers:s,noAuth:o=!1,noScope:a=!1}={}){if(!o){try{let e=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);e&&OpenC3Auth.setTokens()}catch(r){OpenC3Auth.login()}s["Authorization"]=localStorage.openc3Token}return a||i["scope"]||(i["scope"]=window.openc3Scope),(0,l.A)({method:e,url:n,data:t,params:i,headers:s})},s={Accept:"application/json"},o={...s,"Content-Type":"application/json"},a={get:function(e,{params:n,headers:t=s,noScope:l,noAuth:o}={}){return i("get",e,{params:n,headers:t,noScope:l,noAuth:o})},put:function(e,{data:n,params:t,headers:l=o,noScope:s,noAuth:a}={}){return i("put",e,{data:n,params:t,headers:l,noScope:s,noAuth:a})},post:function(e,{data:n,params:t,headers:l=o,noScope:s,noAuth:a}={}){return i("post",e,{data:n,params:t,headers:l,noScope:s,noAuth:a})},delete:function(e,{params:n,headers:t=s,noScope:l,noAuth:o}={}){return i("delete",e,{params:n,headers:t,noScope:l,noAuth:o})}}},2673:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var l=t(4625),i=t(1649);const s=new i["default"],o=l.A.create({baseURL:location.origin,timeout:6e4,params:{}});o.interceptors.response.use((e=>e),(e=>{if(e.response){var n,t,l,i,o;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.config.headers["Ignore-Errors"]&&e.response.config.headers["Ignore-Errors"].includes(e.response.status.toString()))return Promise.reject(e);let r=`HTTP ${e.response.status} - `;if(null!==(n=e.response)&&void 0!==n&&n.statusText&&(r+=`${e.response.statusText} `),null!==(t=e.response)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&t.data&&(r+=`${e.response.config.data} `),null!==(l=e.response)&&void 0!==l&&null!==(l=l.data)&&void 0!==l&&l.message)r+=`${e.response.data.message}`;else if(null!==(i=e.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&i.exception)r+=`${e.response.data.exception}`;else if(null!==(o=e.response)&&void 0!==o&&null!==(o=o.data)&&void 0!==o&&null!==(o=o.error)&&void 0!==o&&o.message)e.response.data.error.class&&(r+=`${e.response.data.error.class} `),r+=`${e.response.data.error.message}`;else{var a;r+=`${null===(a=e.response)||void 0===a?void 0:a.data}`}throw s.$notify&&s.$notify.serious({title:"Network error",body:r}),e}throw e}));const a=o},2702:(e,n,t)=>{"use strict";t.d(n,{A:()=>i});var l=t(7752);l.D$.staleThreshold=10;class i{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(e,n,t={},i={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((n=>{if(n&&OpenC3Auth.setTokens(),null==this._cable){let e=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=l.Be(e)}return this._cable.subscriptions.create({channel:e,...i},t)}))}recordPing(){this._cable.connection.monitor.recordPing()}}},3069:(e,n,t)=>{"use strict";t.d(n,{R:()=>s,o:()=>i});var l=t(814);t(9375),t(4293);class i{constructor(e,n,t="",l=""){this.keyword=e.keyword,this.parameters=e.parameters,this.filename=e.filename,this.line=e.line,this.lineNumber=e.lineNumber,this.message=n,this.usage=t,this.url=l}}class s{constructor(){(0,l.A)(this,"keyword",null),(0,l.A)(this,"parameters",[]),(0,l.A)(this,"filename",""),(0,l.A)(this,"line",""),(0,l.A)(this,"lineNumber",0),(0,l.A)(this,"url","https://docs.openc3.com/docs/configuration")}verify_num_parameters(e,n,t=""){for(let l=1;l<=e;l++)if(void 0===this.parameters[l-1])throw new i(this,`Not enough parameters for ${this.keyword}.`,t,this.url);if(n&&void 0!==this.parameters[n])throw new i(this,`Too many parameters for ${this.keyword}.`,t,this.url)}remove_quotes(e){if(e.length<2)return e;let n=e.charAt(0);if('"'!==n&&"'"!==n)return e;let t=e.charAt(e.length-1);return n!==t?e:e.substring(1,e.length-1)}scan_string(e,n){if(!n.global)throw"rx must have 'global' flag set";let t=[];return e.replace(n,(function(e){return t.push(e),e})),t}parse_string(e,n,t,l,i){let s=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=n;let o=e.split("\n"),a=o.length;for(let r=0;r<a;r++){this.lineNumber=r+1;let e=o[r].trim();if(0===e.length)continue;if(!0===s){if("#"===e[0])continue;e=e.substring(1,e.length)}let n=e.charAt(e.length-1),a=!1;switch(n){case"+":a=!0;case"\\":let n=e.substring(0,e.length-1).trim();this.line+=n.substring(0,n.length-1),a&&(this.line+="\n"),s=!0;continue;case"&":this.line+=e.substring(0,e.length-1);continue;default:this.line+=e}s=!1;let c=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,u=this.scan_string(this.line,c),d="";if(u.length>0&&(d+=u[0]),0===d.length||"#"===d.charAt(0)?this.keyword=null:this.keyword=d.toUpperCase(),this.parameters=[],null===this.keyword){t&&i(this.keyword,this.parameters,this.line,this.lineNumber),this.line="";continue}let m=u.length;if(m>1)for(let t=1;t<m;t++){let e=u[t];if(e.length>0&&"#"===e.charAt(0))break;l?this.parameters.push(this.remove_quotes(e)):this.parameters.push(e)}i(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}}}},4364:(e,n,t)=>{"use strict";t.d(n,{x:()=>s});var l=t(814),i=(t(7107),t(2482),t(7067),t(4147),t(2682),t(785),t(8357),t(6196),t(821),t(6554),t(8472),t(7404),t(5803),t(3912),t(7010),t(2673));class s{constructor(){(0,l.A)(this,"id",1)}async exec(e,n,t={},l={},s=6e4){try{let e=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);e&&OpenC3Auth.setTokens()}catch(a){OpenC3Auth.login()}this.id=this.id+1;try{t["scope"]=window.openc3Scope;const o=await i.A.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:n,id:this.id,keyword_params:t},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...l},timeout:s});return o.data.result}catch(a){var o=new Error;throw a.response?(o.name=a.response.data.error.data.class,o.message=a.response.data.error.data.message):a.request?(o.name="Request error",o.message="Request error, no response received"):o.name="Unknown error",o}}decode_openc3_type(e){if(null!==e&&"object"===typeof e&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then((e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then((()=>{delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,n){return this.exec("map_target_to_interface",[e,n])}connect_interface(e,...n){return n.length>0?this.exec("connect_interface",[e,...n]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,n,...t){return this.exec("interface_cmd",[e,n,...t])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_all_target_info(){return this.exec("get_all_target_info",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,n,t){return this.exec("get_item",[e,n,t])}get_param(e,n,t){return this.exec("get_param",[e,n,t])}get_parameter(e,n,t){return this.exec("get_parameter",[e,n,t])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_list",[])}get_tlm(e,n){return this.exec("get_tlm",[e,n])}get_telemetry(e,n){return this.exec("get_telemetry",[e,n])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_telemetry",[e])}get_all_tlm_names(e){return this.exec("get_all_tlm_names",[e])}get_all_telemetry_names(e){return this.exec("get_all_telemetry_names",[e])}async get_tlm_packet(e,n,t,l=30){const i=await this.exec("get_tlm_packet",[e,n],{type:t,stale_time:l});if(null!=i)for(var s=i.length,o=null,a=0;a<s;a++)o=this.decode_openc3_type(i[a][1]),null!==o&&(i[a][1]=o);return i}get_packet_derived_items(e,n){return this.exec("get_packet_derived_items",[e,n])}get_tlm_buffer(e,n){return this.exec("get_tlm_buffer",[e,n])}async get_tlm_values(e,n=30,t=null){let l={stale_time:n};null!==t&&(l["cache_timeout"]=t);const i=await this.exec("get_tlm_values",[e],l,{},1e4);for(var s=i[0].length,o=null,a=0;a<s;a++)o=this.decode_openc3_type(i[0][a]),null!==o&&(i[0][a]=o);return i}get_limits(e,n,t){return this.exec("get_limits",[e,n,t])}async tlm(e,n,t,l="CONVERTED"){let i=null;if(void 0===n)i=await this.exec("tlm",[e]);else if(void 0===t){if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n)){var s=new Error;throw s.name="TypeError",s.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,s}i=await this.exec("tlm",[e],{type:n})}else i=await this.exec("tlm",[e,n,t],{type:l});var o=this.decode_openc3_type(i);return null!==o&&(i=o),i}async inject_tlm(e,n,t=null,l="CONVERTED"){data=await this.exec("inject_tlm",[e,n,t],{type:l})}set_tlm(e,n,t,l){return this.exec("set_tlm",[e,n,t],{type:l})}override_tlm(e,n,t,l){return this.exec("override_tlm",[e,n,t],{type:l})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,n,t,l){return this.exec("normalize_tlm",[e,n,t],{type:l})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_commands",[e])}get_all_cmd_names(e){return this.exec("get_all_cmd_names",[e])}get_all_command_names(e){return this.exec("get_all_command_names",[e])}get_cmd(e,n){return this.exec("get_cmd",[e,n])}get_command(e,n){return this.exec("get_command",[e,n])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,n,t,l="CONVERTED"){return this.exec("get_cmd_value",[e,n,t,l])}get_cmd_buffer(e,n){return this.exec("get_cmd_buffer",[e,n])}_cmd(e,n,t,l,i){var s=null;for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&(s=this.encode_openc3_type(l[o]),null!==s&&(l[o]=s));return this.exec(e,[n,t,l],{},i)}get_cmd_hazardous(e,n,t){return void 0===n?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,n,t)}cmd(e,n,t,l={}){return void 0===n?this.exec("cmd",e,{},l):this._cmd("cmd",e,n,t,l)}cmd_no_range_check(e,n,t){return void 0===n?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,n,t)}cmd_raw(e,n,t){return void 0===n?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,n,t)}cmd_raw_no_range_check(e,n,t){return void 0===n?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,n,t)}cmd_no_hazardous_check(e,n,t){return void 0===n?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,n,t)}cmd_no_checks(e,n,t){return void 0===n?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,n,t)}cmd_raw_no_hazardous_check(e,n,t){return void 0===n?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,n,t)}cmd_raw_no_checks(e,n,t){return void 0===n?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,n,t)}build_cmd(e,n,t){return void 0===n?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,t)}build_command(e,n,t){return void 0===n?this.exec("build_command",e):this._cmd("build_command",e,n,t)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,n){return this.exec("send_raw",[e,n])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,n){return this.exec("load_config",[e,n])}save_config(e,n,t){return this.exec("save_config",[e,n,t])}delete_config(e,n){return this.exec("delete_config",[e,n])}enable_limits(e,n,t){return this.exec("enable_limits",[e,n,t])}disable_limits(e,n,t){return this.exec("disable_limits",[e,n,t])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,n){return this.exec("set_setting",[e,n])}save_setting(e,n){return this.exec("save_setting",[e,n])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const n=(new TextEncoder).encode(e),t=await crypto.subtle.digest("SHA-256",n),l=new Uint8Array(t);return Array.from(l).map((e=>e.toString(16).padStart(2,"0"))).join("")}}}},8384:(e,n,t)=>{"use strict";function l(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",n="26bd25aade99d8d2b3bfa0a9854c24e384a7f5c0",t=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",statementMap:{0:{start:{line:1,column:13},end:{line:6,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:5,column:35}},4:{start:{line:1,column:277},end:{line:1,column:418}},5:{start:{line:1,column:351},end:{line:1,column:372}},6:{start:{line:1,column:477},end:{line:1,column:494}},7:{start:{line:1,column:764},end:{line:3,column:74}},8:{start:{line:2,column:12},end:{line:2,column:41}},9:{start:{line:3,column:141},end:{line:3,column:166}},10:{start:{line:3,column:424},end:{line:3,column:966}},11:{start:{line:3,column:861},end:{line:3,column:891}},12:{start:{line:3,column:926},end:{line:3,column:956}},13:{start:{line:3,column:1551},end:{line:3,column:1743}},14:{start:{line:3,column:2117},end:{line:3,column:2139}},15:{start:{line:3,column:2427},end:{line:3,column:2443}},16:{start:{line:3,column:2728},end:{line:3,column:2741}},17:{start:{line:3,column:3374},end:{line:3,column:3698}},18:{start:{line:3,column:3549},end:{line:3,column:3605}},19:{start:{line:3,column:4527},end:{line:3,column:4553}},20:{start:{line:3,column:4745},end:{line:3,column:4761}},21:{start:{line:3,column:4919},end:{line:3,column:4943}},22:{start:{line:3,column:4943},end:{line:3,column:5001}},23:{start:{line:3,column:5178},end:{line:3,column:5206}},24:{start:{line:3,column:5311},end:{line:3,column:5515}},25:{start:{line:3,column:6270},end:{line:3,column:6283}},26:{start:{line:3,column:6448},end:{line:3,column:6464}},27:{start:{line:3,column:6636},end:{line:3,column:6662}},28:{start:{line:3,column:6689},end:{line:3,column:6716}},29:{start:{line:3,column:6748},end:{line:3,column:6776}},30:{start:{line:3,column:6832},end:{line:3,column:6848}},31:{start:{line:3,column:7095},end:{line:3,column:7128}},32:{start:{line:3,column:7155},end:{line:3,column:7182}},33:{start:{line:3,column:7214},end:{line:3,column:7242}},34:{start:{line:3,column:7300},end:{line:3,column:7318}},35:{start:{line:3,column:7475},end:{line:3,column:7498}},36:{start:{line:3,column:7802},end:{line:3,column:7832}},37:{start:{line:3,column:8119},end:{line:3,column:8150}},38:{start:{line:3,column:8374},end:{line:3,column:8412}},39:{start:{line:3,column:8692},end:{line:3,column:8732}},40:{start:{line:3,column:8891},end:{line:3,column:8912}},41:{start:{line:3,column:9304},end:{line:3,column:9337}},42:{start:{line:3,column:9517},end:{line:3,column:9551}},43:{start:{line:3,column:9827},end:{line:3,column:9871}},44:{start:{line:3,column:10091},end:{line:3,column:10113}},45:{start:{line:3,column:10235},end:{line:3,column:10254}},46:{start:{line:4,column:12},end:{line:4,column:35}},47:{start:{line:7,column:22},end:{line:7,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:6,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:257},end:{line:1,column:258}},loc:{start:{line:1,column:276},end:{line:1,column:419}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:334},end:{line:1,column:335}},loc:{start:{line:1,column:350},end:{line:1,column:373}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:461},end:{line:1,column:462}},loc:{start:{line:1,column:476},end:{line:1,column:495}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:744},end:{line:1,column:745}},loc:{start:{line:1,column:763},end:{line:3,column:75}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1011},end:{line:1,column:1012}},loc:{start:{line:1,column:1017},end:{line:3,column:11}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:3,column:125},end:{line:3,column:126}},loc:{start:{line:3,column:140},end:{line:3,column:167}},line:3},7:{name:"(anonymous_7)",decl:{start:{line:3,column:410},end:{line:3,column:411}},loc:{start:{line:3,column:423},end:{line:3,column:967}},line:3},8:{name:"(anonymous_8)",decl:{start:{line:3,column:844},end:{line:3,column:845}},loc:{start:{line:3,column:860},end:{line:3,column:892}},line:3},9:{name:"(anonymous_9)",decl:{start:{line:3,column:909},end:{line:3,column:910}},loc:{start:{line:3,column:925},end:{line:3,column:957}},line:3},10:{name:"(anonymous_10)",decl:{start:{line:3,column:1527},end:{line:3,column:1528}},loc:{start:{line:3,column:1550},end:{line:3,column:1744}},line:3},11:{name:"(anonymous_11)",decl:{start:{line:3,column:2101},end:{line:3,column:2102}},loc:{start:{line:3,column:2116},end:{line:3,column:2140}},line:3},12:{name:"(anonymous_12)",decl:{start:{line:3,column:2411},end:{line:3,column:2412}},loc:{start:{line:3,column:2426},end:{line:3,column:2444}},line:3},13:{name:"(anonymous_13)",decl:{start:{line:3,column:2712},end:{line:3,column:2713}},loc:{start:{line:3,column:2727},end:{line:3,column:2742}},line:3},14:{name:"(anonymous_14)",decl:{start:{line:3,column:3350},end:{line:3,column:3351}},loc:{start:{line:3,column:3373},end:{line:3,column:3699}},line:3},15:{name:"(anonymous_15)",decl:{start:{line:3,column:3532},end:{line:3,column:3533}},loc:{start:{line:3,column:3548},end:{line:3,column:3606}},line:3},16:{name:"(anonymous_16)",decl:{start:{line:3,column:4510},end:{line:3,column:4511}},loc:{start:{line:3,column:4526},end:{line:3,column:4554}},line:3},17:{name:"(anonymous_17)",decl:{start:{line:3,column:4729},end:{line:3,column:4730}},loc:{start:{line:3,column:4744},end:{line:3,column:4762}},line:3},18:{name:"(anonymous_18)",decl:{start:{line:3,column:4902},end:{line:3,column:4903}},loc:{start:{line:3,column:4918},end:{line:3,column:5002}},line:3},19:{name:"(anonymous_19)",decl:{start:{line:3,column:5162},end:{line:3,column:5163}},loc:{start:{line:3,column:5177},end:{line:3,column:5207}},line:3},20:{name:"(anonymous_20)",decl:{start:{line:3,column:5296},end:{line:3,column:5297}},loc:{start:{line:3,column:5310},end:{line:3,column:5516}},line:3},21:{name:"(anonymous_21)",decl:{start:{line:3,column:6254},end:{line:3,column:6255}},loc:{start:{line:3,column:6269},end:{line:3,column:6284}},line:3},22:{name:"(anonymous_22)",decl:{start:{line:3,column:6432},end:{line:3,column:6433}},loc:{start:{line:3,column:6447},end:{line:3,column:6465}},line:3},23:{name:"(anonymous_23)",decl:{start:{line:3,column:6619},end:{line:3,column:6620}},loc:{start:{line:3,column:6635},end:{line:3,column:6663}},line:3},24:{name:"(anonymous_24)",decl:{start:{line:3,column:6672},end:{line:3,column:6673}},loc:{start:{line:3,column:6688},end:{line:3,column:6717}},line:3},25:{name:"(anonymous_25)",decl:{start:{line:3,column:6731},end:{line:3,column:6732}},loc:{start:{line:3,column:6747},end:{line:3,column:6777}},line:3},26:{name:"(anonymous_26)",decl:{start:{line:3,column:6816},end:{line:3,column:6817}},loc:{start:{line:3,column:6831},end:{line:3,column:6849}},line:3},27:{name:"(anonymous_27)",decl:{start:{line:3,column:7078},end:{line:3,column:7079}},loc:{start:{line:3,column:7094},end:{line:3,column:7129}},line:3},28:{name:"(anonymous_28)",decl:{start:{line:3,column:7138},end:{line:3,column:7139}},loc:{start:{line:3,column:7154},end:{line:3,column:7183}},line:3},29:{name:"(anonymous_29)",decl:{start:{line:3,column:7197},end:{line:3,column:7198}},loc:{start:{line:3,column:7213},end:{line:3,column:7243}},line:3},30:{name:"(anonymous_30)",decl:{start:{line:3,column:7284},end:{line:3,column:7285}},loc:{start:{line:3,column:7299},end:{line:3,column:7319}},line:3},31:{name:"(anonymous_31)",decl:{start:{line:3,column:7459},end:{line:3,column:7460}},loc:{start:{line:3,column:7474},end:{line:3,column:7499}},line:3},32:{name:"(anonymous_32)",decl:{start:{line:3,column:7786},end:{line:3,column:7787}},loc:{start:{line:3,column:7801},end:{line:3,column:7833}},line:3},33:{name:"(anonymous_33)",decl:{start:{line:3,column:8103},end:{line:3,column:8104}},loc:{start:{line:3,column:8118},end:{line:3,column:8151}},line:3},34:{name:"(anonymous_34)",decl:{start:{line:3,column:8358},end:{line:3,column:8359}},loc:{start:{line:3,column:8373},end:{line:3,column:8413}},line:3},35:{name:"(anonymous_35)",decl:{start:{line:3,column:8676},end:{line:3,column:8677}},loc:{start:{line:3,column:8691},end:{line:3,column:8733}},line:3},36:{name:"(anonymous_36)",decl:{start:{line:3,column:8875},end:{line:3,column:8876}},loc:{start:{line:3,column:8890},end:{line:3,column:8913}},line:3},37:{name:"(anonymous_37)",decl:{start:{line:3,column:9288},end:{line:3,column:9289}},loc:{start:{line:3,column:9303},end:{line:3,column:9338}},line:3},38:{name:"(anonymous_38)",decl:{start:{line:3,column:9501},end:{line:3,column:9502}},loc:{start:{line:3,column:9516},end:{line:3,column:9552}},line:3},39:{name:"(anonymous_39)",decl:{start:{line:3,column:9811},end:{line:3,column:9812}},loc:{start:{line:3,column:9826},end:{line:3,column:9872}},line:3},40:{name:"(anonymous_40)",decl:{start:{line:3,column:10075},end:{line:3,column:10076}},loc:{start:{line:3,column:10090},end:{line:3,column:10114}},line:3},41:{name:"(anonymous_41)",decl:{start:{line:3,column:10219},end:{line:3,column:10220}},loc:{start:{line:3,column:10234},end:{line:3,column:10255}},line:3},42:{name:"(anonymous_42)",decl:{start:{line:3,column:10464},end:{line:3,column:10465}},loc:{start:{line:3,column:10470},end:{line:5,column:11}},line:3}},branchMap:{0:{loc:{start:{line:3,column:1030},end:{line:3,column:1188}},type:"cond-expr",locations:[{start:{line:3,column:1048},end:{line:3,column:1179}},{start:{line:3,column:1180},end:{line:3,column:1188}}],line:3},1:{loc:{start:{line:3,column:1304},end:{line:3,column:1438}},type:"cond-expr",locations:[{start:{line:3,column:1325},end:{line:3,column:1429}},{start:{line:3,column:1430},end:{line:3,column:1438}}],line:3},2:{loc:{start:{line:3,column:2777},end:{line:3,column:2996}},type:"cond-expr",locations:[{start:{line:3,column:2809},end:{line:3,column:2915}},{start:{line:3,column:2916},end:{line:3,column:2996}}],line:3},3:{loc:{start:{line:3,column:3036},end:{line:3,column:4391}},type:"cond-expr",locations:[{start:{line:3,column:3070},end:{line:3,column:3786}},{start:{line:3,column:3787},end:{line:3,column:4391}}],line:3},4:{loc:{start:{line:3,column:5666},end:{line:3,column:6323}},type:"cond-expr",locations:[{start:{line:3,column:5682},end:{line:3,column:6314}},{start:{line:3,column:6315},end:{line:3,column:6323}}],line:3},5:{loc:{start:{line:3,column:6511},end:{line:3,column:6883}},type:"cond-expr",locations:[{start:{line:3,column:6526},end:{line:3,column:6874}},{start:{line:3,column:6875},end:{line:3,column:6883}}],line:3},6:{loc:{start:{line:3,column:6896},end:{line:3,column:7355}},type:"cond-expr",locations:[{start:{line:3,column:6913},end:{line:3,column:7346}},{start:{line:3,column:7347},end:{line:3,column:7355}}],line:3},7:{loc:{start:{line:3,column:7368},end:{line:3,column:7540}},type:"cond-expr",locations:[{start:{line:3,column:7390},end:{line:3,column:7531}},{start:{line:3,column:7532},end:{line:3,column:7540}}],line:3},8:{loc:{start:{line:3,column:7553},end:{line:3,column:7867}},type:"cond-expr",locations:[{start:{line:3,column:7568},end:{line:3,column:7858}},{start:{line:3,column:7859},end:{line:3,column:7867}}],line:3},9:{loc:{start:{line:3,column:7880},end:{line:3,column:8186}},type:"cond-expr",locations:[{start:{line:3,column:7896},end:{line:3,column:8177}},{start:{line:3,column:8178},end:{line:3,column:8186}}],line:3},10:{loc:{start:{line:3,column:8199},end:{line:3,column:8455}},type:"cond-expr",locations:[{start:{line:3,column:8222},end:{line:3,column:8446}},{start:{line:3,column:8447},end:{line:3,column:8455}}],line:3},11:{loc:{start:{line:3,column:8468},end:{line:3,column:8777}},type:"cond-expr",locations:[{start:{line:3,column:8493},end:{line:3,column:8768}},{start:{line:3,column:8769},end:{line:3,column:8777}}],line:3},12:{loc:{start:{line:3,column:8790},end:{line:3,column:8952}},type:"cond-expr",locations:[{start:{line:3,column:8810},end:{line:3,column:8943}},{start:{line:3,column:8944},end:{line:3,column:8952}}],line:3},13:{loc:{start:{line:3,column:8965},end:{line:3,column:9375}},type:"cond-expr",locations:[{start:{line:3,column:8983},end:{line:3,column:9366}},{start:{line:3,column:9367},end:{line:3,column:9375}}],line:3},14:{loc:{start:{line:3,column:9388},end:{line:3,column:9590}},type:"cond-expr",locations:[{start:{line:3,column:9407},end:{line:3,column:9581}},{start:{line:3,column:9582},end:{line:3,column:9590}}],line:3},15:{loc:{start:{line:3,column:9603},end:{line:3,column:9920}},type:"cond-expr",locations:[{start:{line:3,column:9632},end:{line:3,column:9911}},{start:{line:3,column:9912},end:{line:3,column:9920}}],line:3},16:{loc:{start:{line:3,column:10330},end:{line:5,column:23}},type:"cond-expr",locations:[{start:{line:3,column:10348},end:{line:5,column:14}},{start:{line:5,column:15},end:{line:5,column:23}}],line:3}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"26bd25aade99d8d2b3bfa0a9854c24e384a7f5c0"},o=t[i]||(t[i]={});o[e]&&o[e].hash===n||(o[e]=s);var a=o[e];return l=function(){return a},a}t.r(n),t.d(n,{default:()=>$l}),l(),l().s[0]++;var i=function(){l().f[0]++;var e=(l().s[1]++,this),n=(l().s[2]++,e._self._c);return l().s[3]++,n("div",[n("top-bar",{attrs:{menus:e.menus,title:e.title}}),e._v(" "),n("v-snackbar",{attrs:{top:"",color:e.alertType,timeout:3e3},scopedSlots:e._u([{key:"action",fn:function({attrs:t}){return l().f[1]++,l().s[4]++,[n("v-btn",e._b({attrs:{text:""},on:{click:function(n){l().f[2]++,l().s[5]++,e.showAlert=!1}}},"v-btn",t,!1),[e._v(" Close ")])]}}]),model:{value:e.showAlert,callback:function(n){l().f[3]++,l().s[6]++,e.showAlert=n},expression:"showAlert"}},[n("v-icon",[e._v(" mdi-"+e._s(e.alertType)+" ")]),e._v("\n "+e._s(e.alertText)+"\n ")],1),e._v(" "),n("v-snackbar",{attrs:{top:"",timeout:-1,color:"orange"},scopedSlots:e._u([{key:"action",fn:function({attrs:t}){return l().f[4]++,l().s[7]++,[n("v-btn",e._b({attrs:{text:"",color:"danger","data-test":"unlock-button"},on:{click:e.confirmLocalUnlock}},"v-btn",t,!1),[e._v("\n Unlock\n ")]),e._v(" "),n("v-btn",e._b({attrs:{text:""},on:{click:()=>{l().f[5]++,l().s[8]++,e.showReadOnlyToast=!1}}},"v-btn",t,!1),[e._v("\n dismiss\n ")])]}}]),model:{value:e.showReadOnlyToast,callback:function(n){l().f[6]++,l().s[9]++,e.showReadOnlyToast=n},expression:"showReadOnlyToast"}},[n("v-icon",[e._v(" mdi-pencil-off ")]),e._v("\n "+e._s(e.lockedBy)+" is editing this script. Editor is in read-only mode\n ")],1),e._v(" "),n("div",{staticClass:"grid"},e._l(e.screens,(function(t){return l().f[7]++,l().s[10]++,n("div",{key:t.id,ref:"gridItem",refInFor:!0,staticClass:"item",attrs:{id:e.screenId(t.id)}},[n("div",{staticClass:"item-content"},[n("openc3-screen",{attrs:{target:t.target,screen:t.screen,definition:t.definition,keywords:e.screenKeywords,initialFloated:!0,initialTop:t.top,initialLeft:t.left,initialZ:3,minZ:3,fixFloated:!0,count:t.count},on:{"close-screen":function(n){return l().f[8]++,l().s[11]++,e.closeScreen(t.id)},"delete-screen":function(n){return l().f[9]++,l().s[12]++,e.closeScreen(t.id)}}})],1)])})),0),e._v(" "),n("v-card",{staticStyle:{padding:"10px"}},[e.suiteRunner?(l().b[0][0]++,n("suite-runner",{attrs:{"suite-map":e.suiteMap,"disable-buttons":e.disableSuiteButtons},on:{button:e.suiteRunnerButton}})):(l().b[0][1]++,e._e()),e._v(" "),n("div",{attrs:{id:"sr-controls"}},[n("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[e.showDisconnect?(l().b[1][0]++,n("v-icon",{staticClass:"mr-2",attrs:{color:"red"}},[e._v("\n mdi-connection\n ")])):(l().b[1][1]++,e._e()),e._v(" "),n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:i}){return l().f[10]++,l().s[13]++,[n("v-btn",e._g(e._b({attrs:{icon:"",disabled:e.filename===e.NEW_FILENAME},on:{click:e.reloadFile}},"v-btn",i,!1),t),[n("v-icon",[e._v("mdi-cached")])],1)]}}])},[e._v(" "),n("span",[e._v(" Reload File ")])]),e._v(" "),n("v-select",{staticStyle:{width:"300px"},attrs:{items:e.fileList,disabled:e.fileList.length<=1,label:"Filename",id:"filename","data-test":"filename",dense:"",outlined:"","hide-details":""},on:{change:e.fileNameChanged},model:{value:e.filenameSelect,callback:function(n){l().f[11]++,l().s[14]++,e.filenameSelect=n},expression:"filenameSelect"}}),e._v(" "),n("v-text-field",{staticClass:"shrink ml-2 script-state",staticStyle:{width:"100px"},attrs:{label:"Script ID","data-test":"id",dense:"",outlined:"",readonly:"","hide-details":""},model:{value:e.scriptId,callback:function(n){l().f[12]++,l().s[15]++,e.scriptId=n},expression:"scriptId"}}),e._v(" "),n("v-text-field",{staticClass:"shrink ml-2 script-state",staticStyle:{width:"120px"},attrs:{label:"Script State","data-test":"state",dense:"",outlined:"",readonly:"","hide-details":""},model:{value:e.state,callback:function(n){l().f[13]++,l().s[16]++,e.state=n},expression:"state"}}),e._v(" "),"Connecting..."===e.state?(l().b[2][0]++,n("v-progress-circular",{staticClass:"ml-2 mr-2",attrs:{size:40,indeterminate:"",color:"primary"}})):(l().b[2][1]++,n("div",{staticClass:"ml-2 mr-2",staticStyle:{width:"40px",height:"40px"}})),e._v(" "),n("v-spacer"),e._v(" "),"Start"===e.startOrGoButton?(l().b[3][0]++,n("div",[n("v-btn",{staticClass:"mx-1",attrs:{color:"primary","data-test":"start-button",disabled:e.startOrGoDisabled},on:{click:e.startHandler}},[n("span",[e._v(" Start ")])]),e._v(" "),n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:i}){return l().f[14]++,l().s[17]++,[n("v-btn",e._g(e._b({staticClass:"mx-1",attrs:{"data-test":"env-button",color:e.environmentIconColor,disabled:e.envDisabled},on:{click:function(n){l().f[15]++,l().s[18]++,e.scriptEnvironment.show=!e.scriptEnvironment.show}}},"v-btn",i,!1),t),[n("v-icon",[e._v(" "+e._s(e.environmentIcon)+" ")])],1)]}}],null,!1,3991735395)},[e._v(" "),n("span",[e._v("Script Environment")])])],1)):(l().b[3][1]++,n("div",[n("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:e.startOrGoDisabled,"data-test":"go-button"},on:{click:e.go}},[e._v("\n Go\n ")]),e._v(" "),n("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:e.pauseOrRetryDisabled,"data-test":"pause-retry-button"},on:{click:e.pauseOrRetry}},[e._v("\n "+e._s(e.pauseOrRetryButton)+"\n ")]),e._v(" "),n("v-btn",{attrs:{color:"primary","data-test":"stop-button",disabled:e.stopDisabled},on:{click:e.stop}},[e._v("\n Stop\n ")])],1))],1)],1)],1),e._v(" "),n("multipane",{staticClass:"horizontal-panes",attrs:{layout:"horizontal"},on:{paneResize:function(n){return l().f[16]++,l().s[19]++,e.editor.resize()}}},[n("div",{staticClass:"editorbox pane"},[n("v-snackbar",{staticClass:"saving",attrs:{absolute:"",top:"",right:"",timeout:-1},model:{value:e.showSave,callback:function(n){l().f[17]++,l().s[20]++,e.showSave=n},expression:"showSave"}},[e._v("\n Saving...\n ")]),e._v(" "),n("pre",{ref:"editor",staticClass:"editor",on:{contextmenu:function(n){return l().f[18]++,l().s[21]++,n.preventDefault(),l().s[22]++,e.showExecuteSelectionMenu.apply(null,arguments)}}}),e._v(" "),n("v-menu",{attrs:{"position-x":e.menuX,"position-y":e.menuY,absolute:"","offset-y":""},model:{value:e.executeSelectionMenu,callback:function(n){l().f[19]++,l().s[23]++,e.executeSelectionMenu=n},expression:"executeSelectionMenu"}},[n("v-list",e._l(e.executeSelectionMenuItems,(function(t){return l().f[20]++,l().s[24]++,n("v-list-item",{key:t.label,attrs:{link:"",disabled:e.scriptId}},[n("v-list-item-title",{on:{click:t.command}},[e._v("\n "+e._s(t.label)+"\n ")])],1)})),1)],1)],1),e._v(" "),n("multipane-resizer",[n("hr")]),e._v(" "),n("div",{ref:"messagesDiv",staticClass:"mt-2 pane",attrs:{id:"messages"}},[e.showDebug?(l().b[4][0]++,n("div",{staticClass:"pa-0",attrs:{id:"debug"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-btn",{staticClass:"mr-4",staticStyle:{width:"100px"},attrs:{color:"primary",disabled:!e.scriptId,"data-test":"step-button"},on:{click:e.step}},[e._v("\n Step\n "),n("v-icon",{attrs:{right:""}},[e._v(" mdi-step-forward ")])],1),e._v(" "),n("v-text-field",{staticClass:"mb-2",attrs:{outlined:"",dense:"","hide-details":"",label:"Debug","data-test":"debug-text"},on:{keydown:e.debugKeydown},model:{value:e.debug,callback:function(n){l().f[21]++,l().s[25]++,e.debug=n},expression:"debug"}})],1)],1)):(l().b[4][1]++,e._e()),e._v(" "),n("script-log-messages",{on:{sort:e.messageSortOrder},model:{value:e.messages,callback:function(n){l().f[22]++,l().s[26]++,e.messages=n},expression:"messages"}})],1)],1),e._v(" "),e.fileOpen?(l().b[5][0]++,n("file-open-save-dialog",{attrs:{type:"open","api-url":"/script-api/scripts"},on:{file:function(n){return l().f[23]++,l().s[27]++,e.setFile(n)},error:function(n){return l().f[24]++,l().s[28]++,e.setError(n)},"clear-temp":function(n){return l().f[25]++,l().s[29]++,e.clearTemp(n)}},model:{value:e.fileOpen,callback:function(n){l().f[26]++,l().s[30]++,e.fileOpen=n},expression:"fileOpen"}})):(l().b[5][1]++,e._e()),e._v(" "),e.showSaveAs?(l().b[6][0]++,n("file-open-save-dialog",{attrs:{type:"save","api-url":"/script-api/scripts","require-target-parent-dir":"","input-filename":e.filenameOrBlank},on:{filename:function(n){return l().f[27]++,l().s[31]++,e.saveAsFilename(n)},error:function(n){return l().f[28]++,l().s[32]++,e.setError(n)},"clear-temp":function(n){return l().f[29]++,l().s[33]++,e.clearTemp(n)}},model:{value:e.showSaveAs,callback:function(n){l().f[30]++,l().s[34]++,e.showSaveAs=n},expression:"showSaveAs"}})):(l().b[6][1]++,e._e()),e._v(" "),e.showEnvironment?(l().b[7][0]++,n("environment-dialog",{model:{value:e.showEnvironment,callback:function(n){l().f[31]++,l().s[35]++,e.showEnvironment=n},expression:"showEnvironment"}})):(l().b[7][1]++,e._e()),e._v(" "),e.ask.show?(l().b[8][0]++,n("ask-dialog",{attrs:{question:e.ask.question,default:e.ask.default,password:e.ask.password,"answer-required":e.ask.answerRequired},on:{response:e.ask.callback},model:{value:e.ask.show,callback:function(n){l().f[32]++,l().s[36]++,e.$set(e.ask,"show",n)},expression:"ask.show"}})):(l().b[8][1]++,e._e()),e._v(" "),e.file.show?(l().b[9][0]++,n("file-dialog",{attrs:{title:e.file.title,message:e.file.message,multiple:e.file.multiple,filter:e.file.filter},on:{response:e.fileDialogCallback},model:{value:e.file.show,callback:function(n){l().f[33]++,l().s[37]++,e.$set(e.file,"show",n)},expression:"file.show"}})):(l().b[9][1]++,e._e()),e._v(" "),e.information.show?(l().b[10][0]++,n("information-dialog",{attrs:{title:e.information.title,text:e.information.text},model:{value:e.information.show,callback:function(n){l().f[34]++,l().s[38]++,e.$set(e.information,"show",n)},expression:"information.show"}})):(l().b[10][1]++,e._e()),e._v(" "),e.inputMetadata.show?(l().b[11][0]++,n("event-list-dialog",{attrs:{events:e.inputMetadata.events,utc:!1,"new-metadata":""},on:{close:e.inputMetadata.callback},model:{value:e.inputMetadata.show,callback:function(n){l().f[35]++,l().s[39]++,e.$set(e.inputMetadata,"show",n)},expression:"inputMetadata.show"}})):(l().b[11][1]++,e._e()),e._v(" "),e.showOverrides?(l().b[12][0]++,n("overrides-dialog",{model:{value:e.showOverrides,callback:function(n){l().f[36]++,l().s[40]++,e.showOverrides=n},expression:"showOverrides"}})):(l().b[12][1]++,e._e()),e._v(" "),e.prompt.show?(l().b[13][0]++,n("prompt-dialog",{attrs:{title:e.prompt.title,subtitle:e.prompt.subtitle,message:e.prompt.message,details:e.prompt.details,buttons:e.prompt.buttons,layout:e.prompt.layout,multiple:e.prompt.multiple},on:{response:e.prompt.callback},model:{value:e.prompt.show,callback:function(n){l().f[37]++,l().s[41]++,e.$set(e.prompt,"show",n)},expression:"prompt.show"}})):(l().b[13][1]++,e._e()),e._v(" "),e.results.show?(l().b[14][0]++,n("results-dialog",{attrs:{text:e.results.text},model:{value:e.results.show,callback:function(n){l().f[38]++,l().s[42]++,e.$set(e.results,"show",n)},expression:"results.show"}})):(l().b[14][1]++,e._e()),e._v(" "),e.scriptEnvironment.show?(l().b[15][0]++,n("script-environment-dialog",{attrs:{"input-environment":e.scriptEnvironment.env},on:{environment:e.environmentHandler},model:{value:e.scriptEnvironment.show,callback:function(n){l().f[39]++,l().s[43]++,e.$set(e.scriptEnvironment,"show",n)},expression:"scriptEnvironment.show"}})):(l().b[15][1]++,e._e()),e._v(" "),n("simple-text-dialog",{attrs:{title:"Suite Analysis Error",text:e.suiteError,width:1e3},model:{value:e.showSuiteError,callback:function(n){l().f[40]++,l().s[44]++,e.showSuiteError=n},expression:"showSuiteError"}}),e._v(" "),n("v-bottom-sheet",{model:{value:e.showScripts,callback:function(n){l().f[41]++,l().s[45]++,e.showScripts=n},expression:"showScripts"}},[n("v-sheet",{staticClass:"pb-11 pt-5 px-5"},[e.showScripts?(l().b[16][0]++,n("running-scripts",{attrs:{"connect-in-new-tab":!!e.fileModified},on:{disconnect:e.scriptDisconnect,close:()=>{l().f[42]++,l().s[46]++,e.showScripts=!1}}})):(l().b[16][1]++,e._e())],1)],1)],1)},s=(l().s[47]++,[]),o=(t(9375),t(7534),t(4293),t(5100),t(7162),t(6403),t(4154),t(4777),t(8846),t(2896),t(7010),t(3165),t(4541),t(4397),t(1412),t(1883),t(7905),t(4625)),a=t(2702),r=t(2795),c=t(1841),u=(t(2739),t(2281),t(5617),t(6717),t(9946),t(3769)),d=t(3898),m=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600",scrollable:""},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.success()}},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-overlay",{attrs:{value:e.loading}},[n("v-progress-circular",{attrs:{indeterminate:"",absolute:"",size:"64"}})],1),e._v(" "),n("form",{on:{submit:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v(" "+e._s(e.title)+" ")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{attrs:{flat:"",autofocus:"","solo-inverted":"","hide-details":"",clearable:"",label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","data-test":"file-open-save-search"},on:{input:e.handleSearch},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),e._v(" "),n("v-row",{staticClass:"mt-2",attrs:{dense:""}},[n("v-treeview",{ref:"tree",staticStyle:{width:"100%","max-height":"60vh",overflow:"auto"},attrs:{dense:"",activatable:"","return-object":"",items:e.items,search:e.search,"open-on-click":"open"===e.type},on:{"update:active":e.activeFile},scopedSlots:e._u([{key:"prepend",fn:function({item:t,open:l}){return[t.file?n("v-icon",[e._v(" "+e._s(e.calcIcon(t.name))+" ")]):n("v-icon",[e._v("\n "+e._s(l?"mdi-folder-open":"mdi-folder")+"\n ")])]}},{key:"append",fn:function({item:t}){return["__TEMP__"===t.name?n("v-btn",{attrs:{icon:""},on:{click:e.deleteTemp}},[n("v-icon",[e._v(" mdi-delete ")])],1):e._e()]}}]),model:{value:e.tree,callback:function(n){e.tree=n},expression:"tree"}})],1),e._v(" "),n("v-row",{staticClass:"my-2"},[n("v-text-field",{attrs:{"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:"open"===e.type},model:{value:e.selectedFile,callback:function(n){e.selectedFile=n},expression:"selectedFile"}})],1),e._v(" "),n("v-row",{attrs:{dense:""}},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"my-2 red--text",domProps:{textContent:e._s(e.error)}})]),e._v(" "),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"file-open-save-cancel-btn",disabled:e.disableButtons},on:{click:function(n){e.show=!1}}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"file-open-save-submit-btn",disabled:e.disableButtons||!!e.error},on:{click:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[e._v("\n "+e._s(e.submit)+"\n ")])],1)],1)])],1)],1)],1)},A=[];const p=function(e){if(e&&e.includes(".")){let n=e.split(".").pop();if("py"===n)return"mdi-language-python";if("rb"===n)return"mdi-language-ruby";if("js"===n)return"mdi-language-javascript";if("csv"===n)return"mdi-file-delimited";if("txt"===n)return"mdi-file-document";if("png"===n||"gif"===n||"jpg"===n)return"mdi-file-image"}return"mdi-file"},h={props:{type:{type:String,required:!0,validator:function(e){return-1!==["open","save"].indexOf(e)}},apiUrl:String,requireTargetParentDir:Boolean,inputFilename:String,value:Boolean},data(){return{tree:[],items:[],id:1,search:null,selectedFile:null,disableButtons:!1,targets:[],loading:!0}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}},title:function(){return"open"===this.type?"File Open":"File Save As..."},submit:function(){return"open"===this.type?"OPEN":"SAVE"},error:function(){if(""===this.selectedFile||null===this.selectedFile)return"No file selected must select a file";if(!this.selectedFile.match(this.validFilenameRegex)||this.selectedFile.match(/\.\.|\/\/|\.\/|\/\./)){let e=`${this.selectedFile} is not a valid filename. Must `;return this.requireTargetParentDir&&(e+="be in a target directory and "),e+="only contain alphanumeric characters and / ! - _ . * ' ( )",e}if("save"===this.type&&this.selectedFile.match(/\*$/)){let e=`${this.selectedFile} is not a valid filename. Must not end in '*'.`;return e}return null},validFilenameRegex:function(){const e="0-9a-zA-Z",n=`${e}\\/\\!\\-\\_\\.\\*\\'\\(\\)`;let t=`[${n}]+\\.[${e}]+`;if(this.requireTargetParentDir){const e=`(${this.targets.join("|")})`;t=`\\/?${e}\\/${t}`}return new RegExp(t)}},created(){this.loadFiles(),this.requireTargetParentDir&&r.A.get("/openc3-api/targets").then((e=>{this.targets=e.data,this.targets.push("__TEMP__")}))},methods:{calcIcon:function(e){return p(e)},loadFiles:function(){r.A.get(this.apiUrl).then((e=>{this.items=[],this.id=1;for(let n of e.data)this.filepath=n,this.insertFile(this.items,1,n),this.id++;this.inputFilename&&(this.selectedFile=this.inputFilename),this.loading=!1})).catch((e=>{this.$emit("error",`Failed to connect to OpenC3. ${e}`)}))},clear:function(){this.show=!1,this.overwrite=!1,this.disableButtons=!1},handleSearch:function(e){e?this.$refs.tree.updateAll(!0):this.$refs.tree.updateAll(!1)},activeFile:function(e){0===e.length?this.selectedFile=null:this.selectedFile=e[0].path},exists:function(e,n){let t=!1;for(let l of e){if(l.path===n)return!0;if(l.path.length>1&&"*"===l.path[l.path.length-1]&&l.path.slice(0,l.path.length-1)===n)return!0;l.children&&(t=t||this.exists(l.children,n))}return t},success:function(){null!==this.selectedFile&&null===this.error&&("open"===this.type?this.openSuccess():this.saveSuccess())},deleteTemp:function(){this.$dialog.confirm("Are you sure you want to delete all the temporary files?",{okText:"Delete",cancelText:"Cancel"}).then((e=>r.A.delete("/script-api/scripts/temp_files"))).then((e=>{this.$emit("clear-temp"),this.loadFiles()})).catch((e=>{this.$notify.serious({title:"Error",body:`Failed to remove script temporary files due to ${e}`})}))},openSuccess:function(){this.disableButtons=!0,r.A.get(`${this.apiUrl}/${this.selectedFile}`).then((e=>{const n={name:this.selectedFile,contents:e.data.contents};e.data.suites&&(n["suites"]=JSON.parse(e.data.suites)),e.data.error&&(n["error"]=e.data.error),e.data.success&&(n["success"]=e.data.success);const t=e.data.locked,l=e.data.breakpoints;this.$emit("file",{file:n,locked:t,breakpoints:l}),this.clear()})).catch((e=>{this.$emit("error",`Failed to open ${this.selectedFile}. ${e}`),this.clear()}))},saveSuccess:function(){const e=this.exists(this.items,this.selectedFile);e?this.$dialog.confirm(`Are you sure you want to overwrite: ${this.selectedFile}`,{okText:"Overwrite",cancelText:"Cancel"}).then((e=>{this.$emit("filename",this.selectedFile),this.clear()})).catch((e=>{})):(this.$emit("filename",this.selectedFile),this.clear())},insertFile:function(e,n,t){var l=t.split("/");if(1===l.length)return e.push({id:this.id,name:l[0],file:"ruby",path:this.filepath}),void this.id++;const i=e.findIndex((e=>e.name===l[0]));-1===i?(e.push({id:this.id,name:l[0],children:[],path:this.filepath.split("/").slice(0,n).join("/")}),this.id++,this.insertFile(e[e.length-1].children,n+1,l.slice(1).join("/"))):this.insertFile(e[i].children,n+1,l.slice(1).join("/"))}}},v=h;var f=t(2401),g=(0,f.A)(v,m,A,!1,null,null,null);const C=g.exports;var b=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.addEnvironment.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Global Environment Variables")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{staticClass:"mb-2",attrs:{dense:""}},[n("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","clear-icon":"mdi-close-circle-outline",clearable:"",autofocus:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),e._v(" "),n("v-data-table",{attrs:{"item-key":"name","hide-default-header":"","data-test":"env-table",search:e.search,headers:e.headers,items:e.environment,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:e._u([{key:"item.actions",fn:function({item:t}){return[n("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(n){return e.deleteEnvironment(t)}}},[n("v-icon",[e._v("mdi-delete")])],1)]}}])}),e._v(" "),n("v-row",{attrs:{dense:""}},[n("v-col",[n("v-text-field",{attrs:{label:"Key","data-test":"env-key"},model:{value:e.key,callback:function(n){e.key=n},expression:"key"}})],1),e._v(" "),n("v-col",[n("v-text-field",{attrs:{label:"Value","data-test":"env-value"},model:{value:e.keyValue,callback:function(n){e.keyValue=n},expression:"keyValue"}})],1)],1),e._v(" "),n("v-row",{attrs:{dense:""}},[n("v-btn",{attrs:{block:"",type:"submit",color:"primary","data-test":"add-env",disabled:!e.key||!e.keyValue},on:{click:function(n){return n.preventDefault(),e.addEnvironment.apply(null,arguments)}}},[e._v("\n Add\n ")])],1)],1)])],1)])],1)},_=[];const y={props:{value:Boolean},data(){return{alert:"",alertType:"success",showAlert:!1,search:"",key:"",keyValue:"",environment:[],headers:[{text:"Key",value:"key"},{text:"Value",value:"value"},{text:"Actions",value:"actions",align:"end",sortable:!1}]}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}}},mounted(){this.update()},methods:{alertHandler:function(e){this.alert=e.text,this.alertType=e.type,this.showAlert=!0},update:function(){r.A.get("/openc3-api/environment").then((e=>{this.environment=e.data})).catch((e=>{}))},addEnvironment:function(){r.A.post("/openc3-api/environment",{data:{key:this.key.toUpperCase(),value:this.keyValue}}).then((e=>{e.data.name;this.update()})).catch((e=>{const n={text:`Failed to add environment variable: ${e}`,type:"error"};this.alertHandler(n)})),this.key="",this.keyValue=""},deleteEnvironment:function(e){this.$dialog.confirm(`Are you sure you want to delete: ${e.key}=${e.value}`,{okText:"Delete",cancelText:"Cancel"}).then((n=>r.A.delete(`/openc3-api/environment/${e.name}`))).then((n=>{const t={text:`Removed environment variable: ${e.name}`,type:"success"};this.alertHandler(t),this.update()})).catch((e=>{const n={text:`Failed to delete environment: ${e}`,type:"error"};this.alertHandler(n)}))}}},w=y;var x=(0,f.A)(w,b,_,!1,null,null,null);const k=x.exports;var S=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:e.width},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v(" "+e._s(e.title)+" ")]),e._v(" "),n("v-spacer"),e._v(" "),n("div",{staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"downloadIcon"},on:{click:e.download}},[e._v("\n mdi-download\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Download ")])])],1)],1),e._v(" "),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("span",{staticStyle:{"white-space":"pre-wrap"}},[e._v(e._s(e.text))])])]),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(n){e.show=!e.show}}},[e._v(" Ok ")])],1)],1)],1)},M=[];const E={props:{value:Boolean,text:String,title:String,width:800},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}}},methods:{download:function(){const e=new Blob([this.text],{type:"text/plain"}),n=document.createElement("a");n.href=URL.createObjectURL(e),n.setAttribute("download",`${this.title}.txt`),n.click()}}},T=E;var R=(0,f.A)(T,S,M,!1,null,null,null);const I=R.exports;var D=function(){var e=this,n=e._self._c;return n("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{"align-self":"end"}},[n("span",{staticClass:"app-title mr-2"},[e._v(e._s(e.title))])])],1),e._v(" "),n("v-row",{staticClass:"flex-nowrap",attrs:{dense:""}},e._l(e.menus,(function(t,l){return n("v-menu",{key:l,ref:"topmenu",refInFor:!0,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:l,attrs:i}){return[n("v-btn",e._g(e._b({staticClass:"mx-1 menu-button",attrs:{outlined:"","data-test":e.formatDT(`${e.title} ${t.label}`)}},"v-btn",i,!1),l),[n("span",{domProps:{textContent:e._s(t.label)}}),e._v(" "),n("v-icon",{staticClass:"myicon",attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[e._v(" "),n("v-list",[n("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:t.radioGroup,"hide-details":"",dense:""}},[e._l(t.items,(function(l,i){return[l.divider?n("v-divider",{key:i}):l.subMenu&&l.subMenu.length>0?n("div",{key:i},[n("v-menu",{key:e.k,attrs:{"open-on-hover":"","offset-x":"",bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:s}){return[n("v-list-item",e._g(e._b({key:i,attrs:{disabled:l.disabled}},"v-list-item",s,!1),t),[l.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:l.disabled}},[e._v(e._s(l.icon))])],1):e._e(),e._v(" "),l.radio||l.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(l.disabled?"opacity: 0.2":"")},[e._v(e._s(l.label)+"\n ")]),e._v(" "),n("v-icon",[e._v(" mdi-chevron-right ")])],1)]}}],null,!0)},[e._v(" "),n("v-list",e._l(l.subMenu,(function(t,l){return n("v-list-item",{key:l,on:{click:function(n){return e.subMenuClick(t)}}},[t.icon?n("v-list-item-icon",[n("v-icon",[e._v(e._s(t.icon))])],1):e._e(),e._v(" "),n("v-list-item-title",[e._v(e._s(t.label))])],1)})),1)],1)],1):n("v-list-item",{key:i,attrs:{disabled:l.disabled,"data-test":e.formatDT(`${e.title} ${t.label} ${l.label}`)},on:{click:function(e){return l.command(l)}}},[l.radio?n("v-list-item-action",[n("v-radio",{attrs:{color:"secondary",label:l.label,value:l.label}})],1):e._e(),e._v(" "),l.checkbox?n("v-list-item-action",[n("v-checkbox",{attrs:{color:"secondary",label:l.label},model:{value:l.checked,callback:function(n){e.$set(l,"checked",n)},expression:"option.checked"}})],1):e._e(),e._v(" "),l.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:l.disabled}},[e._v(e._s(l.icon))])],1):e._e(),e._v(" "),l.radio||l.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(l.disabled?"opacity: 0.2":"")},[e._v(e._s(l.label))])],1)]}))],2)],1)],1)})),1)],1)},$=[];t(8715);const O={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()},subMenuClick(e){e.command(e),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},N=O;t(1e3);var L=(0,f.A)(N,D,$,!1,null,"57d4fdd2",null);const F=L.exports;var P=t(4364);function H(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",n="1604238f3c57062f86c44bd7fd40b6b8fd614aad",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1421}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:260},end:{line:1,column:284}},6:{start:{line:1,column:284},end:{line:1,column:331}},7:{start:{line:1,column:384},end:{line:1,column:397}},8:{start:{line:1,column:869},end:{line:1,column:887}},9:{start:{line:1,column:1293},end:{line:1,column:1317}},10:{start:{line:1,column:1317},end:{line:1,column:1364}},11:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:153},end:{line:1,column:154}},loc:{start:{line:1,column:168},end:{line:1,column:182}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:243},end:{line:1,column:244}},loc:{start:{line:1,column:259},end:{line:1,column:332}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:368},end:{line:1,column:369}},loc:{start:{line:1,column:383},end:{line:1,column:398}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:853},end:{line:1,column:854}},loc:{start:{line:1,column:868},end:{line:1,column:888}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1276},end:{line:1,column:1277}},loc:{start:{line:1,column:1292},end:{line:1,column:1365}},line:1}},branchMap:{0:{loc:{start:{line:1,column:760},end:{line:1,column:794}},type:"cond-expr",locations:[{start:{line:1,column:775},end:{line:1,column:785}},{start:{line:1,column:788},end:{line:1,column:794}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1604238f3c57062f86c44bd7fd40b6b8fd614aad"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return H=function(){return o},o}H(),H().s[0]++;var B=function(){H().f[0]++;var e=(H().s[1]++,this),n=(H().s[2]++,e._self._c);return H().s[3]++,n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){H().f[1]++,H().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-form",{on:{submit:function(n){return H().f[2]++,H().s[5]++,n.preventDefault(),H().s[6]++,e.submitHandler.apply(null,arguments)}},model:{value:e.valid,callback:function(n){H().f[3]++,H().s[7]++,e.valid=n},expression:"valid"}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v(" User Input Required ")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("div",{staticClass:"question"},[e._v(e._s(e.question))]),e._v(" "),n("v-text-field",{attrs:{autofocus:"","data-test":"ask-value-input",type:e.password?(H().b[0][0]++,"password"):(H().b[0][1]++,"text"),rules:e.rules},model:{value:e.inputValue,callback:function(n){H().f[4]++,H().s[8]++,e.inputValue=n},expression:"inputValue"}})],1)],1),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-1",attrs:{outlined:"","data-test":"ask-cancel"},on:{click:e.cancelHandler}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"mx-1",attrs:{color:"primary",type:"submit","data-test":"ask-ok",disabled:!e.valid},on:{click:function(n){return H().f[5]++,H().s[9]++,n.preventDefault(),H().s[10]++,e.submitHandler.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)],1)],1)},V=(H().s[11]++,[]);function G(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",n="822bb34b5689fec702cd1ba7837dcdc3fc5e944a",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",statementMap:{0:{start:{line:23,column:4},end:{line:27,column:5}},1:{start:{line:26,column:21},end:{line:26,column:38}},2:{start:{line:30,column:4},end:{line:33,column:5}},3:{start:{line:31,column:6},end:{line:31,column:23}},4:{start:{line:32,column:6},end:{line:32,column:36}},5:{start:{line:34,column:4},end:{line:37,column:5}},6:{start:{line:35,column:6},end:{line:35,column:23}},7:{start:{line:36,column:6},end:{line:36,column:32}},8:{start:{line:36,column:27},end:{line:36,column:31}},9:{start:{line:42,column:8},end:{line:42,column:25}},10:{start:{line:45,column:8},end:{line:45,column:34}},11:{start:{line:51,column:6},end:{line:51,column:45}},12:{start:{line:54,column:6},end:{line:54,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:2},end:{line:22,column:3}},loc:{start:{line:22,column:9},end:{line:28,column:3}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:26,column:14},end:{line:26,column:15}},loc:{start:{line:26,column:21},end:{line:26,column:38}},line:26},2:{name:"(anonymous_2)",decl:{start:{line:29,column:2},end:{line:29,column:3}},loc:{start:{line:29,column:12},end:{line:38,column:3}},line:29},3:{name:"(anonymous_3)",decl:{start:{line:36,column:20},end:{line:36,column:21}},loc:{start:{line:36,column:27},end:{line:36,column:31}},line:36},4:{name:"(anonymous_4)",decl:{start:{line:41,column:6},end:{line:41,column:7}},loc:{start:{line:41,column:12},end:{line:43,column:7}},line:41},5:{name:"(anonymous_5)",decl:{start:{line:44,column:6},end:{line:44,column:7}},loc:{start:{line:44,column:17},end:{line:46,column:7}},line:44},6:{name:"(anonymous_6)",decl:{start:{line:50,column:19},end:{line:50,column:20}},loc:{start:{line:50,column:31},end:{line:52,column:5}},line:50},7:{name:"(anonymous_7)",decl:{start:{line:53,column:19},end:{line:53,column:20}},loc:{start:{line:53,column:31},end:{line:55,column:5}},line:53}},branchMap:{0:{loc:{start:{line:26,column:21},end:{line:26,column:38}},type:"binary-expr",locations:[{start:{line:26,column:21},end:{line:26,column:24}},{start:{line:26,column:28},end:{line:26,column:38}}],line:26},1:{loc:{start:{line:30,column:4},end:{line:33,column:5}},type:"if",locations:[{start:{line:30,column:4},end:{line:33,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:30},2:{loc:{start:{line:34,column:4},end:{line:37,column:5}},type:"if",locations:[{start:{line:34,column:4},end:{line:37,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:34}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,sources:["AskDialog.vue"],names:[],mappings:";AAsEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"AskDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog persistent v-model="show" width="600">\n <v-card>\n <v-form v-model="valid" v-on:submit.prevent="submitHandler">\n <v-system-bar>\n <v-spacer />\n <span> User Input Required </span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <div class="question">{{ question }}</div>\n <v-text-field\n v-model="inputValue"\n autofocus\n data-test="ask-value-input"\n :type="password ? \'password\' : \'text\'"\n :rules="rules"\n />\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancelHandler"\n outlined\n class="mx-1"\n data-test="ask-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click.prevent="submitHandler"\n class="mx-1"\n color="primary"\n type="submit"\n data-test="ask-ok"\n :disabled="!valid"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-form>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n question: {\n type: String,\n required: true,\n },\n default: {\n type: String,\n default: null,\n },\n password: {\n type: Boolean,\n default: false,\n },\n answerRequired: {\n type: Boolean,\n default: true,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n inputValue: \'\',\n valid: false,\n rules: [(v) => !!v || \'Required\'],\n }\n },\n created() {\n if (this.default) {\n this.valid = true\n this.inputValue = this.default\n }\n if (this.answerRequired === false) {\n this.valid = true\n this.rules = [(v) => true]\n }\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n submitHandler: function () {\n this.$emit(\'response\', this.inputValue)\n },\n cancelHandler: function () {\n this.$emit(\'response\', \'Cancel\')\n },\n },\n}\n<\/script>\n\n<sytle lang="scss" scoped>\n.question {\n font-size: 1rem;\n white-space: pre-line;\n}\n</sytle>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"822bb34b5689fec702cd1ba7837dcdc3fc5e944a"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return G=function(){return o},o}G();const W={props:{question:{type:String,required:!0},default:{type:String,default:null},password:{type:Boolean,default:!1},answerRequired:{type:Boolean,default:!0},value:Boolean},data(){return G().f[0]++,G().s[0]++,{inputValue:"",valid:!1,rules:[e=>(G().f[1]++,G().s[1]++,G().b[0][0]++,!!e||(G().b[0][1]++,"Required"))]}},created(){G().f[2]++,G().s[2]++,this.default?(G().b[1][0]++,G().s[3]++,this.valid=!0,G().s[4]++,this.inputValue=this.default):G().b[1][1]++,G().s[5]++,!1===this.answerRequired?(G().b[2][0]++,G().s[6]++,this.valid=!0,G().s[7]++,this.rules=[e=>(G().f[3]++,G().s[8]++,!0)]):G().b[2][1]++},computed:{show:{get(){return G().f[4]++,G().s[9]++,this.value},set(e){G().f[5]++,G().s[10]++,this.$emit("input",e)}}},methods:{submitHandler:function(){G().f[6]++,G().s[11]++,this.$emit("response",this.inputValue)},cancelHandler:function(){G().f[7]++,G().s[12]++,this.$emit("response","Cancel")}}},U=W;var z=t(5934),q=t.n(z);const j=q();var Y=(0,f.A)(U,B,V,!1,null,null,null);"function"===typeof j&&j(Y);const K=Y.exports;function X(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",n="cc55334088df9171b119b42429e1e2536fc08e85",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1673}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:260},end:{line:1,column:284}},6:{start:{line:1,column:284},end:{line:1,column:331}},7:{start:{line:1,column:384},end:{line:1,column:397}},8:{start:{line:1,column:1115},end:{line:1,column:1133}},9:{start:{line:1,column:1545},end:{line:1,column:1569}},10:{start:{line:1,column:1569},end:{line:1,column:1616}},11:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:153},end:{line:1,column:154}},loc:{start:{line:1,column:168},end:{line:1,column:182}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:243},end:{line:1,column:244}},loc:{start:{line:1,column:259},end:{line:1,column:332}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:368},end:{line:1,column:369}},loc:{start:{line:1,column:383},end:{line:1,column:398}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1099},end:{line:1,column:1100}},loc:{start:{line:1,column:1114},end:{line:1,column:1134}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1528},end:{line:1,column:1529}},loc:{start:{line:1,column:1544},end:{line:1,column:1617}},line:1}},branchMap:{0:{loc:{start:{line:1,column:712},end:{line:1,column:864}},type:"cond-expr",locations:[{start:{line:1,column:726},end:{line:1,column:855}},{start:{line:1,column:856},end:{line:1,column:864}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"cc55334088df9171b119b42429e1e2536fc08e85"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return X=function(){return o},o}X(),X().s[0]++;var J=function(){X().f[0]++;var e=(X().s[1]++,this),n=(X().s[2]++,e._self._c);return X().s[3]++,n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){X().f[1]++,X().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-form",{on:{submit:function(n){return X().f[2]++,X().s[5]++,n.preventDefault(),X().s[6]++,e.submitHandler.apply(null,arguments)}},model:{value:e.valid,callback:function(n){X().f[3]++,X().s[7]++,e.valid=n},expression:"valid"}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v(" File Dialog ")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("v-row",[n("v-card-title",{staticStyle:{"white-space":"pre-line"}},[e._v(e._s(e.title))])],1),e._v(" "),e.message?(X().b[0][0]++,n("v-row",[n("span",{staticClass:"ma-3",staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(e.message)}})])):(X().b[0][1]++,e._e()),e._v(" "),n("v-row",{staticClass:"my-1"},[n("v-file-input",{attrs:{label:"Choose File",autofocus:"","data-test":"file-input",accept:e.filter,"small-chips":"",multiple:e.multiple},model:{value:e.inputValue,callback:function(n){X().f[4]++,X().s[8]++,e.inputValue=n},expression:"inputValue"}})],1)],1)],1),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-1",attrs:{outlined:"","data-test":"file-cancel"},on:{click:e.cancelHandler}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"mx-1",attrs:{color:"primary",type:"submit","data-test":"file-ok",disabled:!e.valid},on:{click:function(n){return X().f[5]++,X().s[9]++,n.preventDefault(),X().s[10]++,e.submitHandler.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)],1)],1)},Z=(X().s[11]++,[]);function Q(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",n="29cb638f66743dffbb3e707fb1000ac69ffa7e7d",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",statementMap:{0:{start:{line:23,column:4},end:{line:25,column:5}},1:{start:{line:30,column:8},end:{line:30,column:25}},2:{start:{line:33,column:8},end:{line:33,column:34}},3:{start:{line:41,column:6},end:{line:43,column:7}},4:{start:{line:42,column:8},end:{line:42,column:43}},5:{start:{line:44,column:6},end:{line:44,column:45}},6:{start:{line:47,column:6},end:{line:47,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:2},end:{line:22,column:3}},loc:{start:{line:22,column:9},end:{line:26,column:3}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:29,column:6},end:{line:29,column:7}},loc:{start:{line:29,column:12},end:{line:31,column:7}},line:29},2:{name:"(anonymous_2)",decl:{start:{line:32,column:6},end:{line:32,column:7}},loc:{start:{line:32,column:17},end:{line:34,column:7}},line:32},3:{name:"(anonymous_3)",decl:{start:{line:38,column:19},end:{line:38,column:20}},loc:{start:{line:38,column:31},end:{line:45,column:5}},line:38},4:{name:"(anonymous_4)",decl:{start:{line:46,column:19},end:{line:46,column:20}},loc:{start:{line:46,column:31},end:{line:48,column:5}},line:46}},branchMap:{0:{loc:{start:{line:41,column:6},end:{line:43,column:7}},type:"if",locations:[{start:{line:41,column:6},end:{line:43,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:41}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0]},inputSourceMap:{version:3,sources:["FileDialog.vue"],names:[],mappings:";AAqFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"FileDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog persistent v-model="show" width="600">\n <v-card>\n <v-form v-model="valid" v-on:submit.prevent="submitHandler">\n <v-system-bar>\n <v-spacer />\n <span> File Dialog </span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-row>\n <v-card-title style="white-space: pre-line">{{\n title\n }}</v-card-title>\n </v-row>\n <v-row v-if="message">\n <span\n class="ma-3"\n style="white-space: pre-line"\n v-text="message"\n />\n </v-row>\n <v-row class="my-1">\n <v-file-input\n label="Choose File"\n v-model="inputValue"\n autofocus\n data-test="file-input"\n :accept="filter"\n small-chips\n :multiple="multiple"\n />\n </v-row>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancelHandler"\n outlined\n class="mx-1"\n data-test="file-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click.prevent="submitHandler"\n class="mx-1"\n color="primary"\n type="submit"\n data-test="file-ok"\n :disabled="!valid"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-form>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n title: {\n type: String,\n required: true,\n },\n message: {\n type: String,\n default: null,\n },\n filter: {\n type: String,\n default: \'*\',\n },\n multiple: {\n type: Boolean,\n default: false,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n inputValue: null,\n }\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n submitHandler: function () {\n // Ensure we send back an array of file names even in the single case\n // to make it easier to deal with a consistent result\n if (!Array.isArray(this.inputValue)) {\n this.inputValue = [this.inputValue]\n }\n this.$emit(\'response\', this.inputValue)\n },\n cancelHandler: function () {\n this.$emit(\'response\', \'Cancel\')\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"29cb638f66743dffbb3e707fb1000ac69ffa7e7d"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Q=function(){return o},o}Q();const ee={props:{title:{type:String,required:!0},message:{type:String,default:null},filter:{type:String,default:"*"},multiple:{type:Boolean,default:!1},value:Boolean},data(){return Q().f[0]++,Q().s[0]++,{inputValue:null}},computed:{show:{get(){return Q().f[1]++,Q().s[1]++,this.value},set(e){Q().f[2]++,Q().s[2]++,this.$emit("input",e)}}},methods:{submitHandler:function(){Q().f[3]++,Q().s[3]++,Array.isArray(this.inputValue)?Q().b[0][1]++:(Q().b[0][0]++,Q().s[4]++,this.inputValue=[this.inputValue]),Q().s[5]++,this.$emit("response",this.inputValue)},cancelHandler:function(){Q().f[4]++,Q().s[6]++,this.$emit("response","Cancel")}}},ne=ee;var te=(0,f.A)(ne,J,Z,!1,null,null,null);const le=te.exports;function ie(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",n="a9cf516d76680aac892bdf43e547c48c45854a96",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:808}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:472},end:{line:1,column:618}},6:{start:{line:1,column:755},end:{line:1,column:775}},7:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:451},end:{line:1,column:452}},loc:{start:{line:1,column:471},end:{line:1,column:619}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:738},end:{line:1,column:739}},loc:{start:{line:1,column:754},end:{line:1,column:776}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a9cf516d76680aac892bdf43e547c48c45854a96"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return ie=function(){return o},o}ie(),ie().s[0]++;var se=function(){ie().f[0]++;var e=(ie().s[1]++,this),n=(ie().s[2]++,e._self._c);return ie().s[3]++,n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){ie().f[1]++,ie().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(e.title)}}),e._v(" "),n("v-spacer")],1),e._v(" "),n("div",{staticClass:"pa-2"},[n("v-card-text",e._l(e.text,(function(t,l){return ie().f[2]++,ie().s[5]++,n("v-row",{key:l,attrs:{"no-gutters":""}},[n("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(t)}})])})),1)],1),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{attrs:{color:"primary"},on:{click:function(n){ie().f[3]++,ie().s[6]++,e.show=!e.show}}},[e._v(" Ok ")])],1)],1)],1)},oe=(ie().s[7]++,[]);function ae(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",n="0e6f63f54fe8f26950d23e02c85bf37a007389e7",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",statementMap:{0:{start:{line:20,column:8},end:{line:20,column:25}},1:{start:{line:23,column:8},end:{line:23,column:34}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:19,column:6},end:{line:19,column:7}},loc:{start:{line:19,column:12},end:{line:21,column:7}},line:19},1:{name:"(anonymous_1)",decl:{start:{line:22,column:6},end:{line:22,column:7}},loc:{start:{line:22,column:17},end:{line:24,column:7}},line:22}},branchMap:{},s:{0:0,1:0},f:{0:0,1:0},b:{},inputSourceMap:{version:3,sources:["InformationDialog.vue"],names:[],mappings:";AA+CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"InformationDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n \x3c!-- INFO --\x3e\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span style="white-space: pre-line" v-text="title" />\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-row no-gutters v-for="(line, index) in text" :key="index">\n <span style="white-space: pre-line" v-text="line" />\n </v-row>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn color="primary" @click="show = !show"> Ok </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n title: {\n type: String,\n required: true,\n },\n text: {\n type: String,\n required: true,\n },\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {},\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0e6f63f54fe8f26950d23e02c85bf37a007389e7"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return ae=function(){return o},o}ae();const re={props:{value:{type:Boolean,required:!0},title:{type:String,required:!0},text:{type:String,required:!0}},computed:{show:{get(){return ae().f[0]++,ae().s[0]++,this.value},set(e){ae().f[1]++,ae().s[1]++,this.$emit("input",e)}}},methods:{}},ce=re;var ue=(0,f.A)(ce,se,oe,!1,null,null,null);const de=ue.exports;var me=function(){var e=this,n=e._self._c;return n("div",[n("v-dialog",{attrs:{persistent:"",width:"80vw"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e._v(" "),e.newMetadata?n("span",[e._v("Metadata")]):n("span",[e._v("Events")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"close-metadata-icon"},on:{click:e.close}},[e._v("\n mdi-close-box\n ")])],1)]}}])},[e._v(" "),n("span",[e._v("Close")])])],1),e._v(" "),n("v-card-title",[e.newMetadata?n("span",[e._v("Metadata")]):n("span",[e._v("Events")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-text-field",{attrs:{label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),e._v(" "),n("v-data-table",{attrs:{headers:e.eventHeaders,items:e.localEvents,search:e.search,"sort-by":"start","sort-desc":""},scopedSlots:e._u([{key:"no-data",fn:function(){return[n("span",[e._v(" No events ")])]},proxy:!0},{key:"item.start",fn:function({item:n}){return[e._v("\n "+e._s(e.logFormat(n.start,e.utc))+"\n ")]}},{key:"item.end",fn:function({item:n}){return[e._v("\n "+e._s(e.logFormat(n.end,e.utc))+"\n ")]}},{key:"item.type",fn:function({item:n}){return[e._v("\n "+e._s(n.type.charAt(0).toUpperCase()+n.type.slice(1))+"\n ")]}},{key:"item.data",fn:function({item:n}){return[e._v("\n "+e._s(e.dataFormat(n))+"\n ")]}},{key:"item.actions",fn:function({item:t}){return[n("v-icon",{staticClass:"mr-2",attrs:{small:"","data-test":"edit-event"},on:{click:function(n){return e.editAction(t)}}},[e._v("\n mdi-pencil\n ")]),e._v(" "),n("v-icon",{attrs:{small:"","data-test":"delete-event"},on:{click:function(n){return e.deleteAction(t)}}},[e._v("\n mdi-delete\n ")])]}}])}),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"close-event-list"},on:{click:e.close}},[e._v("\n Close\n ")]),e._v(" "),e.newMetadata?n("v-btn",{attrs:{color:"primary","data-test":"new-event"},on:{click:function(n){e.showMetadataCreate=!0}}},[e._v("\n New Metadata\n ")]):e._e()],1)],1)],1),e._v(" "),n("activity-update-dialog",{attrs:{activity:e.editActivity},on:{update:e.updateActivity},model:{value:e.showActivityUpdate,callback:function(n){e.showActivityUpdate=n},expression:"showActivityUpdate"}}),e._v(" "),n("metadata-update-dialog",{attrs:{"metadata-obj":e.editMetadata},on:{update:e.updateMetadata},model:{value:e.showMetadataUpdate,callback:function(n){e.showMetadataUpdate=n},expression:"showMetadataUpdate"}}),e._v(" "),n("note-update-dialog",{attrs:{note:e.editNote},on:{update:e.updateNote},model:{value:e.showNoteUpdate,callback:function(n){e.showNoteUpdate=n},expression:"showNoteUpdate"}}),e._v(" "),n("metadata-create-dialog",{on:{update:e.addMetadata},model:{value:e.showMetadataCreate,callback:function(n){e.showMetadataCreate=n},expression:"showMetadataCreate"}})],1)},Ae=[],pe=t(2378);const he={filters:{time:function(e,n){return n?e.toUTCString().split(" ")[4]:e.toLocaleString().split(" ")[1]},hourMin:function(e){return e.split(":",2).join(":")},dateTime:function(e,n){return n?e.toISOString():e.toLocaleString()}},methods:{logFormat(e,n){return n?(0,pe.qD)(e,"UTC","yyyy-MM-dd HH:mm:ss.SSS"):(0,u.GP)(e,"yyyy-MM-dd HH:mm:ss.SSS")},generateDateTime(e,n){return n?e.toISOString():e.toLocaleString()},toIsoString(e){const n=new Date(e),t=-n.getTimezoneOffset(),l=t>=0?"+":"-";function i(e){var n=Math.floor(Math.abs(e));return(n<10?"0":"")+n}const s=n.getFullYear(),o=i(n.getMonth()+1),a=i(n.getDate()),r=i(n.getHours()),c=i(n.getMinutes()),u=i(n.getSeconds()),d=i(n.getMilliseconds()),m="utc"===this.utcOrLocal?"00:00":`${i(t/60)}:${i(t%60)}`;return`${s}-${o}-${a}T${r}:${c}:${u}.${d}${l}${m}`}}},ve={methods:{deleteItem(e){let n=null,t="";switch(e.type.toLowerCase()){case"activity":t="activity",n=e.activity.start;break;case"metadata":t="metadata",n=e.metadata.start;break;case"note":t="notes",n=e.note.start;break}this.$dialog.confirm(`Are you sure you want to remove ${e.typeStr} at ${e.startStr}`,{okText:"Delete",cancelText:"Cancel"}).then((()=>r.A.delete(`/openc3-api/${t}/${n}`))).then((()=>{this.$emit("delete",e),this.$notify.normal({title:`Deleted ${e.typeStr}`,body:`Deleted ${e.typeStr} at ${e.startStr}`})})).catch((()=>{}))}}};var fe=function(){var e=this,n=e._self._c;return n("div",[n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.createMetadata.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Create Metadata")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"close-metadata-icon"},on:{click:function(n){e.show=!e.show}}},[e._v("\n mdi-close-box\n ")])],1)]}}])},[e._v(" "),n("span",[e._v("Close")])])],1),e._v(" "),n("v-stepper",{attrs:{vertical:"","non-linear":""},model:{value:e.dialogStep,callback:function(n){e.dialogStep=n},expression:"dialogStep"}},[n("v-stepper-step",{attrs:{editable:"",step:"1"}},[e._v("\n Input start time\n ")]),e._v(" "),n("v-stepper-content",{attrs:{step:"1"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("color-select-form",{model:{value:e.color,callback:function(n){e.color=n},expression:"color"}}),e._v(" "),n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"Start Date",rules:[e.rules.required],"data-test":"metadata-start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),e._v(" "),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"Start Time",rules:[e.rules.required],"data-test":"metadata-start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}})],1),e._v(" "),n("v-row",{staticClass:"mx-2 mb-2"},[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),e._v(" "),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1),e._v(" "),n("v-row",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeError,expression:"timeError"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.timeError)}})]),e._v(" "),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),e._v(" "),n("v-btn",{attrs:{"data-test":"create-metadata-step-two-btn",color:"success",disabled:!!e.timeError},on:{click:function(n){e.dialogStep=2}}},[e._v("\n Continue\n ")])],1)],1)])],1),e._v(" "),n("v-stepper-step",{attrs:{editable:"",step:"2"}},[e._v("Metadata Input")]),e._v(" "),n("v-stepper-content",{attrs:{step:"2"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("div",{staticStyle:{"min-height":"200px"}},[n("metadata-input-form",{model:{value:e.metadata,callback:function(n){e.metadata=n},expression:"metadata"}})],1),e._v(" "),n("v-row",{directives:[{name:"show",rawName:"v-show",value:e.typeError,expression:"typeError"}]},[n("span",{staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.typeError)}})]),e._v(" "),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"create-metadata-cancel-btn"},on:{click:function(n){e.show=!e.show}}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"create-metadata-submit-btn",disabled:!!e.timeError||!!e.typeError},on:{click:function(n){return n.preventDefault(),e.createMetadata.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)])],1)],1)],1)])],1)],1)},ge=[],Ce=(t(8605),t(4554)),be=t(4483);const _e={props:{date:{type:String},time:{type:String}},data(){return{startDate:"",startTime:"",stopDate:"",stopTime:"",utcOrLocal:"loc"}},methods:{calcStartDateTime:function(){this.date?(this.startDate=this.date,this.stopDate=this.date):(this.startDate=(0,u.GP)(new Date,"yyyy-MM-dd"),this.stopDate=(0,u.GP)(new Date,"yyyy-MM-dd"));let e=18e5,n=null;this.time?(n=(0,Ce.qg)(this.time,"HH:mm:ss",new Date),n=new Date(Math.floor(n.getTime()/e)*e)):n=new Date(Math.ceil((new Date).getTime()/e)*e),this.startTime=(0,u.GP)(n,"HH:mm:ss"),this.stopTime=(0,u.GP)((0,be.W)(n,{minutes:30}),"HH:mm:ss")}}};var ye=function(){var e=this,n=e._self._c;return n("div",[n("v-select",{attrs:{items:e.swatches,label:"Color"},scopedSlots:e._u([{key:"selection",fn:function({item:t}){return[n("div",[n("v-badge",{attrs:{inline:"",color:t}},[n("span",{domProps:{textContent:e._s(t)}})])],1)]}},{key:"item",fn:function({item:t}){return[n("div",[n("v-badge",{attrs:{inline:"",color:t}},[n("span",{domProps:{textContent:e._s(t)}})])],1)]}}]),model:{value:e.color,callback:function(n){e.color=n},expression:"color"}})],1)},we=[];const xe={components:{},props:{value:{type:String,required:!0}},data(){return{}},computed:{color:{get(){return this.value},set(e){this.$emit("input",e)}},swatches:function(){return["#005a8f","#003784","#8F3400","#df1368","#ff5252","#df323b","#9f0010","#2d9437","#004700","#db7200","#802700","#0f2941"]}},methods:{}},ke=xe;var Se=(0,f.A)(ke,ye,we,!1,null,null,null);const Me=Se.exports;var Ee=function(){var e=this,n=e._self._c;return n("div",[n("v-simple-table",{attrs:{dense:""}},[n("tbody",[n("tr",[n("th",{staticClass:"text-left",attrs:{scope:"col"}},[e._v("Key")]),e._v(" "),n("th",{staticClass:"text-left",attrs:{scope:"col"}},[e._v("Value")]),e._v(" "),n("th",{staticClass:"text-right",attrs:{scope:"col"}},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"new-metadata-icon"},on:{click:e.newMetadata}},[e._v("\n mdi-plus\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" New Metadata ")])])],1)]),e._v(" "),e._l(e.metadata,(function(t,l){return[n("tr",{key:`tr-${l}`},[n("td",[n("v-text-field",{attrs:{type:"text",dense:"","data-test":`key-${l}`},model:{value:t.key,callback:function(n){e.$set(t,"key",n)},expression:"meta.key"}})],1),e._v(" "),n("td",[n("v-text-field",{attrs:{type:"text",dense:"","data-test":`value-${l}`},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"meta.value"}})],1),e._v(" "),n("td",[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:i}){return[n("div",e._g(e._b({},"div",i,!1),t),[n("v-icon",{attrs:{"data-test":`delete-metadata-icon-${l}`},on:{click:function(n){return e.rm(l)}}},[e._v("\n mdi-delete\n ")])],1)]}}],null,!0)},[e._v(" "),n("span",[e._v(" Delete Metadata ")])])],1)])]}))],2)])],1)},Te=[];const Re={components:{},props:{value:{type:Array,required:!0}},data(){return{}},computed:{metadata:{get(){return this.value},set(e){this.$emit("input",e)}}},methods:{newMetadata:function(){this.metadata.push({key:"",value:""})},rm:function(e){this.metadata.splice(e,1)}}},Ie=Re;var De=(0,f.A)(Ie,Ee,Te,!1,null,null,null);const $e=De.exports,Oe={components:{ColorSelectForm:Me,MetadataInputForm:$e},props:{value:Boolean},mixins:[_e,he],data(){return{scope:window.openc3Scope,dialogStep:1,color:"#003784",metadata:[],rules:{required:e=>!!e||"Required"}}},watch:{show:function(){this.updateValues()}},mounted:function(){this.updateValues()},computed:{timeError:function(){if(!this.color)return"A color is required.";const e=new Date,n=Date.parse(`${this.startDate}T${this.startTime}`);return e<n?"Invalid start time. Can not be in the future":null},typeError:function(){if(this.metadata.length<1)return"Please enter a value in the metadata table.";const e=this.metadata.find((e=>""===e.key||""===e.value));return e?"Missing or empty key, value in the metadata table.":null},show:{get(){return this.value},set(e){this.$emit("input",e)}}},methods:{updateValues:function(){this.dialogStep=1,this.time=(0,u.GP)(new Date,"HH:mm:ss"),this.calcStartDateTime(),this.color="#003784",this.metadata=[]},createMetadata:function(){const e=this.color,n=this.metadata.reduce(((e,n)=>(e[n.key]=n.value,e)),{}),t={color:e,metadata:n};t.start=this.toIsoString(Date.parse(`${this.startDate}T${this.startTime}`)),r.A.post("/openc3-api/metadata",{data:t}).then((e=>{this.$notify.normal({title:"Created new Metadata",body:`Metadata: (${e.data.start})`}),this.$emit("update",e.data)})),this.show=!this.show,this.updateValues()}}},Ne=Oe;t(5739);var Le=(0,f.A)(Ne,fe,ge,!1,null,"8154ef52",null);const Fe=Le.exports;var Pe=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.updateActivity.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("\n Update activity: "+e._s(e.activity.name)+"/"+e._s(e.activity.start)+"\n ")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"close-activity-icon"},on:{click:e.cancelActivity}},[e._v("\n mdi-close-box\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Close ")])])],1),e._v(" "),n("v-stepper",{attrs:{vertical:"","non-linear":""},model:{value:e.dialogStep,callback:function(n){e.dialogStep=n},expression:"dialogStep"}},[n("v-stepper-step",{attrs:{editable:"",step:"1"}},[e._v("\n Input start time, stop time\n ")]),e._v(" "),n("v-stepper-content",{attrs:{step:"1"}},[n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"Start Date",rules:[e.rules.required],"data-test":"activity-start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),e._v(" "),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"Start Time",rules:[e.rules.required],"data-test":"activity-start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}})],1),e._v(" "),n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"End Date",rules:[e.rules.required],"data-test":"activity-stop-date"},model:{value:e.stopDate,callback:function(n){e.stopDate=n},expression:"stopDate"}}),e._v(" "),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"End Time",rules:[e.rules.required],"data-test":"activity-stop-time"},model:{value:e.stopTime,callback:function(n){e.stopTime=n},expression:"stopTime"}})],1),e._v(" "),n("v-row",{staticStyle:{"margin-top":"0px"}},[n("v-col",[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),e._v(" "),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1),e._v(" "),n("v-col",[n("v-checkbox",{staticStyle:{"padding-top":"0px","margin-top":"0px"},attrs:{label:"Recurring","hide-details":"","data-test":"recurring",disabled:""},model:{value:e.recurring,callback:function(n){e.recurring=n},expression:"recurring"}})],1)],1),e._v(" "),e.recurring?n("v-row",[n("v-col",[n("div",{staticClass:"repeat"},[e._v("Repeat every")])]),e._v(" "),n("v-col",[n("v-text-field",{attrs:{dense:"",outlined:"","single-line":"","hide-details":"",disabled:""},model:{value:e.frequency,callback:function(n){e.frequency=n},expression:"frequency"}})],1),e._v(" "),n("v-col",[n("v-select",{staticStyle:{},attrs:{items:e.timeSpans,"hide-details":"",dense:"",outlined:"",disabled:"","data-test":"cmd-param-select"},model:{value:e.timeSpan,callback:function(n){e.timeSpan=n},expression:"timeSpan"}})],1)],1):e._e(),e._v(" "),e.recurring?n("v-row",{staticStyle:{"padding-bottom":"10px"}},[n("v-col",[n("div",{staticClass:"repeat"},[e._v("Ending")])]),e._v(" "),n("v-col",[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"End Date",disabled:"",rules:[e.rules.required],"data-test":"recurring-end-date"},model:{value:e.recurringEndDate,callback:function(n){e.recurringEndDate=n},expression:"recurringEndDate"}})],1),e._v(" "),n("v-col",[n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"End Time",disabled:"",rules:[e.rules.required],"data-test":"recurrning-end-time"},model:{value:e.recurringEndTime,callback:function(n){e.recurringEndTime=n},expression:"recurringEndTime"}})],1)],1):e._e(),e._v(" "),n("v-row",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeError,expression:"timeError"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.timeError)}})]),e._v(" "),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),e._v(" "),n("v-btn",{attrs:{"data-test":"update-activity-step-two-btn",color:"success",disabled:!!e.timeError},on:{click:function(n){e.dialogStep=2}}},[e._v("\n Continue\n ")])],1)],1)])],1),e._v(" "),n("v-stepper-step",{attrs:{editable:"",step:"2"}},[e._v("\n Activity type Input\n ")]),e._v(" "),n("v-stepper-content",{attrs:{step:"2"}},[n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-select",{attrs:{items:e.types,label:"Activity Type"},model:{value:e.kind,callback:function(n){e.kind=n},expression:"kind"}}),e._v(" "),"COMMAND"===e.kind?n("div",[n("v-text-field",{attrs:{type:"text",label:"Command Input",placeholder:"INST COLLECT with TYPE 0, DURATION 1, OPCODE 171, TEMP 0",prefix:"cmd('",suffix:"')",hint:"Timeline runs commands with cmd_no_hazardous_check","data-test":"activity-cmd"},model:{value:e.activityData,callback:function(n){e.activityData=n},expression:"activityData"}})],1):"SCRIPT"===e.kind?n("div",[n("script-chooser",{on:{file:e.fileHandler},model:{value:e.activityData,callback:function(n){e.activityData=n},expression:"activityData"}}),e._v(" "),n("environment-chooser",{model:{value:e.activityEnvironment,callback:function(n){e.activityEnvironment=n},expression:"activityEnvironment"}})],1):n("div",[n("span",{staticClass:"ma-2"},[e._v(" No required input ")])]),e._v(" "),n("v-row",{directives:[{name:"show",rawName:"v-show",value:e.typeError,expression:"typeError"}],staticClass:"mt-2"},[n("span",{staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.typeError)}})]),e._v(" "),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"update-activity-cancel-btn"},on:{click:e.cancelActivity}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"update-activity-submit-btn",disabled:!!e.timeError||!!e.typeError},on:{click:function(n){return n.preventDefault(),e.updateActivity.apply(null,arguments)}}},[e._v("\n Update\n ")])],1)],1)])],1)],1)],1)])],1)},He=[],Be=function(){var e=this,n=e._self._c;return n("div",[n("v-simple-table",{attrs:{dense:""}},[n("span",[e._v(" Add environment variables (optional)")]),e._v(" "),n("tbody",[n("tr",[n("th",{staticClass:"text-left",attrs:{scope:"col"}},[e._v("Key")]),e._v(" "),n("th",{staticClass:"text-left",attrs:{scope:"col"}},[e._v("Value")]),e._v(" "),n("th",{staticClass:"text-right",attrs:{scope:"col"}},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"new-metadata-icon"},on:{click:e.addEnvVar}},[e._v("\n mdi-plus\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Add Environment ")])])],1)]),e._v(" "),e._l(e.selected,(function(t,l){return[n("tr",{key:`tr-${l}`},[n("td",[n("v-text-field",{attrs:{dense:"",type:"text",readonly:t.readonly,"data-test":`key-${l}`},model:{value:t.key,callback:function(n){e.$set(t,"key",n)},expression:"env.key"}})],1),e._v(" "),n("td",[n("v-text-field",{attrs:{dense:"",type:"text",readonly:t.readonly,"data-test":`value-${l}`},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"env.value"}})],1),e._v(" "),n("td",[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:i}){return[n("div",e._g(e._b({},"div",i,!1),t),[n("v-icon",{attrs:{"data-test":`remove-env-icon-${l}`},on:{click:function(n){return e.delEnvVar(l)}}},[e._v("\n mdi-delete\n ")])],1)]}}],null,!0)},[e._v(" "),n("span",[e._v(" Delete Environment ")])])],1)])]}))],2)])],1)},Ve=[];const Ge={props:{value:{type:Array,required:!0}},computed:{selected:{get(){return this.value},set(e){this.$emit("input",e)}}},methods:{addEnvVar:function(){this.selected.push({key:"",value:""})},delEnvVar:function(e){this.selected.splice(e,1)}}},We=Ge;var Ue=(0,f.A)(We,Be,Ve,!1,null,null,null);const ze=Ue.exports;var qe=function(){var e=this,n=e._self._c;return n("div",[n("v-row",[n("v-autocomplete",{staticClass:"mb-5",attrs:{"cache-items":"",dense:"",outlined:"","hide-no-data":"","hide-details":"",label:"Select script",loading:e.loading,items:e.items,"search-input":e.search,"data-test":"select-script"},on:{"update:searchInput":function(n){e.search=n},"update:search-input":function(n){e.search=n}},model:{value:e.selected,callback:function(n){e.selected=n},expression:"selected"}})],1)],1)},je=[];const Ye={props:{value:String},data(){return{loading:!1,search:"",selected:this.value,scripts:[],items:[]}},created(){this.loading=!0,r.A.get("/script-api/scripts").then((e=>{this.scripts=e.data.filter((e=>e.includes(".rb")||e.includes(".py"))),this.items=this.scripts})).catch((e=>{this.$emit("error",{type:"error",text:`Failed to connect to OpenC3. ${e}`,error:e})})),this.selected=this.value?this.value:null,this.loading=!1},watch:{selected(e,n){e!==n&&this.$emit("file",e)},search(e){e&&e!==this.selected&&this.querySelections(e)}},methods:{querySelections:function(e){this.loading=!0,setTimeout((()=>{this.items=this.scripts.filter((n=>(n||"").toLowerCase().indexOf((e||"").toLowerCase())>-1)),this.loading=!1}),500)}}},Ke=Ye;var Xe=(0,f.A)(Ke,qe,je,!1,null,null,null);const Je=Xe.exports,Ze={components:{EnvironmentChooser:ze,ScriptChooser:Je},props:{activity:{type:Object,required:!0},value:Boolean},mixins:[he],data(){return{dialogStep:1,startDate:"",startTime:"",stopDate:"",stopTime:"",utcOrLocal:"loc",kind:"",types:["COMMAND","SCRIPT","RESERVE"],activityData:"",activityEnvironment:[],rules:{required:e=>!!e||"Required"},recurring:!1,recurringEndDate:null,recurringEndTime:null,frequency:90,timeSpan:"minutes",timeSpans:["minutes","hours","days"]}},watch:{show:function(){this.updateValues()}},computed:{timeError:function(){const e=new Date,n=Date.parse(`${this.startDate}T${this.startTime}`),t=Date.parse(`${this.stopDate}T${this.stopTime}`);return n===t?"Invalid start, stop time. Activity must have different start and stop times.":e>n?"Invalid start time. Activity must be in the future.":n>t?"Invalid start time. Activity start before stop.":null},typeError:function(){return"RESERVE"===this.kind||this.activityData?null:"No data is selected or inputted"},show:{get(){return this.value},set(e){this.$emit("input",e)}}},methods:{changeKind:function(e){e!==this.kind&&(this.kind=e,this.activityData="")},fileHandler:function(e){this.activityData=e||null},updateValues:function(){var e;const n=new Date(1e3*this.activity.start),t=new Date(1e3*this.activity.stop);if(this.startDate=(0,u.GP)(n,"yyyy-MM-dd"),this.startTime=(0,u.GP)(n,"HH:mm:ss"),this.stopDate=(0,u.GP)(t,"yyyy-MM-dd"),this.stopTime=(0,u.GP)(t,"HH:mm:ss"),this.kind=this.activity.kind.toUpperCase(),this.activityData=this.activity.data[this.activity.kind],this.activityEnvironment=this.activity.data.environment,null!==(e=this.activity.recurring)&&void 0!==e&&e.uuid){this.recurring=!0;const e=new Date(1e3*this.activity.recurring.end);this.recurringEndDate=(0,u.GP)(e,"yyyy-MM-dd"),this.recurringEndTime=(0,u.GP)(e,"HH:mm:ss"),this.frequency=this.activity.recurring.frequency,this.timeSpan=this.activity.recurring.span}},cancelActivity:function(){this.show=!this.show},updateActivity:function(){const e=this.toIsoString(Date.parse(`${this.startDate}T${this.startTime}`)),n=this.toIsoString(Date.parse(`${this.stopDate}T${this.stopTime}`)),t=this.kind.toLowerCase();let l={environment:this.activityEnvironment};l[t]=this.activityData;const i=this.activity.name,s=this.activity.start;var o={};this.recurring&&(o={frequency:this.frequency,span:this.timeSpan,end:this.toIsoString(Date.parse(`${this.recurringEndDate}T${this.recurringEndTime}`))}),r.A.put(`/openc3-api/timeline/${i}/activity/${s}`,{data:{start:e,stop:n,kind:t,data:l,recurring:o}}).then((e=>{const n=this.generateDateTime(new Date(1e3*e.data.start));this.$notify.normal({title:"Updated Activity",body:`${n} (${e.data.start}) on timeline: ${e.data.name}`}),this.$emit("update"),this.show=!this.show})).catch((e=>{this.show=!this.show}))}}},Qe=Ze;t(5663);var en=(0,f.A)(Qe,Pe,He,!1,null,"54fbc085",null);const nn=en.exports;var tn=function(){var e=this,n=e._self._c;return n("div",[n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.updateMetadata.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Update Metadata")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"close-metadata-icon"},on:{click:function(n){e.show=!e.show}}},[e._v("\n mdi-close-box\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Close ")])])],1),e._v(" "),n("v-stepper",{attrs:{vertical:"","non-linear":""},model:{value:e.dialogStep,callback:function(n){e.dialogStep=n},expression:"dialogStep"}},[n("v-stepper-step",{attrs:{editable:"",step:"1"}},[e._v("\n Input start time\n ")]),e._v(" "),n("v-stepper-content",{attrs:{step:"1"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("color-select-form",{model:{value:e.color,callback:function(n){e.color=n},expression:"color"}}),e._v(" "),n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"Start Date",rules:[e.rules.required],"data-test":"start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),e._v(" "),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"Start Time",rules:[e.rules.required],"data-test":"start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}})],1),e._v(" "),n("v-row",{staticClass:"mx-2 mb-2"},[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),e._v(" "),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1),e._v(" "),n("v-row",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeError,expression:"timeError"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.timeError)}})]),e._v(" "),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),e._v(" "),n("v-btn",{attrs:{"data-test":"create-metadata-step-two-btn",color:"success",disabled:!!e.timeError},on:{click:function(n){e.dialogStep=2}}},[e._v("\n Continue\n ")])],1)],1)])],1),e._v(" "),n("v-stepper-step",{attrs:{editable:"",step:"2"}},[e._v(" Metadata input ")]),e._v(" "),n("v-stepper-content",{attrs:{step:"2"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("div",{staticStyle:{"min-height":"200px"}},[n("metadata-input-form",{model:{value:e.metadata,callback:function(n){e.metadata=n},expression:"metadata"}})],1),e._v(" "),n("v-row",{directives:[{name:"show",rawName:"v-show",value:e.typeError,expression:"typeError"}]},[n("span",{staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.typeError)}})]),e._v(" "),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"update-metadata-cancel-btn"},on:{click:function(n){e.show=!e.show}}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"update-metadata-submit-btn",disabled:!!e.timeError||!!e.typeError},on:{click:function(n){return n.preventDefault(),e.updateMetadata.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)])],1)],1)],1)])],1)],1)},ln=[];const sn={components:{ColorSelectForm:Me,MetadataInputForm:$e},props:{metadataObj:{type:Object,required:!0},value:Boolean},mixins:[he],data(){return{scope:window.openc3Scope,dialogStep:1,startDate:"",startTime:"",utcOrLocal:"loc",color:"",metadata:[],rules:{required:e=>!!e||"Required"}}},watch:{show:function(){this.updateValues()}},computed:{timeError:function(){const e=new Date,n=Date.parse(`${this.startDate}T${this.startTime}`);return e<n?"Invalid start time. Can not be in the future":null},typeError:function(){if(this.metadata.length<1)return"Please enter a value in the metadata table.";const e=this.metadata.find((e=>""===e.key||""===e.value));return e?"Missing or empty key, value in the metadata table.":null},show:{get(){return this.value},set(e){this.$emit("input",e)}}},methods:{updateValues:function(){const e=new Date(1e3*this.metadataObj.start);this.startDate=(0,u.GP)(e,"yyyy-MM-dd"),this.startTime=(0,u.GP)(e,"HH:mm:ss"),this.metadata=Object.keys(this.metadataObj.metadata).map((e=>({key:e,value:this.metadataObj.metadata[e]}))),this.color=this.metadataObj.color},updateMetadata:function(){const e=this.color,n=this.metadata.reduce(((e,n)=>(e[n.key]=n.value,e)),{}),t=this.toIsoString(Date.parse(`${this.startDate}T${this.startTime}`));r.A.put(`/openc3-api/metadata/${this.metadataObj.start}`,{data:{start:t,color:e,metadata:n}}).then((t=>{this.$notify.normal({title:"Updated Metadata",body:`Metadata updated: (${t.data.start})`}),console.log("metadata update emit"),this.$emit("update",{...t.data.start,color:e,metadata:n})})),this.$emit("close"),this.show=!this.show,this.updateValues()}}},on=sn;t(6611);var an=(0,f.A)(on,tn,ln,!1,null,"f2badfd2",null);const rn=an.exports;var cn=function(){var e=this,n=e._self._c;return n("div",[n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.updateNote.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Update Note")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"close-note-icon"},on:{click:function(n){e.show=!e.show}}},[e._v("\n mdi-close-box\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Close ")])])],1),e._v(" "),n("v-stepper",{attrs:{vertical:"","non-linear":""},model:{value:e.dialogStep,callback:function(n){e.dialogStep=n},expression:"dialogStep"}},[n("v-stepper-step",{attrs:{editable:"",step:"1"}},[e._v("\n Input start time, stop time\n ")]),e._v(" "),n("v-stepper-content",{attrs:{step:"1"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"Start Date",rules:[e.rules.required],"data-test":"note-start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),e._v(" "),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"Start Time",rules:[e.rules.required],"data-test":"note-start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}})],1),e._v(" "),n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"End Date",rules:[e.rules.required],"data-test":"note-stop-date"},model:{value:e.stopDate,callback:function(n){e.stopDate=n},expression:"stopDate"}}),e._v(" "),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"End Time",rules:[e.rules.required],"data-test":"note-stop-time"},model:{value:e.stopTime,callback:function(n){e.stopTime=n},expression:"stopTime"}})],1),e._v(" "),n("v-row",{staticClass:"mx-2 mb-2"},[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),e._v(" "),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1),e._v(" "),n("v-row",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeError,expression:"timeError"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.timeError)}})]),e._v(" "),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),e._v(" "),n("v-btn",{attrs:{"data-test":"update-note-step-two-btn",color:"success",disabled:!!e.timeError},on:{click:function(n){e.dialogStep=2}}},[e._v("\n Continue\n ")])],1)],1)])],1),e._v(" "),n("v-stepper-step",{attrs:{editable:"",step:"2"}},[e._v("\n Input Description\n ")]),e._v(" "),n("v-stepper-content",{attrs:{step:"2"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("div",[n("color-select-form",{model:{value:e.color,callback:function(n){e.color=n},expression:"color"}})],1),e._v(" "),n("div",[n("v-text-field",{attrs:{type:"text",label:"Note Description","data-test":"update-note-description"},model:{value:e.description,callback:function(n){e.description=n},expression:"description"}})],1),e._v(" "),n("v-row",{directives:[{name:"show",rawName:"v-show",value:e.typeError,expression:"typeError"}]},[n("span",{staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.typeError)}})]),e._v(" "),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"update-note-cancel-btn"},on:{click:function(n){e.show=!e.show}}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"update-note-submit-btn",disabled:!!e.timeError||!!e.typeError},on:{click:function(n){return n.preventDefault(),e.updateNote.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)])],1)],1)],1)])],1)],1)},un=[];const dn={components:{ColorSelectForm:Me},props:{note:{type:Object,required:!0},value:Boolean},mixins:[he],data(){return{dialogStep:1,startDate:"",startTime:"",stopDate:"",stopTime:"",utcOrLocal:"loc",description:"",color:"",rules:{required:e=>!!e||"Required"}}},watch:{show:function(){this.updateValues()}},computed:{timeError:function(){new Date;const e=Date.parse(`${this.startDate}T${this.startTime}`),n=Date.parse(`${this.stopDate}T${this.stopTime}`);return e===n?"Invalid start, stop time. Notes must have different start and stop times.":e>n?"Invalid start time. Note start before stop.":null},typeError:function(){return this.description?null:"A description is required for a valid note."},show:{get(){return this.value},set(e){this.$emit("input",e)}}},methods:{updateValues:function(){this.dialogStep=1;const e=new Date(1e3*this.note.start),n=new Date(1e3*this.note.stop);this.startDate=(0,u.GP)(e,"yyyy-MM-dd"),this.startTime=(0,u.GP)(e,"HH:mm:ss"),this.stopDate=(0,u.GP)(n,"yyyy-MM-dd"),this.stopTime=(0,u.GP)(n,"HH:mm:ss"),this.color=this.note.color,this.description=this.note.description},updateNote:function(){const e=this.toIsoString(Date.parse(`${this.startDate}T${this.startTime}`)),n=this.toIsoString(Date.parse(`${this.stopDate}T${this.stopTime}`)),t=this.color,l=this.description;r.A.put(`/openc3-api/notes/${this.note.start}`,{data:{start:e,stop:n,color:t,description:l}}).then((e=>{const n=e.data.description.length>16?`${e.data.description.substring(0,16)}...`:e.data.description;this.$notify.normal({title:"Updated Note",body:`Note updated: (${e.data.start}): "${n}"`}),console.log(e.data),this.$emit("update",e.data)})),this.$emit("close"),this.show=!this.show,this.updateValues()}}},mn=dn;t(4430);var An=(0,f.A)(mn,cn,un,!1,null,"ffe4e8e8",null);const pn=An.exports,hn={components:{MetadataCreateDialog:Fe,ActivityUpdateDialog:nn,MetadataUpdateDialog:rn,NoteUpdateDialog:pn},mixins:[he,ve],props:{events:{type:Array,required:!0},utc:{type:Boolean,default:!0},value:{type:Boolean,required:!0},types:{type:Array},newMetadata:{type:Boolean,default:!1}},data(){return{search:"",localEvents:[...this.events],eventHeaders:[{text:"Start",value:"start",width:190},{text:"Stop",value:"end",width:190},{text:"Type",value:"type"},{text:"Data",value:"data"},{text:"Actions",value:"actions",sortable:!1}],editActivity:{start:new Date,end:new Date},editMetadata:{start:new Date,end:new Date},editNote:{start:new Date,end:new Date},editIndex:0,showActivityUpdate:!1,showMetadataUpdate:!1,showNoteUpdate:!1,showMetadataCreate:!1}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}}},created:function(){this.$on("delete",(e=>{let n=this.localEvents.findIndex((n=>n.type===e.type&&n.start===e.start));this.localEvents.splice(n,1)}))},methods:{close(){this.$emit("close"),this.show=!1},dataFormat(e){let n=e.name;switch(e.type){case"note":n=e.note.description;break;case"metadata":let t=[];Object.entries(e.metadata.metadata).forEach((([e,n])=>t.push(`${e} => ${n}`))),n=t.join(", ");break}return n},editAction(e){switch(this.editIndex=this.localEvents.findIndex((n=>n.type===e.type&&n.start===e.start)),e.type){case"activity":this.editActivity=e.activity,this.showActivityUpdate=!0;break;case"metadata":this.editMetadata=e.metadata,this.showMetadataUpdate=!0;break;case"note":this.editNote=e.note,this.showNoteUpdate=!0;break}},deleteAction(e){let n=this.localEvents.findIndex((n=>n.type===e.type&&n.start===e.start)),t=null,l=null;switch(e.type){case"activity":t=`timeline/${e.activity.name}/activity`,l=e.activity.start;break;case"metadata":t="metadata",l=e.metadata.start;break;case"note":t="notes",l=e.note.start;break}this.$dialog.confirm(`Are you sure you want to remove ${e.type} at ${e.start}`,{okText:"Delete",cancelText:"Cancel"}).then((e=>(this.localEvents.splice(n,1),r.A.delete(`/openc3-api/${t}/${l}`)))).then((n=>{this.$emit("update"),this.$notify.normal({title:`Deleted ${e.type}`,body:`Deleted ${e.type} at ${l}`})})).catch((e=>{}))},updateActivity(e){this.$emit("update"),this.localEvents[this.editIndex].activity=e},updateMetadata(e){this.$emit("update"),this.localEvents[this.editIndex].metadata=e},updateNote(e){this.$emit("update"),this.localEvents[this.editIndex].note=e},addMetadata(e){let n={name:"Metadata",start:new Date(1e3*e.start),end:new Date(1e3*e.start),color:e.color,type:e.type,timed:!0,metadata:e};this.localEvents.push(n)}}},vn=hn;var fn=(0,f.A)(vn,me,Ae,!1,null,null,null);const gn=fn.exports;function Cn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",n="037ef992500788b26e7aee52536081b64692de06",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:9,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:8,column:733}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:846},end:{line:1,column:860}},6:{start:{line:8,column:123},end:{line:8,column:488}},7:{start:{line:8,column:231},end:{line:8,column:418}},8:{start:{line:8,column:295},end:{line:8,column:326}},9:{start:{line:8,column:664},end:{line:8,column:684}},10:{start:{line:10,column:22},end:{line:10,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:9,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:830},end:{line:1,column:831}},loc:{start:{line:1,column:845},end:{line:1,column:861}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:8,column:104},end:{line:8,column:105}},loc:{start:{line:8,column:122},end:{line:8,column:489}},line:8},4:{name:"(anonymous_4)",decl:{start:{line:8,column:207},end:{line:8,column:208}},loc:{start:{line:8,column:230},end:{line:8,column:419}},line:8},5:{name:"(anonymous_5)",decl:{start:{line:8,column:278},end:{line:8,column:279}},loc:{start:{line:8,column:294},end:{line:8,column:327}},line:8},6:{name:"(anonymous_6)",decl:{start:{line:8,column:647},end:{line:8,column:648}},loc:{start:{line:8,column:663},end:{line:8,column:685}},line:8}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"037ef992500788b26e7aee52536081b64692de06"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Cn=function(){return o},o}Cn(),Cn().s[0]++;var bn=function(){Cn().f[0]++;var e=(Cn().s[1]++,this),n=(Cn().s[2]++,e._self._c);return Cn().s[3]++,n("v-dialog",{attrs:{width:"700"},model:{value:e.show,callback:function(n){Cn().f[1]++,Cn().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Overrides")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("v-btn",{attrs:{color:"primary","data-test":"overrides-dialog-clear-all"},on:{click:e.clearOverrides}},[e._v("\n Clear All Overrides\n ")]),e._v(" "),n("v-card-title",[e._v("\n Overrides\n "),n("v-spacer"),e._v(" "),n("v-text-field",{attrs:{label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){Cn().f[2]++,Cn().s[5]++,e.search=n},expression:"search"}})],1),e._v(" "),n("v-data-table",{attrs:{headers:e.headers,items:e.overrides,search:e.search,"footer-props":{itemsPerPageOptions:[100],showFirstLastPage:!0,firstIcon:"mdi-page-first",lastIcon:"mdi-page-last",prevIcon:"mdi-chevron-left",nextIcon:"mdi-chevron-right"},"calculate-widths":"","multi-sort":"",dense:""},scopedSlots:e._u([{key:"item.delete",fn:function({item:t}){return Cn().f[3]++,Cn().s[6]++,[n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:l,attrs:i}){return Cn().f[4]++,Cn().s[7]++,[n("v-icon",e._g(e._b({on:{click:function(n){return Cn().f[5]++,Cn().s[8]++,e.deleteOverride(t)}}},"v-icon",i,!1),l),[e._v("\n mdi-delete\n ")])]}}],null,!0)},[e._v(" "),n("span",[e._v("Delete Override")])])]}}])})],1)],1),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{attrs:{color:"primary","data-test":"overrides-dialog-ok"},on:{click:function(n){Cn().f[6]++,Cn().s[9]++,e.show=!e.show}}},[e._v("\n Ok\n ")])],1)],1)],1)},_n=(Cn().s[10]++,[]);function yn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",n="4ec8440d406d8e61da0265be46ff73bc24a39a33",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",statementMap:{0:{start:{line:13,column:4},end:{line:25,column:5}},1:{start:{line:28,column:4},end:{line:28,column:30}},2:{start:{line:29,column:4},end:{line:29,column:23}},3:{start:{line:34,column:8},end:{line:34,column:25}},4:{start:{line:37,column:8},end:{line:37,column:34}},5:{start:{line:43,column:6},end:{line:45,column:8}},6:{start:{line:44,column:8},end:{line:44,column:31}},7:{start:{line:48,column:20},end:{line:56,column:7}},8:{start:{line:50,column:39},end:{line:54,column:11}},9:{start:{line:57,column:6},end:{line:68,column:7}},10:{start:{line:58,column:8},end:{line:67,column:12}},11:{start:{line:66,column:12},end:{line:66,column:31}},12:{start:{line:71,column:6},end:{line:81,column:10}},13:{start:{line:79,column:22},end:{line:79,column:50}},14:{start:{line:80,column:10},end:{line:80,column:41}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:2},end:{line:12,column:3}},loc:{start:{line:12,column:9},end:{line:26,column:3}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:27,column:11},end:{line:27,column:12}},loc:{start:{line:27,column:23},end:{line:30,column:3}},line:27},2:{name:"(anonymous_2)",decl:{start:{line:33,column:6},end:{line:33,column:7}},loc:{start:{line:33,column:12},end:{line:35,column:7}},line:33},3:{name:"(anonymous_3)",decl:{start:{line:36,column:6},end:{line:36,column:7}},loc:{start:{line:36,column:17},end:{line:38,column:7}},line:36},4:{name:"(anonymous_4)",decl:{start:{line:42,column:18},end:{line:42,column:19}},loc:{start:{line:42,column:30},end:{line:46,column:5}},line:42},5:{name:"(anonymous_5)",decl:{start:{line:43,column:36},end:{line:43,column:37}},loc:{start:{line:43,column:48},end:{line:45,column:7}},line:43},6:{name:"(anonymous_6)",decl:{start:{line:47,column:20},end:{line:47,column:21}},loc:{start:{line:47,column:32},end:{line:69,column:5}},line:47},7:{name:"(anonymous_7)",decl:{start:{line:50,column:29},end:{line:50,column:30}},loc:{start:{line:50,column:39},end:{line:54,column:11}},line:50},8:{name:"(anonymous_8)",decl:{start:{line:65,column:16},end:{line:65,column:17}},loc:{start:{line:65,column:28},end:{line:67,column:11}},line:65},9:{name:"(anonymous_9)",decl:{start:{line:70,column:20},end:{line:70,column:21}},loc:{start:{line:70,column:36},end:{line:82,column:5}},line:70},10:{name:"(anonymous_10)",decl:{start:{line:78,column:14},end:{line:78,column:15}},loc:{start:{line:78,column:26},end:{line:81,column:9}},line:78}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},b:{},inputSourceMap:{version:3,sources:["OverridesDialog.vue"],names:[],mappings:";AAsGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"OverridesDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog v-model="show" width="700">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Overrides</span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-btn\n @click="clearOverrides"\n color="primary"\n data-test="overrides-dialog-clear-all"\n >\n Clear All Overrides\n </v-btn>\n\n <v-card-title>\n Overrides\n <v-spacer />\n <v-text-field\n v-model="search"\n label="Search"\n prepend-inner-icon="mdi-magnify"\n clearable\n outlined\n dense\n single-line\n hide-details\n />\n </v-card-title>\n <v-data-table\n :headers="headers"\n :items="overrides"\n :search="search"\n :footer-props="{\n itemsPerPageOptions: [100],\n showFirstLastPage: true,\n firstIcon: \'mdi-page-first\',\n lastIcon: \'mdi-page-last\',\n prevIcon: \'mdi-chevron-left\',\n nextIcon: \'mdi-chevron-right\',\n }"\n calculate-widths\n multi-sort\n dense\n >\n <template v-slot:item.delete="{ item }">\n <v-tooltip bottom>\n <template v-slot:activator="{ on, attrs }">\n <v-icon\n @click="deleteOverride(item)"\n v-bind="attrs"\n v-on="on"\n >\n mdi-delete\n </v-icon>\n </template>\n <span>Delete Override</span>\n </v-tooltip>\n </template>\n </v-data-table>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="show = !show"\n color="primary"\n data-test="overrides-dialog-ok"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\n\nexport default {\n components: {},\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n },\n data() {\n return {\n api: null,\n overrides: [],\n search: \'\',\n headers: [\n { text: \'Target\', value: \'target_name\' },\n { text: \'Packet\', value: \'packet_name\' },\n { text: \'Item\', value: \'item_name\' },\n { text: \'Type\', value: \'value_type\' },\n { text: \'Value\', value: \'value\' },\n { text: \'Delete\', value: \'delete\' },\n ],\n }\n },\n created: function () {\n this.api = new OpenC3Api()\n this.getOverrides()\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n getOverrides: function () {\n this.api.get_overrides().then((result) => {\n this.overrides = result\n })\n },\n clearOverrides: function () {\n const items = [\n ...new Map(\n this.overrides.map((item) => [\n // Create a key based on target, packet, item so we remove duplicates\n `${item.target_name}__${item.packet_name}__${item.item_name}`,\n item,\n ]),\n ).values(),\n ]\n for (let item of items) {\n this.api\n .normalize_tlm(\n item.target_name,\n item.packet_name,\n item.item_name,\n \'ALL\',\n )\n .then((result) => {\n this.overrides = []\n })\n }\n },\n deleteOverride: function (item) {\n this.api\n .normalize_tlm(\n item.target_name,\n item.packet_name,\n item.item_name,\n item.value_type,\n )\n .then((result) => {\n var index = this.overrides.indexOf(item)\n this.overrides.splice(index, 1)\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4ec8440d406d8e61da0265be46ff73bc24a39a33"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return yn=function(){return o},o}yn();const wn={components:{},props:{value:{type:Boolean,required:!0}},data(){return yn().f[0]++,yn().s[0]++,{api:null,overrides:[],search:"",headers:[{text:"Target",value:"target_name"},{text:"Packet",value:"packet_name"},{text:"Item",value:"item_name"},{text:"Type",value:"value_type"},{text:"Value",value:"value"},{text:"Delete",value:"delete"}]}},created:function(){yn().f[1]++,yn().s[1]++,this.api=new P.x,yn().s[2]++,this.getOverrides()},computed:{show:{get(){return yn().f[2]++,yn().s[3]++,this.value},set(e){yn().f[3]++,yn().s[4]++,this.$emit("input",e)}}},methods:{getOverrides:function(){yn().f[4]++,yn().s[5]++,this.api.get_overrides().then((e=>{yn().f[5]++,yn().s[6]++,this.overrides=e}))},clearOverrides:function(){yn().f[6]++;const e=(yn().s[7]++,[...new Map(this.overrides.map((e=>(yn().f[7]++,yn().s[8]++,[`${e.target_name}__${e.packet_name}__${e.item_name}`,e])))).values()]);yn().s[9]++;for(let n of e)yn().s[10]++,this.api.normalize_tlm(n.target_name,n.packet_name,n.item_name,"ALL").then((e=>{yn().f[8]++,yn().s[11]++,this.overrides=[]}))},deleteOverride:function(e){yn().f[9]++,yn().s[12]++,this.api.normalize_tlm(e.target_name,e.packet_name,e.item_name,e.value_type).then((n=>{yn().f[10]++;var t=(yn().s[13]++,this.overrides.indexOf(e));yn().s[14]++,this.overrides.splice(t,1)}))}}},xn=wn;var kn=(0,f.A)(xn,bn,_n,!1,null,null,null);const Sn=kn.exports;function Mn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",n="1e517431bbb2c84e58c9ff555a3a9cfed7442661",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:2206}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:1055},end:{line:1,column:1083}},6:{start:{line:1,column:1143},end:{line:1,column:1163}},7:{start:{line:1,column:1909},end:{line:1,column:2188}},8:{start:{line:1,column:2080},end:{line:1,column:2118}},9:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:153},end:{line:1,column:154}},loc:{start:{line:1,column:168},end:{line:1,column:182}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:1038},end:{line:1,column:1039}},loc:{start:{line:1,column:1054},end:{line:1,column:1084}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1127},end:{line:1,column:1128}},loc:{start:{line:1,column:1142},end:{line:1,column:1164}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1886},end:{line:1,column:1887}},loc:{start:{line:1,column:1908},end:{line:1,column:2189}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:2063},end:{line:1,column:2064}},loc:{start:{line:1,column:2079},end:{line:1,column:2119}},line:1}},branchMap:{0:{loc:{start:{line:1,column:451},end:{line:1,column:543}},type:"cond-expr",locations:[{start:{line:1,column:466},end:{line:1,column:534}},{start:{line:1,column:535},end:{line:1,column:543}}],line:1},1:{loc:{start:{line:1,column:661},end:{line:1,column:776}},type:"cond-expr",locations:[{start:{line:1,column:675},end:{line:1,column:767}},{start:{line:1,column:768},end:{line:1,column:776}}],line:1},2:{loc:{start:{line:1,column:797},end:{line:1,column:2198}},type:"cond-expr",locations:[{start:{line:1,column:822},end:{line:1,column:1615}},{start:{line:1,column:1616},end:{line:1,column:2198}}],line:1},3:{loc:{start:{line:1,column:2020},end:{line:1,column:2049}},type:"cond-expr",locations:[{start:{line:1,column:2035},end:{line:1,column:2044}},{start:{line:1,column:2047},end:{line:1,column:2049}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1e517431bbb2c84e58c9ff555a3a9cfed7442661"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Mn=function(){return o},o}Mn(),Mn().s[0]++;var En=function(){Mn().f[0]++;var e=(Mn().s[1]++,this),n=(Mn().s[2]++,e._self._c);return Mn().s[3]++,n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){Mn().f[1]++,Mn().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",{staticClass:"text",domProps:{textContent:e._s(e.title)}}),e._v(" "),n("v-spacer")],1),e._v(" "),n("div",{staticClass:"pa-2"},[n("v-card-text",{staticClass:"text"},[e.subtitle?(Mn().b[0][0]++,n("v-row",[n("v-card-subtitle",[e._v(e._s(e.subtitle))])],1)):(Mn().b[0][1]++,e._e()),e._v(" "),n("v-row",{staticClass:"mt-1"},[n("span",{domProps:{textContent:e._s(e.message)}})]),e._v(" "),e.details?(Mn().b[1][0]++,n("v-row",{staticClass:"mt-1"},[n("span",{domProps:{textContent:e._s(e.details)}})])):(Mn().b[1][1]++,e._e())],1)],1),e._v(" "),"combo"===e.layout?(Mn().b[2][0]++,n("div",[n("v-row",{staticClass:"ma-2"},[n("v-select",{staticClass:"ma-1",attrs:{label:"Select",color:"secondary","data-test":"prompt-select",items:e.buttons,multiple:!0===e.multiple},on:{change:function(n){Mn().f[2]++,Mn().s[5]++,e.selectOkDisabled=!1}},model:{value:e.selectedItem,callback:function(n){Mn().f[3]++,Mn().s[6]++,e.selectedItem=n},expression:"selectedItem"}})],1),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"ma-1",attrs:{outlined:"","data-test":"prompt-cancel"},on:{click:e.cancelHandler}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"ma-1",attrs:{color:"primary","data-test":"prompt-ok",disabled:e.selectOkDisabled},on:{click:e.submitHandler}},[e._v("\n Ok\n ")])],1)],1)):(Mn().b[2][1]++,n("div",[n("v-card-actions",{class:e.layoutClass},[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"ma-1",attrs:{outlined:"","data-test":"prompt-cancel"},on:{click:e.cancelHandler}},[e._v("\n Cancel\n ")]),e._v(" "),e._l(e.buttons,(function(t,l){return Mn().f[4]++,Mn().s[7]++,n("div",{key:l},[n("v-btn",{staticClass:"ma-1",attrs:{"data-test":`prompt-${t.text}`,color:t.value?(Mn().b[3][0]++,"primary"):(Mn().b[3][1]++,"")},on:{click:function(n){return Mn().f[5]++,Mn().s[8]++,e.submitWrapper(t.value)}}},[e._v("\n "+e._s(t.text)+"\n ")])],1)}))],2)],1))],1)],1)},Tn=(Mn().s[9]++,[]);function Rn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",n="4508ca9b7ce0e7cb4b39f3b6bcd861fe99800c27",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",statementMap:{0:{start:{line:22,column:21},end:{line:22,column:23}},1:{start:{line:36,column:4},end:{line:39,column:5}},2:{start:{line:44,column:8},end:{line:44,column:25}},3:{start:{line:47,column:8},end:{line:47,column:34}},4:{start:{line:51,column:19},end:{line:51,column:39}},5:{start:{line:52,column:6},end:{line:56,column:7}},6:{start:{line:53,column:8},end:{line:53,column:38}},7:{start:{line:55,column:8},end:{line:55,column:35}},8:{start:{line:61,column:6},end:{line:61,column:32}},9:{start:{line:62,column:6},end:{line:62,column:26}},10:{start:{line:65,column:6},end:{line:65,column:47}},11:{start:{line:68,column:6},end:{line:68,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:15},end:{line:22,column:16}},loc:{start:{line:22,column:21},end:{line:22,column:23}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:35,column:2},end:{line:35,column:3}},loc:{start:{line:35,column:9},end:{line:40,column:3}},line:35},2:{name:"(anonymous_2)",decl:{start:{line:43,column:6},end:{line:43,column:7}},loc:{start:{line:43,column:12},end:{line:45,column:7}},line:43},3:{name:"(anonymous_3)",decl:{start:{line:46,column:6},end:{line:46,column:7}},loc:{start:{line:46,column:17},end:{line:48,column:7}},line:46},4:{name:"(anonymous_4)",decl:{start:{line:50,column:4},end:{line:50,column:5}},loc:{start:{line:50,column:18},end:{line:57,column:5}},line:50},5:{name:"(anonymous_5)",decl:{start:{line:60,column:19},end:{line:60,column:20}},loc:{start:{line:60,column:37},end:{line:63,column:5}},line:60},6:{name:"(anonymous_6)",decl:{start:{line:64,column:19},end:{line:64,column:20}},loc:{start:{line:64,column:31},end:{line:66,column:5}},line:64},7:{name:"(anonymous_7)",decl:{start:{line:67,column:19},end:{line:67,column:20}},loc:{start:{line:67,column:31},end:{line:69,column:5}},line:67}},branchMap:{0:{loc:{start:{line:52,column:6},end:{line:56,column:7}},type:"if",locations:[{start:{line:52,column:6},end:{line:56,column:7}},{start:{line:54,column:13},end:{line:56,column:7}}],line:52}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0]},inputSourceMap:{version:3,sources:["PromptDialog.vue"],names:[],mappings:";AAyGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"PromptDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog persistent v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span class="text" v-text="title" />\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text class="text">\n <v-row v-if="subtitle">\n <v-card-subtitle>{{ subtitle }}</v-card-subtitle>\n </v-row>\n <v-row class="mt-1">\n <span v-text="message" />\n </v-row>\n <v-row v-if="details" class="mt-1">\n <span v-text="details" />\n </v-row>\n </v-card-text>\n </div>\n <div v-if="layout === \'combo\'">\n <v-row class="ma-2">\n <v-select\n @change="selectOkDisabled = false"\n v-model="selectedItem"\n label="Select"\n color="secondary"\n class="ma-1"\n data-test="prompt-select"\n :items="buttons"\n :multiple="multiple === true"\n />\n </v-row>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancelHandler"\n outlined\n data-test="prompt-cancel"\n class="ma-1"\n >\n Cancel\n </v-btn>\n <v-btn\n @click="submitHandler"\n class="ma-1"\n color="primary"\n data-test="prompt-ok"\n :disabled="selectOkDisabled"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </div>\n <div v-else>\n <v-card-actions :class="layoutClass">\n <v-spacer />\n <v-btn\n @click="cancelHandler"\n outlined\n data-test="prompt-cancel"\n class="ma-1"\n >\n Cancel\n </v-btn>\n <div v-for="(button, index) in buttons" :key="index">\n <v-btn\n @click="submitWrapper(button.value)"\n class="ma-1"\n :data-test="`prompt-${button.text}`"\n :color="button.value ? \'primary\' : \'\'"\n >\n {{ button.text }}\n </v-btn>\n </div>\n </v-card-actions>\n </div>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n title: {\n type: String,\n default: \'Prompt Dialog\',\n },\n subtitle: {\n type: String,\n default: \'\',\n },\n message: {\n type: String,\n required: true,\n },\n details: {\n type: String,\n default: \'\',\n },\n buttons: {\n type: Array,\n default: () => [],\n },\n layout: {\n type: String,\n default: \'horizontal\', // Also \'vertical\' or \'combo\' when means ComboBox\n },\n multiple: {\n type: Boolean,\n default: false,\n required: false,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n selectOkDisabled: true,\n selectedItem: null,\n }\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n layoutClass() {\n let layout = \'d-flex align-start\'\n if (this.layout === \'vertical\') {\n return `${layout} flex-column`\n } else {\n return `${layout} flex-row`\n }\n },\n },\n methods: {\n submitWrapper: function (output) {\n this.selectedItem = output\n this.submitHandler()\n },\n submitHandler: function () {\n this.$emit(\'response\', this.selectedItem)\n },\n cancelHandler: function () {\n this.$emit(\'response\', \'Cancel\')\n },\n },\n}\n<\/script>\n\n<style scoped>\n.v-card__subtitle {\n padding: 0;\n padding-bottom: 10px;\n}\n.text {\n font-size: 1rem;\n white-space: pre-line;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4508ca9b7ce0e7cb4b39f3b6bcd861fe99800c27"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Rn=function(){return o},o}Rn();const In={props:{title:{type:String,default:"Prompt Dialog"},subtitle:{type:String,default:""},message:{type:String,required:!0},details:{type:String,default:""},buttons:{type:Array,default:()=>(Rn().f[0]++,Rn().s[0]++,[])},layout:{type:String,default:"horizontal"},multiple:{type:Boolean,default:!1,required:!1},value:Boolean},data(){return Rn().f[1]++,Rn().s[1]++,{selectOkDisabled:!0,selectedItem:null}},computed:{show:{get(){return Rn().f[2]++,Rn().s[2]++,this.value},set(e){Rn().f[3]++,Rn().s[3]++,this.$emit("input",e)}},layoutClass(){Rn().f[4]++;let e=(Rn().s[4]++,"d-flex align-start");return Rn().s[5]++,"vertical"===this.layout?(Rn().b[0][0]++,Rn().s[6]++,`${e} flex-column`):(Rn().b[0][1]++,Rn().s[7]++,`${e} flex-row`)}},methods:{submitWrapper:function(e){Rn().f[5]++,Rn().s[8]++,this.selectedItem=e,Rn().s[9]++,this.submitHandler()},submitHandler:function(){Rn().f[6]++,Rn().s[10]++,this.$emit("response",this.selectedItem)},cancelHandler:function(){Rn().f[7]++,Rn().s[11]++,this.$emit("response","Cancel")}}},Dn=In;t(9876);var $n=(0,f.A)(Dn,En,Tn,!1,null,"3ca9666e",null);const On=$n.exports;function Nn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",n="34f6b0f11a778dc4333ca518458f3f56907e38f0",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:927}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:858},end:{line:1,column:878}},6:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:153},end:{line:1,column:154}},loc:{start:{line:1,column:168},end:{line:1,column:182}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:841},end:{line:1,column:842}},loc:{start:{line:1,column:857},end:{line:1,column:879}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"34f6b0f11a778dc4333ca518458f3f56907e38f0"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Nn=function(){return o},o}Nn(),Nn().s[0]++;var Ln=function(){Nn().f[0]++;var e=(Nn().s[1]++,this),n=(Nn().s[2]++,e._self._c);return Nn().s[3]++,n("v-dialog",{attrs:{scrollable:"",width:"800"},model:{value:e.show,callback:function(n){Nn().f[1]++,Nn().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v(" Script Results ")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("div",{staticClass:"pa-2"},[n("v-card-text",{staticStyle:{width:"100%","max-height":"80vh",overflow:"auto"}},[n("v-textarea",{attrs:{readonly:"","hide-details":"",dense:"","auto-grow":"",value:e.text}})],1)],1),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.downloadResults}},[e._v(" Download ")]),e._v(" "),n("v-btn",{ref:"okButton",staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(n){Nn().f[2]++,Nn().s[5]++,e.show=!e.show}}},[e._v("\n Ok\n ")])],1)],1)],1)},Fn=(Nn().s[6]++,[]);function Pn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",n="ccc307bf5209ceb8f0acad541880eeeb6209b127",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",statementMap:{0:{start:{line:19,column:8},end:{line:19,column:25}},1:{start:{line:22,column:8},end:{line:22,column:34}},2:{start:{line:28,column:4},end:{line:30,column:6}},3:{start:{line:29,column:6},end:{line:29,column:37}},4:{start:{line:34,column:19},end:{line:36,column:8}},5:{start:{line:38,column:19},end:{line:38,column:46}},6:{start:{line:39,column:6},end:{line:39,column:43}},7:{start:{line:40,column:6},end:{line:43,column:7}},8:{start:{line:44,column:6},end:{line:44,column:18}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:18,column:6},end:{line:18,column:7}},loc:{start:{line:18,column:12},end:{line:20,column:7}},line:18},1:{name:"(anonymous_1)",decl:{start:{line:21,column:6},end:{line:21,column:7}},loc:{start:{line:21,column:17},end:{line:23,column:7}},line:21},2:{name:"(anonymous_2)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:12},end:{line:31,column:3}},line:26},3:{name:"(anonymous_3)",decl:{start:{line:28,column:15},end:{line:28,column:16}},loc:{start:{line:28,column:21},end:{line:30,column:5}},line:28},4:{name:"(anonymous_4)",decl:{start:{line:33,column:4},end:{line:33,column:5}},loc:{start:{line:33,column:22},end:{line:45,column:5}},line:33}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},f:{0:0,1:0,2:0,3:0,4:0},b:{},inputSourceMap:{version:3,sources:["ResultsDialog.vue"],names:[],mappings:";AAoDA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ResultsDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2024, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog v-model="show" scrollable width="800">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Script Results </span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text style="width: 100%; max-height: 80vh; overflow: auto">\n <v-textarea readonly hide-details dense auto-grow :value="text" />\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn class="mx-2" outlined @click="downloadResults"> Download </v-btn>\n <v-btn\n class="mx-2"\n color="primary"\n @click="show = !show"\n ref="okButton"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport { format } from \'date-fns\'\n\nexport default {\n components: {},\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n text: {\n type: String,\n required: true,\n },\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n mounted() {\n // Focus the OK button so it\'s easy to hit Enter to close\n setTimeout(() => {\n this.$refs.okButton.$el.focus()\n })\n },\n methods: {\n downloadResults() {\n const blob = new Blob([this.text], {\n type: \'text/plain\',\n })\n // Make a link and then \'click\' on it to start the download\n const link = document.createElement(\'a\')\n link.href = URL.createObjectURL(blob)\n link.setAttribute(\n \'download\',\n format(Date.now(), \'yyyy_MM_dd_HH_mm_ss\') + \'_suite_results.txt\',\n )\n link.click()\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ccc307bf5209ceb8f0acad541880eeeb6209b127"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Pn=function(){return o},o}Pn();const Hn={components:{},props:{value:{type:Boolean,required:!0},text:{type:String,required:!0}},computed:{show:{get(){return Pn().f[0]++,Pn().s[0]++,this.value},set(e){Pn().f[1]++,Pn().s[1]++,this.$emit("input",e)}}},mounted(){Pn().f[2]++,Pn().s[2]++,setTimeout((()=>{Pn().f[3]++,Pn().s[3]++,this.$refs.okButton.$el.focus()}))},methods:{downloadResults(){Pn().f[4]++;const e=(Pn().s[4]++,new Blob([this.text],{type:"text/plain"})),n=(Pn().s[5]++,document.createElement("a"));Pn().s[6]++,n.href=URL.createObjectURL(e),Pn().s[7]++,n.setAttribute("download",(0,u.GP)(Date.now(),"yyyy_MM_dd_HH_mm_ss")+"_suite_results.txt"),Pn().s[8]++,n.click()}}},Bn=Hn;var Vn=(0,f.A)(Bn,Ln,Fn,!1,null,null,null);const Gn=Vn.exports;function Wn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",n="1398cbcdc4d6210a6543178e4e2c1b9b35be632a",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:955}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:470},end:{line:1,column:486}},6:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:454},end:{line:1,column:455}},loc:{start:{line:1,column:469},end:{line:1,column:487}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1398cbcdc4d6210a6543178e4e2c1b9b35be632a"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Wn=function(){return o},o}Wn(),Wn().s[0]++;var Un=function(){Wn().f[0]++;var e=(Wn().s[1]++,this),n=(Wn().s[2]++,e._self._c);return Wn().s[3]++,n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){Wn().f[1]++,Wn().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Script Environment Variables")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("environment-chooser",{model:{value:e.selected,callback:function(n){Wn().f[2]++,Wn().s[5]++,e.selected=n},expression:"selected"}})],1)],1),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"environment-dialog-cancel"},on:{click:e.cancel}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"environment-dialog-save",disabled:!!e.inputError},on:{click:e.updateEnvironment}},[e._v("\n Save\n ")])],1)],1)],1)},zn=(Wn().s[6]++,[]);function qn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",n="65e119e98de479afb4b1ef5c4afa2ff2f029eeb0",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",statementMap:{0:{start:{line:19,column:4},end:{line:21,column:5}},1:{start:{line:24,column:4},end:{line:24,column:26}},2:{start:{line:29,column:8},end:{line:29,column:25}},3:{start:{line:32,column:8},end:{line:32,column:34}},4:{start:{line:38,column:6},end:{line:38,column:48}},5:{start:{line:41,column:6},end:{line:41,column:46}},6:{start:{line:42,column:6},end:{line:42,column:28}},7:{start:{line:45,column:6},end:{line:45,column:28}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:18,column:2},end:{line:18,column:3}},loc:{start:{line:18,column:9},end:{line:22,column:3}},line:18},1:{name:"(anonymous_1)",decl:{start:{line:23,column:11},end:{line:23,column:12}},loc:{start:{line:23,column:23},end:{line:25,column:3}},line:23},2:{name:"(anonymous_2)",decl:{start:{line:28,column:6},end:{line:28,column:7}},loc:{start:{line:28,column:12},end:{line:30,column:7}},line:28},3:{name:"(anonymous_3)",decl:{start:{line:31,column:6},end:{line:31,column:7}},loc:{start:{line:31,column:17},end:{line:33,column:7}},line:31},4:{name:"(anonymous_4)",decl:{start:{line:37,column:21},end:{line:37,column:22}},loc:{start:{line:37,column:33},end:{line:39,column:5}},line:37},5:{name:"(anonymous_5)",decl:{start:{line:40,column:23},end:{line:40,column:24}},loc:{start:{line:40,column:35},end:{line:43,column:5}},line:40},6:{name:"(anonymous_6)",decl:{start:{line:44,column:12},end:{line:44,column:13}},loc:{start:{line:44,column:24},end:{line:46,column:5}},line:44}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{},inputSourceMap:{version:3,sources:["ScriptEnvironmentDialog.vue"],names:[],mappings:";AA4DA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ScriptEnvironmentDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Script Environment Variables</span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <environment-chooser v-model="selected" />\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancel"\n class="mx-2"\n outlined\n data-test="environment-dialog-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click="updateEnvironment"\n class="mx-2"\n color="primary"\n data-test="environment-dialog-save"\n :disabled="!!inputError"\n >\n Save\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport EnvironmentChooser from \'@openc3/tool-common/src/components/EnvironmentChooser\'\n\nexport default {\n components: {\n EnvironmentChooser,\n },\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n inputEnvironment: {\n type: Array,\n required: true,\n },\n },\n data() {\n return {\n selected: [],\n }\n },\n mounted: function () {\n this.loadEnvironment()\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n loadEnvironment: function () {\n this.selected = [...this.inputEnvironment]\n },\n updateEnvironment: function () {\n this.$emit(\'environment\', this.selected)\n this.show = !this.show\n },\n cancel: function () {\n this.show = !this.show\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"65e119e98de479afb4b1ef5c4afa2ff2f029eeb0"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return qn=function(){return o},o}qn();const jn={components:{EnvironmentChooser:ze},props:{value:{type:Boolean,required:!0},inputEnvironment:{type:Array,required:!0}},data(){return qn().f[0]++,qn().s[0]++,{selected:[]}},mounted:function(){qn().f[1]++,qn().s[1]++,this.loadEnvironment()},computed:{show:{get(){return qn().f[2]++,qn().s[2]++,this.value},set(e){qn().f[3]++,qn().s[3]++,this.$emit("input",e)}}},methods:{loadEnvironment:function(){qn().f[4]++,qn().s[4]++,this.selected=[...this.inputEnvironment]},updateEnvironment:function(){qn().f[5]++,qn().s[5]++,this.$emit("environment",this.selected),qn().s[6]++,this.show=!this.show},cancel:function(){qn().f[6]++,qn().s[7]++,this.show=!this.show}}},Yn=jn;var Kn=(0,f.A)(Yn,Un,zn,!1,null,null,null);const Xn=Kn.exports;function Jn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",n="ddd07b5818450050dfe09c5b55a547855711d420",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",statementMap:{0:{start:{line:1,column:13},end:{line:8,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:7,column:146}},4:{start:{line:1,column:448},end:{line:1,column:463}},5:{start:{line:1,column:688},end:{line:1,column:703}},6:{start:{line:1,column:1107},end:{line:1,column:1120}},7:{start:{line:1,column:1338},end:{line:1,column:1425}},8:{start:{line:1,column:1658},end:{line:1,column:1745}},9:{start:{line:1,column:1965},end:{line:1,column:2055}},10:{start:{line:1,column:2471},end:{line:1,column:2486}},11:{start:{line:1,column:2705},end:{line:1,column:2720}},12:{start:{line:1,column:3124},end:{line:1,column:3137}},13:{start:{line:1,column:3355},end:{line:1,column:3460}},14:{start:{line:1,column:3693},end:{line:1,column:3798}},15:{start:{line:1,column:4018},end:{line:1,column:4126}},16:{start:{line:1,column:4533},end:{line:1,column:4548}},17:{start:{line:1,column:4850},end:{line:1,column:4865}},18:{start:{line:1,column:5274},end:{line:1,column:5288}},19:{start:{line:1,column:5489},end:{line:7,column:18}},20:{start:{line:9,column:22},end:{line:9,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:8,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:432},end:{line:1,column:433}},loc:{start:{line:1,column:447},end:{line:1,column:464}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:672},end:{line:1,column:673}},loc:{start:{line:1,column:687},end:{line:1,column:704}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1091},end:{line:1,column:1092}},loc:{start:{line:1,column:1106},end:{line:1,column:1121}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1321},end:{line:1,column:1322}},loc:{start:{line:1,column:1337},end:{line:1,column:1426}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1641},end:{line:1,column:1642}},loc:{start:{line:1,column:1657},end:{line:1,column:1746}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1948},end:{line:1,column:1949}},loc:{start:{line:1,column:1964},end:{line:1,column:2056}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2455},end:{line:1,column:2456}},loc:{start:{line:1,column:2470},end:{line:1,column:2487}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2689},end:{line:1,column:2690}},loc:{start:{line:1,column:2704},end:{line:1,column:2721}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:3108},end:{line:1,column:3109}},loc:{start:{line:1,column:3123},end:{line:1,column:3138}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:3338},end:{line:1,column:3339}},loc:{start:{line:1,column:3354},end:{line:1,column:3461}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:3676},end:{line:1,column:3677}},loc:{start:{line:1,column:3692},end:{line:1,column:3799}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:4001},end:{line:1,column:4002}},loc:{start:{line:1,column:4017},end:{line:1,column:4127}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:4517},end:{line:1,column:4518}},loc:{start:{line:1,column:4532},end:{line:1,column:4549}},line:1},14:{name:"(anonymous_14)",decl:{start:{line:1,column:4834},end:{line:1,column:4835}},loc:{start:{line:1,column:4849},end:{line:1,column:4866}},line:1},15:{name:"(anonymous_15)",decl:{start:{line:1,column:5258},end:{line:1,column:5259}},loc:{start:{line:1,column:5273},end:{line:1,column:5289}},line:1},16:{name:"(anonymous_16)",decl:{start:{line:1,column:5472},end:{line:1,column:5473}},loc:{start:{line:1,column:5488},end:{line:7,column:19}},line:1}},branchMap:{0:{loc:{start:{line:1,column:1583},end:{line:1,column:1627}},type:"binary-expr",locations:[{start:{line:1,column:1583},end:{line:1,column:1601}},{start:{line:1,column:1605},end:{line:1,column:1627}}],line:1},1:{loc:{start:{line:1,column:1887},end:{line:1,column:1934}},type:"binary-expr",locations:[{start:{line:1,column:1887},end:{line:1,column:1905}},{start:{line:1,column:1909},end:{line:1,column:1934}}],line:1},2:{loc:{start:{line:1,column:3618},end:{line:1,column:3662}},type:"binary-expr",locations:[{start:{line:1,column:3618},end:{line:1,column:3636}},{start:{line:1,column:3640},end:{line:1,column:3662}}],line:1},3:{loc:{start:{line:1,column:3940},end:{line:1,column:3987}},type:"binary-expr",locations:[{start:{line:1,column:3940},end:{line:1,column:3958}},{start:{line:1,column:3962},end:{line:1,column:3987}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ddd07b5818450050dfe09c5b55a547855711d420"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Jn=function(){return o},o}Jn(),Jn().s[0]++;var Zn=function(){Jn().f[0]++;var e=(Jn().s[1]++,this),n=(Jn().s[2]++,e._self._c);return Jn().s[3]++,n("div",[n("div",{attrs:{id:"tr-container"}},[n("v-row",{attrs:{"no-gutters":"",align:"center"}},[n("v-col",{attrs:{cols:"4"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Pause on Error",value:"pauseOnError","hide-details":"","data-test":"pause-on-error"},model:{value:e.options,callback:function(n){Jn().f[1]++,Jn().s[4]++,e.options=n},expression:"options"}})],1),e._v(" "),n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Manual",value:"manual","hide-details":"","data-test":"manual"},model:{value:e.options,callback:function(n){Jn().f[2]++,Jn().s[5]++,e.options=n},expression:"options"}})],1)],1)],1),e._v(" "),n("v-col",{attrs:{cols:"8"}},[n("v-row",{attrs:{"no-gutters":"",justify:"end"}},[n("v-col",{attrs:{cols:"5"}},[n("v-select",{staticClass:"mb-2 mr-2",attrs:{label:"Suite:","hide-details":"",dense:"",outlined:"",items:e.suites,"data-test":"select-suite"},on:{change:e.suiteChanged},model:{value:e.suite,callback:function(n){Jn().f[3]++,Jn().s[6]++,e.suite=n},expression:"suite"}})],1),e._v(" "),n("v-col",{attrs:{cols:"auto"}},[n("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:e.disableButtons,"data-test":"start-suite"},on:{click:function(n){return Jn().f[4]++,Jn().s[7]++,e.$emit("button",{method:"start",suite:e.suite,options:e.options})}}},[e._v("\n Start\n ")]),e._v(" "),n("v-btn",{staticClass:"mr-2",attrs:{color:"primary","data-test":"setup-suite",disabled:(Jn().b[0][0]++,e.disableButtons||(Jn().b[0][1]++,!e.setupSuiteEnabled))},on:{click:function(n){return Jn().f[5]++,Jn().s[8]++,e.$emit("button",{method:"setup",suite:e.suite,options:e.options})}}},[e._v("\n Setup\n ")]),e._v(" "),n("v-btn",{attrs:{color:"primary","data-test":"teardown-suite",disabled:(Jn().b[1][0]++,e.disableButtons||(Jn().b[1][1]++,!e.teardownSuiteEnabled))},on:{click:function(n){return Jn().f[6]++,Jn().s[9]++,e.$emit("button",{method:"teardown",suite:e.suite,options:e.options})}}},[e._v("\n Teardown\n ")])],1)],1)],1)],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"4"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Continue after Error",value:"continueAfterError","hide-details":"","data-test":"continue-after-error"},model:{value:e.options,callback:function(n){Jn().f[7]++,Jn().s[10]++,e.options=n},expression:"options"}})],1),e._v(" "),n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Loop",value:"loop","hide-details":"","data-test":"loop"},model:{value:e.options,callback:function(n){Jn().f[8]++,Jn().s[11]++,e.options=n},expression:"options"}})],1)],1)],1),e._v(" "),n("v-col",{attrs:{cols:"8"}},[n("v-row",{attrs:{"no-gutters":"",justify:"end"}},[n("v-col",{attrs:{cols:"5"}},[n("v-select",{staticClass:"mb-2 mr-2",attrs:{label:"Group:","hide-details":"",dense:"",outlined:"",items:e.groups,"data-test":"select-group"},on:{change:e.groupChanged},model:{value:e.group,callback:function(n){Jn().f[9]++,Jn().s[12]++,e.group=n},expression:"group"}})],1),e._v(" "),n("v-col",{attrs:{cols:"auto"}},[n("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:e.disableButtons,"data-test":"start-group"},on:{click:function(n){return Jn().f[10]++,Jn().s[13]++,e.$emit("button",{method:"start",suite:e.suite,group:e.group,options:e.options})}}},[e._v("\n Start\n ")]),e._v(" "),n("v-btn",{staticClass:"mr-2",attrs:{color:"primary","data-test":"setup-group",disabled:(Jn().b[2][0]++,e.disableButtons||(Jn().b[2][1]++,!e.setupGroupEnabled))},on:{click:function(n){return Jn().f[11]++,Jn().s[14]++,e.$emit("button",{method:"setup",suite:e.suite,group:e.group,options:e.options})}}},[e._v("\n Setup\n ")]),e._v(" "),n("v-btn",{attrs:{color:"primary","data-test":"teardown-group",disabled:(Jn().b[3][0]++,e.disableButtons||(Jn().b[3][1]++,!e.teardownGroupEnabled))},on:{click:function(n){return Jn().f[12]++,Jn().s[15]++,e.$emit("button",{method:"teardown",suite:e.suite,group:e.group,options:e.options})}}},[e._v("\n Teardown\n ")])],1)],1)],1)],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"4"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Abort after Error",value:"abortAfterError","hide-details":"","data-test":"abort-after-error"},model:{value:e.options,callback:function(n){Jn().f[13]++,Jn().s[16]++,e.options=n},expression:"options"}})],1),e._v(" "),n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{disabled:!e.options.includes("loop"),label:"Break Loop on Error",value:"breakLoopOnError","hide-details":"","data-test":"break-loop-on-error"},model:{value:e.options,callback:function(n){Jn().f[14]++,Jn().s[17]++,e.options=n},expression:"options"}})],1)],1)],1),e._v(" "),n("v-col",{attrs:{cols:"8"}},[n("v-row",{attrs:{"no-gutters":"",justify:"end"}},[n("v-col",{attrs:{cols:"5"}},[n("v-select",{staticClass:"mb-2 mr-2",attrs:{label:"Script:","hide-details":"",dense:"",outlined:"",items:e.scripts,"data-test":"select-script"},on:{change:e.scriptChanged},model:{value:e.script,callback:function(n){Jn().f[15]++,Jn().s[18]++,e.script=n},expression:"script"}})],1),e._v(" "),n("v-col",{attrs:{cols:"auto"}},[n("v-btn",{attrs:{color:"primary",disabled:e.disableButtons,"data-test":"start-script"},on:{click:function(n){return Jn().f[16]++,Jn().s[19]++,e.$emit("button",{method:"start",suite:e.suite,group:e.group,script:e.script,options:e.options})}}},[e._v("\n Start\n ")]),e._v(" "),n("div",{staticStyle:{width:"296px"}})],1)],1)],1)],1)],1)])},Qn=(Jn().s[20]++,[]);function et(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",n="9508f2e457c4d0f3cbf1c50cca1a3c280d9157ca",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",statementMap:{0:{start:{line:14,column:4},end:{line:22,column:5}},1:{start:{line:26,column:6},end:{line:30,column:7}},2:{start:{line:27,column:8},end:{line:27,column:19}},3:{start:{line:29,column:8},end:{line:29,column:20}},4:{start:{line:33,column:6},end:{line:37,column:7}},5:{start:{line:34,column:8},end:{line:34,column:19}},6:{start:{line:36,column:8},end:{line:36,column:20}},7:{start:{line:40,column:6},end:{line:48,column:7}},8:{start:{line:45,column:8},end:{line:45,column:19}},9:{start:{line:47,column:8},end:{line:47,column:20}},10:{start:{line:51,column:6},end:{line:59,column:7}},11:{start:{line:56,column:8},end:{line:56,column:19}},12:{start:{line:58,column:8},end:{line:58,column:20}},13:{start:{line:63,column:4},end:{line:63,column:21}},14:{start:{line:69,column:8},end:{line:69,column:29}},15:{start:{line:76,column:6},end:{line:76,column:46}},16:{start:{line:77,column:6},end:{line:85,column:7}},17:{start:{line:81,column:8},end:{line:81,column:25}},18:{start:{line:83,column:8},end:{line:83,column:67}},19:{start:{line:84,column:8},end:{line:84,column:75}},20:{start:{line:88,column:6},end:{line:88,column:46}},21:{start:{line:89,column:6},end:{line:89,column:39}},22:{start:{line:92,column:6},end:{line:92,column:24}},23:{start:{line:93,column:6},end:{line:93,column:21}},24:{start:{line:94,column:6},end:{line:94,column:22}},25:{start:{line:95,column:6},end:{line:95,column:60}},26:{start:{line:97,column:6},end:{line:97,column:39}},27:{start:{line:100,column:6},end:{line:100,column:24}},28:{start:{line:101,column:6},end:{line:101,column:22}},29:{start:{line:102,column:6},end:{line:102,column:68}},30:{start:{line:104,column:6},end:{line:104,column:41}},31:{start:{line:107,column:6},end:{line:107,column:25}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:13,column:2},end:{line:13,column:3}},loc:{start:{line:13,column:9},end:{line:23,column:3}},line:13},1:{name:"(anonymous_1)",decl:{start:{line:25,column:4},end:{line:25,column:5}},loc:{start:{line:25,column:24},end:{line:31,column:5}},line:25},2:{name:"(anonymous_2)",decl:{start:{line:32,column:4},end:{line:32,column:5}},loc:{start:{line:32,column:27},end:{line:38,column:5}},line:32},3:{name:"(anonymous_3)",decl:{start:{line:39,column:4},end:{line:39,column:5}},loc:{start:{line:39,column:24},end:{line:49,column:5}},line:39},4:{name:"(anonymous_4)",decl:{start:{line:50,column:4},end:{line:50,column:5}},loc:{start:{line:50,column:27},end:{line:60,column:5}},line:50},5:{name:"(anonymous_5)",decl:{start:{line:62,column:2},end:{line:62,column:3}},loc:{start:{line:62,column:12},end:{line:64,column:3}},line:62},6:{name:"(anonymous_6)",decl:{start:{line:68,column:15},end:{line:68,column:16}},loc:{start:{line:68,column:41},end:{line:70,column:7}},line:68},7:{name:"(anonymous_7)",decl:{start:{line:75,column:4},end:{line:75,column:5}},loc:{start:{line:75,column:21},end:{line:86,column:5}},line:75},8:{name:"(anonymous_8)",decl:{start:{line:87,column:4},end:{line:87,column:5}},loc:{start:{line:87,column:17},end:{line:90,column:5}},line:87},9:{name:"(anonymous_9)",decl:{start:{line:91,column:4},end:{line:91,column:5}},loc:{start:{line:91,column:24},end:{line:98,column:5}},line:91},10:{name:"(anonymous_10)",decl:{start:{line:99,column:4},end:{line:99,column:5}},loc:{start:{line:99,column:24},end:{line:105,column:5}},line:99},11:{name:"(anonymous_11)",decl:{start:{line:106,column:4},end:{line:106,column:5}},loc:{start:{line:106,column:25},end:{line:108,column:5}},line:106}},branchMap:{0:{loc:{start:{line:26,column:6},end:{line:30,column:7}},type:"if",locations:[{start:{line:26,column:6},end:{line:30,column:7}},{start:{line:28,column:13},end:{line:30,column:7}}],line:26},1:{loc:{start:{line:26,column:10},end:{line:26,column:55}},type:"binary-expr",locations:[{start:{line:26,column:10},end:{line:26,column:20}},{start:{line:26,column:24},end:{line:26,column:55}}],line:26},2:{loc:{start:{line:33,column:6},end:{line:37,column:7}},type:"if",locations:[{start:{line:33,column:6},end:{line:37,column:7}},{start:{line:35,column:13},end:{line:37,column:7}}],line:33},3:{loc:{start:{line:33,column:10},end:{line:33,column:58}},type:"binary-expr",locations:[{start:{line:33,column:10},end:{line:33,column:20}},{start:{line:33,column:24},end:{line:33,column:58}}],line:33},4:{loc:{start:{line:40,column:6},end:{line:48,column:7}},type:"if",locations:[{start:{line:40,column:6},end:{line:48,column:7}},{start:{line:46,column:13},end:{line:48,column:7}}],line:40},5:{loc:{start:{line:41,column:8},end:{line:43,column:58}},type:"binary-expr",locations:[{start:{line:41,column:8},end:{line:41,column:18}},{start:{line:42,column:8},end:{line:42,column:18}},{start:{line:43,column:8},end:{line:43,column:58}}],line:41},6:{loc:{start:{line:51,column:6},end:{line:59,column:7}},type:"if",locations:[{start:{line:51,column:6},end:{line:59,column:7}},{start:{line:57,column:13},end:{line:59,column:7}}],line:51},7:{loc:{start:{line:52,column:8},end:{line:54,column:61}},type:"binary-expr",locations:[{start:{line:52,column:8},end:{line:52,column:18}},{start:{line:53,column:8},end:{line:53,column:18}},{start:{line:54,column:8},end:{line:54,column:61}}],line:52},8:{loc:{start:{line:77,column:6},end:{line:85,column:7}},type:"if",locations:[{start:{line:77,column:6},end:{line:85,column:7}},{start:{line:82,column:13},end:{line:85,column:7}}],line:77},9:{loc:{start:{line:78,column:8},end:{line:79,column:65}},type:"binary-expr",locations:[{start:{line:78,column:8},end:{line:78,column:46}},{start:{line:79,column:8},end:{line:79,column:65}}],line:78}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0,0],6:[0,0],7:[0,0,0],8:[0,0],9:[0,0]},inputSourceMap:{version:3,sources:["SuiteRunner.vue"],names:[],mappings:";AA6OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"SuiteRunner.vue",sourceRoot:"src/tools/ScriptRunner",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2023, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <div id="tr-container">\n <v-row no-gutters align="center">\n <v-col cols="4">\n <v-row no-gutters>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Pause on Error"\n value="pauseOnError"\n hide-details\n data-test="pause-on-error"\n />\n </v-col>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Manual"\n value="manual"\n hide-details\n data-test="manual"\n />\n </v-col>\n </v-row>\n </v-col>\n <v-col cols="8">\n <v-row no-gutters justify="end">\n <v-col cols="5">\n <v-select\n label="Suite:"\n class="mb-2 mr-2"\n hide-details\n dense\n outlined\n @change="suiteChanged"\n :items="suites"\n v-model="suite"\n data-test="select-suite"\n />\n </v-col>\n <v-col cols="auto">\n <v-btn\n color="primary"\n class="mr-2"\n :disabled="disableButtons"\n @click="$emit(\'button\', { method: \'start\', suite, options })"\n data-test="start-suite"\n >\n Start\n </v-btn>\n <v-btn\n color="primary"\n class="mr-2"\n @click="$emit(\'button\', { method: \'setup\', suite, options })"\n data-test="setup-suite"\n :disabled="disableButtons || !setupSuiteEnabled"\n >\n Setup\n </v-btn>\n <v-btn\n color="primary"\n @click="$emit(\'button\', { method: \'teardown\', suite, options })"\n data-test="teardown-suite"\n :disabled="disableButtons || !teardownSuiteEnabled"\n >\n Teardown\n </v-btn>\n </v-col>\n </v-row>\n </v-col>\n </v-row>\n <v-row no-gutters>\n <v-col cols="4">\n <v-row no-gutters>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Continue after Error"\n value="continueAfterError"\n hide-details\n data-test="continue-after-error"\n />\n </v-col>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Loop"\n value="loop"\n hide-details\n data-test="loop"\n />\n </v-col>\n </v-row>\n </v-col>\n <v-col cols="8">\n <v-row no-gutters justify="end">\n <v-col cols="5">\n <v-select\n label="Group:"\n class="mb-2 mr-2"\n hide-details\n dense\n outlined\n @change="groupChanged"\n :items="groups"\n v-model="group"\n data-test="select-group"\n />\n </v-col>\n <v-col cols="auto">\n <v-btn\n color="primary"\n class="mr-2"\n :disabled="disableButtons"\n @click="\n $emit(\'button\', { method: \'start\', suite, group, options })\n "\n data-test="start-group"\n >\n Start\n </v-btn>\n <v-btn\n color="primary"\n class="mr-2"\n @click="\n $emit(\'button\', { method: \'setup\', suite, group, options })\n "\n data-test="setup-group"\n :disabled="disableButtons || !setupGroupEnabled"\n >\n Setup\n </v-btn>\n <v-btn\n color="primary"\n @click="\n $emit(\'button\', { method: \'teardown\', suite, group, options })\n "\n data-test="teardown-group"\n :disabled="disableButtons || !teardownGroupEnabled"\n >\n Teardown\n </v-btn>\n </v-col>\n </v-row>\n </v-col>\n </v-row>\n <v-row no-gutters>\n <v-col cols="4">\n <v-row no-gutters>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Abort after Error"\n value="abortAfterError"\n hide-details\n data-test="abort-after-error"\n />\n </v-col>\n <v-col cols="6">\n <v-checkbox\n :disabled="!options.includes(\'loop\')"\n v-model="options"\n label="Break Loop on Error"\n value="breakLoopOnError"\n hide-details\n data-test="break-loop-on-error"\n />\n </v-col>\n </v-row>\n </v-col>\n <v-col cols="8">\n <v-row no-gutters justify="end">\n <v-col cols="5">\n <v-select\n label="Script:"\n class="mb-2 mr-2"\n hide-details\n dense\n outlined\n @change="scriptChanged"\n :items="scripts"\n v-model="script"\n data-test="select-script"\n />\n </v-col>\n <v-col cols="auto">\n <v-btn\n color="primary"\n :disabled="disableButtons"\n @click="\n $emit(\'button\', {\n method: \'start\',\n suite,\n group,\n script,\n options,\n })\n "\n data-test="start-script"\n >\n Start\n </v-btn>\n \x3c!-- TODO: Don\'t like this hard coded spacer but not sure how else\n to push the Start button over to line up with the other Starts --\x3e\n <div style="width: 296px" />\n </v-col>\n </v-row>\n </v-col>\n </v-row>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n props: {\n suiteMap: {\n type: Object,\n required: true,\n },\n disableButtons: {\n type: Boolean,\n required: true,\n },\n },\n data() {\n return {\n suites: [],\n groups: [],\n scripts: [],\n suite: \'\',\n group: \'\',\n script: \'\',\n options: [\'pauseOnError\', \'manual\', \'continueAfterError\'],\n }\n },\n computed: {\n setupSuiteEnabled() {\n if (this.suite && this.suiteMap[this.suite].setup) {\n return true\n } else {\n return false\n }\n },\n teardownSuiteEnabled() {\n if (this.suite && this.suiteMap[this.suite].teardown) {\n return true\n } else {\n return false\n }\n },\n setupGroupEnabled() {\n if (\n this.suite &&\n this.group &&\n this.suiteMap[this.suite].groups[this.group].setup\n ) {\n return true\n } else {\n return false\n }\n },\n teardownGroupEnabled() {\n if (\n this.suite &&\n this.group &&\n this.suiteMap[this.suite].groups[this.group].teardown\n ) {\n return true\n } else {\n return false\n }\n },\n },\n created() {\n this.initSuites()\n },\n // Watch the suiteMap so we can recreate the suites and set the initial value\n watch: {\n suiteMap: {\n handler: function (newVal, oldVal) {\n this.updateSuiteMap()\n },\n deep: true, // Deep watcher because suiteMap is a nested Object\n },\n },\n methods: {\n updateSuiteMap() {\n this.suites = Object.keys(this.suiteMap)\n if (\n this.suiteMap[this.suite] == undefined ||\n this.suiteMap[this.suite].groups[this.group] == undefined\n ) {\n this.initSuites()\n } else {\n this.groups = Object.keys(this.suiteMap[this.suite].groups)\n this.scripts = this.suiteMap[this.suite].groups[this.group].scripts\n }\n },\n initSuites() {\n this.suites = Object.keys(this.suiteMap)\n this.suiteChanged(this.suites[0])\n },\n suiteChanged(event) {\n this.suite = event\n this.group = \'\'\n this.script = \'\'\n this.groups = Object.keys(this.suiteMap[event].groups)\n // Make the group default be the first group\n this.groupChanged(this.groups[0])\n },\n groupChanged(event) {\n this.group = event\n this.script = \'\'\n this.scripts = this.suiteMap[this.suite].groups[event].scripts\n // Make the script default be the first\n this.scriptChanged(this.scripts[0])\n },\n scriptChanged(event) {\n this.script = event\n },\n },\n}\n<\/script>\n\n<style lang="scss" scoped>\n#tr-container {\n padding-top: 0px;\n padding-bottom: 15px;\n padding-left: 0px;\n padding-right: 0px;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"9508f2e457c4d0f3cbf1c50cca1a3c280d9157ca"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return et=function(){return o},o}et();const nt={props:{suiteMap:{type:Object,required:!0},disableButtons:{type:Boolean,required:!0}},data(){return et().f[0]++,et().s[0]++,{suites:[],groups:[],scripts:[],suite:"",group:"",script:"",options:["pauseOnError","manual","continueAfterError"]}},computed:{setupSuiteEnabled(){return et().f[1]++,et().s[1]++,et().b[1][0]++,this.suite&&(et().b[1][1]++,this.suiteMap[this.suite].setup)?(et().b[0][0]++,et().s[2]++,!0):(et().b[0][1]++,et().s[3]++,!1)},teardownSuiteEnabled(){return et().f[2]++,et().s[4]++,et().b[3][0]++,this.suite&&(et().b[3][1]++,this.suiteMap[this.suite].teardown)?(et().b[2][0]++,et().s[5]++,!0):(et().b[2][1]++,et().s[6]++,!1)},setupGroupEnabled(){return et().f[3]++,et().s[7]++,et().b[5][0]++,this.suite&&(et().b[5][1]++,this.group)&&(et().b[5][2]++,this.suiteMap[this.suite].groups[this.group].setup)?(et().b[4][0]++,et().s[8]++,!0):(et().b[4][1]++,et().s[9]++,!1)},teardownGroupEnabled(){return et().f[4]++,et().s[10]++,et().b[7][0]++,this.suite&&(et().b[7][1]++,this.group)&&(et().b[7][2]++,this.suiteMap[this.suite].groups[this.group].teardown)?(et().b[6][0]++,et().s[11]++,!0):(et().b[6][1]++,et().s[12]++,!1)}},created(){et().f[5]++,et().s[13]++,this.initSuites()},watch:{suiteMap:{handler:function(e,n){et().f[6]++,et().s[14]++,this.updateSuiteMap()},deep:!0}},methods:{updateSuiteMap(){et().f[7]++,et().s[15]++,this.suites=Object.keys(this.suiteMap),et().s[16]++,et().b[9][0]++,void 0==this.suiteMap[this.suite]||(et().b[9][1]++,void 0==this.suiteMap[this.suite].groups[this.group])?(et().b[8][0]++,et().s[17]++,this.initSuites()):(et().b[8][1]++,et().s[18]++,this.groups=Object.keys(this.suiteMap[this.suite].groups),et().s[19]++,this.scripts=this.suiteMap[this.suite].groups[this.group].scripts)},initSuites(){et().f[8]++,et().s[20]++,this.suites=Object.keys(this.suiteMap),et().s[21]++,this.suiteChanged(this.suites[0])},suiteChanged(e){et().f[9]++,et().s[22]++,this.suite=e,et().s[23]++,this.group="",et().s[24]++,this.script="",et().s[25]++,this.groups=Object.keys(this.suiteMap[e].groups),et().s[26]++,this.groupChanged(this.groups[0])},groupChanged(e){et().f[10]++,et().s[27]++,this.group=e,et().s[28]++,this.script="",et().s[29]++,this.scripts=this.suiteMap[this.suite].groups[e].scripts,et().s[30]++,this.scriptChanged(this.scripts[0])},scriptChanged(e){et().f[11]++,et().s[31]++,this.script=e}}},tt=nt;t(7542);var lt=(0,f.A)(tt,Zn,Qn,!1,null,"7585b76b",null);const it=lt.exports;function st(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",n="5c1f28797632ce912df046ae1513a23f1c0a8b30",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1781}},4:{start:{line:1,column:206},end:{line:1,column:419}},5:{start:{line:1,column:783},end:{line:1,column:803}},6:{start:{line:1,column:1129},end:{line:1,column:1143}},7:{start:{line:1,column:1277},end:{line:1,column:1482}},8:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:182},end:{line:1,column:183}},loc:{start:{line:1,column:205},end:{line:1,column:420}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:767},end:{line:1,column:768}},loc:{start:{line:1,column:782},end:{line:1,column:804}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1113},end:{line:1,column:1114}},loc:{start:{line:1,column:1128},end:{line:1,column:1144}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1253},end:{line:1,column:1254}},loc:{start:{line:1,column:1276},end:{line:1,column:1483}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},f:{0:0,1:0,2:0,3:0,4:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"5c1f28797632ce912df046ae1513a23f1c0a8b30"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return st=function(){return o},o}st(),st().s[0]++;var ot=function(){st().f[0]++;var e=(st().s[1]++,this),n=(st().s[2]++,e._self._c);return st().s[3]++,n("div",[n("v-card",[n("v-card-title",[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return st().f[1]++,st().s[4]++,[n("div",e._g(e._b({},"div",l,!1),t),[n("v-btn",{staticClass:"mx-2",attrs:{icon:"","data-test":"download-log"},on:{click:e.downloadLog}},[n("v-icon",[e._v(" mdi-download ")])],1)],1)]}}])},[e._v(" "),n("span",[e._v(" Download Log ")])]),e._v("\n Script Messages\n "),n("v-spacer"),e._v(" "),n("v-select",{staticClass:"mr-2",staticStyle:{"max-width":"170px"},attrs:{dense:"","hide-details":"",outlined:"",items:e.messageOrderOptions,"data-test":"message-order"},model:{value:e.messageOrder,callback:function(n){st().f[2]++,st().s[5]++,e.messageOrder=n},expression:"messageOrder"}}),e._v(" "),n("v-spacer"),e._v(" "),n("v-text-field",{staticClass:"search",attrs:{label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","single-line":"","hide-details":"","data-test":"search-messages"},model:{value:e.search,callback:function(n){st().f[3]++,st().s[6]++,e.search=n},expression:"search"}}),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return st().f[4]++,st().s[7]++,[n("div",e._g(e._b({},"div",l,!1),t),[n("v-btn",{staticClass:"mx-2",attrs:{icon:"","data-test":"clear-log"},on:{click:e.clearLog}},[n("v-icon",[e._v(" mdi-delete ")])],1)],1)]}}])},[e._v(" "),n("span",[e._v(" Clear Log ")])])],1),e._v(" "),n("v-data-table",{attrs:{headers:e.headers,items:e.messages,search:e.search,"calculate-widths":"","disable-pagination":"","hide-default-footer":"",dense:"",height:"45vh","data-test":"output-messages"}})],1)],1)},at=(st().s[8]++,[]);function rt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",n="dd228fdaece8bea2c3f559213f52fffed6770b15",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",statementMap:{0:{start:{line:12,column:4},end:{line:17,column:5}},1:{start:{line:21,column:6},end:{line:21,column:34}},2:{start:{line:27,column:8},end:{line:27,column:25}},3:{start:{line:30,column:8},end:{line:30,column:34}},4:{start:{line:36,column:21},end:{line:36,column:79}},5:{start:{line:36,column:52},end:{line:36,column:67}},6:{start:{line:37,column:19},end:{line:39,column:8}},7:{start:{line:41,column:19},end:{line:41,column:46}},8:{start:{line:42,column:6},end:{line:42,column:43}},9:{start:{line:43,column:6},end:{line:46,column:7}},10:{start:{line:47,column:6},end:{line:47,column:18}},11:{start:{line:50,column:6},end:{line:60,column:10}},12:{start:{line:56,column:10},end:{line:56,column:28}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:11,column:2},end:{line:11,column:3}},loc:{start:{line:11,column:9},end:{line:18,column:3}},line:11},1:{name:"(anonymous_1)",decl:{start:{line:20,column:18},end:{line:20,column:19}},loc:{start:{line:20,column:48},end:{line:22,column:5}},line:20},2:{name:"(anonymous_2)",decl:{start:{line:26,column:6},end:{line:26,column:7}},loc:{start:{line:26,column:12},end:{line:28,column:7}},line:26},3:{name:"(anonymous_3)",decl:{start:{line:29,column:6},end:{line:29,column:7}},loc:{start:{line:29,column:17},end:{line:31,column:7}},line:29},4:{name:"(anonymous_4)",decl:{start:{line:35,column:4},end:{line:35,column:5}},loc:{start:{line:35,column:18},end:{line:48,column:5}},line:35},5:{name:"(anonymous_5)",decl:{start:{line:36,column:39},end:{line:36,column:40}},loc:{start:{line:36,column:52},end:{line:36,column:67}},line:36},6:{name:"(anonymous_6)",decl:{start:{line:49,column:14},end:{line:49,column:15}},loc:{start:{line:49,column:26},end:{line:61,column:5}},line:49},7:{name:"(anonymous_7)",decl:{start:{line:55,column:14},end:{line:55,column:15}},loc:{start:{line:55,column:26},end:{line:57,column:9}},line:55},8:{name:"(anonymous_8)",decl:{start:{line:58,column:15},end:{line:58,column:16}},loc:{start:{line:58,column:30},end:{line:60,column:9}},line:58}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},b:{},inputSourceMap:{version:3,sources:["ScriptLogMessages.vue"],names:[],mappings:";AA8FA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ScriptLogMessages.vue",sourceRoot:"src/tools/ScriptRunner",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2023, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <v-card>\n <v-card-title>\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-btn\n icon\n class="mx-2"\n data-test="download-log"\n @click="downloadLog"\n >\n <v-icon> mdi-download </v-icon>\n </v-btn>\n </div>\n </template>\n <span> Download Log </span>\n </v-tooltip>\n Script Messages\n <v-spacer />\n <v-select\n dense\n hide-details\n outlined\n :items="messageOrderOptions"\n v-model="messageOrder"\n class="mr-2"\n style="max-width: 170px"\n data-test="message-order"\n />\n <v-spacer />\n <v-text-field\n v-model="search"\n label="Search"\n prepend-inner-icon="mdi-magnify"\n clearable\n outlined\n dense\n single-line\n hide-details\n class="search"\n data-test="search-messages"\n />\n\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-btn icon class="mx-2" data-test="clear-log" @click="clearLog">\n <v-icon> mdi-delete </v-icon>\n </v-btn>\n </div>\n </template>\n <span> Clear Log </span>\n </v-tooltip>\n </v-card-title>\n <v-data-table\n :headers="headers"\n :items="messages"\n :search="search"\n calculate-widths\n disable-pagination\n hide-default-footer\n dense\n height="45vh"\n data-test="output-messages"\n />\n </v-card>\n </div>\n</template>\n\n<script>\nimport { format } from \'date-fns\'\n\nexport default {\n props: {\n value: {\n type: Array,\n required: true,\n },\n },\n data() {\n return {\n search: \'\',\n headers: [{ text: \'Message\', value: \'message\', sortable: false }],\n messageOrderOptions: [\'Newest on Top\', \'Newest on Bottom\'],\n messageOrder: \'Newest on Top\',\n }\n },\n watch: {\n messageOrder: function (newValue, oldValue) {\n this.$emit(\'sort\', newValue)\n },\n },\n computed: {\n messages: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n downloadLog() {\n const output = this.messages.map((message) => message.message).join(\'\\n\')\n const blob = new Blob([output], {\n type: \'text/plain\',\n })\n // Make a link and then \'click\' on it to start the download\n const link = document.createElement(\'a\')\n link.href = URL.createObjectURL(blob)\n link.setAttribute(\n \'download\',\n format(Date.now(), \'yyyy_MM_dd_HH_mm_ss\') + \'_sr_message_log.txt\',\n )\n link.click()\n },\n clearLog: function () {\n this.$dialog\n .confirm(\'Are you sure you want to clear the log?\', {\n okText: \'Clear\',\n cancelText: \'Cancel\',\n })\n .then((dialog) => {\n this.messages = []\n })\n .catch(function (err) {\n // Cancelling the dialog forces catch and sets err to true\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"dd228fdaece8bea2c3f559213f52fffed6770b15"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return rt=function(){return o},o}rt();const ct={props:{value:{type:Array,required:!0}},data(){return rt().f[0]++,rt().s[0]++,{search:"",headers:[{text:"Message",value:"message",sortable:!1}],messageOrderOptions:["Newest on Top","Newest on Bottom"],messageOrder:"Newest on Top"}},watch:{messageOrder:function(e,n){rt().f[1]++,rt().s[1]++,this.$emit("sort",e)}},computed:{messages:{get(){return rt().f[2]++,rt().s[2]++,this.value},set(e){rt().f[3]++,rt().s[3]++,this.$emit("input",e)}}},methods:{downloadLog(){rt().f[4]++;const e=(rt().s[4]++,this.messages.map((e=>(rt().f[5]++,rt().s[5]++,e.message))).join("\n")),n=(rt().s[6]++,new Blob([e],{type:"text/plain"})),t=(rt().s[7]++,document.createElement("a"));rt().s[8]++,t.href=URL.createObjectURL(n),rt().s[9]++,t.setAttribute("download",(0,u.GP)(Date.now(),"yyyy_MM_dd_HH_mm_ss")+"_sr_message_log.txt"),rt().s[10]++,t.click()},clearLog:function(){rt().f[6]++,rt().s[11]++,this.$dialog.confirm("Are you sure you want to clear the log?",{okText:"Clear",cancelText:"Cancel"}).then((e=>{rt().f[7]++,rt().s[12]++,this.messages=[]})).catch((function(e){rt().f[8]++}))}}},ut=ct;var dt=(0,f.A)(ut,ot,at,!1,null,null,null);const mt=dt.exports;var At=function(){var e=this,n=e._self._c;return n("div",{ref:"bar",style:e.computedStyle},[n("v-card",{attrs:{"min-height":e.height,"min-width":e.width}},[n("v-system-bar",[n("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(n){e.errorDialog=!0}}},[e._v("\n mdi-alert\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Errors ")])])],1),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"edit-screen-icon"},on:{click:e.openEdit}},[e._v("\n mdi-pencil\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Edit Screen ")])]),e._v(" "),e.fixFloated?e._e():n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"float-screen-icon"},on:{click:e.floatScreen}},[e._v("\n "+e._s(e.floated?"mdi-balloon":"mdi-view-grid-outline")+"\n ")])],1)]}}],null,!1,4011884781)},[e._v(" "),n("span",[e._v(" "+e._s(e.floated?"Unfloat Screen":"Float Screen")+" ")])]),e._v(" "),e.floated?n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"up-screen-icon"},on:{click:e.upScreen}},[e._v("\n mdi-arrow-up\n ")])],1)]}}],null,!1,3296657168)},[e._v(" "),n("span",[e._v(" Move Screen Up ")])]):e._e(),e._v(" "),e.floated&&e.zIndex>e.minZ?n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"down-screen-icon"},on:{click:e.downScreen}},[e._v("\n mdi-arrow-down\n ")])],1)]}}],null,!1,1167902535)},[e._v(" "),n("span",[e._v(" Move Screen Down ")])]):e._e(),e._v(" "),n("v-spacer"),e._v(" "),n("span",[e._v(e._s(e.target)+" "+e._s(e.screen))]),e._v(" "),n("v-spacer"),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-minimize\n ")]),e._v(" "),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-maximize\n ")])],1)]}}])},[e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize Screen ")]),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize Screen ")])]),e._v(" "),e.showClose?n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"close-screen-icon"},on:{click:function(n){return e.$emit("close-screen")}}},[e._v("\n mdi-close-box\n ")])],1)]}}],null,!1,1921143701)},[e._v(" "),n("span",[e._v(" Close Screen ")])]):e._e()],1),e._v(" "),e.editDialog?e._e():n("v-expand-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"screen",staticClass:"pa-1",staticStyle:{position:"relative"}},[n("v-overlay",{staticStyle:{"pointer-events":"none"},attrs:{value:0!==e.errors.length,opacity:"0.8",absolute:""}}),e._v(" "),n("vertical-widget",e._g({key:e.screenKey,attrs:{widgets:e.layoutStack[0].widgets}},e.$listeners))],1)])],1),e._v(" "),e.editDialog?n("edit-screen-dialog",{attrs:{target:e.target,screen:e.screen,definition:e.currentDefinition,keywords:e.keywords,errors:e.errors},on:{save:function(n){return e.saveEdit(n)},cancel:function(n){return e.cancelEdit()},delete:function(n){return e.deleteScreen()}},model:{value:e.editDialog,callback:function(n){e.editDialog=n},expression:"editDialog"}}):e._e(),e._v(" "),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(n){e.errorDialog=n},expression:"errorDialog"}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v(" Screen: "+e._s(e.target)+" "+e._s(e.screen)+" Errors ")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("v-card",[n("v-textarea",{staticClass:"errors",attrs:{readonly:"",rows:"13",value:e.error}})],1)],1)],1)},pt=[],ht=t(3069),vt=t(1649),ft=t(5485),gt=t.n(ft),Ct=t(9677),bt=t.n(Ct),_t=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{persistent:"",width:"75vw"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("div",{staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"delete-screen-icon"},on:{click:e.deleteScreen}},[e._v("\n mdi-delete\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Delete Screen ")])])],1),e._v(" "),n("v-spacer"),e._v(" "),n("span",[e._v(" Edit Screen: "+e._s(e.target)+" "+e._s(e.screen)+" ")]),e._v(" "),n("v-spacer"),e._v(" "),n("div",{staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"download-screen-icon"},on:{click:e.downloadScreen}},[e._v("\n mdi-download\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Download Screen ")])])],1)],1),e._v(" "),n("v-card-text",[n("v-row",{staticClass:"mt-3"},[e._v(" Upload a screen file. ")]),e._v(" "),n("v-row",{attrs:{"no-gutters":"",align:"center"}},[n("v-btn",{staticClass:"mr-3",attrs:{disabled:!e.file,color:"primary","data-test":"edit-screen-load"},on:{click:e.loadFile}},[e._v("\n Load\n ")]),e._v(" "),n("v-file-input",{attrs:{"truncate-length":"15",accept:".txt",label:"Click to select .txt screen file."},model:{value:e.file,callback:function(n){e.file=n},expression:"file"}})],1),e._v(" "),n("v-row",{staticClass:"mb-2"},[e._v(" Edit the screen definition. ")]),e._v(" "),n("v-row",{staticClass:"mb-2"},[n("pre",{ref:"editor",staticClass:"editor"})]),e._v(" "),e._l(e.editErrors,(function(t,l){return n("v-row",{key:l,staticClass:"my-3"},[n("span",{staticClass:"red--text",domProps:{textContent:e._s(t)}})])})),e._v(" "),n("v-row",[n("span",[e._v("Ctrl-space brings up autocomplete")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"edit-screen-cancel"},on:{click:function(n){return e.$emit("cancel")}}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"edit-screen-save"},on:{click:function(n){e.$emit("save",e.editor.getValue())}}},[e._v("\n Save\n ")])],1)],2)],1)],1)},yt=[],wt=(t(1136),t(814));class xt{constructor(){(0,wt.A)(this,"getCompletions",(async function(e,n,t,l,i){var s=n.getLine(t.row),o=s.slice(0,t.column),a=o.trimStart().split(/ (?![^<]*>)/),r=this.autocompleteData;a.length>1&&(r=r.find((e=>e.caption===a[0])));var c={},u=!0;if(r&&r["params"]){r["params"].length==a.length-1&&(u=!1);var d=r["params"][a.length-2];if(d["Target name"]){var m=await this.api.get_target_names();r=m.reduce(((e,n)=>(e[n]=1,e)),{})}else if(d["Packet name"]){var A=a[a.length-2],p=await this.api.get_all_tlm(A);r=p.reduce(((e,n)=>(e[n.packet_name]=n.description,e)),{})}else if(d["Item name"]){A=a[a.length-3];var h=a[a.length-2];h=await this.api.get_tlm(A,h);r=h.items.reduce(((e,n)=>(e[n.name]=n.description,e)),{})}else r=d;c=Object.keys(r||{}).map((e=>{var n={value:e+(u?" ":""),command:u&&"startAutocomplete"};return"string"===typeof r[e]&&(n["meta"]=r[e]),n}))}else c=r;i(null,c)})),r.A.get("/openc3-api/autocomplete/data/screen").then((e=>{this.autocompleteData=e.data})),this.api=new P.x}}const kt={props:{value:Boolean,target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:()=>[]},errors:{type:Array,default:()=>[]}},data(){return{file:null}},computed:{editErrors:function(){if(""===this.definition&&!this.file)return["Input can not be blank."];if(0!==this.errors.length){let e=new Set,n=[];for(const t of this.errors){if(e.has(t.message))continue;let l=`At ${t.lineNumber}: (${t.line}) ${t.message}.`;t.usage&&(l+=` Usage: ${t.usage}`),n.push(l),e.add(t.message)}return n}return[]},show:{get(){return this.value},set(e){this.$emit("input",e)}}},mounted:function(){this.editor=c.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight");const e=this.buildScreenMode();this.editor.session.setMode(new e),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setOption("enableBasicAutocompletion",!0),this.editor.setOption("enableLiveAutocompletion",!0),this.editor.completers=[new xt],this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.definition),this.editor.clearSelection(),this.editor.focus()},beforeDestroy(){this.editor.destroy(),this.editor.container.remove()},methods:{buildScreenMode(){var e=c.require("ace/lib/oop"),n=c.require("ace/mode/text_highlight_rules").TextHighlightRules;let t=this.keywords.join("|");var l=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"\\b\\d+(?:\\.\\d+)?\\b"},{token:"keyword",regex:new RegExp(`^\\s*(${t})\\b`)}]},this.normalizeRules()};e.inherits(l,n);var i=function(){this.HighlightRules=l},s=c.require("ace/mode/text").Mode;return e.inherits(i,s),function(){this.$id="ace/mode/openc3"}.call(i.prototype),i},downloadScreen:function(){const e=new Blob([this.editor.getValue()],{type:"text/plain"}),n=document.createElement("a");n.href=URL.createObjectURL(e),n.setAttribute("download",`${this.screen.toLowerCase()}.txt`),n.click()},loadFile:function(){const e=new FileReader;e.readAsText(this.file);const n=this;e.onload=function(){n.editor.setValue(e.result),n.file=null}},deleteScreen:function(){this.$dialog.confirm("Are you sure you want to delete this screen?!",{okText:"Delete",cancelText:"Cancel"}).then((e=>{this.$emit("delete")}))}}},St=kt;t(8765),t(3065);var Mt=(0,f.A)(St,_t,yt,!1,null,"791fd9ac",null);const Et=Mt.exports,Tt=20,Rt=t(7448);Rt.keys().forEach((e=>{const n=Rt(e),t=gt()(bt()(e.split("/").pop().replace(/\.\w+$/,"")));vt["default"].component(t,n.default||n)}));const It={components:{EditScreenDialog:Et},props:{target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:()=>[]},initialFloated:{type:Boolean,default:!1},initialTop:{type:Number,default:0},initialLeft:{type:Number,default:0},initialZ:{type:Number,default:0},minZ:{type:Number,default:0},fixFloated:{type:Boolean,default:!1},count:{type:Number,default:0},showClose:{type:Boolean,default:!0}},data(){return{api:null,backup:"",currentDefinition:this.definition,editDialog:!1,expand:!0,configParser:null,configError:!1,currentLayout:null,layoutStack:[],namedWidgets:{},dynamicWidgets:[],width:null,height:null,staleTime:30,cacheTimeout:.1,globalSettings:[],substitute:!1,original_target_name:null,force_substitute:!1,pollingPeriod:1,errors:[],errorDialog:!1,screenKey:null,dragX:0,dragY:0,floated:this.initialFloated,top:this.initialTop,left:this.initialLeft,zIndex:this.initialZ,changeCounter:0,screenItems:[],screenValues:{},updateCounter:0}},watch:{count:{handler(e,n){this.currentDefinition=this.definition,this.rerender()}}},computed:{error:function(){if(this.errorDialog&&this.errors.length>0){let e=new Set,n="";for(const t of this.errors){if(e.has(t.message))continue;let l=`${t.time}: (${t.type}) ${t.message}\n`;n+=l,e.add(t.message)}return n}return null},computedStyle(){let e={};return this.floated&&(e["position"]="absolute",e["top"]=this.top+"px",e["left"]=this.left+"px"),e}},errorCaptured(e,n,t){return this.errors.length<Tt&&(e.usage?this.errors.push({type:"usage",message:e.message,usage:e.usage,line:e.line,lineNumber:e.lineNumber,time:(new Date).getTime()}):this.errors.push({type:"error",message:e,time:(new Date).getTime()}),this.configError=!0),!1},created(){this.api=new P.x,this.configParser=new ht.R,this.parseDefinition(),this.screenKey=Math.floor(1e6*Math.random())},mounted(){this.updateRefreshInterval(),this.floated&&(this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex)},destroyed(){null!=this.updater&&(clearInterval(this.updater),this.updater=null)},methods:{open(e,n){this.$parent.showScreen(e,n)},close(e,n){this.$parent.closeScreenByName(e,n)},closeAll(){this.$parent.closeAll()},clearErrors:function(){this.errors=[],this.configError=!1},updateRefreshInterval:function(){let e=1e3*this.pollingPeriod;this.updater&&clearInterval(this.updater),this.updater=setInterval((()=>{this.update()}),e)},parseDefinition:function(){if(this.clearErrors(),this.namedWidgets={},this.layoutStack=[],this.dynamicWidgets=[],this.layoutStack.push({type:"VerticalWidget",parameters:[],widgets:[]}),this.currentLayout=this.layoutStack[this.layoutStack.length-1],this.configParser.parse_string(this.currentDefinition,"",!1,!0,((e,n,t,l)=>{var i;if(e)switch(e){case"SCREEN":this.configParser.verify_num_parameters(3,4,`${e} <Width or AUTO> <Height or AUTO> <Polling Period>`),this.width=parseInt(n[0]),this.height=parseInt(n[1]),this.pollingPeriod=parseFloat(n[2]);break;case"END":this.configParser.verify_num_parameters(0,0,`${e}`),this.layoutStack.pop(),this.currentLayout=this.layoutStack[this.layoutStack.length-1];break;case"STALE_TIME":this.configParser.verify_num_parameters(1,1,`${e} <Time (s)>`),this.staleTime=parseInt(n[0]);break;case"SETTING":case"SUBSETTING":const s=null!==(i=this.currentLayout.widgets[this.currentLayout.widgets.length-1])&&void 0!==i?i:this.currentLayout;s.settings.push(n);break;case"GLOBAL_SETTING":case"GLOBAL_SUBSETTING":this.globalSettings.push(n);break;default:this.processWidget(e,n,t,l);break}})),"undefined"===typeof this.layoutStack[0]){let e=[],n=[];for(const t of this.dynamicWidgets)e.push(t.name),n.push(t.lineNumber);this.errors.length<Tt&&(this.errors.push({type:"usage",message:`Unknown widget! Are these widgets: ${e.join(",")}?`,lineNumber:n.join(","),time:(new Date).getTime()}),this.configError=!0),this.layoutStack[0]={type:"VerticalWidget",parameters:[],widgets:[]}}else this.applyGlobalSettings(this.layoutStack[0].widgets)},getNamedWidget:function(e){return this.namedWidgets[e]},get_named_widget:function(e){return this.namedWidgets[e]},setNamedWidget:function(e,n){this.namedWidgets[e]=n},openEdit:function(){this.backup=this.currentDefinition.repeat(1),this.editDialog=!0},upScreen:function(){this.zIndex+=1,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex])},downScreen:function(){this.zIndex>this.minZ&&(this.zIndex-=1,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex]))},floatScreen:function(){if(this.floated)this.$refs.bar.onmousedown=null,this.$refs.bar.parentElement.parentElement.style="z-index: 0",this.floated=!1,this.$emit("unfloat-screen",[this.floated,this.top,this.left,this.zIndex]);else{let e=this.$refs.bar.parentElement.parentElement.parentElement.getBoundingClientRect(),n=this.$refs.bar.getBoundingClientRect();this.top=n.top-e.top-5,this.left=n.left-e.left-5,this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.floated=!0,this.$emit("float-screen",[this.floated,this.top,this.left,this.zIndex])}},dragMouseDown:function(e){e=e||window.event,e.preventDefault(),this.dragX=e.clientX,this.dragY=e.clientY,document.onmouseup=this.closeDragElement,document.onmousemove=this.elementDrag},elementDrag:function(e){e=e||window.event,e.preventDefault();let n=this.dragX-e.clientX,t=this.dragY-e.clientY;this.dragX=e.clientX,this.dragY=e.clientY,this.top=this.$refs.bar.offsetTop-t,this.left=this.$refs.bar.offsetLeft-n,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex])},closeDragElement:function(){document.onmouseup=null,document.onmousemove=null},rerender:function(){this.parseDefinition(),this.updateRefreshInterval(),this.screenKey=Math.floor(1e6*Math.random()),this.$nextTick((function(){this.clearErrors(),this.$emit("edit-screen")}))},cancelEdit:function(){this.file=null,this.editDialog=!1,this.currentDefinition=this.backup,this.rerender()},saveEdit:function(e){this.editDialog=!1,this.currentDefinition=e,this.rerender(),this.$nextTick((function(){r.A.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:this.target,screen:this.screen,text:this.currentDefinition}},0)}))},deleteScreen:function(){this.editDialog=!1,r.A.delete(`/openc3-api/screen/${this.target}/${this.screen}`).then((e=>{this.$emit("delete-screen")}))},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-screen")},processWidget:function(e,n,t,l){var i=null;"NAMED_WIDGET"===e&&(this.configParser.verify_num_parameters(2,null,`${e} <Widget Name> <Widget Type> <Widget Settings... (optional)>`),i=n[0].toUpperCase(),e=n[1].toUpperCase(),n=n.slice(2,n.length));const s=e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()+"Widget";let o=[];if(null!==i&&o.push(["NAMED_WIDGET",i,this]),"VERTICAL"===e||"VERTICALBOX"===e||"HORIZONTAL"===e||"HORIZONTALBOX"===e||"MATRIXBYCOLUMNS"===e||"TABBOOK"===e||"TABITEM"===e||"CANVAS"===e||"RADIOGROUP"===e||"SCROLLWINDOW"===e){const e={type:s,parameters:n,settings:o,widgets:[]};this.layoutStack.push(e),this.currentLayout.widgets.push(e),this.currentLayout=e}else if(o.push(["__SCREEN__",this]),vt["default"].options.components[s])this.currentLayout.widgets.push({type:s,target:this.target,parameters:n,settings:o,line:t,lineNumber:l});else{let e={type:"DynamicWidget",target:this.target,parameters:n,settings:o,name:s,line:t,lineNumber:l};this.currentLayout.widgets.push(e),this.dynamicWidgets.push(e)}},applyGlobalSettings:function(e){this.globalSettings.forEach((n=>{e.forEach((e=>{e.type.toLowerCase()===n[0].toLowerCase()+"widget"&&e.settings.push(n.slice(1)),e.widgets&&this.applyGlobalSettings(e.widgets)}))}))},update:function(){0!==this.screenItems.length&&!1===this.configError&&this.api.get_tlm_values(this.screenItems,this.staleTime,this.cacheTimeout).then((e=>{this.clearErrors(),this.updateValues(e)})).catch((e=>{let n=JSON.stringify(e,null,2);n.includes("no response received")||(this.configError=!0),this.errors.find((e=>e.message===n))||this.errors.length<Tt&&this.errors.push({type:"error",message:n,time:(new Date).getTime()})}))},updateValues:function(e){this.updateCounter+=1;for(let n=0;n<e.length;n++)e[n].push(this.updateCounter),vt["default"].set(this.screenValues,this.screenItems[n],e[n])},addItem:function(e){this.screenItems.push(e),vt["default"].set(this.screenValues,e,[null,null,0])},deleteItem:function(e){let n=this.screenItems.indexOf(e);this.screenItems.splice(n,1)}}},Dt=It;t(970);var $t=(0,f.A)(Dt,At,pt,!1,null,"a4a31488",null);const Ot=$t.exports;function Nt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/utilities.js",n="bc429c989ff6c563268021b0e1f9fc50ed29bd64",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/utilities.js",statementMap:{0:{start:{line:25,column:20},end:{line:27,column:1}},1:{start:{line:26,column:2},end:{line:26,column:61}},2:{start:{line:29,column:28},end:{line:31,column:1}},3:{start:{line:30,column:2},end:{line:30,column:57}},4:{start:{line:34,column:16},end:{line:44,column:1}},5:{start:{line:35,column:2},end:{line:43,column:8}},6:{start:{line:36,column:16},end:{line:36,column:28}},7:{start:{line:37,column:4},end:{line:41,column:5}},8:{start:{line:38,column:6},end:{line:38,column:28}},9:{start:{line:40,column:6},end:{line:40,column:26}},10:{start:{line:42,column:4},end:{line:42,column:17}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:25,column:20},end:{line:25,column:21}},loc:{start:{line:25,column:30},end:{line:27,column:1}},line:25},1:{name:"(anonymous_1)",decl:{start:{line:29,column:28},end:{line:29,column:29}},loc:{start:{line:29,column:38},end:{line:31,column:1}},line:29},2:{name:"(anonymous_2)",decl:{start:{line:34,column:16},end:{line:34,column:17}},loc:{start:{line:34,column:35},end:{line:44,column:1}},line:34},3:{name:"(anonymous_3)",decl:{start:{line:35,column:22},end:{line:35,column:23}},loc:{start:{line:35,column:40},end:{line:43,column:3}},line:35}},branchMap:{0:{loc:{start:{line:37,column:4},end:{line:41,column:5}},type:"if",locations:[{start:{line:37,column:4},end:{line:41,column:5}},{start:{line:39,column:11},end:{line:41,column:5}}],line:37}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0,3:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"bc429c989ff6c563268021b0e1f9fc50ed29bd64"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Nt=function(){return o},o}Nt(),Nt().s[0]++;const Lt=e=>(Nt().f[0]++,Nt().s[1]++,r.A.get(`/openc3-api/autocomplete/keywords/${e}`));Nt().s[2]++;const Ft=e=>(Nt().f[1]++,Nt().s[3]++,r.A.get(`/openc3-api/autocomplete/data/${e}`));Nt().s[4]++;const Pt=(e,n)=>(Nt().f[2]++,Nt().s[5]++,e.reduce(((e,t)=>{Nt().f[3]++;const l=(Nt().s[6]++,n(t));return Nt().s[7]++,e[l]?(Nt().b[0][0]++,Nt().s[8]++,e[l].push(t)):(Nt().b[0][1]++,Nt().s[9]++,e[l]=[t]),Nt().s[10]++,e}),{}));function Ht(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/packetCompleter.js",n="dbda3a6741d49afa955fae563aa43644392aa172",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/packetCompleter.js",statementMap:{0:{start:{line:25,column:32},end:{line:31,column:1}},1:{start:{line:27,column:17},end:{line:27,column:32}},2:{start:{line:28,column:18},end:{line:28,column:33}},3:{start:{line:29,column:17},end:{line:29,column:34}},4:{start:{line:30,column:2},end:{line:30,column:59}},5:{start:{line:39,column:4},end:{line:39,column:32}},6:{start:{line:40,column:4},end:{line:40,column:30}},7:{start:{line:42,column:4},end:{line:45,column:6}},8:{start:{line:43,column:6},end:{line:43,column:74}},9:{start:{line:44,column:6},end:{line:44,column:32}},10:{start:{line:46,column:4},end:{line:49,column:6}},11:{start:{line:47,column:6},end:{line:47,column:43}},12:{start:{line:48,column:6},end:{line:48,column:25}},13:{start:{line:52,column:19},end:{line:74,column:3}},14:{start:{line:53,column:18},end:{line:53,column:20}},15:{start:{line:54,column:29},end:{line:57,column:5}},16:{start:{line:58,column:4},end:{line:62,column:5}},17:{start:{line:59,column:46},end:{line:59,column:75}},18:{start:{line:61,column:6},end:{line:61,column:37}},19:{start:{line:64,column:4},end:{line:73,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:25,column:32},end:{line:25,column:33}},loc:{start:{line:25,column:42},end:{line:31,column:1}},line:25},1:{name:"(anonymous_1)",decl:{start:{line:34,column:2},end:{line:34,column:3}},loc:{start:{line:38,column:4},end:{line:50,column:3}},line:38},2:{name:"(anonymous_2)",decl:{start:{line:36,column:24},end:{line:36,column:25}},loc:{start:{line:36,column:30},end:{line:36,column:32}},line:36},3:{name:"(anonymous_3)",decl:{start:{line:37,column:31},end:{line:37,column:32}},loc:{start:{line:37,column:37},end:{line:37,column:39}},line:37},4:{name:"(anonymous_4)",decl:{start:{line:42,column:27},end:{line:42,column:28}},loc:{start:{line:42,column:41},end:{line:45,column:5}},line:42},5:{name:"(anonymous_5)",decl:{start:{line:46,column:35},end:{line:46,column:36}},loc:{start:{line:46,column:49},end:{line:49,column:5}},line:46},6:{name:"(anonymous_6)",decl:{start:{line:52,column:19},end:{line:52,column:20}},loc:{start:{line:52,column:74},end:{line:74,column:3}},line:52},7:{name:"(anonymous_7)",decl:{start:{line:59,column:35},end:{line:59,column:36}},loc:{start:{line:59,column:46},end:{line:59,column:75}},line:59}},branchMap:{0:{loc:{start:{line:36,column:4},end:{line:36,column:32}},type:"default-arg",locations:[{start:{line:36,column:24},end:{line:36,column:32}}],line:36},1:{loc:{start:{line:37,column:4},end:{line:37,column:39}},type:"default-arg",locations:[{start:{line:37,column:31},end:{line:37,column:39}}],line:37},2:{loc:{start:{line:58,column:4},end:{line:62,column:5}},type:"if",locations:[{start:{line:58,column:4},end:{line:62,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:58}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0],1:[0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"dbda3a6741d49afa955fae563aa43644392aa172"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Ht=function(){return o},o}Ht(),Ht().s[0]++;const Bt=e=>{Ht().f[0]++;const n=(Ht().s[1]++,"(^|[{\\(\\s])"),t=(Ht().s[2]++,"[\\s\\(]['\"]"),l=(Ht().s[3]++,"(\\S+\\s?){0,3}");return Ht().s[4]++,new RegExp(`${n}${e}${t}${l}$`)};class Vt{constructor(e,n=(Ht().b[0][0]++,()=>{Ht().f[2]++}),t=(Ht().b[1][0]++,()=>{Ht().f[3]++})){(0,wt.A)(this,"getCompletions",(Ht().s[13]++,function(e,n,t,l,i){Ht().f[6]++;let s=(Ht().s[14]++,[]);const o=(Ht().s[15]++,n.doc.$lines[t.row].slice(0,t.column));Ht().s[16]++,this.keywordExpressions.some((e=>(Ht().f[7]++,Ht().s[17]++,o.match(e))))?(Ht().b[2][0]++,Ht().s[18]++,s=this.autocompleteData):Ht().b[2][1]++,Ht().s[19]++,i(null,[...s])})),Ht().f[1]++,Ht().s[5]++,this.keywordExpressions=[],Ht().s[6]++,this.autocompleteData=[],Ht().s[7]++,Lt(e).then((e=>{Ht().f[4]++,Ht().s[8]++,this.keywordExpressions=e.data.map(Bt),Ht().s[9]++,t()})),Ht().s[10]++,Ft(e).then((e=>{Ht().f[5]++,Ht().s[11]++,this.autocompleteData=e.data,Ht().s[12]++,n()}))}}function Gt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/cmdCompleter.js",n="131d227344c79c3d036a025c6ea368aeadc2b775",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/cmdCompleter.js",statementMap:{0:{start:{line:27,column:4},end:{line:27,column:16}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:16},end:{line:28,column:3}},line:26}},branchMap:{},s:{0:0},f:{0:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"131d227344c79c3d036a025c6ea368aeadc2b775"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Gt=function(){return o},o}Gt();class Wt extends Vt{constructor(){Gt().f[0]++,Gt().s[0]++,super("cmd")}}function Ut(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/tlmCompleter.js",n="25619d346e32a533485beb72a7572c19417db8fc",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/tlmCompleter.js",statementMap:{0:{start:{line:27,column:4},end:{line:53,column:6}},1:{start:{line:30,column:6},end:{line:45,column:12}},2:{start:{line:31,column:27},end:{line:31,column:60}},3:{start:{line:32,column:25},end:{line:32,column:67}},4:{start:{line:33,column:28},end:{line:37,column:9}},5:{start:{line:39,column:8},end:{line:43,column:9}},6:{start:{line:40,column:10},end:{line:40,column:46}},7:{start:{line:42,column:10},end:{line:42,column:44}},8:{start:{line:44,column:8},end:{line:44,column:21}},9:{start:{line:46,column:6},end:{line:52,column:8}},10:{start:{line:47,column:8},end:{line:51,column:9}},11:{start:{line:57,column:19},end:{line:77,column:3}},12:{start:{line:58,column:18},end:{line:58,column:20}},13:{start:{line:59,column:29},end:{line:62,column:5}},14:{start:{line:63,column:4},end:{line:74,column:5}},15:{start:{line:64,column:46},end:{line:64,column:75}},16:{start:{line:66,column:26},end:{line:68,column:7}},17:{start:{line:67,column:24},end:{line:67,column:61}},18:{start:{line:69,column:6},end:{line:73,column:7}},19:{start:{line:70,column:8},end:{line:70,column:53}},20:{start:{line:72,column:8},end:{line:72,column:30}},21:{start:{line:76,column:4},end:{line:76,column:27}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:16},end:{line:54,column:3}},line:26},1:{name:"(anonymous_1)",decl:{start:{line:27,column:17},end:{line:27,column:18}},loc:{start:{line:27,column:23},end:{line:53,column:5}},line:27},2:{name:"(anonymous_2)",decl:{start:{line:30,column:60},end:{line:30,column:61}},loc:{start:{line:30,column:78},end:{line:45,column:7}},line:30},3:{name:"(anonymous_3)",decl:{start:{line:46,column:61},end:{line:46,column:62}},loc:{start:{line:46,column:77},end:{line:52,column:7}},line:46},4:{name:"(anonymous_4)",decl:{start:{line:57,column:19},end:{line:57,column:20}},loc:{start:{line:57,column:74},end:{line:77,column:3}},line:57},5:{name:"(anonymous_5)",decl:{start:{line:64,column:35},end:{line:64,column:36}},loc:{start:{line:64,column:46},end:{line:64,column:75}},line:64},6:{name:"(anonymous_6)",decl:{start:{line:67,column:8},end:{line:67,column:9}},loc:{start:{line:67,column:24},end:{line:67,column:61}},line:67}},branchMap:{0:{loc:{start:{line:39,column:8},end:{line:43,column:9}},type:"if",locations:[{start:{line:39,column:8},end:{line:43,column:9}},{start:{line:41,column:15},end:{line:43,column:9}}],line:39},1:{loc:{start:{line:63,column:4},end:{line:74,column:5}},type:"if",locations:[{start:{line:63,column:4},end:{line:74,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:63},2:{loc:{start:{line:69,column:6},end:{line:73,column:7}},type:"if",locations:[{start:{line:69,column:6},end:{line:73,column:7}},{start:{line:71,column:13},end:{line:73,column:7}}],line:69}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{0:[0,0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"25619d346e32a533485beb72a7572c19417db8fc"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Ut=function(){return o},o}Ut();class zt extends Vt{constructor(){Ut().f[0]++,Ut().s[0]++,super("tlm",(()=>{Ut().f[1]++,Ut().s[1]++,this.groupedPacketData=this.autocompleteData.reduce(((e,n)=>{Ut().f[2]++;const t=(Ut().s[2]++,n.caption.match(/\S+\s\S+/)[0]),l=(Ut().s[3]++,n.snippet.replace(`${t} `,"")),i=(Ut().s[4]++,{caption:l,snippet:l,meta:"item"});return Ut().s[5]++,e[t]?(Ut().b[0][0]++,Ut().s[6]++,e[t].push(i)):(Ut().b[0][1]++,Ut().s[7]++,e[t]=[i]),Ut().s[8]++,e}),{}),Ut().s[9]++,this.packets=Object.keys(this.groupedPacketData).map((e=>(Ut().f[3]++,Ut().s[10]++,{caption:e,snippet:e,meta:"packet"})))})),(0,wt.A)(this,"getCompletions",(Ut().s[11]++,function(e,n,t,l,i){Ut().f[4]++;let s=(Ut().s[12]++,[]);const o=(Ut().s[13]++,n.doc.$lines[t.row].slice(0,t.column));if(Ut().s[14]++,this.keywordExpressions.some((e=>(Ut().f[5]++,Ut().s[15]++,o.match(e))))){Ut().b[1][0]++;const e=(Ut().s[16]++,Object.keys(this.groupedPacketData).find((e=>(Ut().f[6]++,Ut().s[17]++,o.includes(e)))));Ut().s[18]++,e?(Ut().b[2][0]++,Ut().s[19]++,s=this.groupedPacketData[e]):(Ut().b[2][1]++,Ut().s[20]++,s=this.packets)}else Ut().b[1][1]++;Ut().s[21]++,i(null,s)}))}}function qt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/mnemonicChecker.js",n="77d46705b64cd15a99411a7a6de17a4c17f164ba",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/mnemonicChecker.js",statementMap:{0:{start:{line:26,column:23},end:{line:31,column:1}},1:{start:{line:28,column:17},end:{line:28,column:32}},2:{start:{line:29,column:15},end:{line:29,column:37}},3:{start:{line:30,column:2},end:{line:30,column:46}},4:{start:{line:32,column:32},end:{line:32,column:36}},5:{start:{line:33,column:29},end:{line:33,column:43}},6:{start:{line:37,column:4},end:{line:37,column:30}},7:{start:{line:39,column:4},end:{line:39,column:21}},8:{start:{line:40,column:4},end:{line:47,column:6}},9:{start:{line:41,column:6},end:{line:46,column:8}},10:{start:{line:42,column:8},end:{line:45,column:9}},11:{start:{line:49,column:4},end:{line:49,column:35}},12:{start:{line:50,column:4},end:{line:52,column:6}},13:{start:{line:51,column:6},end:{line:51,column:68}},14:{start:{line:54,column:4},end:{line:54,column:35}},15:{start:{line:55,column:4},end:{line:57,column:6}},16:{start:{line:56,column:6},end:{line:56,column:68}},17:{start:{line:60,column:14},end:{line:141,column:3}},18:{start:{line:61,column:42},end:{line:134,column:5}},19:{start:{line:63,column:8},end:{line:63,column:26}},20:{start:{line:64,column:8},end:{line:66,column:9}},21:{start:{line:65,column:10},end:{line:65,column:23}},22:{start:{line:67,column:25},end:{line:69,column:16}},23:{start:{line:68,column:10},end:{line:68,column:43}},24:{start:{line:70,column:25},end:{line:72,column:16}},25:{start:{line:71,column:10},end:{line:71,column:43}},26:{start:{line:73,column:8},end:{line:75,column:9}},27:{start:{line:74,column:10},end:{line:74,column:23}},28:{start:{line:77,column:23},end:{line:77,column:43}},29:{start:{line:78,column:26},end:{line:78,column:41}},30:{start:{line:79,column:8},end:{line:79,column:44}},31:{start:{line:81,column:30},end:{line:83,column:32}},32:{start:{line:85,column:8},end:{line:88,column:9}},33:{start:{line:86,column:10},end:{line:86,column:44}},34:{start:{line:87,column:10},end:{line:87,column:23}},35:{start:{line:90,column:37},end:{line:90,column:80}},36:{start:{line:91,column:30},end:{line:93,column:9}},37:{start:{line:94,column:8},end:{line:96,column:9}},38:{start:{line:95,column:10},end:{line:95,column:23}},39:{start:{line:98,column:25},end:{line:101,column:9}},40:{start:{line:102,column:8},end:{line:113,column:9}},41:{start:{line:103,column:10},end:{line:103,column:42}},42:{start:{line:105,column:33},end:{line:105,column:55}},43:{start:{line:106,column:10},end:{line:112,column:11}},44:{start:{line:107,column:12},end:{line:109,column:13}},45:{start:{line:108,column:25},end:{line:108,column:45}},46:{start:{line:111,column:12},end:{line:111,column:80}},47:{start:{line:111,column:70},end:{line:111,column:79}},48:{start:{line:116,column:8},end:{line:124,column:9}},49:{start:{line:117,column:10},end:{line:123,column:11}},50:{start:{line:118,column:12},end:{line:118,column:79}},51:{start:{line:120,column:12},end:{line:122,column:13}},52:{start:{line:121,column:14},end:{line:121,column:46}},53:{start:{line:126,column:8},end:{line:130,column:10}},54:{start:{line:131,column:8},end:{line:131,column:21}},55:{start:{line:136,column:21},end:{line:136,column:57}},56:{start:{line:137,column:4},end:{line:140,column:5}},57:{start:{line:139,column:40},end:{line:139,column:67}},58:{start:{line:143,column:16},end:{line:215,column:3}},59:{start:{line:144,column:25},end:{line:144,column:27}},60:{start:{line:145,column:25},end:{line:148,column:5}},61:{start:{line:147,column:19},end:{line:147,column:42}},62:{start:{line:149,column:4},end:{line:213,column:5}},63:{start:{line:150,column:6},end:{line:158,column:7}},64:{start:{line:151,column:8},end:{line:156,column:9}},65:{start:{line:152,column:10},end:{line:155,column:12}},66:{start:{line:157,column:8},end:{line:157,column:16}},67:{start:{line:159,column:27},end:{line:162,column:7}},68:{start:{line:161,column:21},end:{line:161,column:44}},69:{start:{line:163,column:6},end:{line:212,column:7}},70:{start:{line:164,column:8},end:{line:211,column:9}},71:{start:{line:165,column:27},end:{line:165,column:64}},72:{start:{line:166,column:10},end:{line:180,column:11}},73:{start:{line:167,column:27},end:{line:169,column:30}},74:{start:{line:170,column:29},end:{line:170,column:59}},75:{start:{line:171,column:12},end:{line:179,column:13}},76:{start:{line:173,column:16},end:{line:175,column:17}},77:{start:{line:174,column:28},end:{line:174,column:37}},78:{start:{line:176,column:16},end:{line:176,column:29}},79:{start:{line:182,column:24},end:{line:182,column:62}},80:{start:{line:183,column:10},end:{line:191,column:11}},81:{start:{line:184,column:12},end:{line:189,column:14}},82:{start:{line:190,column:12},end:{line:190,column:20}},83:{start:{line:192,column:10},end:{line:210,column:11}},84:{start:{line:193,column:12},end:{line:199,column:13}},85:{start:{line:193,column:38},end:{line:193,column:68}},86:{start:{line:194,column:14},end:{line:197,column:16}},87:{start:{line:198,column:14},end:{line:198,column:22}},88:{start:{line:201,column:12},end:{line:209,column:13}},89:{start:{line:202,column:14},end:{line:208,column:15}},90:{start:{line:202,column:40},end:{line:202,column:54}},91:{start:{line:203,column:16},end:{line:206,column:18}},92:{start:{line:207,column:16},end:{line:207,column:24}},93:{start:{line:214,column:4},end:{line:214,column:23}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:23},end:{line:26,column:24}},loc:{start:{line:26,column:33},end:{line:31,column:1}},line:26},1:{name:"(anonymous_1)",decl:{start:{line:36,column:2},end:{line:36,column:3}},loc:{start:{line:36,column:16},end:{line:58,column:3}},line:36},2:{name:"(anonymous_2)",decl:{start:{line:40,column:37},end:{line:40,column:38}},loc:{start:{line:40,column:51},end:{line:47,column:5}},line:40},3:{name:"(anonymous_3)",decl:{start:{line:41,column:23},end:{line:41,column:24}},loc:{start:{line:41,column:35},end:{line:46,column:7}},line:41},4:{name:"(anonymous_4)",decl:{start:{line:50,column:28},end:{line:50,column:29}},loc:{start:{line:50,column:42},end:{line:52,column:5}},line:50},5:{name:"(anonymous_5)",decl:{start:{line:55,column:28},end:{line:55,column:29}},loc:{start:{line:55,column:42},end:{line:57,column:5}},line:55},6:{name:"(anonymous_6)",decl:{start:{line:60,column:14},end:{line:60,column:15}},loc:{start:{line:60,column:36},end:{line:141,column:3}},line:60},7:{name:"(anonymous_7)",decl:{start:{line:62,column:6},end:{line:62,column:7}},loc:{start:{line:62,column:31},end:{line:132,column:7}},line:62},8:{name:"(anonymous_8)",decl:{start:{line:67,column:59},end:{line:67,column:60}},loc:{start:{line:67,column:77},end:{line:69,column:9}},line:67},9:{name:"(anonymous_9)",decl:{start:{line:70,column:59},end:{line:70,column:60}},loc:{start:{line:70,column:77},end:{line:72,column:9}},line:70},10:{name:"(anonymous_10)",decl:{start:{line:108,column:14},end:{line:108,column:15}},loc:{start:{line:108,column:25},end:{line:108,column:45}},line:108},11:{name:"(anonymous_11)",decl:{start:{line:111,column:52},end:{line:111,column:53}},loc:{start:{line:111,column:70},end:{line:111,column:79}},line:111},12:{name:"(anonymous_12)",decl:{start:{line:120,column:56},end:{line:120,column:57}},loc:{start:{line:121,column:14},end:{line:121,column:46}},line:121},13:{name:"(anonymous_13)",decl:{start:{line:139,column:30},end:{line:139,column:31}},loc:{start:{line:139,column:40},end:{line:139,column:67}},line:139},14:{name:"(anonymous_14)",decl:{start:{line:143,column:16},end:{line:143,column:17}},loc:{start:{line:143,column:40},end:{line:215,column:3}},line:143},15:{name:"(anonymous_15)",decl:{start:{line:147,column:6},end:{line:147,column:7}},loc:{start:{line:147,column:19},end:{line:147,column:42}},line:147},16:{name:"(anonymous_16)",decl:{start:{line:161,column:8},end:{line:161,column:9}},loc:{start:{line:161,column:21},end:{line:161,column:44}},line:161},17:{name:"(anonymous_17)",decl:{start:{line:172,column:14},end:{line:172,column:15}},loc:{start:{line:172,column:38},end:{line:177,column:15}},line:172},18:{name:"(anonymous_18)",decl:{start:{line:174,column:18},end:{line:174,column:19}},loc:{start:{line:174,column:28},end:{line:174,column:37}},line:174},19:{name:"(anonymous_19)",decl:{start:{line:193,column:28},end:{line:193,column:29}},loc:{start:{line:193,column:38},end:{line:193,column:68}},line:193},20:{name:"(anonymous_20)",decl:{start:{line:202,column:30},end:{line:202,column:31}},loc:{start:{line:202,column:40},end:{line:202,column:54}},line:202}},branchMap:{0:{loc:{start:{line:64,column:8},end:{line:66,column:9}},type:"if",locations:[{start:{line:64,column:8},end:{line:66,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:64},1:{loc:{start:{line:68,column:17},end:{line:68,column:43}},type:"binary-expr",locations:[{start:{line:68,column:17},end:{line:68,column:22}},{start:{line:68,column:26},end:{line:68,column:43}}],line:68},2:{loc:{start:{line:71,column:17},end:{line:71,column:43}},type:"binary-expr",locations:[{start:{line:71,column:17},end:{line:71,column:22}},{start:{line:71,column:26},end:{line:71,column:43}}],line:71},3:{loc:{start:{line:73,column:8},end:{line:75,column:9}},type:"if",locations:[{start:{line:73,column:8},end:{line:75,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:73},4:{loc:{start:{line:73,column:12},end:{line:73,column:34}},type:"binary-expr",locations:[{start:{line:73,column:12},end:{line:73,column:21}},{start:{line:73,column:25},end:{line:73,column:34}}],line:73},5:{loc:{start:{line:77,column:23},end:{line:77,column:43}},type:"binary-expr",locations:[{start:{line:77,column:23},end:{line:77,column:31}},{start:{line:77,column:35},end:{line:77,column:43}}],line:77},6:{loc:{start:{line:85,column:8},end:{line:88,column:9}},type:"if",locations:[{start:{line:85,column:8},end:{line:88,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:85},7:{loc:{start:{line:92,column:10},end:{line:92,column:42}},type:"cond-expr",locations:[{start:{line:92,column:33},end:{line:92,column:36}},{start:{line:92,column:39},end:{line:92,column:42}}],line:92},8:{loc:{start:{line:94,column:8},end:{line:96,column:9}},type:"if",locations:[{start:{line:94,column:8},end:{line:96,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:94},9:{loc:{start:{line:102,column:8},end:{line:113,column:9}},type:"if",locations:[{start:{line:102,column:8},end:{line:113,column:9}},{start:{line:104,column:15},end:{line:113,column:9}}],line:102},10:{loc:{start:{line:106,column:10},end:{line:112,column:11}},type:"if",locations:[{start:{line:106,column:10},end:{line:112,column:11}},{start:{line:110,column:17},end:{line:112,column:11}}],line:106},11:{loc:{start:{line:117,column:10},end:{line:123,column:11}},type:"if",locations:[{start:{line:117,column:10},end:{line:123,column:11}},{start:{line:119,column:17},end:{line:123,column:11}}],line:117},12:{loc:{start:{line:150,column:6},end:{line:158,column:7}},type:"if",locations:[{start:{line:150,column:6},end:{line:158,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:150},13:{loc:{start:{line:165,column:27},end:{line:165,column:64}},type:"cond-expr",locations:[{start:{line:165,column:51},end:{line:165,column:56}},{start:{line:165,column:59},end:{line:165,column:64}}],line:165},14:{loc:{start:{line:166,column:10},end:{line:180,column:11}},type:"if",locations:[{start:{line:166,column:10},end:{line:180,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:166},15:{loc:{start:{line:167,column:27},end:{line:169,column:30}},type:"cond-expr",locations:[{start:{line:168,column:16},end:{line:168,column:29}},{start:{line:169,column:16},end:{line:169,column:30}}],line:167},16:{loc:{start:{line:183,column:10},end:{line:191,column:11}},type:"if",locations:[{start:{line:183,column:10},end:{line:191,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:183},17:{loc:{start:{line:187,column:16},end:{line:187,column:57}},type:"cond-expr",locations:[{start:{line:187,column:37},end:{line:187,column:45}},{start:{line:187,column:48},end:{line:187,column:57}}],line:187},18:{loc:{start:{line:192,column:10},end:{line:210,column:11}},type:"if",locations:[{start:{line:192,column:10},end:{line:210,column:11}},{start:{line:200,column:17},end:{line:210,column:11}}],line:192},19:{loc:{start:{line:193,column:12},end:{line:199,column:13}},type:"if",locations:[{start:{line:193,column:12},end:{line:199,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:193},20:{loc:{start:{line:202,column:14},end:{line:208,column:15}},type:"if",locations:[{start:{line:202,column:14},end:{line:208,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:202}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"77d46705b64cd15a99411a7a6de17a4c17f164ba"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return qt=function(){return o},o}qt(),qt().s[0]++;const jt=e=>{qt().f[0]++;const n=(qt().s[1]++,"(^|[{\\(\\s])"),t=(qt().s[2]++,"((\\s.+)|(\\(.+\\)))");return qt().s[3]++,new RegExp(`${n}${e}${t}`)},Yt=(qt().s[4]++,/\{/),Kt=(qt().s[5]++,/['"],\s?['"]/);class Xt{constructor(){(0,wt.A)(this,"checkText",(qt().s[17]++,async function(e){qt().f[6]++;const{linesToCheck:n,linesToSkip:t}=(qt().s[18]++,e.split("\n").reduce(((e,n,t)=>{if(qt().f[7]++,qt().s[19]++,n=n.trim(),qt().s[20]++,n.match(/^#/))return qt().b[0][0]++,qt().s[21]++,e;qt().b[0][1]++;const l=(qt().s[22]++,this.cmdKeywordExpressions.reduce(((e,t)=>(qt().f[8]++,qt().s[23]++,qt().b[1][0]++,e||(qt().b[1][1]++,n.match(t)))),null)),i=(qt().s[24]++,this.tlmKeywordExpressions.reduce(((e,t)=>(qt().f[9]++,qt().s[25]++,qt().b[2][0]++,e||(qt().b[2][1]++,n.match(t)))),null));if(qt().s[26]++,qt().b[4][0]++,!l&&(qt().b[4][1]++,!i))return qt().b[3][0]++,qt().s[27]++,e;qt().b[3][1]++;let s=(qt().s[28]++,qt().b[5][0]++,l||(qt().b[5][1]++,i)),o=(qt().s[29]++,s.length);qt().s[30]++,s=s[o-1];const a=(qt().s[31]++,s.substring(s.match(/[\(\s)]/).index+1).replace(/\)+.*$/,""));if(qt().s[32]++,a.match(Yt))return qt().b[6][0]++,qt().s[33]++,e.linesToSkip.push(t+1),qt().s[34]++,e;qt().b[6][1]++;const r=(qt().s[35]++,!!a.match(Kt)),c=(qt().s[36]++,a.split(r?(qt().b[7][0]++,","):(qt().b[7][1]++," ")));if(qt().s[37]++,c.length<2)return qt().b[8][0]++,qt().s[38]++,e;qt().b[8][1]++;const u=(qt().s[39]++,{target:c[0],packet:c[1]});if(qt().s[40]++,i)qt().b[9][0]++,qt().s[41]++,u.item=c[2];else{qt().b[9][1]++;const e=(qt().s[42]++,c.slice(2));qt().s[43]++,r?(qt().b[10][0]++,qt().s[44]++,u.params=e.map((e=>(qt().f[10]++,qt().s[45]++,e.split("=>")[0])))):(qt().b[10][1]++,qt().s[46]++,u.params=e.filter(((e,n)=>(qt().f[11]++,qt().s[47]++,n%2))))}qt().s[48]++;for(const d in u)qt().s[49]++,"string"===typeof u[d]?(qt().b[11][0]++,qt().s[50]++,u[d]=u[d].replace(/['"]/g,"").trim()):(qt().b[11][1]++,qt().s[51]++,u[d]=u[d].map((e=>(qt().f[12]++,qt().s[52]++,e.replace(/['"]/g,"").trim()))));return qt().s[53]++,e.linesToCheck.push({line:n,mnemonic:u,lineNumber:t+1}),qt().s[54]++,e}),{linesToCheck:[],linesToSkip:[]})),l=(qt().s[55]++,await this._checkLines(n));return qt().s[56]++,{skipped:t.sort(),problems:l.sort(((e,n)=>(qt().f[13]++,qt().s[57]++,e.lineNumber-n.lineNumber)))}})),(0,wt.A)(this,"_checkLines",(qt().s[58]++,async e=>{qt().f[14]++;const n=(qt().s[59]++,[]),t=(qt().s[60]++,Pt(e,(e=>(qt().f[15]++,qt().s[61]++,e.mnemonic.target))));qt().s[62]++;for(const l in t){if(qt().s[63]++,!this.targets[l]){qt().b[12][0]++,qt().s[64]++;for(const e of t[l])qt().s[65]++,n.push({...e,error:`Target "${l}" does not exist.`});qt().s[66]++;continue}qt().b[12][1]++;const e=(qt().s[67]++,Pt(t[l],(e=>(qt().f[16]++,qt().s[68]++,e.mnemonic.packet))));qt().s[69]++;for(const t in e){qt().s[70]++;for(const i of e[t]){const e=(qt().s[71]++,i.mnemonic.item?(qt().b[13][0]++,"tlm"):(qt().b[13][1]++,"cmd"));if(qt().s[72]++,this.targets[l][e])qt().b[14][1]++;else{qt().b[14][0]++;const n=(qt().s[73]++,i.mnemonic.item?(qt().b[15][0]++,"get_all_tlm"):(qt().b[15][1]++,"get_all_cmds")),t=(qt().s[74]++,await this.api[n](l));qt().s[75]++,this.targets[l][e]=t.reduce(((e,n)=>(qt().f[17]++,qt().s[76]++,e[n.packet_name]=n.items.map((e=>(qt().f[18]++,qt().s[77]++,e.name))),qt().s[78]++,e)),{})}const s=(qt().s[79]++,this.targets[l][e][t]);if(qt().s[80]++,s)if(qt().b[16][1]++,qt().s[83]++,i.mnemonic.item){if(qt().b[18][0]++,qt().s[84]++,!s.some((e=>(qt().f[19]++,qt().s[85]++,e===i.mnemonic.item)))){qt().b[19][0]++,qt().s[86]++,n.push({...i,error:`Item "${l} ${t} ${i.mnemonic.item}" does not exist.`}),qt().s[87]++;continue}qt().b[19][1]++}else{qt().b[18][1]++,qt().s[88]++;for(const e of i.mnemonic.params)qt().s[89]++,s.some((n=>(qt().f[20]++,qt().s[90]++,n===e)))?qt().b[20][1]++:(qt().b[20][0]++,qt().s[91]++,n.push({...i,error:`Command "${l} ${t}" param "${e}" does not exist.`}),qt().s[92]++)}else qt().b[16][0]++,qt().s[81]++,n.push({...i,error:`${"tlm"===e?(qt().b[17][0]++,"Packet"):(qt().b[17][1]++,"Command")} "${l} ${t}" does not exist.`}),qt().s[82]++}}}return qt().s[93]++,n})),qt().f[1]++,qt().s[6]++,this.api=new P.x,qt().s[7]++,this.targets={},qt().s[8]++,this.api.get_target_names().then((e=>{qt().f[2]++,qt().s[9]++,e.forEach((e=>{qt().f[3]++,qt().s[10]++,this.targets[e]={cmd:null,tlm:null}}))})),qt().s[11]++,this.cmdKeywordExpressions=[],qt().s[12]++,Lt("cmd").then((e=>{qt().f[4]++,qt().s[13]++,this.cmdKeywordExpressions=e.data.map(jt)})),qt().s[14]++,this.tlmKeywordExpressions=[],qt().s[15]++,Lt("tlm").then((e=>{qt().f[5]++,qt().s[16]++,this.tlmKeywordExpressions=e.data.map(jt)}))}}function Jt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/index.js",n="239637faebd5a12da0d2967088a12522b53174c2",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/index.js",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"239637faebd5a12da0d2967088a12522b53174c2"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Jt=function(){return o},o}Jt();var Zt=t(6860),Qt=t(3453),el=t(8713);function nl(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/regexAnnotator.js",n="ebd29b6b4771be71b0b3e8465d6a5e919396ec6e",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/regexAnnotator.js",statementMap:{0:{start:{line:31,column:4},end:{line:31,column:71}},1:{start:{line:32,column:4},end:{line:32,column:25}},2:{start:{line:33,column:4},end:{line:33,column:27}},3:{start:{line:34,column:4},end:{line:34,column:21}},4:{start:{line:35,column:4},end:{line:35,column:21}},5:{start:{line:39,column:12},end:{line:49,column:3}},6:{start:{line:40,column:20},end:{line:40,column:40}},7:{start:{line:41,column:4},end:{line:41,column:39}},8:{start:{line:42,column:18},end:{line:47,column:5}},9:{start:{line:48,column:4},end:{line:48,column:33}},10:{start:{line:52,column:13},end:{line:87,column:3}},11:{start:{line:53,column:4},end:{line:71,column:5}},12:{start:{line:55,column:6},end:{line:70,column:7}},13:{start:{line:57,column:10},end:{line:61,column:11}},14:{start:{line:62,column:10},end:{line:62,column:15}},15:{start:{line:64,column:10},end:{line:68,column:11}},16:{start:{line:69,column:10},end:{line:69,column:15}},17:{start:{line:72,column:4},end:{line:86,column:5}},18:{start:{line:72,column:19},end:{line:72,column:35}},19:{start:{line:73,column:19},end:{line:73,column:71}},20:{start:{line:74,column:6},end:{line:85,column:7}},21:{start:{line:75,column:8},end:{line:75,column:37}},22:{start:{line:76,column:8},end:{line:82,column:10}},23:{start:{line:83,column:13},end:{line:85,column:7}},24:{start:{line:84,column:8},end:{line:84,column:51}},25:{start:{line:89,column:19},end:{line:92,column:3}},26:{start:{line:90,column:4},end:{line:90,column:61}},27:{start:{line:91,column:4},end:{line:91,column:72}},28:{start:{line:94,column:29},end:{line:103,column:3}},29:{start:{line:95,column:4},end:{line:102,column:5}},30:{start:{line:100,column:12},end:{line:100,column:70}},31:{start:{line:105,column:22},end:{line:114,column:3}},32:{start:{line:106,column:4},end:{line:113,column:5}},33:{start:{line:108,column:8},end:{line:110,column:9}},34:{start:{line:109,column:10},end:{line:109,column:33}},35:{start:{line:111,column:8},end:{line:111,column:25}},36:{start:{line:116,column:26},end:{line:122,column:3}},37:{start:{line:117,column:4},end:{line:121,column:5}},38:{start:{line:120,column:32},end:{line:120,column:64}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:30,column:2},end:{line:30,column:3}},loc:{start:{line:30,column:47},end:{line:36,column:3}},line:30},1:{name:"(anonymous_1)",decl:{start:{line:39,column:12},end:{line:39,column:13}},loc:{start:{line:39,column:18},end:{line:49,column:3}},line:39},2:{name:"(anonymous_2)",decl:{start:{line:52,column:13},end:{line:52,column:14}},loc:{start:{line:52,column:34},end:{line:87,column:3}},line:52},3:{name:"(anonymous_3)",decl:{start:{line:89,column:19},end:{line:89,column:20}},loc:{start:{line:89,column:47},end:{line:92,column:3}},line:89},4:{name:"(anonymous_4)",decl:{start:{line:94,column:29},end:{line:94,column:30}},loc:{start:{line:94,column:47},end:{line:103,column:3}},line:94},5:{name:"(anonymous_5)",decl:{start:{line:99,column:10},end:{line:99,column:11}},loc:{start:{line:100,column:12},end:{line:100,column:70}},line:100},6:{name:"(anonymous_6)",decl:{start:{line:105,column:22},end:{line:105,column:23}},loc:{start:{line:105,column:47},end:{line:114,column:3}},line:105},7:{name:"(anonymous_7)",decl:{start:{line:107,column:35},end:{line:107,column:36}},loc:{start:{line:107,column:51},end:{line:112,column:7}},line:107},8:{name:"(anonymous_8)",decl:{start:{line:116,column:26},end:{line:116,column:27}},loc:{start:{line:116,column:39},end:{line:122,column:3}},line:116},9:{name:"(anonymous_9)",decl:{start:{line:120,column:16},end:{line:120,column:17}},loc:{start:{line:120,column:32},end:{line:120,column:64}},line:120}},branchMap:{0:{loc:{start:{line:53,column:4},end:{line:71,column:5}},type:"if",locations:[{start:{line:53,column:4},end:{line:71,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:53},1:{loc:{start:{line:55,column:6},end:{line:70,column:7}},type:"switch",locations:[{start:{line:56,column:8},end:{line:62,column:15}},{start:{line:63,column:8},end:{line:69,column:15}}],line:55},2:{loc:{start:{line:74,column:6},end:{line:85,column:7}},type:"if",locations:[{start:{line:74,column:6},end:{line:85,column:7}},{start:{line:83,column:13},end:{line:85,column:7}}],line:74},3:{loc:{start:{line:75,column:8},end:{line:75,column:37}},type:"binary-expr",locations:[{start:{line:75,column:8},end:{line:75,column:20}},{start:{line:75,column:25},end:{line:75,column:36}}],line:75},4:{loc:{start:{line:83,column:13},end:{line:85,column:7}},type:"if",locations:[{start:{line:83,column:13},end:{line:85,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:83},5:{loc:{start:{line:100,column:12},end:{line:100,column:70}},type:"binary-expr",locations:[{start:{line:100,column:12},end:{line:100,column:44}},{start:{line:100,column:48},end:{line:100,column:70}}],line:100},6:{loc:{start:{line:108,column:8},end:{line:110,column:9}},type:"if",locations:[{start:{line:108,column:8},end:{line:110,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:108}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ebd29b6b4771be71b0b3e8465d6a5e919396ec6e"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return nl=function(){return o},o}nl();var tl=new WeakMap,ll=new WeakMap,il=new WeakMap,sl=new WeakMap,ol=new WeakMap,al=new WeakMap,rl=new WeakMap,cl=new WeakMap,ul=new WeakMap;class dl{constructor(e,{pattern:n,text:t,type:l}){(0,Zt.A)(this,tl,void 0),(0,Zt.A)(this,ll,void 0),(0,Zt.A)(this,il,void 0),(0,Zt.A)(this,sl,void 0),(0,Zt.A)(this,ol,void 0),(0,wt.A)(this,"refresh",(nl().s[5]++,()=>{nl().f[1]++;const e=(nl().s[6]++,(0,Qt.A)(ll,this).session);nl().s[7]++,(0,Qt.A)(ul,this).call(this,e);const n=(nl().s[8]++,{lines:e.doc.$lines,action:"insert",start:{row:0},end:{row:e.doc.$lines.length}});nl().s[9]++,this.annotate(n,e)})),(0,wt.A)(this,"annotate",(nl().s[10]++,(e,n)=>{if(nl().f[2]++,nl().s[11]++,e.lines.length>1)switch(nl().b[0][0]++,nl().s[12]++,e.action){case"insert":nl().b[1][0]++,nl().s[13]++,(0,Qt.A)(cl,this).call(this,n,e.start.row,e.lines.length-1),nl().s[14]++;break;case"remove":nl().b[1][1]++,nl().s[15]++,(0,Qt.A)(cl,this).call(this,n,e.start.row+1,1-e.lines.length),nl().s[16]++;break}else nl().b[0][1]++;nl().s[17]++;for(let l=(nl().s[18]++,e.start.row);l<=e.end.row;l++){var t;let i=(nl().s[19]++,null===(t=n.doc.$lines[l])||void 0===t||null===(t=t.match((0,Qt.A)(il,this)))||void 0===t?void 0:t.index);nl().s[20]++,void 0!==i?(nl().b[2][0]++,nl().s[21]++,nl().b[3][0]++,0!==i&&(nl().b[3][1]++,i+=1),nl().s[22]++,(0,Qt.A)(al,this).call(this,n,{row:l,column:i,text:(0,Qt.A)(sl,this),type:(0,Qt.A)(ol,this),openc3Id:(0,Qt.A)(tl,this)})):(nl().b[2][1]++,nl().s[23]++,"remove"===e.action?(nl().b[4][0]++,nl().s[24]++,(0,Qt.A)(rl,this).call(this,n,l)):nl().b[4][1]++)}})),(0,Zt.A)(this,al,(nl().s[25]++,(e,n)=>{nl().f[3]++,nl().s[26]++,(0,Qt.A)(rl,this).call(this,e,n.row),nl().s[27]++,e.setAnnotations([...e.getAnnotations(),n])})),(0,Zt.A)(this,rl,(nl().s[28]++,(e,n)=>{nl().f[4]++,nl().s[29]++,e.setAnnotations(e.getAnnotations().filter((e=>(nl().f[5]++,nl().s[30]++,nl().b[5][0]++,e.openc3Id!==(0,Qt.A)(tl,this)||(nl().b[5][1]++,e.row!==n)))))})),(0,Zt.A)(this,cl,(nl().s[31]++,(e,n,t)=>{nl().f[6]++,nl().s[32]++,e.setAnnotations(e.getAnnotations().map((e=>(nl().f[7]++,nl().s[33]++,e.row>n?(nl().b[6][0]++,nl().s[34]++,e.row+=t):nl().b[6][1]++,nl().s[35]++,e))))})),(0,Zt.A)(this,ul,(nl().s[36]++,e=>{nl().f[8]++,nl().s[37]++,e.setAnnotations(e.getAnnotations().filter((e=>(nl().f[9]++,nl().s[38]++,e.openc3Id!==(0,Qt.A)(tl,this)))))})),nl().f[0]++,nl().s[0]++,(0,el.A)(tl,this,`regexAnnotator-${Math.floor(1e7*Math.random())}`),nl().s[1]++,(0,el.A)(ll,this,e),nl().s[2]++,(0,el.A)(il,this,n),nl().s[3]++,(0,el.A)(sl,this,t),nl().s[4]++,(0,el.A)(ol,this,l)}}function ml(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/sleepAnnotator.js",n="744a728c29aa11b26e0fea7ead3a653b74f7c776",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/sleepAnnotator.js",statementMap:{0:{start:{line:27,column:19},end:{line:27,column:31}},1:{start:{line:28,column:20},end:{line:28,column:27}},2:{start:{line:29,column:19},end:{line:29,column:29}},3:{start:{line:30,column:4},end:{line:34,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:22},end:{line:35,column:3}},line:26}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"744a728c29aa11b26e0fea7ead3a653b74f7c776"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return ml=function(){return o},o}ml();class Al extends dl{constructor(e){ml().f[0]++;const n=(ml().s[0]++,"(^|[{\\s])"),t=(ml().s[1]++,"sleep"),l=(ml().s[2]++,"[\\(\\s]");ml().s[3]++,super(e,{pattern:new RegExp(`${n}${t}${l}`),text:"Use `wait` instead of `sleep` in OpenC3 scripts",type:"warning"})}}function pl(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/index.js",n="5703e005e4cf95b0f782738f96d4e334260835ac",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/index.js",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"5703e005e4cf95b0f782738f96d4e334260835ac"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return pl=function(){return o},o}function hl(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",n="b6445ab465afdcda298ef44df91d2d40d40c7eb0",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",statementMap:{0:{start:{line:1,column:13},end:{line:8,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:7,column:630}},4:{start:{line:1,column:681},end:{line:1,column:702}},5:{start:{line:4,column:90},end:{line:4,column:412}},6:{start:{line:4,column:165},end:{line:4,column:195}},7:{start:{line:4,column:454},end:{line:4,column:678}},8:{start:{line:4,column:529},end:{line:4,column:556}},9:{start:{line:4,column:722},end:{line:4,column:951}},10:{start:{line:4,column:797},end:{line:4,column:826}},11:{start:{line:4,column:1536},end:{line:4,column:1559}},12:{start:{line:7,column:72},end:{line:7,column:616}},13:{start:{line:7,column:247},end:{line:7,column:281}},14:{start:{line:7,column:332},end:{line:7,column:374}},15:{start:{line:9,column:22},end:{line:9,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:8,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:665},end:{line:1,column:666}},loc:{start:{line:1,column:680},end:{line:1,column:703}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:4,column:71},end:{line:4,column:72}},loc:{start:{line:4,column:89},end:{line:4,column:413}},line:4},3:{name:"(anonymous_3)",decl:{start:{line:4,column:148},end:{line:4,column:149}},loc:{start:{line:4,column:164},end:{line:4,column:196}},line:4},4:{name:"(anonymous_4)",decl:{start:{line:4,column:435},end:{line:4,column:436}},loc:{start:{line:4,column:453},end:{line:4,column:679}},line:4},5:{name:"(anonymous_5)",decl:{start:{line:4,column:512},end:{line:4,column:513}},loc:{start:{line:4,column:528},end:{line:4,column:557}},line:4},6:{name:"(anonymous_6)",decl:{start:{line:4,column:703},end:{line:4,column:704}},loc:{start:{line:4,column:721},end:{line:4,column:952}},line:4},7:{name:"(anonymous_7)",decl:{start:{line:4,column:780},end:{line:4,column:781}},loc:{start:{line:4,column:796},end:{line:4,column:827}},line:4},8:{name:"(anonymous_8)",decl:{start:{line:4,column:1520},end:{line:4,column:1521}},loc:{start:{line:4,column:1535},end:{line:4,column:1560}},line:4},9:{name:"(anonymous_9)",decl:{start:{line:7,column:53},end:{line:7,column:54}},loc:{start:{line:7,column:71},end:{line:7,column:617}},line:7},10:{name:"(anonymous_10)",decl:{start:{line:7,column:230},end:{line:7,column:231}},loc:{start:{line:7,column:246},end:{line:7,column:282}},line:7},11:{name:"(anonymous_11)",decl:{start:{line:7,column:321},end:{line:7,column:322}},loc:{start:{line:7,column:331},end:{line:7,column:375}},line:7}},branchMap:{0:{loc:{start:{line:7,column:157},end:{line:7,column:216}},type:"binary-expr",locations:[{start:{line:7,column:157},end:{line:7,column:175}},{start:{line:7,column:179},end:{line:7,column:216}}],line:7},1:{loc:{start:{line:7,column:402},end:{line:7,column:525}},type:"cond-expr",locations:[{start:{line:7,column:455},end:{line:7,column:491}},{start:{line:7,column:492},end:{line:7,column:525}}],line:7},2:{loc:{start:{line:7,column:403},end:{line:7,column:453}},type:"binary-expr",locations:[{start:{line:7,column:403},end:{line:7,column:426}},{start:{line:7,column:430},end:{line:7,column:453}}],line:7}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},b:{0:[0,0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b6445ab465afdcda298ef44df91d2d40d40c7eb0"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return hl=function(){return o},o}pl(),hl(),hl().s[0]++;var vl=function(){hl().f[0]++;var e=(hl().s[1]++,this),n=(hl().s[2]++,e._self._c);return hl().s[3]++,n("div",[n("v-card",{attrs:{flat:""}},[n("v-card-title",[n("v-row",{attrs:{dense:""}},[n("span",{staticClass:"mr-2"},[e._v("Running Scripts")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mr-2",attrs:{color:"primary"},on:{click:e.getRunningScripts}},[e._v("Refresh")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-text-field",{staticClass:"pt-0 search",attrs:{label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","single-line":"","hide-details":"","data-test":"running-search"},model:{value:e.runningSearch,callback:function(n){hl().f[1]++,hl().s[4]++,e.runningSearch=n},expression:"runningSearch"}})],1)],1),e._v(" "),n("v-data-table",{attrs:{headers:e.runningHeaders,items:e.runningScripts,search:e.runningSearch,dense:"","calculate-widths":"","multi-sort":"","sort-by":"start_time","sort-desc":"","data-test":"running-scripts","footer-props":{itemsPerPageOptions:[3],showFirstLastPage:!0},"max-height":"400"},scopedSlots:e._u([{key:"item.connect",fn:function({item:t}){return hl().f[2]++,hl().s[5]++,[n("v-btn",{attrs:{color:"primary"},on:{click:function(n){return hl().f[3]++,hl().s[6]++,e.connectScript(t)}}},[n("span",[e._v("Connect")]),e._v(" "),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.connectInNewTab,expression:"connectInNewTab"}],attrs:{right:""}},[e._v(" mdi-open-in-new ")])],1)]}},{key:"item.stop",fn:function({item:t}){return hl().f[4]++,hl().s[7]++,[n("v-btn",{attrs:{color:"primary"},on:{click:function(n){return hl().f[5]++,hl().s[8]++,e.stopScript(t)}}},[n("span",[e._v("Stop")]),e._v(" "),n("v-icon",{attrs:{right:""}},[e._v(" mdi-close-circle-outline ")])],1)]}},{key:"item.delete",fn:function({item:t}){return hl().f[6]++,hl().s[9]++,[n("v-btn",{attrs:{color:"primary"},on:{click:function(n){return hl().f[7]++,hl().s[10]++,e.deleteScript(t)}}},[n("span",[e._v("Delete")]),e._v(" "),n("v-icon",{attrs:{right:""}},[e._v(" mdi-alert-octagon-outline ")])],1)]}}])})],1),e._v(" "),n("v-card",{attrs:{flat:""}},[n("v-card-title",[n("v-row",{attrs:{dense:""}},[n("span",{staticClass:"mr-2"},[e._v("Completed Scripts")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-btn",{attrs:{color:"primary"},on:{click:e.getCompletedScripts}},[e._v("Refresh")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-text-field",{staticClass:"pt-0 search",attrs:{label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","single-line":"","hide-details":""},model:{value:e.completedSearch,callback:function(n){hl().f[8]++,hl().s[11]++,e.completedSearch=n},expression:"completedSearch"}})],1)],1),e._v(" "),n("v-data-table",{attrs:{headers:e.completedHeaders,items:e.completedScripts,search:e.completedSearch,dense:"","calculate-widths":"","multi-sort":"","sort-by":"start","sort-desc":"","data-test":"completed-scripts","footer-props":{itemsPerPageOptions:[5],showFirstLastPage:!0}},scopedSlots:e._u([{key:"item.download",fn:function({item:t}){return hl().f[9]++,hl().s[12]++,[n("v-btn",{attrs:{color:"primary",disabled:e.downloadScript,loading:(hl().b[0][0]++,e.downloadScript&&(hl().b[0][1]++,e.downloadScript.name===t.name))},on:{click:function(n){return hl().f[10]++,hl().s[13]++,e.downloadScriptLog(t)}},scopedSlots:e._u([{key:"loader",fn:function(){return hl().f[11]++,hl().s[14]++,[n("span",[e._v("Loading...")])]},proxy:!0}],null,!0)},[(hl().b[2][0]++,t.name.includes("(")&&(hl().b[2][1]++,t.name.includes(")"))?(hl().b[1][0]++,n("span",[e._v("Script Report")])):(hl().b[1][1]++,n("span",[e._v("Script Log")]))),e._v(" "),n("v-icon",{attrs:{right:""}},[e._v(" mdi-file-download-outline ")])],1)]}}])})],1)],1)},fl=(hl().s[15]++,[]);function gl(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",n="ca4d6d72f4f9a98e1289bc4d3fce0a7bca46837e",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",statementMap:{0:{start:{line:11,column:4},end:{line:52,column:5}},1:{start:{line:55,column:4},end:{line:55,column:28}},2:{start:{line:56,column:4},end:{line:56,column:30}},3:{start:{line:60,column:6},end:{line:62,column:8}},4:{start:{line:61,column:8},end:{line:61,column:43}},5:{start:{line:66,column:6},end:{line:68,column:8}},6:{start:{line:67,column:8},end:{line:67,column:45}},7:{start:{line:72,column:6},end:{line:72,column:30}},8:{start:{line:73,column:26},end:{line:76,column:7}},9:{start:{line:77,column:6},end:{line:83,column:7}},10:{start:{line:78,column:23},end:{line:78,column:56}},11:{start:{line:79,column:8},end:{line:79,column:35}},12:{start:{line:81,column:8},end:{line:81,column:38}},13:{start:{line:82,column:8},end:{line:82,column:27}},14:{start:{line:86,column:6},end:{line:109,column:10}},15:{start:{line:95,column:10},end:{line:95,column:73}},16:{start:{line:98,column:10},end:{line:100,column:12}},17:{start:{line:101,column:10},end:{line:101,column:34}},18:{start:{line:104,column:10},end:{line:108,column:11}},19:{start:{line:105,column:12},end:{line:107,column:14}},20:{start:{line:112,column:6},end:{line:136,column:10}},21:{start:{line:122,column:10},end:{line:122,column:75}},22:{start:{line:125,column:10},end:{line:127,column:12}},23:{start:{line:128,column:10},end:{line:128,column:34}},24:{start:{line:131,column:10},end:{line:135,column:11}},25:{start:{line:132,column:12},end:{line:134,column:14}},26:{start:{line:139,column:6},end:{line:139,column:34}},27:{start:{line:140,column:6},end:{line:160,column:10}},28:{start:{line:146,column:32},end:{line:146,column:53}},29:{start:{line:147,column:27},end:{line:147,column:66}},30:{start:{line:149,column:23},end:{line:149,column:50}},31:{start:{line:150,column:10},end:{line:150,column:39}},32:{start:{line:151,column:10},end:{line:151,column:49}},33:{start:{line:152,column:10},end:{line:152,column:22}},34:{start:{line:153,column:10},end:{line:153,column:36}},35:{start:{line:156,column:10},end:{line:159,column:12}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:10,column:2},end:{line:10,column:3}},loc:{start:{line:10,column:9},end:{line:53,column:3}},line:10},1:{name:"(anonymous_1)",decl:{start:{line:54,column:2},end:{line:54,column:3}},loc:{start:{line:54,column:12},end:{line:57,column:3}},line:54},2:{name:"(anonymous_2)",decl:{start:{line:59,column:23},end:{line:59,column:24}},loc:{start:{line:59,column:35},end:{line:63,column:5}},line:59},3:{name:"(anonymous_3)",decl:{start:{line:60,column:49},end:{line:60,column:50}},loc:{start:{line:60,column:63},end:{line:62,column:7}},line:60},4:{name:"(anonymous_4)",decl:{start:{line:64,column:25},end:{line:64,column:26}},loc:{start:{line:64,column:37},end:{line:69,column:5}},line:64},5:{name:"(anonymous_5)",decl:{start:{line:66,column:52},end:{line:66,column:53}},loc:{start:{line:66,column:66},end:{line:68,column:7}},line:66},6:{name:"(anonymous_6)",decl:{start:{line:70,column:19},end:{line:70,column:20}},loc:{start:{line:70,column:37},end:{line:84,column:5}},line:70},7:{name:"(anonymous_7)",decl:{start:{line:85,column:16},end:{line:85,column:17}},loc:{start:{line:85,column:34},end:{line:110,column:5}},line:85},8:{name:"(anonymous_8)",decl:{start:{line:94,column:14},end:{line:94,column:15}},loc:{start:{line:94,column:26},end:{line:96,column:9}},line:94},9:{name:"(anonymous_9)",decl:{start:{line:97,column:14},end:{line:97,column:15}},loc:{start:{line:97,column:28},end:{line:102,column:9}},line:97},10:{name:"(anonymous_10)",decl:{start:{line:103,column:15},end:{line:103,column:16}},loc:{start:{line:103,column:26},end:{line:109,column:9}},line:103},11:{name:"(anonymous_11)",decl:{start:{line:111,column:18},end:{line:111,column:19}},loc:{start:{line:111,column:36},end:{line:137,column:5}},line:111},12:{name:"(anonymous_12)",decl:{start:{line:121,column:14},end:{line:121,column:15}},loc:{start:{line:121,column:26},end:{line:123,column:9}},line:121},13:{name:"(anonymous_13)",decl:{start:{line:124,column:14},end:{line:124,column:15}},loc:{start:{line:124,column:28},end:{line:129,column:9}},line:124},14:{name:"(anonymous_14)",decl:{start:{line:130,column:15},end:{line:130,column:16}},loc:{start:{line:130,column:26},end:{line:136,column:9}},line:130},15:{name:"(anonymous_15)",decl:{start:{line:138,column:23},end:{line:138,column:24}},loc:{start:{line:138,column:41},end:{line:161,column:5}},line:138},16:{name:"(anonymous_16)",decl:{start:{line:145,column:14},end:{line:145,column:15}},loc:{start:{line:145,column:28},end:{line:154,column:9}},line:145},17:{name:"(anonymous_17)",decl:{start:{line:155,column:15},end:{line:155,column:16}},loc:{start:{line:155,column:21},end:{line:160,column:9}},line:155}},branchMap:{0:{loc:{start:{line:77,column:6},end:{line:83,column:7}},type:"if",locations:[{start:{line:77,column:6},end:{line:83,column:7}},{start:{line:80,column:13},end:{line:83,column:7}}],line:77},1:{loc:{start:{line:104,column:10},end:{line:108,column:11}},type:"if",locations:[{start:{line:104,column:10},end:{line:108,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:104},2:{loc:{start:{line:131,column:10},end:{line:135,column:11}},type:"if",locations:[{start:{line:131,column:10},end:{line:135,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:131}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,sources:["RunningScripts.vue"],names:[],mappings:";AA4IA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"RunningScripts.vue",sourceRoot:"src/tools/ScriptRunner",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2024, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <v-card flat>\n <v-card-title>\n <v-row dense>\n <span class="mr-2">Running Scripts</span>\n <v-spacer />\n <v-btn class="mr-2" color="primary" @click="getRunningScripts"\n >Refresh</v-btn\n >\n <v-spacer />\n <v-text-field\n v-model="runningSearch"\n class="pt-0 search"\n label="Search"\n prepend-inner-icon="mdi-magnify"\n clearable\n outlined\n dense\n single-line\n hide-details\n data-test="running-search" /></v-row\n ></v-card-title>\n <v-data-table\n :headers="runningHeaders"\n :items="runningScripts"\n :search="runningSearch"\n dense\n calculate-widths\n multi-sort\n sort-by="start_time"\n sort-desc\n data-test="running-scripts"\n :footer-props="{\n itemsPerPageOptions: [3],\n showFirstLastPage: true,\n }"\n max-height="400"\n >\n <template v-slot:item.connect="{ item }">\n <v-btn color="primary" @click="connectScript(item)">\n <span>Connect</span>\n <v-icon right v-show="connectInNewTab"> mdi-open-in-new </v-icon>\n </v-btn>\n </template>\n <template v-slot:item.stop="{ item }">\n <v-btn color="primary" @click="stopScript(item)">\n <span>Stop</span>\n <v-icon right> mdi-close-circle-outline </v-icon>\n </v-btn>\n </template>\n <template v-slot:item.delete="{ item }">\n <v-btn color="primary" @click="deleteScript(item)">\n <span>Delete</span>\n <v-icon right> mdi-alert-octagon-outline </v-icon>\n </v-btn>\n </template>\n </v-data-table>\n </v-card>\n <v-card flat>\n <v-card-title>\n <v-row dense>\n <span class="mr-2">Completed Scripts</span>\n <v-spacer />\n <v-btn color="primary" @click="getCompletedScripts">Refresh</v-btn>\n <v-spacer />\n <v-text-field\n v-model="completedSearch"\n class="pt-0 search"\n label="Search"\n prepend-inner-icon="mdi-magnify"\n clearable\n outlined\n dense\n single-line\n hide-details\n />\n </v-row>\n </v-card-title>\n \x3c!-- TODO: This probably needs to be paginated --\x3e\n <v-data-table\n :headers="completedHeaders"\n :items="completedScripts"\n :search="completedSearch"\n dense\n calculate-widths\n multi-sort\n sort-by="start"\n sort-desc\n data-test="completed-scripts"\n :footer-props="{\n itemsPerPageOptions: [5],\n showFirstLastPage: true,\n }"\n >\n <template v-slot:item.download="{ item }">\n <v-btn\n color="primary"\n :disabled="downloadScript"\n :loading="downloadScript && downloadScript.name === item.name"\n @click="downloadScriptLog(item)"\n >\n <span v-if="item.name.includes(\'(\') && item.name.includes(\')\')"\n >Script Report</span\n >\n <span v-else>Script Log</span>\n <v-icon right> mdi-file-download-outline </v-icon>\n <template v-slot:loader>\n <span>Loading...</span>\n </template>\n </v-btn>\n </template>\n </v-data-table>\n </v-card>\n </div>\n</template>\n\n<script>\nimport Api from \'@openc3/tool-common/src/services/api\'\n\nexport default {\n props: {\n tabId: Number,\n curTab: Number,\n connectInNewTab: Boolean,\n },\n data() {\n return {\n downloadScript: null,\n runningSearch: \'\',\n runningScripts: [],\n runningHeaders: [\n {\n text: \'Connect\',\n value: \'connect\',\n sortable: false,\n filterable: false,\n },\n { text: \'Id\', value: \'id\' },\n { text: \'User\', value: \'user\' },\n { text: \'Name\', value: \'name\' },\n { text: \'Start Time\', value: \'start_time\' },\n {\n text: \'Stop\',\n value: \'stop\',\n sortable: false,\n filterable: false,\n },\n {\n text: \'Force Quit\',\n value: \'delete\',\n sortable: false,\n filterable: false,\n },\n ],\n completedSearch: \'\',\n completedScripts: [],\n completedHeaders: [\n { text: \'User\', value: \'user\' },\n { text: \'Name\', value: \'name\' },\n { text: \'Start Time\', value: \'start\' },\n {\n text: \'Download\',\n value: \'download\',\n sortable: false,\n filterable: false,\n },\n ],\n }\n },\n created() {\n this.getRunningScripts()\n this.getCompletedScripts()\n },\n methods: {\n getRunningScripts: function () {\n Api.get(\'/script-api/running-script\').then((response) => {\n this.runningScripts = response.data\n })\n },\n getCompletedScripts: function () {\n // TODO: Support pagination because you could have a lot of completed scripts\n Api.get(\'/script-api/completed-scripts\').then((response) => {\n this.completedScripts = response.data\n })\n },\n connectScript: function (script) {\n // Must disconnect before connecting\n this.$emit(\'disconnect\')\n const destination = {\n name: \'ScriptRunner\',\n params: { id: script.id },\n }\n if (this.connectInNewTab) {\n let { href } = this.$router.resolve(destination)\n window.open(href, \'_blank\')\n } else {\n this.$router.push(destination)\n this.$emit(\'close\')\n }\n },\n stopScript: function (script) {\n this.$dialog\n .confirm(\n `Are you sure you want to stop script: ${script.id} ${script.name}?`,\n {\n okText: \'Stop\',\n cancelText: \'Cancel\',\n },\n )\n .then((dialog) => {\n return Api.post(`/script-api/running-script/${script.id}/stop`)\n })\n .then((response) => {\n this.$notify.normal({\n body: `Stopped script: ${script.id} ${script.name}`,\n })\n this.getRunningScripts()\n })\n .catch((error) => {\n if (error) {\n this.$notify.caution({\n body: `Failed to stop script: ${script.id} ${script.name}`,\n })\n }\n })\n },\n deleteScript: function (script) {\n this.$dialog\n .confirm(\n `Are you sure you want to force quit script: ${script.id} ${script.name}?\\n` +\n \'Did you try to stop the script first to allow the script to stop gracefully?\',\n {\n okText: \'Force Quit\',\n cancelText: \'Cancel\',\n },\n )\n .then((dialog) => {\n return Api.post(`/script-api/running-script/${script.id}/delete`)\n })\n .then((response) => {\n this.$notify.normal({\n body: `Stopped script: ${script.id} ${script.name}`,\n })\n this.getRunningScripts()\n })\n .catch((error) => {\n if (error) {\n this.$notify.caution({\n body: `Failed to stop script: ${script.id} ${script.name}`,\n })\n }\n })\n },\n downloadScriptLog: function (script) {\n this.downloadScript = script\n Api.get(\n `/openc3-api/storage/download/${encodeURIComponent(\n script.log,\n )}?bucket=OPENC3_LOGS_BUCKET`,\n )\n .then((response) => {\n const filenameParts = script.log.split(\'/\')\n const basename = filenameParts[filenameParts.length - 1]\n // Make a link and then \'click\' on it to start the download\n const link = document.createElement(\'a\')\n link.href = response.data.url\n link.setAttribute(\'download\', basename)\n link.click()\n this.downloadScript = null\n })\n .catch(() => {\n this.$notify.caution({\n title: `Unable to download log for ${script.name}`,\n body: `You may be able to download this log manually from the \'logs\' bucket at ${script.log}`,\n })\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ca4d6d72f4f9a98e1289bc4d3fce0a7bca46837e"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return gl=function(){return o},o}gl();const Cl={props:{tabId:Number,curTab:Number,connectInNewTab:Boolean},data(){return gl().f[0]++,gl().s[0]++,{downloadScript:null,runningSearch:"",runningScripts:[],runningHeaders:[{text:"Connect",value:"connect",sortable:!1,filterable:!1},{text:"Id",value:"id"},{text:"User",value:"user"},{text:"Name",value:"name"},{text:"Start Time",value:"start_time"},{text:"Stop",value:"stop",sortable:!1,filterable:!1},{text:"Force Quit",value:"delete",sortable:!1,filterable:!1}],completedSearch:"",completedScripts:[],completedHeaders:[{text:"User",value:"user"},{text:"Name",value:"name"},{text:"Start Time",value:"start"},{text:"Download",value:"download",sortable:!1,filterable:!1}]}},created(){gl().f[1]++,gl().s[1]++,this.getRunningScripts(),gl().s[2]++,this.getCompletedScripts()},methods:{getRunningScripts:function(){gl().f[2]++,gl().s[3]++,r.A.get("/script-api/running-script").then((e=>{gl().f[3]++,gl().s[4]++,this.runningScripts=e.data}))},getCompletedScripts:function(){gl().f[4]++,gl().s[5]++,r.A.get("/script-api/completed-scripts").then((e=>{gl().f[5]++,gl().s[6]++,this.completedScripts=e.data}))},connectScript:function(e){gl().f[6]++,gl().s[7]++,this.$emit("disconnect");const n=(gl().s[8]++,{name:"ScriptRunner",params:{id:e.id}});if(gl().s[9]++,this.connectInNewTab){gl().b[0][0]++;let{href:e}=(gl().s[10]++,this.$router.resolve(n));gl().s[11]++,window.open(e,"_blank")}else gl().b[0][1]++,gl().s[12]++,this.$router.push(n),gl().s[13]++,this.$emit("close")},stopScript:function(e){gl().f[7]++,gl().s[14]++,this.$dialog.confirm(`Are you sure you want to stop script: ${e.id} ${e.name}?`,{okText:"Stop",cancelText:"Cancel"}).then((n=>(gl().f[8]++,gl().s[15]++,r.A.post(`/script-api/running-script/${e.id}/stop`)))).then((n=>{gl().f[9]++,gl().s[16]++,this.$notify.normal({body:`Stopped script: ${e.id} ${e.name}`}),gl().s[17]++,this.getRunningScripts()})).catch((n=>{gl().f[10]++,gl().s[18]++,n?(gl().b[1][0]++,gl().s[19]++,this.$notify.caution({body:`Failed to stop script: ${e.id} ${e.name}`})):gl().b[1][1]++}))},deleteScript:function(e){gl().f[11]++,gl().s[20]++,this.$dialog.confirm(`Are you sure you want to force quit script: ${e.id} ${e.name}?\nDid you try to stop the script first to allow the script to stop gracefully?`,{okText:"Force Quit",cancelText:"Cancel"}).then((n=>(gl().f[12]++,gl().s[21]++,r.A.post(`/script-api/running-script/${e.id}/delete`)))).then((n=>{gl().f[13]++,gl().s[22]++,this.$notify.normal({body:`Stopped script: ${e.id} ${e.name}`}),gl().s[23]++,this.getRunningScripts()})).catch((n=>{gl().f[14]++,gl().s[24]++,n?(gl().b[2][0]++,gl().s[25]++,this.$notify.caution({body:`Failed to stop script: ${e.id} ${e.name}`})):gl().b[2][1]++}))},downloadScriptLog:function(e){gl().f[15]++,gl().s[26]++,this.downloadScript=e,gl().s[27]++,r.A.get(`/openc3-api/storage/download/${encodeURIComponent(e.log)}?bucket=OPENC3_LOGS_BUCKET`).then((n=>{gl().f[16]++;const t=(gl().s[28]++,e.log.split("/")),l=(gl().s[29]++,t[t.length-1]),i=(gl().s[30]++,document.createElement("a"));gl().s[31]++,i.href=n.data.url,gl().s[32]++,i.setAttribute("download",l),gl().s[33]++,i.click(),gl().s[34]++,this.downloadScript=null})).catch((()=>{gl().f[17]++,gl().s[35]++,this.$notify.caution({title:`Unable to download log for ${e.name}`,body:`You may be able to download this log manually from the 'logs' bucket at ${e.log}`})}))}}},bl=Cl;var _l=(0,f.A)(bl,vl,fl,!1,null,null,null);const yl=_l.exports;function wl(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",n="8ad94ff360ede2bac452588147f397e506fa6647",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",statementMap:{0:{start:{line:40,column:20},end:{line:40,column:30}},1:{start:{line:41,column:21},end:{line:41,column:33}},2:{start:{line:42,column:14},end:{line:42,column:21}},3:{start:{line:43,column:11},end:{line:43,column:15}},4:{start:{line:44,column:14},end:{line:44,column:21}},5:{start:{line:45,column:14},end:{line:45,column:21}},6:{start:{line:69,column:4},end:{line:187,column:5}},7:{start:{line:193,column:24},end:{line:193,column:47}},8:{start:{line:194,column:6},end:{line:194,column:39}},9:{start:{line:195,column:6},end:{line:195,column:36}},10:{start:{line:198,column:6},end:{line:200,column:32}},11:{start:{line:203,column:6},end:{line:203,column:67}},12:{start:{line:206,column:6},end:{line:206,column:28}},13:{start:{line:210,column:6},end:{line:210,column:59}},14:{start:{line:210,column:32},end:{line:210,column:59}},15:{start:{line:212,column:6},end:{line:212,column:61}},16:{start:{line:212,column:42},end:{line:212,column:61}},17:{start:{line:213,column:6},end:{line:213,column:59}},18:{start:{line:219,column:6},end:{line:219,column:64}},19:{start:{line:222,column:6},end:{line:435,column:7}},20:{start:{line:231,column:16},end:{line:231,column:30}},21:{start:{line:243,column:20},end:{line:243,column:43}},22:{start:{line:250,column:20},end:{line:250,column:45}},23:{start:{line:260,column:16},end:{line:260,column:31}},24:{start:{line:277,column:16},end:{line:277,column:31}},25:{start:{line:285,column:16},end:{line:285,column:29}},26:{start:{line:296,column:16},end:{line:296,column:31}},27:{start:{line:307,column:16},end:{line:307,column:29}},28:{start:{line:319,column:16},end:{line:319,column:47}},29:{start:{line:327,column:16},end:{line:327,column:50}},30:{start:{line:339,column:16},end:{line:339,column:39}},31:{start:{line:350,column:16},end:{line:350,column:60}},32:{start:{line:358,column:16},end:{line:358,column:54}},33:{start:{line:359,column:16},end:{line:359,column:35}},34:{start:{line:366,column:16},end:{line:366,column:41}},35:{start:{line:377,column:16},end:{line:377,column:34}},36:{start:{line:385,column:16},end:{line:385,column:37}},37:{start:{line:393,column:16},end:{line:393,column:39}},38:{start:{line:401,column:16},end:{line:401,column:36}},39:{start:{line:411,column:16},end:{line:411,column:34}},40:{start:{line:419,column:16},end:{line:419,column:39}},41:{start:{line:430,column:16},end:{line:430,column:43}},42:{start:{line:438,column:6},end:{line:451,column:7}},43:{start:{line:456,column:6},end:{line:456,column:34}},44:{start:{line:457,column:6},end:{line:459,column:7}},45:{start:{line:458,column:8},end:{line:458,column:36}},46:{start:{line:460,column:6},end:{line:460,column:34}},47:{start:{line:463,column:6},end:{line:463,column:36}},48:{start:{line:464,column:6},end:{line:468,column:7}},49:{start:{line:465,column:8},end:{line:465,column:58}},50:{start:{line:467,column:8},end:{line:467,column:58}},51:{start:{line:473,column:4},end:{line:473,column:30}},52:{start:{line:474,column:4},end:{line:474,column:36}},53:{start:{line:477,column:4},end:{line:477,column:36}},54:{start:{line:478,column:4},end:{line:478,column:43}},55:{start:{line:480,column:4},end:{line:482,column:6}},56:{start:{line:481,column:6},end:{line:481,column:41}},57:{start:{line:485,column:4},end:{line:485,column:45}},58:{start:{line:486,column:4},end:{line:486,column:46}},59:{start:{line:488,column:23},end:{line:509,column:5}},60:{start:{line:510,column:27},end:{line:510,column:63}},61:{start:{line:511,column:29},end:{line:511,column:67}},62:{start:{line:512,column:4},end:{line:512,column:46}},63:{start:{line:513,column:4},end:{line:513,column:50}},64:{start:{line:514,column:4},end:{line:514,column:52}},65:{start:{line:515,column:4},end:{line:515,column:37}},66:{start:{line:516,column:4},end:{line:516,column:44}},67:{start:{line:517,column:4},end:{line:517,column:42}},68:{start:{line:518,column:4},end:{line:518,column:60}},69:{start:{line:519,column:4},end:{line:519,column:59}},70:{start:{line:520,column:4},end:{line:520,column:69}},71:{start:{line:521,column:4},end:{line:521,column:45}},72:{start:{line:522,column:4},end:{line:522,column:23}},73:{start:{line:523,column:4},end:{line:523,column:60}},74:{start:{line:527,column:4},end:{line:527,column:60}},75:{start:{line:529,column:27},end:{line:529,column:58}},76:{start:{line:530,column:4},end:{line:533,column:6}},77:{start:{line:531,column:6},end:{line:531,column:46}},78:{start:{line:532,column:6},end:{line:532,column:45}},79:{start:{line:535,column:4},end:{line:535,column:52}},80:{start:{line:536,column:4},end:{line:536,column:47}},81:{start:{line:538,column:4},end:{line:548,column:5}},82:{start:{line:539,column:6},end:{line:539,column:69}},83:{start:{line:541,column:6},end:{line:547,column:9}},84:{start:{line:541,column:47},end:{line:547,column:7}},85:{start:{line:544,column:10},end:{line:544,column:37}},86:{start:{line:545,column:10},end:{line:545,column:33}},87:{start:{line:549,column:4},end:{line:559,column:5}},88:{start:{line:550,column:6},end:{line:550,column:44}},89:{start:{line:551,column:6},end:{line:551,column:29}},90:{start:{line:552,column:11},end:{line:559,column:5}},91:{start:{line:553,column:6},end:{line:553,column:60}},92:{start:{line:555,column:6},end:{line:558,column:7}},93:{start:{line:556,column:8},end:{line:556,column:63}},94:{start:{line:557,column:8},end:{line:557,column:36}},95:{start:{line:573,column:4},end:{line:575,column:11}},96:{start:{line:574,column:6},end:{line:574,column:28}},97:{start:{line:578,column:4},end:{line:578,column:25}},98:{start:{line:579,column:4},end:{line:579,column:34}},99:{start:{line:582,column:4},end:{line:582,column:21}},100:{start:{line:583,column:4},end:{line:585,column:5}},101:{start:{line:584,column:6},end:{line:584,column:40}},102:{start:{line:586,column:4},end:{line:589,column:5}},103:{start:{line:587,column:6},end:{line:587,column:37}},104:{start:{line:588,column:6},end:{line:588,column:30}},105:{start:{line:590,column:4},end:{line:590,column:27}},106:{start:{line:593,column:4},end:{line:597,column:5}},107:{start:{line:594,column:6},end:{line:594,column:56}},108:{start:{line:596,column:6},end:{line:596,column:12}},109:{start:{line:601,column:6},end:{line:604,column:7}},110:{start:{line:602,column:8},end:{line:602,column:39}},111:{start:{line:603,column:8},end:{line:603,column:32}},112:{start:{line:605,column:6},end:{line:605,column:36}},113:{start:{line:608,column:6},end:{line:622,column:8}},114:{start:{line:610,column:8},end:{line:620,column:10}},115:{start:{line:611,column:10},end:{line:619,column:11}},116:{start:{line:621,column:8},end:{line:621,column:38}},117:{start:{line:625,column:16},end:{line:625,column:42}},118:{start:{line:626,column:31},end:{line:628,column:26}},119:{start:{line:630,column:17},end:{line:633,column:27}},120:{start:{line:631,column:23},end:{line:631,column:42}},121:{start:{line:632,column:23},end:{line:632,column:35}},122:{start:{line:634,column:18},end:{line:634,column:63}},123:{start:{line:635,column:33},end:{line:644,column:7}},124:{start:{line:636,column:8},end:{line:636,column:37}},125:{start:{line:638,column:8},end:{line:643,column:9}},126:{start:{line:639,column:10},end:{line:642,column:12}},127:{start:{line:645,column:6},end:{line:645,column:60}},128:{start:{line:647,column:33},end:{line:649,column:28}},129:{start:{line:650,column:28},end:{line:652,column:23}},130:{start:{line:653,column:21},end:{line:653,column:66}},131:{start:{line:654,column:17},end:{line:660,column:7}},132:{start:{line:655,column:8},end:{line:655,column:50}},133:{start:{line:656,column:8},end:{line:656,column:50}},134:{start:{line:657,column:8},end:{line:657,column:47}},135:{start:{line:658,column:8},end:{line:658,column:42}},136:{start:{line:659,column:8},end:{line:659,column:62}},137:{start:{line:661,column:21},end:{line:661,column:54}},138:{start:{line:662,column:6},end:{line:663,column:7}},139:{start:{line:663,column:7},end:{line:665,column:29}},140:{start:{line:664,column:8},end:{line:664,column:36}},141:{start:{line:666,column:6},end:{line:666,column:17}},142:{start:{line:669,column:16},end:{line:669,column:42}},143:{start:{line:670,column:33},end:{line:672,column:28}},144:{start:{line:674,column:17},end:{line:677,column:27}},145:{start:{line:675,column:23},end:{line:675,column:42}},146:{start:{line:676,column:23},end:{line:676,column:35}},147:{start:{line:678,column:18},end:{line:678,column:63}},148:{start:{line:679,column:33},end:{line:688,column:7}},149:{start:{line:680,column:8},end:{line:680,column:39}},150:{start:{line:682,column:8},end:{line:687,column:9}},151:{start:{line:683,column:10},end:{line:686,column:12}},152:{start:{line:689,column:6},end:{line:689,column:62}},153:{start:{line:691,column:33},end:{line:693,column:28}},154:{start:{line:694,column:28},end:{line:696,column:23}},155:{start:{line:697,column:21},end:{line:697,column:70}},156:{start:{line:698,column:17},end:{line:704,column:7}},157:{start:{line:699,column:8},end:{line:699,column:50}},158:{start:{line:700,column:8},end:{line:700,column:50}},159:{start:{line:701,column:8},end:{line:701,column:47}},160:{start:{line:702,column:8},end:{line:702,column:42}},161:{start:{line:703,column:8},end:{line:703,column:62}},162:{start:{line:705,column:23},end:{line:705,column:58}},163:{start:{line:706,column:6},end:{line:707,column:7}},164:{start:{line:707,column:7},end:{line:709,column:29}},165:{start:{line:708,column:8},end:{line:708,column:36}},166:{start:{line:710,column:6},end:{line:710,column:17}},167:{start:{line:714,column:6},end:{line:723,column:7}},168:{start:{line:715,column:8},end:{line:715,column:39}},169:{start:{line:716,column:8},end:{line:716,column:31}},170:{start:{line:717,column:13},end:{line:723,column:7}},171:{start:{line:721,column:8},end:{line:721,column:40}},172:{start:{line:722,column:8},end:{line:722,column:31}},173:{start:{line:729,column:6},end:{line:729,column:39}},174:{start:{line:730,column:6},end:{line:730,column:56}},175:{start:{line:731,column:6},end:{line:731,column:39}},176:{start:{line:732,column:6},end:{line:732,column:34}},177:{start:{line:733,column:6},end:{line:733,column:29}},178:{start:{line:734,column:6},end:{line:743,column:7}},179:{start:{line:744,column:6},end:{line:744,column:55}},180:{start:{line:747,column:6},end:{line:763,column:8}},181:{start:{line:748,column:34},end:{line:750,column:9}},182:{start:{line:749,column:17},end:{line:749,column:38}},183:{start:{line:751,column:8},end:{line:762,column:9}},184:{start:{line:752,column:10},end:{line:752,column:48}},185:{start:{line:753,column:10},end:{line:753,column:30}},186:{start:{line:754,column:10},end:{line:754,column:32}},187:{start:{line:755,column:10},end:{line:755,column:48}},188:{start:{line:757,column:10},end:{line:760,column:12}},189:{start:{line:761,column:10},end:{line:761,column:33}},190:{start:{line:766,column:6},end:{line:778,column:8}},191:{start:{line:767,column:8},end:{line:771,column:9}},192:{start:{line:768,column:10},end:{line:768,column:39}},193:{start:{line:769,column:10},end:{line:769,column:33}},194:{start:{line:770,column:10},end:{line:770,column:58}},195:{start:{line:772,column:8},end:{line:775,column:9}},196:{start:{line:773,column:10},end:{line:773,column:47}},197:{start:{line:774,column:10},end:{line:774,column:36}},198:{start:{line:777,column:8},end:{line:777,column:65}},199:{start:{line:781,column:6},end:{line:781,column:31}},200:{start:{line:782,column:6},end:{line:782,column:31}},201:{start:{line:783,column:6},end:{line:783,column:38}},202:{start:{line:786,column:20},end:{line:786,column:55}},203:{start:{line:787,column:19},end:{line:789,column:19}},204:{start:{line:790,column:26},end:{line:792,column:34}},205:{start:{line:791,column:25},end:{line:791,column:37}},206:{start:{line:792,column:22},end:{line:792,column:33}},207:{start:{line:793,column:6},end:{line:793,column:41}},208:{start:{line:796,column:19},end:{line:796,column:48}},209:{start:{line:797,column:20},end:{line:797,column:51}},210:{start:{line:798,column:26},end:{line:800,column:44}},211:{start:{line:799,column:25},end:{line:799,column:71}},212:{start:{line:800,column:22},end:{line:800,column:43}},213:{start:{line:801,column:6},end:{line:801,column:41}},214:{start:{line:804,column:22},end:{line:804,column:56}},215:{start:{line:807,column:8},end:{line:810,column:28}},216:{start:{line:811,column:6},end:{line:826,column:10}},217:{start:{line:818,column:10},end:{line:822,column:12}},218:{start:{line:825,column:10},end:{line:825,column:61}},219:{start:{line:829,column:6},end:{line:829,column:44}},220:{start:{line:833,column:6},end:{line:840,column:7}},221:{start:{line:834,column:20},end:{line:834,column:52}},222:{start:{line:835,column:8},end:{line:839,column:9}},223:{start:{line:836,column:10},end:{line:836,column:52}},224:{start:{line:838,column:10},end:{line:838,column:50}},225:{start:{line:843,column:6},end:{line:845,column:7}},226:{start:{line:844,column:8},end:{line:844,column:14}},227:{start:{line:846,column:27},end:{line:850,column:7}},228:{start:{line:848,column:10},end:{line:849,column:32}},229:{start:{line:851,column:25},end:{line:851,column:27}},230:{start:{line:852,column:19},end:{line:852,column:20}},231:{start:{line:853,column:6},end:{line:864,column:7}},232:{start:{line:855,column:10},end:{line:855,column:42}},233:{start:{line:856,column:10},end:{line:856,column:32}},234:{start:{line:857,column:10},end:{line:857,column:15}},235:{start:{line:859,column:10},end:{line:859,column:43}},236:{start:{line:860,column:10},end:{line:862,column:11}},237:{start:{line:861,column:21},end:{line:861,column:43}},238:{start:{line:863,column:10},end:{line:863,column:15}},239:{start:{line:865,column:6},end:{line:870,column:8}},240:{start:{line:866,column:8},end:{line:866,column:36}},241:{start:{line:867,column:8},end:{line:869,column:9}},242:{start:{line:868,column:10},end:{line:868,column:45}},243:{start:{line:873,column:6},end:{line:876,column:33}},244:{start:{line:875,column:34},end:{line:875,column:51}},245:{start:{line:879,column:6},end:{line:879,column:29}},246:{start:{line:880,column:6},end:{line:882,column:8}},247:{start:{line:881,column:8},end:{line:881,column:53}},248:{start:{line:885,column:6},end:{line:895,column:10}},249:{start:{line:891,column:10},end:{line:891,column:65}},250:{start:{line:894,column:10},end:{line:894,column:33}},251:{start:{line:898,column:6},end:{line:902,column:7}},252:{start:{line:899,column:8},end:{line:899,column:40}},253:{start:{line:901,column:8},end:{line:901,column:37}},254:{start:{line:906,column:6},end:{line:908,column:7}},255:{start:{line:907,column:8},end:{line:907,column:14}},256:{start:{line:911,column:6},end:{line:922,column:7}},257:{start:{line:915,column:8},end:{line:921,column:9}},258:{start:{line:916,column:10},end:{line:916,column:32}},259:{start:{line:917,column:10},end:{line:917,column:23}},260:{start:{line:919,column:10},end:{line:919,column:32}},261:{start:{line:920,column:10},end:{line:920,column:31}},262:{start:{line:926,column:6},end:{line:928,column:7}},263:{start:{line:927,column:8},end:{line:927,column:14}},264:{start:{line:929,column:6},end:{line:933,column:7}},265:{start:{line:930,column:8},end:{line:930,column:31}},266:{start:{line:932,column:8},end:{line:932,column:30}},267:{start:{line:936,column:6},end:{line:954,column:10}},268:{start:{line:939,column:26},end:{line:939,column:28}},269:{start:{line:940,column:10},end:{line:945,column:11}},270:{start:{line:941,column:32},end:{line:943,column:28}},271:{start:{line:942,column:32},end:{line:942,column:73}},272:{start:{line:944,column:12},end:{line:944,column:107}},273:{start:{line:946,column:10},end:{line:949,column:11}},274:{start:{line:947,column:12},end:{line:948,column:86}},275:{start:{line:950,column:10},end:{line:952,column:11}},276:{start:{line:951,column:12},end:{line:951,column:65}},277:{start:{line:953,column:10},end:{line:953,column:62}},278:{start:{line:957,column:6},end:{line:957,column:37}},279:{start:{line:958,column:6},end:{line:958,column:35}},280:{start:{line:959,column:6},end:{line:959,column:29}},281:{start:{line:960,column:6},end:{line:960,column:38}},282:{start:{line:961,column:6},end:{line:961,column:30}},283:{start:{line:962,column:6},end:{line:962,column:34}},284:{start:{line:963,column:6},end:{line:963,column:31}},285:{start:{line:964,column:6},end:{line:964,column:35}},286:{start:{line:967,column:6},end:{line:967,column:24}},287:{start:{line:968,column:6},end:{line:981,column:10}},288:{start:{line:973,column:32},end:{line:973,column:51}},289:{start:{line:980,column:10},end:{line:980,column:42}},290:{start:{line:985,column:6},end:{line:985,column:28}},291:{start:{line:986,column:6},end:{line:986,column:24}},292:{start:{line:987,column:6},end:{line:987,column:26}},293:{start:{line:988,column:6},end:{line:988,column:33}},294:{start:{line:989,column:6},end:{line:989,column:21}},295:{start:{line:991,column:6},end:{line:994,column:7}},296:{start:{line:992,column:8},end:{line:992,column:45}},297:{start:{line:993,column:8},end:{line:993,column:32}},298:{start:{line:995,column:6},end:{line:995,column:36}},299:{start:{line:997,column:6},end:{line:997,column:29}},300:{start:{line:1e3,column:6},end:{line:1e3,column:50}},301:{start:{line:1001,column:6},end:{line:1001,column:36}},302:{start:{line:1004,column:6},end:{line:1004,column:38}},303:{start:{line:1005,column:6},end:{line:1005,column:34}},304:{start:{line:1006,column:6},end:{line:1006,column:37}},305:{start:{line:1008,column:6},end:{line:1008,column:47}},306:{start:{line:1009,column:6},end:{line:1009,column:30}},307:{start:{line:1010,column:6},end:{line:1010,column:38}},308:{start:{line:1011,column:6},end:{line:1011,column:30}},309:{start:{line:1014,column:6},end:{line:1014,column:40}},310:{start:{line:1017,column:6},end:{line:1017,column:18}},311:{start:{line:1023,column:6},end:{line:1023,column:28}},312:{start:{line:1024,column:6},end:{line:1024,column:34}},313:{start:{line:1025,column:6},end:{line:1025,column:30}},314:{start:{line:1026,column:21},end:{line:1026,column:34}},315:{start:{line:1027,column:6},end:{line:1030,column:7}},316:{start:{line:1029,column:8},end:{line:1029,column:36}},317:{start:{line:1031,column:16},end:{line:1031,column:53}},318:{start:{line:1032,column:6},end:{line:1034,column:7}},319:{start:{line:1033,column:8},end:{line:1033,column:28}},320:{start:{line:1035,column:17},end:{line:1037,column:7}},321:{start:{line:1038,column:6},end:{line:1040,column:7}},322:{start:{line:1039,column:8},end:{line:1039,column:35}},323:{start:{line:1041,column:6},end:{line:1047,column:10}},324:{start:{line:1043,column:10},end:{line:1043,column:41}},325:{start:{line:1046,column:10},end:{line:1046,column:31}},326:{start:{line:1052,column:6},end:{line:1052,column:48}},327:{start:{line:1053,column:6},end:{line:1053,column:48}},328:{start:{line:1054,column:6},end:{line:1054,column:64}},329:{start:{line:1057,column:6},end:{line:1062,column:7}},330:{start:{line:1058,column:8},end:{line:1058,column:69}},331:{start:{line:1060,column:8},end:{line:1060,column:39}},332:{start:{line:1061,column:8},end:{line:1061,column:69}},333:{start:{line:1068,column:6},end:{line:1073,column:7}},334:{start:{line:1069,column:8},end:{line:1069,column:31}},335:{start:{line:1070,column:8},end:{line:1070,column:29}},336:{start:{line:1072,column:8},end:{line:1072,column:68}},337:{start:{line:1076,column:6},end:{line:1076,column:66}},338:{start:{line:1079,column:6},end:{line:1108,column:7}},339:{start:{line:1080,column:8},end:{line:1107,column:9}},340:{start:{line:1083,column:10},end:{line:1083,column:64}},341:{start:{line:1086,column:10},end:{line:1101,column:14}},342:{start:{line:1090,column:14},end:{line:1093,column:15}},343:{start:{line:1094,column:14},end:{line:1094,column:73}},344:{start:{line:1095,column:14},end:{line:1095,column:52}},345:{start:{line:1096,column:14},end:{line:1096,column:41}},346:{start:{line:1100,column:14},end:{line:1100,column:46}},347:{start:{line:1103,column:10},end:{line:1103,column:46}},348:{start:{line:1104,column:10},end:{line:1104,column:65}},349:{start:{line:1105,column:10},end:{line:1105,column:48}},350:{start:{line:1106,column:10},end:{line:1106,column:38}},351:{start:{line:1109,column:6},end:{line:1109,column:29}},352:{start:{line:1110,column:22},end:{line:1110,column:54}},353:{start:{line:1111,column:6},end:{line:1164,column:7}},354:{start:{line:1113,column:10},end:{line:1113,column:40}},355:{start:{line:1114,column:10},end:{line:1114,column:43}},356:{start:{line:1115,column:10},end:{line:1115,column:35}},357:{start:{line:1116,column:10},end:{line:1116,column:41}},358:{start:{line:1118,column:10},end:{line:1118,column:33}},359:{start:{line:1119,column:10},end:{line:1123,column:11}},360:{start:{line:1124,column:10},end:{line:1124,column:44}},361:{start:{line:1125,column:10},end:{line:1125,column:57}},362:{start:{line:1126,column:10},end:{line:1126,column:15}},363:{start:{line:1128,column:10},end:{line:1128,column:27}},364:{start:{line:1131,column:10},end:{line:1131,column:41}},365:{start:{line:1136,column:10},end:{line:1142,column:11}},366:{start:{line:1137,column:12},end:{line:1137,column:41}},367:{start:{line:1138,column:12},end:{line:1138,column:44}},368:{start:{line:1140,column:12},end:{line:1140,column:42}},369:{start:{line:1141,column:12},end:{line:1141,column:45}},370:{start:{line:1143,column:10},end:{line:1143,column:35}},371:{start:{line:1144,column:25},end:{line:1146,column:11}},372:{start:{line:1145,column:21},end:{line:1145,column:65}},373:{start:{line:1147,column:10},end:{line:1160,column:11}},374:{start:{line:1148,column:12},end:{line:1148,column:35}},375:{start:{line:1149,column:23},end:{line:1149,column:58}},376:{start:{line:1150,column:12},end:{line:1154,column:13}},377:{start:{line:1155,column:12},end:{line:1155,column:38}},378:{start:{line:1157,column:12},end:{line:1159,column:13}},379:{start:{line:1158,column:14},end:{line:1158,column:53}},380:{start:{line:1161,column:10},end:{line:1161,column:15}},381:{start:{line:1163,column:10},end:{line:1163,column:15}},382:{start:{line:1167,column:18},end:{line:1167,column:19}},383:{start:{line:1168,column:6},end:{line:1284,column:7}},384:{start:{line:1169,column:8},end:{line:1169,column:18}},385:{start:{line:1172,column:20},end:{line:1172,column:21}},386:{start:{line:1173,column:8},end:{line:1283,column:9}},387:{start:{line:1175,column:12},end:{line:1175,column:73}},388:{start:{line:1176,column:12},end:{line:1176,column:62}},389:{start:{line:1177,column:12},end:{line:1179,column:13}},390:{start:{line:1178,column:14},end:{line:1178,column:52}},391:{start:{line:1180,column:12},end:{line:1180,column:17}},392:{start:{line:1187,column:12},end:{line:1187,column:34}},393:{start:{line:1188,column:12},end:{line:1188,column:17}},394:{start:{line:1192,column:12},end:{line:1200,column:13}},395:{start:{line:1193,column:14},end:{line:1199,column:15}},396:{start:{line:1194,column:16},end:{line:1198,column:17}},397:{start:{line:1195,column:18},end:{line:1195,column:58}},398:{start:{line:1197,column:18},end:{line:1197,column:55}},399:{start:{line:1201,column:12},end:{line:1203,column:13}},400:{start:{line:1202,column:14},end:{line:1202,column:33}},401:{start:{line:1204,column:12},end:{line:1204,column:17}},402:{start:{line:1206,column:12},end:{line:1206,column:35}},403:{start:{line:1207,column:12},end:{line:1207,column:17}},404:{start:{line:1209,column:12},end:{line:1209,column:43}},405:{start:{line:1210,column:12},end:{line:1210,column:36}},406:{start:{line:1211,column:12},end:{line:1211,column:17}},407:{start:{line:1214,column:12},end:{line:1217,column:13}},408:{start:{line:1215,column:14},end:{line:1215,column:37}},409:{start:{line:1216,column:14},end:{line:1216,column:35}},410:{start:{line:1218,column:12},end:{line:1218,column:17}},411:{start:{line:1220,column:12},end:{line:1220,column:33}},412:{start:{line:1221,column:12},end:{line:1221,column:17}},413:{start:{line:1223,column:24},end:{line:1223,column:29}},414:{start:{line:1224,column:29},end:{line:1224,column:31}},415:{start:{line:1225,column:12},end:{line:1235,column:13}},416:{start:{line:1226,column:14},end:{line:1233,column:15}},417:{start:{line:1230,column:16},end:{line:1230,column:35}},418:{start:{line:1231,column:16},end:{line:1231,column:28}},419:{start:{line:1232,column:16},end:{line:1232,column:21}},420:{start:{line:1234,column:14},end:{line:1234,column:24}},421:{start:{line:1236,column:12},end:{line:1236,column:61}},422:{start:{line:1237,column:12},end:{line:1237,column:61}},423:{start:{line:1238,column:12},end:{line:1238,column:64}},424:{start:{line:1239,column:12},end:{line:1243,column:13}},425:{start:{line:1240,column:14},end:{line:1240,column:51}},426:{start:{line:1242,column:14},end:{line:1242,column:46}},427:{start:{line:1244,column:12},end:{line:1248,column:13}},428:{start:{line:1245,column:14},end:{line:1245,column:50}},429:{start:{line:1247,column:14},end:{line:1247,column:45}},430:{start:{line:1249,column:12},end:{line:1249,column:64}},431:{start:{line:1250,column:12},end:{line:1255,column:13}},432:{start:{line:1251,column:14},end:{line:1251,column:59}},433:{start:{line:1252,column:14},end:{line:1252,column:70}},434:{start:{line:1254,column:14},end:{line:1254,column:56}},435:{start:{line:1256,column:12},end:{line:1256,column:17}},436:{start:{line:1258,column:12},end:{line:1267,column:13}},437:{start:{line:1259,column:14},end:{line:1265,column:15}},438:{start:{line:1263,column:16},end:{line:1263,column:45}},439:{start:{line:1264,column:16},end:{line:1264,column:21}},440:{start:{line:1266,column:14},end:{line:1266,column:24}},441:{start:{line:1268,column:12},end:{line:1268,column:17}},442:{start:{line:1270,column:12},end:{line:1270,column:29}},443:{start:{line:1271,column:12},end:{line:1271,column:17}},444:{start:{line:1274,column:25},end:{line:1274,column:52}},445:{start:{line:1275,column:12},end:{line:1275,column:57}},446:{start:{line:1276,column:12},end:{line:1276,column:56}},447:{start:{line:1277,column:12},end:{line:1277,column:24}},448:{start:{line:1278,column:12},end:{line:1278,column:17}},449:{start:{line:1282,column:12},end:{line:1282,column:17}},450:{start:{line:1287,column:6},end:{line:1287,column:42}},451:{start:{line:1290,column:6},end:{line:1290,column:29}},452:{start:{line:1291,column:6},end:{line:1291,column:36}},453:{start:{line:1294,column:6},end:{line:1294,column:30}},454:{start:{line:1295,column:6},end:{line:1302,column:8}},455:{start:{line:1305,column:6},end:{line:1310,column:7}},456:{start:{line:1306,column:8},end:{line:1306,column:32}},457:{start:{line:1307,column:8},end:{line:1307,column:32}},458:{start:{line:1308,column:8},end:{line:1308,column:29}},459:{start:{line:1309,column:8},end:{line:1309,column:14}},460:{start:{line:1311,column:6},end:{line:1311,column:42}},461:{start:{line:1312,column:6},end:{line:1312,column:38}},462:{start:{line:1313,column:6},end:{line:1313,column:39}},463:{start:{line:1314,column:6},end:{line:1314,column:34}},464:{start:{line:1315,column:6},end:{line:1315,column:31}},465:{start:{line:1316,column:6},end:{line:1316,column:30}},466:{start:{line:1317,column:6},end:{line:1317,column:30}},467:{start:{line:1318,column:6},end:{line:1318,column:33}},468:{start:{line:1319,column:6},end:{line:1454,column:7}},469:{start:{line:1323,column:10},end:{line:1323,column:33}},470:{start:{line:1324,column:10},end:{line:1324,column:40}},471:{start:{line:1325,column:10},end:{line:1325,column:35}},472:{start:{line:1326,column:10},end:{line:1326,column:42}},473:{start:{line:1328,column:10},end:{line:1333,column:11}},474:{start:{line:1329,column:12},end:{line:1329,column:54}},475:{start:{line:1330,column:17},end:{line:1333,column:11}},476:{start:{line:1332,column:12},end:{line:1332,column:43}},477:{start:{line:1335,column:10},end:{line:1337,column:11}},478:{start:{line:1336,column:12},end:{line:1336,column:36}},479:{start:{line:1338,column:10},end:{line:1357,column:11}},480:{start:{line:1339,column:12},end:{line:1339,column:33}},481:{start:{line:1340,column:12},end:{line:1356,column:13}},482:{start:{line:1341,column:14},end:{line:1347,column:16}},483:{start:{line:1349,column:14},end:{line:1355,column:16}},484:{start:{line:1358,column:10},end:{line:1358,column:30}},485:{start:{line:1359,column:10},end:{line:1359,column:15}},486:{start:{line:1361,column:10},end:{line:1361,column:49}},487:{start:{line:1362,column:10},end:{line:1362,column:97}},488:{start:{line:1363,column:10},end:{line:1365,column:11}},489:{start:{line:1364,column:12},end:{line:1364,column:53}},490:{start:{line:1366,column:10},end:{line:1366,column:40}},491:{start:{line:1367,column:10},end:{line:1367,column:65}},492:{start:{line:1368,column:10},end:{line:1368,column:58}},493:{start:{line:1369,column:10},end:{line:1369,column:33}},494:{start:{line:1370,column:10},end:{line:1370,column:15}},495:{start:{line:1372,column:10},end:{line:1374,column:11}},496:{start:{line:1373,column:12},end:{line:1373,column:58}},497:{start:{line:1375,column:10},end:{line:1377,column:11}},498:{start:{line:1376,column:12},end:{line:1376,column:53}},499:{start:{line:1378,column:10},end:{line:1378,column:44}},500:{start:{line:1379,column:10},end:{line:1379,column:61}},501:{start:{line:1380,column:10},end:{line:1380,column:58}},502:{start:{line:1381,column:10},end:{line:1381,column:33}},503:{start:{line:1382,column:10},end:{line:1382,column:15}},504:{start:{line:1384,column:10},end:{line:1386,column:11}},505:{start:{line:1385,column:12},end:{line:1385,column:58}},506:{start:{line:1387,column:10},end:{line:1389,column:11}},507:{start:{line:1388,column:12},end:{line:1388,column:53}},508:{start:{line:1390,column:10},end:{line:1392,column:11}},509:{start:{line:1391,column:12},end:{line:1391,column:39}},510:{start:{line:1393,column:10},end:{line:1393,column:44}},511:{start:{line:1394,column:10},end:{line:1396,column:12}},512:{start:{line:1395,column:12},end:{line:1395,column:59}},513:{start:{line:1397,column:10},end:{line:1397,column:38}},514:{start:{line:1398,column:10},end:{line:1398,column:58}},515:{start:{line:1399,column:10},end:{line:1399,column:33}},516:{start:{line:1400,column:10},end:{line:1400,column:15}},517:{start:{line:1403,column:10},end:{line:1405,column:11}},518:{start:{line:1404,column:12},end:{line:1404,column:58}},519:{start:{line:1406,column:10},end:{line:1408,column:11}},520:{start:{line:1407,column:12},end:{line:1407,column:53}},521:{start:{line:1409,column:10},end:{line:1409,column:44}},522:{start:{line:1410,column:10},end:{line:1412,column:12}},523:{start:{line:1411,column:12},end:{line:1411,column:59}},524:{start:{line:1413,column:10},end:{line:1415,column:11}},525:{start:{line:1414,column:12},end:{line:1414,column:43}},526:{start:{line:1416,column:10},end:{line:1416,column:58}},527:{start:{line:1417,column:10},end:{line:1417,column:33}},528:{start:{line:1418,column:10},end:{line:1418,column:15}},529:{start:{line:1420,column:10},end:{line:1420,column:47}},530:{start:{line:1421,column:10},end:{line:1421,column:43}},531:{start:{line:1422,column:10},end:{line:1422,column:38}},532:{start:{line:1423,column:10},end:{line:1423,column:15}},533:{start:{line:1425,column:10},end:{line:1434,column:11}},534:{start:{line:1426,column:12},end:{line:1426,column:43}},535:{start:{line:1427,column:12},end:{line:1433,column:14}},536:{start:{line:1435,column:10},end:{line:1435,column:29}},537:{start:{line:1436,column:10},end:{line:1436,column:15}},538:{start:{line:1439,column:10},end:{line:1439,column:40}},539:{start:{line:1440,column:10},end:{line:1440,column:42}},540:{start:{line:1441,column:10},end:{line:1443,column:11}},541:{start:{line:1442,column:12},end:{line:1442,column:49}},542:{start:{line:1444,column:10},end:{line:1446,column:11}},543:{start:{line:1445,column:12},end:{line:1445,column:37}},544:{start:{line:1447,column:10},end:{line:1447,column:31}},545:{start:{line:1448,column:10},end:{line:1448,column:15}},546:{start:{line:1453,column:10},end:{line:1453,column:15}},547:{start:{line:1457,column:6},end:{line:1457,column:28}},548:{start:{line:1460,column:22},end:{line:1460,column:30}},549:{start:{line:1461,column:6},end:{line:1478,column:7}},550:{start:{line:1462,column:8},end:{line:1462,column:22}},551:{start:{line:1463,column:8},end:{line:1477,column:10}},552:{start:{line:1464,column:10},end:{line:1464,column:35}},553:{start:{line:1466,column:45},end:{line:1470,column:11}},554:{start:{line:1473,column:27},end:{line:1476,column:12}},555:{start:{line:1479,column:6},end:{line:1485,column:8}},556:{start:{line:1488,column:6},end:{line:1488,column:30}},557:{start:{line:1489,column:6},end:{line:1489,column:40}},558:{start:{line:1490,column:6},end:{line:1490,column:27}},559:{start:{line:1494,column:6},end:{line:1494,column:23}},560:{start:{line:1495,column:6},end:{line:1495,column:34}},561:{start:{line:1496,column:6},end:{line:1496,column:33}},562:{start:{line:1497,column:6},end:{line:1497,column:30}},563:{start:{line:1498,column:6},end:{line:1498,column:21}},564:{start:{line:1499,column:6},end:{line:1499,column:38}},565:{start:{line:1500,column:6},end:{line:1500,column:29}},566:{start:{line:1501,column:6},end:{line:1501,column:28}},567:{start:{line:1502,column:6},end:{line:1502,column:30}},568:{start:{line:1503,column:6},end:{line:1503,column:36}},569:{start:{line:1504,column:6},end:{line:1504,column:30}},570:{start:{line:1505,column:6},end:{line:1510,column:27}},571:{start:{line:1511,column:6},end:{line:1511,column:38}},572:{start:{line:1514,column:6},end:{line:1514,column:20}},573:{start:{line:1515,column:6},end:{line:1555,column:2}},574:{start:{line:1556,column:6},end:{line:1556,column:33}},575:{start:{line:1559,column:6},end:{line:1559,column:20}},576:{start:{line:1560,column:6},end:{line:1598,column:2}},577:{start:{line:1599,column:6},end:{line:1599,column:33}},578:{start:{line:1603,column:18},end:{line:1603,column:68}},579:{start:{line:1603,column:47},end:{line:1603,column:67}},580:{start:{line:1604,column:6},end:{line:1606,column:7}},581:{start:{line:1605,column:8},end:{line:1605,column:36}},582:{start:{line:1608,column:6},end:{line:1615,column:8}},583:{start:{line:1612,column:10},end:{line:1612,column:37}},584:{start:{line:1613,column:10},end:{line:1613,column:33}},585:{start:{line:1616,column:6},end:{line:1618,column:7}},586:{start:{line:1617,column:8},end:{line:1617,column:25}},587:{start:{line:1620,column:6},end:{line:1620,column:73}},588:{start:{line:1623,column:6},end:{line:1623,column:75}},589:{start:{line:1623,column:50},end:{line:1623,column:74}},590:{start:{line:1624,column:6},end:{line:1624,column:73}},591:{start:{line:1625,column:6},end:{line:1627,column:7}},592:{start:{line:1626,column:8},end:{line:1626,column:58}},593:{start:{line:1630,column:6},end:{line:1630,column:26}},594:{start:{line:1635,column:6},end:{line:1635,column:30}},595:{start:{line:1636,column:6},end:{line:1636,column:35}},596:{start:{line:1637,column:6},end:{line:1671,column:10}},597:{start:{line:1644,column:23},end:{line:1647,column:11}},598:{start:{line:1648,column:10},end:{line:1650,column:11}},599:{start:{line:1649,column:12},end:{line:1649,column:61}},600:{start:{line:1651,column:10},end:{line:1653,column:11}},601:{start:{line:1652,column:12},end:{line:1652,column:47}},602:{start:{line:1654,column:10},end:{line:1656,column:11}},603:{start:{line:1655,column:12},end:{line:1655,column:51}},604:{start:{line:1657,column:25},end:{line:1657,column:45}},605:{start:{line:1658,column:30},end:{line:1658,column:55}},606:{start:{line:1659,column:10},end:{line:1659,column:59}},607:{start:{line:1660,column:10},end:{line:1660,column:33}},608:{start:{line:1663,column:10},end:{line:1668,column:11}},609:{start:{line:1664,column:12},end:{line:1667,column:14}},610:{start:{line:1669,column:10},end:{line:1669,column:46}},611:{start:{line:1670,column:10},end:{line:1670,column:24}},612:{start:{line:1675,column:6},end:{line:1675,column:21}},613:{start:{line:1677,column:24},end:{line:1677,column:47}},614:{start:{line:1678,column:6},end:{line:1684,column:7}},615:{start:{line:1680,column:8},end:{line:1683,column:9}},616:{start:{line:1681,column:10},end:{line:1681,column:27}},617:{start:{line:1682,column:10},end:{line:1682,column:32}},618:{start:{line:1685,column:6},end:{line:1685,column:33}},619:{start:{line:1687,column:6},end:{line:1695,column:27}},620:{start:{line:1701,column:18},end:{line:1701,column:42}},621:{start:{line:1702,column:6},end:{line:1702,column:60}},622:{start:{line:1704,column:6},end:{line:1708,column:7}},623:{start:{line:1705,column:8},end:{line:1705,column:58}},624:{start:{line:1707,column:8},end:{line:1707,column:56}},625:{start:{line:1709,column:6},end:{line:1709,column:33}},626:{start:{line:1710,column:6},end:{line:1710,column:49}},627:{start:{line:1711,column:6},end:{line:1711,column:46}},628:{start:{line:1712,column:6},end:{line:1712,column:39}},629:{start:{line:1713,column:6},end:{line:1713,column:28}},630:{start:{line:1714,column:6},end:{line:1714,column:30}},631:{start:{line:1715,column:6},end:{line:1715,column:37}},632:{start:{line:1717,column:6},end:{line:1724,column:7}},633:{start:{line:1718,column:8},end:{line:1718,column:31}},634:{start:{line:1719,column:8},end:{line:1719,column:35}},635:{start:{line:1720,column:8},end:{line:1720,column:37}},636:{start:{line:1722,column:8},end:{line:1722,column:32}},637:{start:{line:1723,column:8},end:{line:1723,column:38}},638:{start:{line:1725,column:6},end:{line:1728,column:7}},639:{start:{line:1726,column:8},end:{line:1726,column:36}},640:{start:{line:1727,column:8},end:{line:1727,column:34}},641:{start:{line:1730,column:6},end:{line:1730,column:54}},642:{start:{line:1733,column:6},end:{line:1735,column:7}},643:{start:{line:1734,column:19},end:{line:1734,column:52}},644:{start:{line:1736,column:6},end:{line:1736,column:73}},645:{start:{line:1739,column:23},end:{line:1739,column:62}},646:{start:{line:1740,column:25},end:{line:1740,column:58}},647:{start:{line:1741,column:23},end:{line:1741,column:50}},648:{start:{line:1742,column:25},end:{line:1744,column:7}},649:{start:{line:1745,column:25},end:{line:1745,column:44}},650:{start:{line:1746,column:17},end:{line:1746,column:39}},651:{start:{line:1747,column:18},end:{line:1747,column:34}},652:{start:{line:1748,column:6},end:{line:1764,column:7}},653:{start:{line:1749,column:8},end:{line:1751,column:9}},654:{start:{line:1750,column:10},end:{line:1750,column:23}},655:{start:{line:1752,column:8},end:{line:1754,column:9}},656:{start:{line:1753,column:10},end:{line:1753,column:25}},657:{start:{line:1755,column:8},end:{line:1757,column:9}},658:{start:{line:1756,column:10},end:{line:1756,column:23}},659:{start:{line:1758,column:8},end:{line:1760,column:9}},660:{start:{line:1759,column:10},end:{line:1759,column:25}},661:{start:{line:1761,column:8},end:{line:1763,column:9}},662:{start:{line:1762,column:10},end:{line:1762,column:25}},663:{start:{line:1765,column:6},end:{line:1765,column:22}},664:{start:{line:1770,column:6},end:{line:1854,column:7}},665:{start:{line:1771,column:28},end:{line:1771,column:52}},666:{start:{line:1772,column:8},end:{line:1804,column:9}},667:{start:{line:1773,column:10},end:{line:1803,column:11}},668:{start:{line:1775,column:12},end:{line:1775,column:25}},669:{start:{line:1776,column:12},end:{line:1776,column:18}},670:{start:{line:1779,column:12},end:{line:1802,column:13}},671:{start:{line:1780,column:29},end:{line:1780,column:50}},672:{start:{line:1781,column:14},end:{line:1799,column:15}},673:{start:{line:1785,column:16},end:{line:1789,column:28}},674:{start:{line:1790,column:21},end:{line:1799,column:15}},675:{start:{line:1791,column:16},end:{line:1795,column:28}},676:{start:{line:1798,column:16},end:{line:1798,column:22}},677:{start:{line:1800,column:14},end:{line:1800,column:47}},678:{start:{line:1801,column:14},end:{line:1801,column:45}},679:{start:{line:1805,column:8},end:{line:1805,column:28}},680:{start:{line:1806,column:8},end:{line:1851,column:12}},681:{start:{line:1813,column:12},end:{line:1836,column:13}},682:{start:{line:1814,column:14},end:{line:1822,column:15}},683:{start:{line:1815,column:16},end:{line:1815,column:45}},684:{start:{line:1816,column:16},end:{line:1816,column:39}},685:{start:{line:1817,column:16},end:{line:1817,column:64}},686:{start:{line:1819,column:16},end:{line:1819,column:46}},687:{start:{line:1820,column:16},end:{line:1820,column:40}},688:{start:{line:1821,column:16},end:{line:1821,column:34}},689:{start:{line:1823,column:14},end:{line:1826,column:15}},690:{start:{line:1824,column:16},end:{line:1824,column:53}},691:{start:{line:1825,column:16},end:{line:1825,column:42}},692:{start:{line:1827,column:14},end:{line:1827,column:36}},693:{start:{line:1828,column:14},end:{line:1830,column:22}},694:{start:{line:1829,column:16},end:{line:1829,column:37}},695:{start:{line:1832,column:14},end:{line:1832,column:35}},696:{start:{line:1833,column:14},end:{line:1833,column:38}},697:{start:{line:1834,column:14},end:{line:1834,column:105}},698:{start:{line:1835,column:14},end:{line:1835,column:35}},699:{start:{line:1837,column:12},end:{line:1837,column:27}},700:{start:{line:1840,column:12},end:{line:1840,column:33}},701:{start:{line:1843,column:12},end:{line:1849,column:13}},702:{start:{line:1844,column:14},end:{line:1844,column:38}},703:{start:{line:1845,column:14},end:{line:1845,column:51}},704:{start:{line:1847,column:14},end:{line:1847,column:38}},705:{start:{line:1848,column:14},end:{line:1848,column:105}},706:{start:{line:1850,column:12},end:{line:1850,column:33}},707:{start:{line:1853,column:8},end:{line:1853,column:62}},708:{start:{line:1857,column:6},end:{line:1857,column:28}},709:{start:{line:1860,column:6},end:{line:1860,column:44}},710:{start:{line:1861,column:6},end:{line:1861,column:33}},711:{start:{line:1862,column:6},end:{line:1865,column:7}},712:{start:{line:1863,column:8},end:{line:1863,column:67}},713:{start:{line:1864,column:8},end:{line:1864,column:32}},714:{start:{line:1866,column:6},end:{line:1866,column:33}},715:{start:{line:1869,column:21},end:{line:1869,column:34}},716:{start:{line:1870,column:6},end:{line:1872,column:7}},717:{start:{line:1871,column:8},end:{line:1871,column:36}},718:{start:{line:1873,column:6},end:{line:1895,column:10}},719:{start:{line:1879,column:10},end:{line:1881,column:12}},720:{start:{line:1884,column:10},end:{line:1884,column:41}},721:{start:{line:1885,column:10},end:{line:1885,column:24}},722:{start:{line:1888,column:10},end:{line:1894,column:11}},723:{start:{line:1889,column:32},end:{line:1892,column:13}},724:{start:{line:1893,column:12},end:{line:1893,column:44}},725:{start:{line:1898,column:19},end:{line:1900,column:8}},726:{start:{line:1902,column:19},end:{line:1902,column:46}},727:{start:{line:1903,column:6},end:{line:1903,column:43}},728:{start:{line:1904,column:6},end:{line:1904,column:50}},729:{start:{line:1905,column:6},end:{line:1905,column:18}},730:{start:{line:1909,column:6},end:{line:1919,column:8}},731:{start:{line:1916,column:8},end:{line:1916,column:52}},732:{start:{line:1917,column:8},end:{line:1917,column:69}},733:{start:{line:1918,column:8},end:{line:1918,column:36}},734:{start:{line:1922,column:6},end:{line:1932,column:8}},735:{start:{line:1929,column:8},end:{line:1929,column:52}},736:{start:{line:1930,column:8},end:{line:1930,column:69}},737:{start:{line:1931,column:8},end:{line:1931,column:36}},738:{start:{line:1935,column:6},end:{line:1935,column:71}},739:{start:{line:1938,column:6},end:{line:1938,column:38}},740:{start:{line:1941,column:6},end:{line:1941,column:48}},741:{start:{line:1944,column:6},end:{line:1971,column:7}},742:{start:{line:1945,column:8},end:{line:1945,column:23}},743:{start:{line:1946,column:8},end:{line:1946,column:57}},744:{start:{line:1947,column:13},end:{line:1971,column:7}},745:{start:{line:1948,column:8},end:{line:1948,column:42}},746:{start:{line:1949,column:8},end:{line:1949,column:57}},747:{start:{line:1951,column:8},end:{line:1955,column:10}},748:{start:{line:1956,column:8},end:{line:1956,column:23}},749:{start:{line:1957,column:13},end:{line:1971,column:7}},750:{start:{line:1958,column:8},end:{line:1958,column:35}},751:{start:{line:1959,column:8},end:{line:1961,column:9}},752:{start:{line:1960,column:10},end:{line:1960,column:63}},753:{start:{line:1962,column:8},end:{line:1962,column:62}},754:{start:{line:1964,column:8},end:{line:1964,column:30}},755:{start:{line:1965,column:13},end:{line:1971,column:7}},756:{start:{line:1966,column:8},end:{line:1966,column:35}},757:{start:{line:1967,column:8},end:{line:1969,column:9}},758:{start:{line:1968,column:10},end:{line:1968,column:36}},759:{start:{line:1970,column:8},end:{line:1970,column:62}},760:{start:{line:1974,column:25},end:{line:1974,column:57}},761:{start:{line:1975,column:6},end:{line:1977,column:70}},762:{start:{line:1976,column:25},end:{line:1976,column:60}},763:{start:{line:1977,column:29},end:{line:1977,column:69}},764:{start:{line:1980,column:6},end:{line:1991,column:10}},765:{start:{line:1989,column:10},end:{line:1989,column:30}},766:{start:{line:1990,column:10},end:{line:1990,column:32}},767:{start:{line:1994,column:6},end:{line:1994,column:66}},768:{start:{line:1997,column:6},end:{line:1999,column:7}},769:{start:{line:1998,column:8},end:{line:1998,column:63}},770:{start:{line:2002,column:6},end:{line:2002,column:38}},771:{start:{line:2005,column:18},end:{line:2005,column:19}},772:{start:{line:2006,column:6},end:{line:2012,column:7}},773:{start:{line:2007,column:8},end:{line:2010,column:9}},774:{start:{line:2008,column:10},end:{line:2008,column:39}},775:{start:{line:2009,column:10},end:{line:2009,column:15}},776:{start:{line:2011,column:8},end:{line:2011,column:18}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:68,column:2},end:{line:68,column:3}},loc:{start:{line:68,column:9},end:{line:188,column:3}},line:68},1:{name:"(anonymous_1)",decl:{start:{line:134,column:18},end:{line:134,column:19}},loc:{start:{line:134,column:24},end:{line:134,column:26}},line:134},2:{name:"(anonymous_2)",decl:{start:{line:142,column:18},end:{line:142,column:19}},loc:{start:{line:142,column:24},end:{line:142,column:26}},line:142},3:{name:"(anonymous_3)",decl:{start:{line:152,column:18},end:{line:152,column:19}},loc:{start:{line:152,column:24},end:{line:152,column:26}},line:152},4:{name:"(anonymous_4)",decl:{start:{line:162,column:18},end:{line:162,column:19}},loc:{start:{line:162,column:24},end:{line:162,column:26}},line:162},5:{name:"(anonymous_5)",decl:{start:{line:191,column:14},end:{line:191,column:15}},loc:{start:{line:191,column:26},end:{line:196,column:5}},line:191},6:{name:"(anonymous_6)",decl:{start:{line:197,column:21},end:{line:197,column:22}},loc:{start:{line:197,column:33},end:{line:201,column:5}},line:197},7:{name:"(anonymous_7)",decl:{start:{line:202,column:26},end:{line:202,column:27}},loc:{start:{line:202,column:38},end:{line:204,column:5}},line:202},8:{name:"(anonymous_8)",decl:{start:{line:205,column:14},end:{line:205,column:15}},loc:{start:{line:205,column:26},end:{line:207,column:5}},line:205},9:{name:"(anonymous_9)",decl:{start:{line:209,column:18},end:{line:209,column:19}},loc:{start:{line:209,column:30},end:{line:214,column:5}},line:209},10:{name:"(anonymous_10)",decl:{start:{line:218,column:21},end:{line:218,column:22}},loc:{start:{line:218,column:33},end:{line:220,column:5}},line:218},11:{name:"(anonymous_11)",decl:{start:{line:221,column:11},end:{line:221,column:12}},loc:{start:{line:221,column:23},end:{line:436,column:5}},line:221},12:{name:"(anonymous_12)",decl:{start:{line:230,column:23},end:{line:230,column:24}},loc:{start:{line:230,column:29},end:{line:232,column:15}},line:230},13:{name:"(anonymous_13)",decl:{start:{line:242,column:27},end:{line:242,column:28}},loc:{start:{line:242,column:33},end:{line:244,column:19}},line:242},14:{name:"(anonymous_14)",decl:{start:{line:249,column:27},end:{line:249,column:28}},loc:{start:{line:249,column:33},end:{line:251,column:19}},line:249},15:{name:"(anonymous_15)",decl:{start:{line:259,column:23},end:{line:259,column:24}},loc:{start:{line:259,column:29},end:{line:261,column:15}},line:259},16:{name:"(anonymous_16)",decl:{start:{line:276,column:23},end:{line:276,column:24}},loc:{start:{line:276,column:29},end:{line:278,column:15}},line:276},17:{name:"(anonymous_17)",decl:{start:{line:284,column:23},end:{line:284,column:24}},loc:{start:{line:284,column:29},end:{line:286,column:15}},line:284},18:{name:"(anonymous_18)",decl:{start:{line:295,column:23},end:{line:295,column:24}},loc:{start:{line:295,column:29},end:{line:297,column:15}},line:295},19:{name:"(anonymous_19)",decl:{start:{line:306,column:23},end:{line:306,column:24}},loc:{start:{line:306,column:29},end:{line:308,column:15}},line:306},20:{name:"(anonymous_20)",decl:{start:{line:318,column:23},end:{line:318,column:24}},loc:{start:{line:318,column:29},end:{line:320,column:15}},line:318},21:{name:"(anonymous_21)",decl:{start:{line:326,column:23},end:{line:326,column:24}},loc:{start:{line:326,column:29},end:{line:328,column:15}},line:326},22:{name:"(anonymous_22)",decl:{start:{line:338,column:23},end:{line:338,column:24}},loc:{start:{line:338,column:29},end:{line:340,column:15}},line:338},23:{name:"(anonymous_23)",decl:{start:{line:349,column:23},end:{line:349,column:24}},loc:{start:{line:349,column:29},end:{line:351,column:15}},line:349},24:{name:"(anonymous_24)",decl:{start:{line:357,column:23},end:{line:357,column:24}},loc:{start:{line:357,column:29},end:{line:360,column:15}},line:357},25:{name:"(anonymous_25)",decl:{start:{line:358,column:46},end:{line:358,column:47}},loc:{start:{line:358,column:52},end:{line:358,column:54}},line:358},26:{name:"(anonymous_26)",decl:{start:{line:365,column:23},end:{line:365,column:24}},loc:{start:{line:365,column:29},end:{line:367,column:15}},line:365},27:{name:"(anonymous_27)",decl:{start:{line:376,column:23},end:{line:376,column:24}},loc:{start:{line:376,column:29},end:{line:378,column:15}},line:376},28:{name:"(anonymous_28)",decl:{start:{line:384,column:23},end:{line:384,column:24}},loc:{start:{line:384,column:29},end:{line:386,column:15}},line:384},29:{name:"(anonymous_29)",decl:{start:{line:392,column:23},end:{line:392,column:24}},loc:{start:{line:392,column:29},end:{line:394,column:15}},line:392},30:{name:"(anonymous_30)",decl:{start:{line:400,column:23},end:{line:400,column:24}},loc:{start:{line:400,column:29},end:{line:402,column:15}},line:400},31:{name:"(anonymous_31)",decl:{start:{line:410,column:23},end:{line:410,column:24}},loc:{start:{line:410,column:29},end:{line:412,column:15}},line:410},32:{name:"(anonymous_32)",decl:{start:{line:418,column:23},end:{line:418,column:24}},loc:{start:{line:418,column:29},end:{line:420,column:15}},line:418},33:{name:"(anonymous_33)",decl:{start:{line:429,column:23},end:{line:429,column:24}},loc:{start:{line:429,column:29},end:{line:431,column:15}},line:429},34:{name:"(anonymous_34)",decl:{start:{line:437,column:31},end:{line:437,column:32}},loc:{start:{line:437,column:43},end:{line:452,column:5}},line:437},35:{name:"(anonymous_35)",decl:{start:{line:455,column:14},end:{line:455,column:15}},loc:{start:{line:455,column:29},end:{line:461,column:5}},line:455},36:{name:"(anonymous_36)",decl:{start:{line:462,column:18},end:{line:462,column:19}},loc:{start:{line:462,column:38},end:{line:469,column:5}},line:462},37:{name:"(anonymous_37)",decl:{start:{line:471,column:11},end:{line:471,column:12}},loc:{start:{line:471,column:23},end:{line:483,column:3}},line:471},38:{name:"(anonymous_38)",decl:{start:{line:480,column:61},end:{line:480,column:62}},loc:{start:{line:480,column:75},end:{line:482,column:5}},line:480},39:{name:"(anonymous_39)",decl:{start:{line:484,column:11},end:{line:484,column:12}},loc:{start:{line:484,column:29},end:{line:576,column:3}},line:484},40:{name:"(anonymous_40)",decl:{start:{line:530,column:37},end:{line:530,column:38}},loc:{start:{line:530,column:58},end:{line:533,column:5}},line:530},41:{name:"(anonymous_41)",decl:{start:{line:541,column:36},end:{line:541,column:37}},loc:{start:{line:541,column:47},end:{line:547,column:7}},line:541},42:{name:"(anonymous_42)",decl:{start:{line:543,column:17},end:{line:543,column:18}},loc:{start:{line:543,column:34},end:{line:546,column:9}},line:543},43:{name:"(anonymous_43)",decl:{start:{line:573,column:38},end:{line:573,column:39}},loc:{start:{line:573,column:50},end:{line:575,column:5}},line:573},44:{name:"(anonymous_44)",decl:{start:{line:577,column:2},end:{line:577,column:3}},loc:{start:{line:577,column:18},end:{line:580,column:3}},line:577},45:{name:"(anonymous_45)",decl:{start:{line:581,column:2},end:{line:581,column:3}},loc:{start:{line:581,column:14},end:{line:591,column:3}},line:581},46:{name:"(anonymous_46)",decl:{start:{line:592,column:21},end:{line:592,column:22}},loc:{start:{line:592,column:47},end:{line:598,column:3}},line:592},47:{name:"(anonymous_47)",decl:{start:{line:600,column:4},end:{line:600,column:5}},loc:{start:{line:600,column:23},end:{line:606,column:5}},line:600},48:{name:"(anonymous_48)",decl:{start:{line:607,column:4},end:{line:607,column:5}},loc:{start:{line:607,column:19},end:{line:623,column:5}},line:607},49:{name:"(anonymous_49)",decl:{start:{line:608,column:43},end:{line:608,column:44}},loc:{start:{line:608,column:57},end:{line:622,column:7}},line:608},50:{name:"(anonymous_50)",decl:{start:{line:610,column:54},end:{line:610,column:55}},loc:{start:{line:610,column:65},end:{line:620,column:9}},line:610},51:{name:"(anonymous_51)",decl:{start:{line:624,column:4},end:{line:624,column:5}},loc:{start:{line:624,column:36},end:{line:667,column:5}},line:624},52:{name:"(anonymous_52)",decl:{start:{line:631,column:16},end:{line:631,column:17}},loc:{start:{line:631,column:23},end:{line:631,column:42}},line:631},53:{name:"(anonymous_53)",decl:{start:{line:632,column:16},end:{line:632,column:17}},loc:{start:{line:632,column:23},end:{line:632,column:35}},line:632},54:{name:"(anonymous_54)",decl:{start:{line:635,column:33},end:{line:635,column:34}},loc:{start:{line:635,column:45},end:{line:644,column:7}},line:635},55:{name:"(anonymous_55)",decl:{start:{line:654,column:17},end:{line:654,column:18}},loc:{start:{line:654,column:29},end:{line:660,column:7}},line:654},56:{name:"(anonymous_56)",decl:{start:{line:663,column:8},end:{line:663,column:9}},loc:{start:{line:663,column:20},end:{line:665,column:7}},line:663},57:{name:"(anonymous_57)",decl:{start:{line:668,column:4},end:{line:668,column:5}},loc:{start:{line:668,column:38},end:{line:711,column:5}},line:668},58:{name:"(anonymous_58)",decl:{start:{line:675,column:16},end:{line:675,column:17}},loc:{start:{line:675,column:23},end:{line:675,column:42}},line:675},59:{name:"(anonymous_59)",decl:{start:{line:676,column:16},end:{line:676,column:17}},loc:{start:{line:676,column:23},end:{line:676,column:35}},line:676},60:{name:"(anonymous_60)",decl:{start:{line:679,column:33},end:{line:679,column:34}},loc:{start:{line:679,column:45},end:{line:688,column:7}},line:679},61:{name:"(anonymous_61)",decl:{start:{line:698,column:17},end:{line:698,column:18}},loc:{start:{line:698,column:29},end:{line:704,column:7}},line:698},62:{name:"(anonymous_62)",decl:{start:{line:707,column:8},end:{line:707,column:9}},loc:{start:{line:707,column:20},end:{line:709,column:7}},line:707},63:{name:"(anonymous_63)",decl:{start:{line:712,column:4},end:{line:712,column:5}},loc:{start:{line:712,column:28},end:{line:724,column:5}},line:712},64:{name:"(anonymous_64)",decl:{start:{line:727,column:4},end:{line:727,column:5}},loc:{start:{line:727,column:30},end:{line:745,column:5}},line:727},65:{name:"(anonymous_65)",decl:{start:{line:746,column:26},end:{line:746,column:27}},loc:{start:{line:746,column:40},end:{line:764,column:5}},line:746},66:{name:"(anonymous_66)",decl:{start:{line:747,column:56},end:{line:747,column:57}},loc:{start:{line:747,column:70},end:{line:763,column:7}},line:747},67:{name:"(anonymous_67)",decl:{start:{line:749,column:10},end:{line:749,column:11}},loc:{start:{line:749,column:17},end:{line:749,column:38}},line:749},68:{name:"(anonymous_68)",decl:{start:{line:765,column:19},end:{line:765,column:20}},loc:{start:{line:765,column:31},end:{line:779,column:5}},line:765},69:{name:"(anonymous_69)",decl:{start:{line:766,column:59},end:{line:766,column:60}},loc:{start:{line:766,column:73},end:{line:778,column:7}},line:766},70:{name:"(anonymous_70)",decl:{start:{line:780,column:30},end:{line:780,column:31}},loc:{start:{line:780,column:48},end:{line:784,column:5}},line:780},71:{name:"(anonymous_71)",decl:{start:{line:785,column:19},end:{line:785,column:20}},loc:{start:{line:785,column:31},end:{line:794,column:5}},line:785},72:{name:"(anonymous_72)",decl:{start:{line:791,column:16},end:{line:791,column:17}},loc:{start:{line:791,column:25},end:{line:791,column:37}},line:791},73:{name:"(anonymous_73)",decl:{start:{line:792,column:13},end:{line:792,column:14}},loc:{start:{line:792,column:22},end:{line:792,column:33}},line:792},74:{name:"(anonymous_74)",decl:{start:{line:795,column:22},end:{line:795,column:23}},loc:{start:{line:795,column:34},end:{line:802,column:5}},line:795},75:{name:"(anonymous_75)",decl:{start:{line:799,column:16},end:{line:799,column:17}},loc:{start:{line:799,column:25},end:{line:799,column:71}},line:799},76:{name:"(anonymous_76)",decl:{start:{line:800,column:13},end:{line:800,column:14}},loc:{start:{line:800,column:22},end:{line:800,column:43}},line:800},77:{name:"(anonymous_77)",decl:{start:{line:803,column:4},end:{line:803,column:5}},loc:{start:{line:803,column:46},end:{line:827,column:5}},line:803},78:{name:"(anonymous_78)",decl:{start:{line:817,column:14},end:{line:817,column:15}},loc:{start:{line:817,column:28},end:{line:823,column:9}},line:817},79:{name:"(anonymous_79)",decl:{start:{line:824,column:14},end:{line:824,column:15}},loc:{start:{line:824,column:28},end:{line:826,column:9}},line:824},80:{name:"(anonymous_80)",decl:{start:{line:828,column:22},end:{line:828,column:23}},loc:{start:{line:828,column:34},end:{line:830,column:5}},line:828},81:{name:"(anonymous_81)",decl:{start:{line:831,column:22},end:{line:831,column:23}},loc:{start:{line:831,column:40},end:{line:841,column:5}},line:831},82:{name:"(anonymous_82)",decl:{start:{line:842,column:23},end:{line:842,column:24}},loc:{start:{line:842,column:50},end:{line:871,column:5}},line:842},83:{name:"(anonymous_83)",decl:{start:{line:847,column:8},end:{line:847,column:9}},loc:{start:{line:848,column:10},end:{line:849,column:32}},line:848},84:{name:"(anonymous_84)",decl:{start:{line:861,column:12},end:{line:861,column:13}},loc:{start:{line:861,column:21},end:{line:861,column:43}},line:861},85:{name:"(anonymous_85)",decl:{start:{line:865,column:27},end:{line:865,column:28}},loc:{start:{line:865,column:36},end:{line:870,column:7}},line:865},86:{name:"(anonymous_86)",decl:{start:{line:872,column:23},end:{line:872,column:24}},loc:{start:{line:872,column:64},end:{line:877,column:5}},line:872},87:{name:"(anonymous_87)",decl:{start:{line:875,column:13},end:{line:875,column:14}},loc:{start:{line:875,column:34},end:{line:875,column:51}},line:875},88:{name:"(anonymous_88)",decl:{start:{line:878,column:24},end:{line:878,column:25}},loc:{start:{line:878,column:44},end:{line:883,column:5}},line:878},89:{name:"(anonymous_89)",decl:{start:{line:880,column:42},end:{line:880,column:43}},loc:{start:{line:880,column:58},end:{line:882,column:7}},line:880},90:{name:"(anonymous_90)",decl:{start:{line:884,column:26},end:{line:884,column:27}},loc:{start:{line:884,column:38},end:{line:896,column:5}},line:884},91:{name:"(anonymous_91)",decl:{start:{line:890,column:14},end:{line:890,column:15}},loc:{start:{line:890,column:26},end:{line:892,column:9}},line:890},92:{name:"(anonymous_92)",decl:{start:{line:893,column:14},end:{line:893,column:15}},loc:{start:{line:893,column:28},end:{line:895,column:9}},line:893},93:{name:"(anonymous_93)",decl:{start:{line:897,column:4},end:{line:897,column:5}},loc:{start:{line:897,column:29},end:{line:903,column:5}},line:897},94:{name:"(anonymous_94)",decl:{start:{line:904,column:4},end:{line:904,column:5}},loc:{start:{line:904,column:25},end:{line:923,column:5}},line:904},95:{name:"(anonymous_95)",decl:{start:{line:924,column:4},end:{line:924,column:5}},loc:{start:{line:924,column:20},end:{line:934,column:5}},line:924},96:{name:"(anonymous_96)",decl:{start:{line:935,column:20},end:{line:935,column:21}},loc:{start:{line:935,column:32},end:{line:955,column:5}},line:935},97:{name:"(anonymous_97)",decl:{start:{line:938,column:14},end:{line:938,column:15}},loc:{start:{line:938,column:41},end:{line:954,column:9}},line:938},98:{name:"(anonymous_98)",decl:{start:{line:942,column:19},end:{line:942,column:20}},loc:{start:{line:942,column:32},end:{line:942,column:73}},line:942},99:{name:"(anonymous_99)",decl:{start:{line:956,column:4},end:{line:956,column:5}},loc:{start:{line:956,column:22},end:{line:965,column:5}},line:956},100:{name:"(anonymous_100)",decl:{start:{line:966,column:4},end:{line:966,column:5}},loc:{start:{line:966,column:20},end:{line:982,column:5}},line:966},101:{name:"(anonymous_101)",decl:{start:{line:973,column:22},end:{line:973,column:23}},loc:{start:{line:973,column:32},end:{line:973,column:51}},line:973},102:{name:"(anonymous_102)",decl:{start:{line:979,column:14},end:{line:979,column:15}},loc:{start:{line:979,column:32},end:{line:981,column:9}},line:979},103:{name:"(anonymous_103)",decl:{start:{line:983,column:4},end:{line:983,column:5}},loc:{start:{line:983,column:27},end:{line:1012,column:5}},line:983},104:{name:"(anonymous_104)",decl:{start:{line:1013,column:24},end:{line:1013,column:25}},loc:{start:{line:1013,column:41},end:{line:1015,column:5}},line:1013},105:{name:"(anonymous_105)",decl:{start:{line:1016,column:18},end:{line:1016,column:19}},loc:{start:{line:1016,column:30},end:{line:1018,column:5}},line:1016},106:{name:"(anonymous_106)",decl:{start:{line:1019,column:4},end:{line:1019,column:5}},loc:{start:{line:1019,column:43},end:{line:1048,column:5}},line:1019},107:{name:"(anonymous_107)",decl:{start:{line:1042,column:14},end:{line:1042,column:15}},loc:{start:{line:1042,column:28},end:{line:1044,column:9}},line:1042},108:{name:"(anonymous_108)",decl:{start:{line:1045,column:15},end:{line:1045,column:16}},loc:{start:{line:1045,column:26},end:{line:1047,column:9}},line:1045},109:{name:"(anonymous_109)",decl:{start:{line:1049,column:4},end:{line:1049,column:5}},loc:{start:{line:1049,column:9},end:{line:1055,column:5}},line:1049},110:{name:"(anonymous_110)",decl:{start:{line:1056,column:4},end:{line:1056,column:5}},loc:{start:{line:1056,column:19},end:{line:1063,column:5}},line:1056},111:{name:"(anonymous_111)",decl:{start:{line:1064,column:4},end:{line:1064,column:5}},loc:{start:{line:1064,column:11},end:{line:1074,column:5}},line:1064},112:{name:"(anonymous_112)",decl:{start:{line:1075,column:4},end:{line:1075,column:5}},loc:{start:{line:1075,column:11},end:{line:1077,column:5}},line:1075},113:{name:"(anonymous_113)",decl:{start:{line:1078,column:4},end:{line:1078,column:5}},loc:{start:{line:1078,column:22},end:{line:1165,column:5}},line:1078},114:{name:"(anonymous_114)",decl:{start:{line:1087,column:18},end:{line:1087,column:19}},loc:{start:{line:1087,column:32},end:{line:1097,column:13}},line:1087},115:{name:"(anonymous_115)",decl:{start:{line:1098,column:19},end:{line:1098,column:20}},loc:{start:{line:1098,column:28},end:{line:1101,column:13}},line:1098},116:{name:"(anonymous_116)",decl:{start:{line:1145,column:12},end:{line:1145,column:13}},loc:{start:{line:1145,column:21},end:{line:1145,column:65}},line:1145},117:{name:"(anonymous_117)",decl:{start:{line:1166,column:4},end:{line:1166,column:5}},loc:{start:{line:1166,column:22},end:{line:1288,column:5}},line:1166},118:{name:"(anonymous_118)",decl:{start:{line:1289,column:4},end:{line:1289,column:5}},loc:{start:{line:1289,column:19},end:{line:1292,column:5}},line:1289},119:{name:"(anonymous_119)",decl:{start:{line:1293,column:4},end:{line:1293,column:5}},loc:{start:{line:1293,column:32},end:{line:1303,column:5}},line:1293},120:{name:"(anonymous_120)",decl:{start:{line:1304,column:4},end:{line:1304,column:5}},loc:{start:{line:1304,column:23},end:{line:1455,column:5}},line:1304},121:{name:"(anonymous_121)",decl:{start:{line:1338,column:30},end:{line:1338,column:31}},loc:{start:{line:1338,column:41},end:{line:1357,column:11}},line:1338},122:{name:"(anonymous_122)",decl:{start:{line:1394,column:37},end:{line:1394,column:38}},loc:{start:{line:1394,column:44},end:{line:1396,column:11}},line:1394},123:{name:"(anonymous_123)",decl:{start:{line:1410,column:37},end:{line:1410,column:38}},loc:{start:{line:1410,column:44},end:{line:1412,column:11}},line:1410},124:{name:"(anonymous_124)",decl:{start:{line:1425,column:40},end:{line:1425,column:41}},loc:{start:{line:1425,column:51},end:{line:1434,column:11}},line:1425},125:{name:"(anonymous_125)",decl:{start:{line:1456,column:4},end:{line:1456,column:5}},loc:{start:{line:1456,column:36},end:{line:1486,column:5}},line:1456},126:{name:"(anonymous_126)",decl:{start:{line:1463,column:28},end:{line:1463,column:29}},loc:{start:{line:1463,column:44},end:{line:1477,column:9}},line:1463},127:{name:"(anonymous_127)",decl:{start:{line:1487,column:4},end:{line:1487,column:5}},loc:{start:{line:1487,column:20},end:{line:1491,column:5}},line:1487},128:{name:"(anonymous_128)",decl:{start:{line:1493,column:4},end:{line:1493,column:5}},loc:{start:{line:1493,column:14},end:{line:1512,column:5}},line:1493},129:{name:"(anonymous_129)",decl:{start:{line:1510,column:15},end:{line:1510,column:16}},loc:{start:{line:1510,column:24},end:{line:1510,column:26}},line:1510},130:{name:"(anonymous_130)",decl:{start:{line:1513,column:4},end:{line:1513,column:5}},loc:{start:{line:1513,column:29},end:{line:1557,column:5}},line:1513},131:{name:"(anonymous_131)",decl:{start:{line:1558,column:4},end:{line:1558,column:5}},loc:{start:{line:1558,column:31},end:{line:1600,column:5}},line:1558},132:{name:"(anonymous_132)",decl:{start:{line:1601,column:4},end:{line:1601,column:5}},loc:{start:{line:1601,column:26},end:{line:1621,column:5}},line:1601},133:{name:"(anonymous_133)",decl:{start:{line:1603,column:40},end:{line:1603,column:41}},loc:{start:{line:1603,column:47},end:{line:1603,column:67}},line:1603},134:{name:"(anonymous_134)",decl:{start:{line:1611,column:17},end:{line:1611,column:18}},loc:{start:{line:1611,column:34},end:{line:1614,column:9}},line:1611},135:{name:"(anonymous_135)",decl:{start:{line:1622,column:4},end:{line:1622,column:5}},loc:{start:{line:1622,column:31},end:{line:1628,column:5}},line:1622},136:{name:"(anonymous_136)",decl:{start:{line:1623,column:39},end:{line:1623,column:40}},loc:{start:{line:1623,column:50},end:{line:1623,column:74}},line:1623},137:{name:"(anonymous_137)",decl:{start:{line:1629,column:4},end:{line:1629,column:5}},loc:{start:{line:1629,column:15},end:{line:1631,column:5}},line:1629},138:{name:"(anonymous_138)",decl:{start:{line:1632,column:4},end:{line:1632,column:5}},loc:{start:{line:1632,column:39},end:{line:1672,column:5}},line:1632},139:{name:"(anonymous_139)",decl:{start:{line:1643,column:14},end:{line:1643,column:15}},loc:{start:{line:1643,column:28},end:{line:1661,column:9}},line:1643},140:{name:"(anonymous_140)",decl:{start:{line:1662,column:15},end:{line:1662,column:16}},loc:{start:{line:1662,column:26},end:{line:1671,column:9}},line:1662},141:{name:"(anonymous_141)",decl:{start:{line:1674,column:4},end:{line:1674,column:5}},loc:{start:{line:1674,column:58},end:{line:1731,column:5}},line:1674},142:{name:"(anonymous_142)",decl:{start:{line:1695,column:15},end:{line:1695,column:16}},loc:{start:{line:1695,column:24},end:{line:1695,column:26}},line:1695},143:{name:"(anonymous_143)",decl:{start:{line:1732,column:4},end:{line:1732,column:5}},loc:{start:{line:1732,column:16},end:{line:1737,column:5}},line:1732},144:{name:"(anonymous_144)",decl:{start:{line:1734,column:8},end:{line:1734,column:9}},loc:{start:{line:1734,column:19},end:{line:1734,column:52}},line:1734},145:{name:"(anonymous_145)",decl:{start:{line:1738,column:4},end:{line:1738,column:5}},loc:{start:{line:1738,column:21},end:{line:1766,column:5}},line:1738},146:{name:"(anonymous_146)",decl:{start:{line:1769,column:4},end:{line:1769,column:5}},loc:{start:{line:1769,column:34},end:{line:1855,column:5}},line:1769},147:{name:"(anonymous_147)",decl:{start:{line:1812,column:16},end:{line:1812,column:17}},loc:{start:{line:1812,column:30},end:{line:1838,column:11}},line:1812},148:{name:"(anonymous_148)",decl:{start:{line:1828,column:25},end:{line:1828,column:26}},loc:{start:{line:1828,column:31},end:{line:1830,column:15}},line:1828},149:{name:"(anonymous_149)",decl:{start:{line:1839,column:17},end:{line:1839,column:18}},loc:{start:{line:1839,column:35},end:{line:1851,column:11}},line:1839},150:{name:"(anonymous_150)",decl:{start:{line:1856,column:4},end:{line:1856,column:5}},loc:{start:{line:1856,column:13},end:{line:1858,column:5}},line:1856},151:{name:"(anonymous_151)",decl:{start:{line:1859,column:4},end:{line:1859,column:5}},loc:{start:{line:1859,column:35},end:{line:1867,column:5}},line:1859},152:{name:"(anonymous_152)",decl:{start:{line:1868,column:4},end:{line:1868,column:5}},loc:{start:{line:1868,column:13},end:{line:1896,column:5}},line:1868},153:{name:"(anonymous_153)",decl:{start:{line:1878,column:14},end:{line:1878,column:15}},loc:{start:{line:1878,column:26},end:{line:1882,column:9}},line:1878},154:{name:"(anonymous_154)",decl:{start:{line:1883,column:14},end:{line:1883,column:15}},loc:{start:{line:1883,column:28},end:{line:1886,column:9}},line:1883},155:{name:"(anonymous_155)",decl:{start:{line:1887,column:15},end:{line:1887,column:16}},loc:{start:{line:1887,column:26},end:{line:1895,column:9}},line:1887},156:{name:"(anonymous_156)",decl:{start:{line:1897,column:4},end:{line:1897,column:5}},loc:{start:{line:1897,column:15},end:{line:1906,column:5}},line:1897},157:{name:"(anonymous_157)",decl:{start:{line:1908,column:4},end:{line:1908,column:5}},loc:{start:{line:1908,column:18},end:{line:1920,column:5}},line:1908},158:{name:"(anonymous_158)",decl:{start:{line:1915,column:14},end:{line:1915,column:15}},loc:{start:{line:1915,column:28},end:{line:1919,column:7}},line:1915},159:{name:"(anonymous_159)",decl:{start:{line:1921,column:4},end:{line:1921,column:5}},loc:{start:{line:1921,column:23},end:{line:1933,column:5}},line:1921},160:{name:"(anonymous_160)",decl:{start:{line:1928,column:14},end:{line:1928,column:15}},loc:{start:{line:1928,column:28},end:{line:1932,column:7}},line:1928},161:{name:"(anonymous_161)",decl:{start:{line:1934,column:4},end:{line:1934,column:5}},loc:{start:{line:1934,column:20},end:{line:1936,column:5}},line:1934},162:{name:"(anonymous_162)",decl:{start:{line:1937,column:4},end:{line:1937,column:5}},loc:{start:{line:1937,column:18},end:{line:1939,column:5}},line:1937},163:{name:"(anonymous_163)",decl:{start:{line:1940,column:4},end:{line:1940,column:5}},loc:{start:{line:1940,column:23},end:{line:1942,column:5}},line:1940},164:{name:"(anonymous_164)",decl:{start:{line:1943,column:4},end:{line:1943,column:5}},loc:{start:{line:1943,column:24},end:{line:1972,column:5}},line:1943},165:{name:"(anonymous_165)",decl:{start:{line:1973,column:22},end:{line:1973,column:23}},loc:{start:{line:1973,column:34},end:{line:1978,column:5}},line:1973},166:{name:"(anonymous_166)",decl:{start:{line:1976,column:16},end:{line:1976,column:17}},loc:{start:{line:1976,column:25},end:{line:1976,column:60}},line:1976},167:{name:"(anonymous_167)",decl:{start:{line:1977,column:17},end:{line:1977,column:18}},loc:{start:{line:1977,column:29},end:{line:1977,column:69}},line:1977},168:{name:"(anonymous_168)",decl:{start:{line:1979,column:24},end:{line:1979,column:25}},loc:{start:{line:1979,column:36},end:{line:1992,column:5}},line:1979},169:{name:"(anonymous_169)",decl:{start:{line:1988,column:14},end:{line:1988,column:15}},loc:{start:{line:1988,column:20},end:{line:1991,column:9}},line:1988},170:{name:"(anonymous_170)",decl:{start:{line:1993,column:14},end:{line:1993,column:15}},loc:{start:{line:1993,column:26},end:{line:1995,column:5}},line:1993},171:{name:"(anonymous_171)",decl:{start:{line:1996,column:16},end:{line:1996,column:17}},loc:{start:{line:1996,column:28},end:{line:2e3,column:5}},line:1996},172:{name:"(anonymous_172)",decl:{start:{line:2001,column:4},end:{line:2001,column:5}},loc:{start:{line:2001,column:17},end:{line:2003,column:5}},line:2001},173:{name:"(anonymous_173)",decl:{start:{line:2004,column:4},end:{line:2004,column:5}},loc:{start:{line:2004,column:20},end:{line:2013,column:5}},line:2004}},branchMap:{0:{loc:{start:{line:198,column:13},end:{line:200,column:32}},type:"cond-expr",locations:[{start:{line:199,column:10},end:{line:199,column:24}},{start:{line:200,column:10},end:{line:200,column:32}}],line:198},1:{loc:{start:{line:203,column:13},end:{line:203,column:67}},type:"cond-expr",locations:[{start:{line:203,column:53},end:{line:203,column:62}},{start:{line:203,column:65},end:{line:203,column:67}}],line:203},2:{loc:{start:{line:210,column:6},end:{line:210,column:59}},type:"if",locations:[{start:{line:210,column:6},end:{line:210,column:59}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:210},3:{loc:{start:{line:212,column:6},end:{line:212,column:61}},type:"if",locations:[{start:{line:212,column:6},end:{line:212,column:61}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:212},4:{loc:{start:{line:219,column:13},end:{line:219,column:64}},type:"cond-expr",locations:[{start:{line:219,column:46},end:{line:219,column:48}},{start:{line:219,column:51},end:{line:219,column:64}}],line:219},5:{loc:{start:{line:457,column:6},end:{line:459,column:7}},type:"if",locations:[{start:{line:457,column:6},end:{line:459,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:457},6:{loc:{start:{line:464,column:6},end:{line:468,column:7}},type:"if",locations:[{start:{line:464,column:6},end:{line:468,column:7}},{start:{line:466,column:13},end:{line:468,column:7}}],line:464},7:{loc:{start:{line:538,column:4},end:{line:548,column:5}},type:"if",locations:[{start:{line:538,column:4},end:{line:548,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:538},8:{loc:{start:{line:549,column:4},end:{line:559,column:5}},type:"if",locations:[{start:{line:549,column:4},end:{line:559,column:5}},{start:{line:552,column:11},end:{line:559,column:5}}],line:549},9:{loc:{start:{line:552,column:11},end:{line:559,column:5}},type:"if",locations:[{start:{line:552,column:11},end:{line:559,column:5}},{start:{line:554,column:11},end:{line:559,column:5}}],line:552},10:{loc:{start:{line:555,column:6},end:{line:558,column:7}},type:"if",locations:[{start:{line:555,column:6},end:{line:558,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:555},11:{loc:{start:{line:583,column:4},end:{line:585,column:5}},type:"if",locations:[{start:{line:583,column:4},end:{line:585,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:583},12:{loc:{start:{line:586,column:4},end:{line:589,column:5}},type:"if",locations:[{start:{line:586,column:4},end:{line:589,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:586},13:{loc:{start:{line:593,column:4},end:{line:597,column:5}},type:"if",locations:[{start:{line:593,column:4},end:{line:597,column:5}},{start:{line:595,column:11},end:{line:597,column:5}}],line:593},14:{loc:{start:{line:601,column:6},end:{line:604,column:7}},type:"if",locations:[{start:{line:601,column:6},end:{line:604,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:601},15:{loc:{start:{line:714,column:6},end:{line:723,column:7}},type:"if",locations:[{start:{line:714,column:6},end:{line:723,column:7}},{start:{line:717,column:13},end:{line:723,column:7}}],line:714},16:{loc:{start:{line:714,column:10},end:{line:714,column:73}},type:"binary-expr",locations:[{start:{line:714,column:10},end:{line:714,column:35}},{start:{line:714,column:39},end:{line:714,column:73}}],line:714},17:{loc:{start:{line:717,column:13},end:{line:723,column:7}},type:"if",locations:[{start:{line:717,column:13},end:{line:723,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:717},18:{loc:{start:{line:718,column:8},end:{line:719,column:41}},type:"binary-expr",locations:[{start:{line:718,column:8},end:{line:718,column:36}},{start:{line:719,column:8},end:{line:719,column:41}}],line:718},19:{loc:{start:{line:751,column:8},end:{line:762,column:9}},type:"if",locations:[{start:{line:751,column:8},end:{line:762,column:9}},{start:{line:756,column:15},end:{line:762,column:9}}],line:751},20:{loc:{start:{line:767,column:8},end:{line:771,column:9}},type:"if",locations:[{start:{line:767,column:8},end:{line:771,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:767},21:{loc:{start:{line:772,column:8},end:{line:775,column:9}},type:"if",locations:[{start:{line:772,column:8},end:{line:775,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:772},22:{loc:{start:{line:799,column:25},end:{line:799,column:71}},type:"binary-expr",locations:[{start:{line:799,column:25},end:{line:799,column:45}},{start:{line:799,column:49},end:{line:799,column:71}}],line:799},23:{loc:{start:{line:803,column:28},end:{line:803,column:44}},type:"default-arg",locations:[{start:{line:803,column:42},end:{line:803,column:44}}],line:803},24:{loc:{start:{line:833,column:6},end:{line:840,column:7}},type:"if",locations:[{start:{line:833,column:6},end:{line:840,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:833},25:{loc:{start:{line:835,column:8},end:{line:839,column:9}},type:"if",locations:[{start:{line:835,column:8},end:{line:839,column:9}},{start:{line:837,column:15},end:{line:839,column:9}}],line:835},26:{loc:{start:{line:843,column:6},end:{line:845,column:7}},type:"if",locations:[{start:{line:843,column:6},end:{line:845,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:843},27:{loc:{start:{line:848,column:10},end:{line:849,column:32}},type:"binary-expr",locations:[{start:{line:848,column:11},end:{line:848,column:36}},{start:{line:848,column:40},end:{line:848,column:64}},{start:{line:849,column:10},end:{line:849,column:32}}],line:848},28:{loc:{start:{line:853,column:6},end:{line:864,column:7}},type:"switch",locations:[{start:{line:854,column:8},end:{line:857,column:15}},{start:{line:858,column:8},end:{line:863,column:15}}],line:853},29:{loc:{start:{line:867,column:8},end:{line:869,column:9}},type:"if",locations:[{start:{line:867,column:8},end:{line:869,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:867},30:{loc:{start:{line:872,column:33},end:{line:872,column:62}},type:"default-arg",locations:[{start:{line:872,column:43},end:{line:872,column:62}}],line:872},31:{loc:{start:{line:875,column:34},end:{line:875,column:51}},type:"binary-expr",locations:[{start:{line:875,column:34},end:{line:875,column:44}},{start:{line:875,column:48},end:{line:875,column:51}}],line:875},32:{loc:{start:{line:898,column:6},end:{line:902,column:7}},type:"if",locations:[{start:{line:898,column:6},end:{line:902,column:7}},{start:{line:900,column:13},end:{line:902,column:7}}],line:898},33:{loc:{start:{line:906,column:6},end:{line:908,column:7}},type:"if",locations:[{start:{line:906,column:6},end:{line:908,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:906},34:{loc:{start:{line:906,column:10},end:{line:906,column:61}},type:"binary-expr",locations:[{start:{line:906,column:10},end:{line:906,column:23}},{start:{line:906,column:27},end:{line:906,column:61}}],line:906},35:{loc:{start:{line:911,column:6},end:{line:922,column:7}},type:"if",locations:[{start:{line:911,column:6},end:{line:922,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:911},36:{loc:{start:{line:912,column:8},end:{line:913,column:43}},type:"binary-expr",locations:[{start:{line:912,column:9},end:{line:912,column:22}},{start:{line:912,column:26},end:{line:912,column:39}},{start:{line:913,column:8},end:{line:913,column:43}}],line:912},37:{loc:{start:{line:915,column:8},end:{line:921,column:9}},type:"if",locations:[{start:{line:915,column:8},end:{line:921,column:9}},{start:{line:918,column:15},end:{line:921,column:9}}],line:915},38:{loc:{start:{line:926,column:6},end:{line:928,column:7}},type:"if",locations:[{start:{line:926,column:6},end:{line:928,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:926},39:{loc:{start:{line:926,column:10},end:{line:926,column:61}},type:"binary-expr",locations:[{start:{line:926,column:10},end:{line:926,column:23}},{start:{line:926,column:27},end:{line:926,column:61}}],line:926},40:{loc:{start:{line:929,column:6},end:{line:933,column:7}},type:"if",locations:[{start:{line:929,column:6},end:{line:933,column:7}},{start:{line:931,column:13},end:{line:933,column:7}}],line:929},41:{loc:{start:{line:940,column:10},end:{line:945,column:11}},type:"if",locations:[{start:{line:940,column:10},end:{line:945,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:940},42:{loc:{start:{line:946,column:10},end:{line:949,column:11}},type:"if",locations:[{start:{line:946,column:10},end:{line:949,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:946},43:{loc:{start:{line:950,column:10},end:{line:952,column:11}},type:"if",locations:[{start:{line:950,column:10},end:{line:952,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:950},44:{loc:{start:{line:991,column:6},end:{line:994,column:7}},type:"if",locations:[{start:{line:991,column:6},end:{line:994,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:991},45:{loc:{start:{line:1019,column:23},end:{line:1019,column:41}},type:"default-arg",locations:[{start:{line:1019,column:37},end:{line:1019,column:41}}],line:1019},46:{loc:{start:{line:1027,column:6},end:{line:1030,column:7}},type:"if",locations:[{start:{line:1027,column:6},end:{line:1030,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1027},47:{loc:{start:{line:1032,column:6},end:{line:1034,column:7}},type:"if",locations:[{start:{line:1032,column:6},end:{line:1034,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1032},48:{loc:{start:{line:1038,column:6},end:{line:1040,column:7}},type:"if",locations:[{start:{line:1038,column:6},end:{line:1040,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1038},49:{loc:{start:{line:1057,column:6},end:{line:1062,column:7}},type:"if",locations:[{start:{line:1057,column:6},end:{line:1062,column:7}},{start:{line:1059,column:13},end:{line:1062,column:7}}],line:1057},50:{loc:{start:{line:1068,column:6},end:{line:1073,column:7}},type:"if",locations:[{start:{line:1068,column:6},end:{line:1073,column:7}},{start:{line:1071,column:13},end:{line:1073,column:7}}],line:1068},51:{loc:{start:{line:1079,column:6},end:{line:1108,column:7}},type:"if",locations:[{start:{line:1079,column:6},end:{line:1108,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1079},52:{loc:{start:{line:1079,column:10},end:{line:1079,column:65}},type:"binary-expr",locations:[{start:{line:1079,column:10},end:{line:1079,column:23}},{start:{line:1079,column:27},end:{line:1079,column:65}}],line:1079},53:{loc:{start:{line:1080,column:8},end:{line:1107,column:9}},type:"if",locations:[{start:{line:1080,column:8},end:{line:1107,column:9}},{start:{line:1102,column:15},end:{line:1107,column:9}}],line:1080},54:{loc:{start:{line:1111,column:6},end:{line:1164,column:7}},type:"switch",locations:[{start:{line:1112,column:8},end:{line:1126,column:15}},{start:{line:1127,column:8},end:{line:1128,column:27}},{start:{line:1130,column:8},end:{line:1131,column:41}},{start:{line:1133,column:8},end:{line:1133,column:26}},{start:{line:1134,column:8},end:{line:1134,column:23}},{start:{line:1135,column:8},end:{line:1161,column:15}},{start:{line:1162,column:8},end:{line:1163,column:15}}],line:1111},55:{loc:{start:{line:1136,column:10},end:{line:1142,column:11}},type:"if",locations:[{start:{line:1136,column:10},end:{line:1142,column:11}},{start:{line:1139,column:17},end:{line:1142,column:11}}],line:1136},56:{loc:{start:{line:1147,column:10},end:{line:1160,column:11}},type:"if",locations:[{start:{line:1147,column:10},end:{line:1160,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1147},57:{loc:{start:{line:1149,column:23},end:{line:1149,column:58}},type:"cond-expr",locations:[{start:{line:1149,column:42},end:{line:1149,column:54}},{start:{line:1149,column:57},end:{line:1149,column:58}}],line:1149},58:{loc:{start:{line:1157,column:12},end:{line:1159,column:13}},type:"if",locations:[{start:{line:1157,column:12},end:{line:1159,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1157},59:{loc:{start:{line:1173,column:8},end:{line:1283,column:9}},type:"switch",locations:[{start:{line:1174,column:10},end:{line:1180,column:17}},{start:{line:1181,column:10},end:{line:1188,column:17}},{start:{line:1189,column:10},end:{line:1204,column:17}},{start:{line:1205,column:10},end:{line:1207,column:17}},{start:{line:1208,column:10},end:{line:1211,column:17}},{start:{line:1212,column:10},end:{line:1218,column:17}},{start:{line:1219,column:10},end:{line:1221,column:17}},{start:{line:1222,column:10},end:{line:1256,column:17}},{start:{line:1257,column:10},end:{line:1268,column:17}},{start:{line:1269,column:10},end:{line:1271,column:17}},{start:{line:1272,column:10},end:{line:1278,column:17}},{start:{line:1279,column:10},end:{line:1282,column:17}}],line:1173},60:{loc:{start:{line:1177,column:12},end:{line:1179,column:13}},type:"if",locations:[{start:{line:1177,column:12},end:{line:1179,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1177},61:{loc:{start:{line:1193,column:14},end:{line:1199,column:15}},type:"if",locations:[{start:{line:1193,column:14},end:{line:1199,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1193},62:{loc:{start:{line:1194,column:16},end:{line:1198,column:17}},type:"if",locations:[{start:{line:1194,column:16},end:{line:1198,column:17}},{start:{line:1196,column:23},end:{line:1198,column:17}}],line:1194},63:{loc:{start:{line:1214,column:12},end:{line:1217,column:13}},type:"if",locations:[{start:{line:1214,column:12},end:{line:1217,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1214},64:{loc:{start:{line:1226,column:14},end:{line:1233,column:15}},type:"if",locations:[{start:{line:1226,column:14},end:{line:1233,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1226},65:{loc:{start:{line:1227,column:16},end:{line:1228,column:49}},type:"binary-expr",locations:[{start:{line:1227,column:16},end:{line:1227,column:49}},{start:{line:1228,column:16},end:{line:1228,column:49}}],line:1227},66:{loc:{start:{line:1239,column:12},end:{line:1243,column:13}},type:"if",locations:[{start:{line:1239,column:12},end:{line:1243,column:13}},{start:{line:1241,column:19},end:{line:1243,column:13}}],line:1239},67:{loc:{start:{line:1244,column:12},end:{line:1248,column:13}},type:"if",locations:[{start:{line:1244,column:12},end:{line:1248,column:13}},{start:{line:1246,column:19},end:{line:1248,column:13}}],line:1244},68:{loc:{start:{line:1250,column:12},end:{line:1255,column:13}},type:"if",locations:[{start:{line:1250,column:12},end:{line:1255,column:13}},{start:{line:1253,column:19},end:{line:1255,column:13}}],line:1250},69:{loc:{start:{line:1259,column:14},end:{line:1265,column:15}},type:"if",locations:[{start:{line:1259,column:14},end:{line:1265,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1259},70:{loc:{start:{line:1260,column:16},end:{line:1261,column:49}},type:"binary-expr",locations:[{start:{line:1260,column:16},end:{line:1260,column:49}},{start:{line:1261,column:16},end:{line:1261,column:49}}],line:1260},71:{loc:{start:{line:1305,column:6},end:{line:1310,column:7}},type:"if",locations:[{start:{line:1305,column:6},end:{line:1310,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1305},72:{loc:{start:{line:1319,column:6},end:{line:1454,column:7}},type:"switch",locations:[{start:{line:1320,column:8},end:{line:1320,column:19}},{start:{line:1321,column:8},end:{line:1359,column:15}},{start:{line:1360,column:8},end:{line:1370,column:15}},{start:{line:1371,column:8},end:{line:1382,column:15}},{start:{line:1383,column:8},end:{line:1400,column:15}},{start:{line:1401,column:8},end:{line:1401,column:27}},{start:{line:1402,column:8},end:{line:1418,column:15}},{start:{line:1419,column:8},end:{line:1423,column:15}},{start:{line:1424,column:8},end:{line:1436,column:15}},{start:{line:1437,column:8},end:{line:1437,column:32}},{start:{line:1438,column:8},end:{line:1448,column:15}},{start:{line:1449,column:8},end:{line:1453,column:15}}],line:1319},73:{loc:{start:{line:1328,column:10},end:{line:1333,column:11}},type:"if",locations:[{start:{line:1328,column:10},end:{line:1333,column:11}},{start:{line:1330,column:17},end:{line:1333,column:11}}],line:1328},74:{loc:{start:{line:1328,column:14},end:{line:1328,column:77}},type:"binary-expr",locations:[{start:{line:1328,column:14},end:{line:1328,column:26}},{start:{line:1328,column:30},end:{line:1328,column:51}},{start:{line:1328,column:55},end:{line:1328,column:77}}],line:1328},75:{loc:{start:{line:1330,column:17},end:{line:1333,column:11}},type:"if",locations:[{start:{line:1330,column:17},end:{line:1333,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1330},76:{loc:{start:{line:1335,column:10},end:{line:1337,column:11}},type:"if",locations:[{start:{line:1335,column:10},end:{line:1337,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1335},77:{loc:{start:{line:1340,column:12},end:{line:1356,column:13}},type:"if",locations:[{start:{line:1340,column:12},end:{line:1356,column:13}},{start:{line:1348,column:19},end:{line:1356,column:13}}],line:1340},78:{loc:{start:{line:1363,column:10},end:{line:1365,column:11}},type:"if",locations:[{start:{line:1363,column:10},end:{line:1365,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1363},79:{loc:{start:{line:1372,column:10},end:{line:1374,column:11}},type:"if",locations:[{start:{line:1372,column:10},end:{line:1374,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1372},80:{loc:{start:{line:1372,column:14},end:{line:1372,column:52}},type:"binary-expr",locations:[{start:{line:1372,column:14},end:{line:1372,column:25}},{start:{line:1372,column:29},end:{line:1372,column:52}}],line:1372},81:{loc:{start:{line:1375,column:10},end:{line:1377,column:11}},type:"if",locations:[{start:{line:1375,column:10},end:{line:1377,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1375},82:{loc:{start:{line:1375,column:14},end:{line:1375,column:48}},type:"binary-expr",locations:[{start:{line:1375,column:14},end:{line:1375,column:25}},{start:{line:1375,column:29},end:{line:1375,column:48}}],line:1375},83:{loc:{start:{line:1384,column:10},end:{line:1386,column:11}},type:"if",locations:[{start:{line:1384,column:10},end:{line:1386,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1384},84:{loc:{start:{line:1384,column:14},end:{line:1384,column:52}},type:"binary-expr",locations:[{start:{line:1384,column:14},end:{line:1384,column:25}},{start:{line:1384,column:29},end:{line:1384,column:52}}],line:1384},85:{loc:{start:{line:1387,column:10},end:{line:1389,column:11}},type:"if",locations:[{start:{line:1387,column:10},end:{line:1389,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1387},86:{loc:{start:{line:1387,column:14},end:{line:1387,column:48}},type:"binary-expr",locations:[{start:{line:1387,column:14},end:{line:1387,column:25}},{start:{line:1387,column:29},end:{line:1387,column:48}}],line:1387},87:{loc:{start:{line:1390,column:10},end:{line:1392,column:11}},type:"if",locations:[{start:{line:1390,column:10},end:{line:1392,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1390},88:{loc:{start:{line:1390,column:14},end:{line:1390,column:49}},type:"binary-expr",locations:[{start:{line:1390,column:14},end:{line:1390,column:25}},{start:{line:1390,column:29},end:{line:1390,column:49}}],line:1390},89:{loc:{start:{line:1403,column:10},end:{line:1405,column:11}},type:"if",locations:[{start:{line:1403,column:10},end:{line:1405,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1403},90:{loc:{start:{line:1403,column:14},end:{line:1403,column:52}},type:"binary-expr",locations:[{start:{line:1403,column:14},end:{line:1403,column:25}},{start:{line:1403,column:29},end:{line:1403,column:52}}],line:1403},91:{loc:{start:{line:1406,column:10},end:{line:1408,column:11}},type:"if",locations:[{start:{line:1406,column:10},end:{line:1408,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1406},92:{loc:{start:{line:1406,column:14},end:{line:1406,column:48}},type:"binary-expr",locations:[{start:{line:1406,column:14},end:{line:1406,column:25}},{start:{line:1406,column:29},end:{line:1406,column:48}}],line:1406},93:{loc:{start:{line:1413,column:10},end:{line:1415,column:11}},type:"if",locations:[{start:{line:1413,column:10},end:{line:1415,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1413},94:{loc:{start:{line:1441,column:10},end:{line:1443,column:11}},type:"if",locations:[{start:{line:1441,column:10},end:{line:1443,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1441},95:{loc:{start:{line:1441,column:14},end:{line:1441,column:47}},type:"binary-expr",locations:[{start:{line:1441,column:14},end:{line:1441,column:25}},{start:{line:1441,column:29},end:{line:1441,column:47}}],line:1441},96:{loc:{start:{line:1444,column:10},end:{line:1446,column:11}},type:"if",locations:[{start:{line:1444,column:10},end:{line:1446,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1444},97:{loc:{start:{line:1461,column:6},end:{line:1478,column:7}},type:"if",locations:[{start:{line:1461,column:6},end:{line:1478,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1461},98:{loc:{start:{line:1481,column:18},end:{line:1481,column:79}},type:"cond-expr",locations:[{start:{line:1481,column:39},end:{line:1481,column:58}},{start:{line:1481,column:61},end:{line:1481,column:79}}],line:1481},99:{loc:{start:{line:1604,column:6},end:{line:1606,column:7}},type:"if",locations:[{start:{line:1604,column:6},end:{line:1606,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1604},100:{loc:{start:{line:1616,column:6},end:{line:1618,column:7}},type:"if",locations:[{start:{line:1616,column:6},end:{line:1618,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1616},101:{loc:{start:{line:1625,column:6},end:{line:1627,column:7}},type:"if",locations:[{start:{line:1625,column:6},end:{line:1627,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1625},102:{loc:{start:{line:1632,column:21},end:{line:1632,column:37}},type:"default-arg",locations:[{start:{line:1632,column:33},end:{line:1632,column:37}}],line:1632},103:{loc:{start:{line:1648,column:10},end:{line:1650,column:11}},type:"if",locations:[{start:{line:1648,column:10},end:{line:1650,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1648},104:{loc:{start:{line:1651,column:10},end:{line:1653,column:11}},type:"if",locations:[{start:{line:1651,column:10},end:{line:1653,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1651},105:{loc:{start:{line:1654,column:10},end:{line:1656,column:11}},type:"if",locations:[{start:{line:1654,column:10},end:{line:1656,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1654},106:{loc:{start:{line:1663,column:10},end:{line:1668,column:11}},type:"if",locations:[{start:{line:1663,column:10},end:{line:1668,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1663},107:{loc:{start:{line:1674,column:43},end:{line:1674,column:56}},type:"default-arg",locations:[{start:{line:1674,column:51},end:{line:1674,column:56}}],line:1674},108:{loc:{start:{line:1678,column:6},end:{line:1684,column:7}},type:"if",locations:[{start:{line:1678,column:6},end:{line:1684,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1678},109:{loc:{start:{line:1680,column:8},end:{line:1683,column:9}},type:"if",locations:[{start:{line:1680,column:8},end:{line:1683,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1680},110:{loc:{start:{line:1704,column:6},end:{line:1708,column:7}},type:"if",locations:[{start:{line:1704,column:6},end:{line:1708,column:7}},{start:{line:1706,column:13},end:{line:1708,column:7}}],line:1704},111:{loc:{start:{line:1717,column:6},end:{line:1724,column:7}},type:"if",locations:[{start:{line:1717,column:6},end:{line:1724,column:7}},{start:{line:1721,column:13},end:{line:1724,column:7}}],line:1717},112:{loc:{start:{line:1725,column:6},end:{line:1728,column:7}},type:"if",locations:[{start:{line:1725,column:6},end:{line:1728,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1725},113:{loc:{start:{line:1749,column:8},end:{line:1751,column:9}},type:"if",locations:[{start:{line:1749,column:8},end:{line:1751,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1749},114:{loc:{start:{line:1752,column:8},end:{line:1754,column:9}},type:"if",locations:[{start:{line:1752,column:8},end:{line:1754,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1752},115:{loc:{start:{line:1755,column:8},end:{line:1757,column:9}},type:"if",locations:[{start:{line:1755,column:8},end:{line:1757,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1755},116:{loc:{start:{line:1758,column:8},end:{line:1760,column:9}},type:"if",locations:[{start:{line:1758,column:8},end:{line:1760,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1758},117:{loc:{start:{line:1761,column:8},end:{line:1763,column:9}},type:"if",locations:[{start:{line:1761,column:8},end:{line:1763,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1761},118:{loc:{start:{line:1769,column:19},end:{line:1769,column:32}},type:"default-arg",locations:[{start:{line:1769,column:26},end:{line:1769,column:32}}],line:1769},119:{loc:{start:{line:1770,column:6},end:{line:1854,column:7}},type:"if",locations:[{start:{line:1770,column:6},end:{line:1854,column:7}},{start:{line:1852,column:13},end:{line:1854,column:7}}],line:1770},120:{loc:{start:{line:1772,column:8},end:{line:1804,column:9}},type:"if",locations:[{start:{line:1772,column:8},end:{line:1804,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1772},121:{loc:{start:{line:1773,column:10},end:{line:1803,column:11}},type:"if",locations:[{start:{line:1773,column:10},end:{line:1803,column:11}},{start:{line:1777,column:17},end:{line:1803,column:11}}],line:1773},122:{loc:{start:{line:1779,column:12},end:{line:1802,column:13}},type:"if",locations:[{start:{line:1779,column:12},end:{line:1802,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1779},123:{loc:{start:{line:1781,column:14},end:{line:1799,column:15}},type:"if",locations:[{start:{line:1781,column:14},end:{line:1799,column:15}},{start:{line:1790,column:21},end:{line:1799,column:15}}],line:1781},124:{loc:{start:{line:1782,column:16},end:{line:1783,column:58}},type:"binary-expr",locations:[{start:{line:1782,column:16},end:{line:1782,column:35}},{start:{line:1783,column:17},end:{line:1783,column:32}},{start:{line:1783,column:36},end:{line:1783,column:57}}],line:1782},125:{loc:{start:{line:1790,column:21},end:{line:1799,column:15}},type:"if",locations:[{start:{line:1790,column:21},end:{line:1799,column:15}},{start:{line:1796,column:21},end:{line:1799,column:15}}],line:1790},126:{loc:{start:{line:1813,column:12},end:{line:1836,column:13}},type:"if",locations:[{start:{line:1813,column:12},end:{line:1836,column:13}},{start:{line:1831,column:19},end:{line:1836,column:13}}],line:1813},127:{loc:{start:{line:1814,column:14},end:{line:1822,column:15}},type:"if",locations:[{start:{line:1814,column:14},end:{line:1822,column:15}},{start:{line:1818,column:21},end:{line:1822,column:15}}],line:1814},128:{loc:{start:{line:1823,column:14},end:{line:1826,column:15}},type:"if",locations:[{start:{line:1823,column:14},end:{line:1826,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1823},129:{loc:{start:{line:1843,column:12},end:{line:1849,column:13}},type:"if",locations:[{start:{line:1843,column:12},end:{line:1849,column:13}},{start:{line:1846,column:19},end:{line:1849,column:13}}],line:1843},130:{loc:{start:{line:1862,column:6},end:{line:1865,column:7}},type:"if",locations:[{start:{line:1862,column:6},end:{line:1865,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1862},131:{loc:{start:{line:1870,column:6},end:{line:1872,column:7}},type:"if",locations:[{start:{line:1870,column:6},end:{line:1872,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1870},132:{loc:{start:{line:1888,column:10},end:{line:1894,column:11}},type:"if",locations:[{start:{line:1888,column:10},end:{line:1894,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1888},133:{loc:{start:{line:1944,column:6},end:{line:1971,column:7}},type:"if",locations:[{start:{line:1944,column:6},end:{line:1971,column:7}},{start:{line:1947,column:13},end:{line:1971,column:7}}],line:1944},134:{loc:{start:{line:1947,column:13},end:{line:1971,column:7}},type:"if",locations:[{start:{line:1947,column:13},end:{line:1971,column:7}},{start:{line:1957,column:13},end:{line:1971,column:7}}],line:1947},135:{loc:{start:{line:1957,column:13},end:{line:1971,column:7}},type:"if",locations:[{start:{line:1957,column:13},end:{line:1971,column:7}},{start:{line:1965,column:13},end:{line:1971,column:7}}],line:1957},136:{loc:{start:{line:1959,column:8},end:{line:1961,column:9}},type:"if",locations:[{start:{line:1959,column:8},end:{line:1961,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1959},137:{loc:{start:{line:1965,column:13},end:{line:1971,column:7}},type:"if",locations:[{start:{line:1965,column:13},end:{line:1971,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1965},138:{loc:{start:{line:1967,column:8},end:{line:1969,column:9}},type:"if",locations:[{start:{line:1967,column:8},end:{line:1969,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1967},139:{loc:{start:{line:1997,column:6},end:{line:1999,column:7}},type:"if",locations:[{start:{line:1997,column:6},end:{line:1999,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1997},140:{loc:{start:{line:1997,column:10},end:{line:1997,column:58}},type:"binary-expr",locations:[{start:{line:1997,column:10},end:{line:1997,column:40}},{start:{line:1997,column:44},end:{line:1997,column:58}}],line:1997},141:{loc:{start:{line:2007,column:8},end:{line:2010,column:9}},type:"if",locations:[{start:{line:2007,column:8},end:{line:2010,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:2007}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:0,136:0,137:0,138:0,139:0,140:0,141:0,142:0,143:0,144:0,145:0,146:0,147:0,148:0,149:0,150:0,151:0,152:0,153:0,154:0,155:0,156:0,157:0,158:0,159:0,160:0,161:0,162:0,163:0,164:0,165:0,166:0,167:0,168:0,169:0,170:0,171:0,172:0,173:0,174:0,175:0,176:0,177:0,178:0,179:0,180:0,181:0,182:0,183:0,184:0,185:0,186:0,187:0,188:0,189:0,190:0,191:0,192:0,193:0,194:0,195:0,196:0,197:0,198:0,199:0,200:0,201:0,202:0,203:0,204:0,205:0,206:0,207:0,208:0,209:0,210:0,211:0,212:0,213:0,214:0,215:0,216:0,217:0,218:0,219:0,220:0,221:0,222:0,223:0,224:0,225:0,226:0,227:0,228:0,229:0,230:0,231:0,232:0,233:0,234:0,235:0,236:0,237:0,238:0,239:0,240:0,241:0,242:0,243:0,244:0,245:0,246:0,247:0,248:0,249:0,250:0,251:0,252:0,253:0,254:0,255:0,256:0,257:0,258:0,259:0,260:0,261:0,262:0,263:0,264:0,265:0,266:0,267:0,268:0,269:0,270:0,271:0,272:0,273:0,274:0,275:0,276:0,277:0,278:0,279:0,280:0,281:0,282:0,283:0,284:0,285:0,286:0,287:0,288:0,289:0,290:0,291:0,292:0,293:0,294:0,295:0,296:0,297:0,298:0,299:0,300:0,301:0,302:0,303:0,304:0,305:0,306:0,307:0,308:0,309:0,310:0,311:0,312:0,313:0,314:0,315:0,316:0,317:0,318:0,319:0,320:0,321:0,322:0,323:0,324:0,325:0,326:0,327:0,328:0,329:0,330:0,331:0,332:0,333:0,334:0,335:0,336:0,337:0,338:0,339:0,340:0,341:0,342:0,343:0,344:0,345:0,346:0,347:0,348:0,349:0,350:0,351:0,352:0,353:0,354:0,355:0,356:0,357:0,358:0,359:0,360:0,361:0,362:0,363:0,364:0,365:0,366:0,367:0,368:0,369:0,370:0,371:0,372:0,373:0,374:0,375:0,376:0,377:0,378:0,379:0,380:0,381:0,382:0,383:0,384:0,385:0,386:0,387:0,388:0,389:0,390:0,391:0,392:0,393:0,394:0,395:0,396:0,397:0,398:0,399:0,400:0,401:0,402:0,403:0,404:0,405:0,406:0,407:0,408:0,409:0,410:0,411:0,412:0,413:0,414:0,415:0,416:0,417:0,418:0,419:0,420:0,421:0,422:0,423:0,424:0,425:0,426:0,427:0,428:0,429:0,430:0,431:0,432:0,433:0,434:0,435:0,436:0,437:0,438:0,439:0,440:0,441:0,442:0,443:0,444:0,445:0,446:0,447:0,448:0,449:0,450:0,451:0,452:0,453:0,454:0,455:0,456:0,457:0,458:0,459:0,460:0,461:0,462:0,463:0,464:0,465:0,466:0,467:0,468:0,469:0,470:0,471:0,472:0,473:0,474:0,475:0,476:0,477:0,478:0,479:0,480:0,481:0,482:0,483:0,484:0,485:0,486:0,487:0,488:0,489:0,490:0,491:0,492:0,493:0,494:0,495:0,496:0,497:0,498:0,499:0,500:0,501:0,502:0,503:0,504:0,505:0,506:0,507:0,508:0,509:0,510:0,511:0,512:0,513:0,514:0,515:0,516:0,517:0,518:0,519:0,520:0,521:0,522:0,523:0,524:0,525:0,526:0,527:0,528:0,529:0,530:0,531:0,532:0,533:0,534:0,535:0,536:0,537:0,538:0,539:0,540:0,541:0,542:0,543:0,544:0,545:0,546:0,547:0,548:0,549:0,550:0,551:0,552:0,553:0,554:0,555:0,556:0,557:0,558:0,559:0,560:0,561:0,562:0,563:0,564:0,565:0,566:0,567:0,568:0,569:0,570:0,571:0,572:0,573:0,574:0,575:0,576:0,577:0,578:0,579:0,580:0,581:0,582:0,583:0,584:0,585:0,586:0,587:0,588:0,589:0,590:0,591:0,592:0,593:0,594:0,595:0,596:0,597:0,598:0,599:0,600:0,601:0,602:0,603:0,604:0,605:0,606:0,607:0,608:0,609:0,610:0,611:0,612:0,613:0,614:0,615:0,616:0,617:0,618:0,619:0,620:0,621:0,622:0,623:0,624:0,625:0,626:0,627:0,628:0,629:0,630:0,631:0,632:0,633:0,634:0,635:0,636:0,637:0,638:0,639:0,640:0,641:0,642:0,643:0,644:0,645:0,646:0,647:0,648:0,649:0,650:0,651:0,652:0,653:0,654:0,655:0,656:0,657:0,658:0,659:0,660:0,661:0,662:0,663:0,664:0,665:0,666:0,667:0,668:0,669:0,670:0,671:0,672:0,673:0,674:0,675:0,676:0,677:0,678:0,679:0,680:0,681:0,682:0,683:0,684:0,685:0,686:0,687:0,688:0,689:0,690:0,691:0,692:0,693:0,694:0,695:0,696:0,697:0,698:0,699:0,700:0,701:0,702:0,703:0,704:0,705:0,706:0,707:0,708:0,709:0,710:0,711:0,712:0,713:0,714:0,715:0,716:0,717:0,718:0,719:0,720:0,721:0,722:0,723:0,724:0,725:0,726:0,727:0,728:0,729:0,730:0,731:0,732:0,733:0,734:0,735:0,736:0,737:0,738:0,739:0,740:0,741:0,742:0,743:0,744:0,745:0,746:0,747:0,748:0,749:0,750:0,751:0,752:0,753:0,754:0,755:0,756:0,757:0,758:0,759:0,760:0,761:0,762:0,763:0,764:0,765:0,766:0,767:0,768:0,769:0,770:0,771:0,772:0,773:0,774:0,775:0,776:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:0,136:0,137:0,138:0,139:0,140:0,141:0,142:0,143:0,144:0,145:0,146:0,147:0,148:0,149:0,150:0,151:0,152:0,153:0,154:0,155:0,156:0,157:0,158:0,159:0,160:0,161:0,162:0,163:0,164:0,165:0,166:0,167:0,168:0,169:0,170:0,171:0,172:0,173:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0],24:[0,0],25:[0,0],26:[0,0],27:[0,0,0],28:[0,0],29:[0,0],30:[0],31:[0,0],32:[0,0],33:[0,0],34:[0,0],35:[0,0],36:[0,0,0],37:[0,0],38:[0,0],39:[0,0],40:[0,0],41:[0,0],42:[0,0],43:[0,0],44:[0,0],45:[0],46:[0,0],47:[0,0],48:[0,0],49:[0,0],50:[0,0],51:[0,0],52:[0,0],53:[0,0],54:[0,0,0,0,0,0,0],55:[0,0],56:[0,0],57:[0,0],58:[0,0],59:[0,0,0,0,0,0,0,0,0,0,0,0],60:[0,0],61:[0,0],62:[0,0],63:[0,0],64:[0,0],65:[0,0],66:[0,0],67:[0,0],68:[0,0],69:[0,0],70:[0,0],71:[0,0],72:[0,0,0,0,0,0,0,0,0,0,0,0],73:[0,0],74:[0,0,0],75:[0,0],76:[0,0],77:[0,0],78:[0,0],79:[0,0],80:[0,0],81:[0,0],82:[0,0],83:[0,0],84:[0,0],85:[0,0],86:[0,0],87:[0,0],88:[0,0],89:[0,0],90:[0,0],91:[0,0],92:[0,0],93:[0,0],94:[0,0],95:[0,0],96:[0,0],97:[0,0],98:[0,0],99:[0,0],100:[0,0],101:[0,0],102:[0],103:[0,0],104:[0,0],105:[0,0],106:[0,0],107:[0],108:[0,0],109:[0,0],110:[0,0],111:[0,0],112:[0,0],113:[0,0],114:[0,0],115:[0,0],116:[0,0],117:[0,0],118:[0],119:[0,0],120:[0,0],121:[0,0],122:[0,0],123:[0,0],124:[0,0,0],125:[0,0],126:[0,0],127:[0,0],128:[0,0],129:[0,0],130:[0,0],131:[0,0],132:[0,0],133:[0,0],134:[0,0],135:[0,0],136:[0,0],137:[0,0],138:[0,0],139:[0,0],140:[0,0],141:[0,0]},inputSourceMap:{version:3,sources:["ScriptRunner.vue"],names:[],mappings:";AAyYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ScriptRunner.vue",sourceRoot:"src/tools/ScriptRunner",sourcesContent:["\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2023, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <top-bar :menus=\"menus\" :title=\"title\" />\n <v-snackbar v-model=\"showAlert\" top :color=\"alertType\" :timeout=\"3000\">\n <v-icon> mdi-{{ alertType }} </v-icon>\n {{ alertText }}\n <template v-slot:action=\"{ attrs }\">\n <v-btn text v-bind=\"attrs\" @click=\"showAlert = false\"> Close </v-btn>\n </template>\n </v-snackbar>\n <v-snackbar v-model=\"showReadOnlyToast\" top :timeout=\"-1\" color=\"orange\">\n <v-icon> mdi-pencil-off </v-icon>\n {{ lockedBy }} is editing this script. Editor is in read-only mode\n <template v-slot:action=\"{ attrs }\">\n <v-btn\n text\n v-bind=\"attrs\"\n color=\"danger\"\n @click=\"confirmLocalUnlock\"\n data-test=\"unlock-button\"\n >\n Unlock\n </v-btn>\n <v-btn\n text\n v-bind=\"attrs\"\n @click=\"\n () => {\n showReadOnlyToast = false\n }\n \"\n >\n dismiss\n </v-btn>\n </template>\n </v-snackbar>\n <div class=\"grid\">\n <div\n class=\"item\"\n v-for=\"def in screens\"\n :key=\"def.id\"\n :id=\"screenId(def.id)\"\n ref=\"gridItem\"\n >\n <div class=\"item-content\">\n <openc3-screen\n :target=\"def.target\"\n :screen=\"def.screen\"\n :definition=\"def.definition\"\n :keywords=\"screenKeywords\"\n :initialFloated=\"true\"\n :initialTop=\"def.top\"\n :initialLeft=\"def.left\"\n :initialZ=\"3\"\n :minZ=\"3\"\n :fixFloated=\"true\"\n :count=\"def.count\"\n @close-screen=\"closeScreen(def.id)\"\n @delete-screen=\"closeScreen(def.id)\"\n />\n </div>\n </div>\n </div>\n <v-card style=\"padding: 10px\">\n <suite-runner\n v-if=\"suiteRunner\"\n :suite-map=\"suiteMap\"\n :disable-buttons=\"disableSuiteButtons\"\n @button=\"suiteRunnerButton\"\n />\n <div id=\"sr-controls\">\n <v-row no-gutters justify=\"space-between\">\n <v-icon v-if=\"showDisconnect\" class=\"mr-2\" color=\"red\">\n mdi-connection\n </v-icon>\n <v-tooltip bottom>\n <template v-slot:activator=\"{ on, attrs }\">\n <v-btn\n v-on=\"on\"\n v-bind=\"attrs\"\n icon\n @click=\"reloadFile\"\n :disabled=\"filename === NEW_FILENAME\"\n >\n <v-icon>mdi-cached</v-icon>\n </v-btn>\n </template>\n <span> Reload File </span>\n </v-tooltip>\n <v-select\n v-model=\"filenameSelect\"\n @change=\"fileNameChanged\"\n :items=\"fileList\"\n :disabled=\"fileList.length <= 1\"\n label=\"Filename\"\n id=\"filename\"\n data-test=\"filename\"\n style=\"width: 300px\"\n dense\n outlined\n hide-details\n />\n <v-text-field\n v-model=\"scriptId\"\n label=\"Script ID\"\n data-test=\"id\"\n class=\"shrink ml-2 script-state\"\n style=\"width: 100px\"\n dense\n outlined\n readonly\n hide-details\n />\n <v-text-field\n v-model=\"state\"\n label=\"Script State\"\n data-test=\"state\"\n class=\"shrink ml-2 script-state\"\n style=\"width: 120px\"\n dense\n outlined\n readonly\n hide-details\n />\n <v-progress-circular\n v-if=\"state === 'Connecting...'\"\n :size=\"40\"\n class=\"ml-2 mr-2\"\n indeterminate\n color=\"primary\"\n />\n <div v-else style=\"width: 40px; height: 40px\" class=\"ml-2 mr-2\"></div>\n\n \x3c!-- Disable the Start button when Suite Runner controls are showing --\x3e\n <v-spacer />\n <div v-if=\"startOrGoButton === 'Start'\">\n <v-btn\n @click=\"startHandler\"\n class=\"mx-1\"\n color=\"primary\"\n data-test=\"start-button\"\n :disabled=\"startOrGoDisabled\"\n >\n <span> Start </span>\n </v-btn>\n <v-tooltip bottom>\n <template v-slot:activator=\"{ on, attrs }\">\n <v-btn\n v-on=\"on\"\n v-bind=\"attrs\"\n @click=\"scriptEnvironment.show = !scriptEnvironment.show\"\n class=\"mx-1\"\n data-test=\"env-button\"\n :color=\"environmentIconColor\"\n :disabled=\"envDisabled\"\n >\n <v-icon> {{ environmentIcon }} </v-icon>\n </v-btn>\n </template>\n <span>Script Environment</span>\n </v-tooltip>\n </div>\n <div v-else>\n <v-btn\n @click=\"go\"\n color=\"primary\"\n class=\"mr-2\"\n :disabled=\"startOrGoDisabled\"\n data-test=\"go-button\"\n >\n Go\n </v-btn>\n <v-btn\n color=\"primary\"\n @click=\"pauseOrRetry\"\n class=\"mr-2\"\n :disabled=\"pauseOrRetryDisabled\"\n data-test=\"pause-retry-button\"\n >\n {{ pauseOrRetryButton }}\n </v-btn>\n\n <v-btn\n color=\"primary\"\n @click=\"stop\"\n data-test=\"stop-button\"\n :disabled=\"stopDisabled\"\n >\n Stop\n </v-btn>\n </div>\n </v-row>\n </div>\n </v-card>\n \x3c!-- Create Multipane container to support resizing.\n NOTE: We listen to paneResize event and call editor.resize() to prevent weird sizing issues,\n The event must be paneResize and not pane-resize --\x3e\n <multipane\n class=\"horizontal-panes\"\n layout=\"horizontal\"\n @paneResize=\"editor.resize()\"\n >\n <div class=\"editorbox pane\">\n <v-snackbar\n v-model=\"showSave\"\n absolute\n top\n right\n :timeout=\"-1\"\n class=\"saving\"\n >\n Saving...\n </v-snackbar>\n <pre\n ref=\"editor\"\n class=\"editor\"\n @contextmenu.prevent=\"showExecuteSelectionMenu\"\n ></pre>\n <v-menu\n v-model=\"executeSelectionMenu\"\n :position-x=\"menuX\"\n :position-y=\"menuY\"\n absolute\n offset-y\n >\n <v-list>\n <v-list-item\n v-for=\"item in executeSelectionMenuItems\"\n link\n :key=\"item.label\"\n :disabled=\"scriptId\"\n >\n <v-list-item-title @click=\"item.command\">\n {{ item.label }}\n </v-list-item-title>\n </v-list-item>\n </v-list>\n </v-menu>\n </div>\n <multipane-resizer><hr /></multipane-resizer>\n <div id=\"messages\" class=\"mt-2 pane\" ref=\"messagesDiv\">\n <div id=\"debug\" class=\"pa-0\" v-if=\"showDebug\">\n <v-row no-gutters>\n <v-btn\n color=\"primary\"\n @click=\"step\"\n style=\"width: 100px\"\n class=\"mr-4\"\n :disabled=\"!scriptId\"\n data-test=\"step-button\"\n >\n Step\n <v-icon right> mdi-step-forward </v-icon>\n </v-btn>\n <v-text-field\n class=\"mb-2\"\n outlined\n dense\n hide-details\n label=\"Debug\"\n v-model=\"debug\"\n @keydown=\"debugKeydown\"\n data-test=\"debug-text\"\n />\n </v-row>\n </div>\n <script-log-messages v-model=\"messages\" @sort=\"messageSortOrder\" />\n </div>\n </multipane>\n \x3c!--- MENUS ---\x3e\n <file-open-save-dialog\n v-if=\"fileOpen\"\n v-model=\"fileOpen\"\n type=\"open\"\n api-url=\"/script-api/scripts\"\n @file=\"setFile($event)\"\n @error=\"setError($event)\"\n @clear-temp=\"clearTemp($event)\"\n />\n <file-open-save-dialog\n v-if=\"showSaveAs\"\n v-model=\"showSaveAs\"\n type=\"save\"\n api-url=\"/script-api/scripts\"\n require-target-parent-dir\n :input-filename=\"filenameOrBlank\"\n @filename=\"saveAsFilename($event)\"\n @error=\"setError($event)\"\n @clear-temp=\"clearTemp($event)\"\n />\n <environment-dialog v-if=\"showEnvironment\" v-model=\"showEnvironment\" />\n <ask-dialog\n v-if=\"ask.show\"\n v-model=\"ask.show\"\n :question=\"ask.question\"\n :default=\"ask.default\"\n :password=\"ask.password\"\n :answer-required=\"ask.answerRequired\"\n @response=\"ask.callback\"\n />\n <file-dialog\n v-if=\"file.show\"\n v-model=\"file.show\"\n :title=\"file.title\"\n :message=\"file.message\"\n :multiple=\"file.multiple\"\n :filter=\"file.filter\"\n @response=\"fileDialogCallback\"\n />\n <information-dialog\n v-if=\"information.show\"\n v-model=\"information.show\"\n :title=\"information.title\"\n :text=\"information.text\"\n />\n <event-list-dialog\n v-if=\"inputMetadata.show\"\n v-model=\"inputMetadata.show\"\n :events=\"inputMetadata.events\"\n :utc=\"false\"\n new-metadata\n @close=\"inputMetadata.callback\"\n />\n <overrides-dialog v-if=\"showOverrides\" v-model=\"showOverrides\" />\n <prompt-dialog\n v-if=\"prompt.show\"\n v-model=\"prompt.show\"\n :title=\"prompt.title\"\n :subtitle=\"prompt.subtitle\"\n :message=\"prompt.message\"\n :details=\"prompt.details\"\n :buttons=\"prompt.buttons\"\n :layout=\"prompt.layout\"\n :multiple=\"prompt.multiple\"\n @response=\"prompt.callback\"\n />\n <results-dialog\n v-if=\"results.show\"\n v-model=\"results.show\"\n :text=\"results.text\"\n />\n <script-environment-dialog\n v-if=\"scriptEnvironment.show\"\n v-model=\"scriptEnvironment.show\"\n :input-environment=\"scriptEnvironment.env\"\n @environment=\"environmentHandler\"\n />\n <simple-text-dialog\n v-model=\"showSuiteError\"\n title=\"Suite Analysis Error\"\n :text=\"suiteError\"\n :width=\"1000\"\n />\n <v-bottom-sheet v-model=\"showScripts\">\n <v-sheet class=\"pb-11 pt-5 px-5\">\n <running-scripts\n v-if=\"showScripts\"\n :connect-in-new-tab=\"!!fileModified\"\n @disconnect=\"scriptDisconnect\"\n @close=\"\n () => {\n showScripts = false\n }\n \"\n />\n </v-sheet>\n </v-bottom-sheet>\n </div>\n</template>\n\n<script>\nimport axios from 'axios'\nimport Cable from '@openc3/tool-common/src/services/cable.js'\nimport Api from '@openc3/tool-common/src/services/api'\nimport * as ace from 'ace-builds'\nimport 'ace-builds/src-min-noconflict/mode-ruby'\nimport 'ace-builds/src-min-noconflict/mode-python'\nimport 'ace-builds/src-min-noconflict/theme-twilight'\nimport 'ace-builds/src-min-noconflict/ext-language_tools'\nimport 'ace-builds/src-min-noconflict/ext-searchbox'\nimport { format } from 'date-fns'\nimport { Multipane, MultipaneResizer } from 'vue-multipane'\nimport FileOpenSaveDialog from '@openc3/tool-common/src/components/FileOpenSaveDialog'\nimport EnvironmentDialog from '@openc3/tool-common/src/components/EnvironmentDialog'\nimport SimpleTextDialog from '@openc3/tool-common/src/components/SimpleTextDialog'\nimport TopBar from '@openc3/tool-common/src/components/TopBar'\nimport { OpenC3Api } from '@openc3/tool-common/src/services/openc3-api'\nimport { fileIcon } from '@openc3/tool-common/src/tools/base/util/fileIcon'\n\nimport AskDialog from '@/tools/ScriptRunner/Dialogs/AskDialog'\nimport FileDialog from '@/tools/ScriptRunner/Dialogs/FileDialog'\nimport InformationDialog from '@/tools/ScriptRunner/Dialogs/InformationDialog'\nimport EventListDialog from '@openc3/tool-common/src/tools/calendar/Dialogs/EventListDialog'\nimport OverridesDialog from '@/tools/ScriptRunner/Dialogs/OverridesDialog'\nimport PromptDialog from '@/tools/ScriptRunner/Dialogs/PromptDialog'\nimport ResultsDialog from '@/tools/ScriptRunner/Dialogs/ResultsDialog'\nimport ScriptEnvironmentDialog from '@/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog'\nimport SuiteRunner from '@/tools/ScriptRunner/SuiteRunner'\nimport ScriptLogMessages from '@/tools/ScriptRunner/ScriptLogMessages'\nimport Openc3Screen from '@openc3/tool-common/src/components/Openc3Screen'\nimport {\n CmdCompleter,\n TlmCompleter,\n MnemonicChecker,\n} from '@/tools/ScriptRunner/autocomplete'\nimport { SleepAnnotator } from '@/tools/ScriptRunner/annotations'\nimport RunningScripts from './RunningScripts.vue'\n\n// Matches target_file.rb TEMP_FOLDER\nconst TEMP_FOLDER = '__TEMP__'\nconst NEW_FILENAME = '<Untitled>'\nconst START = 'Start'\nconst GO = 'Go'\nconst PAUSE = 'Pause'\nconst RETRY = 'Retry'\n\nexport default {\n components: {\n FileOpenSaveDialog,\n Openc3Screen,\n EnvironmentDialog,\n Multipane,\n MultipaneResizer,\n TopBar,\n AskDialog,\n FileDialog,\n InformationDialog,\n EventListDialog,\n OverridesDialog,\n PromptDialog,\n ResultsDialog,\n ScriptEnvironmentDialog,\n SimpleTextDialog,\n SuiteRunner,\n RunningScripts,\n ScriptLogMessages,\n },\n data() {\n return {\n title: 'Script Runner',\n suiteRunner: false, // Whether to display the SuiteRunner GUI\n disableSuiteButtons: false,\n suiteMap: {\n // Useful for testing the various options in the SuiteRunner GUI\n // Suite: {\n // teardown: true,\n // groups: {\n // Group: {\n // setup: true,\n // cases: ['case1', 'case2', 'really_long_test_case_name3'],\n // },\n // ReallyLongGroupName: {\n // cases: ['case1', 'case2', 'case3'],\n // },\n // },\n // },\n },\n filenameSelect: null,\n currentFilename: null, // This is the currently shown filename while running\n showSave: false,\n showAlert: false,\n alertType: null,\n alertText: '',\n state: null,\n scriptId: null,\n startOrGoButton: START,\n startOrGoDisabled: false,\n envDisabled: false,\n pauseOrRetryButton: PAUSE,\n pauseOrRetryDisabled: false,\n stopDisabled: false,\n showEnvironment: false,\n showDebug: false,\n debug: '',\n debugHistory: [],\n debugHistoryIndex: 0,\n showDisconnect: false,\n files: {},\n breakpoints: {},\n filename: NEW_FILENAME,\n saveAllowed: true,\n tempFilename: null,\n fileModified: '',\n fileOpen: false,\n lockedBy: null,\n showReadOnlyToast: false,\n showSaveAs: false,\n areYouSure: false,\n subscription: null,\n cable: null,\n fatal: false,\n updateInterval: null,\n receivedEvents: [],\n messages: [],\n messagesNewestOnTop: true,\n maxArrayLength: 200,\n Range: ace.require('ace/range').Range,\n ask: {\n show: false,\n question: '',\n default: null,\n password: false,\n answerRequired: true,\n callback: () => {},\n },\n file: {\n show: false,\n message: '',\n directory: null,\n filter: '*',\n multiple: false,\n callback: () => {},\n },\n prompt: {\n show: false,\n title: '',\n subtitle: '',\n message: '',\n details: '',\n buttons: null,\n layout: 'horizontal',\n callback: () => {},\n },\n information: {\n show: false,\n title: '',\n text: [],\n },\n inputMetadata: {\n show: false,\n events: [],\n callback: () => {},\n },\n results: {\n show: false,\n text: '',\n },\n scriptEnvironment: {\n show: false,\n env: [],\n },\n showSuiteError: false,\n suiteError: '',\n executeSelectionMenu: false,\n menuX: 0,\n menuY: 0,\n mnemonicChecker: new MnemonicChecker(),\n showScripts: false,\n showOverrides: false,\n activePromptId: '',\n api: null,\n screens: [],\n screenKeywords: null,\n idCounter: 0,\n updateCounter: 0,\n recent: [],\n }\n },\n computed: {\n // This is the list of files shown in the select dropdown\n fileList: function () {\n // this.files is the list of all files seen while running\n const filenames = Object.keys(this.files)\n filenames.push(this.fullFilename) // Make sure the currently shown filename is last\n return [...new Set(filenames)] // ensure unique\n },\n environmentIcon: function () {\n return this.scriptEnvironment.env.length > 0\n ? 'mdi-bookmark'\n : 'mdi-bookmark-outline'\n },\n environmentIconColor: function () {\n return this.scriptEnvironment.env.length > 0 ? 'primary' : ''\n },\n readOnly: function () {\n return !!this.lockedBy\n },\n // Returns the currently shown filename\n fullFilename: function () {\n if (this.currentFilename) return this.currentFilename\n // New filenames should not indicate modified\n if (this.filename === NEW_FILENAME) return NEW_FILENAME\n return `${this.filename} ${this.fileModified}`.trim()\n },\n // It's annoying for people (and tests) to clear the <Untitled>\n // when saving a new file so replace with blank\n // This makes sure that string doesn't show up in the dialog\n filenameOrBlank: function () {\n return this.filename === NEW_FILENAME ? '' : this.filename\n },\n menus: function () {\n return [\n {\n label: 'File',\n items: [\n {\n label: 'New File',\n icon: 'mdi-file-plus',\n disabled: this.scriptId,\n command: () => {\n this.newFile()\n },\n },\n {\n label: 'New Test Suite',\n icon: 'mdi-file-plus',\n disabled: this.scriptId,\n subMenu: [\n {\n label: 'Ruby',\n icon: 'mdi-language-ruby',\n command: () => {\n this.newRubyTestSuite()\n },\n },\n {\n label: 'Python',\n icon: 'mdi-language-python',\n command: () => {\n this.newPythonTestSuite()\n },\n },\n ],\n },\n {\n label: 'Open File',\n icon: 'mdi-folder-open',\n disabled: this.scriptId,\n command: () => {\n this.openFile()\n },\n },\n {\n label: 'Open Recent',\n icon: 'mdi-folder-open',\n disabled: this.scriptId,\n subMenu: this.recent,\n },\n {\n divider: true,\n },\n {\n label: 'Save File',\n icon: 'mdi-content-save',\n disabled: this.scriptId,\n command: () => {\n this.saveFile()\n },\n },\n {\n label: 'Save As...',\n icon: 'mdi-content-save',\n disabled: this.scriptId,\n command: () => {\n this.saveAs()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Download',\n icon: 'mdi-cloud-download',\n disabled: this.scriptId,\n command: () => {\n this.download()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Delete File',\n icon: 'mdi-delete',\n disabled: this.scriptId,\n command: () => {\n this.delete()\n },\n },\n ],\n },\n {\n label: 'Edit',\n items: [\n {\n label: 'Find',\n icon: 'mdi-magnify',\n command: () => {\n this.editor.execCommand('find')\n },\n },\n {\n label: 'Replace',\n icon: 'mdi-find-replace',\n disabled: this.scriptId,\n command: () => {\n this.editor.execCommand('replace')\n },\n },\n ],\n },\n {\n label: 'Script',\n items: [\n {\n label: 'Execution Status',\n icon: 'mdi-run',\n command: () => {\n this.showScripts = true\n },\n },\n {\n divider: true,\n },\n {\n label: 'Global Environment',\n icon: 'mdi-library',\n disabled: this.scriptId,\n command: () => {\n this.showEnvironment = !this.showEnvironment\n },\n },\n {\n label: 'Metadata',\n icon: 'mdi-calendar',\n disabled: this.scriptId,\n command: () => {\n this.inputMetadata.callback = () => {}\n this.showMetadata()\n },\n },\n {\n label: 'Overrides',\n icon: 'mdi-swap-horizontal',\n command: () => {\n this.showOverrides = true\n },\n },\n {\n divider: true,\n },\n {\n label: 'Syntax Check',\n icon: 'mdi-file-check',\n disabled: this.scriptId,\n command: () => {\n this.syntaxCheck()\n },\n },\n {\n label: 'Mnemonic Check',\n icon: 'mdi-spellcheck',\n disabled: this.scriptId,\n command: () => {\n this.checkMnemonics()\n },\n },\n {\n label: 'Instrumented Script',\n icon: 'mdi-code-braces-box',\n disabled: this.scriptId,\n command: () => {\n this.showInstrumented()\n },\n },\n {\n label: 'Call Stack',\n icon: 'mdi-format-list-numbered',\n disabled: !this.scriptId,\n command: () => {\n this.showCallStack()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Toggle Debug',\n icon: 'mdi-bug',\n command: () => {\n this.toggleDebug()\n },\n },\n {\n label: 'Toggle Disconnect',\n icon: 'mdi-connection',\n disabled: this.scriptId,\n command: () => {\n this.toggleDisconnect()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Delete All Breakpoints',\n icon: 'mdi-delete-circle-outline',\n disabled: this.scriptId,\n command: () => {\n this.deleteAllBreakpoints()\n },\n },\n ],\n },\n ]\n },\n executeSelectionMenuItems: function () {\n return [\n {\n label: 'Execute selection',\n command: this.executeSelection,\n },\n {\n label: 'Run from here',\n command: this.runFromCursor,\n },\n {\n label: 'Clear local breakpoints',\n command: this.clearBreakpoints,\n },\n ]\n },\n },\n watch: {\n readOnly: function (val) {\n this.showReadOnlyToast = val\n if (!this.suiteRunner) {\n this.startOrGoDisabled = val\n }\n this.editor.setReadOnly(val)\n },\n fullFilename: function (filename) {\n this.filenameSelect = filename\n if (filename === NEW_FILENAME) {\n localStorage.removeItem('script_runner__filename')\n } else {\n localStorage['script_runner__filename'] = filename\n }\n },\n },\n created: function () {\n // Ensure Offline Access Is Setup For the Current User\n this.api = new OpenC3Api()\n this.api.ensure_offline_access()\n\n // Make NEW_FILENAME available to the template\n this.NEW_FILENAME = NEW_FILENAME\n window.onbeforeunload = this.unlockFile\n\n Api.get('/openc3-api/autocomplete/keywords/screen').then((response) => {\n this.screenKeywords = response.data\n })\n },\n mounted: async function () {\n this.editor = ace.edit(this.$refs.editor)\n this.editor.setTheme('ace/theme/twilight')\n // Public apis in api_shared but not in OpenC3Api\n const api_shared = [\n 'check',\n 'check_raw',\n 'check_formatted',\n 'check_with_units',\n 'check_exception',\n 'check_tolerance',\n 'check_expression',\n 'wait',\n 'wait_tolerance',\n 'wait_expression',\n 'wait_check',\n 'wait_check_tolerance',\n 'wait_check_expression',\n 'wait_packet',\n 'wait_check_packet',\n 'disable_instrumentation',\n 'set_line_delay',\n 'get_line_delay',\n 'set_max_output',\n 'get_max_output',\n ]\n const openC3RubyMode = this.buildOpenC3RubyMode(api_shared)\n const openC3PythonMode = this.buildOpenC3PythonMode(api_shared)\n this.openC3RubyMode = new openC3RubyMode()\n this.openC3PythonMode = new openC3PythonMode()\n this.editor.session.setMode(this.openC3RubyMode)\n this.editor.session.setTabSize(2)\n this.editor.session.setUseWrapMode(true)\n this.editor.$blockScrolling = Infinity\n this.editor.setOption('enableBasicAutocompletion', true)\n this.editor.setOption('enableLiveAutocompletion', true)\n this.editor.completers = [new CmdCompleter(), new TlmCompleter()]\n this.editor.setHighlightActiveLine(false)\n this.editor.focus()\n this.editor.on('guttermousedown', this.toggleBreakpoint)\n // We listen to tokenizerUpdate rather than change because this\n // is the background process that updates as changes are processed\n // while change fires immediately before the UndoManager is updated.\n this.editor.session.on('tokenizerUpdate', this.onChange)\n\n const sleepAnnotator = new SleepAnnotator(this.editor)\n this.editor.session.on('change', ($event, session) => {\n sleepAnnotator.annotate($event, session)\n this.updateBreakpoints($event, session)\n })\n\n window.addEventListener('keydown', this.keydown)\n this.cable = new Cable('/script-api/cable')\n\n if (localStorage['script_runner__recent']) {\n this.recent = JSON.parse(localStorage['script_runner__recent'])\n // Rebuild the command since that doesn't get stringified\n this.recent = this.recent.map((item) => ({\n ...item,\n command: async (event) => {\n this.filename = event.label\n await this.reloadFile()\n },\n }))\n }\n if (this.$route.query?.file) {\n this.filename = this.$route.query.file\n await this.reloadFile()\n } else if (this.$route.params?.id) {\n await this.tryLoadRunningScript(this.$route.params.id)\n } else {\n if (localStorage['script_runner__filename']) {\n this.filename = localStorage['script_runner__filename']\n await this.reloadFile(false)\n }\n }\n // TODO: Potentially still bad interactions with autoSave\n // see https://github.com/OpenC3/cosmos/issues/915\n // this.autoSaveInterval = setInterval(async () => {\n // // Only save if not-running, modified, and visible (e.g. not open in another tab)\n // if (\n // !this.scriptId &&\n // this.fileModified.length > 0 &&\n // document.visibilityState === 'visible'\n // ) {\n // await this.saveFile('auto')\n // }\n // }, 60000) // Save every minute\n\n this.updateInterval = setInterval(async () => {\n this.processReceived()\n }, 100) // Every 100ms\n },\n beforeDestroy() {\n this.editor.destroy()\n this.editor.container.remove()\n },\n destroyed() {\n this.unlockFile()\n if (this.updateInterval != null) {\n clearInterval(this.updateInterval)\n }\n if (this.subscription) {\n this.subscription.unsubscribe()\n this.subscription = null\n }\n this.cable.disconnect()\n },\n beforeRouteUpdate: function (to, from, next) {\n if (to.params.id) {\n this.tryLoadRunningScript(to.params.id).then(next)\n } else {\n next()\n }\n },\n methods: {\n scriptDisconnect() {\n if (this.subscription) {\n this.subscription.unsubscribe()\n this.subscription = null\n }\n this.receivedEvents.length = 0 // Clear any unprocessed events\n },\n showMetadata() {\n Api.get('/openc3-api/metadata').then((response) => {\n // TODO: This is how Calendar creates new metadata items via makeMetadataEvent\n this.inputMetadata.events = response.data.map((event) => {\n return {\n name: 'Metadata',\n start: new Date(event.start * 1000),\n end: new Date(event.start * 1000),\n color: event.color,\n type: event.type,\n timed: true,\n metadata: event,\n }\n })\n this.inputMetadata.show = true\n })\n },\n buildOpenC3RubyMode(api_shared) {\n var oop = ace.require('ace/lib/oop')\n var RubyHighlightRules = ace.require(\n 'ace/mode/ruby_highlight_rules',\n ).RubyHighlightRules\n\n let apis = Object.getOwnPropertyNames(OpenC3Api.prototype)\n .filter((a) => a !== 'constructor')\n .filter((a) => a !== 'exec')\n .concat(api_shared)\n let regex = new RegExp(`(\\\\b${apis.join('\\\\b|\\\\b')}\\\\b)`)\n var OpenC3HighlightRules = function () {\n RubyHighlightRules.call(this)\n // add openc3 rules to the ruby rules\n for (var rule in this.$rules) {\n this.$rules[rule].unshift({\n regex: regex,\n token: 'support.function',\n })\n }\n }\n oop.inherits(OpenC3HighlightRules, RubyHighlightRules)\n\n var MatchingBraceOutdent = ace.require(\n 'ace/mode/matching_brace_outdent',\n ).MatchingBraceOutdent\n var CstyleBehaviour = ace.require(\n 'ace/mode/behaviour/cstyle',\n ).CstyleBehaviour\n var FoldMode = ace.require('ace/mode/folding/ruby').FoldMode\n var Mode = function () {\n this.HighlightRules = OpenC3HighlightRules\n this.$outdent = new MatchingBraceOutdent()\n this.$behaviour = new CstyleBehaviour()\n this.foldingRules = new FoldMode()\n this.indentKeywords = this.foldingRules.indentKeywords\n }\n var RubyMode = ace.require('ace/mode/ruby').Mode\n oop.inherits(Mode, RubyMode)\n ;(function () {\n this.$id = 'ace/mode/openc3'\n }).call(Mode.prototype)\n return Mode\n },\n buildOpenC3PythonMode(api_shared) {\n var oop = ace.require('ace/lib/oop')\n var PythonHighlightRules = ace.require(\n 'ace/mode/python_highlight_rules',\n ).PythonHighlightRules\n\n let apis = Object.getOwnPropertyNames(OpenC3Api.prototype)\n .filter((a) => a !== 'constructor')\n .filter((a) => a !== 'exec')\n .concat(api_shared)\n let regex = new RegExp(`(\\\\b${apis.join('\\\\b|\\\\b')}\\\\b)`)\n var OpenC3HighlightRules = function () {\n PythonHighlightRules.call(this)\n // add openc3 rules to the python rules\n for (var rule in this.$rules) {\n this.$rules[rule].unshift({\n regex: regex,\n token: 'support.function',\n })\n }\n }\n oop.inherits(OpenC3HighlightRules, PythonHighlightRules)\n\n var MatchingBraceOutdent = ace.require(\n 'ace/mode/matching_brace_outdent',\n ).MatchingBraceOutdent\n var CstyleBehaviour = ace.require(\n 'ace/mode/behaviour/cstyle',\n ).CstyleBehaviour\n var FoldMode = ace.require('ace/mode/folding/pythonic').FoldMode\n var Mode = function () {\n this.HighlightRules = OpenC3HighlightRules\n this.$outdent = new MatchingBraceOutdent()\n this.$behaviour = new CstyleBehaviour()\n this.foldingRules = new FoldMode()\n this.indentKeywords = this.foldingRules.indentKeywords\n }\n var PythonMode = ace.require('ace/mode/python').Mode\n oop.inherits(Mode, PythonMode)\n ;(function () {\n this.$id = 'ace/mode/openc3'\n }).call(Mode.prototype)\n return Mode\n },\n messageSortOrder(order) {\n // See ScriptLogMessages for these strings\n if (order === 'Newest on Top' && this.messagesNewestOnTop === false) {\n this.messagesNewestOnTop = true\n this.messages.reverse()\n } else if (\n order === 'Newest on Bottom' &&\n this.messagesNewestOnTop === true\n ) {\n this.messagesNewestOnTop = false\n this.messages.reverse()\n }\n },\n // This only gets called when the user changes the filename dropdown\n // Or when a user hits Go\n fileNameChanged(filename) {\n // Split off the '*' which indicates modified\n filename = filename.split('*')[0]\n this.editor.setValue(this.files[filename].content)\n this.restoreBreakpoints(filename)\n this.editor.clearSelection()\n this.removeAllMarkers()\n this.editor.session.addMarker(\n new this.Range(\n this.files[filename].lineNo - 1,\n 0,\n this.files[filename].lineNo - 1,\n 1,\n ),\n `${this.state}Marker`,\n 'fullLine',\n )\n this.editor.gotoLine(this.files[filename].lineNo)\n },\n tryLoadRunningScript: function (id) {\n return Api.get('/script-api/running-script').then((response) => {\n const loadRunningScript = response.data.find(\n (s) => `${s.id}` === `${id}`,\n )\n if (loadRunningScript) {\n this.filename = loadRunningScript.name\n this.tryLoadSuites()\n this.initScriptStart()\n this.scriptStart(loadRunningScript.id)\n } else {\n this.$notify.caution({\n title: `Running Script ${id} not found`,\n body: 'Check the Completed Scripts below ...',\n })\n this.showScripts = true\n }\n })\n },\n tryLoadSuites: function () {\n Api.get(`/script-api/scripts/${this.filename}`).then((response) => {\n if (response.data.suites) {\n this.startOrGoDisabled = true\n this.suiteRunner = true\n this.suiteMap = JSON.parse(response.data.suites)\n }\n if (response.data.error) {\n this.suiteError = response.data.error\n this.showSuiteError = true\n }\n // Disable suite buttons if we didn't successfully parse the suite\n this.disableSuiteButtons = response.data.success == false\n })\n },\n showExecuteSelectionMenu: function ($event) {\n this.menuX = $event.pageX\n this.menuY = $event.pageY\n this.executeSelectionMenu = true\n },\n runFromCursor: function () {\n const start = this.editor.getCursorPosition().row\n const text = this.editor.session.doc\n .getLines(start, this.editor.session.doc.getLength())\n .join('\\n')\n const breakpoints = this.getBreakpointRows()\n .filter((row) => row >= start)\n .map((row) => row - start)\n this.executeText(text, breakpoints)\n },\n executeSelection: function () {\n const text = this.editor.getSelectedText()\n const range = this.editor.getSelectionRange()\n const breakpoints = this.getBreakpointRows()\n .filter((row) => row <= range.end.row && row >= range.start.row)\n .map((row) => row - range.start.row)\n this.executeText(text, breakpoints)\n },\n async executeText(text, breakpoints = []) {\n let extension = this.fullFilename.split('.').pop()\n // Create a new temp script and open in new tab\n const selectionTempFilename =\n TEMP_FOLDER +\n '/' +\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss_SSS') +\n `_temp.${extension}`\n await Api.post(`/script-api/scripts/${selectionTempFilename}`, {\n data: {\n text,\n breakpoints,\n },\n })\n .then((response) => {\n return Api.post(`/script-api/scripts/${selectionTempFilename}/run`, {\n data: {\n environment: this.scriptEnvironment.env,\n },\n })\n })\n .then((response) => {\n window.open(`/tools/scriptrunner/${response.data}`)\n })\n },\n clearBreakpoints: function () {\n this.editor.session.clearBreakpoints()\n },\n toggleBreakpoint: function ($event) {\n // Don't allow setting breakpoints while running\n if (!this.scriptId) {\n const row = $event.getDocumentPosition().row\n if ($event.editor.session.getBreakpoints(row, 0)[row]) {\n $event.editor.session.clearBreakpoint(row)\n } else {\n $event.editor.session.setBreakpoint(row)\n }\n }\n },\n updateBreakpoints: function ($event, session) {\n if ($event.lines.length <= 1) {\n return\n }\n const rowsToUpdate = this.getBreakpointRows(session).filter(\n (row) =>\n ($event.start.column === 0 && row === $event.start.row) ||\n row > $event.start.row,\n )\n let rowsToDelete = []\n let offset = 0\n switch ($event.action) {\n case 'insert':\n offset = $event.lines.length - 1\n rowsToUpdate.reverse() // shift the lower ones down out of the way first\n break\n case 'remove':\n offset = -$event.lines.length + 1\n rowsToDelete = [...Array($event.lines.length).keys()].map(\n (row) => row + $event.start.row,\n )\n break\n }\n rowsToUpdate.forEach((row) => {\n session.clearBreakpoint(row)\n if (!rowsToDelete.includes(row)) {\n session.setBreakpoint(row + offset)\n }\n })\n },\n getBreakpointRows: function (session = this.editor.session) {\n return session\n .getBreakpoints()\n .map((breakpoint, row) => breakpoint && row) // [empty, 'ace_breakpoint', 'ace_breakpoint', empty] -> [empty, 1, 2, empty]\n .filter(Number.isInteger) // [empty, 1, 2, empty] -> [1, 2]\n },\n restoreBreakpoints: function (filename) {\n this.clearBreakpoints()\n this.breakpoints[filename]?.forEach((breakpoint) => {\n this.editor.session.setBreakpoint(breakpoint)\n })\n },\n deleteAllBreakpoints: function () {\n this.$dialog\n .confirm('Permanently delete all breakpoints for ALL scripts?', {\n okText: 'Delete',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n return Api.delete('/script-api/breakpoints/delete/all')\n })\n .then((response) => {\n this.clearBreakpoints()\n })\n },\n suiteRunnerButton(event) {\n if (this.startOrGoButton === START) {\n this.start(event, 'suiteRunner')\n } else {\n this.go(event, 'suiteRunner')\n }\n },\n async keydown(event) {\n // Don't ever save if running or readonly\n if (this.scriptId || this.editor.getReadOnly() === true) {\n return\n }\n // NOTE: Chrome does not allow overriding Ctrl-N, Ctrl-Shift-N, Ctrl-T, Ctrl-Shift-T, Ctrl-W\n // NOTE: metaKey == Command on Mac\n if (\n (event.metaKey || event.ctrlKey) &&\n event.keyCode === 'S'.charCodeAt(0)\n ) {\n if (event.shiftKey) {\n event.preventDefault()\n this.saveAs()\n } else {\n event.preventDefault()\n await this.saveFile()\n }\n }\n },\n onChange(event) {\n // Don't track changes when we're running or read-only (locked)\n if (this.scriptId || this.editor.getReadOnly() === true) {\n return\n }\n if (this.editor.session.getUndoManager().canUndo()) {\n this.fileModified = '*'\n } else {\n this.fileModified = ''\n }\n },\n checkMnemonics: function () {\n this.mnemonicChecker\n .checkText(this.editor.getValue())\n .then(({ skipped, problems }) => {\n let alertText = ''\n if (problems.length) {\n const problemText = problems\n .map((problem) => `${problem.lineNumber}: ${problem.error}`)\n .join('<br/>')\n alertText += `<strong>The following lines have problems:</strong><br/>${problemText}<br/><br/>`\n }\n if (skipped.length) {\n alertText +=\n '<strong>Mnemonics with string interpolation were not checked.</strong>'\n }\n if (alertText === '') {\n alertText = '<strong>Everything looks good!</strong>'\n }\n this.$dialog.alert(alertText.trim(), { html: true })\n })\n },\n initScriptStart() {\n this.disableSuiteButtons = true\n this.startOrGoDisabled = true\n this.envDisabled = true\n this.pauseOrRetryDisabled = true\n this.stopDisabled = true\n this.state = 'Connecting...'\n this.startOrGoButton = GO\n this.editor.setReadOnly(true)\n },\n scriptStart(id) {\n this.scriptId = id\n this.cable\n .createSubscription(\n 'RunningScriptChannel',\n window.openc3Scope,\n {\n received: (data) => this.received(data),\n },\n {\n id: this.scriptId,\n },\n )\n .then((subscription) => {\n this.subscription = subscription\n })\n },\n async scriptComplete() {\n // Ensure stopped, if the script has an error we don't get the server stopped message\n this.state = 'stopped'\n this.fatal = false\n this.scriptId = null // No current scriptId\n this.currentFilename = null // No current file running\n this.files = {} // Clear the file cache\n // Make sure we process no more events\n if (this.subscription) {\n await this.subscription.unsubscribe()\n this.subscription = null\n }\n this.receivedEvents.length = 0 // Clear any unprocessed events\n\n await this.reloadFile() // Make sure the right file is shown\n // We may have changed the contents (if there were sub-scripts)\n // so don't let the undo manager think this is a change\n this.editor.session.getUndoManager().reset()\n this.editor.setReadOnly(false)\n\n // Lastly enable the buttons so another script can start\n this.disableSuiteButtons = false\n this.startOrGoButton = START\n this.pauseOrRetryButton = PAUSE\n // Disable start if suiteRunner\n this.startOrGoDisabled = this.suiteRunner\n this.envDisabled = false\n this.pauseOrRetryDisabled = true\n this.stopDisabled = true\n },\n environmentHandler: function (event) {\n this.scriptEnvironment.env = event\n },\n startHandler: function () {\n this.start()\n },\n async start(event, suiteRunner = null) {\n // Initialize variables and disable buttons before actually posting.\n // This prevents delays in the backend from delaying frontend changes\n // like disabling start which could allow users to click start twice.\n this.initScriptStart()\n await this.saveFile('start')\n this.saveAllowed = false\n let filename = this.filename\n if (this.filename === NEW_FILENAME) {\n // NEW_FILENAME so use tempFilename created by saveFile()\n filename = this.tempFilename\n }\n let url = `/script-api/scripts/${filename}/run`\n if (this.showDisconnect) {\n url += '/disconnect'\n }\n let data = {\n environment: this.scriptEnvironment.env,\n }\n if (suiteRunner) {\n data['suiteRunner'] = event\n }\n Api.post(url, { data })\n .then((response) => {\n this.scriptStart(response.data)\n })\n .catch((error) => {\n this.scriptComplete()\n })\n },\n go() {\n // Ensure we're on the correct filename when we hit go\n // They may have changed it using the drop down\n this.filenameSelect = this.currentFilename\n this.fileNameChanged(this.currentFilename)\n Api.post(`/script-api/running-script/${this.scriptId}/go`)\n },\n pauseOrRetry() {\n if (this.pauseOrRetryButton === PAUSE) {\n Api.post(`/script-api/running-script/${this.scriptId}/pause`)\n } else {\n this.pauseOrRetryButton = PAUSE\n Api.post(`/script-api/running-script/${this.scriptId}/retry`)\n }\n },\n stop() {\n // We previously encountered a fatal error so remove the marker\n // and cleanup by calling scriptComplete() because the script\n // is already stopped in the backend\n if (this.fatal) {\n this.removeAllMarkers()\n this.scriptComplete()\n } else {\n Api.post(`/script-api/running-script/${this.scriptId}/stop`)\n }\n },\n step() {\n Api.post(`/script-api/running-script/${this.scriptId}/step`)\n },\n processLine(data) {\n if (data.filename && data.filename !== this.currentFilename) {\n if (!this.files[data.filename]) {\n // We don't have the contents of the running file (probably because connected to running script)\n // Set the contents initially to an empty string so we don't start slamming the API\n this.files[data.filename] = { content: '', lineNo: 0 }\n\n // Request the script we need\n Api.get(`/script-api/scripts/${data.filename}`)\n .then((response) => {\n // Success - Save the script text and mark the currentFilename as null\n // so it will get loaded in on the next line executed\n this.files[data.filename] = {\n content: response.data.contents,\n lineNo: 0,\n }\n this.breakpoints[data.filename] = response.data.breakpoints\n this.restoreBreakpoints(data.filename)\n this.currentFilename = null\n })\n .catch((err) => {\n // Error - Restore the file contents to null so we'll try the API again on the next line\n this.files[data.filename] = null\n })\n } else {\n this.currentFilename = data.filename\n this.editor.setValue(this.files[data.filename].content)\n this.restoreBreakpoints(data.filename)\n this.editor.clearSelection()\n }\n }\n this.state = data.state\n const markers = this.editor.session.getMarkers()\n switch (this.state) {\n case 'running':\n this.startOrGoDisabled = false\n this.pauseOrRetryDisabled = false\n this.stopDisabled = false\n this.pauseOrRetryButton = PAUSE\n\n this.removeAllMarkers()\n this.editor.session.addMarker(\n new this.Range(data.line_no - 1, 0, data.line_no - 1, 1),\n 'runningMarker',\n 'fullLine',\n )\n this.editor.gotoLine(data.line_no)\n this.files[data.filename].lineNo = data.line_no\n break\n case 'fatal':\n this.fatal = true\n // Deliberate fall through (no break)\n case 'error':\n this.pauseOrRetryButton = RETRY\n // Deliberate fall through (no break)\n case 'breakpoint':\n case 'waiting':\n case 'paused':\n if (this.state == 'fatal') {\n this.startOrGoDisabled = true\n this.pauseOrRetryDisabled = true\n } else {\n this.startOrGoDisabled = false\n this.pauseOrRetryDisabled = false\n }\n this.stopDisabled = false\n let existing = Object.keys(markers).filter(\n (key) => markers[key].clazz === `${this.state}Marker`,\n )\n if (existing.length === 0) {\n this.removeAllMarkers()\n let line = data.line_no > 0 ? data.line_no : 1\n this.editor.session.addMarker(\n new this.Range(line - 1, 0, line - 1, 1),\n `${this.state}Marker`,\n 'fullLine',\n )\n this.editor.gotoLine(line)\n // Fatal errors don't always have a filename set\n if (data.filename) {\n this.files[data.filename].lineNo = line\n }\n }\n break\n default:\n break\n }\n },\n processReceived() {\n let count = 0\n for (let data of this.receivedEvents) {\n count += 1\n // eslint-disable-next-line\n // console.log(data) // Uncomment for debugging\n let index = 0\n switch (data.type) {\n case 'file':\n this.files[data.filename] = { content: data.text, lineNo: 0 }\n this.breakpoints[data.filename] = data.breakpoints\n if (this.currentFilename === data.filename) {\n this.restoreBreakpoints(data.filename)\n }\n break\n case 'line':\n // A further optimization would be to only process the last line of a batch\n // However with some testing this did not seem to make much difference\n // and was preventing the highlighting of the final line of a script because\n // the last line of the final batch was line_number 0 with state stopped\n // and that would never highlight the actual final line\n this.processLine(data)\n break\n case 'output':\n // data.line can consist of multiple lines split by newlines\n // thus we split and only output if the content is not empty\n for (const line of data.line.split('\\n')) {\n if (line) {\n if (this.messagesNewestOnTop) {\n this.messages.unshift({ message: line })\n } else {\n this.messages.push({ message: line })\n }\n }\n }\n while (this.messages.length > this.maxArrayLength) {\n this.messages.pop()\n }\n break\n case 'script':\n this.handleScript(data)\n break\n case 'report':\n this.results.text = data.report\n this.results.show = true\n break\n case 'complete':\n // Don't complete on fatal because we just sit there on the fatal line\n if (!this.fatal) {\n this.removeAllMarkers()\n this.scriptComplete()\n }\n break\n case 'step':\n this.showDebug = true\n break\n case 'screen':\n let found = false\n let definition = {}\n for (screen of this.screens) {\n if (\n screen.target == data.target_name &&\n screen.screen == data.screen_name\n ) {\n definition = screen\n found = true\n break\n }\n index += 1\n }\n this.$set(definition, 'target', data.target_name)\n this.$set(definition, 'screen', data.screen_name)\n this.$set(definition, 'definition', data.definition)\n if (data.x) {\n this.$set(definition, 'left', data.x)\n } else {\n this.$set(definition, 'left', 0)\n }\n if (data.y) {\n this.$set(definition, 'top', data.y)\n } else {\n this.$set(definition, 'top', 0)\n }\n this.$set(definition, 'count', this.updateCounter++)\n if (!found) {\n this.$set(definition, 'id', this.idCounter++)\n this.$set(this.screens, this.screens.length, definition)\n } else {\n this.$set(this.screens, index, definition)\n }\n break\n case 'clearscreen':\n for (screen of this.screens) {\n if (\n screen.target == data.target_name &&\n screen.screen == data.screen_name\n ) {\n this.screens.splice(index, 1)\n break\n }\n index += 1\n }\n break\n case 'clearallscreens':\n this.screens = []\n break\n case 'downloadfile':\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = window.location.origin + data.url\n link.setAttribute('download', data.filename)\n link.click()\n break\n default:\n // console.log('Unexpected ActionCable message')\n // console.log(data)\n break\n }\n }\n\n // Remove all the events we processed\n this.receivedEvents.splice(0, count)\n },\n received(data) {\n this.cable.recordPing()\n this.receivedEvents.push(data)\n },\n promptDialogCallback(value) {\n this.prompt.show = false\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: this.prompt.method,\n answer: value,\n prompt_id: this.activePromptId,\n multiple: this.prompt.multiple,\n },\n })\n },\n handleScript(data) {\n if (data.prompt_complete) {\n this.activePromptId = ''\n this.prompt.show = false\n this.ask.show = false\n return\n }\n this.activePromptId = data.prompt_id\n this.prompt.method = data.method // Set it here since all prompts use this\n this.prompt.layout = 'horizontal' // Reset the layout since most are horizontal\n this.prompt.title = 'Prompt'\n this.prompt.subtitle = ''\n this.prompt.details = ''\n this.prompt.buttons = []\n this.prompt.multiple = null\n switch (data.method) {\n case 'ask':\n case 'ask_string':\n // Reset values since this dialog can be re-used\n this.ask.default = null\n this.ask.answerRequired = true\n this.ask.password = false\n this.ask.question = data.args[0]\n // If the second parameter is not true or false it indicates a default value\n if (data.args[1] && data.args[1] !== true && data.args[1] !== false) {\n this.ask.default = data.args[1].toString()\n } else if (data.args[1] === true) {\n // If the second parameter is true it means no value is required to be entered\n this.ask.answerRequired = false\n }\n // The third parameter indicates a password textfield\n if (data.args[2] === true) {\n this.ask.password = true\n }\n this.ask.callback = (value) => {\n this.ask.show = false // Close the dialog\n if (this.ask.password) {\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: data.method,\n password: value, // Using password as a key automatically filters it from rails logs\n prompt_id: this.activePromptId,\n },\n })\n } else {\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: data.method,\n answer: value,\n prompt_id: this.activePromptId,\n },\n })\n }\n }\n this.ask.show = true // Display the dialog\n break\n case 'prompt_for_hazardous':\n this.prompt.title = 'Hazardous Command'\n this.prompt.message = `Warning: Command ${data.args[0]} ${data.args[1]} is Hazardous. `\n if (data.args[2]) {\n this.prompt.message += data.args[2] + ' '\n }\n this.prompt.message += 'Send?'\n this.prompt.buttons = [{ text: 'Send', value: 'Send' }]\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'prompt':\n if (data.kwargs && data.kwargs.informative) {\n this.prompt.subtitle = data.kwargs.informative\n }\n if (data.kwargs && data.kwargs.details) {\n this.prompt.details = data.kwargs.details\n }\n this.prompt.message = data.args[0]\n this.prompt.buttons = [{ text: 'Ok', value: 'Ok' }]\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'combo_box':\n if (data.kwargs && data.kwargs.informative) {\n this.prompt.subtitle = data.kwargs.informative\n }\n if (data.kwargs && data.kwargs.details) {\n this.prompt.details = data.kwargs.details\n }\n if (data.kwargs && data.kwargs.multiple) {\n this.prompt.multiple = true\n }\n this.prompt.message = data.args[0]\n data.args.slice(1).forEach((v) => {\n this.prompt.buttons.push({ text: v, value: v })\n })\n this.prompt.layout = 'combo'\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'message_box':\n case 'vertical_message_box':\n if (data.kwargs && data.kwargs.informative) {\n this.prompt.subtitle = data.kwargs.informative\n }\n if (data.kwargs && data.kwargs.details) {\n this.prompt.details = data.kwargs.details\n }\n this.prompt.message = data.args[0]\n data.args.slice(1).forEach((v) => {\n this.prompt.buttons.push({ text: v, value: v })\n })\n if (data.method.includes('vertical')) {\n this.prompt.layout = 'vertical'\n }\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'backtrace':\n this.information.title = 'Call Stack'\n this.information.text = data.args\n this.information.show = true\n break\n case 'metadata_input':\n this.inputMetadata.callback = (value) => {\n this.inputMetadata.show = false\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: data.method,\n answer: value,\n prompt_id: this.activePromptId,\n },\n })\n }\n this.showMetadata()\n break\n case 'open_file_dialog':\n case 'open_files_dialog':\n this.file.title = data.args[0]\n this.file.message = data.args[1]\n if (data.kwargs && data.kwargs.filter) {\n this.file.filter = data.kwargs.filter\n }\n if (data.method == 'open_files_dialog') {\n this.file.multiple = true\n }\n this.file.show = true\n break\n default:\n /* console.log(\n 'Unknown script method:' + data.method + ' with args:' + data.args\n ) */\n break\n }\n },\n async fileDialogCallback(files) {\n this.file.show = false // Close the dialog\n // Set fileNames to 'Cancel' in case they cancelled\n // otherwise we will populate it with the file names they selected\n let fileNames = 'Cancel'\n if (files != 'Cancel') {\n fileNames = []\n await files.forEach(async (file) => {\n fileNames.push(file.name)\n // Reassign data to presignedRequest for readability\n const { data: presignedRequest } = await Api.get(\n `/openc3-api/storage/upload/${encodeURIComponent(\n `${window.openc3Scope}/tmp/${file.name}`,\n )}?bucket=OPENC3_CONFIG_BUCKET`,\n )\n // This pushes the file into storage by using the fields in the presignedRequest\n // See storage_controller.rb get_presigned_request()\n const response = await axios({\n ...presignedRequest,\n data: file,\n })\n })\n }\n await Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: this.file.multiple ? 'open_files_dialog' : 'open_file_dialog',\n answer: fileNames,\n prompt_id: this.activePromptId,\n },\n })\n },\n setError(event) {\n this.alertType = 'error'\n this.alertText = `Error: ${event}`\n this.showAlert = true\n },\n // ScriptRunner File menu actions\n newFile() {\n this.unlockFile()\n this.filename = NEW_FILENAME\n this.currentFilename = null\n this.tempFilename = null\n this.files = {} // Clear the cached file list\n this.editor.session.setValue('')\n this.saveAllowed = true\n this.fileModified = ''\n this.suiteRunner = false\n this.startOrGoDisabled = false\n this.envDisabled = false\n this.$router\n .replace({\n name: 'ScriptRunner',\n })\n // catch the error in case we route to where we already are\n .catch((err) => {})\n document.title = 'Script Runner'\n },\n async newRubyTestSuite() {\n this.newFile()\n this.editor.session.setValue(`require 'openc3/script/suite.rb'\n\n# Group class name should indicate what the scripts are testing\nclass Power < OpenC3::Group\n # Methods beginning with script_ are added to Script dropdown\n def script_power_on\n # Using OpenC3::Group.puts adds the output to the Test Report\n # This can be useful for requirements verification, QA notes, etc\n OpenC3::Group.puts \"Verifying requirement SR-1\"\n configure()\n end\n\n # Other methods are not added to Script dropdown\n def configure\n end\n\n def setup\n # Run when Group Setup button is pressed\n # Run before all scripts when Group Start is pressed\n end\n\n def teardown\n # Run when Group Teardown button is pressed\n # Run after all scripts when Group Start is pressed\n end\nend\n\nclass TestSuite < OpenC3::Suite\n def initialize\n add_group('Power')\n end\n def setup\n # Run when Suite Setup button is pressed\n # Run before all groups when Suite Start is pressed\n end\n def teardown\n # Run when Suite Teardown button is pressed\n # Run after all groups when Suite Start is pressed\n end\nend\n`)\n await this.saveFile('auto')\n },\n async newPythonTestSuite() {\n this.newFile()\n this.editor.session.setValue(`from openc3.script.suite import Suite, Group\n\n# Group class name should indicate what the scripts are testing\nclass Power(Group):\n # Methods beginning with script_ are added to Script dropdown\n def script_power_on(self):\n # Using Group.print adds the output to the Test Report\n # This can be useful for requirements verification, QA notes, etc\n Group.print(\"Verifying requirement SR-1\")\n self.configure()\n\n # Other methods are not added to Script dropdown\n def configure(self):\n pass\n\n def setup(self):\n # Run when Group Setup button is pressed\n # Run before all scripts when Group Start is pressed\n pass\n\n def teardown(self):\n # Run when Group Teardown button is pressed\n # Run after all scripts when Group Start is pressed\n pass\n\nclass TestSuite(Suite):\n def __init__(self):\n self.add_group(Power)\n\n def setup(self):\n # Run when Suite Setup button is pressed\n # Run before all groups when Suite Start is pressed\n pass\n\n def teardown(self):\n # Run when Suite Teardown button is pressed\n # Run after all groups when Suite Start is pressed\n pass\n`)\n await this.saveFile('auto')\n },\n addToRecent(filename) {\n // See if this filename is already in the recent ... if so remove it\n let index = this.recent.findIndex((i) => i.label === filename)\n if (index !== -1) {\n this.recent.splice(index, 1)\n }\n // Push this filename to the front of the recently used\n this.recent.unshift({\n label: filename,\n icon: fileIcon(filename),\n command: async (event) => {\n this.filename = event.label\n await this.reloadFile()\n },\n })\n if (this.recent.length > 8) {\n this.recent.pop()\n }\n // This only stringifies the label and icon ... not the command\n localStorage['script_runner__recent'] = JSON.stringify(this.recent)\n },\n removeFromRecent(filename) {\n this.recent = this.recent.filter((entry) => entry.label !== filename)\n localStorage['script_runner__recent'] = JSON.stringify(this.recent)\n if (localStorage['script_runner__filename'] === filename) {\n localStorage.removeItem('script_runner__filename')\n }\n },\n openFile() {\n this.fileOpen = true\n },\n async reloadFile(showError = true) {\n // Disable start while we're loading the file so we don't hit Start\n // before it's fully loaded and then save over it with a blank file\n this.saveAllowed = false\n this.startOrGoDisabled = true\n await Api.get(`/script-api/scripts/${this.filename}`, {\n headers: {\n Accept: 'application/json',\n 'Ignore-Errors': '404',\n },\n })\n .then((response) => {\n const file = {\n name: this.filename,\n contents: response.data.contents,\n }\n if (response.data.suites) {\n file['suites'] = JSON.parse(response.data.suites)\n }\n if (response.data.error) {\n file['error'] = response.data.error\n }\n if (response.data.success) {\n file['success'] = response.data.success\n }\n const locked = response.data.locked\n const breakpoints = response.data.breakpoints\n this.setFile({ file, locked, breakpoints }, true)\n this.saveAllowed = true\n })\n .catch((error) => {\n if (showError === true) {\n this.$notify.caution({\n title: 'File Open Error',\n body: `Failed to open ${this.filename} due to ${error}`,\n })\n }\n this.removeFromRecent(this.filename)\n this.newFile() // Reset the GUI\n })\n },\n // Called by the FileOpenDialog to set the file contents\n setFile({ file, locked, breakpoints }, local = false) {\n this.files = {} // Clear the cached file list\n // Split off the ' *' which indicates a file is modified on the server\n let newFilename = file.name.split('*')[0]\n if (local === false) {\n // We only need to unlock if the file is different\n if (this.filename !== newFilename) {\n this.unlockFile() // first unlock what was just being edited\n this.lockedBy = locked\n }\n }\n this.filename = newFilename\n // Update the URL with the filename\n this.$router\n .replace({\n name: 'ScriptRunner',\n query: {\n file: this.filename,\n },\n })\n // catch the error in case we route to where we already are\n .catch((err) => {})\n\n // Update the browser tab with the name of the file first\n // so squished tabs are still useful, followed by the rest\n // of the path for context. Target name will be first which\n // is probably the most useful part of the path.\n let parts = this.filename.split('/')\n document.title = `${parts.pop()} (${parts.join('/')})`\n\n if (this.filename.split('.').pop() === 'py') {\n this.editor.session.setMode(this.openC3PythonMode)\n } else {\n this.editor.session.setMode(this.openC3RubyMode)\n }\n this.currentFilename = null\n this.editor.session.setValue(file.contents)\n this.breakpoints[filename] = breakpoints\n this.restoreBreakpoints(filename)\n this.fileModified = ''\n this.envDisabled = false\n this.addToRecent(this.filename)\n\n if (file.suites) {\n this.suiteRunner = true\n this.suiteMap = file.suites\n this.startOrGoDisabled = true\n } else {\n this.suiteRunner = false\n this.startOrGoDisabled = false\n }\n if (file.error) {\n this.suiteError = file.error\n this.showSuiteError = true\n }\n // Disable suite buttons if we didn't successfully parse the suite\n this.disableSuiteButtons = file.success == false\n },\n clearTemp() {\n this.recent = this.recent.filter(\n (entry) => !entry.label.includes('__TEMP__'),\n )\n localStorage['script_runner__recent'] = JSON.stringify(this.recent)\n },\n detectLanguage() {\n let rubyRegex1 = new RegExp('^\\\\s*(require|load|puts) ')\n let pythonRegex1 = new RegExp('^\\\\s*(import|from) ')\n let rubyRegex2 = new RegExp('^\\\\s*end\\\\s*$')\n let pythonRegex2 = new RegExp(\n '^\\\\s*(if|def|while|else|elif|class).*:\\\\s*$',\n )\n let pythonRegex3 = new RegExp('\\\\(f\"') // f strings\n let text = this.editor.getValue()\n let lines = text.split('\\n')\n for (let line of lines) {\n if (line.match(rubyRegex1)) {\n return 'ruby'\n }\n if (line.match(pythonRegex1)) {\n return 'python'\n }\n if (line.match(rubyRegex2)) {\n return 'ruby'\n }\n if (line.match(pythonRegex2)) {\n return 'python'\n }\n if (line.match(pythonRegex3)) {\n return 'python'\n }\n }\n return 'unknown' // otherwise unknown\n },\n // saveFile takes a type to indicate if it was called by the Menu\n // or automatically by 'Start' (to ensure a consistent backend file) or autoSave\n async saveFile(type = 'menu') {\n if (this.saveAllowed) {\n const breakpoints = this.getBreakpointRows()\n if (this.filename === NEW_FILENAME) {\n if (type === 'menu') {\n // Menu driven saves on a new file should prompt SaveAs\n this.saveAs()\n return\n } else {\n // start or auto with NEW_FILENAME\n if (this.tempFilename === null) {\n let language = this.detectLanguage()\n if (\n language === 'ruby' ||\n (type !== 'auto' && language == 'unknown')\n ) {\n this.tempFilename =\n TEMP_FOLDER +\n '/' +\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss_SSS') +\n '_temp.rb'\n } else if (language === 'python') {\n this.tempFilename =\n TEMP_FOLDER +\n '/' +\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss_SSS') +\n '_temp.py'\n } else {\n // No autosave for unknown language\n return\n }\n this.filename = this.tempFilename\n this.addToRecent(this.filename)\n }\n }\n }\n this.showSave = true\n await Api.post(`/script-api/scripts/${this.filename}`, {\n data: {\n text: this.editor.getValue(), // Pass in the raw file text\n breakpoints,\n },\n })\n .then((response) => {\n if (response.status == 200) {\n if (response.data.suites) {\n this.startOrGoDisabled = true\n this.suiteRunner = true\n this.suiteMap = JSON.parse(response.data.suites)\n } else {\n this.startOrGoDisabled = false\n this.suiteRunner = false\n this.suiteMap = {}\n }\n if (response.data.error) {\n this.suiteError = response.data.error\n this.showSuiteError = true\n }\n this.fileModified = ''\n setTimeout(() => {\n this.showSave = false\n }, 2000)\n } else {\n this.showSave = false\n this.alertType = 'error'\n this.alertText = `Error saving file. Code: ${response.status} Text: ${response.statusText}`\n this.showAlert = true\n }\n this.lockFile() // Ensure this file is locked for editing\n })\n .catch(({ response }) => {\n this.showSave = false\n // 422 error means we couldn't parse the script file into Suites\n // response.data.suites holds the parse result\n if (response.status == 422) {\n this.alertType = 'error'\n this.alertText = response.data.suites\n } else {\n this.alertType = 'error'\n this.alertText = `Error saving file. Code: ${response.status} Text: ${response.statusText}`\n }\n this.showAlert = true\n })\n } else {\n this.setError('Attempt to save file when not allowed')\n }\n },\n saveAs() {\n this.showSaveAs = true\n },\n async saveAsFilename(filename) {\n this.filename = filename.split('*')[0]\n this.currentFilename = null\n if (this.tempFilename) {\n Api.post(`/script-api/scripts/${this.tempFilename}/delete`)\n this.tempFilename = null\n }\n await this.saveFile('menu')\n },\n delete() {\n let filename = this.filename\n if (this.tempFilename) {\n filename = this.tempFilename\n }\n this.$dialog\n .confirm(`Permanently delete file: ${filename}`, {\n okText: 'Delete',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n return Api.post(`/script-api/scripts/${filename}/delete`, {\n data: {},\n })\n })\n .then((response) => {\n this.removeFromRecent(filename)\n this.newFile()\n })\n .catch((error) => {\n if (error) {\n const alertObject = {\n text: `Failed Multi-Delete. ${error}`,\n type: 'error',\n }\n this.$emit('alert', alertObject)\n }\n })\n },\n download() {\n const blob = new Blob([this.editor.getValue()], {\n type: 'text/plain',\n })\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = URL.createObjectURL(blob)\n link.setAttribute('download', this.filename)\n link.click()\n },\n // ScriptRunner Script menu actions\n syntaxCheck() {\n Api.post(`/script-api/scripts/${this.filename}/syntax`, {\n data: this.editor.getValue(),\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'plain/text',\n },\n }).then((response) => {\n this.information.title = response.data.title\n this.information.text = JSON.parse(response.data.description)\n this.information.show = true\n })\n },\n showInstrumented() {\n Api.post(`/script-api/scripts/${this.filename}/instrumented`, {\n data: this.editor.getValue(),\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'plain/text',\n },\n }).then((response) => {\n this.information.title = response.data.title\n this.information.text = JSON.parse(response.data.description)\n this.information.show = true\n })\n },\n showCallStack() {\n Api.post(`/script-api/running-script/${this.scriptId}/backtrace`)\n },\n toggleDebug() {\n this.showDebug = !this.showDebug\n },\n toggleDisconnect() {\n this.showDisconnect = !this.showDisconnect\n },\n debugKeydown(event) {\n if (event.key === 'Escape') {\n this.debug = ''\n this.debugHistoryIndex = this.debugHistory.length\n } else if (event.key === 'Enter') {\n this.debugHistory.push(this.debug)\n this.debugHistoryIndex = this.debugHistory.length\n // Post the code to /debug, output is processed by receive()\n Api.post(`/script-api/running-script/${this.scriptId}/debug`, {\n data: {\n args: this.debug,\n },\n })\n this.debug = ''\n } else if (event.key === 'ArrowUp') {\n this.debugHistoryIndex -= 1\n if (this.debugHistoryIndex < 0) {\n this.debugHistoryIndex = this.debugHistory.length - 1\n }\n this.debug = this.debugHistory[this.debugHistoryIndex]\n // Prevent the cursor/caret from moving to the front\n event.preventDefault()\n } else if (event.key === 'ArrowDown') {\n this.debugHistoryIndex += 1\n if (this.debugHistoryIndex >= this.debugHistory.length) {\n this.debugHistoryIndex = 0\n }\n this.debug = this.debugHistory[this.debugHistoryIndex]\n }\n },\n removeAllMarkers: function () {\n const allMarkers = this.editor.session.getMarkers()\n Object.keys(allMarkers)\n .filter((key) => allMarkers[key].type === 'fullLine')\n .forEach((marker) => this.editor.session.removeMarker(marker))\n },\n confirmLocalUnlock: function () {\n this.$dialog\n .confirm(\n 'Are you sure you want to unlock this script for editing? If another user is editing this script, your changes might conflict with each other.',\n {\n okText: 'Force Unlock',\n cancelText: 'Cancel',\n },\n )\n .then(() => {\n this.lockedBy = null\n return this.lockFile() // Re-lock it as this user so it's locked for anyone else who opens it\n })\n },\n lockFile: function () {\n return Api.post(`/script-api/scripts/${this.filename}/lock`)\n },\n unlockFile: function () {\n if (this.filename !== NEW_FILENAME && !this.readOnly) {\n Api.post(`/script-api/scripts/${this.filename}/unlock`)\n }\n },\n screenId(id) {\n return 'scriptRunnerScreen' + id\n },\n closeScreen(id) {\n let index = 0\n for (screen of this.screens) {\n if (screen.id == id) {\n this.screens.splice(index, 1)\n break\n }\n index += 1\n }\n },\n },\n}\n<\/script>\n\n<style scoped>\n#sr-controls {\n padding: 0px;\n}\n.editorbox {\n height: 50vh;\n}\n.editor {\n height: 100%;\n width: 100%;\n position: relative;\n font-size: 16px;\n}\nhr {\n pointer-events: none;\n position: relative;\n top: 7px;\n background-color: grey;\n height: 3px;\n width: 5%;\n margin: auto;\n}\n.script-state {\n background-color: var(--color-background-base-default);\n}\n.script-state :deep(input) {\n text-transform: capitalize;\n}\n</style>\n<style>\n.runningMarker {\n position: absolute;\n background: rgba(0, 255, 0, 0.5);\n z-index: 20;\n}\n.waitingMarker {\n position: absolute;\n background: rgba(0, 155, 0, 1);\n z-index: 20;\n}\n.breakpointMarker {\n position: absolute;\n border-style: solid;\n border-color: red;\n background: rgba(0, 255, 0, 0.5);\n z-index: 20;\n}\n.pausedMarker {\n position: absolute;\n background: rgba(0, 140, 255, 0.5);\n z-index: 20;\n}\n.errorMarker {\n position: absolute;\n background: rgba(255, 0, 119, 0.5);\n z-index: 20;\n}\n.fatalMarker {\n position: absolute;\n background: rgba(255, 0, 0, 0.5);\n z-index: 20;\n}\n.saving {\n z-index: 20;\n opacity: 0.35;\n}\n.ace_gutter-cell.ace_breakpoint {\n border-radius: 20px 0px 0px 20px;\n box-shadow: 0px 0px 1px 1px red inset;\n}\n.grid {\n position: relative;\n}\n.item {\n position: absolute;\n display: block;\n margin: 5px;\n z-index: 1;\n}\n.item-content {\n position: relative;\n cursor: pointer;\n border-radius: 6px;\n}\n</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"8ad94ff360ede2bac452588147f397e506fa6647"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return wl=function(){return o},o}wl();const xl=(wl().s[0]++,"__TEMP__"),kl=(wl().s[1]++,"<Untitled>"),Sl=(wl().s[2]++,"Start"),Ml=(wl().s[3]++,"Go"),El=(wl().s[4]++,"Pause"),Tl=(wl().s[5]++,"Retry"),Rl={components:{FileOpenSaveDialog:C,Openc3Screen:Ot,EnvironmentDialog:k,Multipane:d.S,MultipaneResizer:d.M,TopBar:F,AskDialog:K,FileDialog:le,InformationDialog:de,EventListDialog:gn,OverridesDialog:Sn,PromptDialog:On,ResultsDialog:Gn,ScriptEnvironmentDialog:Xn,SimpleTextDialog:I,SuiteRunner:it,RunningScripts:yl,ScriptLogMessages:mt},data(){return wl().f[0]++,wl().s[6]++,{title:"Script Runner",suiteRunner:!1,disableSuiteButtons:!1,suiteMap:{},filenameSelect:null,currentFilename:null,showSave:!1,showAlert:!1,alertType:null,alertText:"",state:null,scriptId:null,startOrGoButton:Sl,startOrGoDisabled:!1,envDisabled:!1,pauseOrRetryButton:El,pauseOrRetryDisabled:!1,stopDisabled:!1,showEnvironment:!1,showDebug:!1,debug:"",debugHistory:[],debugHistoryIndex:0,showDisconnect:!1,files:{},breakpoints:{},filename:kl,saveAllowed:!0,tempFilename:null,fileModified:"",fileOpen:!1,lockedBy:null,showReadOnlyToast:!1,showSaveAs:!1,areYouSure:!1,subscription:null,cable:null,fatal:!1,updateInterval:null,receivedEvents:[],messages:[],messagesNewestOnTop:!0,maxArrayLength:200,Range:c.require("ace/range").Range,ask:{show:!1,question:"",default:null,password:!1,answerRequired:!0,callback:()=>{wl().f[1]++}},file:{show:!1,message:"",directory:null,filter:"*",multiple:!1,callback:()=>{wl().f[2]++}},prompt:{show:!1,title:"",subtitle:"",message:"",details:"",buttons:null,layout:"horizontal",callback:()=>{wl().f[3]++}},information:{show:!1,title:"",text:[]},inputMetadata:{show:!1,events:[],callback:()=>{wl().f[4]++}},results:{show:!1,text:""},scriptEnvironment:{show:!1,env:[]},showSuiteError:!1,suiteError:"",executeSelectionMenu:!1,menuX:0,menuY:0,mnemonicChecker:new Xt,showScripts:!1,showOverrides:!1,activePromptId:"",api:null,screens:[],screenKeywords:null,idCounter:0,updateCounter:0,recent:[]}},computed:{fileList:function(){wl().f[5]++;const e=(wl().s[7]++,Object.keys(this.files));return wl().s[8]++,e.push(this.fullFilename),wl().s[9]++,[...new Set(e)]},environmentIcon:function(){return wl().f[6]++,wl().s[10]++,this.scriptEnvironment.env.length>0?(wl().b[0][0]++,"mdi-bookmark"):(wl().b[0][1]++,"mdi-bookmark-outline")},environmentIconColor:function(){return wl().f[7]++,wl().s[11]++,this.scriptEnvironment.env.length>0?(wl().b[1][0]++,"primary"):(wl().b[1][1]++,"")},readOnly:function(){return wl().f[8]++,wl().s[12]++,!!this.lockedBy},fullFilename:function(){return wl().f[9]++,wl().s[13]++,this.currentFilename?(wl().b[2][0]++,wl().s[14]++,this.currentFilename):(wl().b[2][1]++,wl().s[15]++,this.filename===kl?(wl().b[3][0]++,wl().s[16]++,kl):(wl().b[3][1]++,wl().s[17]++,`${this.filename} ${this.fileModified}`.trim()))},filenameOrBlank:function(){return wl().f[10]++,wl().s[18]++,this.filename===kl?(wl().b[4][0]++,""):(wl().b[4][1]++,this.filename)},menus:function(){return wl().f[11]++,wl().s[19]++,[{label:"File",items:[{label:"New File",icon:"mdi-file-plus",disabled:this.scriptId,command:()=>{wl().f[12]++,wl().s[20]++,this.newFile()}},{label:"New Test Suite",icon:"mdi-file-plus",disabled:this.scriptId,subMenu:[{label:"Ruby",icon:"mdi-language-ruby",command:()=>{wl().f[13]++,wl().s[21]++,this.newRubyTestSuite()}},{label:"Python",icon:"mdi-language-python",command:()=>{wl().f[14]++,wl().s[22]++,this.newPythonTestSuite()}}]},{label:"Open File",icon:"mdi-folder-open",disabled:this.scriptId,command:()=>{wl().f[15]++,wl().s[23]++,this.openFile()}},{label:"Open Recent",icon:"mdi-folder-open",disabled:this.scriptId,subMenu:this.recent},{divider:!0},{label:"Save File",icon:"mdi-content-save",disabled:this.scriptId,command:()=>{wl().f[16]++,wl().s[24]++,this.saveFile()}},{label:"Save As...",icon:"mdi-content-save",disabled:this.scriptId,command:()=>{wl().f[17]++,wl().s[25]++,this.saveAs()}},{divider:!0},{label:"Download",icon:"mdi-cloud-download",disabled:this.scriptId,command:()=>{wl().f[18]++,wl().s[26]++,this.download()}},{divider:!0},{label:"Delete File",icon:"mdi-delete",disabled:this.scriptId,command:()=>{wl().f[19]++,wl().s[27]++,this.delete()}}]},{label:"Edit",items:[{label:"Find",icon:"mdi-magnify",command:()=>{wl().f[20]++,wl().s[28]++,this.editor.execCommand("find")}},{label:"Replace",icon:"mdi-find-replace",disabled:this.scriptId,command:()=>{wl().f[21]++,wl().s[29]++,this.editor.execCommand("replace")}}]},{label:"Script",items:[{label:"Execution Status",icon:"mdi-run",command:()=>{wl().f[22]++,wl().s[30]++,this.showScripts=!0}},{divider:!0},{label:"Global Environment",icon:"mdi-library",disabled:this.scriptId,command:()=>{wl().f[23]++,wl().s[31]++,this.showEnvironment=!this.showEnvironment}},{label:"Metadata",icon:"mdi-calendar",disabled:this.scriptId,command:()=>{wl().f[24]++,wl().s[32]++,this.inputMetadata.callback=()=>{wl().f[25]++},wl().s[33]++,this.showMetadata()}},{label:"Overrides",icon:"mdi-swap-horizontal",command:()=>{wl().f[26]++,wl().s[34]++,this.showOverrides=!0}},{divider:!0},{label:"Syntax Check",icon:"mdi-file-check",disabled:this.scriptId,command:()=>{wl().f[27]++,wl().s[35]++,this.syntaxCheck()}},{label:"Mnemonic Check",icon:"mdi-spellcheck",disabled:this.scriptId,command:()=>{wl().f[28]++,wl().s[36]++,this.checkMnemonics()}},{label:"Instrumented Script",icon:"mdi-code-braces-box",disabled:this.scriptId,command:()=>{wl().f[29]++,wl().s[37]++,this.showInstrumented()}},{label:"Call Stack",icon:"mdi-format-list-numbered",disabled:!this.scriptId,command:()=>{wl().f[30]++,wl().s[38]++,this.showCallStack()}},{divider:!0},{label:"Toggle Debug",icon:"mdi-bug",command:()=>{wl().f[31]++,wl().s[39]++,this.toggleDebug()}},{label:"Toggle Disconnect",icon:"mdi-connection",disabled:this.scriptId,command:()=>{wl().f[32]++,wl().s[40]++,this.toggleDisconnect()}},{divider:!0},{label:"Delete All Breakpoints",icon:"mdi-delete-circle-outline",disabled:this.scriptId,command:()=>{wl().f[33]++,wl().s[41]++,this.deleteAllBreakpoints()}}]}]},executeSelectionMenuItems:function(){return wl().f[34]++,wl().s[42]++,[{label:"Execute selection",command:this.executeSelection},{label:"Run from here",command:this.runFromCursor},{label:"Clear local breakpoints",command:this.clearBreakpoints}]}},watch:{readOnly:function(e){wl().f[35]++,wl().s[43]++,this.showReadOnlyToast=e,wl().s[44]++,this.suiteRunner?wl().b[5][1]++:(wl().b[5][0]++,wl().s[45]++,this.startOrGoDisabled=e),wl().s[46]++,this.editor.setReadOnly(e)},fullFilename:function(e){wl().f[36]++,wl().s[47]++,this.filenameSelect=e,wl().s[48]++,e===kl?(wl().b[6][0]++,wl().s[49]++,localStorage.removeItem("script_runner__filename")):(wl().b[6][1]++,wl().s[50]++,localStorage["script_runner__filename"]=e)}},created:function(){wl().f[37]++,wl().s[51]++,this.api=new P.x,wl().s[52]++,this.api.ensure_offline_access(),wl().s[53]++,this.NEW_FILENAME=kl,wl().s[54]++,window.onbeforeunload=this.unlockFile,wl().s[55]++,r.A.get("/openc3-api/autocomplete/keywords/screen").then((e=>{wl().f[38]++,wl().s[56]++,this.screenKeywords=e.data}))},mounted:async function(){var e;wl().f[39]++,wl().s[57]++,this.editor=c.edit(this.$refs.editor),wl().s[58]++,this.editor.setTheme("ace/theme/twilight");const n=(wl().s[59]++,["check","check_raw","check_formatted","check_with_units","check_exception","check_tolerance","check_expression","wait","wait_tolerance","wait_expression","wait_check","wait_check_tolerance","wait_check_expression","wait_packet","wait_check_packet","disable_instrumentation","set_line_delay","get_line_delay","set_max_output","get_max_output"]),t=(wl().s[60]++,this.buildOpenC3RubyMode(n)),l=(wl().s[61]++,this.buildOpenC3PythonMode(n));wl().s[62]++,this.openC3RubyMode=new t,wl().s[63]++,this.openC3PythonMode=new l,wl().s[64]++,this.editor.session.setMode(this.openC3RubyMode),wl().s[65]++,this.editor.session.setTabSize(2),wl().s[66]++,this.editor.session.setUseWrapMode(!0),wl().s[67]++,this.editor.$blockScrolling=1/0,wl().s[68]++,this.editor.setOption("enableBasicAutocompletion",!0),wl().s[69]++,this.editor.setOption("enableLiveAutocompletion",!0),wl().s[70]++,this.editor.completers=[new Wt,new zt],wl().s[71]++,this.editor.setHighlightActiveLine(!1),wl().s[72]++,this.editor.focus(),wl().s[73]++,this.editor.on("guttermousedown",this.toggleBreakpoint),wl().s[74]++,this.editor.session.on("tokenizerUpdate",this.onChange);const i=(wl().s[75]++,new Al(this.editor));var s;(wl().s[76]++,this.editor.session.on("change",((e,n)=>{wl().f[40]++,wl().s[77]++,i.annotate(e,n),wl().s[78]++,this.updateBreakpoints(e,n)})),wl().s[79]++,window.addEventListener("keydown",this.keydown),wl().s[80]++,this.cable=new a.A("/script-api/cable"),wl().s[81]++,localStorage["script_runner__recent"]?(wl().b[7][0]++,wl().s[82]++,this.recent=JSON.parse(localStorage["script_runner__recent"]),wl().s[83]++,this.recent=this.recent.map((e=>(wl().f[41]++,wl().s[84]++,{...e,command:async e=>{wl().f[42]++,wl().s[85]++,this.filename=e.label,wl().s[86]++,await this.reloadFile()}})))):wl().b[7][1]++,wl().s[87]++,null!==(e=this.$route.query)&&void 0!==e&&e.file)?(wl().b[8][0]++,wl().s[88]++,this.filename=this.$route.query.file,wl().s[89]++,await this.reloadFile()):(wl().b[8][1]++,wl().s[90]++,null!==(s=this.$route.params)&&void 0!==s&&s.id?(wl().b[9][0]++,wl().s[91]++,await this.tryLoadRunningScript(this.$route.params.id)):(wl().b[9][1]++,wl().s[92]++,localStorage["script_runner__filename"]?(wl().b[10][0]++,wl().s[93]++,this.filename=localStorage["script_runner__filename"],wl().s[94]++,await this.reloadFile(!1)):wl().b[10][1]++));wl().s[95]++,this.updateInterval=setInterval((async()=>{wl().f[43]++,wl().s[96]++,this.processReceived()}),100)},beforeDestroy(){wl().f[44]++,wl().s[97]++,this.editor.destroy(),wl().s[98]++,this.editor.container.remove()},destroyed(){wl().f[45]++,wl().s[99]++,this.unlockFile(),wl().s[100]++,null!=this.updateInterval?(wl().b[11][0]++,wl().s[101]++,clearInterval(this.updateInterval)):wl().b[11][1]++,wl().s[102]++,this.subscription?(wl().b[12][0]++,wl().s[103]++,this.subscription.unsubscribe(),wl().s[104]++,this.subscription=null):wl().b[12][1]++,wl().s[105]++,this.cable.disconnect()},beforeRouteUpdate:function(e,n,t){wl().f[46]++,wl().s[106]++,e.params.id?(wl().b[13][0]++,wl().s[107]++,this.tryLoadRunningScript(e.params.id).then(t)):(wl().b[13][1]++,wl().s[108]++,t())},methods:{scriptDisconnect(){wl().f[47]++,wl().s[109]++,this.subscription?(wl().b[14][0]++,wl().s[110]++,this.subscription.unsubscribe(),wl().s[111]++,this.subscription=null):wl().b[14][1]++,wl().s[112]++,this.receivedEvents.length=0},showMetadata(){wl().f[48]++,wl().s[113]++,r.A.get("/openc3-api/metadata").then((e=>{wl().f[49]++,wl().s[114]++,this.inputMetadata.events=e.data.map((e=>(wl().f[50]++,wl().s[115]++,{name:"Metadata",start:new Date(1e3*e.start),end:new Date(1e3*e.start),color:e.color,type:e.type,timed:!0,metadata:e}))),wl().s[116]++,this.inputMetadata.show=!0}))},buildOpenC3RubyMode(e){wl().f[51]++;var n=(wl().s[117]++,c.require("ace/lib/oop")),t=(wl().s[118]++,c.require("ace/mode/ruby_highlight_rules").RubyHighlightRules);let l=(wl().s[119]++,Object.getOwnPropertyNames(P.x.prototype).filter((e=>(wl().f[52]++,wl().s[120]++,"constructor"!==e))).filter((e=>(wl().f[53]++,wl().s[121]++,"exec"!==e))).concat(e)),i=(wl().s[122]++,new RegExp(`(\\b${l.join("\\b|\\b")}\\b)`));wl().s[123]++;var s=function(){for(var e in wl().f[54]++,wl().s[124]++,t.call(this),wl().s[125]++,this.$rules)wl().s[126]++,this.$rules[e].unshift({regex:i,token:"support.function"})};wl().s[127]++,n.inherits(s,t);var o=(wl().s[128]++,c.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent),a=(wl().s[129]++,c.require("ace/mode/behaviour/cstyle").CstyleBehaviour),r=(wl().s[130]++,c.require("ace/mode/folding/ruby").FoldMode);wl().s[131]++;var u=function(){wl().f[55]++,wl().s[132]++,this.HighlightRules=s,wl().s[133]++,this.$outdent=new o,wl().s[134]++,this.$behaviour=new a,wl().s[135]++,this.foldingRules=new r,wl().s[136]++,this.indentKeywords=this.foldingRules.indentKeywords},d=(wl().s[137]++,c.require("ace/mode/ruby").Mode);return wl().s[138]++,n.inherits(u,d),wl().s[139]++,function(){wl().f[56]++,wl().s[140]++,this.$id="ace/mode/openc3"}.call(u.prototype),wl().s[141]++,u},buildOpenC3PythonMode(e){wl().f[57]++;var n=(wl().s[142]++,c.require("ace/lib/oop")),t=(wl().s[143]++,c.require("ace/mode/python_highlight_rules").PythonHighlightRules);let l=(wl().s[144]++,Object.getOwnPropertyNames(P.x.prototype).filter((e=>(wl().f[58]++,wl().s[145]++,"constructor"!==e))).filter((e=>(wl().f[59]++,wl().s[146]++,"exec"!==e))).concat(e)),i=(wl().s[147]++,new RegExp(`(\\b${l.join("\\b|\\b")}\\b)`));wl().s[148]++;var s=function(){for(var e in wl().f[60]++,wl().s[149]++,t.call(this),wl().s[150]++,this.$rules)wl().s[151]++,this.$rules[e].unshift({regex:i,token:"support.function"})};wl().s[152]++,n.inherits(s,t);var o=(wl().s[153]++,c.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent),a=(wl().s[154]++,c.require("ace/mode/behaviour/cstyle").CstyleBehaviour),r=(wl().s[155]++,c.require("ace/mode/folding/pythonic").FoldMode);wl().s[156]++;var u=function(){wl().f[61]++,wl().s[157]++,this.HighlightRules=s,wl().s[158]++,this.$outdent=new o,wl().s[159]++,this.$behaviour=new a,wl().s[160]++,this.foldingRules=new r,wl().s[161]++,this.indentKeywords=this.foldingRules.indentKeywords},d=(wl().s[162]++,c.require("ace/mode/python").Mode);return wl().s[163]++,n.inherits(u,d),wl().s[164]++,function(){wl().f[62]++,wl().s[165]++,this.$id="ace/mode/openc3"}.call(u.prototype),wl().s[166]++,u},messageSortOrder(e){wl().f[63]++,wl().s[167]++,wl().b[16][0]++,"Newest on Top"===e&&(wl().b[16][1]++,!1===this.messagesNewestOnTop)?(wl().b[15][0]++,wl().s[168]++,this.messagesNewestOnTop=!0,wl().s[169]++,this.messages.reverse()):(wl().b[15][1]++,wl().s[170]++,wl().b[18][0]++,"Newest on Bottom"===e&&(wl().b[18][1]++,!0===this.messagesNewestOnTop)?(wl().b[17][0]++,wl().s[171]++,this.messagesNewestOnTop=!1,wl().s[172]++,this.messages.reverse()):wl().b[17][1]++)},fileNameChanged(e){wl().f[64]++,wl().s[173]++,e=e.split("*")[0],wl().s[174]++,this.editor.setValue(this.files[e].content),wl().s[175]++,this.restoreBreakpoints(e),wl().s[176]++,this.editor.clearSelection(),wl().s[177]++,this.removeAllMarkers(),wl().s[178]++,this.editor.session.addMarker(new this.Range(this.files[e].lineNo-1,0,this.files[e].lineNo-1,1),`${this.state}Marker`,"fullLine"),wl().s[179]++,this.editor.gotoLine(this.files[e].lineNo)},tryLoadRunningScript:function(e){return wl().f[65]++,wl().s[180]++,r.A.get("/script-api/running-script").then((n=>{wl().f[66]++;const t=(wl().s[181]++,n.data.find((n=>(wl().f[67]++,wl().s[182]++,`${n.id}`===`${e}`))));wl().s[183]++,t?(wl().b[19][0]++,wl().s[184]++,this.filename=t.name,wl().s[185]++,this.tryLoadSuites(),wl().s[186]++,this.initScriptStart(),wl().s[187]++,this.scriptStart(t.id)):(wl().b[19][1]++,wl().s[188]++,this.$notify.caution({title:`Running Script ${e} not found`,body:"Check the Completed Scripts below ..."}),wl().s[189]++,this.showScripts=!0)}))},tryLoadSuites:function(){wl().f[68]++,wl().s[190]++,r.A.get(`/script-api/scripts/${this.filename}`).then((e=>{wl().f[69]++,wl().s[191]++,e.data.suites?(wl().b[20][0]++,wl().s[192]++,this.startOrGoDisabled=!0,wl().s[193]++,this.suiteRunner=!0,wl().s[194]++,this.suiteMap=JSON.parse(e.data.suites)):wl().b[20][1]++,wl().s[195]++,e.data.error?(wl().b[21][0]++,wl().s[196]++,this.suiteError=e.data.error,wl().s[197]++,this.showSuiteError=!0):wl().b[21][1]++,wl().s[198]++,this.disableSuiteButtons=0==e.data.success}))},showExecuteSelectionMenu:function(e){wl().f[70]++,wl().s[199]++,this.menuX=e.pageX,wl().s[200]++,this.menuY=e.pageY,wl().s[201]++,this.executeSelectionMenu=!0},runFromCursor:function(){wl().f[71]++;const e=(wl().s[202]++,this.editor.getCursorPosition().row),n=(wl().s[203]++,this.editor.session.doc.getLines(e,this.editor.session.doc.getLength()).join("\n")),t=(wl().s[204]++,this.getBreakpointRows().filter((n=>(wl().f[72]++,wl().s[205]++,n>=e))).map((n=>(wl().f[73]++,wl().s[206]++,n-e))));wl().s[207]++,this.executeText(n,t)},executeSelection:function(){wl().f[74]++;const e=(wl().s[208]++,this.editor.getSelectedText()),n=(wl().s[209]++,this.editor.getSelectionRange()),t=(wl().s[210]++,this.getBreakpointRows().filter((e=>(wl().f[75]++,wl().s[211]++,wl().b[22][0]++,e<=n.end.row&&(wl().b[22][1]++,e>=n.start.row)))).map((e=>(wl().f[76]++,wl().s[212]++,e-n.start.row))));wl().s[213]++,this.executeText(e,t)},async executeText(e,n=(wl().b[23][0]++,[])){wl().f[77]++;let t=(wl().s[214]++,this.fullFilename.split(".").pop());const l=(wl().s[215]++,xl+"/"+(0,u.GP)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+`_temp.${t}`);wl().s[216]++,await r.A.post(`/script-api/scripts/${l}`,{data:{text:e,breakpoints:n}}).then((e=>(wl().f[78]++,wl().s[217]++,r.A.post(`/script-api/scripts/${l}/run`,{data:{environment:this.scriptEnvironment.env}})))).then((e=>{wl().f[79]++,wl().s[218]++,window.open(`/tools/scriptrunner/${e.data}`)}))},clearBreakpoints:function(){wl().f[80]++,wl().s[219]++,this.editor.session.clearBreakpoints()},toggleBreakpoint:function(e){if(wl().f[81]++,wl().s[220]++,this.scriptId)wl().b[24][1]++;else{wl().b[24][0]++;const n=(wl().s[221]++,e.getDocumentPosition().row);wl().s[222]++,e.editor.session.getBreakpoints(n,0)[n]?(wl().b[25][0]++,wl().s[223]++,e.editor.session.clearBreakpoint(n)):(wl().b[25][1]++,wl().s[224]++,e.editor.session.setBreakpoint(n))}},updateBreakpoints:function(e,n){if(wl().f[82]++,wl().s[225]++,e.lines.length<=1)return wl().b[26][0]++,void wl().s[226]++;wl().b[26][1]++;const t=(wl().s[227]++,this.getBreakpointRows(n).filter((n=>(wl().f[83]++,wl().s[228]++,wl().b[27][0]++,0===e.start.column&&(wl().b[27][1]++,n===e.start.row)||(wl().b[27][2]++,n>e.start.row)))));let l=(wl().s[229]++,[]),i=(wl().s[230]++,0);switch(wl().s[231]++,e.action){case"insert":wl().b[28][0]++,wl().s[232]++,i=e.lines.length-1,wl().s[233]++,t.reverse(),wl().s[234]++;break;case"remove":wl().b[28][1]++,wl().s[235]++,i=1-e.lines.length,wl().s[236]++,l=[...Array(e.lines.length).keys()].map((n=>(wl().f[84]++,wl().s[237]++,n+e.start.row))),wl().s[238]++;break}wl().s[239]++,t.forEach((e=>{wl().f[85]++,wl().s[240]++,n.clearBreakpoint(e),wl().s[241]++,l.includes(e)?wl().b[29][1]++:(wl().b[29][0]++,wl().s[242]++,n.setBreakpoint(e+i))}))},getBreakpointRows:function(e=(wl().b[30][0]++,this.editor.session)){return wl().f[86]++,wl().s[243]++,e.getBreakpoints().map(((e,n)=>(wl().f[87]++,wl().s[244]++,wl().b[31][0]++,e&&(wl().b[31][1]++,n)))).filter(Number.isInteger)},restoreBreakpoints:function(e){var n;wl().f[88]++,wl().s[245]++,this.clearBreakpoints(),wl().s[246]++,null===(n=this.breakpoints[e])||void 0===n||n.forEach((e=>{wl().f[89]++,wl().s[247]++,this.editor.session.setBreakpoint(e)}))},deleteAllBreakpoints:function(){wl().f[90]++,wl().s[248]++,this.$dialog.confirm("Permanently delete all breakpoints for ALL scripts?",{okText:"Delete",cancelText:"Cancel"}).then((e=>(wl().f[91]++,wl().s[249]++,r.A.delete("/script-api/breakpoints/delete/all")))).then((e=>{wl().f[92]++,wl().s[250]++,this.clearBreakpoints()}))},suiteRunnerButton(e){wl().f[93]++,wl().s[251]++,this.startOrGoButton===Sl?(wl().b[32][0]++,wl().s[252]++,this.start(e,"suiteRunner")):(wl().b[32][1]++,wl().s[253]++,this.go(e,"suiteRunner"))},async keydown(e){if(wl().f[94]++,wl().s[254]++,wl().b[34][0]++,this.scriptId||(wl().b[34][1]++,!0===this.editor.getReadOnly()))return wl().b[33][0]++,void wl().s[255]++;wl().b[33][1]++,wl().s[256]++,wl().b[36][0]++,(e.metaKey||(wl().b[36][1]++,e.ctrlKey))&&(wl().b[36][2]++,e.keyCode==="S".charCodeAt(0))?(wl().b[35][0]++,wl().s[257]++,e.shiftKey?(wl().b[37][0]++,wl().s[258]++,e.preventDefault(),wl().s[259]++,this.saveAs()):(wl().b[37][1]++,wl().s[260]++,e.preventDefault(),wl().s[261]++,await this.saveFile())):wl().b[35][1]++},onChange(e){if(wl().f[95]++,wl().s[262]++,wl().b[39][0]++,this.scriptId||(wl().b[39][1]++,!0===this.editor.getReadOnly()))return wl().b[38][0]++,void wl().s[263]++;wl().b[38][1]++,wl().s[264]++,this.editor.session.getUndoManager().canUndo()?(wl().b[40][0]++,wl().s[265]++,this.fileModified="*"):(wl().b[40][1]++,wl().s[266]++,this.fileModified="")},checkMnemonics:function(){wl().f[96]++,wl().s[267]++,this.mnemonicChecker.checkText(this.editor.getValue()).then((({skipped:e,problems:n})=>{wl().f[97]++;let t=(wl().s[268]++,"");if(wl().s[269]++,n.length){wl().b[41][0]++;const e=(wl().s[270]++,n.map((e=>(wl().f[98]++,wl().s[271]++,`${e.lineNumber}: ${e.error}`))).join("<br/>"));wl().s[272]++,t+=`<strong>The following lines have problems:</strong><br/>${e}<br/><br/>`}else wl().b[41][1]++;wl().s[273]++,e.length?(wl().b[42][0]++,wl().s[274]++,t+="<strong>Mnemonics with string interpolation were not checked.</strong>"):wl().b[42][1]++,wl().s[275]++,""===t?(wl().b[43][0]++,wl().s[276]++,t="<strong>Everything looks good!</strong>"):wl().b[43][1]++,wl().s[277]++,this.$dialog.alert(t.trim(),{html:!0})}))},initScriptStart(){wl().f[99]++,wl().s[278]++,this.disableSuiteButtons=!0,wl().s[279]++,this.startOrGoDisabled=!0,wl().s[280]++,this.envDisabled=!0,wl().s[281]++,this.pauseOrRetryDisabled=!0,wl().s[282]++,this.stopDisabled=!0,wl().s[283]++,this.state="Connecting...",wl().s[284]++,this.startOrGoButton=Ml,wl().s[285]++,this.editor.setReadOnly(!0)},scriptStart(e){wl().f[100]++,wl().s[286]++,this.scriptId=e,wl().s[287]++,this.cable.createSubscription("RunningScriptChannel",window.openc3Scope,{received:e=>(wl().f[101]++,wl().s[288]++,this.received(e))},{id:this.scriptId}).then((e=>{wl().f[102]++,wl().s[289]++,this.subscription=e}))},async scriptComplete(){wl().f[103]++,wl().s[290]++,this.state="stopped",wl().s[291]++,this.fatal=!1,wl().s[292]++,this.scriptId=null,wl().s[293]++,this.currentFilename=null,wl().s[294]++,this.files={},wl().s[295]++,this.subscription?(wl().b[44][0]++,wl().s[296]++,await this.subscription.unsubscribe(),wl().s[297]++,this.subscription=null):wl().b[44][1]++,wl().s[298]++,this.receivedEvents.length=0,wl().s[299]++,await this.reloadFile(),wl().s[300]++,this.editor.session.getUndoManager().reset(),wl().s[301]++,this.editor.setReadOnly(!1),wl().s[302]++,this.disableSuiteButtons=!1,wl().s[303]++,this.startOrGoButton=Sl,wl().s[304]++,this.pauseOrRetryButton=El,wl().s[305]++,this.startOrGoDisabled=this.suiteRunner,wl().s[306]++,this.envDisabled=!1,wl().s[307]++,this.pauseOrRetryDisabled=!0,wl().s[308]++,this.stopDisabled=!0},environmentHandler:function(e){wl().f[104]++,wl().s[309]++,this.scriptEnvironment.env=e},startHandler:function(){wl().f[105]++,wl().s[310]++,this.start()},async start(e,n=(wl().b[45][0]++,null)){wl().f[106]++,wl().s[311]++,this.initScriptStart(),wl().s[312]++,await this.saveFile("start"),wl().s[313]++,this.saveAllowed=!1;let t=(wl().s[314]++,this.filename);wl().s[315]++,this.filename===kl?(wl().b[46][0]++,wl().s[316]++,t=this.tempFilename):wl().b[46][1]++;let l=(wl().s[317]++,`/script-api/scripts/${t}/run`);wl().s[318]++,this.showDisconnect?(wl().b[47][0]++,wl().s[319]++,l+="/disconnect"):wl().b[47][1]++;let i=(wl().s[320]++,{environment:this.scriptEnvironment.env});wl().s[321]++,n?(wl().b[48][0]++,wl().s[322]++,i["suiteRunner"]=e):wl().b[48][1]++,wl().s[323]++,r.A.post(l,{data:i}).then((e=>{wl().f[107]++,wl().s[324]++,this.scriptStart(e.data)})).catch((e=>{wl().f[108]++,wl().s[325]++,this.scriptComplete()}))},go(){wl().f[109]++,wl().s[326]++,this.filenameSelect=this.currentFilename,wl().s[327]++,this.fileNameChanged(this.currentFilename),wl().s[328]++,r.A.post(`/script-api/running-script/${this.scriptId}/go`)},pauseOrRetry(){wl().f[110]++,wl().s[329]++,this.pauseOrRetryButton===El?(wl().b[49][0]++,wl().s[330]++,r.A.post(`/script-api/running-script/${this.scriptId}/pause`)):(wl().b[49][1]++,wl().s[331]++,this.pauseOrRetryButton=El,wl().s[332]++,r.A.post(`/script-api/running-script/${this.scriptId}/retry`))},stop(){wl().f[111]++,wl().s[333]++,this.fatal?(wl().b[50][0]++,wl().s[334]++,this.removeAllMarkers(),wl().s[335]++,this.scriptComplete()):(wl().b[50][1]++,wl().s[336]++,r.A.post(`/script-api/running-script/${this.scriptId}/stop`))},step(){wl().f[112]++,wl().s[337]++,r.A.post(`/script-api/running-script/${this.scriptId}/step`)},processLine(e){wl().f[113]++,wl().s[338]++,wl().b[52][0]++,e.filename&&(wl().b[52][1]++,e.filename!==this.currentFilename)?(wl().b[51][0]++,wl().s[339]++,this.files[e.filename]?(wl().b[53][1]++,wl().s[347]++,this.currentFilename=e.filename,wl().s[348]++,this.editor.setValue(this.files[e.filename].content),wl().s[349]++,this.restoreBreakpoints(e.filename),wl().s[350]++,this.editor.clearSelection()):(wl().b[53][0]++,wl().s[340]++,this.files[e.filename]={content:"",lineNo:0},wl().s[341]++,r.A.get(`/script-api/scripts/${e.filename}`).then((n=>{wl().f[114]++,wl().s[342]++,this.files[e.filename]={content:n.data.contents,lineNo:0},wl().s[343]++,this.breakpoints[e.filename]=n.data.breakpoints,wl().s[344]++,this.restoreBreakpoints(e.filename),wl().s[345]++,this.currentFilename=null})).catch((n=>{wl().f[115]++,wl().s[346]++,this.files[e.filename]=null})))):wl().b[51][1]++,wl().s[351]++,this.state=e.state;const n=(wl().s[352]++,this.editor.session.getMarkers());switch(wl().s[353]++,this.state){case"running":wl().b[54][0]++,wl().s[354]++,this.startOrGoDisabled=!1,wl().s[355]++,this.pauseOrRetryDisabled=!1,wl().s[356]++,this.stopDisabled=!1,wl().s[357]++,this.pauseOrRetryButton=El,wl().s[358]++,this.removeAllMarkers(),wl().s[359]++,this.editor.session.addMarker(new this.Range(e.line_no-1,0,e.line_no-1,1),"runningMarker","fullLine"),wl().s[360]++,this.editor.gotoLine(e.line_no),wl().s[361]++,this.files[e.filename].lineNo=e.line_no,wl().s[362]++;break;case"fatal":wl().b[54][1]++,wl().s[363]++,this.fatal=!0;case"error":wl().b[54][2]++,wl().s[364]++,this.pauseOrRetryButton=Tl;case"breakpoint":wl().b[54][3]++;case"waiting":wl().b[54][4]++;case"paused":wl().b[54][5]++,wl().s[365]++,"fatal"==this.state?(wl().b[55][0]++,wl().s[366]++,this.startOrGoDisabled=!0,wl().s[367]++,this.pauseOrRetryDisabled=!0):(wl().b[55][1]++,wl().s[368]++,this.startOrGoDisabled=!1,wl().s[369]++,this.pauseOrRetryDisabled=!1),wl().s[370]++,this.stopDisabled=!1;let t=(wl().s[371]++,Object.keys(n).filter((e=>(wl().f[116]++,wl().s[372]++,n[e].clazz===`${this.state}Marker`))));if(wl().s[373]++,0===t.length){wl().b[56][0]++,wl().s[374]++,this.removeAllMarkers();let n=(wl().s[375]++,e.line_no>0?(wl().b[57][0]++,e.line_no):(wl().b[57][1]++,1));wl().s[376]++,this.editor.session.addMarker(new this.Range(n-1,0,n-1,1),`${this.state}Marker`,"fullLine"),wl().s[377]++,this.editor.gotoLine(n),wl().s[378]++,e.filename?(wl().b[58][0]++,wl().s[379]++,this.files[e.filename].lineNo=n):wl().b[58][1]++}else wl().b[56][1]++;wl().s[380]++;break;default:wl().b[54][6]++,wl().s[381]++;break}},processReceived(){wl().f[117]++;let e=(wl().s[382]++,0);wl().s[383]++;for(let n of this.receivedEvents){wl().s[384]++,e+=1;let t=(wl().s[385]++,0);switch(wl().s[386]++,n.type){case"file":wl().b[59][0]++,wl().s[387]++,this.files[n.filename]={content:n.text,lineNo:0},wl().s[388]++,this.breakpoints[n.filename]=n.breakpoints,wl().s[389]++,this.currentFilename===n.filename?(wl().b[60][0]++,wl().s[390]++,this.restoreBreakpoints(n.filename)):wl().b[60][1]++,wl().s[391]++;break;case"line":wl().b[59][1]++,wl().s[392]++,this.processLine(n),wl().s[393]++;break;case"output":wl().b[59][2]++,wl().s[394]++;for(const t of n.line.split("\n"))wl().s[395]++,t?(wl().b[61][0]++,wl().s[396]++,this.messagesNewestOnTop?(wl().b[62][0]++,wl().s[397]++,this.messages.unshift({message:t})):(wl().b[62][1]++,wl().s[398]++,this.messages.push({message:t}))):wl().b[61][1]++;wl().s[399]++;while(this.messages.length>this.maxArrayLength)wl().s[400]++,this.messages.pop();wl().s[401]++;break;case"script":wl().b[59][3]++,wl().s[402]++,this.handleScript(n),wl().s[403]++;break;case"report":wl().b[59][4]++,wl().s[404]++,this.results.text=n.report,wl().s[405]++,this.results.show=!0,wl().s[406]++;break;case"complete":wl().b[59][5]++,wl().s[407]++,this.fatal?wl().b[63][1]++:(wl().b[63][0]++,wl().s[408]++,this.removeAllMarkers(),wl().s[409]++,this.scriptComplete()),wl().s[410]++;break;case"step":wl().b[59][6]++,wl().s[411]++,this.showDebug=!0,wl().s[412]++;break;case"screen":wl().b[59][7]++;let e=(wl().s[413]++,!1),l=(wl().s[414]++,{});for(screen of(wl().s[415]++,this.screens)){if(wl().s[416]++,wl().b[65][0]++,screen.target==n.target_name&&(wl().b[65][1]++,screen.screen==n.screen_name)){wl().b[64][0]++,wl().s[417]++,l=screen,wl().s[418]++,e=!0,wl().s[419]++;break}wl().b[64][1]++,wl().s[420]++,t+=1}wl().s[421]++,this.$set(l,"target",n.target_name),wl().s[422]++,this.$set(l,"screen",n.screen_name),wl().s[423]++,this.$set(l,"definition",n.definition),wl().s[424]++,n.x?(wl().b[66][0]++,wl().s[425]++,this.$set(l,"left",n.x)):(wl().b[66][1]++,wl().s[426]++,this.$set(l,"left",0)),wl().s[427]++,n.y?(wl().b[67][0]++,wl().s[428]++,this.$set(l,"top",n.y)):(wl().b[67][1]++,wl().s[429]++,this.$set(l,"top",0)),wl().s[430]++,this.$set(l,"count",this.updateCounter++),wl().s[431]++,e?(wl().b[68][1]++,wl().s[434]++,this.$set(this.screens,t,l)):(wl().b[68][0]++,wl().s[432]++,this.$set(l,"id",this.idCounter++),wl().s[433]++,this.$set(this.screens,this.screens.length,l)),wl().s[435]++;break;case"clearscreen":for(screen of(wl().b[59][8]++,wl().s[436]++,this.screens)){if(wl().s[437]++,wl().b[70][0]++,screen.target==n.target_name&&(wl().b[70][1]++,screen.screen==n.screen_name)){wl().b[69][0]++,wl().s[438]++,this.screens.splice(t,1),wl().s[439]++;break}wl().b[69][1]++,wl().s[440]++,t+=1}wl().s[441]++;break;case"clearallscreens":wl().b[59][9]++,wl().s[442]++,this.screens=[],wl().s[443]++;break;case"downloadfile":wl().b[59][10]++;const i=(wl().s[444]++,document.createElement("a"));wl().s[445]++,i.href=window.location.origin+n.url,wl().s[446]++,i.setAttribute("download",n.filename),wl().s[447]++,i.click(),wl().s[448]++;break;default:wl().b[59][11]++,wl().s[449]++;break}}wl().s[450]++,this.receivedEvents.splice(0,e)},received(e){wl().f[118]++,wl().s[451]++,this.cable.recordPing(),wl().s[452]++,this.receivedEvents.push(e)},promptDialogCallback(e){wl().f[119]++,wl().s[453]++,this.prompt.show=!1,wl().s[454]++,r.A.post(`/script-api/running-script/${this.scriptId}/prompt`,{data:{method:this.prompt.method,answer:e,prompt_id:this.activePromptId,multiple:this.prompt.multiple}})},handleScript(e){if(wl().f[120]++,wl().s[455]++,e.prompt_complete)return wl().b[71][0]++,wl().s[456]++,this.activePromptId="",wl().s[457]++,this.prompt.show=!1,wl().s[458]++,this.ask.show=!1,void wl().s[459]++;switch(wl().b[71][1]++,wl().s[460]++,this.activePromptId=e.prompt_id,wl().s[461]++,this.prompt.method=e.method,wl().s[462]++,this.prompt.layout="horizontal",wl().s[463]++,this.prompt.title="Prompt",wl().s[464]++,this.prompt.subtitle="",wl().s[465]++,this.prompt.details="",wl().s[466]++,this.prompt.buttons=[],wl().s[467]++,this.prompt.multiple=null,wl().s[468]++,e.method){case"ask":wl().b[72][0]++;case"ask_string":wl().b[72][1]++,wl().s[469]++,this.ask.default=null,wl().s[470]++,this.ask.answerRequired=!0,wl().s[471]++,this.ask.password=!1,wl().s[472]++,this.ask.question=e.args[0],wl().s[473]++,wl().b[74][0]++,e.args[1]&&(wl().b[74][1]++,!0!==e.args[1])&&(wl().b[74][2]++,!1!==e.args[1])?(wl().b[73][0]++,wl().s[474]++,this.ask.default=e.args[1].toString()):(wl().b[73][1]++,wl().s[475]++,!0===e.args[1]?(wl().b[75][0]++,wl().s[476]++,this.ask.answerRequired=!1):wl().b[75][1]++),wl().s[477]++,!0===e.args[2]?(wl().b[76][0]++,wl().s[478]++,this.ask.password=!0):wl().b[76][1]++,wl().s[479]++,this.ask.callback=n=>{wl().f[121]++,wl().s[480]++,this.ask.show=!1,wl().s[481]++,this.ask.password?(wl().b[77][0]++,wl().s[482]++,r.A.post(`/script-api/running-script/${this.scriptId}/prompt`,{data:{method:e.method,password:n,prompt_id:this.activePromptId}})):(wl().b[77][1]++,wl().s[483]++,r.A.post(`/script-api/running-script/${this.scriptId}/prompt`,{data:{method:e.method,answer:n,prompt_id:this.activePromptId}}))},wl().s[484]++,this.ask.show=!0,wl().s[485]++;break;case"prompt_for_hazardous":wl().b[72][2]++,wl().s[486]++,this.prompt.title="Hazardous Command",wl().s[487]++,this.prompt.message=`Warning: Command ${e.args[0]} ${e.args[1]} is Hazardous. `,wl().s[488]++,e.args[2]?(wl().b[78][0]++,wl().s[489]++,this.prompt.message+=e.args[2]+" "):wl().b[78][1]++,wl().s[490]++,this.prompt.message+="Send?",wl().s[491]++,this.prompt.buttons=[{text:"Send",value:"Send"}],wl().s[492]++,this.prompt.callback=this.promptDialogCallback,wl().s[493]++,this.prompt.show=!0,wl().s[494]++;break;case"prompt":wl().b[72][3]++,wl().s[495]++,wl().b[80][0]++,e.kwargs&&(wl().b[80][1]++,e.kwargs.informative)?(wl().b[79][0]++,wl().s[496]++,this.prompt.subtitle=e.kwargs.informative):wl().b[79][1]++,wl().s[497]++,wl().b[82][0]++,e.kwargs&&(wl().b[82][1]++,e.kwargs.details)?(wl().b[81][0]++,wl().s[498]++,this.prompt.details=e.kwargs.details):wl().b[81][1]++,wl().s[499]++,this.prompt.message=e.args[0],wl().s[500]++,this.prompt.buttons=[{text:"Ok",value:"Ok"}],wl().s[501]++,this.prompt.callback=this.promptDialogCallback,wl().s[502]++,this.prompt.show=!0,wl().s[503]++;break;case"combo_box":wl().b[72][4]++,wl().s[504]++,wl().b[84][0]++,e.kwargs&&(wl().b[84][1]++,e.kwargs.informative)?(wl().b[83][0]++,wl().s[505]++,this.prompt.subtitle=e.kwargs.informative):wl().b[83][1]++,wl().s[506]++,wl().b[86][0]++,e.kwargs&&(wl().b[86][1]++,e.kwargs.details)?(wl().b[85][0]++,wl().s[507]++,this.prompt.details=e.kwargs.details):wl().b[85][1]++,wl().s[508]++,wl().b[88][0]++,e.kwargs&&(wl().b[88][1]++,e.kwargs.multiple)?(wl().b[87][0]++,wl().s[509]++,this.prompt.multiple=!0):wl().b[87][1]++,wl().s[510]++,this.prompt.message=e.args[0],wl().s[511]++,e.args.slice(1).forEach((e=>{wl().f[122]++,wl().s[512]++,this.prompt.buttons.push({text:e,value:e})})),wl().s[513]++,this.prompt.layout="combo",wl().s[514]++,this.prompt.callback=this.promptDialogCallback,wl().s[515]++,this.prompt.show=!0,wl().s[516]++;break;case"message_box":wl().b[72][5]++;case"vertical_message_box":wl().b[72][6]++,wl().s[517]++,wl().b[90][0]++,e.kwargs&&(wl().b[90][1]++,e.kwargs.informative)?(wl().b[89][0]++,wl().s[518]++,this.prompt.subtitle=e.kwargs.informative):wl().b[89][1]++,wl().s[519]++,wl().b[92][0]++,e.kwargs&&(wl().b[92][1]++,e.kwargs.details)?(wl().b[91][0]++,wl().s[520]++,this.prompt.details=e.kwargs.details):wl().b[91][1]++,wl().s[521]++,this.prompt.message=e.args[0],wl().s[522]++,e.args.slice(1).forEach((e=>{wl().f[123]++,wl().s[523]++,this.prompt.buttons.push({text:e,value:e})})),wl().s[524]++,e.method.includes("vertical")?(wl().b[93][0]++,wl().s[525]++,this.prompt.layout="vertical"):wl().b[93][1]++,wl().s[526]++,this.prompt.callback=this.promptDialogCallback,wl().s[527]++,this.prompt.show=!0,wl().s[528]++;break;case"backtrace":wl().b[72][7]++,wl().s[529]++,this.information.title="Call Stack",wl().s[530]++,this.information.text=e.args,wl().s[531]++,this.information.show=!0,wl().s[532]++;break;case"metadata_input":wl().b[72][8]++,wl().s[533]++,this.inputMetadata.callback=n=>{wl().f[124]++,wl().s[534]++,this.inputMetadata.show=!1,wl().s[535]++,r.A.post(`/script-api/running-script/${this.scriptId}/prompt`,{data:{method:e.method,answer:n,prompt_id:this.activePromptId}})},wl().s[536]++,this.showMetadata(),wl().s[537]++;break;case"open_file_dialog":wl().b[72][9]++;case"open_files_dialog":wl().b[72][10]++,wl().s[538]++,this.file.title=e.args[0],wl().s[539]++,this.file.message=e.args[1],wl().s[540]++,wl().b[95][0]++,e.kwargs&&(wl().b[95][1]++,e.kwargs.filter)?(wl().b[94][0]++,wl().s[541]++,this.file.filter=e.kwargs.filter):wl().b[94][1]++,wl().s[542]++,"open_files_dialog"==e.method?(wl().b[96][0]++,wl().s[543]++,this.file.multiple=!0):wl().b[96][1]++,wl().s[544]++,this.file.show=!0,wl().s[545]++;break;default:wl().b[72][11]++,wl().s[546]++;break}},async fileDialogCallback(e){wl().f[125]++,wl().s[547]++,this.file.show=!1;let n=(wl().s[548]++,"Cancel");wl().s[549]++,"Cancel"!=e?(wl().b[97][0]++,wl().s[550]++,n=[],wl().s[551]++,await e.forEach((async e=>{wl().f[126]++,wl().s[552]++,n.push(e.name);const{data:t}=(wl().s[553]++,await r.A.get(`/openc3-api/storage/upload/${encodeURIComponent(`${window.openc3Scope}/tmp/${e.name}`)}?bucket=OPENC3_CONFIG_BUCKET`));wl().s[554]++,await(0,o.A)({...t,data:e})}))):wl().b[97][1]++,wl().s[555]++,await r.A.post(`/script-api/running-script/${this.scriptId}/prompt`,{data:{method:this.file.multiple?(wl().b[98][0]++,"open_files_dialog"):(wl().b[98][1]++,"open_file_dialog"),answer:n,prompt_id:this.activePromptId}})},setError(e){wl().f[127]++,wl().s[556]++,this.alertType="error",wl().s[557]++,this.alertText=`Error: ${e}`,wl().s[558]++,this.showAlert=!0},newFile(){wl().f[128]++,wl().s[559]++,this.unlockFile(),wl().s[560]++,this.filename=kl,wl().s[561]++,this.currentFilename=null,wl().s[562]++,this.tempFilename=null,wl().s[563]++,this.files={},wl().s[564]++,this.editor.session.setValue(""),wl().s[565]++,this.saveAllowed=!0,wl().s[566]++,this.fileModified="",wl().s[567]++,this.suiteRunner=!1,wl().s[568]++,this.startOrGoDisabled=!1,wl().s[569]++,this.envDisabled=!1,wl().s[570]++,this.$router.replace({name:"ScriptRunner"}).catch((e=>{wl().f[129]++})),wl().s[571]++,document.title="Script Runner"},async newRubyTestSuite(){wl().f[130]++,wl().s[572]++,this.newFile(),wl().s[573]++,this.editor.session.setValue("require 'openc3/script/suite.rb'\n\n# Group class name should indicate what the scripts are testing\nclass Power < OpenC3::Group\n # Methods beginning with script_ are added to Script dropdown\n def script_power_on\n # Using OpenC3::Group.puts adds the output to the Test Report\n # This can be useful for requirements verification, QA notes, etc\n OpenC3::Group.puts \"Verifying requirement SR-1\"\n configure()\n end\n\n # Other methods are not added to Script dropdown\n def configure\n end\n\n def setup\n # Run when Group Setup button is pressed\n # Run before all scripts when Group Start is pressed\n end\n\n def teardown\n # Run when Group Teardown button is pressed\n # Run after all scripts when Group Start is pressed\n end\nend\n\nclass TestSuite < OpenC3::Suite\n def initialize\n add_group('Power')\n end\n def setup\n # Run when Suite Setup button is pressed\n # Run before all groups when Suite Start is pressed\n end\n def teardown\n # Run when Suite Teardown button is pressed\n # Run after all groups when Suite Start is pressed\n end\nend\n"),wl().s[574]++,await this.saveFile("auto")},async newPythonTestSuite(){wl().f[131]++,wl().s[575]++,this.newFile(),wl().s[576]++,this.editor.session.setValue('from openc3.script.suite import Suite, Group\n\n# Group class name should indicate what the scripts are testing\nclass Power(Group):\n # Methods beginning with script_ are added to Script dropdown\n def script_power_on(self):\n # Using Group.print adds the output to the Test Report\n # This can be useful for requirements verification, QA notes, etc\n Group.print("Verifying requirement SR-1")\n self.configure()\n\n # Other methods are not added to Script dropdown\n def configure(self):\n pass\n\n def setup(self):\n # Run when Group Setup button is pressed\n # Run before all scripts when Group Start is pressed\n pass\n\n def teardown(self):\n # Run when Group Teardown button is pressed\n # Run after all scripts when Group Start is pressed\n pass\n\nclass TestSuite(Suite):\n def __init__(self):\n self.add_group(Power)\n\n def setup(self):\n # Run when Suite Setup button is pressed\n # Run before all groups when Suite Start is pressed\n pass\n\n def teardown(self):\n # Run when Suite Teardown button is pressed\n # Run after all groups when Suite Start is pressed\n pass\n'),wl().s[577]++,await this.saveFile("auto")},addToRecent(e){wl().f[132]++;let n=(wl().s[578]++,this.recent.findIndex((n=>(wl().f[133]++,wl().s[579]++,n.label===e))));wl().s[580]++,-1!==n?(wl().b[99][0]++,wl().s[581]++,this.recent.splice(n,1)):wl().b[99][1]++,wl().s[582]++,this.recent.unshift({label:e,icon:p(e),command:async e=>{wl().f[134]++,wl().s[583]++,this.filename=e.label,wl().s[584]++,await this.reloadFile()}}),wl().s[585]++,this.recent.length>8?(wl().b[100][0]++,wl().s[586]++,this.recent.pop()):wl().b[100][1]++,wl().s[587]++,localStorage["script_runner__recent"]=JSON.stringify(this.recent)},removeFromRecent(e){wl().f[135]++,wl().s[588]++,this.recent=this.recent.filter((n=>(wl().f[136]++,wl().s[589]++,n.label!==e))),wl().s[590]++,localStorage["script_runner__recent"]=JSON.stringify(this.recent),wl().s[591]++,localStorage["script_runner__filename"]===e?(wl().b[101][0]++,wl().s[592]++,localStorage.removeItem("script_runner__filename")):wl().b[101][1]++},openFile(){wl().f[137]++,wl().s[593]++,this.fileOpen=!0},async reloadFile(e=(wl().b[102][0]++,!0)){wl().f[138]++,wl().s[594]++,this.saveAllowed=!1,wl().s[595]++,this.startOrGoDisabled=!0,wl().s[596]++,await r.A.get(`/script-api/scripts/${this.filename}`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then((e=>{wl().f[139]++;const n=(wl().s[597]++,{name:this.filename,contents:e.data.contents});wl().s[598]++,e.data.suites?(wl().b[103][0]++,wl().s[599]++,n["suites"]=JSON.parse(e.data.suites)):wl().b[103][1]++,wl().s[600]++,e.data.error?(wl().b[104][0]++,wl().s[601]++,n["error"]=e.data.error):wl().b[104][1]++,wl().s[602]++,e.data.success?(wl().b[105][0]++,wl().s[603]++,n["success"]=e.data.success):wl().b[105][1]++;const t=(wl().s[604]++,e.data.locked),l=(wl().s[605]++,e.data.breakpoints);wl().s[606]++,this.setFile({file:n,locked:t,breakpoints:l},!0),wl().s[607]++,this.saveAllowed=!0})).catch((n=>{wl().f[140]++,wl().s[608]++,!0===e?(wl().b[106][0]++,wl().s[609]++,this.$notify.caution({title:"File Open Error",body:`Failed to open ${this.filename} due to ${n}`})):wl().b[106][1]++,wl().s[610]++,this.removeFromRecent(this.filename),wl().s[611]++,this.newFile()}))},setFile({file:e,locked:n,breakpoints:t},l=(wl().b[107][0]++,!1)){wl().f[141]++,wl().s[612]++,this.files={};let i=(wl().s[613]++,e.name.split("*")[0]);wl().s[614]++,!1===l?(wl().b[108][0]++,wl().s[615]++,this.filename!==i?(wl().b[109][0]++,wl().s[616]++,this.unlockFile(),wl().s[617]++,this.lockedBy=n):wl().b[109][1]++):wl().b[108][1]++,wl().s[618]++,this.filename=i,wl().s[619]++,this.$router.replace({name:"ScriptRunner",query:{file:this.filename}}).catch((e=>{wl().f[142]++}));let s=(wl().s[620]++,this.filename.split("/"));wl().s[621]++,document.title=`${s.pop()} (${s.join("/")})`,wl().s[622]++,"py"===this.filename.split(".").pop()?(wl().b[110][0]++,wl().s[623]++,this.editor.session.setMode(this.openC3PythonMode)):(wl().b[110][1]++,wl().s[624]++,this.editor.session.setMode(this.openC3RubyMode)),wl().s[625]++,this.currentFilename=null,wl().s[626]++,this.editor.session.setValue(e.contents),wl().s[627]++,this.breakpoints[filename]=t,wl().s[628]++,this.restoreBreakpoints(filename),wl().s[629]++,this.fileModified="",wl().s[630]++,this.envDisabled=!1,wl().s[631]++,this.addToRecent(this.filename),wl().s[632]++,e.suites?(wl().b[111][0]++,wl().s[633]++,this.suiteRunner=!0,wl().s[634]++,this.suiteMap=e.suites,wl().s[635]++,this.startOrGoDisabled=!0):(wl().b[111][1]++,wl().s[636]++,this.suiteRunner=!1,wl().s[637]++,this.startOrGoDisabled=!1),wl().s[638]++,e.error?(wl().b[112][0]++,wl().s[639]++,this.suiteError=e.error,wl().s[640]++,this.showSuiteError=!0):wl().b[112][1]++,wl().s[641]++,this.disableSuiteButtons=0==e.success},clearTemp(){wl().f[143]++,wl().s[642]++,this.recent=this.recent.filter((e=>(wl().f[144]++,wl().s[643]++,!e.label.includes("__TEMP__")))),wl().s[644]++,localStorage["script_runner__recent"]=JSON.stringify(this.recent)},detectLanguage(){wl().f[145]++;let e=(wl().s[645]++,new RegExp("^\\s*(require|load|puts) ")),n=(wl().s[646]++,new RegExp("^\\s*(import|from) ")),t=(wl().s[647]++,new RegExp("^\\s*end\\s*$")),l=(wl().s[648]++,new RegExp("^\\s*(if|def|while|else|elif|class).*:\\s*$")),i=(wl().s[649]++,new RegExp('\\(f"')),s=(wl().s[650]++,this.editor.getValue()),o=(wl().s[651]++,s.split("\n"));wl().s[652]++;for(let a of o){if(wl().s[653]++,a.match(e))return wl().b[113][0]++,wl().s[654]++,"ruby";if(wl().b[113][1]++,wl().s[655]++,a.match(n))return wl().b[114][0]++,wl().s[656]++,"python";if(wl().b[114][1]++,wl().s[657]++,a.match(t))return wl().b[115][0]++,wl().s[658]++,"ruby";if(wl().b[115][1]++,wl().s[659]++,a.match(l))return wl().b[116][0]++,wl().s[660]++,"python";if(wl().b[116][1]++,wl().s[661]++,a.match(i))return wl().b[117][0]++,wl().s[662]++,"python";wl().b[117][1]++}return wl().s[663]++,"unknown"},async saveFile(e=(wl().b[118][0]++,"menu")){if(wl().f[146]++,wl().s[664]++,this.saveAllowed){wl().b[119][0]++;const n=(wl().s[665]++,this.getBreakpointRows());if(wl().s[666]++,this.filename===kl){if(wl().b[120][0]++,wl().s[667]++,"menu"===e)return wl().b[121][0]++,wl().s[668]++,this.saveAs(),void wl().s[669]++;if(wl().b[121][1]++,wl().s[670]++,null===this.tempFilename){wl().b[122][0]++;let n=(wl().s[671]++,this.detectLanguage());if(wl().s[672]++,wl().b[124][0]++,"ruby"===n||(wl().b[124][1]++,"auto"!==e&&(wl().b[124][2]++,"unknown"==n)))wl().b[123][0]++,wl().s[673]++,this.tempFilename=xl+"/"+(0,u.GP)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+"_temp.rb";else{if(wl().b[123][1]++,wl().s[674]++,"python"!==n)return wl().b[125][1]++,void wl().s[676]++;wl().b[125][0]++,wl().s[675]++,this.tempFilename=xl+"/"+(0,u.GP)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+"_temp.py"}wl().s[677]++,this.filename=this.tempFilename,wl().s[678]++,this.addToRecent(this.filename)}else wl().b[122][1]++}else wl().b[120][1]++;wl().s[679]++,this.showSave=!0,wl().s[680]++,await r.A.post(`/script-api/scripts/${this.filename}`,{data:{text:this.editor.getValue(),breakpoints:n}}).then((e=>{wl().f[147]++,wl().s[681]++,200==e.status?(wl().b[126][0]++,wl().s[682]++,e.data.suites?(wl().b[127][0]++,wl().s[683]++,this.startOrGoDisabled=!0,wl().s[684]++,this.suiteRunner=!0,wl().s[685]++,this.suiteMap=JSON.parse(e.data.suites)):(wl().b[127][1]++,wl().s[686]++,this.startOrGoDisabled=!1,wl().s[687]++,this.suiteRunner=!1,wl().s[688]++,this.suiteMap={}),wl().s[689]++,e.data.error?(wl().b[128][0]++,wl().s[690]++,this.suiteError=e.data.error,wl().s[691]++,this.showSuiteError=!0):wl().b[128][1]++,wl().s[692]++,this.fileModified="",wl().s[693]++,setTimeout((()=>{wl().f[148]++,wl().s[694]++,this.showSave=!1}),2e3)):(wl().b[126][1]++,wl().s[695]++,this.showSave=!1,wl().s[696]++,this.alertType="error",wl().s[697]++,this.alertText=`Error saving file. Code: ${e.status} Text: ${e.statusText}`,wl().s[698]++,this.showAlert=!0),wl().s[699]++,this.lockFile()})).catch((({response:e})=>{wl().f[149]++,wl().s[700]++,this.showSave=!1,wl().s[701]++,422==e.status?(wl().b[129][0]++,wl().s[702]++,this.alertType="error",wl().s[703]++,this.alertText=e.data.suites):(wl().b[129][1]++,wl().s[704]++,this.alertType="error",wl().s[705]++,this.alertText=`Error saving file. Code: ${e.status} Text: ${e.statusText}`),wl().s[706]++,this.showAlert=!0}))}else wl().b[119][1]++,wl().s[707]++,this.setError("Attempt to save file when not allowed")},saveAs(){wl().f[150]++,wl().s[708]++,this.showSaveAs=!0},async saveAsFilename(e){wl().f[151]++,wl().s[709]++,this.filename=e.split("*")[0],wl().s[710]++,this.currentFilename=null,wl().s[711]++,this.tempFilename?(wl().b[130][0]++,wl().s[712]++,r.A.post(`/script-api/scripts/${this.tempFilename}/delete`),wl().s[713]++,this.tempFilename=null):wl().b[130][1]++,wl().s[714]++,await this.saveFile("menu")},delete(){wl().f[152]++;let e=(wl().s[715]++,this.filename);wl().s[716]++,this.tempFilename?(wl().b[131][0]++,wl().s[717]++,e=this.tempFilename):wl().b[131][1]++,wl().s[718]++,this.$dialog.confirm(`Permanently delete file: ${e}`,{okText:"Delete",cancelText:"Cancel"}).then((n=>(wl().f[153]++,wl().s[719]++,r.A.post(`/script-api/scripts/${e}/delete`,{data:{}})))).then((n=>{wl().f[154]++,wl().s[720]++,this.removeFromRecent(e),wl().s[721]++,this.newFile()})).catch((e=>{if(wl().f[155]++,wl().s[722]++,e){wl().b[132][0]++;const n=(wl().s[723]++,{text:`Failed Multi-Delete. ${e}`,type:"error"});wl().s[724]++,this.$emit("alert",n)}else wl().b[132][1]++}))},download(){wl().f[156]++;const e=(wl().s[725]++,new Blob([this.editor.getValue()],{type:"text/plain"})),n=(wl().s[726]++,document.createElement("a"));wl().s[727]++,n.href=URL.createObjectURL(e),wl().s[728]++,n.setAttribute("download",this.filename),wl().s[729]++,n.click()},syntaxCheck(){wl().f[157]++,wl().s[730]++,r.A.post(`/script-api/scripts/${this.filename}/syntax`,{data:this.editor.getValue(),headers:{Accept:"application/json","Content-Type":"plain/text"}}).then((e=>{wl().f[158]++,wl().s[731]++,this.information.title=e.data.title,wl().s[732]++,this.information.text=JSON.parse(e.data.description),wl().s[733]++,this.information.show=!0}))},showInstrumented(){wl().f[159]++,wl().s[734]++,r.A.post(`/script-api/scripts/${this.filename}/instrumented`,{data:this.editor.getValue(),headers:{Accept:"application/json","Content-Type":"plain/text"}}).then((e=>{wl().f[160]++,wl().s[735]++,this.information.title=e.data.title,wl().s[736]++,this.information.text=JSON.parse(e.data.description),wl().s[737]++,this.information.show=!0}))},showCallStack(){wl().f[161]++,wl().s[738]++,r.A.post(`/script-api/running-script/${this.scriptId}/backtrace`)},toggleDebug(){wl().f[162]++,wl().s[739]++,this.showDebug=!this.showDebug},toggleDisconnect(){wl().f[163]++,wl().s[740]++,this.showDisconnect=!this.showDisconnect},debugKeydown(e){wl().f[164]++,wl().s[741]++,"Escape"===e.key?(wl().b[133][0]++,wl().s[742]++,this.debug="",wl().s[743]++,this.debugHistoryIndex=this.debugHistory.length):(wl().b[133][1]++,wl().s[744]++,"Enter"===e.key?(wl().b[134][0]++,wl().s[745]++,this.debugHistory.push(this.debug),wl().s[746]++,this.debugHistoryIndex=this.debugHistory.length,wl().s[747]++,r.A.post(`/script-api/running-script/${this.scriptId}/debug`,{data:{args:this.debug}}),wl().s[748]++,this.debug=""):(wl().b[134][1]++,wl().s[749]++,"ArrowUp"===e.key?(wl().b[135][0]++,wl().s[750]++,this.debugHistoryIndex-=1,wl().s[751]++,this.debugHistoryIndex<0?(wl().b[136][0]++,wl().s[752]++,this.debugHistoryIndex=this.debugHistory.length-1):wl().b[136][1]++,wl().s[753]++,this.debug=this.debugHistory[this.debugHistoryIndex],wl().s[754]++,e.preventDefault()):(wl().b[135][1]++,wl().s[755]++,"ArrowDown"===e.key?(wl().b[137][0]++,wl().s[756]++,this.debugHistoryIndex+=1,wl().s[757]++,this.debugHistoryIndex>=this.debugHistory.length?(wl().b[138][0]++,wl().s[758]++,this.debugHistoryIndex=0):wl().b[138][1]++,wl().s[759]++,this.debug=this.debugHistory[this.debugHistoryIndex]):wl().b[137][1]++)))},removeAllMarkers:function(){wl().f[165]++;const e=(wl().s[760]++,this.editor.session.getMarkers());wl().s[761]++,Object.keys(e).filter((n=>(wl().f[166]++,wl().s[762]++,"fullLine"===e[n].type))).forEach((e=>(wl().f[167]++,wl().s[763]++,this.editor.session.removeMarker(e))))},confirmLocalUnlock:function(){wl().f[168]++,wl().s[764]++,this.$dialog.confirm("Are you sure you want to unlock this script for editing? If another user is editing this script, your changes might conflict with each other.",{okText:"Force Unlock",cancelText:"Cancel"}).then((()=>(wl().f[169]++,wl().s[765]++,this.lockedBy=null,wl().s[766]++,this.lockFile())))},lockFile:function(){return wl().f[170]++,wl().s[767]++,r.A.post(`/script-api/scripts/${this.filename}/lock`)},unlockFile:function(){wl().f[171]++,wl().s[768]++,wl().b[140][0]++,this.filename===kl||(wl().b[140][1]++,this.readOnly)?wl().b[139][1]++:(wl().b[139][0]++,wl().s[769]++,r.A.post(`/script-api/scripts/${this.filename}/unlock`))},screenId(e){return wl().f[172]++,wl().s[770]++,"scriptRunnerScreen"+e},closeScreen(e){wl().f[173]++;let n=(wl().s[771]++,0);for(screen of(wl().s[772]++,this.screens)){if(wl().s[773]++,screen.id==e){wl().b[141][0]++,wl().s[774]++,this.screens.splice(n,1),wl().s[775]++;break}wl().b[141][1]++,wl().s[776]++,n+=1}}}},Il=Rl;t(4879),t(7691);var Dl=(0,f.A)(Il,i,s,!1,null,"5587ac26",null);const $l=Dl.exports},9821:(e,n,t)=>{"use strict";t.d(n,{A:()=>u});var l=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v(" Details ")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("v-card-title",[e._v("\n "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+"\n ")]),e._v(" "),n("v-card-subtitle",[e._v(e._s(e.details.description))]),e._v(" "),n("v-card-text",[n("v-container",{attrs:{fluid:""}},["tlm"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Item Values")]),e._v(" "),n("v-col"),e._v(" "),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Raw Value")]),e._v(" "),n("v-col",[e._v(e._s(e.rawValue))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),e._v(" "),n("v-col",[e._v(e._s(e.convertedValue))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),e._v(" "),n("v-col",[e._v(e._s(e.formattedValue))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),e._v(" "),n("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),e._v(" "),n("v-col",[e._v(e._s(e.details.bit_offset))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),e._v(" "),n("v-col",[e._v(e._s(e.details.bit_size))])],1),e._v(" "),e.details.array_size?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),e._v(" "),n("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),e._v(" "),n("v-col",[e._v(e._s(e.details.data_type))])],1),e._v(" "),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),e._v(" "),n("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),e._v(" "),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),e._v(" "),n("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),e._v(" "),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),e._v(" "),n("v-col",[e._v(e._s(e.details.default))])],1):e._e(),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),e._v(" "),n("v-col",[e._v(e._s(e.details.format_string))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e._v(" "),e.details.read_conversion?n("v-col",[e._v("\n Class: "+e._s(e.details.read_conversion.class)+"\n "),n("br"),e._v("\n Params:\n "+e._s(e.details.read_conversion.params)+"\n ")]):n("v-col")],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e._v(" "),e.details.write_conversion?n("v-col",[e._v("\n Class: "+e._s(e.details.write_conversion.class)+"\n "),n("br"),e._v("\n Params:\n "+e._s(e.details.write_conversion.params)+"\n ")]):n("v-col")],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),e._v(" "),n("v-col",[e._v(e._s(e.details.id_value))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),e._v(" "),n("v-col",[e._v(e._s(e.details.units_full))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),e._v(" "),n("v-col",[e._v(e._s(e.details.units))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),e._v(" "),n("v-col",[e._v(e._s(e.details.endianness))])],1),e._v(" "),e.details.states?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),e._v(" "),n("v-col"),e._v(" "),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.states,(function(t,l){return n("v-row",{key:l,attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(l))]),e._v(" "),n("v-col",[e._v(e._s(t.value))])],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),e._v(" "),n("v-col",[e._v("None")])],1),e._v(" "),e.details.limits?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),e._v(" "),n("v-col"),e._v(" "),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.limits,(function(t,l){return n("v-row",{key:l,attrs:{"no-gutters":""}},["enabled"===l?n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Enabled")]):e._e(),e._v(" "),"enabled"===l?n("v-switch",{attrs:{dense:"","hide-details":""},on:{change:e.changeLimitsEnabled},model:{value:e.details.limits.enabled,callback:function(n){e.$set(e.details.limits,"enabled",n)},expression:"details.limits.enabled"}}):e._e(),e._v(" "),"enabled"!==l?n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(l))]):e._e(),e._v(" "),"enabled"!==l?n("div",[e._v(e._s(e.formatLimit(t)))]):e._e(),e._v(" "),n("v-col")],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),e._v(" "),n("v-col",[e._v("None")])],1),e._v(" "),e.details.meta?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),e._v(" "),n("v-col"),e._v(" "),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.meta,(function(t,l){return n("v-row",{key:l,attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(l))]),e._v(" "),n("v-col",[e._v(e._s(t))])],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),e._v(" "),n("v-col",[e._v("None")])],1)],1)],1)],1)],1)},i=[],s=t(4364);const o={props:{type:{default:"tlm",validator:function(e){return-1!==["cmd","tlm"].indexOf(e)}},targetName:String,packetName:String,itemName:String,value:Boolean},data(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}}},created(){this.api=new s.x},beforeDestroy(){clearInterval(this.updater),this.updater=null},watch:{value:function(e,n){e?(this.requestDetails(),"tlm"===this.type&&(this.updater=setInterval((()=>{this.api.get_tlm_values([`${this.targetName}__${this.packetName}__${this.itemName}__RAW`,`${this.targetName}__${this.packetName}__${this.itemName}__CONVERTED`,`${this.targetName}__${this.packetName}__${this.itemName}__FORMATTED`,`${this.targetName}__${this.packetName}__${this.itemName}__WITH_UNITS`]).then((e=>{for(var n=0;n<e.length;n++){let t=null;if("String"===e[n][0]["json_class"]&&void 0!==e[n][0]["raw"]?t=e[n][0]["raw"]:"BLOCK"===this.details.data_type&&(t=e[n][0]),null!==t){t=t.slice(0,parseInt(this.details.bit_size)/8);let l=!1;t.length>64&&(l=!0),e[n][0]=Array.from(t.slice(0,64),(function(e){return" "===e?"20":("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase(),l&&(e[n][0]+="...")}}this.details.data_type.includes("INT")&&!this.details.array_size?this.rawValue=`${e[0][0]} (0x${e[0][0].toString(16).toUpperCase()})`:this.rawValue=e[0][0],this.convertedValue=e[1][0],this.formattedValue=e[2][0],this.unitsValue=e[3][0]}))}),1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{async requestDetails(){"tlm"===this.type?await this.api.get_item(this.targetName,this.packetName,this.itemName).then((e=>{if(this.details=e,0===Object.keys(e.limits).length)this.details.limits=null;else{let n=!1;e.limits.enabled&&(n=!0,delete e.limits.enabled),this.details.limits={enabled:n,...e.limits}}})):await this.api.get_parameter(this.targetName,this.packetName,this.itemName).then((e=>{this.details=e}))},async changeLimitsEnabled(){this.details.limits.enabled?await this.api.enable_limits(this.targetName,this.packetName,this.itemName):await this.api.disable_limits(this.targetName,this.packetName,this.itemName)},formatLimit(e){return e.hasOwnProperty("green_low")?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high+" GL/"+e.green_low+" GH/"+e.green_high:e.hasOwnProperty("red_low")?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high:e}}},a=o;t(1727);var r=t(2401),c=(0,r.A)(a,l,i,!1,null,"6659f972",null);const u=c.exports},2056:(e,n,t)=>{"use strict";t.d(n,{A:()=>R});var l=function(){var e=this,n=e._self._c;return n("div",[n("v-card",{nativeOn:{click:function(n){return e.$emit("click")}}},[n("v-system-bar",{directives:[{name:"show",rawName:"v-show",value:!e.hideSystemBar,expression:"!hideSystemBar"}],class:e.selectedGraphId===e.id?"active":"inactive"},[n("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}],staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(n){e.errorDialog=!0}}},[e._v("mdi-alert")])],1)]}}])},[e._v(" "),n("span",[e._v("Errors")])])],1),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"edit-graph-icon"},on:{click:function(n){e.editGraph=!0}}},[e._v("\n mdi-pencil\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Edit ")])]),e._v(" "),n("v-spacer"),e._v(" "),n("span",[e._v(e._s(e.title))]),e._v(" "),n("v-spacer"),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}],attrs:{"data-test":"collapse-all"},on:{click:e.collapseAll}},[e._v("\n mdi-arrow-collapse\n ")]),e._v(" "),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}],attrs:{"data-test":"expand-all"},on:{click:e.expandAll}},[e._v("\n mdi-arrow-expand\n ")])],1)]}}])},[e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}]},[e._v(" Collapse ")]),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}]},[e._v(" Expand ")])])],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}],attrs:{"data-test":"collapse-width"},on:{click:e.collapseWidth}},[e._v("\n mdi-arrow-collapse-horizontal\n ")]),e._v(" "),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}],attrs:{"data-test":"expand-width"},on:{click:e.expandWidth}},[e._v("\n mdi-arrow-expand-horizontal\n ")])],1)]}}])},[e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}]},[e._v(" Collapse Width ")]),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}]},[e._v(" Expand Width ")])])],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}],attrs:{"data-test":"collapse-height"},on:{click:e.collapseHeight}},[e._v("\n mdi-arrow-collapse-vertical\n ")]),e._v(" "),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}],attrs:{"data-test":"expand-height"},on:{click:e.expandHeight}},[e._v("\n mdi-arrow-expand-vertical\n ")])],1)]}}])},[e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}]},[e._v(" Collapse Height ")]),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}]},[e._v(" Expand Height ")])])],1),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-minimize\n ")]),e._v(" "),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-maximize\n ")])],1)]}}])},[e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize ")]),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize ")])]),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"close-graph-icon"},on:{click:function(n){return e.$emit("close-graph")}}},[e._v("\n mdi-close-box\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Close ")])])],1),e._v(" "),n("v-expand-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"chart",staticClass:"pa-1",attrs:{id:"chart"}},[n("div",{attrs:{id:`chart${e.id}`}}),e._v(" "),n("div",{attrs:{id:"betweenCharts"}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showOverview,expression:"showOverview"}],attrs:{id:`overview${e.id}`}})])])],1),e._v(" "),n("v-dialog",{attrs:{"max-width":"700"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.$emit("input")},input:function(n){return e.editGraphClose()}},model:{value:e.editGraph,callback:function(n){e.editGraph=n},expression:"editGraph"}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Edit Graph")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("v-card",{staticClass:"pa-3"},[n("v-tabs",{staticClass:"ml-3",model:{value:e.tab,callback:function(n){e.tab=n},expression:"tab"}},[n("v-tab",{key:0},[e._v(" Settings ")]),e._v(" "),n("v-tab",{key:1},[e._v(" Scale / Lines ")]),e._v(" "),n("v-tab",{key:1},[e._v(" Items ")])],1),e._v(" "),n("v-tabs-items",{model:{value:e.tab,callback:function(n){e.tab=n},expression:"tab"}},[n("v-tab-item",{key:0,staticClass:"tab",attrs:{eager:"true"}},[n("div",{staticClass:"edit-box"},[n("v-row",[n("v-col",[n("v-card-text",{staticClass:"pa-0"},[n("v-text-field",{staticClass:"pb-2",attrs:{label:"Title","hide-details":"","data-test":"edit-graph-title"},model:{value:e.title,callback:function(n){e.title=n},expression:"title"}})],1)],1),e._v(" "),n("v-col",{staticStyle:{}},[n("v-select",{staticStyle:{"max-width":"280px"},attrs:{label:"Legend Position",dense:"",outlined:"","hide-details":"",items:e.legendPositions,"data-test":"edit-legend-position"},model:{value:e.legendPosition,callback:function(n){e.legendPosition=n},expression:"legendPosition"}})],1)],1)],1),e._v(" "),n("div",{staticClass:"edit-box"},[n("v-card-text",{staticClass:"pa-0"},[e._v("\n Select a start date/time for the graph. Leave blank for start\n now.\n ")]),e._v(" "),n("date-time-chooser",{attrs:{required:!1,"date-label":"Start Date","time-label":"Start Time","date-time":e.graphStartDateTime},on:{"date-time":function(n){e.graphStartDateTime=n}}}),e._v(" "),n("v-card-text",{staticClass:"pa-0"},[e._v("\n Select a end date/time for the graph. Leave blank for continuous\n real-time graphing.\n ")]),e._v(" "),n("date-time-chooser",{attrs:{"date-label":"End Date","time-label":"End Time","date-time":e.graphEndDateTime},on:{"date-time":function(n){e.graphEndDateTime=n}}})],1)]),e._v(" "),n("v-tab-item",{key:1,staticClass:"tab",attrs:{eager:"true"}},[n("div",{staticClass:"edit-box"},[n("v-card-text",{staticClass:"pa-0"},[e._v("\n Set a min or max Y value to override automatic scaling\n ")]),e._v(" "),n("v-row",{attrs:{dense:""}},[n("v-col",{staticClass:"px-2"},[n("v-text-field",{attrs:{"hide-details":"",label:"Min Y Axis (Optional)",type:"number","data-test":"edit-graph-min-y"},model:{value:e.graphMinY,callback:function(n){e.graphMinY=n},expression:"graphMinY"}})],1),e._v(" "),n("v-col",{staticClass:"px-2"},[n("v-text-field",{attrs:{"hide-details":"",label:"Max Y Axis (Optional)",type:"number","data-test":"edit-graph-max-y"},model:{value:e.graphMaxY,callback:function(n){e.graphMaxY=n},expression:"graphMaxY"}})],1)],1)],1),e._v(" "),n("div",{staticClass:"edit-box"},[n("v-card-text",{staticClass:"pa-0"},[e._v("Add horizontal lines to the graph")]),e._v(" "),n("v-data-table",{attrs:{"item-key":"lineId","data-test":"edit-graph-lines",headers:e.lineHeaders,items:e.lines,"items-per-page":5,"footer-props":{itemsPerPageOptions:[5]}},scopedSlots:e._u([{key:"item.yValue",fn:function(t){return[n("v-edit-dialog",{attrs:{"return-value":t.item.yValue},on:{"update:returnValue":function(n){return e.$set(t.item,"yValue",n)},"update:return-value":function(n){return e.$set(t.item,"yValue",n)}},scopedSlots:e._u([{key:"input",fn:function(){return[n("v-text-field",{attrs:{label:"Edit","single-line":"",counter:""},model:{value:t.item.yValue,callback:function(n){e.$set(t.item,"yValue",n)},expression:"props.item.yValue"}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(t.item.yValue)+"\n ")])]}},{key:"item.color",fn:function(t){return[n("v-edit-dialog",{attrs:{"return-value":t.item.color},on:{"update:returnValue":function(n){return e.$set(t.item,"color",n)},"update:return-value":function(n){return e.$set(t.item,"color",n)}},scopedSlots:e._u([{key:"input",fn:function(){return[n("v-select",{attrs:{outlined:"","hide-details":"",label:"Color",items:e.colors},model:{value:t.item.color,callback:function(n){e.$set(t.item,"color",n)},expression:"props.item.color"}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(t.item.color)+"\n ")])]}},{key:"footer.prepend",fn:function(){return[n("v-btn",{staticStyle:{"margin-top":"3px"},attrs:{small:""},on:{click:e.addLine}},[e._v("\n New Horizontal Line\n ")]),e._v("\n Click to edit values, Enter to save\n "),n("v-spacer")]},proxy:!0},{key:"item.actions",fn:function({item:t}){return[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:l,attrs:i}){return[n("div",e._g(e._b({},"div",i,!1),l),[n("v-btn",{attrs:{icon:"","data-test":`delete-line-icon${t.lineId}`},on:{click:()=>e.removeLine(t)}},[n("v-icon",[e._v("mdi-delete")])],1)],1)]}}],null,!0)},[e._v(" "),n("span",[e._v("Remove")])])]}},{key:"no-data",fn:function(){return[n("span",[e._v("Currently no horizontal lines on this graph")])]},proxy:!0}])})],1)]),e._v(" "),n("v-tab-item",{key:2,staticClass:"tab",attrs:{eager:"true"}},[n("v-data-table",{staticClass:"elevation-1 my-2",attrs:{"item-key":"itemId","data-test":"edit-graph-items",headers:e.itemHeaders,items:e.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:e._u([{key:"item.actions",fn:function({item:t}){return[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:l,attrs:i}){return[n("div",e._g(e._b({},"div",i,!1),l),[n("v-btn",{attrs:{icon:"","data-test":`delete-item-icon${t.itemId}`},on:{click:()=>e.removeItems([t])}},[n("v-icon",[e._v("mdi-delete")])],1)],1)]}}],null,!0)},[e._v(" "),n("span",[e._v("Remove")])])]}},{key:"no-data",fn:function(){return[n("span",[e._v("Currently no items on this graph")])]},proxy:!0}])})],1)],1),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{attrs:{color:"primary"},on:{click:e.editGraphClose}},[e._v(" Ok ")])],1)],1)],1),e._v(" "),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(n){e.errorDialog=n},expression:"errorDialog"}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Errors")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("v-card",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"pb-2",attrs:{readonly:"","hide-details":"",label:"Graph Title"},model:{value:e.title,callback:function(n){e.title=n},expression:"title"}})],1),e._v(" "),n("v-row",{staticClass:"my-3"},[n("v-textarea",{attrs:{readonly:"",rows:"8",value:e.error}})],1),e._v(" "),n("v-row",[n("v-btn",{attrs:{block:""},on:{click:e.clearErrors}},[e._v(" Clear ")])],1)],1)],1),e._v(" "),e.editGraphMenu?n("v-menu",{attrs:{"position-x":e.editGraphMenuX,"position-y":e.editGraphMenuY,absolute:"","offset-y":""},model:{value:e.editGraphMenu,callback:function(n){e.editGraphMenu=n},expression:"editGraphMenu"}},[n("v-list",[n("v-list-item",{on:{click:function(n){e.editGraph=!0}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("\n Edit "+e._s(e.title)+"\n ")])],1)],1)],1):e._e(),e._v(" "),e.editItem?n("graph-edit-item-dialog",{attrs:{colors:e.colors,item:e.selectedItem},on:{changeColor:e.changeColor,changeLimits:e.changeLimits,cancel:function(n){e.editItem=!1},close:e.closeEditItem},model:{value:e.editItem,callback:function(n){e.editItem=n},expression:"editItem"}}):e._e(),e._v(" "),e.itemMenu?n("v-menu",{attrs:{"position-x":e.itemMenuX,"position-y":e.itemMenuY,absolute:"","offset-y":""},model:{value:e.itemMenu,callback:function(n){e.itemMenu=n},expression:"itemMenu"}},[n("v-list",{attrs:{nav:"",dense:""}},[n("v-subheader",[e._v("\n "+e._s(e.selectedItem.targetName)+"\n "+e._s(e.selectedItem.packetName)+"\n "+e._s(e.selectedItem.itemName)+"\n ")]),e._v(" "),n("v-list-item",{on:{click:function(n){e.editItem=!0}}},[n("v-list-item-icon",[n("v-icon",[e._v("mdi-pencil")])],1),e._v(" "),n("v-list-item-content",[n("v-list-item-title",[e._v(" Edit ")])],1)],1),e._v(" "),n("v-list-item",{on:{click:function(n){return e.removeItems([e.selectedItem])}}},[n("v-list-item-icon",[n("v-icon",[e._v("mdi-delete")])],1),e._v(" "),n("v-list-item-content",[n("v-list-item-title",[e._v(" Delete ")])],1)],1)],1)],1):e._e(),e._v(" "),e.legendMenu?n("v-menu",{attrs:{"position-x":e.legendMenuX,"position-y":e.legendMenuY,absolute:"","offset-y":""},model:{value:e.legendMenu,callback:function(n){e.legendMenu=n},expression:"legendMenu"}},[n("v-list",[n("v-list-item",{on:{click:function(n){return e.moveLegend("top")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Top")])],1),e._v(" "),n("v-list-item",{on:{click:function(n){return e.moveLegend("bottom")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Bottom")])],1),e._v(" "),n("v-list-item",{on:{click:function(n){return e.moveLegend("left")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Left")])],1),e._v(" "),n("v-list-item",{on:{click:function(n){return e.moveLegend("right")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend RIght")])],1)],1)],1):e._e()],1)},i=[],s=(t(9375),t(8605),t(7010),function(){var e=this,n=e._self._c;return n("div",[n("v-row",[n("v-col",[n("v-menu",{attrs:{"close-on-content-click":"",transition:"scale-transition","offset-y":"","max-width":"290px","min-width":"290px"},scopedSlots:e._u([{key:"activator",fn:function({on:t}){return[n("v-text-field",e._g({attrs:{label:e.dateLabel,name:`date${Date.now()}`,rules:e.dateRules,type:"date","data-test":"date-chooser"},model:{value:e.date,callback:function(n){e.date=n},expression:"date"}},t))]}}])})],1),e._v(" "),n("v-col",[n("v-text-field",{attrs:{label:e.timeLabel,name:`time${Date.now()}`,rules:e.timeRules,type:"time",step:"1","data-test":"time-chooser"},on:{change:e.onChange},model:{value:e.time,callback:function(n){e.time=n},expression:"time"}})],1)],1)],1)}),o=[],a=t(6375),r=t(4554),c=t(2509),u=t(3769);const d={props:{required:{type:Boolean,default:!0},dateTime:{type:Number,default:null},dateLabel:{type:String,default:"Date"},timeLabel:{type:String,default:"Time"}},data(){return{date:null,time:null,rules:{required:e=>!!e||"Required",date:e=>{if(!e)return!0;try{return(0,a.f)((0,r.qg)(e,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch(n){return"Invalid date (YYYY-MM-DD)"}},time:e=>{if(!e)return!0;try{return(0,a.f)((0,r.qg)(e,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch(n){return"Invalid time (HH:MM:SS)"}}}}},computed:{dateRules(){let e=[this.rules.date];return(this.time||this.required)&&e.push(this.rules.required),e},timeRules(){let e=[this.rules.time];return(this.date||this.required)&&e.push(this.rules.required),e}},created(){if(this.dateTime){let e=(0,c.a)(this.dateTime/1e6);this.date=(0,u.GP)(e,"yyyy-MM-dd"),this.time=(0,u.GP)(e,"HH:mm:ss")}},methods:{onChange(){this.date&&this.time?this.$emit("date-time",this.date+" "+this.time):this.$emit("date-time",null)}}},m=d;var A=t(2401),p=(0,A.A)(m,s,o,!1,null,null,null);const h=p.exports;var v=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"400"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.success()}},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-card-title",{staticClass:"mb-2"},[e._v("Edit Item")]),e._v(" "),n("v-card-text",[n("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Value Type",items:e.valueTypes},model:{value:e.editItem.valueType,callback:function(n){e.$set(e.editItem,"valueType",n)},expression:"editItem.valueType"}}),e._v(" "),n("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Reduction",items:e.reduction},model:{value:e.editItem.reduced,callback:function(n){e.$set(e.editItem,"reduced",n)},expression:"editItem.reduced"}}),e._v(" "),n("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Reduced Type",items:e.reducedTypes,disabled:"DECOM"===e.currentReduced},model:{value:e.editItem.reducedType,callback:function(n){e.$set(e.editItem,"reducedType",n)},expression:"editItem.reducedType"}}),e._v(" "),n("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Color",items:e.colors},on:{change:function(n){return e.$emit("changeColor",n)}},model:{value:e.editItem.color,callback:function(n){e.$set(e.editItem,"color",n)},expression:"editItem.color"}}),e._v(" "),e.limitsNames.length>1?n("div",[n("v-select",{attrs:{outlined:"","hide-details":"",label:"Display Limits",items:e.limitsNames},on:{change:function(n){return e.$emit("changeLimits",e.limits[e.limitsName])}},model:{value:e.limitsName,callback:function(n){e.limitsName=n},expression:"limitsName"}}),e._v(" "),n("div",{staticClass:"pa-3"},[e._v(e._s(e.limitsName)+": "+e._s(e.limits[e.limitsName]))])],1):e._e()],1),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:function(n){return e.$emit("cancel")}}},[e._v(" Cancel ")]),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(n){return e.$emit("close",e.editItem)}}},[e._v("\n Ok\n ")])],1)],1)],1)},f=[],g=t(4364);const C={props:{value:Boolean,item:{type:Object,required:!0},colors:{type:Array,required:!0}},data:function(){return{editItem:null,limitsName:"NONE",limits:{NONE:[]},valueTypes:["CONVERTED","RAW"],reduction:[{text:"NONE",value:"DECOM"},{text:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{text:"REDUCED_HOUR",value:"REDUCED_HOUR"},{text:"REDUCED_DAY",value:"REDUCED_DAY"}],reducedTypes:["MIN","MAX","AVG","STDDEV"]}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}},limitsNames(){return Object.keys(this.limits)}},async created(){this.editItem={...this.item},await this.api,this.api=(new g.x).get_item(this.item.targetName,this.item.packetName,this.item.itemName).then((e=>{for(const[n,t]of Object.entries(e.limits))Object.keys(t).includes("red_low")&&this.$set(this.limits,n,Object.values(t));this.limitsName=Object.keys(this.limits).find((e=>this.limits[e]+""===this.editItem.limits+""))}))}},b=C;var _=(0,A.A)(b,v,f,!1,null,null,null);const y=_.exports;var w=t(458),x=t(5914),k=t.n(x),S=t(2702);t(9037);const M={components:{DateTimeChooser:h,GraphEditItemDialog:y},props:{id:{type:Number,required:!0},selectedGraphId:{type:Number},state:{type:String,required:!0},startTime:{type:Number},secondsGraphed:{type:Number,required:!0},pointsSaved:{type:Number,required:!0},pointsGraphed:{type:Number,required:!0},refreshIntervalMs:{type:Number,default:200},hideSystemBar:{type:Boolean,default:!1},hideOverview:{type:Boolean,default:!1},sparkline:{type:Boolean,default:!1},initialItems:{type:Array},height:{type:Number},width:{type:Number}},data(){return{tab:0,itemHeaders:[{text:"Target Name",value:"targetName"},{text:"Packet Name",value:"packetName"},{text:"Item Name",value:"itemName"},{text:"Actions",value:"actions",sortable:!1}],lines:[],lineHeaders:[{text:"Y Value",value:"yValue"},{text:"Color",value:"color"},{text:"Actions",value:"actions",sortable:!1}],active:!0,expand:!0,fullWidth:!0,fullHeight:!0,graph:null,editGraph:!1,editGraphMenu:!1,editGraphMenuX:0,editGraphMenuY:0,editItem:!1,itemMenu:!1,itemMenuX:0,itemMenuY:0,legendMenu:!1,legendMenuX:0,legendMenuY:0,legendPosition:"bottom",legendPositions:["top","bottom","left","right"],selectedItem:null,showOverview:!this.hideOverview,title:"",overview:null,data:[[]],dataChanged:!1,timeout:null,graphMinY:"",graphMaxY:"",graphStartDateTime:null,graphEndDateTime:null,indexes:{},items:this.initialItems||[],limitsValues:[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new S.A,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colorIndex:0,colors:["#00c7cb","#938bdb","#4dacff","lime","darkorange","red","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white","black"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},editItems:function(){if(!this.items)return[];let e=0;return this.items.map((n=>(e+=1,{...n,itemId:e})))},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null}},created(){this.title=`Graph ${this.id}`;for(const[e,n]of this.items.entries())this.data.push([]),this.indexes[this.subscriptionKey(n)]=e+1,void 0===n.color&&(n.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0)},mounted(){const{chartSeries:e,overviewSeries:n}=this.items.reduce(((e,n)=>{const t={spanGaps:!0};return e.chartSeries.push({...t,item:n,label:this.formatLabel(n),stroke:(e,n)=>this.items[n-1].color,width:2,value:(e,n)=>"string"===typeof n||isNaN(n)?"NaN":null==n?"--":n.toFixed(3)}),e.overviewSeries.push({...t}),e}),{chartSeries:[],overviewSeries:[]});let t={};if(this.sparkline)this.hideSystemBar=!0,this.hideOverview=!0,this.showOverview=!1,t={width:this.width,height:this.height,pxAlign:!1,cursor:{show:!1},select:{show:!1},legend:{show:!1},scales:{x:{time:!1}},axes:[{show:!1},{show:!1}],series:[{},{stroke:"white"}]},this.graph=new w.A(t,this.data,document.getElementById(`chart${this.id}`));else{t={...this.getSize("chart"),...this.getScales(),...this.getAxes("chart"),plugins:[this.linesPlugin()],series:[{label:"Time",value:(e,n)=>null==n?"--":(0,u.GP)((0,c.a)(1e3*n),"yyyy-MM-dd HH:mm:ss")},...e],cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"},bind:{mouseup:(e,n,t)=>n=>{"pause"===this.state&&0===e.select.width&&this.$emit("start"),t(n)}}},hooks:{setScale:[(e,n)=>{if("x"===n&&!this.zoomOverview&&this.overview){this.zoomChart=!0;let n=Math.round(this.overview.valToPos(e.scales.x.min,"x")),t=Math.round(this.overview.valToPos(e.scales.x.max,"x"));this.overview.setSelect({left:n,width:t-n}),this.zoomChart=!1}}],setSelect:[e=>{"start"===this.state&&e.select.width>0&&this.$emit("pause")}],ready:[e=>{let n=e.root.querySelector(".u-over");n.addEventListener("contextmenu",(e=>{e.preventDefault(),this.itemMenu=!1,this.legendMenu=!1,this.editGraphMenuX=e.clientX,this.editGraphMenuY=e.clientY,this.editGraphMenu=!0})),n.addEventListener("mouseenter",(e=>{this.$emit("resize")})),n.addEventListener("mouseleave",(e=>{this.$emit("resize")}));let t=e.root.querySelector(".u-legend");t.addEventListener("contextmenu",(n=>{n.preventDefault(),this.editGraphMenu=!1,this.legendMenu=!1,this.itemMenuX=n.clientX,this.itemMenuY=n.clientY;let l=n.target.closest(".u-series"),i=Array.prototype.slice.call(t.childNodes[0].childNodes).indexOf(l),s=e.series[i];s.item?(this.selectedItem=s.item,this.itemMenu=!0):(this.itemMenu=!1,this.legendMenuX=n.clientX,this.legendMenuY=n.clientY,this.legendMenu=!0)}))}]}},this.graph=new w.A(t,this.data,document.getElementById(`chart${this.id}`));const l={...this.getSize("overview"),...this.getScales(),...this.getAxes("overview"),series:[...n],cursor:{y:!1,points:{show:!1},drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[e=>{if(!this.zoomChart){"start"===this.state&&e.select.width>0&&this.$emit("pause"),this.zoomOverview=!0;let n=e.posToVal(e.select.left,"x"),t=e.posToVal(e.select.left+e.select.width,"x");this.graph.setScale("x",{min:n,max:t}),this.zoomOverview=!1}}]}};this.overview=new w.A(l,this.data,document.getElementById(`overview${this.id}`)),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.handleResize)}"stop"!==this.state&&this.startGraph()},beforeDestroy:function(){this.stopGraph(),this.cable.disconnect(),window.removeEventListener("resize",this.handleResize)},watch:{state:function(e,n){switch(e){case"start":"stop"===n&&this.startGraph();break;case"stop":this.stopGraph();break}},data:function(e,n){this.dataChanged=!0},graphMinY:function(e,n){let t=parseFloat(e);isNaN(t)||(this.graphMinY=t),this.setGraphRange()},graphMaxY:function(e,n){let t=parseFloat(e);isNaN(t)||(this.graphMaxY=t),this.setGraphRange()},graphStartDateTime:function(e,n){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphStartDateTime=1e6*new Date(this.graphStartDateTime).getTime())},graphEndDateTime:function(e,n){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphEndDateTime=1e6*new Date(this.graphEndDateTime).getTime())}},methods:{startGraph:function(){this.subscribe(),this.timeout=setTimeout((()=>{this.updateTimeout()}),this.refreshIntervalMs)},stopGraph:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},updateTimeout:function(){this.updateGraphData(),this.timeout=setTimeout((()=>{this.updateTimeout()}),this.refreshIntervalMs)},updateGraphData:function(){if("pause"===this.state||!this.dataChanged)return;this.graph.setData(this.data),this.overview&&this.overview.setData(this.data);let e=this.data[0][this.data[0].length-1],n=this.data[0][this.data[0].length-this.pointsGraphed],t=this.data[0][0];t<e-this.secondsGraphed&&(t=e-this.secondsGraphed),n>t&&(t=n),this.graph.setScale("x",{min:t,max:e}),this.dataChanged=!1},addLine(){this.lines.push({yValue:0,color:"white"})},removeLine(e){let n=this.lines.indexOf(e);this.lines.splice(n,1)},formatLabel(e){if("CONVERTED"===e.valueType&&"DECOM"===e.reduced)return e.itemName;{let n="";return"CONVERTED"!==e.valueType&&(n+=e.valueType),"DECOM"!==e.reduced&&(""!==n&&(n+=" "),n+=`${e.reduced.split("_")[1]} ${e.reducedType}`),`${e.itemName} (${n})`}},moveLegend:function(e){switch(e){case"bottom":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.remove("top-legend");break;case"top":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("top-legend");break;case"left":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.add("side-legend"),this.graph.root.classList.add("left-legend");break;case"right":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("side-legend");break}this.legendPosition=e,this.resize()},clearErrors:function(){this.errors=[]},editGraphClose:function(){if(this.editGraph=!1,this.needToUpdate){if(null==this.subscription)this.startGraph();else{let e=JSON.parse(JSON.stringify(this.items));this.removeItems(e),setTimeout((()=>{this.addItems(e)}),0)}this.needToUpdate=!1}this.moveLegend(this.legendPosition),this.$emit("edit")},handleResize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview"))},resize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview")),this.$emit("resize",this.id)},expandAll:function(){this.fullWidth=!0,this.fullHeight=!0,this.resize()},collapseAll:function(){this.fullWidth=!1,this.fullHeight=!1,this.resize()},expandWidth:function(){this.fullWidth=!0,this.resize()},collapseWidth:function(){this.fullWidth=!1,this.resize()},expandHeight:function(){this.fullHeight=!0,this.resize()},collapseHeight:function(){this.fullHeight=!1,this.resize()},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-graph",this.id)},setGraphRange:function(){let e=.1;(this.graphMinY||0===this.graphMinY||this.graphMaxY||0===this.graphMaxY)&&(e=0),this.graph.scales.y.range=(n,t,l)=>{let i=t;(this.graphMinY||0===this.graphMinY)&&(i=this.graphMinY);let s=l;return(this.graphMaxY||0===this.graphMaxY)&&(s=this.graphMaxY),w.A.rangeNum(i,s,e,!0)}},subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:e=>this.received(e),connected:()=>{this.addItemsToSubscription(this.items)},disconnected:()=>{this.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:(new Date).getTime()})},rejected:()=>{this.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:(new Date).getTime()})}}).then((e=>{this.subscription=e}))},getSize:function(e){const n=document.getElementById("openc3-nav-drawer"),t=n.classList.contains("v-navigation-drawer--open")?n.clientWidth:0;let l=0;if("right"===this.legendPosition||"left"===this.legendPosition){const e=document.getElementsByClassName("u-legend")[0];l=e.clientWidth}const i=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-t-l,s=Math.max(document.documentElement.clientHeight,window.innerHeight||0),o=document.getElementsByClassName("tgt-pkt-item-chooser")[0];let a=100;"overview"===e?this.fullHeight&&!this.hideOverview?this.showOverview=!0:this.showOverview=!1:o&&(a=s-o.clientHeight-a-250,this.fullHeight||(a=a/2+10));let r=i-62;return this.fullWidth||(r=r/2-10),{width:this.width||r,height:this.height||a}},getScales:function(){return{scales:{x:{range(e,n,t){return null==n?[1566453600,1566497660]:[n,t]}},y:{range(e,n,t){return null==n?[-100,100]:w.A.rangeNum(n,t,.1,!0)}}}}},getAxes:function(e){let n="rgba(0, 0, 0, .1)",t="black";return this.$vuetify.theme.dark&&(n="rgba(255, 255, 255, .1)",t="white"),{axes:[{stroke:t,grid:{show:!0,stroke:n,width:2}},{size:80,stroke:t,grid:{show:"overview"!==e,stroke:n,width:2},values(e,n){return(n.some((e=>e>=1e7))||n.every((e=>e<.01)))&&(n=n.map((e=>e.toExponential(3)))),n}}]}},closeEditItem:function(e){this.editItem=!1,(null!==this.graphEndDateTime&&this.selectedItem!==e||this.selectedItem.valueType!==e.valueType||this.selectedItem.reduced!==e.reduced||this.selectedItem.reducedType!==e.reducedType)&&this.changeItem(e)},changeColor:function(e){let n=this.subscriptionKey(this.selectedItem),t=this.indexes[n];this.items[t-1].color=e,this.selectedItem.color=e,this.graph.root.querySelectorAll(".u-marker")[t].style.borderColor=e},changeLimits:function(e){let n=this.subscriptionKey(this.selectedItem),t=this.indexes[n];this.items[t-1].limits=e,this.selectedItem.limits=e,this.limitsValues=e},linesPlugin:function(){return{hooks:{draw:e=>{const{ctx:n,bbox:t}=e,l=e.valToPos(e.scales.y.min,"y",!0),i=e.valToPos(e.scales.y.max,"y",!0),s=e.valToPos(this.limitsValues[0],"y",!0),o=e.valToPos(this.limitsValues[1],"y",!0),a=e.valToPos(this.limitsValues[2],"y",!0),r=e.valToPos(this.limitsValues[3],"y",!0);if(this.lines.forEach((l=>{e.scales.y.min<=l.yValue&&l.yValue<=e.scales.y.max&&(n.save(),n.beginPath(),n.strokeStyle=l.color,n.lineWidth=2,n.moveTo(t.left,e.valToPos(l.yValue,"y",!0)),n.lineTo(t.left+t.width,e.valToPos(l.yValue,"y",!0)),n.stroke(),n.restore())})),n.save(),n.beginPath(),n.fillStyle="rgba(255,0,0,0.15)",e.scales.y.min<this.limitsValues[0]){let e=s<i?i:s;n.fillRect(t.left,s,t.width,l-e)}if(e.scales.y.max>this.limitsValues[3]){let e=l<r?l:r;n.fillRect(t.left,i,t.width,e-i)}if(n.fillStyle="rgba(255,255,0,0.15)",e.scales.y.min<this.limitsValues[1]&&e.scales.y.max>this.limitsValues[0]){let e=o<i?i:o;n.fillRect(t.left,e,t.width,s-e)}if(e.scales.y.max>this.limitsValues[2]&&e.scales.y.min<this.limitsValues[3]){let e=l<r?l:r,i=l<a?l:a;n.fillRect(t.left,e,t.width,i-e)}if(n.fillStyle="rgba(0,255,0,0.15)",4===this.limitsValues.length){if(e.scales.y.min<this.limitsValues[2]&&e.scales.y.max>this.limitsValues[1]){let e=a<i?i:a,s=l<o?l:o;n.fillRect(t.left,e,t.width,s-e)}}else{const s=e.valToPos(this.limitsValues[4],"y",!0),r=e.valToPos(this.limitsValues[5],"y",!0);if(e.scales.y.min<this.limitsValues[4]&&e.scales.y.max>this.limitsValues[1]){let e=s<i?i:s;n.fillRect(t.left,e,t.width,o-e)}if(e.scales.y.max>this.limitsValues[5]&&e.scales.y.min<this.limitsValues[2]){let e=l<a?l:a,i=l<r?l:r;n.fillRect(t.left,e,t.width,i-e)}n.fillStyle="rgba(0,0,255,0.15)";let c=r<i?i:r,u=l<s?l:s;n.fillRect(t.left,c,t.width,u-c)}n.stroke(),n.restore()}}}},changeItem:function(e){this.removeItems([this.selectedItem]),this.selectedItem.valueType=e.valueType,this.selectedItem.reduced=e.reduced,this.selectedItem.reducedType=e.reducedType,setTimeout((()=>{this.addItems([this.selectedItem])}),0)},addItems:function(e,n="CONVERTED"){for(const l of e){l.valueType||(l.valueType=n),void 0===l.color&&(l.color=this.colors[this.colorIndex]),void 0===l.limits?l.limits=[]:l.limits.length>0&&(this.limitsValues=l.limits),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0),this.items.push(l);const e=this.data.length;this.graph.addSeries({spanGaps:!0,item:l,label:this.formatLabel(l),stroke:(e,n)=>this.items[n-1].color,width:2,value:(e,n)=>"string"===typeof n||isNaN(n)?"NaN":null==n?"--":Math.abs(n)<.01||Math.abs(n)>=1e7?n.toExponential(6):n.toFixed(6)},e),this.overview&&this.overview.addSeries({spanGaps:!0,stroke:(e,n)=>this.items[n-1].color},e);let t=Array(this.data[0].length);this.data.splice(e,0,t),this.indexes[this.subscriptionKey(l)]=e}let t=this.colors.indexOf(e[e.length-1].color);t&&(this.colorIndex=t+1),this.addItemsToSubscription(e),this.$emit("edit")},addItemsToSubscription:function(e=this.items){let n=this.startTime;this.graphStartDateTime&&(n=this.graphStartDateTime),this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((t=>{t&&OpenC3Auth.setTokens(),this.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey),start_time:n,end_time:this.graphEndDateTime})}))},removeItems:function(e){this.removeItemsFromSubscription(e);for(const n of e.map(this.subscriptionKey)){const e=this.reorderIndexes(n);this.items.splice(e-1,1),this.data.splice(e,1),this.graph.delSeries(e),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(e),this.overview.setData(this.data))}1===this.data.length&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data)),this.$emit("edit")},removeItemsFromSubscription:function(e=this.items){this.subscription&&this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey)})},reorderIndexes:function(e){let n=this.indexes[e];for(var t in delete this.indexes[e],this.indexes)this.indexes[t]>n&&(this.indexes[t]-=1);return n},received:function(e){this.cable.recordPing();for(let n=0;n<e.length;n++){let t=e[n].__time/1e9,l=e[0].length;if(0===l||t>e[0][l-1]){for(let e=0;e<this.data.length;e++)this.data[e].push(null);this.set_data_at_index(this.data[0].length-1,t,e[n])}else{let l=k()(this.data[0],t,this.bs_comparator);if(l>=0)this.set_data_at_index(l,t,e[n]);else{let i=-l-1;for(let e=0;e<this.data.length;e++)this.data[e].splice(i,0,null);this.set_data_at_index(i,t,e[n])}}}if(null==this.startTime&&this.data[0][0]){let e=1e9*this.data[0][0];this.$emit("started",e)}this.dataChanged=!0},bs_comparator:function(e,n){return e-n},set_data_at_index:function(e,n,t){this.data[0][e]=n;for(const[l,i]of Object.entries(t)){if("time"===l)continue;let n=this.indexes[l];if(n){let t=this.data[n];if(null!==i&&void 0!==i&&i.raw)t[e]=null;else if("string"===typeof i){if(t[e]=null,!l.includes("__RAW")){for(let e of this.items)if(this.subscriptionKey(e)===l){this.selectedItem=e;break}this.changeItem({valueType:"RAW",reduced:this.selectedItem.reduced,reducedType:this.selectedItem.reducedType})}}else t[e]=i}}},subscriptionKey:function(e){let n=`${e.reduced}__TLM__${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`;return"REDUCED_MINUTE"!==e.reduced&&"REDUCED_HOUR"!==e.reduced&&"REDUCED_DAY"!==e.reduced||(n+=`__${e.reducedType}`),n}}},E=M;t(6738),t(7346);var T=(0,A.A)(E,l,i,!1,null,"5efb6623",null);const R=T.exports},8687:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return n("div",{staticClass:"array-widget-container"},[n("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"array-widget"},on:{contextmenu:e.showContextMenu}}),e._v(" "),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,l){return n("v-list-item",{key:l,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),e._v(" "),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},i=[],s=(t(7010),t(2967)),o=t(9821);t(9471);const a={components:{DetailsDialog:o.A},data:function(){return{width:200,height:100,itemsPerRow:4,formatter:null}},mixins:[s.A],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.itemsPerRow=parseInt(this.parameters[6]))},methods:{getType:function(){var e="CONVERTED";return this.parameters[7]&&(e=this.parameters[7]),e},formatValue:function(e){var n="",t=" ",l="\n",i=0;if(Array.isArray(e)){for(const o of e){var s;this.formatter&&"nil"!==(null===(s=this.formatter)||void 0===s?void 0:s.toLowerCase())?n+=sprintf(this.formatter,o):n+=o,i+=1,i%this.itemsPerRow===0?(i=0,n+=l):n+=t}return n.trim()}return e}}},r=a;t(8644);var c=t(2401),u=(0,c.A)(r,l,i,!1,null,"5cd86706",null);const d=u.exports},171:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return n("div",{staticClass:"block-widget-container"},[n("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","no-resize":"","hide-details":"",placeholder:"Value",width:e.width,height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),e._v(" "),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,l){return n("v-list-item",{key:l,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),e._v(" "),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},i=[],s=(t(7010),t(2967)),o=t(9821);t(9471);const a={components:{DetailsDialog:o.A},data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[s.A],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.bytesPerWord=parseInt(this.parameters[6])),this.parameters[7]&&(this.wordsPerRow=parseInt(this.parameters[7])),this.parameters[8]&&(this.addrFormat=this.parameters[8])},methods:{getType:function(){var e="RAW";return this.parameters[9]&&(e=this.parameters[9]),e},formatValue:function(e){var n="";if(e&&e.raw){var t=" ",l="\n",i=0,s=0;const o=this.bytesPerWord*this.wordsPerRow;for(const a of e.raw)this.addrFormat&&0===i&&(n+=sprintf(this.addrFormat,s),s+=o),n+=sprintf(this.formatter,a),i+=1,i%o===0?(i=0,n+=l):i%this.bytesPerWord===0&&(n+=t)}else n=e;return n}}},r=a;t(8827);var c=t(2401),u=(0,c.A)(r,l,i,!1,null,"0872fd0e",null);const d=u.exports},4814:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var l=function(){var e=this,n=e._self._c;return n("div",[n("v-btn",{staticClass:"ma-1",style:e.computedStyle,attrs:{color:"primary"},on:{click:e.onClick}},[e._v("\n "+e._s(e.buttonText)+"\n ")]),e._v(" "),n("v-dialog",{attrs:{"max-width":"300"},model:{value:e.displaySendHazardous,callback:function(n){e.displaySendHazardous=n},expression:"displaySendHazardous"}},[n("v-card",[n("v-card-title",[e._v("Hazardous")]),e._v(" "),n("v-card-text",[n("div",{staticClass:"mx-1"},[n("v-row",{staticClass:"my-2"},[n("span",[e._v(" Warning: Command is Hazardous. Send? ")])]),e._v(" "),n("v-row",[n("v-spacer"),e._v(" "),n("v-btn",{attrs:{outlined:""},on:{click:e.cancelHazardousCmd}},[e._v(" Cancel ")]),e._v(" "),n("v-btn",{staticClass:"primary mx-1",on:{click:e.sendHazardousCmd}},[e._v("\n Send\n ")])],1)],1)])],1)],1)],1)},i=[],s=t(47);const o=s.A;var a=t(2401),r=(0,a.A)(o,l,i,!1,null,null,null);const c=r.exports},2430:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("svg",{attrs:{id:"canvas",width:e.width,height:e.height}},e._l(e.widgets,(function(t,l){return n(t.type,e._g({key:l,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)},i=[],s=t(9843);const o={mixins:[s.A],computed:{width(){return this.parameters[0]+"px"},height(){return this.parameters[1]+"px"}}},a=o;t(1497);var r=t(2401),c=(0,r.A)(a,l,i,!1,null,"17947dc7",null);const u=c.exports},6614:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("circle",{attrs:{cx:e.parameters[0],cy:e.parameters[1],r:e.parameters[3],fill:e.parameters[2]}})},i=[],s=t(9729);const o={mixins:[s.A]},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},8239:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return e.imageUrl?n("image",{attrs:{href:e.imageUrl,x:e.parameters[1],y:e.parameters[2],width:e.width,height:e.height},on:{click:e.clickHandler}}):e._e()},i=[],s=t(9729),o=t(7163);const a={mixins:[s.A,o.A],data:function(){return{imageUrl:null,screenTarget:null,screenName:null}},computed:{width:function(){return this.parameters[3]?`${this.parameters[3]}px`:"100%"},height:function(){return this.parameters[4]?`${this.parameters[4]}px`:"100%"}},created:function(){this.settings.forEach((e=>{"SCREEN"===e[0]&&(this.screenTarget=e[1],this.screenName=e[2])})),this.parameters[0].startsWith("http")?this.imageUrl=this.parameters[0]:this.getPresignedUrl(this.parameters[0]).then((e=>{this.imageUrl=e}))},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},r=a;var c=t(2401),u=(0,c.A)(r,l,i,!1,null,null,null);const d=u.exports},4653:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return n("g",[e._l(e.images,(function(t){return n("image",{directives:[{name:"show",rawName:"v-show",value:t.value==e.selectedValue,expression:"image.value == selectedValue"}],key:t.value,attrs:{href:t.url,x:t.x,y:t.y,width:t.width,height:t.height},on:{click:e.clickHandler}})})),e._v(" "),e.defaultImage?n("image",{directives:[{name:"show",rawName:"v-show",value:e.showDefault,expression:"showDefault"}],attrs:{href:e.defaultImage.url,x:e.defaultImage.x,y:e.defaultImage.y,width:e.defaultImage.width,height:e.defaultImage.height},on:{click:e.clickHandler}}):e._e()],2)},i=[],s=(t(7010),t(9729)),o=t(7163);const a={mixins:[s.A,o.A],data:function(){return{images:[],defaultImage:null,screenTarget:null,screenName:null}},computed:{selectedValue:function(){return this.screen&&this.screen.screenValues[this.valueId]?this.screen.screenValues[this.valueId][0]:null},showDefault:function(){return!this.images.some((e=>e.value==this.selectedValue))}},created:function(){this.settings.forEach((e=>{"SCREEN"===e[0]&&(this.screenTarget=e[1],this.screenName=e[2])})),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]||"RAW"}`,this.screen&&this.screen.addItem(this.valueId);const e=this.settings.filter((e=>"IMAGE"===e[0])).map((async e=>{let n=e[2];return n.startsWith("http")||(n=await this.getPresignedUrl(n)),{url:n,value:e[1],x:e[3],y:e[4],width:e[5],height:e[6]}}));if(Promise.all(e).then((e=>{this.images=e})),this.parameters[4]){const e={x:this.parameters[5],y:this.parameters[6],width:this.parameters[7]?`${this.parameters[7]}px`:"100%",height:this.parameters[8]?`${this.parameters[8]}px`:"100%"};let n=this.parameters[4];n.startsWith("http")?this.defaultImage={...e,url:n}:this.getPresignedUrl(n).then((n=>{this.defaultImage={...e,url:n}}))}},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},r=a;var c=t(2401),u=(0,c.A)(r,l,i,!1,null,null,null);const d=u.exports},6631:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("text",{attrs:{x:e.parameters[0],y:e.parameters[1],fill:e.fillColor}},[e._v("\n "+e._s(e.parameters[2])+"\n")])},i=[],s=t(9729);const o={mixins:[s.A],computed:{fillColor(){return this.parameters[3]?this.parameters[3]:"black"}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},8211:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("text",{attrs:{x:e.parameters[3],y:e.parameters[4],"font-size":e.fontSize,fill:e.fillColor}},[e._v("\n "+e._s(e._value)+"\n")])},i=[],s=t(9729);const o={mixins:[s.A],data(){return{valueId:null}},computed:{_value(){return this.screen?this.screen.screenValues[this.valueId][0]:null},fontSize(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor(){return this.parameters[6]?this.parameters[6]:"black"}},created(){let e="CONVERTED";this.parameters[7]&&(e=this.parameters[7]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},4352:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("line",{style:e.calcStyle,attrs:{x1:e.parameters[0],y1:e.parameters[1],x2:e.parameters[2],y2:e.parameters[3]}})},i=[],s=t(9729);const o={mixins:[s.A],computed:{calcStyle(){let e="black";this.parameters[4]&&(e=this.parameters[4]);let n=1;return this.parameters[5]&&(n=this.parameters[5]),"stroke:"+e+";stroke-width:"+n}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},4291:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("line",{style:e.calcStyle,attrs:{x1:e.parameters[3],y1:e.parameters[4],x2:e.parameters[5],y2:e.parameters[6]}})},i=[],s=t(9729);const o={mixins:[s.A],data(){return{valueId:0,valueMap:{}}},computed:{calcStyle(){let e="black";this.screen&&this.screen.screenValues[this.valueId]&&(e=this.valueMap[this.screen.screenValues[this.valueId][0]]);let n=1;return this.parameters[7]&&(n=this.parameters[7]),"stroke:"+e+";stroke-width:"+n}},created(){this.settings.forEach((e=>{"VALUE_EQ"===e[0]&&(this.valueMap[e[1]]=e[2])}));let e="CONVERTED";this.parameters[8]&&(e=this.parameters[8]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},5733:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("v-checkbox",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label},model:{value:e.value,callback:function(n){e.value=n},expression:"value"}})},i=[],s=t(9729);const o={mixins:[s.A],data(){return{items:[],label:"Checkbox",value:!1}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.label=this.parameters[0]},methods:{checked(){return this.value}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},3835:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("v-select",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",outlined:"",items:e.items},model:{value:e.value,callback:function(n){e.value=n},expression:"value"}})},i=[],s=t(9729);const o={mixins:[s.A],data(){return{items:[],value:null}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.value=this.parameters[0],this.items=this.parameters},methods:{text(){return this.value}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},3634:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var l=function(){var e=this,n=e._self._c;return n(e.widgetType,e._b({tag:"component"},"component",{...e.$props,...e.$attrs},!1))},i=[];t(7107);const s={data(){return{widgetType:null}},props:{name:{default:null}},computed:{url:function(){return`${window.location.origin}/tools/widgets/${this.name}/${this.name}.umd.min.js`}},async mounted(){try{this.widgetType=await System.import(this.url)}catch(e){throw new Error(`Unknown widget: ${this.name}`)}}},o=s;var a=t(2401),r=(0,a.A)(o,l,i,!1,null,null,null);const c=r.exports},2656:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("value-widget",{attrs:{parameters:e.getParameters,settings:e.settings,"format-string":e.parameters[3]}})],1)},i=[],s=t(9729),o=t(4348);const a={mixins:[s.A],components:{ValueWidget:o["default"]},computed:{getParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[4]]}},created(){this.setWidth(this.parameters[5],"ch",12)}},r=a;var c=t(2401),u=(0,c.A)(r,l,i,!1,null,null,null);const d=u.exports},2907:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},e._l(e.widgets,(function(t,l){return n(t.type,e._g({key:l,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)},i=[],s=(t(9375),t(9843));const o={mixins:[s.A],created:function(){if(this.parameters[0]){let e=this.parameters[0];this.widgets.forEach((n=>{const t=n.settings.find((e=>"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")));void 0===t&&n.settings.push(["MARGIN",e])}))}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},4812:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return n("div",[n("v-banner",{staticClass:"boxbanner",style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.parameters[0]))]),e._v(" "),n("horizontal-widget",e._g({attrs:{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},i=[],s=t(2907),o=t(9843);const a={mixins:[o.A],components:{HorizontalWidget:s["default"]}},r=a;t(6395);var c=t(2401),u=(0,c.A)(r,l,i,!1,null,"7935dee2",null);const d=u.exports},9646:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=function(){var e=this,n=e._self._c;return n("hr")},i=[],s=t(2401),o={},a=(0,s.A)(o,l,i,!1,null,null,null);const r=a.exports},527:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("iframe",{style:e.computedStyle,attrs:{title:"IFrameWidget",src:e.parameters[0],width:e.width,height:e.height}})},i=[],s=t(9729);const o={mixins:[s.A],data:function(){return{width:800,height:600}},created:function(){this.setWidth(this.parameters[1],"px",this.width),this.setHeight(this.parameters[2],"px",this.height)}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},1404:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var l=function(){var e=this,n=e._self._c;return n("img",{style:e.computedStyle,attrs:{src:e.src,alt:e.itemFullName,width:e.parameters[4],height:e.parameters[5]}})},i=[],s=t(4364),o=t(9729),a=t(2702);const r={mixins:[o.A],data:function(){return{api:new s.x,cable:new a.A,subscription:null,imageData:""}},computed:{src:function(){return`data:image/${this.parameters[3]};base64, ${this.imageData}`},itemFullName:function(){return`TLM__${this.targetName}__${this.packetName}__${this.itemName}__${this.valueType}`},targetName:function(){return this.parameters[0]},packetName:function(){return this.parameters[1]},itemName:function(){return this.parameters[2]},valueType:function(){return"CONVERTED"}},created:function(){this.api.get_tlm_packet(this.targetName,this.packetName,this.valueType).then((e=>{const n=null===e||void 0===e?void 0:e.find((e=>e[0]===this.itemName));n&&(this.imageData=n[1])})).finally((()=>{this.subscribe()}))},destroyed:function(){this.subscription&&this.subscription.unsubscribe(),this.cable.disconnect()},methods:{received:function(e){if(this.cable.recordPing(),e["error"])this.$notify.serious({body:e["error"]});else if(e.length){const n=e[e.length-1];this.imageData=n[this.itemFullName]}},subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:e=>this.received(e),connected:()=>{this.subscription.perform("add",{scope:window.openc3Scope,mode:"DECOM",token:localStorage.openc3Token,items:[this.itemFullName]})},disconnected:()=>{this.$notify.caution({body:"OpenC3 backend connection disconnected."})},rejected:()=>{this.$notify.caution({body:"OpenC3 backend connection rejected."})}}).then((e=>{this.subscription=e}))}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},4858:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("div",{staticClass:"pa-1 mt-1 label",style:[e.cssProps,e.computedStyle],attrs:{"data-test":"label"}},[e._v("\n "+e._s(e.labelText)+"\n")])},i=[],s=t(9729);const o={mixins:[s.A],data(){return{fontFamily:null,fontSize:null,fontWeight:"normal",fontStyle:"normal"}},computed:{labelText(){return this.parameters[0]},cssProps(){var e=null;return this.fontSize&&(e=this.fontSize+"px"),{"--font-family":this.fontFamily,"--font-size":e,"--font-weight":this.fontWeight,"--font-style":this.fontStyle}}},created(){this.verifyNumParams("LABEL",1,5,"LABEL <Text> <Font Family> <Font Size> <Font Weight> <Font Style>"),this.parameters[1]&&(this.fontFamily=this.parameters[1]),this.parameters[2]&&(this.fontSize=this.parameters[2]),this.parameters[3]&&(this.fontWeight=this.parameters[3]),this.parameters[4]&&(this.fontStyle=this.parameters[4])}},a=o;t(6074);var r=t(2401),c=(0,r.A)(a,l,i,!1,null,"19db816e",null);const u=c.exports},9830:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],"widget-index":0}}),e._v(" "),n("led-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},i=[],s=t(9729),o=t(4858),a=t(6507);const r={mixins:[s.A],components:{LabelWidget:o["default"],LedWidget:a["default"]},computed:{labelName(){return[this.parameters[2]+":"]}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},2503:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],"widget-index":0}}),e._v(" "),n("progressbar-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},i=[],s=t(9729),o=t(4858),a=t(6825);const r={mixins:[s.A],components:{LabelWidget:o["default"],ProgressbarWidget:a["default"]},computed:{labelName(){return[this.parameters[2]+":"]}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},2194:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),e._v(" "),n("sparkline-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},i=[],s=t(9729),o=t(4858),a=t(6115);const r={mixins:[s.A],components:{LabelWidget:o["default"],SparklineWidget:a["default"]},computed:{labelName(){return[this.parameters[2]+":"]}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},9089:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),e._v(" "),n("value-widget",{attrs:{parameters:e.valueParameters,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},i=[],s=t(9729),o=t(4858),a=t(4348);const r={mixins:[s.A],components:{LabelWidget:o["default"],ValueWidget:a["default"]},computed:{labelName(){return[this.parameters[2]+":"]},valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4]]}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},974:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>A});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),e._v(" "),n("value-widget",{attrs:{parameters:e.valueParameters,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},i=[],s=(t(9375),t(9729)),o=t(4858),a=t(4348),r=t(4364);const c={mixins:[s.A],data(){return{description:"",valueParameters:[]}},components:{LabelWidget:o["default"],ValueWidget:a["default"]},computed:{labelName(){return[this.description]}},created(){this.valueParameters=this.parameters.slice(0,3),void 0!=this.parameters[4]&&this.valueParameters.push(this.parameters[4]),void 0!=this.parameters[5]&&this.valueParameters.push(this.parameters[5]),this.parameters.length>3?this.description=this.parameters[3]:(new r.x).get_item(this.parameters[0],this.parameters[1],this.parameters[2]).then((e=>{this.description=e["description"]}))}},u=c;var d=t(2401),m=(0,d.A)(u,l,i,!1,null,null,null);const A=m.exports},2171:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("labelvalue-widget",{attrs:{parameters:e.parameters,settings:e.labelValueSettings}}),e._v(" "),n("limitsbar-widget",{attrs:{parameters:e.limitsBarParameters,settings:[...e.settings],"widget-index":2}})],1)},i=[],s=t(9089),o=t(1057),a=t(9729);const r={mixins:[a.A],components:{LabelvalueWidget:s["default"],LimitsbarWidget:o["default"]},computed:{labelValueSettings(){return[...this.settings.filter((e=>"__SCREEN__"===e[0])),...this.settings.filter((e=>0===parseInt(e[0])||1===parseInt(e[0])))]},limitsBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},8981:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>A});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},[n("label-widget",{attrs:{parameters:[e.parameters[2]],settings:[...e.settings],"widget-index":0}}),e._v(" "),n("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:[...e.settings],"widget-index":1}}),e._v(" "),n("value-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":2}})],1)},i=[],s=t(4858),o=t(4348),a=t(6992),r=t(9729);const c={mixins:[r.A],components:{LabelWidget:s["default"],ValueWidget:o["default"],LimitscolumnWidget:a["default"]},computed:{limitsColumnParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},u=c;var d=t(2401),m=(0,d.A)(u,l,i,!1,null,null,null);const A=m.exports},9124:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("labelvalue-widget",{attrs:{parameters:e.labelValueParameters,settings:e.labelValueSettings}}),e._v(" "),n("rangebar-widget",{attrs:{parameters:e.rangeBarParameters,settings:[...e.settings],"widget-index":2}})],1)},i=[],s=t(9089),o=t(5736),a=t(9729);const r={mixins:[a.A],components:{LabelvalueWidget:s["default"],RangebarWidget:o["default"]},computed:{labelValueSettings(){return[...this.settings.filter((e=>"__SCREEN__"===e[0])),...this.settings.filter((e=>0===parseInt(e[0])||1===parseInt(e[0])))]},labelValueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},6507:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("div",{staticClass:"led mt-1",style:e.cssProps})},i=[],s=t(9729);const o={mixins:[s.A],data(){return{valueId:null,colors:{TRUE:"openc3-green",FALSE:"openc3-red"}}},computed:{width(){return this.parameters[4]?parseInt(this.parameters[4]):20},height(){return this.parameters[5]?parseInt(this.parameters[5]):20},cssProps(){let e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);let n=this.colors[e];return n||(n=this.colors.ANY),n||(n="openc3-black"),{"--height":this.height+"px","--width":this.width+"px","--color":n}}},created(){this.settings.forEach((e=>{switch(e[0]){case"LED_COLOR":this.colors[e[1]]=e[2];break}})),this.parameters[3]||(this.parameters[3]="CONVERTED"),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)}},a=o;t(4572);var r=t(2401),c=(0,r.A)(a,l,i,!1,null,"4e68ef1f",null);const u=c.exports},1057:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var l=function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},i=[function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar__container"},[n("div",{staticClass:"limitsbar__redlow"}),e._v(" "),n("div",{staticClass:"limitsbar__redhigh"}),e._v(" "),n("div",{staticClass:"limitsbar__yellowlow"}),e._v(" "),n("div",{staticClass:"limitsbar__yellowhigh"}),e._v(" "),n("div",{staticClass:"limitsbar__greenlow"}),e._v(" "),n("div",{staticClass:"limitsbar__greenhigh"}),e._v(" "),n("div",{staticClass:"limitsbar__blue"}),e._v(" "),n("div",{staticClass:"limitsbar__line"}),e._v(" "),n("div",{staticClass:"limitsbar__arrow"})])}],s=t(9729),o=t(4364);const a="DEFAULT",r={mixins:[s.A],data(){return{width:160,height:22,minValue:null,maxValue:null,scale:0,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:a,currentSetRefreshInterval:null}},computed:{cssProps:function(){let e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);let n=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(n),{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition(e,n)+"%","--redlow-width":this.redLow+"%","--redhigh-width":this.redHigh+"%","--yellowlow-width":this.yellowLow+"%","--yellowhigh-width":this.yellowHigh+"%","--greenlow-width":this.greenLow+"%","--greenhigh-width":this.greenHigh+"%","--blue-width":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:a}},created(){this.api=new o.x,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((e=>{this.limitsSettings=e})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.settings.forEach((e=>{"MIN_VALUE"===e[0]&&(this.minValue=parseInt(e[1])),"MAX_VALUE"===e[0]&&(this.maxValue=parseInt(e[1]))})),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height);let e="CONVERTED";this.parameters[3]&&(e=this.parameters[3]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{modifyLimits(e){this.redLow=10,this.redHigh=10,this.minValue&&(e[0]<=this.minValue&&(e[0]=this.minValue,this.redLow=0),e[1]<=this.minValue&&(e[1]=this.minValue),e[2]<=this.minValue&&(e[2]=this.minValue),e[3]<=this.minValue&&(e[3]=this.minValue),e.length>4&&e[4]<=this.minValue&&(e[4]=this.minValue),e.length>4&&e[5]<=this.minValue&&(e[5]=this.minValue)),this.maxValue&&(e[0]>=this.maxValue&&(e[0]=this.maxValue),e[1]>=this.maxValue&&(e[1]=this.maxValue),e[2]>=this.maxValue&&(e[2]=this.maxValue),e[3]>=this.maxValue&&(e[3]=this.maxValue,this.redHigh=0),e.length>4&&e[4]>=this.maxValue&&(e[4]=this.maxValue),e.length>4&&e[5]>=this.maxValue&&(e[5]=this.maxValue)),e[0]==e[1]&&(this.yellowLow=0),e[2]==e[3]&&(this.yellowHigh=0);let n=80;return 0==this.redLow&&(n+=10),0==this.redHigh&&(n+=10),this.scale=(e[3]-e[0])/n,e},calcPosition(e,n){if(null==e||!n)return;let t=n[0]-10*this.scale;this.minValue&&this.minValue==n[0]&&(t=n[0]);let l=n[3]-10*this.scale;if(this.maxValue&&this.maxValue==n[3]&&(l=n[3]),e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;{const n=parseInt((e-t)/this.scale);return n>100?100:n<0?0:n}},calcLimits(e){e&&(this.yellowLow=Math.round((e[1]-e[0])/this.scale),this.yellowHigh=Math.round((e[3]-e[2])/this.scale),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/this.scale),this.greenHigh=Math.round((e[2]-e[5])/this.scale),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0))},getCurrentLimitsSet:function(){this.api.get_limits_set().then((e=>{this.currentLimitsSet=e}))}}},c=r;t(6619);var u=t(2401),d=(0,u.A)(c,l,i,!1,null,"344f6330",null);const m=d.exports},8518:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("div",{staticClass:"led align-self-center",style:e.cssProps}),e._v(" "),n("label-widget",{style:e.computedStyle,attrs:{parameters:e.labelName,settings:e.settings,"widget-index":1}})],1)},i=[],s=t(2967);const o={mixins:[s.A],data(){return{radius:15,fullLabelDisplay:!1}},created(){this.parameters[4]&&(this.radius=parseInt(this.parameters[4])),this.parameters[5]&&"true"===this.parameters[5].toLowerCase()&&(this.fullLabelDisplay=!0)},computed:{labelName(){return this.fullLabelDisplay?[this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]]:[this.parameters[2]]},cssProps(){let e=null;return this.screen&&(e=this.screen.screenValues[this.valueId][0]),{"--height":this.radius+"px","--width":this.radius+"px","--color":this.limitsColor}}},methods:{getType(){var e="CONVERTED";return this.parameters[3]&&(e=this.parameters[3]),e}}},a=o;t(8490);var r=t(2401),c=(0,r.A)(a,l,i,!1,null,"47f390ae",null);const u=c.exports},6992:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var l=function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},i=[function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar__container"},[n("div",{staticClass:"limitsbar__redlow"}),e._v(" "),n("div",{staticClass:"limitsbar__redhigh"}),e._v(" "),n("div",{staticClass:"limitsbar__yellowlow"}),e._v(" "),n("div",{staticClass:"limitsbar__yellowhigh"}),e._v(" "),n("div",{staticClass:"limitsbar__greenlow"}),e._v(" "),n("div",{staticClass:"limitsbar__greenhigh"}),e._v(" "),n("div",{staticClass:"limitsbar__blue"}),e._v(" "),n("div",{staticClass:"limitsbar__line"}),e._v(" "),n("div",{staticClass:"limitsbar__arrow"})])}],s=t(9729),o=t(4364);const a="DEFAULT",r={mixins:[s.A],data(){return{width:20,height:100,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:a,currentSetRefreshInterval:null}},computed:{cssProps:function(){let e=null;return this.screen&&(e=this.screen.screenValues[this.valueId][0]),this.calcLimits(this.limitsSettings[this.selectedLimitsSet]),{"--height":this.height+"px","--width":this.width+"px","--container-width":this.width-5+"px","--position":this.calcPosition(e,this.limitsSettings[this.selectedLimitsSet])+"%","--redlow-height":this.redLow+"%","--redhigh-height":this.redHigh+"%","--yellowlow-height":this.yellowLow+"%","--yellowhigh-height":this.yellowHigh+"%","--greenlow-height":this.greenLow+"%","--greenhigh-height":this.greenHigh+"%","--blue-height":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:a}},created(){this.api=new o.x,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((e=>{this.limitsSettings=e})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height);let e="CONVERTED";this.parameters[3]&&(e=this.parameters[3]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{calcPosition(e,n){if(!e||!n)return;let t=.8;n[0]===n[1]&&(t+=.1),n[2]===n[3]&&(t+=.1);const l=(n[3]-n[0])/t,i=n[0]-.1*l;n[3];if(e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;{const n=parseInt((e-i)/l*100);return n>100?100:n<0?0:n}},calcLimits(e){if(!e)return;let n=80;e[0]===e[1]?(this.redLow=0,n+=10):this.redLow=10,e[2]===e[3]?(this.redHigh=0,n+=10):this.redHigh=10;const t=1*(e[3]-e[0]);this.yellowLow=Math.round((e[1]-e[0])/t*n),this.yellowHigh=Math.round((e[3]-e[2])/t*n),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/t*n),this.greenHigh=Math.round((e[2]-e[5])/t*n),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0)},getCurrentLimitsSet:function(){this.api.get_limits_set().then((e=>{this.currentLimitsSet=e}))}}},c=r;t(2846);var u=t(2401),d=(0,u.A)(c,l,i,!1,null,"0e4c2263",null);const m=d.exports},2653:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return n("graph",{ref:"graph"+e.id,style:e.computedStyle,attrs:{id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,"hide-system-bar":"","hide-overview":""},on:{pause:()=>e.state="pause",start:()=>e.state="start"}})},i=[],s=t(1033),o=t(2056);const a={components:{Graph:o.A},mixins:[s.A]},r=a;var c=t(2401),u=(0,c.A)(r,l,i,!1,null,null,null);const d=u.exports},5043:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var l=function(){var e=this,n=e._self._c;return n("table",{style:e.computedStyle,attrs:{role:"presentation"}},e._l(e.widgetChunks,(function(t,l){return n("tr",{key:"r"+l},e._l(t,(function(t,l){return n("td",{key:"c"+l},[n(t.type,e._g({tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))],1)})),0)})),0)},i=[],s=(t(9375),t(9843)),o=t(5250),a=t.n(o);const r={mixins:[s.A],computed:{columns(){return parseInt(this.parameters[0])},widgetChunks(){return a().chunk(this.widgets,this.columns)}},created:function(){if(this.parameters[1]){let e=this.parameters[1];this.widgets.forEach((n=>{const t=n.settings.find((e=>"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")));void 0===t&&n.settings.push(["MARGIN",e])}))}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},6825:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("rux-progress",{staticClass:"progress",style:e.computedStyle,attrs:{value:e._value}})},i=[],s=t(9729);const o={mixins:[s.A],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:150}},computed:{_value:function(){let e=this.value;return null===e&&this.screen&&(e=this.screen.screenValues[this.valueId][0]),parseInt(parseFloat(e)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),null===this.value){var e="CONVERTED";this.parameters[5]&&(e=this.parameters[5]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)}},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},a=o;t(3519);var r=t(2401),c=(0,r.A)(a,l,i,!1,null,"e34552b0",null);const u=c.exports},5993:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("v-radio",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label,value:e.value}})},i=[],s=t(9729);const o={props:{value:{type:Number}},mixins:[s.A],data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},5758:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("v-radio-group",{style:e.computedStyle,attrs:{"hide-details":"",dense:""},model:{value:e.selectedIndex,callback:function(n){e.selectedIndex=n},expression:"selectedIndex"}},e._l(e.widgets,(function(t,l){return n(t.type,e._g({key:l,tag:"component",attrs:{value:l,target:t.target,parameters:t.parameters,settings:t.settings,name:t.name}},e.$listeners))})),1)},i=[],s=t(9843);const o={mixins:[s.A],data(){return{selectedIndex:0}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},5736:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("div",{staticClass:"rangebar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},i=[function(){var e=this,n=e._self._c;return n("div",{staticClass:"rangebar__container"},[n("div",{staticClass:"rangebar__line"}),e._v(" "),n("div",{staticClass:"rangebar__arrow"})])}],s=t(9729);const o={mixins:[s.A],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return parseInt(this.parameters[3])},max(){return parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)},methods:{calcPosition(){let e=null;if(this.screen&&(e=this.screen.screenValues[this.valueId][0]),!e)return 0;if(e.raw)return"-Infinity"===e.raw?0:100;const n=(e-this.min)/this.range*100;return n>100?100:n<0?0:n}}},a=o;t(519);var r=t(2401),c=(0,r.A)(a,l,i,!1,null,"f50bb458",null);const u=c.exports},9769:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return n("vertical-widget",e._g({staticClass:"overflow-y-auto",style:e.computedStyle,attrs:{settings:e.settings,parameters:e.parameters.slice(1),widgets:e.widgets}},e.$listeners))},i=[],s=t(9843),o=t(1629);const a={mixins:[s.A],components:{VerticalWidget:o["default"]},created:function(){this.setHeight(this.parameters[0],"px",200)}},r=a;var c=t(2401),u=(0,c.A)(r,l,i,!1,null,null,null);const d=u.exports},2959:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("v-banner",{style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.labelText))])},i=[],s=t(9729);const o={mixins:[s.A],computed:{labelText(){return this.parameters[0]}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},6637:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("div",{style:e.style})},i=[],s=t(9729);const o={mixins:[s.A],computed:{style:function(){return[`width: ${this.parameters[0]}px;`,`height: ${this.parameters[1]}px;`].join("")}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},6115:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return n("graph",{ref:"graph"+e.id,style:e.computedStyle,attrs:{id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,sparkline:""}})},i=[],s=t(1033),o=t(2056);const a={components:{Graph:o.A},mixins:[s.A],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}},r=a;var c=t(2401),u=(0,c.A)(r,l,i,!1,null,null,null);const d=u.exports},2926:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("div",[n("v-tabs",{style:e.computedStyle,model:{value:e.curTab,callback:function(n){e.curTab=n},expression:"curTab"}},e._l(e.widgets,(function(t,l){return n("v-tab",{key:l},[e._v("\n "+e._s(t.parameters[0])+"\n ")])})),1),e._v(" "),n("v-tabs-items",{model:{value:e.curTab,callback:function(n){e.curTab=n},expression:"curTab"}},e._l(e.widgets,(function(t,l){return n("v-tab-item",{key:l},e._l(t.widgets,(function(t,i){return n(t.type,e._g({key:`${l}-${i}`,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)})),1)],1)},i=[],s=t(9843);const o={mixins:[s.A],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},2128:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return n("div",{staticClass:"textbox-widget-container"},[n("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),e._v(" "),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,l){return n("v-list-item",{key:l,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),e._v(" "),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},i=[],s=t(2967),o=t(9821);t(9471);const a={components:{DetailsDialog:o.A},data:function(){return{width:200,height:200}},mixins:[s.A],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){var e="CONVERTED";return this.parameters[5]&&(e=this.parameters[5]),e}}},r=a;t(1552);var c=t(2401),u=(0,c.A)(r,l,i,!1,null,"0b5bfdc6",null);const d=u.exports},7540:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("v-text-field",{style:e.computedStyle,attrs:{solo:"",dense:"","single-line":"","hide-no-data":"","hide-details":""},model:{value:e.value,callback:function(n){e.value=n},expression:"value"}})},i=[],s=t(9729);const o={mixins:[s.A],data(){return{value:null}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},6525:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("span",{staticClass:"text-h5 text-center pa-1 mt-1 label",style:e.computedStyle},[e._v("\n "+e._s(e.labelText)+"\n")])},i=[],s=(t(7107),t(9729));const o={mixins:[s.A],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},4348:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var l=function(){var e=this,n=e._self._c;return n("div",{staticClass:"value-widget-container",style:[e.computedStyle,e.aging]},[n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("v-text-field",e._g(e._b({class:e.valueClass,attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Value",value:e._value,"prepend-inner-icon":e.astroIcon,"data-test":"value"},on:{contextmenu:e.showContextMenu}},"v-text-field",l,!1),t))]}}])},[e._v(" "),n("span",[e._v(e._s(e.fullName))])]),e._v(" "),n("v-menu",{staticStyle:{"z-index":"10"},attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,l){return n("v-list-item",{key:l,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),e._v(" "),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},i=[],s=t(2967),o=t(9821);const a=4,r={components:{DetailsDialog:o.A},mixins:[s.A],data:function(){return{width:12+a}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+a,"ch",this.width)}},c=r;t(8087);var u=t(2401),d=(0,u.A)(c,l,i,!1,null,"f6adf1e0",null);const m=d.exports},440:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("value-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":0}}),e._v(" "),n("limitsbar-widget",{attrs:{parameters:e.parameters.slice(0,4),settings:[...e.settings],"widget-index":1}})],1)},i=[],s=t(4348),o=t(1057),a=t(9729);const r={mixins:[a.A],components:{ValueWidget:s["default"],LimitsbarWidget:o["default"]},computed:{limitsBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3]]}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},6931:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},[n("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:[...e.settings],"widget-index":0}}),e._v(" "),n("value-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},i=[],s=t(4348),o=t(6992),a=t(9729);const r={mixins:[a.A],components:{ValueWidget:s["default"],LimitscolumnWidget:o["default"]},computed:{limitsColumnParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},5918:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("value-widget",{attrs:{parameters:e.valueParameters,settings:[...e.settings],"widget-index":0}}),e._v(" "),n("rangebar-widget",{attrs:{parameters:e.rangeBarParameters,settings:[...e.settings],"widget-index":1}})],1)},i=[],s=t(4348),o=t(5736),a=t(9729);const r={mixins:[a.A],components:{ValueWidget:s["default"],RangebarWidget:o["default"]},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},1629:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},e._l(e.widgets,(function(t,l){return n(t.type,e._g({key:l,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)},i=[],s=(t(9375),t(9843));const o={mixins:[s.A],created:function(){if(this.parameters[0]){let e=this.parameters[0];this.widgets.forEach((n=>{const t=n.settings.find((e=>"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")));void 0===t&&n.settings.push(["MARGIN",e])}))}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},5757:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return n("div",[n("v-banner",{staticClass:"boxbanner",style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.parameters[0]))]),e._v(" "),n("vertical-widget",e._g({attrs:{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},i=[],s=t(1629),o=t(9843);const a={mixins:[o.A],components:{VerticalWidget:s["default"]}},r=a;t(1241);var c=t(2401),u=(0,c.A)(r,l,i,!1,null,"e0b00b10",null);const d=u.exports},7004:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".v-card__subtitle[data-v-3ca9666e]{padding:0;padding-bottom:10px}.text[data-v-3ca9666e]{font-size:1rem;white-space:pre-line}",""]);const r=a},1863:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,"#sr-controls[data-v-5587ac26]{padding:0}.editorbox[data-v-5587ac26]{height:50vh}.editor[data-v-5587ac26]{height:100%;width:100%;font-size:16px}.editor[data-v-5587ac26],hr[data-v-5587ac26]{position:relative}hr[data-v-5587ac26]{pointer-events:none;top:7px;background-color:grey;height:3px;width:5%;margin:auto}.script-state[data-v-5587ac26]{background-color:var(--color-background-base-default)}.script-state[data-v-5587ac26] input{text-transform:capitalize}",""]);const r=a},1523:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".runningMarker{position:absolute;background:rgba(0,255,0,.5);z-index:20}.waitingMarker{position:absolute;background:#009b00;z-index:20}.breakpointMarker{position:absolute;border-style:solid;border-color:red;background:rgba(0,255,0,.5);z-index:20}.pausedMarker{background:rgba(0,140,255,.5)}.errorMarker,.pausedMarker{position:absolute;z-index:20}.errorMarker{background:rgba(255,0,119,.5)}.fatalMarker{position:absolute;background:rgba(255,0,0,.5);z-index:20}.saving{z-index:20;opacity:.35}.ace_gutter-cell.ace_breakpoint{border-radius:20px 0 0 20px;box-shadow:inset 0 0 1px 1px red}.grid{position:relative}.item{position:absolute;display:block;margin:5px;z-index:1}.item-content{position:relative;cursor:pointer;border-radius:6px}",""]);const r=a},3076:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".label[data-v-6659f972]{font-weight:700;text-transform:capitalize}[data-v-6659f972] .v-input--selection-controls{padding:0;margin:0}",""]);const r=a},5221:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".ace_autocomplete{width:60vw!important}",""]);const r=a},7745:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".editor[data-v-791fd9ac]{height:50vh;width:75vw;position:relative;font-size:16px}.v-textarea[data-v-791fd9ac] textarea{padding:5px}",""]);const r=a},8730:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".edit-box,.v-window-item{background-color:var(--color-background-surface-default)}.edit-box{color:hsla(0,0%,100%,.7);padding:10px;margin-top:10px}.v-small-dialog__content{background-color:var(--color-background-surface-selected);padding:5px 5px}.uplot.side-legend{display:flex;width:auto}.uplot.side-legend .u-wrap{flex:none}.uplot.side-legend .u-legend{text-align:left;margin-left:0;width:220px}.uplot.side-legend .u-legend,.uplot.side-legend .u-legend td,.uplot.side-legend .u-legend th,.uplot.side-legend .u-legend tr{display:revert}.uplot.left-legend .u-legend{order:-1}.uplot.top-legend{display:flex;flex-direction:column}.uplot.top-legend .u-legend{order:-1}",""]);const r=a},9530:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,"#chart[data-v-5efb6623] .u-select{background-color:hsla(0,0%,100%,.07)}",""]);const r=a},2130:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".errors[data-v-a4a31488]{padding-top:0;margin-top:0}.v-textarea[data-v-a4a31488] textarea{padding:5px}",""]);const r=a},9808:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".app-title[data-v-57d4fdd2]{font-size:2rem}.menu-button[data-v-57d4fdd2]{border-color:var(--color-border-interactive-muted)!important;background-color:var(--color-background-base-default)!important;padding-right:3px!important}span.v-btn__content span[data-v-57d4fdd2]{padding-right:5px}.myicon[data-v-57d4fdd2]{background-color:var(--color-background-surface-selected);border:1px solid currentColor;border-radius:3px;height:36px!important;width:36px!important}.v-list[data-v-57d4fdd2] .v-label{margin-left:5px}.v-list-item__icon[data-v-57d4fdd2]{margin-right:15px!important}.v-list-item__title[data-v-57d4fdd2]{color:#fff}",""]);const r=a},2604:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".array-widget-container[data-v-5cd86706] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-5cd86706] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-5cd86706] input{color:#00c800}.openc3-yellow[data-v-5cd86706] input{color:#ffdc00}.openc3-red[data-v-5cd86706] input{color:#ff2d2d}.openc3-blue[data-v-5cd86706] input{color:#09f}.openc3-purple[data-v-5cd86706] input{color:#c800c8}.openc3-black[data-v-5cd86706] input{color:#000}.openc3-white[data-v-5cd86706] input{color:#fff}",""]);const r=a},1651:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".block-widget-container[data-v-0872fd0e] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.v-textarea[data-v-0872fd0e] textarea{font-family:Courier New,Courier,monospace}.value[data-v-0872fd0e] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-0872fd0e] input{color:#00c800}.openc3-yellow[data-v-0872fd0e] input{color:#ffdc00}.openc3-red[data-v-0872fd0e] input{color:#ff2d2d}.openc3-blue[data-v-0872fd0e] input{color:#09f}.openc3-purple[data-v-0872fd0e] input{color:#c800c8}.openc3-black[data-v-0872fd0e] input{color:#000}.openc3-white[data-v-0872fd0e] input{color:#fff}",""]);const r=a},8784:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".boxbanner[data-v-7935dee2] .v-banner__wrapper{padding:4px!important}.boxbanner[data-v-7935dee2] .v-banner__text{font-weight:600;font-size:16px}",""]);const r=a},2498:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".label[data-v-19db816e]{font-family:var(--font-family);font-size:var(--font-size);font-weight:var(--font-weight);font-style:var(--font-style)}",""]);const r=a},9316:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".led[data-v-4e68ef1f]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]);const r=a},9058:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".led[data-v-47f390ae]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]);const r=a},6552:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".textbox-widget-container[data-v-0b5bfdc6] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-0b5bfdc6] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-0b5bfdc6] input{color:#00c800}.openc3-yellow[data-v-0b5bfdc6] input{color:#ffdc00}.openc3-red[data-v-0b5bfdc6] input{color:#ff2d2d}.openc3-blue[data-v-0b5bfdc6] input{color:#09f}.openc3-purple[data-v-0b5bfdc6] input{color:#c800c8}.openc3-black[data-v-0b5bfdc6] input{color:#000}.openc3-white[data-v-0b5bfdc6] input{color:#fff}",""]);const r=a},3425:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".boxbanner[data-v-e0b00b10] .v-banner__wrapper{padding:4px!important}.boxbanner[data-v-e0b00b10] .v-banner__text{font-weight:600;font-size:16px}",""]);const r=a},3495:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".repeat[data-v-54fbc085]{padding-top:10px;text-align:right}.v-stepper--vertical .v-stepper__content[data-v-54fbc085]{width:auto;margin:0 0 0 36px;padding:0}",""]);const r=a},8707:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".v-stepper--vertical .v-stepper__content[data-v-8154ef52]{width:auto;margin:0 0 0 36px;padding:0}",""]);const r=a},7019:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".v-stepper--vertical .v-stepper__content[data-v-f2badfd2]{width:auto;margin:0 0 0 36px;padding:0}",""]);const r=a},4294:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".v-stepper--vertical .v-stepper__content[data-v-ffe4e8e8]{width:auto;margin:0 0 0 36px;padding:0}",""]);const r=a},2897:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,"#tr-container[data-v-7585b76b]{padding-top:0;padding-bottom:15px;padding-left:0;padding-right:0}",""]);const r=a},3224:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,"svg[data-v-17947dc7]{background-color:#fff}",""]);const r=a},8452:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".limitsbar[data-v-344f6330]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;padding-top:15px;width:var(--width)}.limitsbar__container[data-v-344f6330]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-344f6330]{left:0;width:var(--redlow-width)}.limitsbar__redhigh[data-v-344f6330],.limitsbar__redlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#ff2d2d}.limitsbar__redhigh[data-v-344f6330]{right:0;width:var(--redhigh-width)}.limitsbar__yellowlow[data-v-344f6330]{left:var(--redlow-width);width:var(--yellowlow-width)}.limitsbar__yellowhigh[data-v-344f6330],.limitsbar__yellowlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-344f6330]{right:var(--redhigh-width);width:var(--yellowhigh-width)}.limitsbar__greenlow[data-v-344f6330]{left:calc(var(--redlow-width) + var(--yellowlow-width));width:var(--greenlow-width)}.limitsbar__greenhigh[data-v-344f6330],.limitsbar__greenlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#00c800}.limitsbar__greenhigh[data-v-344f6330]{right:calc(var(--redhigh-width) + var(--yellowhigh-width));width:var(--greenhigh-width)}.limitsbar__blue[data-v-344f6330]{top:-1px;left:calc(var(--redlow-width) + var(--yellowlow-width) + var(--greenlow-width));width:var(--blue-width);background-color:#09f}.limitsbar__blue[data-v-344f6330],.limitsbar__line[data-v-344f6330]{position:absolute;height:var(--container-height)}.limitsbar__line[data-v-344f6330]{left:var(--position);width:1px;background-color:gray}.limitsbar__arrow[data-v-344f6330]{position:absolute;top:-5px;left:var(--position);width:0;height:0;transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]);const r=a},5895:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".limitsbar[data-v-0e4c2263]{cursor:default;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;height:var(--height)}.limitsbar__container[data-v-0e4c2263]{position:relative;flex:1 1 100%;width:var(--container-width);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-0e4c2263]{bottom:0;height:var(--redlow-height)}.limitsbar__redhigh[data-v-0e4c2263],.limitsbar__redlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#ff2d2d}.limitsbar__redhigh[data-v-0e4c2263]{top:0;height:var(--redhigh-height)}.limitsbar__yellowlow[data-v-0e4c2263]{bottom:var(--redlow-height);height:var(--yellowlow-height)}.limitsbar__yellowhigh[data-v-0e4c2263],.limitsbar__yellowlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-0e4c2263]{top:var(--redhigh-height);height:var(--yellowhigh-height)}.limitsbar__greenlow[data-v-0e4c2263]{bottom:calc(var(--redlow-height) + var(--yellowlow-height));height:var(--greenlow-height)}.limitsbar__greenhigh[data-v-0e4c2263],.limitsbar__greenlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#00c800}.limitsbar__greenhigh[data-v-0e4c2263]{top:calc(var(--redhigh-height) + var(--yellowhigh-height));height:var(--greenhigh-height)}.limitsbar__blue[data-v-0e4c2263]{bottom:calc(var(--redlow-height) + var(--yellowlow-height) + var(--greenlow-height));height:var(--blue-height);background-color:#09f}.limitsbar__blue[data-v-0e4c2263],.limitsbar__line[data-v-0e4c2263]{position:absolute;width:var(--container-width)}.limitsbar__line[data-v-0e4c2263]{bottom:var(--position);height:1px;background-color:gray}.limitsbar__arrow[data-v-0e4c2263]{position:absolute;bottom:var(--position);left:var(--container-width);width:0;height:0;transform:translateY(5px);border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid gray}",""]);const r=a},3160:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".progress[data-v-e34552b0]{margin:5px;flex:auto!important}",""]);const r=a},2574:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".rangebar[data-v-f50bb458]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;padding-top:15px;width:var(--width)}.rangebar__container[data-v-f50bb458]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.rangebar__line[data-v-f50bb458]{width:1px;height:var(--container-height);background-color:gray}.rangebar__arrow[data-v-f50bb458],.rangebar__line[data-v-f50bb458]{position:absolute;left:var(--position)}.rangebar__arrow[data-v-f50bb458]{top:-5px;width:0;height:0;transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]);const r=a},3200:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".value-widget-container[data-v-f6adf1e0]{min-height:34px}.value-widget-container[data-v-f6adf1e0] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value-widget-container[data-v-f6adf1e0] input{text-align:var(--text-align)!important}[data-v-f6adf1e0] .v-input__slot:has(.v-icon){padding-left:2px!important}.value-widget-container[data-v-f6adf1e0] .v-icon{margin-top:9px}.value[data-v-f6adf1e0] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-f6adf1e0] input{color:#00c800}.openc3-yellow[data-v-f6adf1e0] input{color:#ffdc00}.openc3-red[data-v-f6adf1e0] input{color:#ff2d2d}.openc3-blue[data-v-f6adf1e0] input{color:#09f}.openc3-purple[data-v-f6adf1e0] input{color:#c800c8}.openc3-black[data-v-f6adf1e0] input{color:#000}.openc3-white[data-v-f6adf1e0] input{color:#fff}",""]);const r=a},2753:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".question{font-size:1rem;white-space:pre-line}",""]);const r=a},47:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9375),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4293),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1__),_services_openc3_api__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4364),_services_api__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2795),_Widget__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9729);const __WEBPACK_DEFAULT_EXPORT__={mixins:[_Widget__WEBPACK_IMPORTED_MODULE_4__.A],data(){return{api:null,screen:null,displaySendHazardous:!1,lastCmd:""}},computed:{buttonText(){return this.parameters[0]},eval(){return this.parameters[1]}},created(){this.api=new _services_openc3_api__WEBPACK_IMPORTED_MODULE_2__.x},methods:{async onClick(){const lines=this.eval.split(";;"),self=this,screen=this.screen,api=this.api,run_script=this.runScript,runScript=this.runScript;for(let i=0;i<lines.length;i++){const result=eval(lines[i].trim());if(result instanceof Promise)try{await result}catch(err){if(err.message.includes("is Hazardous")){this.lastCmd=err.message.split("\n").pop(),this.displaySendHazardous=!0;while(this.displaySendHazardous)await new Promise((e=>setTimeout(e,500)))}}}},sendHazardousCmd(){this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check("),eval(this.lastCmd),this.displaySendHazardous=!1},cancelHazardousCmd(){this.displaySendHazardous=!1},runScript(e,n=!0,t={}){let l=[];for(const i in t)l.push({key:i,value:t[i],readonly:!1});_services_api__WEBPACK_IMPORTED_MODULE_3__.A.post(`/script-api/scripts/${e}/run`,{data:{environment:l}}).then((e=>{n&&window.open(`/tools/scriptrunner/${e.data}`,"_blank")}))}}}},9876:(e,n,t)=>{var l=t(7004);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("4f6bcdbe",l,!0,{sourceMap:!1,shadowMode:!1})},4879:(e,n,t)=>{var l=t(1863);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("2930ee39",l,!0,{sourceMap:!1,shadowMode:!1})},7691:(e,n,t)=>{var l=t(1523);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("5945bf03",l,!0,{sourceMap:!1,shadowMode:!1})},1727:(e,n,t)=>{var l=t(3076);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("2d4e5d43",l,!0,{sourceMap:!1,shadowMode:!1})},8765:(e,n,t)=>{var l=t(5221);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("32c54128",l,!0,{sourceMap:!1,shadowMode:!1})},3065:(e,n,t)=>{var l=t(7745);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("1f295c78",l,!0,{sourceMap:!1,shadowMode:!1})},6738:(e,n,t)=>{var l=t(8730);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("16d623ca",l,!0,{sourceMap:!1,shadowMode:!1})},7346:(e,n,t)=>{var l=t(9530);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("1f8d080f",l,!0,{sourceMap:!1,shadowMode:!1})},970:(e,n,t)=>{var l=t(2130);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("4576acde",l,!0,{sourceMap:!1,shadowMode:!1})},1e3:(e,n,t)=>{var l=t(9808);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("7de62207",l,!0,{sourceMap:!1,shadowMode:!1})},8644:(e,n,t)=>{var l=t(2604);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("509098ba",l,!0,{sourceMap:!1,shadowMode:!1})},8827:(e,n,t)=>{var l=t(1651);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("9c784b84",l,!0,{sourceMap:!1,shadowMode:!1})},6395:(e,n,t)=>{var l=t(8784);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("0e86fc54",l,!0,{sourceMap:!1,shadowMode:!1})},6074:(e,n,t)=>{var l=t(2498);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("24c3e658",l,!0,{sourceMap:!1,shadowMode:!1})},4572:(e,n,t)=>{var l=t(9316);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("588b24c7",l,!0,{sourceMap:!1,shadowMode:!1})},8490:(e,n,t)=>{var l=t(9058);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("8aaadfb6",l,!0,{sourceMap:!1,shadowMode:!1})},1552:(e,n,t)=>{var l=t(6552);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("560bdaf4",l,!0,{sourceMap:!1,shadowMode:!1})},1241:(e,n,t)=>{var l=t(3425);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("6529934c",l,!0,{sourceMap:!1,shadowMode:!1})},5663:(e,n,t)=>{var l=t(3495);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("52111554",l,!0,{sourceMap:!1,shadowMode:!1})},5739:(e,n,t)=>{var l=t(8707);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("d9806e72",l,!0,{sourceMap:!1,shadowMode:!1})},6611:(e,n,t)=>{var l=t(7019);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("29de9028",l,!0,{sourceMap:!1,shadowMode:!1})},4430:(e,n,t)=>{var l=t(4294);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("58a22774",l,!0,{sourceMap:!1,shadowMode:!1})},7542:(e,n,t)=>{var l=t(2897);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("e85732fa",l,!0,{sourceMap:!1,shadowMode:!1})},1497:(e,n,t)=>{var l=t(3224);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("0138eb9a",l,!0,{sourceMap:!1,shadowMode:!1})},6619:(e,n,t)=>{var l=t(8452);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("1dc714dc",l,!0,{sourceMap:!1,shadowMode:!1})},2846:(e,n,t)=>{var l=t(5895);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("18e03660",l,!0,{sourceMap:!1,shadowMode:!1})},3519:(e,n,t)=>{var l=t(3160);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("2af1c7e9",l,!0,{sourceMap:!1,shadowMode:!1})},519:(e,n,t)=>{var l=t(2574);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("df7a598a",l,!0,{sourceMap:!1,shadowMode:!1})},8087:(e,n,t)=>{var l=t(3200);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("01cd6850",l,!0,{sourceMap:!1,shadowMode:!1})},5934:(e,n,t)=>{var l=t(2753);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("4e4cc5fe",l,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
1
|
+
(self["webpackChunk_openc3_cosmos_tool_scriptrunner"]=self["webpackChunk_openc3_cosmos_tool_scriptrunner"]||[]).push([[384],{7448:(e,n,t)=>{var l={"./ArrayWidget.vue":8687,"./BlockWidget.vue":171,"./ButtonWidget.vue":4814,"./CanvasWidget.vue":2430,"./CanvasdotWidget.vue":6614,"./CanvasimageWidget.vue":8239,"./CanvasimagevalueWidget.vue":4653,"./CanvaslabelWidget.vue":6631,"./CanvaslabelvalueWidget.vue":8211,"./CanvaslineWidget.vue":4352,"./CanvaslinevalueWidget.vue":4291,"./CheckbuttonWidget.vue":5733,"./ComboboxWidget.vue":3835,"./DynamicWidget.vue":3634,"./FormatvalueWidget.vue":2656,"./HorizontalWidget.vue":2907,"./HorizontalboxWidget.vue":4812,"./HorizontallineWidget.vue":9646,"./IframeWidget.vue":527,"./ImageviewerWidget.vue":1404,"./LabelWidget.vue":4858,"./LabelledWidget.vue":9830,"./LabelprogressbarWidget.vue":2503,"./LabelsparklineWidget.vue":2194,"./LabelvalueWidget.vue":9089,"./LabelvaluedescWidget.vue":974,"./LabelvaluelimitsbarWidget.vue":2171,"./LabelvaluelimitscolumnWidget.vue":8981,"./LabelvaluerangebarWidget.vue":9124,"./LedWidget.vue":6507,"./LimitsbarWidget.vue":1057,"./LimitscolorWidget.vue":8518,"./LimitscolumnWidget.vue":6992,"./LinegraphWidget.vue":2653,"./MatrixbycolumnsWidget.vue":5043,"./ProgressbarWidget.vue":6825,"./RadiobuttonWidget.vue":5993,"./RadiogroupWidget.vue":5758,"./RangebarWidget.vue":5736,"./ScrollwindowWidget.vue":9769,"./SectionheaderWidget.vue":2959,"./SpacerWidget.vue":6637,"./SparklineWidget.vue":6115,"./TabbookWidget.vue":2926,"./TextboxWidget.vue":2128,"./TextfieldWidget.vue":7540,"./TitleWidget.vue":6525,"./ValueWidget.vue":4348,"./ValuelimitsbarWidget.vue":440,"./ValuelimitscolumnWidget.vue":6931,"./ValuerangebarWidget.vue":5918,"./VerticalWidget.vue":1629,"./VerticalboxWidget.vue":5757};function i(e){var n=s(e);return t(n)}function s(e){if(!t.o(l,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return l[e]}i.keys=function(){return Object.keys(l)},i.resolve=s,e.exports=i,i.id=7448},1033:(e,n,t)=>{"use strict";t.d(n,{A:()=>o});t(7107),t(9375);var l=t(4554),i=t(7408),s=t(9729);const o={mixins:[s.A],data:function(){return{id:Math.floor(1e11*Math.random()),state:"start",items:[{targetName:this.parameters[0],packetName:this.parameters[1],itemName:this.parameters[2],valueType:this.parameters[3]||"CONVERTED",reduced:this.parameters[4]||"DECOM",reducedType:this.parameters[5]||null}],startTime:null,secondsGraphed:3600,pointsSaved:3600,pointsGraphed:3600,size:{height:300,width:400}}},created:function(){this.settings.forEach((e=>{switch(e[0]){case"ITEM":this.items.push({targetName:e[1],packetName:e[2],itemName:e[3],valueType:e[4]||"CONVERTED",reduced:e[5]||"DECOM",reducedType:e[6]||null});case"STARTTIME":let n=(0,l.qg)(e[1],"yyyy/MM/dd HH:mm:ss",new Date);this.startTime=1e6*n.getTime();break;case"HISTORY":let t=parseInt(e[1].slice(0,e[1].length-1)),s=null,o=1;switch(e[1][e[1].length-1]){case"d":s="days",o=86400;break;case"h":s="hours",o=3600;break;case"m":s="minutes",o=60;break;case"s":s="seconds";break;default:throw new Error(`Unknown time suffix: ${e[1]}!`)}let a={};a[s]=t,this.startTime=1e6*(0,i.j)(new Date,a).getTime(),t*o>this.secondsGraphed&&(this.secondsGraphed=t*o),t*o>this.pointsSaved&&(this.pointsSaved=t*o),t*o>this.pointsGraphed&&(this.pointsGraphed=t*o);break;case"SECONDSGRAPHED":this.secondsGraphed=parseInt(e[1]);break;case"POINTSSAVED":this.pointsSaved=parseInt(e[1]);break;case"POINTSGRAPHED":this.pointsGraphed=parseInt(e[1]);break;case"SIZE":this.size.width=parseInt(e[1]),this.size.height=parseInt(e[2]);break}})),this.screen&&this.items.map((e=>this.screen.addItem(`${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`)))},destroyed(){this.screen&&this.items.map((e=>this.screen.deleteItem(`${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`)))}}},7163:(e,n,t)=>{"use strict";t.d(n,{A:()=>i});var l=t(2795);const i={props:{target:{type:String,require:!0}},methods:{getPresignedUrl:async function(e){var n="targets_modified";await l.A.get(`/openc3-api/storage/exists/${encodeURIComponent(`${window.openc3Scope}/${n}/${this.target}/public/${e}`)}?bucket=OPENC3_CONFIG_BUCKET`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).catch((e=>{n="targets"}));var t=await l.A.get(`/openc3-api/storage/download/${encodeURIComponent(`${window.openc3Scope}/${n}/${this.target}/public/${e}`)}?bucket=OPENC3_CONFIG_BUCKET`);return t.data.url}}}},9843:(e,n,t)=>{"use strict";t.d(n,{A:()=>i});var l=t(9729);const i={mixins:[l.A],props:{widgets:{type:Array,default:()=>[]}}}},2967:(e,n,t)=>{"use strict";t.d(n,{A:()=>i});var l=t(9729);t(9471);const i={mixins:[l.A],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null},data(){return{curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+this.parameters[0]+"/"+this.parameters[1]+"/"+this.parameters[2],"_blank")}}]}},watch:{_counter:function(e,n){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,null===this.curValue&&(this.screen?this.screen.screenValues[this.valueId]&&(this.curValue=this.screen.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let e=this.limitsState;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][1]):e=null),e},_counter:function(){let e=this.counter;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroIcon(){switch(this.limitsColor){case"green":return"$vuetify.icons.astro-status-normal";case"yellow":return"$vuetify.icons.astro-status-caution";case"red":return"$vuetify.icons.astro-status-critical";case"blue":return"$vuetify.icons.astro-status-standby";default:return null}},limitsColor(){let e=this._limitsState;if(null!=e)switch(e){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let e=this._limitsState;if(null!=e){let n=e.charAt(0);return e.endsWith("_LOW")&&(n=n.toLowerCase()),n}return""}},created(){null!==this.value&&null!==this.limitsState||(this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.screen&&this.screen.addItem(this.valueId))},destroyed(){null!==this.value&&null!==this.limitsState||this.screen&&this.screen.deleteItem(this.valueId)},methods:{getType(){var e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){if(e&&"String"===e["json_class"]&&void 0!==e["raw"]){let n=Array.from(e["raw"].slice(0,32),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase();return e["raw"].length>32&&(n+="..."),n}if("Array"===Object.prototype.toString.call(e).slice(8,-1)){let n="[";for(let t=0;t<e.length;t++)"String"===Object.prototype.toString.call(e[t]).slice(8,-1)?n+='"'+e[t]+'"':n+=e[t],t!=e.length-1&&(n+=", ");return n+="]",n}return"Object"===Object.prototype.toString.call(e).slice(8,-1)?"":this.formatString&&e?sprintf(this.formatString,e):""+e},showContextMenu(e){e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick((()=>{this.contextMenuShown=!0}))}}}},9729:(e,n,t)=>{"use strict";t.d(n,{A:()=>i});t(9375),t(7534);var l=t(3069);const i={props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{screen:null}},computed:{computedStyle(){let e={};return this.settings.forEach((n=>{const t=parseInt(n[0]);if(null!==this.widgetIndex){if(this.widgetIndex!==t)return;n=n.slice(1)}this.applySetting(e,n)})),void 0===e["width"]&&(e["flex"]="0 10 100%"),e}},created(){this.settings.forEach((e=>{"__SCREEN__"===e[0]&&(this.screen=e[1])}))},methods:{applySetting(e,n){switch(n[0]){case"TEXTALIGN":e["text-align"]=n[1].toLowerCase()+" !important",e["--text-align"]=n[1].toLowerCase();break;case"PADDING":isNaN(Number(n[1]))||(n[1]+="px"),e["padding"]=n[1]+" !important";break;case"MARGIN":isNaN(Number(n[1]))||(n[1]+="px"),e["margin"]=n[1]+" !important";break;case"BACKCOLOR":e["background-color"]=this.getColor(n.slice(1))+" !important";break;case"TEXTCOLOR":e["color"]=this.getColor(n.slice(1))+" !important";break;case"BORDERCOLOR":e["border-width"]="1px!important",e["border-style"]="solid!important",e["border-color"]=this.getColor(n.slice(1))+" !important";break;case"WIDTH":isNaN(Number(n[1]))||(n[1]+="px"),e["width"]=n[1]+" !important";break;case"HEIGHT":isNaN(Number(n[1]))||(n[1]+="px"),e["height"]=n[1]+" !important";break;case"RAW":e[n[1].toLowerCase()]=n[2]+" !important";break}},verifyNumParams(e,n,t,i=""){let s={line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters};for(var o=1;o<=n;o++)if(void 0===this.parameters[o-1])throw new l.o(s,`Not enough parameters for ${e}.`,i,"https://docs.openc3.com/docs/configuration");if(null!==t&&this.parameters.length>t)throw new l.o(s,`Too many parameters for ${e}.`,i,"https://docs.openc3.com/docs/configuration")},setWidth(e,n="px",t="120"){let l=null;if(l=null!==this.widgetIndex?this.settings.find((e=>parseInt(e[0])===this.widgetIndex&&"WIDTH"===e[1])):this.settings.find((e=>"WIDTH"===e[0])),l)return l["WIDTH"];if(e){let t=["WIDTH",`${e}${n}`];return null!==this.widgetIndex&&t.unshift(this.widgetIndex),this.settings.push(t),parseInt(e)}{let e=["WIDTH",`${t}${n}`];return null!==this.widgetIndex&&e.unshift(this.widgetIndex),this.settings.push(e),parseInt(t)}},setHeight(e,n="px",t="20"){let l=null;if(l=null!==this.widgetIndex?this.settings.find((e=>parseInt(e[0])===this.widgetIndex&&"HEIGHT"===e[1])):this.settings.find((e=>"HEIGHT"===e[0])),l)return l["HEIGHT"];if(e){let t=["HEIGHT",`${e}${n}`];return null!==this.widgetIndex&&t.unshift(this.widgetIndex),this.settings.push(t),parseInt(e)}{let e=["HEIGHT",`${t}${n}`];return null!==this.widgetIndex&&e.unshift(this.widgetIndex),this.settings.push(e),parseInt(t)}},getColor(e){switch(e.length){case 1:return e[0].toLowerCase();case 3:return`rgb(${e[0]},${e[1]},${e[2]})`}}}}},2795:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var l=t(2673);const i=async function(e,n,{data:t,params:i={},headers:s,noAuth:o=!1,noScope:a=!1}={}){if(!o){try{let e=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);e&&OpenC3Auth.setTokens()}catch(r){OpenC3Auth.login()}s["Authorization"]=localStorage.openc3Token}return a||i["scope"]||(i["scope"]=window.openc3Scope),(0,l.A)({method:e,url:n,data:t,params:i,headers:s})},s={Accept:"application/json"},o={...s,"Content-Type":"application/json"},a={get:function(e,{params:n,headers:t=s,noScope:l,noAuth:o}={}){return i("get",e,{params:n,headers:t,noScope:l,noAuth:o})},put:function(e,{data:n,params:t,headers:l=o,noScope:s,noAuth:a}={}){return i("put",e,{data:n,params:t,headers:l,noScope:s,noAuth:a})},post:function(e,{data:n,params:t,headers:l=o,noScope:s,noAuth:a}={}){return i("post",e,{data:n,params:t,headers:l,noScope:s,noAuth:a})},delete:function(e,{params:n,headers:t=s,noScope:l,noAuth:o}={}){return i("delete",e,{params:n,headers:t,noScope:l,noAuth:o})}}},2673:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var l=t(4625),i=t(1649);const s=new i["default"],o=l.A.create({baseURL:location.origin,timeout:6e4,params:{}});o.interceptors.response.use((e=>e),(e=>{if(e.response){var n,t,l,i,o;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.config.headers["Ignore-Errors"]&&e.response.config.headers["Ignore-Errors"].includes(e.response.status.toString()))return Promise.reject(e);let r=`HTTP ${e.response.status} - `;if(null!==(n=e.response)&&void 0!==n&&n.statusText&&(r+=`${e.response.statusText} `),null!==(t=e.response)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&t.data&&(r+=`${e.response.config.data} `),null!==(l=e.response)&&void 0!==l&&null!==(l=l.data)&&void 0!==l&&l.message)r+=`${e.response.data.message}`;else if(null!==(i=e.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&i.exception)r+=`${e.response.data.exception}`;else if(null!==(o=e.response)&&void 0!==o&&null!==(o=o.data)&&void 0!==o&&null!==(o=o.error)&&void 0!==o&&o.message)e.response.data.error.class&&(r+=`${e.response.data.error.class} `),r+=`${e.response.data.error.message}`;else{var a;r+=`${null===(a=e.response)||void 0===a?void 0:a.data}`}throw s.$notify&&s.$notify.serious({title:"Network error",body:r}),e}throw e}));const a=o},2702:(e,n,t)=>{"use strict";t.d(n,{A:()=>i});var l=t(7752);l.D$.staleThreshold=10;class i{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(e,n,t={},i={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((n=>{if(n&&OpenC3Auth.setTokens(),null==this._cable){let e=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=l.Be(e)}return this._cable.subscriptions.create({channel:e,...i},t)}))}recordPing(){this._cable.connection.monitor.recordPing()}}},3069:(e,n,t)=>{"use strict";t.d(n,{R:()=>s,o:()=>i});var l=t(814);t(9375),t(4293);class i{constructor(e,n,t="",l=""){this.keyword=e.keyword,this.parameters=e.parameters,this.filename=e.filename,this.line=e.line,this.lineNumber=e.lineNumber,this.message=n,this.usage=t,this.url=l}}class s{constructor(){(0,l.A)(this,"keyword",null),(0,l.A)(this,"parameters",[]),(0,l.A)(this,"filename",""),(0,l.A)(this,"line",""),(0,l.A)(this,"lineNumber",0),(0,l.A)(this,"url","https://docs.openc3.com/docs/configuration")}verify_num_parameters(e,n,t=""){for(let l=1;l<=e;l++)if(void 0===this.parameters[l-1])throw new i(this,`Not enough parameters for ${this.keyword}.`,t,this.url);if(n&&void 0!==this.parameters[n])throw new i(this,`Too many parameters for ${this.keyword}.`,t,this.url)}remove_quotes(e){if(e.length<2)return e;let n=e.charAt(0);if('"'!==n&&"'"!==n)return e;let t=e.charAt(e.length-1);return n!==t?e:e.substring(1,e.length-1)}scan_string(e,n){if(!n.global)throw"rx must have 'global' flag set";let t=[];return e.replace(n,(function(e){return t.push(e),e})),t}parse_string(e,n,t,l,i){let s=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=n;let o=e.split("\n"),a=o.length;for(let r=0;r<a;r++){this.lineNumber=r+1;let e=o[r].trim();if(0===e.length)continue;if(!0===s){if("#"===e[0])continue;e=e.substring(1,e.length)}let n=e.charAt(e.length-1),a=!1;switch(n){case"+":a=!0;case"\\":let n=e.substring(0,e.length-1).trim();this.line+=n.substring(0,n.length-1),a&&(this.line+="\n"),s=!0;continue;case"&":this.line+=e.substring(0,e.length-1);continue;default:this.line+=e}s=!1;let c=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,u=this.scan_string(this.line,c),d="";if(u.length>0&&(d+=u[0]),0===d.length||"#"===d.charAt(0)?this.keyword=null:this.keyword=d.toUpperCase(),this.parameters=[],null===this.keyword){t&&i(this.keyword,this.parameters,this.line,this.lineNumber),this.line="";continue}let m=u.length;if(m>1)for(let t=1;t<m;t++){let e=u[t];if(e.length>0&&"#"===e.charAt(0))break;l?this.parameters.push(this.remove_quotes(e)):this.parameters.push(e)}i(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}}}},4364:(e,n,t)=>{"use strict";t.d(n,{x:()=>s});var l=t(814),i=(t(7107),t(2482),t(7067),t(4147),t(2682),t(785),t(8357),t(6196),t(821),t(6554),t(8472),t(7404),t(5803),t(3912),t(7010),t(2673));class s{constructor(){(0,l.A)(this,"id",1)}async exec(e,n,t={},l={},s=6e4){try{let e=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);e&&OpenC3Auth.setTokens()}catch(a){OpenC3Auth.login()}this.id=this.id+1;try{t["scope"]=window.openc3Scope;const o=await i.A.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:n,id:this.id,keyword_params:t},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...l},timeout:s});return o.data.result}catch(a){var o=new Error;throw a.response?(o.name=a.response.data.error.data.class,o.message=a.response.data.error.data.message):a.request?(o.name="Request error",o.message="Request error, no response received"):o.name="Unknown error",o}}decode_openc3_type(e){if(null!==e&&"object"===typeof e&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then((e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then((()=>{delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,n){return this.exec("map_target_to_interface",[e,n])}connect_interface(e,...n){return n.length>0?this.exec("connect_interface",[e,...n]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,n,...t){return this.exec("interface_cmd",[e,n,...t])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_all_target_info(){return this.exec("get_all_target_info",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,n,t){return this.exec("get_item",[e,n,t])}get_param(e,n,t){return this.exec("get_param",[e,n,t])}get_parameter(e,n,t){return this.exec("get_parameter",[e,n,t])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_list",[])}get_tlm(e,n){return this.exec("get_tlm",[e,n])}get_telemetry(e,n){return this.exec("get_telemetry",[e,n])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_telemetry",[e])}get_all_tlm_names(e){return this.exec("get_all_tlm_names",[e])}get_all_telemetry_names(e){return this.exec("get_all_telemetry_names",[e])}async get_tlm_packet(e,n,t,l=30){const i=await this.exec("get_tlm_packet",[e,n],{type:t,stale_time:l});if(null!=i)for(var s=i.length,o=null,a=0;a<s;a++)o=this.decode_openc3_type(i[a][1]),null!==o&&(i[a][1]=o);return i}get_packet_derived_items(e,n){return this.exec("get_packet_derived_items",[e,n])}get_tlm_buffer(e,n){return this.exec("get_tlm_buffer",[e,n])}async get_tlm_values(e,n=30,t=null){let l={stale_time:n};null!==t&&(l["cache_timeout"]=t);const i=await this.exec("get_tlm_values",[e],l,{},1e4);for(var s=i[0].length,o=null,a=0;a<s;a++)o=this.decode_openc3_type(i[0][a]),null!==o&&(i[0][a]=o);return i}get_limits(e,n,t){return this.exec("get_limits",[e,n,t])}async tlm(e,n,t,l="CONVERTED"){let i=null;if(void 0===n)i=await this.exec("tlm",[e]);else if(void 0===t){if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n)){var s=new Error;throw s.name="TypeError",s.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,s}i=await this.exec("tlm",[e],{type:n})}else i=await this.exec("tlm",[e,n,t],{type:l});var o=this.decode_openc3_type(i);return null!==o&&(i=o),i}async inject_tlm(e,n,t=null,l="CONVERTED"){data=await this.exec("inject_tlm",[e,n,t],{type:l})}set_tlm(e,n,t,l){return this.exec("set_tlm",[e,n,t],{type:l})}override_tlm(e,n,t,l){return this.exec("override_tlm",[e,n,t],{type:l})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,n,t,l){return this.exec("normalize_tlm",[e,n,t],{type:l})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_commands",[e])}get_all_cmd_names(e){return this.exec("get_all_cmd_names",[e])}get_all_command_names(e){return this.exec("get_all_command_names",[e])}get_cmd(e,n){return this.exec("get_cmd",[e,n])}get_command(e,n){return this.exec("get_command",[e,n])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,n,t,l="CONVERTED"){return this.exec("get_cmd_value",[e,n,t,l])}get_cmd_buffer(e,n){return this.exec("get_cmd_buffer",[e,n])}_cmd(e,n,t,l,i){var s=null;for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&(s=this.encode_openc3_type(l[o]),null!==s&&(l[o]=s));return this.exec(e,[n,t,l],{},i)}get_cmd_hazardous(e,n,t){return void 0===n?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,n,t)}cmd(e,n,t,l={}){return void 0===n?this.exec("cmd",e,{},l):this._cmd("cmd",e,n,t,l)}cmd_no_range_check(e,n,t){return void 0===n?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,n,t)}cmd_raw(e,n,t){return void 0===n?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,n,t)}cmd_raw_no_range_check(e,n,t){return void 0===n?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,n,t)}cmd_no_hazardous_check(e,n,t){return void 0===n?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,n,t)}cmd_no_checks(e,n,t){return void 0===n?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,n,t)}cmd_raw_no_hazardous_check(e,n,t){return void 0===n?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,n,t)}cmd_raw_no_checks(e,n,t){return void 0===n?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,n,t)}build_cmd(e,n,t){return void 0===n?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,t)}build_command(e,n,t){return void 0===n?this.exec("build_command",e):this._cmd("build_command",e,n,t)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,n){return this.exec("send_raw",[e,n])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,n){return this.exec("load_config",[e,n])}save_config(e,n,t){return this.exec("save_config",[e,n,t])}delete_config(e,n){return this.exec("delete_config",[e,n])}enable_limits(e,n,t){return this.exec("enable_limits",[e,n,t])}disable_limits(e,n,t){return this.exec("disable_limits",[e,n,t])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,n){return this.exec("set_setting",[e,n])}save_setting(e,n){return this.exec("save_setting",[e,n])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const n=(new TextEncoder).encode(e),t=await crypto.subtle.digest("SHA-256",n),l=new Uint8Array(t);return Array.from(l).map((e=>e.toString(16).padStart(2,"0"))).join("")}}}},8384:(e,n,t)=>{"use strict";function l(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",n="26bd25aade99d8d2b3bfa0a9854c24e384a7f5c0",t=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",statementMap:{0:{start:{line:1,column:13},end:{line:6,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:5,column:35}},4:{start:{line:1,column:277},end:{line:1,column:418}},5:{start:{line:1,column:351},end:{line:1,column:372}},6:{start:{line:1,column:477},end:{line:1,column:494}},7:{start:{line:1,column:764},end:{line:3,column:74}},8:{start:{line:2,column:12},end:{line:2,column:41}},9:{start:{line:3,column:141},end:{line:3,column:166}},10:{start:{line:3,column:424},end:{line:3,column:966}},11:{start:{line:3,column:861},end:{line:3,column:891}},12:{start:{line:3,column:926},end:{line:3,column:956}},13:{start:{line:3,column:1551},end:{line:3,column:1743}},14:{start:{line:3,column:2117},end:{line:3,column:2139}},15:{start:{line:3,column:2427},end:{line:3,column:2443}},16:{start:{line:3,column:2728},end:{line:3,column:2741}},17:{start:{line:3,column:3374},end:{line:3,column:3698}},18:{start:{line:3,column:3549},end:{line:3,column:3605}},19:{start:{line:3,column:4527},end:{line:3,column:4553}},20:{start:{line:3,column:4745},end:{line:3,column:4761}},21:{start:{line:3,column:4919},end:{line:3,column:4943}},22:{start:{line:3,column:4943},end:{line:3,column:5001}},23:{start:{line:3,column:5178},end:{line:3,column:5206}},24:{start:{line:3,column:5311},end:{line:3,column:5515}},25:{start:{line:3,column:6270},end:{line:3,column:6283}},26:{start:{line:3,column:6448},end:{line:3,column:6464}},27:{start:{line:3,column:6636},end:{line:3,column:6662}},28:{start:{line:3,column:6689},end:{line:3,column:6716}},29:{start:{line:3,column:6748},end:{line:3,column:6776}},30:{start:{line:3,column:6832},end:{line:3,column:6848}},31:{start:{line:3,column:7095},end:{line:3,column:7128}},32:{start:{line:3,column:7155},end:{line:3,column:7182}},33:{start:{line:3,column:7214},end:{line:3,column:7242}},34:{start:{line:3,column:7300},end:{line:3,column:7318}},35:{start:{line:3,column:7475},end:{line:3,column:7498}},36:{start:{line:3,column:7802},end:{line:3,column:7832}},37:{start:{line:3,column:8119},end:{line:3,column:8150}},38:{start:{line:3,column:8374},end:{line:3,column:8412}},39:{start:{line:3,column:8692},end:{line:3,column:8732}},40:{start:{line:3,column:8891},end:{line:3,column:8912}},41:{start:{line:3,column:9304},end:{line:3,column:9337}},42:{start:{line:3,column:9517},end:{line:3,column:9551}},43:{start:{line:3,column:9827},end:{line:3,column:9871}},44:{start:{line:3,column:10091},end:{line:3,column:10113}},45:{start:{line:3,column:10235},end:{line:3,column:10254}},46:{start:{line:4,column:12},end:{line:4,column:35}},47:{start:{line:7,column:22},end:{line:7,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:6,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:257},end:{line:1,column:258}},loc:{start:{line:1,column:276},end:{line:1,column:419}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:334},end:{line:1,column:335}},loc:{start:{line:1,column:350},end:{line:1,column:373}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:461},end:{line:1,column:462}},loc:{start:{line:1,column:476},end:{line:1,column:495}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:744},end:{line:1,column:745}},loc:{start:{line:1,column:763},end:{line:3,column:75}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1011},end:{line:1,column:1012}},loc:{start:{line:1,column:1017},end:{line:3,column:11}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:3,column:125},end:{line:3,column:126}},loc:{start:{line:3,column:140},end:{line:3,column:167}},line:3},7:{name:"(anonymous_7)",decl:{start:{line:3,column:410},end:{line:3,column:411}},loc:{start:{line:3,column:423},end:{line:3,column:967}},line:3},8:{name:"(anonymous_8)",decl:{start:{line:3,column:844},end:{line:3,column:845}},loc:{start:{line:3,column:860},end:{line:3,column:892}},line:3},9:{name:"(anonymous_9)",decl:{start:{line:3,column:909},end:{line:3,column:910}},loc:{start:{line:3,column:925},end:{line:3,column:957}},line:3},10:{name:"(anonymous_10)",decl:{start:{line:3,column:1527},end:{line:3,column:1528}},loc:{start:{line:3,column:1550},end:{line:3,column:1744}},line:3},11:{name:"(anonymous_11)",decl:{start:{line:3,column:2101},end:{line:3,column:2102}},loc:{start:{line:3,column:2116},end:{line:3,column:2140}},line:3},12:{name:"(anonymous_12)",decl:{start:{line:3,column:2411},end:{line:3,column:2412}},loc:{start:{line:3,column:2426},end:{line:3,column:2444}},line:3},13:{name:"(anonymous_13)",decl:{start:{line:3,column:2712},end:{line:3,column:2713}},loc:{start:{line:3,column:2727},end:{line:3,column:2742}},line:3},14:{name:"(anonymous_14)",decl:{start:{line:3,column:3350},end:{line:3,column:3351}},loc:{start:{line:3,column:3373},end:{line:3,column:3699}},line:3},15:{name:"(anonymous_15)",decl:{start:{line:3,column:3532},end:{line:3,column:3533}},loc:{start:{line:3,column:3548},end:{line:3,column:3606}},line:3},16:{name:"(anonymous_16)",decl:{start:{line:3,column:4510},end:{line:3,column:4511}},loc:{start:{line:3,column:4526},end:{line:3,column:4554}},line:3},17:{name:"(anonymous_17)",decl:{start:{line:3,column:4729},end:{line:3,column:4730}},loc:{start:{line:3,column:4744},end:{line:3,column:4762}},line:3},18:{name:"(anonymous_18)",decl:{start:{line:3,column:4902},end:{line:3,column:4903}},loc:{start:{line:3,column:4918},end:{line:3,column:5002}},line:3},19:{name:"(anonymous_19)",decl:{start:{line:3,column:5162},end:{line:3,column:5163}},loc:{start:{line:3,column:5177},end:{line:3,column:5207}},line:3},20:{name:"(anonymous_20)",decl:{start:{line:3,column:5296},end:{line:3,column:5297}},loc:{start:{line:3,column:5310},end:{line:3,column:5516}},line:3},21:{name:"(anonymous_21)",decl:{start:{line:3,column:6254},end:{line:3,column:6255}},loc:{start:{line:3,column:6269},end:{line:3,column:6284}},line:3},22:{name:"(anonymous_22)",decl:{start:{line:3,column:6432},end:{line:3,column:6433}},loc:{start:{line:3,column:6447},end:{line:3,column:6465}},line:3},23:{name:"(anonymous_23)",decl:{start:{line:3,column:6619},end:{line:3,column:6620}},loc:{start:{line:3,column:6635},end:{line:3,column:6663}},line:3},24:{name:"(anonymous_24)",decl:{start:{line:3,column:6672},end:{line:3,column:6673}},loc:{start:{line:3,column:6688},end:{line:3,column:6717}},line:3},25:{name:"(anonymous_25)",decl:{start:{line:3,column:6731},end:{line:3,column:6732}},loc:{start:{line:3,column:6747},end:{line:3,column:6777}},line:3},26:{name:"(anonymous_26)",decl:{start:{line:3,column:6816},end:{line:3,column:6817}},loc:{start:{line:3,column:6831},end:{line:3,column:6849}},line:3},27:{name:"(anonymous_27)",decl:{start:{line:3,column:7078},end:{line:3,column:7079}},loc:{start:{line:3,column:7094},end:{line:3,column:7129}},line:3},28:{name:"(anonymous_28)",decl:{start:{line:3,column:7138},end:{line:3,column:7139}},loc:{start:{line:3,column:7154},end:{line:3,column:7183}},line:3},29:{name:"(anonymous_29)",decl:{start:{line:3,column:7197},end:{line:3,column:7198}},loc:{start:{line:3,column:7213},end:{line:3,column:7243}},line:3},30:{name:"(anonymous_30)",decl:{start:{line:3,column:7284},end:{line:3,column:7285}},loc:{start:{line:3,column:7299},end:{line:3,column:7319}},line:3},31:{name:"(anonymous_31)",decl:{start:{line:3,column:7459},end:{line:3,column:7460}},loc:{start:{line:3,column:7474},end:{line:3,column:7499}},line:3},32:{name:"(anonymous_32)",decl:{start:{line:3,column:7786},end:{line:3,column:7787}},loc:{start:{line:3,column:7801},end:{line:3,column:7833}},line:3},33:{name:"(anonymous_33)",decl:{start:{line:3,column:8103},end:{line:3,column:8104}},loc:{start:{line:3,column:8118},end:{line:3,column:8151}},line:3},34:{name:"(anonymous_34)",decl:{start:{line:3,column:8358},end:{line:3,column:8359}},loc:{start:{line:3,column:8373},end:{line:3,column:8413}},line:3},35:{name:"(anonymous_35)",decl:{start:{line:3,column:8676},end:{line:3,column:8677}},loc:{start:{line:3,column:8691},end:{line:3,column:8733}},line:3},36:{name:"(anonymous_36)",decl:{start:{line:3,column:8875},end:{line:3,column:8876}},loc:{start:{line:3,column:8890},end:{line:3,column:8913}},line:3},37:{name:"(anonymous_37)",decl:{start:{line:3,column:9288},end:{line:3,column:9289}},loc:{start:{line:3,column:9303},end:{line:3,column:9338}},line:3},38:{name:"(anonymous_38)",decl:{start:{line:3,column:9501},end:{line:3,column:9502}},loc:{start:{line:3,column:9516},end:{line:3,column:9552}},line:3},39:{name:"(anonymous_39)",decl:{start:{line:3,column:9811},end:{line:3,column:9812}},loc:{start:{line:3,column:9826},end:{line:3,column:9872}},line:3},40:{name:"(anonymous_40)",decl:{start:{line:3,column:10075},end:{line:3,column:10076}},loc:{start:{line:3,column:10090},end:{line:3,column:10114}},line:3},41:{name:"(anonymous_41)",decl:{start:{line:3,column:10219},end:{line:3,column:10220}},loc:{start:{line:3,column:10234},end:{line:3,column:10255}},line:3},42:{name:"(anonymous_42)",decl:{start:{line:3,column:10464},end:{line:3,column:10465}},loc:{start:{line:3,column:10470},end:{line:5,column:11}},line:3}},branchMap:{0:{loc:{start:{line:3,column:1030},end:{line:3,column:1188}},type:"cond-expr",locations:[{start:{line:3,column:1048},end:{line:3,column:1179}},{start:{line:3,column:1180},end:{line:3,column:1188}}],line:3},1:{loc:{start:{line:3,column:1304},end:{line:3,column:1438}},type:"cond-expr",locations:[{start:{line:3,column:1325},end:{line:3,column:1429}},{start:{line:3,column:1430},end:{line:3,column:1438}}],line:3},2:{loc:{start:{line:3,column:2777},end:{line:3,column:2996}},type:"cond-expr",locations:[{start:{line:3,column:2809},end:{line:3,column:2915}},{start:{line:3,column:2916},end:{line:3,column:2996}}],line:3},3:{loc:{start:{line:3,column:3036},end:{line:3,column:4391}},type:"cond-expr",locations:[{start:{line:3,column:3070},end:{line:3,column:3786}},{start:{line:3,column:3787},end:{line:3,column:4391}}],line:3},4:{loc:{start:{line:3,column:5666},end:{line:3,column:6323}},type:"cond-expr",locations:[{start:{line:3,column:5682},end:{line:3,column:6314}},{start:{line:3,column:6315},end:{line:3,column:6323}}],line:3},5:{loc:{start:{line:3,column:6511},end:{line:3,column:6883}},type:"cond-expr",locations:[{start:{line:3,column:6526},end:{line:3,column:6874}},{start:{line:3,column:6875},end:{line:3,column:6883}}],line:3},6:{loc:{start:{line:3,column:6896},end:{line:3,column:7355}},type:"cond-expr",locations:[{start:{line:3,column:6913},end:{line:3,column:7346}},{start:{line:3,column:7347},end:{line:3,column:7355}}],line:3},7:{loc:{start:{line:3,column:7368},end:{line:3,column:7540}},type:"cond-expr",locations:[{start:{line:3,column:7390},end:{line:3,column:7531}},{start:{line:3,column:7532},end:{line:3,column:7540}}],line:3},8:{loc:{start:{line:3,column:7553},end:{line:3,column:7867}},type:"cond-expr",locations:[{start:{line:3,column:7568},end:{line:3,column:7858}},{start:{line:3,column:7859},end:{line:3,column:7867}}],line:3},9:{loc:{start:{line:3,column:7880},end:{line:3,column:8186}},type:"cond-expr",locations:[{start:{line:3,column:7896},end:{line:3,column:8177}},{start:{line:3,column:8178},end:{line:3,column:8186}}],line:3},10:{loc:{start:{line:3,column:8199},end:{line:3,column:8455}},type:"cond-expr",locations:[{start:{line:3,column:8222},end:{line:3,column:8446}},{start:{line:3,column:8447},end:{line:3,column:8455}}],line:3},11:{loc:{start:{line:3,column:8468},end:{line:3,column:8777}},type:"cond-expr",locations:[{start:{line:3,column:8493},end:{line:3,column:8768}},{start:{line:3,column:8769},end:{line:3,column:8777}}],line:3},12:{loc:{start:{line:3,column:8790},end:{line:3,column:8952}},type:"cond-expr",locations:[{start:{line:3,column:8810},end:{line:3,column:8943}},{start:{line:3,column:8944},end:{line:3,column:8952}}],line:3},13:{loc:{start:{line:3,column:8965},end:{line:3,column:9375}},type:"cond-expr",locations:[{start:{line:3,column:8983},end:{line:3,column:9366}},{start:{line:3,column:9367},end:{line:3,column:9375}}],line:3},14:{loc:{start:{line:3,column:9388},end:{line:3,column:9590}},type:"cond-expr",locations:[{start:{line:3,column:9407},end:{line:3,column:9581}},{start:{line:3,column:9582},end:{line:3,column:9590}}],line:3},15:{loc:{start:{line:3,column:9603},end:{line:3,column:9920}},type:"cond-expr",locations:[{start:{line:3,column:9632},end:{line:3,column:9911}},{start:{line:3,column:9912},end:{line:3,column:9920}}],line:3},16:{loc:{start:{line:3,column:10330},end:{line:5,column:23}},type:"cond-expr",locations:[{start:{line:3,column:10348},end:{line:5,column:14}},{start:{line:5,column:15},end:{line:5,column:23}}],line:3}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"26bd25aade99d8d2b3bfa0a9854c24e384a7f5c0"},o=t[i]||(t[i]={});o[e]&&o[e].hash===n||(o[e]=s);var a=o[e];return l=function(){return a},a}t.r(n),t.d(n,{default:()=>$l}),l(),l().s[0]++;var i=function(){l().f[0]++;var e=(l().s[1]++,this),n=(l().s[2]++,e._self._c);return l().s[3]++,n("div",[n("top-bar",{attrs:{menus:e.menus,title:e.title}}),e._v(" "),n("v-snackbar",{attrs:{top:"",color:e.alertType,timeout:3e3},scopedSlots:e._u([{key:"action",fn:function({attrs:t}){return l().f[1]++,l().s[4]++,[n("v-btn",e._b({attrs:{text:""},on:{click:function(n){l().f[2]++,l().s[5]++,e.showAlert=!1}}},"v-btn",t,!1),[e._v(" Close ")])]}}]),model:{value:e.showAlert,callback:function(n){l().f[3]++,l().s[6]++,e.showAlert=n},expression:"showAlert"}},[n("v-icon",[e._v(" mdi-"+e._s(e.alertType)+" ")]),e._v("\n "+e._s(e.alertText)+"\n ")],1),e._v(" "),n("v-snackbar",{attrs:{top:"",timeout:-1,color:"orange"},scopedSlots:e._u([{key:"action",fn:function({attrs:t}){return l().f[4]++,l().s[7]++,[n("v-btn",e._b({attrs:{text:"",color:"danger","data-test":"unlock-button"},on:{click:e.confirmLocalUnlock}},"v-btn",t,!1),[e._v("\n Unlock\n ")]),e._v(" "),n("v-btn",e._b({attrs:{text:""},on:{click:()=>{l().f[5]++,l().s[8]++,e.showReadOnlyToast=!1}}},"v-btn",t,!1),[e._v("\n dismiss\n ")])]}}]),model:{value:e.showReadOnlyToast,callback:function(n){l().f[6]++,l().s[9]++,e.showReadOnlyToast=n},expression:"showReadOnlyToast"}},[n("v-icon",[e._v(" mdi-pencil-off ")]),e._v("\n "+e._s(e.lockedBy)+" is editing this script. Editor is in read-only mode\n ")],1),e._v(" "),n("div",{staticClass:"grid"},e._l(e.screens,(function(t){return l().f[7]++,l().s[10]++,n("div",{key:t.id,ref:"gridItem",refInFor:!0,staticClass:"item",attrs:{id:e.screenId(t.id)}},[n("div",{staticClass:"item-content"},[n("openc3-screen",{attrs:{target:t.target,screen:t.screen,definition:t.definition,keywords:e.screenKeywords,initialFloated:!0,initialTop:t.top,initialLeft:t.left,initialZ:3,minZ:3,fixFloated:!0,count:t.count},on:{"close-screen":function(n){return l().f[8]++,l().s[11]++,e.closeScreen(t.id)},"delete-screen":function(n){return l().f[9]++,l().s[12]++,e.closeScreen(t.id)}}})],1)])})),0),e._v(" "),n("v-card",{staticStyle:{padding:"10px"}},[e.suiteRunner?(l().b[0][0]++,n("suite-runner",{attrs:{"suite-map":e.suiteMap,"disable-buttons":e.disableSuiteButtons},on:{button:e.suiteRunnerButton}})):(l().b[0][1]++,e._e()),e._v(" "),n("div",{attrs:{id:"sr-controls"}},[n("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[e.showDisconnect?(l().b[1][0]++,n("v-icon",{staticClass:"mr-2",attrs:{color:"red"}},[e._v("\n mdi-connection\n ")])):(l().b[1][1]++,e._e()),e._v(" "),n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:i}){return l().f[10]++,l().s[13]++,[n("v-btn",e._g(e._b({attrs:{icon:"",disabled:e.filename===e.NEW_FILENAME},on:{click:e.reloadFile}},"v-btn",i,!1),t),[n("v-icon",[e._v("mdi-cached")])],1)]}}])},[e._v(" "),n("span",[e._v(" Reload File ")])]),e._v(" "),n("v-select",{staticStyle:{width:"300px"},attrs:{items:e.fileList,disabled:e.fileList.length<=1,label:"Filename",id:"filename","data-test":"filename",dense:"",outlined:"","hide-details":""},on:{change:e.fileNameChanged},model:{value:e.filenameSelect,callback:function(n){l().f[11]++,l().s[14]++,e.filenameSelect=n},expression:"filenameSelect"}}),e._v(" "),n("v-text-field",{staticClass:"shrink ml-2 script-state",staticStyle:{width:"100px"},attrs:{label:"Script ID","data-test":"id",dense:"",outlined:"",readonly:"","hide-details":""},model:{value:e.scriptId,callback:function(n){l().f[12]++,l().s[15]++,e.scriptId=n},expression:"scriptId"}}),e._v(" "),n("v-text-field",{staticClass:"shrink ml-2 script-state",staticStyle:{width:"120px"},attrs:{label:"Script State","data-test":"state",dense:"",outlined:"",readonly:"","hide-details":""},model:{value:e.state,callback:function(n){l().f[13]++,l().s[16]++,e.state=n},expression:"state"}}),e._v(" "),"Connecting..."===e.state?(l().b[2][0]++,n("v-progress-circular",{staticClass:"ml-2 mr-2",attrs:{size:40,indeterminate:"",color:"primary"}})):(l().b[2][1]++,n("div",{staticClass:"ml-2 mr-2",staticStyle:{width:"40px",height:"40px"}})),e._v(" "),n("v-spacer"),e._v(" "),"Start"===e.startOrGoButton?(l().b[3][0]++,n("div",[n("v-btn",{staticClass:"mx-1",attrs:{color:"primary","data-test":"start-button",disabled:e.startOrGoDisabled},on:{click:e.startHandler}},[n("span",[e._v(" Start ")])]),e._v(" "),n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:i}){return l().f[14]++,l().s[17]++,[n("v-btn",e._g(e._b({staticClass:"mx-1",attrs:{"data-test":"env-button",color:e.environmentIconColor,disabled:e.envDisabled},on:{click:function(n){l().f[15]++,l().s[18]++,e.scriptEnvironment.show=!e.scriptEnvironment.show}}},"v-btn",i,!1),t),[n("v-icon",[e._v(" "+e._s(e.environmentIcon)+" ")])],1)]}}],null,!1,3991735395)},[e._v(" "),n("span",[e._v("Script Environment")])])],1)):(l().b[3][1]++,n("div",[n("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:e.startOrGoDisabled,"data-test":"go-button"},on:{click:e.go}},[e._v("\n Go\n ")]),e._v(" "),n("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:e.pauseOrRetryDisabled,"data-test":"pause-retry-button"},on:{click:e.pauseOrRetry}},[e._v("\n "+e._s(e.pauseOrRetryButton)+"\n ")]),e._v(" "),n("v-btn",{attrs:{color:"primary","data-test":"stop-button",disabled:e.stopDisabled},on:{click:e.stop}},[e._v("\n Stop\n ")])],1))],1)],1)],1),e._v(" "),n("multipane",{staticClass:"horizontal-panes",attrs:{layout:"horizontal"},on:{paneResize:function(n){return l().f[16]++,l().s[19]++,e.editor.resize()}}},[n("div",{staticClass:"editorbox pane"},[n("v-snackbar",{staticClass:"saving",attrs:{absolute:"",top:"",right:"",timeout:-1},model:{value:e.showSave,callback:function(n){l().f[17]++,l().s[20]++,e.showSave=n},expression:"showSave"}},[e._v("\n Saving...\n ")]),e._v(" "),n("pre",{ref:"editor",staticClass:"editor",on:{contextmenu:function(n){return l().f[18]++,l().s[21]++,n.preventDefault(),l().s[22]++,e.showExecuteSelectionMenu.apply(null,arguments)}}}),e._v(" "),n("v-menu",{attrs:{"position-x":e.menuX,"position-y":e.menuY,absolute:"","offset-y":""},model:{value:e.executeSelectionMenu,callback:function(n){l().f[19]++,l().s[23]++,e.executeSelectionMenu=n},expression:"executeSelectionMenu"}},[n("v-list",e._l(e.executeSelectionMenuItems,(function(t){return l().f[20]++,l().s[24]++,n("v-list-item",{key:t.label,attrs:{link:"",disabled:e.scriptId}},[n("v-list-item-title",{on:{click:t.command}},[e._v("\n "+e._s(t.label)+"\n ")])],1)})),1)],1)],1),e._v(" "),n("multipane-resizer",[n("hr")]),e._v(" "),n("div",{ref:"messagesDiv",staticClass:"mt-2 pane",attrs:{id:"messages"}},[e.showDebug?(l().b[4][0]++,n("div",{staticClass:"pa-0",attrs:{id:"debug"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-btn",{staticClass:"mr-4",staticStyle:{width:"100px"},attrs:{color:"primary",disabled:!e.scriptId,"data-test":"step-button"},on:{click:e.step}},[e._v("\n Step\n "),n("v-icon",{attrs:{right:""}},[e._v(" mdi-step-forward ")])],1),e._v(" "),n("v-text-field",{staticClass:"mb-2",attrs:{outlined:"",dense:"","hide-details":"",label:"Debug","data-test":"debug-text"},on:{keydown:e.debugKeydown},model:{value:e.debug,callback:function(n){l().f[21]++,l().s[25]++,e.debug=n},expression:"debug"}})],1)],1)):(l().b[4][1]++,e._e()),e._v(" "),n("script-log-messages",{on:{sort:e.messageSortOrder},model:{value:e.messages,callback:function(n){l().f[22]++,l().s[26]++,e.messages=n},expression:"messages"}})],1)],1),e._v(" "),e.fileOpen?(l().b[5][0]++,n("file-open-save-dialog",{attrs:{type:"open","api-url":"/script-api/scripts"},on:{file:function(n){return l().f[23]++,l().s[27]++,e.setFile(n)},error:function(n){return l().f[24]++,l().s[28]++,e.setError(n)},"clear-temp":function(n){return l().f[25]++,l().s[29]++,e.clearTemp(n)}},model:{value:e.fileOpen,callback:function(n){l().f[26]++,l().s[30]++,e.fileOpen=n},expression:"fileOpen"}})):(l().b[5][1]++,e._e()),e._v(" "),e.showSaveAs?(l().b[6][0]++,n("file-open-save-dialog",{attrs:{type:"save","api-url":"/script-api/scripts","require-target-parent-dir":"","input-filename":e.filenameOrBlank},on:{filename:function(n){return l().f[27]++,l().s[31]++,e.saveAsFilename(n)},error:function(n){return l().f[28]++,l().s[32]++,e.setError(n)},"clear-temp":function(n){return l().f[29]++,l().s[33]++,e.clearTemp(n)}},model:{value:e.showSaveAs,callback:function(n){l().f[30]++,l().s[34]++,e.showSaveAs=n},expression:"showSaveAs"}})):(l().b[6][1]++,e._e()),e._v(" "),e.showEnvironment?(l().b[7][0]++,n("environment-dialog",{model:{value:e.showEnvironment,callback:function(n){l().f[31]++,l().s[35]++,e.showEnvironment=n},expression:"showEnvironment"}})):(l().b[7][1]++,e._e()),e._v(" "),e.ask.show?(l().b[8][0]++,n("ask-dialog",{attrs:{question:e.ask.question,default:e.ask.default,password:e.ask.password,"answer-required":e.ask.answerRequired},on:{response:e.ask.callback},model:{value:e.ask.show,callback:function(n){l().f[32]++,l().s[36]++,e.$set(e.ask,"show",n)},expression:"ask.show"}})):(l().b[8][1]++,e._e()),e._v(" "),e.file.show?(l().b[9][0]++,n("file-dialog",{attrs:{title:e.file.title,message:e.file.message,multiple:e.file.multiple,filter:e.file.filter},on:{response:e.fileDialogCallback},model:{value:e.file.show,callback:function(n){l().f[33]++,l().s[37]++,e.$set(e.file,"show",n)},expression:"file.show"}})):(l().b[9][1]++,e._e()),e._v(" "),e.information.show?(l().b[10][0]++,n("information-dialog",{attrs:{title:e.information.title,text:e.information.text},model:{value:e.information.show,callback:function(n){l().f[34]++,l().s[38]++,e.$set(e.information,"show",n)},expression:"information.show"}})):(l().b[10][1]++,e._e()),e._v(" "),e.inputMetadata.show?(l().b[11][0]++,n("event-list-dialog",{attrs:{events:e.inputMetadata.events,utc:!1,"new-metadata":""},on:{close:e.inputMetadata.callback},model:{value:e.inputMetadata.show,callback:function(n){l().f[35]++,l().s[39]++,e.$set(e.inputMetadata,"show",n)},expression:"inputMetadata.show"}})):(l().b[11][1]++,e._e()),e._v(" "),e.showOverrides?(l().b[12][0]++,n("overrides-dialog",{model:{value:e.showOverrides,callback:function(n){l().f[36]++,l().s[40]++,e.showOverrides=n},expression:"showOverrides"}})):(l().b[12][1]++,e._e()),e._v(" "),e.prompt.show?(l().b[13][0]++,n("prompt-dialog",{attrs:{title:e.prompt.title,subtitle:e.prompt.subtitle,message:e.prompt.message,details:e.prompt.details,buttons:e.prompt.buttons,layout:e.prompt.layout,multiple:e.prompt.multiple},on:{response:e.prompt.callback},model:{value:e.prompt.show,callback:function(n){l().f[37]++,l().s[41]++,e.$set(e.prompt,"show",n)},expression:"prompt.show"}})):(l().b[13][1]++,e._e()),e._v(" "),e.results.show?(l().b[14][0]++,n("results-dialog",{attrs:{text:e.results.text},model:{value:e.results.show,callback:function(n){l().f[38]++,l().s[42]++,e.$set(e.results,"show",n)},expression:"results.show"}})):(l().b[14][1]++,e._e()),e._v(" "),e.scriptEnvironment.show?(l().b[15][0]++,n("script-environment-dialog",{attrs:{"input-environment":e.scriptEnvironment.env},on:{environment:e.environmentHandler},model:{value:e.scriptEnvironment.show,callback:function(n){l().f[39]++,l().s[43]++,e.$set(e.scriptEnvironment,"show",n)},expression:"scriptEnvironment.show"}})):(l().b[15][1]++,e._e()),e._v(" "),n("simple-text-dialog",{attrs:{title:"Suite Analysis Error",text:e.suiteError,width:1e3},model:{value:e.showSuiteError,callback:function(n){l().f[40]++,l().s[44]++,e.showSuiteError=n},expression:"showSuiteError"}}),e._v(" "),n("v-bottom-sheet",{model:{value:e.showScripts,callback:function(n){l().f[41]++,l().s[45]++,e.showScripts=n},expression:"showScripts"}},[n("v-sheet",{staticClass:"pb-11 pt-5 px-5"},[e.showScripts?(l().b[16][0]++,n("running-scripts",{attrs:{"connect-in-new-tab":!!e.fileModified},on:{disconnect:e.scriptDisconnect,close:()=>{l().f[42]++,l().s[46]++,e.showScripts=!1}}})):(l().b[16][1]++,e._e())],1)],1)],1)},s=(l().s[47]++,[]),o=(t(9375),t(7534),t(4293),t(5100),t(7162),t(6403),t(4154),t(4777),t(8846),t(2896),t(7010),t(3165),t(4541),t(4397),t(1412),t(1883),t(7905),t(4625)),a=t(2702),r=t(2795),c=t(1841),u=(t(2739),t(2281),t(5617),t(6717),t(9946),t(3769)),d=t(3898),m=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600",scrollable:""},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.success()}},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-overlay",{attrs:{value:e.loading}},[n("v-progress-circular",{attrs:{indeterminate:"",absolute:"",size:"64"}})],1),e._v(" "),n("form",{on:{submit:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v(" "+e._s(e.title)+" ")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{attrs:{flat:"",autofocus:"","solo-inverted":"","hide-details":"",clearable:"",label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","data-test":"file-open-save-search"},on:{input:e.handleSearch},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),e._v(" "),n("v-row",{staticClass:"mt-2",attrs:{dense:""}},[n("v-treeview",{ref:"tree",staticStyle:{width:"100%","max-height":"60vh",overflow:"auto"},attrs:{dense:"",activatable:"","return-object":"",items:e.items,search:e.search,"open-on-click":"open"===e.type},on:{"update:active":e.activeFile},scopedSlots:e._u([{key:"prepend",fn:function({item:t,open:l}){return[t.file?n("v-icon",[e._v(" "+e._s(e.calcIcon(t.name))+" ")]):n("v-icon",[e._v("\n "+e._s(l?"mdi-folder-open":"mdi-folder")+"\n ")])]}},{key:"append",fn:function({item:t}){return["__TEMP__"===t.name?n("v-btn",{attrs:{icon:""},on:{click:e.deleteTemp}},[n("v-icon",[e._v(" mdi-delete ")])],1):e._e()]}}]),model:{value:e.tree,callback:function(n){e.tree=n},expression:"tree"}})],1),e._v(" "),n("v-row",{staticClass:"my-2"},[n("v-text-field",{attrs:{"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:"open"===e.type},model:{value:e.selectedFile,callback:function(n){e.selectedFile=n},expression:"selectedFile"}})],1),e._v(" "),n("v-row",{attrs:{dense:""}},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"my-2 red--text",domProps:{textContent:e._s(e.error)}})]),e._v(" "),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"file-open-save-cancel-btn",disabled:e.disableButtons},on:{click:function(n){e.show=!1}}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"file-open-save-submit-btn",disabled:e.disableButtons||!!e.error},on:{click:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[e._v("\n "+e._s(e.submit)+"\n ")])],1)],1)])],1)],1)],1)},A=[];const p=function(e){if(e&&e.includes(".")){let n=e.split(".").pop();if("py"===n)return"mdi-language-python";if("rb"===n)return"mdi-language-ruby";if("js"===n)return"mdi-language-javascript";if("csv"===n)return"mdi-file-delimited";if("txt"===n)return"mdi-file-document";if("png"===n||"gif"===n||"jpg"===n)return"mdi-file-image"}return"mdi-file"},h={props:{type:{type:String,required:!0,validator:function(e){return-1!==["open","save"].indexOf(e)}},apiUrl:String,requireTargetParentDir:Boolean,inputFilename:String,value:Boolean},data(){return{tree:[],items:[],id:1,search:null,selectedFile:null,disableButtons:!1,targets:[],loading:!0}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}},title:function(){return"open"===this.type?"File Open":"File Save As..."},submit:function(){return"open"===this.type?"OPEN":"SAVE"},error:function(){if(""===this.selectedFile||null===this.selectedFile)return"No file selected must select a file";if(!this.selectedFile.match(this.validFilenameRegex)||this.selectedFile.match(/\.\.|\/\/|\.\/|\/\./)){let e=`${this.selectedFile} is not a valid filename. Must `;return this.requireTargetParentDir&&(e+="be in a target directory and "),e+="only contain alphanumeric characters and / ! - _ . * ' ( )",e}if("save"===this.type&&this.selectedFile.match(/\*$/)){let e=`${this.selectedFile} is not a valid filename. Must not end in '*'.`;return e}return null},validFilenameRegex:function(){const e="0-9a-zA-Z",n=`${e}\\/\\!\\-\\_\\.\\*\\'\\(\\)`;let t=`[${n}]+\\.[${e}]+`;if(this.requireTargetParentDir){const e=`(${this.targets.join("|")})`;t=`\\/?${e}\\/${t}`}return new RegExp(t)}},created(){this.loadFiles(),this.requireTargetParentDir&&r.A.get("/openc3-api/targets").then((e=>{this.targets=e.data,this.targets.push("__TEMP__")}))},methods:{calcIcon:function(e){return p(e)},loadFiles:function(){r.A.get(this.apiUrl).then((e=>{this.items=[],this.id=1;for(let n of e.data)this.filepath=n,this.insertFile(this.items,1,n),this.id++;this.inputFilename&&(this.selectedFile=this.inputFilename),this.loading=!1})).catch((e=>{this.$emit("error",`Failed to connect to OpenC3. ${e}`)}))},clear:function(){this.show=!1,this.overwrite=!1,this.disableButtons=!1},handleSearch:function(e){e?this.$refs.tree.updateAll(!0):this.$refs.tree.updateAll(!1)},activeFile:function(e){0===e.length?this.selectedFile=null:this.selectedFile=e[0].path},exists:function(e,n){let t=!1;for(let l of e){if(l.path===n)return!0;if(l.path.length>1&&"*"===l.path[l.path.length-1]&&l.path.slice(0,l.path.length-1)===n)return!0;l.children&&(t=t||this.exists(l.children,n))}return t},success:function(){null!==this.selectedFile&&null===this.error&&("open"===this.type?this.openSuccess():this.saveSuccess())},deleteTemp:function(){this.$dialog.confirm("Are you sure you want to delete all the temporary files?",{okText:"Delete",cancelText:"Cancel"}).then((e=>r.A.delete("/script-api/scripts/temp_files"))).then((e=>{this.$emit("clear-temp"),this.loadFiles()})).catch((e=>{this.$notify.serious({title:"Error",body:`Failed to remove script temporary files due to ${e}`})}))},openSuccess:function(){this.disableButtons=!0,r.A.get(`${this.apiUrl}/${this.selectedFile}`).then((e=>{const n={name:this.selectedFile,contents:e.data.contents};e.data.suites&&(n["suites"]=JSON.parse(e.data.suites)),e.data.error&&(n["error"]=e.data.error),e.data.success&&(n["success"]=e.data.success);const t=e.data.locked,l=e.data.breakpoints;this.$emit("file",{file:n,locked:t,breakpoints:l}),this.clear()})).catch((e=>{this.$emit("error",`Failed to open ${this.selectedFile}. ${e}`),this.clear()}))},saveSuccess:function(){const e=this.exists(this.items,this.selectedFile);e?this.$dialog.confirm(`Are you sure you want to overwrite: ${this.selectedFile}`,{okText:"Overwrite",cancelText:"Cancel"}).then((e=>{this.$emit("filename",this.selectedFile),this.clear()})).catch((e=>{})):(this.$emit("filename",this.selectedFile),this.clear())},insertFile:function(e,n,t){var l=t.split("/");if(1===l.length)return e.push({id:this.id,name:l[0],file:"ruby",path:this.filepath}),void this.id++;const i=e.findIndex((e=>e.name===l[0]));-1===i?(e.push({id:this.id,name:l[0],children:[],path:this.filepath.split("/").slice(0,n).join("/")}),this.id++,this.insertFile(e[e.length-1].children,n+1,l.slice(1).join("/"))):this.insertFile(e[i].children,n+1,l.slice(1).join("/"))}}},v=h;var f=t(2401),g=(0,f.A)(v,m,A,!1,null,null,null);const C=g.exports;var b=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.addEnvironment.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Global Environment Variables")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{staticClass:"mb-2",attrs:{dense:""}},[n("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","clear-icon":"mdi-close-circle-outline",clearable:"",autofocus:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),e._v(" "),n("v-data-table",{attrs:{"item-key":"name","hide-default-header":"","data-test":"env-table",search:e.search,headers:e.headers,items:e.environment,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:e._u([{key:"item.actions",fn:function({item:t}){return[n("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(n){return e.deleteEnvironment(t)}}},[n("v-icon",[e._v("mdi-delete")])],1)]}}])}),e._v(" "),n("v-row",{attrs:{dense:""}},[n("v-col",[n("v-text-field",{attrs:{label:"Key","data-test":"env-key"},model:{value:e.key,callback:function(n){e.key=n},expression:"key"}})],1),e._v(" "),n("v-col",[n("v-text-field",{attrs:{label:"Value","data-test":"env-value"},model:{value:e.keyValue,callback:function(n){e.keyValue=n},expression:"keyValue"}})],1)],1),e._v(" "),n("v-row",{attrs:{dense:""}},[n("v-btn",{attrs:{block:"",type:"submit",color:"primary","data-test":"add-env",disabled:!e.key||!e.keyValue},on:{click:function(n){return n.preventDefault(),e.addEnvironment.apply(null,arguments)}}},[e._v("\n Add\n ")])],1)],1)])],1)])],1)},_=[];const y={props:{value:Boolean},data(){return{alert:"",alertType:"success",showAlert:!1,search:"",key:"",keyValue:"",environment:[],headers:[{text:"Key",value:"key"},{text:"Value",value:"value"},{text:"Actions",value:"actions",align:"end",sortable:!1}]}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}}},mounted(){this.update()},methods:{alertHandler:function(e){this.alert=e.text,this.alertType=e.type,this.showAlert=!0},update:function(){r.A.get("/openc3-api/environment").then((e=>{this.environment=e.data})).catch((e=>{}))},addEnvironment:function(){r.A.post("/openc3-api/environment",{data:{key:this.key.toUpperCase(),value:this.keyValue}}).then((e=>{e.data.name;this.update()})).catch((e=>{const n={text:`Failed to add environment variable: ${e}`,type:"error"};this.alertHandler(n)})),this.key="",this.keyValue=""},deleteEnvironment:function(e){this.$dialog.confirm(`Are you sure you want to delete: ${e.key}=${e.value}`,{okText:"Delete",cancelText:"Cancel"}).then((n=>r.A.delete(`/openc3-api/environment/${e.name}`))).then((n=>{const t={text:`Removed environment variable: ${e.name}`,type:"success"};this.alertHandler(t),this.update()})).catch((e=>{const n={text:`Failed to delete environment: ${e}`,type:"error"};this.alertHandler(n)}))}}},w=y;var x=(0,f.A)(w,b,_,!1,null,null,null);const k=x.exports;var S=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:e.width},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v(" "+e._s(e.title)+" ")]),e._v(" "),n("v-spacer"),e._v(" "),n("div",{staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"downloadIcon"},on:{click:e.download}},[e._v("\n mdi-download\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Download ")])])],1)],1),e._v(" "),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("span",{staticStyle:{"white-space":"pre-wrap"}},[e._v(e._s(e.text))])])]),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(n){e.show=!e.show}}},[e._v(" Ok ")])],1)],1)],1)},M=[];const E={props:{value:Boolean,text:String,title:String,width:800},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}}},methods:{download:function(){const e=new Blob([this.text],{type:"text/plain"}),n=document.createElement("a");n.href=URL.createObjectURL(e),n.setAttribute("download",`${this.title}.txt`),n.click()}}},T=E;var R=(0,f.A)(T,S,M,!1,null,null,null);const I=R.exports;var D=function(){var e=this,n=e._self._c;return n("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{"align-self":"end"}},[n("span",{staticClass:"app-title mr-2"},[e._v(e._s(e.title))])])],1),e._v(" "),n("v-row",{staticClass:"flex-nowrap",attrs:{dense:""}},e._l(e.menus,(function(t,l){return n("v-menu",{key:l,ref:"topmenu",refInFor:!0,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:l,attrs:i}){return[n("v-btn",e._g(e._b({staticClass:"mx-1 menu-button",attrs:{outlined:"","data-test":e.formatDT(`${e.title} ${t.label}`)}},"v-btn",i,!1),l),[n("span",{domProps:{textContent:e._s(t.label)}}),e._v(" "),n("v-icon",{staticClass:"myicon",attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[e._v(" "),n("v-list",[n("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:t.radioGroup,"hide-details":"",dense:""}},[e._l(t.items,(function(l,i){return[l.divider?n("v-divider",{key:i}):l.subMenu&&l.subMenu.length>0?n("div",{key:i},[n("v-menu",{key:e.k,attrs:{"open-on-hover":"","offset-x":"",bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:s}){return[n("v-list-item",e._g(e._b({key:i,attrs:{disabled:l.disabled}},"v-list-item",s,!1),t),[l.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:l.disabled}},[e._v(e._s(l.icon))])],1):e._e(),e._v(" "),l.radio||l.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(l.disabled?"opacity: 0.2":"")},[e._v(e._s(l.label)+"\n ")]),e._v(" "),n("v-icon",[e._v(" mdi-chevron-right ")])],1)]}}],null,!0)},[e._v(" "),n("v-list",e._l(l.subMenu,(function(t,l){return n("v-list-item",{key:l,on:{click:function(n){return e.subMenuClick(t)}}},[t.icon?n("v-list-item-icon",[n("v-icon",[e._v(e._s(t.icon))])],1):e._e(),e._v(" "),n("v-list-item-title",[e._v(e._s(t.label))])],1)})),1)],1)],1):n("v-list-item",{key:i,attrs:{disabled:l.disabled,"data-test":e.formatDT(`${e.title} ${t.label} ${l.label}`)},on:{click:function(e){return l.command(l)}}},[l.radio?n("v-list-item-action",[n("v-radio",{attrs:{color:"secondary",label:l.label,value:l.label}})],1):e._e(),e._v(" "),l.checkbox?n("v-list-item-action",[n("v-checkbox",{attrs:{color:"secondary",label:l.label},model:{value:l.checked,callback:function(n){e.$set(l,"checked",n)},expression:"option.checked"}})],1):e._e(),e._v(" "),l.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:l.disabled}},[e._v(e._s(l.icon))])],1):e._e(),e._v(" "),l.radio||l.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(l.disabled?"opacity: 0.2":"")},[e._v(e._s(l.label))])],1)]}))],2)],1)],1)})),1)],1)},$=[];t(8715);const O={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()},subMenuClick(e){e.command(e),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},N=O;t(1e3);var L=(0,f.A)(N,D,$,!1,null,"57d4fdd2",null);const F=L.exports;var P=t(4364);function H(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",n="1604238f3c57062f86c44bd7fd40b6b8fd614aad",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1421}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:260},end:{line:1,column:284}},6:{start:{line:1,column:284},end:{line:1,column:331}},7:{start:{line:1,column:384},end:{line:1,column:397}},8:{start:{line:1,column:869},end:{line:1,column:887}},9:{start:{line:1,column:1293},end:{line:1,column:1317}},10:{start:{line:1,column:1317},end:{line:1,column:1364}},11:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:153},end:{line:1,column:154}},loc:{start:{line:1,column:168},end:{line:1,column:182}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:243},end:{line:1,column:244}},loc:{start:{line:1,column:259},end:{line:1,column:332}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:368},end:{line:1,column:369}},loc:{start:{line:1,column:383},end:{line:1,column:398}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:853},end:{line:1,column:854}},loc:{start:{line:1,column:868},end:{line:1,column:888}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1276},end:{line:1,column:1277}},loc:{start:{line:1,column:1292},end:{line:1,column:1365}},line:1}},branchMap:{0:{loc:{start:{line:1,column:760},end:{line:1,column:794}},type:"cond-expr",locations:[{start:{line:1,column:775},end:{line:1,column:785}},{start:{line:1,column:788},end:{line:1,column:794}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1604238f3c57062f86c44bd7fd40b6b8fd614aad"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return H=function(){return o},o}H(),H().s[0]++;var B=function(){H().f[0]++;var e=(H().s[1]++,this),n=(H().s[2]++,e._self._c);return H().s[3]++,n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){H().f[1]++,H().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-form",{on:{submit:function(n){return H().f[2]++,H().s[5]++,n.preventDefault(),H().s[6]++,e.submitHandler.apply(null,arguments)}},model:{value:e.valid,callback:function(n){H().f[3]++,H().s[7]++,e.valid=n},expression:"valid"}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v(" User Input Required ")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("div",{staticClass:"question"},[e._v(e._s(e.question))]),e._v(" "),n("v-text-field",{attrs:{autofocus:"","data-test":"ask-value-input",type:e.password?(H().b[0][0]++,"password"):(H().b[0][1]++,"text"),rules:e.rules},model:{value:e.inputValue,callback:function(n){H().f[4]++,H().s[8]++,e.inputValue=n},expression:"inputValue"}})],1)],1),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-1",attrs:{outlined:"","data-test":"ask-cancel"},on:{click:e.cancelHandler}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"mx-1",attrs:{color:"primary",type:"submit","data-test":"ask-ok",disabled:!e.valid},on:{click:function(n){return H().f[5]++,H().s[9]++,n.preventDefault(),H().s[10]++,e.submitHandler.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)],1)],1)},V=(H().s[11]++,[]);function G(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",n="822bb34b5689fec702cd1ba7837dcdc3fc5e944a",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",statementMap:{0:{start:{line:23,column:4},end:{line:27,column:5}},1:{start:{line:26,column:21},end:{line:26,column:38}},2:{start:{line:30,column:4},end:{line:33,column:5}},3:{start:{line:31,column:6},end:{line:31,column:23}},4:{start:{line:32,column:6},end:{line:32,column:36}},5:{start:{line:34,column:4},end:{line:37,column:5}},6:{start:{line:35,column:6},end:{line:35,column:23}},7:{start:{line:36,column:6},end:{line:36,column:32}},8:{start:{line:36,column:27},end:{line:36,column:31}},9:{start:{line:42,column:8},end:{line:42,column:25}},10:{start:{line:45,column:8},end:{line:45,column:34}},11:{start:{line:51,column:6},end:{line:51,column:45}},12:{start:{line:54,column:6},end:{line:54,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:2},end:{line:22,column:3}},loc:{start:{line:22,column:9},end:{line:28,column:3}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:26,column:14},end:{line:26,column:15}},loc:{start:{line:26,column:21},end:{line:26,column:38}},line:26},2:{name:"(anonymous_2)",decl:{start:{line:29,column:2},end:{line:29,column:3}},loc:{start:{line:29,column:12},end:{line:38,column:3}},line:29},3:{name:"(anonymous_3)",decl:{start:{line:36,column:20},end:{line:36,column:21}},loc:{start:{line:36,column:27},end:{line:36,column:31}},line:36},4:{name:"(anonymous_4)",decl:{start:{line:41,column:6},end:{line:41,column:7}},loc:{start:{line:41,column:12},end:{line:43,column:7}},line:41},5:{name:"(anonymous_5)",decl:{start:{line:44,column:6},end:{line:44,column:7}},loc:{start:{line:44,column:17},end:{line:46,column:7}},line:44},6:{name:"(anonymous_6)",decl:{start:{line:50,column:19},end:{line:50,column:20}},loc:{start:{line:50,column:31},end:{line:52,column:5}},line:50},7:{name:"(anonymous_7)",decl:{start:{line:53,column:19},end:{line:53,column:20}},loc:{start:{line:53,column:31},end:{line:55,column:5}},line:53}},branchMap:{0:{loc:{start:{line:26,column:21},end:{line:26,column:38}},type:"binary-expr",locations:[{start:{line:26,column:21},end:{line:26,column:24}},{start:{line:26,column:28},end:{line:26,column:38}}],line:26},1:{loc:{start:{line:30,column:4},end:{line:33,column:5}},type:"if",locations:[{start:{line:30,column:4},end:{line:33,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:30},2:{loc:{start:{line:34,column:4},end:{line:37,column:5}},type:"if",locations:[{start:{line:34,column:4},end:{line:37,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:34}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,sources:["AskDialog.vue"],names:[],mappings:";AAsEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"AskDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog persistent v-model="show" width="600">\n <v-card>\n <v-form v-model="valid" v-on:submit.prevent="submitHandler">\n <v-system-bar>\n <v-spacer />\n <span> User Input Required </span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <div class="question">{{ question }}</div>\n <v-text-field\n v-model="inputValue"\n autofocus\n data-test="ask-value-input"\n :type="password ? \'password\' : \'text\'"\n :rules="rules"\n />\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancelHandler"\n outlined\n class="mx-1"\n data-test="ask-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click.prevent="submitHandler"\n class="mx-1"\n color="primary"\n type="submit"\n data-test="ask-ok"\n :disabled="!valid"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-form>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n question: {\n type: String,\n required: true,\n },\n default: {\n type: String,\n default: null,\n },\n password: {\n type: Boolean,\n default: false,\n },\n answerRequired: {\n type: Boolean,\n default: true,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n inputValue: \'\',\n valid: false,\n rules: [(v) => !!v || \'Required\'],\n }\n },\n created() {\n if (this.default) {\n this.valid = true\n this.inputValue = this.default\n }\n if (this.answerRequired === false) {\n this.valid = true\n this.rules = [(v) => true]\n }\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n submitHandler: function () {\n this.$emit(\'response\', this.inputValue)\n },\n cancelHandler: function () {\n this.$emit(\'response\', \'Cancel\')\n },\n },\n}\n<\/script>\n\n<sytle lang="scss" scoped>\n.question {\n font-size: 1rem;\n white-space: pre-line;\n}\n</sytle>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"822bb34b5689fec702cd1ba7837dcdc3fc5e944a"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return G=function(){return o},o}G();const W={props:{question:{type:String,required:!0},default:{type:String,default:null},password:{type:Boolean,default:!1},answerRequired:{type:Boolean,default:!0},value:Boolean},data(){return G().f[0]++,G().s[0]++,{inputValue:"",valid:!1,rules:[e=>(G().f[1]++,G().s[1]++,G().b[0][0]++,!!e||(G().b[0][1]++,"Required"))]}},created(){G().f[2]++,G().s[2]++,this.default?(G().b[1][0]++,G().s[3]++,this.valid=!0,G().s[4]++,this.inputValue=this.default):G().b[1][1]++,G().s[5]++,!1===this.answerRequired?(G().b[2][0]++,G().s[6]++,this.valid=!0,G().s[7]++,this.rules=[e=>(G().f[3]++,G().s[8]++,!0)]):G().b[2][1]++},computed:{show:{get(){return G().f[4]++,G().s[9]++,this.value},set(e){G().f[5]++,G().s[10]++,this.$emit("input",e)}}},methods:{submitHandler:function(){G().f[6]++,G().s[11]++,this.$emit("response",this.inputValue)},cancelHandler:function(){G().f[7]++,G().s[12]++,this.$emit("response","Cancel")}}},U=W;var z=t(5934),q=t.n(z);const j=q();var Y=(0,f.A)(U,B,V,!1,null,null,null);"function"===typeof j&&j(Y);const K=Y.exports;function X(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",n="cc55334088df9171b119b42429e1e2536fc08e85",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1673}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:260},end:{line:1,column:284}},6:{start:{line:1,column:284},end:{line:1,column:331}},7:{start:{line:1,column:384},end:{line:1,column:397}},8:{start:{line:1,column:1115},end:{line:1,column:1133}},9:{start:{line:1,column:1545},end:{line:1,column:1569}},10:{start:{line:1,column:1569},end:{line:1,column:1616}},11:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:153},end:{line:1,column:154}},loc:{start:{line:1,column:168},end:{line:1,column:182}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:243},end:{line:1,column:244}},loc:{start:{line:1,column:259},end:{line:1,column:332}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:368},end:{line:1,column:369}},loc:{start:{line:1,column:383},end:{line:1,column:398}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1099},end:{line:1,column:1100}},loc:{start:{line:1,column:1114},end:{line:1,column:1134}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1528},end:{line:1,column:1529}},loc:{start:{line:1,column:1544},end:{line:1,column:1617}},line:1}},branchMap:{0:{loc:{start:{line:1,column:712},end:{line:1,column:864}},type:"cond-expr",locations:[{start:{line:1,column:726},end:{line:1,column:855}},{start:{line:1,column:856},end:{line:1,column:864}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"cc55334088df9171b119b42429e1e2536fc08e85"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return X=function(){return o},o}X(),X().s[0]++;var J=function(){X().f[0]++;var e=(X().s[1]++,this),n=(X().s[2]++,e._self._c);return X().s[3]++,n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){X().f[1]++,X().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-form",{on:{submit:function(n){return X().f[2]++,X().s[5]++,n.preventDefault(),X().s[6]++,e.submitHandler.apply(null,arguments)}},model:{value:e.valid,callback:function(n){X().f[3]++,X().s[7]++,e.valid=n},expression:"valid"}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v(" File Dialog ")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("v-row",[n("v-card-title",{staticStyle:{"white-space":"pre-line"}},[e._v(e._s(e.title))])],1),e._v(" "),e.message?(X().b[0][0]++,n("v-row",[n("span",{staticClass:"ma-3",staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(e.message)}})])):(X().b[0][1]++,e._e()),e._v(" "),n("v-row",{staticClass:"my-1"},[n("v-file-input",{attrs:{label:"Choose File",autofocus:"","data-test":"file-input",accept:e.filter,"small-chips":"",multiple:e.multiple},model:{value:e.inputValue,callback:function(n){X().f[4]++,X().s[8]++,e.inputValue=n},expression:"inputValue"}})],1)],1)],1),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-1",attrs:{outlined:"","data-test":"file-cancel"},on:{click:e.cancelHandler}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"mx-1",attrs:{color:"primary",type:"submit","data-test":"file-ok",disabled:!e.valid},on:{click:function(n){return X().f[5]++,X().s[9]++,n.preventDefault(),X().s[10]++,e.submitHandler.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)],1)],1)},Z=(X().s[11]++,[]);function Q(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",n="29cb638f66743dffbb3e707fb1000ac69ffa7e7d",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",statementMap:{0:{start:{line:23,column:4},end:{line:25,column:5}},1:{start:{line:30,column:8},end:{line:30,column:25}},2:{start:{line:33,column:8},end:{line:33,column:34}},3:{start:{line:41,column:6},end:{line:43,column:7}},4:{start:{line:42,column:8},end:{line:42,column:43}},5:{start:{line:44,column:6},end:{line:44,column:45}},6:{start:{line:47,column:6},end:{line:47,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:2},end:{line:22,column:3}},loc:{start:{line:22,column:9},end:{line:26,column:3}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:29,column:6},end:{line:29,column:7}},loc:{start:{line:29,column:12},end:{line:31,column:7}},line:29},2:{name:"(anonymous_2)",decl:{start:{line:32,column:6},end:{line:32,column:7}},loc:{start:{line:32,column:17},end:{line:34,column:7}},line:32},3:{name:"(anonymous_3)",decl:{start:{line:38,column:19},end:{line:38,column:20}},loc:{start:{line:38,column:31},end:{line:45,column:5}},line:38},4:{name:"(anonymous_4)",decl:{start:{line:46,column:19},end:{line:46,column:20}},loc:{start:{line:46,column:31},end:{line:48,column:5}},line:46}},branchMap:{0:{loc:{start:{line:41,column:6},end:{line:43,column:7}},type:"if",locations:[{start:{line:41,column:6},end:{line:43,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:41}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0]},inputSourceMap:{version:3,sources:["FileDialog.vue"],names:[],mappings:";AAqFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"FileDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog persistent v-model="show" width="600">\n <v-card>\n <v-form v-model="valid" v-on:submit.prevent="submitHandler">\n <v-system-bar>\n <v-spacer />\n <span> File Dialog </span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-row>\n <v-card-title style="white-space: pre-line">{{\n title\n }}</v-card-title>\n </v-row>\n <v-row v-if="message">\n <span\n class="ma-3"\n style="white-space: pre-line"\n v-text="message"\n />\n </v-row>\n <v-row class="my-1">\n <v-file-input\n label="Choose File"\n v-model="inputValue"\n autofocus\n data-test="file-input"\n :accept="filter"\n small-chips\n :multiple="multiple"\n />\n </v-row>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancelHandler"\n outlined\n class="mx-1"\n data-test="file-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click.prevent="submitHandler"\n class="mx-1"\n color="primary"\n type="submit"\n data-test="file-ok"\n :disabled="!valid"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-form>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n title: {\n type: String,\n required: true,\n },\n message: {\n type: String,\n default: null,\n },\n filter: {\n type: String,\n default: \'*\',\n },\n multiple: {\n type: Boolean,\n default: false,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n inputValue: null,\n }\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n submitHandler: function () {\n // Ensure we send back an array of file names even in the single case\n // to make it easier to deal with a consistent result\n if (!Array.isArray(this.inputValue)) {\n this.inputValue = [this.inputValue]\n }\n this.$emit(\'response\', this.inputValue)\n },\n cancelHandler: function () {\n this.$emit(\'response\', \'Cancel\')\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"29cb638f66743dffbb3e707fb1000ac69ffa7e7d"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Q=function(){return o},o}Q();const ee={props:{title:{type:String,required:!0},message:{type:String,default:null},filter:{type:String,default:"*"},multiple:{type:Boolean,default:!1},value:Boolean},data(){return Q().f[0]++,Q().s[0]++,{inputValue:null}},computed:{show:{get(){return Q().f[1]++,Q().s[1]++,this.value},set(e){Q().f[2]++,Q().s[2]++,this.$emit("input",e)}}},methods:{submitHandler:function(){Q().f[3]++,Q().s[3]++,Array.isArray(this.inputValue)?Q().b[0][1]++:(Q().b[0][0]++,Q().s[4]++,this.inputValue=[this.inputValue]),Q().s[5]++,this.$emit("response",this.inputValue)},cancelHandler:function(){Q().f[4]++,Q().s[6]++,this.$emit("response","Cancel")}}},ne=ee;var te=(0,f.A)(ne,J,Z,!1,null,null,null);const le=te.exports;function ie(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",n="a9cf516d76680aac892bdf43e547c48c45854a96",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:808}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:472},end:{line:1,column:618}},6:{start:{line:1,column:755},end:{line:1,column:775}},7:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:451},end:{line:1,column:452}},loc:{start:{line:1,column:471},end:{line:1,column:619}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:738},end:{line:1,column:739}},loc:{start:{line:1,column:754},end:{line:1,column:776}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a9cf516d76680aac892bdf43e547c48c45854a96"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return ie=function(){return o},o}ie(),ie().s[0]++;var se=function(){ie().f[0]++;var e=(ie().s[1]++,this),n=(ie().s[2]++,e._self._c);return ie().s[3]++,n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){ie().f[1]++,ie().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(e.title)}}),e._v(" "),n("v-spacer")],1),e._v(" "),n("div",{staticClass:"pa-2"},[n("v-card-text",e._l(e.text,(function(t,l){return ie().f[2]++,ie().s[5]++,n("v-row",{key:l,attrs:{"no-gutters":""}},[n("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(t)}})])})),1)],1),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{attrs:{color:"primary"},on:{click:function(n){ie().f[3]++,ie().s[6]++,e.show=!e.show}}},[e._v(" Ok ")])],1)],1)],1)},oe=(ie().s[7]++,[]);function ae(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",n="0e6f63f54fe8f26950d23e02c85bf37a007389e7",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",statementMap:{0:{start:{line:20,column:8},end:{line:20,column:25}},1:{start:{line:23,column:8},end:{line:23,column:34}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:19,column:6},end:{line:19,column:7}},loc:{start:{line:19,column:12},end:{line:21,column:7}},line:19},1:{name:"(anonymous_1)",decl:{start:{line:22,column:6},end:{line:22,column:7}},loc:{start:{line:22,column:17},end:{line:24,column:7}},line:22}},branchMap:{},s:{0:0,1:0},f:{0:0,1:0},b:{},inputSourceMap:{version:3,sources:["InformationDialog.vue"],names:[],mappings:";AA+CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"InformationDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n \x3c!-- INFO --\x3e\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span style="white-space: pre-line" v-text="title" />\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-row no-gutters v-for="(line, index) in text" :key="index">\n <span style="white-space: pre-line" v-text="line" />\n </v-row>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn color="primary" @click="show = !show"> Ok </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n title: {\n type: String,\n required: true,\n },\n text: {\n type: String,\n required: true,\n },\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {},\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0e6f63f54fe8f26950d23e02c85bf37a007389e7"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return ae=function(){return o},o}ae();const re={props:{value:{type:Boolean,required:!0},title:{type:String,required:!0},text:{type:String,required:!0}},computed:{show:{get(){return ae().f[0]++,ae().s[0]++,this.value},set(e){ae().f[1]++,ae().s[1]++,this.$emit("input",e)}}},methods:{}},ce=re;var ue=(0,f.A)(ce,se,oe,!1,null,null,null);const de=ue.exports;var me=function(){var e=this,n=e._self._c;return n("div",[n("v-dialog",{attrs:{persistent:"",width:"80vw"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e._v(" "),e.newMetadata?n("span",[e._v("Metadata")]):n("span",[e._v("Events")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"close-metadata-icon"},on:{click:e.close}},[e._v("\n mdi-close-box\n ")])],1)]}}])},[e._v(" "),n("span",[e._v("Close")])])],1),e._v(" "),n("v-card-title",[e.newMetadata?n("span",[e._v("Metadata")]):n("span",[e._v("Events")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-text-field",{attrs:{label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),e._v(" "),n("v-data-table",{attrs:{headers:e.eventHeaders,items:e.localEvents,search:e.search,"sort-by":"start","sort-desc":""},scopedSlots:e._u([{key:"no-data",fn:function(){return[n("span",[e._v(" No events ")])]},proxy:!0},{key:"item.start",fn:function({item:n}){return[e._v("\n "+e._s(e.logFormat(n.start,e.utc))+"\n ")]}},{key:"item.end",fn:function({item:n}){return[e._v("\n "+e._s(e.logFormat(n.end,e.utc))+"\n ")]}},{key:"item.type",fn:function({item:n}){return[e._v("\n "+e._s(n.type.charAt(0).toUpperCase()+n.type.slice(1))+"\n ")]}},{key:"item.data",fn:function({item:n}){return[e._v("\n "+e._s(e.dataFormat(n))+"\n ")]}},{key:"item.actions",fn:function({item:t}){return[n("v-icon",{staticClass:"mr-2",attrs:{small:"","data-test":"edit-event"},on:{click:function(n){return e.editAction(t)}}},[e._v("\n mdi-pencil\n ")]),e._v(" "),n("v-icon",{attrs:{small:"","data-test":"delete-event"},on:{click:function(n){return e.deleteAction(t)}}},[e._v("\n mdi-delete\n ")])]}}])}),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"close-event-list"},on:{click:e.close}},[e._v("\n Close\n ")]),e._v(" "),e.newMetadata?n("v-btn",{attrs:{color:"primary","data-test":"new-event"},on:{click:function(n){e.showMetadataCreate=!0}}},[e._v("\n New Metadata\n ")]):e._e()],1)],1)],1),e._v(" "),n("activity-update-dialog",{attrs:{activity:e.editActivity},on:{update:e.updateActivity},model:{value:e.showActivityUpdate,callback:function(n){e.showActivityUpdate=n},expression:"showActivityUpdate"}}),e._v(" "),n("metadata-update-dialog",{attrs:{"metadata-obj":e.editMetadata},on:{update:e.updateMetadata},model:{value:e.showMetadataUpdate,callback:function(n){e.showMetadataUpdate=n},expression:"showMetadataUpdate"}}),e._v(" "),n("note-update-dialog",{attrs:{note:e.editNote},on:{update:e.updateNote},model:{value:e.showNoteUpdate,callback:function(n){e.showNoteUpdate=n},expression:"showNoteUpdate"}}),e._v(" "),n("metadata-create-dialog",{on:{update:e.addMetadata},model:{value:e.showMetadataCreate,callback:function(n){e.showMetadataCreate=n},expression:"showMetadataCreate"}})],1)},Ae=[],pe=t(2378);const he={filters:{time:function(e,n){return n?e.toUTCString().split(" ")[4]:e.toLocaleString().split(" ")[1]},hourMin:function(e){return e.split(":",2).join(":")},dateTime:function(e,n){return n?e.toISOString():e.toLocaleString()}},methods:{logFormat(e,n){return n?(0,pe.qD)(e,"UTC","yyyy-MM-dd HH:mm:ss.SSS"):(0,u.GP)(e,"yyyy-MM-dd HH:mm:ss.SSS")},generateDateTime(e,n){return n?e.toISOString():e.toLocaleString()},toIsoString(e){const n=new Date(e),t=-n.getTimezoneOffset(),l=t>=0?"+":"-";function i(e){var n=Math.floor(Math.abs(e));return(n<10?"0":"")+n}const s=n.getFullYear(),o=i(n.getMonth()+1),a=i(n.getDate()),r=i(n.getHours()),c=i(n.getMinutes()),u=i(n.getSeconds()),d=i(n.getMilliseconds()),m="utc"===this.utcOrLocal?"00:00":`${i(t/60)}:${i(t%60)}`;return`${s}-${o}-${a}T${r}:${c}:${u}.${d}${l}${m}`}}},ve={methods:{deleteItem(e){let n=null,t="";switch(e.type.toLowerCase()){case"activity":t="activity",n=e.activity.start;break;case"metadata":t="metadata",n=e.metadata.start;break;case"note":t="notes",n=e.note.start;break}this.$dialog.confirm(`Are you sure you want to remove ${e.typeStr} at ${e.startStr}`,{okText:"Delete",cancelText:"Cancel"}).then((()=>r.A.delete(`/openc3-api/${t}/${n}`))).then((()=>{this.$emit("delete",e),this.$notify.normal({title:`Deleted ${e.typeStr}`,body:`Deleted ${e.typeStr} at ${e.startStr}`})})).catch((()=>{}))}}};var fe=function(){var e=this,n=e._self._c;return n("div",[n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.createMetadata.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Create Metadata")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"close-metadata-icon"},on:{click:function(n){e.show=!e.show}}},[e._v("\n mdi-close-box\n ")])],1)]}}])},[e._v(" "),n("span",[e._v("Close")])])],1),e._v(" "),n("v-stepper",{attrs:{vertical:"","non-linear":""},model:{value:e.dialogStep,callback:function(n){e.dialogStep=n},expression:"dialogStep"}},[n("v-stepper-step",{attrs:{editable:"",step:"1"}},[e._v("\n Input start time\n ")]),e._v(" "),n("v-stepper-content",{attrs:{step:"1"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("color-select-form",{model:{value:e.color,callback:function(n){e.color=n},expression:"color"}}),e._v(" "),n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"Start Date",rules:[e.rules.required],"data-test":"metadata-start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),e._v(" "),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"Start Time",rules:[e.rules.required],"data-test":"metadata-start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}})],1),e._v(" "),n("v-row",{staticClass:"mx-2 mb-2"},[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),e._v(" "),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1),e._v(" "),n("v-row",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeError,expression:"timeError"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.timeError)}})]),e._v(" "),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),e._v(" "),n("v-btn",{attrs:{"data-test":"create-metadata-step-two-btn",color:"success",disabled:!!e.timeError},on:{click:function(n){e.dialogStep=2}}},[e._v("\n Continue\n ")])],1)],1)])],1),e._v(" "),n("v-stepper-step",{attrs:{editable:"",step:"2"}},[e._v("Metadata Input")]),e._v(" "),n("v-stepper-content",{attrs:{step:"2"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("div",{staticStyle:{"min-height":"200px"}},[n("metadata-input-form",{model:{value:e.metadata,callback:function(n){e.metadata=n},expression:"metadata"}})],1),e._v(" "),n("v-row",{directives:[{name:"show",rawName:"v-show",value:e.typeError,expression:"typeError"}]},[n("span",{staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.typeError)}})]),e._v(" "),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"create-metadata-cancel-btn"},on:{click:function(n){e.show=!e.show}}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"create-metadata-submit-btn",disabled:!!e.timeError||!!e.typeError},on:{click:function(n){return n.preventDefault(),e.createMetadata.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)])],1)],1)],1)])],1)],1)},ge=[],Ce=(t(8605),t(4554)),be=t(4483);const _e={props:{date:{type:String},time:{type:String}},data(){return{startDate:"",startTime:"",stopDate:"",stopTime:"",utcOrLocal:"loc"}},methods:{calcStartDateTime:function(){this.date?(this.startDate=this.date,this.stopDate=this.date):(this.startDate=(0,u.GP)(new Date,"yyyy-MM-dd"),this.stopDate=(0,u.GP)(new Date,"yyyy-MM-dd"));let e=18e5,n=null;this.time?(n=(0,Ce.qg)(this.time,"HH:mm:ss",new Date),n=new Date(Math.floor(n.getTime()/e)*e)):n=new Date(Math.ceil((new Date).getTime()/e)*e),this.startTime=(0,u.GP)(n,"HH:mm:ss"),this.stopTime=(0,u.GP)((0,be.W)(n,{minutes:30}),"HH:mm:ss")}}};var ye=function(){var e=this,n=e._self._c;return n("div",[n("v-select",{attrs:{items:e.swatches,label:"Color"},scopedSlots:e._u([{key:"selection",fn:function({item:t}){return[n("div",[n("v-badge",{attrs:{inline:"",color:t}},[n("span",{domProps:{textContent:e._s(t)}})])],1)]}},{key:"item",fn:function({item:t}){return[n("div",[n("v-badge",{attrs:{inline:"",color:t}},[n("span",{domProps:{textContent:e._s(t)}})])],1)]}}]),model:{value:e.color,callback:function(n){e.color=n},expression:"color"}})],1)},we=[];const xe={components:{},props:{value:{type:String,required:!0}},data(){return{}},computed:{color:{get(){return this.value},set(e){this.$emit("input",e)}},swatches:function(){return["#005a8f","#003784","#8F3400","#df1368","#ff5252","#df323b","#9f0010","#2d9437","#004700","#db7200","#802700","#0f2941"]}},methods:{}},ke=xe;var Se=(0,f.A)(ke,ye,we,!1,null,null,null);const Me=Se.exports;var Ee=function(){var e=this,n=e._self._c;return n("div",[n("v-simple-table",{attrs:{dense:""}},[n("tbody",[n("tr",[n("th",{staticClass:"text-left",attrs:{scope:"col"}},[e._v("Key")]),e._v(" "),n("th",{staticClass:"text-left",attrs:{scope:"col"}},[e._v("Value")]),e._v(" "),n("th",{staticClass:"text-right",attrs:{scope:"col"}},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"new-metadata-icon"},on:{click:e.newMetadata}},[e._v("\n mdi-plus\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" New Metadata ")])])],1)]),e._v(" "),e._l(e.metadata,(function(t,l){return[n("tr",{key:`tr-${l}`},[n("td",[n("v-text-field",{attrs:{type:"text",dense:"","data-test":`key-${l}`},model:{value:t.key,callback:function(n){e.$set(t,"key",n)},expression:"meta.key"}})],1),e._v(" "),n("td",[n("v-text-field",{attrs:{type:"text",dense:"","data-test":`value-${l}`},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"meta.value"}})],1),e._v(" "),n("td",[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:i}){return[n("div",e._g(e._b({},"div",i,!1),t),[n("v-icon",{attrs:{"data-test":`delete-metadata-icon-${l}`},on:{click:function(n){return e.rm(l)}}},[e._v("\n mdi-delete\n ")])],1)]}}],null,!0)},[e._v(" "),n("span",[e._v(" Delete Metadata ")])])],1)])]}))],2)])],1)},Te=[];const Re={components:{},props:{value:{type:Array,required:!0}},data(){return{}},computed:{metadata:{get(){return this.value},set(e){this.$emit("input",e)}}},methods:{newMetadata:function(){this.metadata.push({key:"",value:""})},rm:function(e){this.metadata.splice(e,1)}}},Ie=Re;var De=(0,f.A)(Ie,Ee,Te,!1,null,null,null);const $e=De.exports,Oe={components:{ColorSelectForm:Me,MetadataInputForm:$e},props:{value:Boolean},mixins:[_e,he],data(){return{scope:window.openc3Scope,dialogStep:1,color:"#003784",metadata:[],rules:{required:e=>!!e||"Required"}}},watch:{show:function(){this.updateValues()}},mounted:function(){this.updateValues()},computed:{timeError:function(){if(!this.color)return"A color is required.";const e=new Date,n=Date.parse(`${this.startDate}T${this.startTime}`);return e<n?"Invalid start time. Can not be in the future":null},typeError:function(){if(this.metadata.length<1)return"Please enter a value in the metadata table.";const e=this.metadata.find((e=>""===e.key||""===e.value));return e?"Missing or empty key, value in the metadata table.":null},show:{get(){return this.value},set(e){this.$emit("input",e)}}},methods:{updateValues:function(){this.dialogStep=1,this.time=(0,u.GP)(new Date,"HH:mm:ss"),this.calcStartDateTime(),this.color="#003784",this.metadata=[]},createMetadata:function(){const e=this.color,n=this.metadata.reduce(((e,n)=>(e[n.key]=n.value,e)),{}),t={color:e,metadata:n};t.start=this.toIsoString(Date.parse(`${this.startDate}T${this.startTime}`)),r.A.post("/openc3-api/metadata",{data:t}).then((e=>{this.$notify.normal({title:"Created new Metadata",body:`Metadata: (${e.data.start})`}),this.$emit("update",e.data)})),this.show=!this.show,this.updateValues()}}},Ne=Oe;t(5739);var Le=(0,f.A)(Ne,fe,ge,!1,null,"8154ef52",null);const Fe=Le.exports;var Pe=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.updateActivity.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("\n Update activity: "+e._s(e.activity.name)+"/"+e._s(e.activity.start)+"\n ")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"close-activity-icon"},on:{click:e.cancelActivity}},[e._v("\n mdi-close-box\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Close ")])])],1),e._v(" "),n("v-stepper",{attrs:{vertical:"","non-linear":""},model:{value:e.dialogStep,callback:function(n){e.dialogStep=n},expression:"dialogStep"}},[n("v-stepper-step",{attrs:{editable:"",step:"1"}},[e._v("\n Input start time, stop time\n ")]),e._v(" "),n("v-stepper-content",{attrs:{step:"1"}},[n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"Start Date",rules:[e.rules.required],"data-test":"activity-start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),e._v(" "),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"Start Time",rules:[e.rules.required],"data-test":"activity-start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}})],1),e._v(" "),n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"End Date",rules:[e.rules.required],"data-test":"activity-stop-date"},model:{value:e.stopDate,callback:function(n){e.stopDate=n},expression:"stopDate"}}),e._v(" "),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"End Time",rules:[e.rules.required],"data-test":"activity-stop-time"},model:{value:e.stopTime,callback:function(n){e.stopTime=n},expression:"stopTime"}})],1),e._v(" "),n("v-row",{staticStyle:{"margin-top":"0px"}},[n("v-col",[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),e._v(" "),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1),e._v(" "),n("v-col",[n("v-checkbox",{staticStyle:{"padding-top":"0px","margin-top":"0px"},attrs:{label:"Recurring","hide-details":"","data-test":"recurring",disabled:""},model:{value:e.recurring,callback:function(n){e.recurring=n},expression:"recurring"}})],1)],1),e._v(" "),e.recurring?n("v-row",[n("v-col",[n("div",{staticClass:"repeat"},[e._v("Repeat every")])]),e._v(" "),n("v-col",[n("v-text-field",{attrs:{dense:"",outlined:"","single-line":"","hide-details":"",disabled:""},model:{value:e.frequency,callback:function(n){e.frequency=n},expression:"frequency"}})],1),e._v(" "),n("v-col",[n("v-select",{staticStyle:{},attrs:{items:e.timeSpans,"hide-details":"",dense:"",outlined:"",disabled:"","data-test":"cmd-param-select"},model:{value:e.timeSpan,callback:function(n){e.timeSpan=n},expression:"timeSpan"}})],1)],1):e._e(),e._v(" "),e.recurring?n("v-row",{staticStyle:{"padding-bottom":"10px"}},[n("v-col",[n("div",{staticClass:"repeat"},[e._v("Ending")])]),e._v(" "),n("v-col",[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"End Date",disabled:"",rules:[e.rules.required],"data-test":"recurring-end-date"},model:{value:e.recurringEndDate,callback:function(n){e.recurringEndDate=n},expression:"recurringEndDate"}})],1),e._v(" "),n("v-col",[n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"End Time",disabled:"",rules:[e.rules.required],"data-test":"recurrning-end-time"},model:{value:e.recurringEndTime,callback:function(n){e.recurringEndTime=n},expression:"recurringEndTime"}})],1)],1):e._e(),e._v(" "),n("v-row",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeError,expression:"timeError"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.timeError)}})]),e._v(" "),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),e._v(" "),n("v-btn",{attrs:{"data-test":"update-activity-step-two-btn",color:"success",disabled:!!e.timeError},on:{click:function(n){e.dialogStep=2}}},[e._v("\n Continue\n ")])],1)],1)])],1),e._v(" "),n("v-stepper-step",{attrs:{editable:"",step:"2"}},[e._v("\n Activity type Input\n ")]),e._v(" "),n("v-stepper-content",{attrs:{step:"2"}},[n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-select",{attrs:{items:e.types,label:"Activity Type"},model:{value:e.kind,callback:function(n){e.kind=n},expression:"kind"}}),e._v(" "),"COMMAND"===e.kind?n("div",[n("v-text-field",{attrs:{type:"text",label:"Command Input",placeholder:"INST COLLECT with TYPE 0, DURATION 1, OPCODE 171, TEMP 0",prefix:"cmd('",suffix:"')",hint:"Timeline runs commands with cmd_no_hazardous_check","data-test":"activity-cmd"},model:{value:e.activityData,callback:function(n){e.activityData=n},expression:"activityData"}})],1):"SCRIPT"===e.kind?n("div",[n("script-chooser",{on:{file:e.fileHandler},model:{value:e.activityData,callback:function(n){e.activityData=n},expression:"activityData"}}),e._v(" "),n("environment-chooser",{model:{value:e.activityEnvironment,callback:function(n){e.activityEnvironment=n},expression:"activityEnvironment"}})],1):n("div",[n("span",{staticClass:"ma-2"},[e._v(" No required input ")])]),e._v(" "),n("v-row",{directives:[{name:"show",rawName:"v-show",value:e.typeError,expression:"typeError"}],staticClass:"mt-2"},[n("span",{staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.typeError)}})]),e._v(" "),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"update-activity-cancel-btn"},on:{click:e.cancelActivity}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"update-activity-submit-btn",disabled:!!e.timeError||!!e.typeError},on:{click:function(n){return n.preventDefault(),e.updateActivity.apply(null,arguments)}}},[e._v("\n Update\n ")])],1)],1)])],1)],1)],1)])],1)},He=[],Be=function(){var e=this,n=e._self._c;return n("div",[n("v-simple-table",{attrs:{dense:""}},[n("span",[e._v(" Add environment variables (optional)")]),e._v(" "),n("tbody",[n("tr",[n("th",{staticClass:"text-left",attrs:{scope:"col"}},[e._v("Key")]),e._v(" "),n("th",{staticClass:"text-left",attrs:{scope:"col"}},[e._v("Value")]),e._v(" "),n("th",{staticClass:"text-right",attrs:{scope:"col"}},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"new-metadata-icon"},on:{click:e.addEnvVar}},[e._v("\n mdi-plus\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Add Environment ")])])],1)]),e._v(" "),e._l(e.selected,(function(t,l){return[n("tr",{key:`tr-${l}`},[n("td",[n("v-text-field",{attrs:{dense:"",type:"text",readonly:t.readonly,"data-test":`key-${l}`},model:{value:t.key,callback:function(n){e.$set(t,"key",n)},expression:"env.key"}})],1),e._v(" "),n("td",[n("v-text-field",{attrs:{dense:"",type:"text",readonly:t.readonly,"data-test":`value-${l}`},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"env.value"}})],1),e._v(" "),n("td",[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:i}){return[n("div",e._g(e._b({},"div",i,!1),t),[n("v-icon",{attrs:{"data-test":`remove-env-icon-${l}`},on:{click:function(n){return e.delEnvVar(l)}}},[e._v("\n mdi-delete\n ")])],1)]}}],null,!0)},[e._v(" "),n("span",[e._v(" Delete Environment ")])])],1)])]}))],2)])],1)},Ve=[];const Ge={props:{value:{type:Array,required:!0}},computed:{selected:{get(){return this.value},set(e){this.$emit("input",e)}}},methods:{addEnvVar:function(){this.selected.push({key:"",value:""})},delEnvVar:function(e){this.selected.splice(e,1)}}},We=Ge;var Ue=(0,f.A)(We,Be,Ve,!1,null,null,null);const ze=Ue.exports;var qe=function(){var e=this,n=e._self._c;return n("div",[n("v-row",[n("v-autocomplete",{staticClass:"mb-5",attrs:{"cache-items":"",dense:"",outlined:"","hide-no-data":"","hide-details":"",label:"Select script",loading:e.loading,items:e.items,"search-input":e.search,"data-test":"select-script"},on:{"update:searchInput":function(n){e.search=n},"update:search-input":function(n){e.search=n}},model:{value:e.selected,callback:function(n){e.selected=n},expression:"selected"}})],1)],1)},je=[];const Ye={props:{value:String},data(){return{loading:!1,search:"",selected:this.value,scripts:[],items:[]}},created(){this.loading=!0,r.A.get("/script-api/scripts").then((e=>{this.scripts=e.data.filter((e=>e.includes(".rb")||e.includes(".py"))),this.items=this.scripts})).catch((e=>{this.$emit("error",{type:"error",text:`Failed to connect to OpenC3. ${e}`,error:e})})),this.selected=this.value?this.value:null,this.loading=!1},watch:{selected(e,n){e!==n&&this.$emit("file",e)},search(e){e&&e!==this.selected&&this.querySelections(e)}},methods:{querySelections:function(e){this.loading=!0,setTimeout((()=>{this.items=this.scripts.filter((n=>(n||"").toLowerCase().indexOf((e||"").toLowerCase())>-1)),this.loading=!1}),500)}}},Ke=Ye;var Xe=(0,f.A)(Ke,qe,je,!1,null,null,null);const Je=Xe.exports,Ze={components:{EnvironmentChooser:ze,ScriptChooser:Je},props:{activity:{type:Object,required:!0},value:Boolean},mixins:[he],data(){return{dialogStep:1,startDate:"",startTime:"",stopDate:"",stopTime:"",utcOrLocal:"loc",kind:"",types:["COMMAND","SCRIPT","RESERVE"],activityData:"",activityEnvironment:[],rules:{required:e=>!!e||"Required"},recurring:!1,recurringEndDate:null,recurringEndTime:null,frequency:90,timeSpan:"minutes",timeSpans:["minutes","hours","days"]}},watch:{show:function(){this.updateValues()}},computed:{timeError:function(){const e=new Date,n=Date.parse(`${this.startDate}T${this.startTime}`),t=Date.parse(`${this.stopDate}T${this.stopTime}`);return n===t?"Invalid start, stop time. Activity must have different start and stop times.":e>n?"Invalid start time. Activity must be in the future.":n>t?"Invalid start time. Activity start before stop.":null},typeError:function(){return"RESERVE"===this.kind||this.activityData?null:"No data is selected or inputted"},show:{get(){return this.value},set(e){this.$emit("input",e)}}},methods:{changeKind:function(e){e!==this.kind&&(this.kind=e,this.activityData="")},fileHandler:function(e){this.activityData=e||null},updateValues:function(){var e;const n=new Date(1e3*this.activity.start),t=new Date(1e3*this.activity.stop);if(this.startDate=(0,u.GP)(n,"yyyy-MM-dd"),this.startTime=(0,u.GP)(n,"HH:mm:ss"),this.stopDate=(0,u.GP)(t,"yyyy-MM-dd"),this.stopTime=(0,u.GP)(t,"HH:mm:ss"),this.kind=this.activity.kind.toUpperCase(),this.activityData=this.activity.data[this.activity.kind],this.activityEnvironment=this.activity.data.environment,null!==(e=this.activity.recurring)&&void 0!==e&&e.uuid){this.recurring=!0;const e=new Date(1e3*this.activity.recurring.end);this.recurringEndDate=(0,u.GP)(e,"yyyy-MM-dd"),this.recurringEndTime=(0,u.GP)(e,"HH:mm:ss"),this.frequency=this.activity.recurring.frequency,this.timeSpan=this.activity.recurring.span}},cancelActivity:function(){this.show=!this.show},updateActivity:function(){const e=this.toIsoString(Date.parse(`${this.startDate}T${this.startTime}`)),n=this.toIsoString(Date.parse(`${this.stopDate}T${this.stopTime}`)),t=this.kind.toLowerCase();let l={environment:this.activityEnvironment};l[t]=this.activityData;const i=this.activity.name,s=this.activity.start;var o={};this.recurring&&(o={frequency:this.frequency,span:this.timeSpan,end:this.toIsoString(Date.parse(`${this.recurringEndDate}T${this.recurringEndTime}`))}),r.A.put(`/openc3-api/timeline/${i}/activity/${s}`,{data:{start:e,stop:n,kind:t,data:l,recurring:o}}).then((e=>{const n=this.generateDateTime(new Date(1e3*e.data.start));this.$notify.normal({title:"Updated Activity",body:`${n} (${e.data.start}) on timeline: ${e.data.name}`}),this.$emit("update"),this.show=!this.show})).catch((e=>{this.show=!this.show}))}}},Qe=Ze;t(5663);var en=(0,f.A)(Qe,Pe,He,!1,null,"54fbc085",null);const nn=en.exports;var tn=function(){var e=this,n=e._self._c;return n("div",[n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.updateMetadata.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Update Metadata")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"close-metadata-icon"},on:{click:function(n){e.show=!e.show}}},[e._v("\n mdi-close-box\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Close ")])])],1),e._v(" "),n("v-stepper",{attrs:{vertical:"","non-linear":""},model:{value:e.dialogStep,callback:function(n){e.dialogStep=n},expression:"dialogStep"}},[n("v-stepper-step",{attrs:{editable:"",step:"1"}},[e._v("\n Input start time\n ")]),e._v(" "),n("v-stepper-content",{attrs:{step:"1"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("color-select-form",{model:{value:e.color,callback:function(n){e.color=n},expression:"color"}}),e._v(" "),n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"Start Date",rules:[e.rules.required],"data-test":"start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),e._v(" "),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"Start Time",rules:[e.rules.required],"data-test":"start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}})],1),e._v(" "),n("v-row",{staticClass:"mx-2 mb-2"},[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),e._v(" "),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1),e._v(" "),n("v-row",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeError,expression:"timeError"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.timeError)}})]),e._v(" "),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),e._v(" "),n("v-btn",{attrs:{"data-test":"create-metadata-step-two-btn",color:"success",disabled:!!e.timeError},on:{click:function(n){e.dialogStep=2}}},[e._v("\n Continue\n ")])],1)],1)])],1),e._v(" "),n("v-stepper-step",{attrs:{editable:"",step:"2"}},[e._v(" Metadata input ")]),e._v(" "),n("v-stepper-content",{attrs:{step:"2"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("div",{staticStyle:{"min-height":"200px"}},[n("metadata-input-form",{model:{value:e.metadata,callback:function(n){e.metadata=n},expression:"metadata"}})],1),e._v(" "),n("v-row",{directives:[{name:"show",rawName:"v-show",value:e.typeError,expression:"typeError"}]},[n("span",{staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.typeError)}})]),e._v(" "),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"update-metadata-cancel-btn"},on:{click:function(n){e.show=!e.show}}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"update-metadata-submit-btn",disabled:!!e.timeError||!!e.typeError},on:{click:function(n){return n.preventDefault(),e.updateMetadata.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)])],1)],1)],1)])],1)],1)},ln=[];const sn={components:{ColorSelectForm:Me,MetadataInputForm:$e},props:{metadataObj:{type:Object,required:!0},value:Boolean},mixins:[he],data(){return{scope:window.openc3Scope,dialogStep:1,startDate:"",startTime:"",utcOrLocal:"loc",color:"",metadata:[],rules:{required:e=>!!e||"Required"}}},watch:{show:function(){this.updateValues()}},computed:{timeError:function(){const e=new Date,n=Date.parse(`${this.startDate}T${this.startTime}`);return e<n?"Invalid start time. Can not be in the future":null},typeError:function(){if(this.metadata.length<1)return"Please enter a value in the metadata table.";const e=this.metadata.find((e=>""===e.key||""===e.value));return e?"Missing or empty key, value in the metadata table.":null},show:{get(){return this.value},set(e){this.$emit("input",e)}}},methods:{updateValues:function(){const e=new Date(1e3*this.metadataObj.start);this.startDate=(0,u.GP)(e,"yyyy-MM-dd"),this.startTime=(0,u.GP)(e,"HH:mm:ss"),this.metadata=Object.keys(this.metadataObj.metadata).map((e=>({key:e,value:this.metadataObj.metadata[e]}))),this.color=this.metadataObj.color},updateMetadata:function(){const e=this.color,n=this.metadata.reduce(((e,n)=>(e[n.key]=n.value,e)),{}),t=this.toIsoString(Date.parse(`${this.startDate}T${this.startTime}`));r.A.put(`/openc3-api/metadata/${this.metadataObj.start}`,{data:{start:t,color:e,metadata:n}}).then((t=>{this.$notify.normal({title:"Updated Metadata",body:`Metadata updated: (${t.data.start})`}),console.log("metadata update emit"),this.$emit("update",{...t.data.start,color:e,metadata:n})})),this.$emit("close"),this.show=!this.show,this.updateValues()}}},on=sn;t(6611);var an=(0,f.A)(on,tn,ln,!1,null,"f2badfd2",null);const rn=an.exports;var cn=function(){var e=this,n=e._self._c;return n("div",[n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.updateNote.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Update Note")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"close-note-icon"},on:{click:function(n){e.show=!e.show}}},[e._v("\n mdi-close-box\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Close ")])])],1),e._v(" "),n("v-stepper",{attrs:{vertical:"","non-linear":""},model:{value:e.dialogStep,callback:function(n){e.dialogStep=n},expression:"dialogStep"}},[n("v-stepper-step",{attrs:{editable:"",step:"1"}},[e._v("\n Input start time, stop time\n ")]),e._v(" "),n("v-stepper-content",{attrs:{step:"1"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"Start Date",rules:[e.rules.required],"data-test":"note-start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),e._v(" "),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"Start Time",rules:[e.rules.required],"data-test":"note-start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}})],1),e._v(" "),n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"End Date",rules:[e.rules.required],"data-test":"note-stop-date"},model:{value:e.stopDate,callback:function(n){e.stopDate=n},expression:"stopDate"}}),e._v(" "),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"End Time",rules:[e.rules.required],"data-test":"note-stop-time"},model:{value:e.stopTime,callback:function(n){e.stopTime=n},expression:"stopTime"}})],1),e._v(" "),n("v-row",{staticClass:"mx-2 mb-2"},[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),e._v(" "),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1),e._v(" "),n("v-row",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeError,expression:"timeError"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.timeError)}})]),e._v(" "),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),e._v(" "),n("v-btn",{attrs:{"data-test":"update-note-step-two-btn",color:"success",disabled:!!e.timeError},on:{click:function(n){e.dialogStep=2}}},[e._v("\n Continue\n ")])],1)],1)])],1),e._v(" "),n("v-stepper-step",{attrs:{editable:"",step:"2"}},[e._v("\n Input Description\n ")]),e._v(" "),n("v-stepper-content",{attrs:{step:"2"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("div",[n("color-select-form",{model:{value:e.color,callback:function(n){e.color=n},expression:"color"}})],1),e._v(" "),n("div",[n("v-text-field",{attrs:{type:"text",label:"Note Description","data-test":"update-note-description"},model:{value:e.description,callback:function(n){e.description=n},expression:"description"}})],1),e._v(" "),n("v-row",{directives:[{name:"show",rawName:"v-show",value:e.typeError,expression:"typeError"}]},[n("span",{staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.typeError)}})]),e._v(" "),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"update-note-cancel-btn"},on:{click:function(n){e.show=!e.show}}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"update-note-submit-btn",disabled:!!e.timeError||!!e.typeError},on:{click:function(n){return n.preventDefault(),e.updateNote.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)])],1)],1)],1)])],1)],1)},un=[];const dn={components:{ColorSelectForm:Me},props:{note:{type:Object,required:!0},value:Boolean},mixins:[he],data(){return{dialogStep:1,startDate:"",startTime:"",stopDate:"",stopTime:"",utcOrLocal:"loc",description:"",color:"",rules:{required:e=>!!e||"Required"}}},watch:{show:function(){this.updateValues()}},computed:{timeError:function(){new Date;const e=Date.parse(`${this.startDate}T${this.startTime}`),n=Date.parse(`${this.stopDate}T${this.stopTime}`);return e===n?"Invalid start, stop time. Notes must have different start and stop times.":e>n?"Invalid start time. Note start before stop.":null},typeError:function(){return this.description?null:"A description is required for a valid note."},show:{get(){return this.value},set(e){this.$emit("input",e)}}},methods:{updateValues:function(){this.dialogStep=1;const e=new Date(1e3*this.note.start),n=new Date(1e3*this.note.stop);this.startDate=(0,u.GP)(e,"yyyy-MM-dd"),this.startTime=(0,u.GP)(e,"HH:mm:ss"),this.stopDate=(0,u.GP)(n,"yyyy-MM-dd"),this.stopTime=(0,u.GP)(n,"HH:mm:ss"),this.color=this.note.color,this.description=this.note.description},updateNote:function(){const e=this.toIsoString(Date.parse(`${this.startDate}T${this.startTime}`)),n=this.toIsoString(Date.parse(`${this.stopDate}T${this.stopTime}`)),t=this.color,l=this.description;r.A.put(`/openc3-api/notes/${this.note.start}`,{data:{start:e,stop:n,color:t,description:l}}).then((e=>{const n=e.data.description.length>16?`${e.data.description.substring(0,16)}...`:e.data.description;this.$notify.normal({title:"Updated Note",body:`Note updated: (${e.data.start}): "${n}"`}),console.log(e.data),this.$emit("update",e.data)})),this.$emit("close"),this.show=!this.show,this.updateValues()}}},mn=dn;t(4430);var An=(0,f.A)(mn,cn,un,!1,null,"ffe4e8e8",null);const pn=An.exports,hn={components:{MetadataCreateDialog:Fe,ActivityUpdateDialog:nn,MetadataUpdateDialog:rn,NoteUpdateDialog:pn},mixins:[he,ve],props:{events:{type:Array,required:!0},utc:{type:Boolean,default:!0},value:{type:Boolean,required:!0},types:{type:Array},newMetadata:{type:Boolean,default:!1}},data(){return{search:"",localEvents:[...this.events],eventHeaders:[{text:"Start",value:"start",width:190},{text:"Stop",value:"end",width:190},{text:"Type",value:"type"},{text:"Data",value:"data"},{text:"Actions",value:"actions",sortable:!1}],editActivity:{start:new Date,end:new Date},editMetadata:{start:new Date,end:new Date},editNote:{start:new Date,end:new Date},editIndex:0,showActivityUpdate:!1,showMetadataUpdate:!1,showNoteUpdate:!1,showMetadataCreate:!1}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}}},created:function(){this.$on("delete",(e=>{let n=this.localEvents.findIndex((n=>n.type===e.type&&n.start===e.start));this.localEvents.splice(n,1)}))},methods:{close(){this.$emit("close"),this.show=!1},dataFormat(e){let n=e.name;switch(e.type){case"note":n=e.note.description;break;case"metadata":let t=[];Object.entries(e.metadata.metadata).forEach((([e,n])=>t.push(`${e} => ${n}`))),n=t.join(", ");break}return n},editAction(e){switch(this.editIndex=this.localEvents.findIndex((n=>n.type===e.type&&n.start===e.start)),e.type){case"activity":this.editActivity=e.activity,this.showActivityUpdate=!0;break;case"metadata":this.editMetadata=e.metadata,this.showMetadataUpdate=!0;break;case"note":this.editNote=e.note,this.showNoteUpdate=!0;break}},deleteAction(e){let n=this.localEvents.findIndex((n=>n.type===e.type&&n.start===e.start)),t=null,l=null;switch(e.type){case"activity":t=`timeline/${e.activity.name}/activity`,l=e.activity.start;break;case"metadata":t="metadata",l=e.metadata.start;break;case"note":t="notes",l=e.note.start;break}this.$dialog.confirm(`Are you sure you want to remove ${e.type} at ${e.start}`,{okText:"Delete",cancelText:"Cancel"}).then((e=>(this.localEvents.splice(n,1),r.A.delete(`/openc3-api/${t}/${l}`)))).then((n=>{this.$emit("update"),this.$notify.normal({title:`Deleted ${e.type}`,body:`Deleted ${e.type} at ${l}`})})).catch((e=>{}))},updateActivity(e){this.$emit("update"),this.localEvents[this.editIndex].activity=e},updateMetadata(e){this.$emit("update"),this.localEvents[this.editIndex].metadata=e},updateNote(e){this.$emit("update"),this.localEvents[this.editIndex].note=e},addMetadata(e){let n={name:"Metadata",start:new Date(1e3*e.start),end:new Date(1e3*e.start),color:e.color,type:e.type,timed:!0,metadata:e};this.localEvents.push(n)}}},vn=hn;var fn=(0,f.A)(vn,me,Ae,!1,null,null,null);const gn=fn.exports;function Cn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",n="037ef992500788b26e7aee52536081b64692de06",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:9,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:8,column:733}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:846},end:{line:1,column:860}},6:{start:{line:8,column:123},end:{line:8,column:488}},7:{start:{line:8,column:231},end:{line:8,column:418}},8:{start:{line:8,column:295},end:{line:8,column:326}},9:{start:{line:8,column:664},end:{line:8,column:684}},10:{start:{line:10,column:22},end:{line:10,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:9,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:830},end:{line:1,column:831}},loc:{start:{line:1,column:845},end:{line:1,column:861}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:8,column:104},end:{line:8,column:105}},loc:{start:{line:8,column:122},end:{line:8,column:489}},line:8},4:{name:"(anonymous_4)",decl:{start:{line:8,column:207},end:{line:8,column:208}},loc:{start:{line:8,column:230},end:{line:8,column:419}},line:8},5:{name:"(anonymous_5)",decl:{start:{line:8,column:278},end:{line:8,column:279}},loc:{start:{line:8,column:294},end:{line:8,column:327}},line:8},6:{name:"(anonymous_6)",decl:{start:{line:8,column:647},end:{line:8,column:648}},loc:{start:{line:8,column:663},end:{line:8,column:685}},line:8}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"037ef992500788b26e7aee52536081b64692de06"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Cn=function(){return o},o}Cn(),Cn().s[0]++;var bn=function(){Cn().f[0]++;var e=(Cn().s[1]++,this),n=(Cn().s[2]++,e._self._c);return Cn().s[3]++,n("v-dialog",{attrs:{width:"700"},model:{value:e.show,callback:function(n){Cn().f[1]++,Cn().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Overrides")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("v-btn",{attrs:{color:"primary","data-test":"overrides-dialog-clear-all"},on:{click:e.clearOverrides}},[e._v("\n Clear All Overrides\n ")]),e._v(" "),n("v-card-title",[e._v("\n Overrides\n "),n("v-spacer"),e._v(" "),n("v-text-field",{attrs:{label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){Cn().f[2]++,Cn().s[5]++,e.search=n},expression:"search"}})],1),e._v(" "),n("v-data-table",{attrs:{headers:e.headers,items:e.overrides,search:e.search,"footer-props":{itemsPerPageOptions:[100],showFirstLastPage:!0,firstIcon:"mdi-page-first",lastIcon:"mdi-page-last",prevIcon:"mdi-chevron-left",nextIcon:"mdi-chevron-right"},"calculate-widths":"","multi-sort":"",dense:""},scopedSlots:e._u([{key:"item.delete",fn:function({item:t}){return Cn().f[3]++,Cn().s[6]++,[n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:l,attrs:i}){return Cn().f[4]++,Cn().s[7]++,[n("v-icon",e._g(e._b({on:{click:function(n){return Cn().f[5]++,Cn().s[8]++,e.deleteOverride(t)}}},"v-icon",i,!1),l),[e._v("\n mdi-delete\n ")])]}}],null,!0)},[e._v(" "),n("span",[e._v("Delete Override")])])]}}])})],1)],1),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{attrs:{color:"primary","data-test":"overrides-dialog-ok"},on:{click:function(n){Cn().f[6]++,Cn().s[9]++,e.show=!e.show}}},[e._v("\n Ok\n ")])],1)],1)],1)},_n=(Cn().s[10]++,[]);function yn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",n="4ec8440d406d8e61da0265be46ff73bc24a39a33",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",statementMap:{0:{start:{line:13,column:4},end:{line:25,column:5}},1:{start:{line:28,column:4},end:{line:28,column:30}},2:{start:{line:29,column:4},end:{line:29,column:23}},3:{start:{line:34,column:8},end:{line:34,column:25}},4:{start:{line:37,column:8},end:{line:37,column:34}},5:{start:{line:43,column:6},end:{line:45,column:8}},6:{start:{line:44,column:8},end:{line:44,column:31}},7:{start:{line:48,column:20},end:{line:56,column:7}},8:{start:{line:50,column:39},end:{line:54,column:11}},9:{start:{line:57,column:6},end:{line:68,column:7}},10:{start:{line:58,column:8},end:{line:67,column:12}},11:{start:{line:66,column:12},end:{line:66,column:31}},12:{start:{line:71,column:6},end:{line:81,column:10}},13:{start:{line:79,column:22},end:{line:79,column:50}},14:{start:{line:80,column:10},end:{line:80,column:41}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:2},end:{line:12,column:3}},loc:{start:{line:12,column:9},end:{line:26,column:3}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:27,column:11},end:{line:27,column:12}},loc:{start:{line:27,column:23},end:{line:30,column:3}},line:27},2:{name:"(anonymous_2)",decl:{start:{line:33,column:6},end:{line:33,column:7}},loc:{start:{line:33,column:12},end:{line:35,column:7}},line:33},3:{name:"(anonymous_3)",decl:{start:{line:36,column:6},end:{line:36,column:7}},loc:{start:{line:36,column:17},end:{line:38,column:7}},line:36},4:{name:"(anonymous_4)",decl:{start:{line:42,column:18},end:{line:42,column:19}},loc:{start:{line:42,column:30},end:{line:46,column:5}},line:42},5:{name:"(anonymous_5)",decl:{start:{line:43,column:36},end:{line:43,column:37}},loc:{start:{line:43,column:48},end:{line:45,column:7}},line:43},6:{name:"(anonymous_6)",decl:{start:{line:47,column:20},end:{line:47,column:21}},loc:{start:{line:47,column:32},end:{line:69,column:5}},line:47},7:{name:"(anonymous_7)",decl:{start:{line:50,column:29},end:{line:50,column:30}},loc:{start:{line:50,column:39},end:{line:54,column:11}},line:50},8:{name:"(anonymous_8)",decl:{start:{line:65,column:16},end:{line:65,column:17}},loc:{start:{line:65,column:28},end:{line:67,column:11}},line:65},9:{name:"(anonymous_9)",decl:{start:{line:70,column:20},end:{line:70,column:21}},loc:{start:{line:70,column:36},end:{line:82,column:5}},line:70},10:{name:"(anonymous_10)",decl:{start:{line:78,column:14},end:{line:78,column:15}},loc:{start:{line:78,column:26},end:{line:81,column:9}},line:78}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},b:{},inputSourceMap:{version:3,sources:["OverridesDialog.vue"],names:[],mappings:";AAsGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"OverridesDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog v-model="show" width="700">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Overrides</span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-btn\n @click="clearOverrides"\n color="primary"\n data-test="overrides-dialog-clear-all"\n >\n Clear All Overrides\n </v-btn>\n\n <v-card-title>\n Overrides\n <v-spacer />\n <v-text-field\n v-model="search"\n label="Search"\n prepend-inner-icon="mdi-magnify"\n clearable\n outlined\n dense\n single-line\n hide-details\n />\n </v-card-title>\n <v-data-table\n :headers="headers"\n :items="overrides"\n :search="search"\n :footer-props="{\n itemsPerPageOptions: [100],\n showFirstLastPage: true,\n firstIcon: \'mdi-page-first\',\n lastIcon: \'mdi-page-last\',\n prevIcon: \'mdi-chevron-left\',\n nextIcon: \'mdi-chevron-right\',\n }"\n calculate-widths\n multi-sort\n dense\n >\n <template v-slot:item.delete="{ item }">\n <v-tooltip bottom>\n <template v-slot:activator="{ on, attrs }">\n <v-icon\n @click="deleteOverride(item)"\n v-bind="attrs"\n v-on="on"\n >\n mdi-delete\n </v-icon>\n </template>\n <span>Delete Override</span>\n </v-tooltip>\n </template>\n </v-data-table>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="show = !show"\n color="primary"\n data-test="overrides-dialog-ok"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\n\nexport default {\n components: {},\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n },\n data() {\n return {\n api: null,\n overrides: [],\n search: \'\',\n headers: [\n { text: \'Target\', value: \'target_name\' },\n { text: \'Packet\', value: \'packet_name\' },\n { text: \'Item\', value: \'item_name\' },\n { text: \'Type\', value: \'value_type\' },\n { text: \'Value\', value: \'value\' },\n { text: \'Delete\', value: \'delete\' },\n ],\n }\n },\n created: function () {\n this.api = new OpenC3Api()\n this.getOverrides()\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n getOverrides: function () {\n this.api.get_overrides().then((result) => {\n this.overrides = result\n })\n },\n clearOverrides: function () {\n const items = [\n ...new Map(\n this.overrides.map((item) => [\n // Create a key based on target, packet, item so we remove duplicates\n `${item.target_name}__${item.packet_name}__${item.item_name}`,\n item,\n ]),\n ).values(),\n ]\n for (let item of items) {\n this.api\n .normalize_tlm(\n item.target_name,\n item.packet_name,\n item.item_name,\n \'ALL\',\n )\n .then((result) => {\n this.overrides = []\n })\n }\n },\n deleteOverride: function (item) {\n this.api\n .normalize_tlm(\n item.target_name,\n item.packet_name,\n item.item_name,\n item.value_type,\n )\n .then((result) => {\n var index = this.overrides.indexOf(item)\n this.overrides.splice(index, 1)\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4ec8440d406d8e61da0265be46ff73bc24a39a33"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return yn=function(){return o},o}yn();const wn={components:{},props:{value:{type:Boolean,required:!0}},data(){return yn().f[0]++,yn().s[0]++,{api:null,overrides:[],search:"",headers:[{text:"Target",value:"target_name"},{text:"Packet",value:"packet_name"},{text:"Item",value:"item_name"},{text:"Type",value:"value_type"},{text:"Value",value:"value"},{text:"Delete",value:"delete"}]}},created:function(){yn().f[1]++,yn().s[1]++,this.api=new P.x,yn().s[2]++,this.getOverrides()},computed:{show:{get(){return yn().f[2]++,yn().s[3]++,this.value},set(e){yn().f[3]++,yn().s[4]++,this.$emit("input",e)}}},methods:{getOverrides:function(){yn().f[4]++,yn().s[5]++,this.api.get_overrides().then((e=>{yn().f[5]++,yn().s[6]++,this.overrides=e}))},clearOverrides:function(){yn().f[6]++;const e=(yn().s[7]++,[...new Map(this.overrides.map((e=>(yn().f[7]++,yn().s[8]++,[`${e.target_name}__${e.packet_name}__${e.item_name}`,e])))).values()]);yn().s[9]++;for(let n of e)yn().s[10]++,this.api.normalize_tlm(n.target_name,n.packet_name,n.item_name,"ALL").then((e=>{yn().f[8]++,yn().s[11]++,this.overrides=[]}))},deleteOverride:function(e){yn().f[9]++,yn().s[12]++,this.api.normalize_tlm(e.target_name,e.packet_name,e.item_name,e.value_type).then((n=>{yn().f[10]++;var t=(yn().s[13]++,this.overrides.indexOf(e));yn().s[14]++,this.overrides.splice(t,1)}))}}},xn=wn;var kn=(0,f.A)(xn,bn,_n,!1,null,null,null);const Sn=kn.exports;function Mn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",n="1e517431bbb2c84e58c9ff555a3a9cfed7442661",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:2206}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:1055},end:{line:1,column:1083}},6:{start:{line:1,column:1143},end:{line:1,column:1163}},7:{start:{line:1,column:1909},end:{line:1,column:2188}},8:{start:{line:1,column:2080},end:{line:1,column:2118}},9:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:153},end:{line:1,column:154}},loc:{start:{line:1,column:168},end:{line:1,column:182}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:1038},end:{line:1,column:1039}},loc:{start:{line:1,column:1054},end:{line:1,column:1084}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1127},end:{line:1,column:1128}},loc:{start:{line:1,column:1142},end:{line:1,column:1164}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1886},end:{line:1,column:1887}},loc:{start:{line:1,column:1908},end:{line:1,column:2189}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:2063},end:{line:1,column:2064}},loc:{start:{line:1,column:2079},end:{line:1,column:2119}},line:1}},branchMap:{0:{loc:{start:{line:1,column:451},end:{line:1,column:543}},type:"cond-expr",locations:[{start:{line:1,column:466},end:{line:1,column:534}},{start:{line:1,column:535},end:{line:1,column:543}}],line:1},1:{loc:{start:{line:1,column:661},end:{line:1,column:776}},type:"cond-expr",locations:[{start:{line:1,column:675},end:{line:1,column:767}},{start:{line:1,column:768},end:{line:1,column:776}}],line:1},2:{loc:{start:{line:1,column:797},end:{line:1,column:2198}},type:"cond-expr",locations:[{start:{line:1,column:822},end:{line:1,column:1615}},{start:{line:1,column:1616},end:{line:1,column:2198}}],line:1},3:{loc:{start:{line:1,column:2020},end:{line:1,column:2049}},type:"cond-expr",locations:[{start:{line:1,column:2035},end:{line:1,column:2044}},{start:{line:1,column:2047},end:{line:1,column:2049}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1e517431bbb2c84e58c9ff555a3a9cfed7442661"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Mn=function(){return o},o}Mn(),Mn().s[0]++;var En=function(){Mn().f[0]++;var e=(Mn().s[1]++,this),n=(Mn().s[2]++,e._self._c);return Mn().s[3]++,n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){Mn().f[1]++,Mn().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",{staticClass:"text",domProps:{textContent:e._s(e.title)}}),e._v(" "),n("v-spacer")],1),e._v(" "),n("div",{staticClass:"pa-2"},[n("v-card-text",{staticClass:"text"},[e.subtitle?(Mn().b[0][0]++,n("v-row",[n("v-card-subtitle",[e._v(e._s(e.subtitle))])],1)):(Mn().b[0][1]++,e._e()),e._v(" "),n("v-row",{staticClass:"mt-1"},[n("span",{domProps:{textContent:e._s(e.message)}})]),e._v(" "),e.details?(Mn().b[1][0]++,n("v-row",{staticClass:"mt-1"},[n("span",{domProps:{textContent:e._s(e.details)}})])):(Mn().b[1][1]++,e._e())],1)],1),e._v(" "),"combo"===e.layout?(Mn().b[2][0]++,n("div",[n("v-row",{staticClass:"ma-2"},[n("v-select",{staticClass:"ma-1",attrs:{label:"Select",color:"secondary","data-test":"prompt-select",items:e.buttons,multiple:!0===e.multiple},on:{change:function(n){Mn().f[2]++,Mn().s[5]++,e.selectOkDisabled=!1}},model:{value:e.selectedItem,callback:function(n){Mn().f[3]++,Mn().s[6]++,e.selectedItem=n},expression:"selectedItem"}})],1),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"ma-1",attrs:{outlined:"","data-test":"prompt-cancel"},on:{click:e.cancelHandler}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"ma-1",attrs:{color:"primary","data-test":"prompt-ok",disabled:e.selectOkDisabled},on:{click:e.submitHandler}},[e._v("\n Ok\n ")])],1)],1)):(Mn().b[2][1]++,n("div",[n("v-card-actions",{class:e.layoutClass},[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"ma-1",attrs:{outlined:"","data-test":"prompt-cancel"},on:{click:e.cancelHandler}},[e._v("\n Cancel\n ")]),e._v(" "),e._l(e.buttons,(function(t,l){return Mn().f[4]++,Mn().s[7]++,n("div",{key:l},[n("v-btn",{staticClass:"ma-1",attrs:{"data-test":`prompt-${t.text}`,color:t.value?(Mn().b[3][0]++,"primary"):(Mn().b[3][1]++,"")},on:{click:function(n){return Mn().f[5]++,Mn().s[8]++,e.submitWrapper(t.value)}}},[e._v("\n "+e._s(t.text)+"\n ")])],1)}))],2)],1))],1)],1)},Tn=(Mn().s[9]++,[]);function Rn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",n="4508ca9b7ce0e7cb4b39f3b6bcd861fe99800c27",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",statementMap:{0:{start:{line:22,column:21},end:{line:22,column:23}},1:{start:{line:36,column:4},end:{line:39,column:5}},2:{start:{line:44,column:8},end:{line:44,column:25}},3:{start:{line:47,column:8},end:{line:47,column:34}},4:{start:{line:51,column:19},end:{line:51,column:39}},5:{start:{line:52,column:6},end:{line:56,column:7}},6:{start:{line:53,column:8},end:{line:53,column:38}},7:{start:{line:55,column:8},end:{line:55,column:35}},8:{start:{line:61,column:6},end:{line:61,column:32}},9:{start:{line:62,column:6},end:{line:62,column:26}},10:{start:{line:65,column:6},end:{line:65,column:47}},11:{start:{line:68,column:6},end:{line:68,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:15},end:{line:22,column:16}},loc:{start:{line:22,column:21},end:{line:22,column:23}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:35,column:2},end:{line:35,column:3}},loc:{start:{line:35,column:9},end:{line:40,column:3}},line:35},2:{name:"(anonymous_2)",decl:{start:{line:43,column:6},end:{line:43,column:7}},loc:{start:{line:43,column:12},end:{line:45,column:7}},line:43},3:{name:"(anonymous_3)",decl:{start:{line:46,column:6},end:{line:46,column:7}},loc:{start:{line:46,column:17},end:{line:48,column:7}},line:46},4:{name:"(anonymous_4)",decl:{start:{line:50,column:4},end:{line:50,column:5}},loc:{start:{line:50,column:18},end:{line:57,column:5}},line:50},5:{name:"(anonymous_5)",decl:{start:{line:60,column:19},end:{line:60,column:20}},loc:{start:{line:60,column:37},end:{line:63,column:5}},line:60},6:{name:"(anonymous_6)",decl:{start:{line:64,column:19},end:{line:64,column:20}},loc:{start:{line:64,column:31},end:{line:66,column:5}},line:64},7:{name:"(anonymous_7)",decl:{start:{line:67,column:19},end:{line:67,column:20}},loc:{start:{line:67,column:31},end:{line:69,column:5}},line:67}},branchMap:{0:{loc:{start:{line:52,column:6},end:{line:56,column:7}},type:"if",locations:[{start:{line:52,column:6},end:{line:56,column:7}},{start:{line:54,column:13},end:{line:56,column:7}}],line:52}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0]},inputSourceMap:{version:3,sources:["PromptDialog.vue"],names:[],mappings:";AAyGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"PromptDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog persistent v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span class="text" v-text="title" />\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text class="text">\n <v-row v-if="subtitle">\n <v-card-subtitle>{{ subtitle }}</v-card-subtitle>\n </v-row>\n <v-row class="mt-1">\n <span v-text="message" />\n </v-row>\n <v-row v-if="details" class="mt-1">\n <span v-text="details" />\n </v-row>\n </v-card-text>\n </div>\n <div v-if="layout === \'combo\'">\n <v-row class="ma-2">\n <v-select\n @change="selectOkDisabled = false"\n v-model="selectedItem"\n label="Select"\n color="secondary"\n class="ma-1"\n data-test="prompt-select"\n :items="buttons"\n :multiple="multiple === true"\n />\n </v-row>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancelHandler"\n outlined\n data-test="prompt-cancel"\n class="ma-1"\n >\n Cancel\n </v-btn>\n <v-btn\n @click="submitHandler"\n class="ma-1"\n color="primary"\n data-test="prompt-ok"\n :disabled="selectOkDisabled"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </div>\n <div v-else>\n <v-card-actions :class="layoutClass">\n <v-spacer />\n <v-btn\n @click="cancelHandler"\n outlined\n data-test="prompt-cancel"\n class="ma-1"\n >\n Cancel\n </v-btn>\n <div v-for="(button, index) in buttons" :key="index">\n <v-btn\n @click="submitWrapper(button.value)"\n class="ma-1"\n :data-test="`prompt-${button.text}`"\n :color="button.value ? \'primary\' : \'\'"\n >\n {{ button.text }}\n </v-btn>\n </div>\n </v-card-actions>\n </div>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n title: {\n type: String,\n default: \'Prompt Dialog\',\n },\n subtitle: {\n type: String,\n default: \'\',\n },\n message: {\n type: String,\n required: true,\n },\n details: {\n type: String,\n default: \'\',\n },\n buttons: {\n type: Array,\n default: () => [],\n },\n layout: {\n type: String,\n default: \'horizontal\', // Also \'vertical\' or \'combo\' when means ComboBox\n },\n multiple: {\n type: Boolean,\n default: false,\n required: false,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n selectOkDisabled: true,\n selectedItem: null,\n }\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n layoutClass() {\n let layout = \'d-flex align-start\'\n if (this.layout === \'vertical\') {\n return `${layout} flex-column`\n } else {\n return `${layout} flex-row`\n }\n },\n },\n methods: {\n submitWrapper: function (output) {\n this.selectedItem = output\n this.submitHandler()\n },\n submitHandler: function () {\n this.$emit(\'response\', this.selectedItem)\n },\n cancelHandler: function () {\n this.$emit(\'response\', \'Cancel\')\n },\n },\n}\n<\/script>\n\n<style scoped>\n.v-card__subtitle {\n padding: 0;\n padding-bottom: 10px;\n}\n.text {\n font-size: 1rem;\n white-space: pre-line;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4508ca9b7ce0e7cb4b39f3b6bcd861fe99800c27"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Rn=function(){return o},o}Rn();const In={props:{title:{type:String,default:"Prompt Dialog"},subtitle:{type:String,default:""},message:{type:String,required:!0},details:{type:String,default:""},buttons:{type:Array,default:()=>(Rn().f[0]++,Rn().s[0]++,[])},layout:{type:String,default:"horizontal"},multiple:{type:Boolean,default:!1,required:!1},value:Boolean},data(){return Rn().f[1]++,Rn().s[1]++,{selectOkDisabled:!0,selectedItem:null}},computed:{show:{get(){return Rn().f[2]++,Rn().s[2]++,this.value},set(e){Rn().f[3]++,Rn().s[3]++,this.$emit("input",e)}},layoutClass(){Rn().f[4]++;let e=(Rn().s[4]++,"d-flex align-start");return Rn().s[5]++,"vertical"===this.layout?(Rn().b[0][0]++,Rn().s[6]++,`${e} flex-column`):(Rn().b[0][1]++,Rn().s[7]++,`${e} flex-row`)}},methods:{submitWrapper:function(e){Rn().f[5]++,Rn().s[8]++,this.selectedItem=e,Rn().s[9]++,this.submitHandler()},submitHandler:function(){Rn().f[6]++,Rn().s[10]++,this.$emit("response",this.selectedItem)},cancelHandler:function(){Rn().f[7]++,Rn().s[11]++,this.$emit("response","Cancel")}}},Dn=In;t(9876);var $n=(0,f.A)(Dn,En,Tn,!1,null,"3ca9666e",null);const On=$n.exports;function Nn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",n="34f6b0f11a778dc4333ca518458f3f56907e38f0",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:927}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:858},end:{line:1,column:878}},6:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:153},end:{line:1,column:154}},loc:{start:{line:1,column:168},end:{line:1,column:182}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:841},end:{line:1,column:842}},loc:{start:{line:1,column:857},end:{line:1,column:879}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"34f6b0f11a778dc4333ca518458f3f56907e38f0"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Nn=function(){return o},o}Nn(),Nn().s[0]++;var Ln=function(){Nn().f[0]++;var e=(Nn().s[1]++,this),n=(Nn().s[2]++,e._self._c);return Nn().s[3]++,n("v-dialog",{attrs:{scrollable:"",width:"800"},model:{value:e.show,callback:function(n){Nn().f[1]++,Nn().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v(" Script Results ")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("div",{staticClass:"pa-2"},[n("v-card-text",{staticStyle:{width:"100%","max-height":"80vh",overflow:"auto"}},[n("v-textarea",{attrs:{readonly:"","hide-details":"",dense:"","auto-grow":"",value:e.text}})],1)],1),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.downloadResults}},[e._v(" Download ")]),e._v(" "),n("v-btn",{ref:"okButton",staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(n){Nn().f[2]++,Nn().s[5]++,e.show=!e.show}}},[e._v("\n Ok\n ")])],1)],1)],1)},Fn=(Nn().s[6]++,[]);function Pn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",n="ccc307bf5209ceb8f0acad541880eeeb6209b127",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",statementMap:{0:{start:{line:19,column:8},end:{line:19,column:25}},1:{start:{line:22,column:8},end:{line:22,column:34}},2:{start:{line:28,column:4},end:{line:30,column:6}},3:{start:{line:29,column:6},end:{line:29,column:37}},4:{start:{line:34,column:19},end:{line:36,column:8}},5:{start:{line:38,column:19},end:{line:38,column:46}},6:{start:{line:39,column:6},end:{line:39,column:43}},7:{start:{line:40,column:6},end:{line:43,column:7}},8:{start:{line:44,column:6},end:{line:44,column:18}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:18,column:6},end:{line:18,column:7}},loc:{start:{line:18,column:12},end:{line:20,column:7}},line:18},1:{name:"(anonymous_1)",decl:{start:{line:21,column:6},end:{line:21,column:7}},loc:{start:{line:21,column:17},end:{line:23,column:7}},line:21},2:{name:"(anonymous_2)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:12},end:{line:31,column:3}},line:26},3:{name:"(anonymous_3)",decl:{start:{line:28,column:15},end:{line:28,column:16}},loc:{start:{line:28,column:21},end:{line:30,column:5}},line:28},4:{name:"(anonymous_4)",decl:{start:{line:33,column:4},end:{line:33,column:5}},loc:{start:{line:33,column:22},end:{line:45,column:5}},line:33}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},f:{0:0,1:0,2:0,3:0,4:0},b:{},inputSourceMap:{version:3,sources:["ResultsDialog.vue"],names:[],mappings:";AAoDA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ResultsDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2024, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog v-model="show" scrollable width="800">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Script Results </span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text style="width: 100%; max-height: 80vh; overflow: auto">\n <v-textarea readonly hide-details dense auto-grow :value="text" />\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn class="mx-2" outlined @click="downloadResults"> Download </v-btn>\n <v-btn\n class="mx-2"\n color="primary"\n @click="show = !show"\n ref="okButton"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport { format } from \'date-fns\'\n\nexport default {\n components: {},\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n text: {\n type: String,\n required: true,\n },\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n mounted() {\n // Focus the OK button so it\'s easy to hit Enter to close\n setTimeout(() => {\n this.$refs.okButton.$el.focus()\n })\n },\n methods: {\n downloadResults() {\n const blob = new Blob([this.text], {\n type: \'text/plain\',\n })\n // Make a link and then \'click\' on it to start the download\n const link = document.createElement(\'a\')\n link.href = URL.createObjectURL(blob)\n link.setAttribute(\n \'download\',\n format(Date.now(), \'yyyy_MM_dd_HH_mm_ss\') + \'_suite_results.txt\',\n )\n link.click()\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ccc307bf5209ceb8f0acad541880eeeb6209b127"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Pn=function(){return o},o}Pn();const Hn={components:{},props:{value:{type:Boolean,required:!0},text:{type:String,required:!0}},computed:{show:{get(){return Pn().f[0]++,Pn().s[0]++,this.value},set(e){Pn().f[1]++,Pn().s[1]++,this.$emit("input",e)}}},mounted(){Pn().f[2]++,Pn().s[2]++,setTimeout((()=>{Pn().f[3]++,Pn().s[3]++,this.$refs.okButton.$el.focus()}))},methods:{downloadResults(){Pn().f[4]++;const e=(Pn().s[4]++,new Blob([this.text],{type:"text/plain"})),n=(Pn().s[5]++,document.createElement("a"));Pn().s[6]++,n.href=URL.createObjectURL(e),Pn().s[7]++,n.setAttribute("download",(0,u.GP)(Date.now(),"yyyy_MM_dd_HH_mm_ss")+"_suite_results.txt"),Pn().s[8]++,n.click()}}},Bn=Hn;var Vn=(0,f.A)(Bn,Ln,Fn,!1,null,null,null);const Gn=Vn.exports;function Wn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",n="1398cbcdc4d6210a6543178e4e2c1b9b35be632a",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:955}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:470},end:{line:1,column:486}},6:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:454},end:{line:1,column:455}},loc:{start:{line:1,column:469},end:{line:1,column:487}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1398cbcdc4d6210a6543178e4e2c1b9b35be632a"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Wn=function(){return o},o}Wn(),Wn().s[0]++;var Un=function(){Wn().f[0]++;var e=(Wn().s[1]++,this),n=(Wn().s[2]++,e._self._c);return Wn().s[3]++,n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){Wn().f[1]++,Wn().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Script Environment Variables")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("environment-chooser",{model:{value:e.selected,callback:function(n){Wn().f[2]++,Wn().s[5]++,e.selected=n},expression:"selected"}})],1)],1),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"environment-dialog-cancel"},on:{click:e.cancel}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"environment-dialog-save",disabled:!!e.inputError},on:{click:e.updateEnvironment}},[e._v("\n Save\n ")])],1)],1)],1)},zn=(Wn().s[6]++,[]);function qn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",n="65e119e98de479afb4b1ef5c4afa2ff2f029eeb0",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",statementMap:{0:{start:{line:19,column:4},end:{line:21,column:5}},1:{start:{line:24,column:4},end:{line:24,column:26}},2:{start:{line:29,column:8},end:{line:29,column:25}},3:{start:{line:32,column:8},end:{line:32,column:34}},4:{start:{line:38,column:6},end:{line:38,column:48}},5:{start:{line:41,column:6},end:{line:41,column:46}},6:{start:{line:42,column:6},end:{line:42,column:28}},7:{start:{line:45,column:6},end:{line:45,column:28}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:18,column:2},end:{line:18,column:3}},loc:{start:{line:18,column:9},end:{line:22,column:3}},line:18},1:{name:"(anonymous_1)",decl:{start:{line:23,column:11},end:{line:23,column:12}},loc:{start:{line:23,column:23},end:{line:25,column:3}},line:23},2:{name:"(anonymous_2)",decl:{start:{line:28,column:6},end:{line:28,column:7}},loc:{start:{line:28,column:12},end:{line:30,column:7}},line:28},3:{name:"(anonymous_3)",decl:{start:{line:31,column:6},end:{line:31,column:7}},loc:{start:{line:31,column:17},end:{line:33,column:7}},line:31},4:{name:"(anonymous_4)",decl:{start:{line:37,column:21},end:{line:37,column:22}},loc:{start:{line:37,column:33},end:{line:39,column:5}},line:37},5:{name:"(anonymous_5)",decl:{start:{line:40,column:23},end:{line:40,column:24}},loc:{start:{line:40,column:35},end:{line:43,column:5}},line:40},6:{name:"(anonymous_6)",decl:{start:{line:44,column:12},end:{line:44,column:13}},loc:{start:{line:44,column:24},end:{line:46,column:5}},line:44}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{},inputSourceMap:{version:3,sources:["ScriptEnvironmentDialog.vue"],names:[],mappings:";AA4DA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ScriptEnvironmentDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Script Environment Variables</span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <environment-chooser v-model="selected" />\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancel"\n class="mx-2"\n outlined\n data-test="environment-dialog-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click="updateEnvironment"\n class="mx-2"\n color="primary"\n data-test="environment-dialog-save"\n :disabled="!!inputError"\n >\n Save\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport EnvironmentChooser from \'@openc3/tool-common/src/components/EnvironmentChooser\'\n\nexport default {\n components: {\n EnvironmentChooser,\n },\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n inputEnvironment: {\n type: Array,\n required: true,\n },\n },\n data() {\n return {\n selected: [],\n }\n },\n mounted: function () {\n this.loadEnvironment()\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n loadEnvironment: function () {\n this.selected = [...this.inputEnvironment]\n },\n updateEnvironment: function () {\n this.$emit(\'environment\', this.selected)\n this.show = !this.show\n },\n cancel: function () {\n this.show = !this.show\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"65e119e98de479afb4b1ef5c4afa2ff2f029eeb0"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return qn=function(){return o},o}qn();const jn={components:{EnvironmentChooser:ze},props:{value:{type:Boolean,required:!0},inputEnvironment:{type:Array,required:!0}},data(){return qn().f[0]++,qn().s[0]++,{selected:[]}},mounted:function(){qn().f[1]++,qn().s[1]++,this.loadEnvironment()},computed:{show:{get(){return qn().f[2]++,qn().s[2]++,this.value},set(e){qn().f[3]++,qn().s[3]++,this.$emit("input",e)}}},methods:{loadEnvironment:function(){qn().f[4]++,qn().s[4]++,this.selected=[...this.inputEnvironment]},updateEnvironment:function(){qn().f[5]++,qn().s[5]++,this.$emit("environment",this.selected),qn().s[6]++,this.show=!this.show},cancel:function(){qn().f[6]++,qn().s[7]++,this.show=!this.show}}},Yn=jn;var Kn=(0,f.A)(Yn,Un,zn,!1,null,null,null);const Xn=Kn.exports;function Jn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",n="ddd07b5818450050dfe09c5b55a547855711d420",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",statementMap:{0:{start:{line:1,column:13},end:{line:8,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:7,column:146}},4:{start:{line:1,column:448},end:{line:1,column:463}},5:{start:{line:1,column:688},end:{line:1,column:703}},6:{start:{line:1,column:1107},end:{line:1,column:1120}},7:{start:{line:1,column:1338},end:{line:1,column:1425}},8:{start:{line:1,column:1658},end:{line:1,column:1745}},9:{start:{line:1,column:1965},end:{line:1,column:2055}},10:{start:{line:1,column:2471},end:{line:1,column:2486}},11:{start:{line:1,column:2705},end:{line:1,column:2720}},12:{start:{line:1,column:3124},end:{line:1,column:3137}},13:{start:{line:1,column:3355},end:{line:1,column:3460}},14:{start:{line:1,column:3693},end:{line:1,column:3798}},15:{start:{line:1,column:4018},end:{line:1,column:4126}},16:{start:{line:1,column:4533},end:{line:1,column:4548}},17:{start:{line:1,column:4850},end:{line:1,column:4865}},18:{start:{line:1,column:5274},end:{line:1,column:5288}},19:{start:{line:1,column:5489},end:{line:7,column:18}},20:{start:{line:9,column:22},end:{line:9,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:8,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:432},end:{line:1,column:433}},loc:{start:{line:1,column:447},end:{line:1,column:464}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:672},end:{line:1,column:673}},loc:{start:{line:1,column:687},end:{line:1,column:704}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1091},end:{line:1,column:1092}},loc:{start:{line:1,column:1106},end:{line:1,column:1121}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1321},end:{line:1,column:1322}},loc:{start:{line:1,column:1337},end:{line:1,column:1426}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1641},end:{line:1,column:1642}},loc:{start:{line:1,column:1657},end:{line:1,column:1746}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1948},end:{line:1,column:1949}},loc:{start:{line:1,column:1964},end:{line:1,column:2056}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2455},end:{line:1,column:2456}},loc:{start:{line:1,column:2470},end:{line:1,column:2487}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2689},end:{line:1,column:2690}},loc:{start:{line:1,column:2704},end:{line:1,column:2721}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:3108},end:{line:1,column:3109}},loc:{start:{line:1,column:3123},end:{line:1,column:3138}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:3338},end:{line:1,column:3339}},loc:{start:{line:1,column:3354},end:{line:1,column:3461}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:3676},end:{line:1,column:3677}},loc:{start:{line:1,column:3692},end:{line:1,column:3799}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:4001},end:{line:1,column:4002}},loc:{start:{line:1,column:4017},end:{line:1,column:4127}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:4517},end:{line:1,column:4518}},loc:{start:{line:1,column:4532},end:{line:1,column:4549}},line:1},14:{name:"(anonymous_14)",decl:{start:{line:1,column:4834},end:{line:1,column:4835}},loc:{start:{line:1,column:4849},end:{line:1,column:4866}},line:1},15:{name:"(anonymous_15)",decl:{start:{line:1,column:5258},end:{line:1,column:5259}},loc:{start:{line:1,column:5273},end:{line:1,column:5289}},line:1},16:{name:"(anonymous_16)",decl:{start:{line:1,column:5472},end:{line:1,column:5473}},loc:{start:{line:1,column:5488},end:{line:7,column:19}},line:1}},branchMap:{0:{loc:{start:{line:1,column:1583},end:{line:1,column:1627}},type:"binary-expr",locations:[{start:{line:1,column:1583},end:{line:1,column:1601}},{start:{line:1,column:1605},end:{line:1,column:1627}}],line:1},1:{loc:{start:{line:1,column:1887},end:{line:1,column:1934}},type:"binary-expr",locations:[{start:{line:1,column:1887},end:{line:1,column:1905}},{start:{line:1,column:1909},end:{line:1,column:1934}}],line:1},2:{loc:{start:{line:1,column:3618},end:{line:1,column:3662}},type:"binary-expr",locations:[{start:{line:1,column:3618},end:{line:1,column:3636}},{start:{line:1,column:3640},end:{line:1,column:3662}}],line:1},3:{loc:{start:{line:1,column:3940},end:{line:1,column:3987}},type:"binary-expr",locations:[{start:{line:1,column:3940},end:{line:1,column:3958}},{start:{line:1,column:3962},end:{line:1,column:3987}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ddd07b5818450050dfe09c5b55a547855711d420"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Jn=function(){return o},o}Jn(),Jn().s[0]++;var Zn=function(){Jn().f[0]++;var e=(Jn().s[1]++,this),n=(Jn().s[2]++,e._self._c);return Jn().s[3]++,n("div",[n("div",{attrs:{id:"tr-container"}},[n("v-row",{attrs:{"no-gutters":"",align:"center"}},[n("v-col",{attrs:{cols:"4"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Pause on Error",value:"pauseOnError","hide-details":"","data-test":"pause-on-error"},model:{value:e.options,callback:function(n){Jn().f[1]++,Jn().s[4]++,e.options=n},expression:"options"}})],1),e._v(" "),n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Manual",value:"manual","hide-details":"","data-test":"manual"},model:{value:e.options,callback:function(n){Jn().f[2]++,Jn().s[5]++,e.options=n},expression:"options"}})],1)],1)],1),e._v(" "),n("v-col",{attrs:{cols:"8"}},[n("v-row",{attrs:{"no-gutters":"",justify:"end"}},[n("v-col",{attrs:{cols:"5"}},[n("v-select",{staticClass:"mb-2 mr-2",attrs:{label:"Suite:","hide-details":"",dense:"",outlined:"",items:e.suites,"data-test":"select-suite"},on:{change:e.suiteChanged},model:{value:e.suite,callback:function(n){Jn().f[3]++,Jn().s[6]++,e.suite=n},expression:"suite"}})],1),e._v(" "),n("v-col",{attrs:{cols:"auto"}},[n("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:e.disableButtons,"data-test":"start-suite"},on:{click:function(n){return Jn().f[4]++,Jn().s[7]++,e.$emit("button",{method:"start",suite:e.suite,options:e.options})}}},[e._v("\n Start\n ")]),e._v(" "),n("v-btn",{staticClass:"mr-2",attrs:{color:"primary","data-test":"setup-suite",disabled:(Jn().b[0][0]++,e.disableButtons||(Jn().b[0][1]++,!e.setupSuiteEnabled))},on:{click:function(n){return Jn().f[5]++,Jn().s[8]++,e.$emit("button",{method:"setup",suite:e.suite,options:e.options})}}},[e._v("\n Setup\n ")]),e._v(" "),n("v-btn",{attrs:{color:"primary","data-test":"teardown-suite",disabled:(Jn().b[1][0]++,e.disableButtons||(Jn().b[1][1]++,!e.teardownSuiteEnabled))},on:{click:function(n){return Jn().f[6]++,Jn().s[9]++,e.$emit("button",{method:"teardown",suite:e.suite,options:e.options})}}},[e._v("\n Teardown\n ")])],1)],1)],1)],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"4"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Continue after Error",value:"continueAfterError","hide-details":"","data-test":"continue-after-error"},model:{value:e.options,callback:function(n){Jn().f[7]++,Jn().s[10]++,e.options=n},expression:"options"}})],1),e._v(" "),n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Loop",value:"loop","hide-details":"","data-test":"loop"},model:{value:e.options,callback:function(n){Jn().f[8]++,Jn().s[11]++,e.options=n},expression:"options"}})],1)],1)],1),e._v(" "),n("v-col",{attrs:{cols:"8"}},[n("v-row",{attrs:{"no-gutters":"",justify:"end"}},[n("v-col",{attrs:{cols:"5"}},[n("v-select",{staticClass:"mb-2 mr-2",attrs:{label:"Group:","hide-details":"",dense:"",outlined:"",items:e.groups,"data-test":"select-group"},on:{change:e.groupChanged},model:{value:e.group,callback:function(n){Jn().f[9]++,Jn().s[12]++,e.group=n},expression:"group"}})],1),e._v(" "),n("v-col",{attrs:{cols:"auto"}},[n("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:e.disableButtons,"data-test":"start-group"},on:{click:function(n){return Jn().f[10]++,Jn().s[13]++,e.$emit("button",{method:"start",suite:e.suite,group:e.group,options:e.options})}}},[e._v("\n Start\n ")]),e._v(" "),n("v-btn",{staticClass:"mr-2",attrs:{color:"primary","data-test":"setup-group",disabled:(Jn().b[2][0]++,e.disableButtons||(Jn().b[2][1]++,!e.setupGroupEnabled))},on:{click:function(n){return Jn().f[11]++,Jn().s[14]++,e.$emit("button",{method:"setup",suite:e.suite,group:e.group,options:e.options})}}},[e._v("\n Setup\n ")]),e._v(" "),n("v-btn",{attrs:{color:"primary","data-test":"teardown-group",disabled:(Jn().b[3][0]++,e.disableButtons||(Jn().b[3][1]++,!e.teardownGroupEnabled))},on:{click:function(n){return Jn().f[12]++,Jn().s[15]++,e.$emit("button",{method:"teardown",suite:e.suite,group:e.group,options:e.options})}}},[e._v("\n Teardown\n ")])],1)],1)],1)],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"4"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Abort after Error",value:"abortAfterError","hide-details":"","data-test":"abort-after-error"},model:{value:e.options,callback:function(n){Jn().f[13]++,Jn().s[16]++,e.options=n},expression:"options"}})],1),e._v(" "),n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{disabled:!e.options.includes("loop"),label:"Break Loop on Error",value:"breakLoopOnError","hide-details":"","data-test":"break-loop-on-error"},model:{value:e.options,callback:function(n){Jn().f[14]++,Jn().s[17]++,e.options=n},expression:"options"}})],1)],1)],1),e._v(" "),n("v-col",{attrs:{cols:"8"}},[n("v-row",{attrs:{"no-gutters":"",justify:"end"}},[n("v-col",{attrs:{cols:"5"}},[n("v-select",{staticClass:"mb-2 mr-2",attrs:{label:"Script:","hide-details":"",dense:"",outlined:"",items:e.scripts,"data-test":"select-script"},on:{change:e.scriptChanged},model:{value:e.script,callback:function(n){Jn().f[15]++,Jn().s[18]++,e.script=n},expression:"script"}})],1),e._v(" "),n("v-col",{attrs:{cols:"auto"}},[n("v-btn",{attrs:{color:"primary",disabled:e.disableButtons,"data-test":"start-script"},on:{click:function(n){return Jn().f[16]++,Jn().s[19]++,e.$emit("button",{method:"start",suite:e.suite,group:e.group,script:e.script,options:e.options})}}},[e._v("\n Start\n ")]),e._v(" "),n("div",{staticStyle:{width:"296px"}})],1)],1)],1)],1)],1)])},Qn=(Jn().s[20]++,[]);function et(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",n="9508f2e457c4d0f3cbf1c50cca1a3c280d9157ca",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",statementMap:{0:{start:{line:14,column:4},end:{line:22,column:5}},1:{start:{line:26,column:6},end:{line:30,column:7}},2:{start:{line:27,column:8},end:{line:27,column:19}},3:{start:{line:29,column:8},end:{line:29,column:20}},4:{start:{line:33,column:6},end:{line:37,column:7}},5:{start:{line:34,column:8},end:{line:34,column:19}},6:{start:{line:36,column:8},end:{line:36,column:20}},7:{start:{line:40,column:6},end:{line:48,column:7}},8:{start:{line:45,column:8},end:{line:45,column:19}},9:{start:{line:47,column:8},end:{line:47,column:20}},10:{start:{line:51,column:6},end:{line:59,column:7}},11:{start:{line:56,column:8},end:{line:56,column:19}},12:{start:{line:58,column:8},end:{line:58,column:20}},13:{start:{line:63,column:4},end:{line:63,column:21}},14:{start:{line:69,column:8},end:{line:69,column:29}},15:{start:{line:76,column:6},end:{line:76,column:46}},16:{start:{line:77,column:6},end:{line:85,column:7}},17:{start:{line:81,column:8},end:{line:81,column:25}},18:{start:{line:83,column:8},end:{line:83,column:67}},19:{start:{line:84,column:8},end:{line:84,column:75}},20:{start:{line:88,column:6},end:{line:88,column:46}},21:{start:{line:89,column:6},end:{line:89,column:39}},22:{start:{line:92,column:6},end:{line:92,column:24}},23:{start:{line:93,column:6},end:{line:93,column:21}},24:{start:{line:94,column:6},end:{line:94,column:22}},25:{start:{line:95,column:6},end:{line:95,column:60}},26:{start:{line:97,column:6},end:{line:97,column:39}},27:{start:{line:100,column:6},end:{line:100,column:24}},28:{start:{line:101,column:6},end:{line:101,column:22}},29:{start:{line:102,column:6},end:{line:102,column:68}},30:{start:{line:104,column:6},end:{line:104,column:41}},31:{start:{line:107,column:6},end:{line:107,column:25}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:13,column:2},end:{line:13,column:3}},loc:{start:{line:13,column:9},end:{line:23,column:3}},line:13},1:{name:"(anonymous_1)",decl:{start:{line:25,column:4},end:{line:25,column:5}},loc:{start:{line:25,column:24},end:{line:31,column:5}},line:25},2:{name:"(anonymous_2)",decl:{start:{line:32,column:4},end:{line:32,column:5}},loc:{start:{line:32,column:27},end:{line:38,column:5}},line:32},3:{name:"(anonymous_3)",decl:{start:{line:39,column:4},end:{line:39,column:5}},loc:{start:{line:39,column:24},end:{line:49,column:5}},line:39},4:{name:"(anonymous_4)",decl:{start:{line:50,column:4},end:{line:50,column:5}},loc:{start:{line:50,column:27},end:{line:60,column:5}},line:50},5:{name:"(anonymous_5)",decl:{start:{line:62,column:2},end:{line:62,column:3}},loc:{start:{line:62,column:12},end:{line:64,column:3}},line:62},6:{name:"(anonymous_6)",decl:{start:{line:68,column:15},end:{line:68,column:16}},loc:{start:{line:68,column:41},end:{line:70,column:7}},line:68},7:{name:"(anonymous_7)",decl:{start:{line:75,column:4},end:{line:75,column:5}},loc:{start:{line:75,column:21},end:{line:86,column:5}},line:75},8:{name:"(anonymous_8)",decl:{start:{line:87,column:4},end:{line:87,column:5}},loc:{start:{line:87,column:17},end:{line:90,column:5}},line:87},9:{name:"(anonymous_9)",decl:{start:{line:91,column:4},end:{line:91,column:5}},loc:{start:{line:91,column:24},end:{line:98,column:5}},line:91},10:{name:"(anonymous_10)",decl:{start:{line:99,column:4},end:{line:99,column:5}},loc:{start:{line:99,column:24},end:{line:105,column:5}},line:99},11:{name:"(anonymous_11)",decl:{start:{line:106,column:4},end:{line:106,column:5}},loc:{start:{line:106,column:25},end:{line:108,column:5}},line:106}},branchMap:{0:{loc:{start:{line:26,column:6},end:{line:30,column:7}},type:"if",locations:[{start:{line:26,column:6},end:{line:30,column:7}},{start:{line:28,column:13},end:{line:30,column:7}}],line:26},1:{loc:{start:{line:26,column:10},end:{line:26,column:55}},type:"binary-expr",locations:[{start:{line:26,column:10},end:{line:26,column:20}},{start:{line:26,column:24},end:{line:26,column:55}}],line:26},2:{loc:{start:{line:33,column:6},end:{line:37,column:7}},type:"if",locations:[{start:{line:33,column:6},end:{line:37,column:7}},{start:{line:35,column:13},end:{line:37,column:7}}],line:33},3:{loc:{start:{line:33,column:10},end:{line:33,column:58}},type:"binary-expr",locations:[{start:{line:33,column:10},end:{line:33,column:20}},{start:{line:33,column:24},end:{line:33,column:58}}],line:33},4:{loc:{start:{line:40,column:6},end:{line:48,column:7}},type:"if",locations:[{start:{line:40,column:6},end:{line:48,column:7}},{start:{line:46,column:13},end:{line:48,column:7}}],line:40},5:{loc:{start:{line:41,column:8},end:{line:43,column:58}},type:"binary-expr",locations:[{start:{line:41,column:8},end:{line:41,column:18}},{start:{line:42,column:8},end:{line:42,column:18}},{start:{line:43,column:8},end:{line:43,column:58}}],line:41},6:{loc:{start:{line:51,column:6},end:{line:59,column:7}},type:"if",locations:[{start:{line:51,column:6},end:{line:59,column:7}},{start:{line:57,column:13},end:{line:59,column:7}}],line:51},7:{loc:{start:{line:52,column:8},end:{line:54,column:61}},type:"binary-expr",locations:[{start:{line:52,column:8},end:{line:52,column:18}},{start:{line:53,column:8},end:{line:53,column:18}},{start:{line:54,column:8},end:{line:54,column:61}}],line:52},8:{loc:{start:{line:77,column:6},end:{line:85,column:7}},type:"if",locations:[{start:{line:77,column:6},end:{line:85,column:7}},{start:{line:82,column:13},end:{line:85,column:7}}],line:77},9:{loc:{start:{line:78,column:8},end:{line:79,column:65}},type:"binary-expr",locations:[{start:{line:78,column:8},end:{line:78,column:46}},{start:{line:79,column:8},end:{line:79,column:65}}],line:78}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0,0],6:[0,0],7:[0,0,0],8:[0,0],9:[0,0]},inputSourceMap:{version:3,sources:["SuiteRunner.vue"],names:[],mappings:";AA6OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"SuiteRunner.vue",sourceRoot:"src/tools/ScriptRunner",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2023, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <div id="tr-container">\n <v-row no-gutters align="center">\n <v-col cols="4">\n <v-row no-gutters>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Pause on Error"\n value="pauseOnError"\n hide-details\n data-test="pause-on-error"\n />\n </v-col>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Manual"\n value="manual"\n hide-details\n data-test="manual"\n />\n </v-col>\n </v-row>\n </v-col>\n <v-col cols="8">\n <v-row no-gutters justify="end">\n <v-col cols="5">\n <v-select\n label="Suite:"\n class="mb-2 mr-2"\n hide-details\n dense\n outlined\n @change="suiteChanged"\n :items="suites"\n v-model="suite"\n data-test="select-suite"\n />\n </v-col>\n <v-col cols="auto">\n <v-btn\n color="primary"\n class="mr-2"\n :disabled="disableButtons"\n @click="$emit(\'button\', { method: \'start\', suite, options })"\n data-test="start-suite"\n >\n Start\n </v-btn>\n <v-btn\n color="primary"\n class="mr-2"\n @click="$emit(\'button\', { method: \'setup\', suite, options })"\n data-test="setup-suite"\n :disabled="disableButtons || !setupSuiteEnabled"\n >\n Setup\n </v-btn>\n <v-btn\n color="primary"\n @click="$emit(\'button\', { method: \'teardown\', suite, options })"\n data-test="teardown-suite"\n :disabled="disableButtons || !teardownSuiteEnabled"\n >\n Teardown\n </v-btn>\n </v-col>\n </v-row>\n </v-col>\n </v-row>\n <v-row no-gutters>\n <v-col cols="4">\n <v-row no-gutters>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Continue after Error"\n value="continueAfterError"\n hide-details\n data-test="continue-after-error"\n />\n </v-col>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Loop"\n value="loop"\n hide-details\n data-test="loop"\n />\n </v-col>\n </v-row>\n </v-col>\n <v-col cols="8">\n <v-row no-gutters justify="end">\n <v-col cols="5">\n <v-select\n label="Group:"\n class="mb-2 mr-2"\n hide-details\n dense\n outlined\n @change="groupChanged"\n :items="groups"\n v-model="group"\n data-test="select-group"\n />\n </v-col>\n <v-col cols="auto">\n <v-btn\n color="primary"\n class="mr-2"\n :disabled="disableButtons"\n @click="\n $emit(\'button\', { method: \'start\', suite, group, options })\n "\n data-test="start-group"\n >\n Start\n </v-btn>\n <v-btn\n color="primary"\n class="mr-2"\n @click="\n $emit(\'button\', { method: \'setup\', suite, group, options })\n "\n data-test="setup-group"\n :disabled="disableButtons || !setupGroupEnabled"\n >\n Setup\n </v-btn>\n <v-btn\n color="primary"\n @click="\n $emit(\'button\', { method: \'teardown\', suite, group, options })\n "\n data-test="teardown-group"\n :disabled="disableButtons || !teardownGroupEnabled"\n >\n Teardown\n </v-btn>\n </v-col>\n </v-row>\n </v-col>\n </v-row>\n <v-row no-gutters>\n <v-col cols="4">\n <v-row no-gutters>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Abort after Error"\n value="abortAfterError"\n hide-details\n data-test="abort-after-error"\n />\n </v-col>\n <v-col cols="6">\n <v-checkbox\n :disabled="!options.includes(\'loop\')"\n v-model="options"\n label="Break Loop on Error"\n value="breakLoopOnError"\n hide-details\n data-test="break-loop-on-error"\n />\n </v-col>\n </v-row>\n </v-col>\n <v-col cols="8">\n <v-row no-gutters justify="end">\n <v-col cols="5">\n <v-select\n label="Script:"\n class="mb-2 mr-2"\n hide-details\n dense\n outlined\n @change="scriptChanged"\n :items="scripts"\n v-model="script"\n data-test="select-script"\n />\n </v-col>\n <v-col cols="auto">\n <v-btn\n color="primary"\n :disabled="disableButtons"\n @click="\n $emit(\'button\', {\n method: \'start\',\n suite,\n group,\n script,\n options,\n })\n "\n data-test="start-script"\n >\n Start\n </v-btn>\n \x3c!-- TODO: Don\'t like this hard coded spacer but not sure how else\n to push the Start button over to line up with the other Starts --\x3e\n <div style="width: 296px" />\n </v-col>\n </v-row>\n </v-col>\n </v-row>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n props: {\n suiteMap: {\n type: Object,\n required: true,\n },\n disableButtons: {\n type: Boolean,\n required: true,\n },\n },\n data() {\n return {\n suites: [],\n groups: [],\n scripts: [],\n suite: \'\',\n group: \'\',\n script: \'\',\n options: [\'pauseOnError\', \'manual\', \'continueAfterError\'],\n }\n },\n computed: {\n setupSuiteEnabled() {\n if (this.suite && this.suiteMap[this.suite].setup) {\n return true\n } else {\n return false\n }\n },\n teardownSuiteEnabled() {\n if (this.suite && this.suiteMap[this.suite].teardown) {\n return true\n } else {\n return false\n }\n },\n setupGroupEnabled() {\n if (\n this.suite &&\n this.group &&\n this.suiteMap[this.suite].groups[this.group].setup\n ) {\n return true\n } else {\n return false\n }\n },\n teardownGroupEnabled() {\n if (\n this.suite &&\n this.group &&\n this.suiteMap[this.suite].groups[this.group].teardown\n ) {\n return true\n } else {\n return false\n }\n },\n },\n created() {\n this.initSuites()\n },\n // Watch the suiteMap so we can recreate the suites and set the initial value\n watch: {\n suiteMap: {\n handler: function (newVal, oldVal) {\n this.updateSuiteMap()\n },\n deep: true, // Deep watcher because suiteMap is a nested Object\n },\n },\n methods: {\n updateSuiteMap() {\n this.suites = Object.keys(this.suiteMap)\n if (\n this.suiteMap[this.suite] == undefined ||\n this.suiteMap[this.suite].groups[this.group] == undefined\n ) {\n this.initSuites()\n } else {\n this.groups = Object.keys(this.suiteMap[this.suite].groups)\n this.scripts = this.suiteMap[this.suite].groups[this.group].scripts\n }\n },\n initSuites() {\n this.suites = Object.keys(this.suiteMap)\n this.suiteChanged(this.suites[0])\n },\n suiteChanged(event) {\n this.suite = event\n this.group = \'\'\n this.script = \'\'\n this.groups = Object.keys(this.suiteMap[event].groups)\n // Make the group default be the first group\n this.groupChanged(this.groups[0])\n },\n groupChanged(event) {\n this.group = event\n this.script = \'\'\n this.scripts = this.suiteMap[this.suite].groups[event].scripts\n // Make the script default be the first\n this.scriptChanged(this.scripts[0])\n },\n scriptChanged(event) {\n this.script = event\n },\n },\n}\n<\/script>\n\n<style lang="scss" scoped>\n#tr-container {\n padding-top: 0px;\n padding-bottom: 15px;\n padding-left: 0px;\n padding-right: 0px;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"9508f2e457c4d0f3cbf1c50cca1a3c280d9157ca"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return et=function(){return o},o}et();const nt={props:{suiteMap:{type:Object,required:!0},disableButtons:{type:Boolean,required:!0}},data(){return et().f[0]++,et().s[0]++,{suites:[],groups:[],scripts:[],suite:"",group:"",script:"",options:["pauseOnError","manual","continueAfterError"]}},computed:{setupSuiteEnabled(){return et().f[1]++,et().s[1]++,et().b[1][0]++,this.suite&&(et().b[1][1]++,this.suiteMap[this.suite].setup)?(et().b[0][0]++,et().s[2]++,!0):(et().b[0][1]++,et().s[3]++,!1)},teardownSuiteEnabled(){return et().f[2]++,et().s[4]++,et().b[3][0]++,this.suite&&(et().b[3][1]++,this.suiteMap[this.suite].teardown)?(et().b[2][0]++,et().s[5]++,!0):(et().b[2][1]++,et().s[6]++,!1)},setupGroupEnabled(){return et().f[3]++,et().s[7]++,et().b[5][0]++,this.suite&&(et().b[5][1]++,this.group)&&(et().b[5][2]++,this.suiteMap[this.suite].groups[this.group].setup)?(et().b[4][0]++,et().s[8]++,!0):(et().b[4][1]++,et().s[9]++,!1)},teardownGroupEnabled(){return et().f[4]++,et().s[10]++,et().b[7][0]++,this.suite&&(et().b[7][1]++,this.group)&&(et().b[7][2]++,this.suiteMap[this.suite].groups[this.group].teardown)?(et().b[6][0]++,et().s[11]++,!0):(et().b[6][1]++,et().s[12]++,!1)}},created(){et().f[5]++,et().s[13]++,this.initSuites()},watch:{suiteMap:{handler:function(e,n){et().f[6]++,et().s[14]++,this.updateSuiteMap()},deep:!0}},methods:{updateSuiteMap(){et().f[7]++,et().s[15]++,this.suites=Object.keys(this.suiteMap),et().s[16]++,et().b[9][0]++,void 0==this.suiteMap[this.suite]||(et().b[9][1]++,void 0==this.suiteMap[this.suite].groups[this.group])?(et().b[8][0]++,et().s[17]++,this.initSuites()):(et().b[8][1]++,et().s[18]++,this.groups=Object.keys(this.suiteMap[this.suite].groups),et().s[19]++,this.scripts=this.suiteMap[this.suite].groups[this.group].scripts)},initSuites(){et().f[8]++,et().s[20]++,this.suites=Object.keys(this.suiteMap),et().s[21]++,this.suiteChanged(this.suites[0])},suiteChanged(e){et().f[9]++,et().s[22]++,this.suite=e,et().s[23]++,this.group="",et().s[24]++,this.script="",et().s[25]++,this.groups=Object.keys(this.suiteMap[e].groups),et().s[26]++,this.groupChanged(this.groups[0])},groupChanged(e){et().f[10]++,et().s[27]++,this.group=e,et().s[28]++,this.script="",et().s[29]++,this.scripts=this.suiteMap[this.suite].groups[e].scripts,et().s[30]++,this.scriptChanged(this.scripts[0])},scriptChanged(e){et().f[11]++,et().s[31]++,this.script=e}}},tt=nt;t(7542);var lt=(0,f.A)(tt,Zn,Qn,!1,null,"7585b76b",null);const it=lt.exports;function st(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",n="5c1f28797632ce912df046ae1513a23f1c0a8b30",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1781}},4:{start:{line:1,column:206},end:{line:1,column:419}},5:{start:{line:1,column:783},end:{line:1,column:803}},6:{start:{line:1,column:1129},end:{line:1,column:1143}},7:{start:{line:1,column:1277},end:{line:1,column:1482}},8:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:182},end:{line:1,column:183}},loc:{start:{line:1,column:205},end:{line:1,column:420}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:767},end:{line:1,column:768}},loc:{start:{line:1,column:782},end:{line:1,column:804}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1113},end:{line:1,column:1114}},loc:{start:{line:1,column:1128},end:{line:1,column:1144}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1253},end:{line:1,column:1254}},loc:{start:{line:1,column:1276},end:{line:1,column:1483}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},f:{0:0,1:0,2:0,3:0,4:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"5c1f28797632ce912df046ae1513a23f1c0a8b30"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return st=function(){return o},o}st(),st().s[0]++;var ot=function(){st().f[0]++;var e=(st().s[1]++,this),n=(st().s[2]++,e._self._c);return st().s[3]++,n("div",[n("v-card",[n("v-card-title",[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return st().f[1]++,st().s[4]++,[n("div",e._g(e._b({},"div",l,!1),t),[n("v-btn",{staticClass:"mx-2",attrs:{icon:"","data-test":"download-log"},on:{click:e.downloadLog}},[n("v-icon",[e._v(" mdi-download ")])],1)],1)]}}])},[e._v(" "),n("span",[e._v(" Download Log ")])]),e._v("\n Script Messages\n "),n("v-spacer"),e._v(" "),n("v-select",{staticClass:"mr-2",staticStyle:{"max-width":"170px"},attrs:{dense:"","hide-details":"",outlined:"",items:e.messageOrderOptions,"data-test":"message-order"},model:{value:e.messageOrder,callback:function(n){st().f[2]++,st().s[5]++,e.messageOrder=n},expression:"messageOrder"}}),e._v(" "),n("v-spacer"),e._v(" "),n("v-text-field",{staticClass:"search",attrs:{label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","single-line":"","hide-details":"","data-test":"search-messages"},model:{value:e.search,callback:function(n){st().f[3]++,st().s[6]++,e.search=n},expression:"search"}}),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return st().f[4]++,st().s[7]++,[n("div",e._g(e._b({},"div",l,!1),t),[n("v-btn",{staticClass:"mx-2",attrs:{icon:"","data-test":"clear-log"},on:{click:e.clearLog}},[n("v-icon",[e._v(" mdi-delete ")])],1)],1)]}}])},[e._v(" "),n("span",[e._v(" Clear Log ")])])],1),e._v(" "),n("v-data-table",{attrs:{headers:e.headers,items:e.messages,search:e.search,"calculate-widths":"","disable-pagination":"","hide-default-footer":"",dense:"",height:"45vh","data-test":"output-messages"}})],1)],1)},at=(st().s[8]++,[]);function rt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",n="dd228fdaece8bea2c3f559213f52fffed6770b15",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",statementMap:{0:{start:{line:12,column:4},end:{line:17,column:5}},1:{start:{line:21,column:6},end:{line:21,column:34}},2:{start:{line:27,column:8},end:{line:27,column:25}},3:{start:{line:30,column:8},end:{line:30,column:34}},4:{start:{line:36,column:21},end:{line:36,column:79}},5:{start:{line:36,column:52},end:{line:36,column:67}},6:{start:{line:37,column:19},end:{line:39,column:8}},7:{start:{line:41,column:19},end:{line:41,column:46}},8:{start:{line:42,column:6},end:{line:42,column:43}},9:{start:{line:43,column:6},end:{line:46,column:7}},10:{start:{line:47,column:6},end:{line:47,column:18}},11:{start:{line:50,column:6},end:{line:60,column:10}},12:{start:{line:56,column:10},end:{line:56,column:28}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:11,column:2},end:{line:11,column:3}},loc:{start:{line:11,column:9},end:{line:18,column:3}},line:11},1:{name:"(anonymous_1)",decl:{start:{line:20,column:18},end:{line:20,column:19}},loc:{start:{line:20,column:48},end:{line:22,column:5}},line:20},2:{name:"(anonymous_2)",decl:{start:{line:26,column:6},end:{line:26,column:7}},loc:{start:{line:26,column:12},end:{line:28,column:7}},line:26},3:{name:"(anonymous_3)",decl:{start:{line:29,column:6},end:{line:29,column:7}},loc:{start:{line:29,column:17},end:{line:31,column:7}},line:29},4:{name:"(anonymous_4)",decl:{start:{line:35,column:4},end:{line:35,column:5}},loc:{start:{line:35,column:18},end:{line:48,column:5}},line:35},5:{name:"(anonymous_5)",decl:{start:{line:36,column:39},end:{line:36,column:40}},loc:{start:{line:36,column:52},end:{line:36,column:67}},line:36},6:{name:"(anonymous_6)",decl:{start:{line:49,column:14},end:{line:49,column:15}},loc:{start:{line:49,column:26},end:{line:61,column:5}},line:49},7:{name:"(anonymous_7)",decl:{start:{line:55,column:14},end:{line:55,column:15}},loc:{start:{line:55,column:26},end:{line:57,column:9}},line:55},8:{name:"(anonymous_8)",decl:{start:{line:58,column:15},end:{line:58,column:16}},loc:{start:{line:58,column:30},end:{line:60,column:9}},line:58}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},b:{},inputSourceMap:{version:3,sources:["ScriptLogMessages.vue"],names:[],mappings:";AA8FA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ScriptLogMessages.vue",sourceRoot:"src/tools/ScriptRunner",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2023, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <v-card>\n <v-card-title>\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-btn\n icon\n class="mx-2"\n data-test="download-log"\n @click="downloadLog"\n >\n <v-icon> mdi-download </v-icon>\n </v-btn>\n </div>\n </template>\n <span> Download Log </span>\n </v-tooltip>\n Script Messages\n <v-spacer />\n <v-select\n dense\n hide-details\n outlined\n :items="messageOrderOptions"\n v-model="messageOrder"\n class="mr-2"\n style="max-width: 170px"\n data-test="message-order"\n />\n <v-spacer />\n <v-text-field\n v-model="search"\n label="Search"\n prepend-inner-icon="mdi-magnify"\n clearable\n outlined\n dense\n single-line\n hide-details\n class="search"\n data-test="search-messages"\n />\n\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-btn icon class="mx-2" data-test="clear-log" @click="clearLog">\n <v-icon> mdi-delete </v-icon>\n </v-btn>\n </div>\n </template>\n <span> Clear Log </span>\n </v-tooltip>\n </v-card-title>\n <v-data-table\n :headers="headers"\n :items="messages"\n :search="search"\n calculate-widths\n disable-pagination\n hide-default-footer\n dense\n height="45vh"\n data-test="output-messages"\n />\n </v-card>\n </div>\n</template>\n\n<script>\nimport { format } from \'date-fns\'\n\nexport default {\n props: {\n value: {\n type: Array,\n required: true,\n },\n },\n data() {\n return {\n search: \'\',\n headers: [{ text: \'Message\', value: \'message\', sortable: false }],\n messageOrderOptions: [\'Newest on Top\', \'Newest on Bottom\'],\n messageOrder: \'Newest on Top\',\n }\n },\n watch: {\n messageOrder: function (newValue, oldValue) {\n this.$emit(\'sort\', newValue)\n },\n },\n computed: {\n messages: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n downloadLog() {\n const output = this.messages.map((message) => message.message).join(\'\\n\')\n const blob = new Blob([output], {\n type: \'text/plain\',\n })\n // Make a link and then \'click\' on it to start the download\n const link = document.createElement(\'a\')\n link.href = URL.createObjectURL(blob)\n link.setAttribute(\n \'download\',\n format(Date.now(), \'yyyy_MM_dd_HH_mm_ss\') + \'_sr_message_log.txt\',\n )\n link.click()\n },\n clearLog: function () {\n this.$dialog\n .confirm(\'Are you sure you want to clear the log?\', {\n okText: \'Clear\',\n cancelText: \'Cancel\',\n })\n .then((dialog) => {\n this.messages = []\n })\n .catch(function (err) {\n // Cancelling the dialog forces catch and sets err to true\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"dd228fdaece8bea2c3f559213f52fffed6770b15"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return rt=function(){return o},o}rt();const ct={props:{value:{type:Array,required:!0}},data(){return rt().f[0]++,rt().s[0]++,{search:"",headers:[{text:"Message",value:"message",sortable:!1}],messageOrderOptions:["Newest on Top","Newest on Bottom"],messageOrder:"Newest on Top"}},watch:{messageOrder:function(e,n){rt().f[1]++,rt().s[1]++,this.$emit("sort",e)}},computed:{messages:{get(){return rt().f[2]++,rt().s[2]++,this.value},set(e){rt().f[3]++,rt().s[3]++,this.$emit("input",e)}}},methods:{downloadLog(){rt().f[4]++;const e=(rt().s[4]++,this.messages.map((e=>(rt().f[5]++,rt().s[5]++,e.message))).join("\n")),n=(rt().s[6]++,new Blob([e],{type:"text/plain"})),t=(rt().s[7]++,document.createElement("a"));rt().s[8]++,t.href=URL.createObjectURL(n),rt().s[9]++,t.setAttribute("download",(0,u.GP)(Date.now(),"yyyy_MM_dd_HH_mm_ss")+"_sr_message_log.txt"),rt().s[10]++,t.click()},clearLog:function(){rt().f[6]++,rt().s[11]++,this.$dialog.confirm("Are you sure you want to clear the log?",{okText:"Clear",cancelText:"Cancel"}).then((e=>{rt().f[7]++,rt().s[12]++,this.messages=[]})).catch((function(e){rt().f[8]++}))}}},ut=ct;var dt=(0,f.A)(ut,ot,at,!1,null,null,null);const mt=dt.exports;var At=function(){var e=this,n=e._self._c;return n("div",{ref:"bar",style:e.computedStyle},[n("v-card",{attrs:{"min-height":e.height,"min-width":e.width}},[n("v-system-bar",[n("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(n){e.errorDialog=!0}}},[e._v("\n mdi-alert\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Errors ")])])],1),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"edit-screen-icon"},on:{click:e.openEdit}},[e._v("\n mdi-pencil\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Edit Screen ")])]),e._v(" "),e.fixFloated?e._e():n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"float-screen-icon"},on:{click:e.floatScreen}},[e._v("\n "+e._s(e.floated?"mdi-balloon":"mdi-view-grid-outline")+"\n ")])],1)]}}],null,!1,4011884781)},[e._v(" "),n("span",[e._v(" "+e._s(e.floated?"Unfloat Screen":"Float Screen")+" ")])]),e._v(" "),e.floated?n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"up-screen-icon"},on:{click:e.upScreen}},[e._v("\n mdi-arrow-up\n ")])],1)]}}],null,!1,3296657168)},[e._v(" "),n("span",[e._v(" Move Screen Up ")])]):e._e(),e._v(" "),e.floated&&e.zIndex>e.minZ?n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"down-screen-icon"},on:{click:e.downScreen}},[e._v("\n mdi-arrow-down\n ")])],1)]}}],null,!1,1167902535)},[e._v(" "),n("span",[e._v(" Move Screen Down ")])]):e._e(),e._v(" "),n("v-spacer"),e._v(" "),n("span",[e._v(e._s(e.target)+" "+e._s(e.screen))]),e._v(" "),n("v-spacer"),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-minimize\n ")]),e._v(" "),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-maximize\n ")])],1)]}}])},[e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize Screen ")]),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize Screen ")])]),e._v(" "),e.showClose?n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"close-screen-icon"},on:{click:function(n){return e.$emit("close-screen")}}},[e._v("\n mdi-close-box\n ")])],1)]}}],null,!1,1921143701)},[e._v(" "),n("span",[e._v(" Close Screen ")])]):e._e()],1),e._v(" "),e.editDialog?e._e():n("v-expand-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"screen",staticClass:"pa-1",staticStyle:{position:"relative"}},[n("v-overlay",{staticStyle:{"pointer-events":"none"},attrs:{value:0!==e.errors.length,opacity:"0.8",absolute:""}}),e._v(" "),n("vertical-widget",e._g({key:e.screenKey,attrs:{widgets:e.layoutStack[0].widgets}},e.$listeners))],1)])],1),e._v(" "),e.editDialog?n("edit-screen-dialog",{attrs:{target:e.target,screen:e.screen,definition:e.currentDefinition,keywords:e.keywords,errors:e.errors},on:{save:function(n){return e.saveEdit(n)},cancel:function(n){return e.cancelEdit()},delete:function(n){return e.deleteScreen()}},model:{value:e.editDialog,callback:function(n){e.editDialog=n},expression:"editDialog"}}):e._e(),e._v(" "),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(n){e.errorDialog=n},expression:"errorDialog"}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v(" Screen: "+e._s(e.target)+" "+e._s(e.screen)+" Errors ")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("v-card",[n("v-textarea",{staticClass:"errors",attrs:{readonly:"",rows:"13",value:e.error}})],1)],1)],1)},pt=[],ht=t(3069),vt=t(1649),ft=t(5485),gt=t.n(ft),Ct=t(9677),bt=t.n(Ct),_t=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{persistent:"",width:"75vw"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("div",{staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"delete-screen-icon"},on:{click:e.deleteScreen}},[e._v("\n mdi-delete\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Delete Screen ")])])],1),e._v(" "),n("v-spacer"),e._v(" "),n("span",[e._v(" Edit Screen: "+e._s(e.target)+" "+e._s(e.screen)+" ")]),e._v(" "),n("v-spacer"),e._v(" "),n("div",{staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"download-screen-icon"},on:{click:e.downloadScreen}},[e._v("\n mdi-download\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Download Screen ")])])],1)],1),e._v(" "),n("v-card-text",[n("v-row",{staticClass:"mt-3"},[e._v(" Upload a screen file. ")]),e._v(" "),n("v-row",{attrs:{"no-gutters":"",align:"center"}},[n("v-btn",{staticClass:"mr-3",attrs:{disabled:!e.file,color:"primary","data-test":"edit-screen-load"},on:{click:e.loadFile}},[e._v("\n Load\n ")]),e._v(" "),n("v-file-input",{attrs:{"truncate-length":"15",accept:".txt",label:"Click to select .txt screen file."},model:{value:e.file,callback:function(n){e.file=n},expression:"file"}})],1),e._v(" "),n("v-row",{staticClass:"mb-2"},[e._v(" Edit the screen definition. ")]),e._v(" "),n("v-row",{staticClass:"mb-2"},[n("pre",{ref:"editor",staticClass:"editor"})]),e._v(" "),e._l(e.editErrors,(function(t,l){return n("v-row",{key:l,staticClass:"my-3"},[n("span",{staticClass:"red--text",domProps:{textContent:e._s(t)}})])})),e._v(" "),n("v-row",[n("span",[e._v("Ctrl-space brings up autocomplete")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"edit-screen-cancel"},on:{click:function(n){return e.$emit("cancel")}}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"edit-screen-save"},on:{click:function(n){e.$emit("save",e.editor.getValue())}}},[e._v("\n Save\n ")])],1)],2)],1)],1)},yt=[],wt=(t(1136),t(814));class xt{constructor(){(0,wt.A)(this,"getCompletions",(async function(e,n,t,l,i){var s=n.getLine(t.row),o=s.slice(0,t.column),a=o.trimStart().split(/ (?![^<]*>)/),r=this.autocompleteData;a.length>1&&(r=r.find((e=>e.caption===a[0])));var c={},u=!0;if(r&&r["params"]){r["params"].length==a.length-1&&(u=!1);var d=r["params"][a.length-2];if(d["Target name"]){var m=await this.api.get_target_names();r=m.reduce(((e,n)=>(e[n]=1,e)),{})}else if(d["Packet name"]){var A=a[a.length-2],p=await this.api.get_all_tlm(A);r=p.reduce(((e,n)=>(e[n.packet_name]=n.description,e)),{})}else if(d["Item name"]){A=a[a.length-3];var h=a[a.length-2];h=await this.api.get_tlm(A,h);r=h.items.reduce(((e,n)=>(e[n.name]=n.description,e)),{})}else r=d;c=Object.keys(r||{}).map((e=>{var n={value:e+(u?" ":""),command:u&&"startAutocomplete"};return"string"===typeof r[e]&&(n["meta"]=r[e]),n}))}else c=r;i(null,c)})),r.A.get("/openc3-api/autocomplete/data/screen").then((e=>{this.autocompleteData=e.data})),this.api=new P.x}}const kt={props:{value:Boolean,target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:()=>[]},errors:{type:Array,default:()=>[]}},data(){return{file:null}},computed:{editErrors:function(){if(""===this.definition&&!this.file)return["Input can not be blank."];if(0!==this.errors.length){let e=new Set,n=[];for(const t of this.errors){if(e.has(t.message))continue;let l=`At ${t.lineNumber}: (${t.line}) ${t.message}.`;t.usage&&(l+=` Usage: ${t.usage}`),n.push(l),e.add(t.message)}return n}return[]},show:{get(){return this.value},set(e){this.$emit("input",e)}}},mounted:function(){this.editor=c.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight");const e=this.buildScreenMode();this.editor.session.setMode(new e),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setOption("enableBasicAutocompletion",!0),this.editor.setOption("enableLiveAutocompletion",!0),this.editor.completers=[new xt],this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.definition),this.editor.clearSelection(),this.editor.focus()},beforeDestroy(){this.editor.destroy(),this.editor.container.remove()},methods:{buildScreenMode(){var e=c.require("ace/lib/oop"),n=c.require("ace/mode/text_highlight_rules").TextHighlightRules;let t=this.keywords.join("|");var l=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"\\b\\d+(?:\\.\\d+)?\\b"},{token:"keyword",regex:new RegExp(`^\\s*(${t})\\b`)}]},this.normalizeRules()};e.inherits(l,n);var i=function(){this.HighlightRules=l},s=c.require("ace/mode/text").Mode;return e.inherits(i,s),function(){this.$id="ace/mode/openc3"}.call(i.prototype),i},downloadScreen:function(){const e=new Blob([this.editor.getValue()],{type:"text/plain"}),n=document.createElement("a");n.href=URL.createObjectURL(e),n.setAttribute("download",`${this.screen.toLowerCase()}.txt`),n.click()},loadFile:function(){const e=new FileReader;e.readAsText(this.file);const n=this;e.onload=function(){n.editor.setValue(e.result),n.file=null}},deleteScreen:function(){this.$dialog.confirm("Are you sure you want to delete this screen?!",{okText:"Delete",cancelText:"Cancel"}).then((e=>{this.$emit("delete")}))}}},St=kt;t(8765),t(3065);var Mt=(0,f.A)(St,_t,yt,!1,null,"791fd9ac",null);const Et=Mt.exports,Tt=20,Rt=t(7448);Rt.keys().forEach((e=>{const n=Rt(e),t=gt()(bt()(e.split("/").pop().replace(/\.\w+$/,"")));vt["default"].component(t,n.default||n)}));const It={components:{EditScreenDialog:Et},props:{target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:()=>[]},initialFloated:{type:Boolean,default:!1},initialTop:{type:Number,default:0},initialLeft:{type:Number,default:0},initialZ:{type:Number,default:0},minZ:{type:Number,default:0},fixFloated:{type:Boolean,default:!1},count:{type:Number,default:0},showClose:{type:Boolean,default:!0}},data(){return{api:null,backup:"",currentDefinition:this.definition,editDialog:!1,expand:!0,configParser:null,configError:!1,currentLayout:null,layoutStack:[],namedWidgets:{},dynamicWidgets:[],width:null,height:null,staleTime:30,cacheTimeout:.1,globalSettings:[],substitute:!1,original_target_name:null,force_substitute:!1,pollingPeriod:1,errors:[],errorDialog:!1,screenKey:null,dragX:0,dragY:0,floated:this.initialFloated,top:this.initialTop,left:this.initialLeft,zIndex:this.initialZ,changeCounter:0,screenItems:[],screenValues:{},updateCounter:0}},watch:{count:{handler(e,n){this.currentDefinition=this.definition,this.rerender()}}},computed:{error:function(){if(this.errorDialog&&this.errors.length>0){let e=new Set,n="";for(const t of this.errors){if(e.has(t.message))continue;let l=`${t.time}: (${t.type}) ${t.message}\n`;n+=l,e.add(t.message)}return n}return null},computedStyle(){let e={};return this.floated&&(e["position"]="absolute",e["top"]=this.top+"px",e["left"]=this.left+"px"),e}},errorCaptured(e,n,t){return this.errors.length<Tt&&(e.usage?this.errors.push({type:"usage",message:e.message,usage:e.usage,line:e.line,lineNumber:e.lineNumber,time:(new Date).getTime()}):this.errors.push({type:"error",message:e,time:(new Date).getTime()}),this.configError=!0),!1},created(){this.api=new P.x,this.configParser=new ht.R,this.parseDefinition(),this.screenKey=Math.floor(1e6*Math.random())},mounted(){this.updateRefreshInterval(),this.floated&&(this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex)},destroyed(){null!=this.updater&&(clearInterval(this.updater),this.updater=null)},methods:{open(e,n){this.$parent.showScreen(e,n)},close(e,n){this.$parent.closeScreenByName(e,n)},closeAll(){this.$parent.closeAll()},clearErrors:function(){this.errors=[],this.configError=!1},updateRefreshInterval:function(){let e=1e3*this.pollingPeriod;this.updater&&clearInterval(this.updater),this.updater=setInterval((()=>{this.update()}),e)},parseDefinition:function(){if(this.clearErrors(),this.namedWidgets={},this.layoutStack=[],this.dynamicWidgets=[],this.layoutStack.push({type:"VerticalWidget",parameters:[],widgets:[]}),this.currentLayout=this.layoutStack[this.layoutStack.length-1],this.configParser.parse_string(this.currentDefinition,"",!1,!0,((e,n,t,l)=>{var i;if(e)switch(e){case"SCREEN":this.configParser.verify_num_parameters(3,4,`${e} <Width or AUTO> <Height or AUTO> <Polling Period>`),this.width=parseInt(n[0]),this.height=parseInt(n[1]),this.pollingPeriod=parseFloat(n[2]);break;case"END":this.configParser.verify_num_parameters(0,0,`${e}`),this.layoutStack.pop(),this.currentLayout=this.layoutStack[this.layoutStack.length-1];break;case"STALE_TIME":this.configParser.verify_num_parameters(1,1,`${e} <Time (s)>`),this.staleTime=parseInt(n[0]);break;case"SETTING":case"SUBSETTING":const s=null!==(i=this.currentLayout.widgets[this.currentLayout.widgets.length-1])&&void 0!==i?i:this.currentLayout;s.settings.push(n);break;case"GLOBAL_SETTING":case"GLOBAL_SUBSETTING":this.globalSettings.push(n);break;default:this.processWidget(e,n,t,l);break}})),"undefined"===typeof this.layoutStack[0]){let e=[],n=[];for(const t of this.dynamicWidgets)e.push(t.name),n.push(t.lineNumber);this.errors.length<Tt&&(this.errors.push({type:"usage",message:`Unknown widget! Are these widgets: ${e.join(",")}?`,lineNumber:n.join(","),time:(new Date).getTime()}),this.configError=!0),this.layoutStack[0]={type:"VerticalWidget",parameters:[],widgets:[]}}else this.applyGlobalSettings(this.layoutStack[0].widgets)},getNamedWidget:function(e){return this.namedWidgets[e]},get_named_widget:function(e){return this.namedWidgets[e]},setNamedWidget:function(e,n){this.namedWidgets[e]=n},openEdit:function(){this.backup=this.currentDefinition.repeat(1),this.editDialog=!0},upScreen:function(){this.zIndex+=1,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex])},downScreen:function(){this.zIndex>this.minZ&&(this.zIndex-=1,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex]))},floatScreen:function(){if(this.floated)this.$refs.bar.onmousedown=null,this.$refs.bar.parentElement.parentElement.style="z-index: 0",this.floated=!1,this.$emit("unfloat-screen",[this.floated,this.top,this.left,this.zIndex]);else{let e=this.$refs.bar.parentElement.parentElement.parentElement.getBoundingClientRect(),n=this.$refs.bar.getBoundingClientRect();this.top=n.top-e.top-5,this.left=n.left-e.left-5,this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.floated=!0,this.$emit("float-screen",[this.floated,this.top,this.left,this.zIndex])}},dragMouseDown:function(e){e=e||window.event,e.preventDefault(),this.dragX=e.clientX,this.dragY=e.clientY,document.onmouseup=this.closeDragElement,document.onmousemove=this.elementDrag},elementDrag:function(e){e=e||window.event,e.preventDefault();let n=this.dragX-e.clientX,t=this.dragY-e.clientY;this.dragX=e.clientX,this.dragY=e.clientY,this.top=this.$refs.bar.offsetTop-t,this.left=this.$refs.bar.offsetLeft-n,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex])},closeDragElement:function(){document.onmouseup=null,document.onmousemove=null},rerender:function(){this.parseDefinition(),this.updateRefreshInterval(),this.screenKey=Math.floor(1e6*Math.random()),this.$nextTick((function(){this.clearErrors(),this.$emit("edit-screen")}))},cancelEdit:function(){this.file=null,this.editDialog=!1,this.currentDefinition=this.backup,this.rerender()},saveEdit:function(e){this.editDialog=!1,this.currentDefinition=e,this.rerender(),this.$nextTick((function(){r.A.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:this.target,screen:this.screen,text:this.currentDefinition}},0)}))},deleteScreen:function(){this.editDialog=!1,r.A.delete(`/openc3-api/screen/${this.target}/${this.screen}`).then((e=>{this.$emit("delete-screen")}))},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-screen")},processWidget:function(e,n,t,l){var i=null;"NAMED_WIDGET"===e&&(this.configParser.verify_num_parameters(2,null,`${e} <Widget Name> <Widget Type> <Widget Settings... (optional)>`),i=n[0].toUpperCase(),e=n[1].toUpperCase(),n=n.slice(2,n.length));const s=e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()+"Widget";let o=[];if(null!==i&&o.push(["NAMED_WIDGET",i,this]),"VERTICAL"===e||"VERTICALBOX"===e||"HORIZONTAL"===e||"HORIZONTALBOX"===e||"MATRIXBYCOLUMNS"===e||"TABBOOK"===e||"TABITEM"===e||"CANVAS"===e||"RADIOGROUP"===e||"SCROLLWINDOW"===e){const e={type:s,parameters:n,settings:o,widgets:[]};this.layoutStack.push(e),this.currentLayout.widgets.push(e),this.currentLayout=e}else if(o.push(["__SCREEN__",this]),vt["default"].options.components[s])this.currentLayout.widgets.push({type:s,target:this.target,parameters:n,settings:o,line:t,lineNumber:l});else{let e={type:"DynamicWidget",target:this.target,parameters:n,settings:o,name:s,line:t,lineNumber:l};this.currentLayout.widgets.push(e),this.dynamicWidgets.push(e)}},applyGlobalSettings:function(e){this.globalSettings.forEach((n=>{e.forEach((e=>{e.type.toLowerCase()===n[0].toLowerCase()+"widget"&&e.settings.push(n.slice(1)),e.widgets&&this.applyGlobalSettings(e.widgets)}))}))},update:function(){0!==this.screenItems.length&&!1===this.configError&&this.api.get_tlm_values(this.screenItems,this.staleTime,this.cacheTimeout).then((e=>{this.clearErrors(),this.updateValues(e)})).catch((e=>{let n=JSON.stringify(e,null,2);n.includes("no response received")||(this.configError=!0),this.errors.find((e=>e.message===n))||this.errors.length<Tt&&this.errors.push({type:"error",message:n,time:(new Date).getTime()})}))},updateValues:function(e){this.updateCounter+=1;for(let n=0;n<e.length;n++)e[n].push(this.updateCounter),vt["default"].set(this.screenValues,this.screenItems[n],e[n])},addItem:function(e){this.screenItems.push(e),vt["default"].set(this.screenValues,e,[null,null,0])},deleteItem:function(e){let n=this.screenItems.indexOf(e);this.screenItems.splice(n,1)}}},Dt=It;t(970);var $t=(0,f.A)(Dt,At,pt,!1,null,"a4a31488",null);const Ot=$t.exports;function Nt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/utilities.js",n="bc429c989ff6c563268021b0e1f9fc50ed29bd64",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/utilities.js",statementMap:{0:{start:{line:25,column:20},end:{line:27,column:1}},1:{start:{line:26,column:2},end:{line:26,column:61}},2:{start:{line:29,column:28},end:{line:31,column:1}},3:{start:{line:30,column:2},end:{line:30,column:57}},4:{start:{line:34,column:16},end:{line:44,column:1}},5:{start:{line:35,column:2},end:{line:43,column:8}},6:{start:{line:36,column:16},end:{line:36,column:28}},7:{start:{line:37,column:4},end:{line:41,column:5}},8:{start:{line:38,column:6},end:{line:38,column:28}},9:{start:{line:40,column:6},end:{line:40,column:26}},10:{start:{line:42,column:4},end:{line:42,column:17}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:25,column:20},end:{line:25,column:21}},loc:{start:{line:25,column:30},end:{line:27,column:1}},line:25},1:{name:"(anonymous_1)",decl:{start:{line:29,column:28},end:{line:29,column:29}},loc:{start:{line:29,column:38},end:{line:31,column:1}},line:29},2:{name:"(anonymous_2)",decl:{start:{line:34,column:16},end:{line:34,column:17}},loc:{start:{line:34,column:35},end:{line:44,column:1}},line:34},3:{name:"(anonymous_3)",decl:{start:{line:35,column:22},end:{line:35,column:23}},loc:{start:{line:35,column:40},end:{line:43,column:3}},line:35}},branchMap:{0:{loc:{start:{line:37,column:4},end:{line:41,column:5}},type:"if",locations:[{start:{line:37,column:4},end:{line:41,column:5}},{start:{line:39,column:11},end:{line:41,column:5}}],line:37}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0,3:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"bc429c989ff6c563268021b0e1f9fc50ed29bd64"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Nt=function(){return o},o}Nt(),Nt().s[0]++;const Lt=e=>(Nt().f[0]++,Nt().s[1]++,r.A.get(`/openc3-api/autocomplete/keywords/${e}`));Nt().s[2]++;const Ft=e=>(Nt().f[1]++,Nt().s[3]++,r.A.get(`/openc3-api/autocomplete/data/${e}`));Nt().s[4]++;const Pt=(e,n)=>(Nt().f[2]++,Nt().s[5]++,e.reduce(((e,t)=>{Nt().f[3]++;const l=(Nt().s[6]++,n(t));return Nt().s[7]++,e[l]?(Nt().b[0][0]++,Nt().s[8]++,e[l].push(t)):(Nt().b[0][1]++,Nt().s[9]++,e[l]=[t]),Nt().s[10]++,e}),{}));function Ht(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/packetCompleter.js",n="ecc6375a663de1a5d960f407841d9f24b4160839",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/packetCompleter.js",statementMap:{0:{start:{line:25,column:32},end:{line:31,column:1}},1:{start:{line:27,column:17},end:{line:27,column:32}},2:{start:{line:28,column:18},end:{line:28,column:35}},3:{start:{line:29,column:17},end:{line:29,column:34}},4:{start:{line:30,column:2},end:{line:30,column:59}},5:{start:{line:39,column:4},end:{line:39,column:32}},6:{start:{line:40,column:4},end:{line:40,column:30}},7:{start:{line:42,column:4},end:{line:45,column:6}},8:{start:{line:43,column:6},end:{line:43,column:74}},9:{start:{line:44,column:6},end:{line:44,column:32}},10:{start:{line:46,column:4},end:{line:49,column:6}},11:{start:{line:47,column:6},end:{line:47,column:43}},12:{start:{line:48,column:6},end:{line:48,column:25}},13:{start:{line:52,column:19},end:{line:74,column:3}},14:{start:{line:53,column:18},end:{line:53,column:20}},15:{start:{line:54,column:29},end:{line:57,column:5}},16:{start:{line:58,column:4},end:{line:62,column:5}},17:{start:{line:59,column:46},end:{line:59,column:75}},18:{start:{line:61,column:6},end:{line:61,column:37}},19:{start:{line:64,column:4},end:{line:73,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:25,column:32},end:{line:25,column:33}},loc:{start:{line:25,column:42},end:{line:31,column:1}},line:25},1:{name:"(anonymous_1)",decl:{start:{line:34,column:2},end:{line:34,column:3}},loc:{start:{line:38,column:4},end:{line:50,column:3}},line:38},2:{name:"(anonymous_2)",decl:{start:{line:36,column:24},end:{line:36,column:25}},loc:{start:{line:36,column:30},end:{line:36,column:32}},line:36},3:{name:"(anonymous_3)",decl:{start:{line:37,column:31},end:{line:37,column:32}},loc:{start:{line:37,column:37},end:{line:37,column:39}},line:37},4:{name:"(anonymous_4)",decl:{start:{line:42,column:27},end:{line:42,column:28}},loc:{start:{line:42,column:41},end:{line:45,column:5}},line:42},5:{name:"(anonymous_5)",decl:{start:{line:46,column:35},end:{line:46,column:36}},loc:{start:{line:46,column:49},end:{line:49,column:5}},line:46},6:{name:"(anonymous_6)",decl:{start:{line:52,column:19},end:{line:52,column:20}},loc:{start:{line:52,column:74},end:{line:74,column:3}},line:52},7:{name:"(anonymous_7)",decl:{start:{line:59,column:35},end:{line:59,column:36}},loc:{start:{line:59,column:46},end:{line:59,column:75}},line:59}},branchMap:{0:{loc:{start:{line:36,column:4},end:{line:36,column:32}},type:"default-arg",locations:[{start:{line:36,column:24},end:{line:36,column:32}}],line:36},1:{loc:{start:{line:37,column:4},end:{line:37,column:39}},type:"default-arg",locations:[{start:{line:37,column:31},end:{line:37,column:39}}],line:37},2:{loc:{start:{line:58,column:4},end:{line:62,column:5}},type:"if",locations:[{start:{line:58,column:4},end:{line:62,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:58}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0],1:[0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ecc6375a663de1a5d960f407841d9f24b4160839"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Ht=function(){return o},o}Ht(),Ht().s[0]++;const Bt=e=>{Ht().f[0]++;const n=(Ht().s[1]++,"(^|[{\\(\\s])"),t=(Ht().s[2]++,"[\\s\\(]f?['\"]"),l=(Ht().s[3]++,"(\\S+\\s?){0,3}");return Ht().s[4]++,new RegExp(`${n}${e}${t}${l}$`)};class Vt{constructor(e,n=(Ht().b[0][0]++,()=>{Ht().f[2]++}),t=(Ht().b[1][0]++,()=>{Ht().f[3]++})){(0,wt.A)(this,"getCompletions",(Ht().s[13]++,function(e,n,t,l,i){Ht().f[6]++;let s=(Ht().s[14]++,[]);const o=(Ht().s[15]++,n.doc.$lines[t.row].slice(0,t.column));Ht().s[16]++,this.keywordExpressions.some((e=>(Ht().f[7]++,Ht().s[17]++,o.match(e))))?(Ht().b[2][0]++,Ht().s[18]++,s=this.autocompleteData):Ht().b[2][1]++,Ht().s[19]++,i(null,[...s])})),Ht().f[1]++,Ht().s[5]++,this.keywordExpressions=[],Ht().s[6]++,this.autocompleteData=[],Ht().s[7]++,Lt(e).then((e=>{Ht().f[4]++,Ht().s[8]++,this.keywordExpressions=e.data.map(Bt),Ht().s[9]++,t()})),Ht().s[10]++,Ft(e).then((e=>{Ht().f[5]++,Ht().s[11]++,this.autocompleteData=e.data,Ht().s[12]++,n()}))}}function Gt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/cmdCompleter.js",n="131d227344c79c3d036a025c6ea368aeadc2b775",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/cmdCompleter.js",statementMap:{0:{start:{line:27,column:4},end:{line:27,column:16}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:16},end:{line:28,column:3}},line:26}},branchMap:{},s:{0:0},f:{0:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"131d227344c79c3d036a025c6ea368aeadc2b775"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Gt=function(){return o},o}Gt();class Wt extends Vt{constructor(){Gt().f[0]++,Gt().s[0]++,super("cmd")}}function Ut(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/tlmCompleter.js",n="25619d346e32a533485beb72a7572c19417db8fc",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/tlmCompleter.js",statementMap:{0:{start:{line:27,column:4},end:{line:53,column:6}},1:{start:{line:30,column:6},end:{line:45,column:12}},2:{start:{line:31,column:27},end:{line:31,column:60}},3:{start:{line:32,column:25},end:{line:32,column:67}},4:{start:{line:33,column:28},end:{line:37,column:9}},5:{start:{line:39,column:8},end:{line:43,column:9}},6:{start:{line:40,column:10},end:{line:40,column:46}},7:{start:{line:42,column:10},end:{line:42,column:44}},8:{start:{line:44,column:8},end:{line:44,column:21}},9:{start:{line:46,column:6},end:{line:52,column:8}},10:{start:{line:47,column:8},end:{line:51,column:9}},11:{start:{line:57,column:19},end:{line:77,column:3}},12:{start:{line:58,column:18},end:{line:58,column:20}},13:{start:{line:59,column:29},end:{line:62,column:5}},14:{start:{line:63,column:4},end:{line:74,column:5}},15:{start:{line:64,column:46},end:{line:64,column:75}},16:{start:{line:66,column:26},end:{line:68,column:7}},17:{start:{line:67,column:24},end:{line:67,column:61}},18:{start:{line:69,column:6},end:{line:73,column:7}},19:{start:{line:70,column:8},end:{line:70,column:53}},20:{start:{line:72,column:8},end:{line:72,column:30}},21:{start:{line:76,column:4},end:{line:76,column:27}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:16},end:{line:54,column:3}},line:26},1:{name:"(anonymous_1)",decl:{start:{line:27,column:17},end:{line:27,column:18}},loc:{start:{line:27,column:23},end:{line:53,column:5}},line:27},2:{name:"(anonymous_2)",decl:{start:{line:30,column:60},end:{line:30,column:61}},loc:{start:{line:30,column:78},end:{line:45,column:7}},line:30},3:{name:"(anonymous_3)",decl:{start:{line:46,column:61},end:{line:46,column:62}},loc:{start:{line:46,column:77},end:{line:52,column:7}},line:46},4:{name:"(anonymous_4)",decl:{start:{line:57,column:19},end:{line:57,column:20}},loc:{start:{line:57,column:74},end:{line:77,column:3}},line:57},5:{name:"(anonymous_5)",decl:{start:{line:64,column:35},end:{line:64,column:36}},loc:{start:{line:64,column:46},end:{line:64,column:75}},line:64},6:{name:"(anonymous_6)",decl:{start:{line:67,column:8},end:{line:67,column:9}},loc:{start:{line:67,column:24},end:{line:67,column:61}},line:67}},branchMap:{0:{loc:{start:{line:39,column:8},end:{line:43,column:9}},type:"if",locations:[{start:{line:39,column:8},end:{line:43,column:9}},{start:{line:41,column:15},end:{line:43,column:9}}],line:39},1:{loc:{start:{line:63,column:4},end:{line:74,column:5}},type:"if",locations:[{start:{line:63,column:4},end:{line:74,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:63},2:{loc:{start:{line:69,column:6},end:{line:73,column:7}},type:"if",locations:[{start:{line:69,column:6},end:{line:73,column:7}},{start:{line:71,column:13},end:{line:73,column:7}}],line:69}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{0:[0,0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"25619d346e32a533485beb72a7572c19417db8fc"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Ut=function(){return o},o}Ut();class zt extends Vt{constructor(){Ut().f[0]++,Ut().s[0]++,super("tlm",(()=>{Ut().f[1]++,Ut().s[1]++,this.groupedPacketData=this.autocompleteData.reduce(((e,n)=>{Ut().f[2]++;const t=(Ut().s[2]++,n.caption.match(/\S+\s\S+/)[0]),l=(Ut().s[3]++,n.snippet.replace(`${t} `,"")),i=(Ut().s[4]++,{caption:l,snippet:l,meta:"item"});return Ut().s[5]++,e[t]?(Ut().b[0][0]++,Ut().s[6]++,e[t].push(i)):(Ut().b[0][1]++,Ut().s[7]++,e[t]=[i]),Ut().s[8]++,e}),{}),Ut().s[9]++,this.packets=Object.keys(this.groupedPacketData).map((e=>(Ut().f[3]++,Ut().s[10]++,{caption:e,snippet:e,meta:"packet"})))})),(0,wt.A)(this,"getCompletions",(Ut().s[11]++,function(e,n,t,l,i){Ut().f[4]++;let s=(Ut().s[12]++,[]);const o=(Ut().s[13]++,n.doc.$lines[t.row].slice(0,t.column));if(Ut().s[14]++,this.keywordExpressions.some((e=>(Ut().f[5]++,Ut().s[15]++,o.match(e))))){Ut().b[1][0]++;const e=(Ut().s[16]++,Object.keys(this.groupedPacketData).find((e=>(Ut().f[6]++,Ut().s[17]++,o.includes(e)))));Ut().s[18]++,e?(Ut().b[2][0]++,Ut().s[19]++,s=this.groupedPacketData[e]):(Ut().b[2][1]++,Ut().s[20]++,s=this.packets)}else Ut().b[1][1]++;Ut().s[21]++,i(null,s)}))}}function qt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/mnemonicChecker.js",n="77d46705b64cd15a99411a7a6de17a4c17f164ba",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/mnemonicChecker.js",statementMap:{0:{start:{line:26,column:23},end:{line:31,column:1}},1:{start:{line:28,column:17},end:{line:28,column:32}},2:{start:{line:29,column:15},end:{line:29,column:37}},3:{start:{line:30,column:2},end:{line:30,column:46}},4:{start:{line:32,column:32},end:{line:32,column:36}},5:{start:{line:33,column:29},end:{line:33,column:43}},6:{start:{line:37,column:4},end:{line:37,column:30}},7:{start:{line:39,column:4},end:{line:39,column:21}},8:{start:{line:40,column:4},end:{line:47,column:6}},9:{start:{line:41,column:6},end:{line:46,column:8}},10:{start:{line:42,column:8},end:{line:45,column:9}},11:{start:{line:49,column:4},end:{line:49,column:35}},12:{start:{line:50,column:4},end:{line:52,column:6}},13:{start:{line:51,column:6},end:{line:51,column:68}},14:{start:{line:54,column:4},end:{line:54,column:35}},15:{start:{line:55,column:4},end:{line:57,column:6}},16:{start:{line:56,column:6},end:{line:56,column:68}},17:{start:{line:60,column:14},end:{line:141,column:3}},18:{start:{line:61,column:42},end:{line:134,column:5}},19:{start:{line:63,column:8},end:{line:63,column:26}},20:{start:{line:64,column:8},end:{line:66,column:9}},21:{start:{line:65,column:10},end:{line:65,column:23}},22:{start:{line:67,column:25},end:{line:69,column:16}},23:{start:{line:68,column:10},end:{line:68,column:43}},24:{start:{line:70,column:25},end:{line:72,column:16}},25:{start:{line:71,column:10},end:{line:71,column:43}},26:{start:{line:73,column:8},end:{line:75,column:9}},27:{start:{line:74,column:10},end:{line:74,column:23}},28:{start:{line:77,column:23},end:{line:77,column:43}},29:{start:{line:78,column:26},end:{line:78,column:41}},30:{start:{line:79,column:8},end:{line:79,column:44}},31:{start:{line:81,column:30},end:{line:83,column:32}},32:{start:{line:85,column:8},end:{line:88,column:9}},33:{start:{line:86,column:10},end:{line:86,column:44}},34:{start:{line:87,column:10},end:{line:87,column:23}},35:{start:{line:90,column:37},end:{line:90,column:80}},36:{start:{line:91,column:30},end:{line:93,column:9}},37:{start:{line:94,column:8},end:{line:96,column:9}},38:{start:{line:95,column:10},end:{line:95,column:23}},39:{start:{line:98,column:25},end:{line:101,column:9}},40:{start:{line:102,column:8},end:{line:113,column:9}},41:{start:{line:103,column:10},end:{line:103,column:42}},42:{start:{line:105,column:33},end:{line:105,column:55}},43:{start:{line:106,column:10},end:{line:112,column:11}},44:{start:{line:107,column:12},end:{line:109,column:13}},45:{start:{line:108,column:25},end:{line:108,column:45}},46:{start:{line:111,column:12},end:{line:111,column:80}},47:{start:{line:111,column:70},end:{line:111,column:79}},48:{start:{line:116,column:8},end:{line:124,column:9}},49:{start:{line:117,column:10},end:{line:123,column:11}},50:{start:{line:118,column:12},end:{line:118,column:79}},51:{start:{line:120,column:12},end:{line:122,column:13}},52:{start:{line:121,column:14},end:{line:121,column:46}},53:{start:{line:126,column:8},end:{line:130,column:10}},54:{start:{line:131,column:8},end:{line:131,column:21}},55:{start:{line:136,column:21},end:{line:136,column:57}},56:{start:{line:137,column:4},end:{line:140,column:5}},57:{start:{line:139,column:40},end:{line:139,column:67}},58:{start:{line:143,column:16},end:{line:215,column:3}},59:{start:{line:144,column:25},end:{line:144,column:27}},60:{start:{line:145,column:25},end:{line:148,column:5}},61:{start:{line:147,column:19},end:{line:147,column:42}},62:{start:{line:149,column:4},end:{line:213,column:5}},63:{start:{line:150,column:6},end:{line:158,column:7}},64:{start:{line:151,column:8},end:{line:156,column:9}},65:{start:{line:152,column:10},end:{line:155,column:12}},66:{start:{line:157,column:8},end:{line:157,column:16}},67:{start:{line:159,column:27},end:{line:162,column:7}},68:{start:{line:161,column:21},end:{line:161,column:44}},69:{start:{line:163,column:6},end:{line:212,column:7}},70:{start:{line:164,column:8},end:{line:211,column:9}},71:{start:{line:165,column:27},end:{line:165,column:64}},72:{start:{line:166,column:10},end:{line:180,column:11}},73:{start:{line:167,column:27},end:{line:169,column:30}},74:{start:{line:170,column:29},end:{line:170,column:59}},75:{start:{line:171,column:12},end:{line:179,column:13}},76:{start:{line:173,column:16},end:{line:175,column:17}},77:{start:{line:174,column:28},end:{line:174,column:37}},78:{start:{line:176,column:16},end:{line:176,column:29}},79:{start:{line:182,column:24},end:{line:182,column:62}},80:{start:{line:183,column:10},end:{line:191,column:11}},81:{start:{line:184,column:12},end:{line:189,column:14}},82:{start:{line:190,column:12},end:{line:190,column:20}},83:{start:{line:192,column:10},end:{line:210,column:11}},84:{start:{line:193,column:12},end:{line:199,column:13}},85:{start:{line:193,column:38},end:{line:193,column:68}},86:{start:{line:194,column:14},end:{line:197,column:16}},87:{start:{line:198,column:14},end:{line:198,column:22}},88:{start:{line:201,column:12},end:{line:209,column:13}},89:{start:{line:202,column:14},end:{line:208,column:15}},90:{start:{line:202,column:40},end:{line:202,column:54}},91:{start:{line:203,column:16},end:{line:206,column:18}},92:{start:{line:207,column:16},end:{line:207,column:24}},93:{start:{line:214,column:4},end:{line:214,column:23}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:23},end:{line:26,column:24}},loc:{start:{line:26,column:33},end:{line:31,column:1}},line:26},1:{name:"(anonymous_1)",decl:{start:{line:36,column:2},end:{line:36,column:3}},loc:{start:{line:36,column:16},end:{line:58,column:3}},line:36},2:{name:"(anonymous_2)",decl:{start:{line:40,column:37},end:{line:40,column:38}},loc:{start:{line:40,column:51},end:{line:47,column:5}},line:40},3:{name:"(anonymous_3)",decl:{start:{line:41,column:23},end:{line:41,column:24}},loc:{start:{line:41,column:35},end:{line:46,column:7}},line:41},4:{name:"(anonymous_4)",decl:{start:{line:50,column:28},end:{line:50,column:29}},loc:{start:{line:50,column:42},end:{line:52,column:5}},line:50},5:{name:"(anonymous_5)",decl:{start:{line:55,column:28},end:{line:55,column:29}},loc:{start:{line:55,column:42},end:{line:57,column:5}},line:55},6:{name:"(anonymous_6)",decl:{start:{line:60,column:14},end:{line:60,column:15}},loc:{start:{line:60,column:36},end:{line:141,column:3}},line:60},7:{name:"(anonymous_7)",decl:{start:{line:62,column:6},end:{line:62,column:7}},loc:{start:{line:62,column:31},end:{line:132,column:7}},line:62},8:{name:"(anonymous_8)",decl:{start:{line:67,column:59},end:{line:67,column:60}},loc:{start:{line:67,column:77},end:{line:69,column:9}},line:67},9:{name:"(anonymous_9)",decl:{start:{line:70,column:59},end:{line:70,column:60}},loc:{start:{line:70,column:77},end:{line:72,column:9}},line:70},10:{name:"(anonymous_10)",decl:{start:{line:108,column:14},end:{line:108,column:15}},loc:{start:{line:108,column:25},end:{line:108,column:45}},line:108},11:{name:"(anonymous_11)",decl:{start:{line:111,column:52},end:{line:111,column:53}},loc:{start:{line:111,column:70},end:{line:111,column:79}},line:111},12:{name:"(anonymous_12)",decl:{start:{line:120,column:56},end:{line:120,column:57}},loc:{start:{line:121,column:14},end:{line:121,column:46}},line:121},13:{name:"(anonymous_13)",decl:{start:{line:139,column:30},end:{line:139,column:31}},loc:{start:{line:139,column:40},end:{line:139,column:67}},line:139},14:{name:"(anonymous_14)",decl:{start:{line:143,column:16},end:{line:143,column:17}},loc:{start:{line:143,column:40},end:{line:215,column:3}},line:143},15:{name:"(anonymous_15)",decl:{start:{line:147,column:6},end:{line:147,column:7}},loc:{start:{line:147,column:19},end:{line:147,column:42}},line:147},16:{name:"(anonymous_16)",decl:{start:{line:161,column:8},end:{line:161,column:9}},loc:{start:{line:161,column:21},end:{line:161,column:44}},line:161},17:{name:"(anonymous_17)",decl:{start:{line:172,column:14},end:{line:172,column:15}},loc:{start:{line:172,column:38},end:{line:177,column:15}},line:172},18:{name:"(anonymous_18)",decl:{start:{line:174,column:18},end:{line:174,column:19}},loc:{start:{line:174,column:28},end:{line:174,column:37}},line:174},19:{name:"(anonymous_19)",decl:{start:{line:193,column:28},end:{line:193,column:29}},loc:{start:{line:193,column:38},end:{line:193,column:68}},line:193},20:{name:"(anonymous_20)",decl:{start:{line:202,column:30},end:{line:202,column:31}},loc:{start:{line:202,column:40},end:{line:202,column:54}},line:202}},branchMap:{0:{loc:{start:{line:64,column:8},end:{line:66,column:9}},type:"if",locations:[{start:{line:64,column:8},end:{line:66,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:64},1:{loc:{start:{line:68,column:17},end:{line:68,column:43}},type:"binary-expr",locations:[{start:{line:68,column:17},end:{line:68,column:22}},{start:{line:68,column:26},end:{line:68,column:43}}],line:68},2:{loc:{start:{line:71,column:17},end:{line:71,column:43}},type:"binary-expr",locations:[{start:{line:71,column:17},end:{line:71,column:22}},{start:{line:71,column:26},end:{line:71,column:43}}],line:71},3:{loc:{start:{line:73,column:8},end:{line:75,column:9}},type:"if",locations:[{start:{line:73,column:8},end:{line:75,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:73},4:{loc:{start:{line:73,column:12},end:{line:73,column:34}},type:"binary-expr",locations:[{start:{line:73,column:12},end:{line:73,column:21}},{start:{line:73,column:25},end:{line:73,column:34}}],line:73},5:{loc:{start:{line:77,column:23},end:{line:77,column:43}},type:"binary-expr",locations:[{start:{line:77,column:23},end:{line:77,column:31}},{start:{line:77,column:35},end:{line:77,column:43}}],line:77},6:{loc:{start:{line:85,column:8},end:{line:88,column:9}},type:"if",locations:[{start:{line:85,column:8},end:{line:88,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:85},7:{loc:{start:{line:92,column:10},end:{line:92,column:42}},type:"cond-expr",locations:[{start:{line:92,column:33},end:{line:92,column:36}},{start:{line:92,column:39},end:{line:92,column:42}}],line:92},8:{loc:{start:{line:94,column:8},end:{line:96,column:9}},type:"if",locations:[{start:{line:94,column:8},end:{line:96,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:94},9:{loc:{start:{line:102,column:8},end:{line:113,column:9}},type:"if",locations:[{start:{line:102,column:8},end:{line:113,column:9}},{start:{line:104,column:15},end:{line:113,column:9}}],line:102},10:{loc:{start:{line:106,column:10},end:{line:112,column:11}},type:"if",locations:[{start:{line:106,column:10},end:{line:112,column:11}},{start:{line:110,column:17},end:{line:112,column:11}}],line:106},11:{loc:{start:{line:117,column:10},end:{line:123,column:11}},type:"if",locations:[{start:{line:117,column:10},end:{line:123,column:11}},{start:{line:119,column:17},end:{line:123,column:11}}],line:117},12:{loc:{start:{line:150,column:6},end:{line:158,column:7}},type:"if",locations:[{start:{line:150,column:6},end:{line:158,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:150},13:{loc:{start:{line:165,column:27},end:{line:165,column:64}},type:"cond-expr",locations:[{start:{line:165,column:51},end:{line:165,column:56}},{start:{line:165,column:59},end:{line:165,column:64}}],line:165},14:{loc:{start:{line:166,column:10},end:{line:180,column:11}},type:"if",locations:[{start:{line:166,column:10},end:{line:180,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:166},15:{loc:{start:{line:167,column:27},end:{line:169,column:30}},type:"cond-expr",locations:[{start:{line:168,column:16},end:{line:168,column:29}},{start:{line:169,column:16},end:{line:169,column:30}}],line:167},16:{loc:{start:{line:183,column:10},end:{line:191,column:11}},type:"if",locations:[{start:{line:183,column:10},end:{line:191,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:183},17:{loc:{start:{line:187,column:16},end:{line:187,column:57}},type:"cond-expr",locations:[{start:{line:187,column:37},end:{line:187,column:45}},{start:{line:187,column:48},end:{line:187,column:57}}],line:187},18:{loc:{start:{line:192,column:10},end:{line:210,column:11}},type:"if",locations:[{start:{line:192,column:10},end:{line:210,column:11}},{start:{line:200,column:17},end:{line:210,column:11}}],line:192},19:{loc:{start:{line:193,column:12},end:{line:199,column:13}},type:"if",locations:[{start:{line:193,column:12},end:{line:199,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:193},20:{loc:{start:{line:202,column:14},end:{line:208,column:15}},type:"if",locations:[{start:{line:202,column:14},end:{line:208,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:202}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"77d46705b64cd15a99411a7a6de17a4c17f164ba"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return qt=function(){return o},o}qt(),qt().s[0]++;const jt=e=>{qt().f[0]++;const n=(qt().s[1]++,"(^|[{\\(\\s])"),t=(qt().s[2]++,"((\\s.+)|(\\(.+\\)))");return qt().s[3]++,new RegExp(`${n}${e}${t}`)},Yt=(qt().s[4]++,/\{/),Kt=(qt().s[5]++,/['"],\s?['"]/);class Xt{constructor(){(0,wt.A)(this,"checkText",(qt().s[17]++,async function(e){qt().f[6]++;const{linesToCheck:n,linesToSkip:t}=(qt().s[18]++,e.split("\n").reduce(((e,n,t)=>{if(qt().f[7]++,qt().s[19]++,n=n.trim(),qt().s[20]++,n.match(/^#/))return qt().b[0][0]++,qt().s[21]++,e;qt().b[0][1]++;const l=(qt().s[22]++,this.cmdKeywordExpressions.reduce(((e,t)=>(qt().f[8]++,qt().s[23]++,qt().b[1][0]++,e||(qt().b[1][1]++,n.match(t)))),null)),i=(qt().s[24]++,this.tlmKeywordExpressions.reduce(((e,t)=>(qt().f[9]++,qt().s[25]++,qt().b[2][0]++,e||(qt().b[2][1]++,n.match(t)))),null));if(qt().s[26]++,qt().b[4][0]++,!l&&(qt().b[4][1]++,!i))return qt().b[3][0]++,qt().s[27]++,e;qt().b[3][1]++;let s=(qt().s[28]++,qt().b[5][0]++,l||(qt().b[5][1]++,i)),o=(qt().s[29]++,s.length);qt().s[30]++,s=s[o-1];const a=(qt().s[31]++,s.substring(s.match(/[\(\s)]/).index+1).replace(/\)+.*$/,""));if(qt().s[32]++,a.match(Yt))return qt().b[6][0]++,qt().s[33]++,e.linesToSkip.push(t+1),qt().s[34]++,e;qt().b[6][1]++;const r=(qt().s[35]++,!!a.match(Kt)),c=(qt().s[36]++,a.split(r?(qt().b[7][0]++,","):(qt().b[7][1]++," ")));if(qt().s[37]++,c.length<2)return qt().b[8][0]++,qt().s[38]++,e;qt().b[8][1]++;const u=(qt().s[39]++,{target:c[0],packet:c[1]});if(qt().s[40]++,i)qt().b[9][0]++,qt().s[41]++,u.item=c[2];else{qt().b[9][1]++;const e=(qt().s[42]++,c.slice(2));qt().s[43]++,r?(qt().b[10][0]++,qt().s[44]++,u.params=e.map((e=>(qt().f[10]++,qt().s[45]++,e.split("=>")[0])))):(qt().b[10][1]++,qt().s[46]++,u.params=e.filter(((e,n)=>(qt().f[11]++,qt().s[47]++,n%2))))}qt().s[48]++;for(const d in u)qt().s[49]++,"string"===typeof u[d]?(qt().b[11][0]++,qt().s[50]++,u[d]=u[d].replace(/['"]/g,"").trim()):(qt().b[11][1]++,qt().s[51]++,u[d]=u[d].map((e=>(qt().f[12]++,qt().s[52]++,e.replace(/['"]/g,"").trim()))));return qt().s[53]++,e.linesToCheck.push({line:n,mnemonic:u,lineNumber:t+1}),qt().s[54]++,e}),{linesToCheck:[],linesToSkip:[]})),l=(qt().s[55]++,await this._checkLines(n));return qt().s[56]++,{skipped:t.sort(),problems:l.sort(((e,n)=>(qt().f[13]++,qt().s[57]++,e.lineNumber-n.lineNumber)))}})),(0,wt.A)(this,"_checkLines",(qt().s[58]++,async e=>{qt().f[14]++;const n=(qt().s[59]++,[]),t=(qt().s[60]++,Pt(e,(e=>(qt().f[15]++,qt().s[61]++,e.mnemonic.target))));qt().s[62]++;for(const l in t){if(qt().s[63]++,!this.targets[l]){qt().b[12][0]++,qt().s[64]++;for(const e of t[l])qt().s[65]++,n.push({...e,error:`Target "${l}" does not exist.`});qt().s[66]++;continue}qt().b[12][1]++;const e=(qt().s[67]++,Pt(t[l],(e=>(qt().f[16]++,qt().s[68]++,e.mnemonic.packet))));qt().s[69]++;for(const t in e){qt().s[70]++;for(const i of e[t]){const e=(qt().s[71]++,i.mnemonic.item?(qt().b[13][0]++,"tlm"):(qt().b[13][1]++,"cmd"));if(qt().s[72]++,this.targets[l][e])qt().b[14][1]++;else{qt().b[14][0]++;const n=(qt().s[73]++,i.mnemonic.item?(qt().b[15][0]++,"get_all_tlm"):(qt().b[15][1]++,"get_all_cmds")),t=(qt().s[74]++,await this.api[n](l));qt().s[75]++,this.targets[l][e]=t.reduce(((e,n)=>(qt().f[17]++,qt().s[76]++,e[n.packet_name]=n.items.map((e=>(qt().f[18]++,qt().s[77]++,e.name))),qt().s[78]++,e)),{})}const s=(qt().s[79]++,this.targets[l][e][t]);if(qt().s[80]++,s)if(qt().b[16][1]++,qt().s[83]++,i.mnemonic.item){if(qt().b[18][0]++,qt().s[84]++,!s.some((e=>(qt().f[19]++,qt().s[85]++,e===i.mnemonic.item)))){qt().b[19][0]++,qt().s[86]++,n.push({...i,error:`Item "${l} ${t} ${i.mnemonic.item}" does not exist.`}),qt().s[87]++;continue}qt().b[19][1]++}else{qt().b[18][1]++,qt().s[88]++;for(const e of i.mnemonic.params)qt().s[89]++,s.some((n=>(qt().f[20]++,qt().s[90]++,n===e)))?qt().b[20][1]++:(qt().b[20][0]++,qt().s[91]++,n.push({...i,error:`Command "${l} ${t}" param "${e}" does not exist.`}),qt().s[92]++)}else qt().b[16][0]++,qt().s[81]++,n.push({...i,error:`${"tlm"===e?(qt().b[17][0]++,"Packet"):(qt().b[17][1]++,"Command")} "${l} ${t}" does not exist.`}),qt().s[82]++}}}return qt().s[93]++,n})),qt().f[1]++,qt().s[6]++,this.api=new P.x,qt().s[7]++,this.targets={},qt().s[8]++,this.api.get_target_names().then((e=>{qt().f[2]++,qt().s[9]++,e.forEach((e=>{qt().f[3]++,qt().s[10]++,this.targets[e]={cmd:null,tlm:null}}))})),qt().s[11]++,this.cmdKeywordExpressions=[],qt().s[12]++,Lt("cmd").then((e=>{qt().f[4]++,qt().s[13]++,this.cmdKeywordExpressions=e.data.map(jt)})),qt().s[14]++,this.tlmKeywordExpressions=[],qt().s[15]++,Lt("tlm").then((e=>{qt().f[5]++,qt().s[16]++,this.tlmKeywordExpressions=e.data.map(jt)}))}}function Jt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/index.js",n="239637faebd5a12da0d2967088a12522b53174c2",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/index.js",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"239637faebd5a12da0d2967088a12522b53174c2"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return Jt=function(){return o},o}Jt();var Zt=t(6860),Qt=t(3453),el=t(8713);function nl(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/regexAnnotator.js",n="ebd29b6b4771be71b0b3e8465d6a5e919396ec6e",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/regexAnnotator.js",statementMap:{0:{start:{line:31,column:4},end:{line:31,column:71}},1:{start:{line:32,column:4},end:{line:32,column:25}},2:{start:{line:33,column:4},end:{line:33,column:27}},3:{start:{line:34,column:4},end:{line:34,column:21}},4:{start:{line:35,column:4},end:{line:35,column:21}},5:{start:{line:39,column:12},end:{line:49,column:3}},6:{start:{line:40,column:20},end:{line:40,column:40}},7:{start:{line:41,column:4},end:{line:41,column:39}},8:{start:{line:42,column:18},end:{line:47,column:5}},9:{start:{line:48,column:4},end:{line:48,column:33}},10:{start:{line:52,column:13},end:{line:87,column:3}},11:{start:{line:53,column:4},end:{line:71,column:5}},12:{start:{line:55,column:6},end:{line:70,column:7}},13:{start:{line:57,column:10},end:{line:61,column:11}},14:{start:{line:62,column:10},end:{line:62,column:15}},15:{start:{line:64,column:10},end:{line:68,column:11}},16:{start:{line:69,column:10},end:{line:69,column:15}},17:{start:{line:72,column:4},end:{line:86,column:5}},18:{start:{line:72,column:19},end:{line:72,column:35}},19:{start:{line:73,column:19},end:{line:73,column:71}},20:{start:{line:74,column:6},end:{line:85,column:7}},21:{start:{line:75,column:8},end:{line:75,column:37}},22:{start:{line:76,column:8},end:{line:82,column:10}},23:{start:{line:83,column:13},end:{line:85,column:7}},24:{start:{line:84,column:8},end:{line:84,column:51}},25:{start:{line:89,column:19},end:{line:92,column:3}},26:{start:{line:90,column:4},end:{line:90,column:61}},27:{start:{line:91,column:4},end:{line:91,column:72}},28:{start:{line:94,column:29},end:{line:103,column:3}},29:{start:{line:95,column:4},end:{line:102,column:5}},30:{start:{line:100,column:12},end:{line:100,column:70}},31:{start:{line:105,column:22},end:{line:114,column:3}},32:{start:{line:106,column:4},end:{line:113,column:5}},33:{start:{line:108,column:8},end:{line:110,column:9}},34:{start:{line:109,column:10},end:{line:109,column:33}},35:{start:{line:111,column:8},end:{line:111,column:25}},36:{start:{line:116,column:26},end:{line:122,column:3}},37:{start:{line:117,column:4},end:{line:121,column:5}},38:{start:{line:120,column:32},end:{line:120,column:64}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:30,column:2},end:{line:30,column:3}},loc:{start:{line:30,column:47},end:{line:36,column:3}},line:30},1:{name:"(anonymous_1)",decl:{start:{line:39,column:12},end:{line:39,column:13}},loc:{start:{line:39,column:18},end:{line:49,column:3}},line:39},2:{name:"(anonymous_2)",decl:{start:{line:52,column:13},end:{line:52,column:14}},loc:{start:{line:52,column:34},end:{line:87,column:3}},line:52},3:{name:"(anonymous_3)",decl:{start:{line:89,column:19},end:{line:89,column:20}},loc:{start:{line:89,column:47},end:{line:92,column:3}},line:89},4:{name:"(anonymous_4)",decl:{start:{line:94,column:29},end:{line:94,column:30}},loc:{start:{line:94,column:47},end:{line:103,column:3}},line:94},5:{name:"(anonymous_5)",decl:{start:{line:99,column:10},end:{line:99,column:11}},loc:{start:{line:100,column:12},end:{line:100,column:70}},line:100},6:{name:"(anonymous_6)",decl:{start:{line:105,column:22},end:{line:105,column:23}},loc:{start:{line:105,column:47},end:{line:114,column:3}},line:105},7:{name:"(anonymous_7)",decl:{start:{line:107,column:35},end:{line:107,column:36}},loc:{start:{line:107,column:51},end:{line:112,column:7}},line:107},8:{name:"(anonymous_8)",decl:{start:{line:116,column:26},end:{line:116,column:27}},loc:{start:{line:116,column:39},end:{line:122,column:3}},line:116},9:{name:"(anonymous_9)",decl:{start:{line:120,column:16},end:{line:120,column:17}},loc:{start:{line:120,column:32},end:{line:120,column:64}},line:120}},branchMap:{0:{loc:{start:{line:53,column:4},end:{line:71,column:5}},type:"if",locations:[{start:{line:53,column:4},end:{line:71,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:53},1:{loc:{start:{line:55,column:6},end:{line:70,column:7}},type:"switch",locations:[{start:{line:56,column:8},end:{line:62,column:15}},{start:{line:63,column:8},end:{line:69,column:15}}],line:55},2:{loc:{start:{line:74,column:6},end:{line:85,column:7}},type:"if",locations:[{start:{line:74,column:6},end:{line:85,column:7}},{start:{line:83,column:13},end:{line:85,column:7}}],line:74},3:{loc:{start:{line:75,column:8},end:{line:75,column:37}},type:"binary-expr",locations:[{start:{line:75,column:8},end:{line:75,column:20}},{start:{line:75,column:25},end:{line:75,column:36}}],line:75},4:{loc:{start:{line:83,column:13},end:{line:85,column:7}},type:"if",locations:[{start:{line:83,column:13},end:{line:85,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:83},5:{loc:{start:{line:100,column:12},end:{line:100,column:70}},type:"binary-expr",locations:[{start:{line:100,column:12},end:{line:100,column:44}},{start:{line:100,column:48},end:{line:100,column:70}}],line:100},6:{loc:{start:{line:108,column:8},end:{line:110,column:9}},type:"if",locations:[{start:{line:108,column:8},end:{line:110,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:108}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ebd29b6b4771be71b0b3e8465d6a5e919396ec6e"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return nl=function(){return o},o}nl();var tl=new WeakMap,ll=new WeakMap,il=new WeakMap,sl=new WeakMap,ol=new WeakMap,al=new WeakMap,rl=new WeakMap,cl=new WeakMap,ul=new WeakMap;class dl{constructor(e,{pattern:n,text:t,type:l}){(0,Zt.A)(this,tl,void 0),(0,Zt.A)(this,ll,void 0),(0,Zt.A)(this,il,void 0),(0,Zt.A)(this,sl,void 0),(0,Zt.A)(this,ol,void 0),(0,wt.A)(this,"refresh",(nl().s[5]++,()=>{nl().f[1]++;const e=(nl().s[6]++,(0,Qt.A)(ll,this).session);nl().s[7]++,(0,Qt.A)(ul,this).call(this,e);const n=(nl().s[8]++,{lines:e.doc.$lines,action:"insert",start:{row:0},end:{row:e.doc.$lines.length}});nl().s[9]++,this.annotate(n,e)})),(0,wt.A)(this,"annotate",(nl().s[10]++,(e,n)=>{if(nl().f[2]++,nl().s[11]++,e.lines.length>1)switch(nl().b[0][0]++,nl().s[12]++,e.action){case"insert":nl().b[1][0]++,nl().s[13]++,(0,Qt.A)(cl,this).call(this,n,e.start.row,e.lines.length-1),nl().s[14]++;break;case"remove":nl().b[1][1]++,nl().s[15]++,(0,Qt.A)(cl,this).call(this,n,e.start.row+1,1-e.lines.length),nl().s[16]++;break}else nl().b[0][1]++;nl().s[17]++;for(let l=(nl().s[18]++,e.start.row);l<=e.end.row;l++){var t;let i=(nl().s[19]++,null===(t=n.doc.$lines[l])||void 0===t||null===(t=t.match((0,Qt.A)(il,this)))||void 0===t?void 0:t.index);nl().s[20]++,void 0!==i?(nl().b[2][0]++,nl().s[21]++,nl().b[3][0]++,0!==i&&(nl().b[3][1]++,i+=1),nl().s[22]++,(0,Qt.A)(al,this).call(this,n,{row:l,column:i,text:(0,Qt.A)(sl,this),type:(0,Qt.A)(ol,this),openc3Id:(0,Qt.A)(tl,this)})):(nl().b[2][1]++,nl().s[23]++,"remove"===e.action?(nl().b[4][0]++,nl().s[24]++,(0,Qt.A)(rl,this).call(this,n,l)):nl().b[4][1]++)}})),(0,Zt.A)(this,al,(nl().s[25]++,(e,n)=>{nl().f[3]++,nl().s[26]++,(0,Qt.A)(rl,this).call(this,e,n.row),nl().s[27]++,e.setAnnotations([...e.getAnnotations(),n])})),(0,Zt.A)(this,rl,(nl().s[28]++,(e,n)=>{nl().f[4]++,nl().s[29]++,e.setAnnotations(e.getAnnotations().filter((e=>(nl().f[5]++,nl().s[30]++,nl().b[5][0]++,e.openc3Id!==(0,Qt.A)(tl,this)||(nl().b[5][1]++,e.row!==n)))))})),(0,Zt.A)(this,cl,(nl().s[31]++,(e,n,t)=>{nl().f[6]++,nl().s[32]++,e.setAnnotations(e.getAnnotations().map((e=>(nl().f[7]++,nl().s[33]++,e.row>n?(nl().b[6][0]++,nl().s[34]++,e.row+=t):nl().b[6][1]++,nl().s[35]++,e))))})),(0,Zt.A)(this,ul,(nl().s[36]++,e=>{nl().f[8]++,nl().s[37]++,e.setAnnotations(e.getAnnotations().filter((e=>(nl().f[9]++,nl().s[38]++,e.openc3Id!==(0,Qt.A)(tl,this)))))})),nl().f[0]++,nl().s[0]++,(0,el.A)(tl,this,`regexAnnotator-${Math.floor(1e7*Math.random())}`),nl().s[1]++,(0,el.A)(ll,this,e),nl().s[2]++,(0,el.A)(il,this,n),nl().s[3]++,(0,el.A)(sl,this,t),nl().s[4]++,(0,el.A)(ol,this,l)}}function ml(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/sleepAnnotator.js",n="744a728c29aa11b26e0fea7ead3a653b74f7c776",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/sleepAnnotator.js",statementMap:{0:{start:{line:27,column:19},end:{line:27,column:31}},1:{start:{line:28,column:20},end:{line:28,column:27}},2:{start:{line:29,column:19},end:{line:29,column:29}},3:{start:{line:30,column:4},end:{line:34,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:22},end:{line:35,column:3}},line:26}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"744a728c29aa11b26e0fea7ead3a653b74f7c776"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return ml=function(){return o},o}ml();class Al extends dl{constructor(e){ml().f[0]++;const n=(ml().s[0]++,"(^|[{\\s])"),t=(ml().s[1]++,"sleep"),l=(ml().s[2]++,"[\\(\\s]");ml().s[3]++,super(e,{pattern:new RegExp(`${n}${t}${l}`),text:"Use `wait` instead of `sleep` in OpenC3 scripts",type:"warning"})}}function pl(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/index.js",n="5703e005e4cf95b0f782738f96d4e334260835ac",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/index.js",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"5703e005e4cf95b0f782738f96d4e334260835ac"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return pl=function(){return o},o}function hl(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",n="b6445ab465afdcda298ef44df91d2d40d40c7eb0",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",statementMap:{0:{start:{line:1,column:13},end:{line:8,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:7,column:630}},4:{start:{line:1,column:681},end:{line:1,column:702}},5:{start:{line:4,column:90},end:{line:4,column:412}},6:{start:{line:4,column:165},end:{line:4,column:195}},7:{start:{line:4,column:454},end:{line:4,column:678}},8:{start:{line:4,column:529},end:{line:4,column:556}},9:{start:{line:4,column:722},end:{line:4,column:951}},10:{start:{line:4,column:797},end:{line:4,column:826}},11:{start:{line:4,column:1536},end:{line:4,column:1559}},12:{start:{line:7,column:72},end:{line:7,column:616}},13:{start:{line:7,column:247},end:{line:7,column:281}},14:{start:{line:7,column:332},end:{line:7,column:374}},15:{start:{line:9,column:22},end:{line:9,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:8,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:665},end:{line:1,column:666}},loc:{start:{line:1,column:680},end:{line:1,column:703}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:4,column:71},end:{line:4,column:72}},loc:{start:{line:4,column:89},end:{line:4,column:413}},line:4},3:{name:"(anonymous_3)",decl:{start:{line:4,column:148},end:{line:4,column:149}},loc:{start:{line:4,column:164},end:{line:4,column:196}},line:4},4:{name:"(anonymous_4)",decl:{start:{line:4,column:435},end:{line:4,column:436}},loc:{start:{line:4,column:453},end:{line:4,column:679}},line:4},5:{name:"(anonymous_5)",decl:{start:{line:4,column:512},end:{line:4,column:513}},loc:{start:{line:4,column:528},end:{line:4,column:557}},line:4},6:{name:"(anonymous_6)",decl:{start:{line:4,column:703},end:{line:4,column:704}},loc:{start:{line:4,column:721},end:{line:4,column:952}},line:4},7:{name:"(anonymous_7)",decl:{start:{line:4,column:780},end:{line:4,column:781}},loc:{start:{line:4,column:796},end:{line:4,column:827}},line:4},8:{name:"(anonymous_8)",decl:{start:{line:4,column:1520},end:{line:4,column:1521}},loc:{start:{line:4,column:1535},end:{line:4,column:1560}},line:4},9:{name:"(anonymous_9)",decl:{start:{line:7,column:53},end:{line:7,column:54}},loc:{start:{line:7,column:71},end:{line:7,column:617}},line:7},10:{name:"(anonymous_10)",decl:{start:{line:7,column:230},end:{line:7,column:231}},loc:{start:{line:7,column:246},end:{line:7,column:282}},line:7},11:{name:"(anonymous_11)",decl:{start:{line:7,column:321},end:{line:7,column:322}},loc:{start:{line:7,column:331},end:{line:7,column:375}},line:7}},branchMap:{0:{loc:{start:{line:7,column:157},end:{line:7,column:216}},type:"binary-expr",locations:[{start:{line:7,column:157},end:{line:7,column:175}},{start:{line:7,column:179},end:{line:7,column:216}}],line:7},1:{loc:{start:{line:7,column:402},end:{line:7,column:525}},type:"cond-expr",locations:[{start:{line:7,column:455},end:{line:7,column:491}},{start:{line:7,column:492},end:{line:7,column:525}}],line:7},2:{loc:{start:{line:7,column:403},end:{line:7,column:453}},type:"binary-expr",locations:[{start:{line:7,column:403},end:{line:7,column:426}},{start:{line:7,column:430},end:{line:7,column:453}}],line:7}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},b:{0:[0,0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b6445ab465afdcda298ef44df91d2d40d40c7eb0"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return hl=function(){return o},o}pl(),hl(),hl().s[0]++;var vl=function(){hl().f[0]++;var e=(hl().s[1]++,this),n=(hl().s[2]++,e._self._c);return hl().s[3]++,n("div",[n("v-card",{attrs:{flat:""}},[n("v-card-title",[n("v-row",{attrs:{dense:""}},[n("span",{staticClass:"mr-2"},[e._v("Running Scripts")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mr-2",attrs:{color:"primary"},on:{click:e.getRunningScripts}},[e._v("Refresh")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-text-field",{staticClass:"pt-0 search",attrs:{label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","single-line":"","hide-details":"","data-test":"running-search"},model:{value:e.runningSearch,callback:function(n){hl().f[1]++,hl().s[4]++,e.runningSearch=n},expression:"runningSearch"}})],1)],1),e._v(" "),n("v-data-table",{attrs:{headers:e.runningHeaders,items:e.runningScripts,search:e.runningSearch,dense:"","calculate-widths":"","multi-sort":"","sort-by":"start_time","sort-desc":"","data-test":"running-scripts","footer-props":{itemsPerPageOptions:[3],showFirstLastPage:!0},"max-height":"400"},scopedSlots:e._u([{key:"item.connect",fn:function({item:t}){return hl().f[2]++,hl().s[5]++,[n("v-btn",{attrs:{color:"primary"},on:{click:function(n){return hl().f[3]++,hl().s[6]++,e.connectScript(t)}}},[n("span",[e._v("Connect")]),e._v(" "),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.connectInNewTab,expression:"connectInNewTab"}],attrs:{right:""}},[e._v(" mdi-open-in-new ")])],1)]}},{key:"item.stop",fn:function({item:t}){return hl().f[4]++,hl().s[7]++,[n("v-btn",{attrs:{color:"primary"},on:{click:function(n){return hl().f[5]++,hl().s[8]++,e.stopScript(t)}}},[n("span",[e._v("Stop")]),e._v(" "),n("v-icon",{attrs:{right:""}},[e._v(" mdi-close-circle-outline ")])],1)]}},{key:"item.delete",fn:function({item:t}){return hl().f[6]++,hl().s[9]++,[n("v-btn",{attrs:{color:"primary"},on:{click:function(n){return hl().f[7]++,hl().s[10]++,e.deleteScript(t)}}},[n("span",[e._v("Delete")]),e._v(" "),n("v-icon",{attrs:{right:""}},[e._v(" mdi-alert-octagon-outline ")])],1)]}}])})],1),e._v(" "),n("v-card",{attrs:{flat:""}},[n("v-card-title",[n("v-row",{attrs:{dense:""}},[n("span",{staticClass:"mr-2"},[e._v("Completed Scripts")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-btn",{attrs:{color:"primary"},on:{click:e.getCompletedScripts}},[e._v("Refresh")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-text-field",{staticClass:"pt-0 search",attrs:{label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","single-line":"","hide-details":""},model:{value:e.completedSearch,callback:function(n){hl().f[8]++,hl().s[11]++,e.completedSearch=n},expression:"completedSearch"}})],1)],1),e._v(" "),n("v-data-table",{attrs:{headers:e.completedHeaders,items:e.completedScripts,search:e.completedSearch,dense:"","calculate-widths":"","multi-sort":"","sort-by":"start","sort-desc":"","data-test":"completed-scripts","footer-props":{itemsPerPageOptions:[5],showFirstLastPage:!0}},scopedSlots:e._u([{key:"item.download",fn:function({item:t}){return hl().f[9]++,hl().s[12]++,[n("v-btn",{attrs:{color:"primary",disabled:e.downloadScript,loading:(hl().b[0][0]++,e.downloadScript&&(hl().b[0][1]++,e.downloadScript.name===t.name))},on:{click:function(n){return hl().f[10]++,hl().s[13]++,e.downloadScriptLog(t)}},scopedSlots:e._u([{key:"loader",fn:function(){return hl().f[11]++,hl().s[14]++,[n("span",[e._v("Loading...")])]},proxy:!0}],null,!0)},[(hl().b[2][0]++,t.name.includes("(")&&(hl().b[2][1]++,t.name.includes(")"))?(hl().b[1][0]++,n("span",[e._v("Script Report")])):(hl().b[1][1]++,n("span",[e._v("Script Log")]))),e._v(" "),n("v-icon",{attrs:{right:""}},[e._v(" mdi-file-download-outline ")])],1)]}}])})],1)],1)},fl=(hl().s[15]++,[]);function gl(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",n="ca4d6d72f4f9a98e1289bc4d3fce0a7bca46837e",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",statementMap:{0:{start:{line:11,column:4},end:{line:52,column:5}},1:{start:{line:55,column:4},end:{line:55,column:28}},2:{start:{line:56,column:4},end:{line:56,column:30}},3:{start:{line:60,column:6},end:{line:62,column:8}},4:{start:{line:61,column:8},end:{line:61,column:43}},5:{start:{line:66,column:6},end:{line:68,column:8}},6:{start:{line:67,column:8},end:{line:67,column:45}},7:{start:{line:72,column:6},end:{line:72,column:30}},8:{start:{line:73,column:26},end:{line:76,column:7}},9:{start:{line:77,column:6},end:{line:83,column:7}},10:{start:{line:78,column:23},end:{line:78,column:56}},11:{start:{line:79,column:8},end:{line:79,column:35}},12:{start:{line:81,column:8},end:{line:81,column:38}},13:{start:{line:82,column:8},end:{line:82,column:27}},14:{start:{line:86,column:6},end:{line:109,column:10}},15:{start:{line:95,column:10},end:{line:95,column:73}},16:{start:{line:98,column:10},end:{line:100,column:12}},17:{start:{line:101,column:10},end:{line:101,column:34}},18:{start:{line:104,column:10},end:{line:108,column:11}},19:{start:{line:105,column:12},end:{line:107,column:14}},20:{start:{line:112,column:6},end:{line:136,column:10}},21:{start:{line:122,column:10},end:{line:122,column:75}},22:{start:{line:125,column:10},end:{line:127,column:12}},23:{start:{line:128,column:10},end:{line:128,column:34}},24:{start:{line:131,column:10},end:{line:135,column:11}},25:{start:{line:132,column:12},end:{line:134,column:14}},26:{start:{line:139,column:6},end:{line:139,column:34}},27:{start:{line:140,column:6},end:{line:160,column:10}},28:{start:{line:146,column:32},end:{line:146,column:53}},29:{start:{line:147,column:27},end:{line:147,column:66}},30:{start:{line:149,column:23},end:{line:149,column:50}},31:{start:{line:150,column:10},end:{line:150,column:39}},32:{start:{line:151,column:10},end:{line:151,column:49}},33:{start:{line:152,column:10},end:{line:152,column:22}},34:{start:{line:153,column:10},end:{line:153,column:36}},35:{start:{line:156,column:10},end:{line:159,column:12}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:10,column:2},end:{line:10,column:3}},loc:{start:{line:10,column:9},end:{line:53,column:3}},line:10},1:{name:"(anonymous_1)",decl:{start:{line:54,column:2},end:{line:54,column:3}},loc:{start:{line:54,column:12},end:{line:57,column:3}},line:54},2:{name:"(anonymous_2)",decl:{start:{line:59,column:23},end:{line:59,column:24}},loc:{start:{line:59,column:35},end:{line:63,column:5}},line:59},3:{name:"(anonymous_3)",decl:{start:{line:60,column:49},end:{line:60,column:50}},loc:{start:{line:60,column:63},end:{line:62,column:7}},line:60},4:{name:"(anonymous_4)",decl:{start:{line:64,column:25},end:{line:64,column:26}},loc:{start:{line:64,column:37},end:{line:69,column:5}},line:64},5:{name:"(anonymous_5)",decl:{start:{line:66,column:52},end:{line:66,column:53}},loc:{start:{line:66,column:66},end:{line:68,column:7}},line:66},6:{name:"(anonymous_6)",decl:{start:{line:70,column:19},end:{line:70,column:20}},loc:{start:{line:70,column:37},end:{line:84,column:5}},line:70},7:{name:"(anonymous_7)",decl:{start:{line:85,column:16},end:{line:85,column:17}},loc:{start:{line:85,column:34},end:{line:110,column:5}},line:85},8:{name:"(anonymous_8)",decl:{start:{line:94,column:14},end:{line:94,column:15}},loc:{start:{line:94,column:26},end:{line:96,column:9}},line:94},9:{name:"(anonymous_9)",decl:{start:{line:97,column:14},end:{line:97,column:15}},loc:{start:{line:97,column:28},end:{line:102,column:9}},line:97},10:{name:"(anonymous_10)",decl:{start:{line:103,column:15},end:{line:103,column:16}},loc:{start:{line:103,column:26},end:{line:109,column:9}},line:103},11:{name:"(anonymous_11)",decl:{start:{line:111,column:18},end:{line:111,column:19}},loc:{start:{line:111,column:36},end:{line:137,column:5}},line:111},12:{name:"(anonymous_12)",decl:{start:{line:121,column:14},end:{line:121,column:15}},loc:{start:{line:121,column:26},end:{line:123,column:9}},line:121},13:{name:"(anonymous_13)",decl:{start:{line:124,column:14},end:{line:124,column:15}},loc:{start:{line:124,column:28},end:{line:129,column:9}},line:124},14:{name:"(anonymous_14)",decl:{start:{line:130,column:15},end:{line:130,column:16}},loc:{start:{line:130,column:26},end:{line:136,column:9}},line:130},15:{name:"(anonymous_15)",decl:{start:{line:138,column:23},end:{line:138,column:24}},loc:{start:{line:138,column:41},end:{line:161,column:5}},line:138},16:{name:"(anonymous_16)",decl:{start:{line:145,column:14},end:{line:145,column:15}},loc:{start:{line:145,column:28},end:{line:154,column:9}},line:145},17:{name:"(anonymous_17)",decl:{start:{line:155,column:15},end:{line:155,column:16}},loc:{start:{line:155,column:21},end:{line:160,column:9}},line:155}},branchMap:{0:{loc:{start:{line:77,column:6},end:{line:83,column:7}},type:"if",locations:[{start:{line:77,column:6},end:{line:83,column:7}},{start:{line:80,column:13},end:{line:83,column:7}}],line:77},1:{loc:{start:{line:104,column:10},end:{line:108,column:11}},type:"if",locations:[{start:{line:104,column:10},end:{line:108,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:104},2:{loc:{start:{line:131,column:10},end:{line:135,column:11}},type:"if",locations:[{start:{line:131,column:10},end:{line:135,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:131}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,sources:["RunningScripts.vue"],names:[],mappings:";AA4IA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"RunningScripts.vue",sourceRoot:"src/tools/ScriptRunner",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2024, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <v-card flat>\n <v-card-title>\n <v-row dense>\n <span class="mr-2">Running Scripts</span>\n <v-spacer />\n <v-btn class="mr-2" color="primary" @click="getRunningScripts"\n >Refresh</v-btn\n >\n <v-spacer />\n <v-text-field\n v-model="runningSearch"\n class="pt-0 search"\n label="Search"\n prepend-inner-icon="mdi-magnify"\n clearable\n outlined\n dense\n single-line\n hide-details\n data-test="running-search" /></v-row\n ></v-card-title>\n <v-data-table\n :headers="runningHeaders"\n :items="runningScripts"\n :search="runningSearch"\n dense\n calculate-widths\n multi-sort\n sort-by="start_time"\n sort-desc\n data-test="running-scripts"\n :footer-props="{\n itemsPerPageOptions: [3],\n showFirstLastPage: true,\n }"\n max-height="400"\n >\n <template v-slot:item.connect="{ item }">\n <v-btn color="primary" @click="connectScript(item)">\n <span>Connect</span>\n <v-icon right v-show="connectInNewTab"> mdi-open-in-new </v-icon>\n </v-btn>\n </template>\n <template v-slot:item.stop="{ item }">\n <v-btn color="primary" @click="stopScript(item)">\n <span>Stop</span>\n <v-icon right> mdi-close-circle-outline </v-icon>\n </v-btn>\n </template>\n <template v-slot:item.delete="{ item }">\n <v-btn color="primary" @click="deleteScript(item)">\n <span>Delete</span>\n <v-icon right> mdi-alert-octagon-outline </v-icon>\n </v-btn>\n </template>\n </v-data-table>\n </v-card>\n <v-card flat>\n <v-card-title>\n <v-row dense>\n <span class="mr-2">Completed Scripts</span>\n <v-spacer />\n <v-btn color="primary" @click="getCompletedScripts">Refresh</v-btn>\n <v-spacer />\n <v-text-field\n v-model="completedSearch"\n class="pt-0 search"\n label="Search"\n prepend-inner-icon="mdi-magnify"\n clearable\n outlined\n dense\n single-line\n hide-details\n />\n </v-row>\n </v-card-title>\n \x3c!-- TODO: This probably needs to be paginated --\x3e\n <v-data-table\n :headers="completedHeaders"\n :items="completedScripts"\n :search="completedSearch"\n dense\n calculate-widths\n multi-sort\n sort-by="start"\n sort-desc\n data-test="completed-scripts"\n :footer-props="{\n itemsPerPageOptions: [5],\n showFirstLastPage: true,\n }"\n >\n <template v-slot:item.download="{ item }">\n <v-btn\n color="primary"\n :disabled="downloadScript"\n :loading="downloadScript && downloadScript.name === item.name"\n @click="downloadScriptLog(item)"\n >\n <span v-if="item.name.includes(\'(\') && item.name.includes(\')\')"\n >Script Report</span\n >\n <span v-else>Script Log</span>\n <v-icon right> mdi-file-download-outline </v-icon>\n <template v-slot:loader>\n <span>Loading...</span>\n </template>\n </v-btn>\n </template>\n </v-data-table>\n </v-card>\n </div>\n</template>\n\n<script>\nimport Api from \'@openc3/tool-common/src/services/api\'\n\nexport default {\n props: {\n tabId: Number,\n curTab: Number,\n connectInNewTab: Boolean,\n },\n data() {\n return {\n downloadScript: null,\n runningSearch: \'\',\n runningScripts: [],\n runningHeaders: [\n {\n text: \'Connect\',\n value: \'connect\',\n sortable: false,\n filterable: false,\n },\n { text: \'Id\', value: \'id\' },\n { text: \'User\', value: \'user\' },\n { text: \'Name\', value: \'name\' },\n { text: \'Start Time\', value: \'start_time\' },\n {\n text: \'Stop\',\n value: \'stop\',\n sortable: false,\n filterable: false,\n },\n {\n text: \'Force Quit\',\n value: \'delete\',\n sortable: false,\n filterable: false,\n },\n ],\n completedSearch: \'\',\n completedScripts: [],\n completedHeaders: [\n { text: \'User\', value: \'user\' },\n { text: \'Name\', value: \'name\' },\n { text: \'Start Time\', value: \'start\' },\n {\n text: \'Download\',\n value: \'download\',\n sortable: false,\n filterable: false,\n },\n ],\n }\n },\n created() {\n this.getRunningScripts()\n this.getCompletedScripts()\n },\n methods: {\n getRunningScripts: function () {\n Api.get(\'/script-api/running-script\').then((response) => {\n this.runningScripts = response.data\n })\n },\n getCompletedScripts: function () {\n // TODO: Support pagination because you could have a lot of completed scripts\n Api.get(\'/script-api/completed-scripts\').then((response) => {\n this.completedScripts = response.data\n })\n },\n connectScript: function (script) {\n // Must disconnect before connecting\n this.$emit(\'disconnect\')\n const destination = {\n name: \'ScriptRunner\',\n params: { id: script.id },\n }\n if (this.connectInNewTab) {\n let { href } = this.$router.resolve(destination)\n window.open(href, \'_blank\')\n } else {\n this.$router.push(destination)\n this.$emit(\'close\')\n }\n },\n stopScript: function (script) {\n this.$dialog\n .confirm(\n `Are you sure you want to stop script: ${script.id} ${script.name}?`,\n {\n okText: \'Stop\',\n cancelText: \'Cancel\',\n },\n )\n .then((dialog) => {\n return Api.post(`/script-api/running-script/${script.id}/stop`)\n })\n .then((response) => {\n this.$notify.normal({\n body: `Stopped script: ${script.id} ${script.name}`,\n })\n this.getRunningScripts()\n })\n .catch((error) => {\n if (error) {\n this.$notify.caution({\n body: `Failed to stop script: ${script.id} ${script.name}`,\n })\n }\n })\n },\n deleteScript: function (script) {\n this.$dialog\n .confirm(\n `Are you sure you want to force quit script: ${script.id} ${script.name}?\\n` +\n \'Did you try to stop the script first to allow the script to stop gracefully?\',\n {\n okText: \'Force Quit\',\n cancelText: \'Cancel\',\n },\n )\n .then((dialog) => {\n return Api.post(`/script-api/running-script/${script.id}/delete`)\n })\n .then((response) => {\n this.$notify.normal({\n body: `Stopped script: ${script.id} ${script.name}`,\n })\n this.getRunningScripts()\n })\n .catch((error) => {\n if (error) {\n this.$notify.caution({\n body: `Failed to stop script: ${script.id} ${script.name}`,\n })\n }\n })\n },\n downloadScriptLog: function (script) {\n this.downloadScript = script\n Api.get(\n `/openc3-api/storage/download/${encodeURIComponent(\n script.log,\n )}?bucket=OPENC3_LOGS_BUCKET`,\n )\n .then((response) => {\n const filenameParts = script.log.split(\'/\')\n const basename = filenameParts[filenameParts.length - 1]\n // Make a link and then \'click\' on it to start the download\n const link = document.createElement(\'a\')\n link.href = response.data.url\n link.setAttribute(\'download\', basename)\n link.click()\n this.downloadScript = null\n })\n .catch(() => {\n this.$notify.caution({\n title: `Unable to download log for ${script.name}`,\n body: `You may be able to download this log manually from the \'logs\' bucket at ${script.log}`,\n })\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ca4d6d72f4f9a98e1289bc4d3fce0a7bca46837e"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return gl=function(){return o},o}gl();const Cl={props:{tabId:Number,curTab:Number,connectInNewTab:Boolean},data(){return gl().f[0]++,gl().s[0]++,{downloadScript:null,runningSearch:"",runningScripts:[],runningHeaders:[{text:"Connect",value:"connect",sortable:!1,filterable:!1},{text:"Id",value:"id"},{text:"User",value:"user"},{text:"Name",value:"name"},{text:"Start Time",value:"start_time"},{text:"Stop",value:"stop",sortable:!1,filterable:!1},{text:"Force Quit",value:"delete",sortable:!1,filterable:!1}],completedSearch:"",completedScripts:[],completedHeaders:[{text:"User",value:"user"},{text:"Name",value:"name"},{text:"Start Time",value:"start"},{text:"Download",value:"download",sortable:!1,filterable:!1}]}},created(){gl().f[1]++,gl().s[1]++,this.getRunningScripts(),gl().s[2]++,this.getCompletedScripts()},methods:{getRunningScripts:function(){gl().f[2]++,gl().s[3]++,r.A.get("/script-api/running-script").then((e=>{gl().f[3]++,gl().s[4]++,this.runningScripts=e.data}))},getCompletedScripts:function(){gl().f[4]++,gl().s[5]++,r.A.get("/script-api/completed-scripts").then((e=>{gl().f[5]++,gl().s[6]++,this.completedScripts=e.data}))},connectScript:function(e){gl().f[6]++,gl().s[7]++,this.$emit("disconnect");const n=(gl().s[8]++,{name:"ScriptRunner",params:{id:e.id}});if(gl().s[9]++,this.connectInNewTab){gl().b[0][0]++;let{href:e}=(gl().s[10]++,this.$router.resolve(n));gl().s[11]++,window.open(e,"_blank")}else gl().b[0][1]++,gl().s[12]++,this.$router.push(n),gl().s[13]++,this.$emit("close")},stopScript:function(e){gl().f[7]++,gl().s[14]++,this.$dialog.confirm(`Are you sure you want to stop script: ${e.id} ${e.name}?`,{okText:"Stop",cancelText:"Cancel"}).then((n=>(gl().f[8]++,gl().s[15]++,r.A.post(`/script-api/running-script/${e.id}/stop`)))).then((n=>{gl().f[9]++,gl().s[16]++,this.$notify.normal({body:`Stopped script: ${e.id} ${e.name}`}),gl().s[17]++,this.getRunningScripts()})).catch((n=>{gl().f[10]++,gl().s[18]++,n?(gl().b[1][0]++,gl().s[19]++,this.$notify.caution({body:`Failed to stop script: ${e.id} ${e.name}`})):gl().b[1][1]++}))},deleteScript:function(e){gl().f[11]++,gl().s[20]++,this.$dialog.confirm(`Are you sure you want to force quit script: ${e.id} ${e.name}?\nDid you try to stop the script first to allow the script to stop gracefully?`,{okText:"Force Quit",cancelText:"Cancel"}).then((n=>(gl().f[12]++,gl().s[21]++,r.A.post(`/script-api/running-script/${e.id}/delete`)))).then((n=>{gl().f[13]++,gl().s[22]++,this.$notify.normal({body:`Stopped script: ${e.id} ${e.name}`}),gl().s[23]++,this.getRunningScripts()})).catch((n=>{gl().f[14]++,gl().s[24]++,n?(gl().b[2][0]++,gl().s[25]++,this.$notify.caution({body:`Failed to stop script: ${e.id} ${e.name}`})):gl().b[2][1]++}))},downloadScriptLog:function(e){gl().f[15]++,gl().s[26]++,this.downloadScript=e,gl().s[27]++,r.A.get(`/openc3-api/storage/download/${encodeURIComponent(e.log)}?bucket=OPENC3_LOGS_BUCKET`).then((n=>{gl().f[16]++;const t=(gl().s[28]++,e.log.split("/")),l=(gl().s[29]++,t[t.length-1]),i=(gl().s[30]++,document.createElement("a"));gl().s[31]++,i.href=n.data.url,gl().s[32]++,i.setAttribute("download",l),gl().s[33]++,i.click(),gl().s[34]++,this.downloadScript=null})).catch((()=>{gl().f[17]++,gl().s[35]++,this.$notify.caution({title:`Unable to download log for ${e.name}`,body:`You may be able to download this log manually from the 'logs' bucket at ${e.log}`})}))}}},bl=Cl;var _l=(0,f.A)(bl,vl,fl,!1,null,null,null);const yl=_l.exports;function wl(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",n="8ad94ff360ede2bac452588147f397e506fa6647",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",statementMap:{0:{start:{line:40,column:20},end:{line:40,column:30}},1:{start:{line:41,column:21},end:{line:41,column:33}},2:{start:{line:42,column:14},end:{line:42,column:21}},3:{start:{line:43,column:11},end:{line:43,column:15}},4:{start:{line:44,column:14},end:{line:44,column:21}},5:{start:{line:45,column:14},end:{line:45,column:21}},6:{start:{line:69,column:4},end:{line:187,column:5}},7:{start:{line:193,column:24},end:{line:193,column:47}},8:{start:{line:194,column:6},end:{line:194,column:39}},9:{start:{line:195,column:6},end:{line:195,column:36}},10:{start:{line:198,column:6},end:{line:200,column:32}},11:{start:{line:203,column:6},end:{line:203,column:67}},12:{start:{line:206,column:6},end:{line:206,column:28}},13:{start:{line:210,column:6},end:{line:210,column:59}},14:{start:{line:210,column:32},end:{line:210,column:59}},15:{start:{line:212,column:6},end:{line:212,column:61}},16:{start:{line:212,column:42},end:{line:212,column:61}},17:{start:{line:213,column:6},end:{line:213,column:59}},18:{start:{line:219,column:6},end:{line:219,column:64}},19:{start:{line:222,column:6},end:{line:435,column:7}},20:{start:{line:231,column:16},end:{line:231,column:30}},21:{start:{line:243,column:20},end:{line:243,column:43}},22:{start:{line:250,column:20},end:{line:250,column:45}},23:{start:{line:260,column:16},end:{line:260,column:31}},24:{start:{line:277,column:16},end:{line:277,column:31}},25:{start:{line:285,column:16},end:{line:285,column:29}},26:{start:{line:296,column:16},end:{line:296,column:31}},27:{start:{line:307,column:16},end:{line:307,column:29}},28:{start:{line:319,column:16},end:{line:319,column:47}},29:{start:{line:327,column:16},end:{line:327,column:50}},30:{start:{line:339,column:16},end:{line:339,column:39}},31:{start:{line:350,column:16},end:{line:350,column:60}},32:{start:{line:358,column:16},end:{line:358,column:54}},33:{start:{line:359,column:16},end:{line:359,column:35}},34:{start:{line:366,column:16},end:{line:366,column:41}},35:{start:{line:377,column:16},end:{line:377,column:34}},36:{start:{line:385,column:16},end:{line:385,column:37}},37:{start:{line:393,column:16},end:{line:393,column:39}},38:{start:{line:401,column:16},end:{line:401,column:36}},39:{start:{line:411,column:16},end:{line:411,column:34}},40:{start:{line:419,column:16},end:{line:419,column:39}},41:{start:{line:430,column:16},end:{line:430,column:43}},42:{start:{line:438,column:6},end:{line:451,column:7}},43:{start:{line:456,column:6},end:{line:456,column:34}},44:{start:{line:457,column:6},end:{line:459,column:7}},45:{start:{line:458,column:8},end:{line:458,column:36}},46:{start:{line:460,column:6},end:{line:460,column:34}},47:{start:{line:463,column:6},end:{line:463,column:36}},48:{start:{line:464,column:6},end:{line:468,column:7}},49:{start:{line:465,column:8},end:{line:465,column:58}},50:{start:{line:467,column:8},end:{line:467,column:58}},51:{start:{line:473,column:4},end:{line:473,column:30}},52:{start:{line:474,column:4},end:{line:474,column:36}},53:{start:{line:477,column:4},end:{line:477,column:36}},54:{start:{line:478,column:4},end:{line:478,column:43}},55:{start:{line:480,column:4},end:{line:482,column:6}},56:{start:{line:481,column:6},end:{line:481,column:41}},57:{start:{line:485,column:4},end:{line:485,column:45}},58:{start:{line:486,column:4},end:{line:486,column:46}},59:{start:{line:488,column:23},end:{line:509,column:5}},60:{start:{line:510,column:27},end:{line:510,column:63}},61:{start:{line:511,column:29},end:{line:511,column:67}},62:{start:{line:512,column:4},end:{line:512,column:46}},63:{start:{line:513,column:4},end:{line:513,column:50}},64:{start:{line:514,column:4},end:{line:514,column:52}},65:{start:{line:515,column:4},end:{line:515,column:37}},66:{start:{line:516,column:4},end:{line:516,column:44}},67:{start:{line:517,column:4},end:{line:517,column:42}},68:{start:{line:518,column:4},end:{line:518,column:60}},69:{start:{line:519,column:4},end:{line:519,column:59}},70:{start:{line:520,column:4},end:{line:520,column:69}},71:{start:{line:521,column:4},end:{line:521,column:45}},72:{start:{line:522,column:4},end:{line:522,column:23}},73:{start:{line:523,column:4},end:{line:523,column:60}},74:{start:{line:527,column:4},end:{line:527,column:60}},75:{start:{line:529,column:27},end:{line:529,column:58}},76:{start:{line:530,column:4},end:{line:533,column:6}},77:{start:{line:531,column:6},end:{line:531,column:46}},78:{start:{line:532,column:6},end:{line:532,column:45}},79:{start:{line:535,column:4},end:{line:535,column:52}},80:{start:{line:536,column:4},end:{line:536,column:47}},81:{start:{line:538,column:4},end:{line:548,column:5}},82:{start:{line:539,column:6},end:{line:539,column:69}},83:{start:{line:541,column:6},end:{line:547,column:9}},84:{start:{line:541,column:47},end:{line:547,column:7}},85:{start:{line:544,column:10},end:{line:544,column:37}},86:{start:{line:545,column:10},end:{line:545,column:33}},87:{start:{line:549,column:4},end:{line:559,column:5}},88:{start:{line:550,column:6},end:{line:550,column:44}},89:{start:{line:551,column:6},end:{line:551,column:29}},90:{start:{line:552,column:11},end:{line:559,column:5}},91:{start:{line:553,column:6},end:{line:553,column:60}},92:{start:{line:555,column:6},end:{line:558,column:7}},93:{start:{line:556,column:8},end:{line:556,column:63}},94:{start:{line:557,column:8},end:{line:557,column:36}},95:{start:{line:573,column:4},end:{line:575,column:11}},96:{start:{line:574,column:6},end:{line:574,column:28}},97:{start:{line:578,column:4},end:{line:578,column:25}},98:{start:{line:579,column:4},end:{line:579,column:34}},99:{start:{line:582,column:4},end:{line:582,column:21}},100:{start:{line:583,column:4},end:{line:585,column:5}},101:{start:{line:584,column:6},end:{line:584,column:40}},102:{start:{line:586,column:4},end:{line:589,column:5}},103:{start:{line:587,column:6},end:{line:587,column:37}},104:{start:{line:588,column:6},end:{line:588,column:30}},105:{start:{line:590,column:4},end:{line:590,column:27}},106:{start:{line:593,column:4},end:{line:597,column:5}},107:{start:{line:594,column:6},end:{line:594,column:56}},108:{start:{line:596,column:6},end:{line:596,column:12}},109:{start:{line:601,column:6},end:{line:604,column:7}},110:{start:{line:602,column:8},end:{line:602,column:39}},111:{start:{line:603,column:8},end:{line:603,column:32}},112:{start:{line:605,column:6},end:{line:605,column:36}},113:{start:{line:608,column:6},end:{line:622,column:8}},114:{start:{line:610,column:8},end:{line:620,column:10}},115:{start:{line:611,column:10},end:{line:619,column:11}},116:{start:{line:621,column:8},end:{line:621,column:38}},117:{start:{line:625,column:16},end:{line:625,column:42}},118:{start:{line:626,column:31},end:{line:628,column:26}},119:{start:{line:630,column:17},end:{line:633,column:27}},120:{start:{line:631,column:23},end:{line:631,column:42}},121:{start:{line:632,column:23},end:{line:632,column:35}},122:{start:{line:634,column:18},end:{line:634,column:63}},123:{start:{line:635,column:33},end:{line:644,column:7}},124:{start:{line:636,column:8},end:{line:636,column:37}},125:{start:{line:638,column:8},end:{line:643,column:9}},126:{start:{line:639,column:10},end:{line:642,column:12}},127:{start:{line:645,column:6},end:{line:645,column:60}},128:{start:{line:647,column:33},end:{line:649,column:28}},129:{start:{line:650,column:28},end:{line:652,column:23}},130:{start:{line:653,column:21},end:{line:653,column:66}},131:{start:{line:654,column:17},end:{line:660,column:7}},132:{start:{line:655,column:8},end:{line:655,column:50}},133:{start:{line:656,column:8},end:{line:656,column:50}},134:{start:{line:657,column:8},end:{line:657,column:47}},135:{start:{line:658,column:8},end:{line:658,column:42}},136:{start:{line:659,column:8},end:{line:659,column:62}},137:{start:{line:661,column:21},end:{line:661,column:54}},138:{start:{line:662,column:6},end:{line:663,column:7}},139:{start:{line:663,column:7},end:{line:665,column:29}},140:{start:{line:664,column:8},end:{line:664,column:36}},141:{start:{line:666,column:6},end:{line:666,column:17}},142:{start:{line:669,column:16},end:{line:669,column:42}},143:{start:{line:670,column:33},end:{line:672,column:28}},144:{start:{line:674,column:17},end:{line:677,column:27}},145:{start:{line:675,column:23},end:{line:675,column:42}},146:{start:{line:676,column:23},end:{line:676,column:35}},147:{start:{line:678,column:18},end:{line:678,column:63}},148:{start:{line:679,column:33},end:{line:688,column:7}},149:{start:{line:680,column:8},end:{line:680,column:39}},150:{start:{line:682,column:8},end:{line:687,column:9}},151:{start:{line:683,column:10},end:{line:686,column:12}},152:{start:{line:689,column:6},end:{line:689,column:62}},153:{start:{line:691,column:33},end:{line:693,column:28}},154:{start:{line:694,column:28},end:{line:696,column:23}},155:{start:{line:697,column:21},end:{line:697,column:70}},156:{start:{line:698,column:17},end:{line:704,column:7}},157:{start:{line:699,column:8},end:{line:699,column:50}},158:{start:{line:700,column:8},end:{line:700,column:50}},159:{start:{line:701,column:8},end:{line:701,column:47}},160:{start:{line:702,column:8},end:{line:702,column:42}},161:{start:{line:703,column:8},end:{line:703,column:62}},162:{start:{line:705,column:23},end:{line:705,column:58}},163:{start:{line:706,column:6},end:{line:707,column:7}},164:{start:{line:707,column:7},end:{line:709,column:29}},165:{start:{line:708,column:8},end:{line:708,column:36}},166:{start:{line:710,column:6},end:{line:710,column:17}},167:{start:{line:714,column:6},end:{line:723,column:7}},168:{start:{line:715,column:8},end:{line:715,column:39}},169:{start:{line:716,column:8},end:{line:716,column:31}},170:{start:{line:717,column:13},end:{line:723,column:7}},171:{start:{line:721,column:8},end:{line:721,column:40}},172:{start:{line:722,column:8},end:{line:722,column:31}},173:{start:{line:729,column:6},end:{line:729,column:39}},174:{start:{line:730,column:6},end:{line:730,column:56}},175:{start:{line:731,column:6},end:{line:731,column:39}},176:{start:{line:732,column:6},end:{line:732,column:34}},177:{start:{line:733,column:6},end:{line:733,column:29}},178:{start:{line:734,column:6},end:{line:743,column:7}},179:{start:{line:744,column:6},end:{line:744,column:55}},180:{start:{line:747,column:6},end:{line:763,column:8}},181:{start:{line:748,column:34},end:{line:750,column:9}},182:{start:{line:749,column:17},end:{line:749,column:38}},183:{start:{line:751,column:8},end:{line:762,column:9}},184:{start:{line:752,column:10},end:{line:752,column:48}},185:{start:{line:753,column:10},end:{line:753,column:30}},186:{start:{line:754,column:10},end:{line:754,column:32}},187:{start:{line:755,column:10},end:{line:755,column:48}},188:{start:{line:757,column:10},end:{line:760,column:12}},189:{start:{line:761,column:10},end:{line:761,column:33}},190:{start:{line:766,column:6},end:{line:778,column:8}},191:{start:{line:767,column:8},end:{line:771,column:9}},192:{start:{line:768,column:10},end:{line:768,column:39}},193:{start:{line:769,column:10},end:{line:769,column:33}},194:{start:{line:770,column:10},end:{line:770,column:58}},195:{start:{line:772,column:8},end:{line:775,column:9}},196:{start:{line:773,column:10},end:{line:773,column:47}},197:{start:{line:774,column:10},end:{line:774,column:36}},198:{start:{line:777,column:8},end:{line:777,column:65}},199:{start:{line:781,column:6},end:{line:781,column:31}},200:{start:{line:782,column:6},end:{line:782,column:31}},201:{start:{line:783,column:6},end:{line:783,column:38}},202:{start:{line:786,column:20},end:{line:786,column:55}},203:{start:{line:787,column:19},end:{line:789,column:19}},204:{start:{line:790,column:26},end:{line:792,column:34}},205:{start:{line:791,column:25},end:{line:791,column:37}},206:{start:{line:792,column:22},end:{line:792,column:33}},207:{start:{line:793,column:6},end:{line:793,column:41}},208:{start:{line:796,column:19},end:{line:796,column:48}},209:{start:{line:797,column:20},end:{line:797,column:51}},210:{start:{line:798,column:26},end:{line:800,column:44}},211:{start:{line:799,column:25},end:{line:799,column:71}},212:{start:{line:800,column:22},end:{line:800,column:43}},213:{start:{line:801,column:6},end:{line:801,column:41}},214:{start:{line:804,column:22},end:{line:804,column:56}},215:{start:{line:807,column:8},end:{line:810,column:28}},216:{start:{line:811,column:6},end:{line:826,column:10}},217:{start:{line:818,column:10},end:{line:822,column:12}},218:{start:{line:825,column:10},end:{line:825,column:61}},219:{start:{line:829,column:6},end:{line:829,column:44}},220:{start:{line:833,column:6},end:{line:840,column:7}},221:{start:{line:834,column:20},end:{line:834,column:52}},222:{start:{line:835,column:8},end:{line:839,column:9}},223:{start:{line:836,column:10},end:{line:836,column:52}},224:{start:{line:838,column:10},end:{line:838,column:50}},225:{start:{line:843,column:6},end:{line:845,column:7}},226:{start:{line:844,column:8},end:{line:844,column:14}},227:{start:{line:846,column:27},end:{line:850,column:7}},228:{start:{line:848,column:10},end:{line:849,column:32}},229:{start:{line:851,column:25},end:{line:851,column:27}},230:{start:{line:852,column:19},end:{line:852,column:20}},231:{start:{line:853,column:6},end:{line:864,column:7}},232:{start:{line:855,column:10},end:{line:855,column:42}},233:{start:{line:856,column:10},end:{line:856,column:32}},234:{start:{line:857,column:10},end:{line:857,column:15}},235:{start:{line:859,column:10},end:{line:859,column:43}},236:{start:{line:860,column:10},end:{line:862,column:11}},237:{start:{line:861,column:21},end:{line:861,column:43}},238:{start:{line:863,column:10},end:{line:863,column:15}},239:{start:{line:865,column:6},end:{line:870,column:8}},240:{start:{line:866,column:8},end:{line:866,column:36}},241:{start:{line:867,column:8},end:{line:869,column:9}},242:{start:{line:868,column:10},end:{line:868,column:45}},243:{start:{line:873,column:6},end:{line:876,column:33}},244:{start:{line:875,column:34},end:{line:875,column:51}},245:{start:{line:879,column:6},end:{line:879,column:29}},246:{start:{line:880,column:6},end:{line:882,column:8}},247:{start:{line:881,column:8},end:{line:881,column:53}},248:{start:{line:885,column:6},end:{line:895,column:10}},249:{start:{line:891,column:10},end:{line:891,column:65}},250:{start:{line:894,column:10},end:{line:894,column:33}},251:{start:{line:898,column:6},end:{line:902,column:7}},252:{start:{line:899,column:8},end:{line:899,column:40}},253:{start:{line:901,column:8},end:{line:901,column:37}},254:{start:{line:906,column:6},end:{line:908,column:7}},255:{start:{line:907,column:8},end:{line:907,column:14}},256:{start:{line:911,column:6},end:{line:922,column:7}},257:{start:{line:915,column:8},end:{line:921,column:9}},258:{start:{line:916,column:10},end:{line:916,column:32}},259:{start:{line:917,column:10},end:{line:917,column:23}},260:{start:{line:919,column:10},end:{line:919,column:32}},261:{start:{line:920,column:10},end:{line:920,column:31}},262:{start:{line:926,column:6},end:{line:928,column:7}},263:{start:{line:927,column:8},end:{line:927,column:14}},264:{start:{line:929,column:6},end:{line:933,column:7}},265:{start:{line:930,column:8},end:{line:930,column:31}},266:{start:{line:932,column:8},end:{line:932,column:30}},267:{start:{line:936,column:6},end:{line:954,column:10}},268:{start:{line:939,column:26},end:{line:939,column:28}},269:{start:{line:940,column:10},end:{line:945,column:11}},270:{start:{line:941,column:32},end:{line:943,column:28}},271:{start:{line:942,column:32},end:{line:942,column:73}},272:{start:{line:944,column:12},end:{line:944,column:107}},273:{start:{line:946,column:10},end:{line:949,column:11}},274:{start:{line:947,column:12},end:{line:948,column:86}},275:{start:{line:950,column:10},end:{line:952,column:11}},276:{start:{line:951,column:12},end:{line:951,column:65}},277:{start:{line:953,column:10},end:{line:953,column:62}},278:{start:{line:957,column:6},end:{line:957,column:37}},279:{start:{line:958,column:6},end:{line:958,column:35}},280:{start:{line:959,column:6},end:{line:959,column:29}},281:{start:{line:960,column:6},end:{line:960,column:38}},282:{start:{line:961,column:6},end:{line:961,column:30}},283:{start:{line:962,column:6},end:{line:962,column:34}},284:{start:{line:963,column:6},end:{line:963,column:31}},285:{start:{line:964,column:6},end:{line:964,column:35}},286:{start:{line:967,column:6},end:{line:967,column:24}},287:{start:{line:968,column:6},end:{line:981,column:10}},288:{start:{line:973,column:32},end:{line:973,column:51}},289:{start:{line:980,column:10},end:{line:980,column:42}},290:{start:{line:985,column:6},end:{line:985,column:28}},291:{start:{line:986,column:6},end:{line:986,column:24}},292:{start:{line:987,column:6},end:{line:987,column:26}},293:{start:{line:988,column:6},end:{line:988,column:33}},294:{start:{line:989,column:6},end:{line:989,column:21}},295:{start:{line:991,column:6},end:{line:994,column:7}},296:{start:{line:992,column:8},end:{line:992,column:45}},297:{start:{line:993,column:8},end:{line:993,column:32}},298:{start:{line:995,column:6},end:{line:995,column:36}},299:{start:{line:997,column:6},end:{line:997,column:29}},300:{start:{line:1e3,column:6},end:{line:1e3,column:50}},301:{start:{line:1001,column:6},end:{line:1001,column:36}},302:{start:{line:1004,column:6},end:{line:1004,column:38}},303:{start:{line:1005,column:6},end:{line:1005,column:34}},304:{start:{line:1006,column:6},end:{line:1006,column:37}},305:{start:{line:1008,column:6},end:{line:1008,column:47}},306:{start:{line:1009,column:6},end:{line:1009,column:30}},307:{start:{line:1010,column:6},end:{line:1010,column:38}},308:{start:{line:1011,column:6},end:{line:1011,column:30}},309:{start:{line:1014,column:6},end:{line:1014,column:40}},310:{start:{line:1017,column:6},end:{line:1017,column:18}},311:{start:{line:1023,column:6},end:{line:1023,column:28}},312:{start:{line:1024,column:6},end:{line:1024,column:34}},313:{start:{line:1025,column:6},end:{line:1025,column:30}},314:{start:{line:1026,column:21},end:{line:1026,column:34}},315:{start:{line:1027,column:6},end:{line:1030,column:7}},316:{start:{line:1029,column:8},end:{line:1029,column:36}},317:{start:{line:1031,column:16},end:{line:1031,column:53}},318:{start:{line:1032,column:6},end:{line:1034,column:7}},319:{start:{line:1033,column:8},end:{line:1033,column:28}},320:{start:{line:1035,column:17},end:{line:1037,column:7}},321:{start:{line:1038,column:6},end:{line:1040,column:7}},322:{start:{line:1039,column:8},end:{line:1039,column:35}},323:{start:{line:1041,column:6},end:{line:1047,column:10}},324:{start:{line:1043,column:10},end:{line:1043,column:41}},325:{start:{line:1046,column:10},end:{line:1046,column:31}},326:{start:{line:1052,column:6},end:{line:1052,column:48}},327:{start:{line:1053,column:6},end:{line:1053,column:48}},328:{start:{line:1054,column:6},end:{line:1054,column:64}},329:{start:{line:1057,column:6},end:{line:1062,column:7}},330:{start:{line:1058,column:8},end:{line:1058,column:69}},331:{start:{line:1060,column:8},end:{line:1060,column:39}},332:{start:{line:1061,column:8},end:{line:1061,column:69}},333:{start:{line:1068,column:6},end:{line:1073,column:7}},334:{start:{line:1069,column:8},end:{line:1069,column:31}},335:{start:{line:1070,column:8},end:{line:1070,column:29}},336:{start:{line:1072,column:8},end:{line:1072,column:68}},337:{start:{line:1076,column:6},end:{line:1076,column:66}},338:{start:{line:1079,column:6},end:{line:1108,column:7}},339:{start:{line:1080,column:8},end:{line:1107,column:9}},340:{start:{line:1083,column:10},end:{line:1083,column:64}},341:{start:{line:1086,column:10},end:{line:1101,column:14}},342:{start:{line:1090,column:14},end:{line:1093,column:15}},343:{start:{line:1094,column:14},end:{line:1094,column:73}},344:{start:{line:1095,column:14},end:{line:1095,column:52}},345:{start:{line:1096,column:14},end:{line:1096,column:41}},346:{start:{line:1100,column:14},end:{line:1100,column:46}},347:{start:{line:1103,column:10},end:{line:1103,column:46}},348:{start:{line:1104,column:10},end:{line:1104,column:65}},349:{start:{line:1105,column:10},end:{line:1105,column:48}},350:{start:{line:1106,column:10},end:{line:1106,column:38}},351:{start:{line:1109,column:6},end:{line:1109,column:29}},352:{start:{line:1110,column:22},end:{line:1110,column:54}},353:{start:{line:1111,column:6},end:{line:1164,column:7}},354:{start:{line:1113,column:10},end:{line:1113,column:40}},355:{start:{line:1114,column:10},end:{line:1114,column:43}},356:{start:{line:1115,column:10},end:{line:1115,column:35}},357:{start:{line:1116,column:10},end:{line:1116,column:41}},358:{start:{line:1118,column:10},end:{line:1118,column:33}},359:{start:{line:1119,column:10},end:{line:1123,column:11}},360:{start:{line:1124,column:10},end:{line:1124,column:44}},361:{start:{line:1125,column:10},end:{line:1125,column:57}},362:{start:{line:1126,column:10},end:{line:1126,column:15}},363:{start:{line:1128,column:10},end:{line:1128,column:27}},364:{start:{line:1131,column:10},end:{line:1131,column:41}},365:{start:{line:1136,column:10},end:{line:1142,column:11}},366:{start:{line:1137,column:12},end:{line:1137,column:41}},367:{start:{line:1138,column:12},end:{line:1138,column:44}},368:{start:{line:1140,column:12},end:{line:1140,column:42}},369:{start:{line:1141,column:12},end:{line:1141,column:45}},370:{start:{line:1143,column:10},end:{line:1143,column:35}},371:{start:{line:1144,column:25},end:{line:1146,column:11}},372:{start:{line:1145,column:21},end:{line:1145,column:65}},373:{start:{line:1147,column:10},end:{line:1160,column:11}},374:{start:{line:1148,column:12},end:{line:1148,column:35}},375:{start:{line:1149,column:23},end:{line:1149,column:58}},376:{start:{line:1150,column:12},end:{line:1154,column:13}},377:{start:{line:1155,column:12},end:{line:1155,column:38}},378:{start:{line:1157,column:12},end:{line:1159,column:13}},379:{start:{line:1158,column:14},end:{line:1158,column:53}},380:{start:{line:1161,column:10},end:{line:1161,column:15}},381:{start:{line:1163,column:10},end:{line:1163,column:15}},382:{start:{line:1167,column:18},end:{line:1167,column:19}},383:{start:{line:1168,column:6},end:{line:1284,column:7}},384:{start:{line:1169,column:8},end:{line:1169,column:18}},385:{start:{line:1172,column:20},end:{line:1172,column:21}},386:{start:{line:1173,column:8},end:{line:1283,column:9}},387:{start:{line:1175,column:12},end:{line:1175,column:73}},388:{start:{line:1176,column:12},end:{line:1176,column:62}},389:{start:{line:1177,column:12},end:{line:1179,column:13}},390:{start:{line:1178,column:14},end:{line:1178,column:52}},391:{start:{line:1180,column:12},end:{line:1180,column:17}},392:{start:{line:1187,column:12},end:{line:1187,column:34}},393:{start:{line:1188,column:12},end:{line:1188,column:17}},394:{start:{line:1192,column:12},end:{line:1200,column:13}},395:{start:{line:1193,column:14},end:{line:1199,column:15}},396:{start:{line:1194,column:16},end:{line:1198,column:17}},397:{start:{line:1195,column:18},end:{line:1195,column:58}},398:{start:{line:1197,column:18},end:{line:1197,column:55}},399:{start:{line:1201,column:12},end:{line:1203,column:13}},400:{start:{line:1202,column:14},end:{line:1202,column:33}},401:{start:{line:1204,column:12},end:{line:1204,column:17}},402:{start:{line:1206,column:12},end:{line:1206,column:35}},403:{start:{line:1207,column:12},end:{line:1207,column:17}},404:{start:{line:1209,column:12},end:{line:1209,column:43}},405:{start:{line:1210,column:12},end:{line:1210,column:36}},406:{start:{line:1211,column:12},end:{line:1211,column:17}},407:{start:{line:1214,column:12},end:{line:1217,column:13}},408:{start:{line:1215,column:14},end:{line:1215,column:37}},409:{start:{line:1216,column:14},end:{line:1216,column:35}},410:{start:{line:1218,column:12},end:{line:1218,column:17}},411:{start:{line:1220,column:12},end:{line:1220,column:33}},412:{start:{line:1221,column:12},end:{line:1221,column:17}},413:{start:{line:1223,column:24},end:{line:1223,column:29}},414:{start:{line:1224,column:29},end:{line:1224,column:31}},415:{start:{line:1225,column:12},end:{line:1235,column:13}},416:{start:{line:1226,column:14},end:{line:1233,column:15}},417:{start:{line:1230,column:16},end:{line:1230,column:35}},418:{start:{line:1231,column:16},end:{line:1231,column:28}},419:{start:{line:1232,column:16},end:{line:1232,column:21}},420:{start:{line:1234,column:14},end:{line:1234,column:24}},421:{start:{line:1236,column:12},end:{line:1236,column:61}},422:{start:{line:1237,column:12},end:{line:1237,column:61}},423:{start:{line:1238,column:12},end:{line:1238,column:64}},424:{start:{line:1239,column:12},end:{line:1243,column:13}},425:{start:{line:1240,column:14},end:{line:1240,column:51}},426:{start:{line:1242,column:14},end:{line:1242,column:46}},427:{start:{line:1244,column:12},end:{line:1248,column:13}},428:{start:{line:1245,column:14},end:{line:1245,column:50}},429:{start:{line:1247,column:14},end:{line:1247,column:45}},430:{start:{line:1249,column:12},end:{line:1249,column:64}},431:{start:{line:1250,column:12},end:{line:1255,column:13}},432:{start:{line:1251,column:14},end:{line:1251,column:59}},433:{start:{line:1252,column:14},end:{line:1252,column:70}},434:{start:{line:1254,column:14},end:{line:1254,column:56}},435:{start:{line:1256,column:12},end:{line:1256,column:17}},436:{start:{line:1258,column:12},end:{line:1267,column:13}},437:{start:{line:1259,column:14},end:{line:1265,column:15}},438:{start:{line:1263,column:16},end:{line:1263,column:45}},439:{start:{line:1264,column:16},end:{line:1264,column:21}},440:{start:{line:1266,column:14},end:{line:1266,column:24}},441:{start:{line:1268,column:12},end:{line:1268,column:17}},442:{start:{line:1270,column:12},end:{line:1270,column:29}},443:{start:{line:1271,column:12},end:{line:1271,column:17}},444:{start:{line:1274,column:25},end:{line:1274,column:52}},445:{start:{line:1275,column:12},end:{line:1275,column:57}},446:{start:{line:1276,column:12},end:{line:1276,column:56}},447:{start:{line:1277,column:12},end:{line:1277,column:24}},448:{start:{line:1278,column:12},end:{line:1278,column:17}},449:{start:{line:1282,column:12},end:{line:1282,column:17}},450:{start:{line:1287,column:6},end:{line:1287,column:42}},451:{start:{line:1290,column:6},end:{line:1290,column:29}},452:{start:{line:1291,column:6},end:{line:1291,column:36}},453:{start:{line:1294,column:6},end:{line:1294,column:30}},454:{start:{line:1295,column:6},end:{line:1302,column:8}},455:{start:{line:1305,column:6},end:{line:1310,column:7}},456:{start:{line:1306,column:8},end:{line:1306,column:32}},457:{start:{line:1307,column:8},end:{line:1307,column:32}},458:{start:{line:1308,column:8},end:{line:1308,column:29}},459:{start:{line:1309,column:8},end:{line:1309,column:14}},460:{start:{line:1311,column:6},end:{line:1311,column:42}},461:{start:{line:1312,column:6},end:{line:1312,column:38}},462:{start:{line:1313,column:6},end:{line:1313,column:39}},463:{start:{line:1314,column:6},end:{line:1314,column:34}},464:{start:{line:1315,column:6},end:{line:1315,column:31}},465:{start:{line:1316,column:6},end:{line:1316,column:30}},466:{start:{line:1317,column:6},end:{line:1317,column:30}},467:{start:{line:1318,column:6},end:{line:1318,column:33}},468:{start:{line:1319,column:6},end:{line:1454,column:7}},469:{start:{line:1323,column:10},end:{line:1323,column:33}},470:{start:{line:1324,column:10},end:{line:1324,column:40}},471:{start:{line:1325,column:10},end:{line:1325,column:35}},472:{start:{line:1326,column:10},end:{line:1326,column:42}},473:{start:{line:1328,column:10},end:{line:1333,column:11}},474:{start:{line:1329,column:12},end:{line:1329,column:54}},475:{start:{line:1330,column:17},end:{line:1333,column:11}},476:{start:{line:1332,column:12},end:{line:1332,column:43}},477:{start:{line:1335,column:10},end:{line:1337,column:11}},478:{start:{line:1336,column:12},end:{line:1336,column:36}},479:{start:{line:1338,column:10},end:{line:1357,column:11}},480:{start:{line:1339,column:12},end:{line:1339,column:33}},481:{start:{line:1340,column:12},end:{line:1356,column:13}},482:{start:{line:1341,column:14},end:{line:1347,column:16}},483:{start:{line:1349,column:14},end:{line:1355,column:16}},484:{start:{line:1358,column:10},end:{line:1358,column:30}},485:{start:{line:1359,column:10},end:{line:1359,column:15}},486:{start:{line:1361,column:10},end:{line:1361,column:49}},487:{start:{line:1362,column:10},end:{line:1362,column:97}},488:{start:{line:1363,column:10},end:{line:1365,column:11}},489:{start:{line:1364,column:12},end:{line:1364,column:53}},490:{start:{line:1366,column:10},end:{line:1366,column:40}},491:{start:{line:1367,column:10},end:{line:1367,column:65}},492:{start:{line:1368,column:10},end:{line:1368,column:58}},493:{start:{line:1369,column:10},end:{line:1369,column:33}},494:{start:{line:1370,column:10},end:{line:1370,column:15}},495:{start:{line:1372,column:10},end:{line:1374,column:11}},496:{start:{line:1373,column:12},end:{line:1373,column:58}},497:{start:{line:1375,column:10},end:{line:1377,column:11}},498:{start:{line:1376,column:12},end:{line:1376,column:53}},499:{start:{line:1378,column:10},end:{line:1378,column:44}},500:{start:{line:1379,column:10},end:{line:1379,column:61}},501:{start:{line:1380,column:10},end:{line:1380,column:58}},502:{start:{line:1381,column:10},end:{line:1381,column:33}},503:{start:{line:1382,column:10},end:{line:1382,column:15}},504:{start:{line:1384,column:10},end:{line:1386,column:11}},505:{start:{line:1385,column:12},end:{line:1385,column:58}},506:{start:{line:1387,column:10},end:{line:1389,column:11}},507:{start:{line:1388,column:12},end:{line:1388,column:53}},508:{start:{line:1390,column:10},end:{line:1392,column:11}},509:{start:{line:1391,column:12},end:{line:1391,column:39}},510:{start:{line:1393,column:10},end:{line:1393,column:44}},511:{start:{line:1394,column:10},end:{line:1396,column:12}},512:{start:{line:1395,column:12},end:{line:1395,column:59}},513:{start:{line:1397,column:10},end:{line:1397,column:38}},514:{start:{line:1398,column:10},end:{line:1398,column:58}},515:{start:{line:1399,column:10},end:{line:1399,column:33}},516:{start:{line:1400,column:10},end:{line:1400,column:15}},517:{start:{line:1403,column:10},end:{line:1405,column:11}},518:{start:{line:1404,column:12},end:{line:1404,column:58}},519:{start:{line:1406,column:10},end:{line:1408,column:11}},520:{start:{line:1407,column:12},end:{line:1407,column:53}},521:{start:{line:1409,column:10},end:{line:1409,column:44}},522:{start:{line:1410,column:10},end:{line:1412,column:12}},523:{start:{line:1411,column:12},end:{line:1411,column:59}},524:{start:{line:1413,column:10},end:{line:1415,column:11}},525:{start:{line:1414,column:12},end:{line:1414,column:43}},526:{start:{line:1416,column:10},end:{line:1416,column:58}},527:{start:{line:1417,column:10},end:{line:1417,column:33}},528:{start:{line:1418,column:10},end:{line:1418,column:15}},529:{start:{line:1420,column:10},end:{line:1420,column:47}},530:{start:{line:1421,column:10},end:{line:1421,column:43}},531:{start:{line:1422,column:10},end:{line:1422,column:38}},532:{start:{line:1423,column:10},end:{line:1423,column:15}},533:{start:{line:1425,column:10},end:{line:1434,column:11}},534:{start:{line:1426,column:12},end:{line:1426,column:43}},535:{start:{line:1427,column:12},end:{line:1433,column:14}},536:{start:{line:1435,column:10},end:{line:1435,column:29}},537:{start:{line:1436,column:10},end:{line:1436,column:15}},538:{start:{line:1439,column:10},end:{line:1439,column:40}},539:{start:{line:1440,column:10},end:{line:1440,column:42}},540:{start:{line:1441,column:10},end:{line:1443,column:11}},541:{start:{line:1442,column:12},end:{line:1442,column:49}},542:{start:{line:1444,column:10},end:{line:1446,column:11}},543:{start:{line:1445,column:12},end:{line:1445,column:37}},544:{start:{line:1447,column:10},end:{line:1447,column:31}},545:{start:{line:1448,column:10},end:{line:1448,column:15}},546:{start:{line:1453,column:10},end:{line:1453,column:15}},547:{start:{line:1457,column:6},end:{line:1457,column:28}},548:{start:{line:1460,column:22},end:{line:1460,column:30}},549:{start:{line:1461,column:6},end:{line:1478,column:7}},550:{start:{line:1462,column:8},end:{line:1462,column:22}},551:{start:{line:1463,column:8},end:{line:1477,column:10}},552:{start:{line:1464,column:10},end:{line:1464,column:35}},553:{start:{line:1466,column:45},end:{line:1470,column:11}},554:{start:{line:1473,column:27},end:{line:1476,column:12}},555:{start:{line:1479,column:6},end:{line:1485,column:8}},556:{start:{line:1488,column:6},end:{line:1488,column:30}},557:{start:{line:1489,column:6},end:{line:1489,column:40}},558:{start:{line:1490,column:6},end:{line:1490,column:27}},559:{start:{line:1494,column:6},end:{line:1494,column:23}},560:{start:{line:1495,column:6},end:{line:1495,column:34}},561:{start:{line:1496,column:6},end:{line:1496,column:33}},562:{start:{line:1497,column:6},end:{line:1497,column:30}},563:{start:{line:1498,column:6},end:{line:1498,column:21}},564:{start:{line:1499,column:6},end:{line:1499,column:38}},565:{start:{line:1500,column:6},end:{line:1500,column:29}},566:{start:{line:1501,column:6},end:{line:1501,column:28}},567:{start:{line:1502,column:6},end:{line:1502,column:30}},568:{start:{line:1503,column:6},end:{line:1503,column:36}},569:{start:{line:1504,column:6},end:{line:1504,column:30}},570:{start:{line:1505,column:6},end:{line:1510,column:27}},571:{start:{line:1511,column:6},end:{line:1511,column:38}},572:{start:{line:1514,column:6},end:{line:1514,column:20}},573:{start:{line:1515,column:6},end:{line:1555,column:2}},574:{start:{line:1556,column:6},end:{line:1556,column:33}},575:{start:{line:1559,column:6},end:{line:1559,column:20}},576:{start:{line:1560,column:6},end:{line:1598,column:2}},577:{start:{line:1599,column:6},end:{line:1599,column:33}},578:{start:{line:1603,column:18},end:{line:1603,column:68}},579:{start:{line:1603,column:47},end:{line:1603,column:67}},580:{start:{line:1604,column:6},end:{line:1606,column:7}},581:{start:{line:1605,column:8},end:{line:1605,column:36}},582:{start:{line:1608,column:6},end:{line:1615,column:8}},583:{start:{line:1612,column:10},end:{line:1612,column:37}},584:{start:{line:1613,column:10},end:{line:1613,column:33}},585:{start:{line:1616,column:6},end:{line:1618,column:7}},586:{start:{line:1617,column:8},end:{line:1617,column:25}},587:{start:{line:1620,column:6},end:{line:1620,column:73}},588:{start:{line:1623,column:6},end:{line:1623,column:75}},589:{start:{line:1623,column:50},end:{line:1623,column:74}},590:{start:{line:1624,column:6},end:{line:1624,column:73}},591:{start:{line:1625,column:6},end:{line:1627,column:7}},592:{start:{line:1626,column:8},end:{line:1626,column:58}},593:{start:{line:1630,column:6},end:{line:1630,column:26}},594:{start:{line:1635,column:6},end:{line:1635,column:30}},595:{start:{line:1636,column:6},end:{line:1636,column:35}},596:{start:{line:1637,column:6},end:{line:1671,column:10}},597:{start:{line:1644,column:23},end:{line:1647,column:11}},598:{start:{line:1648,column:10},end:{line:1650,column:11}},599:{start:{line:1649,column:12},end:{line:1649,column:61}},600:{start:{line:1651,column:10},end:{line:1653,column:11}},601:{start:{line:1652,column:12},end:{line:1652,column:47}},602:{start:{line:1654,column:10},end:{line:1656,column:11}},603:{start:{line:1655,column:12},end:{line:1655,column:51}},604:{start:{line:1657,column:25},end:{line:1657,column:45}},605:{start:{line:1658,column:30},end:{line:1658,column:55}},606:{start:{line:1659,column:10},end:{line:1659,column:59}},607:{start:{line:1660,column:10},end:{line:1660,column:33}},608:{start:{line:1663,column:10},end:{line:1668,column:11}},609:{start:{line:1664,column:12},end:{line:1667,column:14}},610:{start:{line:1669,column:10},end:{line:1669,column:46}},611:{start:{line:1670,column:10},end:{line:1670,column:24}},612:{start:{line:1675,column:6},end:{line:1675,column:21}},613:{start:{line:1677,column:24},end:{line:1677,column:47}},614:{start:{line:1678,column:6},end:{line:1684,column:7}},615:{start:{line:1680,column:8},end:{line:1683,column:9}},616:{start:{line:1681,column:10},end:{line:1681,column:27}},617:{start:{line:1682,column:10},end:{line:1682,column:32}},618:{start:{line:1685,column:6},end:{line:1685,column:33}},619:{start:{line:1687,column:6},end:{line:1695,column:27}},620:{start:{line:1701,column:18},end:{line:1701,column:42}},621:{start:{line:1702,column:6},end:{line:1702,column:60}},622:{start:{line:1704,column:6},end:{line:1708,column:7}},623:{start:{line:1705,column:8},end:{line:1705,column:58}},624:{start:{line:1707,column:8},end:{line:1707,column:56}},625:{start:{line:1709,column:6},end:{line:1709,column:33}},626:{start:{line:1710,column:6},end:{line:1710,column:49}},627:{start:{line:1711,column:6},end:{line:1711,column:46}},628:{start:{line:1712,column:6},end:{line:1712,column:39}},629:{start:{line:1713,column:6},end:{line:1713,column:28}},630:{start:{line:1714,column:6},end:{line:1714,column:30}},631:{start:{line:1715,column:6},end:{line:1715,column:37}},632:{start:{line:1717,column:6},end:{line:1724,column:7}},633:{start:{line:1718,column:8},end:{line:1718,column:31}},634:{start:{line:1719,column:8},end:{line:1719,column:35}},635:{start:{line:1720,column:8},end:{line:1720,column:37}},636:{start:{line:1722,column:8},end:{line:1722,column:32}},637:{start:{line:1723,column:8},end:{line:1723,column:38}},638:{start:{line:1725,column:6},end:{line:1728,column:7}},639:{start:{line:1726,column:8},end:{line:1726,column:36}},640:{start:{line:1727,column:8},end:{line:1727,column:34}},641:{start:{line:1730,column:6},end:{line:1730,column:54}},642:{start:{line:1733,column:6},end:{line:1735,column:7}},643:{start:{line:1734,column:19},end:{line:1734,column:52}},644:{start:{line:1736,column:6},end:{line:1736,column:73}},645:{start:{line:1739,column:23},end:{line:1739,column:62}},646:{start:{line:1740,column:25},end:{line:1740,column:58}},647:{start:{line:1741,column:23},end:{line:1741,column:50}},648:{start:{line:1742,column:25},end:{line:1744,column:7}},649:{start:{line:1745,column:25},end:{line:1745,column:44}},650:{start:{line:1746,column:17},end:{line:1746,column:39}},651:{start:{line:1747,column:18},end:{line:1747,column:34}},652:{start:{line:1748,column:6},end:{line:1764,column:7}},653:{start:{line:1749,column:8},end:{line:1751,column:9}},654:{start:{line:1750,column:10},end:{line:1750,column:23}},655:{start:{line:1752,column:8},end:{line:1754,column:9}},656:{start:{line:1753,column:10},end:{line:1753,column:25}},657:{start:{line:1755,column:8},end:{line:1757,column:9}},658:{start:{line:1756,column:10},end:{line:1756,column:23}},659:{start:{line:1758,column:8},end:{line:1760,column:9}},660:{start:{line:1759,column:10},end:{line:1759,column:25}},661:{start:{line:1761,column:8},end:{line:1763,column:9}},662:{start:{line:1762,column:10},end:{line:1762,column:25}},663:{start:{line:1765,column:6},end:{line:1765,column:22}},664:{start:{line:1770,column:6},end:{line:1854,column:7}},665:{start:{line:1771,column:28},end:{line:1771,column:52}},666:{start:{line:1772,column:8},end:{line:1804,column:9}},667:{start:{line:1773,column:10},end:{line:1803,column:11}},668:{start:{line:1775,column:12},end:{line:1775,column:25}},669:{start:{line:1776,column:12},end:{line:1776,column:18}},670:{start:{line:1779,column:12},end:{line:1802,column:13}},671:{start:{line:1780,column:29},end:{line:1780,column:50}},672:{start:{line:1781,column:14},end:{line:1799,column:15}},673:{start:{line:1785,column:16},end:{line:1789,column:28}},674:{start:{line:1790,column:21},end:{line:1799,column:15}},675:{start:{line:1791,column:16},end:{line:1795,column:28}},676:{start:{line:1798,column:16},end:{line:1798,column:22}},677:{start:{line:1800,column:14},end:{line:1800,column:47}},678:{start:{line:1801,column:14},end:{line:1801,column:45}},679:{start:{line:1805,column:8},end:{line:1805,column:28}},680:{start:{line:1806,column:8},end:{line:1851,column:12}},681:{start:{line:1813,column:12},end:{line:1836,column:13}},682:{start:{line:1814,column:14},end:{line:1822,column:15}},683:{start:{line:1815,column:16},end:{line:1815,column:45}},684:{start:{line:1816,column:16},end:{line:1816,column:39}},685:{start:{line:1817,column:16},end:{line:1817,column:64}},686:{start:{line:1819,column:16},end:{line:1819,column:46}},687:{start:{line:1820,column:16},end:{line:1820,column:40}},688:{start:{line:1821,column:16},end:{line:1821,column:34}},689:{start:{line:1823,column:14},end:{line:1826,column:15}},690:{start:{line:1824,column:16},end:{line:1824,column:53}},691:{start:{line:1825,column:16},end:{line:1825,column:42}},692:{start:{line:1827,column:14},end:{line:1827,column:36}},693:{start:{line:1828,column:14},end:{line:1830,column:22}},694:{start:{line:1829,column:16},end:{line:1829,column:37}},695:{start:{line:1832,column:14},end:{line:1832,column:35}},696:{start:{line:1833,column:14},end:{line:1833,column:38}},697:{start:{line:1834,column:14},end:{line:1834,column:105}},698:{start:{line:1835,column:14},end:{line:1835,column:35}},699:{start:{line:1837,column:12},end:{line:1837,column:27}},700:{start:{line:1840,column:12},end:{line:1840,column:33}},701:{start:{line:1843,column:12},end:{line:1849,column:13}},702:{start:{line:1844,column:14},end:{line:1844,column:38}},703:{start:{line:1845,column:14},end:{line:1845,column:51}},704:{start:{line:1847,column:14},end:{line:1847,column:38}},705:{start:{line:1848,column:14},end:{line:1848,column:105}},706:{start:{line:1850,column:12},end:{line:1850,column:33}},707:{start:{line:1853,column:8},end:{line:1853,column:62}},708:{start:{line:1857,column:6},end:{line:1857,column:28}},709:{start:{line:1860,column:6},end:{line:1860,column:44}},710:{start:{line:1861,column:6},end:{line:1861,column:33}},711:{start:{line:1862,column:6},end:{line:1865,column:7}},712:{start:{line:1863,column:8},end:{line:1863,column:67}},713:{start:{line:1864,column:8},end:{line:1864,column:32}},714:{start:{line:1866,column:6},end:{line:1866,column:33}},715:{start:{line:1869,column:21},end:{line:1869,column:34}},716:{start:{line:1870,column:6},end:{line:1872,column:7}},717:{start:{line:1871,column:8},end:{line:1871,column:36}},718:{start:{line:1873,column:6},end:{line:1895,column:10}},719:{start:{line:1879,column:10},end:{line:1881,column:12}},720:{start:{line:1884,column:10},end:{line:1884,column:41}},721:{start:{line:1885,column:10},end:{line:1885,column:24}},722:{start:{line:1888,column:10},end:{line:1894,column:11}},723:{start:{line:1889,column:32},end:{line:1892,column:13}},724:{start:{line:1893,column:12},end:{line:1893,column:44}},725:{start:{line:1898,column:19},end:{line:1900,column:8}},726:{start:{line:1902,column:19},end:{line:1902,column:46}},727:{start:{line:1903,column:6},end:{line:1903,column:43}},728:{start:{line:1904,column:6},end:{line:1904,column:50}},729:{start:{line:1905,column:6},end:{line:1905,column:18}},730:{start:{line:1909,column:6},end:{line:1919,column:8}},731:{start:{line:1916,column:8},end:{line:1916,column:52}},732:{start:{line:1917,column:8},end:{line:1917,column:69}},733:{start:{line:1918,column:8},end:{line:1918,column:36}},734:{start:{line:1922,column:6},end:{line:1932,column:8}},735:{start:{line:1929,column:8},end:{line:1929,column:52}},736:{start:{line:1930,column:8},end:{line:1930,column:69}},737:{start:{line:1931,column:8},end:{line:1931,column:36}},738:{start:{line:1935,column:6},end:{line:1935,column:71}},739:{start:{line:1938,column:6},end:{line:1938,column:38}},740:{start:{line:1941,column:6},end:{line:1941,column:48}},741:{start:{line:1944,column:6},end:{line:1971,column:7}},742:{start:{line:1945,column:8},end:{line:1945,column:23}},743:{start:{line:1946,column:8},end:{line:1946,column:57}},744:{start:{line:1947,column:13},end:{line:1971,column:7}},745:{start:{line:1948,column:8},end:{line:1948,column:42}},746:{start:{line:1949,column:8},end:{line:1949,column:57}},747:{start:{line:1951,column:8},end:{line:1955,column:10}},748:{start:{line:1956,column:8},end:{line:1956,column:23}},749:{start:{line:1957,column:13},end:{line:1971,column:7}},750:{start:{line:1958,column:8},end:{line:1958,column:35}},751:{start:{line:1959,column:8},end:{line:1961,column:9}},752:{start:{line:1960,column:10},end:{line:1960,column:63}},753:{start:{line:1962,column:8},end:{line:1962,column:62}},754:{start:{line:1964,column:8},end:{line:1964,column:30}},755:{start:{line:1965,column:13},end:{line:1971,column:7}},756:{start:{line:1966,column:8},end:{line:1966,column:35}},757:{start:{line:1967,column:8},end:{line:1969,column:9}},758:{start:{line:1968,column:10},end:{line:1968,column:36}},759:{start:{line:1970,column:8},end:{line:1970,column:62}},760:{start:{line:1974,column:25},end:{line:1974,column:57}},761:{start:{line:1975,column:6},end:{line:1977,column:70}},762:{start:{line:1976,column:25},end:{line:1976,column:60}},763:{start:{line:1977,column:29},end:{line:1977,column:69}},764:{start:{line:1980,column:6},end:{line:1991,column:10}},765:{start:{line:1989,column:10},end:{line:1989,column:30}},766:{start:{line:1990,column:10},end:{line:1990,column:32}},767:{start:{line:1994,column:6},end:{line:1994,column:66}},768:{start:{line:1997,column:6},end:{line:1999,column:7}},769:{start:{line:1998,column:8},end:{line:1998,column:63}},770:{start:{line:2002,column:6},end:{line:2002,column:38}},771:{start:{line:2005,column:18},end:{line:2005,column:19}},772:{start:{line:2006,column:6},end:{line:2012,column:7}},773:{start:{line:2007,column:8},end:{line:2010,column:9}},774:{start:{line:2008,column:10},end:{line:2008,column:39}},775:{start:{line:2009,column:10},end:{line:2009,column:15}},776:{start:{line:2011,column:8},end:{line:2011,column:18}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:68,column:2},end:{line:68,column:3}},loc:{start:{line:68,column:9},end:{line:188,column:3}},line:68},1:{name:"(anonymous_1)",decl:{start:{line:134,column:18},end:{line:134,column:19}},loc:{start:{line:134,column:24},end:{line:134,column:26}},line:134},2:{name:"(anonymous_2)",decl:{start:{line:142,column:18},end:{line:142,column:19}},loc:{start:{line:142,column:24},end:{line:142,column:26}},line:142},3:{name:"(anonymous_3)",decl:{start:{line:152,column:18},end:{line:152,column:19}},loc:{start:{line:152,column:24},end:{line:152,column:26}},line:152},4:{name:"(anonymous_4)",decl:{start:{line:162,column:18},end:{line:162,column:19}},loc:{start:{line:162,column:24},end:{line:162,column:26}},line:162},5:{name:"(anonymous_5)",decl:{start:{line:191,column:14},end:{line:191,column:15}},loc:{start:{line:191,column:26},end:{line:196,column:5}},line:191},6:{name:"(anonymous_6)",decl:{start:{line:197,column:21},end:{line:197,column:22}},loc:{start:{line:197,column:33},end:{line:201,column:5}},line:197},7:{name:"(anonymous_7)",decl:{start:{line:202,column:26},end:{line:202,column:27}},loc:{start:{line:202,column:38},end:{line:204,column:5}},line:202},8:{name:"(anonymous_8)",decl:{start:{line:205,column:14},end:{line:205,column:15}},loc:{start:{line:205,column:26},end:{line:207,column:5}},line:205},9:{name:"(anonymous_9)",decl:{start:{line:209,column:18},end:{line:209,column:19}},loc:{start:{line:209,column:30},end:{line:214,column:5}},line:209},10:{name:"(anonymous_10)",decl:{start:{line:218,column:21},end:{line:218,column:22}},loc:{start:{line:218,column:33},end:{line:220,column:5}},line:218},11:{name:"(anonymous_11)",decl:{start:{line:221,column:11},end:{line:221,column:12}},loc:{start:{line:221,column:23},end:{line:436,column:5}},line:221},12:{name:"(anonymous_12)",decl:{start:{line:230,column:23},end:{line:230,column:24}},loc:{start:{line:230,column:29},end:{line:232,column:15}},line:230},13:{name:"(anonymous_13)",decl:{start:{line:242,column:27},end:{line:242,column:28}},loc:{start:{line:242,column:33},end:{line:244,column:19}},line:242},14:{name:"(anonymous_14)",decl:{start:{line:249,column:27},end:{line:249,column:28}},loc:{start:{line:249,column:33},end:{line:251,column:19}},line:249},15:{name:"(anonymous_15)",decl:{start:{line:259,column:23},end:{line:259,column:24}},loc:{start:{line:259,column:29},end:{line:261,column:15}},line:259},16:{name:"(anonymous_16)",decl:{start:{line:276,column:23},end:{line:276,column:24}},loc:{start:{line:276,column:29},end:{line:278,column:15}},line:276},17:{name:"(anonymous_17)",decl:{start:{line:284,column:23},end:{line:284,column:24}},loc:{start:{line:284,column:29},end:{line:286,column:15}},line:284},18:{name:"(anonymous_18)",decl:{start:{line:295,column:23},end:{line:295,column:24}},loc:{start:{line:295,column:29},end:{line:297,column:15}},line:295},19:{name:"(anonymous_19)",decl:{start:{line:306,column:23},end:{line:306,column:24}},loc:{start:{line:306,column:29},end:{line:308,column:15}},line:306},20:{name:"(anonymous_20)",decl:{start:{line:318,column:23},end:{line:318,column:24}},loc:{start:{line:318,column:29},end:{line:320,column:15}},line:318},21:{name:"(anonymous_21)",decl:{start:{line:326,column:23},end:{line:326,column:24}},loc:{start:{line:326,column:29},end:{line:328,column:15}},line:326},22:{name:"(anonymous_22)",decl:{start:{line:338,column:23},end:{line:338,column:24}},loc:{start:{line:338,column:29},end:{line:340,column:15}},line:338},23:{name:"(anonymous_23)",decl:{start:{line:349,column:23},end:{line:349,column:24}},loc:{start:{line:349,column:29},end:{line:351,column:15}},line:349},24:{name:"(anonymous_24)",decl:{start:{line:357,column:23},end:{line:357,column:24}},loc:{start:{line:357,column:29},end:{line:360,column:15}},line:357},25:{name:"(anonymous_25)",decl:{start:{line:358,column:46},end:{line:358,column:47}},loc:{start:{line:358,column:52},end:{line:358,column:54}},line:358},26:{name:"(anonymous_26)",decl:{start:{line:365,column:23},end:{line:365,column:24}},loc:{start:{line:365,column:29},end:{line:367,column:15}},line:365},27:{name:"(anonymous_27)",decl:{start:{line:376,column:23},end:{line:376,column:24}},loc:{start:{line:376,column:29},end:{line:378,column:15}},line:376},28:{name:"(anonymous_28)",decl:{start:{line:384,column:23},end:{line:384,column:24}},loc:{start:{line:384,column:29},end:{line:386,column:15}},line:384},29:{name:"(anonymous_29)",decl:{start:{line:392,column:23},end:{line:392,column:24}},loc:{start:{line:392,column:29},end:{line:394,column:15}},line:392},30:{name:"(anonymous_30)",decl:{start:{line:400,column:23},end:{line:400,column:24}},loc:{start:{line:400,column:29},end:{line:402,column:15}},line:400},31:{name:"(anonymous_31)",decl:{start:{line:410,column:23},end:{line:410,column:24}},loc:{start:{line:410,column:29},end:{line:412,column:15}},line:410},32:{name:"(anonymous_32)",decl:{start:{line:418,column:23},end:{line:418,column:24}},loc:{start:{line:418,column:29},end:{line:420,column:15}},line:418},33:{name:"(anonymous_33)",decl:{start:{line:429,column:23},end:{line:429,column:24}},loc:{start:{line:429,column:29},end:{line:431,column:15}},line:429},34:{name:"(anonymous_34)",decl:{start:{line:437,column:31},end:{line:437,column:32}},loc:{start:{line:437,column:43},end:{line:452,column:5}},line:437},35:{name:"(anonymous_35)",decl:{start:{line:455,column:14},end:{line:455,column:15}},loc:{start:{line:455,column:29},end:{line:461,column:5}},line:455},36:{name:"(anonymous_36)",decl:{start:{line:462,column:18},end:{line:462,column:19}},loc:{start:{line:462,column:38},end:{line:469,column:5}},line:462},37:{name:"(anonymous_37)",decl:{start:{line:471,column:11},end:{line:471,column:12}},loc:{start:{line:471,column:23},end:{line:483,column:3}},line:471},38:{name:"(anonymous_38)",decl:{start:{line:480,column:61},end:{line:480,column:62}},loc:{start:{line:480,column:75},end:{line:482,column:5}},line:480},39:{name:"(anonymous_39)",decl:{start:{line:484,column:11},end:{line:484,column:12}},loc:{start:{line:484,column:29},end:{line:576,column:3}},line:484},40:{name:"(anonymous_40)",decl:{start:{line:530,column:37},end:{line:530,column:38}},loc:{start:{line:530,column:58},end:{line:533,column:5}},line:530},41:{name:"(anonymous_41)",decl:{start:{line:541,column:36},end:{line:541,column:37}},loc:{start:{line:541,column:47},end:{line:547,column:7}},line:541},42:{name:"(anonymous_42)",decl:{start:{line:543,column:17},end:{line:543,column:18}},loc:{start:{line:543,column:34},end:{line:546,column:9}},line:543},43:{name:"(anonymous_43)",decl:{start:{line:573,column:38},end:{line:573,column:39}},loc:{start:{line:573,column:50},end:{line:575,column:5}},line:573},44:{name:"(anonymous_44)",decl:{start:{line:577,column:2},end:{line:577,column:3}},loc:{start:{line:577,column:18},end:{line:580,column:3}},line:577},45:{name:"(anonymous_45)",decl:{start:{line:581,column:2},end:{line:581,column:3}},loc:{start:{line:581,column:14},end:{line:591,column:3}},line:581},46:{name:"(anonymous_46)",decl:{start:{line:592,column:21},end:{line:592,column:22}},loc:{start:{line:592,column:47},end:{line:598,column:3}},line:592},47:{name:"(anonymous_47)",decl:{start:{line:600,column:4},end:{line:600,column:5}},loc:{start:{line:600,column:23},end:{line:606,column:5}},line:600},48:{name:"(anonymous_48)",decl:{start:{line:607,column:4},end:{line:607,column:5}},loc:{start:{line:607,column:19},end:{line:623,column:5}},line:607},49:{name:"(anonymous_49)",decl:{start:{line:608,column:43},end:{line:608,column:44}},loc:{start:{line:608,column:57},end:{line:622,column:7}},line:608},50:{name:"(anonymous_50)",decl:{start:{line:610,column:54},end:{line:610,column:55}},loc:{start:{line:610,column:65},end:{line:620,column:9}},line:610},51:{name:"(anonymous_51)",decl:{start:{line:624,column:4},end:{line:624,column:5}},loc:{start:{line:624,column:36},end:{line:667,column:5}},line:624},52:{name:"(anonymous_52)",decl:{start:{line:631,column:16},end:{line:631,column:17}},loc:{start:{line:631,column:23},end:{line:631,column:42}},line:631},53:{name:"(anonymous_53)",decl:{start:{line:632,column:16},end:{line:632,column:17}},loc:{start:{line:632,column:23},end:{line:632,column:35}},line:632},54:{name:"(anonymous_54)",decl:{start:{line:635,column:33},end:{line:635,column:34}},loc:{start:{line:635,column:45},end:{line:644,column:7}},line:635},55:{name:"(anonymous_55)",decl:{start:{line:654,column:17},end:{line:654,column:18}},loc:{start:{line:654,column:29},end:{line:660,column:7}},line:654},56:{name:"(anonymous_56)",decl:{start:{line:663,column:8},end:{line:663,column:9}},loc:{start:{line:663,column:20},end:{line:665,column:7}},line:663},57:{name:"(anonymous_57)",decl:{start:{line:668,column:4},end:{line:668,column:5}},loc:{start:{line:668,column:38},end:{line:711,column:5}},line:668},58:{name:"(anonymous_58)",decl:{start:{line:675,column:16},end:{line:675,column:17}},loc:{start:{line:675,column:23},end:{line:675,column:42}},line:675},59:{name:"(anonymous_59)",decl:{start:{line:676,column:16},end:{line:676,column:17}},loc:{start:{line:676,column:23},end:{line:676,column:35}},line:676},60:{name:"(anonymous_60)",decl:{start:{line:679,column:33},end:{line:679,column:34}},loc:{start:{line:679,column:45},end:{line:688,column:7}},line:679},61:{name:"(anonymous_61)",decl:{start:{line:698,column:17},end:{line:698,column:18}},loc:{start:{line:698,column:29},end:{line:704,column:7}},line:698},62:{name:"(anonymous_62)",decl:{start:{line:707,column:8},end:{line:707,column:9}},loc:{start:{line:707,column:20},end:{line:709,column:7}},line:707},63:{name:"(anonymous_63)",decl:{start:{line:712,column:4},end:{line:712,column:5}},loc:{start:{line:712,column:28},end:{line:724,column:5}},line:712},64:{name:"(anonymous_64)",decl:{start:{line:727,column:4},end:{line:727,column:5}},loc:{start:{line:727,column:30},end:{line:745,column:5}},line:727},65:{name:"(anonymous_65)",decl:{start:{line:746,column:26},end:{line:746,column:27}},loc:{start:{line:746,column:40},end:{line:764,column:5}},line:746},66:{name:"(anonymous_66)",decl:{start:{line:747,column:56},end:{line:747,column:57}},loc:{start:{line:747,column:70},end:{line:763,column:7}},line:747},67:{name:"(anonymous_67)",decl:{start:{line:749,column:10},end:{line:749,column:11}},loc:{start:{line:749,column:17},end:{line:749,column:38}},line:749},68:{name:"(anonymous_68)",decl:{start:{line:765,column:19},end:{line:765,column:20}},loc:{start:{line:765,column:31},end:{line:779,column:5}},line:765},69:{name:"(anonymous_69)",decl:{start:{line:766,column:59},end:{line:766,column:60}},loc:{start:{line:766,column:73},end:{line:778,column:7}},line:766},70:{name:"(anonymous_70)",decl:{start:{line:780,column:30},end:{line:780,column:31}},loc:{start:{line:780,column:48},end:{line:784,column:5}},line:780},71:{name:"(anonymous_71)",decl:{start:{line:785,column:19},end:{line:785,column:20}},loc:{start:{line:785,column:31},end:{line:794,column:5}},line:785},72:{name:"(anonymous_72)",decl:{start:{line:791,column:16},end:{line:791,column:17}},loc:{start:{line:791,column:25},end:{line:791,column:37}},line:791},73:{name:"(anonymous_73)",decl:{start:{line:792,column:13},end:{line:792,column:14}},loc:{start:{line:792,column:22},end:{line:792,column:33}},line:792},74:{name:"(anonymous_74)",decl:{start:{line:795,column:22},end:{line:795,column:23}},loc:{start:{line:795,column:34},end:{line:802,column:5}},line:795},75:{name:"(anonymous_75)",decl:{start:{line:799,column:16},end:{line:799,column:17}},loc:{start:{line:799,column:25},end:{line:799,column:71}},line:799},76:{name:"(anonymous_76)",decl:{start:{line:800,column:13},end:{line:800,column:14}},loc:{start:{line:800,column:22},end:{line:800,column:43}},line:800},77:{name:"(anonymous_77)",decl:{start:{line:803,column:4},end:{line:803,column:5}},loc:{start:{line:803,column:46},end:{line:827,column:5}},line:803},78:{name:"(anonymous_78)",decl:{start:{line:817,column:14},end:{line:817,column:15}},loc:{start:{line:817,column:28},end:{line:823,column:9}},line:817},79:{name:"(anonymous_79)",decl:{start:{line:824,column:14},end:{line:824,column:15}},loc:{start:{line:824,column:28},end:{line:826,column:9}},line:824},80:{name:"(anonymous_80)",decl:{start:{line:828,column:22},end:{line:828,column:23}},loc:{start:{line:828,column:34},end:{line:830,column:5}},line:828},81:{name:"(anonymous_81)",decl:{start:{line:831,column:22},end:{line:831,column:23}},loc:{start:{line:831,column:40},end:{line:841,column:5}},line:831},82:{name:"(anonymous_82)",decl:{start:{line:842,column:23},end:{line:842,column:24}},loc:{start:{line:842,column:50},end:{line:871,column:5}},line:842},83:{name:"(anonymous_83)",decl:{start:{line:847,column:8},end:{line:847,column:9}},loc:{start:{line:848,column:10},end:{line:849,column:32}},line:848},84:{name:"(anonymous_84)",decl:{start:{line:861,column:12},end:{line:861,column:13}},loc:{start:{line:861,column:21},end:{line:861,column:43}},line:861},85:{name:"(anonymous_85)",decl:{start:{line:865,column:27},end:{line:865,column:28}},loc:{start:{line:865,column:36},end:{line:870,column:7}},line:865},86:{name:"(anonymous_86)",decl:{start:{line:872,column:23},end:{line:872,column:24}},loc:{start:{line:872,column:64},end:{line:877,column:5}},line:872},87:{name:"(anonymous_87)",decl:{start:{line:875,column:13},end:{line:875,column:14}},loc:{start:{line:875,column:34},end:{line:875,column:51}},line:875},88:{name:"(anonymous_88)",decl:{start:{line:878,column:24},end:{line:878,column:25}},loc:{start:{line:878,column:44},end:{line:883,column:5}},line:878},89:{name:"(anonymous_89)",decl:{start:{line:880,column:42},end:{line:880,column:43}},loc:{start:{line:880,column:58},end:{line:882,column:7}},line:880},90:{name:"(anonymous_90)",decl:{start:{line:884,column:26},end:{line:884,column:27}},loc:{start:{line:884,column:38},end:{line:896,column:5}},line:884},91:{name:"(anonymous_91)",decl:{start:{line:890,column:14},end:{line:890,column:15}},loc:{start:{line:890,column:26},end:{line:892,column:9}},line:890},92:{name:"(anonymous_92)",decl:{start:{line:893,column:14},end:{line:893,column:15}},loc:{start:{line:893,column:28},end:{line:895,column:9}},line:893},93:{name:"(anonymous_93)",decl:{start:{line:897,column:4},end:{line:897,column:5}},loc:{start:{line:897,column:29},end:{line:903,column:5}},line:897},94:{name:"(anonymous_94)",decl:{start:{line:904,column:4},end:{line:904,column:5}},loc:{start:{line:904,column:25},end:{line:923,column:5}},line:904},95:{name:"(anonymous_95)",decl:{start:{line:924,column:4},end:{line:924,column:5}},loc:{start:{line:924,column:20},end:{line:934,column:5}},line:924},96:{name:"(anonymous_96)",decl:{start:{line:935,column:20},end:{line:935,column:21}},loc:{start:{line:935,column:32},end:{line:955,column:5}},line:935},97:{name:"(anonymous_97)",decl:{start:{line:938,column:14},end:{line:938,column:15}},loc:{start:{line:938,column:41},end:{line:954,column:9}},line:938},98:{name:"(anonymous_98)",decl:{start:{line:942,column:19},end:{line:942,column:20}},loc:{start:{line:942,column:32},end:{line:942,column:73}},line:942},99:{name:"(anonymous_99)",decl:{start:{line:956,column:4},end:{line:956,column:5}},loc:{start:{line:956,column:22},end:{line:965,column:5}},line:956},100:{name:"(anonymous_100)",decl:{start:{line:966,column:4},end:{line:966,column:5}},loc:{start:{line:966,column:20},end:{line:982,column:5}},line:966},101:{name:"(anonymous_101)",decl:{start:{line:973,column:22},end:{line:973,column:23}},loc:{start:{line:973,column:32},end:{line:973,column:51}},line:973},102:{name:"(anonymous_102)",decl:{start:{line:979,column:14},end:{line:979,column:15}},loc:{start:{line:979,column:32},end:{line:981,column:9}},line:979},103:{name:"(anonymous_103)",decl:{start:{line:983,column:4},end:{line:983,column:5}},loc:{start:{line:983,column:27},end:{line:1012,column:5}},line:983},104:{name:"(anonymous_104)",decl:{start:{line:1013,column:24},end:{line:1013,column:25}},loc:{start:{line:1013,column:41},end:{line:1015,column:5}},line:1013},105:{name:"(anonymous_105)",decl:{start:{line:1016,column:18},end:{line:1016,column:19}},loc:{start:{line:1016,column:30},end:{line:1018,column:5}},line:1016},106:{name:"(anonymous_106)",decl:{start:{line:1019,column:4},end:{line:1019,column:5}},loc:{start:{line:1019,column:43},end:{line:1048,column:5}},line:1019},107:{name:"(anonymous_107)",decl:{start:{line:1042,column:14},end:{line:1042,column:15}},loc:{start:{line:1042,column:28},end:{line:1044,column:9}},line:1042},108:{name:"(anonymous_108)",decl:{start:{line:1045,column:15},end:{line:1045,column:16}},loc:{start:{line:1045,column:26},end:{line:1047,column:9}},line:1045},109:{name:"(anonymous_109)",decl:{start:{line:1049,column:4},end:{line:1049,column:5}},loc:{start:{line:1049,column:9},end:{line:1055,column:5}},line:1049},110:{name:"(anonymous_110)",decl:{start:{line:1056,column:4},end:{line:1056,column:5}},loc:{start:{line:1056,column:19},end:{line:1063,column:5}},line:1056},111:{name:"(anonymous_111)",decl:{start:{line:1064,column:4},end:{line:1064,column:5}},loc:{start:{line:1064,column:11},end:{line:1074,column:5}},line:1064},112:{name:"(anonymous_112)",decl:{start:{line:1075,column:4},end:{line:1075,column:5}},loc:{start:{line:1075,column:11},end:{line:1077,column:5}},line:1075},113:{name:"(anonymous_113)",decl:{start:{line:1078,column:4},end:{line:1078,column:5}},loc:{start:{line:1078,column:22},end:{line:1165,column:5}},line:1078},114:{name:"(anonymous_114)",decl:{start:{line:1087,column:18},end:{line:1087,column:19}},loc:{start:{line:1087,column:32},end:{line:1097,column:13}},line:1087},115:{name:"(anonymous_115)",decl:{start:{line:1098,column:19},end:{line:1098,column:20}},loc:{start:{line:1098,column:28},end:{line:1101,column:13}},line:1098},116:{name:"(anonymous_116)",decl:{start:{line:1145,column:12},end:{line:1145,column:13}},loc:{start:{line:1145,column:21},end:{line:1145,column:65}},line:1145},117:{name:"(anonymous_117)",decl:{start:{line:1166,column:4},end:{line:1166,column:5}},loc:{start:{line:1166,column:22},end:{line:1288,column:5}},line:1166},118:{name:"(anonymous_118)",decl:{start:{line:1289,column:4},end:{line:1289,column:5}},loc:{start:{line:1289,column:19},end:{line:1292,column:5}},line:1289},119:{name:"(anonymous_119)",decl:{start:{line:1293,column:4},end:{line:1293,column:5}},loc:{start:{line:1293,column:32},end:{line:1303,column:5}},line:1293},120:{name:"(anonymous_120)",decl:{start:{line:1304,column:4},end:{line:1304,column:5}},loc:{start:{line:1304,column:23},end:{line:1455,column:5}},line:1304},121:{name:"(anonymous_121)",decl:{start:{line:1338,column:30},end:{line:1338,column:31}},loc:{start:{line:1338,column:41},end:{line:1357,column:11}},line:1338},122:{name:"(anonymous_122)",decl:{start:{line:1394,column:37},end:{line:1394,column:38}},loc:{start:{line:1394,column:44},end:{line:1396,column:11}},line:1394},123:{name:"(anonymous_123)",decl:{start:{line:1410,column:37},end:{line:1410,column:38}},loc:{start:{line:1410,column:44},end:{line:1412,column:11}},line:1410},124:{name:"(anonymous_124)",decl:{start:{line:1425,column:40},end:{line:1425,column:41}},loc:{start:{line:1425,column:51},end:{line:1434,column:11}},line:1425},125:{name:"(anonymous_125)",decl:{start:{line:1456,column:4},end:{line:1456,column:5}},loc:{start:{line:1456,column:36},end:{line:1486,column:5}},line:1456},126:{name:"(anonymous_126)",decl:{start:{line:1463,column:28},end:{line:1463,column:29}},loc:{start:{line:1463,column:44},end:{line:1477,column:9}},line:1463},127:{name:"(anonymous_127)",decl:{start:{line:1487,column:4},end:{line:1487,column:5}},loc:{start:{line:1487,column:20},end:{line:1491,column:5}},line:1487},128:{name:"(anonymous_128)",decl:{start:{line:1493,column:4},end:{line:1493,column:5}},loc:{start:{line:1493,column:14},end:{line:1512,column:5}},line:1493},129:{name:"(anonymous_129)",decl:{start:{line:1510,column:15},end:{line:1510,column:16}},loc:{start:{line:1510,column:24},end:{line:1510,column:26}},line:1510},130:{name:"(anonymous_130)",decl:{start:{line:1513,column:4},end:{line:1513,column:5}},loc:{start:{line:1513,column:29},end:{line:1557,column:5}},line:1513},131:{name:"(anonymous_131)",decl:{start:{line:1558,column:4},end:{line:1558,column:5}},loc:{start:{line:1558,column:31},end:{line:1600,column:5}},line:1558},132:{name:"(anonymous_132)",decl:{start:{line:1601,column:4},end:{line:1601,column:5}},loc:{start:{line:1601,column:26},end:{line:1621,column:5}},line:1601},133:{name:"(anonymous_133)",decl:{start:{line:1603,column:40},end:{line:1603,column:41}},loc:{start:{line:1603,column:47},end:{line:1603,column:67}},line:1603},134:{name:"(anonymous_134)",decl:{start:{line:1611,column:17},end:{line:1611,column:18}},loc:{start:{line:1611,column:34},end:{line:1614,column:9}},line:1611},135:{name:"(anonymous_135)",decl:{start:{line:1622,column:4},end:{line:1622,column:5}},loc:{start:{line:1622,column:31},end:{line:1628,column:5}},line:1622},136:{name:"(anonymous_136)",decl:{start:{line:1623,column:39},end:{line:1623,column:40}},loc:{start:{line:1623,column:50},end:{line:1623,column:74}},line:1623},137:{name:"(anonymous_137)",decl:{start:{line:1629,column:4},end:{line:1629,column:5}},loc:{start:{line:1629,column:15},end:{line:1631,column:5}},line:1629},138:{name:"(anonymous_138)",decl:{start:{line:1632,column:4},end:{line:1632,column:5}},loc:{start:{line:1632,column:39},end:{line:1672,column:5}},line:1632},139:{name:"(anonymous_139)",decl:{start:{line:1643,column:14},end:{line:1643,column:15}},loc:{start:{line:1643,column:28},end:{line:1661,column:9}},line:1643},140:{name:"(anonymous_140)",decl:{start:{line:1662,column:15},end:{line:1662,column:16}},loc:{start:{line:1662,column:26},end:{line:1671,column:9}},line:1662},141:{name:"(anonymous_141)",decl:{start:{line:1674,column:4},end:{line:1674,column:5}},loc:{start:{line:1674,column:58},end:{line:1731,column:5}},line:1674},142:{name:"(anonymous_142)",decl:{start:{line:1695,column:15},end:{line:1695,column:16}},loc:{start:{line:1695,column:24},end:{line:1695,column:26}},line:1695},143:{name:"(anonymous_143)",decl:{start:{line:1732,column:4},end:{line:1732,column:5}},loc:{start:{line:1732,column:16},end:{line:1737,column:5}},line:1732},144:{name:"(anonymous_144)",decl:{start:{line:1734,column:8},end:{line:1734,column:9}},loc:{start:{line:1734,column:19},end:{line:1734,column:52}},line:1734},145:{name:"(anonymous_145)",decl:{start:{line:1738,column:4},end:{line:1738,column:5}},loc:{start:{line:1738,column:21},end:{line:1766,column:5}},line:1738},146:{name:"(anonymous_146)",decl:{start:{line:1769,column:4},end:{line:1769,column:5}},loc:{start:{line:1769,column:34},end:{line:1855,column:5}},line:1769},147:{name:"(anonymous_147)",decl:{start:{line:1812,column:16},end:{line:1812,column:17}},loc:{start:{line:1812,column:30},end:{line:1838,column:11}},line:1812},148:{name:"(anonymous_148)",decl:{start:{line:1828,column:25},end:{line:1828,column:26}},loc:{start:{line:1828,column:31},end:{line:1830,column:15}},line:1828},149:{name:"(anonymous_149)",decl:{start:{line:1839,column:17},end:{line:1839,column:18}},loc:{start:{line:1839,column:35},end:{line:1851,column:11}},line:1839},150:{name:"(anonymous_150)",decl:{start:{line:1856,column:4},end:{line:1856,column:5}},loc:{start:{line:1856,column:13},end:{line:1858,column:5}},line:1856},151:{name:"(anonymous_151)",decl:{start:{line:1859,column:4},end:{line:1859,column:5}},loc:{start:{line:1859,column:35},end:{line:1867,column:5}},line:1859},152:{name:"(anonymous_152)",decl:{start:{line:1868,column:4},end:{line:1868,column:5}},loc:{start:{line:1868,column:13},end:{line:1896,column:5}},line:1868},153:{name:"(anonymous_153)",decl:{start:{line:1878,column:14},end:{line:1878,column:15}},loc:{start:{line:1878,column:26},end:{line:1882,column:9}},line:1878},154:{name:"(anonymous_154)",decl:{start:{line:1883,column:14},end:{line:1883,column:15}},loc:{start:{line:1883,column:28},end:{line:1886,column:9}},line:1883},155:{name:"(anonymous_155)",decl:{start:{line:1887,column:15},end:{line:1887,column:16}},loc:{start:{line:1887,column:26},end:{line:1895,column:9}},line:1887},156:{name:"(anonymous_156)",decl:{start:{line:1897,column:4},end:{line:1897,column:5}},loc:{start:{line:1897,column:15},end:{line:1906,column:5}},line:1897},157:{name:"(anonymous_157)",decl:{start:{line:1908,column:4},end:{line:1908,column:5}},loc:{start:{line:1908,column:18},end:{line:1920,column:5}},line:1908},158:{name:"(anonymous_158)",decl:{start:{line:1915,column:14},end:{line:1915,column:15}},loc:{start:{line:1915,column:28},end:{line:1919,column:7}},line:1915},159:{name:"(anonymous_159)",decl:{start:{line:1921,column:4},end:{line:1921,column:5}},loc:{start:{line:1921,column:23},end:{line:1933,column:5}},line:1921},160:{name:"(anonymous_160)",decl:{start:{line:1928,column:14},end:{line:1928,column:15}},loc:{start:{line:1928,column:28},end:{line:1932,column:7}},line:1928},161:{name:"(anonymous_161)",decl:{start:{line:1934,column:4},end:{line:1934,column:5}},loc:{start:{line:1934,column:20},end:{line:1936,column:5}},line:1934},162:{name:"(anonymous_162)",decl:{start:{line:1937,column:4},end:{line:1937,column:5}},loc:{start:{line:1937,column:18},end:{line:1939,column:5}},line:1937},163:{name:"(anonymous_163)",decl:{start:{line:1940,column:4},end:{line:1940,column:5}},loc:{start:{line:1940,column:23},end:{line:1942,column:5}},line:1940},164:{name:"(anonymous_164)",decl:{start:{line:1943,column:4},end:{line:1943,column:5}},loc:{start:{line:1943,column:24},end:{line:1972,column:5}},line:1943},165:{name:"(anonymous_165)",decl:{start:{line:1973,column:22},end:{line:1973,column:23}},loc:{start:{line:1973,column:34},end:{line:1978,column:5}},line:1973},166:{name:"(anonymous_166)",decl:{start:{line:1976,column:16},end:{line:1976,column:17}},loc:{start:{line:1976,column:25},end:{line:1976,column:60}},line:1976},167:{name:"(anonymous_167)",decl:{start:{line:1977,column:17},end:{line:1977,column:18}},loc:{start:{line:1977,column:29},end:{line:1977,column:69}},line:1977},168:{name:"(anonymous_168)",decl:{start:{line:1979,column:24},end:{line:1979,column:25}},loc:{start:{line:1979,column:36},end:{line:1992,column:5}},line:1979},169:{name:"(anonymous_169)",decl:{start:{line:1988,column:14},end:{line:1988,column:15}},loc:{start:{line:1988,column:20},end:{line:1991,column:9}},line:1988},170:{name:"(anonymous_170)",decl:{start:{line:1993,column:14},end:{line:1993,column:15}},loc:{start:{line:1993,column:26},end:{line:1995,column:5}},line:1993},171:{name:"(anonymous_171)",decl:{start:{line:1996,column:16},end:{line:1996,column:17}},loc:{start:{line:1996,column:28},end:{line:2e3,column:5}},line:1996},172:{name:"(anonymous_172)",decl:{start:{line:2001,column:4},end:{line:2001,column:5}},loc:{start:{line:2001,column:17},end:{line:2003,column:5}},line:2001},173:{name:"(anonymous_173)",decl:{start:{line:2004,column:4},end:{line:2004,column:5}},loc:{start:{line:2004,column:20},end:{line:2013,column:5}},line:2004}},branchMap:{0:{loc:{start:{line:198,column:13},end:{line:200,column:32}},type:"cond-expr",locations:[{start:{line:199,column:10},end:{line:199,column:24}},{start:{line:200,column:10},end:{line:200,column:32}}],line:198},1:{loc:{start:{line:203,column:13},end:{line:203,column:67}},type:"cond-expr",locations:[{start:{line:203,column:53},end:{line:203,column:62}},{start:{line:203,column:65},end:{line:203,column:67}}],line:203},2:{loc:{start:{line:210,column:6},end:{line:210,column:59}},type:"if",locations:[{start:{line:210,column:6},end:{line:210,column:59}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:210},3:{loc:{start:{line:212,column:6},end:{line:212,column:61}},type:"if",locations:[{start:{line:212,column:6},end:{line:212,column:61}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:212},4:{loc:{start:{line:219,column:13},end:{line:219,column:64}},type:"cond-expr",locations:[{start:{line:219,column:46},end:{line:219,column:48}},{start:{line:219,column:51},end:{line:219,column:64}}],line:219},5:{loc:{start:{line:457,column:6},end:{line:459,column:7}},type:"if",locations:[{start:{line:457,column:6},end:{line:459,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:457},6:{loc:{start:{line:464,column:6},end:{line:468,column:7}},type:"if",locations:[{start:{line:464,column:6},end:{line:468,column:7}},{start:{line:466,column:13},end:{line:468,column:7}}],line:464},7:{loc:{start:{line:538,column:4},end:{line:548,column:5}},type:"if",locations:[{start:{line:538,column:4},end:{line:548,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:538},8:{loc:{start:{line:549,column:4},end:{line:559,column:5}},type:"if",locations:[{start:{line:549,column:4},end:{line:559,column:5}},{start:{line:552,column:11},end:{line:559,column:5}}],line:549},9:{loc:{start:{line:552,column:11},end:{line:559,column:5}},type:"if",locations:[{start:{line:552,column:11},end:{line:559,column:5}},{start:{line:554,column:11},end:{line:559,column:5}}],line:552},10:{loc:{start:{line:555,column:6},end:{line:558,column:7}},type:"if",locations:[{start:{line:555,column:6},end:{line:558,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:555},11:{loc:{start:{line:583,column:4},end:{line:585,column:5}},type:"if",locations:[{start:{line:583,column:4},end:{line:585,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:583},12:{loc:{start:{line:586,column:4},end:{line:589,column:5}},type:"if",locations:[{start:{line:586,column:4},end:{line:589,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:586},13:{loc:{start:{line:593,column:4},end:{line:597,column:5}},type:"if",locations:[{start:{line:593,column:4},end:{line:597,column:5}},{start:{line:595,column:11},end:{line:597,column:5}}],line:593},14:{loc:{start:{line:601,column:6},end:{line:604,column:7}},type:"if",locations:[{start:{line:601,column:6},end:{line:604,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:601},15:{loc:{start:{line:714,column:6},end:{line:723,column:7}},type:"if",locations:[{start:{line:714,column:6},end:{line:723,column:7}},{start:{line:717,column:13},end:{line:723,column:7}}],line:714},16:{loc:{start:{line:714,column:10},end:{line:714,column:73}},type:"binary-expr",locations:[{start:{line:714,column:10},end:{line:714,column:35}},{start:{line:714,column:39},end:{line:714,column:73}}],line:714},17:{loc:{start:{line:717,column:13},end:{line:723,column:7}},type:"if",locations:[{start:{line:717,column:13},end:{line:723,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:717},18:{loc:{start:{line:718,column:8},end:{line:719,column:41}},type:"binary-expr",locations:[{start:{line:718,column:8},end:{line:718,column:36}},{start:{line:719,column:8},end:{line:719,column:41}}],line:718},19:{loc:{start:{line:751,column:8},end:{line:762,column:9}},type:"if",locations:[{start:{line:751,column:8},end:{line:762,column:9}},{start:{line:756,column:15},end:{line:762,column:9}}],line:751},20:{loc:{start:{line:767,column:8},end:{line:771,column:9}},type:"if",locations:[{start:{line:767,column:8},end:{line:771,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:767},21:{loc:{start:{line:772,column:8},end:{line:775,column:9}},type:"if",locations:[{start:{line:772,column:8},end:{line:775,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:772},22:{loc:{start:{line:799,column:25},end:{line:799,column:71}},type:"binary-expr",locations:[{start:{line:799,column:25},end:{line:799,column:45}},{start:{line:799,column:49},end:{line:799,column:71}}],line:799},23:{loc:{start:{line:803,column:28},end:{line:803,column:44}},type:"default-arg",locations:[{start:{line:803,column:42},end:{line:803,column:44}}],line:803},24:{loc:{start:{line:833,column:6},end:{line:840,column:7}},type:"if",locations:[{start:{line:833,column:6},end:{line:840,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:833},25:{loc:{start:{line:835,column:8},end:{line:839,column:9}},type:"if",locations:[{start:{line:835,column:8},end:{line:839,column:9}},{start:{line:837,column:15},end:{line:839,column:9}}],line:835},26:{loc:{start:{line:843,column:6},end:{line:845,column:7}},type:"if",locations:[{start:{line:843,column:6},end:{line:845,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:843},27:{loc:{start:{line:848,column:10},end:{line:849,column:32}},type:"binary-expr",locations:[{start:{line:848,column:11},end:{line:848,column:36}},{start:{line:848,column:40},end:{line:848,column:64}},{start:{line:849,column:10},end:{line:849,column:32}}],line:848},28:{loc:{start:{line:853,column:6},end:{line:864,column:7}},type:"switch",locations:[{start:{line:854,column:8},end:{line:857,column:15}},{start:{line:858,column:8},end:{line:863,column:15}}],line:853},29:{loc:{start:{line:867,column:8},end:{line:869,column:9}},type:"if",locations:[{start:{line:867,column:8},end:{line:869,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:867},30:{loc:{start:{line:872,column:33},end:{line:872,column:62}},type:"default-arg",locations:[{start:{line:872,column:43},end:{line:872,column:62}}],line:872},31:{loc:{start:{line:875,column:34},end:{line:875,column:51}},type:"binary-expr",locations:[{start:{line:875,column:34},end:{line:875,column:44}},{start:{line:875,column:48},end:{line:875,column:51}}],line:875},32:{loc:{start:{line:898,column:6},end:{line:902,column:7}},type:"if",locations:[{start:{line:898,column:6},end:{line:902,column:7}},{start:{line:900,column:13},end:{line:902,column:7}}],line:898},33:{loc:{start:{line:906,column:6},end:{line:908,column:7}},type:"if",locations:[{start:{line:906,column:6},end:{line:908,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:906},34:{loc:{start:{line:906,column:10},end:{line:906,column:61}},type:"binary-expr",locations:[{start:{line:906,column:10},end:{line:906,column:23}},{start:{line:906,column:27},end:{line:906,column:61}}],line:906},35:{loc:{start:{line:911,column:6},end:{line:922,column:7}},type:"if",locations:[{start:{line:911,column:6},end:{line:922,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:911},36:{loc:{start:{line:912,column:8},end:{line:913,column:43}},type:"binary-expr",locations:[{start:{line:912,column:9},end:{line:912,column:22}},{start:{line:912,column:26},end:{line:912,column:39}},{start:{line:913,column:8},end:{line:913,column:43}}],line:912},37:{loc:{start:{line:915,column:8},end:{line:921,column:9}},type:"if",locations:[{start:{line:915,column:8},end:{line:921,column:9}},{start:{line:918,column:15},end:{line:921,column:9}}],line:915},38:{loc:{start:{line:926,column:6},end:{line:928,column:7}},type:"if",locations:[{start:{line:926,column:6},end:{line:928,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:926},39:{loc:{start:{line:926,column:10},end:{line:926,column:61}},type:"binary-expr",locations:[{start:{line:926,column:10},end:{line:926,column:23}},{start:{line:926,column:27},end:{line:926,column:61}}],line:926},40:{loc:{start:{line:929,column:6},end:{line:933,column:7}},type:"if",locations:[{start:{line:929,column:6},end:{line:933,column:7}},{start:{line:931,column:13},end:{line:933,column:7}}],line:929},41:{loc:{start:{line:940,column:10},end:{line:945,column:11}},type:"if",locations:[{start:{line:940,column:10},end:{line:945,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:940},42:{loc:{start:{line:946,column:10},end:{line:949,column:11}},type:"if",locations:[{start:{line:946,column:10},end:{line:949,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:946},43:{loc:{start:{line:950,column:10},end:{line:952,column:11}},type:"if",locations:[{start:{line:950,column:10},end:{line:952,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:950},44:{loc:{start:{line:991,column:6},end:{line:994,column:7}},type:"if",locations:[{start:{line:991,column:6},end:{line:994,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:991},45:{loc:{start:{line:1019,column:23},end:{line:1019,column:41}},type:"default-arg",locations:[{start:{line:1019,column:37},end:{line:1019,column:41}}],line:1019},46:{loc:{start:{line:1027,column:6},end:{line:1030,column:7}},type:"if",locations:[{start:{line:1027,column:6},end:{line:1030,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1027},47:{loc:{start:{line:1032,column:6},end:{line:1034,column:7}},type:"if",locations:[{start:{line:1032,column:6},end:{line:1034,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1032},48:{loc:{start:{line:1038,column:6},end:{line:1040,column:7}},type:"if",locations:[{start:{line:1038,column:6},end:{line:1040,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1038},49:{loc:{start:{line:1057,column:6},end:{line:1062,column:7}},type:"if",locations:[{start:{line:1057,column:6},end:{line:1062,column:7}},{start:{line:1059,column:13},end:{line:1062,column:7}}],line:1057},50:{loc:{start:{line:1068,column:6},end:{line:1073,column:7}},type:"if",locations:[{start:{line:1068,column:6},end:{line:1073,column:7}},{start:{line:1071,column:13},end:{line:1073,column:7}}],line:1068},51:{loc:{start:{line:1079,column:6},end:{line:1108,column:7}},type:"if",locations:[{start:{line:1079,column:6},end:{line:1108,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1079},52:{loc:{start:{line:1079,column:10},end:{line:1079,column:65}},type:"binary-expr",locations:[{start:{line:1079,column:10},end:{line:1079,column:23}},{start:{line:1079,column:27},end:{line:1079,column:65}}],line:1079},53:{loc:{start:{line:1080,column:8},end:{line:1107,column:9}},type:"if",locations:[{start:{line:1080,column:8},end:{line:1107,column:9}},{start:{line:1102,column:15},end:{line:1107,column:9}}],line:1080},54:{loc:{start:{line:1111,column:6},end:{line:1164,column:7}},type:"switch",locations:[{start:{line:1112,column:8},end:{line:1126,column:15}},{start:{line:1127,column:8},end:{line:1128,column:27}},{start:{line:1130,column:8},end:{line:1131,column:41}},{start:{line:1133,column:8},end:{line:1133,column:26}},{start:{line:1134,column:8},end:{line:1134,column:23}},{start:{line:1135,column:8},end:{line:1161,column:15}},{start:{line:1162,column:8},end:{line:1163,column:15}}],line:1111},55:{loc:{start:{line:1136,column:10},end:{line:1142,column:11}},type:"if",locations:[{start:{line:1136,column:10},end:{line:1142,column:11}},{start:{line:1139,column:17},end:{line:1142,column:11}}],line:1136},56:{loc:{start:{line:1147,column:10},end:{line:1160,column:11}},type:"if",locations:[{start:{line:1147,column:10},end:{line:1160,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1147},57:{loc:{start:{line:1149,column:23},end:{line:1149,column:58}},type:"cond-expr",locations:[{start:{line:1149,column:42},end:{line:1149,column:54}},{start:{line:1149,column:57},end:{line:1149,column:58}}],line:1149},58:{loc:{start:{line:1157,column:12},end:{line:1159,column:13}},type:"if",locations:[{start:{line:1157,column:12},end:{line:1159,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1157},59:{loc:{start:{line:1173,column:8},end:{line:1283,column:9}},type:"switch",locations:[{start:{line:1174,column:10},end:{line:1180,column:17}},{start:{line:1181,column:10},end:{line:1188,column:17}},{start:{line:1189,column:10},end:{line:1204,column:17}},{start:{line:1205,column:10},end:{line:1207,column:17}},{start:{line:1208,column:10},end:{line:1211,column:17}},{start:{line:1212,column:10},end:{line:1218,column:17}},{start:{line:1219,column:10},end:{line:1221,column:17}},{start:{line:1222,column:10},end:{line:1256,column:17}},{start:{line:1257,column:10},end:{line:1268,column:17}},{start:{line:1269,column:10},end:{line:1271,column:17}},{start:{line:1272,column:10},end:{line:1278,column:17}},{start:{line:1279,column:10},end:{line:1282,column:17}}],line:1173},60:{loc:{start:{line:1177,column:12},end:{line:1179,column:13}},type:"if",locations:[{start:{line:1177,column:12},end:{line:1179,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1177},61:{loc:{start:{line:1193,column:14},end:{line:1199,column:15}},type:"if",locations:[{start:{line:1193,column:14},end:{line:1199,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1193},62:{loc:{start:{line:1194,column:16},end:{line:1198,column:17}},type:"if",locations:[{start:{line:1194,column:16},end:{line:1198,column:17}},{start:{line:1196,column:23},end:{line:1198,column:17}}],line:1194},63:{loc:{start:{line:1214,column:12},end:{line:1217,column:13}},type:"if",locations:[{start:{line:1214,column:12},end:{line:1217,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1214},64:{loc:{start:{line:1226,column:14},end:{line:1233,column:15}},type:"if",locations:[{start:{line:1226,column:14},end:{line:1233,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1226},65:{loc:{start:{line:1227,column:16},end:{line:1228,column:49}},type:"binary-expr",locations:[{start:{line:1227,column:16},end:{line:1227,column:49}},{start:{line:1228,column:16},end:{line:1228,column:49}}],line:1227},66:{loc:{start:{line:1239,column:12},end:{line:1243,column:13}},type:"if",locations:[{start:{line:1239,column:12},end:{line:1243,column:13}},{start:{line:1241,column:19},end:{line:1243,column:13}}],line:1239},67:{loc:{start:{line:1244,column:12},end:{line:1248,column:13}},type:"if",locations:[{start:{line:1244,column:12},end:{line:1248,column:13}},{start:{line:1246,column:19},end:{line:1248,column:13}}],line:1244},68:{loc:{start:{line:1250,column:12},end:{line:1255,column:13}},type:"if",locations:[{start:{line:1250,column:12},end:{line:1255,column:13}},{start:{line:1253,column:19},end:{line:1255,column:13}}],line:1250},69:{loc:{start:{line:1259,column:14},end:{line:1265,column:15}},type:"if",locations:[{start:{line:1259,column:14},end:{line:1265,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1259},70:{loc:{start:{line:1260,column:16},end:{line:1261,column:49}},type:"binary-expr",locations:[{start:{line:1260,column:16},end:{line:1260,column:49}},{start:{line:1261,column:16},end:{line:1261,column:49}}],line:1260},71:{loc:{start:{line:1305,column:6},end:{line:1310,column:7}},type:"if",locations:[{start:{line:1305,column:6},end:{line:1310,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1305},72:{loc:{start:{line:1319,column:6},end:{line:1454,column:7}},type:"switch",locations:[{start:{line:1320,column:8},end:{line:1320,column:19}},{start:{line:1321,column:8},end:{line:1359,column:15}},{start:{line:1360,column:8},end:{line:1370,column:15}},{start:{line:1371,column:8},end:{line:1382,column:15}},{start:{line:1383,column:8},end:{line:1400,column:15}},{start:{line:1401,column:8},end:{line:1401,column:27}},{start:{line:1402,column:8},end:{line:1418,column:15}},{start:{line:1419,column:8},end:{line:1423,column:15}},{start:{line:1424,column:8},end:{line:1436,column:15}},{start:{line:1437,column:8},end:{line:1437,column:32}},{start:{line:1438,column:8},end:{line:1448,column:15}},{start:{line:1449,column:8},end:{line:1453,column:15}}],line:1319},73:{loc:{start:{line:1328,column:10},end:{line:1333,column:11}},type:"if",locations:[{start:{line:1328,column:10},end:{line:1333,column:11}},{start:{line:1330,column:17},end:{line:1333,column:11}}],line:1328},74:{loc:{start:{line:1328,column:14},end:{line:1328,column:77}},type:"binary-expr",locations:[{start:{line:1328,column:14},end:{line:1328,column:26}},{start:{line:1328,column:30},end:{line:1328,column:51}},{start:{line:1328,column:55},end:{line:1328,column:77}}],line:1328},75:{loc:{start:{line:1330,column:17},end:{line:1333,column:11}},type:"if",locations:[{start:{line:1330,column:17},end:{line:1333,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1330},76:{loc:{start:{line:1335,column:10},end:{line:1337,column:11}},type:"if",locations:[{start:{line:1335,column:10},end:{line:1337,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1335},77:{loc:{start:{line:1340,column:12},end:{line:1356,column:13}},type:"if",locations:[{start:{line:1340,column:12},end:{line:1356,column:13}},{start:{line:1348,column:19},end:{line:1356,column:13}}],line:1340},78:{loc:{start:{line:1363,column:10},end:{line:1365,column:11}},type:"if",locations:[{start:{line:1363,column:10},end:{line:1365,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1363},79:{loc:{start:{line:1372,column:10},end:{line:1374,column:11}},type:"if",locations:[{start:{line:1372,column:10},end:{line:1374,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1372},80:{loc:{start:{line:1372,column:14},end:{line:1372,column:52}},type:"binary-expr",locations:[{start:{line:1372,column:14},end:{line:1372,column:25}},{start:{line:1372,column:29},end:{line:1372,column:52}}],line:1372},81:{loc:{start:{line:1375,column:10},end:{line:1377,column:11}},type:"if",locations:[{start:{line:1375,column:10},end:{line:1377,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1375},82:{loc:{start:{line:1375,column:14},end:{line:1375,column:48}},type:"binary-expr",locations:[{start:{line:1375,column:14},end:{line:1375,column:25}},{start:{line:1375,column:29},end:{line:1375,column:48}}],line:1375},83:{loc:{start:{line:1384,column:10},end:{line:1386,column:11}},type:"if",locations:[{start:{line:1384,column:10},end:{line:1386,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1384},84:{loc:{start:{line:1384,column:14},end:{line:1384,column:52}},type:"binary-expr",locations:[{start:{line:1384,column:14},end:{line:1384,column:25}},{start:{line:1384,column:29},end:{line:1384,column:52}}],line:1384},85:{loc:{start:{line:1387,column:10},end:{line:1389,column:11}},type:"if",locations:[{start:{line:1387,column:10},end:{line:1389,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1387},86:{loc:{start:{line:1387,column:14},end:{line:1387,column:48}},type:"binary-expr",locations:[{start:{line:1387,column:14},end:{line:1387,column:25}},{start:{line:1387,column:29},end:{line:1387,column:48}}],line:1387},87:{loc:{start:{line:1390,column:10},end:{line:1392,column:11}},type:"if",locations:[{start:{line:1390,column:10},end:{line:1392,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1390},88:{loc:{start:{line:1390,column:14},end:{line:1390,column:49}},type:"binary-expr",locations:[{start:{line:1390,column:14},end:{line:1390,column:25}},{start:{line:1390,column:29},end:{line:1390,column:49}}],line:1390},89:{loc:{start:{line:1403,column:10},end:{line:1405,column:11}},type:"if",locations:[{start:{line:1403,column:10},end:{line:1405,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1403},90:{loc:{start:{line:1403,column:14},end:{line:1403,column:52}},type:"binary-expr",locations:[{start:{line:1403,column:14},end:{line:1403,column:25}},{start:{line:1403,column:29},end:{line:1403,column:52}}],line:1403},91:{loc:{start:{line:1406,column:10},end:{line:1408,column:11}},type:"if",locations:[{start:{line:1406,column:10},end:{line:1408,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1406},92:{loc:{start:{line:1406,column:14},end:{line:1406,column:48}},type:"binary-expr",locations:[{start:{line:1406,column:14},end:{line:1406,column:25}},{start:{line:1406,column:29},end:{line:1406,column:48}}],line:1406},93:{loc:{start:{line:1413,column:10},end:{line:1415,column:11}},type:"if",locations:[{start:{line:1413,column:10},end:{line:1415,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1413},94:{loc:{start:{line:1441,column:10},end:{line:1443,column:11}},type:"if",locations:[{start:{line:1441,column:10},end:{line:1443,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1441},95:{loc:{start:{line:1441,column:14},end:{line:1441,column:47}},type:"binary-expr",locations:[{start:{line:1441,column:14},end:{line:1441,column:25}},{start:{line:1441,column:29},end:{line:1441,column:47}}],line:1441},96:{loc:{start:{line:1444,column:10},end:{line:1446,column:11}},type:"if",locations:[{start:{line:1444,column:10},end:{line:1446,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1444},97:{loc:{start:{line:1461,column:6},end:{line:1478,column:7}},type:"if",locations:[{start:{line:1461,column:6},end:{line:1478,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1461},98:{loc:{start:{line:1481,column:18},end:{line:1481,column:79}},type:"cond-expr",locations:[{start:{line:1481,column:39},end:{line:1481,column:58}},{start:{line:1481,column:61},end:{line:1481,column:79}}],line:1481},99:{loc:{start:{line:1604,column:6},end:{line:1606,column:7}},type:"if",locations:[{start:{line:1604,column:6},end:{line:1606,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1604},100:{loc:{start:{line:1616,column:6},end:{line:1618,column:7}},type:"if",locations:[{start:{line:1616,column:6},end:{line:1618,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1616},101:{loc:{start:{line:1625,column:6},end:{line:1627,column:7}},type:"if",locations:[{start:{line:1625,column:6},end:{line:1627,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1625},102:{loc:{start:{line:1632,column:21},end:{line:1632,column:37}},type:"default-arg",locations:[{start:{line:1632,column:33},end:{line:1632,column:37}}],line:1632},103:{loc:{start:{line:1648,column:10},end:{line:1650,column:11}},type:"if",locations:[{start:{line:1648,column:10},end:{line:1650,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1648},104:{loc:{start:{line:1651,column:10},end:{line:1653,column:11}},type:"if",locations:[{start:{line:1651,column:10},end:{line:1653,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1651},105:{loc:{start:{line:1654,column:10},end:{line:1656,column:11}},type:"if",locations:[{start:{line:1654,column:10},end:{line:1656,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1654},106:{loc:{start:{line:1663,column:10},end:{line:1668,column:11}},type:"if",locations:[{start:{line:1663,column:10},end:{line:1668,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1663},107:{loc:{start:{line:1674,column:43},end:{line:1674,column:56}},type:"default-arg",locations:[{start:{line:1674,column:51},end:{line:1674,column:56}}],line:1674},108:{loc:{start:{line:1678,column:6},end:{line:1684,column:7}},type:"if",locations:[{start:{line:1678,column:6},end:{line:1684,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1678},109:{loc:{start:{line:1680,column:8},end:{line:1683,column:9}},type:"if",locations:[{start:{line:1680,column:8},end:{line:1683,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1680},110:{loc:{start:{line:1704,column:6},end:{line:1708,column:7}},type:"if",locations:[{start:{line:1704,column:6},end:{line:1708,column:7}},{start:{line:1706,column:13},end:{line:1708,column:7}}],line:1704},111:{loc:{start:{line:1717,column:6},end:{line:1724,column:7}},type:"if",locations:[{start:{line:1717,column:6},end:{line:1724,column:7}},{start:{line:1721,column:13},end:{line:1724,column:7}}],line:1717},112:{loc:{start:{line:1725,column:6},end:{line:1728,column:7}},type:"if",locations:[{start:{line:1725,column:6},end:{line:1728,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1725},113:{loc:{start:{line:1749,column:8},end:{line:1751,column:9}},type:"if",locations:[{start:{line:1749,column:8},end:{line:1751,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1749},114:{loc:{start:{line:1752,column:8},end:{line:1754,column:9}},type:"if",locations:[{start:{line:1752,column:8},end:{line:1754,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1752},115:{loc:{start:{line:1755,column:8},end:{line:1757,column:9}},type:"if",locations:[{start:{line:1755,column:8},end:{line:1757,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1755},116:{loc:{start:{line:1758,column:8},end:{line:1760,column:9}},type:"if",locations:[{start:{line:1758,column:8},end:{line:1760,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1758},117:{loc:{start:{line:1761,column:8},end:{line:1763,column:9}},type:"if",locations:[{start:{line:1761,column:8},end:{line:1763,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1761},118:{loc:{start:{line:1769,column:19},end:{line:1769,column:32}},type:"default-arg",locations:[{start:{line:1769,column:26},end:{line:1769,column:32}}],line:1769},119:{loc:{start:{line:1770,column:6},end:{line:1854,column:7}},type:"if",locations:[{start:{line:1770,column:6},end:{line:1854,column:7}},{start:{line:1852,column:13},end:{line:1854,column:7}}],line:1770},120:{loc:{start:{line:1772,column:8},end:{line:1804,column:9}},type:"if",locations:[{start:{line:1772,column:8},end:{line:1804,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1772},121:{loc:{start:{line:1773,column:10},end:{line:1803,column:11}},type:"if",locations:[{start:{line:1773,column:10},end:{line:1803,column:11}},{start:{line:1777,column:17},end:{line:1803,column:11}}],line:1773},122:{loc:{start:{line:1779,column:12},end:{line:1802,column:13}},type:"if",locations:[{start:{line:1779,column:12},end:{line:1802,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1779},123:{loc:{start:{line:1781,column:14},end:{line:1799,column:15}},type:"if",locations:[{start:{line:1781,column:14},end:{line:1799,column:15}},{start:{line:1790,column:21},end:{line:1799,column:15}}],line:1781},124:{loc:{start:{line:1782,column:16},end:{line:1783,column:58}},type:"binary-expr",locations:[{start:{line:1782,column:16},end:{line:1782,column:35}},{start:{line:1783,column:17},end:{line:1783,column:32}},{start:{line:1783,column:36},end:{line:1783,column:57}}],line:1782},125:{loc:{start:{line:1790,column:21},end:{line:1799,column:15}},type:"if",locations:[{start:{line:1790,column:21},end:{line:1799,column:15}},{start:{line:1796,column:21},end:{line:1799,column:15}}],line:1790},126:{loc:{start:{line:1813,column:12},end:{line:1836,column:13}},type:"if",locations:[{start:{line:1813,column:12},end:{line:1836,column:13}},{start:{line:1831,column:19},end:{line:1836,column:13}}],line:1813},127:{loc:{start:{line:1814,column:14},end:{line:1822,column:15}},type:"if",locations:[{start:{line:1814,column:14},end:{line:1822,column:15}},{start:{line:1818,column:21},end:{line:1822,column:15}}],line:1814},128:{loc:{start:{line:1823,column:14},end:{line:1826,column:15}},type:"if",locations:[{start:{line:1823,column:14},end:{line:1826,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1823},129:{loc:{start:{line:1843,column:12},end:{line:1849,column:13}},type:"if",locations:[{start:{line:1843,column:12},end:{line:1849,column:13}},{start:{line:1846,column:19},end:{line:1849,column:13}}],line:1843},130:{loc:{start:{line:1862,column:6},end:{line:1865,column:7}},type:"if",locations:[{start:{line:1862,column:6},end:{line:1865,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1862},131:{loc:{start:{line:1870,column:6},end:{line:1872,column:7}},type:"if",locations:[{start:{line:1870,column:6},end:{line:1872,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1870},132:{loc:{start:{line:1888,column:10},end:{line:1894,column:11}},type:"if",locations:[{start:{line:1888,column:10},end:{line:1894,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1888},133:{loc:{start:{line:1944,column:6},end:{line:1971,column:7}},type:"if",locations:[{start:{line:1944,column:6},end:{line:1971,column:7}},{start:{line:1947,column:13},end:{line:1971,column:7}}],line:1944},134:{loc:{start:{line:1947,column:13},end:{line:1971,column:7}},type:"if",locations:[{start:{line:1947,column:13},end:{line:1971,column:7}},{start:{line:1957,column:13},end:{line:1971,column:7}}],line:1947},135:{loc:{start:{line:1957,column:13},end:{line:1971,column:7}},type:"if",locations:[{start:{line:1957,column:13},end:{line:1971,column:7}},{start:{line:1965,column:13},end:{line:1971,column:7}}],line:1957},136:{loc:{start:{line:1959,column:8},end:{line:1961,column:9}},type:"if",locations:[{start:{line:1959,column:8},end:{line:1961,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1959},137:{loc:{start:{line:1965,column:13},end:{line:1971,column:7}},type:"if",locations:[{start:{line:1965,column:13},end:{line:1971,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1965},138:{loc:{start:{line:1967,column:8},end:{line:1969,column:9}},type:"if",locations:[{start:{line:1967,column:8},end:{line:1969,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1967},139:{loc:{start:{line:1997,column:6},end:{line:1999,column:7}},type:"if",locations:[{start:{line:1997,column:6},end:{line:1999,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1997},140:{loc:{start:{line:1997,column:10},end:{line:1997,column:58}},type:"binary-expr",locations:[{start:{line:1997,column:10},end:{line:1997,column:40}},{start:{line:1997,column:44},end:{line:1997,column:58}}],line:1997},141:{loc:{start:{line:2007,column:8},end:{line:2010,column:9}},type:"if",locations:[{start:{line:2007,column:8},end:{line:2010,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:2007}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:0,136:0,137:0,138:0,139:0,140:0,141:0,142:0,143:0,144:0,145:0,146:0,147:0,148:0,149:0,150:0,151:0,152:0,153:0,154:0,155:0,156:0,157:0,158:0,159:0,160:0,161:0,162:0,163:0,164:0,165:0,166:0,167:0,168:0,169:0,170:0,171:0,172:0,173:0,174:0,175:0,176:0,177:0,178:0,179:0,180:0,181:0,182:0,183:0,184:0,185:0,186:0,187:0,188:0,189:0,190:0,191:0,192:0,193:0,194:0,195:0,196:0,197:0,198:0,199:0,200:0,201:0,202:0,203:0,204:0,205:0,206:0,207:0,208:0,209:0,210:0,211:0,212:0,213:0,214:0,215:0,216:0,217:0,218:0,219:0,220:0,221:0,222:0,223:0,224:0,225:0,226:0,227:0,228:0,229:0,230:0,231:0,232:0,233:0,234:0,235:0,236:0,237:0,238:0,239:0,240:0,241:0,242:0,243:0,244:0,245:0,246:0,247:0,248:0,249:0,250:0,251:0,252:0,253:0,254:0,255:0,256:0,257:0,258:0,259:0,260:0,261:0,262:0,263:0,264:0,265:0,266:0,267:0,268:0,269:0,270:0,271:0,272:0,273:0,274:0,275:0,276:0,277:0,278:0,279:0,280:0,281:0,282:0,283:0,284:0,285:0,286:0,287:0,288:0,289:0,290:0,291:0,292:0,293:0,294:0,295:0,296:0,297:0,298:0,299:0,300:0,301:0,302:0,303:0,304:0,305:0,306:0,307:0,308:0,309:0,310:0,311:0,312:0,313:0,314:0,315:0,316:0,317:0,318:0,319:0,320:0,321:0,322:0,323:0,324:0,325:0,326:0,327:0,328:0,329:0,330:0,331:0,332:0,333:0,334:0,335:0,336:0,337:0,338:0,339:0,340:0,341:0,342:0,343:0,344:0,345:0,346:0,347:0,348:0,349:0,350:0,351:0,352:0,353:0,354:0,355:0,356:0,357:0,358:0,359:0,360:0,361:0,362:0,363:0,364:0,365:0,366:0,367:0,368:0,369:0,370:0,371:0,372:0,373:0,374:0,375:0,376:0,377:0,378:0,379:0,380:0,381:0,382:0,383:0,384:0,385:0,386:0,387:0,388:0,389:0,390:0,391:0,392:0,393:0,394:0,395:0,396:0,397:0,398:0,399:0,400:0,401:0,402:0,403:0,404:0,405:0,406:0,407:0,408:0,409:0,410:0,411:0,412:0,413:0,414:0,415:0,416:0,417:0,418:0,419:0,420:0,421:0,422:0,423:0,424:0,425:0,426:0,427:0,428:0,429:0,430:0,431:0,432:0,433:0,434:0,435:0,436:0,437:0,438:0,439:0,440:0,441:0,442:0,443:0,444:0,445:0,446:0,447:0,448:0,449:0,450:0,451:0,452:0,453:0,454:0,455:0,456:0,457:0,458:0,459:0,460:0,461:0,462:0,463:0,464:0,465:0,466:0,467:0,468:0,469:0,470:0,471:0,472:0,473:0,474:0,475:0,476:0,477:0,478:0,479:0,480:0,481:0,482:0,483:0,484:0,485:0,486:0,487:0,488:0,489:0,490:0,491:0,492:0,493:0,494:0,495:0,496:0,497:0,498:0,499:0,500:0,501:0,502:0,503:0,504:0,505:0,506:0,507:0,508:0,509:0,510:0,511:0,512:0,513:0,514:0,515:0,516:0,517:0,518:0,519:0,520:0,521:0,522:0,523:0,524:0,525:0,526:0,527:0,528:0,529:0,530:0,531:0,532:0,533:0,534:0,535:0,536:0,537:0,538:0,539:0,540:0,541:0,542:0,543:0,544:0,545:0,546:0,547:0,548:0,549:0,550:0,551:0,552:0,553:0,554:0,555:0,556:0,557:0,558:0,559:0,560:0,561:0,562:0,563:0,564:0,565:0,566:0,567:0,568:0,569:0,570:0,571:0,572:0,573:0,574:0,575:0,576:0,577:0,578:0,579:0,580:0,581:0,582:0,583:0,584:0,585:0,586:0,587:0,588:0,589:0,590:0,591:0,592:0,593:0,594:0,595:0,596:0,597:0,598:0,599:0,600:0,601:0,602:0,603:0,604:0,605:0,606:0,607:0,608:0,609:0,610:0,611:0,612:0,613:0,614:0,615:0,616:0,617:0,618:0,619:0,620:0,621:0,622:0,623:0,624:0,625:0,626:0,627:0,628:0,629:0,630:0,631:0,632:0,633:0,634:0,635:0,636:0,637:0,638:0,639:0,640:0,641:0,642:0,643:0,644:0,645:0,646:0,647:0,648:0,649:0,650:0,651:0,652:0,653:0,654:0,655:0,656:0,657:0,658:0,659:0,660:0,661:0,662:0,663:0,664:0,665:0,666:0,667:0,668:0,669:0,670:0,671:0,672:0,673:0,674:0,675:0,676:0,677:0,678:0,679:0,680:0,681:0,682:0,683:0,684:0,685:0,686:0,687:0,688:0,689:0,690:0,691:0,692:0,693:0,694:0,695:0,696:0,697:0,698:0,699:0,700:0,701:0,702:0,703:0,704:0,705:0,706:0,707:0,708:0,709:0,710:0,711:0,712:0,713:0,714:0,715:0,716:0,717:0,718:0,719:0,720:0,721:0,722:0,723:0,724:0,725:0,726:0,727:0,728:0,729:0,730:0,731:0,732:0,733:0,734:0,735:0,736:0,737:0,738:0,739:0,740:0,741:0,742:0,743:0,744:0,745:0,746:0,747:0,748:0,749:0,750:0,751:0,752:0,753:0,754:0,755:0,756:0,757:0,758:0,759:0,760:0,761:0,762:0,763:0,764:0,765:0,766:0,767:0,768:0,769:0,770:0,771:0,772:0,773:0,774:0,775:0,776:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:0,136:0,137:0,138:0,139:0,140:0,141:0,142:0,143:0,144:0,145:0,146:0,147:0,148:0,149:0,150:0,151:0,152:0,153:0,154:0,155:0,156:0,157:0,158:0,159:0,160:0,161:0,162:0,163:0,164:0,165:0,166:0,167:0,168:0,169:0,170:0,171:0,172:0,173:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0],24:[0,0],25:[0,0],26:[0,0],27:[0,0,0],28:[0,0],29:[0,0],30:[0],31:[0,0],32:[0,0],33:[0,0],34:[0,0],35:[0,0],36:[0,0,0],37:[0,0],38:[0,0],39:[0,0],40:[0,0],41:[0,0],42:[0,0],43:[0,0],44:[0,0],45:[0],46:[0,0],47:[0,0],48:[0,0],49:[0,0],50:[0,0],51:[0,0],52:[0,0],53:[0,0],54:[0,0,0,0,0,0,0],55:[0,0],56:[0,0],57:[0,0],58:[0,0],59:[0,0,0,0,0,0,0,0,0,0,0,0],60:[0,0],61:[0,0],62:[0,0],63:[0,0],64:[0,0],65:[0,0],66:[0,0],67:[0,0],68:[0,0],69:[0,0],70:[0,0],71:[0,0],72:[0,0,0,0,0,0,0,0,0,0,0,0],73:[0,0],74:[0,0,0],75:[0,0],76:[0,0],77:[0,0],78:[0,0],79:[0,0],80:[0,0],81:[0,0],82:[0,0],83:[0,0],84:[0,0],85:[0,0],86:[0,0],87:[0,0],88:[0,0],89:[0,0],90:[0,0],91:[0,0],92:[0,0],93:[0,0],94:[0,0],95:[0,0],96:[0,0],97:[0,0],98:[0,0],99:[0,0],100:[0,0],101:[0,0],102:[0],103:[0,0],104:[0,0],105:[0,0],106:[0,0],107:[0],108:[0,0],109:[0,0],110:[0,0],111:[0,0],112:[0,0],113:[0,0],114:[0,0],115:[0,0],116:[0,0],117:[0,0],118:[0],119:[0,0],120:[0,0],121:[0,0],122:[0,0],123:[0,0],124:[0,0,0],125:[0,0],126:[0,0],127:[0,0],128:[0,0],129:[0,0],130:[0,0],131:[0,0],132:[0,0],133:[0,0],134:[0,0],135:[0,0],136:[0,0],137:[0,0],138:[0,0],139:[0,0],140:[0,0],141:[0,0]},inputSourceMap:{version:3,sources:["ScriptRunner.vue"],names:[],mappings:";AAyYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ScriptRunner.vue",sourceRoot:"src/tools/ScriptRunner",sourcesContent:["\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2023, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <top-bar :menus=\"menus\" :title=\"title\" />\n <v-snackbar v-model=\"showAlert\" top :color=\"alertType\" :timeout=\"3000\">\n <v-icon> mdi-{{ alertType }} </v-icon>\n {{ alertText }}\n <template v-slot:action=\"{ attrs }\">\n <v-btn text v-bind=\"attrs\" @click=\"showAlert = false\"> Close </v-btn>\n </template>\n </v-snackbar>\n <v-snackbar v-model=\"showReadOnlyToast\" top :timeout=\"-1\" color=\"orange\">\n <v-icon> mdi-pencil-off </v-icon>\n {{ lockedBy }} is editing this script. Editor is in read-only mode\n <template v-slot:action=\"{ attrs }\">\n <v-btn\n text\n v-bind=\"attrs\"\n color=\"danger\"\n @click=\"confirmLocalUnlock\"\n data-test=\"unlock-button\"\n >\n Unlock\n </v-btn>\n <v-btn\n text\n v-bind=\"attrs\"\n @click=\"\n () => {\n showReadOnlyToast = false\n }\n \"\n >\n dismiss\n </v-btn>\n </template>\n </v-snackbar>\n <div class=\"grid\">\n <div\n class=\"item\"\n v-for=\"def in screens\"\n :key=\"def.id\"\n :id=\"screenId(def.id)\"\n ref=\"gridItem\"\n >\n <div class=\"item-content\">\n <openc3-screen\n :target=\"def.target\"\n :screen=\"def.screen\"\n :definition=\"def.definition\"\n :keywords=\"screenKeywords\"\n :initialFloated=\"true\"\n :initialTop=\"def.top\"\n :initialLeft=\"def.left\"\n :initialZ=\"3\"\n :minZ=\"3\"\n :fixFloated=\"true\"\n :count=\"def.count\"\n @close-screen=\"closeScreen(def.id)\"\n @delete-screen=\"closeScreen(def.id)\"\n />\n </div>\n </div>\n </div>\n <v-card style=\"padding: 10px\">\n <suite-runner\n v-if=\"suiteRunner\"\n :suite-map=\"suiteMap\"\n :disable-buttons=\"disableSuiteButtons\"\n @button=\"suiteRunnerButton\"\n />\n <div id=\"sr-controls\">\n <v-row no-gutters justify=\"space-between\">\n <v-icon v-if=\"showDisconnect\" class=\"mr-2\" color=\"red\">\n mdi-connection\n </v-icon>\n <v-tooltip bottom>\n <template v-slot:activator=\"{ on, attrs }\">\n <v-btn\n v-on=\"on\"\n v-bind=\"attrs\"\n icon\n @click=\"reloadFile\"\n :disabled=\"filename === NEW_FILENAME\"\n >\n <v-icon>mdi-cached</v-icon>\n </v-btn>\n </template>\n <span> Reload File </span>\n </v-tooltip>\n <v-select\n v-model=\"filenameSelect\"\n @change=\"fileNameChanged\"\n :items=\"fileList\"\n :disabled=\"fileList.length <= 1\"\n label=\"Filename\"\n id=\"filename\"\n data-test=\"filename\"\n style=\"width: 300px\"\n dense\n outlined\n hide-details\n />\n <v-text-field\n v-model=\"scriptId\"\n label=\"Script ID\"\n data-test=\"id\"\n class=\"shrink ml-2 script-state\"\n style=\"width: 100px\"\n dense\n outlined\n readonly\n hide-details\n />\n <v-text-field\n v-model=\"state\"\n label=\"Script State\"\n data-test=\"state\"\n class=\"shrink ml-2 script-state\"\n style=\"width: 120px\"\n dense\n outlined\n readonly\n hide-details\n />\n <v-progress-circular\n v-if=\"state === 'Connecting...'\"\n :size=\"40\"\n class=\"ml-2 mr-2\"\n indeterminate\n color=\"primary\"\n />\n <div v-else style=\"width: 40px; height: 40px\" class=\"ml-2 mr-2\"></div>\n\n \x3c!-- Disable the Start button when Suite Runner controls are showing --\x3e\n <v-spacer />\n <div v-if=\"startOrGoButton === 'Start'\">\n <v-btn\n @click=\"startHandler\"\n class=\"mx-1\"\n color=\"primary\"\n data-test=\"start-button\"\n :disabled=\"startOrGoDisabled\"\n >\n <span> Start </span>\n </v-btn>\n <v-tooltip bottom>\n <template v-slot:activator=\"{ on, attrs }\">\n <v-btn\n v-on=\"on\"\n v-bind=\"attrs\"\n @click=\"scriptEnvironment.show = !scriptEnvironment.show\"\n class=\"mx-1\"\n data-test=\"env-button\"\n :color=\"environmentIconColor\"\n :disabled=\"envDisabled\"\n >\n <v-icon> {{ environmentIcon }} </v-icon>\n </v-btn>\n </template>\n <span>Script Environment</span>\n </v-tooltip>\n </div>\n <div v-else>\n <v-btn\n @click=\"go\"\n color=\"primary\"\n class=\"mr-2\"\n :disabled=\"startOrGoDisabled\"\n data-test=\"go-button\"\n >\n Go\n </v-btn>\n <v-btn\n color=\"primary\"\n @click=\"pauseOrRetry\"\n class=\"mr-2\"\n :disabled=\"pauseOrRetryDisabled\"\n data-test=\"pause-retry-button\"\n >\n {{ pauseOrRetryButton }}\n </v-btn>\n\n <v-btn\n color=\"primary\"\n @click=\"stop\"\n data-test=\"stop-button\"\n :disabled=\"stopDisabled\"\n >\n Stop\n </v-btn>\n </div>\n </v-row>\n </div>\n </v-card>\n \x3c!-- Create Multipane container to support resizing.\n NOTE: We listen to paneResize event and call editor.resize() to prevent weird sizing issues,\n The event must be paneResize and not pane-resize --\x3e\n <multipane\n class=\"horizontal-panes\"\n layout=\"horizontal\"\n @paneResize=\"editor.resize()\"\n >\n <div class=\"editorbox pane\">\n <v-snackbar\n v-model=\"showSave\"\n absolute\n top\n right\n :timeout=\"-1\"\n class=\"saving\"\n >\n Saving...\n </v-snackbar>\n <pre\n ref=\"editor\"\n class=\"editor\"\n @contextmenu.prevent=\"showExecuteSelectionMenu\"\n ></pre>\n <v-menu\n v-model=\"executeSelectionMenu\"\n :position-x=\"menuX\"\n :position-y=\"menuY\"\n absolute\n offset-y\n >\n <v-list>\n <v-list-item\n v-for=\"item in executeSelectionMenuItems\"\n link\n :key=\"item.label\"\n :disabled=\"scriptId\"\n >\n <v-list-item-title @click=\"item.command\">\n {{ item.label }}\n </v-list-item-title>\n </v-list-item>\n </v-list>\n </v-menu>\n </div>\n <multipane-resizer><hr /></multipane-resizer>\n <div id=\"messages\" class=\"mt-2 pane\" ref=\"messagesDiv\">\n <div id=\"debug\" class=\"pa-0\" v-if=\"showDebug\">\n <v-row no-gutters>\n <v-btn\n color=\"primary\"\n @click=\"step\"\n style=\"width: 100px\"\n class=\"mr-4\"\n :disabled=\"!scriptId\"\n data-test=\"step-button\"\n >\n Step\n <v-icon right> mdi-step-forward </v-icon>\n </v-btn>\n <v-text-field\n class=\"mb-2\"\n outlined\n dense\n hide-details\n label=\"Debug\"\n v-model=\"debug\"\n @keydown=\"debugKeydown\"\n data-test=\"debug-text\"\n />\n </v-row>\n </div>\n <script-log-messages v-model=\"messages\" @sort=\"messageSortOrder\" />\n </div>\n </multipane>\n \x3c!--- MENUS ---\x3e\n <file-open-save-dialog\n v-if=\"fileOpen\"\n v-model=\"fileOpen\"\n type=\"open\"\n api-url=\"/script-api/scripts\"\n @file=\"setFile($event)\"\n @error=\"setError($event)\"\n @clear-temp=\"clearTemp($event)\"\n />\n <file-open-save-dialog\n v-if=\"showSaveAs\"\n v-model=\"showSaveAs\"\n type=\"save\"\n api-url=\"/script-api/scripts\"\n require-target-parent-dir\n :input-filename=\"filenameOrBlank\"\n @filename=\"saveAsFilename($event)\"\n @error=\"setError($event)\"\n @clear-temp=\"clearTemp($event)\"\n />\n <environment-dialog v-if=\"showEnvironment\" v-model=\"showEnvironment\" />\n <ask-dialog\n v-if=\"ask.show\"\n v-model=\"ask.show\"\n :question=\"ask.question\"\n :default=\"ask.default\"\n :password=\"ask.password\"\n :answer-required=\"ask.answerRequired\"\n @response=\"ask.callback\"\n />\n <file-dialog\n v-if=\"file.show\"\n v-model=\"file.show\"\n :title=\"file.title\"\n :message=\"file.message\"\n :multiple=\"file.multiple\"\n :filter=\"file.filter\"\n @response=\"fileDialogCallback\"\n />\n <information-dialog\n v-if=\"information.show\"\n v-model=\"information.show\"\n :title=\"information.title\"\n :text=\"information.text\"\n />\n <event-list-dialog\n v-if=\"inputMetadata.show\"\n v-model=\"inputMetadata.show\"\n :events=\"inputMetadata.events\"\n :utc=\"false\"\n new-metadata\n @close=\"inputMetadata.callback\"\n />\n <overrides-dialog v-if=\"showOverrides\" v-model=\"showOverrides\" />\n <prompt-dialog\n v-if=\"prompt.show\"\n v-model=\"prompt.show\"\n :title=\"prompt.title\"\n :subtitle=\"prompt.subtitle\"\n :message=\"prompt.message\"\n :details=\"prompt.details\"\n :buttons=\"prompt.buttons\"\n :layout=\"prompt.layout\"\n :multiple=\"prompt.multiple\"\n @response=\"prompt.callback\"\n />\n <results-dialog\n v-if=\"results.show\"\n v-model=\"results.show\"\n :text=\"results.text\"\n />\n <script-environment-dialog\n v-if=\"scriptEnvironment.show\"\n v-model=\"scriptEnvironment.show\"\n :input-environment=\"scriptEnvironment.env\"\n @environment=\"environmentHandler\"\n />\n <simple-text-dialog\n v-model=\"showSuiteError\"\n title=\"Suite Analysis Error\"\n :text=\"suiteError\"\n :width=\"1000\"\n />\n <v-bottom-sheet v-model=\"showScripts\">\n <v-sheet class=\"pb-11 pt-5 px-5\">\n <running-scripts\n v-if=\"showScripts\"\n :connect-in-new-tab=\"!!fileModified\"\n @disconnect=\"scriptDisconnect\"\n @close=\"\n () => {\n showScripts = false\n }\n \"\n />\n </v-sheet>\n </v-bottom-sheet>\n </div>\n</template>\n\n<script>\nimport axios from 'axios'\nimport Cable from '@openc3/tool-common/src/services/cable.js'\nimport Api from '@openc3/tool-common/src/services/api'\nimport * as ace from 'ace-builds'\nimport 'ace-builds/src-min-noconflict/mode-ruby'\nimport 'ace-builds/src-min-noconflict/mode-python'\nimport 'ace-builds/src-min-noconflict/theme-twilight'\nimport 'ace-builds/src-min-noconflict/ext-language_tools'\nimport 'ace-builds/src-min-noconflict/ext-searchbox'\nimport { format } from 'date-fns'\nimport { Multipane, MultipaneResizer } from 'vue-multipane'\nimport FileOpenSaveDialog from '@openc3/tool-common/src/components/FileOpenSaveDialog'\nimport EnvironmentDialog from '@openc3/tool-common/src/components/EnvironmentDialog'\nimport SimpleTextDialog from '@openc3/tool-common/src/components/SimpleTextDialog'\nimport TopBar from '@openc3/tool-common/src/components/TopBar'\nimport { OpenC3Api } from '@openc3/tool-common/src/services/openc3-api'\nimport { fileIcon } from '@openc3/tool-common/src/tools/base/util/fileIcon'\n\nimport AskDialog from '@/tools/ScriptRunner/Dialogs/AskDialog'\nimport FileDialog from '@/tools/ScriptRunner/Dialogs/FileDialog'\nimport InformationDialog from '@/tools/ScriptRunner/Dialogs/InformationDialog'\nimport EventListDialog from '@openc3/tool-common/src/tools/calendar/Dialogs/EventListDialog'\nimport OverridesDialog from '@/tools/ScriptRunner/Dialogs/OverridesDialog'\nimport PromptDialog from '@/tools/ScriptRunner/Dialogs/PromptDialog'\nimport ResultsDialog from '@/tools/ScriptRunner/Dialogs/ResultsDialog'\nimport ScriptEnvironmentDialog from '@/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog'\nimport SuiteRunner from '@/tools/ScriptRunner/SuiteRunner'\nimport ScriptLogMessages from '@/tools/ScriptRunner/ScriptLogMessages'\nimport Openc3Screen from '@openc3/tool-common/src/components/Openc3Screen'\nimport {\n CmdCompleter,\n TlmCompleter,\n MnemonicChecker,\n} from '@/tools/ScriptRunner/autocomplete'\nimport { SleepAnnotator } from '@/tools/ScriptRunner/annotations'\nimport RunningScripts from './RunningScripts.vue'\n\n// Matches target_file.rb TEMP_FOLDER\nconst TEMP_FOLDER = '__TEMP__'\nconst NEW_FILENAME = '<Untitled>'\nconst START = 'Start'\nconst GO = 'Go'\nconst PAUSE = 'Pause'\nconst RETRY = 'Retry'\n\nexport default {\n components: {\n FileOpenSaveDialog,\n Openc3Screen,\n EnvironmentDialog,\n Multipane,\n MultipaneResizer,\n TopBar,\n AskDialog,\n FileDialog,\n InformationDialog,\n EventListDialog,\n OverridesDialog,\n PromptDialog,\n ResultsDialog,\n ScriptEnvironmentDialog,\n SimpleTextDialog,\n SuiteRunner,\n RunningScripts,\n ScriptLogMessages,\n },\n data() {\n return {\n title: 'Script Runner',\n suiteRunner: false, // Whether to display the SuiteRunner GUI\n disableSuiteButtons: false,\n suiteMap: {\n // Useful for testing the various options in the SuiteRunner GUI\n // Suite: {\n // teardown: true,\n // groups: {\n // Group: {\n // setup: true,\n // cases: ['case1', 'case2', 'really_long_test_case_name3'],\n // },\n // ReallyLongGroupName: {\n // cases: ['case1', 'case2', 'case3'],\n // },\n // },\n // },\n },\n filenameSelect: null,\n currentFilename: null, // This is the currently shown filename while running\n showSave: false,\n showAlert: false,\n alertType: null,\n alertText: '',\n state: null,\n scriptId: null,\n startOrGoButton: START,\n startOrGoDisabled: false,\n envDisabled: false,\n pauseOrRetryButton: PAUSE,\n pauseOrRetryDisabled: false,\n stopDisabled: false,\n showEnvironment: false,\n showDebug: false,\n debug: '',\n debugHistory: [],\n debugHistoryIndex: 0,\n showDisconnect: false,\n files: {},\n breakpoints: {},\n filename: NEW_FILENAME,\n saveAllowed: true,\n tempFilename: null,\n fileModified: '',\n fileOpen: false,\n lockedBy: null,\n showReadOnlyToast: false,\n showSaveAs: false,\n areYouSure: false,\n subscription: null,\n cable: null,\n fatal: false,\n updateInterval: null,\n receivedEvents: [],\n messages: [],\n messagesNewestOnTop: true,\n maxArrayLength: 200,\n Range: ace.require('ace/range').Range,\n ask: {\n show: false,\n question: '',\n default: null,\n password: false,\n answerRequired: true,\n callback: () => {},\n },\n file: {\n show: false,\n message: '',\n directory: null,\n filter: '*',\n multiple: false,\n callback: () => {},\n },\n prompt: {\n show: false,\n title: '',\n subtitle: '',\n message: '',\n details: '',\n buttons: null,\n layout: 'horizontal',\n callback: () => {},\n },\n information: {\n show: false,\n title: '',\n text: [],\n },\n inputMetadata: {\n show: false,\n events: [],\n callback: () => {},\n },\n results: {\n show: false,\n text: '',\n },\n scriptEnvironment: {\n show: false,\n env: [],\n },\n showSuiteError: false,\n suiteError: '',\n executeSelectionMenu: false,\n menuX: 0,\n menuY: 0,\n mnemonicChecker: new MnemonicChecker(),\n showScripts: false,\n showOverrides: false,\n activePromptId: '',\n api: null,\n screens: [],\n screenKeywords: null,\n idCounter: 0,\n updateCounter: 0,\n recent: [],\n }\n },\n computed: {\n // This is the list of files shown in the select dropdown\n fileList: function () {\n // this.files is the list of all files seen while running\n const filenames = Object.keys(this.files)\n filenames.push(this.fullFilename) // Make sure the currently shown filename is last\n return [...new Set(filenames)] // ensure unique\n },\n environmentIcon: function () {\n return this.scriptEnvironment.env.length > 0\n ? 'mdi-bookmark'\n : 'mdi-bookmark-outline'\n },\n environmentIconColor: function () {\n return this.scriptEnvironment.env.length > 0 ? 'primary' : ''\n },\n readOnly: function () {\n return !!this.lockedBy\n },\n // Returns the currently shown filename\n fullFilename: function () {\n if (this.currentFilename) return this.currentFilename\n // New filenames should not indicate modified\n if (this.filename === NEW_FILENAME) return NEW_FILENAME\n return `${this.filename} ${this.fileModified}`.trim()\n },\n // It's annoying for people (and tests) to clear the <Untitled>\n // when saving a new file so replace with blank\n // This makes sure that string doesn't show up in the dialog\n filenameOrBlank: function () {\n return this.filename === NEW_FILENAME ? '' : this.filename\n },\n menus: function () {\n return [\n {\n label: 'File',\n items: [\n {\n label: 'New File',\n icon: 'mdi-file-plus',\n disabled: this.scriptId,\n command: () => {\n this.newFile()\n },\n },\n {\n label: 'New Test Suite',\n icon: 'mdi-file-plus',\n disabled: this.scriptId,\n subMenu: [\n {\n label: 'Ruby',\n icon: 'mdi-language-ruby',\n command: () => {\n this.newRubyTestSuite()\n },\n },\n {\n label: 'Python',\n icon: 'mdi-language-python',\n command: () => {\n this.newPythonTestSuite()\n },\n },\n ],\n },\n {\n label: 'Open File',\n icon: 'mdi-folder-open',\n disabled: this.scriptId,\n command: () => {\n this.openFile()\n },\n },\n {\n label: 'Open Recent',\n icon: 'mdi-folder-open',\n disabled: this.scriptId,\n subMenu: this.recent,\n },\n {\n divider: true,\n },\n {\n label: 'Save File',\n icon: 'mdi-content-save',\n disabled: this.scriptId,\n command: () => {\n this.saveFile()\n },\n },\n {\n label: 'Save As...',\n icon: 'mdi-content-save',\n disabled: this.scriptId,\n command: () => {\n this.saveAs()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Download',\n icon: 'mdi-cloud-download',\n disabled: this.scriptId,\n command: () => {\n this.download()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Delete File',\n icon: 'mdi-delete',\n disabled: this.scriptId,\n command: () => {\n this.delete()\n },\n },\n ],\n },\n {\n label: 'Edit',\n items: [\n {\n label: 'Find',\n icon: 'mdi-magnify',\n command: () => {\n this.editor.execCommand('find')\n },\n },\n {\n label: 'Replace',\n icon: 'mdi-find-replace',\n disabled: this.scriptId,\n command: () => {\n this.editor.execCommand('replace')\n },\n },\n ],\n },\n {\n label: 'Script',\n items: [\n {\n label: 'Execution Status',\n icon: 'mdi-run',\n command: () => {\n this.showScripts = true\n },\n },\n {\n divider: true,\n },\n {\n label: 'Global Environment',\n icon: 'mdi-library',\n disabled: this.scriptId,\n command: () => {\n this.showEnvironment = !this.showEnvironment\n },\n },\n {\n label: 'Metadata',\n icon: 'mdi-calendar',\n disabled: this.scriptId,\n command: () => {\n this.inputMetadata.callback = () => {}\n this.showMetadata()\n },\n },\n {\n label: 'Overrides',\n icon: 'mdi-swap-horizontal',\n command: () => {\n this.showOverrides = true\n },\n },\n {\n divider: true,\n },\n {\n label: 'Syntax Check',\n icon: 'mdi-file-check',\n disabled: this.scriptId,\n command: () => {\n this.syntaxCheck()\n },\n },\n {\n label: 'Mnemonic Check',\n icon: 'mdi-spellcheck',\n disabled: this.scriptId,\n command: () => {\n this.checkMnemonics()\n },\n },\n {\n label: 'Instrumented Script',\n icon: 'mdi-code-braces-box',\n disabled: this.scriptId,\n command: () => {\n this.showInstrumented()\n },\n },\n {\n label: 'Call Stack',\n icon: 'mdi-format-list-numbered',\n disabled: !this.scriptId,\n command: () => {\n this.showCallStack()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Toggle Debug',\n icon: 'mdi-bug',\n command: () => {\n this.toggleDebug()\n },\n },\n {\n label: 'Toggle Disconnect',\n icon: 'mdi-connection',\n disabled: this.scriptId,\n command: () => {\n this.toggleDisconnect()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Delete All Breakpoints',\n icon: 'mdi-delete-circle-outline',\n disabled: this.scriptId,\n command: () => {\n this.deleteAllBreakpoints()\n },\n },\n ],\n },\n ]\n },\n executeSelectionMenuItems: function () {\n return [\n {\n label: 'Execute selection',\n command: this.executeSelection,\n },\n {\n label: 'Run from here',\n command: this.runFromCursor,\n },\n {\n label: 'Clear local breakpoints',\n command: this.clearBreakpoints,\n },\n ]\n },\n },\n watch: {\n readOnly: function (val) {\n this.showReadOnlyToast = val\n if (!this.suiteRunner) {\n this.startOrGoDisabled = val\n }\n this.editor.setReadOnly(val)\n },\n fullFilename: function (filename) {\n this.filenameSelect = filename\n if (filename === NEW_FILENAME) {\n localStorage.removeItem('script_runner__filename')\n } else {\n localStorage['script_runner__filename'] = filename\n }\n },\n },\n created: function () {\n // Ensure Offline Access Is Setup For the Current User\n this.api = new OpenC3Api()\n this.api.ensure_offline_access()\n\n // Make NEW_FILENAME available to the template\n this.NEW_FILENAME = NEW_FILENAME\n window.onbeforeunload = this.unlockFile\n\n Api.get('/openc3-api/autocomplete/keywords/screen').then((response) => {\n this.screenKeywords = response.data\n })\n },\n mounted: async function () {\n this.editor = ace.edit(this.$refs.editor)\n this.editor.setTheme('ace/theme/twilight')\n // Public apis in api_shared but not in OpenC3Api\n const api_shared = [\n 'check',\n 'check_raw',\n 'check_formatted',\n 'check_with_units',\n 'check_exception',\n 'check_tolerance',\n 'check_expression',\n 'wait',\n 'wait_tolerance',\n 'wait_expression',\n 'wait_check',\n 'wait_check_tolerance',\n 'wait_check_expression',\n 'wait_packet',\n 'wait_check_packet',\n 'disable_instrumentation',\n 'set_line_delay',\n 'get_line_delay',\n 'set_max_output',\n 'get_max_output',\n ]\n const openC3RubyMode = this.buildOpenC3RubyMode(api_shared)\n const openC3PythonMode = this.buildOpenC3PythonMode(api_shared)\n this.openC3RubyMode = new openC3RubyMode()\n this.openC3PythonMode = new openC3PythonMode()\n this.editor.session.setMode(this.openC3RubyMode)\n this.editor.session.setTabSize(2)\n this.editor.session.setUseWrapMode(true)\n this.editor.$blockScrolling = Infinity\n this.editor.setOption('enableBasicAutocompletion', true)\n this.editor.setOption('enableLiveAutocompletion', true)\n this.editor.completers = [new CmdCompleter(), new TlmCompleter()]\n this.editor.setHighlightActiveLine(false)\n this.editor.focus()\n this.editor.on('guttermousedown', this.toggleBreakpoint)\n // We listen to tokenizerUpdate rather than change because this\n // is the background process that updates as changes are processed\n // while change fires immediately before the UndoManager is updated.\n this.editor.session.on('tokenizerUpdate', this.onChange)\n\n const sleepAnnotator = new SleepAnnotator(this.editor)\n this.editor.session.on('change', ($event, session) => {\n sleepAnnotator.annotate($event, session)\n this.updateBreakpoints($event, session)\n })\n\n window.addEventListener('keydown', this.keydown)\n this.cable = new Cable('/script-api/cable')\n\n if (localStorage['script_runner__recent']) {\n this.recent = JSON.parse(localStorage['script_runner__recent'])\n // Rebuild the command since that doesn't get stringified\n this.recent = this.recent.map((item) => ({\n ...item,\n command: async (event) => {\n this.filename = event.label\n await this.reloadFile()\n },\n }))\n }\n if (this.$route.query?.file) {\n this.filename = this.$route.query.file\n await this.reloadFile()\n } else if (this.$route.params?.id) {\n await this.tryLoadRunningScript(this.$route.params.id)\n } else {\n if (localStorage['script_runner__filename']) {\n this.filename = localStorage['script_runner__filename']\n await this.reloadFile(false)\n }\n }\n // TODO: Potentially still bad interactions with autoSave\n // see https://github.com/OpenC3/cosmos/issues/915\n // this.autoSaveInterval = setInterval(async () => {\n // // Only save if not-running, modified, and visible (e.g. not open in another tab)\n // if (\n // !this.scriptId &&\n // this.fileModified.length > 0 &&\n // document.visibilityState === 'visible'\n // ) {\n // await this.saveFile('auto')\n // }\n // }, 60000) // Save every minute\n\n this.updateInterval = setInterval(async () => {\n this.processReceived()\n }, 100) // Every 100ms\n },\n beforeDestroy() {\n this.editor.destroy()\n this.editor.container.remove()\n },\n destroyed() {\n this.unlockFile()\n if (this.updateInterval != null) {\n clearInterval(this.updateInterval)\n }\n if (this.subscription) {\n this.subscription.unsubscribe()\n this.subscription = null\n }\n this.cable.disconnect()\n },\n beforeRouteUpdate: function (to, from, next) {\n if (to.params.id) {\n this.tryLoadRunningScript(to.params.id).then(next)\n } else {\n next()\n }\n },\n methods: {\n scriptDisconnect() {\n if (this.subscription) {\n this.subscription.unsubscribe()\n this.subscription = null\n }\n this.receivedEvents.length = 0 // Clear any unprocessed events\n },\n showMetadata() {\n Api.get('/openc3-api/metadata').then((response) => {\n // TODO: This is how Calendar creates new metadata items via makeMetadataEvent\n this.inputMetadata.events = response.data.map((event) => {\n return {\n name: 'Metadata',\n start: new Date(event.start * 1000),\n end: new Date(event.start * 1000),\n color: event.color,\n type: event.type,\n timed: true,\n metadata: event,\n }\n })\n this.inputMetadata.show = true\n })\n },\n buildOpenC3RubyMode(api_shared) {\n var oop = ace.require('ace/lib/oop')\n var RubyHighlightRules = ace.require(\n 'ace/mode/ruby_highlight_rules',\n ).RubyHighlightRules\n\n let apis = Object.getOwnPropertyNames(OpenC3Api.prototype)\n .filter((a) => a !== 'constructor')\n .filter((a) => a !== 'exec')\n .concat(api_shared)\n let regex = new RegExp(`(\\\\b${apis.join('\\\\b|\\\\b')}\\\\b)`)\n var OpenC3HighlightRules = function () {\n RubyHighlightRules.call(this)\n // add openc3 rules to the ruby rules\n for (var rule in this.$rules) {\n this.$rules[rule].unshift({\n regex: regex,\n token: 'support.function',\n })\n }\n }\n oop.inherits(OpenC3HighlightRules, RubyHighlightRules)\n\n var MatchingBraceOutdent = ace.require(\n 'ace/mode/matching_brace_outdent',\n ).MatchingBraceOutdent\n var CstyleBehaviour = ace.require(\n 'ace/mode/behaviour/cstyle',\n ).CstyleBehaviour\n var FoldMode = ace.require('ace/mode/folding/ruby').FoldMode\n var Mode = function () {\n this.HighlightRules = OpenC3HighlightRules\n this.$outdent = new MatchingBraceOutdent()\n this.$behaviour = new CstyleBehaviour()\n this.foldingRules = new FoldMode()\n this.indentKeywords = this.foldingRules.indentKeywords\n }\n var RubyMode = ace.require('ace/mode/ruby').Mode\n oop.inherits(Mode, RubyMode)\n ;(function () {\n this.$id = 'ace/mode/openc3'\n }).call(Mode.prototype)\n return Mode\n },\n buildOpenC3PythonMode(api_shared) {\n var oop = ace.require('ace/lib/oop')\n var PythonHighlightRules = ace.require(\n 'ace/mode/python_highlight_rules',\n ).PythonHighlightRules\n\n let apis = Object.getOwnPropertyNames(OpenC3Api.prototype)\n .filter((a) => a !== 'constructor')\n .filter((a) => a !== 'exec')\n .concat(api_shared)\n let regex = new RegExp(`(\\\\b${apis.join('\\\\b|\\\\b')}\\\\b)`)\n var OpenC3HighlightRules = function () {\n PythonHighlightRules.call(this)\n // add openc3 rules to the python rules\n for (var rule in this.$rules) {\n this.$rules[rule].unshift({\n regex: regex,\n token: 'support.function',\n })\n }\n }\n oop.inherits(OpenC3HighlightRules, PythonHighlightRules)\n\n var MatchingBraceOutdent = ace.require(\n 'ace/mode/matching_brace_outdent',\n ).MatchingBraceOutdent\n var CstyleBehaviour = ace.require(\n 'ace/mode/behaviour/cstyle',\n ).CstyleBehaviour\n var FoldMode = ace.require('ace/mode/folding/pythonic').FoldMode\n var Mode = function () {\n this.HighlightRules = OpenC3HighlightRules\n this.$outdent = new MatchingBraceOutdent()\n this.$behaviour = new CstyleBehaviour()\n this.foldingRules = new FoldMode()\n this.indentKeywords = this.foldingRules.indentKeywords\n }\n var PythonMode = ace.require('ace/mode/python').Mode\n oop.inherits(Mode, PythonMode)\n ;(function () {\n this.$id = 'ace/mode/openc3'\n }).call(Mode.prototype)\n return Mode\n },\n messageSortOrder(order) {\n // See ScriptLogMessages for these strings\n if (order === 'Newest on Top' && this.messagesNewestOnTop === false) {\n this.messagesNewestOnTop = true\n this.messages.reverse()\n } else if (\n order === 'Newest on Bottom' &&\n this.messagesNewestOnTop === true\n ) {\n this.messagesNewestOnTop = false\n this.messages.reverse()\n }\n },\n // This only gets called when the user changes the filename dropdown\n // Or when a user hits Go\n fileNameChanged(filename) {\n // Split off the '*' which indicates modified\n filename = filename.split('*')[0]\n this.editor.setValue(this.files[filename].content)\n this.restoreBreakpoints(filename)\n this.editor.clearSelection()\n this.removeAllMarkers()\n this.editor.session.addMarker(\n new this.Range(\n this.files[filename].lineNo - 1,\n 0,\n this.files[filename].lineNo - 1,\n 1,\n ),\n `${this.state}Marker`,\n 'fullLine',\n )\n this.editor.gotoLine(this.files[filename].lineNo)\n },\n tryLoadRunningScript: function (id) {\n return Api.get('/script-api/running-script').then((response) => {\n const loadRunningScript = response.data.find(\n (s) => `${s.id}` === `${id}`,\n )\n if (loadRunningScript) {\n this.filename = loadRunningScript.name\n this.tryLoadSuites()\n this.initScriptStart()\n this.scriptStart(loadRunningScript.id)\n } else {\n this.$notify.caution({\n title: `Running Script ${id} not found`,\n body: 'Check the Completed Scripts below ...',\n })\n this.showScripts = true\n }\n })\n },\n tryLoadSuites: function () {\n Api.get(`/script-api/scripts/${this.filename}`).then((response) => {\n if (response.data.suites) {\n this.startOrGoDisabled = true\n this.suiteRunner = true\n this.suiteMap = JSON.parse(response.data.suites)\n }\n if (response.data.error) {\n this.suiteError = response.data.error\n this.showSuiteError = true\n }\n // Disable suite buttons if we didn't successfully parse the suite\n this.disableSuiteButtons = response.data.success == false\n })\n },\n showExecuteSelectionMenu: function ($event) {\n this.menuX = $event.pageX\n this.menuY = $event.pageY\n this.executeSelectionMenu = true\n },\n runFromCursor: function () {\n const start = this.editor.getCursorPosition().row\n const text = this.editor.session.doc\n .getLines(start, this.editor.session.doc.getLength())\n .join('\\n')\n const breakpoints = this.getBreakpointRows()\n .filter((row) => row >= start)\n .map((row) => row - start)\n this.executeText(text, breakpoints)\n },\n executeSelection: function () {\n const text = this.editor.getSelectedText()\n const range = this.editor.getSelectionRange()\n const breakpoints = this.getBreakpointRows()\n .filter((row) => row <= range.end.row && row >= range.start.row)\n .map((row) => row - range.start.row)\n this.executeText(text, breakpoints)\n },\n async executeText(text, breakpoints = []) {\n let extension = this.fullFilename.split('.').pop()\n // Create a new temp script and open in new tab\n const selectionTempFilename =\n TEMP_FOLDER +\n '/' +\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss_SSS') +\n `_temp.${extension}`\n await Api.post(`/script-api/scripts/${selectionTempFilename}`, {\n data: {\n text,\n breakpoints,\n },\n })\n .then((response) => {\n return Api.post(`/script-api/scripts/${selectionTempFilename}/run`, {\n data: {\n environment: this.scriptEnvironment.env,\n },\n })\n })\n .then((response) => {\n window.open(`/tools/scriptrunner/${response.data}`)\n })\n },\n clearBreakpoints: function () {\n this.editor.session.clearBreakpoints()\n },\n toggleBreakpoint: function ($event) {\n // Don't allow setting breakpoints while running\n if (!this.scriptId) {\n const row = $event.getDocumentPosition().row\n if ($event.editor.session.getBreakpoints(row, 0)[row]) {\n $event.editor.session.clearBreakpoint(row)\n } else {\n $event.editor.session.setBreakpoint(row)\n }\n }\n },\n updateBreakpoints: function ($event, session) {\n if ($event.lines.length <= 1) {\n return\n }\n const rowsToUpdate = this.getBreakpointRows(session).filter(\n (row) =>\n ($event.start.column === 0 && row === $event.start.row) ||\n row > $event.start.row,\n )\n let rowsToDelete = []\n let offset = 0\n switch ($event.action) {\n case 'insert':\n offset = $event.lines.length - 1\n rowsToUpdate.reverse() // shift the lower ones down out of the way first\n break\n case 'remove':\n offset = -$event.lines.length + 1\n rowsToDelete = [...Array($event.lines.length).keys()].map(\n (row) => row + $event.start.row,\n )\n break\n }\n rowsToUpdate.forEach((row) => {\n session.clearBreakpoint(row)\n if (!rowsToDelete.includes(row)) {\n session.setBreakpoint(row + offset)\n }\n })\n },\n getBreakpointRows: function (session = this.editor.session) {\n return session\n .getBreakpoints()\n .map((breakpoint, row) => breakpoint && row) // [empty, 'ace_breakpoint', 'ace_breakpoint', empty] -> [empty, 1, 2, empty]\n .filter(Number.isInteger) // [empty, 1, 2, empty] -> [1, 2]\n },\n restoreBreakpoints: function (filename) {\n this.clearBreakpoints()\n this.breakpoints[filename]?.forEach((breakpoint) => {\n this.editor.session.setBreakpoint(breakpoint)\n })\n },\n deleteAllBreakpoints: function () {\n this.$dialog\n .confirm('Permanently delete all breakpoints for ALL scripts?', {\n okText: 'Delete',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n return Api.delete('/script-api/breakpoints/delete/all')\n })\n .then((response) => {\n this.clearBreakpoints()\n })\n },\n suiteRunnerButton(event) {\n if (this.startOrGoButton === START) {\n this.start(event, 'suiteRunner')\n } else {\n this.go(event, 'suiteRunner')\n }\n },\n async keydown(event) {\n // Don't ever save if running or readonly\n if (this.scriptId || this.editor.getReadOnly() === true) {\n return\n }\n // NOTE: Chrome does not allow overriding Ctrl-N, Ctrl-Shift-N, Ctrl-T, Ctrl-Shift-T, Ctrl-W\n // NOTE: metaKey == Command on Mac\n if (\n (event.metaKey || event.ctrlKey) &&\n event.keyCode === 'S'.charCodeAt(0)\n ) {\n if (event.shiftKey) {\n event.preventDefault()\n this.saveAs()\n } else {\n event.preventDefault()\n await this.saveFile()\n }\n }\n },\n onChange(event) {\n // Don't track changes when we're running or read-only (locked)\n if (this.scriptId || this.editor.getReadOnly() === true) {\n return\n }\n if (this.editor.session.getUndoManager().canUndo()) {\n this.fileModified = '*'\n } else {\n this.fileModified = ''\n }\n },\n checkMnemonics: function () {\n this.mnemonicChecker\n .checkText(this.editor.getValue())\n .then(({ skipped, problems }) => {\n let alertText = ''\n if (problems.length) {\n const problemText = problems\n .map((problem) => `${problem.lineNumber}: ${problem.error}`)\n .join('<br/>')\n alertText += `<strong>The following lines have problems:</strong><br/>${problemText}<br/><br/>`\n }\n if (skipped.length) {\n alertText +=\n '<strong>Mnemonics with string interpolation were not checked.</strong>'\n }\n if (alertText === '') {\n alertText = '<strong>Everything looks good!</strong>'\n }\n this.$dialog.alert(alertText.trim(), { html: true })\n })\n },\n initScriptStart() {\n this.disableSuiteButtons = true\n this.startOrGoDisabled = true\n this.envDisabled = true\n this.pauseOrRetryDisabled = true\n this.stopDisabled = true\n this.state = 'Connecting...'\n this.startOrGoButton = GO\n this.editor.setReadOnly(true)\n },\n scriptStart(id) {\n this.scriptId = id\n this.cable\n .createSubscription(\n 'RunningScriptChannel',\n window.openc3Scope,\n {\n received: (data) => this.received(data),\n },\n {\n id: this.scriptId,\n },\n )\n .then((subscription) => {\n this.subscription = subscription\n })\n },\n async scriptComplete() {\n // Ensure stopped, if the script has an error we don't get the server stopped message\n this.state = 'stopped'\n this.fatal = false\n this.scriptId = null // No current scriptId\n this.currentFilename = null // No current file running\n this.files = {} // Clear the file cache\n // Make sure we process no more events\n if (this.subscription) {\n await this.subscription.unsubscribe()\n this.subscription = null\n }\n this.receivedEvents.length = 0 // Clear any unprocessed events\n\n await this.reloadFile() // Make sure the right file is shown\n // We may have changed the contents (if there were sub-scripts)\n // so don't let the undo manager think this is a change\n this.editor.session.getUndoManager().reset()\n this.editor.setReadOnly(false)\n\n // Lastly enable the buttons so another script can start\n this.disableSuiteButtons = false\n this.startOrGoButton = START\n this.pauseOrRetryButton = PAUSE\n // Disable start if suiteRunner\n this.startOrGoDisabled = this.suiteRunner\n this.envDisabled = false\n this.pauseOrRetryDisabled = true\n this.stopDisabled = true\n },\n environmentHandler: function (event) {\n this.scriptEnvironment.env = event\n },\n startHandler: function () {\n this.start()\n },\n async start(event, suiteRunner = null) {\n // Initialize variables and disable buttons before actually posting.\n // This prevents delays in the backend from delaying frontend changes\n // like disabling start which could allow users to click start twice.\n this.initScriptStart()\n await this.saveFile('start')\n this.saveAllowed = false\n let filename = this.filename\n if (this.filename === NEW_FILENAME) {\n // NEW_FILENAME so use tempFilename created by saveFile()\n filename = this.tempFilename\n }\n let url = `/script-api/scripts/${filename}/run`\n if (this.showDisconnect) {\n url += '/disconnect'\n }\n let data = {\n environment: this.scriptEnvironment.env,\n }\n if (suiteRunner) {\n data['suiteRunner'] = event\n }\n Api.post(url, { data })\n .then((response) => {\n this.scriptStart(response.data)\n })\n .catch((error) => {\n this.scriptComplete()\n })\n },\n go() {\n // Ensure we're on the correct filename when we hit go\n // They may have changed it using the drop down\n this.filenameSelect = this.currentFilename\n this.fileNameChanged(this.currentFilename)\n Api.post(`/script-api/running-script/${this.scriptId}/go`)\n },\n pauseOrRetry() {\n if (this.pauseOrRetryButton === PAUSE) {\n Api.post(`/script-api/running-script/${this.scriptId}/pause`)\n } else {\n this.pauseOrRetryButton = PAUSE\n Api.post(`/script-api/running-script/${this.scriptId}/retry`)\n }\n },\n stop() {\n // We previously encountered a fatal error so remove the marker\n // and cleanup by calling scriptComplete() because the script\n // is already stopped in the backend\n if (this.fatal) {\n this.removeAllMarkers()\n this.scriptComplete()\n } else {\n Api.post(`/script-api/running-script/${this.scriptId}/stop`)\n }\n },\n step() {\n Api.post(`/script-api/running-script/${this.scriptId}/step`)\n },\n processLine(data) {\n if (data.filename && data.filename !== this.currentFilename) {\n if (!this.files[data.filename]) {\n // We don't have the contents of the running file (probably because connected to running script)\n // Set the contents initially to an empty string so we don't start slamming the API\n this.files[data.filename] = { content: '', lineNo: 0 }\n\n // Request the script we need\n Api.get(`/script-api/scripts/${data.filename}`)\n .then((response) => {\n // Success - Save the script text and mark the currentFilename as null\n // so it will get loaded in on the next line executed\n this.files[data.filename] = {\n content: response.data.contents,\n lineNo: 0,\n }\n this.breakpoints[data.filename] = response.data.breakpoints\n this.restoreBreakpoints(data.filename)\n this.currentFilename = null\n })\n .catch((err) => {\n // Error - Restore the file contents to null so we'll try the API again on the next line\n this.files[data.filename] = null\n })\n } else {\n this.currentFilename = data.filename\n this.editor.setValue(this.files[data.filename].content)\n this.restoreBreakpoints(data.filename)\n this.editor.clearSelection()\n }\n }\n this.state = data.state\n const markers = this.editor.session.getMarkers()\n switch (this.state) {\n case 'running':\n this.startOrGoDisabled = false\n this.pauseOrRetryDisabled = false\n this.stopDisabled = false\n this.pauseOrRetryButton = PAUSE\n\n this.removeAllMarkers()\n this.editor.session.addMarker(\n new this.Range(data.line_no - 1, 0, data.line_no - 1, 1),\n 'runningMarker',\n 'fullLine',\n )\n this.editor.gotoLine(data.line_no)\n this.files[data.filename].lineNo = data.line_no\n break\n case 'fatal':\n this.fatal = true\n // Deliberate fall through (no break)\n case 'error':\n this.pauseOrRetryButton = RETRY\n // Deliberate fall through (no break)\n case 'breakpoint':\n case 'waiting':\n case 'paused':\n if (this.state == 'fatal') {\n this.startOrGoDisabled = true\n this.pauseOrRetryDisabled = true\n } else {\n this.startOrGoDisabled = false\n this.pauseOrRetryDisabled = false\n }\n this.stopDisabled = false\n let existing = Object.keys(markers).filter(\n (key) => markers[key].clazz === `${this.state}Marker`,\n )\n if (existing.length === 0) {\n this.removeAllMarkers()\n let line = data.line_no > 0 ? data.line_no : 1\n this.editor.session.addMarker(\n new this.Range(line - 1, 0, line - 1, 1),\n `${this.state}Marker`,\n 'fullLine',\n )\n this.editor.gotoLine(line)\n // Fatal errors don't always have a filename set\n if (data.filename) {\n this.files[data.filename].lineNo = line\n }\n }\n break\n default:\n break\n }\n },\n processReceived() {\n let count = 0\n for (let data of this.receivedEvents) {\n count += 1\n // eslint-disable-next-line\n // console.log(data) // Uncomment for debugging\n let index = 0\n switch (data.type) {\n case 'file':\n this.files[data.filename] = { content: data.text, lineNo: 0 }\n this.breakpoints[data.filename] = data.breakpoints\n if (this.currentFilename === data.filename) {\n this.restoreBreakpoints(data.filename)\n }\n break\n case 'line':\n // A further optimization would be to only process the last line of a batch\n // However with some testing this did not seem to make much difference\n // and was preventing the highlighting of the final line of a script because\n // the last line of the final batch was line_number 0 with state stopped\n // and that would never highlight the actual final line\n this.processLine(data)\n break\n case 'output':\n // data.line can consist of multiple lines split by newlines\n // thus we split and only output if the content is not empty\n for (const line of data.line.split('\\n')) {\n if (line) {\n if (this.messagesNewestOnTop) {\n this.messages.unshift({ message: line })\n } else {\n this.messages.push({ message: line })\n }\n }\n }\n while (this.messages.length > this.maxArrayLength) {\n this.messages.pop()\n }\n break\n case 'script':\n this.handleScript(data)\n break\n case 'report':\n this.results.text = data.report\n this.results.show = true\n break\n case 'complete':\n // Don't complete on fatal because we just sit there on the fatal line\n if (!this.fatal) {\n this.removeAllMarkers()\n this.scriptComplete()\n }\n break\n case 'step':\n this.showDebug = true\n break\n case 'screen':\n let found = false\n let definition = {}\n for (screen of this.screens) {\n if (\n screen.target == data.target_name &&\n screen.screen == data.screen_name\n ) {\n definition = screen\n found = true\n break\n }\n index += 1\n }\n this.$set(definition, 'target', data.target_name)\n this.$set(definition, 'screen', data.screen_name)\n this.$set(definition, 'definition', data.definition)\n if (data.x) {\n this.$set(definition, 'left', data.x)\n } else {\n this.$set(definition, 'left', 0)\n }\n if (data.y) {\n this.$set(definition, 'top', data.y)\n } else {\n this.$set(definition, 'top', 0)\n }\n this.$set(definition, 'count', this.updateCounter++)\n if (!found) {\n this.$set(definition, 'id', this.idCounter++)\n this.$set(this.screens, this.screens.length, definition)\n } else {\n this.$set(this.screens, index, definition)\n }\n break\n case 'clearscreen':\n for (screen of this.screens) {\n if (\n screen.target == data.target_name &&\n screen.screen == data.screen_name\n ) {\n this.screens.splice(index, 1)\n break\n }\n index += 1\n }\n break\n case 'clearallscreens':\n this.screens = []\n break\n case 'downloadfile':\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = window.location.origin + data.url\n link.setAttribute('download', data.filename)\n link.click()\n break\n default:\n // console.log('Unexpected ActionCable message')\n // console.log(data)\n break\n }\n }\n\n // Remove all the events we processed\n this.receivedEvents.splice(0, count)\n },\n received(data) {\n this.cable.recordPing()\n this.receivedEvents.push(data)\n },\n promptDialogCallback(value) {\n this.prompt.show = false\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: this.prompt.method,\n answer: value,\n prompt_id: this.activePromptId,\n multiple: this.prompt.multiple,\n },\n })\n },\n handleScript(data) {\n if (data.prompt_complete) {\n this.activePromptId = ''\n this.prompt.show = false\n this.ask.show = false\n return\n }\n this.activePromptId = data.prompt_id\n this.prompt.method = data.method // Set it here since all prompts use this\n this.prompt.layout = 'horizontal' // Reset the layout since most are horizontal\n this.prompt.title = 'Prompt'\n this.prompt.subtitle = ''\n this.prompt.details = ''\n this.prompt.buttons = []\n this.prompt.multiple = null\n switch (data.method) {\n case 'ask':\n case 'ask_string':\n // Reset values since this dialog can be re-used\n this.ask.default = null\n this.ask.answerRequired = true\n this.ask.password = false\n this.ask.question = data.args[0]\n // If the second parameter is not true or false it indicates a default value\n if (data.args[1] && data.args[1] !== true && data.args[1] !== false) {\n this.ask.default = data.args[1].toString()\n } else if (data.args[1] === true) {\n // If the second parameter is true it means no value is required to be entered\n this.ask.answerRequired = false\n }\n // The third parameter indicates a password textfield\n if (data.args[2] === true) {\n this.ask.password = true\n }\n this.ask.callback = (value) => {\n this.ask.show = false // Close the dialog\n if (this.ask.password) {\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: data.method,\n password: value, // Using password as a key automatically filters it from rails logs\n prompt_id: this.activePromptId,\n },\n })\n } else {\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: data.method,\n answer: value,\n prompt_id: this.activePromptId,\n },\n })\n }\n }\n this.ask.show = true // Display the dialog\n break\n case 'prompt_for_hazardous':\n this.prompt.title = 'Hazardous Command'\n this.prompt.message = `Warning: Command ${data.args[0]} ${data.args[1]} is Hazardous. `\n if (data.args[2]) {\n this.prompt.message += data.args[2] + ' '\n }\n this.prompt.message += 'Send?'\n this.prompt.buttons = [{ text: 'Send', value: 'Send' }]\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'prompt':\n if (data.kwargs && data.kwargs.informative) {\n this.prompt.subtitle = data.kwargs.informative\n }\n if (data.kwargs && data.kwargs.details) {\n this.prompt.details = data.kwargs.details\n }\n this.prompt.message = data.args[0]\n this.prompt.buttons = [{ text: 'Ok', value: 'Ok' }]\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'combo_box':\n if (data.kwargs && data.kwargs.informative) {\n this.prompt.subtitle = data.kwargs.informative\n }\n if (data.kwargs && data.kwargs.details) {\n this.prompt.details = data.kwargs.details\n }\n if (data.kwargs && data.kwargs.multiple) {\n this.prompt.multiple = true\n }\n this.prompt.message = data.args[0]\n data.args.slice(1).forEach((v) => {\n this.prompt.buttons.push({ text: v, value: v })\n })\n this.prompt.layout = 'combo'\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'message_box':\n case 'vertical_message_box':\n if (data.kwargs && data.kwargs.informative) {\n this.prompt.subtitle = data.kwargs.informative\n }\n if (data.kwargs && data.kwargs.details) {\n this.prompt.details = data.kwargs.details\n }\n this.prompt.message = data.args[0]\n data.args.slice(1).forEach((v) => {\n this.prompt.buttons.push({ text: v, value: v })\n })\n if (data.method.includes('vertical')) {\n this.prompt.layout = 'vertical'\n }\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'backtrace':\n this.information.title = 'Call Stack'\n this.information.text = data.args\n this.information.show = true\n break\n case 'metadata_input':\n this.inputMetadata.callback = (value) => {\n this.inputMetadata.show = false\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: data.method,\n answer: value,\n prompt_id: this.activePromptId,\n },\n })\n }\n this.showMetadata()\n break\n case 'open_file_dialog':\n case 'open_files_dialog':\n this.file.title = data.args[0]\n this.file.message = data.args[1]\n if (data.kwargs && data.kwargs.filter) {\n this.file.filter = data.kwargs.filter\n }\n if (data.method == 'open_files_dialog') {\n this.file.multiple = true\n }\n this.file.show = true\n break\n default:\n /* console.log(\n 'Unknown script method:' + data.method + ' with args:' + data.args\n ) */\n break\n }\n },\n async fileDialogCallback(files) {\n this.file.show = false // Close the dialog\n // Set fileNames to 'Cancel' in case they cancelled\n // otherwise we will populate it with the file names they selected\n let fileNames = 'Cancel'\n if (files != 'Cancel') {\n fileNames = []\n await files.forEach(async (file) => {\n fileNames.push(file.name)\n // Reassign data to presignedRequest for readability\n const { data: presignedRequest } = await Api.get(\n `/openc3-api/storage/upload/${encodeURIComponent(\n `${window.openc3Scope}/tmp/${file.name}`,\n )}?bucket=OPENC3_CONFIG_BUCKET`,\n )\n // This pushes the file into storage by using the fields in the presignedRequest\n // See storage_controller.rb get_presigned_request()\n const response = await axios({\n ...presignedRequest,\n data: file,\n })\n })\n }\n await Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: this.file.multiple ? 'open_files_dialog' : 'open_file_dialog',\n answer: fileNames,\n prompt_id: this.activePromptId,\n },\n })\n },\n setError(event) {\n this.alertType = 'error'\n this.alertText = `Error: ${event}`\n this.showAlert = true\n },\n // ScriptRunner File menu actions\n newFile() {\n this.unlockFile()\n this.filename = NEW_FILENAME\n this.currentFilename = null\n this.tempFilename = null\n this.files = {} // Clear the cached file list\n this.editor.session.setValue('')\n this.saveAllowed = true\n this.fileModified = ''\n this.suiteRunner = false\n this.startOrGoDisabled = false\n this.envDisabled = false\n this.$router\n .replace({\n name: 'ScriptRunner',\n })\n // catch the error in case we route to where we already are\n .catch((err) => {})\n document.title = 'Script Runner'\n },\n async newRubyTestSuite() {\n this.newFile()\n this.editor.session.setValue(`require 'openc3/script/suite.rb'\n\n# Group class name should indicate what the scripts are testing\nclass Power < OpenC3::Group\n # Methods beginning with script_ are added to Script dropdown\n def script_power_on\n # Using OpenC3::Group.puts adds the output to the Test Report\n # This can be useful for requirements verification, QA notes, etc\n OpenC3::Group.puts \"Verifying requirement SR-1\"\n configure()\n end\n\n # Other methods are not added to Script dropdown\n def configure\n end\n\n def setup\n # Run when Group Setup button is pressed\n # Run before all scripts when Group Start is pressed\n end\n\n def teardown\n # Run when Group Teardown button is pressed\n # Run after all scripts when Group Start is pressed\n end\nend\n\nclass TestSuite < OpenC3::Suite\n def initialize\n add_group('Power')\n end\n def setup\n # Run when Suite Setup button is pressed\n # Run before all groups when Suite Start is pressed\n end\n def teardown\n # Run when Suite Teardown button is pressed\n # Run after all groups when Suite Start is pressed\n end\nend\n`)\n await this.saveFile('auto')\n },\n async newPythonTestSuite() {\n this.newFile()\n this.editor.session.setValue(`from openc3.script.suite import Suite, Group\n\n# Group class name should indicate what the scripts are testing\nclass Power(Group):\n # Methods beginning with script_ are added to Script dropdown\n def script_power_on(self):\n # Using Group.print adds the output to the Test Report\n # This can be useful for requirements verification, QA notes, etc\n Group.print(\"Verifying requirement SR-1\")\n self.configure()\n\n # Other methods are not added to Script dropdown\n def configure(self):\n pass\n\n def setup(self):\n # Run when Group Setup button is pressed\n # Run before all scripts when Group Start is pressed\n pass\n\n def teardown(self):\n # Run when Group Teardown button is pressed\n # Run after all scripts when Group Start is pressed\n pass\n\nclass TestSuite(Suite):\n def __init__(self):\n self.add_group(Power)\n\n def setup(self):\n # Run when Suite Setup button is pressed\n # Run before all groups when Suite Start is pressed\n pass\n\n def teardown(self):\n # Run when Suite Teardown button is pressed\n # Run after all groups when Suite Start is pressed\n pass\n`)\n await this.saveFile('auto')\n },\n addToRecent(filename) {\n // See if this filename is already in the recent ... if so remove it\n let index = this.recent.findIndex((i) => i.label === filename)\n if (index !== -1) {\n this.recent.splice(index, 1)\n }\n // Push this filename to the front of the recently used\n this.recent.unshift({\n label: filename,\n icon: fileIcon(filename),\n command: async (event) => {\n this.filename = event.label\n await this.reloadFile()\n },\n })\n if (this.recent.length > 8) {\n this.recent.pop()\n }\n // This only stringifies the label and icon ... not the command\n localStorage['script_runner__recent'] = JSON.stringify(this.recent)\n },\n removeFromRecent(filename) {\n this.recent = this.recent.filter((entry) => entry.label !== filename)\n localStorage['script_runner__recent'] = JSON.stringify(this.recent)\n if (localStorage['script_runner__filename'] === filename) {\n localStorage.removeItem('script_runner__filename')\n }\n },\n openFile() {\n this.fileOpen = true\n },\n async reloadFile(showError = true) {\n // Disable start while we're loading the file so we don't hit Start\n // before it's fully loaded and then save over it with a blank file\n this.saveAllowed = false\n this.startOrGoDisabled = true\n await Api.get(`/script-api/scripts/${this.filename}`, {\n headers: {\n Accept: 'application/json',\n 'Ignore-Errors': '404',\n },\n })\n .then((response) => {\n const file = {\n name: this.filename,\n contents: response.data.contents,\n }\n if (response.data.suites) {\n file['suites'] = JSON.parse(response.data.suites)\n }\n if (response.data.error) {\n file['error'] = response.data.error\n }\n if (response.data.success) {\n file['success'] = response.data.success\n }\n const locked = response.data.locked\n const breakpoints = response.data.breakpoints\n this.setFile({ file, locked, breakpoints }, true)\n this.saveAllowed = true\n })\n .catch((error) => {\n if (showError === true) {\n this.$notify.caution({\n title: 'File Open Error',\n body: `Failed to open ${this.filename} due to ${error}`,\n })\n }\n this.removeFromRecent(this.filename)\n this.newFile() // Reset the GUI\n })\n },\n // Called by the FileOpenDialog to set the file contents\n setFile({ file, locked, breakpoints }, local = false) {\n this.files = {} // Clear the cached file list\n // Split off the ' *' which indicates a file is modified on the server\n let newFilename = file.name.split('*')[0]\n if (local === false) {\n // We only need to unlock if the file is different\n if (this.filename !== newFilename) {\n this.unlockFile() // first unlock what was just being edited\n this.lockedBy = locked\n }\n }\n this.filename = newFilename\n // Update the URL with the filename\n this.$router\n .replace({\n name: 'ScriptRunner',\n query: {\n file: this.filename,\n },\n })\n // catch the error in case we route to where we already are\n .catch((err) => {})\n\n // Update the browser tab with the name of the file first\n // so squished tabs are still useful, followed by the rest\n // of the path for context. Target name will be first which\n // is probably the most useful part of the path.\n let parts = this.filename.split('/')\n document.title = `${parts.pop()} (${parts.join('/')})`\n\n if (this.filename.split('.').pop() === 'py') {\n this.editor.session.setMode(this.openC3PythonMode)\n } else {\n this.editor.session.setMode(this.openC3RubyMode)\n }\n this.currentFilename = null\n this.editor.session.setValue(file.contents)\n this.breakpoints[filename] = breakpoints\n this.restoreBreakpoints(filename)\n this.fileModified = ''\n this.envDisabled = false\n this.addToRecent(this.filename)\n\n if (file.suites) {\n this.suiteRunner = true\n this.suiteMap = file.suites\n this.startOrGoDisabled = true\n } else {\n this.suiteRunner = false\n this.startOrGoDisabled = false\n }\n if (file.error) {\n this.suiteError = file.error\n this.showSuiteError = true\n }\n // Disable suite buttons if we didn't successfully parse the suite\n this.disableSuiteButtons = file.success == false\n },\n clearTemp() {\n this.recent = this.recent.filter(\n (entry) => !entry.label.includes('__TEMP__'),\n )\n localStorage['script_runner__recent'] = JSON.stringify(this.recent)\n },\n detectLanguage() {\n let rubyRegex1 = new RegExp('^\\\\s*(require|load|puts) ')\n let pythonRegex1 = new RegExp('^\\\\s*(import|from) ')\n let rubyRegex2 = new RegExp('^\\\\s*end\\\\s*$')\n let pythonRegex2 = new RegExp(\n '^\\\\s*(if|def|while|else|elif|class).*:\\\\s*$',\n )\n let pythonRegex3 = new RegExp('\\\\(f\"') // f strings\n let text = this.editor.getValue()\n let lines = text.split('\\n')\n for (let line of lines) {\n if (line.match(rubyRegex1)) {\n return 'ruby'\n }\n if (line.match(pythonRegex1)) {\n return 'python'\n }\n if (line.match(rubyRegex2)) {\n return 'ruby'\n }\n if (line.match(pythonRegex2)) {\n return 'python'\n }\n if (line.match(pythonRegex3)) {\n return 'python'\n }\n }\n return 'unknown' // otherwise unknown\n },\n // saveFile takes a type to indicate if it was called by the Menu\n // or automatically by 'Start' (to ensure a consistent backend file) or autoSave\n async saveFile(type = 'menu') {\n if (this.saveAllowed) {\n const breakpoints = this.getBreakpointRows()\n if (this.filename === NEW_FILENAME) {\n if (type === 'menu') {\n // Menu driven saves on a new file should prompt SaveAs\n this.saveAs()\n return\n } else {\n // start or auto with NEW_FILENAME\n if (this.tempFilename === null) {\n let language = this.detectLanguage()\n if (\n language === 'ruby' ||\n (type !== 'auto' && language == 'unknown')\n ) {\n this.tempFilename =\n TEMP_FOLDER +\n '/' +\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss_SSS') +\n '_temp.rb'\n } else if (language === 'python') {\n this.tempFilename =\n TEMP_FOLDER +\n '/' +\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss_SSS') +\n '_temp.py'\n } else {\n // No autosave for unknown language\n return\n }\n this.filename = this.tempFilename\n this.addToRecent(this.filename)\n }\n }\n }\n this.showSave = true\n await Api.post(`/script-api/scripts/${this.filename}`, {\n data: {\n text: this.editor.getValue(), // Pass in the raw file text\n breakpoints,\n },\n })\n .then((response) => {\n if (response.status == 200) {\n if (response.data.suites) {\n this.startOrGoDisabled = true\n this.suiteRunner = true\n this.suiteMap = JSON.parse(response.data.suites)\n } else {\n this.startOrGoDisabled = false\n this.suiteRunner = false\n this.suiteMap = {}\n }\n if (response.data.error) {\n this.suiteError = response.data.error\n this.showSuiteError = true\n }\n this.fileModified = ''\n setTimeout(() => {\n this.showSave = false\n }, 2000)\n } else {\n this.showSave = false\n this.alertType = 'error'\n this.alertText = `Error saving file. Code: ${response.status} Text: ${response.statusText}`\n this.showAlert = true\n }\n this.lockFile() // Ensure this file is locked for editing\n })\n .catch(({ response }) => {\n this.showSave = false\n // 422 error means we couldn't parse the script file into Suites\n // response.data.suites holds the parse result\n if (response.status == 422) {\n this.alertType = 'error'\n this.alertText = response.data.suites\n } else {\n this.alertType = 'error'\n this.alertText = `Error saving file. Code: ${response.status} Text: ${response.statusText}`\n }\n this.showAlert = true\n })\n } else {\n this.setError('Attempt to save file when not allowed')\n }\n },\n saveAs() {\n this.showSaveAs = true\n },\n async saveAsFilename(filename) {\n this.filename = filename.split('*')[0]\n this.currentFilename = null\n if (this.tempFilename) {\n Api.post(`/script-api/scripts/${this.tempFilename}/delete`)\n this.tempFilename = null\n }\n await this.saveFile('menu')\n },\n delete() {\n let filename = this.filename\n if (this.tempFilename) {\n filename = this.tempFilename\n }\n this.$dialog\n .confirm(`Permanently delete file: ${filename}`, {\n okText: 'Delete',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n return Api.post(`/script-api/scripts/${filename}/delete`, {\n data: {},\n })\n })\n .then((response) => {\n this.removeFromRecent(filename)\n this.newFile()\n })\n .catch((error) => {\n if (error) {\n const alertObject = {\n text: `Failed Multi-Delete. ${error}`,\n type: 'error',\n }\n this.$emit('alert', alertObject)\n }\n })\n },\n download() {\n const blob = new Blob([this.editor.getValue()], {\n type: 'text/plain',\n })\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = URL.createObjectURL(blob)\n link.setAttribute('download', this.filename)\n link.click()\n },\n // ScriptRunner Script menu actions\n syntaxCheck() {\n Api.post(`/script-api/scripts/${this.filename}/syntax`, {\n data: this.editor.getValue(),\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'plain/text',\n },\n }).then((response) => {\n this.information.title = response.data.title\n this.information.text = JSON.parse(response.data.description)\n this.information.show = true\n })\n },\n showInstrumented() {\n Api.post(`/script-api/scripts/${this.filename}/instrumented`, {\n data: this.editor.getValue(),\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'plain/text',\n },\n }).then((response) => {\n this.information.title = response.data.title\n this.information.text = JSON.parse(response.data.description)\n this.information.show = true\n })\n },\n showCallStack() {\n Api.post(`/script-api/running-script/${this.scriptId}/backtrace`)\n },\n toggleDebug() {\n this.showDebug = !this.showDebug\n },\n toggleDisconnect() {\n this.showDisconnect = !this.showDisconnect\n },\n debugKeydown(event) {\n if (event.key === 'Escape') {\n this.debug = ''\n this.debugHistoryIndex = this.debugHistory.length\n } else if (event.key === 'Enter') {\n this.debugHistory.push(this.debug)\n this.debugHistoryIndex = this.debugHistory.length\n // Post the code to /debug, output is processed by receive()\n Api.post(`/script-api/running-script/${this.scriptId}/debug`, {\n data: {\n args: this.debug,\n },\n })\n this.debug = ''\n } else if (event.key === 'ArrowUp') {\n this.debugHistoryIndex -= 1\n if (this.debugHistoryIndex < 0) {\n this.debugHistoryIndex = this.debugHistory.length - 1\n }\n this.debug = this.debugHistory[this.debugHistoryIndex]\n // Prevent the cursor/caret from moving to the front\n event.preventDefault()\n } else if (event.key === 'ArrowDown') {\n this.debugHistoryIndex += 1\n if (this.debugHistoryIndex >= this.debugHistory.length) {\n this.debugHistoryIndex = 0\n }\n this.debug = this.debugHistory[this.debugHistoryIndex]\n }\n },\n removeAllMarkers: function () {\n const allMarkers = this.editor.session.getMarkers()\n Object.keys(allMarkers)\n .filter((key) => allMarkers[key].type === 'fullLine')\n .forEach((marker) => this.editor.session.removeMarker(marker))\n },\n confirmLocalUnlock: function () {\n this.$dialog\n .confirm(\n 'Are you sure you want to unlock this script for editing? If another user is editing this script, your changes might conflict with each other.',\n {\n okText: 'Force Unlock',\n cancelText: 'Cancel',\n },\n )\n .then(() => {\n this.lockedBy = null\n return this.lockFile() // Re-lock it as this user so it's locked for anyone else who opens it\n })\n },\n lockFile: function () {\n return Api.post(`/script-api/scripts/${this.filename}/lock`)\n },\n unlockFile: function () {\n if (this.filename !== NEW_FILENAME && !this.readOnly) {\n Api.post(`/script-api/scripts/${this.filename}/unlock`)\n }\n },\n screenId(id) {\n return 'scriptRunnerScreen' + id\n },\n closeScreen(id) {\n let index = 0\n for (screen of this.screens) {\n if (screen.id == id) {\n this.screens.splice(index, 1)\n break\n }\n index += 1\n }\n },\n },\n}\n<\/script>\n\n<style scoped>\n#sr-controls {\n padding: 0px;\n}\n.editorbox {\n height: 50vh;\n}\n.editor {\n height: 100%;\n width: 100%;\n position: relative;\n font-size: 16px;\n}\nhr {\n pointer-events: none;\n position: relative;\n top: 7px;\n background-color: grey;\n height: 3px;\n width: 5%;\n margin: auto;\n}\n.script-state {\n background-color: var(--color-background-base-default);\n}\n.script-state :deep(input) {\n text-transform: capitalize;\n}\n</style>\n<style>\n.runningMarker {\n position: absolute;\n background: rgba(0, 255, 0, 0.5);\n z-index: 20;\n}\n.waitingMarker {\n position: absolute;\n background: rgba(0, 155, 0, 1);\n z-index: 20;\n}\n.breakpointMarker {\n position: absolute;\n border-style: solid;\n border-color: red;\n background: rgba(0, 255, 0, 0.5);\n z-index: 20;\n}\n.pausedMarker {\n position: absolute;\n background: rgba(0, 140, 255, 0.5);\n z-index: 20;\n}\n.errorMarker {\n position: absolute;\n background: rgba(255, 0, 119, 0.5);\n z-index: 20;\n}\n.fatalMarker {\n position: absolute;\n background: rgba(255, 0, 0, 0.5);\n z-index: 20;\n}\n.saving {\n z-index: 20;\n opacity: 0.35;\n}\n.ace_gutter-cell.ace_breakpoint {\n border-radius: 20px 0px 0px 20px;\n box-shadow: 0px 0px 1px 1px red inset;\n}\n.grid {\n position: relative;\n}\n.item {\n position: absolute;\n display: block;\n margin: 5px;\n z-index: 1;\n}\n.item-content {\n position: relative;\n cursor: pointer;\n border-radius: 6px;\n}\n</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"8ad94ff360ede2bac452588147f397e506fa6647"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=i);var o=s[e];return wl=function(){return o},o}wl();const xl=(wl().s[0]++,"__TEMP__"),kl=(wl().s[1]++,"<Untitled>"),Sl=(wl().s[2]++,"Start"),Ml=(wl().s[3]++,"Go"),El=(wl().s[4]++,"Pause"),Tl=(wl().s[5]++,"Retry"),Rl={components:{FileOpenSaveDialog:C,Openc3Screen:Ot,EnvironmentDialog:k,Multipane:d.S,MultipaneResizer:d.M,TopBar:F,AskDialog:K,FileDialog:le,InformationDialog:de,EventListDialog:gn,OverridesDialog:Sn,PromptDialog:On,ResultsDialog:Gn,ScriptEnvironmentDialog:Xn,SimpleTextDialog:I,SuiteRunner:it,RunningScripts:yl,ScriptLogMessages:mt},data(){return wl().f[0]++,wl().s[6]++,{title:"Script Runner",suiteRunner:!1,disableSuiteButtons:!1,suiteMap:{},filenameSelect:null,currentFilename:null,showSave:!1,showAlert:!1,alertType:null,alertText:"",state:null,scriptId:null,startOrGoButton:Sl,startOrGoDisabled:!1,envDisabled:!1,pauseOrRetryButton:El,pauseOrRetryDisabled:!1,stopDisabled:!1,showEnvironment:!1,showDebug:!1,debug:"",debugHistory:[],debugHistoryIndex:0,showDisconnect:!1,files:{},breakpoints:{},filename:kl,saveAllowed:!0,tempFilename:null,fileModified:"",fileOpen:!1,lockedBy:null,showReadOnlyToast:!1,showSaveAs:!1,areYouSure:!1,subscription:null,cable:null,fatal:!1,updateInterval:null,receivedEvents:[],messages:[],messagesNewestOnTop:!0,maxArrayLength:200,Range:c.require("ace/range").Range,ask:{show:!1,question:"",default:null,password:!1,answerRequired:!0,callback:()=>{wl().f[1]++}},file:{show:!1,message:"",directory:null,filter:"*",multiple:!1,callback:()=>{wl().f[2]++}},prompt:{show:!1,title:"",subtitle:"",message:"",details:"",buttons:null,layout:"horizontal",callback:()=>{wl().f[3]++}},information:{show:!1,title:"",text:[]},inputMetadata:{show:!1,events:[],callback:()=>{wl().f[4]++}},results:{show:!1,text:""},scriptEnvironment:{show:!1,env:[]},showSuiteError:!1,suiteError:"",executeSelectionMenu:!1,menuX:0,menuY:0,mnemonicChecker:new Xt,showScripts:!1,showOverrides:!1,activePromptId:"",api:null,screens:[],screenKeywords:null,idCounter:0,updateCounter:0,recent:[]}},computed:{fileList:function(){wl().f[5]++;const e=(wl().s[7]++,Object.keys(this.files));return wl().s[8]++,e.push(this.fullFilename),wl().s[9]++,[...new Set(e)]},environmentIcon:function(){return wl().f[6]++,wl().s[10]++,this.scriptEnvironment.env.length>0?(wl().b[0][0]++,"mdi-bookmark"):(wl().b[0][1]++,"mdi-bookmark-outline")},environmentIconColor:function(){return wl().f[7]++,wl().s[11]++,this.scriptEnvironment.env.length>0?(wl().b[1][0]++,"primary"):(wl().b[1][1]++,"")},readOnly:function(){return wl().f[8]++,wl().s[12]++,!!this.lockedBy},fullFilename:function(){return wl().f[9]++,wl().s[13]++,this.currentFilename?(wl().b[2][0]++,wl().s[14]++,this.currentFilename):(wl().b[2][1]++,wl().s[15]++,this.filename===kl?(wl().b[3][0]++,wl().s[16]++,kl):(wl().b[3][1]++,wl().s[17]++,`${this.filename} ${this.fileModified}`.trim()))},filenameOrBlank:function(){return wl().f[10]++,wl().s[18]++,this.filename===kl?(wl().b[4][0]++,""):(wl().b[4][1]++,this.filename)},menus:function(){return wl().f[11]++,wl().s[19]++,[{label:"File",items:[{label:"New File",icon:"mdi-file-plus",disabled:this.scriptId,command:()=>{wl().f[12]++,wl().s[20]++,this.newFile()}},{label:"New Test Suite",icon:"mdi-file-plus",disabled:this.scriptId,subMenu:[{label:"Ruby",icon:"mdi-language-ruby",command:()=>{wl().f[13]++,wl().s[21]++,this.newRubyTestSuite()}},{label:"Python",icon:"mdi-language-python",command:()=>{wl().f[14]++,wl().s[22]++,this.newPythonTestSuite()}}]},{label:"Open File",icon:"mdi-folder-open",disabled:this.scriptId,command:()=>{wl().f[15]++,wl().s[23]++,this.openFile()}},{label:"Open Recent",icon:"mdi-folder-open",disabled:this.scriptId,subMenu:this.recent},{divider:!0},{label:"Save File",icon:"mdi-content-save",disabled:this.scriptId,command:()=>{wl().f[16]++,wl().s[24]++,this.saveFile()}},{label:"Save As...",icon:"mdi-content-save",disabled:this.scriptId,command:()=>{wl().f[17]++,wl().s[25]++,this.saveAs()}},{divider:!0},{label:"Download",icon:"mdi-cloud-download",disabled:this.scriptId,command:()=>{wl().f[18]++,wl().s[26]++,this.download()}},{divider:!0},{label:"Delete File",icon:"mdi-delete",disabled:this.scriptId,command:()=>{wl().f[19]++,wl().s[27]++,this.delete()}}]},{label:"Edit",items:[{label:"Find",icon:"mdi-magnify",command:()=>{wl().f[20]++,wl().s[28]++,this.editor.execCommand("find")}},{label:"Replace",icon:"mdi-find-replace",disabled:this.scriptId,command:()=>{wl().f[21]++,wl().s[29]++,this.editor.execCommand("replace")}}]},{label:"Script",items:[{label:"Execution Status",icon:"mdi-run",command:()=>{wl().f[22]++,wl().s[30]++,this.showScripts=!0}},{divider:!0},{label:"Global Environment",icon:"mdi-library",disabled:this.scriptId,command:()=>{wl().f[23]++,wl().s[31]++,this.showEnvironment=!this.showEnvironment}},{label:"Metadata",icon:"mdi-calendar",disabled:this.scriptId,command:()=>{wl().f[24]++,wl().s[32]++,this.inputMetadata.callback=()=>{wl().f[25]++},wl().s[33]++,this.showMetadata()}},{label:"Overrides",icon:"mdi-swap-horizontal",command:()=>{wl().f[26]++,wl().s[34]++,this.showOverrides=!0}},{divider:!0},{label:"Syntax Check",icon:"mdi-file-check",disabled:this.scriptId,command:()=>{wl().f[27]++,wl().s[35]++,this.syntaxCheck()}},{label:"Mnemonic Check",icon:"mdi-spellcheck",disabled:this.scriptId,command:()=>{wl().f[28]++,wl().s[36]++,this.checkMnemonics()}},{label:"Instrumented Script",icon:"mdi-code-braces-box",disabled:this.scriptId,command:()=>{wl().f[29]++,wl().s[37]++,this.showInstrumented()}},{label:"Call Stack",icon:"mdi-format-list-numbered",disabled:!this.scriptId,command:()=>{wl().f[30]++,wl().s[38]++,this.showCallStack()}},{divider:!0},{label:"Toggle Debug",icon:"mdi-bug",command:()=>{wl().f[31]++,wl().s[39]++,this.toggleDebug()}},{label:"Toggle Disconnect",icon:"mdi-connection",disabled:this.scriptId,command:()=>{wl().f[32]++,wl().s[40]++,this.toggleDisconnect()}},{divider:!0},{label:"Delete All Breakpoints",icon:"mdi-delete-circle-outline",disabled:this.scriptId,command:()=>{wl().f[33]++,wl().s[41]++,this.deleteAllBreakpoints()}}]}]},executeSelectionMenuItems:function(){return wl().f[34]++,wl().s[42]++,[{label:"Execute selection",command:this.executeSelection},{label:"Run from here",command:this.runFromCursor},{label:"Clear local breakpoints",command:this.clearBreakpoints}]}},watch:{readOnly:function(e){wl().f[35]++,wl().s[43]++,this.showReadOnlyToast=e,wl().s[44]++,this.suiteRunner?wl().b[5][1]++:(wl().b[5][0]++,wl().s[45]++,this.startOrGoDisabled=e),wl().s[46]++,this.editor.setReadOnly(e)},fullFilename:function(e){wl().f[36]++,wl().s[47]++,this.filenameSelect=e,wl().s[48]++,e===kl?(wl().b[6][0]++,wl().s[49]++,localStorage.removeItem("script_runner__filename")):(wl().b[6][1]++,wl().s[50]++,localStorage["script_runner__filename"]=e)}},created:function(){wl().f[37]++,wl().s[51]++,this.api=new P.x,wl().s[52]++,this.api.ensure_offline_access(),wl().s[53]++,this.NEW_FILENAME=kl,wl().s[54]++,window.onbeforeunload=this.unlockFile,wl().s[55]++,r.A.get("/openc3-api/autocomplete/keywords/screen").then((e=>{wl().f[38]++,wl().s[56]++,this.screenKeywords=e.data}))},mounted:async function(){var e;wl().f[39]++,wl().s[57]++,this.editor=c.edit(this.$refs.editor),wl().s[58]++,this.editor.setTheme("ace/theme/twilight");const n=(wl().s[59]++,["check","check_raw","check_formatted","check_with_units","check_exception","check_tolerance","check_expression","wait","wait_tolerance","wait_expression","wait_check","wait_check_tolerance","wait_check_expression","wait_packet","wait_check_packet","disable_instrumentation","set_line_delay","get_line_delay","set_max_output","get_max_output"]),t=(wl().s[60]++,this.buildOpenC3RubyMode(n)),l=(wl().s[61]++,this.buildOpenC3PythonMode(n));wl().s[62]++,this.openC3RubyMode=new t,wl().s[63]++,this.openC3PythonMode=new l,wl().s[64]++,this.editor.session.setMode(this.openC3RubyMode),wl().s[65]++,this.editor.session.setTabSize(2),wl().s[66]++,this.editor.session.setUseWrapMode(!0),wl().s[67]++,this.editor.$blockScrolling=1/0,wl().s[68]++,this.editor.setOption("enableBasicAutocompletion",!0),wl().s[69]++,this.editor.setOption("enableLiveAutocompletion",!0),wl().s[70]++,this.editor.completers=[new Wt,new zt],wl().s[71]++,this.editor.setHighlightActiveLine(!1),wl().s[72]++,this.editor.focus(),wl().s[73]++,this.editor.on("guttermousedown",this.toggleBreakpoint),wl().s[74]++,this.editor.session.on("tokenizerUpdate",this.onChange);const i=(wl().s[75]++,new Al(this.editor));var s;(wl().s[76]++,this.editor.session.on("change",((e,n)=>{wl().f[40]++,wl().s[77]++,i.annotate(e,n),wl().s[78]++,this.updateBreakpoints(e,n)})),wl().s[79]++,window.addEventListener("keydown",this.keydown),wl().s[80]++,this.cable=new a.A("/script-api/cable"),wl().s[81]++,localStorage["script_runner__recent"]?(wl().b[7][0]++,wl().s[82]++,this.recent=JSON.parse(localStorage["script_runner__recent"]),wl().s[83]++,this.recent=this.recent.map((e=>(wl().f[41]++,wl().s[84]++,{...e,command:async e=>{wl().f[42]++,wl().s[85]++,this.filename=e.label,wl().s[86]++,await this.reloadFile()}})))):wl().b[7][1]++,wl().s[87]++,null!==(e=this.$route.query)&&void 0!==e&&e.file)?(wl().b[8][0]++,wl().s[88]++,this.filename=this.$route.query.file,wl().s[89]++,await this.reloadFile()):(wl().b[8][1]++,wl().s[90]++,null!==(s=this.$route.params)&&void 0!==s&&s.id?(wl().b[9][0]++,wl().s[91]++,await this.tryLoadRunningScript(this.$route.params.id)):(wl().b[9][1]++,wl().s[92]++,localStorage["script_runner__filename"]?(wl().b[10][0]++,wl().s[93]++,this.filename=localStorage["script_runner__filename"],wl().s[94]++,await this.reloadFile(!1)):wl().b[10][1]++));wl().s[95]++,this.updateInterval=setInterval((async()=>{wl().f[43]++,wl().s[96]++,this.processReceived()}),100)},beforeDestroy(){wl().f[44]++,wl().s[97]++,this.editor.destroy(),wl().s[98]++,this.editor.container.remove()},destroyed(){wl().f[45]++,wl().s[99]++,this.unlockFile(),wl().s[100]++,null!=this.updateInterval?(wl().b[11][0]++,wl().s[101]++,clearInterval(this.updateInterval)):wl().b[11][1]++,wl().s[102]++,this.subscription?(wl().b[12][0]++,wl().s[103]++,this.subscription.unsubscribe(),wl().s[104]++,this.subscription=null):wl().b[12][1]++,wl().s[105]++,this.cable.disconnect()},beforeRouteUpdate:function(e,n,t){wl().f[46]++,wl().s[106]++,e.params.id?(wl().b[13][0]++,wl().s[107]++,this.tryLoadRunningScript(e.params.id).then(t)):(wl().b[13][1]++,wl().s[108]++,t())},methods:{scriptDisconnect(){wl().f[47]++,wl().s[109]++,this.subscription?(wl().b[14][0]++,wl().s[110]++,this.subscription.unsubscribe(),wl().s[111]++,this.subscription=null):wl().b[14][1]++,wl().s[112]++,this.receivedEvents.length=0},showMetadata(){wl().f[48]++,wl().s[113]++,r.A.get("/openc3-api/metadata").then((e=>{wl().f[49]++,wl().s[114]++,this.inputMetadata.events=e.data.map((e=>(wl().f[50]++,wl().s[115]++,{name:"Metadata",start:new Date(1e3*e.start),end:new Date(1e3*e.start),color:e.color,type:e.type,timed:!0,metadata:e}))),wl().s[116]++,this.inputMetadata.show=!0}))},buildOpenC3RubyMode(e){wl().f[51]++;var n=(wl().s[117]++,c.require("ace/lib/oop")),t=(wl().s[118]++,c.require("ace/mode/ruby_highlight_rules").RubyHighlightRules);let l=(wl().s[119]++,Object.getOwnPropertyNames(P.x.prototype).filter((e=>(wl().f[52]++,wl().s[120]++,"constructor"!==e))).filter((e=>(wl().f[53]++,wl().s[121]++,"exec"!==e))).concat(e)),i=(wl().s[122]++,new RegExp(`(\\b${l.join("\\b|\\b")}\\b)`));wl().s[123]++;var s=function(){for(var e in wl().f[54]++,wl().s[124]++,t.call(this),wl().s[125]++,this.$rules)wl().s[126]++,this.$rules[e].unshift({regex:i,token:"support.function"})};wl().s[127]++,n.inherits(s,t);var o=(wl().s[128]++,c.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent),a=(wl().s[129]++,c.require("ace/mode/behaviour/cstyle").CstyleBehaviour),r=(wl().s[130]++,c.require("ace/mode/folding/ruby").FoldMode);wl().s[131]++;var u=function(){wl().f[55]++,wl().s[132]++,this.HighlightRules=s,wl().s[133]++,this.$outdent=new o,wl().s[134]++,this.$behaviour=new a,wl().s[135]++,this.foldingRules=new r,wl().s[136]++,this.indentKeywords=this.foldingRules.indentKeywords},d=(wl().s[137]++,c.require("ace/mode/ruby").Mode);return wl().s[138]++,n.inherits(u,d),wl().s[139]++,function(){wl().f[56]++,wl().s[140]++,this.$id="ace/mode/openc3"}.call(u.prototype),wl().s[141]++,u},buildOpenC3PythonMode(e){wl().f[57]++;var n=(wl().s[142]++,c.require("ace/lib/oop")),t=(wl().s[143]++,c.require("ace/mode/python_highlight_rules").PythonHighlightRules);let l=(wl().s[144]++,Object.getOwnPropertyNames(P.x.prototype).filter((e=>(wl().f[58]++,wl().s[145]++,"constructor"!==e))).filter((e=>(wl().f[59]++,wl().s[146]++,"exec"!==e))).concat(e)),i=(wl().s[147]++,new RegExp(`(\\b${l.join("\\b|\\b")}\\b)`));wl().s[148]++;var s=function(){for(var e in wl().f[60]++,wl().s[149]++,t.call(this),wl().s[150]++,this.$rules)wl().s[151]++,this.$rules[e].unshift({regex:i,token:"support.function"})};wl().s[152]++,n.inherits(s,t);var o=(wl().s[153]++,c.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent),a=(wl().s[154]++,c.require("ace/mode/behaviour/cstyle").CstyleBehaviour),r=(wl().s[155]++,c.require("ace/mode/folding/pythonic").FoldMode);wl().s[156]++;var u=function(){wl().f[61]++,wl().s[157]++,this.HighlightRules=s,wl().s[158]++,this.$outdent=new o,wl().s[159]++,this.$behaviour=new a,wl().s[160]++,this.foldingRules=new r,wl().s[161]++,this.indentKeywords=this.foldingRules.indentKeywords},d=(wl().s[162]++,c.require("ace/mode/python").Mode);return wl().s[163]++,n.inherits(u,d),wl().s[164]++,function(){wl().f[62]++,wl().s[165]++,this.$id="ace/mode/openc3"}.call(u.prototype),wl().s[166]++,u},messageSortOrder(e){wl().f[63]++,wl().s[167]++,wl().b[16][0]++,"Newest on Top"===e&&(wl().b[16][1]++,!1===this.messagesNewestOnTop)?(wl().b[15][0]++,wl().s[168]++,this.messagesNewestOnTop=!0,wl().s[169]++,this.messages.reverse()):(wl().b[15][1]++,wl().s[170]++,wl().b[18][0]++,"Newest on Bottom"===e&&(wl().b[18][1]++,!0===this.messagesNewestOnTop)?(wl().b[17][0]++,wl().s[171]++,this.messagesNewestOnTop=!1,wl().s[172]++,this.messages.reverse()):wl().b[17][1]++)},fileNameChanged(e){wl().f[64]++,wl().s[173]++,e=e.split("*")[0],wl().s[174]++,this.editor.setValue(this.files[e].content),wl().s[175]++,this.restoreBreakpoints(e),wl().s[176]++,this.editor.clearSelection(),wl().s[177]++,this.removeAllMarkers(),wl().s[178]++,this.editor.session.addMarker(new this.Range(this.files[e].lineNo-1,0,this.files[e].lineNo-1,1),`${this.state}Marker`,"fullLine"),wl().s[179]++,this.editor.gotoLine(this.files[e].lineNo)},tryLoadRunningScript:function(e){return wl().f[65]++,wl().s[180]++,r.A.get("/script-api/running-script").then((n=>{wl().f[66]++;const t=(wl().s[181]++,n.data.find((n=>(wl().f[67]++,wl().s[182]++,`${n.id}`===`${e}`))));wl().s[183]++,t?(wl().b[19][0]++,wl().s[184]++,this.filename=t.name,wl().s[185]++,this.tryLoadSuites(),wl().s[186]++,this.initScriptStart(),wl().s[187]++,this.scriptStart(t.id)):(wl().b[19][1]++,wl().s[188]++,this.$notify.caution({title:`Running Script ${e} not found`,body:"Check the Completed Scripts below ..."}),wl().s[189]++,this.showScripts=!0)}))},tryLoadSuites:function(){wl().f[68]++,wl().s[190]++,r.A.get(`/script-api/scripts/${this.filename}`).then((e=>{wl().f[69]++,wl().s[191]++,e.data.suites?(wl().b[20][0]++,wl().s[192]++,this.startOrGoDisabled=!0,wl().s[193]++,this.suiteRunner=!0,wl().s[194]++,this.suiteMap=JSON.parse(e.data.suites)):wl().b[20][1]++,wl().s[195]++,e.data.error?(wl().b[21][0]++,wl().s[196]++,this.suiteError=e.data.error,wl().s[197]++,this.showSuiteError=!0):wl().b[21][1]++,wl().s[198]++,this.disableSuiteButtons=0==e.data.success}))},showExecuteSelectionMenu:function(e){wl().f[70]++,wl().s[199]++,this.menuX=e.pageX,wl().s[200]++,this.menuY=e.pageY,wl().s[201]++,this.executeSelectionMenu=!0},runFromCursor:function(){wl().f[71]++;const e=(wl().s[202]++,this.editor.getCursorPosition().row),n=(wl().s[203]++,this.editor.session.doc.getLines(e,this.editor.session.doc.getLength()).join("\n")),t=(wl().s[204]++,this.getBreakpointRows().filter((n=>(wl().f[72]++,wl().s[205]++,n>=e))).map((n=>(wl().f[73]++,wl().s[206]++,n-e))));wl().s[207]++,this.executeText(n,t)},executeSelection:function(){wl().f[74]++;const e=(wl().s[208]++,this.editor.getSelectedText()),n=(wl().s[209]++,this.editor.getSelectionRange()),t=(wl().s[210]++,this.getBreakpointRows().filter((e=>(wl().f[75]++,wl().s[211]++,wl().b[22][0]++,e<=n.end.row&&(wl().b[22][1]++,e>=n.start.row)))).map((e=>(wl().f[76]++,wl().s[212]++,e-n.start.row))));wl().s[213]++,this.executeText(e,t)},async executeText(e,n=(wl().b[23][0]++,[])){wl().f[77]++;let t=(wl().s[214]++,this.fullFilename.split(".").pop());const l=(wl().s[215]++,xl+"/"+(0,u.GP)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+`_temp.${t}`);wl().s[216]++,await r.A.post(`/script-api/scripts/${l}`,{data:{text:e,breakpoints:n}}).then((e=>(wl().f[78]++,wl().s[217]++,r.A.post(`/script-api/scripts/${l}/run`,{data:{environment:this.scriptEnvironment.env}})))).then((e=>{wl().f[79]++,wl().s[218]++,window.open(`/tools/scriptrunner/${e.data}`)}))},clearBreakpoints:function(){wl().f[80]++,wl().s[219]++,this.editor.session.clearBreakpoints()},toggleBreakpoint:function(e){if(wl().f[81]++,wl().s[220]++,this.scriptId)wl().b[24][1]++;else{wl().b[24][0]++;const n=(wl().s[221]++,e.getDocumentPosition().row);wl().s[222]++,e.editor.session.getBreakpoints(n,0)[n]?(wl().b[25][0]++,wl().s[223]++,e.editor.session.clearBreakpoint(n)):(wl().b[25][1]++,wl().s[224]++,e.editor.session.setBreakpoint(n))}},updateBreakpoints:function(e,n){if(wl().f[82]++,wl().s[225]++,e.lines.length<=1)return wl().b[26][0]++,void wl().s[226]++;wl().b[26][1]++;const t=(wl().s[227]++,this.getBreakpointRows(n).filter((n=>(wl().f[83]++,wl().s[228]++,wl().b[27][0]++,0===e.start.column&&(wl().b[27][1]++,n===e.start.row)||(wl().b[27][2]++,n>e.start.row)))));let l=(wl().s[229]++,[]),i=(wl().s[230]++,0);switch(wl().s[231]++,e.action){case"insert":wl().b[28][0]++,wl().s[232]++,i=e.lines.length-1,wl().s[233]++,t.reverse(),wl().s[234]++;break;case"remove":wl().b[28][1]++,wl().s[235]++,i=1-e.lines.length,wl().s[236]++,l=[...Array(e.lines.length).keys()].map((n=>(wl().f[84]++,wl().s[237]++,n+e.start.row))),wl().s[238]++;break}wl().s[239]++,t.forEach((e=>{wl().f[85]++,wl().s[240]++,n.clearBreakpoint(e),wl().s[241]++,l.includes(e)?wl().b[29][1]++:(wl().b[29][0]++,wl().s[242]++,n.setBreakpoint(e+i))}))},getBreakpointRows:function(e=(wl().b[30][0]++,this.editor.session)){return wl().f[86]++,wl().s[243]++,e.getBreakpoints().map(((e,n)=>(wl().f[87]++,wl().s[244]++,wl().b[31][0]++,e&&(wl().b[31][1]++,n)))).filter(Number.isInteger)},restoreBreakpoints:function(e){var n;wl().f[88]++,wl().s[245]++,this.clearBreakpoints(),wl().s[246]++,null===(n=this.breakpoints[e])||void 0===n||n.forEach((e=>{wl().f[89]++,wl().s[247]++,this.editor.session.setBreakpoint(e)}))},deleteAllBreakpoints:function(){wl().f[90]++,wl().s[248]++,this.$dialog.confirm("Permanently delete all breakpoints for ALL scripts?",{okText:"Delete",cancelText:"Cancel"}).then((e=>(wl().f[91]++,wl().s[249]++,r.A.delete("/script-api/breakpoints/delete/all")))).then((e=>{wl().f[92]++,wl().s[250]++,this.clearBreakpoints()}))},suiteRunnerButton(e){wl().f[93]++,wl().s[251]++,this.startOrGoButton===Sl?(wl().b[32][0]++,wl().s[252]++,this.start(e,"suiteRunner")):(wl().b[32][1]++,wl().s[253]++,this.go(e,"suiteRunner"))},async keydown(e){if(wl().f[94]++,wl().s[254]++,wl().b[34][0]++,this.scriptId||(wl().b[34][1]++,!0===this.editor.getReadOnly()))return wl().b[33][0]++,void wl().s[255]++;wl().b[33][1]++,wl().s[256]++,wl().b[36][0]++,(e.metaKey||(wl().b[36][1]++,e.ctrlKey))&&(wl().b[36][2]++,e.keyCode==="S".charCodeAt(0))?(wl().b[35][0]++,wl().s[257]++,e.shiftKey?(wl().b[37][0]++,wl().s[258]++,e.preventDefault(),wl().s[259]++,this.saveAs()):(wl().b[37][1]++,wl().s[260]++,e.preventDefault(),wl().s[261]++,await this.saveFile())):wl().b[35][1]++},onChange(e){if(wl().f[95]++,wl().s[262]++,wl().b[39][0]++,this.scriptId||(wl().b[39][1]++,!0===this.editor.getReadOnly()))return wl().b[38][0]++,void wl().s[263]++;wl().b[38][1]++,wl().s[264]++,this.editor.session.getUndoManager().canUndo()?(wl().b[40][0]++,wl().s[265]++,this.fileModified="*"):(wl().b[40][1]++,wl().s[266]++,this.fileModified="")},checkMnemonics:function(){wl().f[96]++,wl().s[267]++,this.mnemonicChecker.checkText(this.editor.getValue()).then((({skipped:e,problems:n})=>{wl().f[97]++;let t=(wl().s[268]++,"");if(wl().s[269]++,n.length){wl().b[41][0]++;const e=(wl().s[270]++,n.map((e=>(wl().f[98]++,wl().s[271]++,`${e.lineNumber}: ${e.error}`))).join("<br/>"));wl().s[272]++,t+=`<strong>The following lines have problems:</strong><br/>${e}<br/><br/>`}else wl().b[41][1]++;wl().s[273]++,e.length?(wl().b[42][0]++,wl().s[274]++,t+="<strong>Mnemonics with string interpolation were not checked.</strong>"):wl().b[42][1]++,wl().s[275]++,""===t?(wl().b[43][0]++,wl().s[276]++,t="<strong>Everything looks good!</strong>"):wl().b[43][1]++,wl().s[277]++,this.$dialog.alert(t.trim(),{html:!0})}))},initScriptStart(){wl().f[99]++,wl().s[278]++,this.disableSuiteButtons=!0,wl().s[279]++,this.startOrGoDisabled=!0,wl().s[280]++,this.envDisabled=!0,wl().s[281]++,this.pauseOrRetryDisabled=!0,wl().s[282]++,this.stopDisabled=!0,wl().s[283]++,this.state="Connecting...",wl().s[284]++,this.startOrGoButton=Ml,wl().s[285]++,this.editor.setReadOnly(!0)},scriptStart(e){wl().f[100]++,wl().s[286]++,this.scriptId=e,wl().s[287]++,this.cable.createSubscription("RunningScriptChannel",window.openc3Scope,{received:e=>(wl().f[101]++,wl().s[288]++,this.received(e))},{id:this.scriptId}).then((e=>{wl().f[102]++,wl().s[289]++,this.subscription=e}))},async scriptComplete(){wl().f[103]++,wl().s[290]++,this.state="stopped",wl().s[291]++,this.fatal=!1,wl().s[292]++,this.scriptId=null,wl().s[293]++,this.currentFilename=null,wl().s[294]++,this.files={},wl().s[295]++,this.subscription?(wl().b[44][0]++,wl().s[296]++,await this.subscription.unsubscribe(),wl().s[297]++,this.subscription=null):wl().b[44][1]++,wl().s[298]++,this.receivedEvents.length=0,wl().s[299]++,await this.reloadFile(),wl().s[300]++,this.editor.session.getUndoManager().reset(),wl().s[301]++,this.editor.setReadOnly(!1),wl().s[302]++,this.disableSuiteButtons=!1,wl().s[303]++,this.startOrGoButton=Sl,wl().s[304]++,this.pauseOrRetryButton=El,wl().s[305]++,this.startOrGoDisabled=this.suiteRunner,wl().s[306]++,this.envDisabled=!1,wl().s[307]++,this.pauseOrRetryDisabled=!0,wl().s[308]++,this.stopDisabled=!0},environmentHandler:function(e){wl().f[104]++,wl().s[309]++,this.scriptEnvironment.env=e},startHandler:function(){wl().f[105]++,wl().s[310]++,this.start()},async start(e,n=(wl().b[45][0]++,null)){wl().f[106]++,wl().s[311]++,this.initScriptStart(),wl().s[312]++,await this.saveFile("start"),wl().s[313]++,this.saveAllowed=!1;let t=(wl().s[314]++,this.filename);wl().s[315]++,this.filename===kl?(wl().b[46][0]++,wl().s[316]++,t=this.tempFilename):wl().b[46][1]++;let l=(wl().s[317]++,`/script-api/scripts/${t}/run`);wl().s[318]++,this.showDisconnect?(wl().b[47][0]++,wl().s[319]++,l+="/disconnect"):wl().b[47][1]++;let i=(wl().s[320]++,{environment:this.scriptEnvironment.env});wl().s[321]++,n?(wl().b[48][0]++,wl().s[322]++,i["suiteRunner"]=e):wl().b[48][1]++,wl().s[323]++,r.A.post(l,{data:i}).then((e=>{wl().f[107]++,wl().s[324]++,this.scriptStart(e.data)})).catch((e=>{wl().f[108]++,wl().s[325]++,this.scriptComplete()}))},go(){wl().f[109]++,wl().s[326]++,this.filenameSelect=this.currentFilename,wl().s[327]++,this.fileNameChanged(this.currentFilename),wl().s[328]++,r.A.post(`/script-api/running-script/${this.scriptId}/go`)},pauseOrRetry(){wl().f[110]++,wl().s[329]++,this.pauseOrRetryButton===El?(wl().b[49][0]++,wl().s[330]++,r.A.post(`/script-api/running-script/${this.scriptId}/pause`)):(wl().b[49][1]++,wl().s[331]++,this.pauseOrRetryButton=El,wl().s[332]++,r.A.post(`/script-api/running-script/${this.scriptId}/retry`))},stop(){wl().f[111]++,wl().s[333]++,this.fatal?(wl().b[50][0]++,wl().s[334]++,this.removeAllMarkers(),wl().s[335]++,this.scriptComplete()):(wl().b[50][1]++,wl().s[336]++,r.A.post(`/script-api/running-script/${this.scriptId}/stop`))},step(){wl().f[112]++,wl().s[337]++,r.A.post(`/script-api/running-script/${this.scriptId}/step`)},processLine(e){wl().f[113]++,wl().s[338]++,wl().b[52][0]++,e.filename&&(wl().b[52][1]++,e.filename!==this.currentFilename)?(wl().b[51][0]++,wl().s[339]++,this.files[e.filename]?(wl().b[53][1]++,wl().s[347]++,this.currentFilename=e.filename,wl().s[348]++,this.editor.setValue(this.files[e.filename].content),wl().s[349]++,this.restoreBreakpoints(e.filename),wl().s[350]++,this.editor.clearSelection()):(wl().b[53][0]++,wl().s[340]++,this.files[e.filename]={content:"",lineNo:0},wl().s[341]++,r.A.get(`/script-api/scripts/${e.filename}`).then((n=>{wl().f[114]++,wl().s[342]++,this.files[e.filename]={content:n.data.contents,lineNo:0},wl().s[343]++,this.breakpoints[e.filename]=n.data.breakpoints,wl().s[344]++,this.restoreBreakpoints(e.filename),wl().s[345]++,this.currentFilename=null})).catch((n=>{wl().f[115]++,wl().s[346]++,this.files[e.filename]=null})))):wl().b[51][1]++,wl().s[351]++,this.state=e.state;const n=(wl().s[352]++,this.editor.session.getMarkers());switch(wl().s[353]++,this.state){case"running":wl().b[54][0]++,wl().s[354]++,this.startOrGoDisabled=!1,wl().s[355]++,this.pauseOrRetryDisabled=!1,wl().s[356]++,this.stopDisabled=!1,wl().s[357]++,this.pauseOrRetryButton=El,wl().s[358]++,this.removeAllMarkers(),wl().s[359]++,this.editor.session.addMarker(new this.Range(e.line_no-1,0,e.line_no-1,1),"runningMarker","fullLine"),wl().s[360]++,this.editor.gotoLine(e.line_no),wl().s[361]++,this.files[e.filename].lineNo=e.line_no,wl().s[362]++;break;case"fatal":wl().b[54][1]++,wl().s[363]++,this.fatal=!0;case"error":wl().b[54][2]++,wl().s[364]++,this.pauseOrRetryButton=Tl;case"breakpoint":wl().b[54][3]++;case"waiting":wl().b[54][4]++;case"paused":wl().b[54][5]++,wl().s[365]++,"fatal"==this.state?(wl().b[55][0]++,wl().s[366]++,this.startOrGoDisabled=!0,wl().s[367]++,this.pauseOrRetryDisabled=!0):(wl().b[55][1]++,wl().s[368]++,this.startOrGoDisabled=!1,wl().s[369]++,this.pauseOrRetryDisabled=!1),wl().s[370]++,this.stopDisabled=!1;let t=(wl().s[371]++,Object.keys(n).filter((e=>(wl().f[116]++,wl().s[372]++,n[e].clazz===`${this.state}Marker`))));if(wl().s[373]++,0===t.length){wl().b[56][0]++,wl().s[374]++,this.removeAllMarkers();let n=(wl().s[375]++,e.line_no>0?(wl().b[57][0]++,e.line_no):(wl().b[57][1]++,1));wl().s[376]++,this.editor.session.addMarker(new this.Range(n-1,0,n-1,1),`${this.state}Marker`,"fullLine"),wl().s[377]++,this.editor.gotoLine(n),wl().s[378]++,e.filename?(wl().b[58][0]++,wl().s[379]++,this.files[e.filename].lineNo=n):wl().b[58][1]++}else wl().b[56][1]++;wl().s[380]++;break;default:wl().b[54][6]++,wl().s[381]++;break}},processReceived(){wl().f[117]++;let e=(wl().s[382]++,0);wl().s[383]++;for(let n of this.receivedEvents){wl().s[384]++,e+=1;let t=(wl().s[385]++,0);switch(wl().s[386]++,n.type){case"file":wl().b[59][0]++,wl().s[387]++,this.files[n.filename]={content:n.text,lineNo:0},wl().s[388]++,this.breakpoints[n.filename]=n.breakpoints,wl().s[389]++,this.currentFilename===n.filename?(wl().b[60][0]++,wl().s[390]++,this.restoreBreakpoints(n.filename)):wl().b[60][1]++,wl().s[391]++;break;case"line":wl().b[59][1]++,wl().s[392]++,this.processLine(n),wl().s[393]++;break;case"output":wl().b[59][2]++,wl().s[394]++;for(const t of n.line.split("\n"))wl().s[395]++,t?(wl().b[61][0]++,wl().s[396]++,this.messagesNewestOnTop?(wl().b[62][0]++,wl().s[397]++,this.messages.unshift({message:t})):(wl().b[62][1]++,wl().s[398]++,this.messages.push({message:t}))):wl().b[61][1]++;wl().s[399]++;while(this.messages.length>this.maxArrayLength)wl().s[400]++,this.messages.pop();wl().s[401]++;break;case"script":wl().b[59][3]++,wl().s[402]++,this.handleScript(n),wl().s[403]++;break;case"report":wl().b[59][4]++,wl().s[404]++,this.results.text=n.report,wl().s[405]++,this.results.show=!0,wl().s[406]++;break;case"complete":wl().b[59][5]++,wl().s[407]++,this.fatal?wl().b[63][1]++:(wl().b[63][0]++,wl().s[408]++,this.removeAllMarkers(),wl().s[409]++,this.scriptComplete()),wl().s[410]++;break;case"step":wl().b[59][6]++,wl().s[411]++,this.showDebug=!0,wl().s[412]++;break;case"screen":wl().b[59][7]++;let e=(wl().s[413]++,!1),l=(wl().s[414]++,{});for(screen of(wl().s[415]++,this.screens)){if(wl().s[416]++,wl().b[65][0]++,screen.target==n.target_name&&(wl().b[65][1]++,screen.screen==n.screen_name)){wl().b[64][0]++,wl().s[417]++,l=screen,wl().s[418]++,e=!0,wl().s[419]++;break}wl().b[64][1]++,wl().s[420]++,t+=1}wl().s[421]++,this.$set(l,"target",n.target_name),wl().s[422]++,this.$set(l,"screen",n.screen_name),wl().s[423]++,this.$set(l,"definition",n.definition),wl().s[424]++,n.x?(wl().b[66][0]++,wl().s[425]++,this.$set(l,"left",n.x)):(wl().b[66][1]++,wl().s[426]++,this.$set(l,"left",0)),wl().s[427]++,n.y?(wl().b[67][0]++,wl().s[428]++,this.$set(l,"top",n.y)):(wl().b[67][1]++,wl().s[429]++,this.$set(l,"top",0)),wl().s[430]++,this.$set(l,"count",this.updateCounter++),wl().s[431]++,e?(wl().b[68][1]++,wl().s[434]++,this.$set(this.screens,t,l)):(wl().b[68][0]++,wl().s[432]++,this.$set(l,"id",this.idCounter++),wl().s[433]++,this.$set(this.screens,this.screens.length,l)),wl().s[435]++;break;case"clearscreen":for(screen of(wl().b[59][8]++,wl().s[436]++,this.screens)){if(wl().s[437]++,wl().b[70][0]++,screen.target==n.target_name&&(wl().b[70][1]++,screen.screen==n.screen_name)){wl().b[69][0]++,wl().s[438]++,this.screens.splice(t,1),wl().s[439]++;break}wl().b[69][1]++,wl().s[440]++,t+=1}wl().s[441]++;break;case"clearallscreens":wl().b[59][9]++,wl().s[442]++,this.screens=[],wl().s[443]++;break;case"downloadfile":wl().b[59][10]++;const i=(wl().s[444]++,document.createElement("a"));wl().s[445]++,i.href=window.location.origin+n.url,wl().s[446]++,i.setAttribute("download",n.filename),wl().s[447]++,i.click(),wl().s[448]++;break;default:wl().b[59][11]++,wl().s[449]++;break}}wl().s[450]++,this.receivedEvents.splice(0,e)},received(e){wl().f[118]++,wl().s[451]++,this.cable.recordPing(),wl().s[452]++,this.receivedEvents.push(e)},promptDialogCallback(e){wl().f[119]++,wl().s[453]++,this.prompt.show=!1,wl().s[454]++,r.A.post(`/script-api/running-script/${this.scriptId}/prompt`,{data:{method:this.prompt.method,answer:e,prompt_id:this.activePromptId,multiple:this.prompt.multiple}})},handleScript(e){if(wl().f[120]++,wl().s[455]++,e.prompt_complete)return wl().b[71][0]++,wl().s[456]++,this.activePromptId="",wl().s[457]++,this.prompt.show=!1,wl().s[458]++,this.ask.show=!1,void wl().s[459]++;switch(wl().b[71][1]++,wl().s[460]++,this.activePromptId=e.prompt_id,wl().s[461]++,this.prompt.method=e.method,wl().s[462]++,this.prompt.layout="horizontal",wl().s[463]++,this.prompt.title="Prompt",wl().s[464]++,this.prompt.subtitle="",wl().s[465]++,this.prompt.details="",wl().s[466]++,this.prompt.buttons=[],wl().s[467]++,this.prompt.multiple=null,wl().s[468]++,e.method){case"ask":wl().b[72][0]++;case"ask_string":wl().b[72][1]++,wl().s[469]++,this.ask.default=null,wl().s[470]++,this.ask.answerRequired=!0,wl().s[471]++,this.ask.password=!1,wl().s[472]++,this.ask.question=e.args[0],wl().s[473]++,wl().b[74][0]++,e.args[1]&&(wl().b[74][1]++,!0!==e.args[1])&&(wl().b[74][2]++,!1!==e.args[1])?(wl().b[73][0]++,wl().s[474]++,this.ask.default=e.args[1].toString()):(wl().b[73][1]++,wl().s[475]++,!0===e.args[1]?(wl().b[75][0]++,wl().s[476]++,this.ask.answerRequired=!1):wl().b[75][1]++),wl().s[477]++,!0===e.args[2]?(wl().b[76][0]++,wl().s[478]++,this.ask.password=!0):wl().b[76][1]++,wl().s[479]++,this.ask.callback=n=>{wl().f[121]++,wl().s[480]++,this.ask.show=!1,wl().s[481]++,this.ask.password?(wl().b[77][0]++,wl().s[482]++,r.A.post(`/script-api/running-script/${this.scriptId}/prompt`,{data:{method:e.method,password:n,prompt_id:this.activePromptId}})):(wl().b[77][1]++,wl().s[483]++,r.A.post(`/script-api/running-script/${this.scriptId}/prompt`,{data:{method:e.method,answer:n,prompt_id:this.activePromptId}}))},wl().s[484]++,this.ask.show=!0,wl().s[485]++;break;case"prompt_for_hazardous":wl().b[72][2]++,wl().s[486]++,this.prompt.title="Hazardous Command",wl().s[487]++,this.prompt.message=`Warning: Command ${e.args[0]} ${e.args[1]} is Hazardous. `,wl().s[488]++,e.args[2]?(wl().b[78][0]++,wl().s[489]++,this.prompt.message+=e.args[2]+" "):wl().b[78][1]++,wl().s[490]++,this.prompt.message+="Send?",wl().s[491]++,this.prompt.buttons=[{text:"Send",value:"Send"}],wl().s[492]++,this.prompt.callback=this.promptDialogCallback,wl().s[493]++,this.prompt.show=!0,wl().s[494]++;break;case"prompt":wl().b[72][3]++,wl().s[495]++,wl().b[80][0]++,e.kwargs&&(wl().b[80][1]++,e.kwargs.informative)?(wl().b[79][0]++,wl().s[496]++,this.prompt.subtitle=e.kwargs.informative):wl().b[79][1]++,wl().s[497]++,wl().b[82][0]++,e.kwargs&&(wl().b[82][1]++,e.kwargs.details)?(wl().b[81][0]++,wl().s[498]++,this.prompt.details=e.kwargs.details):wl().b[81][1]++,wl().s[499]++,this.prompt.message=e.args[0],wl().s[500]++,this.prompt.buttons=[{text:"Ok",value:"Ok"}],wl().s[501]++,this.prompt.callback=this.promptDialogCallback,wl().s[502]++,this.prompt.show=!0,wl().s[503]++;break;case"combo_box":wl().b[72][4]++,wl().s[504]++,wl().b[84][0]++,e.kwargs&&(wl().b[84][1]++,e.kwargs.informative)?(wl().b[83][0]++,wl().s[505]++,this.prompt.subtitle=e.kwargs.informative):wl().b[83][1]++,wl().s[506]++,wl().b[86][0]++,e.kwargs&&(wl().b[86][1]++,e.kwargs.details)?(wl().b[85][0]++,wl().s[507]++,this.prompt.details=e.kwargs.details):wl().b[85][1]++,wl().s[508]++,wl().b[88][0]++,e.kwargs&&(wl().b[88][1]++,e.kwargs.multiple)?(wl().b[87][0]++,wl().s[509]++,this.prompt.multiple=!0):wl().b[87][1]++,wl().s[510]++,this.prompt.message=e.args[0],wl().s[511]++,e.args.slice(1).forEach((e=>{wl().f[122]++,wl().s[512]++,this.prompt.buttons.push({text:e,value:e})})),wl().s[513]++,this.prompt.layout="combo",wl().s[514]++,this.prompt.callback=this.promptDialogCallback,wl().s[515]++,this.prompt.show=!0,wl().s[516]++;break;case"message_box":wl().b[72][5]++;case"vertical_message_box":wl().b[72][6]++,wl().s[517]++,wl().b[90][0]++,e.kwargs&&(wl().b[90][1]++,e.kwargs.informative)?(wl().b[89][0]++,wl().s[518]++,this.prompt.subtitle=e.kwargs.informative):wl().b[89][1]++,wl().s[519]++,wl().b[92][0]++,e.kwargs&&(wl().b[92][1]++,e.kwargs.details)?(wl().b[91][0]++,wl().s[520]++,this.prompt.details=e.kwargs.details):wl().b[91][1]++,wl().s[521]++,this.prompt.message=e.args[0],wl().s[522]++,e.args.slice(1).forEach((e=>{wl().f[123]++,wl().s[523]++,this.prompt.buttons.push({text:e,value:e})})),wl().s[524]++,e.method.includes("vertical")?(wl().b[93][0]++,wl().s[525]++,this.prompt.layout="vertical"):wl().b[93][1]++,wl().s[526]++,this.prompt.callback=this.promptDialogCallback,wl().s[527]++,this.prompt.show=!0,wl().s[528]++;break;case"backtrace":wl().b[72][7]++,wl().s[529]++,this.information.title="Call Stack",wl().s[530]++,this.information.text=e.args,wl().s[531]++,this.information.show=!0,wl().s[532]++;break;case"metadata_input":wl().b[72][8]++,wl().s[533]++,this.inputMetadata.callback=n=>{wl().f[124]++,wl().s[534]++,this.inputMetadata.show=!1,wl().s[535]++,r.A.post(`/script-api/running-script/${this.scriptId}/prompt`,{data:{method:e.method,answer:n,prompt_id:this.activePromptId}})},wl().s[536]++,this.showMetadata(),wl().s[537]++;break;case"open_file_dialog":wl().b[72][9]++;case"open_files_dialog":wl().b[72][10]++,wl().s[538]++,this.file.title=e.args[0],wl().s[539]++,this.file.message=e.args[1],wl().s[540]++,wl().b[95][0]++,e.kwargs&&(wl().b[95][1]++,e.kwargs.filter)?(wl().b[94][0]++,wl().s[541]++,this.file.filter=e.kwargs.filter):wl().b[94][1]++,wl().s[542]++,"open_files_dialog"==e.method?(wl().b[96][0]++,wl().s[543]++,this.file.multiple=!0):wl().b[96][1]++,wl().s[544]++,this.file.show=!0,wl().s[545]++;break;default:wl().b[72][11]++,wl().s[546]++;break}},async fileDialogCallback(e){wl().f[125]++,wl().s[547]++,this.file.show=!1;let n=(wl().s[548]++,"Cancel");wl().s[549]++,"Cancel"!=e?(wl().b[97][0]++,wl().s[550]++,n=[],wl().s[551]++,await e.forEach((async e=>{wl().f[126]++,wl().s[552]++,n.push(e.name);const{data:t}=(wl().s[553]++,await r.A.get(`/openc3-api/storage/upload/${encodeURIComponent(`${window.openc3Scope}/tmp/${e.name}`)}?bucket=OPENC3_CONFIG_BUCKET`));wl().s[554]++,await(0,o.A)({...t,data:e})}))):wl().b[97][1]++,wl().s[555]++,await r.A.post(`/script-api/running-script/${this.scriptId}/prompt`,{data:{method:this.file.multiple?(wl().b[98][0]++,"open_files_dialog"):(wl().b[98][1]++,"open_file_dialog"),answer:n,prompt_id:this.activePromptId}})},setError(e){wl().f[127]++,wl().s[556]++,this.alertType="error",wl().s[557]++,this.alertText=`Error: ${e}`,wl().s[558]++,this.showAlert=!0},newFile(){wl().f[128]++,wl().s[559]++,this.unlockFile(),wl().s[560]++,this.filename=kl,wl().s[561]++,this.currentFilename=null,wl().s[562]++,this.tempFilename=null,wl().s[563]++,this.files={},wl().s[564]++,this.editor.session.setValue(""),wl().s[565]++,this.saveAllowed=!0,wl().s[566]++,this.fileModified="",wl().s[567]++,this.suiteRunner=!1,wl().s[568]++,this.startOrGoDisabled=!1,wl().s[569]++,this.envDisabled=!1,wl().s[570]++,this.$router.replace({name:"ScriptRunner"}).catch((e=>{wl().f[129]++})),wl().s[571]++,document.title="Script Runner"},async newRubyTestSuite(){wl().f[130]++,wl().s[572]++,this.newFile(),wl().s[573]++,this.editor.session.setValue("require 'openc3/script/suite.rb'\n\n# Group class name should indicate what the scripts are testing\nclass Power < OpenC3::Group\n # Methods beginning with script_ are added to Script dropdown\n def script_power_on\n # Using OpenC3::Group.puts adds the output to the Test Report\n # This can be useful for requirements verification, QA notes, etc\n OpenC3::Group.puts \"Verifying requirement SR-1\"\n configure()\n end\n\n # Other methods are not added to Script dropdown\n def configure\n end\n\n def setup\n # Run when Group Setup button is pressed\n # Run before all scripts when Group Start is pressed\n end\n\n def teardown\n # Run when Group Teardown button is pressed\n # Run after all scripts when Group Start is pressed\n end\nend\n\nclass TestSuite < OpenC3::Suite\n def initialize\n add_group('Power')\n end\n def setup\n # Run when Suite Setup button is pressed\n # Run before all groups when Suite Start is pressed\n end\n def teardown\n # Run when Suite Teardown button is pressed\n # Run after all groups when Suite Start is pressed\n end\nend\n"),wl().s[574]++,await this.saveFile("auto")},async newPythonTestSuite(){wl().f[131]++,wl().s[575]++,this.newFile(),wl().s[576]++,this.editor.session.setValue('from openc3.script.suite import Suite, Group\n\n# Group class name should indicate what the scripts are testing\nclass Power(Group):\n # Methods beginning with script_ are added to Script dropdown\n def script_power_on(self):\n # Using Group.print adds the output to the Test Report\n # This can be useful for requirements verification, QA notes, etc\n Group.print("Verifying requirement SR-1")\n self.configure()\n\n # Other methods are not added to Script dropdown\n def configure(self):\n pass\n\n def setup(self):\n # Run when Group Setup button is pressed\n # Run before all scripts when Group Start is pressed\n pass\n\n def teardown(self):\n # Run when Group Teardown button is pressed\n # Run after all scripts when Group Start is pressed\n pass\n\nclass TestSuite(Suite):\n def __init__(self):\n self.add_group(Power)\n\n def setup(self):\n # Run when Suite Setup button is pressed\n # Run before all groups when Suite Start is pressed\n pass\n\n def teardown(self):\n # Run when Suite Teardown button is pressed\n # Run after all groups when Suite Start is pressed\n pass\n'),wl().s[577]++,await this.saveFile("auto")},addToRecent(e){wl().f[132]++;let n=(wl().s[578]++,this.recent.findIndex((n=>(wl().f[133]++,wl().s[579]++,n.label===e))));wl().s[580]++,-1!==n?(wl().b[99][0]++,wl().s[581]++,this.recent.splice(n,1)):wl().b[99][1]++,wl().s[582]++,this.recent.unshift({label:e,icon:p(e),command:async e=>{wl().f[134]++,wl().s[583]++,this.filename=e.label,wl().s[584]++,await this.reloadFile()}}),wl().s[585]++,this.recent.length>8?(wl().b[100][0]++,wl().s[586]++,this.recent.pop()):wl().b[100][1]++,wl().s[587]++,localStorage["script_runner__recent"]=JSON.stringify(this.recent)},removeFromRecent(e){wl().f[135]++,wl().s[588]++,this.recent=this.recent.filter((n=>(wl().f[136]++,wl().s[589]++,n.label!==e))),wl().s[590]++,localStorage["script_runner__recent"]=JSON.stringify(this.recent),wl().s[591]++,localStorage["script_runner__filename"]===e?(wl().b[101][0]++,wl().s[592]++,localStorage.removeItem("script_runner__filename")):wl().b[101][1]++},openFile(){wl().f[137]++,wl().s[593]++,this.fileOpen=!0},async reloadFile(e=(wl().b[102][0]++,!0)){wl().f[138]++,wl().s[594]++,this.saveAllowed=!1,wl().s[595]++,this.startOrGoDisabled=!0,wl().s[596]++,await r.A.get(`/script-api/scripts/${this.filename}`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then((e=>{wl().f[139]++;const n=(wl().s[597]++,{name:this.filename,contents:e.data.contents});wl().s[598]++,e.data.suites?(wl().b[103][0]++,wl().s[599]++,n["suites"]=JSON.parse(e.data.suites)):wl().b[103][1]++,wl().s[600]++,e.data.error?(wl().b[104][0]++,wl().s[601]++,n["error"]=e.data.error):wl().b[104][1]++,wl().s[602]++,e.data.success?(wl().b[105][0]++,wl().s[603]++,n["success"]=e.data.success):wl().b[105][1]++;const t=(wl().s[604]++,e.data.locked),l=(wl().s[605]++,e.data.breakpoints);wl().s[606]++,this.setFile({file:n,locked:t,breakpoints:l},!0),wl().s[607]++,this.saveAllowed=!0})).catch((n=>{wl().f[140]++,wl().s[608]++,!0===e?(wl().b[106][0]++,wl().s[609]++,this.$notify.caution({title:"File Open Error",body:`Failed to open ${this.filename} due to ${n}`})):wl().b[106][1]++,wl().s[610]++,this.removeFromRecent(this.filename),wl().s[611]++,this.newFile()}))},setFile({file:e,locked:n,breakpoints:t},l=(wl().b[107][0]++,!1)){wl().f[141]++,wl().s[612]++,this.files={};let i=(wl().s[613]++,e.name.split("*")[0]);wl().s[614]++,!1===l?(wl().b[108][0]++,wl().s[615]++,this.filename!==i?(wl().b[109][0]++,wl().s[616]++,this.unlockFile(),wl().s[617]++,this.lockedBy=n):wl().b[109][1]++):wl().b[108][1]++,wl().s[618]++,this.filename=i,wl().s[619]++,this.$router.replace({name:"ScriptRunner",query:{file:this.filename}}).catch((e=>{wl().f[142]++}));let s=(wl().s[620]++,this.filename.split("/"));wl().s[621]++,document.title=`${s.pop()} (${s.join("/")})`,wl().s[622]++,"py"===this.filename.split(".").pop()?(wl().b[110][0]++,wl().s[623]++,this.editor.session.setMode(this.openC3PythonMode)):(wl().b[110][1]++,wl().s[624]++,this.editor.session.setMode(this.openC3RubyMode)),wl().s[625]++,this.currentFilename=null,wl().s[626]++,this.editor.session.setValue(e.contents),wl().s[627]++,this.breakpoints[filename]=t,wl().s[628]++,this.restoreBreakpoints(filename),wl().s[629]++,this.fileModified="",wl().s[630]++,this.envDisabled=!1,wl().s[631]++,this.addToRecent(this.filename),wl().s[632]++,e.suites?(wl().b[111][0]++,wl().s[633]++,this.suiteRunner=!0,wl().s[634]++,this.suiteMap=e.suites,wl().s[635]++,this.startOrGoDisabled=!0):(wl().b[111][1]++,wl().s[636]++,this.suiteRunner=!1,wl().s[637]++,this.startOrGoDisabled=!1),wl().s[638]++,e.error?(wl().b[112][0]++,wl().s[639]++,this.suiteError=e.error,wl().s[640]++,this.showSuiteError=!0):wl().b[112][1]++,wl().s[641]++,this.disableSuiteButtons=0==e.success},clearTemp(){wl().f[143]++,wl().s[642]++,this.recent=this.recent.filter((e=>(wl().f[144]++,wl().s[643]++,!e.label.includes("__TEMP__")))),wl().s[644]++,localStorage["script_runner__recent"]=JSON.stringify(this.recent)},detectLanguage(){wl().f[145]++;let e=(wl().s[645]++,new RegExp("^\\s*(require|load|puts) ")),n=(wl().s[646]++,new RegExp("^\\s*(import|from) ")),t=(wl().s[647]++,new RegExp("^\\s*end\\s*$")),l=(wl().s[648]++,new RegExp("^\\s*(if|def|while|else|elif|class).*:\\s*$")),i=(wl().s[649]++,new RegExp('\\(f"')),s=(wl().s[650]++,this.editor.getValue()),o=(wl().s[651]++,s.split("\n"));wl().s[652]++;for(let a of o){if(wl().s[653]++,a.match(e))return wl().b[113][0]++,wl().s[654]++,"ruby";if(wl().b[113][1]++,wl().s[655]++,a.match(n))return wl().b[114][0]++,wl().s[656]++,"python";if(wl().b[114][1]++,wl().s[657]++,a.match(t))return wl().b[115][0]++,wl().s[658]++,"ruby";if(wl().b[115][1]++,wl().s[659]++,a.match(l))return wl().b[116][0]++,wl().s[660]++,"python";if(wl().b[116][1]++,wl().s[661]++,a.match(i))return wl().b[117][0]++,wl().s[662]++,"python";wl().b[117][1]++}return wl().s[663]++,"unknown"},async saveFile(e=(wl().b[118][0]++,"menu")){if(wl().f[146]++,wl().s[664]++,this.saveAllowed){wl().b[119][0]++;const n=(wl().s[665]++,this.getBreakpointRows());if(wl().s[666]++,this.filename===kl){if(wl().b[120][0]++,wl().s[667]++,"menu"===e)return wl().b[121][0]++,wl().s[668]++,this.saveAs(),void wl().s[669]++;if(wl().b[121][1]++,wl().s[670]++,null===this.tempFilename){wl().b[122][0]++;let n=(wl().s[671]++,this.detectLanguage());if(wl().s[672]++,wl().b[124][0]++,"ruby"===n||(wl().b[124][1]++,"auto"!==e&&(wl().b[124][2]++,"unknown"==n)))wl().b[123][0]++,wl().s[673]++,this.tempFilename=xl+"/"+(0,u.GP)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+"_temp.rb";else{if(wl().b[123][1]++,wl().s[674]++,"python"!==n)return wl().b[125][1]++,void wl().s[676]++;wl().b[125][0]++,wl().s[675]++,this.tempFilename=xl+"/"+(0,u.GP)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+"_temp.py"}wl().s[677]++,this.filename=this.tempFilename,wl().s[678]++,this.addToRecent(this.filename)}else wl().b[122][1]++}else wl().b[120][1]++;wl().s[679]++,this.showSave=!0,wl().s[680]++,await r.A.post(`/script-api/scripts/${this.filename}`,{data:{text:this.editor.getValue(),breakpoints:n}}).then((e=>{wl().f[147]++,wl().s[681]++,200==e.status?(wl().b[126][0]++,wl().s[682]++,e.data.suites?(wl().b[127][0]++,wl().s[683]++,this.startOrGoDisabled=!0,wl().s[684]++,this.suiteRunner=!0,wl().s[685]++,this.suiteMap=JSON.parse(e.data.suites)):(wl().b[127][1]++,wl().s[686]++,this.startOrGoDisabled=!1,wl().s[687]++,this.suiteRunner=!1,wl().s[688]++,this.suiteMap={}),wl().s[689]++,e.data.error?(wl().b[128][0]++,wl().s[690]++,this.suiteError=e.data.error,wl().s[691]++,this.showSuiteError=!0):wl().b[128][1]++,wl().s[692]++,this.fileModified="",wl().s[693]++,setTimeout((()=>{wl().f[148]++,wl().s[694]++,this.showSave=!1}),2e3)):(wl().b[126][1]++,wl().s[695]++,this.showSave=!1,wl().s[696]++,this.alertType="error",wl().s[697]++,this.alertText=`Error saving file. Code: ${e.status} Text: ${e.statusText}`,wl().s[698]++,this.showAlert=!0),wl().s[699]++,this.lockFile()})).catch((({response:e})=>{wl().f[149]++,wl().s[700]++,this.showSave=!1,wl().s[701]++,422==e.status?(wl().b[129][0]++,wl().s[702]++,this.alertType="error",wl().s[703]++,this.alertText=e.data.suites):(wl().b[129][1]++,wl().s[704]++,this.alertType="error",wl().s[705]++,this.alertText=`Error saving file. Code: ${e.status} Text: ${e.statusText}`),wl().s[706]++,this.showAlert=!0}))}else wl().b[119][1]++,wl().s[707]++,this.setError("Attempt to save file when not allowed")},saveAs(){wl().f[150]++,wl().s[708]++,this.showSaveAs=!0},async saveAsFilename(e){wl().f[151]++,wl().s[709]++,this.filename=e.split("*")[0],wl().s[710]++,this.currentFilename=null,wl().s[711]++,this.tempFilename?(wl().b[130][0]++,wl().s[712]++,r.A.post(`/script-api/scripts/${this.tempFilename}/delete`),wl().s[713]++,this.tempFilename=null):wl().b[130][1]++,wl().s[714]++,await this.saveFile("menu")},delete(){wl().f[152]++;let e=(wl().s[715]++,this.filename);wl().s[716]++,this.tempFilename?(wl().b[131][0]++,wl().s[717]++,e=this.tempFilename):wl().b[131][1]++,wl().s[718]++,this.$dialog.confirm(`Permanently delete file: ${e}`,{okText:"Delete",cancelText:"Cancel"}).then((n=>(wl().f[153]++,wl().s[719]++,r.A.post(`/script-api/scripts/${e}/delete`,{data:{}})))).then((n=>{wl().f[154]++,wl().s[720]++,this.removeFromRecent(e),wl().s[721]++,this.newFile()})).catch((e=>{if(wl().f[155]++,wl().s[722]++,e){wl().b[132][0]++;const n=(wl().s[723]++,{text:`Failed Multi-Delete. ${e}`,type:"error"});wl().s[724]++,this.$emit("alert",n)}else wl().b[132][1]++}))},download(){wl().f[156]++;const e=(wl().s[725]++,new Blob([this.editor.getValue()],{type:"text/plain"})),n=(wl().s[726]++,document.createElement("a"));wl().s[727]++,n.href=URL.createObjectURL(e),wl().s[728]++,n.setAttribute("download",this.filename),wl().s[729]++,n.click()},syntaxCheck(){wl().f[157]++,wl().s[730]++,r.A.post(`/script-api/scripts/${this.filename}/syntax`,{data:this.editor.getValue(),headers:{Accept:"application/json","Content-Type":"plain/text"}}).then((e=>{wl().f[158]++,wl().s[731]++,this.information.title=e.data.title,wl().s[732]++,this.information.text=JSON.parse(e.data.description),wl().s[733]++,this.information.show=!0}))},showInstrumented(){wl().f[159]++,wl().s[734]++,r.A.post(`/script-api/scripts/${this.filename}/instrumented`,{data:this.editor.getValue(),headers:{Accept:"application/json","Content-Type":"plain/text"}}).then((e=>{wl().f[160]++,wl().s[735]++,this.information.title=e.data.title,wl().s[736]++,this.information.text=JSON.parse(e.data.description),wl().s[737]++,this.information.show=!0}))},showCallStack(){wl().f[161]++,wl().s[738]++,r.A.post(`/script-api/running-script/${this.scriptId}/backtrace`)},toggleDebug(){wl().f[162]++,wl().s[739]++,this.showDebug=!this.showDebug},toggleDisconnect(){wl().f[163]++,wl().s[740]++,this.showDisconnect=!this.showDisconnect},debugKeydown(e){wl().f[164]++,wl().s[741]++,"Escape"===e.key?(wl().b[133][0]++,wl().s[742]++,this.debug="",wl().s[743]++,this.debugHistoryIndex=this.debugHistory.length):(wl().b[133][1]++,wl().s[744]++,"Enter"===e.key?(wl().b[134][0]++,wl().s[745]++,this.debugHistory.push(this.debug),wl().s[746]++,this.debugHistoryIndex=this.debugHistory.length,wl().s[747]++,r.A.post(`/script-api/running-script/${this.scriptId}/debug`,{data:{args:this.debug}}),wl().s[748]++,this.debug=""):(wl().b[134][1]++,wl().s[749]++,"ArrowUp"===e.key?(wl().b[135][0]++,wl().s[750]++,this.debugHistoryIndex-=1,wl().s[751]++,this.debugHistoryIndex<0?(wl().b[136][0]++,wl().s[752]++,this.debugHistoryIndex=this.debugHistory.length-1):wl().b[136][1]++,wl().s[753]++,this.debug=this.debugHistory[this.debugHistoryIndex],wl().s[754]++,e.preventDefault()):(wl().b[135][1]++,wl().s[755]++,"ArrowDown"===e.key?(wl().b[137][0]++,wl().s[756]++,this.debugHistoryIndex+=1,wl().s[757]++,this.debugHistoryIndex>=this.debugHistory.length?(wl().b[138][0]++,wl().s[758]++,this.debugHistoryIndex=0):wl().b[138][1]++,wl().s[759]++,this.debug=this.debugHistory[this.debugHistoryIndex]):wl().b[137][1]++)))},removeAllMarkers:function(){wl().f[165]++;const e=(wl().s[760]++,this.editor.session.getMarkers());wl().s[761]++,Object.keys(e).filter((n=>(wl().f[166]++,wl().s[762]++,"fullLine"===e[n].type))).forEach((e=>(wl().f[167]++,wl().s[763]++,this.editor.session.removeMarker(e))))},confirmLocalUnlock:function(){wl().f[168]++,wl().s[764]++,this.$dialog.confirm("Are you sure you want to unlock this script for editing? If another user is editing this script, your changes might conflict with each other.",{okText:"Force Unlock",cancelText:"Cancel"}).then((()=>(wl().f[169]++,wl().s[765]++,this.lockedBy=null,wl().s[766]++,this.lockFile())))},lockFile:function(){return wl().f[170]++,wl().s[767]++,r.A.post(`/script-api/scripts/${this.filename}/lock`)},unlockFile:function(){wl().f[171]++,wl().s[768]++,wl().b[140][0]++,this.filename===kl||(wl().b[140][1]++,this.readOnly)?wl().b[139][1]++:(wl().b[139][0]++,wl().s[769]++,r.A.post(`/script-api/scripts/${this.filename}/unlock`))},screenId(e){return wl().f[172]++,wl().s[770]++,"scriptRunnerScreen"+e},closeScreen(e){wl().f[173]++;let n=(wl().s[771]++,0);for(screen of(wl().s[772]++,this.screens)){if(wl().s[773]++,screen.id==e){wl().b[141][0]++,wl().s[774]++,this.screens.splice(n,1),wl().s[775]++;break}wl().b[141][1]++,wl().s[776]++,n+=1}}}},Il=Rl;t(4879),t(7691);var Dl=(0,f.A)(Il,i,s,!1,null,"5587ac26",null);const $l=Dl.exports},9821:(e,n,t)=>{"use strict";t.d(n,{A:()=>u});var l=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v(" Details ")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("v-card-title",[e._v("\n "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+"\n ")]),e._v(" "),n("v-card-subtitle",[e._v(e._s(e.details.description))]),e._v(" "),n("v-card-text",[n("v-container",{attrs:{fluid:""}},["tlm"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Item Values")]),e._v(" "),n("v-col"),e._v(" "),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Raw Value")]),e._v(" "),n("v-col",[e._v(e._s(e.rawValue))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),e._v(" "),n("v-col",[e._v(e._s(e.convertedValue))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),e._v(" "),n("v-col",[e._v(e._s(e.formattedValue))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),e._v(" "),n("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),e._v(" "),n("v-col",[e._v(e._s(e.details.bit_offset))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),e._v(" "),n("v-col",[e._v(e._s(e.details.bit_size))])],1),e._v(" "),e.details.array_size?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),e._v(" "),n("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),e._v(" "),n("v-col",[e._v(e._s(e.details.data_type))])],1),e._v(" "),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),e._v(" "),n("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),e._v(" "),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),e._v(" "),n("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),e._v(" "),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),e._v(" "),n("v-col",[e._v(e._s(e.details.default))])],1):e._e(),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),e._v(" "),n("v-col",[e._v(e._s(e.details.format_string))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e._v(" "),e.details.read_conversion?n("v-col",[e._v("\n Class: "+e._s(e.details.read_conversion.class)+"\n "),n("br"),e._v("\n Params:\n "+e._s(e.details.read_conversion.params)+"\n ")]):n("v-col")],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e._v(" "),e.details.write_conversion?n("v-col",[e._v("\n Class: "+e._s(e.details.write_conversion.class)+"\n "),n("br"),e._v("\n Params:\n "+e._s(e.details.write_conversion.params)+"\n ")]):n("v-col")],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),e._v(" "),n("v-col",[e._v(e._s(e.details.id_value))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),e._v(" "),n("v-col",[e._v(e._s(e.details.units_full))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),e._v(" "),n("v-col",[e._v(e._s(e.details.units))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),e._v(" "),n("v-col",[e._v(e._s(e.details.endianness))])],1),e._v(" "),e.details.states?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),e._v(" "),n("v-col"),e._v(" "),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.states,(function(t,l){return n("v-row",{key:l,attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(l))]),e._v(" "),n("v-col",[e._v(e._s(t.value))])],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),e._v(" "),n("v-col",[e._v("None")])],1),e._v(" "),e.details.limits?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),e._v(" "),n("v-col"),e._v(" "),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.limits,(function(t,l){return n("v-row",{key:l,attrs:{"no-gutters":""}},["enabled"===l?n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Enabled")]):e._e(),e._v(" "),"enabled"===l?n("v-switch",{attrs:{dense:"","hide-details":""},on:{change:e.changeLimitsEnabled},model:{value:e.details.limits.enabled,callback:function(n){e.$set(e.details.limits,"enabled",n)},expression:"details.limits.enabled"}}):e._e(),e._v(" "),"enabled"!==l?n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(l))]):e._e(),e._v(" "),"enabled"!==l?n("div",[e._v(e._s(e.formatLimit(t)))]):e._e(),e._v(" "),n("v-col")],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),e._v(" "),n("v-col",[e._v("None")])],1),e._v(" "),e.details.meta?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),e._v(" "),n("v-col"),e._v(" "),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.meta,(function(t,l){return n("v-row",{key:l,attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(l))]),e._v(" "),n("v-col",[e._v(e._s(t))])],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),e._v(" "),n("v-col",[e._v("None")])],1)],1)],1)],1)],1)},i=[],s=t(4364);const o={props:{type:{default:"tlm",validator:function(e){return-1!==["cmd","tlm"].indexOf(e)}},targetName:String,packetName:String,itemName:String,value:Boolean},data(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}}},created(){this.api=new s.x},beforeDestroy(){clearInterval(this.updater),this.updater=null},watch:{value:function(e,n){e?(this.requestDetails(),"tlm"===this.type&&(this.updater=setInterval((()=>{this.api.get_tlm_values([`${this.targetName}__${this.packetName}__${this.itemName}__RAW`,`${this.targetName}__${this.packetName}__${this.itemName}__CONVERTED`,`${this.targetName}__${this.packetName}__${this.itemName}__FORMATTED`,`${this.targetName}__${this.packetName}__${this.itemName}__WITH_UNITS`]).then((e=>{for(var n=0;n<e.length;n++){let t=null;if("String"===e[n][0]["json_class"]&&void 0!==e[n][0]["raw"]?t=e[n][0]["raw"]:"BLOCK"===this.details.data_type&&(t=e[n][0]),null!==t){t=t.slice(0,parseInt(this.details.bit_size)/8);let l=!1;t.length>64&&(l=!0),e[n][0]=Array.from(t.slice(0,64),(function(e){return" "===e?"20":("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase(),l&&(e[n][0]+="...")}}this.details.data_type.includes("INT")&&!this.details.array_size?this.rawValue=`${e[0][0]} (0x${e[0][0].toString(16).toUpperCase()})`:this.rawValue=e[0][0],this.convertedValue=e[1][0],this.formattedValue=e[2][0],this.unitsValue=e[3][0]}))}),1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{async requestDetails(){"tlm"===this.type?await this.api.get_item(this.targetName,this.packetName,this.itemName).then((e=>{if(this.details=e,0===Object.keys(e.limits).length)this.details.limits=null;else{let n=!1;e.limits.enabled&&(n=!0,delete e.limits.enabled),this.details.limits={enabled:n,...e.limits}}})):await this.api.get_parameter(this.targetName,this.packetName,this.itemName).then((e=>{this.details=e}))},async changeLimitsEnabled(){this.details.limits.enabled?await this.api.enable_limits(this.targetName,this.packetName,this.itemName):await this.api.disable_limits(this.targetName,this.packetName,this.itemName)},formatLimit(e){return e.hasOwnProperty("green_low")?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high+" GL/"+e.green_low+" GH/"+e.green_high:e.hasOwnProperty("red_low")?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high:e}}},a=o;t(1727);var r=t(2401),c=(0,r.A)(a,l,i,!1,null,"6659f972",null);const u=c.exports},2056:(e,n,t)=>{"use strict";t.d(n,{A:()=>R});var l=function(){var e=this,n=e._self._c;return n("div",[n("v-card",{nativeOn:{click:function(n){return e.$emit("click")}}},[n("v-system-bar",{directives:[{name:"show",rawName:"v-show",value:!e.hideSystemBar,expression:"!hideSystemBar"}],class:e.selectedGraphId===e.id?"active":"inactive"},[n("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}],staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(n){e.errorDialog=!0}}},[e._v("mdi-alert")])],1)]}}])},[e._v(" "),n("span",[e._v("Errors")])])],1),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"edit-graph-icon"},on:{click:function(n){e.editGraph=!0}}},[e._v("\n mdi-pencil\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Edit ")])]),e._v(" "),n("v-spacer"),e._v(" "),n("span",[e._v(e._s(e.title))]),e._v(" "),n("v-spacer"),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}],attrs:{"data-test":"collapse-all"},on:{click:e.collapseAll}},[e._v("\n mdi-arrow-collapse\n ")]),e._v(" "),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}],attrs:{"data-test":"expand-all"},on:{click:e.expandAll}},[e._v("\n mdi-arrow-expand\n ")])],1)]}}])},[e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}]},[e._v(" Collapse ")]),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}]},[e._v(" Expand ")])])],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}],attrs:{"data-test":"collapse-width"},on:{click:e.collapseWidth}},[e._v("\n mdi-arrow-collapse-horizontal\n ")]),e._v(" "),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}],attrs:{"data-test":"expand-width"},on:{click:e.expandWidth}},[e._v("\n mdi-arrow-expand-horizontal\n ")])],1)]}}])},[e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}]},[e._v(" Collapse Width ")]),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}]},[e._v(" Expand Width ")])])],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}],attrs:{"data-test":"collapse-height"},on:{click:e.collapseHeight}},[e._v("\n mdi-arrow-collapse-vertical\n ")]),e._v(" "),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}],attrs:{"data-test":"expand-height"},on:{click:e.expandHeight}},[e._v("\n mdi-arrow-expand-vertical\n ")])],1)]}}])},[e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}]},[e._v(" Collapse Height ")]),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}]},[e._v(" Expand Height ")])])],1),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-minimize\n ")]),e._v(" "),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-maximize\n ")])],1)]}}])},[e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize ")]),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize ")])]),e._v(" "),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("div",e._g(e._b({},"div",l,!1),t),[n("v-icon",{attrs:{"data-test":"close-graph-icon"},on:{click:function(n){return e.$emit("close-graph")}}},[e._v("\n mdi-close-box\n ")])],1)]}}])},[e._v(" "),n("span",[e._v(" Close ")])])],1),e._v(" "),n("v-expand-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"chart",staticClass:"pa-1",attrs:{id:"chart"}},[n("div",{attrs:{id:`chart${e.id}`}}),e._v(" "),n("div",{attrs:{id:"betweenCharts"}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showOverview,expression:"showOverview"}],attrs:{id:`overview${e.id}`}})])])],1),e._v(" "),n("v-dialog",{attrs:{"max-width":"700"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.$emit("input")},input:function(n){return e.editGraphClose()}},model:{value:e.editGraph,callback:function(n){e.editGraph=n},expression:"editGraph"}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Edit Graph")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("v-card",{staticClass:"pa-3"},[n("v-tabs",{staticClass:"ml-3",model:{value:e.tab,callback:function(n){e.tab=n},expression:"tab"}},[n("v-tab",{key:0},[e._v(" Settings ")]),e._v(" "),n("v-tab",{key:1},[e._v(" Scale / Lines ")]),e._v(" "),n("v-tab",{key:1},[e._v(" Items ")])],1),e._v(" "),n("v-tabs-items",{model:{value:e.tab,callback:function(n){e.tab=n},expression:"tab"}},[n("v-tab-item",{key:0,staticClass:"tab",attrs:{eager:"true"}},[n("div",{staticClass:"edit-box"},[n("v-row",[n("v-col",[n("v-card-text",{staticClass:"pa-0"},[n("v-text-field",{staticClass:"pb-2",attrs:{label:"Title","hide-details":"","data-test":"edit-graph-title"},model:{value:e.title,callback:function(n){e.title=n},expression:"title"}})],1)],1),e._v(" "),n("v-col",{staticStyle:{}},[n("v-select",{staticStyle:{"max-width":"280px"},attrs:{label:"Legend Position",dense:"",outlined:"","hide-details":"",items:e.legendPositions,"data-test":"edit-legend-position"},model:{value:e.legendPosition,callback:function(n){e.legendPosition=n},expression:"legendPosition"}})],1)],1)],1),e._v(" "),n("div",{staticClass:"edit-box"},[n("v-card-text",{staticClass:"pa-0"},[e._v("\n Select a start date/time for the graph. Leave blank for start\n now.\n ")]),e._v(" "),n("date-time-chooser",{attrs:{required:!1,"date-label":"Start Date","time-label":"Start Time","date-time":e.graphStartDateTime},on:{"date-time":function(n){e.graphStartDateTime=n}}}),e._v(" "),n("v-card-text",{staticClass:"pa-0"},[e._v("\n Select a end date/time for the graph. Leave blank for continuous\n real-time graphing.\n ")]),e._v(" "),n("date-time-chooser",{attrs:{"date-label":"End Date","time-label":"End Time","date-time":e.graphEndDateTime},on:{"date-time":function(n){e.graphEndDateTime=n}}})],1)]),e._v(" "),n("v-tab-item",{key:1,staticClass:"tab",attrs:{eager:"true"}},[n("div",{staticClass:"edit-box"},[n("v-card-text",{staticClass:"pa-0"},[e._v("\n Set a min or max Y value to override automatic scaling\n ")]),e._v(" "),n("v-row",{attrs:{dense:""}},[n("v-col",{staticClass:"px-2"},[n("v-text-field",{attrs:{"hide-details":"",label:"Min Y Axis (Optional)",type:"number","data-test":"edit-graph-min-y"},model:{value:e.graphMinY,callback:function(n){e.graphMinY=n},expression:"graphMinY"}})],1),e._v(" "),n("v-col",{staticClass:"px-2"},[n("v-text-field",{attrs:{"hide-details":"",label:"Max Y Axis (Optional)",type:"number","data-test":"edit-graph-max-y"},model:{value:e.graphMaxY,callback:function(n){e.graphMaxY=n},expression:"graphMaxY"}})],1)],1)],1),e._v(" "),n("div",{staticClass:"edit-box"},[n("v-card-text",{staticClass:"pa-0"},[e._v("Add horizontal lines to the graph")]),e._v(" "),n("v-data-table",{attrs:{"item-key":"lineId","data-test":"edit-graph-lines",headers:e.lineHeaders,items:e.lines,"items-per-page":5,"footer-props":{itemsPerPageOptions:[5]}},scopedSlots:e._u([{key:"item.yValue",fn:function(t){return[n("v-edit-dialog",{attrs:{"return-value":t.item.yValue},on:{"update:returnValue":function(n){return e.$set(t.item,"yValue",n)},"update:return-value":function(n){return e.$set(t.item,"yValue",n)}},scopedSlots:e._u([{key:"input",fn:function(){return[n("v-text-field",{attrs:{label:"Edit","single-line":"",counter:""},model:{value:t.item.yValue,callback:function(n){e.$set(t.item,"yValue",n)},expression:"props.item.yValue"}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(t.item.yValue)+"\n ")])]}},{key:"item.color",fn:function(t){return[n("v-edit-dialog",{attrs:{"return-value":t.item.color},on:{"update:returnValue":function(n){return e.$set(t.item,"color",n)},"update:return-value":function(n){return e.$set(t.item,"color",n)}},scopedSlots:e._u([{key:"input",fn:function(){return[n("v-select",{attrs:{outlined:"","hide-details":"",label:"Color",items:e.colors},model:{value:t.item.color,callback:function(n){e.$set(t.item,"color",n)},expression:"props.item.color"}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(t.item.color)+"\n ")])]}},{key:"footer.prepend",fn:function(){return[n("v-btn",{staticStyle:{"margin-top":"3px"},attrs:{small:""},on:{click:e.addLine}},[e._v("\n New Horizontal Line\n ")]),e._v("\n Click to edit values, Enter to save\n "),n("v-spacer")]},proxy:!0},{key:"item.actions",fn:function({item:t}){return[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:l,attrs:i}){return[n("div",e._g(e._b({},"div",i,!1),l),[n("v-btn",{attrs:{icon:"","data-test":`delete-line-icon${t.lineId}`},on:{click:()=>e.removeLine(t)}},[n("v-icon",[e._v("mdi-delete")])],1)],1)]}}],null,!0)},[e._v(" "),n("span",[e._v("Remove")])])]}},{key:"no-data",fn:function(){return[n("span",[e._v("Currently no horizontal lines on this graph")])]},proxy:!0}])})],1)]),e._v(" "),n("v-tab-item",{key:2,staticClass:"tab",attrs:{eager:"true"}},[n("v-data-table",{staticClass:"elevation-1 my-2",attrs:{"item-key":"itemId","data-test":"edit-graph-items",headers:e.itemHeaders,items:e.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:e._u([{key:"item.actions",fn:function({item:t}){return[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:l,attrs:i}){return[n("div",e._g(e._b({},"div",i,!1),l),[n("v-btn",{attrs:{icon:"","data-test":`delete-item-icon${t.itemId}`},on:{click:()=>e.removeItems([t])}},[n("v-icon",[e._v("mdi-delete")])],1)],1)]}}],null,!0)},[e._v(" "),n("span",[e._v("Remove")])])]}},{key:"no-data",fn:function(){return[n("span",[e._v("Currently no items on this graph")])]},proxy:!0}])})],1)],1),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{attrs:{color:"primary"},on:{click:e.editGraphClose}},[e._v(" Ok ")])],1)],1)],1),e._v(" "),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(n){e.errorDialog=n},expression:"errorDialog"}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Errors")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("v-card",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"pb-2",attrs:{readonly:"","hide-details":"",label:"Graph Title"},model:{value:e.title,callback:function(n){e.title=n},expression:"title"}})],1),e._v(" "),n("v-row",{staticClass:"my-3"},[n("v-textarea",{attrs:{readonly:"",rows:"8",value:e.error}})],1),e._v(" "),n("v-row",[n("v-btn",{attrs:{block:""},on:{click:e.clearErrors}},[e._v(" Clear ")])],1)],1)],1),e._v(" "),e.editGraphMenu?n("v-menu",{attrs:{"position-x":e.editGraphMenuX,"position-y":e.editGraphMenuY,absolute:"","offset-y":""},model:{value:e.editGraphMenu,callback:function(n){e.editGraphMenu=n},expression:"editGraphMenu"}},[n("v-list",[n("v-list-item",{on:{click:function(n){e.editGraph=!0}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("\n Edit "+e._s(e.title)+"\n ")])],1)],1)],1):e._e(),e._v(" "),e.editItem?n("graph-edit-item-dialog",{attrs:{colors:e.colors,item:e.selectedItem},on:{changeColor:e.changeColor,changeLimits:e.changeLimits,cancel:function(n){e.editItem=!1},close:e.closeEditItem},model:{value:e.editItem,callback:function(n){e.editItem=n},expression:"editItem"}}):e._e(),e._v(" "),e.itemMenu?n("v-menu",{attrs:{"position-x":e.itemMenuX,"position-y":e.itemMenuY,absolute:"","offset-y":""},model:{value:e.itemMenu,callback:function(n){e.itemMenu=n},expression:"itemMenu"}},[n("v-list",{attrs:{nav:"",dense:""}},[n("v-subheader",[e._v("\n "+e._s(e.selectedItem.targetName)+"\n "+e._s(e.selectedItem.packetName)+"\n "+e._s(e.selectedItem.itemName)+"\n ")]),e._v(" "),n("v-list-item",{on:{click:function(n){e.editItem=!0}}},[n("v-list-item-icon",[n("v-icon",[e._v("mdi-pencil")])],1),e._v(" "),n("v-list-item-content",[n("v-list-item-title",[e._v(" Edit ")])],1)],1),e._v(" "),n("v-list-item",{on:{click:function(n){return e.removeItems([e.selectedItem])}}},[n("v-list-item-icon",[n("v-icon",[e._v("mdi-delete")])],1),e._v(" "),n("v-list-item-content",[n("v-list-item-title",[e._v(" Delete ")])],1)],1)],1)],1):e._e(),e._v(" "),e.legendMenu?n("v-menu",{attrs:{"position-x":e.legendMenuX,"position-y":e.legendMenuY,absolute:"","offset-y":""},model:{value:e.legendMenu,callback:function(n){e.legendMenu=n},expression:"legendMenu"}},[n("v-list",[n("v-list-item",{on:{click:function(n){return e.moveLegend("top")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Top")])],1),e._v(" "),n("v-list-item",{on:{click:function(n){return e.moveLegend("bottom")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Bottom")])],1),e._v(" "),n("v-list-item",{on:{click:function(n){return e.moveLegend("left")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Left")])],1),e._v(" "),n("v-list-item",{on:{click:function(n){return e.moveLegend("right")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend RIght")])],1)],1)],1):e._e()],1)},i=[],s=(t(9375),t(8605),t(7010),function(){var e=this,n=e._self._c;return n("div",[n("v-row",[n("v-col",[n("v-menu",{attrs:{"close-on-content-click":"",transition:"scale-transition","offset-y":"","max-width":"290px","min-width":"290px"},scopedSlots:e._u([{key:"activator",fn:function({on:t}){return[n("v-text-field",e._g({attrs:{label:e.dateLabel,name:`date${Date.now()}`,rules:e.dateRules,type:"date","data-test":"date-chooser"},model:{value:e.date,callback:function(n){e.date=n},expression:"date"}},t))]}}])})],1),e._v(" "),n("v-col",[n("v-text-field",{attrs:{label:e.timeLabel,name:`time${Date.now()}`,rules:e.timeRules,type:"time",step:"1","data-test":"time-chooser"},on:{change:e.onChange},model:{value:e.time,callback:function(n){e.time=n},expression:"time"}})],1)],1)],1)}),o=[],a=t(6375),r=t(4554),c=t(2509),u=t(3769);const d={props:{required:{type:Boolean,default:!0},dateTime:{type:Number,default:null},dateLabel:{type:String,default:"Date"},timeLabel:{type:String,default:"Time"}},data(){return{date:null,time:null,rules:{required:e=>!!e||"Required",date:e=>{if(!e)return!0;try{return(0,a.f)((0,r.qg)(e,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch(n){return"Invalid date (YYYY-MM-DD)"}},time:e=>{if(!e)return!0;try{return(0,a.f)((0,r.qg)(e,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch(n){return"Invalid time (HH:MM:SS)"}}}}},computed:{dateRules(){let e=[this.rules.date];return(this.time||this.required)&&e.push(this.rules.required),e},timeRules(){let e=[this.rules.time];return(this.date||this.required)&&e.push(this.rules.required),e}},created(){if(this.dateTime){let e=(0,c.a)(this.dateTime/1e6);this.date=(0,u.GP)(e,"yyyy-MM-dd"),this.time=(0,u.GP)(e,"HH:mm:ss")}},methods:{onChange(){this.date&&this.time?this.$emit("date-time",this.date+" "+this.time):this.$emit("date-time",null)}}},m=d;var A=t(2401),p=(0,A.A)(m,s,o,!1,null,null,null);const h=p.exports;var v=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"400"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.success()}},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-card-title",{staticClass:"mb-2"},[e._v("Edit Item")]),e._v(" "),n("v-card-text",[n("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Value Type",items:e.valueTypes},model:{value:e.editItem.valueType,callback:function(n){e.$set(e.editItem,"valueType",n)},expression:"editItem.valueType"}}),e._v(" "),n("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Reduction",items:e.reduction},model:{value:e.editItem.reduced,callback:function(n){e.$set(e.editItem,"reduced",n)},expression:"editItem.reduced"}}),e._v(" "),n("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Reduced Type",items:e.reducedTypes,disabled:"DECOM"===e.currentReduced},model:{value:e.editItem.reducedType,callback:function(n){e.$set(e.editItem,"reducedType",n)},expression:"editItem.reducedType"}}),e._v(" "),n("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Color",items:e.colors},on:{change:function(n){return e.$emit("changeColor",n)}},model:{value:e.editItem.color,callback:function(n){e.$set(e.editItem,"color",n)},expression:"editItem.color"}}),e._v(" "),e.limitsNames.length>1?n("div",[n("v-select",{attrs:{outlined:"","hide-details":"",label:"Display Limits",items:e.limitsNames},on:{change:function(n){return e.$emit("changeLimits",e.limits[e.limitsName])}},model:{value:e.limitsName,callback:function(n){e.limitsName=n},expression:"limitsName"}}),e._v(" "),n("div",{staticClass:"pa-3"},[e._v(e._s(e.limitsName)+": "+e._s(e.limits[e.limitsName]))])],1):e._e()],1),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:function(n){return e.$emit("cancel")}}},[e._v(" Cancel ")]),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(n){return e.$emit("close",e.editItem)}}},[e._v("\n Ok\n ")])],1)],1)],1)},f=[],g=t(4364);const C={props:{value:Boolean,item:{type:Object,required:!0},colors:{type:Array,required:!0}},data:function(){return{editItem:null,limitsName:"NONE",limits:{NONE:[]},valueTypes:["CONVERTED","RAW"],reduction:[{text:"NONE",value:"DECOM"},{text:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{text:"REDUCED_HOUR",value:"REDUCED_HOUR"},{text:"REDUCED_DAY",value:"REDUCED_DAY"}],reducedTypes:["MIN","MAX","AVG","STDDEV"]}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}},limitsNames(){return Object.keys(this.limits)}},async created(){this.editItem={...this.item},await this.api,this.api=(new g.x).get_item(this.item.targetName,this.item.packetName,this.item.itemName).then((e=>{for(const[n,t]of Object.entries(e.limits))Object.keys(t).includes("red_low")&&this.$set(this.limits,n,Object.values(t));this.limitsName=Object.keys(this.limits).find((e=>this.limits[e]+""===this.editItem.limits+""))}))}},b=C;var _=(0,A.A)(b,v,f,!1,null,null,null);const y=_.exports;var w=t(458),x=t(5914),k=t.n(x),S=t(2702);t(9037);const M={components:{DateTimeChooser:h,GraphEditItemDialog:y},props:{id:{type:Number,required:!0},selectedGraphId:{type:Number},state:{type:String,required:!0},startTime:{type:Number},secondsGraphed:{type:Number,required:!0},pointsSaved:{type:Number,required:!0},pointsGraphed:{type:Number,required:!0},refreshIntervalMs:{type:Number,default:200},hideSystemBar:{type:Boolean,default:!1},hideOverview:{type:Boolean,default:!1},sparkline:{type:Boolean,default:!1},initialItems:{type:Array},height:{type:Number},width:{type:Number}},data(){return{tab:0,itemHeaders:[{text:"Target Name",value:"targetName"},{text:"Packet Name",value:"packetName"},{text:"Item Name",value:"itemName"},{text:"Actions",value:"actions",sortable:!1}],lines:[],lineHeaders:[{text:"Y Value",value:"yValue"},{text:"Color",value:"color"},{text:"Actions",value:"actions",sortable:!1}],active:!0,expand:!0,fullWidth:!0,fullHeight:!0,graph:null,editGraph:!1,editGraphMenu:!1,editGraphMenuX:0,editGraphMenuY:0,editItem:!1,itemMenu:!1,itemMenuX:0,itemMenuY:0,legendMenu:!1,legendMenuX:0,legendMenuY:0,legendPosition:"bottom",legendPositions:["top","bottom","left","right"],selectedItem:null,showOverview:!this.hideOverview,title:"",overview:null,data:[[]],dataChanged:!1,timeout:null,graphMinY:"",graphMaxY:"",graphStartDateTime:null,graphEndDateTime:null,indexes:{},items:this.initialItems||[],limitsValues:[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new S.A,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colorIndex:0,colors:["#00c7cb","#938bdb","#4dacff","lime","darkorange","red","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white","black"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},editItems:function(){if(!this.items)return[];let e=0;return this.items.map((n=>(e+=1,{...n,itemId:e})))},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null}},created(){this.title=`Graph ${this.id}`;for(const[e,n]of this.items.entries())this.data.push([]),this.indexes[this.subscriptionKey(n)]=e+1,void 0===n.color&&(n.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0)},mounted(){const{chartSeries:e,overviewSeries:n}=this.items.reduce(((e,n)=>{const t={spanGaps:!0};return e.chartSeries.push({...t,item:n,label:this.formatLabel(n),stroke:(e,n)=>this.items[n-1].color,width:2,value:(e,n)=>"string"===typeof n||isNaN(n)?"NaN":null==n?"--":n.toFixed(3)}),e.overviewSeries.push({...t}),e}),{chartSeries:[],overviewSeries:[]});let t={};if(this.sparkline)this.hideSystemBar=!0,this.hideOverview=!0,this.showOverview=!1,t={width:this.width,height:this.height,pxAlign:!1,cursor:{show:!1},select:{show:!1},legend:{show:!1},scales:{x:{time:!1}},axes:[{show:!1},{show:!1}],series:[{},{stroke:"white"}]},this.graph=new w.A(t,this.data,document.getElementById(`chart${this.id}`));else{t={...this.getSize("chart"),...this.getScales(),...this.getAxes("chart"),plugins:[this.linesPlugin()],series:[{label:"Time",value:(e,n)=>null==n?"--":(0,u.GP)((0,c.a)(1e3*n),"yyyy-MM-dd HH:mm:ss")},...e],cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"},bind:{mouseup:(e,n,t)=>n=>{"pause"===this.state&&0===e.select.width&&this.$emit("start"),t(n)}}},hooks:{setScale:[(e,n)=>{if("x"===n&&!this.zoomOverview&&this.overview){this.zoomChart=!0;let n=Math.round(this.overview.valToPos(e.scales.x.min,"x")),t=Math.round(this.overview.valToPos(e.scales.x.max,"x"));this.overview.setSelect({left:n,width:t-n}),this.zoomChart=!1}}],setSelect:[e=>{"start"===this.state&&e.select.width>0&&this.$emit("pause")}],ready:[e=>{let n=e.root.querySelector(".u-over");n.addEventListener("contextmenu",(e=>{e.preventDefault(),this.itemMenu=!1,this.legendMenu=!1,this.editGraphMenuX=e.clientX,this.editGraphMenuY=e.clientY,this.editGraphMenu=!0})),n.addEventListener("mouseenter",(e=>{this.$emit("resize")})),n.addEventListener("mouseleave",(e=>{this.$emit("resize")}));let t=e.root.querySelector(".u-legend");t.addEventListener("contextmenu",(n=>{n.preventDefault(),this.editGraphMenu=!1,this.legendMenu=!1,this.itemMenuX=n.clientX,this.itemMenuY=n.clientY;let l=n.target.closest(".u-series"),i=Array.prototype.slice.call(t.childNodes[0].childNodes).indexOf(l),s=e.series[i];s.item?(this.selectedItem=s.item,this.itemMenu=!0):(this.itemMenu=!1,this.legendMenuX=n.clientX,this.legendMenuY=n.clientY,this.legendMenu=!0)}))}]}},this.graph=new w.A(t,this.data,document.getElementById(`chart${this.id}`));const l={...this.getSize("overview"),...this.getScales(),...this.getAxes("overview"),series:[...n],cursor:{y:!1,points:{show:!1},drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[e=>{if(!this.zoomChart){"start"===this.state&&e.select.width>0&&this.$emit("pause"),this.zoomOverview=!0;let n=e.posToVal(e.select.left,"x"),t=e.posToVal(e.select.left+e.select.width,"x");this.graph.setScale("x",{min:n,max:t}),this.zoomOverview=!1}}]}};this.overview=new w.A(l,this.data,document.getElementById(`overview${this.id}`)),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.handleResize)}"stop"!==this.state&&this.startGraph()},beforeDestroy:function(){this.stopGraph(),this.cable.disconnect(),window.removeEventListener("resize",this.handleResize)},watch:{state:function(e,n){switch(e){case"start":"stop"===n&&this.startGraph();break;case"stop":this.stopGraph();break}},data:function(e,n){this.dataChanged=!0},graphMinY:function(e,n){let t=parseFloat(e);isNaN(t)||(this.graphMinY=t),this.setGraphRange()},graphMaxY:function(e,n){let t=parseFloat(e);isNaN(t)||(this.graphMaxY=t),this.setGraphRange()},graphStartDateTime:function(e,n){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphStartDateTime=1e6*new Date(this.graphStartDateTime).getTime())},graphEndDateTime:function(e,n){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphEndDateTime=1e6*new Date(this.graphEndDateTime).getTime())}},methods:{startGraph:function(){this.subscribe(),this.timeout=setTimeout((()=>{this.updateTimeout()}),this.refreshIntervalMs)},stopGraph:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},updateTimeout:function(){this.updateGraphData(),this.timeout=setTimeout((()=>{this.updateTimeout()}),this.refreshIntervalMs)},updateGraphData:function(){if("pause"===this.state||!this.dataChanged)return;this.graph.setData(this.data),this.overview&&this.overview.setData(this.data);let e=this.data[0][this.data[0].length-1],n=this.data[0][this.data[0].length-this.pointsGraphed],t=this.data[0][0];t<e-this.secondsGraphed&&(t=e-this.secondsGraphed),n>t&&(t=n),this.graph.setScale("x",{min:t,max:e}),this.dataChanged=!1},addLine(){this.lines.push({yValue:0,color:"white"})},removeLine(e){let n=this.lines.indexOf(e);this.lines.splice(n,1)},formatLabel(e){if("CONVERTED"===e.valueType&&"DECOM"===e.reduced)return e.itemName;{let n="";return"CONVERTED"!==e.valueType&&(n+=e.valueType),"DECOM"!==e.reduced&&(""!==n&&(n+=" "),n+=`${e.reduced.split("_")[1]} ${e.reducedType}`),`${e.itemName} (${n})`}},moveLegend:function(e){switch(e){case"bottom":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.remove("top-legend");break;case"top":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("top-legend");break;case"left":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.add("side-legend"),this.graph.root.classList.add("left-legend");break;case"right":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("side-legend");break}this.legendPosition=e,this.resize()},clearErrors:function(){this.errors=[]},editGraphClose:function(){if(this.editGraph=!1,this.needToUpdate){if(null==this.subscription)this.startGraph();else{let e=JSON.parse(JSON.stringify(this.items));this.removeItems(e),setTimeout((()=>{this.addItems(e)}),0)}this.needToUpdate=!1}this.moveLegend(this.legendPosition),this.$emit("edit")},handleResize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview"))},resize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview")),this.$emit("resize",this.id)},expandAll:function(){this.fullWidth=!0,this.fullHeight=!0,this.resize()},collapseAll:function(){this.fullWidth=!1,this.fullHeight=!1,this.resize()},expandWidth:function(){this.fullWidth=!0,this.resize()},collapseWidth:function(){this.fullWidth=!1,this.resize()},expandHeight:function(){this.fullHeight=!0,this.resize()},collapseHeight:function(){this.fullHeight=!1,this.resize()},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-graph",this.id)},setGraphRange:function(){let e=.1;(this.graphMinY||0===this.graphMinY||this.graphMaxY||0===this.graphMaxY)&&(e=0),this.graph.scales.y.range=(n,t,l)=>{let i=t;(this.graphMinY||0===this.graphMinY)&&(i=this.graphMinY);let s=l;return(this.graphMaxY||0===this.graphMaxY)&&(s=this.graphMaxY),w.A.rangeNum(i,s,e,!0)}},subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:e=>this.received(e),connected:()=>{this.addItemsToSubscription(this.items)},disconnected:()=>{this.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:(new Date).getTime()})},rejected:()=>{this.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:(new Date).getTime()})}}).then((e=>{this.subscription=e}))},getSize:function(e){const n=document.getElementById("openc3-nav-drawer"),t=n.classList.contains("v-navigation-drawer--open")?n.clientWidth:0;let l=0;if("right"===this.legendPosition||"left"===this.legendPosition){const e=document.getElementsByClassName("u-legend")[0];l=e.clientWidth}const i=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-t-l,s=Math.max(document.documentElement.clientHeight,window.innerHeight||0),o=document.getElementsByClassName("tgt-pkt-item-chooser")[0];let a=100;"overview"===e?this.fullHeight&&!this.hideOverview?this.showOverview=!0:this.showOverview=!1:o&&(a=s-o.clientHeight-a-250,this.fullHeight||(a=a/2+10));let r=i-62;return this.fullWidth||(r=r/2-10),{width:this.width||r,height:this.height||a}},getScales:function(){return{scales:{x:{range(e,n,t){return null==n?[1566453600,1566497660]:[n,t]}},y:{range(e,n,t){return null==n?[-100,100]:w.A.rangeNum(n,t,.1,!0)}}}}},getAxes:function(e){let n="rgba(0, 0, 0, .1)",t="black";return this.$vuetify.theme.dark&&(n="rgba(255, 255, 255, .1)",t="white"),{axes:[{stroke:t,grid:{show:!0,stroke:n,width:2}},{size:80,stroke:t,grid:{show:"overview"!==e,stroke:n,width:2},values(e,n){return(n.some((e=>e>=1e7))||n.every((e=>e<.01)))&&(n=n.map((e=>e.toExponential(3)))),n}}]}},closeEditItem:function(e){this.editItem=!1,(null!==this.graphEndDateTime&&this.selectedItem!==e||this.selectedItem.valueType!==e.valueType||this.selectedItem.reduced!==e.reduced||this.selectedItem.reducedType!==e.reducedType)&&this.changeItem(e)},changeColor:function(e){let n=this.subscriptionKey(this.selectedItem),t=this.indexes[n];this.items[t-1].color=e,this.selectedItem.color=e,this.graph.root.querySelectorAll(".u-marker")[t].style.borderColor=e},changeLimits:function(e){let n=this.subscriptionKey(this.selectedItem),t=this.indexes[n];this.items[t-1].limits=e,this.selectedItem.limits=e,this.limitsValues=e},linesPlugin:function(){return{hooks:{draw:e=>{const{ctx:n,bbox:t}=e,l=e.valToPos(e.scales.y.min,"y",!0),i=e.valToPos(e.scales.y.max,"y",!0),s=e.valToPos(this.limitsValues[0],"y",!0),o=e.valToPos(this.limitsValues[1],"y",!0),a=e.valToPos(this.limitsValues[2],"y",!0),r=e.valToPos(this.limitsValues[3],"y",!0);if(this.lines.forEach((l=>{e.scales.y.min<=l.yValue&&l.yValue<=e.scales.y.max&&(n.save(),n.beginPath(),n.strokeStyle=l.color,n.lineWidth=2,n.moveTo(t.left,e.valToPos(l.yValue,"y",!0)),n.lineTo(t.left+t.width,e.valToPos(l.yValue,"y",!0)),n.stroke(),n.restore())})),n.save(),n.beginPath(),n.fillStyle="rgba(255,0,0,0.15)",e.scales.y.min<this.limitsValues[0]){let e=s<i?i:s;n.fillRect(t.left,s,t.width,l-e)}if(e.scales.y.max>this.limitsValues[3]){let e=l<r?l:r;n.fillRect(t.left,i,t.width,e-i)}if(n.fillStyle="rgba(255,255,0,0.15)",e.scales.y.min<this.limitsValues[1]&&e.scales.y.max>this.limitsValues[0]){let e=o<i?i:o;n.fillRect(t.left,e,t.width,s-e)}if(e.scales.y.max>this.limitsValues[2]&&e.scales.y.min<this.limitsValues[3]){let e=l<r?l:r,i=l<a?l:a;n.fillRect(t.left,e,t.width,i-e)}if(n.fillStyle="rgba(0,255,0,0.15)",4===this.limitsValues.length){if(e.scales.y.min<this.limitsValues[2]&&e.scales.y.max>this.limitsValues[1]){let e=a<i?i:a,s=l<o?l:o;n.fillRect(t.left,e,t.width,s-e)}}else{const s=e.valToPos(this.limitsValues[4],"y",!0),r=e.valToPos(this.limitsValues[5],"y",!0);if(e.scales.y.min<this.limitsValues[4]&&e.scales.y.max>this.limitsValues[1]){let e=s<i?i:s;n.fillRect(t.left,e,t.width,o-e)}if(e.scales.y.max>this.limitsValues[5]&&e.scales.y.min<this.limitsValues[2]){let e=l<a?l:a,i=l<r?l:r;n.fillRect(t.left,e,t.width,i-e)}n.fillStyle="rgba(0,0,255,0.15)";let c=r<i?i:r,u=l<s?l:s;n.fillRect(t.left,c,t.width,u-c)}n.stroke(),n.restore()}}}},changeItem:function(e){this.removeItems([this.selectedItem]),this.selectedItem.valueType=e.valueType,this.selectedItem.reduced=e.reduced,this.selectedItem.reducedType=e.reducedType,setTimeout((()=>{this.addItems([this.selectedItem])}),0)},addItems:function(e,n="CONVERTED"){for(const l of e){l.valueType||(l.valueType=n),void 0===l.color&&(l.color=this.colors[this.colorIndex]),void 0===l.limits?l.limits=[]:l.limits.length>0&&(this.limitsValues=l.limits),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0),this.items.push(l);const e=this.data.length;this.graph.addSeries({spanGaps:!0,item:l,label:this.formatLabel(l),stroke:(e,n)=>this.items[n-1].color,width:2,value:(e,n)=>"string"===typeof n||isNaN(n)?"NaN":null==n?"--":Math.abs(n)<.01||Math.abs(n)>=1e7?n.toExponential(6):n.toFixed(6)},e),this.overview&&this.overview.addSeries({spanGaps:!0,stroke:(e,n)=>this.items[n-1].color},e);let t=Array(this.data[0].length);this.data.splice(e,0,t),this.indexes[this.subscriptionKey(l)]=e}let t=this.colors.indexOf(e[e.length-1].color);t&&(this.colorIndex=t+1),this.addItemsToSubscription(e),this.$emit("edit")},addItemsToSubscription:function(e=this.items){let n=this.startTime;this.graphStartDateTime&&(n=this.graphStartDateTime),this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((t=>{t&&OpenC3Auth.setTokens(),this.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey),start_time:n,end_time:this.graphEndDateTime})}))},removeItems:function(e){this.removeItemsFromSubscription(e);for(const n of e.map(this.subscriptionKey)){const e=this.reorderIndexes(n);this.items.splice(e-1,1),this.data.splice(e,1),this.graph.delSeries(e),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(e),this.overview.setData(this.data))}1===this.data.length&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data)),this.$emit("edit")},removeItemsFromSubscription:function(e=this.items){this.subscription&&this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey)})},reorderIndexes:function(e){let n=this.indexes[e];for(var t in delete this.indexes[e],this.indexes)this.indexes[t]>n&&(this.indexes[t]-=1);return n},received:function(e){this.cable.recordPing();for(let n=0;n<e.length;n++){let t=e[n].__time/1e9,l=e[0].length;if(0===l||t>e[0][l-1]){for(let e=0;e<this.data.length;e++)this.data[e].push(null);this.set_data_at_index(this.data[0].length-1,t,e[n])}else{let l=k()(this.data[0],t,this.bs_comparator);if(l>=0)this.set_data_at_index(l,t,e[n]);else{let i=-l-1;for(let e=0;e<this.data.length;e++)this.data[e].splice(i,0,null);this.set_data_at_index(i,t,e[n])}}}if(null==this.startTime&&this.data[0][0]){let e=1e9*this.data[0][0];this.$emit("started",e)}this.dataChanged=!0},bs_comparator:function(e,n){return e-n},set_data_at_index:function(e,n,t){this.data[0][e]=n;for(const[l,i]of Object.entries(t)){if("time"===l)continue;let n=this.indexes[l];if(n){let t=this.data[n];if(null!==i&&void 0!==i&&i.raw)t[e]=null;else if("string"===typeof i){if(t[e]=null,!l.includes("__RAW")){for(let e of this.items)if(this.subscriptionKey(e)===l){this.selectedItem=e;break}this.changeItem({valueType:"RAW",reduced:this.selectedItem.reduced,reducedType:this.selectedItem.reducedType})}}else t[e]=i}}},subscriptionKey:function(e){let n=`${e.reduced}__TLM__${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`;return"REDUCED_MINUTE"!==e.reduced&&"REDUCED_HOUR"!==e.reduced&&"REDUCED_DAY"!==e.reduced||(n+=`__${e.reducedType}`),n}}},E=M;t(6738),t(7346);var T=(0,A.A)(E,l,i,!1,null,"5efb6623",null);const R=T.exports},8687:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return n("div",{staticClass:"array-widget-container"},[n("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"array-widget"},on:{contextmenu:e.showContextMenu}}),e._v(" "),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,l){return n("v-list-item",{key:l,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),e._v(" "),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},i=[],s=(t(7010),t(2967)),o=t(9821);t(9471);const a={components:{DetailsDialog:o.A},data:function(){return{width:200,height:100,itemsPerRow:4,formatter:null}},mixins:[s.A],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.itemsPerRow=parseInt(this.parameters[6]))},methods:{getType:function(){var e="CONVERTED";return this.parameters[7]&&(e=this.parameters[7]),e},formatValue:function(e){var n="",t=" ",l="\n",i=0;if(Array.isArray(e)){for(const o of e){var s;this.formatter&&"nil"!==(null===(s=this.formatter)||void 0===s?void 0:s.toLowerCase())?n+=sprintf(this.formatter,o):n+=o,i+=1,i%this.itemsPerRow===0?(i=0,n+=l):n+=t}return n.trim()}return e}}},r=a;t(8644);var c=t(2401),u=(0,c.A)(r,l,i,!1,null,"5cd86706",null);const d=u.exports},171:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return n("div",{staticClass:"block-widget-container"},[n("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","no-resize":"","hide-details":"",placeholder:"Value",width:e.width,height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),e._v(" "),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,l){return n("v-list-item",{key:l,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),e._v(" "),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},i=[],s=(t(7010),t(2967)),o=t(9821);t(9471);const a={components:{DetailsDialog:o.A},data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[s.A],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.bytesPerWord=parseInt(this.parameters[6])),this.parameters[7]&&(this.wordsPerRow=parseInt(this.parameters[7])),this.parameters[8]&&(this.addrFormat=this.parameters[8])},methods:{getType:function(){var e="RAW";return this.parameters[9]&&(e=this.parameters[9]),e},formatValue:function(e){var n="";if(e&&e.raw){var t=" ",l="\n",i=0,s=0;const o=this.bytesPerWord*this.wordsPerRow;for(const a of e.raw)this.addrFormat&&0===i&&(n+=sprintf(this.addrFormat,s),s+=o),n+=sprintf(this.formatter,a),i+=1,i%o===0?(i=0,n+=l):i%this.bytesPerWord===0&&(n+=t)}else n=e;return n}}},r=a;t(8827);var c=t(2401),u=(0,c.A)(r,l,i,!1,null,"0872fd0e",null);const d=u.exports},4814:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var l=function(){var e=this,n=e._self._c;return n("div",[n("v-btn",{staticClass:"ma-1",style:e.computedStyle,attrs:{color:"primary"},on:{click:e.onClick}},[e._v("\n "+e._s(e.buttonText)+"\n ")]),e._v(" "),n("v-dialog",{attrs:{"max-width":"300"},model:{value:e.displaySendHazardous,callback:function(n){e.displaySendHazardous=n},expression:"displaySendHazardous"}},[n("v-card",[n("v-card-title",[e._v("Hazardous")]),e._v(" "),n("v-card-text",[n("div",{staticClass:"mx-1"},[n("v-row",{staticClass:"my-2"},[n("span",[e._v(" Warning: Command is Hazardous. Send? ")])]),e._v(" "),n("v-row",[n("v-spacer"),e._v(" "),n("v-btn",{attrs:{outlined:""},on:{click:e.cancelHazardousCmd}},[e._v(" Cancel ")]),e._v(" "),n("v-btn",{staticClass:"primary mx-1",on:{click:e.sendHazardousCmd}},[e._v("\n Send\n ")])],1)],1)])],1)],1)],1)},i=[],s=t(47);const o=s.A;var a=t(2401),r=(0,a.A)(o,l,i,!1,null,null,null);const c=r.exports},2430:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("svg",{attrs:{id:"canvas",width:e.width,height:e.height}},e._l(e.widgets,(function(t,l){return n(t.type,e._g({key:l,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)},i=[],s=t(9843);const o={mixins:[s.A],computed:{width(){return this.parameters[0]+"px"},height(){return this.parameters[1]+"px"}}},a=o;t(1497);var r=t(2401),c=(0,r.A)(a,l,i,!1,null,"17947dc7",null);const u=c.exports},6614:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("circle",{attrs:{cx:e.parameters[0],cy:e.parameters[1],r:e.parameters[3],fill:e.parameters[2]}})},i=[],s=t(9729);const o={mixins:[s.A]},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},8239:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return e.imageUrl?n("image",{attrs:{href:e.imageUrl,x:e.parameters[1],y:e.parameters[2],width:e.width,height:e.height},on:{click:e.clickHandler}}):e._e()},i=[],s=t(9729),o=t(7163);const a={mixins:[s.A,o.A],data:function(){return{imageUrl:null,screenTarget:null,screenName:null}},computed:{width:function(){return this.parameters[3]?`${this.parameters[3]}px`:"100%"},height:function(){return this.parameters[4]?`${this.parameters[4]}px`:"100%"}},created:function(){this.settings.forEach((e=>{"SCREEN"===e[0]&&(this.screenTarget=e[1],this.screenName=e[2])})),this.parameters[0].startsWith("http")?this.imageUrl=this.parameters[0]:this.getPresignedUrl(this.parameters[0]).then((e=>{this.imageUrl=e}))},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},r=a;var c=t(2401),u=(0,c.A)(r,l,i,!1,null,null,null);const d=u.exports},4653:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return n("g",[e._l(e.images,(function(t){return n("image",{directives:[{name:"show",rawName:"v-show",value:t.value==e.selectedValue,expression:"image.value == selectedValue"}],key:t.value,attrs:{href:t.url,x:t.x,y:t.y,width:t.width,height:t.height},on:{click:e.clickHandler}})})),e._v(" "),e.defaultImage?n("image",{directives:[{name:"show",rawName:"v-show",value:e.showDefault,expression:"showDefault"}],attrs:{href:e.defaultImage.url,x:e.defaultImage.x,y:e.defaultImage.y,width:e.defaultImage.width,height:e.defaultImage.height},on:{click:e.clickHandler}}):e._e()],2)},i=[],s=(t(7010),t(9729)),o=t(7163);const a={mixins:[s.A,o.A],data:function(){return{images:[],defaultImage:null,screenTarget:null,screenName:null}},computed:{selectedValue:function(){return this.screen&&this.screen.screenValues[this.valueId]?this.screen.screenValues[this.valueId][0]:null},showDefault:function(){return!this.images.some((e=>e.value==this.selectedValue))}},created:function(){this.settings.forEach((e=>{"SCREEN"===e[0]&&(this.screenTarget=e[1],this.screenName=e[2])})),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]||"RAW"}`,this.screen&&this.screen.addItem(this.valueId);const e=this.settings.filter((e=>"IMAGE"===e[0])).map((async e=>{let n=e[2];return n.startsWith("http")||(n=await this.getPresignedUrl(n)),{url:n,value:e[1],x:e[3],y:e[4],width:e[5],height:e[6]}}));if(Promise.all(e).then((e=>{this.images=e})),this.parameters[4]){const e={x:this.parameters[5],y:this.parameters[6],width:this.parameters[7]?`${this.parameters[7]}px`:"100%",height:this.parameters[8]?`${this.parameters[8]}px`:"100%"};let n=this.parameters[4];n.startsWith("http")?this.defaultImage={...e,url:n}:this.getPresignedUrl(n).then((n=>{this.defaultImage={...e,url:n}}))}},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},r=a;var c=t(2401),u=(0,c.A)(r,l,i,!1,null,null,null);const d=u.exports},6631:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("text",{attrs:{x:e.parameters[0],y:e.parameters[1],fill:e.fillColor}},[e._v("\n "+e._s(e.parameters[2])+"\n")])},i=[],s=t(9729);const o={mixins:[s.A],computed:{fillColor(){return this.parameters[3]?this.parameters[3]:"black"}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},8211:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("text",{attrs:{x:e.parameters[3],y:e.parameters[4],"font-size":e.fontSize,fill:e.fillColor}},[e._v("\n "+e._s(e._value)+"\n")])},i=[],s=t(9729);const o={mixins:[s.A],data(){return{valueId:null}},computed:{_value(){return this.screen?this.screen.screenValues[this.valueId][0]:null},fontSize(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor(){return this.parameters[6]?this.parameters[6]:"black"}},created(){let e="CONVERTED";this.parameters[7]&&(e=this.parameters[7]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},4352:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("line",{style:e.calcStyle,attrs:{x1:e.parameters[0],y1:e.parameters[1],x2:e.parameters[2],y2:e.parameters[3]}})},i=[],s=t(9729);const o={mixins:[s.A],computed:{calcStyle(){let e="black";this.parameters[4]&&(e=this.parameters[4]);let n=1;return this.parameters[5]&&(n=this.parameters[5]),"stroke:"+e+";stroke-width:"+n}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},4291:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("line",{style:e.calcStyle,attrs:{x1:e.parameters[3],y1:e.parameters[4],x2:e.parameters[5],y2:e.parameters[6]}})},i=[],s=t(9729);const o={mixins:[s.A],data(){return{valueId:0,valueMap:{}}},computed:{calcStyle(){let e="black";this.screen&&this.screen.screenValues[this.valueId]&&(e=this.valueMap[this.screen.screenValues[this.valueId][0]]);let n=1;return this.parameters[7]&&(n=this.parameters[7]),"stroke:"+e+";stroke-width:"+n}},created(){this.settings.forEach((e=>{"VALUE_EQ"===e[0]&&(this.valueMap[e[1]]=e[2])}));let e="CONVERTED";this.parameters[8]&&(e=this.parameters[8]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},5733:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("v-checkbox",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label},model:{value:e.value,callback:function(n){e.value=n},expression:"value"}})},i=[],s=t(9729);const o={mixins:[s.A],data(){return{items:[],label:"Checkbox",value:!1}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.label=this.parameters[0]},methods:{checked(){return this.value}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},3835:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("v-select",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",outlined:"",items:e.items},model:{value:e.value,callback:function(n){e.value=n},expression:"value"}})},i=[],s=t(9729);const o={mixins:[s.A],data(){return{items:[],value:null}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.value=this.parameters[0],this.items=this.parameters},methods:{text(){return this.value}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},3634:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var l=function(){var e=this,n=e._self._c;return n(e.widgetType,e._b({tag:"component"},"component",{...e.$props,...e.$attrs},!1))},i=[];t(7107);const s={data(){return{widgetType:null}},props:{name:{default:null}},computed:{url:function(){return`${window.location.origin}/tools/widgets/${this.name}/${this.name}.umd.min.js`}},async mounted(){try{this.widgetType=await System.import(this.url)}catch(e){throw new Error(`Unknown widget: ${this.name}`)}}},o=s;var a=t(2401),r=(0,a.A)(o,l,i,!1,null,null,null);const c=r.exports},2656:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("value-widget",{attrs:{parameters:e.getParameters,settings:e.settings,"format-string":e.parameters[3]}})],1)},i=[],s=t(9729),o=t(4348);const a={mixins:[s.A],components:{ValueWidget:o["default"]},computed:{getParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[4]]}},created(){this.setWidth(this.parameters[5],"ch",12)}},r=a;var c=t(2401),u=(0,c.A)(r,l,i,!1,null,null,null);const d=u.exports},2907:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},e._l(e.widgets,(function(t,l){return n(t.type,e._g({key:l,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)},i=[],s=(t(9375),t(9843));const o={mixins:[s.A],created:function(){if(this.parameters[0]){let e=this.parameters[0];this.widgets.forEach((n=>{const t=n.settings.find((e=>"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")));void 0===t&&n.settings.push(["MARGIN",e])}))}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},4812:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return n("div",[n("v-banner",{staticClass:"boxbanner",style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.parameters[0]))]),e._v(" "),n("horizontal-widget",e._g({attrs:{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},i=[],s=t(2907),o=t(9843);const a={mixins:[o.A],components:{HorizontalWidget:s["default"]}},r=a;t(6395);var c=t(2401),u=(0,c.A)(r,l,i,!1,null,"7935dee2",null);const d=u.exports},9646:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=function(){var e=this,n=e._self._c;return n("hr")},i=[],s=t(2401),o={},a=(0,s.A)(o,l,i,!1,null,null,null);const r=a.exports},527:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("iframe",{style:e.computedStyle,attrs:{title:"IFrameWidget",src:e.parameters[0],width:e.width,height:e.height}})},i=[],s=t(9729);const o={mixins:[s.A],data:function(){return{width:800,height:600}},created:function(){this.setWidth(this.parameters[1],"px",this.width),this.setHeight(this.parameters[2],"px",this.height)}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},1404:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var l=function(){var e=this,n=e._self._c;return n("img",{style:e.computedStyle,attrs:{src:e.src,alt:e.itemFullName,width:e.parameters[4],height:e.parameters[5]}})},i=[],s=t(4364),o=t(9729),a=t(2702);const r={mixins:[o.A],data:function(){return{api:new s.x,cable:new a.A,subscription:null,imageData:""}},computed:{src:function(){return`data:image/${this.parameters[3]};base64, ${this.imageData}`},itemFullName:function(){return`TLM__${this.targetName}__${this.packetName}__${this.itemName}__${this.valueType}`},targetName:function(){return this.parameters[0]},packetName:function(){return this.parameters[1]},itemName:function(){return this.parameters[2]},valueType:function(){return"CONVERTED"}},created:function(){this.api.get_tlm_packet(this.targetName,this.packetName,this.valueType).then((e=>{const n=null===e||void 0===e?void 0:e.find((e=>e[0]===this.itemName));n&&(this.imageData=n[1])})).finally((()=>{this.subscribe()}))},destroyed:function(){this.subscription&&this.subscription.unsubscribe(),this.cable.disconnect()},methods:{received:function(e){if(this.cable.recordPing(),e["error"])this.$notify.serious({body:e["error"]});else if(e.length){const n=e[e.length-1];this.imageData=n[this.itemFullName]}},subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:e=>this.received(e),connected:()=>{this.subscription.perform("add",{scope:window.openc3Scope,mode:"DECOM",token:localStorage.openc3Token,items:[this.itemFullName]})},disconnected:()=>{this.$notify.caution({body:"OpenC3 backend connection disconnected."})},rejected:()=>{this.$notify.caution({body:"OpenC3 backend connection rejected."})}}).then((e=>{this.subscription=e}))}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},4858:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("div",{staticClass:"pa-1 mt-1 label",style:[e.cssProps,e.computedStyle],attrs:{"data-test":"label"}},[e._v("\n "+e._s(e.labelText)+"\n")])},i=[],s=t(9729);const o={mixins:[s.A],data(){return{fontFamily:null,fontSize:null,fontWeight:"normal",fontStyle:"normal"}},computed:{labelText(){return this.parameters[0]},cssProps(){var e=null;return this.fontSize&&(e=this.fontSize+"px"),{"--font-family":this.fontFamily,"--font-size":e,"--font-weight":this.fontWeight,"--font-style":this.fontStyle}}},created(){this.verifyNumParams("LABEL",1,5,"LABEL <Text> <Font Family> <Font Size> <Font Weight> <Font Style>"),this.parameters[1]&&(this.fontFamily=this.parameters[1]),this.parameters[2]&&(this.fontSize=this.parameters[2]),this.parameters[3]&&(this.fontWeight=this.parameters[3]),this.parameters[4]&&(this.fontStyle=this.parameters[4])}},a=o;t(6074);var r=t(2401),c=(0,r.A)(a,l,i,!1,null,"19db816e",null);const u=c.exports},9830:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],"widget-index":0}}),e._v(" "),n("led-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},i=[],s=t(9729),o=t(4858),a=t(6507);const r={mixins:[s.A],components:{LabelWidget:o["default"],LedWidget:a["default"]},computed:{labelName(){return[this.parameters[2]+":"]}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},2503:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],"widget-index":0}}),e._v(" "),n("progressbar-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},i=[],s=t(9729),o=t(4858),a=t(6825);const r={mixins:[s.A],components:{LabelWidget:o["default"],ProgressbarWidget:a["default"]},computed:{labelName(){return[this.parameters[2]+":"]}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},2194:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),e._v(" "),n("sparkline-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},i=[],s=t(9729),o=t(4858),a=t(6115);const r={mixins:[s.A],components:{LabelWidget:o["default"],SparklineWidget:a["default"]},computed:{labelName(){return[this.parameters[2]+":"]}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},9089:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),e._v(" "),n("value-widget",{attrs:{parameters:e.valueParameters,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},i=[],s=t(9729),o=t(4858),a=t(4348);const r={mixins:[s.A],components:{LabelWidget:o["default"],ValueWidget:a["default"]},computed:{labelName(){return[this.parameters[2]+":"]},valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4]]}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},974:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>A});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),e._v(" "),n("value-widget",{attrs:{parameters:e.valueParameters,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},i=[],s=(t(9375),t(9729)),o=t(4858),a=t(4348),r=t(4364);const c={mixins:[s.A],data(){return{description:"",valueParameters:[]}},components:{LabelWidget:o["default"],ValueWidget:a["default"]},computed:{labelName(){return[this.description]}},created(){this.valueParameters=this.parameters.slice(0,3),void 0!=this.parameters[4]&&this.valueParameters.push(this.parameters[4]),void 0!=this.parameters[5]&&this.valueParameters.push(this.parameters[5]),this.parameters.length>3?this.description=this.parameters[3]:(new r.x).get_item(this.parameters[0],this.parameters[1],this.parameters[2]).then((e=>{this.description=e["description"]}))}},u=c;var d=t(2401),m=(0,d.A)(u,l,i,!1,null,null,null);const A=m.exports},2171:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("labelvalue-widget",{attrs:{parameters:e.parameters,settings:e.labelValueSettings}}),e._v(" "),n("limitsbar-widget",{attrs:{parameters:e.limitsBarParameters,settings:[...e.settings],"widget-index":2}})],1)},i=[],s=t(9089),o=t(1057),a=t(9729);const r={mixins:[a.A],components:{LabelvalueWidget:s["default"],LimitsbarWidget:o["default"]},computed:{labelValueSettings(){return[...this.settings.filter((e=>"__SCREEN__"===e[0])),...this.settings.filter((e=>0===parseInt(e[0])||1===parseInt(e[0])))]},limitsBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},8981:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>A});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},[n("label-widget",{attrs:{parameters:[e.parameters[2]],settings:[...e.settings],"widget-index":0}}),e._v(" "),n("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:[...e.settings],"widget-index":1}}),e._v(" "),n("value-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":2}})],1)},i=[],s=t(4858),o=t(4348),a=t(6992),r=t(9729);const c={mixins:[r.A],components:{LabelWidget:s["default"],ValueWidget:o["default"],LimitscolumnWidget:a["default"]},computed:{limitsColumnParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},u=c;var d=t(2401),m=(0,d.A)(u,l,i,!1,null,null,null);const A=m.exports},9124:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("labelvalue-widget",{attrs:{parameters:e.labelValueParameters,settings:e.labelValueSettings}}),e._v(" "),n("rangebar-widget",{attrs:{parameters:e.rangeBarParameters,settings:[...e.settings],"widget-index":2}})],1)},i=[],s=t(9089),o=t(5736),a=t(9729);const r={mixins:[a.A],components:{LabelvalueWidget:s["default"],RangebarWidget:o["default"]},computed:{labelValueSettings(){return[...this.settings.filter((e=>"__SCREEN__"===e[0])),...this.settings.filter((e=>0===parseInt(e[0])||1===parseInt(e[0])))]},labelValueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},6507:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("div",{staticClass:"led mt-1",style:e.cssProps})},i=[],s=t(9729);const o={mixins:[s.A],data(){return{valueId:null,colors:{TRUE:"openc3-green",FALSE:"openc3-red"}}},computed:{width(){return this.parameters[4]?parseInt(this.parameters[4]):20},height(){return this.parameters[5]?parseInt(this.parameters[5]):20},cssProps(){let e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);let n=this.colors[e];return n||(n=this.colors.ANY),n||(n="openc3-black"),{"--height":this.height+"px","--width":this.width+"px","--color":n}}},created(){this.settings.forEach((e=>{switch(e[0]){case"LED_COLOR":this.colors[e[1]]=e[2];break}})),this.parameters[3]||(this.parameters[3]="CONVERTED"),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)}},a=o;t(4572);var r=t(2401),c=(0,r.A)(a,l,i,!1,null,"4e68ef1f",null);const u=c.exports},1057:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var l=function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},i=[function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar__container"},[n("div",{staticClass:"limitsbar__redlow"}),e._v(" "),n("div",{staticClass:"limitsbar__redhigh"}),e._v(" "),n("div",{staticClass:"limitsbar__yellowlow"}),e._v(" "),n("div",{staticClass:"limitsbar__yellowhigh"}),e._v(" "),n("div",{staticClass:"limitsbar__greenlow"}),e._v(" "),n("div",{staticClass:"limitsbar__greenhigh"}),e._v(" "),n("div",{staticClass:"limitsbar__blue"}),e._v(" "),n("div",{staticClass:"limitsbar__line"}),e._v(" "),n("div",{staticClass:"limitsbar__arrow"})])}],s=t(9729),o=t(4364);const a="DEFAULT",r={mixins:[s.A],data(){return{width:160,height:22,minValue:null,maxValue:null,scale:0,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:a,currentSetRefreshInterval:null}},computed:{cssProps:function(){let e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);let n=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(n),{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition(e,n)+"%","--redlow-width":this.redLow+"%","--redhigh-width":this.redHigh+"%","--yellowlow-width":this.yellowLow+"%","--yellowhigh-width":this.yellowHigh+"%","--greenlow-width":this.greenLow+"%","--greenhigh-width":this.greenHigh+"%","--blue-width":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:a}},created(){this.api=new o.x,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((e=>{this.limitsSettings=e})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.settings.forEach((e=>{"MIN_VALUE"===e[0]&&(this.minValue=parseInt(e[1])),"MAX_VALUE"===e[0]&&(this.maxValue=parseInt(e[1]))})),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height);let e="CONVERTED";this.parameters[3]&&(e=this.parameters[3]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{modifyLimits(e){this.redLow=10,this.redHigh=10,this.minValue&&(e[0]<=this.minValue&&(e[0]=this.minValue,this.redLow=0),e[1]<=this.minValue&&(e[1]=this.minValue),e[2]<=this.minValue&&(e[2]=this.minValue),e[3]<=this.minValue&&(e[3]=this.minValue),e.length>4&&e[4]<=this.minValue&&(e[4]=this.minValue),e.length>4&&e[5]<=this.minValue&&(e[5]=this.minValue)),this.maxValue&&(e[0]>=this.maxValue&&(e[0]=this.maxValue),e[1]>=this.maxValue&&(e[1]=this.maxValue),e[2]>=this.maxValue&&(e[2]=this.maxValue),e[3]>=this.maxValue&&(e[3]=this.maxValue,this.redHigh=0),e.length>4&&e[4]>=this.maxValue&&(e[4]=this.maxValue),e.length>4&&e[5]>=this.maxValue&&(e[5]=this.maxValue)),e[0]==e[1]&&(this.yellowLow=0),e[2]==e[3]&&(this.yellowHigh=0);let n=80;return 0==this.redLow&&(n+=10),0==this.redHigh&&(n+=10),this.scale=(e[3]-e[0])/n,e},calcPosition(e,n){if(null==e||!n)return;let t=n[0]-10*this.scale;this.minValue&&this.minValue==n[0]&&(t=n[0]);let l=n[3]-10*this.scale;if(this.maxValue&&this.maxValue==n[3]&&(l=n[3]),e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;{const n=parseInt((e-t)/this.scale);return n>100?100:n<0?0:n}},calcLimits(e){e&&(this.yellowLow=Math.round((e[1]-e[0])/this.scale),this.yellowHigh=Math.round((e[3]-e[2])/this.scale),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/this.scale),this.greenHigh=Math.round((e[2]-e[5])/this.scale),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0))},getCurrentLimitsSet:function(){this.api.get_limits_set().then((e=>{this.currentLimitsSet=e}))}}},c=r;t(6619);var u=t(2401),d=(0,u.A)(c,l,i,!1,null,"344f6330",null);const m=d.exports},8518:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("div",{staticClass:"led align-self-center",style:e.cssProps}),e._v(" "),n("label-widget",{style:e.computedStyle,attrs:{parameters:e.labelName,settings:e.settings,"widget-index":1}})],1)},i=[],s=t(2967);const o={mixins:[s.A],data(){return{radius:15,fullLabelDisplay:!1}},created(){this.parameters[4]&&(this.radius=parseInt(this.parameters[4])),this.parameters[5]&&"true"===this.parameters[5].toLowerCase()&&(this.fullLabelDisplay=!0)},computed:{labelName(){return this.fullLabelDisplay?[this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]]:[this.parameters[2]]},cssProps(){let e=null;return this.screen&&(e=this.screen.screenValues[this.valueId][0]),{"--height":this.radius+"px","--width":this.radius+"px","--color":this.limitsColor}}},methods:{getType(){var e="CONVERTED";return this.parameters[3]&&(e=this.parameters[3]),e}}},a=o;t(8490);var r=t(2401),c=(0,r.A)(a,l,i,!1,null,"47f390ae",null);const u=c.exports},6992:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var l=function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},i=[function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar__container"},[n("div",{staticClass:"limitsbar__redlow"}),e._v(" "),n("div",{staticClass:"limitsbar__redhigh"}),e._v(" "),n("div",{staticClass:"limitsbar__yellowlow"}),e._v(" "),n("div",{staticClass:"limitsbar__yellowhigh"}),e._v(" "),n("div",{staticClass:"limitsbar__greenlow"}),e._v(" "),n("div",{staticClass:"limitsbar__greenhigh"}),e._v(" "),n("div",{staticClass:"limitsbar__blue"}),e._v(" "),n("div",{staticClass:"limitsbar__line"}),e._v(" "),n("div",{staticClass:"limitsbar__arrow"})])}],s=t(9729),o=t(4364);const a="DEFAULT",r={mixins:[s.A],data(){return{width:20,height:100,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:a,currentSetRefreshInterval:null}},computed:{cssProps:function(){let e=null;return this.screen&&(e=this.screen.screenValues[this.valueId][0]),this.calcLimits(this.limitsSettings[this.selectedLimitsSet]),{"--height":this.height+"px","--width":this.width+"px","--container-width":this.width-5+"px","--position":this.calcPosition(e,this.limitsSettings[this.selectedLimitsSet])+"%","--redlow-height":this.redLow+"%","--redhigh-height":this.redHigh+"%","--yellowlow-height":this.yellowLow+"%","--yellowhigh-height":this.yellowHigh+"%","--greenlow-height":this.greenLow+"%","--greenhigh-height":this.greenHigh+"%","--blue-height":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:a}},created(){this.api=new o.x,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((e=>{this.limitsSettings=e})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height);let e="CONVERTED";this.parameters[3]&&(e=this.parameters[3]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{calcPosition(e,n){if(!e||!n)return;let t=.8;n[0]===n[1]&&(t+=.1),n[2]===n[3]&&(t+=.1);const l=(n[3]-n[0])/t,i=n[0]-.1*l;n[3];if(e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;{const n=parseInt((e-i)/l*100);return n>100?100:n<0?0:n}},calcLimits(e){if(!e)return;let n=80;e[0]===e[1]?(this.redLow=0,n+=10):this.redLow=10,e[2]===e[3]?(this.redHigh=0,n+=10):this.redHigh=10;const t=1*(e[3]-e[0]);this.yellowLow=Math.round((e[1]-e[0])/t*n),this.yellowHigh=Math.round((e[3]-e[2])/t*n),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/t*n),this.greenHigh=Math.round((e[2]-e[5])/t*n),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0)},getCurrentLimitsSet:function(){this.api.get_limits_set().then((e=>{this.currentLimitsSet=e}))}}},c=r;t(2846);var u=t(2401),d=(0,u.A)(c,l,i,!1,null,"0e4c2263",null);const m=d.exports},2653:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return n("graph",{ref:"graph"+e.id,style:e.computedStyle,attrs:{id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,"hide-system-bar":"","hide-overview":""},on:{pause:()=>e.state="pause",start:()=>e.state="start"}})},i=[],s=t(1033),o=t(2056);const a={components:{Graph:o.A},mixins:[s.A]},r=a;var c=t(2401),u=(0,c.A)(r,l,i,!1,null,null,null);const d=u.exports},5043:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var l=function(){var e=this,n=e._self._c;return n("table",{style:e.computedStyle,attrs:{role:"presentation"}},e._l(e.widgetChunks,(function(t,l){return n("tr",{key:"r"+l},e._l(t,(function(t,l){return n("td",{key:"c"+l},[n(t.type,e._g({tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))],1)})),0)})),0)},i=[],s=(t(9375),t(9843)),o=t(5250),a=t.n(o);const r={mixins:[s.A],computed:{columns(){return parseInt(this.parameters[0])},widgetChunks(){return a().chunk(this.widgets,this.columns)}},created:function(){if(this.parameters[1]){let e=this.parameters[1];this.widgets.forEach((n=>{const t=n.settings.find((e=>"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")));void 0===t&&n.settings.push(["MARGIN",e])}))}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},6825:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("rux-progress",{staticClass:"progress",style:e.computedStyle,attrs:{value:e._value}})},i=[],s=t(9729);const o={mixins:[s.A],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:150}},computed:{_value:function(){let e=this.value;return null===e&&this.screen&&(e=this.screen.screenValues[this.valueId][0]),parseInt(parseFloat(e)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),null===this.value){var e="CONVERTED";this.parameters[5]&&(e=this.parameters[5]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)}},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},a=o;t(3519);var r=t(2401),c=(0,r.A)(a,l,i,!1,null,"e34552b0",null);const u=c.exports},5993:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("v-radio",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label,value:e.value}})},i=[],s=t(9729);const o={props:{value:{type:Number}},mixins:[s.A],data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},5758:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("v-radio-group",{style:e.computedStyle,attrs:{"hide-details":"",dense:""},model:{value:e.selectedIndex,callback:function(n){e.selectedIndex=n},expression:"selectedIndex"}},e._l(e.widgets,(function(t,l){return n(t.type,e._g({key:l,tag:"component",attrs:{value:l,target:t.target,parameters:t.parameters,settings:t.settings,name:t.name}},e.$listeners))})),1)},i=[],s=t(9843);const o={mixins:[s.A],data(){return{selectedIndex:0}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},5736:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("div",{staticClass:"rangebar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},i=[function(){var e=this,n=e._self._c;return n("div",{staticClass:"rangebar__container"},[n("div",{staticClass:"rangebar__line"}),e._v(" "),n("div",{staticClass:"rangebar__arrow"})])}],s=t(9729);const o={mixins:[s.A],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return parseInt(this.parameters[3])},max(){return parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)},methods:{calcPosition(){let e=null;if(this.screen&&(e=this.screen.screenValues[this.valueId][0]),!e)return 0;if(e.raw)return"-Infinity"===e.raw?0:100;const n=(e-this.min)/this.range*100;return n>100?100:n<0?0:n}}},a=o;t(519);var r=t(2401),c=(0,r.A)(a,l,i,!1,null,"f50bb458",null);const u=c.exports},9769:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return n("vertical-widget",e._g({staticClass:"overflow-y-auto",style:e.computedStyle,attrs:{settings:e.settings,parameters:e.parameters.slice(1),widgets:e.widgets}},e.$listeners))},i=[],s=t(9843),o=t(1629);const a={mixins:[s.A],components:{VerticalWidget:o["default"]},created:function(){this.setHeight(this.parameters[0],"px",200)}},r=a;var c=t(2401),u=(0,c.A)(r,l,i,!1,null,null,null);const d=u.exports},2959:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("v-banner",{style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.labelText))])},i=[],s=t(9729);const o={mixins:[s.A],computed:{labelText(){return this.parameters[0]}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},6637:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("div",{style:e.style})},i=[],s=t(9729);const o={mixins:[s.A],computed:{style:function(){return[`width: ${this.parameters[0]}px;`,`height: ${this.parameters[1]}px;`].join("")}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},6115:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return n("graph",{ref:"graph"+e.id,style:e.computedStyle,attrs:{id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,sparkline:""}})},i=[],s=t(1033),o=t(2056);const a={components:{Graph:o.A},mixins:[s.A],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}},r=a;var c=t(2401),u=(0,c.A)(r,l,i,!1,null,null,null);const d=u.exports},2926:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("div",[n("v-tabs",{style:e.computedStyle,model:{value:e.curTab,callback:function(n){e.curTab=n},expression:"curTab"}},e._l(e.widgets,(function(t,l){return n("v-tab",{key:l},[e._v("\n "+e._s(t.parameters[0])+"\n ")])})),1),e._v(" "),n("v-tabs-items",{model:{value:e.curTab,callback:function(n){e.curTab=n},expression:"curTab"}},e._l(e.widgets,(function(t,l){return n("v-tab-item",{key:l},e._l(t.widgets,(function(t,i){return n(t.type,e._g({key:`${l}-${i}`,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)})),1)],1)},i=[],s=t(9843);const o={mixins:[s.A],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},2128:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return n("div",{staticClass:"textbox-widget-container"},[n("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),e._v(" "),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,l){return n("v-list-item",{key:l,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),e._v(" "),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},i=[],s=t(2967),o=t(9821);t(9471);const a={components:{DetailsDialog:o.A},data:function(){return{width:200,height:200}},mixins:[s.A],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){var e="CONVERTED";return this.parameters[5]&&(e=this.parameters[5]),e}}},r=a;t(1552);var c=t(2401),u=(0,c.A)(r,l,i,!1,null,"0b5bfdc6",null);const d=u.exports},7540:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("v-text-field",{style:e.computedStyle,attrs:{solo:"",dense:"","single-line":"","hide-no-data":"","hide-details":""},model:{value:e.value,callback:function(n){e.value=n},expression:"value"}})},i=[],s=t(9729);const o={mixins:[s.A],data(){return{value:null}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},6525:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("span",{staticClass:"text-h5 text-center pa-1 mt-1 label",style:e.computedStyle},[e._v("\n "+e._s(e.labelText)+"\n")])},i=[],s=(t(7107),t(9729));const o={mixins:[s.A],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},4348:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var l=function(){var e=this,n=e._self._c;return n("div",{staticClass:"value-widget-container",style:[e.computedStyle,e.aging]},[n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("v-text-field",e._g(e._b({class:e.valueClass,attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Value",value:e._value,"prepend-inner-icon":e.astroIcon,"data-test":"value"},on:{contextmenu:e.showContextMenu}},"v-text-field",l,!1),t))]}}])},[e._v(" "),n("span",[e._v(e._s(e.fullName))])]),e._v(" "),n("v-menu",{staticStyle:{"z-index":"10"},attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,l){return n("v-list-item",{key:l,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),e._v(" "),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},i=[],s=t(2967),o=t(9821);const a=4,r={components:{DetailsDialog:o.A},mixins:[s.A],data:function(){return{width:12+a}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+a,"ch",this.width)}},c=r;t(8087);var u=t(2401),d=(0,u.A)(c,l,i,!1,null,"f6adf1e0",null);const m=d.exports},440:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("value-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":0}}),e._v(" "),n("limitsbar-widget",{attrs:{parameters:e.parameters.slice(0,4),settings:[...e.settings],"widget-index":1}})],1)},i=[],s=t(4348),o=t(1057),a=t(9729);const r={mixins:[a.A],components:{ValueWidget:s["default"],LimitsbarWidget:o["default"]},computed:{limitsBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3]]}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},6931:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},[n("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:[...e.settings],"widget-index":0}}),e._v(" "),n("value-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},i=[],s=t(4348),o=t(6992),a=t(9729);const r={mixins:[a.A],components:{ValueWidget:s["default"],LimitscolumnWidget:o["default"]},computed:{limitsColumnParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},5918:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});t(7010);var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("value-widget",{attrs:{parameters:e.valueParameters,settings:[...e.settings],"widget-index":0}}),e._v(" "),n("rangebar-widget",{attrs:{parameters:e.rangeBarParameters,settings:[...e.settings],"widget-index":1}})],1)},i=[],s=t(4348),o=t(5736),a=t(9729);const r={mixins:[a.A],components:{ValueWidget:s["default"],RangebarWidget:o["default"]},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}},c=r;var u=t(2401),d=(0,u.A)(c,l,i,!1,null,null,null);const m=d.exports},1629:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},e._l(e.widgets,(function(t,l){return n(t.type,e._g({key:l,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)},i=[],s=(t(9375),t(9843));const o={mixins:[s.A],created:function(){if(this.parameters[0]){let e=this.parameters[0];this.widgets.forEach((n=>{const t=n.settings.find((e=>"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")));void 0===t&&n.settings.push(["MARGIN",e])}))}}},a=o;var r=t(2401),c=(0,r.A)(a,l,i,!1,null,null,null);const u=c.exports},5757:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var l=function(){var e=this,n=e._self._c;return n("div",[n("v-banner",{staticClass:"boxbanner",style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.parameters[0]))]),e._v(" "),n("vertical-widget",e._g({attrs:{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},i=[],s=t(1629),o=t(9843);const a={mixins:[o.A],components:{VerticalWidget:s["default"]}},r=a;t(1241);var c=t(2401),u=(0,c.A)(r,l,i,!1,null,"e0b00b10",null);const d=u.exports},7004:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".v-card__subtitle[data-v-3ca9666e]{padding:0;padding-bottom:10px}.text[data-v-3ca9666e]{font-size:1rem;white-space:pre-line}",""]);const r=a},1863:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,"#sr-controls[data-v-5587ac26]{padding:0}.editorbox[data-v-5587ac26]{height:50vh}.editor[data-v-5587ac26]{height:100%;width:100%;font-size:16px}.editor[data-v-5587ac26],hr[data-v-5587ac26]{position:relative}hr[data-v-5587ac26]{pointer-events:none;top:7px;background-color:grey;height:3px;width:5%;margin:auto}.script-state[data-v-5587ac26]{background-color:var(--color-background-base-default)}.script-state[data-v-5587ac26] input{text-transform:capitalize}",""]);const r=a},1523:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".runningMarker{position:absolute;background:rgba(0,255,0,.5);z-index:20}.waitingMarker{position:absolute;background:#009b00;z-index:20}.breakpointMarker{position:absolute;border-style:solid;border-color:red;background:rgba(0,255,0,.5);z-index:20}.pausedMarker{background:rgba(0,140,255,.5)}.errorMarker,.pausedMarker{position:absolute;z-index:20}.errorMarker{background:rgba(255,0,119,.5)}.fatalMarker{position:absolute;background:rgba(255,0,0,.5);z-index:20}.saving{z-index:20;opacity:.35}.ace_gutter-cell.ace_breakpoint{border-radius:20px 0 0 20px;box-shadow:inset 0 0 1px 1px red}.grid{position:relative}.item{position:absolute;display:block;margin:5px;z-index:1}.item-content{position:relative;cursor:pointer;border-radius:6px}",""]);const r=a},3076:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".label[data-v-6659f972]{font-weight:700;text-transform:capitalize}[data-v-6659f972] .v-input--selection-controls{padding:0;margin:0}",""]);const r=a},5221:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".ace_autocomplete{width:60vw!important}",""]);const r=a},7745:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".editor[data-v-791fd9ac]{height:50vh;width:75vw;position:relative;font-size:16px}.v-textarea[data-v-791fd9ac] textarea{padding:5px}",""]);const r=a},8730:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".edit-box,.v-window-item{background-color:var(--color-background-surface-default)}.edit-box{color:hsla(0,0%,100%,.7);padding:10px;margin-top:10px}.v-small-dialog__content{background-color:var(--color-background-surface-selected);padding:5px 5px}.uplot.side-legend{display:flex;width:auto}.uplot.side-legend .u-wrap{flex:none}.uplot.side-legend .u-legend{text-align:left;margin-left:0;width:220px}.uplot.side-legend .u-legend,.uplot.side-legend .u-legend td,.uplot.side-legend .u-legend th,.uplot.side-legend .u-legend tr{display:revert}.uplot.left-legend .u-legend{order:-1}.uplot.top-legend{display:flex;flex-direction:column}.uplot.top-legend .u-legend{order:-1}",""]);const r=a},9530:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,"#chart[data-v-5efb6623] .u-select{background-color:hsla(0,0%,100%,.07)}",""]);const r=a},2130:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".errors[data-v-a4a31488]{padding-top:0;margin-top:0}.v-textarea[data-v-a4a31488] textarea{padding:5px}",""]);const r=a},9808:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".app-title[data-v-57d4fdd2]{font-size:2rem}.menu-button[data-v-57d4fdd2]{border-color:var(--color-border-interactive-muted)!important;background-color:var(--color-background-base-default)!important;padding-right:3px!important}span.v-btn__content span[data-v-57d4fdd2]{padding-right:5px}.myicon[data-v-57d4fdd2]{background-color:var(--color-background-surface-selected);border:1px solid currentColor;border-radius:3px;height:36px!important;width:36px!important}.v-list[data-v-57d4fdd2] .v-label{margin-left:5px}.v-list-item__icon[data-v-57d4fdd2]{margin-right:15px!important}.v-list-item__title[data-v-57d4fdd2]{color:#fff}",""]);const r=a},2604:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".array-widget-container[data-v-5cd86706] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-5cd86706] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-5cd86706] input{color:#00c800}.openc3-yellow[data-v-5cd86706] input{color:#ffdc00}.openc3-red[data-v-5cd86706] input{color:#ff2d2d}.openc3-blue[data-v-5cd86706] input{color:#09f}.openc3-purple[data-v-5cd86706] input{color:#c800c8}.openc3-black[data-v-5cd86706] input{color:#000}.openc3-white[data-v-5cd86706] input{color:#fff}",""]);const r=a},1651:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".block-widget-container[data-v-0872fd0e] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.v-textarea[data-v-0872fd0e] textarea{font-family:Courier New,Courier,monospace}.value[data-v-0872fd0e] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-0872fd0e] input{color:#00c800}.openc3-yellow[data-v-0872fd0e] input{color:#ffdc00}.openc3-red[data-v-0872fd0e] input{color:#ff2d2d}.openc3-blue[data-v-0872fd0e] input{color:#09f}.openc3-purple[data-v-0872fd0e] input{color:#c800c8}.openc3-black[data-v-0872fd0e] input{color:#000}.openc3-white[data-v-0872fd0e] input{color:#fff}",""]);const r=a},8784:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".boxbanner[data-v-7935dee2] .v-banner__wrapper{padding:4px!important}.boxbanner[data-v-7935dee2] .v-banner__text{font-weight:600;font-size:16px}",""]);const r=a},2498:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".label[data-v-19db816e]{font-family:var(--font-family);font-size:var(--font-size);font-weight:var(--font-weight);font-style:var(--font-style)}",""]);const r=a},9316:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".led[data-v-4e68ef1f]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]);const r=a},9058:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".led[data-v-47f390ae]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]);const r=a},6552:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".textbox-widget-container[data-v-0b5bfdc6] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-0b5bfdc6] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-0b5bfdc6] input{color:#00c800}.openc3-yellow[data-v-0b5bfdc6] input{color:#ffdc00}.openc3-red[data-v-0b5bfdc6] input{color:#ff2d2d}.openc3-blue[data-v-0b5bfdc6] input{color:#09f}.openc3-purple[data-v-0b5bfdc6] input{color:#c800c8}.openc3-black[data-v-0b5bfdc6] input{color:#000}.openc3-white[data-v-0b5bfdc6] input{color:#fff}",""]);const r=a},3425:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".boxbanner[data-v-e0b00b10] .v-banner__wrapper{padding:4px!important}.boxbanner[data-v-e0b00b10] .v-banner__text{font-weight:600;font-size:16px}",""]);const r=a},3495:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".repeat[data-v-54fbc085]{padding-top:10px;text-align:right}.v-stepper--vertical .v-stepper__content[data-v-54fbc085]{width:auto;margin:0 0 0 36px;padding:0}",""]);const r=a},8707:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".v-stepper--vertical .v-stepper__content[data-v-8154ef52]{width:auto;margin:0 0 0 36px;padding:0}",""]);const r=a},7019:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".v-stepper--vertical .v-stepper__content[data-v-f2badfd2]{width:auto;margin:0 0 0 36px;padding:0}",""]);const r=a},4294:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".v-stepper--vertical .v-stepper__content[data-v-ffe4e8e8]{width:auto;margin:0 0 0 36px;padding:0}",""]);const r=a},2897:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,"#tr-container[data-v-7585b76b]{padding-top:0;padding-bottom:15px;padding-left:0;padding-right:0}",""]);const r=a},3224:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,"svg[data-v-17947dc7]{background-color:#fff}",""]);const r=a},8452:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".limitsbar[data-v-344f6330]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;padding-top:15px;width:var(--width)}.limitsbar__container[data-v-344f6330]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-344f6330]{left:0;width:var(--redlow-width)}.limitsbar__redhigh[data-v-344f6330],.limitsbar__redlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#ff2d2d}.limitsbar__redhigh[data-v-344f6330]{right:0;width:var(--redhigh-width)}.limitsbar__yellowlow[data-v-344f6330]{left:var(--redlow-width);width:var(--yellowlow-width)}.limitsbar__yellowhigh[data-v-344f6330],.limitsbar__yellowlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-344f6330]{right:var(--redhigh-width);width:var(--yellowhigh-width)}.limitsbar__greenlow[data-v-344f6330]{left:calc(var(--redlow-width) + var(--yellowlow-width));width:var(--greenlow-width)}.limitsbar__greenhigh[data-v-344f6330],.limitsbar__greenlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#00c800}.limitsbar__greenhigh[data-v-344f6330]{right:calc(var(--redhigh-width) + var(--yellowhigh-width));width:var(--greenhigh-width)}.limitsbar__blue[data-v-344f6330]{top:-1px;left:calc(var(--redlow-width) + var(--yellowlow-width) + var(--greenlow-width));width:var(--blue-width);background-color:#09f}.limitsbar__blue[data-v-344f6330],.limitsbar__line[data-v-344f6330]{position:absolute;height:var(--container-height)}.limitsbar__line[data-v-344f6330]{left:var(--position);width:1px;background-color:gray}.limitsbar__arrow[data-v-344f6330]{position:absolute;top:-5px;left:var(--position);width:0;height:0;transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]);const r=a},5895:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".limitsbar[data-v-0e4c2263]{cursor:default;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;height:var(--height)}.limitsbar__container[data-v-0e4c2263]{position:relative;flex:1 1 100%;width:var(--container-width);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-0e4c2263]{bottom:0;height:var(--redlow-height)}.limitsbar__redhigh[data-v-0e4c2263],.limitsbar__redlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#ff2d2d}.limitsbar__redhigh[data-v-0e4c2263]{top:0;height:var(--redhigh-height)}.limitsbar__yellowlow[data-v-0e4c2263]{bottom:var(--redlow-height);height:var(--yellowlow-height)}.limitsbar__yellowhigh[data-v-0e4c2263],.limitsbar__yellowlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-0e4c2263]{top:var(--redhigh-height);height:var(--yellowhigh-height)}.limitsbar__greenlow[data-v-0e4c2263]{bottom:calc(var(--redlow-height) + var(--yellowlow-height));height:var(--greenlow-height)}.limitsbar__greenhigh[data-v-0e4c2263],.limitsbar__greenlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#00c800}.limitsbar__greenhigh[data-v-0e4c2263]{top:calc(var(--redhigh-height) + var(--yellowhigh-height));height:var(--greenhigh-height)}.limitsbar__blue[data-v-0e4c2263]{bottom:calc(var(--redlow-height) + var(--yellowlow-height) + var(--greenlow-height));height:var(--blue-height);background-color:#09f}.limitsbar__blue[data-v-0e4c2263],.limitsbar__line[data-v-0e4c2263]{position:absolute;width:var(--container-width)}.limitsbar__line[data-v-0e4c2263]{bottom:var(--position);height:1px;background-color:gray}.limitsbar__arrow[data-v-0e4c2263]{position:absolute;bottom:var(--position);left:var(--container-width);width:0;height:0;transform:translateY(5px);border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid gray}",""]);const r=a},3160:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".progress[data-v-e34552b0]{margin:5px;flex:auto!important}",""]);const r=a},2574:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".rangebar[data-v-f50bb458]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;padding-top:15px;width:var(--width)}.rangebar__container[data-v-f50bb458]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.rangebar__line[data-v-f50bb458]{width:1px;height:var(--container-height);background-color:gray}.rangebar__arrow[data-v-f50bb458],.rangebar__line[data-v-f50bb458]{position:absolute;left:var(--position)}.rangebar__arrow[data-v-f50bb458]{top:-5px;width:0;height:0;transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]);const r=a},3200:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".value-widget-container[data-v-f6adf1e0]{min-height:34px}.value-widget-container[data-v-f6adf1e0] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value-widget-container[data-v-f6adf1e0] input{text-align:var(--text-align)!important}[data-v-f6adf1e0] .v-input__slot:has(.v-icon){padding-left:2px!important}.value-widget-container[data-v-f6adf1e0] .v-icon{margin-top:9px}.value[data-v-f6adf1e0] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-f6adf1e0] input{color:#00c800}.openc3-yellow[data-v-f6adf1e0] input{color:#ffdc00}.openc3-red[data-v-f6adf1e0] input{color:#ff2d2d}.openc3-blue[data-v-f6adf1e0] input{color:#09f}.openc3-purple[data-v-f6adf1e0] input{color:#c800c8}.openc3-black[data-v-f6adf1e0] input{color:#000}.openc3-white[data-v-f6adf1e0] input{color:#fff}",""]);const r=a},2753:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var l=t(6758),i=t.n(l),s=t(935),o=t.n(s),a=o()(i());a.push([e.id,".question{font-size:1rem;white-space:pre-line}",""]);const r=a},47:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9375),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4293),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1__),_services_openc3_api__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4364),_services_api__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2795),_Widget__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9729);const __WEBPACK_DEFAULT_EXPORT__={mixins:[_Widget__WEBPACK_IMPORTED_MODULE_4__.A],data(){return{api:null,screen:null,displaySendHazardous:!1,lastCmd:""}},computed:{buttonText(){return this.parameters[0]},eval(){return this.parameters[1]}},created(){this.api=new _services_openc3_api__WEBPACK_IMPORTED_MODULE_2__.x},methods:{async onClick(){const lines=this.eval.split(";;"),self=this,screen=this.screen,api=this.api,run_script=this.runScript,runScript=this.runScript;for(let i=0;i<lines.length;i++){const result=eval(lines[i].trim());if(result instanceof Promise)try{await result}catch(err){if(err.message.includes("is Hazardous")){this.lastCmd=err.message.split("\n").pop(),this.displaySendHazardous=!0;while(this.displaySendHazardous)await new Promise((e=>setTimeout(e,500)))}}}},sendHazardousCmd(){this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check("),eval(this.lastCmd),this.displaySendHazardous=!1},cancelHazardousCmd(){this.displaySendHazardous=!1},runScript(e,n=!0,t={}){let l=[];for(const i in t)l.push({key:i,value:t[i],readonly:!1});_services_api__WEBPACK_IMPORTED_MODULE_3__.A.post(`/script-api/scripts/${e}/run`,{data:{environment:l}}).then((e=>{n&&window.open(`/tools/scriptrunner/${e.data}`,"_blank")}))}}}},9876:(e,n,t)=>{var l=t(7004);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("4f6bcdbe",l,!0,{sourceMap:!1,shadowMode:!1})},4879:(e,n,t)=>{var l=t(1863);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("2930ee39",l,!0,{sourceMap:!1,shadowMode:!1})},7691:(e,n,t)=>{var l=t(1523);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("5945bf03",l,!0,{sourceMap:!1,shadowMode:!1})},1727:(e,n,t)=>{var l=t(3076);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("2d4e5d43",l,!0,{sourceMap:!1,shadowMode:!1})},8765:(e,n,t)=>{var l=t(5221);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("32c54128",l,!0,{sourceMap:!1,shadowMode:!1})},3065:(e,n,t)=>{var l=t(7745);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("1f295c78",l,!0,{sourceMap:!1,shadowMode:!1})},6738:(e,n,t)=>{var l=t(8730);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("16d623ca",l,!0,{sourceMap:!1,shadowMode:!1})},7346:(e,n,t)=>{var l=t(9530);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("1f8d080f",l,!0,{sourceMap:!1,shadowMode:!1})},970:(e,n,t)=>{var l=t(2130);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("4576acde",l,!0,{sourceMap:!1,shadowMode:!1})},1e3:(e,n,t)=>{var l=t(9808);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("7de62207",l,!0,{sourceMap:!1,shadowMode:!1})},8644:(e,n,t)=>{var l=t(2604);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("509098ba",l,!0,{sourceMap:!1,shadowMode:!1})},8827:(e,n,t)=>{var l=t(1651);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("9c784b84",l,!0,{sourceMap:!1,shadowMode:!1})},6395:(e,n,t)=>{var l=t(8784);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("0e86fc54",l,!0,{sourceMap:!1,shadowMode:!1})},6074:(e,n,t)=>{var l=t(2498);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("24c3e658",l,!0,{sourceMap:!1,shadowMode:!1})},4572:(e,n,t)=>{var l=t(9316);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("588b24c7",l,!0,{sourceMap:!1,shadowMode:!1})},8490:(e,n,t)=>{var l=t(9058);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("8aaadfb6",l,!0,{sourceMap:!1,shadowMode:!1})},1552:(e,n,t)=>{var l=t(6552);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("560bdaf4",l,!0,{sourceMap:!1,shadowMode:!1})},1241:(e,n,t)=>{var l=t(3425);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("6529934c",l,!0,{sourceMap:!1,shadowMode:!1})},5663:(e,n,t)=>{var l=t(3495);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("52111554",l,!0,{sourceMap:!1,shadowMode:!1})},5739:(e,n,t)=>{var l=t(8707);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("d9806e72",l,!0,{sourceMap:!1,shadowMode:!1})},6611:(e,n,t)=>{var l=t(7019);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("29de9028",l,!0,{sourceMap:!1,shadowMode:!1})},4430:(e,n,t)=>{var l=t(4294);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("58a22774",l,!0,{sourceMap:!1,shadowMode:!1})},7542:(e,n,t)=>{var l=t(2897);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("e85732fa",l,!0,{sourceMap:!1,shadowMode:!1})},1497:(e,n,t)=>{var l=t(3224);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("0138eb9a",l,!0,{sourceMap:!1,shadowMode:!1})},6619:(e,n,t)=>{var l=t(8452);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("1dc714dc",l,!0,{sourceMap:!1,shadowMode:!1})},2846:(e,n,t)=>{var l=t(5895);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("18e03660",l,!0,{sourceMap:!1,shadowMode:!1})},3519:(e,n,t)=>{var l=t(3160);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("2af1c7e9",l,!0,{sourceMap:!1,shadowMode:!1})},519:(e,n,t)=>{var l=t(2574);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("df7a598a",l,!0,{sourceMap:!1,shadowMode:!1})},8087:(e,n,t)=>{var l=t(3200);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("01cd6850",l,!0,{sourceMap:!1,shadowMode:!1})},5934:(e,n,t)=>{var l=t(2753);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(4825).A;i("4e4cc5fe",l,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
2
|
//# sourceMappingURL=384.js.map
|