openc3-cosmos-tool-scriptrunner 5.4.3.pre.beta0.20230214173011 → 5.5.0.pre.beta0.20230217010034

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ (self["webpackChunk_openc3_cosmos_tool_scriptrunner"]=self["webpackChunk_openc3_cosmos_tool_scriptrunner"]||[]).push([[633],{4633:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return Nt}});t(5342),t(8188);function l(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",e="4ac67a0df826427d96db9073baf40b0aa4561208",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:35}},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:3562},end:{line:3,column:3588}},17:{start:{line:3,column:3795},end:{line:3,column:3811}},18:{start:{line:3,column:3929},end:{line:3,column:3953}},19:{start:{line:3,column:3953},end:{line:3,column:4011}},20:{start:{line:3,column:4176},end:{line:3,column:4204}},21:{start:{line:3,column:4309},end:{line:3,column:4480}},22:{start:{line:3,column:5178},end:{line:3,column:5191}},23:{start:{line:3,column:5311},end:{line:3,column:5327}},24:{start:{line:3,column:5487},end:{line:3,column:5513}},25:{start:{line:3,column:5540},end:{line:3,column:5567}},26:{start:{line:3,column:5623},end:{line:3,column:5639}},27:{start:{line:3,column:5874},end:{line:3,column:5907}},28:{start:{line:3,column:5934},end:{line:3,column:5961}},29:{start:{line:3,column:6019},end:{line:3,column:6037}},30:{start:{line:3,column:6182},end:{line:3,column:6205}},31:{start:{line:3,column:6497},end:{line:3,column:6527}},32:{start:{line:3,column:6802},end:{line:3,column:6833}},33:{start:{line:3,column:7045},end:{line:3,column:7083}},34:{start:{line:3,column:7328},end:{line:3,column:7368}},35:{start:{line:3,column:7515},end:{line:3,column:7536}},36:{start:{line:3,column:7885},end:{line:3,column:7918}},37:{start:{line:3,column:8086},end:{line:3,column:8120}},38:{start:{line:3,column:8384},end:{line:3,column:8428}},39:{start:{line:3,column:8636},end:{line:3,column:8658}},40:{start:{line:3,column:8768},end:{line:3,column:8787}},41:{start:{line:4,column:12},end:{line:4,column:35}},42:{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:3545},end:{line:3,column:3546}},loc:{start:{line:3,column:3561},end:{line:3,column:3589}},line:3},14:{name:"(anonymous_14)",decl:{start:{line:3,column:3779},end:{line:3,column:3780}},loc:{start:{line:3,column:3794},end:{line:3,column:3812}},line:3},15:{name:"(anonymous_15)",decl:{start:{line:3,column:3912},end:{line:3,column:3913}},loc:{start:{line:3,column:3928},end:{line:3,column:4012}},line:3},16:{name:"(anonymous_16)",decl:{start:{line:3,column:4160},end:{line:3,column:4161}},loc:{start:{line:3,column:4175},end:{line:3,column:4205}},line:3},17:{name:"(anonymous_17)",decl:{start:{line:3,column:4294},end:{line:3,column:4295}},loc:{start:{line:3,column:4308},end:{line:3,column:4481}},line:3},18:{name:"(anonymous_18)",decl:{start:{line:3,column:5162},end:{line:3,column:5163}},loc:{start:{line:3,column:5177},end:{line:3,column:5192}},line:3},19:{name:"(anonymous_19)",decl:{start:{line:3,column:5295},end:{line:3,column:5296}},loc:{start:{line:3,column:5310},end:{line:3,column:5328}},line:3},20:{name:"(anonymous_20)",decl:{start:{line:3,column:5470},end:{line:3,column:5471}},loc:{start:{line:3,column:5486},end:{line:3,column:5514}},line:3},21:{name:"(anonymous_21)",decl:{start:{line:3,column:5523},end:{line:3,column:5524}},loc:{start:{line:3,column:5539},end:{line:3,column:5568}},line:3},22:{name:"(anonymous_22)",decl:{start:{line:3,column:5607},end:{line:3,column:5608}},loc:{start:{line:3,column:5622},end:{line:3,column:5640}},line:3},23:{name:"(anonymous_23)",decl:{start:{line:3,column:5857},end:{line:3,column:5858}},loc:{start:{line:3,column:5873},end:{line:3,column:5908}},line:3},24:{name:"(anonymous_24)",decl:{start:{line:3,column:5917},end:{line:3,column:5918}},loc:{start:{line:3,column:5933},end:{line:3,column:5962}},line:3},25:{name:"(anonymous_25)",decl:{start:{line:3,column:6003},end:{line:3,column:6004}},loc:{start:{line:3,column:6018},end:{line:3,column:6038}},line:3},26:{name:"(anonymous_26)",decl:{start:{line:3,column:6166},end:{line:3,column:6167}},loc:{start:{line:3,column:6181},end:{line:3,column:6206}},line:3},27:{name:"(anonymous_27)",decl:{start:{line:3,column:6481},end:{line:3,column:6482}},loc:{start:{line:3,column:6496},end:{line:3,column:6528}},line:3},28:{name:"(anonymous_28)",decl:{start:{line:3,column:6786},end:{line:3,column:6787}},loc:{start:{line:3,column:6801},end:{line:3,column:6834}},line:3},29:{name:"(anonymous_29)",decl:{start:{line:3,column:7029},end:{line:3,column:7030}},loc:{start:{line:3,column:7044},end:{line:3,column:7084}},line:3},30:{name:"(anonymous_30)",decl:{start:{line:3,column:7312},end:{line:3,column:7313}},loc:{start:{line:3,column:7327},end:{line:3,column:7369}},line:3},31:{name:"(anonymous_31)",decl:{start:{line:3,column:7499},end:{line:3,column:7500}},loc:{start:{line:3,column:7514},end:{line:3,column:7537}},line:3},32:{name:"(anonymous_32)",decl:{start:{line:3,column:7869},end:{line:3,column:7870}},loc:{start:{line:3,column:7884},end:{line:3,column:7919}},line:3},33:{name:"(anonymous_33)",decl:{start:{line:3,column:8070},end:{line:3,column:8071}},loc:{start:{line:3,column:8085},end:{line:3,column:8121}},line:3},34:{name:"(anonymous_34)",decl:{start:{line:3,column:8368},end:{line:3,column:8369}},loc:{start:{line:3,column:8383},end:{line:3,column:8429}},line:3},35:{name:"(anonymous_35)",decl:{start:{line:3,column:8620},end:{line:3,column:8621}},loc:{start:{line:3,column:8635},end:{line:3,column:8659}},line:3},36:{name:"(anonymous_36)",decl:{start:{line:3,column:8752},end:{line:3,column:8753}},loc:{start:{line:3,column:8767},end:{line:3,column:8788}},line:3},37:{name:"(anonymous_37)",decl:{start:{line:3,column:8963},end:{line:3,column:8964}},loc:{start:{line:3,column:8969},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:3442}},type:"cond-expr",locations:[{start:{line:3,column:2241},end:{line:3,column:2933}},{start:{line:3,column:2934},end:{line:3,column:3442}}],line:3},4:{loc:{start:{line:3,column:4607},end:{line:3,column:5231}},type:"cond-expr",locations:[{start:{line:3,column:4623},end:{line:3,column:5222}},{start:{line:3,column:5223},end:{line:3,column:5231}}],line:3},5:{loc:{start:{line:3,column:5362},end:{line:3,column:5674}},type:"cond-expr",locations:[{start:{line:3,column:5377},end:{line:3,column:5665}},{start:{line:3,column:5666},end:{line:3,column:5674}}],line:3},6:{loc:{start:{line:3,column:5675},end:{line:3,column:6074}},type:"cond-expr",locations:[{start:{line:3,column:5692},end:{line:3,column:6065}},{start:{line:3,column:6066},end:{line:3,column:6074}}],line:3},7:{loc:{start:{line:3,column:6075},end:{line:3,column:6247}},type:"cond-expr",locations:[{start:{line:3,column:6097},end:{line:3,column:6238}},{start:{line:3,column:6239},end:{line:3,column:6247}}],line:3},8:{loc:{start:{line:3,column:6248},end:{line:3,column:6562}},type:"cond-expr",locations:[{start:{line:3,column:6263},end:{line:3,column:6553}},{start:{line:3,column:6554},end:{line:3,column:6562}}],line:3},9:{loc:{start:{line:3,column:6563},end:{line:3,column:6869}},type:"cond-expr",locations:[{start:{line:3,column:6579},end:{line:3,column:6860}},{start:{line:3,column:6861},end:{line:3,column:6869}}],line:3},10:{loc:{start:{line:3,column:6870},end:{line:3,column:7126}},type:"cond-expr",locations:[{start:{line:3,column:6893},end:{line:3,column:7117}},{start:{line:3,column:7118},end:{line:3,column:7126}}],line:3},11:{loc:{start:{line:3,column:7127},end:{line:3,column:7413}},type:"cond-expr",locations:[{start:{line:3,column:7152},end:{line:3,column:7404}},{start:{line:3,column:7405},end:{line:3,column:7413}}],line:3},12:{loc:{start:{line:3,column:7414},end:{line:3,column:7576}},type:"cond-expr",locations:[{start:{line:3,column:7434},end:{line:3,column:7567}},{start:{line:3,column:7568},end:{line:3,column:7576}}],line:3},13:{loc:{start:{line:3,column:7577},end:{line:3,column:7956}},type:"cond-expr",locations:[{start:{line:3,column:7595},end:{line:3,column:7947}},{start:{line:3,column:7948},end:{line:3,column:7956}}],line:3},14:{loc:{start:{line:3,column:7957},end:{line:3,column:8159}},type:"cond-expr",locations:[{start:{line:3,column:7976},end:{line:3,column:8150}},{start:{line:3,column:8151},end:{line:3,column:8159}}],line:3},15:{loc:{start:{line:3,column:8160},end:{line:3,column:8477}},type:"cond-expr",locations:[{start:{line:3,column:8189},end:{line:3,column:8468}},{start:{line:3,column:8469},end:{line:3,column:8477}}],line:3},16:{loc:{start:{line:3,column:8863},end:{line:5,column:23}},type:"cond-expr",locations:[{start:{line:3,column:8881},end:{line:5,column:14}},{start:{line:5,column:15},end:{line:5,column:23}}],line:3}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0},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},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4ac67a0df826427d96db9073baf40b0aa4561208"},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("Script Environment")])])],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,attrs:{disabled:n.scriptRunning}},[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.scriptRunning,"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.showOverrides?(l().b[12][0]++,e("overrides-dialog",{model:{value:n.showOverrides,callback:function(e){l().f[31]++,l().s[35]++,n.showOverrides=e},expression:"showOverrides"}})):(l().b[12][1]++,n._e()),n.prompt.show?(l().b[13][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[32]++,l().s[36]++,n.$set(n.prompt,"show",e)},expression:"prompt.show"}})):(l().b[13][1]++,n._e()),n.results.show?(l().b[14][0]++,e("results-dialog",{attrs:{text:n.results.text},model:{value:n.results.show,callback:function(e){l().f[33]++,l().s[37]++,n.$set(n.results,"show",e)},expression:"results.show"}})):(l().b[14][1]++,n._e()),n.scriptEnvironment.show?(l().b[15][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[34]++,l().s[38]++,n.$set(n.scriptEnvironment,"show",e)},expression:"scriptEnvironment.show"}})):(l().b[15][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[35]++,l().s[39]++,n.showSuiteError=e},expression:"showSuiteError"}}),e("v-bottom-sheet",{model:{value:n.showScripts,callback:function(e){l().f[36]++,l().s[40]++,n.showScripts=e},expression:"showScripts"}},[e("v-sheet",{staticClass:"pb-11 pt-5 px-5"},[n.showScripts?(l().b[16][0]++,e("running-scripts",{attrs:{"connect-in-new-tab":!!n.fileModified},on:{close:function(){l().f[37]++,l().s[41]++,n.showScripts=!1}}})):(l().b[16][1]++,n._e())],1)],1)],1)},o=(l().s[42]++,[]),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=null,this._url=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(){if(null==t._cable){var e=t._url+"?scope="+window.openc3Scope+"&authorization="+localStorage.openc3Token;t._cable=h.zD(e)}return t._cable.subscriptions.create((0,s.Z)({channel:n},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=[],O=(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("/"))}}}),T=O,D=t(3483),F=(0,D.Z)(T,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("Global 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,D.Z)(L,$,N,!1,null,null,null),Z=P.exports,U=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)},H=[],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()}}},q=G,j=(0,D.Z)(q,U,H,!1,null,null,null),V=j.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,D.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(2649),t(14),t(1996),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:"set_tlm",value:function(n,e,t,l){return this.exec("set_tlm",[n,e,t],{type:l})}},{key:"override_tlm",value:function(n,e,t,l){return this.exec("override_tlm",[n,e,t],{type:l})}},{key:"get_overrides",value:function(){return this.exec("get_overrides")}},{key:"normalize_tlm",value:function(n,e,t,l){return this.exec("normalize_tlm",[n,e,t],{type:l})}},{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,D.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,D.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,D.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 On(){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 On=function(){return s},s}On();var Tn={components:{},props:{value:{type:Boolean,required:!0}},data:function(){return On().f[0]++,On().s[0]++,{lastUpdated:null,metadata:[]}},mounted:function(){On().f[1]++,On().s[1]++,this.getMetadata()},computed:{inputError:function(){On().f[2]++;var n=(On().s[2]++,this.metadata.find((function(n){return On().f[3]++,On().s[3]++,On().b[0][0]++,""===n.key||(On().b[0][1]++,""===n.value)})));return On().s[4]++,n?(On().b[1][0]++,On().s[5]++,"Missing or empty key, value in the metadata table."):(On().b[1][1]++,On().s[6]++,null)},show:{get:function(){return On().f[4]++,On().s[7]++,this.value},set:function(n){On().f[5]++,On().s[8]++,this.$emit("input",n)}}},methods:{updateMetadata:function(){var n=this;On().f[6]++;var e=(On().s[9]++,this.metadata.reduce((function(n,e){return On().f[7]++,On().s[10]++,n[e.key]=e.value,On().s[11]++,n}),{})),t=(On().s[12]++,"#003784");On().s[13]++,k.post("/openc3-api/metadata",{data:{color:t,metadata:e}}).then((function(e){On().f[8]++,On().s[14]++,n.$notify.normal({title:"Created Metadata",body:"Metadata created at ".concat(e.data.start)})})),On().s[15]++,this.$emit("response",e),On().s[16]++,this.show=!this.show},cancel:function(){On().f[9]++,On().s[17]++,this.$emit("response","Cancel"),On().s[18]++,this.show=!this.show},getMetadata:function(){var n=this;On().f[10]++,On().s[19]++,k.get("/openc3-api/metadata/latest").then((function(e){On().f[11]++,On().s[20]++,200!==e.status?(On().b[2][0]++,On().s[21]++,n.metadata=[],On().s[22]++,n.lastUpdated=null):(On().b[2][1]++,On().s[23]++,n.lastUpdated=new Date(e.data.updated_at/1e6),On().s[24]++,n.updateValues(e.data.metadata))}))},updateValues:function(n){On().f[12]++,On().s[25]++,this.metadata=Object.keys(n).map((function(e){return On().f[13]++,On().s[26]++,{key:e,value:n[e]}}))},newMetadata:function(){On().f[14]++,On().s[27]++,this.metadata.push({key:"",value:""})},rm:function(n){On().f[15]++,On().s[28]++,this.metadata.splice(n,1)}}},Dn=Tn,Fn=(0,D.Z)(Dn,Mn,En,!1,null,null,null),In=Fn.exports;function $n(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",e="06e0185cc3d18ad16e03681078b2576b22fec3e6",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:9,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:8,column:645}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:697},end:{line:1,column:711}},6:{start:{line:8,column:123},end:{line:8,column:440}},7:{start:{line:8,column:231},end:{line:8,column:382}},8:{start:{line:8,column:295},end:{line:8,column:326}},9:{start:{line:8,column:592},end:{line:8,column:612}},10:{start:{line:10,column:22},end:{line:10,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:9,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:681},end:{line:1,column:682}},loc:{start:{line:1,column:696},end:{line:1,column:712}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:8,column:104},end:{line:8,column:105}},loc:{start:{line:8,column:122},end:{line:8,column:441}},line:8},4:{name:"(anonymous_4)",decl:{start:{line:8,column:207},end:{line:8,column:208}},loc:{start:{line:8,column:230},end:{line:8,column:383}},line:8},5:{name:"(anonymous_5)",decl:{start:{line:8,column:278},end:{line:8,column:279}},loc:{start:{line:8,column:294},end:{line:8,column:327}},line:8},6:{name:"(anonymous_6)",decl:{start:{line:8,column:575},end:{line:8,column:576}},loc:{start:{line:8,column:591},end:{line:8,column:613}},line:8}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"06e0185cc3d18ad16e03681078b2576b22fec3e6"},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:{width:"700"},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",[n._v("Overrides")]),e("v-spacer")],1),e("div",{staticClass:"pa-2"},[e("v-card-text",[e("v-btn",{attrs:{color:"primary","data-test":"overrides-dialog-clear-all"},on:{click:n.clearOverrides}},[n._v(" Clear All Overrides ")]),e("v-card-title",[n._v(" Overrides "),e("v-spacer"),e("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:n.search,callback:function(e){$n().f[2]++,$n().s[5]++,n.search=e},expression:"search"}})],1),e("v-data-table",{attrs:{headers:n.headers,items:n.overrides,search:n.search,"footer-props":{itemsPerPageOptions:[100],showFirstLastPage:!0,firstIcon:"mdi-page-first",lastIcon:"mdi-page-last",prevIcon:"mdi-chevron-left",nextIcon:"mdi-chevron-right"},"calculate-widths":"","multi-sort":"",dense:""},scopedSlots:n._u([{key:"item.delete",fn:function(t){var l=t.item;return $n().f[3]++,$n().s[6]++,[e("v-tooltip",{attrs:{bottom:""},scopedSlots:n._u([{key:"activator",fn:function(t){var i=t.on,o=t.attrs;return $n().f[4]++,$n().s[7]++,[e("v-icon",n._g(n._b({on:{click:function(e){return $n().f[5]++,$n().s[8]++,n.deleteOverride(l)}}},"v-icon",o,!1),i),[n._v(" mdi-delete ")])]}}],null,!0)},[e("span",[n._v("Delete Override")])])]}}])})],1)],1),e("v-card-actions",[e("v-spacer"),e("v-btn",{attrs:{color:"primary","data-test":"overrides-dialog-ok"},on:{click:function(e){$n().f[6]++,$n().s[9]++,n.show=!n.show}}},[n._v(" Ok ")])],1)],1)],1)},Bn=($n().s[10]++,[]);t(9321);function Ln(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",e="6eab611104a9acfa1bdb6fd1d2b8ea3368cb1288",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",statementMap:{0:{start:{line:13,column:4},end:{line:25,column:5}},1:{start:{line:28,column:4},end:{line:28,column:30}},2:{start:{line:29,column:4},end:{line:29,column:23}},3:{start:{line:34,column:8},end:{line:34,column:25}},4:{start:{line:37,column:8},end:{line:37,column:34}},5:{start:{line:43,column:6},end:{line:45,column:8}},6:{start:{line:44,column:8},end:{line:44,column:31}},7:{start:{line:48,column:20},end:{line:56,column:7}},8:{start:{line:50,column:39},end:{line:54,column:11}},9:{start:{line:57,column:6},end:{line:68,column:7}},10:{start:{line:58,column:8},end:{line:67,column:12}},11:{start:{line:66,column:12},end:{line:66,column:31}},12:{start:{line:71,column:6},end:{line:81,column:10}},13:{start:{line:79,column:22},end:{line:79,column:50}},14:{start:{line:80,column:10},end:{line:80,column:41}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:2},end:{line:12,column:3}},loc:{start:{line:12,column:9},end:{line:26,column:3}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:27,column:11},end:{line:27,column:12}},loc:{start:{line:27,column:23},end:{line:30,column:3}},line:27},2:{name:"(anonymous_2)",decl:{start:{line:33,column:6},end:{line:33,column:7}},loc:{start:{line:33,column:12},end:{line:35,column:7}},line:33},3:{name:"(anonymous_3)",decl:{start:{line:36,column:6},end:{line:36,column:7}},loc:{start:{line:36,column:17},end:{line:38,column:7}},line:36},4:{name:"(anonymous_4)",decl:{start:{line:42,column:18},end:{line:42,column:19}},loc:{start:{line:42,column:30},end:{line:46,column:5}},line:42},5:{name:"(anonymous_5)",decl:{start:{line:43,column:36},end:{line:43,column:37}},loc:{start:{line:43,column:48},end:{line:45,column:7}},line:43},6:{name:"(anonymous_6)",decl:{start:{line:47,column:20},end:{line:47,column:21}},loc:{start:{line:47,column:32},end:{line:69,column:5}},line:47},7:{name:"(anonymous_7)",decl:{start:{line:50,column:29},end:{line:50,column:30}},loc:{start:{line:50,column:39},end:{line:54,column:11}},line:50},8:{name:"(anonymous_8)",decl:{start:{line:65,column:16},end:{line:65,column:17}},loc:{start:{line:65,column:28},end:{line:67,column:11}},line:65},9:{name:"(anonymous_9)",decl:{start:{line:70,column:20},end:{line:70,column:21}},loc:{start:{line:70,column:36},end:{line:82,column:5}},line:70},10:{name:"(anonymous_10)",decl:{start:{line:78,column:14},end:{line:78,column:15}},loc:{start:{line:78,column:26},end:{line:81,column:9}},line:78}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},b:{},inputSourceMap:{version:3,sources:["OverridesDialog.vue"],names:[],mappings:";AAmGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"OverridesDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog v-model="show" width="700">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Overrides</span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-btn\n @click="clearOverrides"\n color="primary"\n data-test="overrides-dialog-clear-all"\n >\n Clear All Overrides\n </v-btn>\n\n <v-card-title>\n Overrides\n <v-spacer />\n <v-text-field\n v-model="search"\n append-icon="mdi-magnify"\n label="Search"\n single-line\n hide-details\n />\n </v-card-title>\n <v-data-table\n :headers="headers"\n :items="overrides"\n :search="search"\n :footer-props="{\n itemsPerPageOptions: [100],\n showFirstLastPage: true,\n firstIcon: \'mdi-page-first\',\n lastIcon: \'mdi-page-last\',\n prevIcon: \'mdi-chevron-left\',\n nextIcon: \'mdi-chevron-right\',\n }"\n calculate-widths\n multi-sort\n dense\n >\n <template v-slot:item.delete="{ item }">\n <v-tooltip bottom>\n <template v-slot:activator="{ on, attrs }">\n <v-icon\n @click="deleteOverride(item)"\n v-bind="attrs"\n v-on="on"\n >\n mdi-delete\n </v-icon>\n </template>\n <span>Delete Override</span>\n </v-tooltip>\n </template>\n </v-data-table>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="show = !show"\n color="primary"\n data-test="overrides-dialog-ok"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\n\nexport default {\n components: {},\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n },\n data() {\n return {\n api: null,\n overrides: [],\n search: \'\',\n headers: [\n { text: \'Target\', value: \'target_name\' },\n { text: \'Packet\', value: \'packet_name\' },\n { text: \'Item\', value: \'item_name\' },\n { text: \'Type\', value: \'value_type\' },\n { text: \'Value\', value: \'value\' },\n { text: \'Delete\', value: \'delete\' },\n ],\n }\n },\n created: function () {\n this.api = new OpenC3Api()\n this.getOverrides()\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n getOverrides: function () {\n this.api.get_overrides().then((result) => {\n this.overrides = result\n })\n },\n clearOverrides: function () {\n const items = [\n ...new Map(\n this.overrides.map((item) => [\n // Create a key based on target, packet, item so we remove duplicates\n `${item.target_name}__${item.packet_name}__${item.item_name}`,\n item,\n ])\n ).values(),\n ]\n for (let item of items) {\n this.api\n .normalize_tlm(\n item.target_name,\n item.packet_name,\n item.item_name,\n \'ALL\'\n )\n .then((result) => {\n this.overrides = []\n })\n }\n },\n deleteOverride: function (item) {\n this.api\n .normalize_tlm(\n item.target_name,\n item.packet_name,\n item.item_name,\n item.value_type\n )\n .then((result) => {\n var index = this.overrides.indexOf(item)\n this.overrides.splice(index, 1)\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6eab611104a9acfa1bdb6fd1d2b8ea3368cb1288"},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={components:{},props:{value:{type:Boolean,required:!0}},data:function(){return Ln().f[0]++,Ln().s[0]++,{api:null,overrides:[],search:"",headers:[{text:"Target",value:"target_name"},{text:"Packet",value:"packet_name"},{text:"Item",value:"item_name"},{text:"Type",value:"value_type"},{text:"Value",value:"value"},{text:"Delete",value:"delete"}]}},created:function(){Ln().f[1]++,Ln().s[1]++,this.api=new en,Ln().s[2]++,this.getOverrides()},computed:{show:{get:function(){return Ln().f[2]++,Ln().s[3]++,this.value},set:function(n){Ln().f[3]++,Ln().s[4]++,this.$emit("input",n)}}},methods:{getOverrides:function(){var n=this;Ln().f[4]++,Ln().s[5]++,this.api.get_overrides().then((function(e){Ln().f[5]++,Ln().s[6]++,n.overrides=e}))},clearOverrides:function(){var n=this;Ln().f[6]++;var e=(Ln().s[7]++,(0,u.Z)(new Map(this.overrides.map((function(n){return Ln().f[7]++,Ln().s[8]++,["".concat(n.target_name,"__").concat(n.packet_name,"__").concat(n.item_name),n]}))).values()));Ln().s[9]++;var t,l=(0,a.Z)(e);try{for(l.s();!(t=l.n()).done;){var i=t.value;Ln().s[10]++,this.api.normalize_tlm(i.target_name,i.packet_name,i.item_name,"ALL").then((function(e){Ln().f[8]++,Ln().s[11]++,n.overrides=[]}))}}catch(o){l.e(o)}finally{l.f()}},deleteOverride:function(n){var e=this;Ln().f[9]++,Ln().s[12]++,this.api.normalize_tlm(n.target_name,n.packet_name,n.item_name,n.value_type).then((function(t){Ln().f[10]++;var l=(Ln().s[13]++,e.overrides.indexOf(n));Ln().s[14]++,e.overrides.splice(l,1)}))}}},Zn=Pn,Un=(0,D.Z)(Zn,Nn,Bn,!1,null,null,null),Hn=Un.exports;function Gn(){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 Gn=function(){return s},s}Gn(),Gn().s[0]++;var qn=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:{persistent:"",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",{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?(Gn().b[0][0]++,e("v-row",[e("v-card-subtitle",{staticStyle:{"white-space":"pre-line"}},[n._v(n._s(n.subtitle))])],1)):(Gn().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?(Gn().b[1][0]++,e("v-row",{staticClass:"mt-1"},[e("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:n._s(n.details)}})])):(Gn().b[1][1]++,n._e())],1)],1),"combo"===n.layout?(Gn().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){Gn().f[2]++,Gn().s[5]++,n.selectOkDisabled=!1}},model:{value:n.selectedItem,callback:function(e){Gn().f[3]++,Gn().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)):(Gn().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 Gn().f[4]++,Gn().s[7]++,e("div",{key:l},[e("v-btn",{staticClass:"ma-1",attrs:{"data-test":"prompt-".concat(t.text),color:t.value?(Gn().b[3][0]++,"primary"):(Gn().b[3][1]++,"")},on:{click:function(e){return Gn().f[5]++,Gn().s[8]++,n.submitWrapper(t.value)}}},[n._v(" "+n._s(t.text)+" ")])],1)}))],2)],1))],1)],1)},jn=(Gn().s[9]++,[]);function Vn(){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 Vn=function(){return s},s}Vn();var zn={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 Vn().f[0]++,Vn().s[0]++,[]}},layout:{type:String,default:"horizontal"},value:Boolean},data:function(){return Vn().f[1]++,Vn().s[1]++,{selectOkDisabled:!0,selectedItem:null}},computed:{show:{get:function(){return Vn().f[2]++,Vn().s[2]++,this.value},set:function(n){Vn().f[3]++,Vn().s[3]++,this.$emit("input",n)}},layoutClass:function(){Vn().f[4]++;var n=(Vn().s[4]++,"d-flex align-start");return Vn().s[5]++,"vertical"===this.layout?(Vn().b[0][0]++,Vn().s[6]++,"".concat(n," flex-column")):(Vn().b[0][1]++,Vn().s[7]++,"".concat(n," flex-row"))}},methods:{submitWrapper:function(n){Vn().f[5]++,Vn().s[8]++,this.selectedItem=n,Vn().s[9]++,this.submitHandler()},submitHandler:function(){Vn().f[6]++,Vn().s[10]++,this.$emit("response",this.selectedItem)},cancelHandler:function(){Vn().f[7]++,Vn().s[11]++,this.$emit("response","Cancel")}}},Wn=zn,Yn=(0,D.Z)(Wn,qn,jn,!1,null,null,null),Kn=Yn.exports;function Jn(){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 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(" 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){Jn().f[2]++,Jn().s[5]++,n.show=!n.show}}},[n._v(" Ok ")])],1)],1)],1)},Qn=(Jn().s[6]++,[]);function ne(){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 ne=function(){return s},s}ne();var ee={components:{},props:{value:{type:Boolean,required:!0},text:{type:String,required:!0}},computed:{show:{get:function(){return ne().f[0]++,ne().s[0]++,this.value},set:function(n){ne().f[1]++,ne().s[1]++,this.$emit("input",n)}}},methods:{downloadResults:function(){ne().f[2]++;var n=(ne().s[2]++,new Blob([this.text],{type:"text/plain"})),e=(ne().s[3]++,document.createElement("a"));ne().s[4]++,e.href=URL.createObjectURL(n),ne().s[5]++,e.setAttribute("download",(0,S.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss")+"_suite_results.txt"),ne().s[6]++,e.click()}}},te=ee,le=(0,D.Z)(te,Xn,Qn,!1,null,null,null),ie=le.exports;function oe(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",e="fab91814d1f664d7dcc6f1b2beb8e7a3c2545224",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:851}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:434},end:{line:1,column:450}},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:418},end:{line:1,column:419}},loc:{start:{line:1,column:433},end:{line:1,column:451}},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:"fab91814d1f664d7dcc6f1b2beb8e7a3c2545224"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return oe=function(){return s},s}oe(),oe().s[0]++;var se=function(){oe().f[0]++;var n=(oe().s[1]++,this),e=(oe().s[2]++,n._self._c);return oe().s[3]++,e("v-dialog",{attrs:{width:"600"},model:{value:n.show,callback:function(e){oe().f[1]++,oe().s[4]++,n.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),e("span",[n._v("Script Environment Variables")]),e("v-spacer")],1),e("div",{staticClass:"pa-2"},[e("v-card-text",[e("environment-chooser",{model:{value:n.selected,callback:function(e){oe().f[2]++,oe().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)},ae=(oe().s[6]++,[]),ce=function(){var n=this,e=n._self._c;return e("div",[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.addEnvVar}},[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.delEnvVar(l)}}},[n._v(" mdi-delete ")])],1)]}}],null,!0)},[e("span",[n._v(" Delete Environment ")])])],1)])]}))],2)])],1)},re=[],ue={props:{value:{type:Array,required:!0}},computed:{selected:{get:function(){return this.value},set:function(n){this.$emit("input",n)}}},methods:{addEnvVar:function(){this.selected.push({key:"",value:""})},delEnvVar:function(n){this.selected.splice(n,1)}}},me=ue,de=(0,D.Z)(me,ce,re,!1,null,null,null),Ae=de.exports;function pe(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",e="65e119e98de479afb4b1ef5c4afa2ff2f029eeb0",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",statementMap:{0:{start:{line:19,column:4},end:{line:21,column:5}},1:{start:{line:24,column:4},end:{line:24,column:26}},2:{start:{line:29,column:8},end:{line:29,column:25}},3:{start:{line:32,column:8},end:{line:32,column:34}},4:{start:{line:38,column:6},end:{line:38,column:48}},5:{start:{line:41,column:6},end:{line:41,column:46}},6:{start:{line:42,column:6},end:{line:42,column:28}},7:{start:{line:45,column:6},end:{line:45,column:28}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:18,column:2},end:{line:18,column:3}},loc:{start:{line:18,column:9},end:{line:22,column:3}},line:18},1:{name:"(anonymous_1)",decl:{start:{line:23,column:11},end:{line:23,column:12}},loc:{start:{line:23,column:23},end:{line:25,column:3}},line:23},2:{name:"(anonymous_2)",decl:{start:{line:28,column:6},end:{line:28,column:7}},loc:{start:{line:28,column:12},end:{line:30,column:7}},line:28},3:{name:"(anonymous_3)",decl:{start:{line:31,column:6},end:{line:31,column:7}},loc:{start:{line:31,column:17},end:{line:33,column:7}},line:31},4:{name:"(anonymous_4)",decl:{start:{line:37,column:21},end:{line:37,column:22}},loc:{start:{line:37,column:33},end:{line:39,column:5}},line:37},5:{name:"(anonymous_5)",decl:{start:{line:40,column:23},end:{line:40,column:24}},loc:{start:{line:40,column:35},end:{line:43,column:5}},line:40},6:{name:"(anonymous_6)",decl:{start:{line:44,column:12},end:{line:44,column:13}},loc:{start:{line:44,column:24},end:{line:46,column:5}},line:44}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{},inputSourceMap:{version:3,sources:["ScriptEnvironmentDialog.vue"],names:[],mappings:";AA4DA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ScriptEnvironmentDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Script Environment Variables</span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <environment-chooser v-model="selected" />\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancel"\n class="mx-2"\n outlined\n data-test="environment-dialog-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click="updateEnvironment"\n class="mx-2"\n color="primary"\n data-test="environment-dialog-save"\n :disabled="!!inputError"\n >\n Save\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport EnvironmentChooser from \'@openc3/tool-common/src/components/EnvironmentChooser\'\n\nexport default {\n components: {\n EnvironmentChooser,\n },\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n inputEnvironment: {\n type: Array,\n required: true,\n },\n },\n data() {\n return {\n selected: [],\n }\n },\n mounted: function () {\n this.loadEnvironment()\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n loadEnvironment: function () {\n this.selected = [...this.inputEnvironment]\n },\n updateEnvironment: function () {\n this.$emit(\'environment\', this.selected)\n this.show = !this.show\n },\n cancel: function () {\n this.show = !this.show\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"65e119e98de479afb4b1ef5c4afa2ff2f029eeb0"},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={components:{EnvironmentChooser:Ae},props:{value:{type:Boolean,required:!0},inputEnvironment:{type:Array,required:!0}},data:function(){return pe().f[0]++,pe().s[0]++,{selected:[]}},mounted:function(){pe().f[1]++,pe().s[1]++,this.loadEnvironment()},computed:{show:{get:function(){return pe().f[2]++,pe().s[2]++,this.value},set:function(n){pe().f[3]++,pe().s[3]++,this.$emit("input",n)}}},methods:{loadEnvironment:function(){pe().f[4]++,pe().s[4]++,this.selected=(0,u.Z)(this.inputEnvironment)},updateEnvironment:function(){pe().f[5]++,pe().s[5]++,this.$emit("environment",this.selected),pe().s[6]++,this.show=!this.show},cancel:function(){pe().f[6]++,pe().s[7]++,this.show=!this.show}}},fe=he,ve=(0,D.Z)(fe,se,ae,!1,null,null,null),Ce=ve.exports;function be(){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 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("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){be().f[1]++,be().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){be().f[2]++,be().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){be().f[3]++,be().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 be().f[4]++,be().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:(be().b[0][0]++,n.disableButtons||(be().b[0][1]++,!n.setupSuiteEnabled))},on:{click:function(e){return be().f[5]++,be().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:(be().b[1][0]++,n.disableButtons||(be().b[1][1]++,!n.teardownSuiteEnabled))},on:{click:function(e){return be().f[6]++,be().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){be().f[7]++,be().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){be().f[8]++,be().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){be().f[9]++,be().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 be().f[10]++,be().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:(be().b[2][0]++,n.disableButtons||(be().b[2][1]++,!n.setupGroupEnabled))},on:{click:function(e){return be().f[11]++,be().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:(be().b[3][0]++,n.disableButtons||(be().b[3][1]++,!n.teardownGroupEnabled))},on:{click:function(e){return be().f[12]++,be().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){be().f[13]++,be().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){be().f[14]++,be().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){be().f[15]++,be().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 be().f[16]++,be().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)])},ye=(be().s[20]++,[]);function _e(){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 _e=function(){return s},s}_e();var we={props:{suiteMap:{type:Object,required:!0},disableButtons:{type:Boolean,required:!0}},data:function(){return _e().f[0]++,_e().s[0]++,{suites:[],groups:[],scripts:[],suite:"",group:"",script:"",options:["pauseOnError","manual","continueAfterError"]}},computed:{setupSuiteEnabled:function(){return _e().f[1]++,_e().s[1]++,_e().b[1][0]++,this.suite&&(_e().b[1][1]++,this.suiteMap[this.suite].setup)?(_e().b[0][0]++,_e().s[2]++,!0):(_e().b[0][1]++,_e().s[3]++,!1)},teardownSuiteEnabled:function(){return _e().f[2]++,_e().s[4]++,_e().b[3][0]++,this.suite&&(_e().b[3][1]++,this.suiteMap[this.suite].teardown)?(_e().b[2][0]++,_e().s[5]++,!0):(_e().b[2][1]++,_e().s[6]++,!1)},setupGroupEnabled:function(){return _e().f[3]++,_e().s[7]++,_e().b[5][0]++,this.suite&&(_e().b[5][1]++,this.group)&&(_e().b[5][2]++,this.suiteMap[this.suite].groups[this.group].setup)?(_e().b[4][0]++,_e().s[8]++,!0):(_e().b[4][1]++,_e().s[9]++,!1)},teardownGroupEnabled:function(){return _e().f[4]++,_e().s[10]++,_e().b[7][0]++,this.suite&&(_e().b[7][1]++,this.group)&&(_e().b[7][2]++,this.suiteMap[this.suite].groups[this.group].teardown)?(_e().b[6][0]++,_e().s[11]++,!0):(_e().b[6][1]++,_e().s[12]++,!1)}},created:function(){_e().f[5]++,_e().s[13]++,this.initSuites()},watch:{suiteMap:{handler:function(n,e){_e().f[6]++,_e().s[14]++,this.updateSuiteMap()},deep:!0}},methods:{updateSuiteMap:function(){_e().f[7]++,_e().s[15]++,this.suites=Object.keys(this.suiteMap),_e().s[16]++,_e().b[9][0]++,void 0==this.suiteMap[this.suite]||(_e().b[9][1]++,void 0==this.suiteMap[this.suite].groups[this.group])?(_e().b[8][0]++,_e().s[17]++,this.initSuites()):(_e().b[8][1]++,_e().s[18]++,this.groups=Object.keys(this.suiteMap[this.suite].groups),_e().s[19]++,this.scripts=this.suiteMap[this.suite].groups[this.group].scripts)},initSuites:function(){_e().f[8]++,_e().s[20]++,this.suites=Object.keys(this.suiteMap),_e().s[21]++,this.suiteChanged(this.suites[0])},suiteChanged:function(n){_e().f[9]++,_e().s[22]++,this.suite=n,_e().s[23]++,this.group="",_e().s[24]++,this.script="",_e().s[25]++,this.groups=Object.keys(this.suiteMap[n].groups),_e().s[26]++,this.groupChanged(this.groups[0])},groupChanged:function(n){_e().f[10]++,_e().s[27]++,this.group=n,_e().s[28]++,this.script="",_e().s[29]++,this.scripts=this.suiteMap[this.suite].groups[n].scripts,_e().s[30]++,this.scriptChanged(this.scripts[0])},scriptChanged:function(n){_e().f[11]++,_e().s[31]++,this.script=n}}},ke=we,xe=(t(4723),(0,D.Z)(ke,ge,ye,!1,null,"3372ac08",null)),Se=xe.exports;function Re(){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 Re=function(){return s},s}Re(),Re().s[0]++;var Me=function(){Re().f[0]++;var n=(Re().s[1]++,this),e=(Re().s[2]++,n._self._c);return Re().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 Re().f[1]++,Re().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 Re().f[2]++,Re().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){Re().f[3]++,Re().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)},Ee=(Re().s[7]++,[]);function Oe(){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 Oe=function(){return s},s}Oe();var Te={props:{value:{type:Array,required:!0}},data:function(){return Oe().f[0]++,Oe().s[0]++,{search:"",headers:[{text:"Message",value:"message"}]}},computed:{messages:{get:function(){return Oe().f[1]++,Oe().s[1]++,this.value},set:function(n){Oe().f[2]++,Oe().s[2]++,this.$emit("input",n)}}},methods:{downloadLog:function(){Oe().f[3]++;var n=(Oe().s[3]++,this.messages.map((function(n){return Oe().f[4]++,Oe().s[4]++,n.message})).join("\n")),e=(Oe().s[5]++,new Blob([n],{type:"text/plain"})),t=(Oe().s[6]++,document.createElement("a"));Oe().s[7]++,t.href=URL.createObjectURL(e),Oe().s[8]++,t.setAttribute("download",(0,S.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss")+"_sr_message_log.txt"),Oe().s[9]++,t.click()},clearLog:function(){var n=this;Oe().f[5]++,Oe().s[10]++,this.$dialog.confirm("Are you sure you want to clear the logs?",{okText:"Clear",cancelText:"Cancel"}).then((function(e){Oe().f[6]++,Oe().s[11]++,n.messages=[]}))}}},De=Te,Fe=(0,D.Z)(De,Me,Ee,!1,null,null,null),Ie=Fe.exports,$e=t(9091),Ne=t(8007);function Be(){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 Be=function(){return s},s}Be(),Be().s[0]++;var Le=function(n){return Be().f[0]++,Be().s[1]++,k.get("/openc3-api/autocomplete/keywords/".concat(n))};Be().s[2]++;var Pe=function(n){return Be().f[1]++,Be().s[3]++,k.get("/openc3-api/autocomplete/data/".concat(n))};Be().s[4]++;var Ze=function(n,e){return Be().f[2]++,Be().s[5]++,n.reduce((function(n,t){Be().f[3]++;var l=(Be().s[6]++,e(t));return Be().s[7]++,n[l]?(Be().b[0][0]++,Be().s[8]++,n[l].push(t)):(Be().b[0][1]++,Be().s[9]++,n[l]=[t]),Be().s[10]++,n}),{})};function Ue(){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 Ue=function(){return s},s}Ue(),Ue().s[0]++;var He=function(n){Ue().f[0]++;var e=(Ue().s[1]++,"(^|[{\\(\\s])"),t=(Ue().s[2]++,"[\\s\\(]['\"]"),l=(Ue().s[3]++,"(\\S+\\s?){0,3}");return Ue().s[4]++,new RegExp("".concat(e).concat(n).concat(t).concat(l,"$"))},Ge=(0,p.Z)((function n(e){var t=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Ue().b[0][0]++,function(){Ue().f[2]++}),i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(Ue().b[1][0]++,function(){Ue().f[3]++});(0,A.Z)(this,n),(0,nn.Z)(this,"getCompletions",(Ue().s[13]++,function(n,e,t,l,i){Ue().f[6]++;var o=(Ue().s[14]++,[]),s=(Ue().s[15]++,e.doc.$lines[t.row].slice(0,t.column));Ue().s[16]++,this.keywordExpressions.some((function(n){return Ue().f[7]++,Ue().s[17]++,s.match(n)}))?(Ue().b[2][0]++,Ue().s[18]++,o=this.autocompleteData):Ue().b[2][1]++,Ue().s[19]++,i(null,(0,u.Z)(o))})),Ue().f[1]++,Ue().s[5]++,this.keywordExpressions=[],Ue().s[6]++,this.autocompleteData=[],Ue().s[7]++,Le(e).then((function(n){Ue().f[4]++,Ue().s[8]++,t.keywordExpressions=n.data.map(He),Ue().s[9]++,i()})),Ue().s[10]++,Pe(e).then((function(n){Ue().f[5]++,Ue().s[11]++,t.autocompleteData=n.data,Ue().s[12]++,l()}))}));function qe(){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 qe=function(){return s},s}qe();var je=function(n){(0,$e.Z)(t,n);var e=(0,Ne.Z)(t);function t(){return(0,A.Z)(this,t),qe().f[0]++,qe().s[0]++,e.call(this,"cmd")}return(0,p.Z)(t)}(Ge),Ve=t(3484);function ze(){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 ze=function(){return s},s}ze();var We=function(n){(0,$e.Z)(t,n);var e=(0,Ne.Z)(t);function t(){var n;return(0,A.Z)(this,t),ze().f[0]++,ze().s[0]++,n=e.call(this,"tlm",(function(){ze().f[1]++,ze().s[1]++,n.groupedPacketData=n.autocompleteData.reduce((function(n,e){ze().f[2]++;var t=(ze().s[2]++,e.caption.match(/\S+\s\S+/)[0]),l=(ze().s[3]++,e.snippet.replace("".concat(t," "),"")),i=(ze().s[4]++,{caption:l,snippet:l,meta:"item"});return ze().s[5]++,n[t]?(ze().b[0][0]++,ze().s[6]++,n[t].push(i)):(ze().b[0][1]++,ze().s[7]++,n[t]=[i]),ze().s[8]++,n}),{}),ze().s[9]++,n.packets=Object.keys(n.groupedPacketData).map((function(n){return ze().f[3]++,ze().s[10]++,{caption:n,snippet:n,meta:"packet"}}))})),(0,nn.Z)((0,Ve.Z)(n),"getCompletions",(ze().s[11]++,function(n,e,t,l,i){ze().f[4]++;var o=(ze().s[12]++,[]),s=(ze().s[13]++,e.doc.$lines[t.row].slice(0,t.column));if(ze().s[14]++,this.keywordExpressions.some((function(n){return ze().f[5]++,ze().s[15]++,s.match(n)}))){ze().b[1][0]++;var a=(ze().s[16]++,Object.keys(this.groupedPacketData).find((function(n){return ze().f[6]++,ze().s[17]++,s.includes(n)})));ze().s[18]++,a?(ze().b[2][0]++,ze().s[19]++,o=this.groupedPacketData[a]):(ze().b[2][1]++,ze().s[20]++,o=this.packets)}else ze().b[1][1]++;ze().s[21]++,i(null,o)})),n}return(0,p.Z)(t)}(Ge);t(8319),t(3430);function Ye(){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 Ye=function(){return s},s}Ye(),Ye().s[0]++;var Ke=function(n){Ye().f[0]++;var e=(Ye().s[1]++,"(^|[{\\(\\s])"),t=(Ye().s[2]++,"((\\s.+)|(\\(.+\\)))");return Ye().s[3]++,new RegExp("".concat(e).concat(n).concat(t))},Je=(Ye().s[4]++,/#\{.+\}/),Xe=(Ye().s[5]++,/['"],\s?['"]/),Qe=(0,p.Z)((function n(){var e=this;(0,A.Z)(this,n),(0,nn.Z)(this,"checkText",(Ye().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 Ye().f[6]++,Ye().s[18]++,t=e.split("\n").reduce((function(n,e,t){if(Ye().f[7]++,Ye().s[19]++,e=e.trim(),Ye().s[20]++,e.match(/^#/))return Ye().b[0][0]++,Ye().s[21]++,n;Ye().b[0][1]++;var l=(Ye().s[22]++,s.cmdKeywordExpressions.reduce((function(n,t){return Ye().f[8]++,Ye().s[23]++,Ye().b[1][0]++,n||(Ye().b[1][1]++,e.match(t))}),null)),i=(Ye().s[24]++,s.tlmKeywordExpressions.reduce((function(n,t){return Ye().f[9]++,Ye().s[25]++,Ye().b[2][0]++,n||(Ye().b[2][1]++,e.match(t))}),null));if(Ye().s[26]++,Ye().b[4][0]++,!l&&(Ye().b[4][1]++,!i))return Ye().b[3][0]++,Ye().s[27]++,n;Ye().b[3][1]++;var o=(Ye().s[28]++,(Ye().b[5][0]++,l||(Ye().b[5][1]++,i))[0]),a=(Ye().s[29]++,o.substring(o.match(/[\(\s)]/).index+1).replace(/\)\s*$/,""));if(Ye().s[30]++,a.match(Je))return Ye().b[6][0]++,Ye().s[31]++,n.linesToSkip.push(t+1),Ye().s[32]++,n;Ye().b[6][1]++;var c=(Ye().s[33]++,!!a.match(Xe)),r=(Ye().s[34]++,a.split(c?(Ye().b[7][0]++,","):(Ye().b[7][1]++," ")));if(Ye().s[35]++,r.length<2)return Ye().b[8][0]++,Ye().s[36]++,n;Ye().b[8][1]++;var u=(Ye().s[37]++,{target:r[0],packet:r[1]});if(Ye().s[38]++,i)Ye().b[9][0]++,Ye().s[39]++,u.item=r[2];else{Ye().b[9][1]++;var m=(Ye().s[40]++,r.slice(2));Ye().s[41]++,c?(Ye().b[10][0]++,Ye().s[42]++,u.params=m.map((function(n){return Ye().f[10]++,Ye().s[43]++,n.split("=>")[0]}))):(Ye().b[10][1]++,Ye().s[44]++,u.params=m.filter((function(n,e){return Ye().f[11]++,Ye().s[45]++,e%2})))}for(var d in Ye().s[46]++,u)Ye().s[47]++,"string"===typeof u[d]?(Ye().b[11][0]++,Ye().s[48]++,u[d]=u[d].replace(/['"]/g,"").trim()):(Ye().b[11][1]++,Ye().s[49]++,u[d]=u[d].map((function(n){return Ye().f[12]++,Ye().s[50]++,n.replace(/['"]/g,"").trim()})));return Ye().s[51]++,n.linesToCheck.push({line:e,mnemonic:u,lineNumber:t+1}),Ye().s[52]++,n}),{linesToCheck:[],linesToSkip:[]}),l=t.linesToCheck,i=t.linesToSkip,Ye().s[53]++,n.next=5,this._checkLines(l);case 5:return o=n.sent,Ye().s[54]++,n.abrupt("return",{skipped:i.sort(),problems:o.sort((function(n,e){return Ye().f[13]++,Ye().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",(Ye().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:Ye().f[14]++,Ye().s[57]++,l=[],Ye().s[58]++,i=Ze(t,(function(n){return Ye().f[15]++,Ye().s[59]++,n.mnemonic.target})),Ye().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,Ye().s[61]++,e.targets[o]){n.next=17;break}Ye().b[12][0]++,Ye().s[62]++,r=(0,a.Z)(i[o]);try{for(r.s();!(u=r.n()).done;)m=u.value,Ye().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 Ye().s[64]++,n.abrupt("continue",5);case 17:Ye().b[12][1]++;case 18:Ye().s[65]++,d=Ze(i[o],(function(n){return Ye().f[16]++,Ye().s[66]++,n.mnemonic.packet})),Ye().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,Ye().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,Ye().s[69]++,i=t.mnemonic.item?(Ye().b[13][0]++,"tlm"):(Ye().b[13][1]++,"cmd"),Ye().s[70]++,e.targets[o][i]){n.next=14;break}return Ye().b[14][0]++,Ye().s[71]++,r=t.mnemonic.item?(Ye().b[15][0]++,"get_all_telemetry"):(Ye().b[15][1]++,"get_all_commands"),Ye().s[72]++,n.next=9,e.api[r](o);case 9:u=n.sent,Ye().s[73]++,e.targets[o][i]=u.reduce((function(n,e){return Ye().f[17]++,Ye().s[74]++,n[e.packet_name]=e.items.map((function(n){return Ye().f[18]++,Ye().s[75]++,n.name})),Ye().s[76]++,n}),{}),n.next=15;break;case 14:Ye().b[14][1]++;case 15:if(Ye().s[77]++,m=e.targets[o][i][A],Ye().s[78]++,m){n.next=25;break}return Ye().b[16][0]++,Ye().s[79]++,l.push((0,s.Z)((0,s.Z)({},t),{},{error:"".concat("tlm"===i?(Ye().b[17][0]++,"Packet"):(Ye().b[17][1]++,"Command"),' "').concat(o," ").concat(A,'" does not exist.')})),Ye().s[80]++,n.abrupt("return","continue");case 25:Ye().b[16][1]++;case 26:if(Ye().s[81]++,!t.mnemonic.item){n.next=41;break}if(Ye().b[18][0]++,Ye().s[82]++,m.some((function(n){return Ye().f[19]++,Ye().s[83]++,n===t.mnemonic.item}))){n.next=38;break}return Ye().b[19][0]++,Ye().s[84]++,l.push((0,s.Z)((0,s.Z)({},t),{},{error:'Item "'.concat(o," ").concat(A," ").concat(t.mnemonic.item,'" does not exist.')})),Ye().s[85]++,n.abrupt("return","continue");case 38:Ye().b[19][1]++;case 39:n.next=62;break;case 41:Ye().b[18][1]++,Ye().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,Ye().s[87]++,m.some((function(n){return Ye().f[20]++,Ye().s[88]++,n===e}))){n.next=10;break}return Ye().b[20][0]++,Ye().s[89]++,l.push((0,s.Z)((0,s.Z)({},t),{},{error:'Command "'.concat(o," ").concat(A,'" param "').concat(e,'" does not exist.')})),Ye().s[90]++,n.abrupt("return","continue");case 10:Ye().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 Ye().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)}}())),Ye().f[1]++,Ye().s[6]++,this.api=new en,Ye().s[7]++,this.targets={},Ye().s[8]++,this.api.get_target_list().then((function(n){Ye().f[2]++,Ye().s[9]++,n.forEach((function(n){Ye().f[3]++,Ye().s[10]++,e.targets[n]={cmd:null,tlm:null}}))})),Ye().s[11]++,this.cmdKeywordExpressions=[],Ye().s[12]++,Le("cmd").then((function(n){Ye().f[4]++,Ye().s[13]++,e.cmdKeywordExpressions=n.data.map(Ke)})),Ye().s[14]++,this.tlmKeywordExpressions=[],Ye().s[15]++,Le("tlm").then((function(n){Ye().f[5]++,Ye().s[16]++,e.tlmKeywordExpressions=n.data.map(Ke)}))}));function nt(){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 nt=function(){return s},s}nt();var et=t(2124),tt=t(2645),lt=t(2842);t(2356);function it(){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 it=function(){return s},s}it();var ot=new WeakMap,st=new WeakMap,at=new WeakMap,ct=new WeakMap,rt=new WeakMap,ut=new WeakMap,mt=new WeakMap,dt=new WeakMap,At=new WeakMap,pt=(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,et.Z)(this,ot,{writable:!0,value:void 0}),(0,et.Z)(this,st,{writable:!0,value:void 0}),(0,et.Z)(this,at,{writable:!0,value:void 0}),(0,et.Z)(this,ct,{writable:!0,value:void 0}),(0,et.Z)(this,rt,{writable:!0,value:void 0}),(0,nn.Z)(this,"refresh",(it().s[5]++,function(){it().f[1]++;var n=(it().s[6]++,(0,tt.Z)(l,st).session);it().s[7]++,(0,tt.Z)(l,At).call(l,n);var e=(it().s[8]++,{lines:n.doc.$lines,action:"insert",start:{row:0},end:{row:n.doc.$lines.length}});it().s[9]++,l.annotate(e,n)})),(0,nn.Z)(this,"annotate",(it().s[10]++,function(n,e){if(it().f[2]++,it().s[11]++,n.lines.length>1)switch(it().b[0][0]++,it().s[12]++,n.action){case"insert":it().b[1][0]++,it().s[13]++,(0,tt.Z)(l,dt).call(l,e,n.start.row,n.lines.length-1),it().s[14]++;break;case"remove":it().b[1][1]++,it().s[15]++,(0,tt.Z)(l,dt).call(l,e,n.start.row+1,1-n.lines.length),it().s[16]++;break}else it().b[0][1]++;it().s[17]++;for(var t=(it().s[18]++,n.start.row);t<=n.end.row;t++){var i,o,s=(it().s[19]++,null===(i=e.doc.$lines[t])||void 0===i||null===(o=i.match((0,tt.Z)(l,at)))||void 0===o?void 0:o.index);it().s[20]++,void 0!==s?(it().b[2][0]++,it().s[21]++,it().b[3][0]++,0!==s&&(it().b[3][1]++,s+=1),it().s[22]++,(0,tt.Z)(l,ut).call(l,e,{row:t,column:s,text:(0,tt.Z)(l,ct),type:(0,tt.Z)(l,rt),openc3Id:(0,tt.Z)(l,ot)})):(it().b[2][1]++,it().s[23]++,"remove"===n.action?(it().b[4][0]++,it().s[24]++,(0,tt.Z)(l,mt).call(l,e,t)):it().b[4][1]++)}})),(0,et.Z)(this,ut,{writable:!0,value:(it().s[25]++,function(n,e){it().f[3]++,it().s[26]++,(0,tt.Z)(l,mt).call(l,n,e.row),it().s[27]++,n.setAnnotations([].concat((0,u.Z)(n.getAnnotations()),[e]))})}),(0,et.Z)(this,mt,{writable:!0,value:(it().s[28]++,function(n,e){it().f[4]++,it().s[29]++,n.setAnnotations(n.getAnnotations().filter((function(n){return it().f[5]++,it().s[30]++,it().b[5][0]++,n.openc3Id!==(0,tt.Z)(l,ot)||(it().b[5][1]++,n.row!==e)})))})}),(0,et.Z)(this,dt,{writable:!0,value:(it().s[31]++,function(n,e,t){it().f[6]++,it().s[32]++,n.setAnnotations(n.getAnnotations().map((function(n){return it().f[7]++,it().s[33]++,n.row>e?(it().b[6][0]++,it().s[34]++,n.row+=t):it().b[6][1]++,it().s[35]++,n})))})}),(0,et.Z)(this,At,{writable:!0,value:(it().s[36]++,function(n){it().f[8]++,it().s[37]++,n.setAnnotations(n.getAnnotations().filter((function(n){return it().f[9]++,it().s[38]++,n.openc3Id!==(0,tt.Z)(l,ot)})))})}),it().f[0]++,it().s[0]++,(0,lt.Z)(this,ot,"regexAnnotator-".concat(Math.floor(1e7*Math.random()))),it().s[1]++,(0,lt.Z)(this,st,e),it().s[2]++,(0,lt.Z)(this,at,i),it().s[3]++,(0,lt.Z)(this,ct,o),it().s[4]++,(0,lt.Z)(this,rt,s)}));function ht(){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 ht=function(){return s},s}ht();var ft=function(n){(0,$e.Z)(t,n);var e=(0,Ne.Z)(t);function t(n){(0,A.Z)(this,t),ht().f[0]++;var l=(ht().s[0]++,"(^|[{\\s])"),i=(ht().s[1]++,"sleep"),o=(ht().s[2]++,"[\\(\\s]");return ht().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)}(pt);function vt(){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 vt=function(){return s},s}function Ct(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",e="aabb6894a2825136aa0f3e2b29d99f8d2449be36",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",statementMap:{0:{start:{line:1,column:13},end:{line:8,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:7,column:605}},4:{start:{line:1,column:667},end:{line:1,column:688}},5:{start:{line:4,column:71},end:{line:4,column:381}},6:{start:{line:4,column:146},end:{line:4,column:176}},7:{start:{line:4,column:423},end:{line:4,column:635}},8:{start:{line:4,column:498},end:{line:4,column:525}},9:{start:{line:4,column:679},end:{line:4,column:896}},10:{start:{line:4,column:754},end:{line:4,column:783}},11:{start:{line:4,column:1434},end:{line:4,column:1457}},12:{start:{line:7,column:74},end:{line:7,column:587}},13:{start:{line:7,column:249},end:{line:7,column:283}},14:{start:{line:7,column:334},end:{line:7,column:376}},15:{start:{line:9,column:22},end:{line:9,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:8,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:651},end:{line:1,column:652}},loc:{start:{line:1,column:666},end:{line:1,column:689}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:4,column:52},end:{line:4,column:53}},loc:{start:{line:4,column:70},end:{line:4,column:382}},line:4},3:{name:"(anonymous_3)",decl:{start:{line:4,column:129},end:{line:4,column:130}},loc:{start:{line:4,column:145},end:{line:4,column:177}},line:4},4:{name:"(anonymous_4)",decl:{start:{line:4,column:404},end:{line:4,column:405}},loc:{start:{line:4,column:422},end:{line:4,column:636}},line:4},5:{name:"(anonymous_5)",decl:{start:{line:4,column:481},end:{line:4,column:482}},loc:{start:{line:4,column:497},end:{line:4,column:526}},line:4},6:{name:"(anonymous_6)",decl:{start:{line:4,column:660},end:{line:4,column:661}},loc:{start:{line:4,column:678},end:{line:4,column:897}},line:4},7:{name:"(anonymous_7)",decl:{start:{line:4,column:737},end:{line:4,column:738}},loc:{start:{line:4,column:753},end:{line:4,column:784}},line:4},8:{name:"(anonymous_8)",decl:{start:{line:4,column:1418},end:{line:4,column:1419}},loc:{start:{line:4,column:1433},end:{line:4,column:1458}},line:4},9:{name:"(anonymous_9)",decl:{start:{line:7,column:55},end:{line:7,column:56}},loc:{start:{line:7,column:73},end:{line:7,column:588}},line:7},10:{name:"(anonymous_10)",decl:{start:{line:7,column:232},end:{line:7,column:233}},loc:{start:{line:7,column:248},end:{line:7,column:284}},line:7},11:{name:"(anonymous_11)",decl:{start:{line:7,column:323},end:{line:7,column:324}},loc:{start:{line:7,column:333},end:{line:7,column:377}},line:7}},branchMap:{0:{loc:{start:{line:7,column:159},end:{line:7,column:218}},type:"binary-expr",locations:[{start:{line:7,column:159},end:{line:7,column:177}},{start:{line:7,column:181},end:{line:7,column:218}}],line:7},1:{loc:{start:{line:7,column:404},end:{line:7,column:508}},type:"cond-expr",locations:[{start:{line:7,column:440},end:{line:7,column:474}},{start:{line:7,column:475},end:{line:7,column:508}}],line:7}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},b:{0:[0,0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"aabb6894a2825136aa0f3e2b29d99f8d2449be36"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Ct=function(){return s},s}vt(),Ct(),Ct().s[0]++;var bt=function(){Ct().f[0]++;var n=(Ct().s[1]++,this),e=(Ct().s[2]++,n._self._c);return Ct().s[3]++,e("div",[e("v-card",{attrs:{flat:""}},[e("v-card-text",{staticClass:"overflow-y-auto",attrs:{"max-height":"400"}},[e("div",{staticClass:"row"},[e("div",{staticClass:"v-card__title col-2"},[n._v("Running Scripts")]),e("div",{staticClass:"col-2"},[e("v-btn",{attrs:{color:"primary"},on:{click:n.getRunningScripts}},[n._v("Refresh")])],1),e("div",{staticClass:"col-8"},[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){Ct().f[1]++,Ct().s[4]++,n.runningSearch=e},expression:"runningSearch"}})],1)])]),e("v-data-table",{attrs:{headers:n.runningHeaders,items:n.runningScripts,search:n.runningSearch,dense:"","calculate-widths":"","multi-sort":"","sort-by":"start_time","sort-desc":"","data-test":"running-scripts","footer-props":{itemsPerPageOptions:[3],showFirstLastPage:!0}},scopedSlots:n._u([{key:"item.connect",fn:function(t){var l=t.item;return Ct().f[2]++,Ct().s[5]++,[e("v-btn",{attrs:{color:"primary"},on:{click:function(e){return Ct().f[3]++,Ct().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 Ct().f[4]++,Ct().s[7]++,[e("v-btn",{attrs:{color:"primary"},on:{click:function(e){return Ct().f[5]++,Ct().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 Ct().f[6]++,Ct().s[9]++,[e("v-btn",{attrs:{color:"primary"},on:{click:function(e){return Ct().f[7]++,Ct().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-text",[e("div",{staticClass:"row"},[e("div",{staticClass:"v-card__title col-2"},[n._v("Completed Scripts")]),e("div",{staticClass:"col-2"},[e("v-btn",{attrs:{color:"primary"},on:{click:n.getCompletedScripts}},[n._v("Refresh")])],1),e("div",{staticClass:"col-8"},[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){Ct().f[8]++,Ct().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,dense:"","calculate-widths":"","multi-sort":"","sort-by":"start","sort-desc":"","data-test":"completed-scripts","footer-props":{itemsPerPageOptions:[5],showFirstLastPage:!0}},scopedSlots:n._u([{key:"item.download",fn:function(t){var l=t.item;return Ct().f[9]++,Ct().s[12]++,[e("v-btn",{attrs:{color:"primary",disabled:n.downloadScript,loading:(Ct().b[0][0]++,n.downloadScript&&(Ct().b[0][1]++,n.downloadScript.name===l.name))},on:{click:function(e){return Ct().f[10]++,Ct().s[13]++,n.downloadScriptLog(l)}},scopedSlots:n._u([{key:"loader",fn:function(){return Ct().f[11]++,Ct().s[14]++,[e("span",[n._v("Loading...")])]},proxy:!0}],null,!0)},[l.name.includes("Test Report")?(Ct().b[1][0]++,e("span",[n._v("Test Report")])):(Ct().b[1][1]++,e("span",[n._v("Script Log")])),e("v-icon",{attrs:{right:""}},[n._v(" mdi-file-download-outline ")])],1)]}}])})],1)],1)],1)},gt=(Ct().s[15]++,[]);function yt(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",e="c82511d0992b53723c0d57ed7eba450bcdbfc57e",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:";AA4IA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",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-text class="overflow-y-auto" max-height="400">\n <div class="row">\n <div class="v-card__title col-2">Running Scripts</div>\n <div class="col-2">\n <v-btn color="primary" @click="getRunningScripts">Refresh</v-btn>\n </div>\n <div class="col-8">\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 dense\n calculate-widths\n multi-sort\n sort-by="start_time"\n sort-desc\n data-test="running-scripts"\n :footer-props="{\n itemsPerPageOptions: [3],\n showFirstLastPage: true,\n }"\n >\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-text>\n <div class="row">\n <div class="v-card__title col-2">Completed Scripts</div>\n <div class="col-2">\n <v-btn color="primary" @click="getCompletedScripts">Refresh</v-btn>\n </div>\n <div class="col-8">\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 dense\n calculate-widths\n multi-sort\n sort-by="start"\n sort-desc\n data-test="completed-scripts"\n :footer-props="{\n itemsPerPageOptions: [5],\n showFirstLastPage: true,\n }"\n >\n <template v-slot:item.download="{ item }">\n <v-btn\n color="primary"\n :disabled="downloadScript"\n :loading="downloadScript && downloadScript.name === item.name"\n @click="downloadScriptLog(item)"\n >\n <span v-if="item.name.includes(\'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:"c82511d0992b53723c0d57ed7eba450bcdbfc57e"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return yt=function(){return s},s}yt();var _t={props:{tabId:Number,curTab:Number,connectInNewTab:Boolean},data:function(){return yt().f[0]++,yt().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(){yt().f[1]++,yt().s[1]++,this.getRunningScripts(),yt().s[2]++,this.getCompletedScripts()},methods:{getRunningScripts:function(){var n=this;yt().f[2]++,yt().s[3]++,k.get("/script-api/running-script").then((function(e){yt().f[3]++,yt().s[4]++,n.runningScripts=e.data}))},getCompletedScripts:function(){var n=this;yt().f[4]++,yt().s[5]++,k.get("/script-api/completed-scripts").then((function(e){yt().f[5]++,yt().s[6]++,n.completedScripts=e.data}))},connectScript:function(n){yt().f[6]++;var e=(yt().s[7]++,{name:"ScriptRunner",params:{id:n.id}});if(yt().s[8]++,this.connectInNewTab){yt().b[0][0]++;var t=(yt().s[9]++,this.$router.resolve(e)),l=t.href;yt().s[10]++,window.open(l,"_blank")}else yt().b[0][1]++,yt().s[11]++,this.$router.push(e),yt().s[12]++,this.$emit("close")},stopScript:function(n){var e=this;yt().f[7]++,yt().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 yt().f[8]++,yt().s[14]++,k.post("/script-api/running-script/".concat(n.id,"/stop"))})).then((function(t){yt().f[9]++,yt().s[15]++,e.$notify.normal({body:"Stopped script: ".concat(n.id," ").concat(n.name)}),yt().s[16]++,e.getRunningScripts()})).catch((function(t){yt().f[10]++,yt().s[17]++,t?(yt().b[1][0]++,yt().s[18]++,e.$notify.caution({body:"Failed to stop script: ".concat(n.id," ").concat(n.name)})):yt().b[1][1]++}))},deleteScript:function(n){var e=this;yt().f[11]++,yt().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 yt().f[12]++,yt().s[20]++,k.post("/script-api/running-script/".concat(n.id,"/delete"))})).then((function(t){yt().f[13]++,yt().s[21]++,e.$notify.normal({body:"Stopped script: ".concat(n.id," ").concat(n.name)}),yt().s[22]++,e.getRunningScripts()})).catch((function(t){yt().f[14]++,yt().s[23]++,t?(yt().b[2][0]++,yt().s[24]++,e.$notify.caution({body:"Failed to stop script: ".concat(n.id," ").concat(n.name)})):yt().b[2][1]++}))},downloadScriptLog:function(n){var e=this;yt().f[15]++,yt().s[25]++,this.downloadScript=n,yt().s[26]++,k.get("/openc3-api/storage/download/".concat(encodeURIComponent(n.log),"?bucket=OPENC3_LOGS_BUCKET")).then((function(t){yt().f[16]++;var l=(yt().s[27]++,n.log.split("/")),i=(yt().s[28]++,l[l.length-1]),o=(yt().s[29]++,document.createElement("a"));yt().s[30]++,o.href=t.data.url,yt().s[31]++,o.setAttribute("download",i),yt().s[32]++,o.click(),yt().s[33]++,e.downloadScript=null})).catch((function(){yt().f[17]++,yt().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)})}))}}},wt=_t,kt=(0,D.Z)(wt,bt,gt,!1,null,null,null),xt=kt.exports;function St(){var n="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",e="acee1f155a1bdd9afd7c09a317fb67bde7d96228",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:37,column:20},end:{line:37,column:30}},1:{start:{line:38,column:21},end:{line:38,column:33}},2:{start:{line:39,column:14},end:{line:39,column:21}},3:{start:{line:40,column:11},end:{line:40,column:15}},4:{start:{line:41,column:14},end:{line:41,column:21}},5:{start:{line:42,column:14},end:{line:42,column:21}},6:{start:{line:65,column:4},end:{line:173,column:5}},7:{start:{line:177,column:6},end:{line:181,column:7}},8:{start:{line:178,column:8},end:{line:178,column:20}},9:{start:{line:180,column:8},end:{line:180,column:19}},10:{start:{line:184,column:24},end:{line:184,column:47}},11:{start:{line:185,column:6},end:{line:185,column:39}},12:{start:{line:186,column:6},end:{line:186,column:36}},13:{start:{line:189,column:6},end:{line:191,column:32}},14:{start:{line:194,column:6},end:{line:194,column:67}},15:{start:{line:197,column:6},end:{line:197,column:28}},16:{start:{line:200,column:6},end:{line:200,column:59}},17:{start:{line:200,column:32},end:{line:200,column:59}},18:{start:{line:201,column:6},end:{line:201,column:26}},19:{start:{line:206,column:6},end:{line:206,column:64}},20:{start:{line:209,column:6},end:{line:381,column:7}},21:{start:{line:217,column:16},end:{line:217,column:30}},22:{start:{line:224,column:16},end:{line:224,column:31}},23:{start:{line:234,column:16},end:{line:234,column:31}},24:{start:{line:241,column:16},end:{line:241,column:29}},25:{start:{line:251,column:16},end:{line:251,column:31}},26:{start:{line:261,column:16},end:{line:261,column:29}},27:{start:{line:273,column:16},end:{line:273,column:47}},28:{start:{line:280,column:16},end:{line:280,column:50}},29:{start:{line:292,column:16},end:{line:292,column:39}},30:{start:{line:302,column:16},end:{line:302,column:60}},31:{start:{line:309,column:17},end:{line:310,column:70}},32:{start:{line:317,column:16},end:{line:317,column:41}},33:{start:{line:327,column:16},end:{line:327,column:38}},34:{start:{line:334,column:16},end:{line:334,column:37}},35:{start:{line:341,column:16},end:{line:341,column:39}},36:{start:{line:349,column:16},end:{line:349,column:36}},37:{start:{line:359,column:16},end:{line:359,column:34}},38:{start:{line:366,column:16},end:{line:366,column:39}},39:{start:{line:376,column:16},end:{line:376,column:43}},40:{start:{line:384,column:6},end:{line:397,column:7}},41:{start:{line:402,column:6},end:{line:402,column:34}},42:{start:{line:403,column:6},end:{line:405,column:7}},43:{start:{line:404,column:8},end:{line:404,column:36}},44:{start:{line:406,column:6},end:{line:406,column:34}},45:{start:{line:411,column:4},end:{line:411,column:30}},46:{start:{line:412,column:4},end:{line:412,column:36}},47:{start:{line:415,column:4},end:{line:415,column:36}},48:{start:{line:416,column:4},end:{line:416,column:43}},49:{start:{line:419,column:4},end:{line:419,column:36}},50:{start:{line:420,column:4},end:{line:420,column:46}},51:{start:{line:421,column:23},end:{line:421,column:45}},52:{start:{line:422,column:4},end:{line:422,column:49}},53:{start:{line:423,column:4},end:{line:423,column:37}},54:{start:{line:424,column:4},end:{line:424,column:44}},55:{start:{line:425,column:4},end:{line:425,column:42}},56:{start:{line:426,column:4},end:{line:426,column:60}},57:{start:{line:427,column:4},end:{line:427,column:59}},58:{start:{line:428,column:4},end:{line:428,column:69}},59:{start:{line:429,column:4},end:{line:429,column:45}},60:{start:{line:430,column:4},end:{line:430,column:23}},61:{start:{line:431,column:4},end:{line:431,column:60}},62:{start:{line:435,column:4},end:{line:435,column:60}},63:{start:{line:437,column:27},end:{line:437,column:58}},64:{start:{line:438,column:4},end:{line:441,column:6}},65:{start:{line:439,column:6},end:{line:439,column:46}},66:{start:{line:440,column:6},end:{line:440,column:45}},67:{start:{line:443,column:4},end:{line:443,column:52}},68:{start:{line:444,column:4},end:{line:444,column:47}},69:{start:{line:445,column:4},end:{line:445,column:58}},70:{start:{line:446,column:4},end:{line:454,column:13}},71:{start:{line:448,column:6},end:{line:453,column:7}},72:{start:{line:452,column:8},end:{line:452,column:29}},73:{start:{line:457,column:4},end:{line:457,column:25}},74:{start:{line:458,column:4},end:{line:458,column:34}},75:{start:{line:461,column:4},end:{line:461,column:21}},76:{start:{line:462,column:4},end:{line:464,column:5}},77:{start:{line:463,column:6},end:{line:463,column:42}},78:{start:{line:465,column:4},end:{line:467,column:5}},79:{start:{line:466,column:6},end:{line:466,column:37}},80:{start:{line:468,column:4},end:{line:468,column:27}},81:{start:{line:471,column:4},end:{line:475,column:5}},82:{start:{line:472,column:6},end:{line:472,column:56}},83:{start:{line:474,column:6},end:{line:474,column:12}},84:{start:{line:479,column:16},end:{line:479,column:42}},85:{start:{line:480,column:31},end:{line:482,column:26}},86:{start:{line:484,column:17},end:{line:486,column:36}},87:{start:{line:485,column:23},end:{line:485,column:42}},88:{start:{line:486,column:23},end:{line:486,column:35}},89:{start:{line:487,column:18},end:{line:487,column:63}},90:{start:{line:488,column:33},end:{line:497,column:7}},91:{start:{line:489,column:8},end:{line:489,column:37}},92:{start:{line:491,column:8},end:{line:496,column:9}},93:{start:{line:492,column:10},end:{line:495,column:12}},94:{start:{line:498,column:6},end:{line:498,column:60}},95:{start:{line:500,column:33},end:{line:502,column:28}},96:{start:{line:503,column:28},end:{line:505,column:23}},97:{start:{line:506,column:21},end:{line:506,column:66}},98:{start:{line:507,column:17},end:{line:513,column:7}},99:{start:{line:508,column:8},end:{line:508,column:50}},100:{start:{line:509,column:8},end:{line:509,column:50}},101:{start:{line:510,column:8},end:{line:510,column:47}},102:{start:{line:511,column:8},end:{line:511,column:42}},103:{start:{line:512,column:8},end:{line:512,column:62}},104:{start:{line:514,column:21},end:{line:514,column:54}},105:{start:{line:515,column:6},end:{line:516,column:7}},106:{start:{line:516,column:7},end:{line:518,column:29}},107:{start:{line:517,column:8},end:{line:517,column:36}},108:{start:{line:519,column:6},end:{line:519,column:17}},109:{start:{line:522,column:6},end:{line:522,column:56}},110:{start:{line:523,column:6},end:{line:523,column:39}},111:{start:{line:524,column:6},end:{line:524,column:34}},112:{start:{line:525,column:6},end:{line:525,column:29}},113:{start:{line:526,column:6},end:{line:535,column:7}},114:{start:{line:536,column:6},end:{line:536,column:55}},115:{start:{line:537,column:6},end:{line:537,column:30}},116:{start:{line:540,column:6},end:{line:560,column:8}},117:{start:{line:541,column:34},end:{line:543,column:9}},118:{start:{line:542,column:17},end:{line:542,column:38}},119:{start:{line:544,column:8},end:{line:559,column:9}},120:{start:{line:545,column:10},end:{line:545,column:48}},121:{start:{line:546,column:10},end:{line:546,column:30}},122:{start:{line:547,column:10},end:{line:547,column:48}},123:{start:{line:548,column:15},end:{line:559,column:9}},124:{start:{line:549,column:10},end:{line:552,column:12}},125:{start:{line:554,column:10},end:{line:558,column:11}},126:{start:{line:555,column:12},end:{line:555,column:38}},127:{start:{line:556,column:12},end:{line:556,column:81}},128:{start:{line:557,column:12},end:{line:557,column:33}},129:{start:{line:563,column:6},end:{line:575,column:8}},130:{start:{line:564,column:8},end:{line:568,column:9}},131:{start:{line:565,column:10},end:{line:565,column:39}},132:{start:{line:566,column:10},end:{line:566,column:33}},133:{start:{line:567,column:10},end:{line:567,column:58}},134:{start:{line:569,column:8},end:{line:572,column:9}},135:{start:{line:570,column:10},end:{line:570,column:47}},136:{start:{line:571,column:10},end:{line:571,column:36}},137:{start:{line:574,column:8},end:{line:574,column:65}},138:{start:{line:578,column:6},end:{line:578,column:31}},139:{start:{line:579,column:6},end:{line:579,column:31}},140:{start:{line:580,column:6},end:{line:580,column:38}},141:{start:{line:583,column:20},end:{line:583,column:55}},142:{start:{line:584,column:19},end:{line:586,column:19}},143:{start:{line:587,column:26},end:{line:589,column:34}},144:{start:{line:588,column:25},end:{line:588,column:37}},145:{start:{line:589,column:22},end:{line:589,column:33}},146:{start:{line:590,column:6},end:{line:590,column:41}},147:{start:{line:593,column:19},end:{line:593,column:48}},148:{start:{line:594,column:20},end:{line:594,column:51}},149:{start:{line:595,column:26},end:{line:597,column:44}},150:{start:{line:596,column:25},end:{line:596,column:71}},151:{start:{line:597,column:22},end:{line:597,column:43}},152:{start:{line:598,column:6},end:{line:598,column:41}},153:{start:{line:601,column:6},end:{line:634,column:7}},154:{start:{line:603,column:22},end:{line:603,column:38}},155:{start:{line:604,column:8},end:{line:607,column:9}},156:{start:{line:605,column:10},end:{line:605,column:34}},157:{start:{line:606,column:10},end:{line:606,column:45}},158:{start:{line:611,column:10},end:{line:614,column:20}},159:{start:{line:615,column:8},end:{line:633,column:12}},160:{start:{line:622,column:12},end:{line:629,column:13}},161:{start:{line:632,column:12},end:{line:632,column:63}},162:{start:{line:637,column:6},end:{line:637,column:44}},163:{start:{line:640,column:18},end:{line:640,column:50}},164:{start:{line:641,column:6},end:{line:645,column:7}},165:{start:{line:642,column:8},end:{line:642,column:50}},166:{start:{line:644,column:8},end:{line:644,column:48}},167:{start:{line:648,column:6},end:{line:650,column:7}},168:{start:{line:649,column:8},end:{line:649,column:14}},169:{start:{line:651,column:27},end:{line:655,column:7}},170:{start:{line:653,column:10},end:{line:654,column:32}},171:{start:{line:656,column:25},end:{line:656,column:27}},172:{start:{line:657,column:19},end:{line:657,column:20}},173:{start:{line:658,column:6},end:{line:669,column:7}},174:{start:{line:660,column:10},end:{line:660,column:42}},175:{start:{line:661,column:10},end:{line:661,column:32}},176:{start:{line:662,column:10},end:{line:662,column:15}},177:{start:{line:664,column:10},end:{line:664,column:43}},178:{start:{line:665,column:10},end:{line:667,column:11}},179:{start:{line:666,column:21},end:{line:666,column:43}},180:{start:{line:668,column:10},end:{line:668,column:15}},181:{start:{line:670,column:6},end:{line:675,column:8}},182:{start:{line:671,column:8},end:{line:671,column:36}},183:{start:{line:672,column:8},end:{line:674,column:9}},184:{start:{line:673,column:10},end:{line:673,column:45}},185:{start:{line:678,column:6},end:{line:681,column:33}},186:{start:{line:680,column:34},end:{line:680,column:51}},187:{start:{line:684,column:6},end:{line:684,column:29}},188:{start:{line:685,column:6},end:{line:687,column:8}},189:{start:{line:686,column:8},end:{line:686,column:53}},190:{start:{line:690,column:6},end:{line:700,column:10}},191:{start:{line:696,column:10},end:{line:696,column:65}},192:{start:{line:699,column:10},end:{line:699,column:33}},193:{start:{line:703,column:6},end:{line:707,column:7}},194:{start:{line:704,column:8},end:{line:704,column:40}},195:{start:{line:706,column:8},end:{line:706,column:37}},196:{start:{line:712,column:6},end:{line:725,column:7}},197:{start:{line:716,column:8},end:{line:716,column:30}},198:{start:{line:717,column:8},end:{line:717,column:23}},199:{start:{line:718,column:13},end:{line:725,column:7}},200:{start:{line:723,column:8},end:{line:723,column:30}},201:{start:{line:724,column:8},end:{line:724,column:21}},202:{start:{line:729,column:6},end:{line:731,column:7}},203:{start:{line:730,column:8},end:{line:730,column:14}},204:{start:{line:732,column:6},end:{line:736,column:7}},205:{start:{line:733,column:8},end:{line:733,column:31}},206:{start:{line:735,column:8},end:{line:735,column:30}},207:{start:{line:739,column:6},end:{line:757,column:10}},208:{start:{line:742,column:26},end:{line:742,column:28}},209:{start:{line:743,column:10},end:{line:748,column:11}},210:{start:{line:744,column:32},end:{line:746,column:28}},211:{start:{line:745,column:32},end:{line:745,column:73}},212:{start:{line:747,column:12},end:{line:747,column:107}},213:{start:{line:749,column:10},end:{line:752,column:11}},214:{start:{line:750,column:12},end:{line:751,column:86}},215:{start:{line:753,column:10},end:{line:755,column:11}},216:{start:{line:754,column:12},end:{line:754,column:65}},217:{start:{line:756,column:10},end:{line:756,column:62}},218:{start:{line:760,column:6},end:{line:760,column:37}},219:{start:{line:761,column:6},end:{line:761,column:35}},220:{start:{line:762,column:6},end:{line:762,column:29}},221:{start:{line:763,column:6},end:{line:763,column:38}},222:{start:{line:764,column:6},end:{line:764,column:30}},223:{start:{line:765,column:6},end:{line:765,column:34}},224:{start:{line:766,column:6},end:{line:766,column:31}},225:{start:{line:767,column:6},end:{line:767,column:24}},226:{start:{line:768,column:6},end:{line:768,column:35}},227:{start:{line:769,column:6},end:{line:782,column:10}},228:{start:{line:774,column:32},end:{line:774,column:51}},229:{start:{line:781,column:10},end:{line:781,column:42}},230:{start:{line:785,column:6},end:{line:785,column:38}},231:{start:{line:786,column:6},end:{line:786,column:34}},232:{start:{line:787,column:6},end:{line:787,column:37}},233:{start:{line:789,column:6},end:{line:789,column:47}},234:{start:{line:790,column:6},end:{line:790,column:30}},235:{start:{line:791,column:6},end:{line:791,column:38}},236:{start:{line:792,column:6},end:{line:792,column:30}},237:{start:{line:794,column:6},end:{line:794,column:28}},238:{start:{line:795,column:6},end:{line:795,column:24}},239:{start:{line:796,column:6},end:{line:796,column:26}},240:{start:{line:797,column:6},end:{line:797,column:36}},241:{start:{line:800,column:6},end:{line:800,column:40}},242:{start:{line:803,column:6},end:{line:803,column:18}},243:{start:{line:806,column:6},end:{line:806,column:28}},244:{start:{line:807,column:21},end:{line:807,column:34}},245:{start:{line:808,column:6},end:{line:811,column:7}},246:{start:{line:810,column:8},end:{line:810,column:36}},247:{start:{line:812,column:16},end:{line:812,column:53}},248:{start:{line:813,column:6},end:{line:815,column:7}},249:{start:{line:814,column:8},end:{line:814,column:28}},250:{start:{line:816,column:17},end:{line:818,column:7}},251:{start:{line:819,column:6},end:{line:821,column:7}},252:{start:{line:820,column:8},end:{line:820,column:35}},253:{start:{line:822,column:6},end:{line:824,column:8}},254:{start:{line:823,column:8},end:{line:823,column:39}},255:{start:{line:827,column:6},end:{line:827,column:64}},256:{start:{line:830,column:6},end:{line:835,column:7}},257:{start:{line:831,column:8},end:{line:831,column:69}},258:{start:{line:833,column:8},end:{line:833,column:39}},259:{start:{line:834,column:8},end:{line:834,column:69}},260:{start:{line:841,column:6},end:{line:846,column:7}},261:{start:{line:842,column:8},end:{line:842,column:31}},262:{start:{line:843,column:8},end:{line:843,column:29}},263:{start:{line:845,column:8},end:{line:845,column:68}},264:{start:{line:849,column:6},end:{line:849,column:66}},265:{start:{line:852,column:6},end:{line:852,column:29}},266:{start:{line:854,column:6},end:{line:983,column:7}},267:{start:{line:856,column:10},end:{line:856,column:71}},268:{start:{line:857,column:10},end:{line:857,column:60}},269:{start:{line:858,column:10},end:{line:860,column:11}},270:{start:{line:859,column:12},end:{line:859,column:50}},271:{start:{line:861,column:10},end:{line:861,column:15}},272:{start:{line:863,column:10},end:{line:892,column:11}},273:{start:{line:864,column:12},end:{line:891,column:13}},274:{start:{line:867,column:14},end:{line:867,column:68}},275:{start:{line:870,column:14},end:{line:885,column:18}},276:{start:{line:874,column:18},end:{line:877,column:19}},277:{start:{line:878,column:18},end:{line:878,column:77}},278:{start:{line:879,column:18},end:{line:879,column:56}},279:{start:{line:880,column:18},end:{line:880,column:45}},280:{start:{line:884,column:18},end:{line:884,column:50}},281:{start:{line:887,column:14},end:{line:887,column:69}},282:{start:{line:888,column:14},end:{line:888,column:52}},283:{start:{line:889,column:14},end:{line:889,column:42}},284:{start:{line:890,column:14},end:{line:890,column:50}},285:{start:{line:893,column:10},end:{line:893,column:33}},286:{start:{line:894,column:26},end:{line:894,column:58}},287:{start:{line:895,column:10},end:{line:948,column:11}},288:{start:{line:897,column:14},end:{line:897,column:44}},289:{start:{line:898,column:14},end:{line:898,column:47}},290:{start:{line:899,column:14},end:{line:899,column:39}},291:{start:{line:900,column:14},end:{line:900,column:45}},292:{start:{line:902,column:14},end:{line:902,column:37}},293:{start:{line:903,column:14},end:{line:907,column:15}},294:{start:{line:908,column:14},end:{line:908,column:48}},295:{start:{line:909,column:14},end:{line:909,column:61}},296:{start:{line:910,column:14},end:{line:910,column:19}},297:{start:{line:912,column:14},end:{line:912,column:31}},298:{start:{line:915,column:14},end:{line:915,column:45}},299:{start:{line:920,column:14},end:{line:926,column:15}},300:{start:{line:921,column:16},end:{line:921,column:45}},301:{start:{line:922,column:16},end:{line:922,column:48}},302:{start:{line:924,column:16},end:{line:924,column:46}},303:{start:{line:925,column:16},end:{line:925,column:49}},304:{start:{line:927,column:14},end:{line:927,column:39}},305:{start:{line:928,column:29},end:{line:930,column:15}},306:{start:{line:929,column:25},end:{line:929,column:69}},307:{start:{line:931,column:14},end:{line:944,column:15}},308:{start:{line:932,column:16},end:{line:932,column:39}},309:{start:{line:933,column:27},end:{line:933,column:62}},310:{start:{line:934,column:16},end:{line:938,column:17}},311:{start:{line:939,column:16},end:{line:939,column:42}},312:{start:{line:941,column:16},end:{line:943,column:17}},313:{start:{line:942,column:18},end:{line:942,column:57}},314:{start:{line:945,column:14},end:{line:945,column:19}},315:{start:{line:947,column:14},end:{line:947,column:19}},316:{start:{line:949,column:10},end:{line:949,column:15}},317:{start:{line:953,column:10},end:{line:957,column:11}},318:{start:{line:954,column:12},end:{line:956,column:13}},319:{start:{line:955,column:14},end:{line:955,column:54}},320:{start:{line:958,column:10},end:{line:960,column:11}},321:{start:{line:959,column:12},end:{line:959,column:31}},322:{start:{line:961,column:10},end:{line:961,column:15}},323:{start:{line:963,column:10},end:{line:963,column:33}},324:{start:{line:964,column:10},end:{line:964,column:15}},325:{start:{line:966,column:10},end:{line:966,column:41}},326:{start:{line:967,column:10},end:{line:967,column:34}},327:{start:{line:968,column:10},end:{line:968,column:15}},328:{start:{line:971,column:10},end:{line:974,column:11}},329:{start:{line:972,column:12},end:{line:972,column:35}},330:{start:{line:973,column:12},end:{line:973,column:33}},331:{start:{line:975,column:10},end:{line:975,column:15}},332:{start:{line:977,column:10},end:{line:977,column:31}},333:{start:{line:978,column:10},end:{line:978,column:15}},334:{start:{line:982,column:10},end:{line:982,column:15}},335:{start:{line:986,column:6},end:{line:986,column:30}},336:{start:{line:987,column:6},end:{line:993,column:8}},337:{start:{line:996,column:6},end:{line:1001,column:7}},338:{start:{line:997,column:8},end:{line:997,column:32}},339:{start:{line:998,column:8},end:{line:998,column:32}},340:{start:{line:999,column:8},end:{line:999,column:29}},341:{start:{line:1e3,column:8},end:{line:1e3,column:14}},342:{start:{line:1002,column:6},end:{line:1002,column:42}},343:{start:{line:1003,column:6},end:{line:1003,column:38}},344:{start:{line:1004,column:6},end:{line:1004,column:39}},345:{start:{line:1005,column:6},end:{line:1005,column:34}},346:{start:{line:1006,column:6},end:{line:1006,column:31}},347:{start:{line:1007,column:6},end:{line:1007,column:30}},348:{start:{line:1008,column:6},end:{line:1008,column:30}},349:{start:{line:1009,column:6},end:{line:1143,column:7}},350:{start:{line:1013,column:10},end:{line:1013,column:33}},351:{start:{line:1014,column:10},end:{line:1014,column:40}},352:{start:{line:1015,column:10},end:{line:1015,column:35}},353:{start:{line:1016,column:10},end:{line:1016,column:42}},354:{start:{line:1018,column:10},end:{line:1023,column:11}},355:{start:{line:1019,column:12},end:{line:1019,column:54}},356:{start:{line:1020,column:17},end:{line:1023,column:11}},357:{start:{line:1022,column:12},end:{line:1022,column:43}},358:{start:{line:1025,column:10},end:{line:1027,column:11}},359:{start:{line:1026,column:12},end:{line:1026,column:36}},360:{start:{line:1028,column:10},end:{line:1047,column:11}},361:{start:{line:1029,column:12},end:{line:1029,column:33}},362:{start:{line:1030,column:12},end:{line:1046,column:13}},363:{start:{line:1031,column:14},end:{line:1037,column:16}},364:{start:{line:1039,column:14},end:{line:1045,column:16}},365:{start:{line:1048,column:10},end:{line:1048,column:30}},366:{start:{line:1049,column:10},end:{line:1049,column:15}},367:{start:{line:1051,column:10},end:{line:1051,column:49}},368:{start:{line:1052,column:10},end:{line:1052,column:97}},369:{start:{line:1053,column:10},end:{line:1055,column:11}},370:{start:{line:1054,column:12},end:{line:1054,column:53}},371:{start:{line:1056,column:10},end:{line:1056,column:40}},372:{start:{line:1057,column:10},end:{line:1057,column:63}},373:{start:{line:1058,column:10},end:{line:1058,column:58}},374:{start:{line:1059,column:10},end:{line:1059,column:33}},375:{start:{line:1060,column:10},end:{line:1060,column:15}},376:{start:{line:1062,column:10},end:{line:1064,column:11}},377:{start:{line:1063,column:12},end:{line:1063,column:58}},378:{start:{line:1065,column:10},end:{line:1067,column:11}},379:{start:{line:1066,column:12},end:{line:1066,column:53}},380:{start:{line:1068,column:10},end:{line:1068,column:44}},381:{start:{line:1069,column:10},end:{line:1069,column:61}},382:{start:{line:1070,column:10},end:{line:1070,column:58}},383:{start:{line:1071,column:10},end:{line:1071,column:33}},384:{start:{line:1072,column:10},end:{line:1072,column:15}},385:{start:{line:1074,column:10},end:{line:1076,column:11}},386:{start:{line:1075,column:12},end:{line:1075,column:58}},387:{start:{line:1077,column:10},end:{line:1079,column:11}},388:{start:{line:1078,column:12},end:{line:1078,column:53}},389:{start:{line:1080,column:10},end:{line:1080,column:44}},390:{start:{line:1081,column:10},end:{line:1083,column:12}},391:{start:{line:1082,column:12},end:{line:1082,column:59}},392:{start:{line:1084,column:10},end:{line:1084,column:34}},393:{start:{line:1085,column:10},end:{line:1085,column:38}},394:{start:{line:1086,column:10},end:{line:1086,column:58}},395:{start:{line:1087,column:10},end:{line:1087,column:33}},396:{start:{line:1088,column:10},end:{line:1088,column:15}},397:{start:{line:1091,column:10},end:{line:1093,column:11}},398:{start:{line:1092,column:12},end:{line:1092,column:58}},399:{start:{line:1094,column:10},end:{line:1096,column:11}},400:{start:{line:1095,column:12},end:{line:1095,column:53}},401:{start:{line:1097,column:10},end:{line:1097,column:44}},402:{start:{line:1098,column:10},end:{line:1100,column:12}},403:{start:{line:1099,column:12},end:{line:1099,column:59}},404:{start:{line:1101,column:10},end:{line:1103,column:11}},405:{start:{line:1102,column:12},end:{line:1102,column:43}},406:{start:{line:1104,column:10},end:{line:1104,column:58}},407:{start:{line:1105,column:10},end:{line:1105,column:33}},408:{start:{line:1106,column:10},end:{line:1106,column:15}},409:{start:{line:1108,column:10},end:{line:1108,column:47}},410:{start:{line:1109,column:10},end:{line:1109,column:43}},411:{start:{line:1110,column:10},end:{line:1110,column:38}},412:{start:{line:1111,column:10},end:{line:1111,column:15}},413:{start:{line:1113,column:10},end:{line:1113,column:50}},414:{start:{line:1114,column:10},end:{line:1123,column:11}},415:{start:{line:1115,column:12},end:{line:1115,column:43}},416:{start:{line:1116,column:12},end:{line:1122,column:14}},417:{start:{line:1124,column:10},end:{line:1124,column:40}},418:{start:{line:1125,column:10},end:{line:1125,column:15}},419:{start:{line:1128,column:10},end:{line:1128,column:40}},420:{start:{line:1129,column:10},end:{line:1129,column:42}},421:{start:{line:1130,column:10},end:{line:1132,column:11}},422:{start:{line:1131,column:12},end:{line:1131,column:49}},423:{start:{line:1133,column:10},end:{line:1135,column:11}},424:{start:{line:1134,column:12},end:{line:1134,column:37}},425:{start:{line:1136,column:10},end:{line:1136,column:31}},426:{start:{line:1137,column:10},end:{line:1137,column:15}},427:{start:{line:1142,column:10},end:{line:1142,column:15}},428:{start:{line:1146,column:6},end:{line:1146,column:28}},429:{start:{line:1149,column:22},end:{line:1149,column:30}},430:{start:{line:1150,column:6},end:{line:1167,column:7}},431:{start:{line:1151,column:8},end:{line:1151,column:22}},432:{start:{line:1152,column:8},end:{line:1166,column:10}},433:{start:{line:1153,column:10},end:{line:1153,column:35}},434:{start:{line:1155,column:45},end:{line:1159,column:11}},435:{start:{line:1162,column:27},end:{line:1165,column:12}},436:{start:{line:1168,column:6},end:{line:1174,column:8}},437:{start:{line:1177,column:6},end:{line:1177,column:30}},438:{start:{line:1178,column:6},end:{line:1178,column:40}},439:{start:{line:1179,column:6},end:{line:1179,column:27}},440:{start:{line:1183,column:6},end:{line:1183,column:34}},441:{start:{line:1184,column:6},end:{line:1184,column:33}},442:{start:{line:1185,column:6},end:{line:1185,column:30}},443:{start:{line:1186,column:6},end:{line:1186,column:21}},444:{start:{line:1187,column:6},end:{line:1187,column:38}},445:{start:{line:1188,column:6},end:{line:1188,column:28}},446:{start:{line:1189,column:6},end:{line:1189,column:30}},447:{start:{line:1190,column:6},end:{line:1190,column:36}},448:{start:{line:1191,column:6},end:{line:1191,column:30}},449:{start:{line:1194,column:6},end:{line:1194,column:26}},450:{start:{line:1197,column:6},end:{line:1219,column:10}},451:{start:{line:1199,column:23},end:{line:1202,column:11}},452:{start:{line:1203,column:10},end:{line:1205,column:11}},453:{start:{line:1204,column:12},end:{line:1204,column:61}},454:{start:{line:1206,column:10},end:{line:1208,column:11}},455:{start:{line:1207,column:12},end:{line:1207,column:47}},456:{start:{line:1209,column:10},end:{line:1211,column:11}},457:{start:{line:1210,column:12},end:{line:1210,column:51}},458:{start:{line:1212,column:25},end:{line:1212,column:45}},459:{start:{line:1213,column:30},end:{line:1213,column:55}},460:{start:{line:1214,column:10},end:{line:1214,column:59}},461:{start:{line:1217,column:10},end:{line:1217,column:78}},462:{start:{line:1218,column:10},end:{line:1218,column:22}},463:{start:{line:1223,column:6},end:{line:1223,column:21}},464:{start:{line:1224,column:6},end:{line:1227,column:7}},465:{start:{line:1225,column:8},end:{line:1225,column:25}},466:{start:{line:1226,column:8},end:{line:1226,column:30}},467:{start:{line:1229,column:6},end:{line:1229,column:45}},468:{start:{line:1230,column:6},end:{line:1230,column:33}},469:{start:{line:1231,column:6},end:{line:1231,column:49}},470:{start:{line:1232,column:6},end:{line:1232,column:46}},471:{start:{line:1233,column:6},end:{line:1233,column:39}},472:{start:{line:1234,column:6},end:{line:1234,column:28}},473:{start:{line:1235,column:6},end:{line:1235,column:30}},474:{start:{line:1237,column:6},end:{line:1243,column:7}},475:{start:{line:1238,column:8},end:{line:1238,column:31}},476:{start:{line:1239,column:8},end:{line:1239,column:35}},477:{start:{line:1240,column:8},end:{line:1240,column:37}},478:{start:{line:1242,column:8},end:{line:1242,column:32}},479:{start:{line:1244,column:6},end:{line:1247,column:7}},480:{start:{line:1245,column:8},end:{line:1245,column:36}},481:{start:{line:1246,column:8},end:{line:1246,column:34}},482:{start:{line:1249,column:6},end:{line:1249,column:54}},483:{start:{line:1254,column:26},end:{line:1254,column:50}},484:{start:{line:1255,column:6},end:{line:1334,column:7}},485:{start:{line:1256,column:8},end:{line:1283,column:9}},486:{start:{line:1258,column:10},end:{line:1258,column:23}},487:{start:{line:1260,column:10},end:{line:1266,column:11}},488:{start:{line:1261,column:12},end:{line:1265,column:24}},489:{start:{line:1267,column:10},end:{line:1267,column:30}},490:{start:{line:1268,column:10},end:{line:1282,column:14}},491:{start:{line:1275,column:14},end:{line:1275,column:36}},492:{start:{line:1276,column:14},end:{line:1278,column:22}},493:{start:{line:1277,column:16},end:{line:1277,column:37}},494:{start:{line:1281,column:14},end:{line:1281,column:35}},495:{start:{line:1287,column:8},end:{line:1287,column:28}},496:{start:{line:1288,column:8},end:{line:1332,column:12}},497:{start:{line:1295,column:12},end:{line:1318,column:13}},498:{start:{line:1296,column:14},end:{line:1304,column:15}},499:{start:{line:1297,column:16},end:{line:1297,column:45}},500:{start:{line:1298,column:16},end:{line:1298,column:39}},501:{start:{line:1299,column:16},end:{line:1299,column:64}},502:{start:{line:1301,column:16},end:{line:1301,column:46}},503:{start:{line:1302,column:16},end:{line:1302,column:40}},504:{start:{line:1303,column:16},end:{line:1303,column:34}},505:{start:{line:1305,column:14},end:{line:1308,column:15}},506:{start:{line:1306,column:16},end:{line:1306,column:53}},507:{start:{line:1307,column:16},end:{line:1307,column:42}},508:{start:{line:1309,column:14},end:{line:1309,column:36}},509:{start:{line:1310,column:14},end:{line:1312,column:22}},510:{start:{line:1311,column:16},end:{line:1311,column:37}},511:{start:{line:1314,column:14},end:{line:1314,column:35}},512:{start:{line:1315,column:14},end:{line:1315,column:38}},513:{start:{line:1316,column:14},end:{line:1316,column:105}},514:{start:{line:1317,column:14},end:{line:1317,column:35}},515:{start:{line:1321,column:12},end:{line:1321,column:33}},516:{start:{line:1324,column:12},end:{line:1330,column:13}},517:{start:{line:1325,column:14},end:{line:1325,column:38}},518:{start:{line:1326,column:14},end:{line:1326,column:51}},519:{start:{line:1328,column:14},end:{line:1328,column:38}},520:{start:{line:1329,column:14},end:{line:1329,column:105}},521:{start:{line:1331,column:12},end:{line:1331,column:33}},522:{start:{line:1335,column:6},end:{line:1335,column:21}},523:{start:{line:1338,column:6},end:{line:1338,column:28}},524:{start:{line:1341,column:6},end:{line:1341,column:44}},525:{start:{line:1342,column:6},end:{line:1342,column:33}},526:{start:{line:1343,column:6},end:{line:1346,column:7}},527:{start:{line:1344,column:8},end:{line:1344,column:67}},528:{start:{line:1345,column:8},end:{line:1345,column:32}},529:{start:{line:1347,column:6},end:{line:1347,column:27}},530:{start:{line:1350,column:21},end:{line:1350,column:34}},531:{start:{line:1351,column:6},end:{line:1353,column:7}},532:{start:{line:1352,column:8},end:{line:1352,column:36}},533:{start:{line:1354,column:6},end:{line:1375,column:10}},534:{start:{line:1360,column:10},end:{line:1362,column:12}},535:{start:{line:1365,column:10},end:{line:1365,column:24}},536:{start:{line:1368,column:10},end:{line:1374,column:11}},537:{start:{line:1369,column:32},end:{line:1372,column:13}},538:{start:{line:1373,column:12},end:{line:1373,column:44}},539:{start:{line:1378,column:19},end:{line:1380,column:8}},540:{start:{line:1382,column:19},end:{line:1382,column:46}},541:{start:{line:1383,column:6},end:{line:1383,column:43}},542:{start:{line:1384,column:6},end:{line:1384,column:50}},543:{start:{line:1385,column:6},end:{line:1385,column:18}},544:{start:{line:1389,column:6},end:{line:1399,column:8}},545:{start:{line:1396,column:8},end:{line:1396,column:52}},546:{start:{line:1397,column:8},end:{line:1397,column:69}},547:{start:{line:1398,column:8},end:{line:1398,column:36}},548:{start:{line:1402,column:6},end:{line:1412,column:8}},549:{start:{line:1409,column:8},end:{line:1409,column:52}},550:{start:{line:1410,column:8},end:{line:1410,column:69}},551:{start:{line:1411,column:8},end:{line:1411,column:36}},552:{start:{line:1415,column:6},end:{line:1415,column:71}},553:{start:{line:1418,column:6},end:{line:1418,column:38}},554:{start:{line:1421,column:6},end:{line:1421,column:48}},555:{start:{line:1425,column:6},end:{line:1452,column:7}},556:{start:{line:1426,column:8},end:{line:1426,column:23}},557:{start:{line:1427,column:8},end:{line:1427,column:57}},558:{start:{line:1428,column:13},end:{line:1452,column:7}},559:{start:{line:1429,column:8},end:{line:1429,column:42}},560:{start:{line:1430,column:8},end:{line:1430,column:57}},561:{start:{line:1432,column:8},end:{line:1436,column:10}},562:{start:{line:1437,column:8},end:{line:1437,column:23}},563:{start:{line:1438,column:13},end:{line:1452,column:7}},564:{start:{line:1439,column:8},end:{line:1439,column:35}},565:{start:{line:1440,column:8},end:{line:1442,column:9}},566:{start:{line:1441,column:10},end:{line:1441,column:63}},567:{start:{line:1443,column:8},end:{line:1443,column:62}},568:{start:{line:1445,column:8},end:{line:1445,column:30}},569:{start:{line:1446,column:13},end:{line:1452,column:7}},570:{start:{line:1447,column:8},end:{line:1447,column:35}},571:{start:{line:1448,column:8},end:{line:1450,column:9}},572:{start:{line:1449,column:10},end:{line:1449,column:36}},573:{start:{line:1451,column:8},end:{line:1451,column:62}},574:{start:{line:1455,column:25},end:{line:1455,column:57}},575:{start:{line:1456,column:6},end:{line:1458,column:70}},576:{start:{line:1457,column:25},end:{line:1457,column:60}},577:{start:{line:1458,column:29},end:{line:1458,column:69}},578:{start:{line:1461,column:6},end:{line:1472,column:10}},579:{start:{line:1470,column:10},end:{line:1470,column:30}},580:{start:{line:1471,column:10},end:{line:1471,column:32}},581:{start:{line:1475,column:6},end:{line:1475,column:66}},582:{start:{line:1478,column:6},end:{line:1480,column:7}},583:{start:{line:1479,column:8},end:{line:1479,column:63}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:64,column:2},end:{line:64,column:3}},loc:{start:{line:64,column:9},end:{line:174,column:3}},line:64},1:{name:"(anonymous_1)",decl:{start:{line:125,column:18},end:{line:125,column:19}},loc:{start:{line:125,column:24},end:{line:125,column:26}},line:125},2:{name:"(anonymous_2)",decl:{start:{line:133,column:18},end:{line:133,column:19}},loc:{start:{line:133,column:24},end:{line:133,column:26}},line:133},3:{name:"(anonymous_3)",decl:{start:{line:143,column:18},end:{line:143,column:19}},loc:{start:{line:143,column:24},end:{line:143,column:26}},line:143},4:{name:"(anonymous_4)",decl:{start:{line:153,column:18},end:{line:153,column:19}},loc:{start:{line:153,column:24},end:{line:153,column:26}},line:153},5:{name:"(anonymous_5)",decl:{start:{line:176,column:19},end:{line:176,column:20}},loc:{start:{line:176,column:31},end:{line:182,column:5}},line:176},6:{name:"(anonymous_6)",decl:{start:{line:183,column:14},end:{line:183,column:15}},loc:{start:{line:183,column:26},end:{line:187,column:5}},line:183},7:{name:"(anonymous_7)",decl:{start:{line:188,column:21},end:{line:188,column:22}},loc:{start:{line:188,column:33},end:{line:192,column:5}},line:188},8:{name:"(anonymous_8)",decl:{start:{line:193,column:26},end:{line:193,column:27}},loc:{start:{line:193,column:38},end:{line:195,column:5}},line:193},9:{name:"(anonymous_9)",decl:{start:{line:196,column:14},end:{line:196,column:15}},loc:{start:{line:196,column:26},end:{line:198,column:5}},line:196},10:{name:"(anonymous_10)",decl:{start:{line:199,column:18},end:{line:199,column:19}},loc:{start:{line:199,column:30},end:{line:202,column:5}},line:199},11:{name:"(anonymous_11)",decl:{start:{line:205,column:21},end:{line:205,column:22}},loc:{start:{line:205,column:33},end:{line:207,column:5}},line:205},12:{name:"(anonymous_12)",decl:{start:{line:208,column:11},end:{line:208,column:12}},loc:{start:{line:208,column:23},end:{line:382,column:5}},line:208},13:{name:"(anonymous_13)",decl:{start:{line:216,column:23},end:{line:216,column:24}},loc:{start:{line:216,column:29},end:{line:218,column:15}},line:216},14:{name:"(anonymous_14)",decl:{start:{line:223,column:23},end:{line:223,column:24}},loc:{start:{line:223,column:29},end:{line:225,column:15}},line:223},15:{name:"(anonymous_15)",decl:{start:{line:233,column:23},end:{line:233,column:24}},loc:{start:{line:233,column:29},end:{line:235,column:15}},line:233},16:{name:"(anonymous_16)",decl:{start:{line:240,column:23},end:{line:240,column:24}},loc:{start:{line:240,column:29},end:{line:242,column:15}},line:240},17:{name:"(anonymous_17)",decl:{start:{line:250,column:23},end:{line:250,column:24}},loc:{start:{line:250,column:29},end:{line:252,column:15}},line:250},18:{name:"(anonymous_18)",decl:{start:{line:260,column:23},end:{line:260,column:24}},loc:{start:{line:260,column:29},end:{line:262,column:15}},line:260},19:{name:"(anonymous_19)",decl:{start:{line:272,column:23},end:{line:272,column:24}},loc:{start:{line:272,column:29},end:{line:274,column:15}},line:272},20:{name:"(anonymous_20)",decl:{start:{line:279,column:23},end:{line:279,column:24}},loc:{start:{line:279,column:29},end:{line:281,column:15}},line:279},21:{name:"(anonymous_21)",decl:{start:{line:291,column:23},end:{line:291,column:24}},loc:{start:{line:291,column:29},end:{line:293,column:15}},line:291},22:{name:"(anonymous_22)",decl:{start:{line:301,column:23},end:{line:301,column:24}},loc:{start:{line:301,column:29},end:{line:303,column:15}},line:301},23:{name:"(anonymous_23)",decl:{start:{line:308,column:23},end:{line:308,column:24}},loc:{start:{line:308,column:29},end:{line:311,column:15}},line:308},24:{name:"(anonymous_24)",decl:{start:{line:309,column:48},end:{line:309,column:49}},loc:{start:{line:309,column:54},end:{line:309,column:56}},line:309},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:326,column:23},end:{line:326,column:24}},loc:{start:{line:326,column:29},end:{line:328,column:15}},line:326},27:{name:"(anonymous_27)",decl:{start:{line:333,column:23},end:{line:333,column:24}},loc:{start:{line:333,column:29},end:{line:335,column:15}},line:333},28:{name:"(anonymous_28)",decl:{start:{line:340,column:23},end:{line:340,column:24}},loc:{start:{line:340,column:29},end:{line:342,column:15}},line:340},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:358,column:23},end:{line:358,column:24}},loc:{start:{line:358,column:29},end:{line:360,column:15}},line:358},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:375,column:23},end:{line:375,column:24}},loc:{start:{line:375,column:29},end:{line:377,column:15}},line:375},33:{name:"(anonymous_33)",decl:{start:{line:383,column:31},end:{line:383,column:32}},loc:{start:{line:383,column:43},end:{line:398,column:5}},line:383},34:{name:"(anonymous_34)",decl:{start:{line:401,column:14},end:{line:401,column:15}},loc:{start:{line:401,column:29},end:{line:407,column:5}},line:401},35:{name:"(anonymous_35)",decl:{start:{line:409,column:11},end:{line:409,column:12}},loc:{start:{line:409,column:23},end:{line:417,column:3}},line:409},36:{name:"(anonymous_36)",decl:{start:{line:418,column:11},end:{line:418,column:12}},loc:{start:{line:418,column:29},end:{line:455,column:3}},line:418},37:{name:"(anonymous_37)",decl:{start:{line:438,column:37},end:{line:438,column:38}},loc:{start:{line:438,column:58},end:{line:441,column:5}},line:438},38:{name:"(anonymous_38)",decl:{start:{line:446,column:40},end:{line:446,column:41}},loc:{start:{line:446,column:46},end:{line:454,column:5}},line:446},39:{name:"(anonymous_39)",decl:{start:{line:456,column:2},end:{line:456,column:3}},loc:{start:{line:456,column:18},end:{line:459,column:3}},line:456},40:{name:"(anonymous_40)",decl:{start:{line:460,column:2},end:{line:460,column:3}},loc:{start:{line:460,column:14},end:{line:469,column:3}},line:460},41:{name:"(anonymous_41)",decl:{start:{line:470,column:21},end:{line:470,column:22}},loc:{start:{line:470,column:47},end:{line:476,column:3}},line:470},42:{name:"(anonymous_42)",decl:{start:{line:478,column:4},end:{line:478,column:5}},loc:{start:{line:478,column:22},end:{line:520,column:5}},line:478},43:{name:"(anonymous_43)",decl:{start:{line:485,column:16},end:{line:485,column:17}},loc:{start:{line:485,column:23},end:{line:485,column:42}},line:485},44:{name:"(anonymous_44)",decl:{start:{line:486,column:16},end:{line:486,column:17}},loc:{start:{line:486,column:23},end:{line:486,column:35}},line:486},45:{name:"(anonymous_45)",decl:{start:{line:488,column:33},end:{line:488,column:34}},loc:{start:{line:488,column:45},end:{line:497,column:7}},line:488},46:{name:"(anonymous_46)",decl:{start:{line:507,column:17},end:{line:507,column:18}},loc:{start:{line:507,column:29},end:{line:513,column:7}},line:507},47:{name:"(anonymous_47)",decl:{start:{line:516,column:8},end:{line:516,column:9}},loc:{start:{line:516,column:20},end:{line:518,column:7}},line:516},48:{name:"(anonymous_48)",decl:{start:{line:521,column:4},end:{line:521,column:5}},loc:{start:{line:521,column:30},end:{line:538,column:5}},line:521},49:{name:"(anonymous_49)",decl:{start:{line:539,column:26},end:{line:539,column:27}},loc:{start:{line:539,column:40},end:{line:561,column:5}},line:539},50:{name:"(anonymous_50)",decl:{start:{line:540,column:56},end:{line:540,column:57}},loc:{start:{line:540,column:70},end:{line:560,column:7}},line:540},51:{name:"(anonymous_51)",decl:{start:{line:542,column:10},end:{line:542,column:11}},loc:{start:{line:542,column:17},end:{line:542,column:38}},line:542},52:{name:"(anonymous_52)",decl:{start:{line:562,column:19},end:{line:562,column:20}},loc:{start:{line:562,column:31},end:{line:576,column:5}},line:562},53:{name:"(anonymous_53)",decl:{start:{line:563,column:59},end:{line:563,column:60}},loc:{start:{line:563,column:73},end:{line:575,column:7}},line:563},54:{name:"(anonymous_54)",decl:{start:{line:577,column:30},end:{line:577,column:31}},loc:{start:{line:577,column:48},end:{line:581,column:5}},line:577},55:{name:"(anonymous_55)",decl:{start:{line:582,column:19},end:{line:582,column:20}},loc:{start:{line:582,column:31},end:{line:591,column:5}},line:582},56:{name:"(anonymous_56)",decl:{start:{line:588,column:16},end:{line:588,column:17}},loc:{start:{line:588,column:25},end:{line:588,column:37}},line:588},57:{name:"(anonymous_57)",decl:{start:{line:589,column:13},end:{line:589,column:14}},loc:{start:{line:589,column:22},end:{line:589,column:33}},line:589},58:{name:"(anonymous_58)",decl:{start:{line:592,column:22},end:{line:592,column:23}},loc:{start:{line:592,column:34},end:{line:599,column:5}},line:592},59:{name:"(anonymous_59)",decl:{start:{line:596,column:16},end:{line:596,column:17}},loc:{start:{line:596,column:25},end:{line:596,column:71}},line:596},60:{name:"(anonymous_60)",decl:{start:{line:597,column:13},end:{line:597,column:14}},loc:{start:{line:597,column:22},end:{line:597,column:43}},line:597},61:{name:"(anonymous_61)",decl:{start:{line:600,column:17},end:{line:600,column:18}},loc:{start:{line:600,column:51},end:{line:635,column:5}},line:600},62:{name:"(anonymous_62)",decl:{start:{line:621,column:16},end:{line:621,column:17}},loc:{start:{line:621,column:30},end:{line:630,column:11}},line:621},63:{name:"(anonymous_63)",decl:{start:{line:631,column:16},end:{line:631,column:17}},loc:{start:{line:631,column:30},end:{line:633,column:11}},line:631},64:{name:"(anonymous_64)",decl:{start:{line:636,column:22},end:{line:636,column:23}},loc:{start:{line:636,column:34},end:{line:638,column:5}},line:636},65:{name:"(anonymous_65)",decl:{start:{line:639,column:22},end:{line:639,column:23}},loc:{start:{line:639,column:40},end:{line:646,column:5}},line:639},66:{name:"(anonymous_66)",decl:{start:{line:647,column:23},end:{line:647,column:24}},loc:{start:{line:647,column:50},end:{line:676,column:5}},line:647},67:{name:"(anonymous_67)",decl:{start:{line:652,column:8},end:{line:652,column:9}},loc:{start:{line:653,column:10},end:{line:654,column:32}},line:653},68:{name:"(anonymous_68)",decl:{start:{line:666,column:12},end:{line:666,column:13}},loc:{start:{line:666,column:21},end:{line:666,column:43}},line:666},69:{name:"(anonymous_69)",decl:{start:{line:670,column:27},end:{line:670,column:28}},loc:{start:{line:670,column:36},end:{line:675,column:7}},line:670},70:{name:"(anonymous_70)",decl:{start:{line:677,column:23},end:{line:677,column:24}},loc:{start:{line:677,column:64},end:{line:682,column:5}},line:677},71:{name:"(anonymous_71)",decl:{start:{line:680,column:13},end:{line:680,column:14}},loc:{start:{line:680,column:34},end:{line:680,column:51}},line:680},72:{name:"(anonymous_72)",decl:{start:{line:683,column:24},end:{line:683,column:25}},loc:{start:{line:683,column:44},end:{line:688,column:5}},line:683},73:{name:"(anonymous_73)",decl:{start:{line:685,column:42},end:{line:685,column:43}},loc:{start:{line:685,column:58},end:{line:687,column:7}},line:685},74:{name:"(anonymous_74)",decl:{start:{line:689,column:26},end:{line:689,column:27}},loc:{start:{line:689,column:38},end:{line:701,column:5}},line:689},75:{name:"(anonymous_75)",decl:{start:{line:695,column:14},end:{line:695,column:15}},loc:{start:{line:695,column:26},end:{line:697,column:9}},line:695},76:{name:"(anonymous_76)",decl:{start:{line:698,column:14},end:{line:698,column:15}},loc:{start:{line:698,column:28},end:{line:700,column:9}},line:698},77:{name:"(anonymous_77)",decl:{start:{line:702,column:4},end:{line:702,column:5}},loc:{start:{line:702,column:29},end:{line:708,column:5}},line:702},78:{name:"(anonymous_78)",decl:{start:{line:709,column:4},end:{line:709,column:5}},loc:{start:{line:709,column:19},end:{line:726,column:5}},line:709},79:{name:"(anonymous_79)",decl:{start:{line:727,column:4},end:{line:727,column:5}},loc:{start:{line:727,column:20},end:{line:737,column:5}},line:727},80:{name:"(anonymous_80)",decl:{start:{line:738,column:20},end:{line:738,column:21}},loc:{start:{line:738,column:32},end:{line:758,column:5}},line:738},81:{name:"(anonymous_81)",decl:{start:{line:741,column:14},end:{line:741,column:15}},loc:{start:{line:741,column:41},end:{line:757,column:9}},line:741},82:{name:"(anonymous_82)",decl:{start:{line:745,column:19},end:{line:745,column:20}},loc:{start:{line:745,column:32},end:{line:745,column:73}},line:745},83:{name:"(anonymous_83)",decl:{start:{line:759,column:4},end:{line:759,column:5}},loc:{start:{line:759,column:20},end:{line:783,column:5}},line:759},84:{name:"(anonymous_84)",decl:{start:{line:774,column:22},end:{line:774,column:23}},loc:{start:{line:774,column:32},end:{line:774,column:51}},line:774},85:{name:"(anonymous_85)",decl:{start:{line:780,column:14},end:{line:780,column:15}},loc:{start:{line:780,column:32},end:{line:782,column:9}},line:780},86:{name:"(anonymous_86)",decl:{start:{line:784,column:4},end:{line:784,column:5}},loc:{start:{line:784,column:21},end:{line:798,column:5}},line:784},87:{name:"(anonymous_87)",decl:{start:{line:799,column:24},end:{line:799,column:25}},loc:{start:{line:799,column:41},end:{line:801,column:5}},line:799},88:{name:"(anonymous_88)",decl:{start:{line:802,column:18},end:{line:802,column:19}},loc:{start:{line:802,column:30},end:{line:804,column:5}},line:802},89:{name:"(anonymous_89)",decl:{start:{line:805,column:4},end:{line:805,column:5}},loc:{start:{line:805,column:37},end:{line:825,column:5}},line:805},90:{name:"(anonymous_90)",decl:{start:{line:822,column:35},end:{line:822,column:36}},loc:{start:{line:822,column:49},end:{line:824,column:7}},line:822},91:{name:"(anonymous_91)",decl:{start:{line:826,column:4},end:{line:826,column:5}},loc:{start:{line:826,column:34},end:{line:828,column:5}},line:826},92:{name:"(anonymous_92)",decl:{start:{line:829,column:4},end:{line:829,column:5}},loc:{start:{line:829,column:19},end:{line:836,column:5}},line:829},93:{name:"(anonymous_93)",decl:{start:{line:837,column:4},end:{line:837,column:5}},loc:{start:{line:837,column:11},end:{line:847,column:5}},line:837},94:{name:"(anonymous_94)",decl:{start:{line:848,column:4},end:{line:848,column:5}},loc:{start:{line:848,column:11},end:{line:850,column:5}},line:848},95:{name:"(anonymous_95)",decl:{start:{line:851,column:4},end:{line:851,column:5}},loc:{start:{line:851,column:19},end:{line:984,column:5}},line:851},96:{name:"(anonymous_96)",decl:{start:{line:871,column:22},end:{line:871,column:23}},loc:{start:{line:871,column:36},end:{line:881,column:17}},line:871},97:{name:"(anonymous_97)",decl:{start:{line:882,column:23},end:{line:882,column:24}},loc:{start:{line:882,column:32},end:{line:885,column:17}},line:882},98:{name:"(anonymous_98)",decl:{start:{line:929,column:16},end:{line:929,column:17}},loc:{start:{line:929,column:25},end:{line:929,column:69}},line:929},99:{name:"(anonymous_99)",decl:{start:{line:985,column:4},end:{line:985,column:5}},loc:{start:{line:985,column:32},end:{line:994,column:5}},line:985},100:{name:"(anonymous_100)",decl:{start:{line:995,column:4},end:{line:995,column:5}},loc:{start:{line:995,column:23},end:{line:1144,column:5}},line:995},101:{name:"(anonymous_101)",decl:{start:{line:1028,column:30},end:{line:1028,column:31}},loc:{start:{line:1028,column:41},end:{line:1047,column:11}},line:1028},102:{name:"(anonymous_102)",decl:{start:{line:1081,column:37},end:{line:1081,column:38}},loc:{start:{line:1081,column:44},end:{line:1083,column:11}},line:1081},103:{name:"(anonymous_103)",decl:{start:{line:1098,column:37},end:{line:1098,column:38}},loc:{start:{line:1098,column:44},end:{line:1100,column:11}},line:1098},104:{name:"(anonymous_104)",decl:{start:{line:1114,column:40},end:{line:1114,column:41}},loc:{start:{line:1114,column:51},end:{line:1123,column:11}},line:1114},105:{name:"(anonymous_105)",decl:{start:{line:1145,column:4},end:{line:1145,column:5}},loc:{start:{line:1145,column:36},end:{line:1175,column:5}},line:1145},106:{name:"(anonymous_106)",decl:{start:{line:1152,column:28},end:{line:1152,column:29}},loc:{start:{line:1152,column:44},end:{line:1166,column:9}},line:1152},107:{name:"(anonymous_107)",decl:{start:{line:1176,column:4},end:{line:1176,column:5}},loc:{start:{line:1176,column:20},end:{line:1180,column:5}},line:1176},108:{name:"(anonymous_108)",decl:{start:{line:1182,column:4},end:{line:1182,column:5}},loc:{start:{line:1182,column:14},end:{line:1192,column:5}},line:1182},109:{name:"(anonymous_109)",decl:{start:{line:1193,column:4},end:{line:1193,column:5}},loc:{start:{line:1193,column:15},end:{line:1195,column:5}},line:1193},110:{name:"(anonymous_110)",decl:{start:{line:1196,column:4},end:{line:1196,column:5}},loc:{start:{line:1196,column:17},end:{line:1220,column:5}},line:1196},111:{name:"(anonymous_111)",decl:{start:{line:1198,column:14},end:{line:1198,column:15}},loc:{start:{line:1198,column:28},end:{line:1215,column:9}},line:1198},112:{name:"(anonymous_112)",decl:{start:{line:1216,column:15},end:{line:1216,column:16}},loc:{start:{line:1216,column:26},end:{line:1219,column:9}},line:1216},113:{name:"(anonymous_113)",decl:{start:{line:1222,column:4},end:{line:1222,column:5}},loc:{start:{line:1222,column:58},end:{line:1250,column:5}},line:1222},114:{name:"(anonymous_114)",decl:{start:{line:1253,column:4},end:{line:1253,column:5}},loc:{start:{line:1253,column:28},end:{line:1336,column:5}},line:1253},115:{name:"(anonymous_115)",decl:{start:{line:1274,column:18},end:{line:1274,column:19}},loc:{start:{line:1274,column:32},end:{line:1279,column:13}},line:1274},116:{name:"(anonymous_116)",decl:{start:{line:1276,column:25},end:{line:1276,column:26}},loc:{start:{line:1276,column:31},end:{line:1278,column:15}},line:1276},117:{name:"(anonymous_117)",decl:{start:{line:1280,column:19},end:{line:1280,column:20}},loc:{start:{line:1280,column:30},end:{line:1282,column:13}},line:1280},118:{name:"(anonymous_118)",decl:{start:{line:1294,column:16},end:{line:1294,column:17}},loc:{start:{line:1294,column:30},end:{line:1319,column:11}},line:1294},119:{name:"(anonymous_119)",decl:{start:{line:1310,column:25},end:{line:1310,column:26}},loc:{start:{line:1310,column:31},end:{line:1312,column:15}},line:1310},120:{name:"(anonymous_120)",decl:{start:{line:1320,column:17},end:{line:1320,column:18}},loc:{start:{line:1320,column:35},end:{line:1332,column:11}},line:1320},121:{name:"(anonymous_121)",decl:{start:{line:1337,column:4},end:{line:1337,column:5}},loc:{start:{line:1337,column:13},end:{line:1339,column:5}},line:1337},122:{name:"(anonymous_122)",decl:{start:{line:1340,column:4},end:{line:1340,column:5}},loc:{start:{line:1340,column:29},end:{line:1348,column:5}},line:1340},123:{name:"(anonymous_123)",decl:{start:{line:1349,column:4},end:{line:1349,column:5}},loc:{start:{line:1349,column:13},end:{line:1376,column:5}},line:1349},124:{name:"(anonymous_124)",decl:{start:{line:1359,column:14},end:{line:1359,column:15}},loc:{start:{line:1359,column:26},end:{line:1363,column:9}},line:1359},125:{name:"(anonymous_125)",decl:{start:{line:1364,column:14},end:{line:1364,column:15}},loc:{start:{line:1364,column:28},end:{line:1366,column:9}},line:1364},126:{name:"(anonymous_126)",decl:{start:{line:1367,column:15},end:{line:1367,column:16}},loc:{start:{line:1367,column:26},end:{line:1375,column:9}},line:1367},127:{name:"(anonymous_127)",decl:{start:{line:1377,column:4},end:{line:1377,column:5}},loc:{start:{line:1377,column:15},end:{line:1386,column:5}},line:1377},128:{name:"(anonymous_128)",decl:{start:{line:1388,column:4},end:{line:1388,column:5}},loc:{start:{line:1388,column:22},end:{line:1400,column:5}},line:1388},129:{name:"(anonymous_129)",decl:{start:{line:1395,column:14},end:{line:1395,column:15}},loc:{start:{line:1395,column:28},end:{line:1399,column:7}},line:1395},130:{name:"(anonymous_130)",decl:{start:{line:1401,column:4},end:{line:1401,column:5}},loc:{start:{line:1401,column:23},end:{line:1413,column:5}},line:1401},131:{name:"(anonymous_131)",decl:{start:{line:1408,column:14},end:{line:1408,column:15}},loc:{start:{line:1408,column:28},end:{line:1412,column:7}},line:1408},132:{name:"(anonymous_132)",decl:{start:{line:1414,column:4},end:{line:1414,column:5}},loc:{start:{line:1414,column:20},end:{line:1416,column:5}},line:1414},133:{name:"(anonymous_133)",decl:{start:{line:1417,column:4},end:{line:1417,column:5}},loc:{start:{line:1417,column:18},end:{line:1419,column:5}},line:1417},134:{name:"(anonymous_134)",decl:{start:{line:1420,column:4},end:{line:1420,column:5}},loc:{start:{line:1420,column:23},end:{line:1422,column:5}},line:1420},135:{name:"(anonymous_135)",decl:{start:{line:1424,column:4},end:{line:1424,column:5}},loc:{start:{line:1424,column:24},end:{line:1453,column:5}},line:1424},136:{name:"(anonymous_136)",decl:{start:{line:1454,column:22},end:{line:1454,column:23}},loc:{start:{line:1454,column:34},end:{line:1459,column:5}},line:1454},137:{name:"(anonymous_137)",decl:{start:{line:1457,column:16},end:{line:1457,column:17}},loc:{start:{line:1457,column:25},end:{line:1457,column:60}},line:1457},138:{name:"(anonymous_138)",decl:{start:{line:1458,column:17},end:{line:1458,column:18}},loc:{start:{line:1458,column:29},end:{line:1458,column:69}},line:1458},139:{name:"(anonymous_139)",decl:{start:{line:1460,column:24},end:{line:1460,column:25}},loc:{start:{line:1460,column:36},end:{line:1473,column:5}},line:1460},140:{name:"(anonymous_140)",decl:{start:{line:1469,column:14},end:{line:1469,column:15}},loc:{start:{line:1469,column:20},end:{line:1472,column:9}},line:1469},141:{name:"(anonymous_141)",decl:{start:{line:1474,column:14},end:{line:1474,column:15}},loc:{start:{line:1474,column:26},end:{line:1476,column:5}},line:1474},142:{name:"(anonymous_142)",decl:{start:{line:1477,column:16},end:{line:1477,column:17}},loc:{start:{line:1477,column:28},end:{line:1481,column:5}},line:1477}},branchMap:{0:{loc:{start:{line:177,column:6},end:{line:181,column:7}},type:"if",locations:[{start:{line:177,column:6},end:{line:181,column:7}},{start:{line:179,column:13},end:{line:181,column:7}}],line:177},1:{loc:{start:{line:189,column:13},end:{line:191,column:32}},type:"cond-expr",locations:[{start:{line:190,column:10},end:{line:190,column:24}},{start:{line:191,column:10},end:{line:191,column:32}}],line:189},2:{loc:{start:{line:194,column:13},end:{line:194,column:67}},type:"cond-expr",locations:[{start:{line:194,column:53},end:{line:194,column:62}},{start:{line:194,column:65},end:{line:194,column:67}}],line:194},3:{loc:{start:{line:200,column:6},end:{line:200,column:59}},type:"if",locations:[{start:{line:200,column:6},end:{line:200,column:59}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:200},4:{loc:{start:{line:206,column:13},end:{line:206,column:64}},type:"cond-expr",locations:[{start:{line:206,column:46},end:{line:206,column:48}},{start:{line:206,column:51},end:{line:206,column:64}}],line:206},5:{loc:{start:{line:347,column:24},end:{line:347,column:63}},type:"binary-expr",locations:[{start:{line:347,column:24},end:{line:347,column:38}},{start:{line:347,column:42},end:{line:347,column:63}}],line:347},6:{loc:{start:{line:403,column:6},end:{line:405,column:7}},type:"if",locations:[{start:{line:403,column:6},end:{line:405,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:403},7:{loc:{start:{line:448,column:6},end:{line:453,column:7}},type:"if",locations:[{start:{line:448,column:6},end:{line:453,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:448},8:{loc:{start:{line:449,column:8},end:{line:450,column:46}},type:"binary-expr",locations:[{start:{line:449,column:8},end:{line:449,column:36}},{start:{line:450,column:8},end:{line:450,column:46}}],line:449},9:{loc:{start:{line:462,column:4},end:{line:464,column:5}},type:"if",locations:[{start:{line:462,column:4},end:{line:464,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:462},10:{loc:{start:{line:465,column:4},end:{line:467,column:5}},type:"if",locations:[{start:{line:465,column:4},end:{line:467,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:465},11:{loc:{start:{line:471,column:4},end:{line:475,column:5}},type:"if",locations:[{start:{line:471,column:4},end:{line:475,column:5}},{start:{line:473,column:11},end:{line:475,column:5}}],line:471},12:{loc:{start:{line:544,column:8},end:{line:559,column:9}},type:"if",locations:[{start:{line:544,column:8},end:{line:559,column:9}},{start:{line:548,column:15},end:{line:559,column:9}}],line:544},13:{loc:{start:{line:548,column:15},end:{line:559,column:9}},type:"if",locations:[{start:{line:548,column:15},end:{line:559,column:9}},{start:{line:553,column:15},end:{line:559,column:9}}],line:548},14:{loc:{start:{line:554,column:10},end:{line:558,column:11}},type:"if",locations:[{start:{line:554,column:10},end:{line:558,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:554},15:{loc:{start:{line:564,column:8},end:{line:568,column:9}},type:"if",locations:[{start:{line:564,column:8},end:{line:568,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:564},16:{loc:{start:{line:569,column:8},end:{line:572,column:9}},type:"if",locations:[{start:{line:569,column:8},end:{line:572,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:569},17:{loc:{start:{line:596,column:25},end:{line:596,column:71}},type:"binary-expr",locations:[{start:{line:596,column:25},end:{line:596,column:45}},{start:{line:596,column:49},end:{line:596,column:71}}],line:596},18:{loc:{start:{line:600,column:33},end:{line:600,column:49}},type:"default-arg",locations:[{start:{line:600,column:47},end:{line:600,column:49}}],line:600},19:{loc:{start:{line:601,column:6},end:{line:634,column:7}},type:"if",locations:[{start:{line:601,column:6},end:{line:634,column:7}},{start:{line:608,column:13},end:{line:634,column:7}}],line:601},20:{loc:{start:{line:641,column:6},end:{line:645,column:7}},type:"if",locations:[{start:{line:641,column:6},end:{line:645,column:7}},{start:{line:643,column:13},end:{line:645,column:7}}],line:641},21:{loc:{start:{line:648,column:6},end:{line:650,column:7}},type:"if",locations:[{start:{line:648,column:6},end:{line:650,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:648},22:{loc:{start:{line:653,column:10},end:{line:654,column:32}},type:"binary-expr",locations:[{start:{line:653,column:11},end:{line:653,column:36}},{start:{line:653,column:40},end:{line:653,column:64}},{start:{line:654,column:10},end:{line:654,column:32}}],line:653},23:{loc:{start:{line:658,column:6},end:{line:669,column:7}},type:"switch",locations:[{start:{line:659,column:8},end:{line:662,column:15}},{start:{line:663,column:8},end:{line:668,column:15}}],line:658},24:{loc:{start:{line:672,column:8},end:{line:674,column:9}},type:"if",locations:[{start:{line:672,column:8},end:{line:674,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:672},25:{loc:{start:{line:677,column:33},end:{line:677,column:62}},type:"default-arg",locations:[{start:{line:677,column:43},end:{line:677,column:62}}],line:677},26:{loc:{start:{line:680,column:34},end:{line:680,column:51}},type:"binary-expr",locations:[{start:{line:680,column:34},end:{line:680,column:44}},{start:{line:680,column:48},end:{line:680,column:51}}],line:680},27:{loc:{start:{line:703,column:6},end:{line:707,column:7}},type:"if",locations:[{start:{line:703,column:6},end:{line:707,column:7}},{start:{line:705,column:13},end:{line:707,column:7}}],line:703},28:{loc:{start:{line:712,column:6},end:{line:725,column:7}},type:"if",locations:[{start:{line:712,column:6},end:{line:725,column:7}},{start:{line:718,column:13},end:{line:725,column:7}}],line:712},29:{loc:{start:{line:713,column:8},end:{line:714,column:43}},type:"binary-expr",locations:[{start:{line:713,column:9},end:{line:713,column:22}},{start:{line:713,column:26},end:{line:713,column:39}},{start:{line:714,column:8},end:{line:714,column:43}}],line:713},30:{loc:{start:{line:718,column:13},end:{line:725,column:7}},type:"if",locations:[{start:{line:718,column:13},end:{line:725,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:718},31:{loc:{start:{line:719,column:8},end:{line:721,column:43}},type:"binary-expr",locations:[{start:{line:719,column:9},end:{line:719,column:22}},{start:{line:719,column:26},end:{line:719,column:39}},{start:{line:720,column:8},end:{line:720,column:22}},{start:{line:721,column:8},end:{line:721,column:43}}],line:719},32:{loc:{start:{line:729,column:6},end:{line:731,column:7}},type:"if",locations:[{start:{line:729,column:6},end:{line:731,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:729},33:{loc:{start:{line:732,column:6},end:{line:736,column:7}},type:"if",locations:[{start:{line:732,column:6},end:{line:736,column:7}},{start:{line:734,column:13},end:{line:736,column:7}}],line:732},34:{loc:{start:{line:743,column:10},end:{line:748,column:11}},type:"if",locations:[{start:{line:743,column:10},end:{line:748,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:743},35:{loc:{start:{line:749,column:10},end:{line:752,column:11}},type:"if",locations:[{start:{line:749,column:10},end:{line:752,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:749},36:{loc:{start:{line:753,column:10},end:{line:755,column:11}},type:"if",locations:[{start:{line:753,column:10},end:{line:755,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:753},37:{loc:{start:{line:805,column:17},end:{line:805,column:35}},type:"default-arg",locations:[{start:{line:805,column:31},end:{line:805,column:35}}],line:805},38:{loc:{start:{line:808,column:6},end:{line:811,column:7}},type:"if",locations:[{start:{line:808,column:6},end:{line:811,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:808},39:{loc:{start:{line:813,column:6},end:{line:815,column:7}},type:"if",locations:[{start:{line:813,column:6},end:{line:815,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:813},40:{loc:{start:{line:819,column:6},end:{line:821,column:7}},type:"if",locations:[{start:{line:819,column:6},end:{line:821,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:819},41:{loc:{start:{line:826,column:14},end:{line:826,column:32}},type:"default-arg",locations:[{start:{line:826,column:28},end:{line:826,column:32}}],line:826},42:{loc:{start:{line:830,column:6},end:{line:835,column:7}},type:"if",locations:[{start:{line:830,column:6},end:{line:835,column:7}},{start:{line:832,column:13},end:{line:835,column:7}}],line:830},43:{loc:{start:{line:841,column:6},end:{line:846,column:7}},type:"if",locations:[{start:{line:841,column:6},end:{line:846,column:7}},{start:{line:844,column:13},end:{line:846,column:7}}],line:841},44:{loc:{start:{line:854,column:6},end:{line:983,column:7}},type:"switch",locations:[{start:{line:855,column:8},end:{line:861,column:15}},{start:{line:862,column:8},end:{line:949,column:15}},{start:{line:950,column:8},end:{line:961,column:15}},{start:{line:962,column:8},end:{line:964,column:15}},{start:{line:965,column:8},end:{line:968,column:15}},{start:{line:969,column:8},end:{line:975,column:15}},{start:{line:976,column:8},end:{line:978,column:15}},{start:{line:979,column:8},end:{line:982,column:15}}],line:854},45:{loc:{start:{line:858,column:10},end:{line:860,column:11}},type:"if",locations:[{start:{line:858,column:10},end:{line:860,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:858},46:{loc:{start:{line:863,column:10},end:{line:892,column:11}},type:"if",locations:[{start:{line:863,column:10},end:{line:892,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:863},47:{loc:{start:{line:863,column:14},end:{line:863,column:69}},type:"binary-expr",locations:[{start:{line:863,column:14},end:{line:863,column:27}},{start:{line:863,column:31},end:{line:863,column:69}}],line:863},48:{loc:{start:{line:864,column:12},end:{line:891,column:13}},type:"if",locations:[{start:{line:864,column:12},end:{line:891,column:13}},{start:{line:886,column:19},end:{line:891,column:13}}],line:864},49:{loc:{start:{line:895,column:10},end:{line:948,column:11}},type:"switch",locations:[{start:{line:896,column:12},end:{line:910,column:19}},{start:{line:911,column:12},end:{line:912,column:31}},{start:{line:914,column:12},end:{line:915,column:45}},{start:{line:917,column:12},end:{line:917,column:30}},{start:{line:918,column:12},end:{line:918,column:27}},{start:{line:919,column:12},end:{line:945,column:19}},{start:{line:946,column:12},end:{line:947,column:19}}],line:895},50:{loc:{start:{line:920,column:14},end:{line:926,column:15}},type:"if",locations:[{start:{line:920,column:14},end:{line:926,column:15}},{start:{line:923,column:21},end:{line:926,column:15}}],line:920},51:{loc:{start:{line:931,column:14},end:{line:944,column:15}},type:"if",locations:[{start:{line:931,column:14},end:{line:944,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:931},52:{loc:{start:{line:933,column:27},end:{line:933,column:62}},type:"cond-expr",locations:[{start:{line:933,column:46},end:{line:933,column:58}},{start:{line:933,column:61},end:{line:933,column:62}}],line:933},53:{loc:{start:{line:941,column:16},end:{line:943,column:17}},type:"if",locations:[{start:{line:941,column:16},end:{line:943,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:941},54:{loc:{start:{line:954,column:12},end:{line:956,column:13}},type:"if",locations:[{start:{line:954,column:12},end:{line:956,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:954},55:{loc:{start:{line:971,column:10},end:{line:974,column:11}},type:"if",locations:[{start:{line:971,column:10},end:{line:974,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:971},56:{loc:{start:{line:996,column:6},end:{line:1001,column:7}},type:"if",locations:[{start:{line:996,column:6},end:{line:1001,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:996},57:{loc:{start:{line:1009,column:6},end:{line:1143,column:7}},type:"switch",locations:[{start:{line:1010,column:8},end:{line:1010,column:19}},{start:{line:1011,column:8},end:{line:1049,column:15}},{start:{line:1050,column:8},end:{line:1060,column:15}},{start:{line:1061,column:8},end:{line:1072,column:15}},{start:{line:1073,column:8},end:{line:1088,column:15}},{start:{line:1089,column:8},end:{line:1089,column:27}},{start:{line:1090,column:8},end:{line:1106,column:15}},{start:{line:1107,column:8},end:{line:1111,column:15}},{start:{line:1112,column:8},end:{line:1125,column:15}},{start:{line:1126,column:8},end:{line:1126,column:32}},{start:{line:1127,column:8},end:{line:1137,column:15}},{start:{line:1138,column:8},end:{line:1142,column:15}}],line:1009},58:{loc:{start:{line:1018,column:10},end:{line:1023,column:11}},type:"if",locations:[{start:{line:1018,column:10},end:{line:1023,column:11}},{start:{line:1020,column:17},end:{line:1023,column:11}}],line:1018},59:{loc:{start:{line:1018,column:14},end:{line:1018,column:77}},type:"binary-expr",locations:[{start:{line:1018,column:14},end:{line:1018,column:26}},{start:{line:1018,column:30},end:{line:1018,column:51}},{start:{line:1018,column:55},end:{line:1018,column:77}}],line:1018},60:{loc:{start:{line:1020,column:17},end:{line:1023,column:11}},type:"if",locations:[{start:{line:1020,column:17},end:{line:1023,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1020},61:{loc:{start:{line:1025,column:10},end:{line:1027,column:11}},type:"if",locations:[{start:{line:1025,column:10},end:{line:1027,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1025},62:{loc:{start:{line:1030,column:12},end:{line:1046,column:13}},type:"if",locations:[{start:{line:1030,column:12},end:{line:1046,column:13}},{start:{line:1038,column:19},end:{line:1046,column:13}}],line:1030},63:{loc:{start:{line:1053,column:10},end:{line:1055,column:11}},type:"if",locations:[{start:{line:1053,column:10},end:{line:1055,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1053},64:{loc:{start:{line:1062,column:10},end:{line:1064,column:11}},type:"if",locations:[{start:{line:1062,column:10},end:{line:1064,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1062},65:{loc:{start:{line:1062,column:14},end:{line:1062,column:52}},type:"binary-expr",locations:[{start:{line:1062,column:14},end:{line:1062,column:25}},{start:{line:1062,column:29},end:{line:1062,column:52}}],line:1062},66:{loc:{start:{line:1065,column:10},end:{line:1067,column:11}},type:"if",locations:[{start:{line:1065,column:10},end:{line:1067,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1065},67:{loc:{start:{line:1065,column:14},end:{line:1065,column:48}},type:"binary-expr",locations:[{start:{line:1065,column:14},end:{line:1065,column:25}},{start:{line:1065,column:29},end:{line:1065,column:48}}],line:1065},68:{loc:{start:{line:1074,column:10},end:{line:1076,column:11}},type:"if",locations:[{start:{line:1074,column:10},end:{line:1076,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1074},69:{loc:{start:{line:1074,column:14},end:{line:1074,column:52}},type:"binary-expr",locations:[{start:{line:1074,column:14},end:{line:1074,column:25}},{start:{line:1074,column:29},end:{line:1074,column:52}}],line:1074},70:{loc:{start:{line:1077,column:10},end:{line:1079,column:11}},type:"if",locations:[{start:{line:1077,column:10},end:{line:1079,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1077},71:{loc:{start:{line:1077,column:14},end:{line:1077,column:48}},type:"binary-expr",locations:[{start:{line:1077,column:14},end:{line:1077,column:25}},{start:{line:1077,column:29},end:{line:1077,column:48}}],line:1077},72:{loc:{start:{line:1091,column:10},end:{line:1093,column:11}},type:"if",locations:[{start:{line:1091,column:10},end:{line:1093,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1091},73:{loc:{start:{line:1091,column:14},end:{line:1091,column:52}},type:"binary-expr",locations:[{start:{line:1091,column:14},end:{line:1091,column:25}},{start:{line:1091,column:29},end:{line:1091,column:52}}],line:1091},74:{loc:{start:{line:1094,column:10},end:{line:1096,column:11}},type:"if",locations:[{start:{line:1094,column:10},end:{line:1096,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1094},75:{loc:{start:{line:1094,column:14},end:{line:1094,column:48}},type:"binary-expr",locations:[{start:{line:1094,column:14},end:{line:1094,column:25}},{start:{line:1094,column:29},end:{line:1094,column:48}}],line:1094},76:{loc:{start:{line:1101,column:10},end:{line:1103,column:11}},type:"if",locations:[{start:{line:1101,column:10},end:{line:1103,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1101},77:{loc:{start:{line:1130,column:10},end:{line:1132,column:11}},type:"if",locations:[{start:{line:1130,column:10},end:{line:1132,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1130},78:{loc:{start:{line:1130,column:14},end:{line:1130,column:47}},type:"binary-expr",locations:[{start:{line:1130,column:14},end:{line:1130,column:25}},{start:{line:1130,column:29},end:{line:1130,column:47}}],line:1130},79:{loc:{start:{line:1133,column:10},end:{line:1135,column:11}},type:"if",locations:[{start:{line:1133,column:10},end:{line:1135,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1133},80:{loc:{start:{line:1150,column:6},end:{line:1167,column:7}},type:"if",locations:[{start:{line:1150,column:6},end:{line:1167,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1150},81:{loc:{start:{line:1170,column:18},end:{line:1170,column:79}},type:"cond-expr",locations:[{start:{line:1170,column:39},end:{line:1170,column:58}},{start:{line:1170,column:61},end:{line:1170,column:79}}],line:1170},82:{loc:{start:{line:1203,column:10},end:{line:1205,column:11}},type:"if",locations:[{start:{line:1203,column:10},end:{line:1205,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1203},83:{loc:{start:{line:1206,column:10},end:{line:1208,column:11}},type:"if",locations:[{start:{line:1206,column:10},end:{line:1208,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1206},84:{loc:{start:{line:1209,column:10},end:{line:1211,column:11}},type:"if",locations:[{start:{line:1209,column:10},end:{line:1211,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1209},85:{loc:{start:{line:1222,column:43},end:{line:1222,column:56}},type:"default-arg",locations:[{start:{line:1222,column:51},end:{line:1222,column:56}}],line:1222},86:{loc:{start:{line:1224,column:6},end:{line:1227,column:7}},type:"if",locations:[{start:{line:1224,column:6},end:{line:1227,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1224},87:{loc:{start:{line:1237,column:6},end:{line:1243,column:7}},type:"if",locations:[{start:{line:1237,column:6},end:{line:1243,column:7}},{start:{line:1241,column:13},end:{line:1243,column:7}}],line:1237},88:{loc:{start:{line:1244,column:6},end:{line:1247,column:7}},type:"if",locations:[{start:{line:1244,column:6},end:{line:1247,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1244},89:{loc:{start:{line:1253,column:13},end:{line:1253,column:26}},type:"default-arg",locations:[{start:{line:1253,column:20},end:{line:1253,column:26}}],line:1253},90:{loc:{start:{line:1255,column:6},end:{line:1334,column:7}},type:"if",locations:[{start:{line:1255,column:6},end:{line:1334,column:7}},{start:{line:1284,column:13},end:{line:1334,column:7}}],line:1255},91:{loc:{start:{line:1256,column:8},end:{line:1283,column:9}},type:"if",locations:[{start:{line:1256,column:8},end:{line:1283,column:9}},{start:{line:1259,column:15},end:{line:1283,column:9}}],line:1256},92:{loc:{start:{line:1260,column:10},end:{line:1266,column:11}},type:"if",locations:[{start:{line:1260,column:10},end:{line:1266,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1260},93:{loc:{start:{line:1295,column:12},end:{line:1318,column:13}},type:"if",locations:[{start:{line:1295,column:12},end:{line:1318,column:13}},{start:{line:1313,column:19},end:{line:1318,column:13}}],line:1295},94:{loc:{start:{line:1296,column:14},end:{line:1304,column:15}},type:"if",locations:[{start:{line:1296,column:14},end:{line:1304,column:15}},{start:{line:1300,column:21},end:{line:1304,column:15}}],line:1296},95:{loc:{start:{line:1305,column:14},end:{line:1308,column:15}},type:"if",locations:[{start:{line:1305,column:14},end:{line:1308,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1305},96:{loc:{start:{line:1324,column:12},end:{line:1330,column:13}},type:"if",locations:[{start:{line:1324,column:12},end:{line:1330,column:13}},{start:{line:1327,column:19},end:{line:1330,column:13}}],line:1324},97:{loc:{start:{line:1343,column:6},end:{line:1346,column:7}},type:"if",locations:[{start:{line:1343,column:6},end:{line:1346,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1343},98:{loc:{start:{line:1351,column:6},end:{line:1353,column:7}},type:"if",locations:[{start:{line:1351,column:6},end:{line:1353,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1351},99:{loc:{start:{line:1368,column:10},end:{line:1374,column:11}},type:"if",locations:[{start:{line:1368,column:10},end:{line:1374,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1368},100:{loc:{start:{line:1425,column:6},end:{line:1452,column:7}},type:"if",locations:[{start:{line:1425,column:6},end:{line:1452,column:7}},{start:{line:1428,column:13},end:{line:1452,column:7}}],line:1425},101:{loc:{start:{line:1428,column:13},end:{line:1452,column:7}},type:"if",locations:[{start:{line:1428,column:13},end:{line:1452,column:7}},{start:{line:1438,column:13},end:{line:1452,column:7}}],line:1428},102:{loc:{start:{line:1438,column:13},end:{line:1452,column:7}},type:"if",locations:[{start:{line:1438,column:13},end:{line:1452,column:7}},{start:{line:1446,column:13},end:{line:1452,column:7}}],line:1438},103:{loc:{start:{line:1440,column:8},end:{line:1442,column:9}},type:"if",locations:[{start:{line:1440,column:8},end:{line:1442,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1440},104:{loc:{start:{line:1446,column:13},end:{line:1452,column:7}},type:"if",locations:[{start:{line:1446,column:13},end:{line:1452,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1446},105:{loc:{start:{line:1448,column:8},end:{line:1450,column:9}},type:"if",locations:[{start:{line:1448,column:8},end:{line:1450,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1448},106:{loc:{start:{line:1478,column:6},end:{line:1480,column:7}},type:"if",locations:[{start:{line:1478,column:6},end:{line:1480,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1478},107:{loc:{start:{line:1478,column:10},end:{line:1478,column:58}},type:"binary-expr",locations:[{start:{line:1478,column:10},end:{line:1478,column:40}},{start:{line:1478,column:44},end:{line:1478,column:58}}],line:1478}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:0,136:0,137:0,138:0,139:0,140:0,141:0,142:0,143:0,144:0,145:0,146:0,147:0,148:0,149:0,150:0,151:0,152:0,153:0,154:0,155:0,156:0,157:0,158:0,159:0,160:0,161:0,162:0,163:0,164:0,165:0,166:0,167:0,168:0,169:0,170:0,171:0,172:0,173:0,174:0,175:0,176:0,177:0,178:0,179:0,180:0,181:0,182:0,183:0,184:0,185:0,186:0,187:0,188:0,189:0,190:0,191:0,192:0,193:0,194:0,195:0,196:0,197:0,198:0,199:0,200:0,201:0,202:0,203:0,204:0,205:0,206:0,207:0,208:0,209:0,210:0,211:0,212:0,213:0,214:0,215:0,216:0,217:0,218:0,219:0,220:0,221:0,222:0,223:0,224:0,225:0,226:0,227:0,228:0,229:0,230:0,231:0,232:0,233:0,234:0,235:0,236:0,237:0,238:0,239:0,240:0,241:0,242:0,243:0,244:0,245:0,246:0,247:0,248:0,249:0,250:0,251:0,252:0,253:0,254:0,255:0,256:0,257:0,258:0,259:0,260:0,261:0,262:0,263:0,264:0,265:0,266:0,267:0,268:0,269:0,270:0,271:0,272:0,273:0,274:0,275:0,276:0,277:0,278:0,279:0,280:0,281:0,282:0,283:0,284:0,285:0,286:0,287:0,288:0,289:0,290:0,291:0,292:0,293:0,294:0,295:0,296:0,297:0,298:0,299:0,300:0,301:0,302:0,303:0,304:0,305:0,306:0,307:0,308:0,309:0,310:0,311:0,312:0,313:0,314:0,315:0,316:0,317:0,318:0,319:0,320:0,321:0,322:0,323:0,324:0,325:0,326:0,327:0,328:0,329:0,330:0,331:0,332:0,333:0,334:0,335:0,336:0,337:0,338:0,339:0,340:0,341:0,342:0,343:0,344:0,345:0,346:0,347:0,348:0,349:0,350:0,351:0,352:0,353:0,354:0,355:0,356:0,357:0,358:0,359:0,360:0,361:0,362:0,363:0,364:0,365:0,366:0,367:0,368:0,369:0,370:0,371:0,372:0,373:0,374:0,375:0,376:0,377:0,378:0,379:0,380:0,381:0,382:0,383:0,384:0,385:0,386:0,387:0,388:0,389:0,390:0,391:0,392:0,393:0,394:0,395:0,396:0,397:0,398:0,399:0,400:0,401:0,402:0,403:0,404:0,405:0,406:0,407:0,408:0,409:0,410:0,411:0,412:0,413:0,414:0,415:0,416:0,417:0,418:0,419:0,420:0,421:0,422:0,423:0,424:0,425:0,426:0,427:0,428:0,429:0,430:0,431:0,432:0,433:0,434:0,435:0,436:0,437:0,438:0,439:0,440:0,441:0,442:0,443:0,444:0,445:0,446:0,447:0,448:0,449:0,450:0,451:0,452:0,453:0,454:0,455:0,456:0,457:0,458:0,459:0,460:0,461:0,462:0,463:0,464:0,465:0,466:0,467:0,468:0,469:0,470:0,471:0,472:0,473:0,474:0,475:0,476:0,477:0,478:0,479:0,480:0,481:0,482:0,483:0,484:0,485:0,486:0,487:0,488:0,489:0,490:0,491:0,492:0,493:0,494:0,495:0,496:0,497:0,498:0,499:0,500:0,501:0,502:0,503:0,504:0,505:0,506:0,507:0,508:0,509:0,510:0,511:0,512:0,513:0,514:0,515:0,516:0,517:0,518:0,519:0,520:0,521:0,522:0,523:0,524:0,525:0,526:0,527:0,528:0,529:0,530:0,531:0,532:0,533:0,534:0,535:0,536:0,537:0,538:0,539:0,540:0,541:0,542:0,543:0,544:0,545:0,546:0,547:0,548:0,549:0,550:0,551:0,552:0,553:0,554:0,555:0,556:0,557:0,558:0,559:0,560:0,561:0,562:0,563:0,564:0,565:0,566:0,567:0,568:0,569:0,570:0,571:0,572:0,573:0,574:0,575:0,576:0,577:0,578:0,579:0,580:0,581:0,582:0,583:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:0,136:0,137:0,138:0,139:0,140:0,141:0,142:0},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:";AAmWA;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;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;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>Script Environment</span>\n </v-tooltip>\n </div>\n <div v-else>\n <v-btn\n @click=\"go\"\n color=\"primary\"\n class=\"mr-2\"\n :disabled=\"startOrGoDisabled\"\n data-test=\"go-button\"\n >\n Go\n </v-btn>\n <v-btn\n color=\"primary\"\n @click=\"pauseOrRetry\"\n class=\"mr-2\"\n :disabled=\"pauseOrRetryDisabled\"\n data-test=\"pause-retry-button\"\n >\n {{ pauseOrRetryButton }}\n </v-btn>\n\n <v-btn\n color=\"primary\"\n @click=\"stop\"\n data-test=\"stop-button\"\n :disabled=\"stopDisabled\"\n >\n Stop\n </v-btn>\n </div>\n </v-row>\n </div>\n \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 :disabled=\"scriptRunning\"\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=\"!scriptRunning\"\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 <overrides-dialog v-if=\"showOverrides\" v-model=\"showOverrides\" />\n <prompt-dialog\n v-if=\"prompt.show\"\n v-model=\"prompt.show\"\n :title=\"prompt.title\"\n :subtitle=\"prompt.subtitle\"\n :message=\"prompt.message\"\n :details=\"prompt.details\"\n :buttons=\"prompt.buttons\"\n :layout=\"prompt.layout\"\n @response=\"prompt.callback\"\n />\n <results-dialog\n v-if=\"results.show\"\n v-model=\"results.show\"\n :text=\"results.text\"\n />\n <script-environment-dialog\n v-if=\"scriptEnvironment.show\"\n v-model=\"scriptEnvironment.show\"\n :input-environment=\"scriptEnvironment.env\"\n @environment=\"environmentHandler\"\n />\n <simple-text-dialog\n v-model=\"showSuiteError\"\n title=\"Suite Analysis Error\"\n :text=\"suiteError\"\n :width=\"1000\"\n />\n <v-bottom-sheet v-model=\"showScripts\">\n <v-sheet class=\"pb-11 pt-5 px-5\">\n <running-scripts\n v-if=\"showScripts\"\n :connect-in-new-tab=\"!!fileModified\"\n @close=\"\n () => {\n showScripts = false\n }\n \"\n />\n </v-sheet>\n </v-bottom-sheet>\n </div>\n</template>\n\n<script>\nimport axios from 'axios'\nimport Cable from '@openc3/tool-common/src/services/cable.js'\nimport Api from '@openc3/tool-common/src/services/api'\nimport * as ace from 'ace-builds'\nimport 'ace-builds/src-min-noconflict/mode-ruby'\nimport 'ace-builds/src-min-noconflict/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 OverridesDialog from '@/tools/ScriptRunner/Dialogs/OverridesDialog'\nimport PromptDialog from '@/tools/ScriptRunner/Dialogs/PromptDialog'\nimport ResultsDialog from '@/tools/ScriptRunner/Dialogs/ResultsDialog'\nimport ScriptEnvironmentDialog from '@/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog'\nimport SuiteRunner from '@/tools/ScriptRunner/SuiteRunner'\nimport ScriptLogMessages from '@/tools/ScriptRunner/ScriptLogMessages'\nimport {\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 OverridesDialog,\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 showScripts: false,\n showOverrides: false,\n activePromptId: '',\n api: null,\n }\n },\n computed: {\n scriptRunning: function () {\n if (this.startOrGoButton == START) {\n return false\n } else {\n return true\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: 'Execution Status',\n icon: 'mdi-run',\n command: () => {\n this.showScripts = true\n },\n },\n {\n divider: true,\n },\n {\n label: 'Global Environment',\n icon: 'mdi-library',\n command: () => {\n this.showEnvironment = !this.showEnvironment\n },\n },\n {\n label: 'Metadata',\n icon: 'mdi-calendar',\n command: () => {\n ;(this.inputMetadata.callback = () => {}),\n (this.inputMetadata.show = !this.inputMetadata.show)\n },\n },\n {\n label: 'Overrides',\n icon: 'mdi-swap-horizontal',\n command: () => {\n this.showOverrides = true\n },\n },\n {\n divider: true,\n },\n {\n label: '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: 'Instrumented Script',\n icon: 'mdi-code-braces-box',\n command: () => {\n this.showInstrumented()\n },\n },\n {\n label: '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 break\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:"acee1f155a1bdd9afd7c09a317fb67bde7d96228"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return St=function(){return s},s}St();var Rt=(St().s[0]++,"__TEMP__"),Mt=(St().s[1]++,"<Untitled>"),Et=(St().s[2]++,"Start"),Ot=(St().s[3]++,"Go"),Tt=(St().s[4]++,"Pause"),Dt=(St().s[5]++,"Retry"),Ft={components:{FileOpenSaveDialog:I,EnvironmentDialog:Z,Multipane:R.x,MultipaneResizer:R.P,TopBar:X,AskDialog:un,FileDialog:Cn,InformationDialog:Sn,InputMetadataDialog:In,OverridesDialog:Hn,PromptDialog:Kn,ResultsDialog:ie,ScriptEnvironmentDialog:Ce,SimpleTextDialog:V,SuiteRunner:Se,RunningScripts:xt,ScriptLogMessages:Ie},data:function(){return St().f[0]++,St().s[6]++,{title:"COSMOS Script Runner",suiteRunner:!1,disableSuiteButtons:!1,suiteMap:{},currentFilename:null,showSave:!1,showAlert:!1,alertType:null,alertText:"",state:" ",scriptId:" ",startOrGoButton:Et,startOrGoDisabled:!1,envDisabled:!1,pauseOrRetryButton:Tt,pauseOrRetryDisabled:!1,stopDisabled:!1,showEnvironment:!1,showDebug:!1,debug:"",debugHistory:[],debugHistoryIndex:0,showDisconnect:!1,files:{},breakpoints:{},filename:Mt,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(){St().f[1]++}},file:{show:!1,message:"",directory:null,filter:"*",multiple:!1,callback:function(){St().f[2]++}},prompt:{show:!1,title:"",subtitle:"",message:"",details:"",buttons:null,layout:"horizontal",callback:function(){St().f[3]++}},information:{show:!1,title:"",text:[]},inputMetadata:{show:!1,target:null,callback:function(){St().f[4]++}},results:{show:!1,text:""},scriptEnvironment:{show:!1,env:[]},showSuiteError:!1,suiteError:"",executeSelectionMenu:!1,menuX:0,menuY:0,mnemonicChecker:new Qe,showScripts:!1,showOverrides:!1,activePromptId:"",api:null}},computed:{scriptRunning:function(){return St().f[5]++,St().s[7]++,this.startOrGoButton==Et?(St().b[0][0]++,St().s[8]++,!1):(St().b[0][1]++,St().s[9]++,!0)},fileList:function(){St().f[6]++;var n=(St().s[10]++,Object.keys(this.files));return St().s[11]++,n.push(this.fullFilename),St().s[12]++,(0,u.Z)(new Set(n))},environmentIcon:function(){return St().f[7]++,St().s[13]++,this.scriptEnvironment.env.length>0?(St().b[1][0]++,"mdi-bookmark"):(St().b[1][1]++,"mdi-bookmark-outline")},environmentIconColor:function(){return St().f[8]++,St().s[14]++,this.scriptEnvironment.env.length>0?(St().b[2][0]++,"primary"):(St().b[2][1]++,"")},readOnly:function(){return St().f[9]++,St().s[15]++,!!this.lockedBy},fullFilename:function(){return St().f[10]++,St().s[16]++,this.currentFilename?(St().b[3][0]++,St().s[17]++,this.currentFilename):(St().b[3][1]++,St().s[18]++,this.filename)},filenameOrBlank:function(){return St().f[11]++,St().s[19]++,this.filename===Mt?(St().b[4][0]++,""):(St().b[4][1]++,this.filename)},menus:function(){var n=this;return St().f[12]++,St().s[20]++,[{label:"File",items:[{label:"New File",icon:"mdi-file-plus",command:function(){St().f[13]++,St().s[21]++,n.newFile()}},{label:"Open File",icon:"mdi-folder-open",command:function(){St().f[14]++,St().s[22]++,n.openFile()}},{divider:!0},{label:"Save File",icon:"mdi-content-save",command:function(){St().f[15]++,St().s[23]++,n.saveFile()}},{label:"Save As...",icon:"mdi-content-save",command:function(){St().f[16]++,St().s[24]++,n.saveAs()}},{divider:!0},{label:"Download",icon:"mdi-cloud-download",command:function(){St().f[17]++,St().s[25]++,n.download()}},{divider:!0},{label:"Delete File",icon:"mdi-delete",command:function(){St().f[18]++,St().s[26]++,n.delete()}}]},{label:"Edit",items:[{label:"Find",icon:"mdi-magnify",command:function(){St().f[19]++,St().s[27]++,n.editor.execCommand("find")}},{label:"Replace",icon:"mdi-find-replace",command:function(){St().f[20]++,St().s[28]++,n.editor.execCommand("replace")}}]},{label:"Script",items:[{label:"Execution Status",icon:"mdi-run",command:function(){St().f[21]++,St().s[29]++,n.showScripts=!0}},{divider:!0},{label:"Global Environment",icon:"mdi-library",command:function(){St().f[22]++,St().s[30]++,n.showEnvironment=!n.showEnvironment}},{label:"Metadata",icon:"mdi-calendar",command:function(){St().f[23]++,St().s[31]++,n.inputMetadata.callback=function(){St().f[24]++},n.inputMetadata.show=!n.inputMetadata.show}},{label:"Overrides",icon:"mdi-swap-horizontal",command:function(){St().f[25]++,St().s[32]++,n.showOverrides=!0}},{divider:!0},{label:"Ruby Syntax Check",icon:"mdi-language-ruby",command:function(){St().f[26]++,St().s[33]++,n.rubySyntaxCheck()}},{label:"Mnemonic Check",icon:"mdi-spellcheck",command:function(){St().f[27]++,St().s[34]++,n.checkMnemonics()}},{label:"Instrumented Script",icon:"mdi-code-braces-box",command:function(){St().f[28]++,St().s[35]++,n.showInstrumented()}},{label:"Call Stack",icon:"mdi-format-list-numbered",disabled:(St().b[5][0]++,!this.scriptId||(St().b[5][1]++," "===this.scriptId)),command:function(){St().f[29]++,St().s[36]++,n.showCallStack()}},{divider:!0},{label:"Toggle Debug",icon:"mdi-bug",command:function(){St().f[30]++,St().s[37]++,n.toggleDebug()}},{label:"Toggle Disconnect",icon:"mdi-connection",command:function(){St().f[31]++,St().s[38]++,n.toggleDisconnect()}},{divider:!0},{label:"Delete All Breakpoints",icon:"mdi-delete-circle-outline",command:function(){St().f[32]++,St().s[39]++,n.deleteAllBreakpoints()}}]}]},executeSelectionMenuItems:function(){return St().f[33]++,St().s[40]++,[{label:"Execute selection",command:this.executeSelection},{label:"Run from here",command:this.runFromCursor},{label:"Clear these breakpoints",command:this.clearBreakpoints}]}},watch:{readOnly:function(n){St().f[34]++,St().s[41]++,this.showReadOnlyToast=n,St().s[42]++,this.suiteRunner?St().b[6][1]++:(St().b[6][0]++,St().s[43]++,this.startOrGoDisabled=n),St().s[44]++,this.editor.setReadOnly(n)}},created:function(){St().f[35]++,St().s[45]++,this.api=new en,St().s[46]++,this.api.ensure_offline_access(),St().s[47]++,this.NEW_FILENAME=Mt,St().s[48]++,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 St().f[36]++,St().s[49]++,this.editor=x.edit("editor"),St().s[50]++,this.editor.setTheme("ace/theme/twilight"),St().s[51]++,e=this.buildOpenC3Mode(),St().s[52]++,this.editor.session.setMode(new e),St().s[53]++,this.editor.session.setTabSize(2),St().s[54]++,this.editor.session.setUseWrapMode(!0),St().s[55]++,this.editor.$blockScrolling=1/0,St().s[56]++,this.editor.setOption("enableBasicAutocompletion",!0),St().s[57]++,this.editor.setOption("enableLiveAutocompletion",!0),St().s[58]++,this.editor.completers=[new je,new We],St().s[59]++,this.editor.setHighlightActiveLine(!1),St().s[60]++,this.editor.focus(),St().s[61]++,this.editor.on("guttermousedown",this.toggleBreakpoint),St().s[62]++,this.editor.session.on("tokenizerUpdate",this.onChange),St().s[63]++,t=new ft(this.editor),St().s[64]++,this.editor.session.on("change",(function(n,e){St().f[37]++,St().s[65]++,t.annotate(n,e),St().s[66]++,l.updateBreakpoints(n,e)})),St().s[67]++,window.addEventListener("keydown",this.keydown),St().s[68]++,this.cable=new f("/script-api/cable"),St().s[69]++,n.next=38,this.tryLoadRunningScript(this.$route.params.id);case 38:St().s[70]++,this.autoSaveInterval=setInterval((function(){St().f[38]++,St().s[71]++,St().b[8][0]++,l.fileModified.length>0&&(St().b[8][1]++,"visible"===document.visibilityState)?(St().b[7][0]++,St().s[72]++,l.saveFile("auto")):St().b[7][1]++}),6e4);case 40:case"end":return n.stop()}}),n,this)})));function e(){return n.apply(this,arguments)}return e}(),beforeDestroy:function(){St().f[39]++,St().s[73]++,this.editor.destroy(),St().s[74]++,this.editor.container.remove()},destroyed:function(){St().f[40]++,St().s[75]++,this.unlockFile(),St().s[76]++,null!=this.autoSaveInterval?(St().b[9][0]++,St().s[77]++,clearInterval(this.autoSaveInterval)):St().b[9][1]++,St().s[78]++,this.subscription?(St().b[10][0]++,St().s[79]++,this.subscription.unsubscribe()):St().b[10][1]++,St().s[80]++,this.cable.disconnect()},beforeRouteUpdate:function(n,e,t){St().f[41]++,St().s[81]++,n.params.id?(St().b[11][0]++,St().s[82]++,this.tryLoadRunningScript(n.params.id).then(t)):(St().b[11][1]++,St().s[83]++,t())},methods:{buildOpenC3Mode:function(){St().f[42]++;var n=(St().s[84]++,x.require("ace/lib/oop")),e=(St().s[85]++,x.require("ace/mode/ruby_highlight_rules").RubyHighlightRules),t=(St().s[86]++,Object.getOwnPropertyNames(en.prototype).filter((function(n){return St().f[43]++,St().s[87]++,"constructor"!==n})).filter((function(n){return St().f[44]++,St().s[88]++,"exec"!==n}))),l=(St().s[89]++,new RegExp("(\\b".concat(t.join("\\b|\\b"),"\\b)")));St().s[90]++;var i=function(){for(var n in St().f[45]++,St().s[91]++,e.call(this),St().s[92]++,this.$rules)St().s[93]++,this.$rules[n].unshift({regex:l,token:"support.function"})};St().s[94]++,n.inherits(i,e);var o=(St().s[95]++,x.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent),s=(St().s[96]++,x.require("ace/mode/behaviour/cstyle").CstyleBehaviour),a=(St().s[97]++,x.require("ace/mode/folding/ruby").FoldMode);St().s[98]++;var c=function(){St().f[46]++,St().s[99]++,this.HighlightRules=i,St().s[100]++,this.$outdent=new o,St().s[101]++,this.$behaviour=new s,St().s[102]++,this.foldingRules=new a,St().s[103]++,this.indentKeywords=this.foldingRules.indentKeywords},r=(St().s[104]++,x.require("ace/mode/ruby").Mode);return St().s[105]++,n.inherits(c,r),St().s[106]++,function(){St().f[47]++,St().s[107]++,this.$id="ace/mode/openc3"}.call(c.prototype),St().s[108]++,c},fileNameChanged:function(n){St().f[48]++,St().s[109]++,this.editor.setValue(this.files[n].content),St().s[110]++,this.restoreBreakpoints(n),St().s[111]++,this.editor.clearSelection(),St().s[112]++,this.removeAllMarkers(),St().s[113]++,this.editor.session.addMarker(new this.Range(this.files[n].lineNo-1,0,this.files[n].lineNo-1,1),"".concat(this.state,"Marker"),"fullLine"),St().s[114]++,this.editor.gotoLine(this.files[n].lineNo),St().s[115]++,this.filename=n},tryLoadRunningScript:function(n){var e=this;return St().f[49]++,St().s[116]++,k.get("/script-api/running-script").then((function(t){St().f[50]++;var l=(St().s[117]++,t.data.find((function(e){return St().f[51]++,St().s[118]++,"".concat(e.id)==="".concat(n)})));St().s[119]++,l?(St().b[12][0]++,St().s[120]++,e.filename=l.name,St().s[121]++,e.tryLoadSuites(),St().s[122]++,e.scriptStart(l.id)):(St().b[12][1]++,St().s[123]++,n?(St().b[13][0]++,St().s[124]++,e.$notify.caution({title:"404 Not Found",body:"Failed to load running script id: ".concat(n)})):(St().b[13][1]++,St().s[125]++,0!==t.data.length?(St().b[14][0]++,St().s[126]++,e.alertType="success",St().s[127]++,e.alertText="Currently ".concat(t.data.length," running scripts."),St().s[128]++,e.showAlert=!0):St().b[14][1]++))}))},tryLoadSuites:function(){var n=this;St().f[52]++,St().s[129]++,k.get("/script-api/scripts/".concat(this.filename)).then((function(e){St().f[53]++,St().s[130]++,e.data.suites?(St().b[15][0]++,St().s[131]++,n.startOrGoDisabled=!0,St().s[132]++,n.suiteRunner=!0,St().s[133]++,n.suiteMap=JSON.parse(e.data.suites)):St().b[15][1]++,St().s[134]++,e.data.error?(St().b[16][0]++,St().s[135]++,n.suiteError=e.data.error,St().s[136]++,n.showSuiteError=!0):St().b[16][1]++,St().s[137]++,n.disableSuiteButtons=0==e.data.success}))},showExecuteSelectionMenu:function(n){St().f[54]++,St().s[138]++,this.menuX=n.pageX,St().s[139]++,this.menuY=n.pageY,St().s[140]++,this.executeSelectionMenu=!0},runFromCursor:function(){St().f[55]++;var n=(St().s[141]++,this.editor.getCursorPosition().row),e=(St().s[142]++,this.editor.session.doc.getLines(n,this.editor.session.doc.getLength()).join("\n")),t=(St().s[143]++,this.getBreakpointRows().filter((function(e){return St().f[56]++,St().s[144]++,e>=n})).map((function(e){return St().f[57]++,St().s[145]++,e-n})));St().s[146]++,this.executeText(e,t)},executeSelection:function(){St().f[58]++;var n=(St().s[147]++,this.editor.getSelectedText()),e=(St().s[148]++,this.editor.getSelectionRange()),t=(St().s[149]++,this.getBreakpointRows().filter((function(n){return St().f[59]++,St().s[150]++,St().b[17][0]++,n<=e.end.row&&(St().b[17][1]++,n>=e.start.row)})).map((function(n){return St().f[60]++,St().s[151]++,n-e.start.row})));St().s[152]++,this.executeText(n,t)},executeText:function(n){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(St().b[18][0]++,[]);if(St().f[61]++,St().s[153]++,"error"===this.state){St().b[19][0]++;var l=(St().s[154]++,n.split("\n"));St().s[155]++;var i,o=(0,a.Z)(l);try{for(o.s();!(i=o.n()).done;){var s=i.value;St().s[156]++,this.debug=s.trim(),St().s[157]++,this.debugKeydown({key:"Enter"})}}catch(r){o.e(r)}finally{o.f()}}else{St().b[19][1]++;var c=(St().s[158]++,Rt+"/"+(0,S.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+"_temp.rb");St().s[159]++,k.post("/script-api/scripts/".concat(c),{data:{text:n,breakpoints:t}}).then((function(n){return St().f[62]++,St().s[160]++,k.post("/script-api/scripts/".concat(c,"/run"),{data:{environment:e.scriptEnvironment.env}})})).then((function(n){St().f[63]++,St().s[161]++,window.open("/tools/scriptrunner/".concat(n.data))}))}},clearBreakpoints:function(){St().f[64]++,St().s[162]++,this.editor.session.clearBreakpoints()},toggleBreakpoint:function(n){St().f[65]++;var e=(St().s[163]++,n.getDocumentPosition().row);St().s[164]++,n.editor.session.getBreakpoints(e,0)[e]?(St().b[20][0]++,St().s[165]++,n.editor.session.clearBreakpoint(e)):(St().b[20][1]++,St().s[166]++,n.editor.session.setBreakpoint(e))},updateBreakpoints:function(n,e){if(St().f[66]++,St().s[167]++,n.lines.length<=1)return St().b[21][0]++,void St().s[168]++;St().b[21][1]++;var t=(St().s[169]++,this.getBreakpointRows(e).filter((function(e){return St().f[67]++,St().s[170]++,St().b[22][0]++,0===n.start.column&&(St().b[22][1]++,e===n.start.row)||(St().b[22][2]++,e>n.start.row)}))),l=(St().s[171]++,[]),i=(St().s[172]++,0);switch(St().s[173]++,n.action){case"insert":St().b[23][0]++,St().s[174]++,i=n.lines.length-1,St().s[175]++,t.reverse(),St().s[176]++;break;case"remove":St().b[23][1]++,St().s[177]++,i=1-n.lines.length,St().s[178]++,l=(0,u.Z)(Array(n.lines.length).keys()).map((function(e){return St().f[68]++,St().s[179]++,e+n.start.row})),St().s[180]++;break}St().s[181]++,t.forEach((function(n){St().f[69]++,St().s[182]++,e.clearBreakpoint(n),St().s[183]++,l.includes(n)?St().b[24][1]++:(St().b[24][0]++,St().s[184]++,e.setBreakpoint(n+i))}))},getBreakpointRows:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(St().b[25][0]++,this.editor.session);return St().f[70]++,St().s[185]++,n.getBreakpoints().map((function(n,e){return St().f[71]++,St().s[186]++,St().b[26][0]++,n&&(St().b[26][1]++,e)})).filter(Number.isInteger)},restoreBreakpoints:function(n){var e,t=this;St().f[72]++,St().s[187]++,this.clearBreakpoints(),St().s[188]++,null===(e=this.breakpoints[n])||void 0===e||e.forEach((function(n){St().f[73]++,St().s[189]++,t.editor.session.setBreakpoint(n)}))},deleteAllBreakpoints:function(){var n=this;St().f[74]++,St().s[190]++,this.$dialog.confirm("Permanently delete all breakpoints for ALL scripts?",{okText:"Delete",cancelText:"Cancel"}).then((function(n){return St().f[75]++,St().s[191]++,k["delete"]("/script-api/breakpoints/delete/all")})).then((function(e){St().f[76]++,St().s[192]++,n.clearBreakpoints()}))},suiteRunnerButton:function(n){St().f[77]++,St().s[193]++,this.startOrGoButton===Et?(St().b[27][0]++,St().s[194]++,this.start(n,"suiteRunner")):(St().b[27][1]++,St().s[195]++,this.go(n,"suiteRunner"))},keydown:function(n){St().f[78]++,St().s[196]++,St().b[29][0]++,(n.metaKey||(St().b[29][1]++,n.ctrlKey))&&(St().b[29][2]++,n.keyCode==="S".charCodeAt(0))?(St().b[28][0]++,St().s[197]++,n.preventDefault(),St().s[198]++,this.saveFile()):(St().b[28][1]++,St().s[199]++,St().b[31][0]++,(n.metaKey||(St().b[31][1]++,n.ctrlKey))&&(St().b[31][2]++,n.shiftKey)&&(St().b[31][3]++,n.keyCode==="S".charCodeAt(0))?(St().b[30][0]++,St().s[200]++,n.preventDefault(),St().s[201]++,this.saveAs()):St().b[30][1]++)},onChange:function(n){if(St().f[79]++,St().s[202]++,!0===this.editor.getReadOnly())return St().b[32][0]++,void St().s[203]++;St().b[32][1]++,St().s[204]++,this.editor.session.getUndoManager().canUndo()?(St().b[33][0]++,St().s[205]++,this.fileModified="*"):(St().b[33][1]++,St().s[206]++,this.fileModified="")},checkMnemonics:function(){var n=this;St().f[80]++,St().s[207]++,this.mnemonicChecker.checkText(this.editor.getValue()).then((function(e){var t=e.skipped,l=e.problems;St().f[81]++;var i=(St().s[208]++,"");if(St().s[209]++,l.length){St().b[34][0]++;var o=(St().s[210]++,l.map((function(n){return St().f[82]++,St().s[211]++,"".concat(n.lineNumber,": ").concat(n.error)})).join("<br/>"));St().s[212]++,i+="<strong>The following lines have problems:</strong><br/>".concat(o,"<br/><br/>")}else St().b[34][1]++;St().s[213]++,t.length?(St().b[35][0]++,St().s[214]++,i+="<strong>Mnemonics with string interpolation were not checked.</strong>"):St().b[35][1]++,St().s[215]++,""===i?(St().b[36][0]++,St().s[216]++,i="<strong>Everything looks good!</strong>"):St().b[36][1]++,St().s[217]++,n.$dialog.alert(i.trim(),{html:!0})}))},scriptStart:function(n){var e=this;St().f[83]++,St().s[218]++,this.disableSuiteButtons=!0,St().s[219]++,this.startOrGoDisabled=!0,St().s[220]++,this.envDisabled=!0,St().s[221]++,this.pauseOrRetryDisabled=!0,St().s[222]++,this.stopDisabled=!0,St().s[223]++,this.state="Connecting...",St().s[224]++,this.startOrGoButton=Ot,St().s[225]++,this.scriptId=n,St().s[226]++,this.editor.setReadOnly(!0),St().s[227]++,this.cable.createSubscription("RunningScriptChannel",window.openc3Scope,{received:function(n){return St().f[84]++,St().s[228]++,e.received(n)}},{id:this.scriptId}).then((function(n){St().f[85]++,St().s[229]++,e.subscription=n}))},scriptComplete:function(){St().f[86]++,St().s[230]++,this.disableSuiteButtons=!1,St().s[231]++,this.startOrGoButton=Et,St().s[232]++,this.pauseOrRetryButton=Tt,St().s[233]++,this.startOrGoDisabled=this.suiteRunner,St().s[234]++,this.envDisabled=!1,St().s[235]++,this.pauseOrRetryDisabled=!0,St().s[236]++,this.stopDisabled=!0,St().s[237]++,this.state="stopped",St().s[238]++,this.fatal=!1,St().s[239]++,this.scriptId=null,St().s[240]++,this.editor.setReadOnly(!1)},environmentHandler:function(n){St().f[87]++,St().s[241]++,this.scriptEnvironment.env=n},startHandler:function(){St().f[88]++,St().s[242]++,this.start()},start:function(n){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(St().b[37][0]++,null);St().f[89]++,St().s[243]++,this.saveFile("start");var l=(St().s[244]++,this.filename);St().s[245]++,this.filename===Mt?(St().b[38][0]++,St().s[246]++,l=this.tempFilename):St().b[38][1]++;var i=(St().s[247]++,"/script-api/scripts/".concat(l,"/run"));St().s[248]++,this.showDisconnect?(St().b[39][0]++,St().s[249]++,i+="/disconnect"):St().b[39][1]++;var o=(St().s[250]++,{environment:this.scriptEnvironment.env});St().s[251]++,t?(St().b[40][0]++,St().s[252]++,o["suiteRunner"]=n):St().b[40][1]++,St().s[253]++,k.post(i,{data:o}).then((function(n){St().f[90]++,St().s[254]++,e.scriptStart(n.data)}))},go:function(n){arguments.length>1&&void 0!==arguments[1]||St().b[41][0]++;St().f[91]++,St().s[255]++,k.post("/script-api/running-script/".concat(this.scriptId,"/go"))},pauseOrRetry:function(){St().f[92]++,St().s[256]++,this.pauseOrRetryButton===Tt?(St().b[42][0]++,St().s[257]++,k.post("/script-api/running-script/".concat(this.scriptId,"/pause"))):(St().b[42][1]++,St().s[258]++,this.pauseOrRetryButton=Tt,St().s[259]++,k.post("/script-api/running-script/".concat(this.scriptId,"/retry")))},stop:function(){St().f[93]++,St().s[260]++,this.fatal?(St().b[43][0]++,St().s[261]++,this.removeAllMarkers(),St().s[262]++,this.scriptComplete()):(St().b[43][1]++,St().s[263]++,k.post("/script-api/running-script/".concat(this.scriptId,"/stop")))},step:function(){St().f[94]++,St().s[264]++,k.post("/script-api/running-script/".concat(this.scriptId,"/step"))},received:function(n){var e=this;switch(St().f[95]++,St().s[265]++,this.cable.recordPing(),St().s[266]++,n.type){case"file":St().b[44][0]++,St().s[267]++,this.files[n.filename]={content:n.text,lineNo:0},St().s[268]++,this.breakpoints[n.filename]=n.breakpoints,St().s[269]++,this.currentFilename===n.filename?(St().b[45][0]++,St().s[270]++,this.restoreBreakpoints(n.filename)):St().b[45][1]++,St().s[271]++;break;case"line":St().b[44][1]++,St().s[272]++,St().b[47][0]++,n.filename&&(St().b[47][1]++,n.filename!==this.currentFilename)?(St().b[46][0]++,St().s[273]++,this.files[n.filename]?(St().b[48][1]++,St().s[281]++,this.editor.setValue(this.files[n.filename].content),St().s[282]++,this.restoreBreakpoints(n.filename),St().s[283]++,this.editor.clearSelection(),St().s[284]++,this.currentFilename=n.filename):(St().b[48][0]++,St().s[274]++,this.files[n.filename]={content:"",lineNo:0},St().s[275]++,k.get("/script-api/scripts/".concat(n.filename)).then((function(t){St().f[96]++,St().s[276]++,e.files[n.filename]={content:t.data.contents,lineNo:0},St().s[277]++,e.breakpoints[n.filename]=t.data.breakpoints,St().s[278]++,e.restoreBreakpoints(n.filename),St().s[279]++,e.currentFilename=null})).catch((function(t){St().f[97]++,St().s[280]++,e.files[n.filename]=null})))):St().b[46][1]++,St().s[285]++,this.state=n.state;var t=(St().s[286]++,this.editor.session.getMarkers());switch(St().s[287]++,this.state){case"running":St().b[49][0]++,St().s[288]++,this.startOrGoDisabled=!1,St().s[289]++,this.pauseOrRetryDisabled=!1,St().s[290]++,this.stopDisabled=!1,St().s[291]++,this.pauseOrRetryButton=Tt,St().s[292]++,this.removeAllMarkers(),St().s[293]++,this.editor.session.addMarker(new this.Range(n.line_no-1,0,n.line_no-1,1),"runningMarker","fullLine"),St().s[294]++,this.editor.gotoLine(n.line_no),St().s[295]++,this.files[n.filename].lineNo=n.line_no,St().s[296]++;break;case"fatal":St().b[49][1]++,St().s[297]++,this.fatal=!0;case"error":St().b[49][2]++,St().s[298]++,this.pauseOrRetryButton=Dt;case"breakpoint":St().b[49][3]++;case"waiting":St().b[49][4]++;case"paused":St().b[49][5]++,St().s[299]++,"fatal"==this.state?(St().b[50][0]++,St().s[300]++,this.startOrGoDisabled=!0,St().s[301]++,this.pauseOrRetryDisabled=!0):(St().b[50][1]++,St().s[302]++,this.startOrGoDisabled=!1,St().s[303]++,this.pauseOrRetryDisabled=!1),St().s[304]++,this.stopDisabled=!1;var l=(St().s[305]++,Object.keys(t).filter((function(n){return St().f[98]++,St().s[306]++,t[n].clazz==="".concat(e.state,"Marker")})));if(St().s[307]++,0===l.length){St().b[51][0]++,St().s[308]++,this.removeAllMarkers();var i=(St().s[309]++,n.line_no>0?(St().b[52][0]++,n.line_no):(St().b[52][1]++,1));St().s[310]++,this.editor.session.addMarker(new this.Range(i-1,0,i-1,1),"".concat(this.state,"Marker"),"fullLine"),St().s[311]++,this.editor.gotoLine(i),St().s[312]++,n.filename?(St().b[53][0]++,St().s[313]++,this.files[n.filename].lineNo=i):St().b[53][1]++}else St().b[51][1]++;St().s[314]++;break;default:St().b[49][6]++,St().s[315]++;break}St().s[316]++;break;case"output":St().b[44][2]++,St().s[317]++;var o,s=(0,a.Z)(n.line.split("\n"));try{for(s.s();!(o=s.n()).done;){var c=o.value;St().s[318]++,c?(St().b[54][0]++,St().s[319]++,this.messages.unshift({message:c})):St().b[54][1]++}}catch(r){s.e(r)}finally{s.f()}St().s[320]++;while(this.messages.length>this.maxArrayLength)St().s[321]++,this.messages.pop();St().s[322]++;break;case"script":St().b[44][3]++,St().s[323]++,this.handleScript(n),St().s[324]++;break;case"report":St().b[44][4]++,St().s[325]++,this.results.text=n.report,St().s[326]++,this.results.show=!0,St().s[327]++;break;case"complete":St().b[44][5]++,St().s[328]++,this.fatal?St().b[55][1]++:(St().b[55][0]++,St().s[329]++,this.removeAllMarkers(),St().s[330]++,this.scriptComplete()),St().s[331]++;break;case"step":St().b[44][6]++,St().s[332]++,this.showDebug=!0,St().s[333]++;break;default:St().b[44][7]++,St().s[334]++;break}},promptDialogCallback:function(n){St().f[99]++,St().s[335]++,this.prompt.show=!1,St().s[336]++,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(St().f[100]++,St().s[337]++,n.prompt_complete)return St().b[56][0]++,St().s[338]++,this.activePromptId="",St().s[339]++,this.prompt.show=!1,St().s[340]++,this.ask.show=!1,void St().s[341]++;switch(St().b[56][1]++,St().s[342]++,this.activePromptId=n.prompt_id,St().s[343]++,this.prompt.method=n.method,St().s[344]++,this.prompt.layout="horizontal",St().s[345]++,this.prompt.title="Prompt",St().s[346]++,this.prompt.subtitle="",St().s[347]++,this.prompt.details="",St().s[348]++,this.prompt.buttons=[],St().s[349]++,n.method){case"ask":St().b[57][0]++;case"ask_string":St().b[57][1]++,St().s[350]++,this.ask.default=null,St().s[351]++,this.ask.answerRequired=!0,St().s[352]++,this.ask.password=!1,St().s[353]++,this.ask.question=n.args[0],St().s[354]++,St().b[59][0]++,n.args[1]&&(St().b[59][1]++,!0!==n.args[1])&&(St().b[59][2]++,!1!==n.args[1])?(St().b[58][0]++,St().s[355]++,this.ask.default=n.args[1].toString()):(St().b[58][1]++,St().s[356]++,!0===n.args[1]?(St().b[60][0]++,St().s[357]++,this.ask.answerRequired=!1):St().b[60][1]++),St().s[358]++,!0===n.args[2]?(St().b[61][0]++,St().s[359]++,this.ask.password=!0):St().b[61][1]++,St().s[360]++,this.ask.callback=function(t){St().f[101]++,St().s[361]++,e.ask.show=!1,St().s[362]++,e.ask.password?(St().b[62][0]++,St().s[363]++,k.post("/script-api/running-script/".concat(e.scriptId,"/prompt"),{data:{method:n.method,password:t,prompt_id:e.activePromptId}})):(St().b[62][1]++,St().s[364]++,k.post("/script-api/running-script/".concat(e.scriptId,"/prompt"),{data:{method:n.method,answer:t,prompt_id:e.activePromptId}}))},St().s[365]++,this.ask.show=!0,St().s[366]++;break;case"prompt_for_hazardous":St().b[57][2]++,St().s[367]++,this.prompt.title="Hazardous Command",St().s[368]++,this.prompt.message="Warning: Command ".concat(n.args[0]," ").concat(n.args[1]," is Hazardous. "),St().s[369]++,n.args[2]?(St().b[63][0]++,St().s[370]++,this.prompt.message+=n.args[2]+" "):St().b[63][1]++,St().s[371]++,this.prompt.message+="Send?",St().s[372]++,this.prompt.buttons=[{text:"Yes",value:"Yes"}],St().s[373]++,this.prompt.callback=this.promptDialogCallback,St().s[374]++,this.prompt.show=!0,St().s[375]++;break;case"prompt":St().b[57][3]++,St().s[376]++,St().b[65][0]++,n.kwargs&&(St().b[65][1]++,n.kwargs.informative)?(St().b[64][0]++,St().s[377]++,this.prompt.subtitle=n.kwargs.informative):St().b[64][1]++,St().s[378]++,St().b[67][0]++,n.kwargs&&(St().b[67][1]++,n.kwargs.details)?(St().b[66][0]++,St().s[379]++,this.prompt.details=n.kwargs.details):St().b[66][1]++,St().s[380]++,this.prompt.message=n.args[0],St().s[381]++,this.prompt.buttons=[{text:"Ok",value:"Ok"}],St().s[382]++,this.prompt.callback=this.promptDialogCallback,St().s[383]++,this.prompt.show=!0,St().s[384]++;break;case"combo_box":St().b[57][4]++,St().s[385]++,St().b[69][0]++,n.kwargs&&(St().b[69][1]++,n.kwargs.informative)?(St().b[68][0]++,St().s[386]++,this.prompt.subtitle=n.kwargs.informative):St().b[68][1]++,St().s[387]++,St().b[71][0]++,n.kwargs&&(St().b[71][1]++,n.kwargs.details)?(St().b[70][0]++,St().s[388]++,this.prompt.details=n.kwargs.details):St().b[70][1]++,St().s[389]++,this.prompt.message=n.args[0],St().s[390]++,n.args.slice(1).forEach((function(n){St().f[102]++,St().s[391]++,e.prompt.buttons.push({text:n,value:n})})),St().s[392]++,this.prompt.combo=!0,St().s[393]++,this.prompt.layout="combo",St().s[394]++,this.prompt.callback=this.promptDialogCallback,St().s[395]++,this.prompt.show=!0,St().s[396]++;break;case"message_box":St().b[57][5]++;case"vertical_message_box":St().b[57][6]++,St().s[397]++,St().b[73][0]++,n.kwargs&&(St().b[73][1]++,n.kwargs.informative)?(St().b[72][0]++,St().s[398]++,this.prompt.subtitle=n.kwargs.informative):St().b[72][1]++,St().s[399]++,St().b[75][0]++,n.kwargs&&(St().b[75][1]++,n.kwargs.details)?(St().b[74][0]++,St().s[400]++,this.prompt.details=n.kwargs.details):St().b[74][1]++,St().s[401]++,this.prompt.message=n.args[0],St().s[402]++,n.args.slice(1).forEach((function(n){St().f[103]++,St().s[403]++,e.prompt.buttons.push({text:n,value:n})})),St().s[404]++,n.method.includes("vertical")?(St().b[76][0]++,St().s[405]++,this.prompt.layout="vertical"):St().b[76][1]++,St().s[406]++,this.prompt.callback=this.promptDialogCallback,St().s[407]++,this.prompt.show=!0,St().s[408]++;break;case"backtrace":St().b[57][7]++,St().s[409]++,this.information.title="Call Stack",St().s[410]++,this.information.text=n.args,St().s[411]++,this.information.show=!0,St().s[412]++;break;case"metadata_input":St().b[57][8]++,St().s[413]++,this.inputMetadata.target=n.args[0],St().s[414]++,this.inputMetadata.callback=function(t){St().f[104]++,St().s[415]++,e.inputMetadata.show=!1,St().s[416]++,k.post("/script-api/running-script/".concat(e.scriptId,"/prompt"),{data:{method:n.method,answer:t,prompt_id:e.activePromptId}})},St().s[417]++,this.inputMetadata.show=!0,St().s[418]++;break;case"open_file_dialog":St().b[57][9]++;case"open_files_dialog":St().b[57][10]++,St().s[419]++,this.file.title=n.args[0],St().s[420]++,this.file.message=n.args[1],St().s[421]++,St().b[78][0]++,n.kwargs&&(St().b[78][1]++,n.kwargs.filter)?(St().b[77][0]++,St().s[422]++,this.file.filter=n.kwargs.filter):St().b[77][1]++,St().s[423]++,"open_files_dialog"==n.method?(St().b[79][0]++,St().s[424]++,this.file.multiple=!0):St().b[79][1]++,St().s[425]++,this.file.show=!0,St().s[426]++;break;default:St().b[57][11]++,St().s[427]++;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(St().f[105]++,St().s[428]++,e.file.show=!1,St().s[429]++,l="Cancel",St().s[430]++,"Cancel"==n){t.next=14;break}return St().b[80][0]++,St().s[431]++,l=[],St().s[432]++,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 St().f[106]++,St().s[433]++,l.push(e.name),St().s[434]++,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,St().s[435]++,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:St().b[80][1]++;case 15:return St().s[436]++,t.next=18,k.post("/script-api/running-script/".concat(e.scriptId,"/prompt"),{data:{method:e.file.multiple?(St().b[81][0]++,"open_files_dialog"):(St().b[81][1]++,"open_file_dialog"),answer:l,prompt_id:e.activePromptId}});case 18:case"end":return t.stop()}}),t)})))()},setError:function(n){St().f[107]++,St().s[437]++,this.alertType="error",St().s[438]++,this.alertText="Error: ".concat(n),St().s[439]++,this.showAlert=!0},newFile:function(){St().f[108]++,St().s[440]++,this.filename=Mt,St().s[441]++,this.currentFilename=null,St().s[442]++,this.tempFilename=null,St().s[443]++,this.files={},St().s[444]++,this.editor.session.setValue(""),St().s[445]++,this.fileModified="",St().s[446]++,this.suiteRunner=!1,St().s[447]++,this.startOrGoDisabled=!1,St().s[448]++,this.envDisabled=!1},openFile:function(){St().f[109]++,St().s[449]++,this.fileOpen=!0},reloadFile:function(){var n=this;St().f[110]++,St().s[450]++,k.get("/script-api/scripts/".concat(this.filename)).then((function(e){St().f[111]++;var t=(St().s[451]++,{name:n.filename,contents:e.data.contents});St().s[452]++,e.data.suites?(St().b[82][0]++,St().s[453]++,t["suites"]=JSON.parse(e.data.suites)):St().b[82][1]++,St().s[454]++,e.data.error?(St().b[83][0]++,St().s[455]++,t["error"]=e.data.error):St().b[83][1]++,St().s[456]++,e.data.success?(St().b[84][0]++,St().s[457]++,t["success"]=e.data.success):St().b[84][1]++;var l=(St().s[458]++,e.data.locked),i=(St().s[459]++,e.data.breakpoints);St().s[460]++,n.setFile({file:t,locked:l,breakpoints:i},!0)})).catch((function(e){St().f[112]++,St().s[461]++,n.$emit("error","Failed to open ".concat(n.selectedFile,". ").concat(e)),St().s[462]++,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]:(St().b[85][0]++,!1);St().f[113]++,St().s[463]++,this.files={},St().s[464]++,!1===i?(St().b[86][0]++,St().s[465]++,this.unlockFile(),St().s[466]++,this.lockedBy=t):St().b[86][1]++,St().s[467]++,this.filename=e.name.split("*")[0],St().s[468]++,this.currentFilename=null,St().s[469]++,this.editor.session.setValue(e.contents),St().s[470]++,this.breakpoints[filename]=l,St().s[471]++,this.restoreBreakpoints(filename),St().s[472]++,this.fileModified="",St().s[473]++,this.envDisabled=!1,St().s[474]++,e.suites?(St().b[87][0]++,St().s[475]++,this.suiteRunner=!0,St().s[476]++,this.suiteMap=e.suites,St().s[477]++,this.startOrGoDisabled=!0):(St().b[87][1]++,St().s[478]++,this.suiteRunner=!1),St().s[479]++,e.error?(St().b[88][0]++,St().s[480]++,this.suiteError=e.error,St().s[481]++,this.showSuiteError=!0):St().b[88][1]++,St().s[482]++,this.disableSuiteButtons=0==e.success},saveFile:function(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(St().b[89][0]++,"menu");St().f[114]++;var t=(St().s[483]++,this.getBreakpointRows());St().s[484]++,this.filename===Mt?(St().b[90][0]++,St().s[485]++,"menu"===e?(St().b[91][0]++,St().s[486]++,this.saveAs()):(St().b[91][1]++,St().s[487]++,null===this.tempFilename?(St().b[92][0]++,St().s[488]++,this.tempFilename=Rt+"/"+(0,S.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+"_temp.rb"):St().b[92][1]++,St().s[489]++,this.showSave=!0,St().s[490]++,k.post("/script-api/scripts/".concat(this.tempFilename),{data:{text:this.editor.getValue(),breakpoints:t}}).then((function(e){St().f[115]++,St().s[491]++,n.fileModified="",St().s[492]++,setTimeout((function(){St().f[116]++,St().s[493]++,n.showSave=!1}),2e3)})).catch((function(e){St().f[117]++,St().s[494]++,n.showSave=!1})))):(St().b[90][1]++,St().s[495]++,this.showSave=!0,St().s[496]++,k.post("/script-api/scripts/".concat(this.filename),{data:{text:this.editor.getValue(),breakpoints:t}}).then((function(e){St().f[118]++,St().s[497]++,200==e.status?(St().b[93][0]++,St().s[498]++,e.data.suites?(St().b[94][0]++,St().s[499]++,n.startOrGoDisabled=!0,St().s[500]++,n.suiteRunner=!0,St().s[501]++,n.suiteMap=JSON.parse(e.data.suites)):(St().b[94][1]++,St().s[502]++,n.startOrGoDisabled=!1,St().s[503]++,n.suiteRunner=!1,St().s[504]++,n.suiteMap={}),St().s[505]++,e.data.error?(St().b[95][0]++,St().s[506]++,n.suiteError=e.data.error,St().s[507]++,n.showSuiteError=!0):St().b[95][1]++,St().s[508]++,n.fileModified="",St().s[509]++,setTimeout((function(){St().f[119]++,St().s[510]++,n.showSave=!1}),2e3)):(St().b[93][1]++,St().s[511]++,n.showSave=!1,St().s[512]++,n.alertType="error",St().s[513]++,n.alertText="Error saving file. Code: ".concat(e.status," Text: ").concat(e.statusText),St().s[514]++,n.showAlert=!0)})).catch((function(e){var t=e.response;St().f[120]++,St().s[515]++,n.showSave=!1,St().s[516]++,422==t.status?(St().b[96][0]++,St().s[517]++,n.alertType="error",St().s[518]++,n.alertText=t.data.suites):(St().b[96][1]++,St().s[519]++,n.alertType="error",St().s[520]++,n.alertText="Error saving file. Code: ".concat(t.status," Text: ").concat(t.statusText)),St().s[521]++,n.showAlert=!0}))),St().s[522]++,this.lockFile()},saveAs:function(){St().f[121]++,St().s[523]++,this.showSaveAs=!0},saveAsFilename:function(n){St().f[122]++,St().s[524]++,this.filename=n.split("*")[0],St().s[525]++,this.currentFilename=null,St().s[526]++,this.tempFilename?(St().b[97][0]++,St().s[527]++,k.post("/script-api/scripts/".concat(this.tempFilename,"/delete")),St().s[528]++,this.tempFilename=null):St().b[97][1]++,St().s[529]++,this.saveFile("menu")},delete:function(){var n=this;St().f[123]++;var e=(St().s[530]++,this.filename);St().s[531]++,this.tempFilename?(St().b[98][0]++,St().s[532]++,e=this.tempFilename):St().b[98][1]++,St().s[533]++,this.$dialog.confirm("Permanently delete file: ".concat(e),{okText:"Delete",cancelText:"Cancel"}).then((function(n){return St().f[124]++,St().s[534]++,k.post("/script-api/scripts/".concat(e,"/delete"),{data:{}})})).then((function(e){St().f[125]++,St().s[535]++,n.newFile()})).catch((function(e){if(St().f[126]++,St().s[536]++,e){St().b[99][0]++;var t=(St().s[537]++,{text:"Failed Multi-Delete. ".concat(e),type:"error"});St().s[538]++,n.$emit("alert",t)}else St().b[99][1]++}))},download:function(){St().f[127]++;var n=(St().s[539]++,new Blob([this.editor.getValue()],{type:"text/plain"})),e=(St().s[540]++,document.createElement("a"));St().s[541]++,e.href=URL.createObjectURL(n),St().s[542]++,e.setAttribute("download",this.filename),St().s[543]++,e.click()},rubySyntaxCheck:function(){var n=this;St().f[128]++,St().s[544]++,k.post("/script-api/scripts/syntax",{data:this.editor.getValue(),headers:{Accept:"application/json","Content-Type":"plain/text"}}).then((function(e){St().f[129]++,St().s[545]++,n.information.title=e.data.title,St().s[546]++,n.information.text=JSON.parse(e.data.description),St().s[547]++,n.information.show=!0}))},showInstrumented:function(){var n=this;St().f[130]++,St().s[548]++,k.post("/script-api/scripts/".concat(this.filename,"/instrumented"),{data:this.editor.getValue(),headers:{Accept:"application/json","Content-Type":"plain/text"}}).then((function(e){St().f[131]++,St().s[549]++,n.information.title=e.data.title,St().s[550]++,n.information.text=JSON.parse(e.data.description),St().s[551]++,n.information.show=!0}))},showCallStack:function(){St().f[132]++,St().s[552]++,k.post("/script-api/running-script/".concat(this.scriptId,"/backtrace"))},toggleDebug:function(){St().f[133]++,St().s[553]++,this.showDebug=!this.showDebug},toggleDisconnect:function(){St().f[134]++,St().s[554]++,this.showDisconnect=!this.showDisconnect},debugKeydown:function(n){St().f[135]++,St().s[555]++,"Escape"===n.key?(St().b[100][0]++,St().s[556]++,this.debug="",St().s[557]++,this.debugHistoryIndex=this.debugHistory.length):(St().b[100][1]++,St().s[558]++,"Enter"===n.key?(St().b[101][0]++,St().s[559]++,this.debugHistory.push(this.debug),St().s[560]++,this.debugHistoryIndex=this.debugHistory.length,St().s[561]++,k.post("/script-api/running-script/".concat(this.scriptId,"/debug"),{data:{args:this.debug}}),St().s[562]++,this.debug=""):(St().b[101][1]++,St().s[563]++,"ArrowUp"===n.key?(St().b[102][0]++,St().s[564]++,this.debugHistoryIndex-=1,St().s[565]++,this.debugHistoryIndex<0?(St().b[103][0]++,St().s[566]++,this.debugHistoryIndex=this.debugHistory.length-1):St().b[103][1]++,St().s[567]++,this.debug=this.debugHistory[this.debugHistoryIndex],St().s[568]++,n.preventDefault()):(St().b[102][1]++,St().s[569]++,"ArrowDown"===n.key?(St().b[104][0]++,St().s[570]++,this.debugHistoryIndex+=1,St().s[571]++,this.debugHistoryIndex>=this.debugHistory.length?(St().b[105][0]++,St().s[572]++,this.debugHistoryIndex=0):St().b[105][1]++,St().s[573]++,this.debug=this.debugHistory[this.debugHistoryIndex]):St().b[104][1]++)))},removeAllMarkers:function(){var n=this;St().f[136]++;var e=(St().s[574]++,this.editor.session.getMarkers());St().s[575]++,Object.keys(e).filter((function(n){return St().f[137]++,St().s[576]++,"fullLine"===e[n].type})).forEach((function(e){return St().f[138]++,St().s[577]++,n.editor.session.removeMarker(e)}))},confirmLocalUnlock:function(){var n=this;St().f[139]++,St().s[578]++,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 St().f[140]++,St().s[579]++,n.lockedBy=null,St().s[580]++,n.lockFile()}))},lockFile:function(){return St().f[141]++,St().s[581]++,k.post("/script-api/scripts/".concat(this.filename,"/lock"))},unlockFile:function(){St().f[142]++,St().s[582]++,St().b[107][0]++,this.filename===Mt||(St().b[107][1]++,this.readOnly)?St().b[106][1]++:(St().b[106][0]++,St().s[583]++,k.post("/script-api/scripts/".concat(this.filename,"/unlock")))}}},It=Ft,$t=(t(9107),t(4048),(0,D.Z)(It,i,o,!1,null,"299d7c5c",null)),Nt=$t.exports},252: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-299d7c5c]{padding-top:0;padding-bottom:5px;padding-left:0;padding-right:0}#editorbox[data-v-299d7c5c]{height:50vh}#editor[data-v-299d7c5c]{height:100%;width:100%;font-size:16px}#editor[data-v-299d7c5c],hr[data-v-299d7c5c]{position:relative}hr[data-v-299d7c5c]{pointer-events:none;top:7px;background-color:grey;height:3px;width:5%;margin:auto}.script-state[data-v-299d7c5c] input{text-transform:capitalize}",""]),e["default"]=a},2263: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},9107:function(n,e,t){var l=t(252);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[n.id,l,""]]),l.locals&&(n.exports=l.locals);var i=t(3514).Z;i("3814ad8c",l,!0,{sourceMap:!1,shadowMode:!1})},4048:function(n,e,t){var l=t(2263);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[n.id,l,""]]),l.locals&&(n.exports=l.locals);var i=t(3514).Z;i("62e557a0",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=633.js.map