openc3-cosmos-tool-dataextractor 5.10.1 → 5.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/dataextractor/js/388.js +1 -1
- data/tools/dataextractor/js/388.js.map +1 -1
- data/tools/dataextractor/js/756.js +4 -0
- data/tools/dataextractor/js/756.js.map +1 -0
- data/tools/dataextractor/js/863.js +2 -0
- data/tools/dataextractor/js/863.js.map +1 -0
- data/tools/dataextractor/js/app.js +1 -1
- data/tools/dataextractor/js/app.js.map +1 -1
- metadata +6 -6
- data/tools/dataextractor/js/207.js +0 -2
- data/tools/dataextractor/js/207.js.map +0 -1
- data/tools/dataextractor/js/430.js +0 -4
- data/tools/dataextractor/js/430.js.map +0 -1
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openc3-cosmos-tool-dataextractor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Melton
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-09-30 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: " This plugin adds the OpenC3 COSMOS Data Extractor tool\n"
|
15
15
|
email:
|
@@ -24,12 +24,12 @@ files:
|
|
24
24
|
- Rakefile
|
25
25
|
- plugin.txt
|
26
26
|
- tools/dataextractor/index.html
|
27
|
-
- tools/dataextractor/js/207.js
|
28
|
-
- tools/dataextractor/js/207.js.map
|
29
27
|
- tools/dataextractor/js/388.js
|
30
28
|
- tools/dataextractor/js/388.js.map
|
31
|
-
- tools/dataextractor/js/
|
32
|
-
- tools/dataextractor/js/
|
29
|
+
- tools/dataextractor/js/756.js
|
30
|
+
- tools/dataextractor/js/756.js.map
|
31
|
+
- tools/dataextractor/js/863.js
|
32
|
+
- tools/dataextractor/js/863.js.map
|
33
33
|
- tools/dataextractor/js/app.js
|
34
34
|
- tools/dataextractor/js/app.js.map
|
35
35
|
homepage: https://github.com/OpenC3/openc3
|
@@ -1,2 +0,0 @@
|
|
1
|
-
(self["webpackChunk_openc3_cosmos_tool_dataextractor"]=self["webpackChunk_openc3_cosmos_tool_dataextractor"]||[]).push([[207],{8207:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return oe}});t(7950),t(4908),t(4083);function l(){var e="/openc3/plugins/packages/openc3-cosmos-tool-dataextractor/src/tools/DataExtractor/DataExtractor.vue",n="abebf923c99813ad4141fc5da4060ab6196e6ece",t=new Function("return this")(),i="__coverage__",o={path:"/openc3/plugins/packages/openc3-cosmos-tool-dataextractor/src/tools/DataExtractor/DataExtractor.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:4216}},4:{start:{line:1,column:383},end:{line:1,column:400}},5:{start:{line:1,column:613},end:{line:1,column:628}},6:{start:{line:1,column:851},end:{line:1,column:868}},7:{start:{line:1,column:1071},end:{line:1,column:1086}},8:{start:{line:1,column:1297},end:{line:1,column:1313}},9:{start:{line:1,column:1651},end:{line:1,column:1669}},10:{start:{line:1,column:2033},end:{line:1,column:2059}},11:{start:{line:1,column:2571},end:{line:1,column:2796}},12:{start:{line:1,column:2706},end:{line:1,column:2724}},13:{start:{line:1,column:2943},end:{line:1,column:3146}},14:{start:{line:1,column:3489},end:{line:1,column:3503}},15:{start:{line:8,column:109},end:{line:8,column:134}},16:{start:{line:8,column:196},end:{line:8,column:1835}},17:{start:{line:8,column:304},end:{line:8,column:465}},18:{start:{line:8,column:368},end:{line:8,column:393}},19:{start:{line:8,column:393},end:{line:8,column:409}},20:{start:{line:8,column:589},end:{line:8,column:693}},21:{start:{line:8,column:681},end:{line:8,column:693}},22:{start:{line:8,column:693},end:{line:8,column:710}},23:{start:{line:8,column:763},end:{line:8,column:790}},24:{start:{line:8,column:1167},end:{line:8,column:1194}},25:{start:{line:8,column:1376},end:{line:8,column:1408}},26:{start:{line:8,column:1601},end:{line:8,column:1635}},27:{start:{line:8,column:1781},end:{line:8,column:1798}},28:{start:{line:8,column:1879},end:{line:8,column:2188}},29:{start:{line:8,column:1987},end:{line:8,column:2134}},30:{start:{line:8,column:2051},end:{line:8,column:2078}},31:{start:{line:8,column:2283},end:{line:8,column:2387}},32:{start:{line:8,column:2375},end:{line:8,column:2387}},33:{start:{line:8,column:2387},end:{line:8,column:2434}},34:{start:{line:8,column:2489},end:{line:8,column:2504}},35:{start:{line:8,column:2912},end:{line:8,column:2931}},36:{start:{line:8,column:3121},end:{line:8,column:3145}},37:{start:{line:8,column:3346},end:{line:8,column:3372}},38:{start:{line:8,column:3535},end:{line:8,column:3561}},39:{start:{line:8,column:3706},end:{line:8,column:3731}},40:{start:{line:8,column:3933},end:{line:8,column:3951}},41:{start:{line:8,column:4157},end:{line:8,column:4175}},42:{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:367},end:{line:1,column:368}},loc:{start:{line:1,column:382},end:{line:1,column:401}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:597},end:{line:1,column:598}},loc:{start:{line:1,column:612},end:{line:1,column:629}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:835},end:{line:1,column:836}},loc:{start:{line:1,column:850},end:{line:1,column:869}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1055},end:{line:1,column:1056}},loc:{start:{line:1,column:1070},end:{line:1,column:1087}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1281},end:{line:1,column:1282}},loc:{start:{line:1,column:1296},end:{line:1,column:1314}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1635},end:{line:1,column:1636}},loc:{start:{line:1,column:1650},end:{line:1,column:1670}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2016},end:{line:1,column:2017}},loc:{start:{line:1,column:2032},end:{line:1,column:2060}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2547},end:{line:1,column:2548}},loc:{start:{line:1,column:2570},end:{line:1,column:2797}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2689},end:{line:1,column:2690}},loc:{start:{line:1,column:2705},end:{line:1,column:2725}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:2919},end:{line:1,column:2920}},loc:{start:{line:1,column:2942},end:{line:1,column:3147}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:3473},end:{line:1,column:3474}},loc:{start:{line:1,column:3488},end:{line:1,column:3504}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:8,column:92},end:{line:8,column:93}},loc:{start:{line:8,column:108},end:{line:8,column:135}},line:8},13:{name:"(anonymous_13)",decl:{start:{line:8,column:177},end:{line:8,column:178}},loc:{start:{line:8,column:195},end:{line:8,column:1836}},line:8},14:{name:"(anonymous_14)",decl:{start:{line:8,column:280},end:{line:8,column:281}},loc:{start:{line:8,column:303},end:{line:8,column:466}},line:8},15:{name:"(anonymous_15)",decl:{start:{line:8,column:351},end:{line:8,column:352}},loc:{start:{line:8,column:367},end:{line:8,column:410}},line:8},16:{name:"(anonymous_16)",decl:{start:{line:8,column:572},end:{line:8,column:573}},loc:{start:{line:8,column:588},end:{line:8,column:711}},line:8},17:{name:"(anonymous_17)",decl:{start:{line:8,column:747},end:{line:8,column:748}},loc:{start:{line:8,column:762},end:{line:8,column:791}},line:8},18:{name:"(anonymous_18)",decl:{start:{line:8,column:1151},end:{line:8,column:1152}},loc:{start:{line:8,column:1166},end:{line:8,column:1195}},line:8},19:{name:"(anonymous_19)",decl:{start:{line:8,column:1360},end:{line:8,column:1361}},loc:{start:{line:8,column:1375},end:{line:8,column:1409}},line:8},20:{name:"(anonymous_20)",decl:{start:{line:8,column:1585},end:{line:8,column:1586}},loc:{start:{line:8,column:1600},end:{line:8,column:1636}},line:8},21:{name:"(anonymous_21)",decl:{start:{line:8,column:1764},end:{line:8,column:1765}},loc:{start:{line:8,column:1780},end:{line:8,column:1799}},line:8},22:{name:"(anonymous_22)",decl:{start:{line:8,column:1860},end:{line:8,column:1861}},loc:{start:{line:8,column:1878},end:{line:8,column:2189}},line:8},23:{name:"(anonymous_23)",decl:{start:{line:8,column:1963},end:{line:8,column:1964}},loc:{start:{line:8,column:1986},end:{line:8,column:2135}},line:8},24:{name:"(anonymous_24)",decl:{start:{line:8,column:2034},end:{line:8,column:2035}},loc:{start:{line:8,column:2050},end:{line:8,column:2079}},line:8},25:{name:"(anonymous_25)",decl:{start:{line:8,column:2266},end:{line:8,column:2267}},loc:{start:{line:8,column:2282},end:{line:8,column:2435}},line:8},26:{name:"(anonymous_26)",decl:{start:{line:8,column:2473},end:{line:8,column:2474}},loc:{start:{line:8,column:2488},end:{line:8,column:2505}},line:8},27:{name:"(anonymous_27)",decl:{start:{line:8,column:2896},end:{line:8,column:2897}},loc:{start:{line:8,column:2911},end:{line:8,column:2932}},line:8},28:{name:"(anonymous_28)",decl:{start:{line:8,column:3105},end:{line:8,column:3106}},loc:{start:{line:8,column:3120},end:{line:8,column:3146}},line:8},29:{name:"(anonymous_29)",decl:{start:{line:8,column:3330},end:{line:8,column:3331}},loc:{start:{line:8,column:3345},end:{line:8,column:3373}},line:8},30:{name:"(anonymous_30)",decl:{start:{line:8,column:3518},end:{line:8,column:3519}},loc:{start:{line:8,column:3534},end:{line:8,column:3562}},line:8},31:{name:"(anonymous_31)",decl:{start:{line:8,column:3689},end:{line:8,column:3690}},loc:{start:{line:8,column:3705},end:{line:8,column:3732}},line:8},32:{name:"(anonymous_32)",decl:{start:{line:8,column:3917},end:{line:8,column:3918}},loc:{start:{line:8,column:3932},end:{line:8,column:3952}},line:8},33:{name:"(anonymous_33)",decl:{start:{line:8,column:4141},end:{line:8,column:4142}},loc:{start:{line:8,column:4156},end:{line:8,column:4176}},line:8}},branchMap:{0:{loc:{start:{line:8,column:589},end:{line:8,column:693}},type:"if",locations:[{start:{line:8,column:589},end:{line:8,column:693}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:8},1:{loc:{start:{line:8,column:592},end:{line:8,column:680}},type:"binary-expr",locations:[{start:{line:8,column:592},end:{line:8,column:619}},{start:{line:8,column:621},end:{line:8,column:680}}],line:8},2:{loc:{start:{line:8,column:2283},end:{line:8,column:2387}},type:"if",locations:[{start:{line:8,column:2283},end:{line:8,column:2387}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:8},3:{loc:{start:{line:8,column:2286},end:{line:8,column:2374}},type:"binary-expr",locations:[{start:{line:8,column:2286},end:{line:8,column:2313}},{start:{line:8,column:2315},end:{line:8,column:2374}}],line:8},4:{loc:{start:{line:8,column:3765},end:{line:8,column:3988}},type:"cond-expr",locations:[{start:{line:8,column:3782},end:{line:8,column:3979}},{start:{line:8,column:3980},end:{line:8,column:3988}}],line:8},5:{loc:{start:{line:8,column:3989},end:{line:8,column:4212}},type:"cond-expr",locations:[{start:{line:8,column:4006},end:{line:8,column:4203}},{start:{line:8,column:4204},end:{line:8,column:4212}}],line:8}},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},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"abebf923c99813ad4141fc5da4060ab6196e6ece"},a=t[i]||(t[i]={});a[e]&&a[e].hash===n||(a[e]=o);var c=a[e];return l=function(){return c},c}l(),l().s[0]++;var i=function(){l().f[0]++;var e=(l().s[1]++,this),n=(l().s[2]++,e._self._c);return l().s[3]++,n("div",[n("top-bar",{attrs:{menus:e.menus,title:e.title}}),n("v-card",[n("v-container",[n("v-row",[n("v-col",[n("v-text-field",{attrs:{label:"Start Date",type:"date",max:e.todaysDate,rules:[e.rules.required],"data-test":"start-date"},model:{value:e.startDate,callback:function(n){l().f[1]++,l().s[4]++,e.startDate=n},expression:"startDate"}}),n("v-text-field",{attrs:{label:"End Date",type:"date",max:e.todaysDate,rules:[e.rules.required],"data-test":"end-date"},model:{value:e.endDate,callback:function(n){l().f[2]++,l().s[5]++,e.endDate=n},expression:"endDate"}})],1),n("v-col",[n("v-text-field",{attrs:{label:"Start Time",type:"time",step:"1",rules:[e.rules.required],"data-test":"start-time"},model:{value:e.startTime,callback:function(n){l().f[3]++,l().s[6]++,e.startTime=n},expression:"startTime"}}),n("v-text-field",{attrs:{label:"End Time",type:"time",step:"1",rules:[e.rules.required],"data-test":"end-time"},model:{value:e.endTime,callback:function(n){l().f[4]++,l().s[7]++,e.endTime=n},expression:"endTime"}})],1)],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.cmdOrTlm,callback:function(n){l().f[5]++,l().s[8]++,e.cmdOrTlm=n},expression:"cmdOrTlm"}},[n("v-radio",{attrs:{label:"Command",value:"cmd","data-test":"cmd-radio"}}),n("v-radio",{attrs:{label:"Telemetry",value:"tlm","data-test":"tlm-radio"}})],1)],1),n("v-col",[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){l().f[6]++,l().s[9]++,e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1)],1),n("v-row",[n("v-col",[n("target-packet-item-chooser",{attrs:{"button-text":"Add Item",mode:e.cmdOrTlm,"choose-item":"","allow-all":""},on:{click:function(n){return l().f[7]++,l().s[10]++,e.addItem(n)}}})],1)],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-toolbar",[n("v-progress-circular",{attrs:{value:e.progress}}),e._v(" Processed: "+e._s(e.totalPacketsReceived)+" packets, "+e._s(e.totalItemsReceived)+" items "),n("v-spacer"),n("v-btn",{staticClass:"primary",attrs:{disabled:e.items.length<1},on:{click:e.processItems}},[e._v(e._s(e.processButtonText))]),n("v-spacer"),n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,o=t.attrs;return l().f[8]++,l().s[11]++,[n("v-btn",e._g(e._b({attrs:{icon:"",disabled:e.items.length<1,"data-test":"editAll"},on:{click:function(n){l().f[9]++,l().s[12]++,e.editAll=!0}}},"v-btn",o,!1),i),[n("v-icon",[e._v(" mdi-pencil ")])],1)]}}])},[n("span",[e._v("Edit All Items")])]),n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,o=t.attrs;return l().f[10]++,l().s[13]++,[n("v-btn",e._g(e._b({attrs:{icon:"",disabled:e.items.length<1,"data-test":"delete-all"},on:{click:e.deleteAll}},"v-btn",o,!1),i),[n("v-icon",[e._v("mdi-delete")])],1)]}}])},[n("span",[e._v("Delete All Items")])])],1)],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-card",{attrs:{width:"100%"}},[n("v-card-title",[e._v(" Items "),n("v-spacer"),n("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){l().f[11]++,l().s[14]++,e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{headers:e.headers,items:e.items,search:e.search,"items-per-page":e.itemsPerPage,"footer-props":{itemsPerPageOptions:[10,20,50,100,500,1e3],showFirstLastPage:!0,firstIcon:"mdi-page-first",lastIcon:"mdi-page-last",prevIcon:"mdi-chevron-left",nextIcon:"mdi-chevron-right"},"calculate-widths":"","multi-sort":"",dense:""},on:{"update:items-per-page":function(n){l().f[12]++,l().s[15]++,e.itemsPerPage=n}},scopedSlots:e._u([{key:"item.edit",fn:function(t){var i=t.item;return l().f[13]++,l().s[16]++,[n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var o=t.on,a=t.attrs;return l().f[14]++,l().s[17]++,[n("v-icon",e._g(e._b({on:{click:function(e){l().f[15]++,l().s[18]++,e.stopPropagation(),l().s[19]++,i.edit=!0}}},"v-icon",a,!1),o),[e._v(" mdi-pencil ")])]}}],null,!0)},[n("span",[e._v("Edit Item")])]),n("v-dialog",{attrs:{"max-width":"600"},on:{keydown:function(n){if(l().f[16]++,l().s[20]++,l().b[1][0]++,!n.type.indexOf("key")&&(l().b[1][1]++,e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])))return l().b[0][0]++,l().s[21]++,null;l().b[0][1]++,l().s[22]++,i.edit=!1}},model:{value:i.edit,callback:function(n){l().f[17]++,l().s[23]++,e.$set(i,"edit",n)},expression:"item.edit"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" DataExtractor: Edit Item Mode ")]),n("v-spacer")],1),n("v-card-title",[e._v(e._s(e.getItemLabel(i)))]),n("v-card-text",[n("v-col",[n("v-select",{attrs:{"hide-details":"",items:e.modes,label:"Mode",outlined:""},model:{value:i.mode,callback:function(n){l().f[18]++,l().s[24]++,e.$set(i,"mode",n)},expression:"item.mode"}}),n("v-select",{attrs:{"hide-details":"",items:e.valueTypes,label:"Value Type",outlined:""},model:{value:i.valueType,callback:function(n){l().f[19]++,l().s[25]++,e.$set(i,"valueType",n)},expression:"item.valueType"}}),n("v-select",{attrs:{"hide-details":"",items:e.reducedTypes,label:"Reduced Type",outlined:""},model:{value:i.reducedType,callback:function(n){l().f[20]++,l().s[26]++,e.$set(i,"reducedType",n)},expression:"item.reducedType"}})],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{attrs:{color:"primary"},on:{click:function(e){l().f[21]++,l().s[27]++,i.edit=!1}}},[e._v(" Close ")])],1)],1)],1)]}},{key:"item.delete",fn:function(t){var i=t.item;return l().f[22]++,l().s[28]++,[n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var o=t.on,a=t.attrs;return l().f[23]++,l().s[29]++,[n("v-icon",e._g(e._b({on:{click:function(n){return l().f[24]++,l().s[30]++,e.deleteItem(i)}}},"v-icon",a,!1),o),[e._v(" mdi-delete ")])]}}],null,!0)},[n("span",[e._v("Delete Item")])])]}}])})],1)],1)],1)],1),n("v-dialog",{attrs:{"max-width":"600"},on:{keydown:function(n){return l().f[25]++,l().s[31]++,l().b[3][0]++,!n.type.indexOf("key")&&(l().b[3][1]++,e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"]))?(l().b[2][0]++,l().s[32]++,null):(l().b[2][1]++,l().s[33]++,e.cancelEditAll.apply(null,arguments))}},model:{value:e.editAll,callback:function(n){l().f[26]++,l().s[34]++,e.editAll=n},expression:"editAll"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" DataExtractor: Edit All Items")]),n("v-spacer")],1),n("v-card-text",{staticClass:"mt-2"},[e._v(" This will change all items to the following data type! "),n("v-col",[n("v-select",{attrs:{"hide-details":"",items:e.modes,label:"Mode",outlined:""},model:{value:e.allItemMode,callback:function(n){l().f[27]++,l().s[35]++,e.allItemMode=n},expression:"allItemMode"}}),n("v-select",{attrs:{"hide-details":"",items:e.valueTypes,label:"Value Type",outlined:""},model:{value:e.allItemValueType,callback:function(n){l().f[28]++,l().s[36]++,e.allItemValueType=n},expression:"allItemValueType"}}),n("v-select",{attrs:{"hide-details":"",items:e.reducedTypes,label:"Reduced Type",outlined:""},model:{value:e.allItemReducedType,callback:function(n){l().f[29]++,l().s[37]++,e.allItemReducedType=n},expression:"allItemReducedType"}})],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:function(n){l().f[30]++,l().s[38]++,e.editAll=!e.editAll}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{disabled:!e.allItemValueType,color:"primary"},on:{click:function(n){return l().f[31]++,l().s[39]++,e.editAllItems()}}},[e._v(" Ok ")])],1)],1)],1),e.openConfig?(l().b[4][0]++,n("open-config-dialog",{attrs:{configKey:e.configKey},on:{success:e.openConfiguration},model:{value:e.openConfig,callback:function(n){l().f[32]++,l().s[40]++,e.openConfig=n},expression:"openConfig"}})):(l().b[4][1]++,e._e()),e.saveConfig?(l().b[5][0]++,n("save-config-dialog",{attrs:{configKey:e.configKey},on:{success:e.saveConfiguration},model:{value:e.saveConfig,callback:function(n){l().f[33]++,l().s[41]++,e.saveConfig=n},expression:"saveConfig"}})):(l().b[5][1]++,e._e())],1)},o=(l().s[42]++,[]),a=t(5789),c=t(6259),s=t(9502),r=t(7302),u=t(615),m=t(8081),d=(t(8995),t(6728),t(9805),t(8178),t(5940),t(8188),t(1939),t(3244),t(8673),t(6886),t(4769),t(2501),t(7072),t(7694),t(3430),t(4121),t(523),t(3673),t(753),t(8399),t(9529),t(1235),t(6710),t(6964)),A=t(426),f=t(7871),p=t(2261),h=(t(1372),t(1245),t(2994),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(2529),t(6943),t(9224),t(1157),t(3450),t(7233),t(5734),t(8233),t(9644)),v=t.n(h),C=t(4091),y=new C["default"],g=v().create({baseURL:location.origin,timeout:6e4,params:{}});g.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var n,t,l,i,o;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var a="HTTP ".concat(e.response.status," - ");if(null!==(n=e.response)&&void 0!==n&&n.statusText&&(a+="".concat(e.response.statusText," ")),null!==(t=e.response)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&t.data&&(a+="".concat(e.response.config.data," ")),null!==(l=e.response)&&void 0!==l&&null!==(l=l.data)&&void 0!==l&&l.message)a+="".concat(e.response.data.message);else if(null!==(i=e.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&i.exception)a+="".concat(e.response.data.exception);else if(null!==(o=e.response)&&void 0!==o&&null!==(o=o.data)&&void 0!==o&&null!==(o=o.error)&&void 0!==o&&o.message)e.response.data.error.class&&(a+="".concat(e.response.data.error.class," ")),a+="".concat(e.response.data.error.message);else{var c;a+="".concat(null===(c=e.response)||void 0===c?void 0:c.data)}throw y.$notify&&y.$notify.serious({title:"Network error",body:a}),e}throw e}));var _=g,b=function(){function e(){(0,A.Z)(this,e),(0,p.Z)(this,"id",1)}return(0,f.Z)(e,[{key:"exec",value:function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n,t){var l,i,o,c,s,r,u=arguments;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return l=u.length>2&&void 0!==u[2]?u[2]:{},i=u.length>3&&void 0!==u[3]?u[3]:{},o=u.length>4&&void 0!==u[4]?u[4]:6e4,e.prev=3,e.next=6,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 6:c=e.sent,c&&OpenC3Auth.setTokens(),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](3),OpenC3Auth.login();case 13:return this.id=this.id+1,e.prev=14,l["scope"]=window.openc3Scope,e.next=18,_.post("/openc3-api/api",{jsonrpc:"2.0",method:n,params:t,id:this.id,keyword_params:l},{headers:(0,d.Z)({Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"},i),timeout:o});case 18:return s=e.sent,e.abrupt("return",s.data.result);case 22:throw e.prev=22,e.t1=e["catch"](14),r=new Error,e.t1.response?(r.name=e.t1.response.data.error.data.class,r.message=e.t1.response.data.error.data.message):e.t1.request?(r.name="Request error",r.message="Request error, no response received"):r.name="Unknown error",r;case 27:case"end":return e.stop()}}),e,this,[[3,10],[14,22]])})));function n(n,t){return e.apply(this,arguments)}return n}()},{key:"decode_openc3_type",value:function(e){if(null!==e&&"object"===(0,c.Z)(e)&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}},{key:"encode_openc3_type",value:function(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}},{key:"ensure_offline_access",value:function(){var e=this;this.offline_access_needed().then((function(n){n&&(localStorage.openc3OfflineToken?e.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(e){return this.exec("set_offline_access",[e])}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"map_target_to_interface",value:function(e,n){return this.exec("map_target_to_interface",[e,n])}},{key:"connect_interface",value:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),l=1;l<n;l++)t[l-1]=arguments[l];return t.length>0?this.exec("connect_interface",[e].concat(t)):this.exec("connect_interface",[e])}},{key:"disconnect_interface",value:function(e){return this.exec("disconnect_interface",[e])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(e){return this.exec("connect_router",[e])}},{key:"disconnect_router",value:function(e){return this.exec("disconnect_router",[e])}},{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(e){return this.exec("get_tlm_cnts",[e])}},{key:"get_item",value:function(e,n,t){return this.exec("get_item",[e,n,t])}},{key:"get_parameter",value:function(e,n,t){return this.exec("get_parameter",[e,n,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(e){return this.exec("start_cmd_log",[e])}},{key:"start_tlm_log",value:function(e){return this.exec("start_tlm_log",[e])}},{key:"stop_cmd_log",value:function(e){return this.exec("stop_cmd_log",[e])}},{key:"stop_tlm_log",value:function(e){return this.exec("stop_tlm_log",[e])}},{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(e){return this.exec("set_limits_set",[e])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(e){return this.exec("start_background_task",[e])}},{key:"stop_background_task",value:function(e){return this.exec("stop_background_task",[e])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_target_names",value:function(){return this.exec("get_target_names",[])}},{key:"get_telemetry",value:function(e,n){return this.exec("get_telemetry",[e,n])}},{key:"get_all_telemetry",value:function(e){return this.exec("get_all_telemetry",[e])}},{key:"get_all_telemetry_names",value:function(e){return this.exec("get_all_telemetry_names",[e])}},{key:"get_tlm_packet",value:function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n,t,l){var i,o,c,s,r,u=arguments;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=u.length>3&&void 0!==u[3]?u[3]:30,e.next=3,this.exec("get_tlm_packet",[n,t],{type:l,stale_time:i});case 3:if(o=e.sent,null!=o)for(c=o.length,s=null,r=0;r<c;r++)s=this.decode_openc3_type(o[r][1]),null!==s&&(o[r][1]=s);return e.abrupt("return",o);case 6:case"end":return e.stop()}}),e,this)})));function n(n,t,l){return e.apply(this,arguments)}return n}()},{key:"get_packet_derived_items",value:function(e,n){return this.exec("get_packet_derived_items",[e,n])}},{key:"get_tlm_buffer",value:function(e,n){return this.exec("get_tlm_buffer",[e,n])}},{key:"get_tlm_values",value:function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n){var t,l,i,o,c,s=arguments;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=s.length>1&&void 0!==s[1]?s[1]:30,e.next=3,this.exec("get_tlm_values",[n],{stale_time:t},{},1e4);case 3:for(l=e.sent,i=l[0].length,o=null,c=0;c<i;c++)o=this.decode_openc3_type(l[0][c]),null!==o&&(l[0][c]=o);return e.abrupt("return",l);case 8:case"end":return e.stop()}}),e,this)})));function n(n){return e.apply(this,arguments)}return n}()},{key:"get_limits",value:function(e,n,t){return this.exec("get_limits",[e,n,t])}},{key:"tlm",value:function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n,t,l){var i,o,c,s,r=arguments;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=r.length>3&&void 0!==r[3]?r[3]:"CONVERTED",o=null,void 0!==t){e.next=8;break}return e.next=5,this.exec("tlm",[n]);case 5:o=e.sent,e.next=24;break;case 8:if(void 0!==l){e.next=21;break}if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t)){e.next=15;break}return e.next=12,this.exec("tlm",[n],{type:t});case 12:o=e.sent,e.next=19;break;case 15:throw c=new Error,c.name="TypeError",c.message="Invalid data type ".concat(t,". Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS."),c;case 19:e.next=24;break;case 21:return e.next=23,this.exec("tlm",[n,t,l],{type:i});case 23:o=e.sent;case 24:return s=this.decode_openc3_type(o),null!==s&&(o=s),e.abrupt("return",o);case 27:case"end":return e.stop()}}),e,this)})));function n(n,t,l){return e.apply(this,arguments)}return n}()},{key:"inject_tlm",value:function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n,t){var l,i,o=arguments;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.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",e.next=4,this.exec("inject_tlm",[n,t,l],{type:i});case 4:data=e.sent;case 5:case"end":return e.stop()}}),e,this)})));function n(n,t){return e.apply(this,arguments)}return n}()},{key:"set_tlm",value:function(e,n,t,l){return this.exec("set_tlm",[e,n,t],{type:l})}},{key:"override_tlm",value:function(e,n,t,l){return this.exec("override_tlm",[e,n,t],{type:l})}},{key:"get_overrides",value:function(){return this.exec("get_overrides")}},{key:"normalize_tlm",value:function(e,n,t,l){return this.exec("normalize_tlm",[e,n,t],{type:l})}},{key:"get_all_commands",value:function(e){return this.exec("get_all_commands",[e])}},{key:"get_all_command_names",value:function(e){return this.exec("get_all_command_names",[e])}},{key:"get_command",value:function(e,n){return this.exec("get_command",[e,n])}},{key:"get_cmd_cnts",value:function(e){return this.exec("get_cmd_cnts",[e])}},{key:"get_cmd_value",value:function(e,n,t){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[e,n,t,l])}},{key:"get_cmd_buffer",value:function(e,n){return this.exec("get_cmd_buffer",[e,n])}},{key:"_cmd",value:function(e,n,t,l,i){var o=null;for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o=this.encode_openc3_type(l[a]),null!==o&&(l[a]=o));return this.exec(e,[n,t,l],{},i)}},{key:"get_cmd_hazardous",value:function(e,n,t){return void 0===n?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,n,t)}},{key:"cmd",value:function(e,n,t){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return void 0===n?this.exec("cmd",e,{},l):this._cmd("cmd",e,n,t,l)}},{key:"cmd_no_range_check",value:function(e,n,t){return void 0===n?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,n,t)}},{key:"cmd_raw",value:function(e,n,t){return void 0===n?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,n,t)}},{key:"cmd_raw_no_range_check",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,n,t)}},{key:"cmd_no_hazardous_check",value:function(e,n,t){return void 0===n?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,n,t)}},{key:"cmd_no_checks",value:function(e,n,t){return void 0===n?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,n,t)}},{key:"cmd_raw_no_hazardous_check",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,n,t)}},{key:"cmd_raw_no_checks",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,n,t)}},{key:"build_command",value:function(e,n,t){return void 0===n?this.exec("build_command",e):this._cmd("build_command",e,n,t)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(e,n){return this.exec("send_raw",[e,n])}},{key:"list_configs",value:function(e){return this.exec("list_configs",[e])}},{key:"load_config",value:function(e,n){return this.exec("load_config",[e,n])}},{key:"save_config",value:function(e,n,t){return this.exec("save_config",[e,n,t])}},{key:"delete_config",value:function(e,n){return this.exec("delete_config",[e,n])}},{key:"enable_limits",value:function(e,n,t){return this.exec("enable_limits",[e,n,t])}},{key:"disable_limits",value:function(e,n,t){return this.exec("disable_limits",[e,n,t])}},{key:"get_out_of_limits",value:function(){return this.exec("get_out_of_limits",[])}},{key:"get_overall_limits_state",value:function(e){return this.exec("get_overall_limits_state",[e])}},{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(e){return this.exec("get_setting",[e])}},{key:"get_settings",value:function(e){return this.exec("get_settings",e)}},{key:"save_setting",value:function(e,n){return this.exec("save_setting",[e,n])}},{key:"get_metrics",value:function(){return this.exec("get_metrics",[])}},{key:"hashString",value:function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n){var t,l,i;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!window.isSecureContext){e.next=7;break}return t=(new TextEncoder).encode(n),e.next=4,crypto.subtle.digest("SHA-256",t);case 4:return l=e.sent,i=new Uint8Array(l),e.abrupt("return",Array.from(i).map((function(e){return e.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return e.stop()}}),e)})));function n(n){return e.apply(this,arguments)}return n}()}]),e}(),k={data:{configKey:""},methods:{openConfigBase:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;localStorage["lastconfig__".concat(this.configKey)]=e,(new b).load_config(this.configKey,e).then((function(i){i?(n.$notify.normal({title:"Loading configuration",body:e}),l&&l(JSON.parse(i)),t||n.$router.currentRoute.fullPath.includes(e)||n.$router.push({query:{config:e}}),localStorage["lastconfig__".concat(n.configKey)]=e):(n.$notify.caution({title:"Unknown configuration",body:e}),localStorage.removeItem("lastconfig__".concat(n.configKey)))})).catch((function(t){t&&n.$notify.serious({title:"Error opening configuration: ".concat(e),body:t}),localStorage.removeItem("lastconfig__".concat(n.configKey))}))},saveConfigBase:function(e,n){var t=this;(new b).save_config(this.configKey,e,JSON.stringify(n)).then((function(){t.$notify.normal({title:"Saved configuration",body:e}),localStorage["lastconfig__".concat(t.configKey)]=e})).catch((function(n){n&&t.$notify.serious({title:"Error saving configuration: ".concat(e),body:n}),localStorage.removeItem("lastconfig__".concat(t.configKey))}))},resetConfigBase:function(){localStorage.removeItem("lastconfig__".concat(this.configKey)),"/"!==this.$router.currentRoute.fullPath&&this.$router.replace(this.$router.currentRoute.path),this.$router.go()}}},T=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Open Configuration")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("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:e.search,callback:function(n){e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":function(e,n){return n.select(e)}},scopedSlots:e._u([{key:"item.actions",fn:function(t){var l=t.item;return[n("v-btn",{staticClass:"mt-1",attrs:{"data-test":"item-delete",icon:""},on:{click:function(n){return e.deleteConfig(l)}}},[n("v-icon",[e._v("mdi-delete")])],1)]}}])}),n("v-row",{attrs:{dense:""}},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})])],1)]),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"open-config-cancel-btn"},on:{click:e.cancel}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"open-config-submit-btn",disabled:!!e.error},on:{click:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)])],1)},x=[],w={props:{configKey:String,value:Boolean},data:function(){return{configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.selectedItem||null===this.selectedItem?"Must select a config":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,n=-1;(new b).list_configs(this.configKey).then((function(t){e.configs=t.map((function(e){return n+=1,{configId:n,config:e}}))})).catch((function(n){e.$emit("warning","Failed to connect to OpenC3. ".concat(n))}))},methods:{itemSelected:function(e){e.value?this.selectedItem=e.item:this.selectedItem=null},success:function(){this.$emit("success",this.selectedItem.config),this.show=!1,this.search=null,this.selectedItem=null},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null},deleteConfig:function(e){var n=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.config),{okText:"Delete",cancelText:"Cancel"}).then((function(t){n.selectedItem.config===e.config&&(n.selectedItem=null),n.configs.splice(n.configs.indexOf(e),1),(new b).delete_config(n.configKey,e.config),localStorage["lastconfig__".concat(n.configKey)]===e.config&&localStorage.removeItem("lastconfig__".concat(n.configKey))})).catch((function(t){t&&n.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(t))}))}}},N=w,D=t(3483),I=(0,D.Z)(N,T,x,!1,null,null,null),E=I.exports,O=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Save Configuration")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":function(e,n){return n.select(e)}},scopedSlots:e._u([{key:"item.actions",fn:function(t){var l=t.item;return[n("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(n){return e.deleteConfig(l)}}},[n("v-icon",[e._v("mdi-delete")])],1)]}}])}),n("v-row",{attrs:{dense:""}},[n("v-text-field",{attrs:{"hide-details":"",autofocus:"",disabled:!!e.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},model:{value:e.configName,callback:function(n){e.configName=n},expression:"configName"}})],1),n("v-row",{attrs:{dense:""}},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})])],1)]),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.cancel}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"save-config-submit-btn",disabled:!!e.error},on:{click:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)])],1)},S=[],M={props:{configKey:String,value:Boolean},data:function(){return{configName:"",configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.configName?"Config must have a name":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,n=-1;(new b).list_configs(this.configKey).then((function(t){e.configs=t.map((function(e){return n+=1,{configId:n,config:e}}))})).catch((function(n){e.$emit("warning","Failed to connect to OpenC3. ".concat(n))}))},methods:{itemSelected:function(e){e.value?(this.selectedItem=e.item,this.configName=e.item.config):(this.selectedItem=null,this.configName="")},success:function(){this.$emit("success",this.configName),this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},deleteConfig:function(e){var n=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.config),{okText:"Delete",cancelText:"Cancel"}).then((function(t){n.configName===e.config&&(n.selectedItem=null,n.configName=""),n.configs.splice(n.configs.indexOf(e.config),1),(new b).delete_config(n.configKey,e.config),localStorage["lastconfig__".concat(n.configKey)]===e.config&&localStorage.removeItem("lastconfig__".concat(n.configKey))})).catch((function(t){t&&n.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(t))}))}}},R=M,P=(0,D.Z)(R,O,S,!1,null,null,null),V=P.exports,L=(t(4115),t(634),function(){var e=this,n=e._self._c;return n("v-container",{staticClass:"c-chooser px-0"},[n("v-row",[n("v-col",{attrs:{cols:e.colSize,"data-test":"select-target"}},[n("v-autocomplete",{attrs:{label:"Select Target","hide-details":"",dense:"",items:e.targetNames,"item-text":"label","item-value":"value"},on:{change:e.targetNameChanged},model:{value:e.selectedTargetName,callback:function(n){e.selectedTargetName=n},expression:"selectedTargetName"}})],1),n("v-col",{attrs:{cols:e.colSize,"data-test":"select-packet"}},[n("v-autocomplete",{attrs:{label:"Select Packet","hide-details":"",dense:"",disabled:e.packetsDisabled||e.buttonDisabled,items:e.packetNames,"item-text":"label","item-value":"value"},on:{change:e.packetNameChanged},model:{value:e.selectedPacketName,callback:function(n){e.selectedPacketName=n},expression:"selectedPacketName"}})],1),e.chooseItem&&!e.buttonDisabled?n("v-col",{attrs:{cols:e.colSize,"data-test":"select-item"}},[n("v-autocomplete",{attrs:{label:"Select Item","hide-details":"",dense:"",disabled:e.itemsDisabled||e.buttonDisabled,items:e.itemNames,"item-text":"label","item-value":"value"},on:{change:function(n){return e.itemNameChanged(n)}},model:{value:e.selectedItemName,callback:function(n){e.selectedItemName=n},expression:"selectedItemName"}})],1):e._e(),e.buttonText?n("v-col",{attrs:{cols:e.colSize}},[n("v-btn",{attrs:{disabled:e.buttonDisabled,block:"",color:"primary","data-test":"select-send"},on:{click:e.buttonPressed}},[e._v(" "+e._s(e.actualButtonText)+" ")])],1):e._e()],1),e.selectTypes?n("v-row",[n("v-col",{attrs:{cols:e.colSize,"data-test":"data-type"}},[n("v-autocomplete",{attrs:{label:"Value Type","hide-details":"",dense:"",items:e.valueTypes},model:{value:e.selectedValueType,callback:function(n){e.selectedValueType=n},expression:"selectedValueType"}})],1),n("v-col",{attrs:{cols:e.colSize,"data-test":"reduced"}},[n("v-autocomplete",{attrs:{label:"Reduced","hide-details":"",dense:"",items:e.reductionModes},model:{value:e.selectedReduced,callback:function(n){e.selectedReduced=n},expression:"selectedReduced"}})],1),n("v-col",{attrs:{cols:e.colSize,"data-test":"reduced-type"}},[n("v-autocomplete",{attrs:{label:"Reduced Type","hide-details":"",dense:"",disabled:"DECOM"===e.selectedReduced,items:e.reducedTypes},model:{value:e.selectedReducedType,callback:function(n){e.selectedReducedType=n},expression:"selectedReducedType"}})],1),n("v-col",{attrs:{cols:e.colSize}})],1):e._e(),n("v-row",{staticClass:"pt-1",attrs:{"no-gutters":""}},[e.hazardous?n("v-col",{staticClass:"openc3-yellow",staticStyle:{"white-space":"pre"},attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description)+" (HAZARDOUS)")]):n("v-col",{staticStyle:{"white-space":"pre"},attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description)+" ")])],1)],1)}),$=[],F=(t(4870),t(3985),t(1951),t(9228),t(3108),{props:{allowAll:{type:Boolean,default:!1},allowAllTargets:{type:Boolean,default:!1},buttonText:{type:String,default:null},chooseItem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},initialTargetName:{type:String,default:""},initialPacketName:{type:String,default:""},initialItemName:{type:String,default:""},selectTypes:{type:Boolean,default:!1},mode:{type:String,default:"tlm",validator:function(e){return["cmd","tlm"].includes(e)}},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1}},data:function(){var e,n,t;return{targetNames:[],selectedTargetName:null===(e=this.initialTargetName)||void 0===e?void 0:e.toUpperCase(),packetNames:[],selectedPacketName:null===(n=this.initialPacketName)||void 0===n?void 0:n.toUpperCase(),itemNames:[],selectedItemName:null===(t=this.initialItemName)||void 0===t?void 0:t.toUpperCase(),valueTypes:["CONVERTED","RAW"],selectedValueType:"CONVERTED",reductionModes:[{text:"NONE",value:"DECOM"},{text:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{text:"REDUCED_HOUR",value:"REDUCED_HOUR"},{text:"REDUCED_DAY",value:"REDUCED_DAY"}],selectedReduced:"DECOM",reducedTypes:["MIN","MAX","AVG","STDDEV"],selectedReducedType:"AVG",description:"",hazardous:!1,internalDisabled:!1,packetsDisabled:!1,itemsDisabled:!1,api:null,ALL:{label:"[ ALL ]",value:"ALL",description:"ALL"},UNKNOWN:{label:"[ UNKNOWN ]",value:"UNKNOWN",description:"UNKNOWN"}}},created:function(){var e=this;this.internalDisabled=!0,this.api=new b,this.api.get_target_names().then((function(n){e.targetNames=n.flatMap((function(e){return"UNKNOWN"==e?[]:{label:e,value:e}})),e.allowAllTargets&&e.targetNames.unshift(e.ALL),e.selectedTargetName||(e.selectedTargetName=e.targetNames[0].value,e.targetNameChanged(e.selectedTargetName)),e.updatePackets(),e.unknown&&e.targetNames.push(e.UNKNOWN)}))},computed:{actualButtonText:function(){return"ALL"===this.selectedPacketName?"Add Target":"ALL"===this.selectedItemName?"Add Packet":this.buttonText},buttonDisabled:function(){return this.disabled||this.internalDisabled},targetChooserStyle:function(){return this.chooseItem||this.buttonText?{width:"25%",float:"left","margin-right":"5px"}:{width:"49%",float:"left"}},packetChooserStyle:function(){return this.chooseItem||this.buttonText?{width:"25%",float:"left","margin-right":"5px"}:{width:"50%",float:"right"}},colSize:function(){return!!this.vertical&&12}},watch:{mode:function(e,n){this.selectedPacketName=null,this.selectedItemName=null,this.updatePackets()}},methods:{updatePackets:function(){var e=this;if("UNKNOWN"===this.selectedTargetName)return this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.packetNameChanged(this.UNKNOWN.value),void(this.description="UNKNOWN");if("ALL"===this.selectedTargetName)return this.packetNames=[this.ALL],this.selectedPacketName=this.packetNames[0].value,this.packetNameChanged(this.ALL.value),void(this.description="ALL");this.internalDisabled=!0;var n="tlm"===this.mode?"get_all_telemetry_names":"get_all_command_names";this.api[n](this.selectedTargetName).then((function(n){e.packetNames=n.map((function(e){return{label:e,value:e}})),e.allowAll&&e.packetNames.unshift(e.ALL),e.selectedPacketName||(e.selectedPacketName=e.packetNames[0].value),e.packetNameChanged(e.selectedPacketName);e.packetNames.find((function(n){return n.value===e.selectedPacketName}));e.chooseItem&&e.updateItems(),e.internalDisabled=!1}))},updateItems:function(){var e=this;if("ALL"!==this.selectedPacketName){this.internalDisabled=!0;var n="tlm"===this.mode?"get_telemetry":"get_command";this.api[n](this.selectedTargetName,this.selectedPacketName).then((function(n){e.itemNames=n.items.map((function(e){return[{label:e.name,value:e.name,description:e.description}]})).reduce((function(e,n){return e.concat(n)}),[]),e.allowAll&&e.itemNames.unshift(e.ALL),e.selectedItemName||(e.selectedItemName=e.itemNames[0].value),e.description=e.itemNames[0].description,e.internalDisabled=!1,e.$emit("on-set",{targetName:e.selectedTargetName,packetName:e.selectedPacketName,itemName:e.selectedItemName,valueType:e.selectedValueType,reduced:e.selectedReduced,reducedType:e.selectedReducedType})}))}},targetNameChanged:function(e){this.selectedTargetName=e,this.selectedPacketName="",this.selectedItemName="",this.updatePackets()},packetNameChanged:function(e){var n=this;if("ALL"===e)this.itemsDisabled=!0,this.internalDisabled=!1;else{this.itemsDisabled=!1;var t=this.packetNames.find((function(n){return e===n.value}));this.selectedPacketName=t.value;var l="tlm"===this.mode?"get_telemetry":"get_command";this.api[l](this.selectedTargetName,this.selectedPacketName).then((function(e){n.description=e.description,n.hazardous=e.hazardous}))}this.chooseItem?this.updateItems():this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},itemNameChanged:function(e){var n=this.itemNames.find((function(n){return e===n.value}));this.selectedItemName=n.value,this.description=n.description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},buttonPressed:function(){"ALL"===this.selectedPacketName?this.allTargetPacketItems():"ALL"===this.selectedItemName?this.allPacketItems():this.chooseItem?this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}):this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},allTargetPacketItems:function(){var e=this;this.packetNames.forEach((function(n){if(n!==e.ALL){var t="tlm"===e.mode?"get_telemetry":"get_command";e.api[t](e.selectedTargetName,n.value).then((function(t){t.items.forEach((function(t){e.$emit("click",{targetName:e.selectedTargetName,packetName:n.value,itemName:t["name"],valueType:e.selectedValueType,reduced:e.selectedReduced,reducedType:e.selectedReducedType})}))}))}}))},allPacketItems:function(){var e=this;this.itemNames.forEach((function(n){n!==e.ALL&&e.$emit("click",{targetName:e.selectedTargetName,packetName:e.selectedPacketName,itemName:n.value,valueType:e.selectedValueType,reduced:e.selectedReduced,reducedType:e.selectedReducedType})}))}}}),Z=F,U=(t(9841),(0,D.Z)(Z,L,$,!1,null,null,null)),K=U.exports,H=t(7146);H.ju.staleThreshold=10;var q=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/openc3-api/cable";(0,A.Z)(this,e),this._cable=null,this._url=n}return(0,f.Z)(e,[{key:"disconnect",value:function(){this._cable&&this._cable.disconnect()}},{key:"createSubscription",value:function(e,n){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(n){if(n&&OpenC3Auth.setTokens(),null==t._cable){var o=t._url+"?scope="+window.openc3Scope+"&authorization="+localStorage.openc3Token;t._cable=H.zD(o)}return t._cable.subscriptions.create((0,d.Z)({channel:e},i),l)}))}},{key:"recordPing",value:function(){this._cable.connection.monitor.recordPing()}}]),e}(),B=t(8966),j=function(){var e=this,n=e._self._c;return n("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[n("div",{staticClass:"v-toolbar__content"},[e._l(e.menus,(function(t,l){return n("v-menu",{key:l,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(l){var i=l.on,o=l.attrs;return[n("v-btn",e._g(e._b({staticClass:"mx-1",attrs:{outlined:"","data-test":e.formatDT("".concat(e.title," ").concat(t.label))}},"v-btn",o,!1),i),[n("span",{domProps:{textContent:e._s(t.label)}}),n("v-icon",{attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[n("v-list",[n("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:t.radioGroup,"hide-details":"",dense:""}},[e._l(t.items,(function(l,i){return[l.divider?n("v-divider"):n("v-list-item",{key:i,attrs:{disabled:l.disabled,"data-test":e.formatDT("".concat(e.title," ").concat(t.label," ").concat(l.label))},on:{click:function(e){return l.command(l)}}},[l.radio?n("v-list-item-action",[n("v-radio",{attrs:{color:"secondary",label:l.label,value:l.label}})],1):e._e(),l.checkbox?n("v-list-item-action",[n("v-checkbox",{attrs:{color:"secondary",label:l.label},model:{value:l.checked,callback:function(n){e.$set(l,"checked",n)},expression:"option.checked"}})],1):e._e(),l.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:l.disabled}},[e._v(e._s(l.icon))])],1):e._e(),l.radio||l.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(l.disabled?"opacity: 0.2":"")},[e._v(e._s(l.label))])],1)]}))],2)],1)],1)})),n("v-spacer"),n("v-toolbar-title",[e._v(e._s(e.title))]),n("v-spacer")],2)])},z=[],W=(t(1639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()}},mounted:function(){"COSMOS "===this.title.substring(0,7)?document.title=this.title.substring(7):document.title=this.title}}),G=W,Y=(t(4888),(0,D.Z)(G,j,z,!1,null,"2eb37f67",null)),X=Y.exports;function J(){var e="/openc3/plugins/packages/openc3-cosmos-tool-dataextractor/src/tools/DataExtractor/Filters/timeFilters.js",n="13cbd79ecf929a788c44b4a18faaec3d6cdfc081",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-dataextractor/src/tools/DataExtractor/Filters/timeFilters.js",statementMap:{0:{start:{line:26,column:6},end:{line:30,column:7}},1:{start:{line:27,column:8},end:{line:27,column:32}},2:{start:{line:29,column:8},end:{line:29,column:35}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:25,column:14},end:{line:25,column:15}},loc:{start:{line:25,column:41},end:{line:31,column:5}},line:25}},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}},s:{0:0,1:0,2:0},f:{0:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"13cbd79ecf929a788c44b4a18faaec3d6cdfc081"},o=t[l]||(t[l]={});o[e]&&o[e].hash===n||(o[e]=i);var a=o[e];return J=function(){return a},a}J();var Q={filters:{dateTime:function(e,n){return J().f[0]++,J().s[0]++,"utc"===n?(J().b[0][0]++,J().s[1]++,e.toISOString()):(J().b[0][1]++,J().s[2]++,e.toLocaleString())}},methods:{}};function ee(){var e="/openc3/plugins/packages/openc3-cosmos-tool-dataextractor/src/tools/DataExtractor/DataExtractor.vue",n="1ec7354633f7f2dcfc0530645470b3f33dcb2f8d",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-dataextractor/src/tools/DataExtractor/DataExtractor.vue",statementMap:{0:{start:{line:3,column:27},end:{line:3,column:29}},1:{start:{line:23,column:4},end:{line:181,column:5}},2:{start:{line:43,column:29},end:{line:43,column:50}},3:{start:{line:88,column:16},end:{line:88,column:38}},4:{start:{line:95,column:16},end:{line:95,column:38}},5:{start:{line:102,column:16},end:{line:102,column:38}},6:{start:{line:112,column:16},end:{line:112,column:36}},7:{start:{line:119,column:16},end:{line:119,column:37}},8:{start:{line:144,column:16},end:{line:144,column:46}},9:{start:{line:151,column:16},end:{line:151,column:54}},10:{start:{line:158,column:16},end:{line:158,column:50}},11:{start:{line:168,column:16},end:{line:168,column:42}},12:{start:{line:175,column:16},end:{line:175,column:40}},13:{start:{line:185,column:6},end:{line:185,column:63}},14:{start:{line:189,column:16},end:{line:189,column:72}},15:{start:{line:190,column:4},end:{line:194,column:5}},16:{start:{line:191,column:6},end:{line:191,column:31}},17:{start:{line:193,column:6},end:{line:193,column:28}},18:{start:{line:197,column:27},end:{line:197,column:72}},19:{start:{line:199,column:4},end:{line:203,column:5}},20:{start:{line:200,column:6},end:{line:200,column:60}},21:{start:{line:201,column:11},end:{line:203,column:5}},22:{start:{line:202,column:6},end:{line:202,column:44}},23:{start:{line:206,column:4},end:{line:208,column:5}},24:{start:{line:207,column:6},end:{line:207,column:37}},25:{start:{line:209,column:4},end:{line:209,column:27}},26:{start:{line:213,column:6},end:{line:215,column:8}},27:{start:{line:214,column:8},end:{line:214,column:27}},28:{start:{line:218,column:6},end:{line:218,column:43}},29:{start:{line:222,column:6},end:{line:236,column:7}},30:{start:{line:223,column:8},end:{line:235,column:9}},31:{start:{line:231,column:10},end:{line:233,column:12}},32:{start:{line:234,column:10},end:{line:234,column:16}},33:{start:{line:237,column:6},end:{line:237,column:49}},34:{start:{line:238,column:6},end:{line:238,column:23}},35:{start:{line:239,column:6},end:{line:239,column:34}},36:{start:{line:240,column:6},end:{line:240,column:33}},37:{start:{line:241,column:6},end:{line:241,column:25}},38:{start:{line:243,column:6},end:{line:243,column:27}},39:{start:{line:246,column:18},end:{line:246,column:42}},40:{start:{line:247,column:6},end:{line:247,column:33}},41:{start:{line:250,column:6},end:{line:250,column:21}},42:{start:{line:253,column:6},end:{line:253,column:26}},43:{start:{line:254,column:6},end:{line:258,column:7}},44:{start:{line:255,column:8},end:{line:255,column:36}},45:{start:{line:256,column:8},end:{line:256,column:46}},46:{start:{line:257,column:8},end:{line:257,column:50}},47:{start:{line:261,column:18},end:{line:261,column:80}},48:{start:{line:262,column:6},end:{line:264,column:7}},49:{start:{line:263,column:8},end:{line:263,column:38}},50:{start:{line:265,column:6},end:{line:267,column:7}},51:{start:{line:266,column:8},end:{line:266,column:43}},52:{start:{line:268,column:6},end:{line:270,column:7}},53:{start:{line:269,column:8},end:{line:269,column:45}},54:{start:{line:271,column:6},end:{line:271,column:28}},55:{start:{line:274,column:6},end:{line:274,column:72}},56:{start:{line:276,column:6},end:{line:279,column:7}},57:{start:{line:282,column:6},end:{line:292,column:7}},58:{start:{line:283,column:8},end:{line:289,column:9}},59:{start:{line:284,column:10},end:{line:284,column:75}},60:{start:{line:285,column:10},end:{line:285,column:69}},61:{start:{line:287,column:10},end:{line:287,column:69}},62:{start:{line:288,column:10},end:{line:288,column:63}},63:{start:{line:291,column:8},end:{line:291,column:14}},64:{start:{line:293,column:6},end:{line:293,column:58}},65:{start:{line:294,column:6},end:{line:294,column:54}},66:{start:{line:298,column:6},end:{line:301,column:7}},67:{start:{line:299,column:8},end:{line:299,column:23}},68:{start:{line:300,column:8},end:{line:300,column:14}},69:{start:{line:303,column:6},end:{line:303,column:26}},70:{start:{line:304,column:6},end:{line:309,column:7}},71:{start:{line:305,column:8},end:{line:307,column:10}},72:{start:{line:308,column:8},end:{line:308,column:14}},73:{start:{line:310,column:6},end:{line:315,column:7}},74:{start:{line:311,column:8},end:{line:313,column:10}},75:{start:{line:314,column:8},end:{line:314,column:14}},76:{start:{line:316,column:6},end:{line:321,column:7}},77:{start:{line:317,column:8},end:{line:319,column:10}},78:{start:{line:320,column:8},end:{line:320,column:14}},79:{start:{line:323,column:6},end:{line:332,column:7}},80:{start:{line:324,column:8},end:{line:331,column:10}},81:{start:{line:334,column:6},end:{line:334,column:23}},82:{start:{line:335,column:6},end:{line:335,column:39}},83:{start:{line:336,column:6},end:{line:353,column:10}},84:{start:{line:338,column:30},end:{line:338,column:49}},85:{start:{line:339,column:27},end:{line:339,column:45}},86:{start:{line:341,column:12},end:{line:343,column:14}},87:{start:{line:346,column:12},end:{line:348,column:14}},88:{start:{line:352,column:10},end:{line:352,column:42}},89:{start:{line:356,column:6},end:{line:356,column:24}},90:{start:{line:357,column:6},end:{line:357,column:35}},91:{start:{line:358,column:6},end:{line:358,column:33}},92:{start:{line:359,column:6},end:{line:359,column:29}},93:{start:{line:360,column:6},end:{line:360,column:25}},94:{start:{line:361,column:6},end:{line:361,column:22}},95:{start:{line:362,column:6},end:{line:362,column:29}},96:{start:{line:365,column:6},end:{line:365,column:31}},97:{start:{line:366,column:6},end:{line:366,column:30}},98:{start:{line:367,column:6},end:{line:367,column:28}},99:{start:{line:370,column:6},end:{line:370,column:25}},100:{start:{line:371,column:18},end:{line:371,column:20}},101:{start:{line:372,column:6},end:{line:380,column:8}},102:{start:{line:373,column:18},end:{line:373,column:127}},103:{start:{line:374,column:8},end:{line:376,column:9}},104:{start:{line:375,column:10},end:{line:375,column:45}},105:{start:{line:377,column:26},end:{line:377,column:39}},106:{start:{line:378,column:8},end:{line:378,column:38}},107:{start:{line:379,column:8},end:{line:379,column:38}},108:{start:{line:381,column:6},end:{line:394,column:7}},109:{start:{line:383,column:10},end:{line:385,column:11}},110:{start:{line:384,column:12},end:{line:384,column:34}},111:{start:{line:386,column:10},end:{line:392,column:12}},112:{start:{line:397,column:6},end:{line:397,column:29}},113:{start:{line:398,column:6},end:{line:403,column:7}},114:{start:{line:399,column:8},end:{line:401,column:10}},115:{start:{line:402,column:8},end:{line:402,column:14}},116:{start:{line:404,column:6},end:{line:404,column:41}},117:{start:{line:405,column:6},end:{line:405,column:46}},118:{start:{line:407,column:6},end:{line:432,column:7}},119:{start:{line:409,column:19},end:{line:409,column:28}},120:{start:{line:410,column:8},end:{line:415,column:9}},121:{start:{line:411,column:27},end:{line:411,column:46}},122:{start:{line:412,column:10},end:{line:412,column:44}},123:{start:{line:413,column:10},end:{line:413,column:53}},124:{start:{line:414,column:10},end:{line:414,column:58}},125:{start:{line:416,column:8},end:{line:416,column:29}},126:{start:{line:417,column:8},end:{line:417,column:29}},127:{start:{line:418,column:8},end:{line:418,column:36}},128:{start:{line:419,column:8},end:{line:419,column:39}},129:{start:{line:420,column:8},end:{line:423,column:9}},130:{start:{line:425,column:32},end:{line:425,column:80}},131:{start:{line:426,column:28},end:{line:426,column:70}},132:{start:{line:427,column:8},end:{line:429,column:9}},133:{start:{line:428,column:10},end:{line:428,column:27}},134:{start:{line:431,column:8},end:{line:431,column:23}},135:{start:{line:433,column:6},end:{line:433,column:17}},136:{start:{line:437,column:6},end:{line:441,column:7}},137:{start:{line:438,column:8},end:{line:438,column:39}},138:{start:{line:439,column:8},end:{line:439,column:41}},139:{start:{line:440,column:8},end:{line:440,column:41}},140:{start:{line:442,column:6},end:{line:470,column:8}},141:{start:{line:443,column:8},end:{line:443,column:45}},142:{start:{line:443,column:39},end:{line:443,column:45}},143:{start:{line:444,column:8},end:{line:444,column:40}},144:{start:{line:444,column:34},end:{line:444,column:40}},145:{start:{line:445,column:8},end:{line:445,column:56}},146:{start:{line:446,column:8},end:{line:446,column:32}},147:{start:{line:455,column:12},end:{line:455,column:28}},148:{start:{line:456,column:19},end:{line:456,column:27}},149:{start:{line:457,column:8},end:{line:459,column:9}},150:{start:{line:458,column:10},end:{line:458,column:63}},151:{start:{line:460,column:8},end:{line:462,column:9}},152:{start:{line:461,column:10},end:{line:461,column:41}},153:{start:{line:463,column:8},end:{line:465,column:9}},154:{start:{line:464,column:10},end:{line:464,column:46}},155:{start:{line:466,column:8},end:{line:468,column:9}},156:{start:{line:467,column:10},end:{line:467,column:48}},157:{start:{line:469,column:8},end:{line:469,column:37}},158:{start:{line:473,column:20},end:{line:473,column:47}},159:{start:{line:474,column:26},end:{line:474,column:44}},160:{start:{line:475,column:22},end:{line:475,column:36}},161:{start:{line:476,column:23},end:{line:476,column:25}},162:{start:{line:477,column:6},end:{line:477,column:29}},163:{start:{line:479,column:20},end:{line:479,column:22}},164:{start:{line:480,column:6},end:{line:482,column:7}},165:{start:{line:481,column:8},end:{line:481,column:23}},166:{start:{line:483,column:6},end:{line:483,column:51}},167:{start:{line:484,column:6},end:{line:484,column:30}},168:{start:{line:487,column:6},end:{line:487,column:30}},169:{start:{line:488,column:6},end:{line:488,column:49}},170:{start:{line:488,column:29},end:{line:488,column:48}},171:{start:{line:489,column:6},end:{line:489,column:30}},172:{start:{line:491,column:26},end:{line:491,column:28}},173:{start:{line:492,column:16},end:{line:492,column:18}},174:{start:{line:493,column:24},end:{line:493,column:28}},175:{start:{line:494,column:18},end:{line:494,column:19}},176:{start:{line:495,column:6},end:{line:569,column:7}},177:{start:{line:497,column:22},end:{line:497,column:27}},178:{start:{line:500,column:8},end:{line:504,column:9}},179:{start:{line:501,column:10},end:{line:501,column:32}},180:{start:{line:503,column:10},end:{line:503,column:18}},181:{start:{line:507,column:25},end:{line:507,column:27}},182:{start:{line:510,column:8},end:{line:539,column:10}},183:{start:{line:511,column:10},end:{line:511,column:46}},184:{start:{line:511,column:40},end:{line:511,column:46}},185:{start:{line:514,column:10},end:{line:514,column:26}},186:{start:{line:516,column:28},end:{line:516,column:42}},187:{start:{line:518,column:10},end:{line:531,column:11}},188:{start:{line:519,column:12},end:{line:528,column:13}},189:{start:{line:520,column:14},end:{line:520,column:58}},190:{start:{line:522,column:27},end:{line:522,column:45}},191:{start:{line:523,column:14},end:{line:527,column:15}},192:{start:{line:524,column:16},end:{line:524,column:43}},193:{start:{line:526,column:16},end:{line:526,column:53}},194:{start:{line:530,column:12},end:{line:530,column:42}},195:{start:{line:532,column:10},end:{line:537,column:11}},196:{start:{line:536,column:12},end:{line:536,column:26}},197:{start:{line:538,column:10},end:{line:538,column:55}},198:{start:{line:542,column:8},end:{line:544,column:9}},199:{start:{line:543,column:10},end:{line:543,column:32}},200:{start:{line:546,column:8},end:{line:564,column:9}},201:{start:{line:548,column:10},end:{line:562,column:11}},202:{start:{line:549,column:12},end:{line:549,column:48}},203:{start:{line:558,column:16},end:{line:558,column:38}},204:{start:{line:559,column:12},end:{line:559,column:73}},205:{start:{line:560,column:12},end:{line:560,column:31}},206:{start:{line:561,column:12},end:{line:561,column:31}},207:{start:{line:563,column:10},end:{line:563,column:51}},208:{start:{line:565,column:8},end:{line:565,column:18}},209:{start:{line:566,column:8},end:{line:568,column:9}},210:{start:{line:567,column:10},end:{line:567,column:34}},211:{start:{line:571,column:34},end:{line:571,column:40}},212:{start:{line:572,column:17},end:{line:572,column:27}},213:{start:{line:573,column:6},end:{line:576,column:7}},214:{start:{line:574,column:8},end:{line:574,column:38}},215:{start:{line:575,column:8},end:{line:575,column:42}},216:{start:{line:577,column:6},end:{line:577,column:30}},217:{start:{line:578,column:19},end:{line:580,column:8}},218:{start:{line:581,column:6},end:{line:581,column:30}},219:{start:{line:583,column:19},end:{line:583,column:46}},220:{start:{line:584,column:6},end:{line:584,column:43}},221:{start:{line:585,column:6},end:{line:591,column:7}},222:{start:{line:592,column:6},end:{line:592,column:18}},223:{start:{line:594,column:6},end:{line:594,column:25}},224:{start:{line:597,column:6},end:{line:599,column:8}},225:{start:{line:598,column:8},end:{line:598,column:30}},226:{start:{line:602,column:6},end:{line:602,column:24}},227:{start:{line:603,column:6},end:{line:603,column:37}},228:{start:{line:605,column:6},end:{line:613,column:7}},229:{start:{line:606,column:8},end:{line:606,column:31}},230:{start:{line:607,column:13},end:{line:613,column:7}},231:{start:{line:608,column:20},end:{line:608,column:74}},232:{start:{line:609,column:18},end:{line:609,column:70}},233:{start:{line:610,column:8},end:{line:612,column:10}},234:{start:{line:615,column:6},end:{line:615,column:25}},235:{start:{line:616,column:6},end:{line:616,column:40}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:2},end:{line:22,column:3}},loc:{start:{line:22,column:9},end:{line:182,column:3}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:43,column:18},end:{line:43,column:19}},loc:{start:{line:43,column:29},end:{line:43,column:50}},line:43},2:{name:"(anonymous_2)",decl:{start:{line:87,column:23},end:{line:87,column:24}},loc:{start:{line:87,column:29},end:{line:89,column:15}},line:87},3:{name:"(anonymous_3)",decl:{start:{line:94,column:23},end:{line:94,column:24}},loc:{start:{line:94,column:29},end:{line:96,column:15}},line:94},4:{name:"(anonymous_4)",decl:{start:{line:101,column:23},end:{line:101,column:24}},loc:{start:{line:101,column:29},end:{line:103,column:15}},line:101},5:{name:"(anonymous_5)",decl:{start:{line:111,column:23},end:{line:111,column:24}},loc:{start:{line:111,column:29},end:{line:113,column:15}},line:111},6:{name:"(anonymous_6)",decl:{start:{line:118,column:23},end:{line:118,column:24}},loc:{start:{line:118,column:29},end:{line:120,column:15}},line:118},7:{name:"(anonymous_7)",decl:{start:{line:143,column:23},end:{line:143,column:24}},loc:{start:{line:143,column:29},end:{line:145,column:15}},line:143},8:{name:"(anonymous_8)",decl:{start:{line:150,column:23},end:{line:150,column:24}},loc:{start:{line:150,column:29},end:{line:152,column:15}},line:150},9:{name:"(anonymous_9)",decl:{start:{line:157,column:23},end:{line:157,column:24}},loc:{start:{line:157,column:29},end:{line:159,column:15}},line:157},10:{name:"(anonymous_10)",decl:{start:{line:167,column:23},end:{line:167,column:24}},loc:{start:{line:167,column:29},end:{line:169,column:15}},line:167},11:{name:"(anonymous_11)",decl:{start:{line:174,column:23},end:{line:174,column:24}},loc:{start:{line:174,column:29},end:{line:176,column:15}},line:174},12:{name:"(anonymous_12)",decl:{start:{line:184,column:18},end:{line:184,column:19}},loc:{start:{line:184,column:48},end:{line:186,column:5}},line:184},13:{name:"(anonymous_13)",decl:{start:{line:188,column:11},end:{line:188,column:12}},loc:{start:{line:188,column:23},end:{line:195,column:3}},line:188},14:{name:"(anonymous_14)",decl:{start:{line:196,column:11},end:{line:196,column:12}},loc:{start:{line:196,column:23},end:{line:204,column:3}},line:196},15:{name:"(anonymous_15)",decl:{start:{line:205,column:13},end:{line:205,column:14}},loc:{start:{line:205,column:25},end:{line:210,column:3}},line:205},16:{name:"(anonymous_16)",decl:{start:{line:212,column:23},end:{line:212,column:24}},loc:{start:{line:212,column:55},end:{line:216,column:5}},line:212},17:{name:"(anonymous_17)",decl:{start:{line:213,column:40},end:{line:213,column:41}},loc:{start:{line:213,column:52},end:{line:215,column:7}},line:213},18:{name:"(anonymous_18)",decl:{start:{line:217,column:23},end:{line:217,column:24}},loc:{start:{line:217,column:39},end:{line:219,column:5}},line:217},19:{name:"(anonymous_19)",decl:{start:{line:220,column:13},end:{line:220,column:14}},loc:{start:{line:220,column:29},end:{line:244,column:5}},line:220},20:{name:"(anonymous_20)",decl:{start:{line:245,column:16},end:{line:245,column:17}},loc:{start:{line:245,column:32},end:{line:248,column:5}},line:245},21:{name:"(anonymous_21)",decl:{start:{line:249,column:15},end:{line:249,column:16}},loc:{start:{line:249,column:27},end:{line:251,column:5}},line:249},22:{name:"(anonymous_22)",decl:{start:{line:252,column:18},end:{line:252,column:19}},loc:{start:{line:252,column:30},end:{line:259,column:5}},line:252},23:{name:"(anonymous_23)",decl:{start:{line:260,column:18},end:{line:260,column:19}},loc:{start:{line:260,column:34},end:{line:272,column:5}},line:260},24:{name:"(anonymous_24)",decl:{start:{line:273,column:19},end:{line:273,column:20}},loc:{start:{line:273,column:31},end:{line:295,column:5}},line:273},25:{name:"(anonymous_25)",decl:{start:{line:296,column:18},end:{line:296,column:19}},loc:{start:{line:296,column:30},end:{line:354,column:5}},line:296},26:{name:"(anonymous_26)",decl:{start:{line:338,column:20},end:{line:338,column:21}},loc:{start:{line:338,column:30},end:{line:338,column:49}},line:338},27:{name:"(anonymous_27)",decl:{start:{line:339,column:21},end:{line:339,column:22}},loc:{start:{line:339,column:27},end:{line:339,column:45}},line:339},28:{name:"(anonymous_28)",decl:{start:{line:340,column:24},end:{line:340,column:25}},loc:{start:{line:340,column:30},end:{line:344,column:11}},line:340},29:{name:"(anonymous_29)",decl:{start:{line:345,column:20},end:{line:345,column:21}},loc:{start:{line:345,column:26},end:{line:349,column:11}},line:345},30:{name:"(anonymous_30)",decl:{start:{line:351,column:14},end:{line:351,column:15}},loc:{start:{line:351,column:32},end:{line:353,column:9}},line:351},31:{name:"(anonymous_31)",decl:{start:{line:355,column:18},end:{line:355,column:19}},loc:{start:{line:355,column:30},end:{line:363,column:5}},line:355},32:{name:"(anonymous_32)",decl:{start:{line:364,column:22},end:{line:364,column:23}},loc:{start:{line:364,column:34},end:{line:368,column:5}},line:364},33:{name:"(anonymous_33)",decl:{start:{line:369,column:17},end:{line:369,column:18}},loc:{start:{line:369,column:29},end:{line:395,column:5}},line:369},34:{name:"(anonymous_34)",decl:{start:{line:372,column:25},end:{line:372,column:26}},loc:{start:{line:372,column:42},end:{line:380,column:7}},line:372},35:{name:"(anonymous_35)",decl:{start:{line:382,column:8},end:{line:382,column:9}},loc:{start:{line:382,column:23},end:{line:393,column:9}},line:382},36:{name:"(anonymous_36)",decl:{start:{line:396,column:14},end:{line:396,column:15}},loc:{start:{line:396,column:30},end:{line:434,column:5}},line:396},37:{name:"(anonymous_37)",decl:{start:{line:435,column:18},end:{line:435,column:19}},loc:{start:{line:435,column:38},end:{line:471,column:5}},line:435},38:{name:"(anonymous_38)",decl:{start:{line:442,column:23},end:{line:442,column:24}},loc:{start:{line:442,column:33},end:{line:470,column:7}},line:442},39:{name:"(anonymous_39)",decl:{start:{line:472,column:16},end:{line:472,column:17}},loc:{start:{line:472,column:34},end:{line:595,column:5}},line:472},40:{name:"(anonymous_40)",decl:{start:{line:488,column:19},end:{line:488,column:20}},loc:{start:{line:488,column:29},end:{line:488,column:48}},line:488},41:{name:"(anonymous_41)",decl:{start:{line:510,column:36},end:{line:510,column:37}},loc:{start:{line:510,column:45},end:{line:539,column:9}},line:510},42:{name:"(anonymous_42)",decl:{start:{line:596,column:17},end:{line:596,column:18}},loc:{start:{line:596,column:29},end:{line:600,column:5}},line:596},43:{name:"(anonymous_43)",decl:{start:{line:597,column:25},end:{line:597,column:26}},loc:{start:{line:597,column:38},end:{line:599,column:7}},line:597},44:{name:"(anonymous_44)",decl:{start:{line:601,column:14},end:{line:601,column:15}},loc:{start:{line:601,column:32},end:{line:617,column:5}},line:601}},branchMap:{0:{loc:{start:{line:43,column:29},end:{line:43,column:50}},type:"binary-expr",locations:[{start:{line:43,column:29},end:{line:43,column:36}},{start:{line:43,column:40},end:{line:43,column:50}}],line:43},1:{loc:{start:{line:190,column:4},end:{line:194,column:5}},type:"if",locations:[{start:{line:190,column:4},end:{line:194,column:5}},{start:{line:192,column:11},end:{line:194,column:5}}],line:190},2:{loc:{start:{line:199,column:4},end:{line:203,column:5}},type:"if",locations:[{start:{line:199,column:4},end:{line:203,column:5}},{start:{line:201,column:11},end:{line:203,column:5}}],line:199},3:{loc:{start:{line:199,column:8},end:{line:199,column:53}},type:"binary-expr",locations:[{start:{line:199,column:8},end:{line:199,column:25}},{start:{line:199,column:29},end:{line:199,column:53}}],line:199},4:{loc:{start:{line:201,column:11},end:{line:203,column:5}},type:"if",locations:[{start:{line:201,column:11},end:{line:203,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:201},5:{loc:{start:{line:206,column:4},end:{line:208,column:5}},type:"if",locations:[{start:{line:206,column:4},end:{line:208,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:206},6:{loc:{start:{line:212,column:39},end:{line:212,column:53}},type:"default-arg",locations:[{start:{line:212,column:48},end:{line:212,column:53}}],line:212},7:{loc:{start:{line:223,column:8},end:{line:235,column:9}},type:"if",locations:[{start:{line:223,column:8},end:{line:235,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:223},8:{loc:{start:{line:224,column:10},end:{line:229,column:35}},type:"binary-expr",locations:[{start:{line:224,column:10},end:{line:224,column:45}},{start:{line:225,column:10},end:{line:225,column:49}},{start:{line:226,column:10},end:{line:226,column:49}},{start:{line:227,column:10},end:{line:227,column:44}},{start:{line:228,column:10},end:{line:228,column:43}},{start:{line:229,column:10},end:{line:229,column:35}}],line:224},9:{loc:{start:{line:262,column:6},end:{line:264,column:7}},type:"if",locations:[{start:{line:262,column:6},end:{line:264,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:262},10:{loc:{start:{line:265,column:6},end:{line:267,column:7}},type:"if",locations:[{start:{line:265,column:6},end:{line:267,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:265},11:{loc:{start:{line:268,column:6},end:{line:270,column:7}},type:"if",locations:[{start:{line:268,column:6},end:{line:270,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:268},12:{loc:{start:{line:283,column:8},end:{line:289,column:9}},type:"if",locations:[{start:{line:283,column:8},end:{line:289,column:9}},{start:{line:286,column:15},end:{line:289,column:9}}],line:283},13:{loc:{start:{line:298,column:6},end:{line:301,column:7}},type:"if",locations:[{start:{line:298,column:6},end:{line:301,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:298},14:{loc:{start:{line:304,column:6},end:{line:309,column:7}},type:"if",locations:[{start:{line:304,column:6},end:{line:309,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:304},15:{loc:{start:{line:304,column:10},end:{line:304,column:50}},type:"binary-expr",locations:[{start:{line:304,column:10},end:{line:304,column:29}},{start:{line:304,column:33},end:{line:304,column:50}}],line:304},16:{loc:{start:{line:310,column:6},end:{line:315,column:7}},type:"if",locations:[{start:{line:310,column:6},end:{line:315,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:310},17:{loc:{start:{line:316,column:6},end:{line:321,column:7}},type:"if",locations:[{start:{line:316,column:6},end:{line:321,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:316},18:{loc:{start:{line:323,column:6},end:{line:332,column:7}},type:"if",locations:[{start:{line:323,column:6},end:{line:332,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:323},19:{loc:{start:{line:374,column:8},end:{line:376,column:9}},type:"if",locations:[{start:{line:374,column:8},end:{line:376,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:374},20:{loc:{start:{line:383,column:10},end:{line:385,column:11}},type:"if",locations:[{start:{line:383,column:10},end:{line:385,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:383},21:{loc:{start:{line:398,column:6},end:{line:403,column:7}},type:"if",locations:[{start:{line:398,column:6},end:{line:403,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:398},22:{loc:{start:{line:407,column:6},end:{line:432,column:7}},type:"if",locations:[{start:{line:407,column:6},end:{line:432,column:7}},{start:{line:430,column:13},end:{line:432,column:7}}],line:407},23:{loc:{start:{line:427,column:8},end:{line:429,column:9}},type:"if",locations:[{start:{line:427,column:8},end:{line:429,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:427},24:{loc:{start:{line:437,column:6},end:{line:441,column:7}},type:"if",locations:[{start:{line:437,column:6},end:{line:441,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:437},25:{loc:{start:{line:437,column:10},end:{line:437,column:73}},type:"binary-expr",locations:[{start:{line:437,column:10},end:{line:437,column:41}},{start:{line:437,column:45},end:{line:437,column:73}}],line:437},26:{loc:{start:{line:443,column:8},end:{line:443,column:45}},type:"if",locations:[{start:{line:443,column:8},end:{line:443,column:45}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:443},27:{loc:{start:{line:444,column:8},end:{line:444,column:40}},type:"if",locations:[{start:{line:444,column:8},end:{line:444,column:40}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:444},28:{loc:{start:{line:457,column:8},end:{line:459,column:9}},type:"if",locations:[{start:{line:457,column:8},end:{line:459,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:457},29:{loc:{start:{line:460,column:8},end:{line:462,column:9}},type:"if",locations:[{start:{line:460,column:8},end:{line:462,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:460},30:{loc:{start:{line:460,column:12},end:{line:460,column:36}},type:"binary-expr",locations:[{start:{line:460,column:12},end:{line:460,column:16}},{start:{line:460,column:20},end:{line:460,column:36}}],line:460},31:{loc:{start:{line:463,column:8},end:{line:465,column:9}},type:"if",locations:[{start:{line:463,column:8},end:{line:465,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:463},32:{loc:{start:{line:463,column:12},end:{line:463,column:50}},type:"binary-expr",locations:[{start:{line:463,column:12},end:{line:463,column:21}},{start:{line:463,column:25},end:{line:463,column:50}}],line:463},33:{loc:{start:{line:466,column:8},end:{line:468,column:9}},type:"if",locations:[{start:{line:466,column:8},end:{line:468,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:466},34:{loc:{start:{line:480,column:6},end:{line:482,column:7}},type:"if",locations:[{start:{line:480,column:6},end:{line:482,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:480},35:{loc:{start:{line:500,column:8},end:{line:504,column:9}},type:"if",locations:[{start:{line:500,column:8},end:{line:504,column:9}},{start:{line:502,column:15},end:{line:504,column:9}}],line:500},36:{loc:{start:{line:500,column:12},end:{line:500,column:40}},type:"binary-expr",locations:[{start:{line:500,column:12},end:{line:500,column:25}},{start:{line:500,column:29},end:{line:500,column:40}}],line:500},37:{loc:{start:{line:511,column:10},end:{line:511,column:46}},type:"if",locations:[{start:{line:511,column:10},end:{line:511,column:46}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:511},38:{loc:{start:{line:518,column:10},end:{line:531,column:11}},type:"if",locations:[{start:{line:518,column:10},end:{line:531,column:11}},{start:{line:529,column:17},end:{line:531,column:11}}],line:518},39:{loc:{start:{line:519,column:12},end:{line:528,column:13}},type:"if",locations:[{start:{line:519,column:12},end:{line:528,column:13}},{start:{line:521,column:19},end:{line:528,column:13}}],line:519},40:{loc:{start:{line:523,column:14},end:{line:527,column:15}},type:"if",locations:[{start:{line:523,column:14},end:{line:527,column:15}},{start:{line:525,column:21},end:{line:527,column:15}}],line:523},41:{loc:{start:{line:532,column:10},end:{line:537,column:11}},type:"if",locations:[{start:{line:532,column:10},end:{line:537,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:532},42:{loc:{start:{line:533,column:12},end:{line:534,column:59}},type:"binary-expr",locations:[{start:{line:533,column:12},end:{line:533,column:27}},{start:{line:534,column:12},end:{line:534,column:59}}],line:533},43:{loc:{start:{line:542,column:8},end:{line:544,column:9}},type:"if",locations:[{start:{line:542,column:8},end:{line:544,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:542},44:{loc:{start:{line:546,column:8},end:{line:564,column:9}},type:"if",locations:[{start:{line:546,column:8},end:{line:564,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:546},45:{loc:{start:{line:546,column:12},end:{line:546,column:39}},type:"binary-expr",locations:[{start:{line:546,column:12},end:{line:546,column:28}},{start:{line:546,column:32},end:{line:546,column:39}}],line:546},46:{loc:{start:{line:548,column:10},end:{line:562,column:11}},type:"if",locations:[{start:{line:548,column:10},end:{line:562,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:548},47:{loc:{start:{line:566,column:8},end:{line:568,column:9}},type:"if",locations:[{start:{line:566,column:8},end:{line:568,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:566},48:{loc:{start:{line:573,column:6},end:{line:576,column:7}},type:"if",locations:[{start:{line:573,column:6},end:{line:576,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:573},49:{loc:{start:{line:605,column:6},end:{line:613,column:7}},type:"if",locations:[{start:{line:605,column:6},end:{line:613,column:7}},{start:{line:607,column:13},end:{line:613,column:7}}],line:605},50:{loc:{start:{line:607,column:13},end:{line:613,column:7}},type:"if",locations:[{start:{line:607,column:13},end:{line:613,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:607}},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},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},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0],7:[0,0],8:[0,0,0,0,0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0,0],24:[0,0],25:[0,0],26:[0,0],27:[0,0],28:[0,0],29:[0,0],30:[0,0],31:[0,0],32:[0,0],33:[0,0],34:[0,0],35:[0,0],36:[0,0],37:[0,0],38:[0,0],39:[0,0],40:[0,0],41:[0,0],42:[0,0],43:[0,0],44:[0,0],45:[0,0],46:[0,0],47:[0,0],48:[0,0],49:[0,0],50:[0,0]},inputSourceMap:{version:3,sources:["DataExtractor.vue"],names:[],mappings:";AAqTA;AACA;;AAEA;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;;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;;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;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA",file:"DataExtractor.vue",sourceRoot:"src/tools/DataExtractor",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-card>\n <v-container>\n <v-row>\n <v-col>\n <v-text-field\n v-model=\"startDate\"\n label=\"Start Date\"\n type=\"date\"\n :max=\"todaysDate\"\n :rules=\"[rules.required]\"\n data-test=\"start-date\"\n />\n <v-text-field\n v-model=\"endDate\"\n label=\"End Date\"\n type=\"date\"\n :max=\"todaysDate\"\n :rules=\"[rules.required]\"\n data-test=\"end-date\"\n />\n </v-col>\n <v-col>\n <v-text-field\n v-model=\"startTime\"\n label=\"Start Time\"\n type=\"time\"\n step=\"1\"\n :rules=\"[rules.required]\"\n data-test=\"start-time\"\n >\n </v-text-field>\n <v-text-field\n v-model=\"endTime\"\n label=\"End Time\"\n type=\"time\"\n step=\"1\"\n :rules=\"[rules.required]\"\n data-test=\"end-time\"\n >\n </v-text-field>\n </v-col>\n </v-row>\n <v-row no-gutters>\n <v-col>\n <v-radio-group v-model=\"cmdOrTlm\" row hide-details class=\"mt-0\">\n <v-radio label=\"Command\" value=\"cmd\" data-test=\"cmd-radio\" />\n <v-radio label=\"Telemetry\" value=\"tlm\" data-test=\"tlm-radio\" />\n </v-radio-group>\n </v-col>\n <v-col>\n <v-radio-group v-model=\"utcOrLocal\" row hide-details class=\"mt-0\">\n <v-radio label=\"LST\" value=\"loc\" data-test=\"lst-radio\" />\n <v-radio label=\"UTC\" value=\"utc\" data-test=\"utc-radio\" />\n </v-radio-group>\n </v-col>\n </v-row>\n <v-row>\n <v-col>\n <target-packet-item-chooser\n @click=\"addItem($event)\"\n button-text=\"Add Item\"\n :mode=\"cmdOrTlm\"\n choose-item\n allow-all\n />\n </v-col>\n </v-row>\n <v-row no-gutters>\n <v-toolbar>\n <v-progress-circular :value=\"progress\" />\n Processed: {{ totalPacketsReceived }} packets,\n {{ totalItemsReceived }} items\n <v-spacer />\n <v-btn\n class=\"primary\"\n @click=\"processItems\"\n :disabled=\"items.length < 1\"\n >{{ processButtonText }}</v-btn\n >\n <v-spacer />\n <v-tooltip bottom>\n <template v-slot:activator=\"{ on, attrs }\">\n <v-btn\n icon\n @click=\"editAll = true\"\n v-bind=\"attrs\"\n v-on=\"on\"\n :disabled=\"items.length < 1\"\n data-test=\"editAll\"\n >\n <v-icon> mdi-pencil </v-icon>\n </v-btn>\n </template>\n <span>Edit All Items</span>\n </v-tooltip>\n <v-tooltip bottom>\n <template v-slot:activator=\"{ on, attrs }\">\n <v-btn\n icon\n @click=\"deleteAll\"\n v-bind=\"attrs\"\n v-on=\"on\"\n :disabled=\"items.length < 1\"\n data-test=\"delete-all\"\n >\n <v-icon>mdi-delete</v-icon>\n </v-btn>\n </template>\n <span>Delete All Items</span>\n </v-tooltip>\n </v-toolbar>\n </v-row>\n <v-row no-gutters>\n <v-card width=\"100%\">\n <v-card-title>\n Items\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=\"items\"\n :search=\"search\"\n :items-per-page=\"itemsPerPage\"\n @update:items-per-page=\"itemsPerPage = $event\"\n :footer-props=\"{\n itemsPerPageOptions: [10, 20, 50, 100, 500, 1000],\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.edit=\"{ item }\">\n <v-tooltip bottom>\n <template v-slot:activator=\"{ on, attrs }\">\n <v-icon\n @click.stop=\"item.edit = true\"\n v-bind=\"attrs\"\n v-on=\"on\"\n >\n mdi-pencil\n </v-icon>\n </template>\n <span>Edit Item</span>\n </v-tooltip>\n <v-dialog\n v-model=\"item.edit\"\n @keydown.esc=\"item.edit = false\"\n max-width=\"600\"\n >\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> DataExtractor: Edit Item Mode </span>\n <v-spacer />\n </v-system-bar>\n <v-card-title>{{ getItemLabel(item) }}</v-card-title>\n <v-card-text>\n <v-col>\n <v-select\n hide-details\n :items=\"modes\"\n label=\"Mode\"\n outlined\n v-model=\"item.mode\"\n />\n <v-select\n hide-details\n :items=\"valueTypes\"\n label=\"Value Type\"\n outlined\n v-model=\"item.valueType\"\n />\n <v-select\n hide-details\n :items=\"reducedTypes\"\n label=\"Reduced Type\"\n outlined\n v-model=\"item.reducedType\"\n />\n </v-col>\n </v-card-text>\n <v-card-actions>\n <v-spacer />\n <v-btn color=\"primary\" @click=\"item.edit = false\">\n Close\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n </template>\n <template v-slot:item.delete=\"{ item }\">\n <v-tooltip bottom>\n <template v-slot:activator=\"{ on, attrs }\">\n <v-icon @click=\"deleteItem(item)\" v-bind=\"attrs\" v-on=\"on\">\n mdi-delete\n </v-icon>\n </template>\n <span>Delete Item</span>\n </v-tooltip>\n </template>\n </v-data-table>\n </v-card>\n </v-row>\n </v-container>\n </v-card>\n <v-dialog v-model=\"editAll\" @keydown.esc=\"cancelEditAll\" max-width=\"600\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> DataExtractor: Edit All Items</span>\n <v-spacer />\n </v-system-bar>\n <v-card-text class=\"mt-2\">\n This will change all items to the following data type!\n <v-col>\n <v-select\n hide-details\n :items=\"modes\"\n label=\"Mode\"\n outlined\n v-model=\"allItemMode\"\n />\n <v-select\n hide-details\n :items=\"valueTypes\"\n label=\"Value Type\"\n outlined\n v-model=\"allItemValueType\"\n />\n <v-select\n hide-details\n :items=\"reducedTypes\"\n label=\"Reduced Type\"\n outlined\n v-model=\"allItemReducedType\"\n />\n </v-col>\n </v-card-text>\n <v-card-actions>\n <v-spacer />\n <v-btn outlined class=\"mx-2\" @click=\"editAll = !editAll\">\n Cancel\n </v-btn>\n <v-btn\n :disabled=\"!allItemValueType\"\n color=\"primary\"\n class=\"mx-2\"\n @click=\"editAllItems()\"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n \x3c!-- Note we're using v-if here so it gets re-created each time and refreshes the list --\x3e\n <open-config-dialog\n v-if=\"openConfig\"\n v-model=\"openConfig\"\n :configKey=\"configKey\"\n @success=\"openConfiguration\"\n />\n \x3c!-- Note we're using v-if here so it gets re-created each time and refreshes the list --\x3e\n <save-config-dialog\n v-if=\"saveConfig\"\n v-model=\"saveConfig\"\n :configKey=\"configKey\"\n @success=\"saveConfiguration\"\n />\n </div>\n</template>\n\n<script>\n// Putting large data into Vue data section causes lots of overhead\nvar dataExtractorRawData = []\n\nimport Config from '@openc3/tool-common/src/components/config/Config'\nimport OpenConfigDialog from '@openc3/tool-common/src/components/config/OpenConfigDialog'\nimport SaveConfigDialog from '@openc3/tool-common/src/components/config/SaveConfigDialog'\nimport TargetPacketItemChooser from '@openc3/tool-common/src/components/TargetPacketItemChooser'\nimport Cable from '@openc3/tool-common/src/services/cable.js'\nimport { format } from 'date-fns'\nimport TopBar from '@openc3/tool-common/src/components/TopBar'\nimport TimeFilters from '@/tools/DataExtractor/Filters/timeFilters.js'\n\nexport default {\n components: {\n OpenConfigDialog,\n SaveConfigDialog,\n TargetPacketItemChooser,\n TopBar,\n },\n mixins: [Config, TimeFilters],\n data() {\n return {\n title: 'COSMOS Data Extractor',\n configKey: 'data_extractor',\n openConfig: false,\n saveConfig: false,\n progress: 0,\n packetsReceived: 0,\n totalPacketsReceived: 0,\n itemsReceived: 0,\n totalItemsReceived: 0,\n processButtonText: 'Process',\n todaysDate: format(new Date(), 'yyyy-MM-dd'),\n startDate: format(new Date(), 'yyyy-MM-dd'),\n startTime: format(new Date(), 'HH:mm:ss'),\n endTime: format(new Date(), 'HH:mm:ss'),\n endDate: format(new Date(), 'yyyy-MM-dd'),\n startDateTime: null,\n endDateTime: null,\n startDateTimeFilename: '',\n rules: {\n required: (value) => !!value || 'Required',\n },\n cmdOrTlm: 'tlm',\n utcOrLocal: 'loc',\n items: [],\n search: '',\n headers: [\n { text: 'Target', value: 'targetName' },\n { text: 'Packet', value: 'packetName' },\n { text: 'Item', value: 'itemName' },\n { text: 'Mode', value: 'mode' },\n { text: 'ValueType', value: 'valueType' },\n { text: 'ReducedType', value: 'reducedType' },\n { text: 'Edit', value: 'edit' },\n { text: 'Delete', value: 'delete' },\n ],\n itemsPerPage: 20,\n columnMap: {},\n delimiter: ',',\n columnMode: 'normal',\n fileCount: 0,\n matlabHeader: false,\n skipIgnored: true,\n fillDown: false,\n uniqueOnly: false,\n keyMap: {},\n modes: ['DECOM', 'REDUCED_MINUTE', 'REDUCED_HOUR', 'REDUCED_DAY'],\n valueTypes: ['CONVERTED', 'RAW', 'FORMATTED', 'WITH_UNITS'],\n reducedTypes: ['SAMPLE', 'MIN', 'MAX', 'AVG', 'STDDEV'],\n editAll: false,\n allItemMode: 'DECOM',\n allItemValueType: 'CONVERTED',\n allItemReducedType: 'SAMPLE',\n // uniqueIgnoreOptions: ['NO', 'YES'],\n cable: new Cable(),\n subscription: null,\n menus: [\n {\n label: 'File',\n radioGroup: 'Comma Delimited', // Default radio selected\n items: [\n {\n label: 'Open Configuration',\n icon: 'mdi-folder-open',\n command: () => {\n this.openConfig = true\n },\n },\n {\n label: 'Save Configuration',\n icon: 'mdi-content-save',\n command: () => {\n this.saveConfig = true\n },\n },\n {\n label: 'Reset Configuration',\n icon: 'mdi-monitor-shimmer',\n command: () => {\n this.resetConfigBase()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Comma Delimited',\n radio: true,\n command: () => {\n this.delimiter = ','\n },\n },\n {\n label: 'Tab Delimited',\n radio: true,\n command: () => {\n this.delimiter = '\\t'\n },\n },\n ],\n },\n {\n label: 'Mode',\n radioGroup: 'Normal Columns', // Default radio selected\n items: [\n // TODO: Currently unimplemented\n // {\n // label: 'Skip Ignored on Add',\n // checkbox: true,\n // checked: true, // Skip Ignored is the default\n // command: () => {\n // this.skipIgnored = !this.skipIgnored\n // },\n // },\n // {\n // divider: true,\n // },\n {\n label: 'Fill Down',\n checkbox: true,\n command: () => {\n this.fillDown = !this.fillDown\n },\n },\n {\n label: 'Matlab Header',\n checkbox: true,\n command: () => {\n this.matlabHeader = !this.matlabHeader\n },\n },\n {\n label: 'Unique Only',\n checkbox: true,\n command: () => {\n this.uniqueOnly = !this.uniqueOnly\n },\n },\n {\n divider: true,\n },\n {\n label: 'Normal Columns',\n radio: true,\n command: () => {\n this.columnMode = 'normal'\n },\n },\n {\n label: 'Full Column Names',\n radio: true,\n command: () => {\n this.columnMode = 'full'\n },\n },\n ],\n },\n ],\n }\n },\n watch: {\n itemsPerPage: function (newValue, oldValue) {\n localStorage['data_extractor__items_per_page'] = newValue\n },\n },\n created: function () {\n let local = parseInt(localStorage['data_extractor__items_per_page'])\n if (local) {\n this.itemsPerPage = local\n } else {\n this.itemsPerPage = 20\n }\n },\n mounted: function () {\n const previousConfig = localStorage[`lastconfig__${this.configKey}`]\n // Called like /tools/dataextractor?config=config\n if (this.$route.query && this.$route.query.config) {\n this.openConfiguration(this.$route.query.config, true) // routed\n } else if (previousConfig) {\n this.openConfiguration(previousConfig)\n }\n },\n destroyed: function () {\n if (this.subscription) {\n this.subscription.unsubscribe()\n }\n this.cable.disconnect()\n },\n methods: {\n openConfiguration: function (name, routed = false) {\n this.openConfigBase(name, routed, (config) => {\n this.items = config\n })\n },\n saveConfiguration: function (name) {\n this.saveConfigBase(name, this.items)\n },\n addItem: function (item) {\n // Traditional for loop so we can return if we find a match\n for (const listItem of this.items) {\n if (\n listItem.itemName === item.itemName &&\n listItem.packetName === item.packetName &&\n listItem.targetName === item.targetName &&\n listItem.valueType === 'CONVERTED' &&\n listItem.reducedType === 'SAMPLE' &&\n listItem.mode === 'DECOM'\n ) {\n this.$notify.caution({\n body: 'This item has already been added!',\n })\n return\n }\n }\n item.cmdOrTlm = this.cmdOrTlm.toUpperCase()\n item.edit = false\n item.valueType = 'CONVERTED'\n item.reducedType = 'SAMPLE'\n item.mode = 'DECOM'\n // item.uniqueIgnoreAdd = 'NO'\n this.items.push(item)\n },\n deleteItem: function (item) {\n var index = this.items.indexOf(item)\n this.items.splice(index, 1)\n },\n deleteAll: function () {\n this.items = []\n },\n editAllItems: function () {\n this.editAll = false\n for (let item of this.items) {\n item.mode = this.allItemMode\n item.valueType = this.allItemValueType\n item.reducedType = this.allItemReducedType\n }\n },\n getItemLabel: function (item) {\n let label = [`${item.targetName} - ${item.packetName} - ${item.itemName}`]\n if (item.mode !== 'DECOM') {\n label.push(`{ ${item.mode} }`)\n }\n if (item.valueType !== 'CONVERTED') {\n label.push(`( ${item.valueType} )`)\n }\n if (item.reducedType !== 'SAMPLE') {\n label.push(`[ ${item.reducedType} ]`)\n }\n return label.join(' ')\n },\n setTimestamps: function () {\n this.startDateTimeFilename = this.startDate + '_' + this.startTime\n // Replace the colons and dashes with underscores in the filename\n this.startDateTimeFilename = this.startDateTimeFilename.replace(\n /(:|-)\\s*/g,\n '_'\n )\n let startTemp\n let endTemp\n try {\n if (this.utcOrLocal === 'utc') {\n startTemp = new Date(this.startDate + ' ' + this.startTime + 'Z')\n endTemp = new Date(this.endDate + ' ' + this.endTime + 'Z')\n } else {\n startTemp = new Date(this.startDate + ' ' + this.startTime)\n endTemp = new Date(this.endDate + ' ' + this.endTime)\n }\n } catch (e) {\n return\n }\n this.startDateTime = startTemp.getTime() * 1_000_000\n this.endDateTime = endTemp.getTime() * 1_000_000\n },\n processItems: function () {\n // Check for a process in progress\n if (this.processButtonText === 'Cancel') {\n this.finished()\n return\n }\n // Check for an empty time period\n this.setTimestamps()\n if (!this.startDateTime || !this.endDateTime) {\n this.$notify.caution({\n body: 'Invalid date/time selected!',\n })\n return\n }\n if (this.startDateTime === this.endDateTime) {\n this.$notify.caution({\n body: 'Start date/time is equal to end date/time!',\n })\n return\n }\n if (this.endDateTime - this.startDateTime < 0) {\n this.$notify.caution({\n body: 'Start date/time is greater then end date/time!',\n })\n return\n }\n // Check for a future End Time\n if (new Date(this.endDateTime / 1_000_000) > Date.now()) {\n this.$notify.caution({\n title: 'Note',\n body: `End date/time is greater than current date/time. Data will\n continue to stream in real-time until\n ${new Date(\n this.endDateTime / 1_000_000\n ).toISOString()} is reached.`,\n })\n }\n\n this.progress = 0\n this.processButtonText = 'Cancel'\n this.cable\n .createSubscription('StreamingChannel', window.openc3Scope, {\n received: (data) => this.received(data),\n connected: () => this.onConnected(),\n disconnected: () => {\n this.$notify.caution({\n body: 'OpenC3 backend connection disconnected.',\n })\n },\n rejected: () => {\n this.$notify.caution({\n body: 'OpenC3 backend connection rejected.',\n })\n },\n })\n .then((subscription) => {\n this.subscription = subscription\n })\n },\n resetAllVars: function () {\n this.fileCount = 0\n this.totalPacketsReceived = 0\n this.totalItemsReceived = 0\n this.columnHeaders = []\n this.columnMap = {}\n this.keyMap = {}\n this.resetPerFileVars()\n },\n resetPerFileVars: function () {\n dataExtractorRawData = []\n this.packetsReceived = 0\n this.itemsReceived = 0\n },\n onConnected: function () {\n this.resetAllVars()\n var items = []\n this.items.forEach((item, index) => {\n let key = `${item.mode}__${item.cmdOrTlm}__${item.targetName}__${item.packetName}__${item.itemName}__${item.valueType}`\n if (item.reducedType !== 'SAMPLE') {\n key = key + '__' + item.reducedType\n }\n let indexString = String(index)\n this.keyMap[indexString] = key\n items.push([key, indexString])\n })\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(\n (refreshed) => {\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n this.subscription.perform('add', {\n scope: window.openc3Scope,\n token: localStorage.openc3Token,\n items: items,\n start_time: this.startDateTime,\n end_time: this.endDateTime,\n })\n }\n )\n },\n received: function (data) {\n this.cable.recordPing()\n if (data.error) {\n this.$notify.serious({\n body: data.error,\n })\n return\n }\n this.packetsReceived += data.length\n this.totalPacketsReceived += data.length\n // Initially we just build up the list of data\n if (data.length > 0) {\n // Get all the items present in the data to pass to buildHeaders\n let keys = new Set()\n for (var packet of data) {\n let packetKeys = Object.keys(packet)\n packetKeys.forEach(keys.add, keys)\n this.itemsReceived += packetKeys.length - 2 // Don't count __type and __time\n this.totalItemsReceived += packetKeys.length - 2\n }\n keys.delete('__type')\n keys.delete('__time')\n this.buildHeaders([...keys])\n dataExtractorRawData.push(data)\n this.progress = Math.ceil(\n (100 * (data[0]['__time'] - this.startDateTime)) /\n (this.endDateTime - this.startDateTime)\n )\n\n let delimiterOverhead = this.columnHeaders.length * this.packetsReceived\n let estimatedSize = delimiterOverhead + this.itemsReceived * 8 // Assume average of 8 bytes per item\n if (estimatedSize > 100000000) {\n this.createFile()\n }\n } else {\n this.finished()\n }\n data = null\n },\n buildHeaders: function (itemKeys) {\n // Normal column mode has the target and packet listed for each item\n if (this.columnHeaders.length === 0 && this.columnMode === 'normal') {\n this.columnHeaders.push('TIME')\n this.columnHeaders.push('TARGET')\n this.columnHeaders.push('PACKET')\n }\n itemKeys.forEach((item) => {\n if (item.slice(0, 2) === '__') return\n if (this.columnMap[item]) return\n this.columnMap[item] = this.columnHeaders.length // Uses short name\n item = this.keyMap[item] // Decode to full name\n const [\n mode,\n cmdTlm,\n targetName,\n packetName,\n itemName,\n valueType,\n reducedType,\n ] = item.split('__')\n let name = itemName\n if (this.columnMode === 'full') {\n name = targetName + ' ' + packetName + ' ' + itemName\n }\n if (mode && mode !== 'DECOM') {\n name = name + ' {' + mode + '}'\n }\n if (valueType && valueType !== 'CONVERTED') {\n name = name + ' (' + valueType + ')'\n }\n if (reducedType) {\n name = name + ' [' + reducedType + ']'\n }\n this.columnHeaders.push(name)\n })\n },\n createFile: async function () {\n let rawData = dataExtractorRawData.flat()\n let columnHeaders = this.columnHeaders\n let columnMap = this.columnMap\n let outputFile = []\n this.resetPerFileVars()\n\n let headers = ''\n if (this.matlabHeader) {\n headers += '% '\n }\n headers += columnHeaders.join(this.delimiter)\n outputFile.push(headers)\n\n // Sort everything by time so we can output in order\n await this.yieldToMain()\n rawData.sort((a, b) => a.__time - b.__time)\n await this.yieldToMain()\n\n var currentValues = []\n var row = []\n var previousRow = null\n var count = 0\n for (var packet of rawData) {\n // Flag tracks if anything has changed for uniqueOnly mode\n var changed = false\n\n // Start a new row with either the previous row data (fillDown) or a blank row\n if (this.fillDown && previousRow) {\n row = [...previousRow] // Copy the previous\n } else {\n row = []\n }\n\n // regularKey is any non-metadata key to get the targetName and packetName from\n let regularKey = ''\n\n // Get all the values from this packet\n Object.keys(packet).forEach((key) => {\n if (key.slice(0, 2) === '__') return // Skip metadata\n\n // Update regularKey for use when we build the beginning of the row\n regularKey = key\n\n let columnIndex = columnMap[key]\n // Get the value and put it into the correct column\n if (typeof packet[key] === 'object') {\n if (Array.isArray(packet[key])) {\n row[columnIndex] = '\"[' + packet[key] + ']\"'\n } else {\n let rawVal = packet[key]['raw']\n if (Array.isArray(rawVal)) {\n row[columnIndex] = 'BINARY'\n } else {\n row[columnIndex] = \"'\" + rawVal + \"'\"\n }\n }\n } else {\n row[columnIndex] = packet[key]\n }\n if (\n this.uniqueOnly &&\n currentValues[columnIndex] !== row[columnIndex]\n ) {\n changed = true\n }\n currentValues[columnIndex] = row[columnIndex]\n })\n\n // Copy row before pushing on target / packet names\n if (this.fillDown) {\n previousRow = [...row]\n }\n\n if (!this.uniqueOnly || changed) {\n // Normal column mode means each row has time / target name / packet name\n if (this.columnMode === 'normal') {\n regularKey = this.keyMap[regularKey] // Decode to full name\n const [\n mode,\n cmdTlm,\n targetName,\n packetName,\n itemName,\n valueType,\n reducedType,\n ] = regularKey.split('__')\n row[0] = new Date(packet['__time'] / 1_000_000).toISOString()\n row[1] = targetName\n row[2] = packetName\n }\n outputFile.push(row.join(this.delimiter))\n }\n count += 1\n if (count % 1000 == 0) {\n await this.yieldToMain()\n }\n }\n\n let downloadFileExtension = '.csv'\n let type = 'text/csv'\n if (this.delimiter === '\\t') {\n downloadFileExtension = '.txt'\n type = 'text/tab-separated-values'\n }\n await this.yieldToMain()\n const blob = new Blob([outputFile.join('\\n')], {\n type: type,\n })\n await this.yieldToMain()\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 this.startDateTimeFilename +\n '.' +\n this.fileCount +\n downloadFileExtension\n )\n link.click()\n\n this.fileCount += 1\n },\n yieldToMain: function () {\n return new Promise((resolve) => {\n setTimeout(resolve, 0)\n })\n },\n finished: async function () {\n this.progress = 95 // Indicate we're almost done\n this.subscription.unsubscribe()\n\n if (dataExtractorRawData.length !== 0) {\n await this.createFile()\n } else if (this.fileCount === 0) {\n let start = new Date(this.startDateTime / 1_000_000).toISOString()\n let end = new Date(this.endDateTime / 1_000_000).toISOString()\n this.$notify.caution({\n body: `No data found for the items in the requested time range of ${start} to ${end}`,\n })\n }\n\n this.progress = 100\n this.processButtonText = 'Process'\n },\n },\n}\n<\/script>\n\n<style lang=\"scss\" scoped>\n// Disable transition animations to allow bar to grow faster\n.v-progress-linear__determinate {\n transition: none !important;\n}\n</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1ec7354633f7f2dcfc0530645470b3f33dcb2f8d"},o=t[l]||(t[l]={});o[e]&&o[e].hash===n||(o[e]=i);var a=o[e];return ee=function(){return a},a}ee();var ne=(ee().s[0]++,[]),te={components:{OpenConfigDialog:E,SaveConfigDialog:V,TargetPacketItemChooser:K,TopBar:X},mixins:[k,Q],data:function(){var e=this;return ee().f[0]++,ee().s[1]++,{title:"COSMOS Data Extractor",configKey:"data_extractor",openConfig:!1,saveConfig:!1,progress:0,packetsReceived:0,totalPacketsReceived:0,itemsReceived:0,totalItemsReceived:0,processButtonText:"Process",todaysDate:(0,B.Z)(new Date,"yyyy-MM-dd"),startDate:(0,B.Z)(new Date,"yyyy-MM-dd"),startTime:(0,B.Z)(new Date,"HH:mm:ss"),endTime:(0,B.Z)(new Date,"HH:mm:ss"),endDate:(0,B.Z)(new Date,"yyyy-MM-dd"),startDateTime:null,endDateTime:null,startDateTimeFilename:"",rules:{required:function(e){return ee().f[1]++,ee().s[2]++,ee().b[0][0]++,!!e||(ee().b[0][1]++,"Required")}},cmdOrTlm:"tlm",utcOrLocal:"loc",items:[],search:"",headers:[{text:"Target",value:"targetName"},{text:"Packet",value:"packetName"},{text:"Item",value:"itemName"},{text:"Mode",value:"mode"},{text:"ValueType",value:"valueType"},{text:"ReducedType",value:"reducedType"},{text:"Edit",value:"edit"},{text:"Delete",value:"delete"}],itemsPerPage:20,columnMap:{},delimiter:",",columnMode:"normal",fileCount:0,matlabHeader:!1,skipIgnored:!0,fillDown:!1,uniqueOnly:!1,keyMap:{},modes:["DECOM","REDUCED_MINUTE","REDUCED_HOUR","REDUCED_DAY"],valueTypes:["CONVERTED","RAW","FORMATTED","WITH_UNITS"],reducedTypes:["SAMPLE","MIN","MAX","AVG","STDDEV"],editAll:!1,allItemMode:"DECOM",allItemValueType:"CONVERTED",allItemReducedType:"SAMPLE",cable:new q,subscription:null,menus:[{label:"File",radioGroup:"Comma Delimited",items:[{label:"Open Configuration",icon:"mdi-folder-open",command:function(){ee().f[2]++,ee().s[3]++,e.openConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:function(){ee().f[3]++,ee().s[4]++,e.saveConfig=!0}},{label:"Reset Configuration",icon:"mdi-monitor-shimmer",command:function(){ee().f[4]++,ee().s[5]++,e.resetConfigBase()}},{divider:!0},{label:"Comma Delimited",radio:!0,command:function(){ee().f[5]++,ee().s[6]++,e.delimiter=","}},{label:"Tab Delimited",radio:!0,command:function(){ee().f[6]++,ee().s[7]++,e.delimiter="\t"}}]},{label:"Mode",radioGroup:"Normal Columns",items:[{label:"Fill Down",checkbox:!0,command:function(){ee().f[7]++,ee().s[8]++,e.fillDown=!e.fillDown}},{label:"Matlab Header",checkbox:!0,command:function(){ee().f[8]++,ee().s[9]++,e.matlabHeader=!e.matlabHeader}},{label:"Unique Only",checkbox:!0,command:function(){ee().f[9]++,ee().s[10]++,e.uniqueOnly=!e.uniqueOnly}},{divider:!0},{label:"Normal Columns",radio:!0,command:function(){ee().f[10]++,ee().s[11]++,e.columnMode="normal"}},{label:"Full Column Names",radio:!0,command:function(){ee().f[11]++,ee().s[12]++,e.columnMode="full"}}]}]}},watch:{itemsPerPage:function(e,n){ee().f[12]++,ee().s[13]++,localStorage["data_extractor__items_per_page"]=e}},created:function(){ee().f[13]++;var e=(ee().s[14]++,parseInt(localStorage["data_extractor__items_per_page"]));ee().s[15]++,e?(ee().b[1][0]++,ee().s[16]++,this.itemsPerPage=e):(ee().b[1][1]++,ee().s[17]++,this.itemsPerPage=20)},mounted:function(){ee().f[14]++;var e=(ee().s[18]++,localStorage["lastconfig__".concat(this.configKey)]);ee().s[19]++,ee().b[3][0]++,this.$route.query&&(ee().b[3][1]++,this.$route.query.config)?(ee().b[2][0]++,ee().s[20]++,this.openConfiguration(this.$route.query.config,!0)):(ee().b[2][1]++,ee().s[21]++,e?(ee().b[4][0]++,ee().s[22]++,this.openConfiguration(e)):ee().b[4][1]++)},destroyed:function(){ee().f[15]++,ee().s[23]++,this.subscription?(ee().b[5][0]++,ee().s[24]++,this.subscription.unsubscribe()):ee().b[5][1]++,ee().s[25]++,this.cable.disconnect()},methods:{openConfiguration:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(ee().b[6][0]++,!1);ee().f[16]++,ee().s[26]++,this.openConfigBase(e,t,(function(e){ee().f[17]++,ee().s[27]++,n.items=e}))},saveConfiguration:function(e){ee().f[18]++,ee().s[28]++,this.saveConfigBase(e,this.items)},addItem:function(e){ee().f[19]++,ee().s[29]++;var n,t=(0,m.Z)(this.items);try{for(t.s();!(n=t.n()).done;){var l=n.value;if(ee().s[30]++,ee().b[8][0]++,l.itemName===e.itemName&&(ee().b[8][1]++,l.packetName===e.packetName)&&(ee().b[8][2]++,l.targetName===e.targetName)&&(ee().b[8][3]++,"CONVERTED"===l.valueType)&&(ee().b[8][4]++,"SAMPLE"===l.reducedType)&&(ee().b[8][5]++,"DECOM"===l.mode))return ee().b[7][0]++,ee().s[31]++,this.$notify.caution({body:"This item has already been added!"}),void ee().s[32]++;ee().b[7][1]++}}catch(i){t.e(i)}finally{t.f()}ee().s[33]++,e.cmdOrTlm=this.cmdOrTlm.toUpperCase(),ee().s[34]++,e.edit=!1,ee().s[35]++,e.valueType="CONVERTED",ee().s[36]++,e.reducedType="SAMPLE",ee().s[37]++,e.mode="DECOM",ee().s[38]++,this.items.push(e)},deleteItem:function(e){ee().f[20]++;var n=(ee().s[39]++,this.items.indexOf(e));ee().s[40]++,this.items.splice(n,1)},deleteAll:function(){ee().f[21]++,ee().s[41]++,this.items=[]},editAllItems:function(){ee().f[22]++,ee().s[42]++,this.editAll=!1,ee().s[43]++;var e,n=(0,m.Z)(this.items);try{for(n.s();!(e=n.n()).done;){var t=e.value;ee().s[44]++,t.mode=this.allItemMode,ee().s[45]++,t.valueType=this.allItemValueType,ee().s[46]++,t.reducedType=this.allItemReducedType}}catch(l){n.e(l)}finally{n.f()}},getItemLabel:function(e){ee().f[23]++;var n=(ee().s[47]++,["".concat(e.targetName," - ").concat(e.packetName," - ").concat(e.itemName)]);return ee().s[48]++,"DECOM"!==e.mode?(ee().b[9][0]++,ee().s[49]++,n.push("{ ".concat(e.mode," }"))):ee().b[9][1]++,ee().s[50]++,"CONVERTED"!==e.valueType?(ee().b[10][0]++,ee().s[51]++,n.push("( ".concat(e.valueType," )"))):ee().b[10][1]++,ee().s[52]++,"SAMPLE"!==e.reducedType?(ee().b[11][0]++,ee().s[53]++,n.push("[ ".concat(e.reducedType," ]"))):ee().b[11][1]++,ee().s[54]++,n.join(" ")},setTimestamps:function(){var e,n;ee().f[24]++,ee().s[55]++,this.startDateTimeFilename=this.startDate+"_"+this.startTime,ee().s[56]++,this.startDateTimeFilename=this.startDateTimeFilename.replace(/(:|-)\s*/g,"_"),ee().s[57]++;try{ee().s[58]++,"utc"===this.utcOrLocal?(ee().b[12][0]++,ee().s[59]++,e=new Date(this.startDate+" "+this.startTime+"Z"),ee().s[60]++,n=new Date(this.endDate+" "+this.endTime+"Z")):(ee().b[12][1]++,ee().s[61]++,e=new Date(this.startDate+" "+this.startTime),ee().s[62]++,n=new Date(this.endDate+" "+this.endTime))}catch(t){return void ee().s[63]++}ee().s[64]++,this.startDateTime=1e6*e.getTime(),ee().s[65]++,this.endDateTime=1e6*n.getTime()},processItems:function(){var e=this;return ee().f[25]++,ee().s[66]++,"Cancel"===this.processButtonText?(ee().b[13][0]++,ee().s[67]++,this.finished(),void ee().s[68]++):(ee().b[13][1]++,ee().s[69]++,this.setTimestamps(),ee().s[70]++,ee().b[15][0]++,this.startDateTime&&(ee().b[15][1]++,this.endDateTime)?(ee().b[14][1]++,ee().s[73]++,this.startDateTime===this.endDateTime?(ee().b[16][0]++,ee().s[74]++,this.$notify.caution({body:"Start date/time is equal to end date/time!"}),void ee().s[75]++):(ee().b[16][1]++,ee().s[76]++,this.endDateTime-this.startDateTime<0?(ee().b[17][0]++,ee().s[77]++,this.$notify.caution({body:"Start date/time is greater then end date/time!"}),void ee().s[78]++):(ee().b[17][1]++,ee().s[79]++,new Date(this.endDateTime/1e6)>Date.now()?(ee().b[18][0]++,ee().s[80]++,this.$notify.caution({title:"Note",body:"End date/time is greater than current date/time. Data will\n continue to stream in real-time until\n ".concat(new Date(this.endDateTime/1e6).toISOString()," is reached.")})):ee().b[18][1]++,ee().s[81]++,this.progress=0,ee().s[82]++,this.processButtonText="Cancel",ee().s[83]++,void this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:function(n){return ee().f[26]++,ee().s[84]++,e.received(n)},connected:function(){return ee().f[27]++,ee().s[85]++,e.onConnected()},disconnected:function(){ee().f[28]++,ee().s[86]++,e.$notify.caution({body:"OpenC3 backend connection disconnected."})},rejected:function(){ee().f[29]++,ee().s[87]++,e.$notify.caution({body:"OpenC3 backend connection rejected."})}}).then((function(n){ee().f[30]++,ee().s[88]++,e.subscription=n}))))):(ee().b[14][0]++,ee().s[71]++,this.$notify.caution({body:"Invalid date/time selected!"}),void ee().s[72]++))},resetAllVars:function(){ee().f[31]++,ee().s[89]++,this.fileCount=0,ee().s[90]++,this.totalPacketsReceived=0,ee().s[91]++,this.totalItemsReceived=0,ee().s[92]++,this.columnHeaders=[],ee().s[93]++,this.columnMap={},ee().s[94]++,this.keyMap={},ee().s[95]++,this.resetPerFileVars()},resetPerFileVars:function(){ee().f[32]++,ee().s[96]++,ne=[],ee().s[97]++,this.packetsReceived=0,ee().s[98]++,this.itemsReceived=0},onConnected:function(){var e=this;ee().f[33]++,ee().s[99]++,this.resetAllVars();var n=(ee().s[100]++,[]);ee().s[101]++,this.items.forEach((function(t,l){ee().f[34]++;var i=(ee().s[102]++,"".concat(t.mode,"__").concat(t.cmdOrTlm,"__").concat(t.targetName,"__").concat(t.packetName,"__").concat(t.itemName,"__").concat(t.valueType));ee().s[103]++,"SAMPLE"!==t.reducedType?(ee().b[19][0]++,ee().s[104]++,i=i+"__"+t.reducedType):ee().b[19][1]++;var o=(ee().s[105]++,String(l));ee().s[106]++,e.keyMap[o]=i,ee().s[107]++,n.push([i,o])})),ee().s[108]++,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(t){ee().f[35]++,ee().s[109]++,t?(ee().b[20][0]++,ee().s[110]++,OpenC3Auth.setTokens()):ee().b[20][1]++,ee().s[111]++,e.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:n,start_time:e.startDateTime,end_time:e.endDateTime})}))},received:function(e){if(ee().f[36]++,ee().s[112]++,this.cable.recordPing(),ee().s[113]++,e.error)return ee().b[21][0]++,ee().s[114]++,this.$notify.serious({body:e.error}),void ee().s[115]++;if(ee().b[21][1]++,ee().s[116]++,this.packetsReceived+=e.length,ee().s[117]++,this.totalPacketsReceived+=e.length,ee().s[118]++,e.length>0){ee().b[22][0]++;var n=(ee().s[119]++,new Set);ee().s[120]++;var t,l=(0,m.Z)(e);try{for(l.s();!(t=l.n()).done;){var i=t.value,o=(ee().s[121]++,Object.keys(i));ee().s[122]++,o.forEach(n.add,n),ee().s[123]++,this.itemsReceived+=o.length-2,ee().s[124]++,this.totalItemsReceived+=o.length-2}}catch(s){l.e(s)}finally{l.f()}ee().s[125]++,n.delete("__type"),ee().s[126]++,n.delete("__time"),ee().s[127]++,this.buildHeaders((0,u.Z)(n)),ee().s[128]++,ne.push(e),ee().s[129]++,this.progress=Math.ceil(100*(e[0]["__time"]-this.startDateTime)/(this.endDateTime-this.startDateTime));var a=(ee().s[130]++,this.columnHeaders.length*this.packetsReceived),c=(ee().s[131]++,a+8*this.itemsReceived);ee().s[132]++,c>1e8?(ee().b[23][0]++,ee().s[133]++,this.createFile()):ee().b[23][1]++}else ee().b[22][1]++,ee().s[134]++,this.finished();ee().s[135]++,e=null},buildHeaders:function(e){var n=this;ee().f[37]++,ee().s[136]++,ee().b[25][0]++,0===this.columnHeaders.length&&(ee().b[25][1]++,"normal"===this.columnMode)?(ee().b[24][0]++,ee().s[137]++,this.columnHeaders.push("TIME"),ee().s[138]++,this.columnHeaders.push("TARGET"),ee().s[139]++,this.columnHeaders.push("PACKET")):ee().b[24][1]++,ee().s[140]++,e.forEach((function(e){if(ee().f[38]++,ee().s[141]++,"__"===e.slice(0,2))return ee().b[26][0]++,void ee().s[142]++;if(ee().b[26][1]++,ee().s[143]++,n.columnMap[e])return ee().b[27][0]++,void ee().s[144]++;ee().b[27][1]++,ee().s[145]++,n.columnMap[e]=n.columnHeaders.length,ee().s[146]++,e=n.keyMap[e];var t=(ee().s[147]++,e.split("__")),l=(0,r.Z)(t,7),i=l[0],o=(l[1],l[2]),a=l[3],c=l[4],s=l[5],u=l[6],m=(ee().s[148]++,c);ee().s[149]++,"full"===n.columnMode?(ee().b[28][0]++,ee().s[150]++,m=o+" "+a+" "+c):ee().b[28][1]++,ee().s[151]++,ee().b[30][0]++,i&&(ee().b[30][1]++,"DECOM"!==i)?(ee().b[29][0]++,ee().s[152]++,m=m+" {"+i+"}"):ee().b[29][1]++,ee().s[153]++,ee().b[32][0]++,s&&(ee().b[32][1]++,"CONVERTED"!==s)?(ee().b[31][0]++,ee().s[154]++,m=m+" ("+s+")"):ee().b[31][1]++,ee().s[155]++,u?(ee().b[33][0]++,ee().s[156]++,m=m+" ["+u+"]"):ee().b[33][1]++,ee().s[157]++,n.columnHeaders.push(m)}))},createFile:function(){var e=(0,s.Z)((0,a.Z)().mark((function e(){var n,t,l,i,o,s,d,A,f,p,h,v,C,y,g,_,b,k,T=this;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return ee().f[39]++,ee().s[158]++,n=ne.flat(),ee().s[159]++,t=this.columnHeaders,ee().s[160]++,l=this.columnMap,ee().s[161]++,i=[],ee().s[162]++,this.resetPerFileVars(),ee().s[163]++,o="",ee().s[164]++,this.matlabHeader?(ee().b[34][0]++,ee().s[165]++,o+="% "):ee().b[34][1]++,ee().s[166]++,o+=t.join(this.delimiter),ee().s[167]++,i.push(o),ee().s[168]++,e.next=17,this.yieldToMain();case 17:return ee().s[169]++,n.sort((function(e,n){return ee().f[40]++,ee().s[170]++,e.__time-n.__time})),ee().s[171]++,e.next=22,this.yieldToMain();case 22:ee().s[172]++,s=[],ee().s[173]++,d=[],ee().s[174]++,A=null,ee().s[175]++,f=0,ee().s[176]++,p=(0,m.Z)(n),e.prev=28,v=(0,a.Z)().mark((function e(){var n,t,o,m,p;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(C=h.value,ee().s[177]++,y=!1,ee().s[178]++,ee().b[36][0]++,T.fillDown&&(ee().b[36][1]++,A)?(ee().b[35][0]++,ee().s[179]++,d=(0,u.Z)(A)):(ee().b[35][1]++,ee().s[180]++,d=[]),ee().s[181]++,n="",ee().s[182]++,Object.keys(C).forEach((function(e){if(ee().f[41]++,ee().s[183]++,"__"===e.slice(0,2))return ee().b[37][0]++,void ee().s[184]++;ee().b[37][1]++,ee().s[185]++,n=e;var t=(ee().s[186]++,l[e]);if(ee().s[187]++,"object"===(0,c.Z)(C[e]))if(ee().b[38][0]++,ee().s[188]++,Array.isArray(C[e]))ee().b[39][0]++,ee().s[189]++,d[t]='"['+C[e]+']"';else{ee().b[39][1]++;var i=(ee().s[190]++,C[e]["raw"]);ee().s[191]++,Array.isArray(i)?(ee().b[40][0]++,ee().s[192]++,d[t]="BINARY"):(ee().b[40][1]++,ee().s[193]++,d[t]="'"+i+"'")}else ee().b[38][1]++,ee().s[194]++,d[t]=C[e];ee().s[195]++,ee().b[42][0]++,T.uniqueOnly&&(ee().b[42][1]++,s[t]!==d[t])?(ee().b[41][0]++,ee().s[196]++,y=!0):ee().b[41][1]++,ee().s[197]++,s[t]=d[t]})),ee().s[198]++,T.fillDown?(ee().b[43][0]++,ee().s[199]++,A=(0,u.Z)(d)):ee().b[43][1]++,ee().s[200]++,ee().b[45][0]++,!T.uniqueOnly||(ee().b[45][1]++,y)?(ee().b[44][0]++,ee().s[201]++,"normal"===T.columnMode?(ee().b[46][0]++,ee().s[202]++,n=T.keyMap[n],ee().s[203]++,t=n.split("__"),o=(0,r.Z)(t,7),o[0],o[1],m=o[2],p=o[3],o[4],o[5],o[6],ee().s[204]++,d[0]=new Date(C["__time"]/1e6).toISOString(),ee().s[205]++,d[1]=m,ee().s[206]++,d[2]=p):ee().b[46][1]++,ee().s[207]++,i.push(d.join(T.delimiter))):ee().b[44][1]++,ee().s[208]++,f+=1,ee().s[209]++,f%1e3!=0){e.next=21;break}return ee().b[47][0]++,ee().s[210]++,e.next=19,T.yieldToMain();case 19:e.next=22;break;case 21:ee().b[47][1]++;case 22:case"end":return e.stop()}}),e)})),p.s();case 31:if((h=p.n()).done){e.next=35;break}return e.delegateYield(v(),"t0",33);case 33:e.next=31;break;case 35:e.next=40;break;case 37:e.prev=37,e.t1=e["catch"](28),p.e(e.t1);case 40:return e.prev=40,p.f(),e.finish(40);case 43:return ee().s[211]++,g=".csv",ee().s[212]++,_="text/csv",ee().s[213]++,"\t"===this.delimiter?(ee().b[48][0]++,ee().s[214]++,g=".txt",ee().s[215]++,_="text/tab-separated-values"):ee().b[48][1]++,ee().s[216]++,e.next=50,this.yieldToMain();case 50:return ee().s[217]++,b=new Blob([i.join("\n")],{type:_}),ee().s[218]++,e.next=54,this.yieldToMain();case 54:ee().s[219]++,k=document.createElement("a"),ee().s[220]++,k.href=URL.createObjectURL(b),ee().s[221]++,k.setAttribute("download",this.startDateTimeFilename+"."+this.fileCount+g),ee().s[222]++,k.click(),ee().s[223]++,this.fileCount+=1;case 63:case"end":return e.stop()}}),e,this,[[28,37,40,43]])})));function n(){return e.apply(this,arguments)}return n}(),yieldToMain:function(){return ee().f[42]++,ee().s[224]++,new Promise((function(e){ee().f[43]++,ee().s[225]++,setTimeout(e,0)}))},finished:function(){var e=(0,s.Z)((0,a.Z)().mark((function e(){var n,t;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(ee().f[44]++,ee().s[226]++,this.progress=95,ee().s[227]++,this.subscription.unsubscribe(),ee().s[228]++,0===ne.length){e.next=13;break}return ee().b[49][0]++,ee().s[229]++,e.next=11,this.createFile();case 11:e.next=16;break;case 13:ee().b[49][1]++,ee().s[230]++,0===this.fileCount?(ee().b[50][0]++,ee().s[231]++,n=new Date(this.startDateTime/1e6).toISOString(),ee().s[232]++,t=new Date(this.endDateTime/1e6).toISOString(),ee().s[233]++,this.$notify.caution({body:"No data found for the items in the requested time range of ".concat(n," to ").concat(t)})):ee().b[50][1]++;case 16:ee().s[234]++,this.progress=100,ee().s[235]++,this.processButtonText="Process";case 20:case"end":return e.stop()}}),e,this)})));function n(){return e.apply(this,arguments)}return n}()}},le=te,ie=(t(1767),(0,D.Z)(le,i,o,!1,null,"3434b0c0",null)),oe=ie.exports},4882:function(e,n,t){"use strict";t.r(n);var l=t(9601),i=t.n(l),o=t(2609),a=t.n(o),c=a()(i());c.push([e.id,".row+.row{margin-top:0}",""]),n["default"]=c},6294:function(e,n,t){"use strict";t.r(n);var l=t(9601),i=t.n(l),o=t(2609),a=t.n(o),c=a()(i());c.push([e.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}",""]),n["default"]=c},4075:function(e,n,t){"use strict";t.r(n);var l=t(9601),i=t.n(l),o=t(2609),a=t.n(o),c=a()(i());c.push([e.id,".v-progress-linear__determinate[data-v-3434b0c0]{transition:none!important}",""]),n["default"]=c},9841:function(e,n,t){var l=t(4882);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(3514).Z;i("4a9152b5",l,!0,{sourceMap:!1,shadowMode:!1})},4888:function(e,n,t){var l=t(6294);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(3514).Z;i("706a3f6d",l,!0,{sourceMap:!1,shadowMode:!1})},1767:function(e,n,t){var l=t(4075);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(3514).Z;i("9bbb9ce0",l,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
-
//# sourceMappingURL=207.js.map
|