openc3-cosmos-tool-scriptrunner 5.4.1 → 5.4.3.pre.beta0.20230214173011
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/{449.js → 642.js} +3 -3
- data/tools/scriptrunner/js/642.js.map +1 -0
- data/tools/scriptrunner/js/749.js +2 -0
- data/tools/scriptrunner/js/749.js.map +1 -0
- data/tools/scriptrunner/js/app.js +1 -1
- data/tools/scriptrunner/js/app.js.map +1 -1
- metadata +8 -8
- data/tools/scriptrunner/js/262.js +0 -2
- data/tools/scriptrunner/js/262.js.map +0 -1
- data/tools/scriptrunner/js/449.js.map +0 -1
@@ -1,2 +0,0 @@
|
|
1
|
-
(self["webpackChunk_openc3_cosmos_tool_scriptrunner"]=self["webpackChunk_openc3_cosmos_tool_scriptrunner"]||[]).push([[262],{2262:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return Mt}});t(5342),t(8188);function l(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",e="073de3d560c3124f3b2b22a13300d8db29e198f6",t=new Function("return this")(),i="__coverage__",o={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:26}},4:{start:{line:1,column:265},end:{line:1,column:406}},5:{start:{line:1,column:339},end:{line:1,column:360}},6:{start:{line:1,column:465},end:{line:1,column:482}},7:{start:{line:1,column:730},end:{line:3,column:58}},8:{start:{line:2,column:12},end:{line:2,column:41}},9:{start:{line:3,column:125},end:{line:3,column:150}},10:{start:{line:3,column:798},end:{line:3,column:990}},11:{start:{line:3,column:1352},end:{line:3,column:1372}},12:{start:{line:3,column:1646},end:{line:3,column:1662}},13:{start:{line:3,column:1935},end:{line:3,column:1948}},14:{start:{line:3,column:2533},end:{line:3,column:2857}},15:{start:{line:3,column:2708},end:{line:3,column:2764}},16:{start:{line:3,column:3569},end:{line:3,column:3595}},17:{start:{line:3,column:3802},end:{line:3,column:3818}},18:{start:{line:3,column:3936},end:{line:3,column:3960}},19:{start:{line:3,column:3960},end:{line:3,column:4018}},20:{start:{line:3,column:4183},end:{line:3,column:4211}},21:{start:{line:3,column:4316},end:{line:3,column:4450}},22:{start:{line:3,column:5146},end:{line:3,column:5159}},23:{start:{line:3,column:5279},end:{line:3,column:5295}},24:{start:{line:3,column:5455},end:{line:3,column:5481}},25:{start:{line:3,column:5508},end:{line:3,column:5535}},26:{start:{line:3,column:5591},end:{line:3,column:5607}},27:{start:{line:3,column:5842},end:{line:3,column:5875}},28:{start:{line:3,column:5902},end:{line:3,column:5929}},29:{start:{line:3,column:5987},end:{line:3,column:6005}},30:{start:{line:3,column:6150},end:{line:3,column:6173}},31:{start:{line:3,column:6465},end:{line:3,column:6495}},32:{start:{line:3,column:6770},end:{line:3,column:6801}},33:{start:{line:3,column:7013},end:{line:3,column:7051}},34:{start:{line:3,column:7296},end:{line:3,column:7336}},35:{start:{line:3,column:7690},end:{line:3,column:7723}},36:{start:{line:3,column:7891},end:{line:3,column:7925}},37:{start:{line:3,column:8189},end:{line:3,column:8233}},38:{start:{line:3,column:8441},end:{line:3,column:8463}},39:{start:{line:3,column:8580},end:{line:3,column:8606}},40:{start:{line:4,column:12},end:{line:4,column:42}},41:{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:245},end:{line:1,column:246}},loc:{start:{line:1,column:264},end:{line:1,column:407}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:322},end:{line:1,column:323}},loc:{start:{line:1,column:338},end:{line:1,column:361}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:449},end:{line:1,column:450}},loc:{start:{line:1,column:464},end:{line:1,column:483}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:710},end:{line:1,column:711}},loc:{start:{line:1,column:729},end:{line:3,column:59}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:949},end:{line:1,column:950}},loc:{start:{line:1,column:955},end:{line:3,column:11}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:3,column:109},end:{line:3,column:110}},loc:{start:{line:3,column:124},end:{line:3,column:151}},line:3},7:{name:"(anonymous_7)",decl:{start:{line:3,column:774},end:{line:3,column:775}},loc:{start:{line:3,column:797},end:{line:3,column:991}},line:3},8:{name:"(anonymous_8)",decl:{start:{line:3,column:1336},end:{line:3,column:1337}},loc:{start:{line:3,column:1351},end:{line:3,column:1373}},line:3},9:{name:"(anonymous_9)",decl:{start:{line:3,column:1630},end:{line:3,column:1631}},loc:{start:{line:3,column:1645},end:{line:3,column:1663}},line:3},10:{name:"(anonymous_10)",decl:{start:{line:3,column:1919},end:{line:3,column:1920}},loc:{start:{line:3,column:1934},end:{line:3,column:1949}},line:3},11:{name:"(anonymous_11)",decl:{start:{line:3,column:2509},end:{line:3,column:2510}},loc:{start:{line:3,column:2532},end:{line:3,column:2858}},line:3},12:{name:"(anonymous_12)",decl:{start:{line:3,column:2691},end:{line:3,column:2692}},loc:{start:{line:3,column:2707},end:{line:3,column:2765}},line:3},13:{name:"(anonymous_13)",decl:{start:{line:3,column:3552},end:{line:3,column:3553}},loc:{start:{line:3,column:3568},end:{line:3,column:3596}},line:3},14:{name:"(anonymous_14)",decl:{start:{line:3,column:3786},end:{line:3,column:3787}},loc:{start:{line:3,column:3801},end:{line:3,column:3819}},line:3},15:{name:"(anonymous_15)",decl:{start:{line:3,column:3919},end:{line:3,column:3920}},loc:{start:{line:3,column:3935},end:{line:3,column:4019}},line:3},16:{name:"(anonymous_16)",decl:{start:{line:3,column:4167},end:{line:3,column:4168}},loc:{start:{line:3,column:4182},end:{line:3,column:4212}},line:3},17:{name:"(anonymous_17)",decl:{start:{line:3,column:4301},end:{line:3,column:4302}},loc:{start:{line:3,column:4315},end:{line:3,column:4451}},line:3},18:{name:"(anonymous_18)",decl:{start:{line:3,column:5130},end:{line:3,column:5131}},loc:{start:{line:3,column:5145},end:{line:3,column:5160}},line:3},19:{name:"(anonymous_19)",decl:{start:{line:3,column:5263},end:{line:3,column:5264}},loc:{start:{line:3,column:5278},end:{line:3,column:5296}},line:3},20:{name:"(anonymous_20)",decl:{start:{line:3,column:5438},end:{line:3,column:5439}},loc:{start:{line:3,column:5454},end:{line:3,column:5482}},line:3},21:{name:"(anonymous_21)",decl:{start:{line:3,column:5491},end:{line:3,column:5492}},loc:{start:{line:3,column:5507},end:{line:3,column:5536}},line:3},22:{name:"(anonymous_22)",decl:{start:{line:3,column:5575},end:{line:3,column:5576}},loc:{start:{line:3,column:5590},end:{line:3,column:5608}},line:3},23:{name:"(anonymous_23)",decl:{start:{line:3,column:5825},end:{line:3,column:5826}},loc:{start:{line:3,column:5841},end:{line:3,column:5876}},line:3},24:{name:"(anonymous_24)",decl:{start:{line:3,column:5885},end:{line:3,column:5886}},loc:{start:{line:3,column:5901},end:{line:3,column:5930}},line:3},25:{name:"(anonymous_25)",decl:{start:{line:3,column:5971},end:{line:3,column:5972}},loc:{start:{line:3,column:5986},end:{line:3,column:6006}},line:3},26:{name:"(anonymous_26)",decl:{start:{line:3,column:6134},end:{line:3,column:6135}},loc:{start:{line:3,column:6149},end:{line:3,column:6174}},line:3},27:{name:"(anonymous_27)",decl:{start:{line:3,column:6449},end:{line:3,column:6450}},loc:{start:{line:3,column:6464},end:{line:3,column:6496}},line:3},28:{name:"(anonymous_28)",decl:{start:{line:3,column:6754},end:{line:3,column:6755}},loc:{start:{line:3,column:6769},end:{line:3,column:6802}},line:3},29:{name:"(anonymous_29)",decl:{start:{line:3,column:6997},end:{line:3,column:6998}},loc:{start:{line:3,column:7012},end:{line:3,column:7052}},line:3},30:{name:"(anonymous_30)",decl:{start:{line:3,column:7280},end:{line:3,column:7281}},loc:{start:{line:3,column:7295},end:{line:3,column:7337}},line:3},31:{name:"(anonymous_31)",decl:{start:{line:3,column:7674},end:{line:3,column:7675}},loc:{start:{line:3,column:7689},end:{line:3,column:7724}},line:3},32:{name:"(anonymous_32)",decl:{start:{line:3,column:7875},end:{line:3,column:7876}},loc:{start:{line:3,column:7890},end:{line:3,column:7926}},line:3},33:{name:"(anonymous_33)",decl:{start:{line:3,column:8173},end:{line:3,column:8174}},loc:{start:{line:3,column:8188},end:{line:3,column:8234}},line:3},34:{name:"(anonymous_34)",decl:{start:{line:3,column:8425},end:{line:3,column:8426}},loc:{start:{line:3,column:8440},end:{line:3,column:8464}},line:3},35:{name:"(anonymous_35)",decl:{start:{line:3,column:8564},end:{line:3,column:8565}},loc:{start:{line:3,column:8579},end:{line:3,column:8607}},line:3},36:{name:"(anonymous_36)",decl:{start:{line:3,column:8771},end:{line:3,column:8772}},loc:{start:{line:3,column:8777},end:{line:5,column:11}},line:3}},branchMap:{0:{loc:{start:{line:3,column:321},end:{line:3,column:479}},type:"cond-expr",locations:[{start:{line:3,column:339},end:{line:3,column:470}},{start:{line:3,column:471},end:{line:3,column:479}}],line:3},1:{loc:{start:{line:3,column:583},end:{line:3,column:697}},type:"cond-expr",locations:[{start:{line:3,column:604},end:{line:3,column:688}},{start:{line:3,column:689},end:{line:3,column:697}}],line:3},2:{loc:{start:{line:3,column:1972},end:{line:3,column:2191}},type:"cond-expr",locations:[{start:{line:3,column:2004},end:{line:3,column:2110}},{start:{line:3,column:2111},end:{line:3,column:2191}}],line:3},3:{loc:{start:{line:3,column:2207},end:{line:3,column:3449}},type:"cond-expr",locations:[{start:{line:3,column:2241},end:{line:3,column:2940}},{start:{line:3,column:2941},end:{line:3,column:3449}}],line:3},4:{loc:{start:{line:3,column:4577},end:{line:3,column:5199}},type:"cond-expr",locations:[{start:{line:3,column:4593},end:{line:3,column:5190}},{start:{line:3,column:5191},end:{line:3,column:5199}}],line:3},5:{loc:{start:{line:3,column:5330},end:{line:3,column:5642}},type:"cond-expr",locations:[{start:{line:3,column:5345},end:{line:3,column:5633}},{start:{line:3,column:5634},end:{line:3,column:5642}}],line:3},6:{loc:{start:{line:3,column:5643},end:{line:3,column:6042}},type:"cond-expr",locations:[{start:{line:3,column:5660},end:{line:3,column:6033}},{start:{line:3,column:6034},end:{line:3,column:6042}}],line:3},7:{loc:{start:{line:3,column:6043},end:{line:3,column:6215}},type:"cond-expr",locations:[{start:{line:3,column:6065},end:{line:3,column:6206}},{start:{line:3,column:6207},end:{line:3,column:6215}}],line:3},8:{loc:{start:{line:3,column:6216},end:{line:3,column:6530}},type:"cond-expr",locations:[{start:{line:3,column:6231},end:{line:3,column:6521}},{start:{line:3,column:6522},end:{line:3,column:6530}}],line:3},9:{loc:{start:{line:3,column:6531},end:{line:3,column:6837}},type:"cond-expr",locations:[{start:{line:3,column:6547},end:{line:3,column:6828}},{start:{line:3,column:6829},end:{line:3,column:6837}}],line:3},10:{loc:{start:{line:3,column:6838},end:{line:3,column:7094}},type:"cond-expr",locations:[{start:{line:3,column:6861},end:{line:3,column:7085}},{start:{line:3,column:7086},end:{line:3,column:7094}}],line:3},11:{loc:{start:{line:3,column:7095},end:{line:3,column:7381}},type:"cond-expr",locations:[{start:{line:3,column:7120},end:{line:3,column:7372}},{start:{line:3,column:7373},end:{line:3,column:7381}}],line:3},12:{loc:{start:{line:3,column:7382},end:{line:3,column:7761}},type:"cond-expr",locations:[{start:{line:3,column:7400},end:{line:3,column:7752}},{start:{line:3,column:7753},end:{line:3,column:7761}}],line:3},13:{loc:{start:{line:3,column:7762},end:{line:3,column:7964}},type:"cond-expr",locations:[{start:{line:3,column:7781},end:{line:3,column:7955}},{start:{line:3,column:7956},end:{line:3,column:7964}}],line:3},14:{loc:{start:{line:3,column:7965},end:{line:3,column:8282}},type:"cond-expr",locations:[{start:{line:3,column:7994},end:{line:3,column:8273}},{start:{line:3,column:8274},end:{line:3,column:8282}}],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},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},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]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"073de3d560c3124f3b2b22a13300d8db29e198f6"},s=t[i]||(t[i]={});s[n]&&s[n].hash===e||(s[n]=o);var a=s[n];return l=function(){return a},a}l(),l().s[0]++;var i=function(){l().f[0]++;var n=(l().s[1]++,this),e=(l().s[2]++,n._self._c);return l().s[3]++,e("div",[e("top-bar",{attrs:{menus:n.menus,title:n.title}}),e("v-snackbar",{attrs:{top:"",color:n.alertType,timeout:3e3},scopedSlots:n._u([{key:"action",fn:function(t){var i=t.attrs;return l().f[1]++,l().s[4]++,[e("v-btn",n._b({attrs:{text:""},on:{click:function(e){l().f[2]++,l().s[5]++,n.showAlert=!1}}},"v-btn",i,!1),[n._v(" Close ")])]}}]),model:{value:n.showAlert,callback:function(e){l().f[3]++,l().s[6]++,n.showAlert=e},expression:"showAlert"}},[e("v-icon",[n._v(" mdi-"+n._s(n.alertType)+" ")]),n._v(" "+n._s(n.alertText)+" ")],1),e("v-snackbar",{attrs:{top:"",timeout:-1,color:"orange"},scopedSlots:n._u([{key:"action",fn:function(t){var i=t.attrs;return l().f[4]++,l().s[7]++,[e("v-btn",n._b({attrs:{text:"",color:"danger","data-test":"unlock-button"},on:{click:n.confirmLocalUnlock}},"v-btn",i,!1),[n._v(" Unlock ")]),e("v-btn",n._b({attrs:{text:""},on:{click:function(){l().f[5]++,l().s[8]++,n.showReadOnlyToast=!1}}},"v-btn",i,!1),[n._v(" dismiss ")])]}}]),model:{value:n.showReadOnlyToast,callback:function(e){l().f[6]++,l().s[9]++,n.showReadOnlyToast=e},expression:"showReadOnlyToast"}},[e("v-icon",[n._v(" mdi-pencil-off ")]),n._v(" "+n._s(n.lockedBy)+" is editing this script. Editor is in read-only mode ")],1),n.suiteRunner?(l().b[0][0]++,e("suite-runner",{attrs:{"suite-map":n.suiteMap,"disable-buttons":n.disableSuiteButtons},on:{button:n.suiteRunnerButton}})):(l().b[0][1]++,n._e()),e("div",{attrs:{id:"sr-controls"}},[e("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[n.showDisconnect?(l().b[1][0]++,e("v-icon",{staticClass:"mr-2",attrs:{color:"red"}},[n._v(" mdi-connection ")])):(l().b[1][1]++,n._e()),e("v-tooltip",{attrs:{bottom:""},scopedSlots:n._u([{key:"activator",fn:function(t){var i=t.on,o=t.attrs;return l().f[7]++,l().s[10]++,[e("v-btn",n._g(n._b({attrs:{icon:"",disabled:n.filename===n.NEW_FILENAME},on:{click:n.reloadFile}},"v-btn",o,!1),i),[e("v-icon",[n._v("mdi-cached")])],1)]}}])},[e("span",[n._v(" Reload File ")])]),e("v-select",{staticStyle:{width:"300px"},attrs:{items:n.fileList,disabled:n.fileList.length<=1,label:"Filename",id:"filename","data-test":"filename",dense:"",outlined:"",readonly:"","hide-details":""},on:{change:n.fileNameChanged},model:{value:n.fullFilename,callback:function(e){l().f[8]++,l().s[11]++,n.fullFilename=e},expression:"fullFilename"}}),e("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:n.scriptId,callback:function(e){l().f[9]++,l().s[12]++,n.scriptId=e},expression:"scriptId"}}),e("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:n.state,callback:function(e){l().f[10]++,l().s[13]++,n.state=e},expression:"state"}}),"Connecting..."===n.state?(l().b[2][0]++,e("v-progress-circular",{staticClass:"ml-2 mr-2",attrs:{size:40,indeterminate:"",color:"primary"}})):(l().b[2][1]++,e("div",{staticClass:"ml-2 mr-2",staticStyle:{width:"40px",height:"40px"}})),e("v-spacer"),"Start"===n.startOrGoButton?(l().b[3][0]++,e("div",[e("v-btn",{staticClass:"mx-1",attrs:{color:"primary","data-test":"start-button",disabled:n.startOrGoDisabled},on:{click:n.startHandler}},[e("span",[n._v(" Start ")])]),e("v-tooltip",{attrs:{bottom:""},scopedSlots:n._u([{key:"activator",fn:function(t){var i=t.on,o=t.attrs;return l().f[11]++,l().s[14]++,[e("v-btn",n._g(n._b({staticClass:"mx-1",attrs:{"data-test":"env-button",color:n.environmentIconColor,disabled:n.envDisabled},on:{click:function(e){l().f[12]++,l().s[15]++,n.scriptEnvironment.show=!n.scriptEnvironment.show}}},"v-btn",o,!1),i),[e("v-icon",[n._v(" "+n._s(n.environmentIcon)+" ")])],1)]}}],null,!1,3991735395)},[e("span",[n._v(" Open Environment Dialog ")])])],1)):(l().b[3][1]++,e("div",[e("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:n.startOrGoDisabled,"data-test":"go-button"},on:{click:n.go}},[n._v(" Go ")]),e("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:n.pauseOrRetryDisabled,"data-test":"pause-retry-button"},on:{click:n.pauseOrRetry}},[n._v(" "+n._s(n.pauseOrRetryButton)+" ")]),e("v-btn",{attrs:{color:"primary","data-test":"stop-button",disabled:n.stopDisabled},on:{click:n.stop}},[n._v(" Stop ")])],1))],1)],1),e("multipane",{staticClass:"horizontal-panes",attrs:{layout:"horizontal"},on:{paneResize:function(e){return l().f[13]++,l().s[16]++,n.editor.resize()}}},[e("div",{staticClass:"pane",attrs:{id:"editorbox"}},[e("v-snackbar",{staticClass:"saving",attrs:{absolute:"",top:"",right:"",timeout:-1},model:{value:n.showSave,callback:function(e){l().f[14]++,l().s[17]++,n.showSave=e},expression:"showSave"}},[n._v(" Saving... ")]),e("pre",{attrs:{id:"editor"},on:{contextmenu:function(e){return l().f[15]++,l().s[18]++,e.preventDefault(),l().s[19]++,n.showExecuteSelectionMenu.apply(null,arguments)}}}),e("v-menu",{attrs:{"position-x":n.menuX,"position-y":n.menuY,absolute:"","offset-y":""},model:{value:n.executeSelectionMenu,callback:function(e){l().f[16]++,l().s[20]++,n.executeSelectionMenu=e},expression:"executeSelectionMenu"}},[e("v-list",n._l(n.executeSelectionMenuItems,(function(t){return l().f[17]++,l().s[21]++,e("v-list-item",{key:t.label},[e("v-list-item-title",{on:{click:t.command}},[n._v(" "+n._s(t.label)+" ")])],1)})),1)],1)],1),e("multipane-resizer",[e("hr")]),e("div",{ref:"messagesDiv",staticClass:"mt-2 pane",attrs:{id:"messages"}},[n.showDebug?(l().b[4][0]++,e("div",{staticClass:"pa-0",attrs:{id:"debug"}},[e("v-row",{attrs:{"no-gutters":""}},[e("v-btn",{staticClass:"mr-4",staticStyle:{width:"100px"},attrs:{color:"primary",disabled:n.stepDisabled,"data-test":"step-button"},on:{click:n.step}},[n._v(" Step "),e("v-icon",{attrs:{right:""}},[n._v(" mdi-step-forward ")])],1),e("v-text-field",{staticClass:"mb-2",attrs:{outlined:"",dense:"","hide-details":"",label:"Debug","data-test":"debug-text"},on:{keydown:n.debugKeydown},model:{value:n.debug,callback:function(e){l().f[18]++,l().s[22]++,n.debug=e},expression:"debug"}})],1)],1)):(l().b[4][1]++,n._e()),e("script-log-messages",{model:{value:n.messages,callback:function(e){l().f[19]++,l().s[23]++,n.messages=e},expression:"messages"}})],1)],1),n.fileOpen?(l().b[5][0]++,e("file-open-save-dialog",{attrs:{type:"open","api-url":"/script-api/scripts"},on:{file:function(e){return l().f[20]++,l().s[24]++,n.setFile(e)},error:function(e){return l().f[21]++,l().s[25]++,n.setError(e)}},model:{value:n.fileOpen,callback:function(e){l().f[22]++,l().s[26]++,n.fileOpen=e},expression:"fileOpen"}})):(l().b[5][1]++,n._e()),n.showSaveAs?(l().b[6][0]++,e("file-open-save-dialog",{attrs:{type:"save","api-url":"/script-api/scripts","require-target-parent-dir":"","input-filename":n.filenameOrBlank},on:{filename:function(e){return l().f[23]++,l().s[27]++,n.saveAsFilename(e)},error:function(e){return l().f[24]++,l().s[28]++,n.setError(e)}},model:{value:n.showSaveAs,callback:function(e){l().f[25]++,l().s[29]++,n.showSaveAs=e},expression:"showSaveAs"}})):(l().b[6][1]++,n._e()),n.showEnvironment?(l().b[7][0]++,e("environment-dialog",{model:{value:n.showEnvironment,callback:function(e){l().f[26]++,l().s[30]++,n.showEnvironment=e},expression:"showEnvironment"}})):(l().b[7][1]++,n._e()),n.ask.show?(l().b[8][0]++,e("ask-dialog",{attrs:{question:n.ask.question,default:n.ask.default,password:n.ask.password,"answer-required":n.ask.answerRequired},on:{response:n.ask.callback},model:{value:n.ask.show,callback:function(e){l().f[27]++,l().s[31]++,n.$set(n.ask,"show",e)},expression:"ask.show"}})):(l().b[8][1]++,n._e()),n.file.show?(l().b[9][0]++,e("file-dialog",{attrs:{title:n.file.title,message:n.file.message,multiple:n.file.multiple,filter:n.file.filter},on:{response:n.fileDialogCallback},model:{value:n.file.show,callback:function(e){l().f[28]++,l().s[32]++,n.$set(n.file,"show",e)},expression:"file.show"}})):(l().b[9][1]++,n._e()),n.information.show?(l().b[10][0]++,e("information-dialog",{attrs:{title:n.information.title,text:n.information.text},model:{value:n.information.show,callback:function(e){l().f[29]++,l().s[33]++,n.$set(n.information,"show",e)},expression:"information.show"}})):(l().b[10][1]++,n._e()),n.inputMetadata.show?(l().b[11][0]++,e("input-metadata-dialog",{attrs:{target:n.inputMetadata.target},on:{response:n.inputMetadata.callback},model:{value:n.inputMetadata.show,callback:function(e){l().f[30]++,l().s[34]++,n.$set(n.inputMetadata,"show",e)},expression:"inputMetadata.show"}})):(l().b[11][1]++,n._e()),n.prompt.show?(l().b[12][0]++,e("prompt-dialog",{attrs:{title:n.prompt.title,subtitle:n.prompt.subtitle,message:n.prompt.message,details:n.prompt.details,buttons:n.prompt.buttons,layout:n.prompt.layout},on:{response:n.prompt.callback},model:{value:n.prompt.show,callback:function(e){l().f[31]++,l().s[35]++,n.$set(n.prompt,"show",e)},expression:"prompt.show"}})):(l().b[12][1]++,n._e()),n.results.show?(l().b[13][0]++,e("results-dialog",{attrs:{text:n.results.text},model:{value:n.results.show,callback:function(e){l().f[32]++,l().s[36]++,n.$set(n.results,"show",e)},expression:"results.show"}})):(l().b[13][1]++,n._e()),n.scriptEnvironment.show?(l().b[14][0]++,e("script-environment-dialog",{attrs:{"input-environment":n.scriptEnvironment.env},on:{environment:n.environmentHandler},model:{value:n.scriptEnvironment.show,callback:function(e){l().f[33]++,l().s[37]++,n.$set(n.scriptEnvironment,"show",e)},expression:"scriptEnvironment.show"}})):(l().b[14][1]++,n._e()),e("simple-text-dialog",{attrs:{title:"Suite Analysis Error",text:n.suiteError,width:1e3},model:{value:n.showSuiteError,callback:function(e){l().f[34]++,l().s[38]++,n.showSuiteError=e},expression:"showSuiteError"}}),e("v-bottom-sheet",{model:{value:n.showStartedScripts,callback:function(e){l().f[35]++,l().s[39]++,n.showStartedScripts=e},expression:"showStartedScripts"}},[e("v-sheet",{staticClass:"pb-11 pt-5 px-5"},[e("running-scripts",{attrs:{"connect-in-new-tab":!!n.fileModified},on:{close:function(){l().f[36]++,l().s[40]++,n.showStartedScripts=!1}}})],1)],1)],1)},o=(l().s[41]++,[]),s=t(6964),a=t(8081),c=t(5789),r=t(9502),u=t(615),m=(t(4769),t(6728),t(3244),t(8673),t(6886),t(4905),t(7368),t(4471),t(7950),t(1172),t(8233),t(1951),t(9228),t(3450),t(5794),t(1939),t(9529),t(1235),t(3132),t(1245),t(8178),t(2501),t(4121),t(523),t(4115),t(634),t(9644)),d=t.n(m),A=t(426),p=t(7871),h=t(7146);h.ju.staleThreshold=10;var f=function(){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/openc3-api/cable";(0,A.Z)(this,n),this._cable=h.zD(e)}return(0,p.Z)(n,[{key:"disconnect",value:function(){this._cable.disconnect()}},{key:"createSubscription",value:function(n,e){var t=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(){return t._cable.subscriptions.create((0,s.Z)({channel:n,scope:e,token:localStorage.openc3Token},i),l)}))}},{key:"recordPing",value:function(){this._cable.connection.monitor.recordPing()}}]),n}(),v=t(4091),C=new v["default"],b=d().create({baseURL:location.origin,timeout:6e4,params:{}});b.interceptors.response.use((function(n){return n}),(function(n){if(n.response){var e,t,l,i,o,s,a,c,r,u;if(401===n.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0),n.response.headers["ignore-errors"]&&n.response.headers["ignore-errors"].includes(n.response.status.toString()))return Promise.reject(n);var m="HTTP ".concat(n.response.status," - ");if(null!==(e=n.response)&&void 0!==e&&e.statusText&&(m+="".concat(n.response.statusText," ")),null!==(t=n.response)&&void 0!==t&&null!==(l=t.config)&&void 0!==l&&l.data&&(m+="".concat(n.response.config.data," ")),null!==(i=n.response)&&void 0!==i&&null!==(o=i.data)&&void 0!==o&&o.message)m+="".concat(n.response.data.message);else if(null!==(s=n.response)&&void 0!==s&&null!==(a=s.data)&&void 0!==a&&a.exception)m+="".concat(n.response.data.exception);else if(null!==(c=n.response)&&void 0!==c&&null!==(r=c.data)&&void 0!==r&&null!==(u=r.error)&&void 0!==u&&u.message)n.response.data.error.class&&(m+="".concat(n.response.data.error.class," ")),m+="".concat(n.response.data.error.message);else{var d;m+="".concat(null===(d=n.response)||void 0===d?void 0:d.data)}throw C.$notify&&C.$notify.serious({title:"Network error",body:m}),n}throw n}));var g=b,y=function(){var n=(0,r.Z)((0,c.Z)().mark((function n(e,t){var l,i,o,s,a,r,u,m,d,A=arguments;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(l=A.length>2&&void 0!==A[2]?A[2]:{},i=l.data,o=l.params,s=void 0===o?{}:o,a=l.headers,r=l.noAuth,u=void 0!==r&&r,m=l.noScope,d=void 0!==m&&m,u){n.next=11;break}return n.prev=2,n.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:n.next=10;break;case 7:n.prev=7,n.t0=n["catch"](2),OpenC3Auth.login();case 10:a["Authorization"]=localStorage.openc3Token;case 11:return d||s["scope"]||(s["scope"]=window.openc3Scope),n.abrupt("return",g({method:e,url:t,data:i,params:s,headers:a}));case 13:case"end":return n.stop()}}),n,null,[[2,7]])})));return function(e,t){return n.apply(this,arguments)}}(),_={Accept:"application/json"},w=(0,s.Z)((0,s.Z)({},_),{},{"Content-Type":"application/json"}),k={get:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.params,l=e.headers,i=void 0===l?_:l,o=e.noScope,s=e.noAuth;return y("get",n,{params:t,headers:i,noScope:o,noAuth:s})},put:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.data,l=e.params,i=e.headers,o=void 0===i?w:i,s=e.noScope,a=e.noAuth;return y("put",n,{data:t,params:l,headers:o,noScope:s,noAuth:a})},post:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.data,l=e.params,i=e.headers,o=void 0===i?w:i,s=e.noScope,a=e.noAuth;return y("post",n,{data:t,params:l,headers:o,noScope:s,noAuth:a})},delete:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.params,l=e.headers,i=void 0===l?_:l,o=e.noScope,s=e.noAuth;return y("delete",n,{params:t,headers:i,noScope:o,noAuth:s})}},x=t(5095),S=(t(1411),t(419),t(3923),t(2375),t(8966)),R=t(7284),M=(t(4083),t(4908),function(){var n=this,e=n._self._c;return e("v-dialog",{attrs:{width:"600"},on:{keydown:function(e){return!e.type.indexOf("key")&&n._k(e.keyCode,"enter",13,e.key,"Enter")?null:n.success()}},model:{value:n.show,callback:function(e){n.show=e},expression:"show"}},[e("v-card",[e("form",{on:{submit:function(e){return e.preventDefault(),n.success.apply(null,arguments)}}},[e("v-system-bar",[e("v-spacer"),e("span",[n._v(" "+n._s(n.title)+" ")]),e("v-spacer")],1),e("v-card-text",[e("div",{staticClass:"pa-3"},[e("v-row",{attrs:{dense:""}},[e("v-text-field",{attrs:{flat:"",autofocus:"","solo-inverted":"","hide-details":"",clearable:"",label:"Search","data-test":"file-open-save-search"},on:{input:n.handleSearch},model:{value:n.search,callback:function(e){n.search=e},expression:"search"}})],1),e("v-row",{staticClass:"mt-2",attrs:{dense:""}},[e("v-treeview",{ref:"tree",staticStyle:{width:"100%"},attrs:{dense:"",activatable:"","return-object":"",items:n.items,search:n.search,"open-on-click":"open"===n.type},on:{"update:active":n.activeFile},scopedSlots:n._u([{key:"prepend",fn:function(t){var l=t.item,i=t.open;return[l.file?e("v-icon",[n._v(" "+n._s("mdi-language-ruby")+" ")]):e("v-icon",[n._v(" "+n._s(i?"mdi-folder-open":"mdi-folder")+" ")])]}},{key:"append",fn:function(t){var l=t.item;return["__TEMP__"===l.name?e("v-btn",{attrs:{icon:""},on:{click:n.deleteTemp}},[e("v-icon",[n._v(" mdi-delete ")])],1):n._e()]}}]),model:{value:n.tree,callback:function(e){n.tree=e},expression:"tree"}})],1),e("v-row",{staticClass:"my-2"},[e("v-text-field",{attrs:{"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:"open"===n.type},model:{value:n.selectedFile,callback:function(e){n.selectedFile=e},expression:"selectedFile"}})],1),e("v-row",{attrs:{dense:""}},[e("span",{directives:[{name:"show",rawName:"v-show",value:n.error,expression:"error"}],staticClass:"my-2 red--text",domProps:{textContent:n._s(n.error)}})]),e("v-row",{staticClass:"mt-2"},[e("v-spacer"),e("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"file-open-save-cancel-btn",disabled:n.disableButtons},on:{click:function(e){n.show=!1}}},[n._v(" Cancel ")]),e("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"file-open-save-submit-btn",disabled:n.disableButtons||!!n.error},on:{click:function(e){return e.preventDefault(),n.success.apply(null,arguments)}}},[n._v(" "+n._s(n.submit)+" ")])],1)],1)])],1)])],1)}),E=[],T=(t(4069),t(9949),{props:{type:{type:String,required:!0,validator:function(n){return-1!==["open","save"].indexOf(n)}},apiUrl:String,requireTargetParentDir:Boolean,inputFilename:String,value:Boolean},data:function(){return{tree:[],items:[],id:1,search:null,selectedFile:null,disableButtons:!1,targets:[]}},computed:{show:{get:function(){return this.value},set:function(n){this.$emit("input",n)}},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(/\.\.|\/\/|\.\/|\/\./)){var n="".concat(this.selectedFile," is not a valid filename. Must ");return this.requireTargetParentDir&&(n+="be in a target directory and "),n+="only contain alphanumeric characters and / ! - _ . * ' ( )",n}return null},validFilenameRegex:function(){var n="0-9a-zA-Z",e="".concat(n,"\\/\\!\\-\\_\\.\\*\\'\\(\\)"),t="[".concat(e,"]+\\.[").concat(n,"]+");if(this.requireTargetParentDir){var l="(".concat(this.targets.join("|"),")");t="\\/?".concat(l,"\\/").concat(t)}return new RegExp(t)}},created:function(){var n=this;this.loadFiles(),this.requireTargetParentDir&&k.get("/openc3-api/targets").then((function(e){n.targets=e.data}))},methods:{loadFiles:function(){var n=this;k.get(this.apiUrl).then((function(e){n.items=[],n.id=1;var t,l=(0,a.Z)(e.data);try{for(l.s();!(t=l.n()).done;){var i=t.value;n.filepath=i,n.insertFile(n.items,1,i),n.id++}}catch(o){l.e(o)}finally{l.f()}n.inputFilename&&(n.selectedFile=n.inputFilename)})).catch((function(e){n.$emit("error","Failed to connect to OpenC3. ".concat(e))}))},clear:function(){this.show=!1,this.overwrite=!1,this.disableButtons=!1},handleSearch:function(n){n?this.$refs.tree.updateAll(!0):this.$refs.tree.updateAll(!1)},activeFile:function(n){0===n.length?this.selectedFile=null:this.selectedFile=n[0].path},exists:function(n,e){var t,l=!1,i=(0,a.Z)(n);try{for(i.s();!(t=i.n()).done;){var o=t.value;if(o.path===e)return!0;if(o.path.length>1&&"*"===o.path[o.path.length-1]&&o.path.slice(0,o.path.length-1)===e)return!0;o.children&&(l=l||this.exists(o.children,e))}}catch(s){i.e(s)}finally{i.f()}return l},success:function(){null!==this.selectedFile&&null===this.error&&("open"===this.type?this.openSuccess():this.saveSuccess())},deleteTemp:function(){var n=this;this.$dialog.confirm("Are you sure you want to delete all the temporary files?",{okText:"Delete",cancelText:"Cancel"}).then((function(n){return k["delete"]("/script-api/scripts/temp_files")})).then((function(e){n.loadFiles()})).catch((function(e){n.$notify.error({title:"Error",body:"Failed to remove script temporary files due to ".concat(e)})}))},openSuccess:function(){var n=this;this.disableButtons=!0,k.get("".concat(this.apiUrl,"/").concat(this.selectedFile)).then((function(e){var t={name:n.selectedFile,contents:e.data.contents};e.data.suites&&(t["suites"]=JSON.parse(e.data.suites)),e.data.error&&(t["error"]=e.data.error),e.data.success&&(t["success"]=e.data.success);var l=e.data.locked,i=e.data.breakpoints;n.$emit("file",{file:t,locked:l,breakpoints:i}),n.clear()})).catch((function(e){n.$emit("error","Failed to open ".concat(n.selectedFile,". ").concat(e)),n.clear()}))},saveSuccess:function(){var n=this,e=this.exists(this.items,this.selectedFile);e?this.$dialog.confirm("Are you sure you want to overwrite: ".concat(this.selectedFile),{okText:"Overwrite",cancelText:"Cancel"}).then((function(e){n.$emit("filename",n.selectedFile),n.clear()})):(this.$emit("filename",this.selectedFile),this.clear())},insertFile:function(n,e,t){var l=t.split("/");if(1===l.length)return n.push({id:this.id,name:l[0],file:"ruby",path:this.filepath}),void this.id++;var i=n.findIndex((function(n){return n.name===l[0]}));-1===i?(n.push({id:this.id,name:l[0],children:[],path:this.filepath.split("/").slice(0,e).join("/")}),this.id++,this.insertFile(n[n.length-1].children,e+1,l.slice(1).join("/"))):this.insertFile(n[i].children,e+1,l.slice(1).join("/"))}}}),D=T,O=t(3483),F=(0,O.Z)(D,M,E,!1,null,null,null),I=F.exports,$=function(){var n=this,e=n._self._c;return e("v-dialog",{attrs:{width:"600"},model:{value:n.show,callback:function(e){n.show=e},expression:"show"}},[e("v-card",[e("form",{on:{submit:function(e){return e.preventDefault(),n.addEnvironment.apply(null,arguments)}}},[e("v-system-bar",[e("v-spacer"),e("span",[n._v("Environment Variables")]),e("v-spacer")],1),e("v-card-text",[e("div",{staticClass:"pa-3"},[e("v-row",{staticClass:"mb-2",attrs:{dense:""}},[e("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"",autofocus:"","single-line":"","hide-details":""},model:{value:n.search,callback:function(e){n.search=e},expression:"search"}})],1),e("v-data-table",{attrs:{"item-key":"name","hide-default-header":"","data-test":"env-table",search:n.search,headers:n.headers,items:n.environment,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:n._u([{key:"item.actions",fn:function(t){var l=t.item;return[e("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(e){return n.deleteEnvironment(l)}}},[e("v-icon",[n._v("mdi-delete")])],1)]}}])}),e("v-row",{attrs:{dense:""}},[e("v-col",[e("v-text-field",{attrs:{label:"Key","data-test":"env-key"},model:{value:n.key,callback:function(e){n.key=e},expression:"key"}})],1),e("v-col",[e("v-text-field",{attrs:{label:"Value","data-test":"env-value"},model:{value:n.keyValue,callback:function(e){n.keyValue=e},expression:"keyValue"}})],1)],1),e("v-row",{attrs:{dense:""}},[e("v-btn",{attrs:{block:"",type:"submit",color:"primary","data-test":"add-env",disabled:!n.key||!n.keyValue},on:{click:function(e){return e.preventDefault(),n.addEnvironment.apply(null,arguments)}}},[n._v(" Add ")])],1)],1)])],1)])],1)},N=[],B={props:{value:Boolean},data:function(){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:function(){return this.value},set:function(n){this.$emit("input",n)}}},mounted:function(){this.update()},methods:{alertHandler:function(n){this.alert=n.text,this.alertType=n.type,this.showAlert=!0},update:function(){var n=this;k.get("/openc3-api/environment").then((function(e){n.environment=e.data})).catch((function(n){}))},addEnvironment:function(){var n=this;k.post("/openc3-api/environment",{data:{key:this.key.toUpperCase(),value:this.keyValue}}).then((function(e){"New environment variable: ".concat(e.data.name);n.update()})).catch((function(e){var t={text:"Failed to add environment variable: ".concat(e),type:"error"};n.alertHandler(t)})),this.key="",this.keyValue=""},deleteEnvironment:function(n){var e=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(n.key,"=").concat(n.value),{okText:"Delete",cancelText:"Cancel"}).then((function(e){return k["delete"]("/openc3-api/environment/".concat(n.name))})).then((function(t){var l={text:"Removed environment variable: ".concat(n.name),type:"success"};e.alertHandler(l),e.update()})).catch((function(n){var t={text:"Failed to delete environment: ".concat(n),type:"error"};e.alertHandler(t)}))}}},L=B,P=(0,O.Z)(L,$,N,!1,null,null,null),Z=P.exports,H=function(){var n=this,e=n._self._c;return e("v-dialog",{attrs:{width:n.width},model:{value:n.show,callback:function(e){n.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),e("span",[n._v(" "+n._s(n.title)+" ")]),e("v-spacer"),e("div",{staticClass:"mx-2"},[e("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(t){var l=t.on,i=t.attrs;return[e("div",n._g(n._b({},"div",i,!1),l),[e("v-icon",{attrs:{"data-test":"downloadIcon"},on:{click:n.download}},[n._v(" mdi-download ")])],1)]}}])},[e("span",[n._v(" Download ")])])],1)],1),e("v-card-text",[e("div",{staticClass:"pa-3"},[e("span",{staticStyle:{"white-space":"pre-wrap"}},[n._v(n._s(n.text))])])]),e("v-card-actions",[e("v-spacer"),e("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(e){n.show=!n.show}}},[n._v(" Ok ")])],1)],1)],1)},U=[],G={props:{value:Boolean,text:String,title:String,width:800},computed:{show:{get:function(){return this.value},set:function(n){this.$emit("input",n)}}},methods:{download:function(){var n=new Blob([this.text],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(n),e.setAttribute("download","".concat(this.title,".txt")),e.click()}}},j=G,q=(0,O.Z)(j,H,U,!1,null,null,null),V=q.exports,z=function(){var n=this,e=n._self._c;return e("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[e("div",{staticClass:"v-toolbar__content"},[n._l(n.menus,(function(t,l){return e("v-menu",{key:l,attrs:{"offset-y":""},scopedSlots:n._u([{key:"activator",fn:function(l){var i=l.on,o=l.attrs;return[e("v-btn",n._g(n._b({staticClass:"mx-1",attrs:{outlined:"","data-test":n.formatDT("".concat(n.title," ").concat(t.label))}},"v-btn",o,!1),i),[e("span",{domProps:{textContent:n._s(t.label)}}),e("v-icon",{attrs:{right:""}},[n._v(" mdi-menu-down ")])],1)]}}],null,!0)},[e("v-list",[e("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:t.radioGroup,"hide-details":"",dense:""}},[n._l(t.items,(function(l,i){return[l.divider?e("v-divider"):e("v-list-item",{key:i,attrs:{disabled:l.disabled,"data-test":n.formatDT("".concat(n.title," ").concat(t.label," ").concat(l.label))},on:{click:function(n){return l.command(l)}}},[l.radio?e("v-list-item-action",[e("v-radio",{attrs:{color:"secondary",label:l.label,value:l.label}})],1):n._e(),l.checkbox?e("v-list-item-action",[e("v-checkbox",{attrs:{color:"secondary",label:l.label},model:{value:l.checked,callback:function(e){n.$set(l,"checked",e)},expression:"option.checked"}})],1):n._e(),l.icon?e("v-list-item-icon",[e("v-icon",{attrs:{disabled:l.disabled}},[n._v(n._s(l.icon))])],1):n._e(),l.radio||l.checkbox?n._e():e("v-list-item-title",{style:"cursor: pointer;"+(l.disabled?"opacity: 0.2":"")},[n._v(n._s(l.label))])],1)]}))],2)],1)],1)})),e("v-spacer"),e("v-toolbar-title",[n._v(n._s(n.title))]),e("v-spacer")],2)])},W=[],Y=(t(5940),t(1639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(n){return n.replaceAll(" ","-").toLowerCase()}},mounted:function(){"COSMOS "===this.title.substring(0,7)?document.title=this.title.substring(7):document.title=this.title}}),K=Y,J=(t(4888),(0,O.Z)(K,z,W,!1,null,"2eb37f67",null)),X=J.exports,Q=t(6259),nn=t(2261),en=(t(1372),t(3675),t(4898),t(5825),t(7170),t(8857),t(8329),t(6279),t(427),t(171),t(7093),t(1159),t(2516),t(4349),t(5273),t(6729),t(1801),t(574),t(5787),t(9271),t(3160),t(5688),t(3157),t(3333),t(315),t(556),t(9224),t(7233),t(5734),function(){function n(){(0,A.Z)(this,n),(0,nn.Z)(this,"id",1)}return(0,p.Z)(n,[{key:"exec",value:function(){var n=(0,r.Z)((0,c.Z)().mark((function n(e,t){var l,i,o,a,r=arguments;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return l=r.length>2&&void 0!==r[2]?r[2]:{},i=r.length>3&&void 0!==r[3]?r[3]:{},n.prev=2,n.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:n.next=10;break;case 7:n.prev=7,n.t0=n["catch"](2),OpenC3Auth.login();case 10:return this.id=this.id+1,n.prev=11,l["scope"]=window.openc3Scope,n.next=15,g.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:t,id:this.id,keyword_params:l},{headers:(0,s.Z)({Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"},i)});case 15:return o=n.sent,n.abrupt("return",o.data.result);case 19:throw n.prev=19,n.t1=n["catch"](11),a=new Error,n.t1.response?(a.name=n.t1.response.data.error.data.class,a.message=n.t1.response.data.error.data.message):n.t1.request?(a.name="Request error",a.message="Request error, no response received"):a.name="Unknown error",a;case 24:case"end":return n.stop()}}),n,this,[[2,7],[11,19]])})));function e(e,t){return n.apply(this,arguments)}return e}()},{key:"decode_openc3_type",value:function(n){if(null!==n&&"object"===(0,Q.Z)(n)&&"Float"==n.json_class&&n.raw){if("NaN"==n.raw)return NaN;if("Infinity"==n.raw)return 1/0;if("-Infinity"==n.raw)return-1/0}return null}},{key:"encode_openc3_type",value:function(n){return Number.isNaN(n)?{json_class:"Float",raw:"NaN"}:n==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:n==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}},{key:"ensure_offline_access",value:function(){var n=this;this.offline_access_needed().then((function(e){e&&(localStorage.openc3OfflineToken?n.set_offline_access(localStorage.openc3OfflineToken).then((function(){delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}},{key:"offline_access_needed",value:function(){return this.exec("offline_access_needed",[])}},{key:"set_offline_access",value:function(n){return this.exec("set_offline_access",[n])}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"map_target_to_interface",value:function(n,e){return this.exec("map_target_to_interface",[n,e])}},{key:"connect_interface",value:function(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),l=1;l<e;l++)t[l-1]=arguments[l];return t.length>0?this.exec("connect_interface",[n,t]):this.exec("connect_interface",[n])}},{key:"disconnect_interface",value:function(n){return this.exec("disconnect_interface",[n])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(n){return this.exec("connect_router",[n])}},{key:"disconnect_router",value:function(n){return this.exec("disconnect_router",[n])}},{key:"get_target_interfaces",value:function(){return this.exec("get_target_interfaces",[])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_tlm_cnts",value:function(n){return this.exec("get_tlm_cnts",[n])}},{key:"get_item",value:function(n,e,t){return this.exec("get_item",[n,e,t])}},{key:"get_parameter",value:function(n,e,t){return this.exec("get_parameter",[n,e,t])}},{key:"get_all_packet_logger_info",value:function(){return this.exec("get_all_packet_logger_info",[])}},{key:"start_logging",value:function(){return this.exec("start_logging",[])}},{key:"stop_logging",value:function(){return this.exec("stop_logging",[])}},{key:"start_cmd_log",value:function(n){return this.exec("start_cmd_log",[n])}},{key:"start_tlm_log",value:function(n){return this.exec("start_tlm_log",[n])}},{key:"stop_cmd_log",value:function(n){return this.exec("stop_cmd_log",[n])}},{key:"stop_tlm_log",value:function(n){return this.exec("stop_tlm_log",[n])}},{key:"get_server_status",value:function(){return this.exec("get_server_status",[])}},{key:"get_limits_sets",value:function(){return this.exec("get_limits_sets",[])}},{key:"get_limits_set",value:function(){return this.exec("get_limits_set",[])}},{key:"set_limits_set",value:function(n){return this.exec("set_limits_set",[n])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(n){return this.exec("start_background_task",[n])}},{key:"stop_background_task",value:function(n){return this.exec("stop_background_task",[n])}},{key:"get_target",value:function(n){return this.exec("get_target",[n])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_telemetry",value:function(n,e){return this.exec("get_telemetry",[n,e])}},{key:"get_all_telemetry",value:function(n){return this.exec("get_all_telemetry",[n])}},{key:"get_all_telemetry_names",value:function(n){return this.exec("get_all_telemetry_names",[n])}},{key:"get_tlm_packet",value:function(){var n=(0,r.Z)((0,c.Z)().mark((function n(e,t,l){var i,o,s,a,r,u=arguments;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=u.length>3&&void 0!==u[3]?u[3]:30,n.next=3,this.exec("get_tlm_packet",[e,t],{type:l,stale_time:i});case 3:if(o=n.sent,null!=o)for(s=o.length,a=null,r=0;r<s;r++)a=this.decode_openc3_type(o[r][1]),null!==a&&(o[r][1]=a);return n.abrupt("return",o);case 6:case"end":return n.stop()}}),n,this)})));function e(e,t,l){return n.apply(this,arguments)}return e}()},{key:"get_packet_derived_items",value:function(n,e){return this.exec("get_packet_derived_items",[n,e])}},{key:"get_tlm_buffer",value:function(n,e){return this.exec("get_tlm_buffer",[n,e])}},{key:"get_tlm_values",value:function(){var n=(0,r.Z)((0,c.Z)().mark((function n(e){var t,l,i,o,s,a=arguments;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=a.length>1&&void 0!==a[1]?a[1]:30,n.next=3,this.exec("get_tlm_values",[e],{stale_time:t});case 3:for(l=n.sent,i=l[0].length,o=null,s=0;s<i;s++)o=this.decode_openc3_type(l[0][s]),null!==o&&(l[0][s]=o);return n.abrupt("return",l);case 8:case"end":return n.stop()}}),n,this)})));function e(e){return n.apply(this,arguments)}return e}()},{key:"get_limits",value:function(n,e,t){return this.exec("get_limits",[n,e,t])}},{key:"tlm",value:function(){var n=(0,r.Z)((0,c.Z)().mark((function n(e,t,l){var i,o,s,a,r=arguments;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=r.length>3&&void 0!==r[3]?r[3]:"CONVERTED",o=null,void 0!==t){n.next=8;break}return n.next=5,this.exec("tlm",[e]);case 5:o=n.sent,n.next=24;break;case 8:if(void 0!==l){n.next=21;break}if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t)){n.next=15;break}return n.next=12,this.exec("tlm",[e],{type:t});case 12:o=n.sent,n.next=19;break;case 15:throw s=new Error,s.name="TypeError",s.message="Invalid data type ".concat(t,". Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS."),s;case 19:n.next=24;break;case 21:return n.next=23,this.exec("tlm",[e,t,l],{type:i});case 23:o=n.sent;case 24:return a=this.decode_openc3_type(o),null!==a&&(o=a),n.abrupt("return",o);case 27:case"end":return n.stop()}}),n,this)})));function e(e,t,l){return n.apply(this,arguments)}return e}()},{key:"inject_tlm",value:function(){var n=(0,r.Z)((0,c.Z)().mark((function n(e,t){var l,i,o=arguments;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return l=o.length>2&&void 0!==o[2]?o[2]:null,i=o.length>3&&void 0!==o[3]?o[3]:"CONVERTED",n.next=4,this.exec("inject_tlm",[e,t,l],{type:i});case 4:data=n.sent;case 5:case"end":return n.stop()}}),n,this)})));function e(e,t){return n.apply(this,arguments)}return e}()},{key:"get_all_commands",value:function(n){return this.exec("get_all_commands",[n])}},{key:"get_all_command_names",value:function(n){return this.exec("get_all_command_names",[n])}},{key:"get_command",value:function(n,e){return this.exec("get_command",[n,e])}},{key:"get_cmd_cnts",value:function(n){return this.exec("get_cmd_cnts",[n])}},{key:"get_cmd_value",value:function(n,e,t){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[n,e,t,l])}},{key:"get_cmd_buffer",value:function(n,e){return this.exec("get_cmd_buffer",[n,e])}},{key:"_cmd",value:function(n,e,t,l,i){var o=null;for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&(o=this.encode_openc3_type(l[s]),null!==o&&(l[s]=o));return this.exec(n,[e,t,l],{},i)}},{key:"get_cmd_hazardous",value:function(n,e,t){return void 0===e?this.exec("get_cmd_hazardous",n):this._cmd("get_cmd_hazardous",n,e,t)}},{key:"cmd",value:function(n,e,t){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return void 0===e?this.exec("cmd",n,{},l):this._cmd("cmd",n,e,t,l)}},{key:"cmd_no_range_check",value:function(n,e,t){return void 0===e?this.exec("cmd_no_range_check",n):this._cmd("cmd_no_range_check",n,e,t)}},{key:"cmd_raw",value:function(n,e,t){return void 0===e?this.exec("cmd_raw",n):this._cmd("cmd_raw",n,e,t)}},{key:"cmd_raw_no_range_check",value:function(n,e,t){return void 0===e?this.exec("cmd_raw_no_range_check",n):this._cmd("cmd_raw_no_range_check",n,e,t)}},{key:"cmd_no_hazardous_check",value:function(n,e,t){return void 0===e?this.exec("cmd_no_hazardous_check",n):this._cmd("cmd_no_hazardous_check",n,e,t)}},{key:"cmd_no_checks",value:function(n,e,t){return void 0===e?this.exec("cmd_no_checks",n):this._cmd("cmd_no_checks",n,e,t)}},{key:"cmd_raw_no_hazardous_check",value:function(n,e,t){return void 0===e?this.exec("cmd_raw_no_hazardous_check",n):this._cmd("cmd_raw_no_hazardous_check",n,e,t)}},{key:"cmd_raw_no_checks",value:function(n,e,t){return void 0===e?this.exec("cmd_raw_no_checks",n):this._cmd("cmd_raw_no_checks",n,e,t)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(n,e){return this.exec("send_raw",[n,e])}},{key:"list_configs",value:function(n){return this.exec("list_configs",[n])}},{key:"load_config",value:function(n,e){return this.exec("load_config",[n,e])}},{key:"save_config",value:function(n,e,t){return this.exec("save_config",[n,e,t])}},{key:"delete_config",value:function(n,e){return this.exec("delete_config",[n,e])}},{key:"enable_limits",value:function(n,e,t){return this.exec("enable_limits",[n,e,t])}},{key:"disable_limits",value:function(n,e,t){return this.exec("disable_limits",[n,e,t])}},{key:"get_out_of_limits",value:function(){return this.exec("get_out_of_limits",[])}},{key:"get_overall_limits_state",value:function(n){return this.exec("get_overall_limits_state",[n])}},{key:"list_settings",value:function(){return this.exec("list_settings",[])}},{key:"get_all_settings",value:function(){return this.exec("get_all_settings",[])}},{key:"get_setting",value:function(n){return this.exec("get_setting",[n])}},{key:"get_settings",value:function(n){return this.exec("get_settings",n)}},{key:"save_setting",value:function(n,e){return this.exec("save_setting",[n,e])}},{key:"get_metrics",value:function(){return this.exec("get_metrics",[])}},{key:"hashString",value:function(){var n=(0,r.Z)((0,c.Z)().mark((function n(e){var t,l,i;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!window.isSecureContext){n.next=7;break}return t=(new TextEncoder).encode(e),n.next=4,crypto.subtle.digest("SHA-256",t);case 4:return l=n.sent,i=new Uint8Array(l),n.abrupt("return",Array.from(i).map((function(n){return n.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return n.stop()}}),n)})));function e(e){return n.apply(this,arguments)}return e}()}]),n}());function tn(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",e="6a0c29fb40230da625235b34a5161a9cf22fbc36",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:1375}},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:895},end:{line:1,column:913}},9:{start:{line:1,column:1267},end:{line:1,column:1291}},10:{start:{line:1,column:1291},end:{line:1,column:1338}},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:879},end:{line:1,column:880}},loc:{start:{line:1,column:894},end:{line:1,column:914}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1250},end:{line:1,column:1251}},loc:{start:{line:1,column:1266},end:{line:1,column:1339}},line:1}},branchMap:{0:{loc:{start:{line:1,column:786},end:{line:1,column:820}},type:"cond-expr",locations:[{start:{line:1,column:801},end:{line:1,column:811}},{start:{line:1,column:814},end:{line:1,column:820}}],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:"6a0c29fb40230da625235b34a5161a9cf22fbc36"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return tn=function(){return s},s}tn(),tn().s[0]++;var ln=function(){tn().f[0]++;var n=(tn().s[1]++,this),e=(tn().s[2]++,n._self._c);return tn().s[3]++,e("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:n.show,callback:function(e){tn().f[1]++,tn().s[4]++,n.show=e},expression:"show"}},[e("v-card",[e("v-form",{on:{submit:function(e){return tn().f[2]++,tn().s[5]++,e.preventDefault(),tn().s[6]++,n.submitHandler.apply(null,arguments)}},model:{value:n.valid,callback:function(e){tn().f[3]++,tn().s[7]++,n.valid=e},expression:"valid"}},[e("v-system-bar",[e("v-spacer"),e("span",[n._v(" User Input Required ")]),e("v-spacer")],1),e("div",{staticClass:"pa-2"},[e("v-card-text",[e("v-row",[e("v-card-title",{staticStyle:{"white-space":"pre-line"}},[n._v(n._s(n.question))])],1),e("v-row",{staticClass:"my-1"},[e("v-text-field",{attrs:{autofocus:"","data-test":"ask-value-input",type:n.password?(tn().b[0][0]++,"password"):(tn().b[0][1]++,"text"),rules:n.rules},model:{value:n.inputValue,callback:function(e){tn().f[4]++,tn().s[8]++,n.inputValue=e},expression:"inputValue"}})],1)],1)],1),e("v-card-actions",[e("v-spacer"),e("v-btn",{staticClass:"mx-1",attrs:{outlined:"","data-test":"ask-cancel"},on:{click:n.cancelHandler}},[n._v(" Cancel ")]),e("v-btn",{staticClass:"mx-1",attrs:{color:"primary",type:"submit","data-test":"ask-ok",disabled:!n.valid},on:{click:function(e){return tn().f[5]++,tn().s[9]++,e.preventDefault(),tn().s[10]++,n.submitHandler.apply(null,arguments)}}},[n._v(" Ok ")])],1)],1)],1)],1)},on=(tn().s[11]++,[]);function sn(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",e="6372711265e5318070bd384413fbdc2ebb04d2f3",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:";AA4EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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 <v-row>\n <v-card-title style="white-space: pre-line">{{\n question\n }}</v-card-title>\n </v-row>\n <v-row class="my-1">\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-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="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']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6372711265e5318070bd384413fbdc2ebb04d2f3"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return sn=function(){return s},s}sn();var an={props:{question:{type:String,required:!0},default:{type:String,default:null},password:{type:Boolean,default:!1},answerRequired:{type:Boolean,default:!0},value:Boolean},data:function(){return sn().f[0]++,sn().s[0]++,{inputValue:"",valid:!1,rules:[function(n){return sn().f[1]++,sn().s[1]++,sn().b[0][0]++,!!n||(sn().b[0][1]++,"Required")}]}},created:function(){sn().f[2]++,sn().s[2]++,this.default?(sn().b[1][0]++,sn().s[3]++,this.valid=!0,sn().s[4]++,this.inputValue=this.default):sn().b[1][1]++,sn().s[5]++,!1===this.answerRequired?(sn().b[2][0]++,sn().s[6]++,this.valid=!0,sn().s[7]++,this.rules=[function(n){return sn().f[3]++,sn().s[8]++,!0}]):sn().b[2][1]++},computed:{show:{get:function(){return sn().f[4]++,sn().s[9]++,this.value},set:function(n){sn().f[5]++,sn().s[10]++,this.$emit("input",n)}}},methods:{submitHandler:function(){sn().f[6]++,sn().s[11]++,this.$emit("response",this.inputValue)},cancelHandler:function(){sn().f[7]++,sn().s[12]++,this.$emit("response","Cancel")}}},cn=an,rn=(0,O.Z)(cn,ln,on,!1,null,null,null),un=rn.exports;function mn(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",e="629f6b9e07f549a90d0e31b255ae07dbdb061503",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:1537}},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:1055},end:{line:1,column:1073}},9:{start:{line:1,column:1429},end:{line:1,column:1453}},10:{start:{line:1,column:1453},end:{line:1,column:1500}},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:1039},end:{line:1,column:1040}},loc:{start:{line:1,column:1054},end:{line:1,column:1074}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1412},end:{line:1,column:1413}},loc:{start:{line:1,column:1428},end:{line:1,column:1501}},line:1}},branchMap:{0:{loc:{start:{line:1,column:664},end:{line:1,column:816}},type:"cond-expr",locations:[{start:{line:1,column:678},end:{line:1,column:807}},{start:{line:1,column:808},end:{line:1,column:816}}],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:"629f6b9e07f549a90d0e31b255ae07dbdb061503"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return mn=function(){return s},s}mn(),mn().s[0]++;var dn=function(){mn().f[0]++;var n=(mn().s[1]++,this),e=(mn().s[2]++,n._self._c);return mn().s[3]++,e("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:n.show,callback:function(e){mn().f[1]++,mn().s[4]++,n.show=e},expression:"show"}},[e("v-card",[e("v-form",{on:{submit:function(e){return mn().f[2]++,mn().s[5]++,e.preventDefault(),mn().s[6]++,n.submitHandler.apply(null,arguments)}},model:{value:n.valid,callback:function(e){mn().f[3]++,mn().s[7]++,n.valid=e},expression:"valid"}},[e("v-system-bar",[e("v-spacer"),e("span",[n._v(" File Dialog ")]),e("v-spacer")],1),e("div",{staticClass:"pa-2"},[e("v-card-text",[e("v-row",[e("v-card-title",{staticStyle:{"white-space":"pre-line"}},[n._v(n._s(n.title))])],1),n.message?(mn().b[0][0]++,e("v-row",[e("span",{staticClass:"ma-3",staticStyle:{"white-space":"pre-line"},domProps:{textContent:n._s(n.message)}})])):(mn().b[0][1]++,n._e()),e("v-row",{staticClass:"my-1"},[e("v-file-input",{attrs:{label:"Choose File",autofocus:"","data-test":"file-input",accept:n.filter,"small-chips":"",multiple:n.multiple},model:{value:n.inputValue,callback:function(e){mn().f[4]++,mn().s[8]++,n.inputValue=e},expression:"inputValue"}})],1)],1)],1),e("v-card-actions",[e("v-spacer"),e("v-btn",{staticClass:"mx-1",attrs:{outlined:"","data-test":"file-cancel"},on:{click:n.cancelHandler}},[n._v(" Cancel ")]),e("v-btn",{staticClass:"mx-1",attrs:{color:"primary",type:"submit","data-test":"file-ok",disabled:!n.valid},on:{click:function(e){return mn().f[5]++,mn().s[9]++,e.preventDefault(),mn().s[10]++,n.submitHandler.apply(null,arguments)}}},[n._v(" Ok ")])],1)],1)],1)],1)},An=(mn().s[11]++,[]);function pn(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",e="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"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return pn=function(){return s},s}pn();var hn={props:{title:{type:String,required:!0},message:{type:String,default:null},filter:{type:String,default:"*"},multiple:{type:Boolean,default:!1},value:Boolean},data:function(){return pn().f[0]++,pn().s[0]++,{inputValue:null}},computed:{show:{get:function(){return pn().f[1]++,pn().s[1]++,this.value},set:function(n){pn().f[2]++,pn().s[2]++,this.$emit("input",n)}}},methods:{submitHandler:function(){pn().f[3]++,pn().s[3]++,Array.isArray(this.inputValue)?pn().b[0][1]++:(pn().b[0][0]++,pn().s[4]++,this.inputValue=[this.inputValue]),pn().s[5]++,this.$emit("response",this.inputValue)},cancelHandler:function(){pn().f[4]++,pn().s[6]++,this.$emit("response","Cancel")}}},fn=hn,vn=(0,O.Z)(fn,dn,An,!1,null,null,null),Cn=vn.exports;function bn(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",e="f3d714e332dcaca74a70e87cc80dff6325e98dd6",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:748}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:436},end:{line:1,column:582}},6:{start:{line:1,column:695},end:{line:1,column:715}},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:415},end:{line:1,column:416}},loc:{start:{line:1,column:435},end:{line:1,column:583}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:678},end:{line:1,column:679}},loc:{start:{line:1,column:694},end:{line:1,column:716}},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:"f3d714e332dcaca74a70e87cc80dff6325e98dd6"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return bn=function(){return s},s}bn(),bn().s[0]++;var gn=function(){bn().f[0]++;var n=(bn().s[1]++,this),e=(bn().s[2]++,n._self._c);return bn().s[3]++,e("v-dialog",{attrs:{width:"600"},model:{value:n.show,callback:function(e){bn().f[1]++,bn().s[4]++,n.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),e("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:n._s(n.title)}}),e("v-spacer")],1),e("div",{staticClass:"pa-2"},[e("v-card-text",n._l(n.text,(function(t,l){return bn().f[2]++,bn().s[5]++,e("v-row",{key:l,attrs:{"no-gutters":""}},[e("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:n._s(t)}})])})),1)],1),e("v-card-actions",[e("v-spacer"),e("v-btn",{attrs:{color:"primary"},on:{click:function(e){bn().f[3]++,bn().s[6]++,n.show=!n.show}}},[n._v(" Ok ")])],1)],1)],1)},yn=(bn().s[7]++,[]);function _n(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",e="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"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return _n=function(){return s},s}_n();var wn={props:{value:{type:Boolean,required:!0},title:{type:String,required:!0},text:{type:String,required:!0}},computed:{show:{get:function(){return _n().f[0]++,_n().s[0]++,this.value},set:function(n){_n().f[1]++,_n().s[1]++,this.$emit("input",n)}}},methods:{}},kn=wn,xn=(0,O.Z)(kn,gn,yn,!1,null,null,null),Sn=xn.exports;function Rn(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InputMetadataDialog.vue",e="bc64c95df7b36b70a88e005464254e5a4a3e5110",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InputMetadataDialog.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:2473}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:641},end:{line:1,column:810}},6:{start:{line:1,column:900},end:{line:1,column:1684}},7:{start:{line:1,column:1066},end:{line:1,column:1092}},8:{start:{line:1,column:1260},end:{line:1,column:1288}},9:{start:{line:1,column:1427},end:{line:1,column:1620}},10:{start:{line:1,column:1570},end:{line:1,column:1586}},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: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:617},end:{line:1,column:618}},loc:{start:{line:1,column:640},end:{line:1,column:811}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:883},end:{line:1,column:884}},loc:{start:{line:1,column:899},end:{line:1,column:1685}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1050},end:{line:1,column:1051}},loc:{start:{line:1,column:1065},end:{line:1,column:1093}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1244},end:{line:1,column:1245}},loc:{start:{line:1,column:1259},end:{line:1,column:1289}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1403},end:{line:1,column:1404}},loc:{start:{line:1,column:1426},end:{line:1,column:1621}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:1553},end:{line:1,column:1554}},loc:{start:{line:1,column:1569},end:{line:1,column:1587}},line:1}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"bc64c95df7b36b70a88e005464254e5a4a3e5110"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Rn=function(){return s},s}Rn(),Rn().s[0]++;var Mn=function(){Rn().f[0]++;var n=(Rn().s[1]++,this),e=(Rn().s[2]++,n._self._c);return Rn().s[3]++,e("v-dialog",{attrs:{width:"600"},model:{value:n.show,callback:function(e){Rn().f[1]++,Rn().s[4]++,n.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),e("span",[n._v("Input Metadata")]),e("v-spacer")],1),e("div",{staticClass:"pa-2"},[e("v-card-text",[e("v-simple-table",{attrs:{dense:""}},[e("tbody",[e("tr",[e("th",{staticClass:"text-left"},[n._v("Key")]),e("th",{staticClass:"text-left"},[n._v("Value")]),e("th",{staticClass:"text-right"},[e("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(t){var l=t.on,i=t.attrs;return Rn().f[2]++,Rn().s[5]++,[e("div",n._g(n._b({},"div",i,!1),l),[e("v-icon",{attrs:{"data-test":"new-metadata-icon"},on:{click:n.newMetadata}},[n._v(" mdi-plus ")])],1)]}}])},[e("span",[n._v("New Metadata")])])],1)]),n._l(n.metadata,(function(t,l){return Rn().f[3]++,Rn().s[6]++,[e("tr",{key:"tr-".concat(l)},[e("td",[e("v-text-field",{attrs:{type:"text",dense:"","data-test":"key-".concat(l)},model:{value:t.key,callback:function(e){Rn().f[4]++,Rn().s[7]++,n.$set(t,"key",e)},expression:"meta.key"}})],1),e("td",[e("v-text-field",{attrs:{type:"text",dense:"","data-test":"value-".concat(l)},model:{value:t.value,callback:function(e){Rn().f[5]++,Rn().s[8]++,n.$set(t,"value",e)},expression:"meta.value"}})],1),e("td",[e("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(t){var i=t.on,o=t.attrs;return Rn().f[6]++,Rn().s[9]++,[e("div",n._g(n._b({},"div",o,!1),i),[e("v-icon",{attrs:{"data-test":"delete-metadata-icon"},on:{click:function(e){return Rn().f[7]++,Rn().s[10]++,n.rm(l)}}},[n._v(" mdi-delete ")])],1)]}}],null,!0)},[e("span",[n._v("Delete Metadata")])])],1)])]}))],2)]),e("v-row",{directives:[{name:"show",rawName:"v-show",value:n.lastUpdated,expression:"lastUpdated"}]},[e("v-col",[e("span",{staticClass:"pt-3"},[n._v("Last update: "+n._s(n.lastUpdated))])])],1),e("v-row",[e("v-col",[e("span",{directives:[{name:"show",rawName:"v-show",value:n.inputError,expression:"inputError"}],staticClass:"red--text",domProps:{textContent:n._s(n.inputError)}})])],1)],1)],1),e("v-card-actions",[e("v-spacer"),e("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"metadata-dialog-cancel"},on:{click:n.cancel}},[n._v(" Cancel ")]),e("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"metadata-dialog-save",disabled:!!n.inputError},on:{click:n.updateMetadata}},[n._v(" Update ")])],1)],1)],1)},En=(Rn().s[11]++,[]);t(3108),t(9805);function Tn(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InputMetadataDialog.vue",e="96ba183de9eb698392455893a35ad08bc8660b1f",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InputMetadataDialog.vue",statementMap:{0:{start:{line:14,column:4},end:{line:17,column:5}},1:{start:{line:20,column:4},end:{line:20,column:22}},2:{start:{line:25,column:28},end:{line:27,column:7}},3:{start:{line:26,column:18},end:{line:26,column:54}},4:{start:{line:28,column:6},end:{line:30,column:7}},5:{start:{line:29,column:8},end:{line:29,column:67}},6:{start:{line:31,column:6},end:{line:31,column:17}},7:{start:{line:35,column:8},end:{line:35,column:25}},8:{start:{line:38,column:8},end:{line:38,column:34}},9:{start:{line:44,column:23},end:{line:47,column:12}},10:{start:{line:45,column:8},end:{line:45,column:43}},11:{start:{line:46,column:8},end:{line:46,column:21}},12:{start:{line:48,column:20},end:{line:48,column:29}},13:{start:{line:49,column:6},end:{line:56,column:8}},14:{start:{line:52,column:8},end:{line:55,column:10}},15:{start:{line:57,column:6},end:{line:57,column:38}},16:{start:{line:58,column:6},end:{line:58,column:28}},17:{start:{line:61,column:6},end:{line:61,column:38}},18:{start:{line:62,column:6},end:{line:62,column:28}},19:{start:{line:65,column:6},end:{line:73,column:8}},20:{start:{line:66,column:8},end:{line:72,column:9}},21:{start:{line:67,column:10},end:{line:67,column:28}},22:{start:{line:68,column:10},end:{line:68,column:33}},23:{start:{line:70,column:10},end:{line:70,column:73}},24:{start:{line:71,column:10},end:{line:71,column:51}},25:{start:{line:76,column:6},end:{line:78,column:8}},26:{start:{line:77,column:8},end:{line:77,column:47}},27:{start:{line:81,column:6},end:{line:84,column:8}},28:{start:{line:87,column:6},end:{line:87,column:36}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:13,column:2},end:{line:13,column:3}},loc:{start:{line:13,column:9},end:{line:18,column:3}},line:13},1:{name:"(anonymous_1)",decl:{start:{line:19,column:11},end:{line:19,column:12}},loc:{start:{line:19,column:23},end:{line:21,column:3}},line:19},2:{name:"(anonymous_2)",decl:{start:{line:23,column:16},end:{line:23,column:17}},loc:{start:{line:23,column:28},end:{line:32,column:5}},line:23},3:{name:"(anonymous_3)",decl:{start:{line:26,column:8},end:{line:26,column:9}},loc:{start:{line:26,column:18},end:{line:26,column:54}},line:26},4:{name:"(anonymous_4)",decl:{start:{line:34,column:6},end:{line:34,column:7}},loc:{start:{line:34,column:12},end:{line:36,column:7}},line:34},5:{name:"(anonymous_5)",decl:{start:{line:37,column:6},end:{line:37,column:7}},loc:{start:{line:37,column:17},end:{line:39,column:7}},line:37},6:{name:"(anonymous_6)",decl:{start:{line:43,column:20},end:{line:43,column:21}},loc:{start:{line:43,column:32},end:{line:59,column:5}},line:43},7:{name:"(anonymous_7)",decl:{start:{line:44,column:44},end:{line:44,column:45}},loc:{start:{line:44,column:65},end:{line:47,column:7}},line:44},8:{name:"(anonymous_8)",decl:{start:{line:51,column:14},end:{line:51,column:15}},loc:{start:{line:51,column:28},end:{line:56,column:7}},line:51},9:{name:"(anonymous_9)",decl:{start:{line:60,column:12},end:{line:60,column:13}},loc:{start:{line:60,column:24},end:{line:63,column:5}},line:60},10:{name:"(anonymous_10)",decl:{start:{line:64,column:17},end:{line:64,column:18}},loc:{start:{line:64,column:29},end:{line:74,column:5}},line:64},11:{name:"(anonymous_11)",decl:{start:{line:65,column:50},end:{line:65,column:51}},loc:{start:{line:65,column:64},end:{line:73,column:7}},line:65},12:{name:"(anonymous_12)",decl:{start:{line:75,column:18},end:{line:75,column:19}},loc:{start:{line:75,column:40},end:{line:79,column:5}},line:75},13:{name:"(anonymous_13)",decl:{start:{line:76,column:50},end:{line:76,column:51}},loc:{start:{line:76,column:57},end:{line:78,column:7}},line:76},14:{name:"(anonymous_14)",decl:{start:{line:80,column:17},end:{line:80,column:18}},loc:{start:{line:80,column:29},end:{line:85,column:5}},line:80},15:{name:"(anonymous_15)",decl:{start:{line:86,column:8},end:{line:86,column:9}},loc:{start:{line:86,column:25},end:{line:88,column:5}},line:86}},branchMap:{0:{loc:{start:{line:26,column:18},end:{line:26,column:54}},type:"binary-expr",locations:[{start:{line:26,column:18},end:{line:26,column:33}},{start:{line:26,column:37},end:{line:26,column:54}}],line:26},1:{loc:{start:{line:28,column:6},end:{line:30,column:7}},type:"if",locations:[{start:{line:28,column:6},end:{line:30,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:28},2:{loc:{start:{line:66,column:8},end:{line:72,column:9}},type:"if",locations:[{start:{line:66,column:8},end:{line:72,column:9}},{start:{line:69,column:15},end:{line:72,column:9}}],line:66}},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},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},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,sources:["InputMetadataDialog.vue"],names:[],mappings:";AA+HA;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",file:"InputMetadataDialog.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>Input Metadata</span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-simple-table dense>\n <tbody>\n <tr>\n <th class="text-left">Key</th>\n <th class="text-left">Value</th>\n <th class="text-right">\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-icon\n data-test="new-metadata-icon"\n @click="newMetadata"\n >\n mdi-plus\n </v-icon>\n </div>\n </template>\n <span>New Metadata</span>\n </v-tooltip>\n </th>\n </tr>\n <template v-for="(meta, i) in metadata">\n <tr :key="`tr-${i}`">\n <td>\n <v-text-field\n v-model="meta.key"\n type="text"\n dense\n :data-test="`key-${i}`"\n />\n </td>\n <td>\n <v-text-field\n v-model="meta.value"\n type="text"\n dense\n :data-test="`value-${i}`"\n />\n </td>\n <td>\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-icon\n data-test="delete-metadata-icon"\n @click="rm(i)"\n >\n mdi-delete\n </v-icon>\n </div>\n </template>\n <span>Delete Metadata</span>\n </v-tooltip>\n </td>\n </tr>\n </template>\n </tbody>\n </v-simple-table>\n <v-row v-show="lastUpdated">\n <v-col>\n <span class="pt-3">Last update: {{ lastUpdated }}</span>\n </v-col>\n </v-row>\n <v-row>\n <v-col>\n <span class="red--text" v-show="inputError" v-text="inputError" />\n </v-col>\n </v-row>\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="metadata-dialog-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click="updateMetadata"\n class="mx-2"\n color="primary"\n data-test="metadata-dialog-save"\n :disabled="!!inputError"\n >\n Update\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport Api from \'@openc3/tool-common/src/services/api\'\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 lastUpdated: null,\n metadata: [],\n }\n },\n mounted: function () {\n this.getMetadata()\n },\n computed: {\n inputError: function () {\n // Don\'t check for this.metadata.length < 1 because we have to allow for deletes\n const emptyKeyValue = this.metadata.find(\n (meta) => meta.key === \'\' || meta.value === \'\'\n )\n if (emptyKeyValue) {\n return \'Missing or empty key, value in the metadata table.\'\n }\n return null\n },\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 updateMetadata: function () {\n const metadata = this.metadata.reduce((result, element) => {\n result[element.key] = element.value\n return result\n }, {})\n const color = \'#003784\'\n Api.post(\'/openc3-api/metadata\', {\n data: { color: color, metadata: metadata },\n }).then((response) => {\n this.$notify.normal({\n title: \'Created Metadata\',\n body: `Metadata created at ${response.data.start}`,\n })\n })\n this.$emit(\'response\', metadata)\n this.show = !this.show\n },\n cancel: function () {\n this.$emit(\'response\', \'Cancel\')\n this.show = !this.show\n },\n getMetadata: function () {\n Api.get(\'/openc3-api/metadata/latest\').then((response) => {\n if (response.status !== 200) {\n this.metadata = []\n this.lastUpdated = null\n } else {\n this.lastUpdated = new Date(response.data.updated_at / 1000000)\n this.updateValues(response.data.metadata)\n }\n })\n },\n updateValues: function (metaValues) {\n this.metadata = Object.keys(metaValues).map((k) => {\n return { key: k, value: metaValues[k] }\n })\n },\n newMetadata: function () {\n this.metadata.push({\n key: \'\',\n value: \'\',\n })\n },\n rm: function (index) {\n this.metadata.splice(index, 1)\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"96ba183de9eb698392455893a35ad08bc8660b1f"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Tn=function(){return s},s}Tn();var Dn={components:{},props:{value:{type:Boolean,required:!0}},data:function(){return Tn().f[0]++,Tn().s[0]++,{lastUpdated:null,metadata:[]}},mounted:function(){Tn().f[1]++,Tn().s[1]++,this.getMetadata()},computed:{inputError:function(){Tn().f[2]++;var n=(Tn().s[2]++,this.metadata.find((function(n){return Tn().f[3]++,Tn().s[3]++,Tn().b[0][0]++,""===n.key||(Tn().b[0][1]++,""===n.value)})));return Tn().s[4]++,n?(Tn().b[1][0]++,Tn().s[5]++,"Missing or empty key, value in the metadata table."):(Tn().b[1][1]++,Tn().s[6]++,null)},show:{get:function(){return Tn().f[4]++,Tn().s[7]++,this.value},set:function(n){Tn().f[5]++,Tn().s[8]++,this.$emit("input",n)}}},methods:{updateMetadata:function(){var n=this;Tn().f[6]++;var e=(Tn().s[9]++,this.metadata.reduce((function(n,e){return Tn().f[7]++,Tn().s[10]++,n[e.key]=e.value,Tn().s[11]++,n}),{})),t=(Tn().s[12]++,"#003784");Tn().s[13]++,k.post("/openc3-api/metadata",{data:{color:t,metadata:e}}).then((function(e){Tn().f[8]++,Tn().s[14]++,n.$notify.normal({title:"Created Metadata",body:"Metadata created at ".concat(e.data.start)})})),Tn().s[15]++,this.$emit("response",e),Tn().s[16]++,this.show=!this.show},cancel:function(){Tn().f[9]++,Tn().s[17]++,this.$emit("response","Cancel"),Tn().s[18]++,this.show=!this.show},getMetadata:function(){var n=this;Tn().f[10]++,Tn().s[19]++,k.get("/openc3-api/metadata/latest").then((function(e){Tn().f[11]++,Tn().s[20]++,200!==e.status?(Tn().b[2][0]++,Tn().s[21]++,n.metadata=[],Tn().s[22]++,n.lastUpdated=null):(Tn().b[2][1]++,Tn().s[23]++,n.lastUpdated=new Date(e.data.updated_at/1e6),Tn().s[24]++,n.updateValues(e.data.metadata))}))},updateValues:function(n){Tn().f[12]++,Tn().s[25]++,this.metadata=Object.keys(n).map((function(e){return Tn().f[13]++,Tn().s[26]++,{key:e,value:n[e]}}))},newMetadata:function(){Tn().f[14]++,Tn().s[27]++,this.metadata.push({key:"",value:""})},rm:function(n){Tn().f[15]++,Tn().s[28]++,this.metadata.splice(n,1)}}},On=Dn,Fn=(0,O.Z)(On,Mn,En,!1,null,null,null),In=Fn.exports;function $n(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",e="8f72ae099ba2ec343ed10af84df1c42baff4ac7d",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:2075}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:1068},end:{line:1,column:1096}},6:{start:{line:1,column:1156},end:{line:1,column:1176}},7:{start:{line:1,column:1802},end:{line:1,column:2057}},8:{start:{line:1,column:1973},end:{line:1,column:2011}},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:1051},end:{line:1,column:1052}},loc:{start:{line:1,column:1067},end:{line:1,column:1097}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1140},end:{line:1,column:1141}},loc:{start:{line:1,column:1155},end:{line:1,column:1177}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1779},end:{line:1,column:1780}},loc:{start:{line:1,column:1801},end:{line:1,column:2058}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1956},end:{line:1,column:1957}},loc:{start:{line:1,column:1972},end:{line:1,column:2012}},line:1}},branchMap:{0:{loc:{start:{line:1,column:414},end:{line:1,column:547}},type:"cond-expr",locations:[{start:{line:1,column:429},end:{line:1,column:538}},{start:{line:1,column:539},end:{line:1,column:547}}],line:1},1:{loc:{start:{line:1,column:680},end:{line:1,column:834}},type:"cond-expr",locations:[{start:{line:1,column:694},end:{line:1,column:825}},{start:{line:1,column:826},end:{line:1,column:834}}],line:1},2:{loc:{start:{line:1,column:843},end:{line:1,column:2067}},type:"cond-expr",locations:[{start:{line:1,column:868},end:{line:1,column:1552}},{start:{line:1,column:1553},end:{line:1,column:2067}}],line:1},3:{loc:{start:{line:1,column:1913},end:{line:1,column:1942}},type:"cond-expr",locations:[{start:{line:1,column:1928},end:{line:1,column:1937}},{start:{line:1,column:1940},end:{line:1,column:1942}}],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:"8f72ae099ba2ec343ed10af84df1c42baff4ac7d"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return $n=function(){return s},s}$n(),$n().s[0]++;var Nn=function(){$n().f[0]++;var n=($n().s[1]++,this),e=($n().s[2]++,n._self._c);return $n().s[3]++,e("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:n.show,callback:function(e){$n().f[1]++,$n().s[4]++,n.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),e("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:n._s(n.title)}}),e("v-spacer")],1),e("div",{staticClass:"pa-2"},[e("v-card-text",[n.subtitle?($n().b[0][0]++,e("v-row",[e("v-card-subtitle",{staticStyle:{"white-space":"pre-line"}},[n._v(n._s(n.subtitle))])],1)):($n().b[0][1]++,n._e()),e("v-row",{staticClass:"mt-1"},[e("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:n._s(n.message)}})]),n.details?($n().b[1][0]++,e("v-row",{staticClass:"mt-1"},[e("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:n._s(n.details)}})])):($n().b[1][1]++,n._e())],1)],1),"combo"===n.layout?($n().b[2][0]++,e("div",[e("v-row",{staticClass:"ma-2"},[e("v-select",{staticClass:"ma-1",attrs:{label:"Select",color:"secondary","data-test":"prompt-select",items:n.buttons},on:{change:function(e){$n().f[2]++,$n().s[5]++,n.selectOkDisabled=!1}},model:{value:n.selectedItem,callback:function(e){$n().f[3]++,$n().s[6]++,n.selectedItem=e},expression:"selectedItem"}})],1),e("v-card-actions",[e("v-spacer"),e("v-btn",{staticClass:"ma-1",attrs:{outlined:"","data-test":"prompt-cancel"},on:{click:n.cancelHandler}},[n._v(" Cancel ")]),e("v-btn",{staticClass:"ma-1",attrs:{color:"primary","data-test":"prompt-ok",disabled:n.selectOkDisabled},on:{click:n.submitHandler}},[n._v(" Ok ")])],1)],1)):($n().b[2][1]++,e("div",[e("v-card-actions",{class:n.layoutClass},[e("v-spacer"),e("v-btn",{staticClass:"ma-1",attrs:{outlined:"","data-test":"prompt-cancel"},on:{click:n.cancelHandler}},[n._v(" Cancel ")]),n._l(n.buttons,(function(t,l){return $n().f[4]++,$n().s[7]++,e("div",{key:l},[e("v-btn",{staticClass:"ma-1",attrs:{"data-test":"prompt-".concat(t.text),color:t.value?($n().b[3][0]++,"primary"):($n().b[3][1]++,"")},on:{click:function(e){return $n().f[5]++,$n().s[8]++,n.submitWrapper(t.value)}}},[n._v(" "+n._s(t.text)+" ")])],1)}))],2)],1))],1)],1)},Bn=($n().s[9]++,[]);function Ln(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",e="ebf7cad05b714cbe89443b17d8307d1ff03d0877",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:31,column:4},end:{line:34,column:5}},2:{start:{line:39,column:8},end:{line:39,column:25}},3:{start:{line:42,column:8},end:{line:42,column:34}},4:{start:{line:46,column:19},end:{line:46,column:39}},5:{start:{line:47,column:6},end:{line:51,column:7}},6:{start:{line:48,column:8},end:{line:48,column:38}},7:{start:{line:50,column:8},end:{line:50,column:35}},8:{start:{line:56,column:6},end:{line:56,column:32}},9:{start:{line:57,column:6},end:{line:57,column:26}},10:{start:{line:60,column:6},end:{line:60,column:47}},11:{start:{line:63,column:6},end:{line:63,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:30,column:2},end:{line:30,column:3}},loc:{start:{line:30,column:9},end:{line:35,column:3}},line:30},2:{name:"(anonymous_2)",decl:{start:{line:38,column:6},end:{line:38,column:7}},loc:{start:{line:38,column:12},end:{line:40,column:7}},line:38},3:{name:"(anonymous_3)",decl:{start:{line:41,column:6},end:{line:41,column:7}},loc:{start:{line:41,column:17},end:{line:43,column:7}},line:41},4:{name:"(anonymous_4)",decl:{start:{line:45,column:4},end:{line:45,column:5}},loc:{start:{line:45,column:18},end:{line:52,column:5}},line:45},5:{name:"(anonymous_5)",decl:{start:{line:55,column:19},end:{line:55,column:20}},loc:{start:{line:55,column:37},end:{line:58,column:5}},line:55},6:{name:"(anonymous_6)",decl:{start:{line:59,column:19},end:{line:59,column:20}},loc:{start:{line:59,column:31},end:{line:61,column:5}},line:59},7:{name:"(anonymous_7)",decl:{start:{line:62,column:19},end:{line:62,column:20}},loc:{start:{line:62,column:31},end:{line:64,column:5}},line:62}},branchMap:{0:{loc:{start:{line:47,column:6},end:{line:51,column:7}},type:"if",locations:[{start:{line:47,column:6},end:{line:51,column:7}},{start:{line:49,column:13},end:{line:51,column:7}}],line:47}},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:";AA0GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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 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 v-if="subtitle">\n <v-card-subtitle style="white-space: pre-line">{{\n subtitle\n }}</v-card-subtitle>\n </v-row>\n <v-row class="mt-1">\n <span style="white-space: pre-line" v-text="message" />\n </v-row>\n <v-row v-if="details" class="mt-1">\n <span style="white-space: pre-line" 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 />\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 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']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ebf7cad05b714cbe89443b17d8307d1ff03d0877"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Ln=function(){return s},s}Ln();var Pn={props:{title:{type:String,default:"Prompt Dialog"},subtitle:{type:String,default:""},message:{type:String,required:!0},details:{type:String,default:""},buttons:{type:Array,default:function(){return Ln().f[0]++,Ln().s[0]++,[]}},layout:{type:String,default:"horizontal"},value:Boolean},data:function(){return Ln().f[1]++,Ln().s[1]++,{selectOkDisabled:!0,selectedItem:null}},computed:{show:{get:function(){return Ln().f[2]++,Ln().s[2]++,this.value},set:function(n){Ln().f[3]++,Ln().s[3]++,this.$emit("input",n)}},layoutClass:function(){Ln().f[4]++;var n=(Ln().s[4]++,"d-flex align-start");return Ln().s[5]++,"vertical"===this.layout?(Ln().b[0][0]++,Ln().s[6]++,"".concat(n," flex-column")):(Ln().b[0][1]++,Ln().s[7]++,"".concat(n," flex-row"))}},methods:{submitWrapper:function(n){Ln().f[5]++,Ln().s[8]++,this.selectedItem=n,Ln().s[9]++,this.submitHandler()},submitHandler:function(){Ln().f[6]++,Ln().s[10]++,this.$emit("response",this.selectedItem)},cancelHandler:function(){Ln().f[7]++,Ln().s[11]++,this.$emit("response","Cancel")}}},Zn=Pn,Hn=(0,O.Z)(Zn,Nn,Bn,!1,null,null,null),Un=Hn.exports;function Gn(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",e="235dc88c24c96f167c15185489b62872dbc2a41e",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:739}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:686},end:{line:1,column:706}},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:669},end:{line:1,column:670}},loc:{start:{line:1,column:685},end:{line:1,column:707}},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:"235dc88c24c96f167c15185489b62872dbc2a41e"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Gn=function(){return s},s}Gn(),Gn().s[0]++;var jn=function(){Gn().f[0]++;var n=(Gn().s[1]++,this),e=(Gn().s[2]++,n._self._c);return Gn().s[3]++,e("v-dialog",{attrs:{width:"600"},model:{value:n.show,callback:function(e){Gn().f[1]++,Gn().s[4]++,n.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),e("span",[n._v(" Script Results ")]),e("v-spacer")],1),e("div",{staticClass:"pa-2"},[e("v-card-text",[e("v-textarea",{attrs:{readonly:"","hide-details":"",dense:"","auto-grow":"",value:n.text}})],1)],1),e("v-card-actions",[e("v-spacer"),e("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:n.downloadResults}},[n._v(" Download ")]),e("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(e){Gn().f[2]++,Gn().s[5]++,n.show=!n.show}}},[n._v(" Ok ")])],1)],1)],1)},qn=(Gn().s[6]++,[]);function Vn(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",e="cf509be91d34a7497f4c0fd65ba8b8fb80fe2c4d",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:19},end:{line:30,column:8}},3:{start:{line:32,column:19},end:{line:32,column:46}},4:{start:{line:33,column:6},end:{line:33,column:43}},5:{start:{line:34,column:6},end:{line:37,column:7}},6:{start:{line:38,column:6},end:{line:38,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:27,column:4},end:{line:27,column:5}},loc:{start:{line:27,column:22},end:{line:39,column:5}},line:27}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{},inputSourceMap:{version:3,sources:["ResultsDialog.vue"],names:[],mappings:";AA6CA;;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",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 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 Results </span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\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 class="mx-2" color="primary" @click="show = !show"> Ok </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 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:"cf509be91d34a7497f4c0fd65ba8b8fb80fe2c4d"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Vn=function(){return s},s}Vn();var zn={components:{},props:{value:{type:Boolean,required:!0},text:{type:String,required:!0}},computed:{show:{get:function(){return Vn().f[0]++,Vn().s[0]++,this.value},set:function(n){Vn().f[1]++,Vn().s[1]++,this.$emit("input",n)}}},methods:{downloadResults:function(){Vn().f[2]++;var n=(Vn().s[2]++,new Blob([this.text],{type:"text/plain"})),e=(Vn().s[3]++,document.createElement("a"));Vn().s[4]++,e.href=URL.createObjectURL(n),Vn().s[5]++,e.setAttribute("download",(0,S.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss")+"_suite_results.txt"),Vn().s[6]++,e.click()}}},Wn=zn,Yn=(0,O.Z)(Wn,jn,qn,!1,null,null,null),Kn=Yn.exports;function Jn(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",e="61d53a1f7378f487202520d4ffa68309ebbba8b1",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:856}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:439},end:{line:1,column:455}},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:423},end:{line:1,column:424}},loc:{start:{line:1,column:438},end:{line:1,column:456}},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:"61d53a1f7378f487202520d4ffa68309ebbba8b1"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Jn=function(){return s},s}Jn(),Jn().s[0]++;var Xn=function(){Jn().f[0]++;var n=(Jn().s[1]++,this),e=(Jn().s[2]++,n._self._c);return Jn().s[3]++,e("v-dialog",{attrs:{width:"600"},model:{value:n.show,callback:function(e){Jn().f[1]++,Jn().s[4]++,n.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),e("span",[n._v(" Start Environment Configuration ")]),e("v-spacer")],1),e("div",{staticClass:"pa-2"},[e("v-card-text",[e("environment-chooser",{model:{value:n.selected,callback:function(e){Jn().f[2]++,Jn().s[5]++,n.selected=e},expression:"selected"}})],1)],1),e("v-card-actions",[e("v-spacer"),e("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"environment-dialog-cancel"},on:{click:n.cancel}},[n._v(" Cancel ")]),e("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"environment-dialog-save",disabled:!!n.inputError},on:{click:n.updateEnvironment}},[n._v(" Save ")])],1)],1)],1)},Qn=(Jn().s[6]++,[]),ne=function(){var n=this,e=n._self._c;return e("div",[e("v-row",{attrs:{"no-gutters":""}},[e("span",[n._v(" Select from OpenC3 environment variables ")])]),e("v-row",{staticClass:"ma-0"},[e("v-select",{attrs:{"persistent-hint":"","return-object":"",label:"Select Environment Options",hint:"Inject Environment Variables",items:n.environmentItems},on:{change:n.addEnvironmentItem},scopedSlots:n._u([{key:"item",fn:function(t){var l=t.item;return[e("div",[e("span",{domProps:{textContent:n._s("".concat(l.key,"=").concat(l.value))}})])]}}]),model:{value:n.deadSelect,callback:function(e){n.deadSelect=e},expression:"deadSelect"}},[[e("div",[e("span",[n._v(" Select Environment Options ")])])]],2)],1),e("div",{staticClass:"mt-2"}),e("v-simple-table",{attrs:{dense:""}},[e("tbody",[e("tr",[e("th",{staticClass:"text-left"},[n._v("Key")]),e("th",{staticClass:"text-left"},[n._v("Value")]),e("th",{staticClass:"text-right"},[e("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(t){var l=t.on,i=t.attrs;return[e("div",n._g(n._b({},"div",i,!1),l),[e("v-icon",{attrs:{"data-test":"new-metadata-icon"},on:{click:n.newEnvironment}},[n._v(" mdi-plus ")])],1)]}}])},[e("span",[n._v(" Add Environment ")])])],1)]),n._l(n.selected,(function(t,l){return[e("tr",{key:"tr-".concat(l)},[e("td",[e("v-text-field",{attrs:{dense:"",type:"text",readonly:t.readonly,"data-test":"key-".concat(l)},model:{value:t.key,callback:function(e){n.$set(t,"key",e)},expression:"env.key"}})],1),e("td",[e("v-text-field",{attrs:{dense:"",type:"text",readonly:t.readonly,"data-test":"value-".concat(l)},model:{value:t.value,callback:function(e){n.$set(t,"value",e)},expression:"env.value"}})],1),e("td",[e("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(t){var i=t.on,o=t.attrs;return[e("div",n._g(n._b({},"div",o,!1),i),[e("v-icon",{attrs:{"data-test":"remove-env-icon-".concat(l)},on:{click:function(e){return n.rm(l)}}},[n._v(" mdi-delete ")])],1)]}}],null,!0)},[e("span",[n._v(" Delete Environment ")])])],1)])]}))],2)])],1)},ee=[],te={props:{value:{type:Array,required:!0}},data:function(){return{deadSelect:null,environmentOptions:[]}},mounted:function(){this.getEnvironment()},computed:{selected:{get:function(){return this.value},set:function(n){this.$emit("input",n)}},environmentItems:function(){var n=this;return this.environmentOptions.filter((function(e){return!n.selected.find((function(n){return n.key===e.key}))}))}},methods:{getEnvironment:function(){var n=this;k.get("/openc3-api/environment").then((function(e){n.environmentOptions=e.data}))},addEnvironmentItem:function(n){this.selected.push({key:n.key,value:n.value,readonly:!0});var e=this.environmentOptions.findIndex((function(e){return e.key===n.key&&e.value===n.value}));this.environmentOptions.splice(e,e>=0?1:0),this.deadSelect=null},newEnvironment:function(){this.selected.push({key:"",value:"",readonly:!1})},rm:function(n){var e=this.selected.splice(n,1)[0];e&&e.readonly&&this.environmentOptions.push(e)}}},le=te,ie=(0,O.Z)(le,ne,ee,!1,null,null,null),oe=ie.exports;function se(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",e="d6ebfcf7fbe98c726181793599c9cbc837b45705",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> Start Environment Configuration </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:"d6ebfcf7fbe98c726181793599c9cbc837b45705"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return se=function(){return s},s}se();var ae={components:{EnvironmentChooser:oe},props:{value:{type:Boolean,required:!0},inputEnvironment:{type:Array,required:!0}},data:function(){return se().f[0]++,se().s[0]++,{selected:[]}},mounted:function(){se().f[1]++,se().s[1]++,this.loadEnvironment()},computed:{show:{get:function(){return se().f[2]++,se().s[2]++,this.value},set:function(n){se().f[3]++,se().s[3]++,this.$emit("input",n)}}},methods:{loadEnvironment:function(){se().f[4]++,se().s[4]++,this.selected=(0,u.Z)(this.inputEnvironment)},updateEnvironment:function(){se().f[5]++,se().s[5]++,this.$emit("environment",this.selected),se().s[6]++,this.show=!this.show},cancel:function(){se().f[6]++,se().s[7]++,this.show=!this.show}}},ce=ae,re=(0,O.Z)(ce,Xn,Qn,!1,null,null,null),ue=re.exports;function me(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",e="a01de25c5536256c5a667e93833a9611e1c57967",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:106}},4:{start:{line:1,column:448},end:{line:1,column:463}},5:{start:{line:1,column:676},end:{line:1,column:691}},6:{start:{line:1,column:1069},end:{line:1,column:1082}},7:{start:{line:1,column:1288},end:{line:1,column:1375}},8:{start:{line:1,column:1568},end:{line:1,column:1655}},9:{start:{line:1,column:1835},end:{line:1,column:1925}},10:{start:{line:1,column:2318},end:{line:1,column:2333}},11:{start:{line:1,column:2540},end:{line:1,column:2555}},12:{start:{line:1,column:2933},end:{line:1,column:2946}},13:{start:{line:1,column:3152},end:{line:1,column:3257}},14:{start:{line:1,column:3450},end:{line:1,column:3555}},15:{start:{line:1,column:3735},end:{line:1,column:3843}},16:{start:{line:1,column:4227},end:{line:1,column:4242}},17:{start:{line:1,column:4532},end:{line:1,column:4547}},18:{start:{line:1,column:4930},end:{line:1,column:4944}},19:{start:{line:1,column:5133},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:660},end:{line:1,column:661}},loc:{start:{line:1,column:675},end:{line:1,column:692}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1053},end:{line:1,column:1054}},loc:{start:{line:1,column:1068},end:{line:1,column:1083}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1271},end:{line:1,column:1272}},loc:{start:{line:1,column:1287},end:{line:1,column:1376}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1551},end:{line:1,column:1552}},loc:{start:{line:1,column:1567},end:{line:1,column:1656}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1818},end:{line:1,column:1819}},loc:{start:{line:1,column:1834},end:{line:1,column:1926}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2302},end:{line:1,column:2303}},loc:{start:{line:1,column:2317},end:{line:1,column:2334}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2524},end:{line:1,column:2525}},loc:{start:{line:1,column:2539},end:{line:1,column:2556}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2917},end:{line:1,column:2918}},loc:{start:{line:1,column:2932},end:{line:1,column:2947}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:3135},end:{line:1,column:3136}},loc:{start:{line:1,column:3151},end:{line:1,column:3258}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:3433},end:{line:1,column:3434}},loc:{start:{line:1,column:3449},end:{line:1,column:3556}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:3718},end:{line:1,column:3719}},loc:{start:{line:1,column:3734},end:{line:1,column:3844}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:4211},end:{line:1,column:4212}},loc:{start:{line:1,column:4226},end:{line:1,column:4243}},line:1},14:{name:"(anonymous_14)",decl:{start:{line:1,column:4516},end:{line:1,column:4517}},loc:{start:{line:1,column:4531},end:{line:1,column:4548}},line:1},15:{name:"(anonymous_15)",decl:{start:{line:1,column:4914},end:{line:1,column:4915}},loc:{start:{line:1,column:4929},end:{line:1,column:4945}},line:1},16:{name:"(anonymous_16)",decl:{start:{line:1,column:5116},end:{line:1,column:5117}},loc:{start:{line:1,column:5132},end:{line:7,column:19}},line:1}},branchMap:{0:{loc:{start:{line:1,column:1493},end:{line:1,column:1537}},type:"binary-expr",locations:[{start:{line:1,column:1493},end:{line:1,column:1511}},{start:{line:1,column:1515},end:{line:1,column:1537}}],line:1},1:{loc:{start:{line:1,column:1757},end:{line:1,column:1804}},type:"binary-expr",locations:[{start:{line:1,column:1757},end:{line:1,column:1775}},{start:{line:1,column:1779},end:{line:1,column:1804}}],line:1},2:{loc:{start:{line:1,column:3375},end:{line:1,column:3419}},type:"binary-expr",locations:[{start:{line:1,column:3375},end:{line:1,column:3393}},{start:{line:1,column:3397},end:{line:1,column:3419}}],line:1},3:{loc:{start:{line:1,column:3657},end:{line:1,column:3704}},type:"binary-expr",locations:[{start:{line:1,column:3657},end:{line:1,column:3675}},{start:{line:1,column:3679},end:{line:1,column:3704}}],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:"a01de25c5536256c5a667e93833a9611e1c57967"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return me=function(){return s},s}me(),me().s[0]++;var de=function(){me().f[0]++;var n=(me().s[1]++,this),e=(me().s[2]++,n._self._c);return me().s[3]++,e("div",[e("div",{attrs:{id:"tr-container"}},[e("v-row",{attrs:{"no-gutters":"",align:"center"}},[e("v-col",{attrs:{cols:"4"}},[e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{attrs:{cols:"6"}},[e("v-checkbox",{attrs:{label:"Pause on Error",value:"pauseOnError","hide-details":"","data-test":"pause-on-error"},model:{value:n.options,callback:function(e){me().f[1]++,me().s[4]++,n.options=e},expression:"options"}})],1),e("v-col",{attrs:{cols:"6"}},[e("v-checkbox",{attrs:{label:"Manual",value:"manual","hide-details":"","data-test":"manual"},model:{value:n.options,callback:function(e){me().f[2]++,me().s[5]++,n.options=e},expression:"options"}})],1)],1)],1),e("v-col",{attrs:{cols:"8"}},[e("v-row",{attrs:{"no-gutters":"",justify:"end"}},[e("v-col",{attrs:{cols:"5"}},[e("v-select",{staticClass:"mr-2 mb-2",attrs:{label:"Suite:","hide-details":"",dense:"",items:n.suites,"data-test":"select-suite"},on:{change:n.suiteChanged},model:{value:n.suite,callback:function(e){me().f[3]++,me().s[6]++,n.suite=e},expression:"suite"}})],1),e("v-col",{attrs:{cols:"auto"}},[e("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:n.disableButtons,"data-test":"start-suite"},on:{click:function(e){return me().f[4]++,me().s[7]++,n.$emit("button",{method:"start",suite:n.suite,options:n.options})}}},[n._v(" Start ")]),e("v-btn",{staticClass:"mr-2",attrs:{color:"primary","data-test":"setup-suite",disabled:(me().b[0][0]++,n.disableButtons||(me().b[0][1]++,!n.setupSuiteEnabled))},on:{click:function(e){return me().f[5]++,me().s[8]++,n.$emit("button",{method:"setup",suite:n.suite,options:n.options})}}},[n._v(" Setup ")]),e("v-btn",{attrs:{color:"primary","data-test":"teardown-suite",disabled:(me().b[1][0]++,n.disableButtons||(me().b[1][1]++,!n.teardownSuiteEnabled))},on:{click:function(e){return me().f[6]++,me().s[9]++,n.$emit("button",{method:"teardown",suite:n.suite,options:n.options})}}},[n._v(" Teardown ")])],1)],1)],1)],1),e("v-row",{attrs:{"no-gutters":"",align:"center"}},[e("v-col",{attrs:{cols:"4"}},[e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{attrs:{cols:"6"}},[e("v-checkbox",{attrs:{label:"Continue after Error",value:"continueAfterError","hide-details":"","data-test":"continue-after-error"},model:{value:n.options,callback:function(e){me().f[7]++,me().s[10]++,n.options=e},expression:"options"}})],1),e("v-col",{attrs:{cols:"6"}},[e("v-checkbox",{attrs:{label:"Loop",value:"loop","hide-details":"","data-test":"loop"},model:{value:n.options,callback:function(e){me().f[8]++,me().s[11]++,n.options=e},expression:"options"}})],1)],1)],1),e("v-col",{attrs:{cols:"8"}},[e("v-row",{attrs:{"no-gutters":"",justify:"end"}},[e("v-col",{attrs:{cols:"5"}},[e("v-select",{staticClass:"mr-2 mb-2",attrs:{label:"Group:","hide-details":"",dense:"",items:n.groups,"data-test":"select-group"},on:{change:n.groupChanged},model:{value:n.group,callback:function(e){me().f[9]++,me().s[12]++,n.group=e},expression:"group"}})],1),e("v-col",{attrs:{cols:"auto"}},[e("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:n.disableButtons,"data-test":"start-group"},on:{click:function(e){return me().f[10]++,me().s[13]++,n.$emit("button",{method:"start",suite:n.suite,group:n.group,options:n.options})}}},[n._v(" Start ")]),e("v-btn",{staticClass:"mr-2",attrs:{color:"primary","data-test":"setup-group",disabled:(me().b[2][0]++,n.disableButtons||(me().b[2][1]++,!n.setupGroupEnabled))},on:{click:function(e){return me().f[11]++,me().s[14]++,n.$emit("button",{method:"setup",suite:n.suite,group:n.group,options:n.options})}}},[n._v(" Setup ")]),e("v-btn",{attrs:{color:"primary","data-test":"teardown-group",disabled:(me().b[3][0]++,n.disableButtons||(me().b[3][1]++,!n.teardownGroupEnabled))},on:{click:function(e){return me().f[12]++,me().s[15]++,n.$emit("button",{method:"teardown",suite:n.suite,group:n.group,options:n.options})}}},[n._v(" Teardown ")])],1)],1)],1)],1),e("v-row",{attrs:{"no-gutters":"",align:"center"}},[e("v-col",{attrs:{cols:"4"}},[e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{attrs:{cols:"6"}},[e("v-checkbox",{attrs:{label:"Abort after Error",value:"abortAfterError","hide-details":"","data-test":"abort-after-error"},model:{value:n.options,callback:function(e){me().f[13]++,me().s[16]++,n.options=e},expression:"options"}})],1),e("v-col",{attrs:{cols:"6"}},[e("v-checkbox",{attrs:{disabled:!n.options.includes("loop"),label:"Break Loop on Error",value:"breakLoopOnError","hide-details":"","data-test":"break-loop-on-error"},model:{value:n.options,callback:function(e){me().f[14]++,me().s[17]++,n.options=e},expression:"options"}})],1)],1)],1),e("v-col",{attrs:{cols:"8"}},[e("v-row",{attrs:{"no-gutters":"",justify:"end"}},[e("v-col",{attrs:{cols:"5"}},[e("v-select",{staticClass:"mr-2 mb-2",attrs:{label:"Script:","hide-details":"",dense:"",items:n.scripts,"data-test":"select-script"},on:{change:n.scriptChanged},model:{value:n.script,callback:function(e){me().f[15]++,me().s[18]++,n.script=e},expression:"script"}})],1),e("v-col",{attrs:{cols:"auto"}},[e("v-btn",{attrs:{color:"primary",disabled:n.disableButtons,"data-test":"start-script"},on:{click:function(e){return me().f[16]++,me().s[19]++,n.$emit("button",{method:"start",suite:n.suite,group:n.group,script:n.script,options:n.options})}}},[n._v(" Start ")]),e("div",{staticStyle:{width:"300px"}})],1)],1)],1)],1)],1)])},Ae=(me().s[20]++,[]);function pe(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",e="f2c5bb67e843bcea1658ca32e99187e727ff97f3",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:";AA0OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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 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 <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="mr-2 mb-2"\n hide-details\n dense\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 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="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="mr-2 mb-2"\n hide-details\n dense\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 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="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="mr-2 mb-2"\n hide-details\n dense\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: 300px" />\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:"f2c5bb67e843bcea1658ca32e99187e727ff97f3"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return pe=function(){return s},s}pe();var he={props:{suiteMap:{type:Object,required:!0},disableButtons:{type:Boolean,required:!0}},data:function(){return pe().f[0]++,pe().s[0]++,{suites:[],groups:[],scripts:[],suite:"",group:"",script:"",options:["pauseOnError","manual","continueAfterError"]}},computed:{setupSuiteEnabled:function(){return pe().f[1]++,pe().s[1]++,pe().b[1][0]++,this.suite&&(pe().b[1][1]++,this.suiteMap[this.suite].setup)?(pe().b[0][0]++,pe().s[2]++,!0):(pe().b[0][1]++,pe().s[3]++,!1)},teardownSuiteEnabled:function(){return pe().f[2]++,pe().s[4]++,pe().b[3][0]++,this.suite&&(pe().b[3][1]++,this.suiteMap[this.suite].teardown)?(pe().b[2][0]++,pe().s[5]++,!0):(pe().b[2][1]++,pe().s[6]++,!1)},setupGroupEnabled:function(){return pe().f[3]++,pe().s[7]++,pe().b[5][0]++,this.suite&&(pe().b[5][1]++,this.group)&&(pe().b[5][2]++,this.suiteMap[this.suite].groups[this.group].setup)?(pe().b[4][0]++,pe().s[8]++,!0):(pe().b[4][1]++,pe().s[9]++,!1)},teardownGroupEnabled:function(){return pe().f[4]++,pe().s[10]++,pe().b[7][0]++,this.suite&&(pe().b[7][1]++,this.group)&&(pe().b[7][2]++,this.suiteMap[this.suite].groups[this.group].teardown)?(pe().b[6][0]++,pe().s[11]++,!0):(pe().b[6][1]++,pe().s[12]++,!1)}},created:function(){pe().f[5]++,pe().s[13]++,this.initSuites()},watch:{suiteMap:{handler:function(n,e){pe().f[6]++,pe().s[14]++,this.updateSuiteMap()},deep:!0}},methods:{updateSuiteMap:function(){pe().f[7]++,pe().s[15]++,this.suites=Object.keys(this.suiteMap),pe().s[16]++,pe().b[9][0]++,void 0==this.suiteMap[this.suite]||(pe().b[9][1]++,void 0==this.suiteMap[this.suite].groups[this.group])?(pe().b[8][0]++,pe().s[17]++,this.initSuites()):(pe().b[8][1]++,pe().s[18]++,this.groups=Object.keys(this.suiteMap[this.suite].groups),pe().s[19]++,this.scripts=this.suiteMap[this.suite].groups[this.group].scripts)},initSuites:function(){pe().f[8]++,pe().s[20]++,this.suites=Object.keys(this.suiteMap),pe().s[21]++,this.suiteChanged(this.suites[0])},suiteChanged:function(n){pe().f[9]++,pe().s[22]++,this.suite=n,pe().s[23]++,this.group="",pe().s[24]++,this.script="",pe().s[25]++,this.groups=Object.keys(this.suiteMap[n].groups),pe().s[26]++,this.groupChanged(this.groups[0])},groupChanged:function(n){pe().f[10]++,pe().s[27]++,this.group=n,pe().s[28]++,this.script="",pe().s[29]++,this.scripts=this.suiteMap[this.suite].groups[n].scripts,pe().s[30]++,this.scriptChanged(this.scripts[0])},scriptChanged:function(n){pe().f[11]++,pe().s[31]++,this.script=n}}},fe=he,ve=(t(4723),(0,O.Z)(fe,de,Ae,!1,null,"3372ac08",null)),Ce=ve.exports;function be(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",e="252a0dbc653f53201767f2c9315f1fb523b691dd",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:1346}},4:{start:{line:1,column:206},end:{line:1,column:419}},5:{start:{line:1,column:603},end:{line:1,column:808}},6:{start:{line:1,column:1060},end:{line:1,column:1074}},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: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:579},end:{line:1,column:580}},loc:{start:{line:1,column:602},end:{line:1,column:809}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1044},end:{line:1,column:1045}},loc:{start:{line:1,column:1059},end:{line:1,column:1075}},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:"252a0dbc653f53201767f2c9315f1fb523b691dd"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return be=function(){return s},s}be(),be().s[0]++;var ge=function(){be().f[0]++;var n=(be().s[1]++,this),e=(be().s[2]++,n._self._c);return be().s[3]++,e("div",[e("v-card",[e("v-card-title",[e("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(t){var l=t.on,i=t.attrs;return be().f[1]++,be().s[4]++,[e("div",n._g(n._b({},"div",i,!1),l),[e("v-btn",{staticClass:"mx-2",attrs:{icon:"","data-test":"download-log"},on:{click:n.downloadLog}},[e("v-icon",[n._v(" mdi-download ")])],1)],1)]}}])},[e("span",[n._v(" Download Log ")])]),n._v(" Log Messages "),e("v-spacer"),e("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(t){var l=t.on,i=t.attrs;return be().f[2]++,be().s[5]++,[e("div",n._g(n._b({},"div",i,!1),l),[e("v-btn",{staticClass:"mx-2",attrs:{icon:"","data-test":"clear-log"},on:{click:n.clearLog}},[e("v-icon",[n._v(" mdi-delete ")])],1)],1)]}}])},[e("span",[n._v(" Clear Log ")])])],1),e("v-card-subtitle",[e("v-text-field",{attrs:{"single-line":"","hide-details":"",autofocus:"",label:"Search","data-test":"search-output-messages"},model:{value:n.search,callback:function(e){be().f[3]++,be().s[6]++,n.search=e},expression:"search"}})],1),e("v-data-table",{attrs:{headers:n.headers,items:n.messages,search:n.search,"calculate-widths":"","disable-pagination":"","hide-default-footer":"","multi-sort":"",dense:"",height:"45vh","data-test":"output-messages"}})],1)],1)},ye=(be().s[7]++,[]);function _e(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",e="4f866ab3685e6a3232e3beb9804b0b4718c61e05",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:15,column:5}},1:{start:{line:20,column:8},end:{line:20,column:25}},2:{start:{line:23,column:8},end:{line:23,column:34}},3:{start:{line:29,column:21},end:{line:29,column:79}},4:{start:{line:29,column:52},end:{line:29,column:67}},5:{start:{line:30,column:19},end:{line:32,column:8}},6:{start:{line:34,column:19},end:{line:34,column:46}},7:{start:{line:35,column:6},end:{line:35,column:43}},8:{start:{line:36,column:6},end:{line:39,column:7}},9:{start:{line:40,column:6},end:{line:40,column:18}},10:{start:{line:43,column:6},end:{line:50,column:10}},11:{start:{line:49,column:10},end:{line:49,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:16,column:3}},line:11},1:{name:"(anonymous_1)",decl:{start:{line:19,column:6},end:{line:19,column:7}},loc:{start:{line:19,column:12},end:{line:21,column:7}},line:19},2:{name:"(anonymous_2)",decl:{start:{line:22,column:6},end:{line:22,column:7}},loc:{start:{line:22,column:17},end:{line:24,column:7}},line:22},3:{name:"(anonymous_3)",decl:{start:{line:28,column:4},end:{line:28,column:5}},loc:{start:{line:28,column:18},end:{line:41,column:5}},line:28},4:{name:"(anonymous_4)",decl:{start:{line:29,column:39},end:{line:29,column:40}},loc:{start:{line:29,column:52},end:{line:29,column:67}},line:29},5:{name:"(anonymous_5)",decl:{start:{line:42,column:14},end:{line:42,column:15}},loc:{start:{line:42,column:26},end:{line:51,column:5}},line:42},6:{name:"(anonymous_6)",decl:{start:{line:48,column:14},end:{line:48,column:15}},loc:{start:{line:48,column:26},end:{line:50,column:9}},line:48}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{},inputSourceMap:{version:3,sources:["ScriptLogMessages.vue"],names:[],mappings:";AAiFA;;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",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 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 <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 Log Messages\n <v-spacer />\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-card-subtitle>\n <v-text-field\n v-model="search"\n single-line\n hide-details\n autofocus\n label="Search"\n data-test="search-output-messages"\n />\n </v-card-subtitle>\n <v-data-table\n :headers="headers"\n :items="messages"\n :search="search"\n calculate-widths\n disable-pagination\n hide-default-footer\n multi-sort\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\' }],\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 logs?\', {\n okText: \'Clear\',\n cancelText: \'Cancel\',\n })\n .then((dialog) => {\n this.messages = []\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4f866ab3685e6a3232e3beb9804b0b4718c61e05"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return _e=function(){return s},s}_e();var we={props:{value:{type:Array,required:!0}},data:function(){return _e().f[0]++,_e().s[0]++,{search:"",headers:[{text:"Message",value:"message"}]}},computed:{messages:{get:function(){return _e().f[1]++,_e().s[1]++,this.value},set:function(n){_e().f[2]++,_e().s[2]++,this.$emit("input",n)}}},methods:{downloadLog:function(){_e().f[3]++;var n=(_e().s[3]++,this.messages.map((function(n){return _e().f[4]++,_e().s[4]++,n.message})).join("\n")),e=(_e().s[5]++,new Blob([n],{type:"text/plain"})),t=(_e().s[6]++,document.createElement("a"));_e().s[7]++,t.href=URL.createObjectURL(e),_e().s[8]++,t.setAttribute("download",(0,S.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss")+"_sr_message_log.txt"),_e().s[9]++,t.click()},clearLog:function(){var n=this;_e().f[5]++,_e().s[10]++,this.$dialog.confirm("Are you sure you want to clear the logs?",{okText:"Clear",cancelText:"Cancel"}).then((function(e){_e().f[6]++,_e().s[11]++,n.messages=[]}))}}},ke=we,xe=(0,O.Z)(ke,ge,ye,!1,null,null,null),Se=xe.exports,Re=t(9091),Me=t(8007);function Ee(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/utilities.js",e="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"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Ee=function(){return s},s}Ee(),Ee().s[0]++;var Te=function(n){return Ee().f[0]++,Ee().s[1]++,k.get("/openc3-api/autocomplete/keywords/".concat(n))};Ee().s[2]++;var De=function(n){return Ee().f[1]++,Ee().s[3]++,k.get("/openc3-api/autocomplete/data/".concat(n))};Ee().s[4]++;var Oe=function(n,e){return Ee().f[2]++,Ee().s[5]++,n.reduce((function(n,t){Ee().f[3]++;var l=(Ee().s[6]++,e(t));return Ee().s[7]++,n[l]?(Ee().b[0][0]++,Ee().s[8]++,n[l].push(t)):(Ee().b[0][1]++,Ee().s[9]++,n[l]=[t]),Ee().s[10]++,n}),{})};function Fe(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/packetCompleter.js",e="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"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Fe=function(){return s},s}Fe(),Fe().s[0]++;var Ie=function(n){Fe().f[0]++;var e=(Fe().s[1]++,"(^|[{\\(\\s])"),t=(Fe().s[2]++,"[\\s\\(]['\"]"),l=(Fe().s[3]++,"(\\S+\\s?){0,3}");return Fe().s[4]++,new RegExp("".concat(e).concat(n).concat(t).concat(l,"$"))},$e=(0,p.Z)((function n(e){var t=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Fe().b[0][0]++,function(){Fe().f[2]++}),i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(Fe().b[1][0]++,function(){Fe().f[3]++});(0,A.Z)(this,n),(0,nn.Z)(this,"getCompletions",(Fe().s[13]++,function(n,e,t,l,i){Fe().f[6]++;var o=(Fe().s[14]++,[]),s=(Fe().s[15]++,e.doc.$lines[t.row].slice(0,t.column));Fe().s[16]++,this.keywordExpressions.some((function(n){return Fe().f[7]++,Fe().s[17]++,s.match(n)}))?(Fe().b[2][0]++,Fe().s[18]++,o=this.autocompleteData):Fe().b[2][1]++,Fe().s[19]++,i(null,(0,u.Z)(o))})),Fe().f[1]++,Fe().s[5]++,this.keywordExpressions=[],Fe().s[6]++,this.autocompleteData=[],Fe().s[7]++,Te(e).then((function(n){Fe().f[4]++,Fe().s[8]++,t.keywordExpressions=n.data.map(Ie),Fe().s[9]++,i()})),Fe().s[10]++,De(e).then((function(n){Fe().f[5]++,Fe().s[11]++,t.autocompleteData=n.data,Fe().s[12]++,l()}))}));function Ne(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/cmdCompleter.js",e="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"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Ne=function(){return s},s}Ne();var Be=function(n){(0,Re.Z)(t,n);var e=(0,Me.Z)(t);function t(){return(0,A.Z)(this,t),Ne().f[0]++,Ne().s[0]++,e.call(this,"cmd")}return(0,p.Z)(t)}($e),Le=t(3484);function Pe(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/tlmCompleter.js",e="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"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Pe=function(){return s},s}Pe();var Ze=function(n){(0,Re.Z)(t,n);var e=(0,Me.Z)(t);function t(){var n;return(0,A.Z)(this,t),Pe().f[0]++,Pe().s[0]++,n=e.call(this,"tlm",(function(){Pe().f[1]++,Pe().s[1]++,n.groupedPacketData=n.autocompleteData.reduce((function(n,e){Pe().f[2]++;var t=(Pe().s[2]++,e.caption.match(/\S+\s\S+/)[0]),l=(Pe().s[3]++,e.snippet.replace("".concat(t," "),"")),i=(Pe().s[4]++,{caption:l,snippet:l,meta:"item"});return Pe().s[5]++,n[t]?(Pe().b[0][0]++,Pe().s[6]++,n[t].push(i)):(Pe().b[0][1]++,Pe().s[7]++,n[t]=[i]),Pe().s[8]++,n}),{}),Pe().s[9]++,n.packets=Object.keys(n.groupedPacketData).map((function(n){return Pe().f[3]++,Pe().s[10]++,{caption:n,snippet:n,meta:"packet"}}))})),(0,nn.Z)((0,Le.Z)(n),"getCompletions",(Pe().s[11]++,function(n,e,t,l,i){Pe().f[4]++;var o=(Pe().s[12]++,[]),s=(Pe().s[13]++,e.doc.$lines[t.row].slice(0,t.column));if(Pe().s[14]++,this.keywordExpressions.some((function(n){return Pe().f[5]++,Pe().s[15]++,s.match(n)}))){Pe().b[1][0]++;var a=(Pe().s[16]++,Object.keys(this.groupedPacketData).find((function(n){return Pe().f[6]++,Pe().s[17]++,s.includes(n)})));Pe().s[18]++,a?(Pe().b[2][0]++,Pe().s[19]++,o=this.groupedPacketData[a]):(Pe().b[2][1]++,Pe().s[20]++,o=this.packets)}else Pe().b[1][1]++;Pe().s[21]++,i(null,o)})),n}return(0,p.Z)(t)}($e);t(8319),t(3430);function He(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/mnemonicChecker.js",e="e080393749109eb4f39d2fd9ed01fd9fad38db87",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:41}},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:138,column:3}},18:{start:{line:61,column:42},end:{line:131,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:25},end:{line:77,column:50}},29:{start:{line:78,column:30},end:{line:80,column:32}},30:{start:{line:82,column:8},end:{line:85,column:9}},31:{start:{line:83,column:10},end:{line:83,column:44}},32:{start:{line:84,column:10},end:{line:84,column:23}},33:{start:{line:87,column:37},end:{line:87,column:80}},34:{start:{line:88,column:30},end:{line:90,column:9}},35:{start:{line:91,column:8},end:{line:93,column:9}},36:{start:{line:92,column:10},end:{line:92,column:23}},37:{start:{line:95,column:25},end:{line:98,column:9}},38:{start:{line:99,column:8},end:{line:110,column:9}},39:{start:{line:100,column:10},end:{line:100,column:42}},40:{start:{line:102,column:33},end:{line:102,column:55}},41:{start:{line:103,column:10},end:{line:109,column:11}},42:{start:{line:104,column:12},end:{line:106,column:13}},43:{start:{line:105,column:25},end:{line:105,column:45}},44:{start:{line:108,column:12},end:{line:108,column:80}},45:{start:{line:108,column:70},end:{line:108,column:79}},46:{start:{line:113,column:8},end:{line:121,column:9}},47:{start:{line:114,column:10},end:{line:120,column:11}},48:{start:{line:115,column:12},end:{line:115,column:79}},49:{start:{line:117,column:12},end:{line:119,column:13}},50:{start:{line:118,column:14},end:{line:118,column:46}},51:{start:{line:123,column:8},end:{line:127,column:10}},52:{start:{line:128,column:8},end:{line:128,column:21}},53:{start:{line:133,column:21},end:{line:133,column:57}},54:{start:{line:134,column:4},end:{line:137,column:5}},55:{start:{line:136,column:40},end:{line:136,column:67}},56:{start:{line:140,column:16},end:{line:212,column:3}},57:{start:{line:141,column:25},end:{line:141,column:27}},58:{start:{line:142,column:25},end:{line:145,column:5}},59:{start:{line:144,column:19},end:{line:144,column:42}},60:{start:{line:146,column:4},end:{line:210,column:5}},61:{start:{line:147,column:6},end:{line:155,column:7}},62:{start:{line:148,column:8},end:{line:153,column:9}},63:{start:{line:149,column:10},end:{line:152,column:12}},64:{start:{line:154,column:8},end:{line:154,column:16}},65:{start:{line:156,column:27},end:{line:159,column:7}},66:{start:{line:158,column:21},end:{line:158,column:44}},67:{start:{line:160,column:6},end:{line:209,column:7}},68:{start:{line:161,column:8},end:{line:208,column:9}},69:{start:{line:162,column:27},end:{line:162,column:64}},70:{start:{line:163,column:10},end:{line:177,column:11}},71:{start:{line:164,column:27},end:{line:166,column:34}},72:{start:{line:167,column:29},end:{line:167,column:59}},73:{start:{line:168,column:12},end:{line:176,column:13}},74:{start:{line:170,column:16},end:{line:172,column:17}},75:{start:{line:171,column:28},end:{line:171,column:37}},76:{start:{line:173,column:16},end:{line:173,column:29}},77:{start:{line:179,column:24},end:{line:179,column:62}},78:{start:{line:180,column:10},end:{line:188,column:11}},79:{start:{line:181,column:12},end:{line:186,column:14}},80:{start:{line:187,column:12},end:{line:187,column:20}},81:{start:{line:189,column:10},end:{line:207,column:11}},82:{start:{line:190,column:12},end:{line:196,column:13}},83:{start:{line:190,column:38},end:{line:190,column:68}},84:{start:{line:191,column:14},end:{line:194,column:16}},85:{start:{line:195,column:14},end:{line:195,column:22}},86:{start:{line:198,column:12},end:{line:206,column:13}},87:{start:{line:199,column:14},end:{line:205,column:15}},88:{start:{line:199,column:40},end:{line:199,column:54}},89:{start:{line:200,column:16},end:{line:203,column:18}},90:{start:{line:204,column:16},end:{line:204,column:24}},91:{start:{line:211,column:4},end:{line:211,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:36},end:{line:40,column:37}},loc:{start:{line:40,column:50},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:138,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:129,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:105,column:14},end:{line:105,column:15}},loc:{start:{line:105,column:25},end:{line:105,column:45}},line:105},11:{name:"(anonymous_11)",decl:{start:{line:108,column:52},end:{line:108,column:53}},loc:{start:{line:108,column:70},end:{line:108,column:79}},line:108},12:{name:"(anonymous_12)",decl:{start:{line:117,column:56},end:{line:117,column:57}},loc:{start:{line:118,column:14},end:{line:118,column:46}},line:118},13:{name:"(anonymous_13)",decl:{start:{line:136,column:30},end:{line:136,column:31}},loc:{start:{line:136,column:40},end:{line:136,column:67}},line:136},14:{name:"(anonymous_14)",decl:{start:{line:140,column:16},end:{line:140,column:17}},loc:{start:{line:140,column:40},end:{line:212,column:3}},line:140},15:{name:"(anonymous_15)",decl:{start:{line:144,column:6},end:{line:144,column:7}},loc:{start:{line:144,column:19},end:{line:144,column:42}},line:144},16:{name:"(anonymous_16)",decl:{start:{line:158,column:8},end:{line:158,column:9}},loc:{start:{line:158,column:21},end:{line:158,column:44}},line:158},17:{name:"(anonymous_17)",decl:{start:{line:169,column:14},end:{line:169,column:15}},loc:{start:{line:169,column:38},end:{line:174,column:15}},line:169},18:{name:"(anonymous_18)",decl:{start:{line:171,column:18},end:{line:171,column:19}},loc:{start:{line:171,column:28},end:{line:171,column:37}},line:171},19:{name:"(anonymous_19)",decl:{start:{line:190,column:28},end:{line:190,column:29}},loc:{start:{line:190,column:38},end:{line:190,column:68}},line:190},20:{name:"(anonymous_20)",decl:{start:{line:199,column:30},end:{line:199,column:31}},loc:{start:{line:199,column:40},end:{line:199,column:54}},line:199}},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:26},end:{line:77,column:46}},type:"binary-expr",locations:[{start:{line:77,column:26},end:{line:77,column:34}},{start:{line:77,column:38},end:{line:77,column:46}}],line:77},6:{loc:{start:{line:82,column:8},end:{line:85,column:9}},type:"if",locations:[{start:{line:82,column:8},end:{line:85,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:82},7:{loc:{start:{line:89,column:10},end:{line:89,column:42}},type:"cond-expr",locations:[{start:{line:89,column:33},end:{line:89,column:36}},{start:{line:89,column:39},end:{line:89,column:42}}],line:89},8:{loc:{start:{line:91,column:8},end:{line:93,column:9}},type:"if",locations:[{start:{line:91,column:8},end:{line:93,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:91},9:{loc:{start:{line:99,column:8},end:{line:110,column:9}},type:"if",locations:[{start:{line:99,column:8},end:{line:110,column:9}},{start:{line:101,column:15},end:{line:110,column:9}}],line:99},10:{loc:{start:{line:103,column:10},end:{line:109,column:11}},type:"if",locations:[{start:{line:103,column:10},end:{line:109,column:11}},{start:{line:107,column:17},end:{line:109,column:11}}],line:103},11:{loc:{start:{line:114,column:10},end:{line:120,column:11}},type:"if",locations:[{start:{line:114,column:10},end:{line:120,column:11}},{start:{line:116,column:17},end:{line:120,column:11}}],line:114},12:{loc:{start:{line:147,column:6},end:{line:155,column:7}},type:"if",locations:[{start:{line:147,column:6},end:{line:155,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:147},13:{loc:{start:{line:162,column:27},end:{line:162,column:64}},type:"cond-expr",locations:[{start:{line:162,column:51},end:{line:162,column:56}},{start:{line:162,column:59},end:{line:162,column:64}}],line:162},14:{loc:{start:{line:163,column:10},end:{line:177,column:11}},type:"if",locations:[{start:{line:163,column:10},end:{line:177,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:163},15:{loc:{start:{line:164,column:27},end:{line:166,column:34}},type:"cond-expr",locations:[{start:{line:165,column:16},end:{line:165,column:35}},{start:{line:166,column:16},end:{line:166,column:34}}],line:164},16:{loc:{start:{line:180,column:10},end:{line:188,column:11}},type:"if",locations:[{start:{line:180,column:10},end:{line:188,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:180},17:{loc:{start:{line:184,column:16},end:{line:184,column:57}},type:"cond-expr",locations:[{start:{line:184,column:37},end:{line:184,column:45}},{start:{line:184,column:48},end:{line:184,column:57}}],line:184},18:{loc:{start:{line:189,column:10},end:{line:207,column:11}},type:"if",locations:[{start:{line:189,column:10},end:{line:207,column:11}},{start:{line:197,column:17},end:{line:207,column:11}}],line:189},19:{loc:{start:{line:190,column:12},end:{line:196,column:13}},type:"if",locations:[{start:{line:190,column:12},end:{line:196,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:190},20:{loc:{start:{line:199,column:14},end:{line:205,column:15}},type:"if",locations:[{start:{line:199,column:14},end:{line:205,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:199}},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},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:"e080393749109eb4f39d2fd9ed01fd9fad38db87"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return He=function(){return s},s}He(),He().s[0]++;var Ue=function(n){He().f[0]++;var e=(He().s[1]++,"(^|[{\\(\\s])"),t=(He().s[2]++,"((\\s.+)|(\\(.+\\)))");return He().s[3]++,new RegExp("".concat(e).concat(n).concat(t))},Ge=(He().s[4]++,/#\{.+\}/),je=(He().s[5]++,/['"],\s?['"]/),qe=(0,p.Z)((function n(){var e=this;(0,A.Z)(this,n),(0,nn.Z)(this,"checkText",(He().s[17]++,function(){var n=(0,r.Z)((0,c.Z)().mark((function n(e){var t,l,i,o,s=this;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return He().f[6]++,He().s[18]++,t=e.split("\n").reduce((function(n,e,t){if(He().f[7]++,He().s[19]++,e=e.trim(),He().s[20]++,e.match(/^#/))return He().b[0][0]++,He().s[21]++,n;He().b[0][1]++;var l=(He().s[22]++,s.cmdKeywordExpressions.reduce((function(n,t){return He().f[8]++,He().s[23]++,He().b[1][0]++,n||(He().b[1][1]++,e.match(t))}),null)),i=(He().s[24]++,s.tlmKeywordExpressions.reduce((function(n,t){return He().f[9]++,He().s[25]++,He().b[2][0]++,n||(He().b[2][1]++,e.match(t))}),null));if(He().s[26]++,He().b[4][0]++,!l&&(He().b[4][1]++,!i))return He().b[3][0]++,He().s[27]++,n;He().b[3][1]++;var o=(He().s[28]++,(He().b[5][0]++,l||(He().b[5][1]++,i))[0]),a=(He().s[29]++,o.substring(o.match(/[\(\s)]/).index+1).replace(/\)\s*$/,""));if(He().s[30]++,a.match(Ge))return He().b[6][0]++,He().s[31]++,n.linesToSkip.push(t+1),He().s[32]++,n;He().b[6][1]++;var c=(He().s[33]++,!!a.match(je)),r=(He().s[34]++,a.split(c?(He().b[7][0]++,","):(He().b[7][1]++," ")));if(He().s[35]++,r.length<2)return He().b[8][0]++,He().s[36]++,n;He().b[8][1]++;var u=(He().s[37]++,{target:r[0],packet:r[1]});if(He().s[38]++,i)He().b[9][0]++,He().s[39]++,u.item=r[2];else{He().b[9][1]++;var m=(He().s[40]++,r.slice(2));He().s[41]++,c?(He().b[10][0]++,He().s[42]++,u.params=m.map((function(n){return He().f[10]++,He().s[43]++,n.split("=>")[0]}))):(He().b[10][1]++,He().s[44]++,u.params=m.filter((function(n,e){return He().f[11]++,He().s[45]++,e%2})))}for(var d in He().s[46]++,u)He().s[47]++,"string"===typeof u[d]?(He().b[11][0]++,He().s[48]++,u[d]=u[d].replace(/['"]/g,"").trim()):(He().b[11][1]++,He().s[49]++,u[d]=u[d].map((function(n){return He().f[12]++,He().s[50]++,n.replace(/['"]/g,"").trim()})));return He().s[51]++,n.linesToCheck.push({line:e,mnemonic:u,lineNumber:t+1}),He().s[52]++,n}),{linesToCheck:[],linesToSkip:[]}),l=t.linesToCheck,i=t.linesToSkip,He().s[53]++,n.next=5,this._checkLines(l);case 5:return o=n.sent,He().s[54]++,n.abrupt("return",{skipped:i.sort(),problems:o.sort((function(n,e){return He().f[13]++,He().s[55]++,n.lineNumber-e.lineNumber}))});case 8:case"end":return n.stop()}}),n,this)})));return function(e){return n.apply(this,arguments)}}())),(0,nn.Z)(this,"_checkLines",(He().s[56]++,function(){var n=(0,r.Z)((0,c.Z)().mark((function n(t){var l,i,o,r,u,m,d,A,p,h,f,v;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:He().f[14]++,He().s[57]++,l=[],He().s[58]++,i=Oe(t,(function(n){return He().f[15]++,He().s[59]++,n.mnemonic.target})),He().s[60]++,n.t0=(0,c.Z)().keys(i);case 5:if((n.t1=n.t0()).done){n.next=47;break}if(o=n.t1.value,He().s[61]++,e.targets[o]){n.next=17;break}He().b[12][0]++,He().s[62]++,r=(0,a.Z)(i[o]);try{for(r.s();!(u=r.n()).done;)m=u.value,He().s[63]++,l.push((0,s.Z)((0,s.Z)({},m),{},{error:'Target "'.concat(o,'" does not exist.')}))}catch(C){r.e(C)}finally{r.f()}return He().s[64]++,n.abrupt("continue",5);case 17:He().b[12][1]++;case 18:He().s[65]++,d=Oe(i[o],(function(n){return He().f[16]++,He().s[66]++,n.mnemonic.packet})),He().s[67]++,n.t2=(0,c.Z)().keys(d);case 21:if((n.t3=n.t2()).done){n.next=45;break}A=n.t3.value,He().s[68]++,p=(0,a.Z)(d[A]),n.prev=25,f=(0,c.Z)().mark((function n(){var t,i,r,u,m,d,p,f,v;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t=h.value,He().s[69]++,i=t.mnemonic.item?(He().b[13][0]++,"tlm"):(He().b[13][1]++,"cmd"),He().s[70]++,e.targets[o][i]){n.next=14;break}return He().b[14][0]++,He().s[71]++,r=t.mnemonic.item?(He().b[15][0]++,"get_all_telemetry"):(He().b[15][1]++,"get_all_commands"),He().s[72]++,n.next=9,e.api[r](o);case 9:u=n.sent,He().s[73]++,e.targets[o][i]=u.reduce((function(n,e){return He().f[17]++,He().s[74]++,n[e.packet_name]=e.items.map((function(n){return He().f[18]++,He().s[75]++,n.name})),He().s[76]++,n}),{}),n.next=15;break;case 14:He().b[14][1]++;case 15:if(He().s[77]++,m=e.targets[o][i][A],He().s[78]++,m){n.next=25;break}return He().b[16][0]++,He().s[79]++,l.push((0,s.Z)((0,s.Z)({},t),{},{error:"".concat("tlm"===i?(He().b[17][0]++,"Packet"):(He().b[17][1]++,"Command"),' "').concat(o," ").concat(A,'" does not exist.')})),He().s[80]++,n.abrupt("return","continue");case 25:He().b[16][1]++;case 26:if(He().s[81]++,!t.mnemonic.item){n.next=41;break}if(He().b[18][0]++,He().s[82]++,m.some((function(n){return He().f[19]++,He().s[83]++,n===t.mnemonic.item}))){n.next=38;break}return He().b[19][0]++,He().s[84]++,l.push((0,s.Z)((0,s.Z)({},t),{},{error:'Item "'.concat(o," ").concat(A," ").concat(t.mnemonic.item,'" does not exist.')})),He().s[85]++,n.abrupt("return","continue");case 38:He().b[19][1]++;case 39:n.next=62;break;case 41:He().b[18][1]++,He().s[86]++,d=(0,a.Z)(t.mnemonic.params),n.prev=44,f=(0,c.Z)().mark((function n(){var e;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e=p.value,He().s[87]++,m.some((function(n){return He().f[20]++,He().s[88]++,n===e}))){n.next=10;break}return He().b[20][0]++,He().s[89]++,l.push((0,s.Z)((0,s.Z)({},t),{},{error:'Command "'.concat(o," ").concat(A,'" param "').concat(e,'" does not exist.')})),He().s[90]++,n.abrupt("return","continue");case 10:He().b[20][1]++;case 11:case"end":return n.stop()}}),n)})),d.s();case 47:if((p=d.n()).done){n.next=54;break}return n.delegateYield(f(),"t0",49);case 49:if(v=n.t0,"continue"!==v){n.next=52;break}return n.abrupt("continue",52);case 52:n.next=47;break;case 54:n.next=59;break;case 56:n.prev=56,n.t1=n["catch"](44),d.e(n.t1);case 59:return n.prev=59,d.f(),n.finish(59);case 62:case"end":return n.stop()}}),n,null,[[44,56,59,62]])})),p.s();case 28:if((h=p.n()).done){n.next=35;break}return n.delegateYield(f(),"t4",30);case 30:if(v=n.t4,"continue"!==v){n.next=33;break}return n.abrupt("continue",33);case 33:n.next=28;break;case 35:n.next=40;break;case 37:n.prev=37,n.t5=n["catch"](25),p.e(n.t5);case 40:return n.prev=40,p.f(),n.finish(40);case 43:n.next=21;break;case 45:n.next=5;break;case 47:return He().s[91]++,n.abrupt("return",l);case 49:case"end":return n.stop()}}),n,null,[[25,37,40,43]])})));return function(e){return n.apply(this,arguments)}}())),He().f[1]++,He().s[6]++,this.api=new en,He().s[7]++,this.targets={},He().s[8]++,this.api.get_target_list().then((function(n){He().f[2]++,He().s[9]++,n.forEach((function(n){He().f[3]++,He().s[10]++,e.targets[n]={cmd:null,tlm:null}}))})),He().s[11]++,this.cmdKeywordExpressions=[],He().s[12]++,Te("cmd").then((function(n){He().f[4]++,He().s[13]++,e.cmdKeywordExpressions=n.data.map(Ue)})),He().s[14]++,this.tlmKeywordExpressions=[],He().s[15]++,Te("tlm").then((function(n){He().f[5]++,He().s[16]++,e.tlmKeywordExpressions=n.data.map(Ue)}))}));function Ve(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/index.js",e="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"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Ve=function(){return s},s}Ve();var ze=t(2124),We=t(2645),Ye=t(2842);t(2356);function Ke(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/regexAnnotator.js",e="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"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Ke=function(){return s},s}Ke();var Je=new WeakMap,Xe=new WeakMap,Qe=new WeakMap,nt=new WeakMap,et=new WeakMap,tt=new WeakMap,lt=new WeakMap,it=new WeakMap,ot=new WeakMap,st=(0,p.Z)((function n(e,t){var l=this,i=t.pattern,o=t.text,s=t.type;(0,A.Z)(this,n),(0,ze.Z)(this,Je,{writable:!0,value:void 0}),(0,ze.Z)(this,Xe,{writable:!0,value:void 0}),(0,ze.Z)(this,Qe,{writable:!0,value:void 0}),(0,ze.Z)(this,nt,{writable:!0,value:void 0}),(0,ze.Z)(this,et,{writable:!0,value:void 0}),(0,nn.Z)(this,"refresh",(Ke().s[5]++,function(){Ke().f[1]++;var n=(Ke().s[6]++,(0,We.Z)(l,Xe).session);Ke().s[7]++,(0,We.Z)(l,ot).call(l,n);var e=(Ke().s[8]++,{lines:n.doc.$lines,action:"insert",start:{row:0},end:{row:n.doc.$lines.length}});Ke().s[9]++,l.annotate(e,n)})),(0,nn.Z)(this,"annotate",(Ke().s[10]++,function(n,e){if(Ke().f[2]++,Ke().s[11]++,n.lines.length>1)switch(Ke().b[0][0]++,Ke().s[12]++,n.action){case"insert":Ke().b[1][0]++,Ke().s[13]++,(0,We.Z)(l,it).call(l,e,n.start.row,n.lines.length-1),Ke().s[14]++;break;case"remove":Ke().b[1][1]++,Ke().s[15]++,(0,We.Z)(l,it).call(l,e,n.start.row+1,1-n.lines.length),Ke().s[16]++;break}else Ke().b[0][1]++;Ke().s[17]++;for(var t=(Ke().s[18]++,n.start.row);t<=n.end.row;t++){var i,o,s=(Ke().s[19]++,null===(i=e.doc.$lines[t])||void 0===i||null===(o=i.match((0,We.Z)(l,Qe)))||void 0===o?void 0:o.index);Ke().s[20]++,void 0!==s?(Ke().b[2][0]++,Ke().s[21]++,Ke().b[3][0]++,0!==s&&(Ke().b[3][1]++,s+=1),Ke().s[22]++,(0,We.Z)(l,tt).call(l,e,{row:t,column:s,text:(0,We.Z)(l,nt),type:(0,We.Z)(l,et),openc3Id:(0,We.Z)(l,Je)})):(Ke().b[2][1]++,Ke().s[23]++,"remove"===n.action?(Ke().b[4][0]++,Ke().s[24]++,(0,We.Z)(l,lt).call(l,e,t)):Ke().b[4][1]++)}})),(0,ze.Z)(this,tt,{writable:!0,value:(Ke().s[25]++,function(n,e){Ke().f[3]++,Ke().s[26]++,(0,We.Z)(l,lt).call(l,n,e.row),Ke().s[27]++,n.setAnnotations([].concat((0,u.Z)(n.getAnnotations()),[e]))})}),(0,ze.Z)(this,lt,{writable:!0,value:(Ke().s[28]++,function(n,e){Ke().f[4]++,Ke().s[29]++,n.setAnnotations(n.getAnnotations().filter((function(n){return Ke().f[5]++,Ke().s[30]++,Ke().b[5][0]++,n.openc3Id!==(0,We.Z)(l,Je)||(Ke().b[5][1]++,n.row!==e)})))})}),(0,ze.Z)(this,it,{writable:!0,value:(Ke().s[31]++,function(n,e,t){Ke().f[6]++,Ke().s[32]++,n.setAnnotations(n.getAnnotations().map((function(n){return Ke().f[7]++,Ke().s[33]++,n.row>e?(Ke().b[6][0]++,Ke().s[34]++,n.row+=t):Ke().b[6][1]++,Ke().s[35]++,n})))})}),(0,ze.Z)(this,ot,{writable:!0,value:(Ke().s[36]++,function(n){Ke().f[8]++,Ke().s[37]++,n.setAnnotations(n.getAnnotations().filter((function(n){return Ke().f[9]++,Ke().s[38]++,n.openc3Id!==(0,We.Z)(l,Je)})))})}),Ke().f[0]++,Ke().s[0]++,(0,Ye.Z)(this,Je,"regexAnnotator-".concat(Math.floor(1e7*Math.random()))),Ke().s[1]++,(0,Ye.Z)(this,Xe,e),Ke().s[2]++,(0,Ye.Z)(this,Qe,i),Ke().s[3]++,(0,Ye.Z)(this,nt,o),Ke().s[4]++,(0,Ye.Z)(this,et,s)}));function at(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/sleepAnnotator.js",e="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"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return at=function(){return s},s}at();var ct=function(n){(0,Re.Z)(t,n);var e=(0,Me.Z)(t);function t(n){(0,A.Z)(this,t),at().f[0]++;var l=(at().s[0]++,"(^|[{\\s])"),i=(at().s[1]++,"sleep"),o=(at().s[2]++,"[\\(\\s]");return at().s[3]++,e.call(this,n,{pattern:new RegExp("".concat(l).concat(i).concat(o)),text:"Use `wait` instead of `sleep` in OpenC3 scripts",type:"warning"})}return(0,p.Z)(t)}(st);function rt(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/index.js",e="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"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return rt=function(){return s},s}function ut(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",e="9250c42fd457fdb36eaa63ef6ebfb07590a0ac2b",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: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:3433}},4:{start:{line:1,column:643},end:{line:1,column:664}},5:{start:{line:1,column:1053},end:{line:1,column:1363}},6:{start:{line:1,column:1128},end:{line:1,column:1158}},7:{start:{line:1,column:1405},end:{line:1,column:1617}},8:{start:{line:1,column:1480},end:{line:1,column:1507}},9:{start:{line:1,column:1661},end:{line:1,column:1878}},10:{start:{line:1,column:1736},end:{line:1,column:1765}},11:{start:{line:1,column:2392},end:{line:1,column:2415}},12:{start:{line:1,column:2902},end:{line:1,column:3415}},13:{start:{line:1,column:3077},end:{line:1,column:3111}},14:{start:{line:1,column:3162},end:{line:1,column:3204}},15:{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:627},end:{line:1,column:628}},loc:{start:{line:1,column:642},end:{line:1,column:665}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:1034},end:{line:1,column:1035}},loc:{start:{line:1,column:1052},end:{line:1,column:1364}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1111},end:{line:1,column:1112}},loc:{start:{line:1,column:1127},end:{line:1,column:1159}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1386},end:{line:1,column:1387}},loc:{start:{line:1,column:1404},end:{line:1,column:1618}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1463},end:{line:1,column:1464}},loc:{start:{line:1,column:1479},end:{line:1,column:1508}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1642},end:{line:1,column:1643}},loc:{start:{line:1,column:1660},end:{line:1,column:1879}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:1719},end:{line:1,column:1720}},loc:{start:{line:1,column:1735},end:{line:1,column:1766}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2376},end:{line:1,column:2377}},loc:{start:{line:1,column:2391},end:{line:1,column:2416}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2883},end:{line:1,column:2884}},loc:{start:{line:1,column:2901},end:{line:1,column:3416}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:3060},end:{line:1,column:3061}},loc:{start:{line:1,column:3076},end:{line:1,column:3112}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:3151},end:{line:1,column:3152}},loc:{start:{line:1,column:3161},end:{line:1,column:3205}},line:1}},branchMap:{0:{loc:{start:{line:1,column:2987},end:{line:1,column:3046}},type:"binary-expr",locations:[{start:{line:1,column:2987},end:{line:1,column:3005}},{start:{line:1,column:3009},end:{line:1,column:3046}}],line:1},1:{loc:{start:{line:1,column:3232},end:{line:1,column:3336}},type:"cond-expr",locations:[{start:{line:1,column:3268},end:{line:1,column:3302}},{start:{line:1,column:3303},end:{line:1,column:3336}}],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},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]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"9250c42fd457fdb36eaa63ef6ebfb07590a0ac2b"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return ut=function(){return s},s}rt(),ut(),ut().s[0]++;var mt=function(){ut().f[0]++;var n=(ut().s[1]++,this),e=(ut().s[2]++,n._self._c);return ut().s[3]++,e("div",[e("v-card",{attrs:{flat:""}},[e("v-card-title",[n._v(" Running Scripts ")]),e("v-card-text",{staticClass:"overflow-y-auto",attrs:{"max-height":"400"}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-2"},[e("v-btn",{attrs:{color:"primary"},on:{click:n.getRunningScripts}},[n._v("Refresh")])],1),e("div",{staticClass:"col-10"},[e("v-text-field",{staticClass:"pt-0",attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":"","data-test":"running-search"},model:{value:n.runningSearch,callback:function(e){ut().f[1]++,ut().s[4]++,n.runningSearch=e},expression:"runningSearch"}})],1)])]),e("v-data-table",{attrs:{headers:n.runningHeaders,items:n.runningScripts,search:n.runningSearch,"items-per-page":"-1","calculate-widths":"","disable-pagination":"","hide-default-footer":"","multi-sort":"","sort-by":"start_time","sort-desc":"","data-test":"running-scripts"},scopedSlots:n._u([{key:"item.connect",fn:function(t){var l=t.item;return ut().f[2]++,ut().s[5]++,[e("v-btn",{attrs:{color:"primary"},on:{click:function(e){return ut().f[3]++,ut().s[6]++,n.connectScript(l)}}},[e("span",[n._v("Connect")]),e("v-icon",{directives:[{name:"show",rawName:"v-show",value:n.connectInNewTab,expression:"connectInNewTab"}],attrs:{right:""}},[n._v(" mdi-open-in-new ")])],1)]}},{key:"item.stop",fn:function(t){var l=t.item;return ut().f[4]++,ut().s[7]++,[e("v-btn",{attrs:{color:"primary"},on:{click:function(e){return ut().f[5]++,ut().s[8]++,n.stopScript(l)}}},[e("span",[n._v("Stop")]),e("v-icon",{attrs:{right:""}},[n._v(" mdi-close-circle-outline ")])],1)]}},{key:"item.delete",fn:function(t){var l=t.item;return ut().f[6]++,ut().s[9]++,[e("v-btn",{attrs:{color:"primary"},on:{click:function(e){return ut().f[7]++,ut().s[10]++,n.deleteScript(l)}}},[e("span",[n._v("Delete")]),e("v-icon",{attrs:{right:""}},[n._v(" mdi-alert-octagon-outline ")])],1)]}}])})],1),e("v-card",{staticClass:"mt-3",attrs:{flat:""}},[e("v-card-title",[n._v(" Completed Scripts ")]),e("v-card-text",[e("div",{staticClass:"row"},[e("div",{staticClass:"col-2"},[e("v-btn",{attrs:{color:"primary"},on:{click:n.getCompletedScripts}},[n._v("Refresh")])],1),e("div",{staticClass:"col-10"},[e("v-text-field",{staticClass:"pt-0",attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:n.completedSearch,callback:function(e){ut().f[8]++,ut().s[11]++,n.completedSearch=e},expression:"completedSearch"}})],1)])]),e("v-container",{staticClass:"overflow-y-auto",staticStyle:{"max-height":"400px",padding:"0px",margin:"0px"}},[e("v-data-table",{attrs:{headers:n.completedHeaders,items:n.completedScripts,search:n.completedSearch,"calculate-widths":"","items-per-page":"-1","hide-default-footer":"","multi-sort":"","sort-by":"start","sort-desc":"","data-test":"completed-scripts"},scopedSlots:n._u([{key:"item.download",fn:function(t){var l=t.item;return ut().f[9]++,ut().s[12]++,[e("v-btn",{attrs:{color:"primary",disabled:n.downloadScript,loading:(ut().b[0][0]++,n.downloadScript&&(ut().b[0][1]++,n.downloadScript.name===l.name))},on:{click:function(e){return ut().f[10]++,ut().s[13]++,n.downloadScriptLog(l)}},scopedSlots:n._u([{key:"loader",fn:function(){return ut().f[11]++,ut().s[14]++,[e("span",[n._v("Loading...")])]},proxy:!0}],null,!0)},[l.name.includes("Test Report")?(ut().b[1][0]++,e("span",[n._v("Test Report")])):(ut().b[1][1]++,e("span",[n._v("Script Log")])),e("v-icon",{attrs:{right:""}},[n._v(" mdi-file-download-outline ")])],1)]}}])})],1)],1)],1)},dt=(ut().s[15]++,[]);function At(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",e="805dde74dd92a9923530fee3f4deaf2e962c721f",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:50,column:5}},1:{start:{line:53,column:4},end:{line:53,column:28}},2:{start:{line:54,column:4},end:{line:54,column:30}},3:{start:{line:58,column:6},end:{line:60,column:8}},4:{start:{line:59,column:8},end:{line:59,column:43}},5:{start:{line:64,column:6},end:{line:66,column:8}},6:{start:{line:65,column:8},end:{line:65,column:45}},7:{start:{line:69,column:26},end:{line:72,column:7}},8:{start:{line:73,column:6},end:{line:79,column:7}},9:{start:{line:74,column:23},end:{line:74,column:56}},10:{start:{line:75,column:8},end:{line:75,column:35}},11:{start:{line:77,column:8},end:{line:77,column:38}},12:{start:{line:78,column:8},end:{line:78,column:27}},13:{start:{line:82,column:6},end:{line:105,column:10}},14:{start:{line:91,column:10},end:{line:91,column:73}},15:{start:{line:94,column:10},end:{line:96,column:12}},16:{start:{line:97,column:10},end:{line:97,column:34}},17:{start:{line:100,column:10},end:{line:104,column:11}},18:{start:{line:101,column:12},end:{line:103,column:14}},19:{start:{line:108,column:6},end:{line:132,column:10}},20:{start:{line:118,column:10},end:{line:118,column:75}},21:{start:{line:121,column:10},end:{line:123,column:12}},22:{start:{line:124,column:10},end:{line:124,column:34}},23:{start:{line:127,column:10},end:{line:131,column:11}},24:{start:{line:128,column:12},end:{line:130,column:14}},25:{start:{line:135,column:6},end:{line:135,column:34}},26:{start:{line:136,column:6},end:{line:156,column:10}},27:{start:{line:142,column:32},end:{line:142,column:53}},28:{start:{line:143,column:27},end:{line:143,column:66}},29:{start:{line:145,column:23},end:{line:145,column:50}},30:{start:{line:146,column:10},end:{line:146,column:39}},31:{start:{line:147,column:10},end:{line:147,column:49}},32:{start:{line:148,column:10},end:{line:148,column:22}},33:{start:{line:149,column:10},end:{line:149,column:36}},34:{start:{line:152,column:10},end:{line:155,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:51,column:3}},line:10},1:{name:"(anonymous_1)",decl:{start:{line:52,column:2},end:{line:52,column:3}},loc:{start:{line:52,column:12},end:{line:55,column:3}},line:52},2:{name:"(anonymous_2)",decl:{start:{line:57,column:23},end:{line:57,column:24}},loc:{start:{line:57,column:35},end:{line:61,column:5}},line:57},3:{name:"(anonymous_3)",decl:{start:{line:58,column:49},end:{line:58,column:50}},loc:{start:{line:58,column:63},end:{line:60,column:7}},line:58},4:{name:"(anonymous_4)",decl:{start:{line:62,column:25},end:{line:62,column:26}},loc:{start:{line:62,column:37},end:{line:67,column:5}},line:62},5:{name:"(anonymous_5)",decl:{start:{line:64,column:52},end:{line:64,column:53}},loc:{start:{line:64,column:66},end:{line:66,column:7}},line:64},6:{name:"(anonymous_6)",decl:{start:{line:68,column:19},end:{line:68,column:20}},loc:{start:{line:68,column:37},end:{line:80,column:5}},line:68},7:{name:"(anonymous_7)",decl:{start:{line:81,column:16},end:{line:81,column:17}},loc:{start:{line:81,column:34},end:{line:106,column:5}},line:81},8:{name:"(anonymous_8)",decl:{start:{line:90,column:14},end:{line:90,column:15}},loc:{start:{line:90,column:26},end:{line:92,column:9}},line:90},9:{name:"(anonymous_9)",decl:{start:{line:93,column:14},end:{line:93,column:15}},loc:{start:{line:93,column:28},end:{line:98,column:9}},line:93},10:{name:"(anonymous_10)",decl:{start:{line:99,column:15},end:{line:99,column:16}},loc:{start:{line:99,column:26},end:{line:105,column:9}},line:99},11:{name:"(anonymous_11)",decl:{start:{line:107,column:18},end:{line:107,column:19}},loc:{start:{line:107,column:36},end:{line:133,column:5}},line:107},12:{name:"(anonymous_12)",decl:{start:{line:117,column:14},end:{line:117,column:15}},loc:{start:{line:117,column:26},end:{line:119,column:9}},line:117},13:{name:"(anonymous_13)",decl:{start:{line:120,column:14},end:{line:120,column:15}},loc:{start:{line:120,column:28},end:{line:125,column:9}},line:120},14:{name:"(anonymous_14)",decl:{start:{line:126,column:15},end:{line:126,column:16}},loc:{start:{line:126,column:26},end:{line:132,column:9}},line:126},15:{name:"(anonymous_15)",decl:{start:{line:134,column:23},end:{line:134,column:24}},loc:{start:{line:134,column:41},end:{line:157,column:5}},line:134},16:{name:"(anonymous_16)",decl:{start:{line:141,column:14},end:{line:141,column:15}},loc:{start:{line:141,column:28},end:{line:150,column:9}},line:141},17:{name:"(anonymous_17)",decl:{start:{line:151,column:15},end:{line:151,column:16}},loc:{start:{line:151,column:21},end:{line:156,column:9}},line:151}},branchMap:{0:{loc:{start:{line:73,column:6},end:{line:79,column:7}},type:"if",locations:[{start:{line:73,column:6},end:{line:79,column:7}},{start:{line:76,column:13},end:{line:79,column:7}}],line:73},1:{loc:{start:{line:100,column:10},end:{line:104,column:11}},type:"if",locations:[{start:{line:100,column:10},end:{line:104,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:100},2:{loc:{start:{line:127,column:10},end:{line:131,column:11}},type:"if",locations:[{start:{line:127,column:10},end:{line:131,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:127}},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},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:";AAuIA;;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",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 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 <div>\n <v-card flat>\n <v-card-title> Running Scripts </v-card-title>\n <v-card-text class="overflow-y-auto" max-height="400">\n <div class="row">\n <div class="col-2">\n <v-btn color="primary" @click="getRunningScripts">Refresh</v-btn>\n </div>\n <div class="col-10">\n <v-text-field\n v-model="runningSearch"\n class="pt-0"\n append-icon="mdi-magnify"\n label="Search"\n single-line\n hide-details\n data-test="running-search"\n />\n </div>\n </div>\n </v-card-text>\n <v-data-table\n :headers="runningHeaders"\n :items="runningScripts"\n :search="runningSearch"\n items-per-page="-1"\n calculate-widths\n disable-pagination\n hide-default-footer\n multi-sort\n sort-by="start_time"\n sort-desc\n data-test="running-scripts"\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 class="mt-3" flat>\n <v-card-title> Completed Scripts </v-card-title>\n <v-card-text>\n <div class="row">\n <div class="col-2">\n <v-btn color="primary" @click="getCompletedScripts">Refresh</v-btn>\n </div>\n <div class="col-10">\n <v-text-field\n v-model="completedSearch"\n class="pt-0"\n append-icon="mdi-magnify"\n label="Search"\n single-line\n hide-details\n />\n </div>\n </div>\n </v-card-text>\n <v-container\n style="max-height: 400px; padding: 0px; margin: 0px"\n class="overflow-y-auto"\n >\n \x3c!-- TODO: This probably needs to be paginated --\x3e\n <v-data-table\n :headers="completedHeaders"\n :items="completedScripts"\n :search="completedSearch"\n calculate-widths\n items-per-page="-1"\n hide-default-footer\n multi-sort\n sort-by="start"\n sort-desc\n data-test="completed-scripts"\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(\'Test Report\')">Test Report</span>\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-container>\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: \'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: \'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 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:"805dde74dd92a9923530fee3f4deaf2e962c721f"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return At=function(){return s},s}At();var pt={props:{tabId:Number,curTab:Number,connectInNewTab:Boolean},data:function(){return At().f[0]++,At().s[0]++,{downloadScript:null,runningSearch:"",runningScripts:[],runningHeaders:[{text:"Connect",value:"connect",sortable:!1,filterable:!1},{text:"Id",value:"id"},{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:"Name",value:"name"},{text:"Start Time",value:"start"},{text:"Download",value:"download",sortable:!1,filterable:!1}]}},created:function(){At().f[1]++,At().s[1]++,this.getRunningScripts(),At().s[2]++,this.getCompletedScripts()},methods:{getRunningScripts:function(){var n=this;At().f[2]++,At().s[3]++,k.get("/script-api/running-script").then((function(e){At().f[3]++,At().s[4]++,n.runningScripts=e.data}))},getCompletedScripts:function(){var n=this;At().f[4]++,At().s[5]++,k.get("/script-api/completed-scripts").then((function(e){At().f[5]++,At().s[6]++,n.completedScripts=e.data}))},connectScript:function(n){At().f[6]++;var e=(At().s[7]++,{name:"ScriptRunner",params:{id:n.id}});if(At().s[8]++,this.connectInNewTab){At().b[0][0]++;var t=(At().s[9]++,this.$router.resolve(e)),l=t.href;At().s[10]++,window.open(l,"_blank")}else At().b[0][1]++,At().s[11]++,this.$router.push(e),At().s[12]++,this.$emit("close")},stopScript:function(n){var e=this;At().f[7]++,At().s[13]++,this.$dialog.confirm("Are you sure you want to stop script: ".concat(n.id," ").concat(n.name,"?"),{okText:"Stop",cancelText:"Cancel"}).then((function(e){return At().f[8]++,At().s[14]++,k.post("/script-api/running-script/".concat(n.id,"/stop"))})).then((function(t){At().f[9]++,At().s[15]++,e.$notify.normal({body:"Stopped script: ".concat(n.id," ").concat(n.name)}),At().s[16]++,e.getRunningScripts()})).catch((function(t){At().f[10]++,At().s[17]++,t?(At().b[1][0]++,At().s[18]++,e.$notify.caution({body:"Failed to stop script: ".concat(n.id," ").concat(n.name)})):At().b[1][1]++}))},deleteScript:function(n){var e=this;At().f[11]++,At().s[19]++,this.$dialog.confirm("Are you sure you want to force quit script: ".concat(n.id," ").concat(n.name,"?\n")+"Did you try to stop the script first to allow the script to stop gracefully?",{okText:"Force Quit",cancelText:"Cancel"}).then((function(e){return At().f[12]++,At().s[20]++,k.post("/script-api/running-script/".concat(n.id,"/delete"))})).then((function(t){At().f[13]++,At().s[21]++,e.$notify.normal({body:"Stopped script: ".concat(n.id," ").concat(n.name)}),At().s[22]++,e.getRunningScripts()})).catch((function(t){At().f[14]++,At().s[23]++,t?(At().b[2][0]++,At().s[24]++,e.$notify.caution({body:"Failed to stop script: ".concat(n.id," ").concat(n.name)})):At().b[2][1]++}))},downloadScriptLog:function(n){var e=this;At().f[15]++,At().s[25]++,this.downloadScript=n,At().s[26]++,k.get("/openc3-api/storage/download/".concat(encodeURIComponent(n.log),"?bucket=OPENC3_LOGS_BUCKET")).then((function(t){At().f[16]++;var l=(At().s[27]++,n.log.split("/")),i=(At().s[28]++,l[l.length-1]),o=(At().s[29]++,document.createElement("a"));At().s[30]++,o.href=t.data.url,At().s[31]++,o.setAttribute("download",i),At().s[32]++,o.click(),At().s[33]++,e.downloadScript=null})).catch((function(){At().f[17]++,At().s[34]++,e.$notify.caution({title:"Unable to download log for ".concat(n.name),body:"You may be able to download this log manually from the 'logs' bucket at ".concat(n.log)})}))}}},ht=pt,ft=(0,O.Z)(ht,mt,dt,!1,null,null,null),vt=ft.exports;function Ct(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",e="6c676479b9cc1fbad440ad2d343281eb7559e514",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:36,column:20},end:{line:36,column:30}},1:{start:{line:37,column:21},end:{line:37,column:33}},2:{start:{line:38,column:14},end:{line:38,column:21}},3:{start:{line:39,column:11},end:{line:39,column:15}},4:{start:{line:40,column:14},end:{line:40,column:21}},5:{start:{line:41,column:14},end:{line:41,column:21}},6:{start:{line:63,column:4},end:{line:170,column:5}},7:{start:{line:174,column:6},end:{line:178,column:7}},8:{start:{line:175,column:8},end:{line:175,column:19}},9:{start:{line:177,column:8},end:{line:177,column:20}},10:{start:{line:181,column:24},end:{line:181,column:47}},11:{start:{line:182,column:6},end:{line:182,column:39}},12:{start:{line:183,column:6},end:{line:183,column:36}},13:{start:{line:186,column:6},end:{line:188,column:32}},14:{start:{line:191,column:6},end:{line:191,column:67}},15:{start:{line:194,column:6},end:{line:194,column:28}},16:{start:{line:197,column:6},end:{line:197,column:59}},17:{start:{line:197,column:32},end:{line:197,column:59}},18:{start:{line:198,column:6},end:{line:198,column:26}},19:{start:{line:203,column:6},end:{line:203,column:64}},20:{start:{line:206,column:6},end:{line:371,column:7}},21:{start:{line:214,column:16},end:{line:214,column:30}},22:{start:{line:221,column:16},end:{line:221,column:31}},23:{start:{line:231,column:16},end:{line:231,column:31}},24:{start:{line:238,column:16},end:{line:238,column:29}},25:{start:{line:248,column:16},end:{line:248,column:31}},26:{start:{line:258,column:16},end:{line:258,column:29}},27:{start:{line:270,column:16},end:{line:270,column:47}},28:{start:{line:277,column:16},end:{line:277,column:50}},29:{start:{line:289,column:16},end:{line:289,column:46}},30:{start:{line:299,column:16},end:{line:299,column:60}},31:{start:{line:306,column:17},end:{line:307,column:70}},32:{start:{line:317,column:16},end:{line:317,column:38}},33:{start:{line:324,column:16},end:{line:324,column:37}},34:{start:{line:331,column:16},end:{line:331,column:39}},35:{start:{line:339,column:16},end:{line:339,column:36}},36:{start:{line:349,column:16},end:{line:349,column:34}},37:{start:{line:356,column:16},end:{line:356,column:39}},38:{start:{line:366,column:16},end:{line:366,column:43}},39:{start:{line:374,column:6},end:{line:387,column:7}},40:{start:{line:392,column:6},end:{line:392,column:34}},41:{start:{line:393,column:6},end:{line:395,column:7}},42:{start:{line:394,column:8},end:{line:394,column:36}},43:{start:{line:396,column:6},end:{line:396,column:34}},44:{start:{line:401,column:4},end:{line:401,column:30}},45:{start:{line:402,column:4},end:{line:402,column:36}},46:{start:{line:405,column:4},end:{line:405,column:36}},47:{start:{line:406,column:4},end:{line:406,column:43}},48:{start:{line:409,column:4},end:{line:409,column:36}},49:{start:{line:410,column:4},end:{line:410,column:46}},50:{start:{line:411,column:23},end:{line:411,column:45}},51:{start:{line:412,column:4},end:{line:412,column:49}},52:{start:{line:413,column:4},end:{line:413,column:37}},53:{start:{line:414,column:4},end:{line:414,column:44}},54:{start:{line:415,column:4},end:{line:415,column:42}},55:{start:{line:416,column:4},end:{line:416,column:60}},56:{start:{line:417,column:4},end:{line:417,column:59}},57:{start:{line:418,column:4},end:{line:418,column:69}},58:{start:{line:419,column:4},end:{line:419,column:45}},59:{start:{line:420,column:4},end:{line:420,column:23}},60:{start:{line:421,column:4},end:{line:421,column:60}},61:{start:{line:425,column:4},end:{line:425,column:60}},62:{start:{line:427,column:27},end:{line:427,column:58}},63:{start:{line:428,column:4},end:{line:431,column:6}},64:{start:{line:429,column:6},end:{line:429,column:46}},65:{start:{line:430,column:6},end:{line:430,column:45}},66:{start:{line:433,column:4},end:{line:433,column:52}},67:{start:{line:434,column:4},end:{line:434,column:47}},68:{start:{line:435,column:4},end:{line:435,column:58}},69:{start:{line:436,column:4},end:{line:444,column:13}},70:{start:{line:438,column:6},end:{line:443,column:7}},71:{start:{line:442,column:8},end:{line:442,column:29}},72:{start:{line:447,column:4},end:{line:447,column:25}},73:{start:{line:448,column:4},end:{line:448,column:34}},74:{start:{line:451,column:4},end:{line:451,column:21}},75:{start:{line:452,column:4},end:{line:454,column:5}},76:{start:{line:453,column:6},end:{line:453,column:42}},77:{start:{line:455,column:4},end:{line:457,column:5}},78:{start:{line:456,column:6},end:{line:456,column:37}},79:{start:{line:458,column:4},end:{line:458,column:27}},80:{start:{line:461,column:4},end:{line:465,column:5}},81:{start:{line:462,column:6},end:{line:462,column:56}},82:{start:{line:464,column:6},end:{line:464,column:12}},83:{start:{line:469,column:16},end:{line:469,column:42}},84:{start:{line:470,column:31},end:{line:472,column:26}},85:{start:{line:474,column:17},end:{line:476,column:36}},86:{start:{line:475,column:23},end:{line:475,column:42}},87:{start:{line:476,column:23},end:{line:476,column:35}},88:{start:{line:477,column:18},end:{line:477,column:63}},89:{start:{line:478,column:33},end:{line:487,column:7}},90:{start:{line:479,column:8},end:{line:479,column:37}},91:{start:{line:481,column:8},end:{line:486,column:9}},92:{start:{line:482,column:10},end:{line:485,column:12}},93:{start:{line:488,column:6},end:{line:488,column:60}},94:{start:{line:490,column:33},end:{line:492,column:28}},95:{start:{line:493,column:28},end:{line:495,column:23}},96:{start:{line:496,column:21},end:{line:496,column:66}},97:{start:{line:497,column:17},end:{line:503,column:7}},98:{start:{line:498,column:8},end:{line:498,column:50}},99:{start:{line:499,column:8},end:{line:499,column:50}},100:{start:{line:500,column:8},end:{line:500,column:47}},101:{start:{line:501,column:8},end:{line:501,column:42}},102:{start:{line:502,column:8},end:{line:502,column:62}},103:{start:{line:504,column:21},end:{line:504,column:54}},104:{start:{line:505,column:6},end:{line:506,column:7}},105:{start:{line:506,column:7},end:{line:508,column:29}},106:{start:{line:507,column:8},end:{line:507,column:36}},107:{start:{line:509,column:6},end:{line:509,column:17}},108:{start:{line:512,column:6},end:{line:512,column:56}},109:{start:{line:513,column:6},end:{line:513,column:39}},110:{start:{line:514,column:6},end:{line:514,column:34}},111:{start:{line:515,column:6},end:{line:515,column:29}},112:{start:{line:516,column:6},end:{line:525,column:7}},113:{start:{line:526,column:6},end:{line:526,column:55}},114:{start:{line:527,column:6},end:{line:527,column:30}},115:{start:{line:530,column:6},end:{line:550,column:8}},116:{start:{line:531,column:34},end:{line:533,column:9}},117:{start:{line:532,column:17},end:{line:532,column:38}},118:{start:{line:534,column:8},end:{line:549,column:9}},119:{start:{line:535,column:10},end:{line:535,column:48}},120:{start:{line:536,column:10},end:{line:536,column:30}},121:{start:{line:537,column:10},end:{line:537,column:48}},122:{start:{line:538,column:15},end:{line:549,column:9}},123:{start:{line:539,column:10},end:{line:542,column:12}},124:{start:{line:544,column:10},end:{line:548,column:11}},125:{start:{line:545,column:12},end:{line:545,column:38}},126:{start:{line:546,column:12},end:{line:546,column:81}},127:{start:{line:547,column:12},end:{line:547,column:33}},128:{start:{line:553,column:6},end:{line:565,column:8}},129:{start:{line:554,column:8},end:{line:558,column:9}},130:{start:{line:555,column:10},end:{line:555,column:39}},131:{start:{line:556,column:10},end:{line:556,column:33}},132:{start:{line:557,column:10},end:{line:557,column:58}},133:{start:{line:559,column:8},end:{line:562,column:9}},134:{start:{line:560,column:10},end:{line:560,column:47}},135:{start:{line:561,column:10},end:{line:561,column:36}},136:{start:{line:564,column:8},end:{line:564,column:65}},137:{start:{line:568,column:6},end:{line:568,column:31}},138:{start:{line:569,column:6},end:{line:569,column:31}},139:{start:{line:570,column:6},end:{line:570,column:38}},140:{start:{line:573,column:20},end:{line:573,column:55}},141:{start:{line:574,column:19},end:{line:576,column:19}},142:{start:{line:577,column:26},end:{line:579,column:34}},143:{start:{line:578,column:25},end:{line:578,column:37}},144:{start:{line:579,column:22},end:{line:579,column:33}},145:{start:{line:580,column:6},end:{line:580,column:41}},146:{start:{line:583,column:19},end:{line:583,column:48}},147:{start:{line:584,column:20},end:{line:584,column:51}},148:{start:{line:585,column:26},end:{line:587,column:44}},149:{start:{line:586,column:25},end:{line:586,column:71}},150:{start:{line:587,column:22},end:{line:587,column:43}},151:{start:{line:588,column:6},end:{line:588,column:41}},152:{start:{line:591,column:6},end:{line:624,column:7}},153:{start:{line:593,column:22},end:{line:593,column:38}},154:{start:{line:594,column:8},end:{line:597,column:9}},155:{start:{line:595,column:10},end:{line:595,column:34}},156:{start:{line:596,column:10},end:{line:596,column:45}},157:{start:{line:601,column:10},end:{line:604,column:20}},158:{start:{line:605,column:8},end:{line:623,column:12}},159:{start:{line:612,column:12},end:{line:619,column:13}},160:{start:{line:622,column:12},end:{line:622,column:63}},161:{start:{line:627,column:6},end:{line:627,column:44}},162:{start:{line:630,column:18},end:{line:630,column:50}},163:{start:{line:631,column:6},end:{line:635,column:7}},164:{start:{line:632,column:8},end:{line:632,column:50}},165:{start:{line:634,column:8},end:{line:634,column:48}},166:{start:{line:638,column:6},end:{line:640,column:7}},167:{start:{line:639,column:8},end:{line:639,column:14}},168:{start:{line:641,column:27},end:{line:645,column:7}},169:{start:{line:643,column:10},end:{line:644,column:32}},170:{start:{line:646,column:25},end:{line:646,column:27}},171:{start:{line:647,column:19},end:{line:647,column:20}},172:{start:{line:648,column:6},end:{line:659,column:7}},173:{start:{line:650,column:10},end:{line:650,column:42}},174:{start:{line:651,column:10},end:{line:651,column:32}},175:{start:{line:652,column:10},end:{line:652,column:15}},176:{start:{line:654,column:10},end:{line:654,column:43}},177:{start:{line:655,column:10},end:{line:657,column:11}},178:{start:{line:656,column:21},end:{line:656,column:43}},179:{start:{line:658,column:10},end:{line:658,column:15}},180:{start:{line:660,column:6},end:{line:665,column:8}},181:{start:{line:661,column:8},end:{line:661,column:36}},182:{start:{line:662,column:8},end:{line:664,column:9}},183:{start:{line:663,column:10},end:{line:663,column:45}},184:{start:{line:668,column:6},end:{line:671,column:33}},185:{start:{line:670,column:34},end:{line:670,column:51}},186:{start:{line:674,column:6},end:{line:674,column:29}},187:{start:{line:675,column:6},end:{line:677,column:8}},188:{start:{line:676,column:8},end:{line:676,column:53}},189:{start:{line:680,column:6},end:{line:690,column:10}},190:{start:{line:686,column:10},end:{line:686,column:65}},191:{start:{line:689,column:10},end:{line:689,column:33}},192:{start:{line:693,column:6},end:{line:697,column:7}},193:{start:{line:694,column:8},end:{line:694,column:40}},194:{start:{line:696,column:8},end:{line:696,column:37}},195:{start:{line:702,column:6},end:{line:715,column:7}},196:{start:{line:706,column:8},end:{line:706,column:30}},197:{start:{line:707,column:8},end:{line:707,column:23}},198:{start:{line:708,column:13},end:{line:715,column:7}},199:{start:{line:713,column:8},end:{line:713,column:30}},200:{start:{line:714,column:8},end:{line:714,column:21}},201:{start:{line:719,column:6},end:{line:721,column:7}},202:{start:{line:720,column:8},end:{line:720,column:14}},203:{start:{line:722,column:6},end:{line:726,column:7}},204:{start:{line:723,column:8},end:{line:723,column:31}},205:{start:{line:725,column:8},end:{line:725,column:30}},206:{start:{line:729,column:6},end:{line:747,column:10}},207:{start:{line:732,column:26},end:{line:732,column:28}},208:{start:{line:733,column:10},end:{line:738,column:11}},209:{start:{line:734,column:32},end:{line:736,column:28}},210:{start:{line:735,column:32},end:{line:735,column:73}},211:{start:{line:737,column:12},end:{line:737,column:107}},212:{start:{line:739,column:10},end:{line:742,column:11}},213:{start:{line:740,column:12},end:{line:741,column:86}},214:{start:{line:743,column:10},end:{line:745,column:11}},215:{start:{line:744,column:12},end:{line:744,column:65}},216:{start:{line:746,column:10},end:{line:746,column:62}},217:{start:{line:750,column:6},end:{line:750,column:37}},218:{start:{line:751,column:6},end:{line:751,column:35}},219:{start:{line:752,column:6},end:{line:752,column:29}},220:{start:{line:753,column:6},end:{line:753,column:38}},221:{start:{line:754,column:6},end:{line:754,column:30}},222:{start:{line:755,column:6},end:{line:755,column:34}},223:{start:{line:756,column:6},end:{line:756,column:31}},224:{start:{line:757,column:6},end:{line:757,column:24}},225:{start:{line:758,column:6},end:{line:758,column:35}},226:{start:{line:759,column:6},end:{line:772,column:10}},227:{start:{line:764,column:32},end:{line:764,column:51}},228:{start:{line:771,column:10},end:{line:771,column:42}},229:{start:{line:775,column:6},end:{line:775,column:38}},230:{start:{line:776,column:6},end:{line:776,column:34}},231:{start:{line:777,column:6},end:{line:777,column:37}},232:{start:{line:779,column:6},end:{line:779,column:47}},233:{start:{line:780,column:6},end:{line:780,column:30}},234:{start:{line:781,column:6},end:{line:781,column:38}},235:{start:{line:782,column:6},end:{line:782,column:30}},236:{start:{line:784,column:6},end:{line:784,column:28}},237:{start:{line:785,column:6},end:{line:785,column:24}},238:{start:{line:786,column:6},end:{line:786,column:26}},239:{start:{line:787,column:6},end:{line:787,column:36}},240:{start:{line:790,column:6},end:{line:790,column:40}},241:{start:{line:793,column:6},end:{line:793,column:18}},242:{start:{line:796,column:6},end:{line:796,column:28}},243:{start:{line:797,column:21},end:{line:797,column:34}},244:{start:{line:798,column:6},end:{line:801,column:7}},245:{start:{line:800,column:8},end:{line:800,column:36}},246:{start:{line:802,column:16},end:{line:802,column:53}},247:{start:{line:803,column:6},end:{line:805,column:7}},248:{start:{line:804,column:8},end:{line:804,column:28}},249:{start:{line:806,column:17},end:{line:808,column:7}},250:{start:{line:809,column:6},end:{line:811,column:7}},251:{start:{line:810,column:8},end:{line:810,column:35}},252:{start:{line:812,column:6},end:{line:814,column:8}},253:{start:{line:813,column:8},end:{line:813,column:39}},254:{start:{line:817,column:6},end:{line:817,column:64}},255:{start:{line:820,column:6},end:{line:825,column:7}},256:{start:{line:821,column:8},end:{line:821,column:69}},257:{start:{line:823,column:8},end:{line:823,column:39}},258:{start:{line:824,column:8},end:{line:824,column:69}},259:{start:{line:831,column:6},end:{line:836,column:7}},260:{start:{line:832,column:8},end:{line:832,column:31}},261:{start:{line:833,column:8},end:{line:833,column:29}},262:{start:{line:835,column:8},end:{line:835,column:68}},263:{start:{line:839,column:6},end:{line:839,column:66}},264:{start:{line:842,column:6},end:{line:842,column:29}},265:{start:{line:844,column:6},end:{line:972,column:7}},266:{start:{line:846,column:10},end:{line:846,column:71}},267:{start:{line:847,column:10},end:{line:847,column:60}},268:{start:{line:848,column:10},end:{line:850,column:11}},269:{start:{line:849,column:12},end:{line:849,column:50}},270:{start:{line:851,column:10},end:{line:851,column:15}},271:{start:{line:853,column:10},end:{line:882,column:11}},272:{start:{line:854,column:12},end:{line:881,column:13}},273:{start:{line:857,column:14},end:{line:857,column:68}},274:{start:{line:860,column:14},end:{line:875,column:18}},275:{start:{line:864,column:18},end:{line:867,column:19}},276:{start:{line:868,column:18},end:{line:868,column:77}},277:{start:{line:869,column:18},end:{line:869,column:56}},278:{start:{line:870,column:18},end:{line:870,column:45}},279:{start:{line:874,column:18},end:{line:874,column:50}},280:{start:{line:877,column:14},end:{line:877,column:69}},281:{start:{line:878,column:14},end:{line:878,column:52}},282:{start:{line:879,column:14},end:{line:879,column:42}},283:{start:{line:880,column:14},end:{line:880,column:50}},284:{start:{line:883,column:10},end:{line:883,column:33}},285:{start:{line:884,column:26},end:{line:884,column:58}},286:{start:{line:885,column:10},end:{line:938,column:11}},287:{start:{line:887,column:14},end:{line:887,column:44}},288:{start:{line:888,column:14},end:{line:888,column:47}},289:{start:{line:889,column:14},end:{line:889,column:39}},290:{start:{line:890,column:14},end:{line:890,column:45}},291:{start:{line:892,column:14},end:{line:892,column:37}},292:{start:{line:893,column:14},end:{line:897,column:15}},293:{start:{line:898,column:14},end:{line:898,column:48}},294:{start:{line:899,column:14},end:{line:899,column:61}},295:{start:{line:900,column:14},end:{line:900,column:19}},296:{start:{line:902,column:14},end:{line:902,column:31}},297:{start:{line:905,column:14},end:{line:905,column:45}},298:{start:{line:910,column:14},end:{line:916,column:15}},299:{start:{line:911,column:16},end:{line:911,column:45}},300:{start:{line:912,column:16},end:{line:912,column:48}},301:{start:{line:914,column:16},end:{line:914,column:46}},302:{start:{line:915,column:16},end:{line:915,column:49}},303:{start:{line:917,column:14},end:{line:917,column:39}},304:{start:{line:918,column:29},end:{line:920,column:15}},305:{start:{line:919,column:25},end:{line:919,column:69}},306:{start:{line:921,column:14},end:{line:934,column:15}},307:{start:{line:922,column:16},end:{line:922,column:39}},308:{start:{line:923,column:27},end:{line:923,column:62}},309:{start:{line:924,column:16},end:{line:928,column:17}},310:{start:{line:929,column:16},end:{line:929,column:42}},311:{start:{line:931,column:16},end:{line:933,column:17}},312:{start:{line:932,column:18},end:{line:932,column:57}},313:{start:{line:935,column:14},end:{line:935,column:19}},314:{start:{line:937,column:14},end:{line:937,column:19}},315:{start:{line:939,column:10},end:{line:939,column:15}},316:{start:{line:943,column:10},end:{line:947,column:11}},317:{start:{line:944,column:12},end:{line:946,column:13}},318:{start:{line:945,column:14},end:{line:945,column:54}},319:{start:{line:948,column:10},end:{line:950,column:11}},320:{start:{line:949,column:12},end:{line:949,column:31}},321:{start:{line:951,column:10},end:{line:951,column:15}},322:{start:{line:953,column:10},end:{line:953,column:33}},323:{start:{line:954,column:10},end:{line:954,column:15}},324:{start:{line:956,column:10},end:{line:956,column:41}},325:{start:{line:957,column:10},end:{line:957,column:34}},326:{start:{line:958,column:10},end:{line:958,column:15}},327:{start:{line:961,column:10},end:{line:964,column:11}},328:{start:{line:962,column:12},end:{line:962,column:35}},329:{start:{line:963,column:12},end:{line:963,column:33}},330:{start:{line:966,column:10},end:{line:966,column:31}},331:{start:{line:967,column:10},end:{line:967,column:15}},332:{start:{line:971,column:10},end:{line:971,column:15}},333:{start:{line:975,column:6},end:{line:975,column:30}},334:{start:{line:976,column:6},end:{line:982,column:8}},335:{start:{line:985,column:6},end:{line:990,column:7}},336:{start:{line:986,column:8},end:{line:986,column:32}},337:{start:{line:987,column:8},end:{line:987,column:32}},338:{start:{line:988,column:8},end:{line:988,column:29}},339:{start:{line:989,column:8},end:{line:989,column:14}},340:{start:{line:991,column:6},end:{line:991,column:42}},341:{start:{line:992,column:6},end:{line:992,column:38}},342:{start:{line:993,column:6},end:{line:993,column:39}},343:{start:{line:994,column:6},end:{line:994,column:34}},344:{start:{line:995,column:6},end:{line:995,column:31}},345:{start:{line:996,column:6},end:{line:996,column:30}},346:{start:{line:997,column:6},end:{line:997,column:30}},347:{start:{line:998,column:6},end:{line:1132,column:7}},348:{start:{line:1002,column:10},end:{line:1002,column:33}},349:{start:{line:1003,column:10},end:{line:1003,column:40}},350:{start:{line:1004,column:10},end:{line:1004,column:35}},351:{start:{line:1005,column:10},end:{line:1005,column:42}},352:{start:{line:1007,column:10},end:{line:1012,column:11}},353:{start:{line:1008,column:12},end:{line:1008,column:54}},354:{start:{line:1009,column:17},end:{line:1012,column:11}},355:{start:{line:1011,column:12},end:{line:1011,column:43}},356:{start:{line:1014,column:10},end:{line:1016,column:11}},357:{start:{line:1015,column:12},end:{line:1015,column:36}},358:{start:{line:1017,column:10},end:{line:1036,column:11}},359:{start:{line:1018,column:12},end:{line:1018,column:33}},360:{start:{line:1019,column:12},end:{line:1035,column:13}},361:{start:{line:1020,column:14},end:{line:1026,column:16}},362:{start:{line:1028,column:14},end:{line:1034,column:16}},363:{start:{line:1037,column:10},end:{line:1037,column:30}},364:{start:{line:1038,column:10},end:{line:1038,column:15}},365:{start:{line:1040,column:10},end:{line:1040,column:49}},366:{start:{line:1041,column:10},end:{line:1041,column:97}},367:{start:{line:1042,column:10},end:{line:1044,column:11}},368:{start:{line:1043,column:12},end:{line:1043,column:53}},369:{start:{line:1045,column:10},end:{line:1045,column:40}},370:{start:{line:1046,column:10},end:{line:1046,column:63}},371:{start:{line:1047,column:10},end:{line:1047,column:58}},372:{start:{line:1048,column:10},end:{line:1048,column:33}},373:{start:{line:1049,column:10},end:{line:1049,column:15}},374:{start:{line:1051,column:10},end:{line:1053,column:11}},375:{start:{line:1052,column:12},end:{line:1052,column:58}},376:{start:{line:1054,column:10},end:{line:1056,column:11}},377:{start:{line:1055,column:12},end:{line:1055,column:53}},378:{start:{line:1057,column:10},end:{line:1057,column:44}},379:{start:{line:1058,column:10},end:{line:1058,column:61}},380:{start:{line:1059,column:10},end:{line:1059,column:58}},381:{start:{line:1060,column:10},end:{line:1060,column:33}},382:{start:{line:1061,column:10},end:{line:1061,column:15}},383:{start:{line:1063,column:10},end:{line:1065,column:11}},384:{start:{line:1064,column:12},end:{line:1064,column:58}},385:{start:{line:1066,column:10},end:{line:1068,column:11}},386:{start:{line:1067,column:12},end:{line:1067,column:53}},387:{start:{line:1069,column:10},end:{line:1069,column:44}},388:{start:{line:1070,column:10},end:{line:1072,column:12}},389:{start:{line:1071,column:12},end:{line:1071,column:59}},390:{start:{line:1073,column:10},end:{line:1073,column:34}},391:{start:{line:1074,column:10},end:{line:1074,column:38}},392:{start:{line:1075,column:10},end:{line:1075,column:58}},393:{start:{line:1076,column:10},end:{line:1076,column:33}},394:{start:{line:1077,column:10},end:{line:1077,column:15}},395:{start:{line:1080,column:10},end:{line:1082,column:11}},396:{start:{line:1081,column:12},end:{line:1081,column:58}},397:{start:{line:1083,column:10},end:{line:1085,column:11}},398:{start:{line:1084,column:12},end:{line:1084,column:53}},399:{start:{line:1086,column:10},end:{line:1086,column:44}},400:{start:{line:1087,column:10},end:{line:1089,column:12}},401:{start:{line:1088,column:12},end:{line:1088,column:59}},402:{start:{line:1090,column:10},end:{line:1092,column:11}},403:{start:{line:1091,column:12},end:{line:1091,column:43}},404:{start:{line:1093,column:10},end:{line:1093,column:58}},405:{start:{line:1094,column:10},end:{line:1094,column:33}},406:{start:{line:1095,column:10},end:{line:1095,column:15}},407:{start:{line:1097,column:10},end:{line:1097,column:47}},408:{start:{line:1098,column:10},end:{line:1098,column:43}},409:{start:{line:1099,column:10},end:{line:1099,column:38}},410:{start:{line:1100,column:10},end:{line:1100,column:15}},411:{start:{line:1102,column:10},end:{line:1102,column:50}},412:{start:{line:1103,column:10},end:{line:1112,column:11}},413:{start:{line:1104,column:12},end:{line:1104,column:43}},414:{start:{line:1105,column:12},end:{line:1111,column:14}},415:{start:{line:1113,column:10},end:{line:1113,column:40}},416:{start:{line:1114,column:10},end:{line:1114,column:15}},417:{start:{line:1117,column:10},end:{line:1117,column:40}},418:{start:{line:1118,column:10},end:{line:1118,column:42}},419:{start:{line:1119,column:10},end:{line:1121,column:11}},420:{start:{line:1120,column:12},end:{line:1120,column:49}},421:{start:{line:1122,column:10},end:{line:1124,column:11}},422:{start:{line:1123,column:12},end:{line:1123,column:37}},423:{start:{line:1125,column:10},end:{line:1125,column:31}},424:{start:{line:1126,column:10},end:{line:1126,column:15}},425:{start:{line:1131,column:10},end:{line:1131,column:15}},426:{start:{line:1135,column:6},end:{line:1135,column:28}},427:{start:{line:1138,column:22},end:{line:1138,column:30}},428:{start:{line:1139,column:6},end:{line:1156,column:7}},429:{start:{line:1140,column:8},end:{line:1140,column:22}},430:{start:{line:1141,column:8},end:{line:1155,column:10}},431:{start:{line:1142,column:10},end:{line:1142,column:35}},432:{start:{line:1144,column:45},end:{line:1148,column:11}},433:{start:{line:1151,column:27},end:{line:1154,column:12}},434:{start:{line:1157,column:6},end:{line:1163,column:8}},435:{start:{line:1166,column:6},end:{line:1166,column:30}},436:{start:{line:1167,column:6},end:{line:1167,column:40}},437:{start:{line:1168,column:6},end:{line:1168,column:27}},438:{start:{line:1172,column:6},end:{line:1172,column:34}},439:{start:{line:1173,column:6},end:{line:1173,column:33}},440:{start:{line:1174,column:6},end:{line:1174,column:30}},441:{start:{line:1175,column:6},end:{line:1175,column:21}},442:{start:{line:1176,column:6},end:{line:1176,column:38}},443:{start:{line:1177,column:6},end:{line:1177,column:28}},444:{start:{line:1178,column:6},end:{line:1178,column:30}},445:{start:{line:1179,column:6},end:{line:1179,column:36}},446:{start:{line:1180,column:6},end:{line:1180,column:30}},447:{start:{line:1183,column:6},end:{line:1183,column:26}},448:{start:{line:1186,column:6},end:{line:1208,column:10}},449:{start:{line:1188,column:23},end:{line:1191,column:11}},450:{start:{line:1192,column:10},end:{line:1194,column:11}},451:{start:{line:1193,column:12},end:{line:1193,column:61}},452:{start:{line:1195,column:10},end:{line:1197,column:11}},453:{start:{line:1196,column:12},end:{line:1196,column:47}},454:{start:{line:1198,column:10},end:{line:1200,column:11}},455:{start:{line:1199,column:12},end:{line:1199,column:51}},456:{start:{line:1201,column:25},end:{line:1201,column:45}},457:{start:{line:1202,column:30},end:{line:1202,column:55}},458:{start:{line:1203,column:10},end:{line:1203,column:59}},459:{start:{line:1206,column:10},end:{line:1206,column:78}},460:{start:{line:1207,column:10},end:{line:1207,column:22}},461:{start:{line:1212,column:6},end:{line:1212,column:21}},462:{start:{line:1213,column:6},end:{line:1216,column:7}},463:{start:{line:1214,column:8},end:{line:1214,column:25}},464:{start:{line:1215,column:8},end:{line:1215,column:30}},465:{start:{line:1218,column:6},end:{line:1218,column:45}},466:{start:{line:1219,column:6},end:{line:1219,column:33}},467:{start:{line:1220,column:6},end:{line:1220,column:49}},468:{start:{line:1221,column:6},end:{line:1221,column:46}},469:{start:{line:1222,column:6},end:{line:1222,column:39}},470:{start:{line:1223,column:6},end:{line:1223,column:28}},471:{start:{line:1224,column:6},end:{line:1224,column:30}},472:{start:{line:1226,column:6},end:{line:1232,column:7}},473:{start:{line:1227,column:8},end:{line:1227,column:31}},474:{start:{line:1228,column:8},end:{line:1228,column:35}},475:{start:{line:1229,column:8},end:{line:1229,column:37}},476:{start:{line:1231,column:8},end:{line:1231,column:32}},477:{start:{line:1233,column:6},end:{line:1236,column:7}},478:{start:{line:1234,column:8},end:{line:1234,column:36}},479:{start:{line:1235,column:8},end:{line:1235,column:34}},480:{start:{line:1238,column:6},end:{line:1238,column:54}},481:{start:{line:1243,column:26},end:{line:1243,column:50}},482:{start:{line:1244,column:6},end:{line:1323,column:7}},483:{start:{line:1245,column:8},end:{line:1272,column:9}},484:{start:{line:1247,column:10},end:{line:1247,column:23}},485:{start:{line:1249,column:10},end:{line:1255,column:11}},486:{start:{line:1250,column:12},end:{line:1254,column:24}},487:{start:{line:1256,column:10},end:{line:1256,column:30}},488:{start:{line:1257,column:10},end:{line:1271,column:14}},489:{start:{line:1264,column:14},end:{line:1264,column:36}},490:{start:{line:1265,column:14},end:{line:1267,column:22}},491:{start:{line:1266,column:16},end:{line:1266,column:37}},492:{start:{line:1270,column:14},end:{line:1270,column:35}},493:{start:{line:1276,column:8},end:{line:1276,column:28}},494:{start:{line:1277,column:8},end:{line:1321,column:12}},495:{start:{line:1284,column:12},end:{line:1307,column:13}},496:{start:{line:1285,column:14},end:{line:1293,column:15}},497:{start:{line:1286,column:16},end:{line:1286,column:45}},498:{start:{line:1287,column:16},end:{line:1287,column:39}},499:{start:{line:1288,column:16},end:{line:1288,column:64}},500:{start:{line:1290,column:16},end:{line:1290,column:46}},501:{start:{line:1291,column:16},end:{line:1291,column:40}},502:{start:{line:1292,column:16},end:{line:1292,column:34}},503:{start:{line:1294,column:14},end:{line:1297,column:15}},504:{start:{line:1295,column:16},end:{line:1295,column:53}},505:{start:{line:1296,column:16},end:{line:1296,column:42}},506:{start:{line:1298,column:14},end:{line:1298,column:36}},507:{start:{line:1299,column:14},end:{line:1301,column:22}},508:{start:{line:1300,column:16},end:{line:1300,column:37}},509:{start:{line:1303,column:14},end:{line:1303,column:35}},510:{start:{line:1304,column:14},end:{line:1304,column:38}},511:{start:{line:1305,column:14},end:{line:1305,column:105}},512:{start:{line:1306,column:14},end:{line:1306,column:35}},513:{start:{line:1310,column:12},end:{line:1310,column:33}},514:{start:{line:1313,column:12},end:{line:1319,column:13}},515:{start:{line:1314,column:14},end:{line:1314,column:38}},516:{start:{line:1315,column:14},end:{line:1315,column:51}},517:{start:{line:1317,column:14},end:{line:1317,column:38}},518:{start:{line:1318,column:14},end:{line:1318,column:105}},519:{start:{line:1320,column:12},end:{line:1320,column:33}},520:{start:{line:1324,column:6},end:{line:1324,column:21}},521:{start:{line:1327,column:6},end:{line:1327,column:28}},522:{start:{line:1330,column:6},end:{line:1330,column:44}},523:{start:{line:1331,column:6},end:{line:1331,column:33}},524:{start:{line:1332,column:6},end:{line:1335,column:7}},525:{start:{line:1333,column:8},end:{line:1333,column:67}},526:{start:{line:1334,column:8},end:{line:1334,column:32}},527:{start:{line:1336,column:6},end:{line:1336,column:27}},528:{start:{line:1339,column:21},end:{line:1339,column:34}},529:{start:{line:1340,column:6},end:{line:1342,column:7}},530:{start:{line:1341,column:8},end:{line:1341,column:36}},531:{start:{line:1343,column:6},end:{line:1364,column:10}},532:{start:{line:1349,column:10},end:{line:1351,column:12}},533:{start:{line:1354,column:10},end:{line:1354,column:24}},534:{start:{line:1357,column:10},end:{line:1363,column:11}},535:{start:{line:1358,column:32},end:{line:1361,column:13}},536:{start:{line:1362,column:12},end:{line:1362,column:44}},537:{start:{line:1367,column:19},end:{line:1369,column:8}},538:{start:{line:1371,column:19},end:{line:1371,column:46}},539:{start:{line:1372,column:6},end:{line:1372,column:43}},540:{start:{line:1373,column:6},end:{line:1373,column:50}},541:{start:{line:1374,column:6},end:{line:1374,column:18}},542:{start:{line:1378,column:6},end:{line:1388,column:8}},543:{start:{line:1385,column:8},end:{line:1385,column:52}},544:{start:{line:1386,column:8},end:{line:1386,column:69}},545:{start:{line:1387,column:8},end:{line:1387,column:36}},546:{start:{line:1391,column:6},end:{line:1401,column:8}},547:{start:{line:1398,column:8},end:{line:1398,column:52}},548:{start:{line:1399,column:8},end:{line:1399,column:69}},549:{start:{line:1400,column:8},end:{line:1400,column:36}},550:{start:{line:1404,column:6},end:{line:1404,column:71}},551:{start:{line:1407,column:6},end:{line:1407,column:38}},552:{start:{line:1410,column:6},end:{line:1410,column:48}},553:{start:{line:1414,column:6},end:{line:1441,column:7}},554:{start:{line:1415,column:8},end:{line:1415,column:23}},555:{start:{line:1416,column:8},end:{line:1416,column:57}},556:{start:{line:1417,column:13},end:{line:1441,column:7}},557:{start:{line:1418,column:8},end:{line:1418,column:42}},558:{start:{line:1419,column:8},end:{line:1419,column:57}},559:{start:{line:1421,column:8},end:{line:1425,column:10}},560:{start:{line:1426,column:8},end:{line:1426,column:23}},561:{start:{line:1427,column:13},end:{line:1441,column:7}},562:{start:{line:1428,column:8},end:{line:1428,column:35}},563:{start:{line:1429,column:8},end:{line:1431,column:9}},564:{start:{line:1430,column:10},end:{line:1430,column:63}},565:{start:{line:1432,column:8},end:{line:1432,column:62}},566:{start:{line:1434,column:8},end:{line:1434,column:30}},567:{start:{line:1435,column:13},end:{line:1441,column:7}},568:{start:{line:1436,column:8},end:{line:1436,column:35}},569:{start:{line:1437,column:8},end:{line:1439,column:9}},570:{start:{line:1438,column:10},end:{line:1438,column:36}},571:{start:{line:1440,column:8},end:{line:1440,column:62}},572:{start:{line:1444,column:25},end:{line:1444,column:57}},573:{start:{line:1445,column:6},end:{line:1447,column:70}},574:{start:{line:1446,column:25},end:{line:1446,column:60}},575:{start:{line:1447,column:29},end:{line:1447,column:69}},576:{start:{line:1450,column:6},end:{line:1461,column:10}},577:{start:{line:1459,column:10},end:{line:1459,column:30}},578:{start:{line:1460,column:10},end:{line:1460,column:32}},579:{start:{line:1464,column:6},end:{line:1464,column:66}},580:{start:{line:1467,column:6},end:{line:1469,column:7}},581:{start:{line:1468,column:8},end:{line:1468,column:63}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:62,column:2},end:{line:62,column:3}},loc:{start:{line:62,column:9},end:{line:171,column:3}},line:62},1:{name:"(anonymous_1)",decl:{start:{line:123,column:18},end:{line:123,column:19}},loc:{start:{line:123,column:24},end:{line:123,column:26}},line:123},2:{name:"(anonymous_2)",decl:{start:{line:131,column:18},end:{line:131,column:19}},loc:{start:{line:131,column:24},end:{line:131,column:26}},line:131},3:{name:"(anonymous_3)",decl:{start:{line:141,column:18},end:{line:141,column:19}},loc:{start:{line:141,column:24},end:{line:141,column:26}},line:141},4:{name:"(anonymous_4)",decl:{start:{line:151,column:18},end:{line:151,column:19}},loc:{start:{line:151,column:24},end:{line:151,column:26}},line:151},5:{name:"(anonymous_5)",decl:{start:{line:173,column:18},end:{line:173,column:19}},loc:{start:{line:173,column:30},end:{line:179,column:5}},line:173},6:{name:"(anonymous_6)",decl:{start:{line:180,column:14},end:{line:180,column:15}},loc:{start:{line:180,column:26},end:{line:184,column:5}},line:180},7:{name:"(anonymous_7)",decl:{start:{line:185,column:21},end:{line:185,column:22}},loc:{start:{line:185,column:33},end:{line:189,column:5}},line:185},8:{name:"(anonymous_8)",decl:{start:{line:190,column:26},end:{line:190,column:27}},loc:{start:{line:190,column:38},end:{line:192,column:5}},line:190},9:{name:"(anonymous_9)",decl:{start:{line:193,column:14},end:{line:193,column:15}},loc:{start:{line:193,column:26},end:{line:195,column:5}},line:193},10:{name:"(anonymous_10)",decl:{start:{line:196,column:18},end:{line:196,column:19}},loc:{start:{line:196,column:30},end:{line:199,column:5}},line:196},11:{name:"(anonymous_11)",decl:{start:{line:202,column:21},end:{line:202,column:22}},loc:{start:{line:202,column:33},end:{line:204,column:5}},line:202},12:{name:"(anonymous_12)",decl:{start:{line:205,column:11},end:{line:205,column:12}},loc:{start:{line:205,column:23},end:{line:372,column:5}},line:205},13:{name:"(anonymous_13)",decl:{start:{line:213,column:23},end:{line:213,column:24}},loc:{start:{line:213,column:29},end:{line:215,column:15}},line:213},14:{name:"(anonymous_14)",decl:{start:{line:220,column:23},end:{line:220,column:24}},loc:{start:{line:220,column:29},end:{line:222,column:15}},line:220},15:{name:"(anonymous_15)",decl:{start:{line:230,column:23},end:{line:230,column:24}},loc:{start:{line:230,column:29},end:{line:232,column:15}},line:230},16:{name:"(anonymous_16)",decl:{start:{line:237,column:23},end:{line:237,column:24}},loc:{start:{line:237,column:29},end:{line:239,column:15}},line:237},17:{name:"(anonymous_17)",decl:{start:{line:247,column:23},end:{line:247,column:24}},loc:{start:{line:247,column:29},end:{line:249,column:15}},line:247},18:{name:"(anonymous_18)",decl:{start:{line:257,column:23},end:{line:257,column:24}},loc:{start:{line:257,column:29},end:{line:259,column:15}},line:257},19:{name:"(anonymous_19)",decl:{start:{line:269,column:23},end:{line:269,column:24}},loc:{start:{line:269,column:29},end:{line:271,column:15}},line:269},20:{name:"(anonymous_20)",decl:{start:{line:276,column:23},end:{line:276,column:24}},loc:{start:{line:276,column:29},end:{line:278,column:15}},line:276},21:{name:"(anonymous_21)",decl:{start:{line:288,column:23},end:{line:288,column:24}},loc:{start:{line:288,column:29},end:{line:290,column:15}},line:288},22:{name:"(anonymous_22)",decl:{start:{line:298,column:23},end:{line:298,column:24}},loc:{start:{line:298,column:29},end:{line:300,column:15}},line:298},23:{name:"(anonymous_23)",decl:{start:{line:305,column:23},end:{line:305,column:24}},loc:{start:{line:305,column:29},end:{line:308,column:15}},line:305},24:{name:"(anonymous_24)",decl:{start:{line:306,column:48},end:{line:306,column:49}},loc:{start:{line:306,column:54},end:{line:306,column:56}},line:306},25:{name:"(anonymous_25)",decl:{start:{line:316,column:23},end:{line:316,column:24}},loc:{start:{line:316,column:29},end:{line:318,column:15}},line:316},26:{name:"(anonymous_26)",decl:{start:{line:323,column:23},end:{line:323,column:24}},loc:{start:{line:323,column:29},end:{line:325,column:15}},line:323},27:{name:"(anonymous_27)",decl:{start:{line:330,column:23},end:{line:330,column:24}},loc:{start:{line:330,column:29},end:{line:332,column:15}},line:330},28:{name:"(anonymous_28)",decl:{start:{line:338,column:23},end:{line:338,column:24}},loc:{start:{line:338,column:29},end:{line:340,column:15}},line:338},29:{name:"(anonymous_29)",decl:{start:{line:348,column:23},end:{line:348,column:24}},loc:{start:{line:348,column:29},end:{line:350,column:15}},line:348},30:{name:"(anonymous_30)",decl:{start:{line:355,column:23},end:{line:355,column:24}},loc:{start:{line:355,column:29},end:{line:357,column:15}},line:355},31:{name:"(anonymous_31)",decl:{start:{line:365,column:23},end:{line:365,column:24}},loc:{start:{line:365,column:29},end:{line:367,column:15}},line:365},32:{name:"(anonymous_32)",decl:{start:{line:373,column:31},end:{line:373,column:32}},loc:{start:{line:373,column:43},end:{line:388,column:5}},line:373},33:{name:"(anonymous_33)",decl:{start:{line:391,column:14},end:{line:391,column:15}},loc:{start:{line:391,column:29},end:{line:397,column:5}},line:391},34:{name:"(anonymous_34)",decl:{start:{line:399,column:11},end:{line:399,column:12}},loc:{start:{line:399,column:23},end:{line:407,column:3}},line:399},35:{name:"(anonymous_35)",decl:{start:{line:408,column:11},end:{line:408,column:12}},loc:{start:{line:408,column:29},end:{line:445,column:3}},line:408},36:{name:"(anonymous_36)",decl:{start:{line:428,column:37},end:{line:428,column:38}},loc:{start:{line:428,column:58},end:{line:431,column:5}},line:428},37:{name:"(anonymous_37)",decl:{start:{line:436,column:40},end:{line:436,column:41}},loc:{start:{line:436,column:46},end:{line:444,column:5}},line:436},38:{name:"(anonymous_38)",decl:{start:{line:446,column:2},end:{line:446,column:3}},loc:{start:{line:446,column:18},end:{line:449,column:3}},line:446},39:{name:"(anonymous_39)",decl:{start:{line:450,column:2},end:{line:450,column:3}},loc:{start:{line:450,column:14},end:{line:459,column:3}},line:450},40:{name:"(anonymous_40)",decl:{start:{line:460,column:21},end:{line:460,column:22}},loc:{start:{line:460,column:47},end:{line:466,column:3}},line:460},41:{name:"(anonymous_41)",decl:{start:{line:468,column:4},end:{line:468,column:5}},loc:{start:{line:468,column:22},end:{line:510,column:5}},line:468},42:{name:"(anonymous_42)",decl:{start:{line:475,column:16},end:{line:475,column:17}},loc:{start:{line:475,column:23},end:{line:475,column:42}},line:475},43:{name:"(anonymous_43)",decl:{start:{line:476,column:16},end:{line:476,column:17}},loc:{start:{line:476,column:23},end:{line:476,column:35}},line:476},44:{name:"(anonymous_44)",decl:{start:{line:478,column:33},end:{line:478,column:34}},loc:{start:{line:478,column:45},end:{line:487,column:7}},line:478},45:{name:"(anonymous_45)",decl:{start:{line:497,column:17},end:{line:497,column:18}},loc:{start:{line:497,column:29},end:{line:503,column:7}},line:497},46:{name:"(anonymous_46)",decl:{start:{line:506,column:8},end:{line:506,column:9}},loc:{start:{line:506,column:20},end:{line:508,column:7}},line:506},47:{name:"(anonymous_47)",decl:{start:{line:511,column:4},end:{line:511,column:5}},loc:{start:{line:511,column:30},end:{line:528,column:5}},line:511},48:{name:"(anonymous_48)",decl:{start:{line:529,column:26},end:{line:529,column:27}},loc:{start:{line:529,column:40},end:{line:551,column:5}},line:529},49:{name:"(anonymous_49)",decl:{start:{line:530,column:56},end:{line:530,column:57}},loc:{start:{line:530,column:70},end:{line:550,column:7}},line:530},50:{name:"(anonymous_50)",decl:{start:{line:532,column:10},end:{line:532,column:11}},loc:{start:{line:532,column:17},end:{line:532,column:38}},line:532},51:{name:"(anonymous_51)",decl:{start:{line:552,column:19},end:{line:552,column:20}},loc:{start:{line:552,column:31},end:{line:566,column:5}},line:552},52:{name:"(anonymous_52)",decl:{start:{line:553,column:59},end:{line:553,column:60}},loc:{start:{line:553,column:73},end:{line:565,column:7}},line:553},53:{name:"(anonymous_53)",decl:{start:{line:567,column:30},end:{line:567,column:31}},loc:{start:{line:567,column:48},end:{line:571,column:5}},line:567},54:{name:"(anonymous_54)",decl:{start:{line:572,column:19},end:{line:572,column:20}},loc:{start:{line:572,column:31},end:{line:581,column:5}},line:572},55:{name:"(anonymous_55)",decl:{start:{line:578,column:16},end:{line:578,column:17}},loc:{start:{line:578,column:25},end:{line:578,column:37}},line:578},56:{name:"(anonymous_56)",decl:{start:{line:579,column:13},end:{line:579,column:14}},loc:{start:{line:579,column:22},end:{line:579,column:33}},line:579},57:{name:"(anonymous_57)",decl:{start:{line:582,column:22},end:{line:582,column:23}},loc:{start:{line:582,column:34},end:{line:589,column:5}},line:582},58:{name:"(anonymous_58)",decl:{start:{line:586,column:16},end:{line:586,column:17}},loc:{start:{line:586,column:25},end:{line:586,column:71}},line:586},59:{name:"(anonymous_59)",decl:{start:{line:587,column:13},end:{line:587,column:14}},loc:{start:{line:587,column:22},end:{line:587,column:43}},line:587},60:{name:"(anonymous_60)",decl:{start:{line:590,column:17},end:{line:590,column:18}},loc:{start:{line:590,column:51},end:{line:625,column:5}},line:590},61:{name:"(anonymous_61)",decl:{start:{line:611,column:16},end:{line:611,column:17}},loc:{start:{line:611,column:30},end:{line:620,column:11}},line:611},62:{name:"(anonymous_62)",decl:{start:{line:621,column:16},end:{line:621,column:17}},loc:{start:{line:621,column:30},end:{line:623,column:11}},line:621},63:{name:"(anonymous_63)",decl:{start:{line:626,column:22},end:{line:626,column:23}},loc:{start:{line:626,column:34},end:{line:628,column:5}},line:626},64:{name:"(anonymous_64)",decl:{start:{line:629,column:22},end:{line:629,column:23}},loc:{start:{line:629,column:40},end:{line:636,column:5}},line:629},65:{name:"(anonymous_65)",decl:{start:{line:637,column:23},end:{line:637,column:24}},loc:{start:{line:637,column:50},end:{line:666,column:5}},line:637},66:{name:"(anonymous_66)",decl:{start:{line:642,column:8},end:{line:642,column:9}},loc:{start:{line:643,column:10},end:{line:644,column:32}},line:643},67:{name:"(anonymous_67)",decl:{start:{line:656,column:12},end:{line:656,column:13}},loc:{start:{line:656,column:21},end:{line:656,column:43}},line:656},68:{name:"(anonymous_68)",decl:{start:{line:660,column:27},end:{line:660,column:28}},loc:{start:{line:660,column:36},end:{line:665,column:7}},line:660},69:{name:"(anonymous_69)",decl:{start:{line:667,column:23},end:{line:667,column:24}},loc:{start:{line:667,column:64},end:{line:672,column:5}},line:667},70:{name:"(anonymous_70)",decl:{start:{line:670,column:13},end:{line:670,column:14}},loc:{start:{line:670,column:34},end:{line:670,column:51}},line:670},71:{name:"(anonymous_71)",decl:{start:{line:673,column:24},end:{line:673,column:25}},loc:{start:{line:673,column:44},end:{line:678,column:5}},line:673},72:{name:"(anonymous_72)",decl:{start:{line:675,column:42},end:{line:675,column:43}},loc:{start:{line:675,column:58},end:{line:677,column:7}},line:675},73:{name:"(anonymous_73)",decl:{start:{line:679,column:26},end:{line:679,column:27}},loc:{start:{line:679,column:38},end:{line:691,column:5}},line:679},74:{name:"(anonymous_74)",decl:{start:{line:685,column:14},end:{line:685,column:15}},loc:{start:{line:685,column:26},end:{line:687,column:9}},line:685},75:{name:"(anonymous_75)",decl:{start:{line:688,column:14},end:{line:688,column:15}},loc:{start:{line:688,column:28},end:{line:690,column:9}},line:688},76:{name:"(anonymous_76)",decl:{start:{line:692,column:4},end:{line:692,column:5}},loc:{start:{line:692,column:29},end:{line:698,column:5}},line:692},77:{name:"(anonymous_77)",decl:{start:{line:699,column:4},end:{line:699,column:5}},loc:{start:{line:699,column:19},end:{line:716,column:5}},line:699},78:{name:"(anonymous_78)",decl:{start:{line:717,column:4},end:{line:717,column:5}},loc:{start:{line:717,column:20},end:{line:727,column:5}},line:717},79:{name:"(anonymous_79)",decl:{start:{line:728,column:20},end:{line:728,column:21}},loc:{start:{line:728,column:32},end:{line:748,column:5}},line:728},80:{name:"(anonymous_80)",decl:{start:{line:731,column:14},end:{line:731,column:15}},loc:{start:{line:731,column:41},end:{line:747,column:9}},line:731},81:{name:"(anonymous_81)",decl:{start:{line:735,column:19},end:{line:735,column:20}},loc:{start:{line:735,column:32},end:{line:735,column:73}},line:735},82:{name:"(anonymous_82)",decl:{start:{line:749,column:4},end:{line:749,column:5}},loc:{start:{line:749,column:20},end:{line:773,column:5}},line:749},83:{name:"(anonymous_83)",decl:{start:{line:764,column:22},end:{line:764,column:23}},loc:{start:{line:764,column:32},end:{line:764,column:51}},line:764},84:{name:"(anonymous_84)",decl:{start:{line:770,column:14},end:{line:770,column:15}},loc:{start:{line:770,column:32},end:{line:772,column:9}},line:770},85:{name:"(anonymous_85)",decl:{start:{line:774,column:4},end:{line:774,column:5}},loc:{start:{line:774,column:21},end:{line:788,column:5}},line:774},86:{name:"(anonymous_86)",decl:{start:{line:789,column:24},end:{line:789,column:25}},loc:{start:{line:789,column:41},end:{line:791,column:5}},line:789},87:{name:"(anonymous_87)",decl:{start:{line:792,column:18},end:{line:792,column:19}},loc:{start:{line:792,column:30},end:{line:794,column:5}},line:792},88:{name:"(anonymous_88)",decl:{start:{line:795,column:4},end:{line:795,column:5}},loc:{start:{line:795,column:37},end:{line:815,column:5}},line:795},89:{name:"(anonymous_89)",decl:{start:{line:812,column:35},end:{line:812,column:36}},loc:{start:{line:812,column:49},end:{line:814,column:7}},line:812},90:{name:"(anonymous_90)",decl:{start:{line:816,column:4},end:{line:816,column:5}},loc:{start:{line:816,column:34},end:{line:818,column:5}},line:816},91:{name:"(anonymous_91)",decl:{start:{line:819,column:4},end:{line:819,column:5}},loc:{start:{line:819,column:19},end:{line:826,column:5}},line:819},92:{name:"(anonymous_92)",decl:{start:{line:827,column:4},end:{line:827,column:5}},loc:{start:{line:827,column:11},end:{line:837,column:5}},line:827},93:{name:"(anonymous_93)",decl:{start:{line:838,column:4},end:{line:838,column:5}},loc:{start:{line:838,column:11},end:{line:840,column:5}},line:838},94:{name:"(anonymous_94)",decl:{start:{line:841,column:4},end:{line:841,column:5}},loc:{start:{line:841,column:19},end:{line:973,column:5}},line:841},95:{name:"(anonymous_95)",decl:{start:{line:861,column:22},end:{line:861,column:23}},loc:{start:{line:861,column:36},end:{line:871,column:17}},line:861},96:{name:"(anonymous_96)",decl:{start:{line:872,column:23},end:{line:872,column:24}},loc:{start:{line:872,column:32},end:{line:875,column:17}},line:872},97:{name:"(anonymous_97)",decl:{start:{line:919,column:16},end:{line:919,column:17}},loc:{start:{line:919,column:25},end:{line:919,column:69}},line:919},98:{name:"(anonymous_98)",decl:{start:{line:974,column:4},end:{line:974,column:5}},loc:{start:{line:974,column:32},end:{line:983,column:5}},line:974},99:{name:"(anonymous_99)",decl:{start:{line:984,column:4},end:{line:984,column:5}},loc:{start:{line:984,column:23},end:{line:1133,column:5}},line:984},100:{name:"(anonymous_100)",decl:{start:{line:1017,column:30},end:{line:1017,column:31}},loc:{start:{line:1017,column:41},end:{line:1036,column:11}},line:1017},101:{name:"(anonymous_101)",decl:{start:{line:1070,column:37},end:{line:1070,column:38}},loc:{start:{line:1070,column:44},end:{line:1072,column:11}},line:1070},102:{name:"(anonymous_102)",decl:{start:{line:1087,column:37},end:{line:1087,column:38}},loc:{start:{line:1087,column:44},end:{line:1089,column:11}},line:1087},103:{name:"(anonymous_103)",decl:{start:{line:1103,column:40},end:{line:1103,column:41}},loc:{start:{line:1103,column:51},end:{line:1112,column:11}},line:1103},104:{name:"(anonymous_104)",decl:{start:{line:1134,column:4},end:{line:1134,column:5}},loc:{start:{line:1134,column:36},end:{line:1164,column:5}},line:1134},105:{name:"(anonymous_105)",decl:{start:{line:1141,column:28},end:{line:1141,column:29}},loc:{start:{line:1141,column:44},end:{line:1155,column:9}},line:1141},106:{name:"(anonymous_106)",decl:{start:{line:1165,column:4},end:{line:1165,column:5}},loc:{start:{line:1165,column:20},end:{line:1169,column:5}},line:1165},107:{name:"(anonymous_107)",decl:{start:{line:1171,column:4},end:{line:1171,column:5}},loc:{start:{line:1171,column:14},end:{line:1181,column:5}},line:1171},108:{name:"(anonymous_108)",decl:{start:{line:1182,column:4},end:{line:1182,column:5}},loc:{start:{line:1182,column:15},end:{line:1184,column:5}},line:1182},109:{name:"(anonymous_109)",decl:{start:{line:1185,column:4},end:{line:1185,column:5}},loc:{start:{line:1185,column:17},end:{line:1209,column:5}},line:1185},110:{name:"(anonymous_110)",decl:{start:{line:1187,column:14},end:{line:1187,column:15}},loc:{start:{line:1187,column:28},end:{line:1204,column:9}},line:1187},111:{name:"(anonymous_111)",decl:{start:{line:1205,column:15},end:{line:1205,column:16}},loc:{start:{line:1205,column:26},end:{line:1208,column:9}},line:1205},112:{name:"(anonymous_112)",decl:{start:{line:1211,column:4},end:{line:1211,column:5}},loc:{start:{line:1211,column:58},end:{line:1239,column:5}},line:1211},113:{name:"(anonymous_113)",decl:{start:{line:1242,column:4},end:{line:1242,column:5}},loc:{start:{line:1242,column:28},end:{line:1325,column:5}},line:1242},114:{name:"(anonymous_114)",decl:{start:{line:1263,column:18},end:{line:1263,column:19}},loc:{start:{line:1263,column:32},end:{line:1268,column:13}},line:1263},115:{name:"(anonymous_115)",decl:{start:{line:1265,column:25},end:{line:1265,column:26}},loc:{start:{line:1265,column:31},end:{line:1267,column:15}},line:1265},116:{name:"(anonymous_116)",decl:{start:{line:1269,column:19},end:{line:1269,column:20}},loc:{start:{line:1269,column:30},end:{line:1271,column:13}},line:1269},117:{name:"(anonymous_117)",decl:{start:{line:1283,column:16},end:{line:1283,column:17}},loc:{start:{line:1283,column:30},end:{line:1308,column:11}},line:1283},118:{name:"(anonymous_118)",decl:{start:{line:1299,column:25},end:{line:1299,column:26}},loc:{start:{line:1299,column:31},end:{line:1301,column:15}},line:1299},119:{name:"(anonymous_119)",decl:{start:{line:1309,column:17},end:{line:1309,column:18}},loc:{start:{line:1309,column:35},end:{line:1321,column:11}},line:1309},120:{name:"(anonymous_120)",decl:{start:{line:1326,column:4},end:{line:1326,column:5}},loc:{start:{line:1326,column:13},end:{line:1328,column:5}},line:1326},121:{name:"(anonymous_121)",decl:{start:{line:1329,column:4},end:{line:1329,column:5}},loc:{start:{line:1329,column:29},end:{line:1337,column:5}},line:1329},122:{name:"(anonymous_122)",decl:{start:{line:1338,column:4},end:{line:1338,column:5}},loc:{start:{line:1338,column:13},end:{line:1365,column:5}},line:1338},123:{name:"(anonymous_123)",decl:{start:{line:1348,column:14},end:{line:1348,column:15}},loc:{start:{line:1348,column:26},end:{line:1352,column:9}},line:1348},124:{name:"(anonymous_124)",decl:{start:{line:1353,column:14},end:{line:1353,column:15}},loc:{start:{line:1353,column:28},end:{line:1355,column:9}},line:1353},125:{name:"(anonymous_125)",decl:{start:{line:1356,column:15},end:{line:1356,column:16}},loc:{start:{line:1356,column:26},end:{line:1364,column:9}},line:1356},126:{name:"(anonymous_126)",decl:{start:{line:1366,column:4},end:{line:1366,column:5}},loc:{start:{line:1366,column:15},end:{line:1375,column:5}},line:1366},127:{name:"(anonymous_127)",decl:{start:{line:1377,column:4},end:{line:1377,column:5}},loc:{start:{line:1377,column:22},end:{line:1389,column:5}},line:1377},128:{name:"(anonymous_128)",decl:{start:{line:1384,column:14},end:{line:1384,column:15}},loc:{start:{line:1384,column:28},end:{line:1388,column:7}},line:1384},129:{name:"(anonymous_129)",decl:{start:{line:1390,column:4},end:{line:1390,column:5}},loc:{start:{line:1390,column:23},end:{line:1402,column:5}},line:1390},130:{name:"(anonymous_130)",decl:{start:{line:1397,column:14},end:{line:1397,column:15}},loc:{start:{line:1397,column:28},end:{line:1401,column:7}},line:1397},131:{name:"(anonymous_131)",decl:{start:{line:1403,column:4},end:{line:1403,column:5}},loc:{start:{line:1403,column:20},end:{line:1405,column:5}},line:1403},132:{name:"(anonymous_132)",decl:{start:{line:1406,column:4},end:{line:1406,column:5}},loc:{start:{line:1406,column:18},end:{line:1408,column:5}},line:1406},133:{name:"(anonymous_133)",decl:{start:{line:1409,column:4},end:{line:1409,column:5}},loc:{start:{line:1409,column:23},end:{line:1411,column:5}},line:1409},134:{name:"(anonymous_134)",decl:{start:{line:1413,column:4},end:{line:1413,column:5}},loc:{start:{line:1413,column:24},end:{line:1442,column:5}},line:1413},135:{name:"(anonymous_135)",decl:{start:{line:1443,column:22},end:{line:1443,column:23}},loc:{start:{line:1443,column:34},end:{line:1448,column:5}},line:1443},136:{name:"(anonymous_136)",decl:{start:{line:1446,column:16},end:{line:1446,column:17}},loc:{start:{line:1446,column:25},end:{line:1446,column:60}},line:1446},137:{name:"(anonymous_137)",decl:{start:{line:1447,column:17},end:{line:1447,column:18}},loc:{start:{line:1447,column:29},end:{line:1447,column:69}},line:1447},138:{name:"(anonymous_138)",decl:{start:{line:1449,column:24},end:{line:1449,column:25}},loc:{start:{line:1449,column:36},end:{line:1462,column:5}},line:1449},139:{name:"(anonymous_139)",decl:{start:{line:1458,column:14},end:{line:1458,column:15}},loc:{start:{line:1458,column:20},end:{line:1461,column:9}},line:1458},140:{name:"(anonymous_140)",decl:{start:{line:1463,column:14},end:{line:1463,column:15}},loc:{start:{line:1463,column:26},end:{line:1465,column:5}},line:1463},141:{name:"(anonymous_141)",decl:{start:{line:1466,column:16},end:{line:1466,column:17}},loc:{start:{line:1466,column:28},end:{line:1470,column:5}},line:1466}},branchMap:{0:{loc:{start:{line:174,column:6},end:{line:178,column:7}},type:"if",locations:[{start:{line:174,column:6},end:{line:178,column:7}},{start:{line:176,column:13},end:{line:178,column:7}}],line:174},1:{loc:{start:{line:186,column:13},end:{line:188,column:32}},type:"cond-expr",locations:[{start:{line:187,column:10},end:{line:187,column:24}},{start:{line:188,column:10},end:{line:188,column:32}}],line:186},2:{loc:{start:{line:191,column:13},end:{line:191,column:67}},type:"cond-expr",locations:[{start:{line:191,column:53},end:{line:191,column:62}},{start:{line:191,column:65},end:{line:191,column:67}}],line:191},3:{loc:{start:{line:197,column:6},end:{line:197,column:59}},type:"if",locations:[{start:{line:197,column:6},end:{line:197,column:59}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:197},4:{loc:{start:{line:203,column:13},end:{line:203,column:64}},type:"cond-expr",locations:[{start:{line:203,column:46},end:{line:203,column:48}},{start:{line:203,column:51},end:{line:203,column:64}}],line:203},5:{loc:{start:{line:337,column:24},end:{line:337,column:63}},type:"binary-expr",locations:[{start:{line:337,column:24},end:{line:337,column:38}},{start:{line:337,column:42},end:{line:337,column:63}}],line:337},6:{loc:{start:{line:393,column:6},end:{line:395,column:7}},type:"if",locations:[{start:{line:393,column:6},end:{line:395,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:393},7:{loc:{start:{line:438,column:6},end:{line:443,column:7}},type:"if",locations:[{start:{line:438,column:6},end:{line:443,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:438},8:{loc:{start:{line:439,column:8},end:{line:440,column:46}},type:"binary-expr",locations:[{start:{line:439,column:8},end:{line:439,column:36}},{start:{line:440,column:8},end:{line:440,column:46}}],line:439},9:{loc:{start:{line:452,column:4},end:{line:454,column:5}},type:"if",locations:[{start:{line:452,column:4},end:{line:454,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:452},10:{loc:{start:{line:455,column:4},end:{line:457,column:5}},type:"if",locations:[{start:{line:455,column:4},end:{line:457,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:455},11:{loc:{start:{line:461,column:4},end:{line:465,column:5}},type:"if",locations:[{start:{line:461,column:4},end:{line:465,column:5}},{start:{line:463,column:11},end:{line:465,column:5}}],line:461},12:{loc:{start:{line:534,column:8},end:{line:549,column:9}},type:"if",locations:[{start:{line:534,column:8},end:{line:549,column:9}},{start:{line:538,column:15},end:{line:549,column:9}}],line:534},13:{loc:{start:{line:538,column:15},end:{line:549,column:9}},type:"if",locations:[{start:{line:538,column:15},end:{line:549,column:9}},{start:{line:543,column:15},end:{line:549,column:9}}],line:538},14:{loc:{start:{line:544,column:10},end:{line:548,column:11}},type:"if",locations:[{start:{line:544,column:10},end:{line:548,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:544},15:{loc:{start:{line:554,column:8},end:{line:558,column:9}},type:"if",locations:[{start:{line:554,column:8},end:{line:558,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:554},16:{loc:{start:{line:559,column:8},end:{line:562,column:9}},type:"if",locations:[{start:{line:559,column:8},end:{line:562,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:559},17:{loc:{start:{line:586,column:25},end:{line:586,column:71}},type:"binary-expr",locations:[{start:{line:586,column:25},end:{line:586,column:45}},{start:{line:586,column:49},end:{line:586,column:71}}],line:586},18:{loc:{start:{line:590,column:33},end:{line:590,column:49}},type:"default-arg",locations:[{start:{line:590,column:47},end:{line:590,column:49}}],line:590},19:{loc:{start:{line:591,column:6},end:{line:624,column:7}},type:"if",locations:[{start:{line:591,column:6},end:{line:624,column:7}},{start:{line:598,column:13},end:{line:624,column:7}}],line:591},20:{loc:{start:{line:631,column:6},end:{line:635,column:7}},type:"if",locations:[{start:{line:631,column:6},end:{line:635,column:7}},{start:{line:633,column:13},end:{line:635,column:7}}],line:631},21:{loc:{start:{line:638,column:6},end:{line:640,column:7}},type:"if",locations:[{start:{line:638,column:6},end:{line:640,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:638},22:{loc:{start:{line:643,column:10},end:{line:644,column:32}},type:"binary-expr",locations:[{start:{line:643,column:11},end:{line:643,column:36}},{start:{line:643,column:40},end:{line:643,column:64}},{start:{line:644,column:10},end:{line:644,column:32}}],line:643},23:{loc:{start:{line:648,column:6},end:{line:659,column:7}},type:"switch",locations:[{start:{line:649,column:8},end:{line:652,column:15}},{start:{line:653,column:8},end:{line:658,column:15}}],line:648},24:{loc:{start:{line:662,column:8},end:{line:664,column:9}},type:"if",locations:[{start:{line:662,column:8},end:{line:664,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:662},25:{loc:{start:{line:667,column:33},end:{line:667,column:62}},type:"default-arg",locations:[{start:{line:667,column:43},end:{line:667,column:62}}],line:667},26:{loc:{start:{line:670,column:34},end:{line:670,column:51}},type:"binary-expr",locations:[{start:{line:670,column:34},end:{line:670,column:44}},{start:{line:670,column:48},end:{line:670,column:51}}],line:670},27:{loc:{start:{line:693,column:6},end:{line:697,column:7}},type:"if",locations:[{start:{line:693,column:6},end:{line:697,column:7}},{start:{line:695,column:13},end:{line:697,column:7}}],line:693},28:{loc:{start:{line:702,column:6},end:{line:715,column:7}},type:"if",locations:[{start:{line:702,column:6},end:{line:715,column:7}},{start:{line:708,column:13},end:{line:715,column:7}}],line:702},29:{loc:{start:{line:703,column:8},end:{line:704,column:43}},type:"binary-expr",locations:[{start:{line:703,column:9},end:{line:703,column:22}},{start:{line:703,column:26},end:{line:703,column:39}},{start:{line:704,column:8},end:{line:704,column:43}}],line:703},30:{loc:{start:{line:708,column:13},end:{line:715,column:7}},type:"if",locations:[{start:{line:708,column:13},end:{line:715,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:708},31:{loc:{start:{line:709,column:8},end:{line:711,column:43}},type:"binary-expr",locations:[{start:{line:709,column:9},end:{line:709,column:22}},{start:{line:709,column:26},end:{line:709,column:39}},{start:{line:710,column:8},end:{line:710,column:22}},{start:{line:711,column:8},end:{line:711,column:43}}],line:709},32:{loc:{start:{line:719,column:6},end:{line:721,column:7}},type:"if",locations:[{start:{line:719,column:6},end:{line:721,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:719},33:{loc:{start:{line:722,column:6},end:{line:726,column:7}},type:"if",locations:[{start:{line:722,column:6},end:{line:726,column:7}},{start:{line:724,column:13},end:{line:726,column:7}}],line:722},34:{loc:{start:{line:733,column:10},end:{line:738,column:11}},type:"if",locations:[{start:{line:733,column:10},end:{line:738,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:733},35:{loc:{start:{line:739,column:10},end:{line:742,column:11}},type:"if",locations:[{start:{line:739,column:10},end:{line:742,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:739},36:{loc:{start:{line:743,column:10},end:{line:745,column:11}},type:"if",locations:[{start:{line:743,column:10},end:{line:745,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:743},37:{loc:{start:{line:795,column:17},end:{line:795,column:35}},type:"default-arg",locations:[{start:{line:795,column:31},end:{line:795,column:35}}],line:795},38:{loc:{start:{line:798,column:6},end:{line:801,column:7}},type:"if",locations:[{start:{line:798,column:6},end:{line:801,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:798},39:{loc:{start:{line:803,column:6},end:{line:805,column:7}},type:"if",locations:[{start:{line:803,column:6},end:{line:805,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:803},40:{loc:{start:{line:809,column:6},end:{line:811,column:7}},type:"if",locations:[{start:{line:809,column:6},end:{line:811,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:809},41:{loc:{start:{line:816,column:14},end:{line:816,column:32}},type:"default-arg",locations:[{start:{line:816,column:28},end:{line:816,column:32}}],line:816},42:{loc:{start:{line:820,column:6},end:{line:825,column:7}},type:"if",locations:[{start:{line:820,column:6},end:{line:825,column:7}},{start:{line:822,column:13},end:{line:825,column:7}}],line:820},43:{loc:{start:{line:831,column:6},end:{line:836,column:7}},type:"if",locations:[{start:{line:831,column:6},end:{line:836,column:7}},{start:{line:834,column:13},end:{line:836,column:7}}],line:831},44:{loc:{start:{line:844,column:6},end:{line:972,column:7}},type:"switch",locations:[{start:{line:845,column:8},end:{line:851,column:15}},{start:{line:852,column:8},end:{line:939,column:15}},{start:{line:940,column:8},end:{line:951,column:15}},{start:{line:952,column:8},end:{line:954,column:15}},{start:{line:955,column:8},end:{line:958,column:15}},{start:{line:959,column:8},end:{line:964,column:11}},{start:{line:965,column:8},end:{line:967,column:15}},{start:{line:968,column:8},end:{line:971,column:15}}],line:844},45:{loc:{start:{line:848,column:10},end:{line:850,column:11}},type:"if",locations:[{start:{line:848,column:10},end:{line:850,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:848},46:{loc:{start:{line:853,column:10},end:{line:882,column:11}},type:"if",locations:[{start:{line:853,column:10},end:{line:882,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:853},47:{loc:{start:{line:853,column:14},end:{line:853,column:69}},type:"binary-expr",locations:[{start:{line:853,column:14},end:{line:853,column:27}},{start:{line:853,column:31},end:{line:853,column:69}}],line:853},48:{loc:{start:{line:854,column:12},end:{line:881,column:13}},type:"if",locations:[{start:{line:854,column:12},end:{line:881,column:13}},{start:{line:876,column:19},end:{line:881,column:13}}],line:854},49:{loc:{start:{line:885,column:10},end:{line:938,column:11}},type:"switch",locations:[{start:{line:886,column:12},end:{line:900,column:19}},{start:{line:901,column:12},end:{line:902,column:31}},{start:{line:904,column:12},end:{line:905,column:45}},{start:{line:907,column:12},end:{line:907,column:30}},{start:{line:908,column:12},end:{line:908,column:27}},{start:{line:909,column:12},end:{line:935,column:19}},{start:{line:936,column:12},end:{line:937,column:19}}],line:885},50:{loc:{start:{line:910,column:14},end:{line:916,column:15}},type:"if",locations:[{start:{line:910,column:14},end:{line:916,column:15}},{start:{line:913,column:21},end:{line:916,column:15}}],line:910},51:{loc:{start:{line:921,column:14},end:{line:934,column:15}},type:"if",locations:[{start:{line:921,column:14},end:{line:934,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:921},52:{loc:{start:{line:923,column:27},end:{line:923,column:62}},type:"cond-expr",locations:[{start:{line:923,column:46},end:{line:923,column:58}},{start:{line:923,column:61},end:{line:923,column:62}}],line:923},53:{loc:{start:{line:931,column:16},end:{line:933,column:17}},type:"if",locations:[{start:{line:931,column:16},end:{line:933,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:931},54:{loc:{start:{line:944,column:12},end:{line:946,column:13}},type:"if",locations:[{start:{line:944,column:12},end:{line:946,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:944},55:{loc:{start:{line:961,column:10},end:{line:964,column:11}},type:"if",locations:[{start:{line:961,column:10},end:{line:964,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:961},56:{loc:{start:{line:985,column:6},end:{line:990,column:7}},type:"if",locations:[{start:{line:985,column:6},end:{line:990,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:985},57:{loc:{start:{line:998,column:6},end:{line:1132,column:7}},type:"switch",locations:[{start:{line:999,column:8},end:{line:999,column:19}},{start:{line:1e3,column:8},end:{line:1038,column:15}},{start:{line:1039,column:8},end:{line:1049,column:15}},{start:{line:1050,column:8},end:{line:1061,column:15}},{start:{line:1062,column:8},end:{line:1077,column:15}},{start:{line:1078,column:8},end:{line:1078,column:27}},{start:{line:1079,column:8},end:{line:1095,column:15}},{start:{line:1096,column:8},end:{line:1100,column:15}},{start:{line:1101,column:8},end:{line:1114,column:15}},{start:{line:1115,column:8},end:{line:1115,column:32}},{start:{line:1116,column:8},end:{line:1126,column:15}},{start:{line:1127,column:8},end:{line:1131,column:15}}],line:998},58:{loc:{start:{line:1007,column:10},end:{line:1012,column:11}},type:"if",locations:[{start:{line:1007,column:10},end:{line:1012,column:11}},{start:{line:1009,column:17},end:{line:1012,column:11}}],line:1007},59:{loc:{start:{line:1007,column:14},end:{line:1007,column:77}},type:"binary-expr",locations:[{start:{line:1007,column:14},end:{line:1007,column:26}},{start:{line:1007,column:30},end:{line:1007,column:51}},{start:{line:1007,column:55},end:{line:1007,column:77}}],line:1007},60:{loc:{start:{line:1009,column:17},end:{line:1012,column:11}},type:"if",locations:[{start:{line:1009,column:17},end:{line:1012,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1009},61:{loc:{start:{line:1014,column:10},end:{line:1016,column:11}},type:"if",locations:[{start:{line:1014,column:10},end:{line:1016,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1014},62:{loc:{start:{line:1019,column:12},end:{line:1035,column:13}},type:"if",locations:[{start:{line:1019,column:12},end:{line:1035,column:13}},{start:{line:1027,column:19},end:{line:1035,column:13}}],line:1019},63:{loc:{start:{line:1042,column:10},end:{line:1044,column:11}},type:"if",locations:[{start:{line:1042,column:10},end:{line:1044,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1042},64:{loc:{start:{line:1051,column:10},end:{line:1053,column:11}},type:"if",locations:[{start:{line:1051,column:10},end:{line:1053,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1051},65:{loc:{start:{line:1051,column:14},end:{line:1051,column:52}},type:"binary-expr",locations:[{start:{line:1051,column:14},end:{line:1051,column:25}},{start:{line:1051,column:29},end:{line:1051,column:52}}],line:1051},66:{loc:{start:{line:1054,column:10},end:{line:1056,column:11}},type:"if",locations:[{start:{line:1054,column:10},end:{line:1056,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1054},67:{loc:{start:{line:1054,column:14},end:{line:1054,column:48}},type:"binary-expr",locations:[{start:{line:1054,column:14},end:{line:1054,column:25}},{start:{line:1054,column:29},end:{line:1054,column:48}}],line:1054},68:{loc:{start:{line:1063,column:10},end:{line:1065,column:11}},type:"if",locations:[{start:{line:1063,column:10},end:{line:1065,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1063},69:{loc:{start:{line:1063,column:14},end:{line:1063,column:52}},type:"binary-expr",locations:[{start:{line:1063,column:14},end:{line:1063,column:25}},{start:{line:1063,column:29},end:{line:1063,column:52}}],line:1063},70:{loc:{start:{line:1066,column:10},end:{line:1068,column:11}},type:"if",locations:[{start:{line:1066,column:10},end:{line:1068,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1066},71:{loc:{start:{line:1066,column:14},end:{line:1066,column:48}},type:"binary-expr",locations:[{start:{line:1066,column:14},end:{line:1066,column:25}},{start:{line:1066,column:29},end:{line:1066,column:48}}],line:1066},72:{loc:{start:{line:1080,column:10},end:{line:1082,column:11}},type:"if",locations:[{start:{line:1080,column:10},end:{line:1082,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1080},73:{loc:{start:{line:1080,column:14},end:{line:1080,column:52}},type:"binary-expr",locations:[{start:{line:1080,column:14},end:{line:1080,column:25}},{start:{line:1080,column:29},end:{line:1080,column:52}}],line:1080},74:{loc:{start:{line:1083,column:10},end:{line:1085,column:11}},type:"if",locations:[{start:{line:1083,column:10},end:{line:1085,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1083},75:{loc:{start:{line:1083,column:14},end:{line:1083,column:48}},type:"binary-expr",locations:[{start:{line:1083,column:14},end:{line:1083,column:25}},{start:{line:1083,column:29},end:{line:1083,column:48}}],line:1083},76:{loc:{start:{line:1090,column:10},end:{line:1092,column:11}},type:"if",locations:[{start:{line:1090,column:10},end:{line:1092,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1090},77:{loc:{start:{line:1119,column:10},end:{line:1121,column:11}},type:"if",locations:[{start:{line:1119,column:10},end:{line:1121,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1119},78:{loc:{start:{line:1119,column:14},end:{line:1119,column:47}},type:"binary-expr",locations:[{start:{line:1119,column:14},end:{line:1119,column:25}},{start:{line:1119,column:29},end:{line:1119,column:47}}],line:1119},79:{loc:{start:{line:1122,column:10},end:{line:1124,column:11}},type:"if",locations:[{start:{line:1122,column:10},end:{line:1124,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1122},80:{loc:{start:{line:1139,column:6},end:{line:1156,column:7}},type:"if",locations:[{start:{line:1139,column:6},end:{line:1156,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1139},81:{loc:{start:{line:1159,column:18},end:{line:1159,column:79}},type:"cond-expr",locations:[{start:{line:1159,column:39},end:{line:1159,column:58}},{start:{line:1159,column:61},end:{line:1159,column:79}}],line:1159},82:{loc:{start:{line:1192,column:10},end:{line:1194,column:11}},type:"if",locations:[{start:{line:1192,column:10},end:{line:1194,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1192},83:{loc:{start:{line:1195,column:10},end:{line:1197,column:11}},type:"if",locations:[{start:{line:1195,column:10},end:{line:1197,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1195},84:{loc:{start:{line:1198,column:10},end:{line:1200,column:11}},type:"if",locations:[{start:{line:1198,column:10},end:{line:1200,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1198},85:{loc:{start:{line:1211,column:43},end:{line:1211,column:56}},type:"default-arg",locations:[{start:{line:1211,column:51},end:{line:1211,column:56}}],line:1211},86:{loc:{start:{line:1213,column:6},end:{line:1216,column:7}},type:"if",locations:[{start:{line:1213,column:6},end:{line:1216,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1213},87:{loc:{start:{line:1226,column:6},end:{line:1232,column:7}},type:"if",locations:[{start:{line:1226,column:6},end:{line:1232,column:7}},{start:{line:1230,column:13},end:{line:1232,column:7}}],line:1226},88:{loc:{start:{line:1233,column:6},end:{line:1236,column:7}},type:"if",locations:[{start:{line:1233,column:6},end:{line:1236,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1233},89:{loc:{start:{line:1242,column:13},end:{line:1242,column:26}},type:"default-arg",locations:[{start:{line:1242,column:20},end:{line:1242,column:26}}],line:1242},90:{loc:{start:{line:1244,column:6},end:{line:1323,column:7}},type:"if",locations:[{start:{line:1244,column:6},end:{line:1323,column:7}},{start:{line:1273,column:13},end:{line:1323,column:7}}],line:1244},91:{loc:{start:{line:1245,column:8},end:{line:1272,column:9}},type:"if",locations:[{start:{line:1245,column:8},end:{line:1272,column:9}},{start:{line:1248,column:15},end:{line:1272,column:9}}],line:1245},92:{loc:{start:{line:1249,column:10},end:{line:1255,column:11}},type:"if",locations:[{start:{line:1249,column:10},end:{line:1255,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1249},93:{loc:{start:{line:1284,column:12},end:{line:1307,column:13}},type:"if",locations:[{start:{line:1284,column:12},end:{line:1307,column:13}},{start:{line:1302,column:19},end:{line:1307,column:13}}],line:1284},94:{loc:{start:{line:1285,column:14},end:{line:1293,column:15}},type:"if",locations:[{start:{line:1285,column:14},end:{line:1293,column:15}},{start:{line:1289,column:21},end:{line:1293,column:15}}],line:1285},95:{loc:{start:{line:1294,column:14},end:{line:1297,column:15}},type:"if",locations:[{start:{line:1294,column:14},end:{line:1297,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1294},96:{loc:{start:{line:1313,column:12},end:{line:1319,column:13}},type:"if",locations:[{start:{line:1313,column:12},end:{line:1319,column:13}},{start:{line:1316,column:19},end:{line:1319,column:13}}],line:1313},97:{loc:{start:{line:1332,column:6},end:{line:1335,column:7}},type:"if",locations:[{start:{line:1332,column:6},end:{line:1335,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1332},98:{loc:{start:{line:1340,column:6},end:{line:1342,column:7}},type:"if",locations:[{start:{line:1340,column:6},end:{line:1342,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1340},99:{loc:{start:{line:1357,column:10},end:{line:1363,column:11}},type:"if",locations:[{start:{line:1357,column:10},end:{line:1363,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1357},100:{loc:{start:{line:1414,column:6},end:{line:1441,column:7}},type:"if",locations:[{start:{line:1414,column:6},end:{line:1441,column:7}},{start:{line:1417,column:13},end:{line:1441,column:7}}],line:1414},101:{loc:{start:{line:1417,column:13},end:{line:1441,column:7}},type:"if",locations:[{start:{line:1417,column:13},end:{line:1441,column:7}},{start:{line:1427,column:13},end:{line:1441,column:7}}],line:1417},102:{loc:{start:{line:1427,column:13},end:{line:1441,column:7}},type:"if",locations:[{start:{line:1427,column:13},end:{line:1441,column:7}},{start:{line:1435,column:13},end:{line:1441,column:7}}],line:1427},103:{loc:{start:{line:1429,column:8},end:{line:1431,column:9}},type:"if",locations:[{start:{line:1429,column:8},end:{line:1431,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1429},104:{loc:{start:{line:1435,column:13},end:{line:1441,column:7}},type:"if",locations:[{start:{line:1435,column:13},end:{line:1441,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1435},105:{loc:{start:{line:1437,column:8},end:{line:1439,column:9}},type:"if",locations:[{start:{line:1437,column:8},end:{line:1439,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1437},106:{loc:{start:{line:1467,column:6},end:{line:1469,column:7}},type:"if",locations:[{start:{line:1467,column:6},end:{line:1469,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1467},107:{loc:{start:{line:1467,column:10},end:{line:1467,column:58}},type:"binary-expr",locations:[{start:{line:1467,column:10},end:{line:1467,column:40}},{start:{line:1467,column:44},end:{line:1467,column:58}}],line:1467}},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},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},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],19:[0,0],20:[0,0],21:[0,0],22:[0,0,0],23:[0,0],24:[0,0],25:[0],26:[0,0],27:[0,0],28:[0,0],29:[0,0,0],30:[0,0],31:[0,0,0,0],32:[0,0],33:[0,0],34:[0,0],35:[0,0],36:[0,0],37:[0],38:[0,0],39:[0,0],40:[0,0],41:[0],42:[0,0],43:[0,0],44:[0,0,0,0,0,0,0,0],45:[0,0],46:[0,0],47:[0,0],48:[0,0],49:[0,0,0,0,0,0,0],50:[0,0],51:[0,0],52:[0,0],53:[0,0],54:[0,0],55:[0,0],56:[0,0],57:[0,0,0,0,0,0,0,0,0,0,0,0],58:[0,0],59:[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],73:[0,0],74:[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],86:[0,0],87:[0,0],88:[0,0],89:[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,0],103:[0,0],104:[0,0],105:[0,0],106:[0,0],107:[0,0]},inputSourceMap:{version:3,sources:["ScriptRunner.vue"],names:[],mappings:";AAgWA;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;;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;;AAEA;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;;AAEA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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:"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 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 <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\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=\"fullFilename\"\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 readonly\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> Open Environment Dialog </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 \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 id=\"editorbox\" class=\"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 id=\"editor\" @contextmenu.prevent=\"showExecuteSelectionMenu\"></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 :key=\"item.label\"\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=\"stepDisabled\"\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\" />\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 />\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 />\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 <input-metadata-dialog\n v-if=\"inputMetadata.show\"\n v-model=\"inputMetadata.show\"\n :target=\"inputMetadata.target\"\n @response=\"inputMetadata.callback\"\n />\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 @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=\"showStartedScripts\">\n <v-sheet class=\"pb-11 pt-5 px-5\">\n <running-scripts\n :connect-in-new-tab=\"!!fileModified\"\n @close=\"\n () => {\n showStartedScripts = 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/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'\n\nimport AskDialog from '@/tools/ScriptRunner/Dialogs/AskDialog'\nimport FileDialog from '@/tools/ScriptRunner/Dialogs/FileDialog'\nimport InformationDialog from '@/tools/ScriptRunner/Dialogs/InformationDialog'\nimport InputMetadataDialog from '@/tools/ScriptRunner/Dialogs/InputMetadataDialog'\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 {\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 EnvironmentDialog,\n Multipane,\n MultipaneResizer,\n TopBar,\n AskDialog,\n FileDialog,\n InformationDialog,\n InputMetadataDialog,\n PromptDialog,\n ResultsDialog,\n ScriptEnvironmentDialog,\n SimpleTextDialog,\n SuiteRunner,\n RunningScripts,\n ScriptLogMessages,\n },\n data() {\n return {\n title: 'COSMOS 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 currentFilename: null,\n showSave: false,\n showAlert: false,\n alertType: null,\n alertText: '',\n state: ' ',\n scriptId: ' ',\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 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 messages: [],\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 target: null,\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 showStartedScripts: false,\n activePromptId: '',\n api: null,\n }\n },\n computed: {\n stepDisabled: function () {\n if (this.startOrGoButton == START) {\n return true\n } else {\n return false\n }\n },\n fileList: function () {\n const filenames = Object.keys(this.files)\n filenames.push(this.fullFilename)\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 fullFilename: function () {\n if (this.currentFilename) return this.currentFilename\n return this.filename //`${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 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 command: () => {\n this.newFile()\n },\n },\n {\n label: 'Open File',\n icon: 'mdi-folder-open',\n command: () => {\n this.openFile()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Save File',\n icon: 'mdi-content-save',\n command: () => {\n this.saveFile()\n },\n },\n {\n label: 'Save As...',\n icon: 'mdi-content-save',\n command: () => {\n this.saveAs()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Download',\n icon: 'mdi-cloud-download',\n command: () => {\n this.download()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Delete File',\n icon: 'mdi-delete',\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 command: () => {\n this.editor.execCommand('replace')\n },\n },\n ],\n },\n {\n label: 'Script',\n items: [\n {\n label: 'View Started Scripts',\n icon: 'mdi-run',\n command: () => {\n this.showStartedScripts = true\n },\n },\n {\n divider: true,\n },\n {\n label: 'Show Environment',\n icon: 'mdi-library',\n command: () => {\n this.showEnvironment = !this.showEnvironment\n },\n },\n {\n label: 'Show Metadata',\n icon: 'mdi-calendar',\n command: () => {\n ;(this.inputMetadata.callback = () => {}),\n (this.inputMetadata.show = !this.inputMetadata.show)\n },\n },\n {\n divider: true,\n },\n {\n label: 'Ruby Syntax Check',\n icon: 'mdi-language-ruby',\n command: () => {\n this.rubySyntaxCheck()\n },\n },\n {\n label: 'Mnemonic Check',\n icon: 'mdi-spellcheck',\n command: () => {\n this.checkMnemonics()\n },\n },\n {\n label: 'View Instrumented Script',\n icon: 'mdi-code-braces-box',\n command: () => {\n this.showInstrumented()\n },\n },\n {\n label: 'Show Call Stack',\n icon: 'mdi-format-list-numbered',\n disabled: !this.scriptId || 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 command: () => {\n this.toggleDisconnect()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Delete All Breakpoints',\n icon: 'mdi-delete-circle-outline',\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 these 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 },\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 mounted: async function () {\n this.editor = ace.edit('editor')\n this.editor.setTheme('ace/theme/twilight')\n const openC3Mode = this.buildOpenC3Mode()\n this.editor.session.setMode(new openC3Mode())\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 await this.tryLoadRunningScript(this.$route.params.id)\n this.autoSaveInterval = setInterval(() => {\n // Only save if modified and visible (e.g. not open in another tab)\n if (\n this.fileModified.length > 0 &&\n document.visibilityState === 'visible'\n ) {\n this.saveFile('auto')\n }\n }, 60000) // Save every minute\n },\n beforeDestroy() {\n this.editor.destroy()\n this.editor.container.remove()\n },\n destroyed() {\n this.unlockFile()\n if (this.autoSaveInterval != null) {\n clearInterval(this.autoSaveInterval)\n }\n if (this.subscription) {\n this.subscription.unsubscribe()\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 buildOpenC3Mode() {\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 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 fileNameChanged(filename) {\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 this.filename = filename\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.scriptStart(loadRunningScript.id)\n } else if (id) {\n this.$notify.caution({\n title: '404 Not Found',\n body: `Failed to load running script id: ${id}`,\n })\n } else {\n if (response.data.length !== 0) {\n this.alertType = 'success'\n this.alertText = `Currently ${response.data.length} running scripts.`\n this.showAlert = true\n }\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 executeText: function (text, breakpoints = []) {\n if (this.state === 'error') {\n // Execute via debugger\n const lines = text.split('\\n')\n for (const line of lines) {\n this.debug = line.trim()\n this.debugKeydown({ key: 'Enter' })\n }\n } else {\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.rb'\n Api.post(`/script-api/scripts/${selectionTempFilename}`, {\n data: {\n text,\n breakpoints,\n },\n })\n .then((response) => {\n return Api.post(\n `/script-api/scripts/${selectionTempFilename}/run`,\n {\n data: {\n environment: this.scriptEnvironment.env,\n },\n }\n )\n })\n .then((response) => {\n window.open(`/tools/scriptrunner/${response.data}`)\n })\n }\n },\n clearBreakpoints: function () {\n this.editor.session.clearBreakpoints()\n },\n toggleBreakpoint: function ($event) {\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 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 keydown(event) {\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 event.preventDefault()\n this.saveFile()\n } else if (\n (event.metaKey || event.ctrlKey) &&\n event.shiftKey &&\n event.keyCode === 'S'.charCodeAt(0)\n ) {\n event.preventDefault()\n this.saveAs()\n }\n },\n onChange(event) {\n // Don't track changes when we're read-only (we're running)\n if (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 scriptStart(id) {\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.scriptId = id\n this.editor.setReadOnly(true)\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 scriptComplete() {\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 // 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\n this.editor.setReadOnly(false)\n },\n environmentHandler: function (event) {\n this.scriptEnvironment.env = event\n },\n startHandler: function () {\n this.start()\n },\n start(event, suiteRunner = null) {\n this.saveFile('start')\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 }).then((response) => {\n this.scriptStart(response.data)\n })\n },\n go(event, suiteRunner = null) {\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 received(data) {\n this.cable.recordPing()\n // console.log(data) // Uncomment for debugging\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 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.editor.setValue(this.files[data.filename].content)\n this.restoreBreakpoints(data.filename)\n this.editor.clearSelection()\n this.currentFilename = data.filename\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 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 this.messages.unshift({ message: line })\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 case 'step':\n this.showDebug = true\n break\n default:\n // console.log('Unexpected ActionCable message')\n // console.log(data)\n break\n }\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 },\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 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: 'Yes', value: 'Yes' }]\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 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.combo = true\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.target = data.args[0]\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.inputMetadata.show = true\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.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.fileModified = ''\n this.suiteRunner = false\n this.startOrGoDisabled = false\n this.envDisabled = false\n },\n openFile() {\n this.fileOpen = true\n },\n reloadFile() {\n Api.get(`/script-api/scripts/${this.filename}`)\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 })\n .catch((error) => {\n this.$emit('error', `Failed to open ${this.selectedFile}. ${error}`)\n this.clear()\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 if (local === false) {\n this.unlockFile() // first unlock what was just being edited\n this.lockedBy = locked\n }\n // Split off the ' *' which indicates a file is modified on the server\n this.filename = file.name.split('*')[0]\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\n if (file.suites) {\n this.suiteRunner = true\n this.suiteMap = file.suites\n this.startOrGoDisabled = true\n } else {\n this.suiteRunner = 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 // 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 saveFile(type = 'menu') {\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 } else {\n if (this.tempFilename === null) {\n this.tempFilename =\n TEMP_FOLDER +\n '/' +\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss_SSS') +\n '_temp.rb'\n }\n this.showSave = true\n Api.post(`/script-api/scripts/${this.tempFilename}`, {\n data: {\n text: this.editor.getValue(), // Pass in the raw file text\n breakpoints,\n },\n })\n .then((response) => {\n this.fileModified = ''\n setTimeout(() => {\n this.showSave = false\n }, 2000)\n })\n .catch((error) => {\n this.showSave = false\n })\n }\n } else {\n // if (this.fileModified.length > 0 || type == 'menu') {\n // Save a file by posting the new contents\n this.showSave = true\n 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 })\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 // }\n }\n this.lockFile() // Ensure this file is locked for editing\n },\n saveAs() {\n this.showSaveAs = true\n },\n 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 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.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 rubySyntaxCheck() {\n Api.post('/script-api/scripts/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\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 },\n}\n<\/script>\n\n<style scoped>\n#sr-controls {\n padding-top: 0px;\n padding-bottom: 5px;\n padding-left: 0px;\n padding-right: 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 :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</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6c676479b9cc1fbad440ad2d343281eb7559e514"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Ct=function(){return s},s}Ct();var bt=(Ct().s[0]++,"__TEMP__"),gt=(Ct().s[1]++,"<Untitled>"),yt=(Ct().s[2]++,"Start"),_t=(Ct().s[3]++,"Go"),wt=(Ct().s[4]++,"Pause"),kt=(Ct().s[5]++,"Retry"),xt={components:{FileOpenSaveDialog:I,EnvironmentDialog:Z,Multipane:R.x,MultipaneResizer:R.P,TopBar:X,AskDialog:un,FileDialog:Cn,InformationDialog:Sn,InputMetadataDialog:In,PromptDialog:Un,ResultsDialog:Kn,ScriptEnvironmentDialog:ue,SimpleTextDialog:V,SuiteRunner:Ce,RunningScripts:vt,ScriptLogMessages:Se},data:function(){return Ct().f[0]++,Ct().s[6]++,{title:"COSMOS Script Runner",suiteRunner:!1,disableSuiteButtons:!1,suiteMap:{},currentFilename:null,showSave:!1,showAlert:!1,alertType:null,alertText:"",state:" ",scriptId:" ",startOrGoButton:yt,startOrGoDisabled:!1,envDisabled:!1,pauseOrRetryButton:wt,pauseOrRetryDisabled:!1,stopDisabled:!1,showEnvironment:!1,showDebug:!1,debug:"",debugHistory:[],debugHistoryIndex:0,showDisconnect:!1,files:{},breakpoints:{},filename:gt,tempFilename:null,fileModified:"",fileOpen:!1,lockedBy:null,showReadOnlyToast:!1,showSaveAs:!1,areYouSure:!1,subscription:null,cable:null,fatal:!1,messages:[],maxArrayLength:200,Range:x.require("ace/range").Range,ask:{show:!1,question:"",default:null,password:!1,answerRequired:!0,callback:function(){Ct().f[1]++}},file:{show:!1,message:"",directory:null,filter:"*",multiple:!1,callback:function(){Ct().f[2]++}},prompt:{show:!1,title:"",subtitle:"",message:"",details:"",buttons:null,layout:"horizontal",callback:function(){Ct().f[3]++}},information:{show:!1,title:"",text:[]},inputMetadata:{show:!1,target:null,callback:function(){Ct().f[4]++}},results:{show:!1,text:""},scriptEnvironment:{show:!1,env:[]},showSuiteError:!1,suiteError:"",executeSelectionMenu:!1,menuX:0,menuY:0,mnemonicChecker:new qe,showStartedScripts:!1,activePromptId:"",api:null}},computed:{stepDisabled:function(){return Ct().f[5]++,Ct().s[7]++,this.startOrGoButton==yt?(Ct().b[0][0]++,Ct().s[8]++,!0):(Ct().b[0][1]++,Ct().s[9]++,!1)},fileList:function(){Ct().f[6]++;var n=(Ct().s[10]++,Object.keys(this.files));return Ct().s[11]++,n.push(this.fullFilename),Ct().s[12]++,(0,u.Z)(new Set(n))},environmentIcon:function(){return Ct().f[7]++,Ct().s[13]++,this.scriptEnvironment.env.length>0?(Ct().b[1][0]++,"mdi-bookmark"):(Ct().b[1][1]++,"mdi-bookmark-outline")},environmentIconColor:function(){return Ct().f[8]++,Ct().s[14]++,this.scriptEnvironment.env.length>0?(Ct().b[2][0]++,"primary"):(Ct().b[2][1]++,"")},readOnly:function(){return Ct().f[9]++,Ct().s[15]++,!!this.lockedBy},fullFilename:function(){return Ct().f[10]++,Ct().s[16]++,this.currentFilename?(Ct().b[3][0]++,Ct().s[17]++,this.currentFilename):(Ct().b[3][1]++,Ct().s[18]++,this.filename)},filenameOrBlank:function(){return Ct().f[11]++,Ct().s[19]++,this.filename===gt?(Ct().b[4][0]++,""):(Ct().b[4][1]++,this.filename)},menus:function(){var n=this;return Ct().f[12]++,Ct().s[20]++,[{label:"File",items:[{label:"New File",icon:"mdi-file-plus",command:function(){Ct().f[13]++,Ct().s[21]++,n.newFile()}},{label:"Open File",icon:"mdi-folder-open",command:function(){Ct().f[14]++,Ct().s[22]++,n.openFile()}},{divider:!0},{label:"Save File",icon:"mdi-content-save",command:function(){Ct().f[15]++,Ct().s[23]++,n.saveFile()}},{label:"Save As...",icon:"mdi-content-save",command:function(){Ct().f[16]++,Ct().s[24]++,n.saveAs()}},{divider:!0},{label:"Download",icon:"mdi-cloud-download",command:function(){Ct().f[17]++,Ct().s[25]++,n.download()}},{divider:!0},{label:"Delete File",icon:"mdi-delete",command:function(){Ct().f[18]++,Ct().s[26]++,n.delete()}}]},{label:"Edit",items:[{label:"Find",icon:"mdi-magnify",command:function(){Ct().f[19]++,Ct().s[27]++,n.editor.execCommand("find")}},{label:"Replace",icon:"mdi-find-replace",command:function(){Ct().f[20]++,Ct().s[28]++,n.editor.execCommand("replace")}}]},{label:"Script",items:[{label:"View Started Scripts",icon:"mdi-run",command:function(){Ct().f[21]++,Ct().s[29]++,n.showStartedScripts=!0}},{divider:!0},{label:"Show Environment",icon:"mdi-library",command:function(){Ct().f[22]++,Ct().s[30]++,n.showEnvironment=!n.showEnvironment}},{label:"Show Metadata",icon:"mdi-calendar",command:function(){Ct().f[23]++,Ct().s[31]++,n.inputMetadata.callback=function(){Ct().f[24]++},n.inputMetadata.show=!n.inputMetadata.show}},{divider:!0},{label:"Ruby Syntax Check",icon:"mdi-language-ruby",command:function(){Ct().f[25]++,Ct().s[32]++,n.rubySyntaxCheck()}},{label:"Mnemonic Check",icon:"mdi-spellcheck",command:function(){Ct().f[26]++,Ct().s[33]++,n.checkMnemonics()}},{label:"View Instrumented Script",icon:"mdi-code-braces-box",command:function(){Ct().f[27]++,Ct().s[34]++,n.showInstrumented()}},{label:"Show Call Stack",icon:"mdi-format-list-numbered",disabled:(Ct().b[5][0]++,!this.scriptId||(Ct().b[5][1]++," "===this.scriptId)),command:function(){Ct().f[28]++,Ct().s[35]++,n.showCallStack()}},{divider:!0},{label:"Toggle Debug",icon:"mdi-bug",command:function(){Ct().f[29]++,Ct().s[36]++,n.toggleDebug()}},{label:"Toggle Disconnect",icon:"mdi-connection",command:function(){Ct().f[30]++,Ct().s[37]++,n.toggleDisconnect()}},{divider:!0},{label:"Delete All Breakpoints",icon:"mdi-delete-circle-outline",command:function(){Ct().f[31]++,Ct().s[38]++,n.deleteAllBreakpoints()}}]}]},executeSelectionMenuItems:function(){return Ct().f[32]++,Ct().s[39]++,[{label:"Execute selection",command:this.executeSelection},{label:"Run from here",command:this.runFromCursor},{label:"Clear these breakpoints",command:this.clearBreakpoints}]}},watch:{readOnly:function(n){Ct().f[33]++,Ct().s[40]++,this.showReadOnlyToast=n,Ct().s[41]++,this.suiteRunner?Ct().b[6][1]++:(Ct().b[6][0]++,Ct().s[42]++,this.startOrGoDisabled=n),Ct().s[43]++,this.editor.setReadOnly(n)}},created:function(){Ct().f[34]++,Ct().s[44]++,this.api=new en,Ct().s[45]++,this.api.ensure_offline_access(),Ct().s[46]++,this.NEW_FILENAME=gt,Ct().s[47]++,window.onbeforeunload=this.unlockFile},mounted:function(){var n=(0,r.Z)((0,c.Z)().mark((function n(){var e,t,l=this;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return Ct().f[35]++,Ct().s[48]++,this.editor=x.edit("editor"),Ct().s[49]++,this.editor.setTheme("ace/theme/twilight"),Ct().s[50]++,e=this.buildOpenC3Mode(),Ct().s[51]++,this.editor.session.setMode(new e),Ct().s[52]++,this.editor.session.setTabSize(2),Ct().s[53]++,this.editor.session.setUseWrapMode(!0),Ct().s[54]++,this.editor.$blockScrolling=1/0,Ct().s[55]++,this.editor.setOption("enableBasicAutocompletion",!0),Ct().s[56]++,this.editor.setOption("enableLiveAutocompletion",!0),Ct().s[57]++,this.editor.completers=[new Be,new Ze],Ct().s[58]++,this.editor.setHighlightActiveLine(!1),Ct().s[59]++,this.editor.focus(),Ct().s[60]++,this.editor.on("guttermousedown",this.toggleBreakpoint),Ct().s[61]++,this.editor.session.on("tokenizerUpdate",this.onChange),Ct().s[62]++,t=new ct(this.editor),Ct().s[63]++,this.editor.session.on("change",(function(n,e){Ct().f[36]++,Ct().s[64]++,t.annotate(n,e),Ct().s[65]++,l.updateBreakpoints(n,e)})),Ct().s[66]++,window.addEventListener("keydown",this.keydown),Ct().s[67]++,this.cable=new f("/script-api/cable"),Ct().s[68]++,n.next=38,this.tryLoadRunningScript(this.$route.params.id);case 38:Ct().s[69]++,this.autoSaveInterval=setInterval((function(){Ct().f[37]++,Ct().s[70]++,Ct().b[8][0]++,l.fileModified.length>0&&(Ct().b[8][1]++,"visible"===document.visibilityState)?(Ct().b[7][0]++,Ct().s[71]++,l.saveFile("auto")):Ct().b[7][1]++}),6e4);case 40:case"end":return n.stop()}}),n,this)})));function e(){return n.apply(this,arguments)}return e}(),beforeDestroy:function(){Ct().f[38]++,Ct().s[72]++,this.editor.destroy(),Ct().s[73]++,this.editor.container.remove()},destroyed:function(){Ct().f[39]++,Ct().s[74]++,this.unlockFile(),Ct().s[75]++,null!=this.autoSaveInterval?(Ct().b[9][0]++,Ct().s[76]++,clearInterval(this.autoSaveInterval)):Ct().b[9][1]++,Ct().s[77]++,this.subscription?(Ct().b[10][0]++,Ct().s[78]++,this.subscription.unsubscribe()):Ct().b[10][1]++,Ct().s[79]++,this.cable.disconnect()},beforeRouteUpdate:function(n,e,t){Ct().f[40]++,Ct().s[80]++,n.params.id?(Ct().b[11][0]++,Ct().s[81]++,this.tryLoadRunningScript(n.params.id).then(t)):(Ct().b[11][1]++,Ct().s[82]++,t())},methods:{buildOpenC3Mode:function(){Ct().f[41]++;var n=(Ct().s[83]++,x.require("ace/lib/oop")),e=(Ct().s[84]++,x.require("ace/mode/ruby_highlight_rules").RubyHighlightRules),t=(Ct().s[85]++,Object.getOwnPropertyNames(en.prototype).filter((function(n){return Ct().f[42]++,Ct().s[86]++,"constructor"!==n})).filter((function(n){return Ct().f[43]++,Ct().s[87]++,"exec"!==n}))),l=(Ct().s[88]++,new RegExp("(\\b".concat(t.join("\\b|\\b"),"\\b)")));Ct().s[89]++;var i=function(){for(var n in Ct().f[44]++,Ct().s[90]++,e.call(this),Ct().s[91]++,this.$rules)Ct().s[92]++,this.$rules[n].unshift({regex:l,token:"support.function"})};Ct().s[93]++,n.inherits(i,e);var o=(Ct().s[94]++,x.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent),s=(Ct().s[95]++,x.require("ace/mode/behaviour/cstyle").CstyleBehaviour),a=(Ct().s[96]++,x.require("ace/mode/folding/ruby").FoldMode);Ct().s[97]++;var c=function(){Ct().f[45]++,Ct().s[98]++,this.HighlightRules=i,Ct().s[99]++,this.$outdent=new o,Ct().s[100]++,this.$behaviour=new s,Ct().s[101]++,this.foldingRules=new a,Ct().s[102]++,this.indentKeywords=this.foldingRules.indentKeywords},r=(Ct().s[103]++,x.require("ace/mode/ruby").Mode);return Ct().s[104]++,n.inherits(c,r),Ct().s[105]++,function(){Ct().f[46]++,Ct().s[106]++,this.$id="ace/mode/openc3"}.call(c.prototype),Ct().s[107]++,c},fileNameChanged:function(n){Ct().f[47]++,Ct().s[108]++,this.editor.setValue(this.files[n].content),Ct().s[109]++,this.restoreBreakpoints(n),Ct().s[110]++,this.editor.clearSelection(),Ct().s[111]++,this.removeAllMarkers(),Ct().s[112]++,this.editor.session.addMarker(new this.Range(this.files[n].lineNo-1,0,this.files[n].lineNo-1,1),"".concat(this.state,"Marker"),"fullLine"),Ct().s[113]++,this.editor.gotoLine(this.files[n].lineNo),Ct().s[114]++,this.filename=n},tryLoadRunningScript:function(n){var e=this;return Ct().f[48]++,Ct().s[115]++,k.get("/script-api/running-script").then((function(t){Ct().f[49]++;var l=(Ct().s[116]++,t.data.find((function(e){return Ct().f[50]++,Ct().s[117]++,"".concat(e.id)==="".concat(n)})));Ct().s[118]++,l?(Ct().b[12][0]++,Ct().s[119]++,e.filename=l.name,Ct().s[120]++,e.tryLoadSuites(),Ct().s[121]++,e.scriptStart(l.id)):(Ct().b[12][1]++,Ct().s[122]++,n?(Ct().b[13][0]++,Ct().s[123]++,e.$notify.caution({title:"404 Not Found",body:"Failed to load running script id: ".concat(n)})):(Ct().b[13][1]++,Ct().s[124]++,0!==t.data.length?(Ct().b[14][0]++,Ct().s[125]++,e.alertType="success",Ct().s[126]++,e.alertText="Currently ".concat(t.data.length," running scripts."),Ct().s[127]++,e.showAlert=!0):Ct().b[14][1]++))}))},tryLoadSuites:function(){var n=this;Ct().f[51]++,Ct().s[128]++,k.get("/script-api/scripts/".concat(this.filename)).then((function(e){Ct().f[52]++,Ct().s[129]++,e.data.suites?(Ct().b[15][0]++,Ct().s[130]++,n.startOrGoDisabled=!0,Ct().s[131]++,n.suiteRunner=!0,Ct().s[132]++,n.suiteMap=JSON.parse(e.data.suites)):Ct().b[15][1]++,Ct().s[133]++,e.data.error?(Ct().b[16][0]++,Ct().s[134]++,n.suiteError=e.data.error,Ct().s[135]++,n.showSuiteError=!0):Ct().b[16][1]++,Ct().s[136]++,n.disableSuiteButtons=0==e.data.success}))},showExecuteSelectionMenu:function(n){Ct().f[53]++,Ct().s[137]++,this.menuX=n.pageX,Ct().s[138]++,this.menuY=n.pageY,Ct().s[139]++,this.executeSelectionMenu=!0},runFromCursor:function(){Ct().f[54]++;var n=(Ct().s[140]++,this.editor.getCursorPosition().row),e=(Ct().s[141]++,this.editor.session.doc.getLines(n,this.editor.session.doc.getLength()).join("\n")),t=(Ct().s[142]++,this.getBreakpointRows().filter((function(e){return Ct().f[55]++,Ct().s[143]++,e>=n})).map((function(e){return Ct().f[56]++,Ct().s[144]++,e-n})));Ct().s[145]++,this.executeText(e,t)},executeSelection:function(){Ct().f[57]++;var n=(Ct().s[146]++,this.editor.getSelectedText()),e=(Ct().s[147]++,this.editor.getSelectionRange()),t=(Ct().s[148]++,this.getBreakpointRows().filter((function(n){return Ct().f[58]++,Ct().s[149]++,Ct().b[17][0]++,n<=e.end.row&&(Ct().b[17][1]++,n>=e.start.row)})).map((function(n){return Ct().f[59]++,Ct().s[150]++,n-e.start.row})));Ct().s[151]++,this.executeText(n,t)},executeText:function(n){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Ct().b[18][0]++,[]);if(Ct().f[60]++,Ct().s[152]++,"error"===this.state){Ct().b[19][0]++;var l=(Ct().s[153]++,n.split("\n"));Ct().s[154]++;var i,o=(0,a.Z)(l);try{for(o.s();!(i=o.n()).done;){var s=i.value;Ct().s[155]++,this.debug=s.trim(),Ct().s[156]++,this.debugKeydown({key:"Enter"})}}catch(r){o.e(r)}finally{o.f()}}else{Ct().b[19][1]++;var c=(Ct().s[157]++,bt+"/"+(0,S.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+"_temp.rb");Ct().s[158]++,k.post("/script-api/scripts/".concat(c),{data:{text:n,breakpoints:t}}).then((function(n){return Ct().f[61]++,Ct().s[159]++,k.post("/script-api/scripts/".concat(c,"/run"),{data:{environment:e.scriptEnvironment.env}})})).then((function(n){Ct().f[62]++,Ct().s[160]++,window.open("/tools/scriptrunner/".concat(n.data))}))}},clearBreakpoints:function(){Ct().f[63]++,Ct().s[161]++,this.editor.session.clearBreakpoints()},toggleBreakpoint:function(n){Ct().f[64]++;var e=(Ct().s[162]++,n.getDocumentPosition().row);Ct().s[163]++,n.editor.session.getBreakpoints(e,0)[e]?(Ct().b[20][0]++,Ct().s[164]++,n.editor.session.clearBreakpoint(e)):(Ct().b[20][1]++,Ct().s[165]++,n.editor.session.setBreakpoint(e))},updateBreakpoints:function(n,e){if(Ct().f[65]++,Ct().s[166]++,n.lines.length<=1)return Ct().b[21][0]++,void Ct().s[167]++;Ct().b[21][1]++;var t=(Ct().s[168]++,this.getBreakpointRows(e).filter((function(e){return Ct().f[66]++,Ct().s[169]++,Ct().b[22][0]++,0===n.start.column&&(Ct().b[22][1]++,e===n.start.row)||(Ct().b[22][2]++,e>n.start.row)}))),l=(Ct().s[170]++,[]),i=(Ct().s[171]++,0);switch(Ct().s[172]++,n.action){case"insert":Ct().b[23][0]++,Ct().s[173]++,i=n.lines.length-1,Ct().s[174]++,t.reverse(),Ct().s[175]++;break;case"remove":Ct().b[23][1]++,Ct().s[176]++,i=1-n.lines.length,Ct().s[177]++,l=(0,u.Z)(Array(n.lines.length).keys()).map((function(e){return Ct().f[67]++,Ct().s[178]++,e+n.start.row})),Ct().s[179]++;break}Ct().s[180]++,t.forEach((function(n){Ct().f[68]++,Ct().s[181]++,e.clearBreakpoint(n),Ct().s[182]++,l.includes(n)?Ct().b[24][1]++:(Ct().b[24][0]++,Ct().s[183]++,e.setBreakpoint(n+i))}))},getBreakpointRows:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(Ct().b[25][0]++,this.editor.session);return Ct().f[69]++,Ct().s[184]++,n.getBreakpoints().map((function(n,e){return Ct().f[70]++,Ct().s[185]++,Ct().b[26][0]++,n&&(Ct().b[26][1]++,e)})).filter(Number.isInteger)},restoreBreakpoints:function(n){var e,t=this;Ct().f[71]++,Ct().s[186]++,this.clearBreakpoints(),Ct().s[187]++,null===(e=this.breakpoints[n])||void 0===e||e.forEach((function(n){Ct().f[72]++,Ct().s[188]++,t.editor.session.setBreakpoint(n)}))},deleteAllBreakpoints:function(){var n=this;Ct().f[73]++,Ct().s[189]++,this.$dialog.confirm("Permanently delete all breakpoints for ALL scripts?",{okText:"Delete",cancelText:"Cancel"}).then((function(n){return Ct().f[74]++,Ct().s[190]++,k["delete"]("/script-api/breakpoints/delete/all")})).then((function(e){Ct().f[75]++,Ct().s[191]++,n.clearBreakpoints()}))},suiteRunnerButton:function(n){Ct().f[76]++,Ct().s[192]++,this.startOrGoButton===yt?(Ct().b[27][0]++,Ct().s[193]++,this.start(n,"suiteRunner")):(Ct().b[27][1]++,Ct().s[194]++,this.go(n,"suiteRunner"))},keydown:function(n){Ct().f[77]++,Ct().s[195]++,Ct().b[29][0]++,(n.metaKey||(Ct().b[29][1]++,n.ctrlKey))&&(Ct().b[29][2]++,n.keyCode==="S".charCodeAt(0))?(Ct().b[28][0]++,Ct().s[196]++,n.preventDefault(),Ct().s[197]++,this.saveFile()):(Ct().b[28][1]++,Ct().s[198]++,Ct().b[31][0]++,(n.metaKey||(Ct().b[31][1]++,n.ctrlKey))&&(Ct().b[31][2]++,n.shiftKey)&&(Ct().b[31][3]++,n.keyCode==="S".charCodeAt(0))?(Ct().b[30][0]++,Ct().s[199]++,n.preventDefault(),Ct().s[200]++,this.saveAs()):Ct().b[30][1]++)},onChange:function(n){if(Ct().f[78]++,Ct().s[201]++,!0===this.editor.getReadOnly())return Ct().b[32][0]++,void Ct().s[202]++;Ct().b[32][1]++,Ct().s[203]++,this.editor.session.getUndoManager().canUndo()?(Ct().b[33][0]++,Ct().s[204]++,this.fileModified="*"):(Ct().b[33][1]++,Ct().s[205]++,this.fileModified="")},checkMnemonics:function(){var n=this;Ct().f[79]++,Ct().s[206]++,this.mnemonicChecker.checkText(this.editor.getValue()).then((function(e){var t=e.skipped,l=e.problems;Ct().f[80]++;var i=(Ct().s[207]++,"");if(Ct().s[208]++,l.length){Ct().b[34][0]++;var o=(Ct().s[209]++,l.map((function(n){return Ct().f[81]++,Ct().s[210]++,"".concat(n.lineNumber,": ").concat(n.error)})).join("<br/>"));Ct().s[211]++,i+="<strong>The following lines have problems:</strong><br/>".concat(o,"<br/><br/>")}else Ct().b[34][1]++;Ct().s[212]++,t.length?(Ct().b[35][0]++,Ct().s[213]++,i+="<strong>Mnemonics with string interpolation were not checked.</strong>"):Ct().b[35][1]++,Ct().s[214]++,""===i?(Ct().b[36][0]++,Ct().s[215]++,i="<strong>Everything looks good!</strong>"):Ct().b[36][1]++,Ct().s[216]++,n.$dialog.alert(i.trim(),{html:!0})}))},scriptStart:function(n){var e=this;Ct().f[82]++,Ct().s[217]++,this.disableSuiteButtons=!0,Ct().s[218]++,this.startOrGoDisabled=!0,Ct().s[219]++,this.envDisabled=!0,Ct().s[220]++,this.pauseOrRetryDisabled=!0,Ct().s[221]++,this.stopDisabled=!0,Ct().s[222]++,this.state="Connecting...",Ct().s[223]++,this.startOrGoButton=_t,Ct().s[224]++,this.scriptId=n,Ct().s[225]++,this.editor.setReadOnly(!0),Ct().s[226]++,this.cable.createSubscription("RunningScriptChannel",window.openc3Scope,{received:function(n){return Ct().f[83]++,Ct().s[227]++,e.received(n)}},{id:this.scriptId}).then((function(n){Ct().f[84]++,Ct().s[228]++,e.subscription=n}))},scriptComplete:function(){Ct().f[85]++,Ct().s[229]++,this.disableSuiteButtons=!1,Ct().s[230]++,this.startOrGoButton=yt,Ct().s[231]++,this.pauseOrRetryButton=wt,Ct().s[232]++,this.startOrGoDisabled=this.suiteRunner,Ct().s[233]++,this.envDisabled=!1,Ct().s[234]++,this.pauseOrRetryDisabled=!0,Ct().s[235]++,this.stopDisabled=!0,Ct().s[236]++,this.state="stopped",Ct().s[237]++,this.fatal=!1,Ct().s[238]++,this.scriptId=null,Ct().s[239]++,this.editor.setReadOnly(!1)},environmentHandler:function(n){Ct().f[86]++,Ct().s[240]++,this.scriptEnvironment.env=n},startHandler:function(){Ct().f[87]++,Ct().s[241]++,this.start()},start:function(n){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Ct().b[37][0]++,null);Ct().f[88]++,Ct().s[242]++,this.saveFile("start");var l=(Ct().s[243]++,this.filename);Ct().s[244]++,this.filename===gt?(Ct().b[38][0]++,Ct().s[245]++,l=this.tempFilename):Ct().b[38][1]++;var i=(Ct().s[246]++,"/script-api/scripts/".concat(l,"/run"));Ct().s[247]++,this.showDisconnect?(Ct().b[39][0]++,Ct().s[248]++,i+="/disconnect"):Ct().b[39][1]++;var o=(Ct().s[249]++,{environment:this.scriptEnvironment.env});Ct().s[250]++,t?(Ct().b[40][0]++,Ct().s[251]++,o["suiteRunner"]=n):Ct().b[40][1]++,Ct().s[252]++,k.post(i,{data:o}).then((function(n){Ct().f[89]++,Ct().s[253]++,e.scriptStart(n.data)}))},go:function(n){arguments.length>1&&void 0!==arguments[1]||Ct().b[41][0]++;Ct().f[90]++,Ct().s[254]++,k.post("/script-api/running-script/".concat(this.scriptId,"/go"))},pauseOrRetry:function(){Ct().f[91]++,Ct().s[255]++,this.pauseOrRetryButton===wt?(Ct().b[42][0]++,Ct().s[256]++,k.post("/script-api/running-script/".concat(this.scriptId,"/pause"))):(Ct().b[42][1]++,Ct().s[257]++,this.pauseOrRetryButton=wt,Ct().s[258]++,k.post("/script-api/running-script/".concat(this.scriptId,"/retry")))},stop:function(){Ct().f[92]++,Ct().s[259]++,this.fatal?(Ct().b[43][0]++,Ct().s[260]++,this.removeAllMarkers(),Ct().s[261]++,this.scriptComplete()):(Ct().b[43][1]++,Ct().s[262]++,k.post("/script-api/running-script/".concat(this.scriptId,"/stop")))},step:function(){Ct().f[93]++,Ct().s[263]++,k.post("/script-api/running-script/".concat(this.scriptId,"/step"))},received:function(n){var e=this;switch(Ct().f[94]++,Ct().s[264]++,this.cable.recordPing(),Ct().s[265]++,n.type){case"file":Ct().b[44][0]++,Ct().s[266]++,this.files[n.filename]={content:n.text,lineNo:0},Ct().s[267]++,this.breakpoints[n.filename]=n.breakpoints,Ct().s[268]++,this.currentFilename===n.filename?(Ct().b[45][0]++,Ct().s[269]++,this.restoreBreakpoints(n.filename)):Ct().b[45][1]++,Ct().s[270]++;break;case"line":Ct().b[44][1]++,Ct().s[271]++,Ct().b[47][0]++,n.filename&&(Ct().b[47][1]++,n.filename!==this.currentFilename)?(Ct().b[46][0]++,Ct().s[272]++,this.files[n.filename]?(Ct().b[48][1]++,Ct().s[280]++,this.editor.setValue(this.files[n.filename].content),Ct().s[281]++,this.restoreBreakpoints(n.filename),Ct().s[282]++,this.editor.clearSelection(),Ct().s[283]++,this.currentFilename=n.filename):(Ct().b[48][0]++,Ct().s[273]++,this.files[n.filename]={content:"",lineNo:0},Ct().s[274]++,k.get("/script-api/scripts/".concat(n.filename)).then((function(t){Ct().f[95]++,Ct().s[275]++,e.files[n.filename]={content:t.data.contents,lineNo:0},Ct().s[276]++,e.breakpoints[n.filename]=t.data.breakpoints,Ct().s[277]++,e.restoreBreakpoints(n.filename),Ct().s[278]++,e.currentFilename=null})).catch((function(t){Ct().f[96]++,Ct().s[279]++,e.files[n.filename]=null})))):Ct().b[46][1]++,Ct().s[284]++,this.state=n.state;var t=(Ct().s[285]++,this.editor.session.getMarkers());switch(Ct().s[286]++,this.state){case"running":Ct().b[49][0]++,Ct().s[287]++,this.startOrGoDisabled=!1,Ct().s[288]++,this.pauseOrRetryDisabled=!1,Ct().s[289]++,this.stopDisabled=!1,Ct().s[290]++,this.pauseOrRetryButton=wt,Ct().s[291]++,this.removeAllMarkers(),Ct().s[292]++,this.editor.session.addMarker(new this.Range(n.line_no-1,0,n.line_no-1,1),"runningMarker","fullLine"),Ct().s[293]++,this.editor.gotoLine(n.line_no),Ct().s[294]++,this.files[n.filename].lineNo=n.line_no,Ct().s[295]++;break;case"fatal":Ct().b[49][1]++,Ct().s[296]++,this.fatal=!0;case"error":Ct().b[49][2]++,Ct().s[297]++,this.pauseOrRetryButton=kt;case"breakpoint":Ct().b[49][3]++;case"waiting":Ct().b[49][4]++;case"paused":Ct().b[49][5]++,Ct().s[298]++,"fatal"==this.state?(Ct().b[50][0]++,Ct().s[299]++,this.startOrGoDisabled=!0,Ct().s[300]++,this.pauseOrRetryDisabled=!0):(Ct().b[50][1]++,Ct().s[301]++,this.startOrGoDisabled=!1,Ct().s[302]++,this.pauseOrRetryDisabled=!1),Ct().s[303]++,this.stopDisabled=!1;var l=(Ct().s[304]++,Object.keys(t).filter((function(n){return Ct().f[97]++,Ct().s[305]++,t[n].clazz==="".concat(e.state,"Marker")})));if(Ct().s[306]++,0===l.length){Ct().b[51][0]++,Ct().s[307]++,this.removeAllMarkers();var i=(Ct().s[308]++,n.line_no>0?(Ct().b[52][0]++,n.line_no):(Ct().b[52][1]++,1));Ct().s[309]++,this.editor.session.addMarker(new this.Range(i-1,0,i-1,1),"".concat(this.state,"Marker"),"fullLine"),Ct().s[310]++,this.editor.gotoLine(i),Ct().s[311]++,n.filename?(Ct().b[53][0]++,Ct().s[312]++,this.files[n.filename].lineNo=i):Ct().b[53][1]++}else Ct().b[51][1]++;Ct().s[313]++;break;default:Ct().b[49][6]++,Ct().s[314]++;break}Ct().s[315]++;break;case"output":Ct().b[44][2]++,Ct().s[316]++;var o,s=(0,a.Z)(n.line.split("\n"));try{for(s.s();!(o=s.n()).done;){var c=o.value;Ct().s[317]++,c?(Ct().b[54][0]++,Ct().s[318]++,this.messages.unshift({message:c})):Ct().b[54][1]++}}catch(r){s.e(r)}finally{s.f()}Ct().s[319]++;while(this.messages.length>this.maxArrayLength)Ct().s[320]++,this.messages.pop();Ct().s[321]++;break;case"script":Ct().b[44][3]++,Ct().s[322]++,this.handleScript(n),Ct().s[323]++;break;case"report":Ct().b[44][4]++,Ct().s[324]++,this.results.text=n.report,Ct().s[325]++,this.results.show=!0,Ct().s[326]++;break;case"complete":Ct().b[44][5]++,Ct().s[327]++,this.fatal?Ct().b[55][1]++:(Ct().b[55][0]++,Ct().s[328]++,this.removeAllMarkers(),Ct().s[329]++,this.scriptComplete());case"step":Ct().b[44][6]++,Ct().s[330]++,this.showDebug=!0,Ct().s[331]++;break;default:Ct().b[44][7]++,Ct().s[332]++;break}},promptDialogCallback:function(n){Ct().f[98]++,Ct().s[333]++,this.prompt.show=!1,Ct().s[334]++,k.post("/script-api/running-script/".concat(this.scriptId,"/prompt"),{data:{method:this.prompt.method,answer:n,prompt_id:this.activePromptId}})},handleScript:function(n){var e=this;if(Ct().f[99]++,Ct().s[335]++,n.prompt_complete)return Ct().b[56][0]++,Ct().s[336]++,this.activePromptId="",Ct().s[337]++,this.prompt.show=!1,Ct().s[338]++,this.ask.show=!1,void Ct().s[339]++;switch(Ct().b[56][1]++,Ct().s[340]++,this.activePromptId=n.prompt_id,Ct().s[341]++,this.prompt.method=n.method,Ct().s[342]++,this.prompt.layout="horizontal",Ct().s[343]++,this.prompt.title="Prompt",Ct().s[344]++,this.prompt.subtitle="",Ct().s[345]++,this.prompt.details="",Ct().s[346]++,this.prompt.buttons=[],Ct().s[347]++,n.method){case"ask":Ct().b[57][0]++;case"ask_string":Ct().b[57][1]++,Ct().s[348]++,this.ask.default=null,Ct().s[349]++,this.ask.answerRequired=!0,Ct().s[350]++,this.ask.password=!1,Ct().s[351]++,this.ask.question=n.args[0],Ct().s[352]++,Ct().b[59][0]++,n.args[1]&&(Ct().b[59][1]++,!0!==n.args[1])&&(Ct().b[59][2]++,!1!==n.args[1])?(Ct().b[58][0]++,Ct().s[353]++,this.ask.default=n.args[1].toString()):(Ct().b[58][1]++,Ct().s[354]++,!0===n.args[1]?(Ct().b[60][0]++,Ct().s[355]++,this.ask.answerRequired=!1):Ct().b[60][1]++),Ct().s[356]++,!0===n.args[2]?(Ct().b[61][0]++,Ct().s[357]++,this.ask.password=!0):Ct().b[61][1]++,Ct().s[358]++,this.ask.callback=function(t){Ct().f[100]++,Ct().s[359]++,e.ask.show=!1,Ct().s[360]++,e.ask.password?(Ct().b[62][0]++,Ct().s[361]++,k.post("/script-api/running-script/".concat(e.scriptId,"/prompt"),{data:{method:n.method,password:t,prompt_id:e.activePromptId}})):(Ct().b[62][1]++,Ct().s[362]++,k.post("/script-api/running-script/".concat(e.scriptId,"/prompt"),{data:{method:n.method,answer:t,prompt_id:e.activePromptId}}))},Ct().s[363]++,this.ask.show=!0,Ct().s[364]++;break;case"prompt_for_hazardous":Ct().b[57][2]++,Ct().s[365]++,this.prompt.title="Hazardous Command",Ct().s[366]++,this.prompt.message="Warning: Command ".concat(n.args[0]," ").concat(n.args[1]," is Hazardous. "),Ct().s[367]++,n.args[2]?(Ct().b[63][0]++,Ct().s[368]++,this.prompt.message+=n.args[2]+" "):Ct().b[63][1]++,Ct().s[369]++,this.prompt.message+="Send?",Ct().s[370]++,this.prompt.buttons=[{text:"Yes",value:"Yes"}],Ct().s[371]++,this.prompt.callback=this.promptDialogCallback,Ct().s[372]++,this.prompt.show=!0,Ct().s[373]++;break;case"prompt":Ct().b[57][3]++,Ct().s[374]++,Ct().b[65][0]++,n.kwargs&&(Ct().b[65][1]++,n.kwargs.informative)?(Ct().b[64][0]++,Ct().s[375]++,this.prompt.subtitle=n.kwargs.informative):Ct().b[64][1]++,Ct().s[376]++,Ct().b[67][0]++,n.kwargs&&(Ct().b[67][1]++,n.kwargs.details)?(Ct().b[66][0]++,Ct().s[377]++,this.prompt.details=n.kwargs.details):Ct().b[66][1]++,Ct().s[378]++,this.prompt.message=n.args[0],Ct().s[379]++,this.prompt.buttons=[{text:"Ok",value:"Ok"}],Ct().s[380]++,this.prompt.callback=this.promptDialogCallback,Ct().s[381]++,this.prompt.show=!0,Ct().s[382]++;break;case"combo_box":Ct().b[57][4]++,Ct().s[383]++,Ct().b[69][0]++,n.kwargs&&(Ct().b[69][1]++,n.kwargs.informative)?(Ct().b[68][0]++,Ct().s[384]++,this.prompt.subtitle=n.kwargs.informative):Ct().b[68][1]++,Ct().s[385]++,Ct().b[71][0]++,n.kwargs&&(Ct().b[71][1]++,n.kwargs.details)?(Ct().b[70][0]++,Ct().s[386]++,this.prompt.details=n.kwargs.details):Ct().b[70][1]++,Ct().s[387]++,this.prompt.message=n.args[0],Ct().s[388]++,n.args.slice(1).forEach((function(n){Ct().f[101]++,Ct().s[389]++,e.prompt.buttons.push({text:n,value:n})})),Ct().s[390]++,this.prompt.combo=!0,Ct().s[391]++,this.prompt.layout="combo",Ct().s[392]++,this.prompt.callback=this.promptDialogCallback,Ct().s[393]++,this.prompt.show=!0,Ct().s[394]++;break;case"message_box":Ct().b[57][5]++;case"vertical_message_box":Ct().b[57][6]++,Ct().s[395]++,Ct().b[73][0]++,n.kwargs&&(Ct().b[73][1]++,n.kwargs.informative)?(Ct().b[72][0]++,Ct().s[396]++,this.prompt.subtitle=n.kwargs.informative):Ct().b[72][1]++,Ct().s[397]++,Ct().b[75][0]++,n.kwargs&&(Ct().b[75][1]++,n.kwargs.details)?(Ct().b[74][0]++,Ct().s[398]++,this.prompt.details=n.kwargs.details):Ct().b[74][1]++,Ct().s[399]++,this.prompt.message=n.args[0],Ct().s[400]++,n.args.slice(1).forEach((function(n){Ct().f[102]++,Ct().s[401]++,e.prompt.buttons.push({text:n,value:n})})),Ct().s[402]++,n.method.includes("vertical")?(Ct().b[76][0]++,Ct().s[403]++,this.prompt.layout="vertical"):Ct().b[76][1]++,Ct().s[404]++,this.prompt.callback=this.promptDialogCallback,Ct().s[405]++,this.prompt.show=!0,Ct().s[406]++;break;case"backtrace":Ct().b[57][7]++,Ct().s[407]++,this.information.title="Call Stack",Ct().s[408]++,this.information.text=n.args,Ct().s[409]++,this.information.show=!0,Ct().s[410]++;break;case"metadata_input":Ct().b[57][8]++,Ct().s[411]++,this.inputMetadata.target=n.args[0],Ct().s[412]++,this.inputMetadata.callback=function(t){Ct().f[103]++,Ct().s[413]++,e.inputMetadata.show=!1,Ct().s[414]++,k.post("/script-api/running-script/".concat(e.scriptId,"/prompt"),{data:{method:n.method,answer:t,prompt_id:e.activePromptId}})},Ct().s[415]++,this.inputMetadata.show=!0,Ct().s[416]++;break;case"open_file_dialog":Ct().b[57][9]++;case"open_files_dialog":Ct().b[57][10]++,Ct().s[417]++,this.file.title=n.args[0],Ct().s[418]++,this.file.message=n.args[1],Ct().s[419]++,Ct().b[78][0]++,n.kwargs&&(Ct().b[78][1]++,n.kwargs.filter)?(Ct().b[77][0]++,Ct().s[420]++,this.file.filter=n.kwargs.filter):Ct().b[77][1]++,Ct().s[421]++,"open_files_dialog"==n.method?(Ct().b[79][0]++,Ct().s[422]++,this.file.multiple=!0):Ct().b[79][1]++,Ct().s[423]++,this.file.show=!0,Ct().s[424]++;break;default:Ct().b[57][11]++,Ct().s[425]++;break}},fileDialogCallback:function(n){var e=this;return(0,r.Z)((0,c.Z)().mark((function t(){var l;return(0,c.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(Ct().f[104]++,Ct().s[426]++,e.file.show=!1,Ct().s[427]++,l="Cancel",Ct().s[428]++,"Cancel"==n){t.next=14;break}return Ct().b[80][0]++,Ct().s[429]++,l=[],Ct().s[430]++,t.next=12,n.forEach(function(){var n=(0,r.Z)((0,c.Z)().mark((function n(e){var t,i;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return Ct().f[105]++,Ct().s[431]++,l.push(e.name),Ct().s[432]++,n.next=6,k.get("/openc3-api/storage/upload/".concat(encodeURIComponent("".concat(window.openc3Scope,"/tmp/").concat(e.name)),"?bucket=OPENC3_CONFIG_BUCKET"));case 6:return t=n.sent,i=t.data,Ct().s[433]++,n.next=11,d()((0,s.Z)((0,s.Z)({},i),{},{data:e}));case 11:n.sent;case 12:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 12:t.next=15;break;case 14:Ct().b[80][1]++;case 15:return Ct().s[434]++,t.next=18,k.post("/script-api/running-script/".concat(e.scriptId,"/prompt"),{data:{method:e.file.multiple?(Ct().b[81][0]++,"open_files_dialog"):(Ct().b[81][1]++,"open_file_dialog"),answer:l,prompt_id:e.activePromptId}});case 18:case"end":return t.stop()}}),t)})))()},setError:function(n){Ct().f[106]++,Ct().s[435]++,this.alertType="error",Ct().s[436]++,this.alertText="Error: ".concat(n),Ct().s[437]++,this.showAlert=!0},newFile:function(){Ct().f[107]++,Ct().s[438]++,this.filename=gt,Ct().s[439]++,this.currentFilename=null,Ct().s[440]++,this.tempFilename=null,Ct().s[441]++,this.files={},Ct().s[442]++,this.editor.session.setValue(""),Ct().s[443]++,this.fileModified="",Ct().s[444]++,this.suiteRunner=!1,Ct().s[445]++,this.startOrGoDisabled=!1,Ct().s[446]++,this.envDisabled=!1},openFile:function(){Ct().f[108]++,Ct().s[447]++,this.fileOpen=!0},reloadFile:function(){var n=this;Ct().f[109]++,Ct().s[448]++,k.get("/script-api/scripts/".concat(this.filename)).then((function(e){Ct().f[110]++;var t=(Ct().s[449]++,{name:n.filename,contents:e.data.contents});Ct().s[450]++,e.data.suites?(Ct().b[82][0]++,Ct().s[451]++,t["suites"]=JSON.parse(e.data.suites)):Ct().b[82][1]++,Ct().s[452]++,e.data.error?(Ct().b[83][0]++,Ct().s[453]++,t["error"]=e.data.error):Ct().b[83][1]++,Ct().s[454]++,e.data.success?(Ct().b[84][0]++,Ct().s[455]++,t["success"]=e.data.success):Ct().b[84][1]++;var l=(Ct().s[456]++,e.data.locked),i=(Ct().s[457]++,e.data.breakpoints);Ct().s[458]++,n.setFile({file:t,locked:l,breakpoints:i},!0)})).catch((function(e){Ct().f[111]++,Ct().s[459]++,n.$emit("error","Failed to open ".concat(n.selectedFile,". ").concat(e)),Ct().s[460]++,n.clear()}))},setFile:function(n){var e=n.file,t=n.locked,l=n.breakpoints,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Ct().b[85][0]++,!1);Ct().f[112]++,Ct().s[461]++,this.files={},Ct().s[462]++,!1===i?(Ct().b[86][0]++,Ct().s[463]++,this.unlockFile(),Ct().s[464]++,this.lockedBy=t):Ct().b[86][1]++,Ct().s[465]++,this.filename=e.name.split("*")[0],Ct().s[466]++,this.currentFilename=null,Ct().s[467]++,this.editor.session.setValue(e.contents),Ct().s[468]++,this.breakpoints[filename]=l,Ct().s[469]++,this.restoreBreakpoints(filename),Ct().s[470]++,this.fileModified="",Ct().s[471]++,this.envDisabled=!1,Ct().s[472]++,e.suites?(Ct().b[87][0]++,Ct().s[473]++,this.suiteRunner=!0,Ct().s[474]++,this.suiteMap=e.suites,Ct().s[475]++,this.startOrGoDisabled=!0):(Ct().b[87][1]++,Ct().s[476]++,this.suiteRunner=!1),Ct().s[477]++,e.error?(Ct().b[88][0]++,Ct().s[478]++,this.suiteError=e.error,Ct().s[479]++,this.showSuiteError=!0):Ct().b[88][1]++,Ct().s[480]++,this.disableSuiteButtons=0==e.success},saveFile:function(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(Ct().b[89][0]++,"menu");Ct().f[113]++;var t=(Ct().s[481]++,this.getBreakpointRows());Ct().s[482]++,this.filename===gt?(Ct().b[90][0]++,Ct().s[483]++,"menu"===e?(Ct().b[91][0]++,Ct().s[484]++,this.saveAs()):(Ct().b[91][1]++,Ct().s[485]++,null===this.tempFilename?(Ct().b[92][0]++,Ct().s[486]++,this.tempFilename=bt+"/"+(0,S.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+"_temp.rb"):Ct().b[92][1]++,Ct().s[487]++,this.showSave=!0,Ct().s[488]++,k.post("/script-api/scripts/".concat(this.tempFilename),{data:{text:this.editor.getValue(),breakpoints:t}}).then((function(e){Ct().f[114]++,Ct().s[489]++,n.fileModified="",Ct().s[490]++,setTimeout((function(){Ct().f[115]++,Ct().s[491]++,n.showSave=!1}),2e3)})).catch((function(e){Ct().f[116]++,Ct().s[492]++,n.showSave=!1})))):(Ct().b[90][1]++,Ct().s[493]++,this.showSave=!0,Ct().s[494]++,k.post("/script-api/scripts/".concat(this.filename),{data:{text:this.editor.getValue(),breakpoints:t}}).then((function(e){Ct().f[117]++,Ct().s[495]++,200==e.status?(Ct().b[93][0]++,Ct().s[496]++,e.data.suites?(Ct().b[94][0]++,Ct().s[497]++,n.startOrGoDisabled=!0,Ct().s[498]++,n.suiteRunner=!0,Ct().s[499]++,n.suiteMap=JSON.parse(e.data.suites)):(Ct().b[94][1]++,Ct().s[500]++,n.startOrGoDisabled=!1,Ct().s[501]++,n.suiteRunner=!1,Ct().s[502]++,n.suiteMap={}),Ct().s[503]++,e.data.error?(Ct().b[95][0]++,Ct().s[504]++,n.suiteError=e.data.error,Ct().s[505]++,n.showSuiteError=!0):Ct().b[95][1]++,Ct().s[506]++,n.fileModified="",Ct().s[507]++,setTimeout((function(){Ct().f[118]++,Ct().s[508]++,n.showSave=!1}),2e3)):(Ct().b[93][1]++,Ct().s[509]++,n.showSave=!1,Ct().s[510]++,n.alertType="error",Ct().s[511]++,n.alertText="Error saving file. Code: ".concat(e.status," Text: ").concat(e.statusText),Ct().s[512]++,n.showAlert=!0)})).catch((function(e){var t=e.response;Ct().f[119]++,Ct().s[513]++,n.showSave=!1,Ct().s[514]++,422==t.status?(Ct().b[96][0]++,Ct().s[515]++,n.alertType="error",Ct().s[516]++,n.alertText=t.data.suites):(Ct().b[96][1]++,Ct().s[517]++,n.alertType="error",Ct().s[518]++,n.alertText="Error saving file. Code: ".concat(t.status," Text: ").concat(t.statusText)),Ct().s[519]++,n.showAlert=!0}))),Ct().s[520]++,this.lockFile()},saveAs:function(){Ct().f[120]++,Ct().s[521]++,this.showSaveAs=!0},saveAsFilename:function(n){Ct().f[121]++,Ct().s[522]++,this.filename=n.split("*")[0],Ct().s[523]++,this.currentFilename=null,Ct().s[524]++,this.tempFilename?(Ct().b[97][0]++,Ct().s[525]++,k.post("/script-api/scripts/".concat(this.tempFilename,"/delete")),Ct().s[526]++,this.tempFilename=null):Ct().b[97][1]++,Ct().s[527]++,this.saveFile("menu")},delete:function(){var n=this;Ct().f[122]++;var e=(Ct().s[528]++,this.filename);Ct().s[529]++,this.tempFilename?(Ct().b[98][0]++,Ct().s[530]++,e=this.tempFilename):Ct().b[98][1]++,Ct().s[531]++,this.$dialog.confirm("Permanently delete file: ".concat(e),{okText:"Delete",cancelText:"Cancel"}).then((function(n){return Ct().f[123]++,Ct().s[532]++,k.post("/script-api/scripts/".concat(e,"/delete"),{data:{}})})).then((function(e){Ct().f[124]++,Ct().s[533]++,n.newFile()})).catch((function(e){if(Ct().f[125]++,Ct().s[534]++,e){Ct().b[99][0]++;var t=(Ct().s[535]++,{text:"Failed Multi-Delete. ".concat(e),type:"error"});Ct().s[536]++,n.$emit("alert",t)}else Ct().b[99][1]++}))},download:function(){Ct().f[126]++;var n=(Ct().s[537]++,new Blob([this.editor.getValue()],{type:"text/plain"})),e=(Ct().s[538]++,document.createElement("a"));Ct().s[539]++,e.href=URL.createObjectURL(n),Ct().s[540]++,e.setAttribute("download",this.filename),Ct().s[541]++,e.click()},rubySyntaxCheck:function(){var n=this;Ct().f[127]++,Ct().s[542]++,k.post("/script-api/scripts/syntax",{data:this.editor.getValue(),headers:{Accept:"application/json","Content-Type":"plain/text"}}).then((function(e){Ct().f[128]++,Ct().s[543]++,n.information.title=e.data.title,Ct().s[544]++,n.information.text=JSON.parse(e.data.description),Ct().s[545]++,n.information.show=!0}))},showInstrumented:function(){var n=this;Ct().f[129]++,Ct().s[546]++,k.post("/script-api/scripts/".concat(this.filename,"/instrumented"),{data:this.editor.getValue(),headers:{Accept:"application/json","Content-Type":"plain/text"}}).then((function(e){Ct().f[130]++,Ct().s[547]++,n.information.title=e.data.title,Ct().s[548]++,n.information.text=JSON.parse(e.data.description),Ct().s[549]++,n.information.show=!0}))},showCallStack:function(){Ct().f[131]++,Ct().s[550]++,k.post("/script-api/running-script/".concat(this.scriptId,"/backtrace"))},toggleDebug:function(){Ct().f[132]++,Ct().s[551]++,this.showDebug=!this.showDebug},toggleDisconnect:function(){Ct().f[133]++,Ct().s[552]++,this.showDisconnect=!this.showDisconnect},debugKeydown:function(n){Ct().f[134]++,Ct().s[553]++,"Escape"===n.key?(Ct().b[100][0]++,Ct().s[554]++,this.debug="",Ct().s[555]++,this.debugHistoryIndex=this.debugHistory.length):(Ct().b[100][1]++,Ct().s[556]++,"Enter"===n.key?(Ct().b[101][0]++,Ct().s[557]++,this.debugHistory.push(this.debug),Ct().s[558]++,this.debugHistoryIndex=this.debugHistory.length,Ct().s[559]++,k.post("/script-api/running-script/".concat(this.scriptId,"/debug"),{data:{args:this.debug}}),Ct().s[560]++,this.debug=""):(Ct().b[101][1]++,Ct().s[561]++,"ArrowUp"===n.key?(Ct().b[102][0]++,Ct().s[562]++,this.debugHistoryIndex-=1,Ct().s[563]++,this.debugHistoryIndex<0?(Ct().b[103][0]++,Ct().s[564]++,this.debugHistoryIndex=this.debugHistory.length-1):Ct().b[103][1]++,Ct().s[565]++,this.debug=this.debugHistory[this.debugHistoryIndex],Ct().s[566]++,n.preventDefault()):(Ct().b[102][1]++,Ct().s[567]++,"ArrowDown"===n.key?(Ct().b[104][0]++,Ct().s[568]++,this.debugHistoryIndex+=1,Ct().s[569]++,this.debugHistoryIndex>=this.debugHistory.length?(Ct().b[105][0]++,Ct().s[570]++,this.debugHistoryIndex=0):Ct().b[105][1]++,Ct().s[571]++,this.debug=this.debugHistory[this.debugHistoryIndex]):Ct().b[104][1]++)))},removeAllMarkers:function(){var n=this;Ct().f[135]++;var e=(Ct().s[572]++,this.editor.session.getMarkers());Ct().s[573]++,Object.keys(e).filter((function(n){return Ct().f[136]++,Ct().s[574]++,"fullLine"===e[n].type})).forEach((function(e){return Ct().f[137]++,Ct().s[575]++,n.editor.session.removeMarker(e)}))},confirmLocalUnlock:function(){var n=this;Ct().f[138]++,Ct().s[576]++,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((function(){return Ct().f[139]++,Ct().s[577]++,n.lockedBy=null,Ct().s[578]++,n.lockFile()}))},lockFile:function(){return Ct().f[140]++,Ct().s[579]++,k.post("/script-api/scripts/".concat(this.filename,"/lock"))},unlockFile:function(){Ct().f[141]++,Ct().s[580]++,Ct().b[107][0]++,this.filename===gt||(Ct().b[107][1]++,this.readOnly)?Ct().b[106][1]++:(Ct().b[106][0]++,Ct().s[581]++,k.post("/script-api/scripts/".concat(this.filename,"/unlock")))}}},St=xt,Rt=(t(5634),t(1893),(0,O.Z)(St,i,o,!1,null,"59ed0687",null)),Mt=Rt.exports},3939:function(n,e,t){"use strict";t.r(e);var l=t(9601),i=t.n(l),o=t(2609),s=t.n(o),a=s()(i());a.push([n.id,"#sr-controls[data-v-59ed0687]{padding-top:0;padding-bottom:5px;padding-left:0;padding-right:0}#editorbox[data-v-59ed0687]{height:50vh}#editor[data-v-59ed0687]{height:100%;width:100%;font-size:16px}#editor[data-v-59ed0687],hr[data-v-59ed0687]{position:relative}hr[data-v-59ed0687]{pointer-events:none;top:7px;background-color:grey;height:3px;width:5%;margin:auto}.script-state[data-v-59ed0687] input{text-transform:capitalize}",""]),e["default"]=a},2817:function(n,e,t){"use strict";t.r(e);var l=t(9601),i=t.n(l),o=t(2609),s=t.n(o),a=s()(i());a.push([n.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}",""]),e["default"]=a},6294:function(n,e,t){"use strict";t.r(e);var l=t(9601),i=t.n(l),o=t(2609),s=t.n(o),a=s()(i());a.push([n.id,".v-list[data-v-2eb37f67] .v-label{margin-left:5px}.v-list-item__icon[data-v-2eb37f67]{margin-right:15px!important}.v-list-item__title[data-v-2eb37f67]{color:#fff}",""]),e["default"]=a},2364:function(n,e,t){"use strict";t.r(e);var l=t(9601),i=t.n(l),o=t(2609),s=t.n(o),a=s()(i());a.push([n.id,"#tr-container[data-v-3372ac08]{padding-top:0;padding-bottom:15px;padding-left:0;padding-right:0}",""]),e["default"]=a},5634:function(n,e,t){var l=t(3939);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[n.id,l,""]]),l.locals&&(n.exports=l.locals);var i=t(3514).Z;i("1a7754d6",l,!0,{sourceMap:!1,shadowMode:!1})},1893:function(n,e,t){var l=t(2817);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[n.id,l,""]]),l.locals&&(n.exports=l.locals);var i=t(3514).Z;i("8342ec68",l,!0,{sourceMap:!1,shadowMode:!1})},4888:function(n,e,t){var l=t(6294);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[n.id,l,""]]),l.locals&&(n.exports=l.locals);var i=t(3514).Z;i("706a3f6d",l,!0,{sourceMap:!1,shadowMode:!1})},4723:function(n,e,t){var l=t(2364);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[n.id,l,""]]),l.locals&&(n.exports=l.locals);var i=t(3514).Z;i("0aed5680",l,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
-
//# sourceMappingURL=262.js.map
|