openc3-cosmos-tool-admin 6.0.0 → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. checksums.yaml +4 -4
  2. data/tools/admin/ArrayWidget-BTxChSds-e9bc6948cfc94ea6c8ea.js +2 -0
  3. data/tools/admin/BarColumn-Cdu3OoMa-6b9d231248e3c807a1ca.js +1 -0
  4. data/tools/admin/BlockWidget-PmjzrkXF-c80c9d1c463d83528a3d.js +2 -0
  5. data/tools/admin/ButtonWidget-nwDlOBJT-d16fb6a24cef7c5b624b.js +2 -0
  6. data/tools/admin/CanvasWidget-BL8930eT-7c425befd858deae2375.js +1 -0
  7. data/tools/admin/CanvasdotWidget-VCf1fL-G-175f4d8d2fe3d73133b7.js +1 -0
  8. data/tools/admin/CanvasimageWidget-BIw7Wbf2-675b82c793c05652c4e4.js +1 -0
  9. data/tools/admin/CanvasimagevalueWidget-CE3Dj5bH-4c7da53208143de275fb.js +1 -0
  10. data/tools/admin/CanvaslabelWidget-DWmb356h-27386996b1e22521d68a.js +1 -0
  11. data/tools/admin/CanvaslabelvalueWidget-CI3yYwFs-106dd8676e7059142aeb.js +1 -0
  12. data/tools/admin/CanvaslineWidget-COeapH3P-454440a3cbef96b78149.js +1 -0
  13. data/tools/admin/CanvaslinevalueWidget-CI-Bbzfi-c196fded05e85ca64b76.js +1 -0
  14. data/tools/admin/CheckbuttonWidget-BQhggcZ2-fe79147a6042d06deb71.js +1 -0
  15. data/tools/admin/ComboboxWidget-BzsbOv54-19196e0faa887589be04.js +1 -0
  16. data/tools/admin/DateWidget-B5R_9rA8-6d87b2b38b75a9f194f0.js +1 -0
  17. data/tools/admin/{DetailsDialog-EWjtBjle-7990262e67902ac0252f.js → DetailsDialog-DLRMqetn-55763452729cfe2e3307.js} +1 -1
  18. data/tools/admin/DynamicWidget-m9EliUR2-e3f3eb1367b6fc62b4f4.js +1 -0
  19. data/tools/admin/FormatvalueWidget-DZkRJce8-29bc510b6fee4be432b3.js +1 -0
  20. data/tools/admin/GraphWidget-amwxyH1r-ae1fe3465676228a4925.js +1 -0
  21. data/tools/admin/HorizontalWidget-CirtfuL8-981280ce431e3a0ea8a4.js +1 -0
  22. data/tools/admin/HorizontalboxWidget-CyTDt2nl-1db32d80217737537afb.js +1 -0
  23. data/tools/admin/HorizontallineWidget-BdlNB951-08181cb1762ec42b7083.js +1 -0
  24. data/tools/admin/IframeWidget-DnJmCrCA-669adff673891b6a1695.js +1 -0
  25. data/tools/admin/{ImageLoader-CDLQopxJ-68194bc736f7cabded39.js → ImageLoader-CpcR6tPi-5519b9d946e6eeba9d6a.js} +1 -1
  26. data/tools/admin/ImageviewerWidget-DIkmb_C9-8346469a4ad561e7a78b.js +1 -0
  27. data/tools/admin/InterfacesTab-jtIK4SaM-d37991d03f54f16d4184.js +1 -0
  28. data/tools/admin/LabelWidget-BDsypYho-e74513b75a138300eda4.js +1 -0
  29. data/tools/admin/LabelledWidget-DjturGl5-f58bc223d97e08fd542a.js +1 -0
  30. data/tools/admin/LabelprogressbarWidget-RADJGLj3-f059a9ff279f759d38fc.js +1 -0
  31. data/tools/admin/LabelsparklineWidget-BlJoICxu-13bf91cc93e846f7699e.js +1 -0
  32. data/tools/admin/LabelvalueWidget-DVWJqnlY-b0232700037d1bb6b7b6.js +1 -0
  33. data/tools/admin/LabelvaluedescWidget-CsUP7J4U-c46a707153bfa07e40b3.js +1 -0
  34. data/tools/admin/LabelvaluelimitsbarWidget-Blj1QXV8-b2889d7dd9e0adb31527.js +1 -0
  35. data/tools/admin/LabelvaluelimitscolumnWidget-CvCo-uCe-1725d487ee051e88eeee.js +1 -0
  36. data/tools/admin/LabelvaluerangebarWidget-DpcXhlfF-20dc9151170423e55774.js +1 -0
  37. data/tools/admin/{Layout-klOVw-YN-57cdd4032a866948ae91.js → Layout-C1HoM4Kl-417cd02a11d96e992d80.js} +1 -1
  38. data/tools/admin/LedWidget-B_K2e5tq-e1a5d6fa7037166a47ef.js +1 -0
  39. data/tools/admin/LimitsbarWidget-DXbqsi4J-d4cab330a230750fd898.js +1 -0
  40. data/tools/admin/LimitscolorWidget-Ckmuw0YX-9186aec847ec6a5bfc9e.js +1 -0
  41. data/tools/admin/LimitscolumnWidget-BfY4su5U-1c6e4848809e88a5260e.js +1 -0
  42. data/tools/admin/LinegraphWidget-y-Qy9P0R-cd2f04586aef988a58a9.js +1 -0
  43. data/tools/admin/MatrixbycolumnsWidget-BTBColrs-fea73244eb707601aeea.js +1 -0
  44. data/tools/admin/MicroservicesTab-D8GGVvwc-c1bb51519a9905e693db.js +1 -0
  45. data/tools/admin/{OutputDialog-Cqz9_MPm-909bbcae633ec90197fa.js → OutputDialog-D7vLuueV-2204b36fc17e01c28df1.js} +1 -1
  46. data/tools/admin/PackagesTab-CkHqLuVL-a1723ff9378b042895e7.js +1 -0
  47. data/tools/admin/{PluginsTab-B0MIc4dP-8b7622c22378077aa0a6.js → PluginsTab-Dli9v-0R-a1399af85f2fd990e133.js} +2 -2
  48. data/tools/admin/ProgressbarWidget-DpA_-vy9-a9f80bf0377e829b78e4.js +1 -0
  49. data/tools/admin/RadiobuttonWidget-BO8zpgwW-84a3f731c673059c0393.js +1 -0
  50. data/tools/admin/RadiogroupWidget-Oy7V4S-V-b80e9e6044d42dbb6003.js +1 -0
  51. data/tools/admin/RangebarWidget-DHS7S3vI-f79443d06bda1ec7b512.js +1 -0
  52. data/tools/admin/RedisTab-B3fY9we7-760bc2333036ad71e6e2.js +1 -0
  53. data/tools/admin/RollupWidget-CTk9Kjwr-2b0cb75af9296f391f66.js +1 -0
  54. data/tools/admin/RoutersTab-DVCaPPmy-b9d80c9b1e7bdc67d92b.js +1 -0
  55. data/tools/admin/ScrollwindowWidget-DD0TOW6s-74997dd2355435e39c51.js +1 -0
  56. data/tools/admin/SecretsTab-BuC3n5C4-b50ed27afdc2414dc4e1.js +1 -0
  57. data/tools/admin/SettingsTab-CYb9hSNx-9497e6025bffab0bc5be.js +1 -0
  58. data/tools/admin/SignalWidget-CC33KMTW-b72d958b3093cc84c5a8.js +1 -0
  59. data/tools/admin/{SimpleTextDialog-BK3uXyK3-9cfb6b5adab2c61d0b30.js → SimpleTextDialog-3Tzc_snk-be80893bf7377e8a2b54.js} +1 -1
  60. data/tools/admin/SpacerWidget-BnJe_Hq6-8227c31e3ee431aabe0b.js +1 -0
  61. data/tools/admin/SparklineWidget-DMvMQCPm-8b9d64dc2d6f09e95fd3.js +1 -0
  62. data/tools/admin/TabbookWidget-B3w0JtWe-dc6cbcfea02b50002ecf.js +1 -0
  63. data/tools/admin/TargetsTab-CxiGJ2P2-85a21e098266facf4e02.js +1 -0
  64. data/tools/admin/TextboxWidget-D2f0-eol-c677022753c77473b718.js +1 -0
  65. data/tools/admin/TextfieldWidget-DXSdgqVP-ee0eeca9be6f669c081c.js +1 -0
  66. data/tools/admin/TimeWidget-DvrRaEMz-d4257dcc7dac23d0f759.js +1 -0
  67. data/tools/admin/TitleWidget-DqViFQl--5330d5a64637d7951419.js +1 -0
  68. data/tools/admin/{ToolsTab-CYjue5Jk-b74d99d2d2d48b4bb947.js → ToolsTab-B3gDjVxE-e0c39fb43d32b4a57698.js} +2 -2
  69. data/tools/admin/{VWidget-Dmqf_jKM-952e90273c0922ac7a4a.js → VWidget-02CG-3Av-a973337ad24b9f4eb395.js} +1 -1
  70. data/tools/admin/ValueWidget-KLYY8L8U-7e154a7868618ab3cca1.js +1 -0
  71. data/tools/admin/ValuelimitsbarWidget-SR8XNZFB-95640fde4e539f355d39.js +1 -0
  72. data/tools/admin/ValuelimitscolumnWidget-xYZSp6YZ-6f04a114c777e09665dd.js +1 -0
  73. data/tools/admin/ValuerangebarWidget-B6M02a9d-51d2f42c3985e1d08101.js +1 -0
  74. data/tools/admin/VerticalWidget-z6xUM-ql-ae963987b8cf0c0e3f98.js +1 -0
  75. data/tools/admin/VerticalboxWidget-3a9cVsW--2471ab4dfbbe133b4e9b.js +1 -0
  76. data/tools/admin/{Widget-orNSvnOh-a525c9c4a8704c6b360e.js → Widget-C4QVI4IH-80b859328e2c8ee53918.js} +1 -1
  77. data/tools/admin/{main-7b39afe9b1c97330416a.js → main-6d6b6148fd97f6dd73ae.js} +68 -68
  78. data/tools/admin/main.js +1 -1
  79. metadata +78 -78
  80. data/tools/admin/ArrayWidget-By62tXtU-ebd68b9b8b5b932d2445.js +0 -2
  81. data/tools/admin/BarColumn-Dm3D1Lhp-f155ed2f23338a0c8a15.js +0 -1
  82. data/tools/admin/BlockWidget-CrT45ode-543f86b8d3f1936515d7.js +0 -2
  83. data/tools/admin/ButtonWidget-CKyBBv6m-e6ea1d4c25739d5981c5.js +0 -2
  84. data/tools/admin/CanvasWidget-PqkppHC7-eeed57e2753786152aee.js +0 -1
  85. data/tools/admin/CanvasdotWidget-BUbJgM2d-7d9174696598f529b9dc.js +0 -1
  86. data/tools/admin/CanvasimageWidget-DPVBY7mi-3f2a8fb1b9ffdbc35d3e.js +0 -1
  87. data/tools/admin/CanvasimagevalueWidget-GX37zzNc-61fbee601180a5d4fe3b.js +0 -1
  88. data/tools/admin/CanvaslabelWidget-P2_Y6Edw-35653e66a7c8993fd0e3.js +0 -1
  89. data/tools/admin/CanvaslabelvalueWidget-Cuas1i9P-8496cddfaa402a64fe5e.js +0 -1
  90. data/tools/admin/CanvaslineWidget-BYOYgPya-2d8e19cc8da5fa24b06b.js +0 -1
  91. data/tools/admin/CanvaslinevalueWidget-3cVJMFo7-d23fc18e1f918da6ee97.js +0 -1
  92. data/tools/admin/CheckbuttonWidget-B3wgSMuB-a269c7fd7cc566239161.js +0 -1
  93. data/tools/admin/ComboboxWidget-Dzr4Scvf-260b017e67109e2fc026.js +0 -1
  94. data/tools/admin/DateWidget-BWh76Ibb-f1712ed35422a2a6596e.js +0 -1
  95. data/tools/admin/DynamicWidget-m9EliUR2-a665966c9316579084a8.js +0 -1
  96. data/tools/admin/FormatvalueWidget-Rk0_eeIm-5c2a5572ba50be1f6890.js +0 -1
  97. data/tools/admin/GraphWidget-LqekkNDr-6af23dd3125a8d7b39a9.js +0 -1
  98. data/tools/admin/HorizontalWidget-BcfJ24Zn-8dcef7c5de51dd325185.js +0 -1
  99. data/tools/admin/HorizontalboxWidget-CQy1Hv9E-6bb5d00229edfea21641.js +0 -1
  100. data/tools/admin/HorizontallineWidget-BdlNB951-770ebba29ef8ee1bd21c.js +0 -1
  101. data/tools/admin/IframeWidget-BBaDrRLo-44a78fa82ad12a1ee6c4.js +0 -1
  102. data/tools/admin/ImageviewerWidget-BgO3Pq6I-d1b099512b26e8adbd97.js +0 -1
  103. data/tools/admin/InterfacesTab-BzXbRnQw-80c9e1a00b588664f0d9.js +0 -1
  104. data/tools/admin/LabelWidget-B_C6lKOE-fa3eff00f1bae0754cc7.js +0 -1
  105. data/tools/admin/LabelledWidget-B_UGivhr-e113f6ce28bf94f51fee.js +0 -1
  106. data/tools/admin/LabelprogressbarWidget-BJWCmsYC-e98295c1bc5e4efb1c09.js +0 -1
  107. data/tools/admin/LabelsparklineWidget-DILCIh3q-f22a36373fc866a444dc.js +0 -1
  108. data/tools/admin/LabelvalueWidget-CCZd1NXE-cf7b93c65219cf160d57.js +0 -1
  109. data/tools/admin/LabelvaluedescWidget-Bsllq8W6-57b9cdcaaebdc309cc98.js +0 -1
  110. data/tools/admin/LabelvaluelimitsbarWidget-BV-cfaD--eecc71f35ce995845faa.js +0 -1
  111. data/tools/admin/LabelvaluelimitscolumnWidget-DwA0eRBw-8ee3644a2037b78c6d62.js +0 -1
  112. data/tools/admin/LabelvaluerangebarWidget-3GDJz3dj-4f27ce8b83e09eaf47f3.js +0 -1
  113. data/tools/admin/LedWidget-BAt02s0J-e049b22bdc18f7bf3f2d.js +0 -1
  114. data/tools/admin/LimitsbarWidget-JJiyzZjb-4b552af8e5470073ec05.js +0 -1
  115. data/tools/admin/LimitscolorWidget-CYzXKbYd-9afbb644c626ad1d6733.js +0 -1
  116. data/tools/admin/LimitscolumnWidget-Cd76tBo7-38462000de2efd18c479.js +0 -1
  117. data/tools/admin/LinegraphWidget-DWRtO6Ej-d0ae58480c116ffb64ef.js +0 -1
  118. data/tools/admin/MatrixbycolumnsWidget-cwsyjNV2-4fd3c3a24ebbb721b45a.js +0 -1
  119. data/tools/admin/MicroservicesTab-CXw9kdWT-5ce1be6883f4ad70a2c2.js +0 -1
  120. data/tools/admin/PackagesTab-wjl76tWL-949bca7c846419d282af.js +0 -1
  121. data/tools/admin/ProgressbarWidget-CYDziFej-d69f11ca427d49bb2ff1.js +0 -1
  122. data/tools/admin/RadiobuttonWidget-U6jcQZoD-e216011f2f6798b2477b.js +0 -1
  123. data/tools/admin/RadiogroupWidget-HTPJnsB0-f62fcea617a41aab7b3d.js +0 -1
  124. data/tools/admin/RangebarWidget-DW0FJK6y-95c451c431feda68a4aa.js +0 -1
  125. data/tools/admin/RedisTab-CO4P3kfJ-e1e822186e9ccbbaf7bd.js +0 -1
  126. data/tools/admin/RollupWidget-B2qrx55f-ab581ccfb8a7a5304da5.js +0 -1
  127. data/tools/admin/RoutersTab-90dfiqgI-592236d66eca1847cd22.js +0 -1
  128. data/tools/admin/ScrollwindowWidget-CwIDxgO6-d408ee37f84c83c69077.js +0 -1
  129. data/tools/admin/SecretsTab-Bt1QgQOO-b442f7cb6ca489679f10.js +0 -1
  130. data/tools/admin/SettingsTab-DcwV8AtY-ce18828e05af3c54b99e.js +0 -1
  131. data/tools/admin/SignalWidget-Bosa3AbW-653d8a9240989fcb6429.js +0 -1
  132. data/tools/admin/SpacerWidget-DYAlt5mt-4cb0a40fc30459d91514.js +0 -1
  133. data/tools/admin/SparklineWidget-CDrVXOFV-a103a847eb4b0ba73f28.js +0 -1
  134. data/tools/admin/TabbookWidget-DDdlzCkv-42afacb720eec281935d.js +0 -1
  135. data/tools/admin/TargetsTab-BCNMBoLQ-cf77d00bc09c263e509d.js +0 -1
  136. data/tools/admin/TextboxWidget-5euFelEq-670c34a45b0d8e0e6b17.js +0 -1
  137. data/tools/admin/TextfieldWidget-BFripYeh-ba16dac10a7b273f33bd.js +0 -1
  138. data/tools/admin/TimeWidget-BBSbsUYJ-66d7abc7bd9891d9f67c.js +0 -1
  139. data/tools/admin/TitleWidget-p8cjo-Bs-bd2c97a4ce86b3f7f776.js +0 -1
  140. data/tools/admin/ValueWidget-CZh7JWwT-2c2d67aef078b313f118.js +0 -1
  141. data/tools/admin/ValuelimitsbarWidget-DU7ybswC-e9df05dabfa41fcf9bd3.js +0 -1
  142. data/tools/admin/ValuelimitscolumnWidget-DMw-h5jM-f5941e50754c56bb03c0.js +0 -1
  143. data/tools/admin/ValuerangebarWidget-DPpofDpA-f1cd5777a9e29a9cb40c.js +0 -1
  144. data/tools/admin/VerticalWidget-Ch7VAEmz-ad9c1186ed7e5b3077e2.js +0 -1
  145. data/tools/admin/VerticalboxWidget-DYx-TFT4-eced75b5e33079f1f5ff.js +0 -1
@@ -1,5 +1,5 @@
1
- System.register(["./main-7b39afe9b1c97330416a.js","vue","./SimpleTextDialog-BK3uXyK3-9cfb6b5adab2c61d0b30.js","vue-router","vuex","vuetify"],function(H,ue){"use strict";var N,A,S,P,M,U,p,c,m,n,l,h,g,x,v,D,$,y,I,_,j,B;return{setters:[u=>{N=u.s,A=u.y,S=u.v,P=u.O,M=u.p,U=u.l},u=>{p=u.resolveComponent,c=u.openBlock,m=u.createElementBlock,n=u.createVNode,l=u.withCtx,h=u.createTextVNode,g=u.createElementVNode,x=u.toDisplayString,v=u.createBlock,D=u.Fragment,$=u.renderList,y=u.mergeProps,I=u.normalizeClass,_=u.createCommentVNode,j=u.withModifiers},u=>{B=u.O},null,null,null],execute:function(){const u={components:{PluginDialog:A,ModifiedPluginDialog:S,SimpleTextDialog:B},data(){return{file:null,currentPlugin:null,plugins:[],targets:[],processes:{},alert:"",alertType:"success",showAlert:!1,pluginName:null,variables:{},pluginTxt:"",pluginHashTmp:null,existingPluginTxt:null,showDownloadDialog:!1,showProcessOutput:!1,processOutput:"",showPluginDialog:!1,showModifiedPluginDialog:!1,showDefaultTools:!1,progress:0,pluginDelete:!1,defaultPlugins:["openc3-cosmos-tool-admin","openc3-cosmos-tool-bucketexplorer","openc3-cosmos-tool-cmdsender","openc3-cosmos-tool-cmdhistory","openc3-cosmos-tool-cmdtlmserver","openc3-cosmos-tool-dataextractor","openc3-cosmos-tool-dataviewer","openc3-cosmos-tool-docs","openc3-cosmos-tool-handbooks","openc3-cosmos-tool-iframe","openc3-cosmos-tool-limitsmonitor","openc3-cosmos-tool-packetviewer","openc3-cosmos-tool-scriptrunner","openc3-cosmos-tool-tablemanager","openc3-cosmos-tool-tlmgrapher","openc3-cosmos-tool-tlmviewer","openc3-cosmos-enterprise-tool-admin","openc3-cosmos-tool-autonomic","openc3-cosmos-tool-calendar","openc3-cosmos-tool-grafana","openc3-enterprise-tool-base","openc3-tool-base"]}},watch:{showPluginDialog:function(t,e){t===!1&&(this.file=null,this.$refs.fileInput.value=null)}},computed:{shownPlugins(){let t=[];for(let e of this.plugins){let o=e.split("__")[0].split("-");o=o.slice(0,-1);let d=o.join("-");(!this.defaultPlugins.includes(d)||this.showDefaultTools)&&t.push(e)}return t},pluginTargets(){return t=>{let e=[];for(const o in this.targets)this.targets[o].plugin===t&&e.push(this.targets[o]);return e}},isModified(){return t=>{let e=!1;for(const o in this.targets)if(this.targets[o].plugin===t&&this.targets[o].modified===!0){e=!0;break}return e}}},mounted(){this.update(),this.updateProcesses()},methods:{showOutput:function(t){this.processOutput=t.output,this.showProcessOutput=!0},update:function(){P.get("/openc3-api/plugins").then(t=>{this.plugins=t.data}),P.get("/openc3-api/targets_modified").then(t=>{this.targets=t.data})},updateProcesses:function(){P.get("openc3-api/process_status/plugin_?substr=true").then(t=>{this.processes=t.data,Object.keys(this.processes).length>0&&setTimeout(()=>{this.updateProcesses(),this.update()},5e3)})},formatDate(t){return M(U(parseInt(t)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},upload:function(t=null){const e=t?"put":"post",o=t?`/openc3-api/plugins/${t}`:"/openc3-api/plugins",d=new FormData;d.append("plugin",this.file,this.file.name);let s=this;P[e](o,{data:d,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(i){let r=Math.round(i.loaded*100/i.total);s.progress=r}}).then(i=>{this.progress=100,this.alert="Uploaded file",this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update();let r=null;i.data.existing_plugin_txt_lines!==void 0&&(r=i.data.existing_plugin_txt_lines.join(`
1
+ System.register(["./main-6d6b6148fd97f6dd73ae.js","vue","single-spa","./SimpleTextDialog-3Tzc_snk-be80893bf7377e8a2b54.js","vue-router","vuex","vuetify"],function(z,ue){"use strict";var O,A,I,P,S,M,p,c,m,n,l,h,g,x,_,D,$,T,U,v,j,L;return{setters:[u=>{O=u.s,A=u.x,I=u.w,P=u.I,S=u.p,M=u.l},u=>{p=u.resolveComponent,c=u.openBlock,m=u.createElementBlock,n=u.createVNode,l=u.withCtx,h=u.createTextVNode,g=u.createElementVNode,x=u.toDisplayString,_=u.createBlock,D=u.Fragment,$=u.renderList,T=u.mergeProps,U=u.normalizeClass,v=u.createCommentVNode,j=u.withModifiers},null,u=>{L=u.O},null,null,null],execute:function(){const u={components:{PluginDialog:A,ModifiedPluginDialog:I,SimpleTextDialog:L},data(){return{file:null,currentPlugin:null,plugins:[],targets:[],processes:{},alert:"",alertType:"success",showAlert:!1,pluginName:null,variables:{},pluginTxt:"",pluginHashTmp:null,existingPluginTxt:null,showDownloadDialog:!1,showProcessOutput:!1,processOutput:"",showPluginDialog:!1,showModifiedPluginDialog:!1,showDefaultTools:!1,progress:0,pluginDelete:!1,defaultPlugins:["openc3-cosmos-tool-admin","openc3-cosmos-tool-bucketexplorer","openc3-cosmos-tool-cmdsender","openc3-cosmos-tool-cmdhistory","openc3-cosmos-tool-cmdtlmserver","openc3-cosmos-tool-dataextractor","openc3-cosmos-tool-dataviewer","openc3-cosmos-tool-docs","openc3-cosmos-tool-handbooks","openc3-cosmos-tool-iframe","openc3-cosmos-tool-limitsmonitor","openc3-cosmos-tool-packetviewer","openc3-cosmos-tool-scriptrunner","openc3-cosmos-tool-tablemanager","openc3-cosmos-tool-tlmgrapher","openc3-cosmos-tool-tlmviewer","openc3-cosmos-enterprise-tool-admin","openc3-cosmos-tool-autonomic","openc3-cosmos-tool-calendar","openc3-cosmos-tool-grafana","openc3-enterprise-tool-base","openc3-tool-base"]}},watch:{showPluginDialog:function(t,e){t===!1&&(this.file=null,this.$refs.fileInput.value=null)}},computed:{shownPlugins(){let t=[];for(let e of this.plugins){let o=e.split("__")[0].split("-");o=o.slice(0,-1);let d=o.join("-");(!this.defaultPlugins.includes(d)||this.showDefaultTools)&&t.push(e)}return t},pluginTargets(){return t=>{let e=[];for(const o in this.targets)this.targets[o].plugin===t&&e.push(this.targets[o]);return e}},isModified(){return t=>{let e=!1;for(const o in this.targets)if(this.targets[o].plugin===t&&this.targets[o].modified===!0){e=!0;break}return e}}},mounted(){this.update(),this.updateProcesses()},methods:{showOutput:function(t){this.processOutput=t.output,this.showProcessOutput=!0},update:function(){P.get("/openc3-api/plugins").then(t=>{this.plugins=t.data}),P.get("/openc3-api/targets_modified").then(t=>{this.targets=t.data})},updateProcesses:function(){P.get("openc3-api/process_status/plugin_?substr=true").then(t=>{this.processes=t.data,Object.keys(this.processes).length>0&&setTimeout(()=>{this.updateProcesses(),this.update()},5e3)})},formatDate(t){return S(M(parseInt(t)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},upload:function(t=null){const e=t?"put":"post",o=t?`/openc3-api/plugins/${t}`:"/openc3-api/plugins",d=new FormData;d.append("plugin",this.file,this.file.name);let s=this;P[e](o,{data:d,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(i){let r=Math.round(i.loaded*100/i.total);s.progress=r}}).then(i=>{this.progress=100,this.alert="Uploaded file",this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update();let r=null;i.data.existing_plugin_txt_lines!==void 0&&(r=i.data.existing_plugin_txt_lines.join(`
2
2
  `));let w=i.data.plugin_txt_lines.join(`
3
3
  `);this.pluginName=i.data.name,this.variables=i.data.variables,this.pluginTxt=w,this.existingPluginTxt=r,this.showPluginDialog=!0,this.file=void 0}).catch(i=>{this.currentPlugin=null,this.file=void 0})},pluginCallback:function(t){this.showPluginDialog=!1,this.currentPlugin!==null&&(t.name=this.currentPlugin),this.pluginHashTmp=t,this.isModified(this.currentPlugin)?(this.pluginDelete=!1,this.showModifiedPluginDialog=!0):this.pluginInstall()},modifiedSubmit:async function(t){if(t===!0)for(let e of this.pluginTargets(this.currentPlugin))e.modified==!0&&await P.post(`/openc3-api/targets/${e.name}/delete_modified`);this.pluginDelete?this.deletePlugin(this.currentPlugin):this.pluginInstall()},pluginInstall:function(){P.post(`/openc3-api/plugins/install/${this.pluginName}`,{data:{plugin_hash:JSON.stringify(this.pluginHashTmp)}}).then(t=>{this.alert=`Started installing plugin ${this.pluginName} ...`,this.alertType="success",this.showAlert=!0,this.currentPlugin=null,this.file=void 0,this.variables={},this.pluginTxt="",this.existingPluginTxt=null,setTimeout(()=>{this.showAlert=!1,this.updateProcesses()},5e3),this.update()})},downloadTarget:function(t){P.post(`/openc3-api/targets/${t}/download`).then(e=>{const o=window.atob(e.data.contents),d=new Uint8Array(o.length);for(let r=0;r<o.length;++r)d[r]=o.charCodeAt(r);const s=new Blob([d],{type:"application/zip"}),i=document.createElement("a");i.href=URL.createObjectURL(s),i.setAttribute("download",e.data.filename),i.click()})},downloadPlugin:function(t){P.post(`/openc3-api/packages/${t}/download`).then(e=>{const o=window.atob(e.data.contents),d=new Uint8Array(o.length);for(let r=0;r<o.length;++r)d[r]=o.charCodeAt(r);const s=new Blob([d],{type:"application/zip"}),i=document.createElement("a");i.href=URL.createObjectURL(s),i.setAttribute("download",e.data.filename),i.click()})},editPlugin:function(t){P.get(`/openc3-api/plugins/${t}`).then(e=>{let o=null;e.data.existing_plugin_txt_lines!==void 0&&(o=e.data.existing_plugin_txt_lines.join(`
4
4
  `));let d=e.data.plugin_txt_lines.join(`
5
- `);this.pluginName=e.data.name,this.variables=e.data.variables,this.pluginTxt=d,this.existingPluginTxt=o,this.showPluginDialog=!0})},deletePrompt:function(t){this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then(e=>{this.isModified(t)?(this.currentPlugin=t,this.pluginDelete=!0,this.showModifiedPluginDialog=!0):this.deletePlugin(t)})},deletePlugin:function(t){this.alert=`Removing plugin ${t} ...`,this.alertType="success",this.showAlert=!0,P.delete(`/openc3-api/plugins/${t}`).then(e=>{setTimeout(()=>{this.showAlert=!1,this.updateProcesses()},5e3)}),this.update()},upgradePlugin(t){this.file=null,this.currentPlugin=t,this.progress=0,this.$refs.fileInput.click()},selectFile(){this.file=null,this.currentPlugin=null,this.progress=0,this.$refs.fileInput.click()},fileChange(t){const e=t.target.files;if(e.length>0)if(this.file=e[0],this.currentPlugin!==null)if(this.file.name.split(".gem")[0]==this.currentPlugin.split(".gem")[0])this.$dialog.confirm(`The new gem ${this.file.name} appears to be identical to the existing ${this.currentPlugin}. Install?`,{okText:"Ok",cancelText:"Cancel"}).then(()=>{this.upload(this.currentPlugin)}).catch(o=>{});else{let o=this.file.name.split("-"),d=o.findIndex(r=>r.includes(".")),s=o.slice(0,d).join("-");o=this.currentPlugin.split("-"),d=o.findIndex(r=>r.includes("."));let i=o.slice(0,d).join("-");s!==i?this.$dialog.confirm(`The new gem base name ${s} doesn't match the existing ${i}. Install?`,{okText:"Ok",cancelText:"Cancel"}).then(()=>{this.upload(this.currentPlugin)}):this.upload(this.currentPlugin)}else this.upload();else this.$refs.fileInput.value=null}}},z=["textContent"],K=["textContent"],X={key:0},J={key:0},W=["onClick"],Y={key:1},Z={class:"mx-3"},q={class:"mx-3"},G={class:"mx-3"},Q={class:"mx-3"};function ee(t,e,o,d,s,i){const r=p("v-btn"),w=p("v-icon"),k=p("v-col"),te=p("rux-progress"),O=p("v-row"),le=p("v-checkbox"),V=p("v-divider"),ie=p("v-alert"),L=p("v-list-item-title"),E=p("v-list-item-subtitle"),ne=p("v-progress-circular"),T=p("v-tooltip"),R=p("v-list-item"),F=p("v-list"),se=p("plugin-dialog"),oe=p("modified-plugin-dialog"),ae=p("simple-text-dialog");return c(),m("div",null,[n(O,{"no-gutters":"",align:"center",class:"px-2"},{default:l(()=>[n(k,{class:"pa-2 mt-2"},{default:l(()=>[n(r,{onClick:i.selectFile},{default:l(()=>e[6]||(e[6]=[h("Install New Plugin")])),_:1},8,["onClick"]),g("input",{style:{display:"none"},type:"file",ref:"fileInput",onChange:e[0]||(e[0]=(...a)=>i.fileChange&&i.fileChange(...a))},null,544),e[8]||(e[8]=h("  Note: Use ")),n(w,null,{default:l(()=>e[7]||(e[7]=[h("mdi-update")])),_:1}),e[9]||(e[9]=h(" to upgrade existing plugins "))]),_:1}),n(k,{class:"ml-4 mr-2",cols:"4"},{default:l(()=>[n(te,{value:s.progress},null,8,["value"])]),_:1})]),_:1}),n(O,{"no-gutters":"",class:"px-2"},{default:l(()=>[n(k,null,{default:l(()=>[n(le,{modelValue:s.showDefaultTools,"onUpdate:modelValue":e[1]||(e[1]=a=>s.showDefaultTools=a),label:"Show Default Tools",class:"mt-0","data-test":"show-default-tools"},null,8,["modelValue"])]),_:1}),n(k,{align:"right",class:"mr-2"},{default:l(()=>e[10]||(e[10]=[g("div",null,"* indicates a modified plugin",-1),g("div",null,"Click target link to download modifications",-1)])),_:1})]),_:1}),n(V),n(ie,{closable:"",type:s.alertType,modelValue:s.showAlert,"onUpdate:modelValue":e[2]||(e[2]=a=>s.showAlert=a),"data-test":"plugin-alert"},{default:l(()=>[h(x(s.alert),1)]),_:1},8,["type","modelValue"]),Object.keys(s.processes).length>0?(c(),v(F,{key:0,class:"list","data-test":"process-list"},{default:l(()=>[n(O,{"no-gutters":"",class:"px-4"},{default:l(()=>[n(k,{class:"text-h6"},{default:l(()=>e[11]||(e[11]=[h("Process List")])),_:1}),n(k,{align:"right"},{default:l(()=>e[12]||(e[12]=[g("div",null,"Showing last 10 min of activity",-1)])),_:1})]),_:1}),(c(!0),m(D,null,$(s.processes,a=>(c(),m("div",{key:a.name},[n(R,null,{append:l(()=>[a.state==="Running"?(c(),m("div",X,[n(ne,{indeterminate:"",color:"primary"})])):(c(),v(T,{key:1,location:"top"},{activator:l(({props:b})=>[n(w,y({ref_for:!0},b,{onClick:f=>i.showOutput(a),"data-test":"show-output"}),{default:l(()=>e[13]||(e[13]=[h(" mdi-eye ")])),_:2},1040,["onClick"])]),default:l(()=>[e[14]||(e[14]=g("span",null,"Show Output",-1))]),_:2},1024))]),default:l(()=>[n(L,null,{default:l(()=>[g("span",{class:I(a.state.toLowerCase()),textContent:x(`Processing ${a.process_type}: ${a.detail} - ${a.state}`)},null,10,z)]),_:2},1024),n(E,null,{default:l(()=>[g("span",{textContent:x(" Updated At: "+i.formatDate(a.updated_at))},null,8,K)]),_:2},1024)]),_:2},1024),n(V)]))),128))]),_:1})):_("",!0),n(F,{class:"list","data-test":"plugin-list"},{default:l(()=>[n(O,{class:"px-4"},{default:l(()=>[n(k,{class:"text-h6"},{default:l(()=>e[15]||(e[15]=[h("Plugin List")])),_:1})]),_:1}),(c(!0),m(D,null,$(i.shownPlugins,(a,b)=>(c(),m("div",{key:b},[n(R,null,{append:l(()=>[g("div",Z,[n(T,{location:"top"},{activator:l(({props:f})=>[n(w,y({ref_for:!0},f,{onClick:C=>i.downloadPlugin(a),"data-test":"download-plugin"}),{default:l(()=>e[16]||(e[16]=[h(" mdi-download ")])),_:2},1040,["onClick"])]),default:l(()=>[e[17]||(e[17]=g("span",null,"Download Plugin",-1))]),_:2},1024)]),g("div",q,[n(T,{location:"top"},{activator:l(({props:f})=>[n(w,y({ref_for:!0},f,{onClick:C=>i.editPlugin(a),"data-test":"edit-plugin"}),{default:l(()=>e[18]||(e[18]=[h(" mdi-pencil ")])),_:2},1040,["onClick"])]),default:l(()=>[e[19]||(e[19]=g("span",null,"Edit Plugin Details",-1))]),_:2},1024)]),g("div",G,[n(T,{location:"top"},{activator:l(({props:f})=>[n(w,y({ref_for:!0},f,{onClick:C=>i.upgradePlugin(a),"data-test":"upgrade-plugin"}),{default:l(()=>e[20]||(e[20]=[h(" mdi-update ")])),_:2},1040,["onClick"])]),default:l(()=>[e[21]||(e[21]=g("span",null,"Upgrade Plugin",-1))]),_:2},1024)]),g("div",Q,[n(T,{location:"top"},{activator:l(({props:f})=>[n(w,y({ref_for:!0},f,{onClick:C=>i.deletePrompt(a),"data-test":"delete-plugin"}),{default:l(()=>e[22]||(e[22]=[h(" mdi-delete ")])),_:2},1040,["onClick"])]),default:l(()=>[e[23]||(e[23]=g("span",null,"Delete Plugin",-1))]),_:2},1024)])]),default:l(()=>[n(L,null,{default:l(()=>[i.isModified(a)?(c(),m("span",J,"* ")):_("",!0),h(x(a),1)]),_:2},1024),i.pluginTargets(a).length!==0?(c(),v(E,{key:0},{default:l(()=>[(c(!0),m(D,null,$(i.pluginTargets(a),(f,C)=>(c(),m("span",{key:C,class:"mr-2"},[f.modified?(c(),m("a",{key:0,onClick:j(pe=>i.downloadTarget(f.name),["prevent"])},x(f.name),9,W)):(c(),m("span",Y,x(f.name),1))]))),128))]),_:2},1024)):_("",!0)]),_:2},1024),b<s.plugins.length-1?(c(),v(V,{key:b})):_("",!0)]))),128))]),_:1}),s.showPluginDialog?(c(),v(se,{key:1,modelValue:s.showPluginDialog,"onUpdate:modelValue":e[3]||(e[3]=a=>s.showPluginDialog=a),pluginName:s.pluginName,variables:s.variables,pluginTxt:s.pluginTxt,existingPluginTxt:s.existingPluginTxt,onCallback:i.pluginCallback},null,8,["modelValue","pluginName","variables","pluginTxt","existingPluginTxt","onCallback"])):_("",!0),s.showModifiedPluginDialog?(c(),v(oe,{key:2,modelValue:s.showModifiedPluginDialog,"onUpdate:modelValue":e[4]||(e[4]=a=>s.showModifiedPluginDialog=a),pluginName:s.currentPlugin,targets:i.pluginTargets(s.currentPlugin),pluginDelete:s.pluginDelete,onSubmit:i.modifiedSubmit},null,8,["modelValue","pluginName","targets","pluginDelete","onSubmit"])):_("",!0),n(ae,{modelValue:s.showProcessOutput,"onUpdate:modelValue":e[5]||(e[5]=a=>s.showProcessOutput=a),title:"Process Output",text:s.processOutput},null,8,["modelValue","text"])])}const re=H("default",N(u,[["render",ee],["__scopeId","data-v-2515a7f9"]]))}}});
5
+ `);this.pluginName=e.data.name,this.variables=e.data.variables,this.pluginTxt=d,this.existingPluginTxt=o,this.showPluginDialog=!0})},deletePrompt:function(t){this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then(e=>{this.isModified(t)?(this.currentPlugin=t,this.pluginDelete=!0,this.showModifiedPluginDialog=!0):this.deletePlugin(t)})},deletePlugin:function(t){this.alert=`Removing plugin ${t} ...`,this.alertType="success",this.showAlert=!0,P.delete(`/openc3-api/plugins/${t}`).then(e=>{setTimeout(()=>{this.showAlert=!1,this.updateProcesses()},5e3)}),this.update()},upgradePlugin(t){this.file=null,this.currentPlugin=t,this.progress=0,this.$refs.fileInput.click()},selectFile(){this.file=null,this.currentPlugin=null,this.progress=0,this.$refs.fileInput.click()},fileChange(t){const e=t.target.files;if(e.length>0)if(this.file=e[0],this.currentPlugin!==null)if(this.file.name.split(".gem")[0]==this.currentPlugin.split(".gem")[0])this.$dialog.confirm(`The new gem ${this.file.name} appears to be identical to the existing ${this.currentPlugin}. Install?`,{okText:"Ok",cancelText:"Cancel"}).then(()=>{this.upload(this.currentPlugin)}).catch(o=>{});else{let o=this.file.name.split("-"),d=o.findIndex(r=>r.includes(".")),s=o.slice(0,d).join("-");o=this.currentPlugin.split("-"),d=o.findIndex(r=>r.includes("."));let i=o.slice(0,d).join("-");s!==i?this.$dialog.confirm(`The new gem base name ${s} doesn't match the existing ${i}. Install?`,{okText:"Ok",cancelText:"Cancel"}).then(()=>{this.upload(this.currentPlugin)}):this.upload(this.currentPlugin)}else this.upload();else this.$refs.fileInput.value=null}}},H=["textContent"],J=["textContent"],W={key:0},X={key:0},Y=["onClick"],Z={key:1},q={class:"mx-3"},G={class:"mx-3"},K={class:"mx-3"},Q={class:"mx-3"};function ee(t,e,o,d,s,i){const r=p("v-btn"),w=p("v-icon"),k=p("v-col"),te=p("rux-progress"),V=p("v-row"),le=p("v-checkbox"),N=p("v-divider"),ie=p("v-alert"),B=p("v-list-item-title"),E=p("v-list-item-subtitle"),ne=p("v-progress-circular"),y=p("v-tooltip"),R=p("v-list-item"),F=p("v-list"),se=p("plugin-dialog"),oe=p("modified-plugin-dialog"),ae=p("simple-text-dialog");return c(),m("div",null,[n(V,{"no-gutters":"",align:"center",class:"px-2"},{default:l(()=>[n(k,{class:"pa-2 mt-2"},{default:l(()=>[n(r,{onClick:i.selectFile},{default:l(()=>e[6]||(e[6]=[h("Install New Plugin")])),_:1},8,["onClick"]),g("input",{style:{display:"none"},type:"file",ref:"fileInput",onChange:e[0]||(e[0]=(...a)=>i.fileChange&&i.fileChange(...a))},null,544),e[8]||(e[8]=h("  Note: Use ")),n(w,null,{default:l(()=>e[7]||(e[7]=[h("mdi-update")])),_:1}),e[9]||(e[9]=h(" to upgrade existing plugins "))]),_:1}),n(k,{class:"ml-4 mr-2",cols:"4"},{default:l(()=>[n(te,{value:s.progress},null,8,["value"])]),_:1})]),_:1}),n(V,{"no-gutters":"",class:"px-2"},{default:l(()=>[n(k,null,{default:l(()=>[n(le,{modelValue:s.showDefaultTools,"onUpdate:modelValue":e[1]||(e[1]=a=>s.showDefaultTools=a),label:"Show Default Tools",class:"mt-0","data-test":"show-default-tools"},null,8,["modelValue"])]),_:1}),n(k,{align:"right",class:"mr-2"},{default:l(()=>e[10]||(e[10]=[g("div",null,"* indicates a modified plugin",-1),g("div",null,"Click target link to download modifications",-1)])),_:1})]),_:1}),n(N),n(ie,{closable:"",type:s.alertType,modelValue:s.showAlert,"onUpdate:modelValue":e[2]||(e[2]=a=>s.showAlert=a),"data-test":"plugin-alert"},{default:l(()=>[h(x(s.alert),1)]),_:1},8,["type","modelValue"]),Object.keys(s.processes).length>0?(c(),_(F,{key:0,class:"list","data-test":"process-list"},{default:l(()=>[n(V,{"no-gutters":"",class:"px-4"},{default:l(()=>[n(k,{class:"text-h6"},{default:l(()=>e[11]||(e[11]=[h("Process List")])),_:1}),n(k,{align:"right"},{default:l(()=>e[12]||(e[12]=[g("div",null,"Showing last 10 min of activity",-1)])),_:1})]),_:1}),(c(!0),m(D,null,$(s.processes,a=>(c(),m("div",{key:a.name},[n(R,null,{append:l(()=>[a.state==="Running"?(c(),m("div",W,[n(ne,{indeterminate:"",color:"primary"})])):(c(),_(y,{key:1,location:"top"},{activator:l(({props:b})=>[n(w,T({ref_for:!0},b,{onClick:f=>i.showOutput(a),"data-test":"show-output"}),{default:l(()=>e[13]||(e[13]=[h(" mdi-eye ")])),_:2},1040,["onClick"])]),default:l(()=>[e[14]||(e[14]=g("span",null,"Show Output",-1))]),_:2},1024))]),default:l(()=>[n(B,null,{default:l(()=>[g("span",{class:U(a.state.toLowerCase()),textContent:x(`Processing ${a.process_type}: ${a.detail} - ${a.state}`)},null,10,H)]),_:2},1024),n(E,null,{default:l(()=>[g("span",{textContent:x(" Updated At: "+i.formatDate(a.updated_at))},null,8,J)]),_:2},1024)]),_:2},1024),n(N)]))),128))]),_:1})):v("",!0),n(F,{class:"list","data-test":"plugin-list"},{default:l(()=>[n(V,{class:"px-4"},{default:l(()=>[n(k,{class:"text-h6"},{default:l(()=>e[15]||(e[15]=[h("Plugin List")])),_:1})]),_:1}),(c(!0),m(D,null,$(i.shownPlugins,(a,b)=>(c(),m("div",{key:b},[n(R,null,{append:l(()=>[g("div",q,[n(y,{location:"top"},{activator:l(({props:f})=>[n(w,T({ref_for:!0},f,{onClick:C=>i.downloadPlugin(a),"data-test":"download-plugin"}),{default:l(()=>e[16]||(e[16]=[h(" mdi-download ")])),_:2},1040,["onClick"])]),default:l(()=>[e[17]||(e[17]=g("span",null,"Download Plugin",-1))]),_:2},1024)]),g("div",G,[n(y,{location:"top"},{activator:l(({props:f})=>[n(w,T({ref_for:!0},f,{onClick:C=>i.editPlugin(a),"data-test":"edit-plugin"}),{default:l(()=>e[18]||(e[18]=[h(" mdi-pencil ")])),_:2},1040,["onClick"])]),default:l(()=>[e[19]||(e[19]=g("span",null,"Edit Plugin Details",-1))]),_:2},1024)]),g("div",K,[n(y,{location:"top"},{activator:l(({props:f})=>[n(w,T({ref_for:!0},f,{onClick:C=>i.upgradePlugin(a),"data-test":"upgrade-plugin"}),{default:l(()=>e[20]||(e[20]=[h(" mdi-update ")])),_:2},1040,["onClick"])]),default:l(()=>[e[21]||(e[21]=g("span",null,"Upgrade Plugin",-1))]),_:2},1024)]),g("div",Q,[n(y,{location:"top"},{activator:l(({props:f})=>[n(w,T({ref_for:!0},f,{onClick:C=>i.deletePrompt(a),"data-test":"delete-plugin"}),{default:l(()=>e[22]||(e[22]=[h(" mdi-delete ")])),_:2},1040,["onClick"])]),default:l(()=>[e[23]||(e[23]=g("span",null,"Delete Plugin",-1))]),_:2},1024)])]),default:l(()=>[n(B,null,{default:l(()=>[i.isModified(a)?(c(),m("span",X,"* ")):v("",!0),h(x(a),1)]),_:2},1024),i.pluginTargets(a).length!==0?(c(),_(E,{key:0},{default:l(()=>[(c(!0),m(D,null,$(i.pluginTargets(a),(f,C)=>(c(),m("span",{key:C,class:"mr-2"},[f.modified?(c(),m("a",{key:0,onClick:j(pe=>i.downloadTarget(f.name),["prevent"])},x(f.name),9,Y)):(c(),m("span",Z,x(f.name),1))]))),128))]),_:2},1024)):v("",!0)]),_:2},1024),b<s.plugins.length-1?(c(),_(N,{key:b})):v("",!0)]))),128))]),_:1}),s.showPluginDialog?(c(),_(se,{key:1,modelValue:s.showPluginDialog,"onUpdate:modelValue":e[3]||(e[3]=a=>s.showPluginDialog=a),pluginName:s.pluginName,variables:s.variables,pluginTxt:s.pluginTxt,existingPluginTxt:s.existingPluginTxt,onCallback:i.pluginCallback},null,8,["modelValue","pluginName","variables","pluginTxt","existingPluginTxt","onCallback"])):v("",!0),s.showModifiedPluginDialog?(c(),_(oe,{key:2,modelValue:s.showModifiedPluginDialog,"onUpdate:modelValue":e[4]||(e[4]=a=>s.showModifiedPluginDialog=a),pluginName:s.currentPlugin,targets:i.pluginTargets(s.currentPlugin),pluginDelete:s.pluginDelete,onSubmit:i.modifiedSubmit},null,8,["modelValue","pluginName","targets","pluginDelete","onSubmit"])):v("",!0),n(ae,{modelValue:s.showProcessOutput,"onUpdate:modelValue":e[5]||(e[5]=a=>s.showProcessOutput=a),title:"Process Output",text:s.processOutput},null,8,["modelValue","text"])])}const re=z("default",O(u,[["render",ee],["__scopeId","data-v-2515a7f9"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-C4QVI4IH-80b859328e2c8ee53918.js","vue","./main-6d6b6148fd97f6dd73ae.js","vue-router","single-spa","vuex","vuetify"],function(u,p){"use strict";var s,a,l,r,n,i;return{setters:[e=>{s=e.o},e=>{a=e.resolveComponent,l=e.openBlock,r=e.createBlock,n=e.normalizeStyle},e=>{i=e.s},null,null,null,null],execute:function(){const e={mixins:[s],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:150}},computed:{_value:function(){let t=this.value;return t===null&&(t=this.screenValues[this.valueId][0]),parseInt(parseFloat(t)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),this.value===null){let t="CONVERTED";this.parameters[5]&&(t=this.parameters[5]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${t}`,this.$emit("addItem",this.valueId)}},unmounted:function(){this.$emit("deleteItem",this.valueId)}};function o(t,m,v,I,f,c){const h=a("rux-progress");return l(),r(h,{value:c._value,class:"progress",style:n(t.computedStyle)},null,8,["value","style"])}const d=u("default",i(e,[["render",o],["__scopeId","data-v-85bc2857"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-C4QVI4IH-80b859328e2c8ee53918.js","vue","./main-6d6b6148fd97f6dd73ae.js","vue-router","single-spa","vuex","vuetify"],function(o,d){"use strict";var l,t,n,r,a,s;return{setters:[e=>{l=e.o},e=>{t=e.resolveComponent,n=e.openBlock,r=e.createBlock,a=e.normalizeStyle},e=>{s=e.s},null,null,null,null],execute:function(){const e={props:{value:{type:Number}},mixins:[l],data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}};function u(i,y,c,b,v,f){const p=t("v-radio");return n(),r(p,{"hide-details":"",dense:"",label:v.label,style:a(i.computedStyle),value:c.value},null,8,["label","style","value"])}const m=o("default",s(e,[["render",u]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Layout-C1HoM4Kl-417cd02a11d96e992d80.js","vue","./main-6d6b6148fd97f6dd73ae.js","./Widget-C4QVI4IH-80b859328e2c8ee53918.js","vue-router","single-spa","vuex","vuetify"],function(h,f){"use strict";var l,a,r,s,o,c,i,m,u,d,p,g;return{setters:[e=>{l=e.r},e=>{a=e.resolveComponent,r=e.openBlock,s=e.createBlock,o=e.normalizeStyle,c=e.withCtx,i=e.createElementBlock,m=e.Fragment,u=e.renderList,d=e.resolveDynamicComponent,p=e.mergeProps},e=>{g=e.s},null,null,null,null,null],execute:function(){const e={mixins:[l],data(){return{selectedIndex:0}},created(){this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}};function C(n,v,B,V,y,z){const I=a("v-radio-group");return r(),s(I,{"hide-details":"",density:"compact",modelValue:y.selectedIndex,"onUpdate:modelValue":v[0]||(v[0]=t=>y.selectedIndex=t),style:o(n.computedStyle)},{default:c(()=>[(r(!0),i(m,null,u(n.widgets,(t,x)=>(r(),s(d(t.type),p({ref_for:!0},n.listeners,{value:x,key:x,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,name:t.name}),null,16,["value","target","parameters","settings","screen-values","screen-time-zone","name"]))),128))]),_:1},8,["modelValue","style"])}const k=h("default",g(e,[["render",C]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-C4QVI4IH-80b859328e2c8ee53918.js","vue","./main-6d6b6148fd97f6dd73ae.js","vue-router","single-spa","vuex","vuetify"],function(c,d){"use strict";var r,a,n,h,i,l;return{setters:[t=>{r=t.o},t=>{a=t.openBlock,n=t.createElementBlock,h=t.normalizeStyle,i=t.createElementVNode},t=>{l=t.s},null,null,null,null],execute:function(){const t={mixins:[r],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return parseInt(this.parameters[3])},max(){return parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},unmounted(){this.$emit("deleteItem",this.valueId)},methods:{calcPosition(){let e=this.screenValues[this.valueId][0];if(!e)return 0;if(e.raw)return e.raw==="-Infinity"?0:100;const s=(e-this.min)/this.range*100;return s>100?100:s<0?0:s}}};function o(e,s,p,g,v,u){return a(),n("div",{class:"rangebar",style:h([u.cssProps,e.computedStyle])},s[0]||(s[0]=[i("div",{class:"rangebar__container"},[i("div",{class:"rangebar__line"}),i("div",{class:"rangebar__arrow"})],-1)]),4)}const m=c("default",l(t,[["render",o],["__scopeId","data-v-34d37e7c"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-6d6b6148fd97f6dd73ae.js","vue","vue-router","single-spa","vuex","vuetify"],function(y,S){"use strict";var u,p,s,r,c,n,d,l,i,h,x;return{setters:[e=>{u=e.s,p=e.I},e=>{s=e.resolveComponent,r=e.openBlock,c=e.createElementBlock,n=e.createVNode,d=e.withCtx,l=e.createTextVNode,i=e.createElementVNode,h=e.toDisplayString,x=e.createCommentVNode},null,null,null,null],execute:function(){const e={data(){return{redisCommandText:"",redisResponse:null,redisEndpoint:"/openc3-api/redis/exec",headers:[{text:"Redis",value:"redis",width:150},{text:"Command",value:"command"},{text:"Response",value:"response"}],commands:[]}},methods:{commandKeydown:function(o){o.key==="Enter"&&this.executeRaw()},executeRaw:function(){this.redisResponse=null,p.post(this.redisEndpoint,{data:this.redisCommandText,headers:{Accept:"application/json","Content-Type":"plain/text"}}).then(o=>{this.redisResponse=o.data.result;let t="Ephemeral";this.redisEndpoint==="/openc3-api/redis/exec"&&(t="Persistent"),this.commands.unshift({redis:t,command:this.redisCommandText,response:this.redisResponse})})}}},R={key:0,class:"monospace"};function C(o,t,B,K,a,v){const E=s("v-card-title"),V=s("v-card-subtitle"),b=s("v-text-field"),w=s("v-card-text"),g=s("v-btn"),f=s("v-radio"),k=s("v-radio-group"),T=s("v-card-actions"),_=s("v-data-table"),N=s("v-card");return r(),c("div",null,[n(N,null,{default:d(()=>[n(E,null,{default:d(()=>t[2]||(t[2]=[l(" Send Raw Redis Commands ")])),_:1}),n(V,null,{default:d(()=>t[3]||(t[3]=[l(" THIS IS DANGEROUS. This allows you to interact directly with the underlying Redis database, making it easy to modify or delete data. "),i("br",null,null,-1),i("br",null,null,-1),l(" Enter commands like you would at the Redis cli prompt: "),i("code",null,"ping",-1),l(" or "),i("code",null,"hget openc3__settings version",-1)])),_:1}),n(w,{class:"pb-0 ml-2"},{default:d(()=>[n(b,{label:"Redis command",class:"monospace",modelValue:a.redisCommandText,"onUpdate:modelValue":t[0]||(t[0]=m=>a.redisCommandText=m),onKeydown:v.commandKeydown},null,8,["modelValue","onKeydown"]),a.redisResponse?(r(),c("span",R," Response: "+h(a.redisResponse),1)):x("",!0)]),_:1}),n(T,{class:"px-2"},{default:d(()=>[n(g,{disabled:!a.redisCommandText.length,onClick:v.executeRaw,color:"success",variant:"text"},{default:d(()=>t[4]||(t[4]=[l(" Execute ")])),_:1},8,["disabled","onClick"]),n(k,{modelValue:a.redisEndpoint,"onUpdate:modelValue":t[1]||(t[1]=m=>a.redisEndpoint=m),inline:"","hide-details":"",class:"mt-0"},{default:d(()=>[n(f,{label:"Persistent",value:"/openc3-api/redis/exec","data-test":"persistent-radio"}),n(f,{label:"Ephemeral",value:"/openc3-api/redis/exec?ephemeral=1","data-test":"ephemeral-radio"})]),_:1},8,["modelValue"])]),_:1}),n(_,{headers:a.headers,items:a.commands,class:"monospace","items-per-page":-1,"hide-default-footer":"",density:"compact",height:"45vh"},null,8,["headers","items"])]),_:1})])}const I=y("default",u(e,[["render",C],["__scopeId","data-v-28716ab0"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-C4QVI4IH-80b859328e2c8ee53918.js","vue","./main-6d6b6148fd97f6dd73ae.js","vue-router","single-spa","vuex","vuetify"],function(m,d){"use strict";var i,r,c,a,o,u;return{setters:[t=>{i=t.o},t=>{r=t.resolveComponent,c=t.openBlock,a=t.createBlock,o=t.normalizeStyle},t=>{u=t.s},null,null,null,null],execute:function(){const t={mixins:[i],props:{value:{default:null}},data:function(){return{valueId:null,icon:"",label:"",subLabel:"",items:[],screenTarget:null,screenName:null}},computed:{status:function(){let e="off";for(const n of this.items){let s=this.screenValues[n][1];s&&((s.includes("BLUE")||s.includes("GREEN"))&&e!="caution"&&e!="critical"&&(e="normal"),s.includes("YELLOW")&&e!="critical"&&(e="caution"),s.includes("RED")&&(e="critical"))}return e},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.icon=this.parameters[0],this.label=this.parameters[1],this.subLabel=this.parameters[2],this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"TLM":let n="CONVERTED";e[4]&&(n=e[4]);let s=`${e[1]}__${e[2]}__${e[3]}__${n}`;this.items.push(s),this.$emit("addItem",s);break}})},unmounted:function(){this.items.forEach(e=>{this.$emit("deleteItem",e)})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function h(e,n,s,b,E,l){const p=r("rux-monitoring-icon");return c(),a(p,{class:"rux-icon",style:o([l.pointerStyle,e.computedStyle]),icon:e.icon,status:l.status,label:e.label,sublabel:e.subLabel,onClick:l.clickHandler},null,8,["style","icon","status","label","sublabel","onClick"])}const f=m("default",u(t,[["render",h]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-6d6b6148fd97f6dd73ae.js","vue","single-spa","./OutputDialog-D7vLuueV-2204b36fc17e01c28df1.js","vue-router","vuex","vuetify"],function(w,L){"use strict";var p,c,t,r,s,a,o,g,h,v,d,m,f,k,C,D;return{setters:[e=>{p=e.s,c=e.I},e=>{t=e.resolveComponent,r=e.openBlock,s=e.createElementBlock,a=e.createVNode,o=e.withCtx,g=e.Fragment,h=e.renderList,v=e.mergeProps,d=e.createTextVNode,m=e.createElementVNode,f=e.toDisplayString,k=e.createBlock,C=e.createCommentVNode},null,e=>{D=e.J},null,null,null],execute:function(){const e={components:{OutputDialog:D},data(){return{routers:[],jsonContent:"",dialogTitle:"",showDialog:!1}},mounted(){this.update()},methods:{update(){c.get("/openc3-api/routers").then(i=>{this.routers=i.data})},add(){},showRouter(i){c.get(`/openc3-api/routers/${i}`).then(n=>{this.jsonContent=JSON.stringify(n.data,null," "),this.dialogTitle=i,this.showDialog=!0})},dialogCallback(i){this.showDialog=!1}}};function y(i,n,R,I,l,V){const N=t("v-list-item-title"),_=t("v-icon"),B=t("v-tooltip"),S=t("v-list-item"),j=t("v-divider"),x=t("v-list"),T=t("output-dialog");return r(),s("div",null,[a(x,{class:"list","data-test":"routerList"},{default:o(()=>[(r(!0),s(g,null,h(l.routers,(u,b)=>(r(),s("div",{key:b},[a(S,null,{append:o(()=>[a(B,{location:"top"},{activator:o(({props:E})=>[a(_,v({ref_for:!0},E,{onClick:J=>V.showRouter(u)}),{default:o(()=>n[1]||(n[1]=[d(" mdi-eye ")])),_:2},1040,["onClick"])]),default:o(()=>[n[2]||(n[2]=m("span",null,"Show Router Details",-1))]),_:2},1024)]),default:o(()=>[a(N,null,{default:o(()=>[d(f(u),1)]),_:2},1024)]),_:2},1024),a(j)]))),128))]),_:1}),l.showDialog?(r(),k(T,{key:0,modelValue:l.showDialog,"onUpdate:modelValue":n[0]||(n[0]=u=>l.showDialog=u),content:l.jsonContent,type:"Router",name:l.dialogTitle,onSubmit:V.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):C("",!0)])}const O=w("default",p(e,[["render",y],["__scopeId","data-v-82fc907b"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Layout-C1HoM4Kl-417cd02a11d96e992d80.js","./VerticalWidget-z6xUM-ql-ae963987b8cf0c0e3f98.js","vue","./main-6d6b6148fd97f6dd73ae.js","./Widget-C4QVI4IH-80b859328e2c8ee53918.js","vue-router","single-spa","vuex","vuetify"],function(v,k){"use strict";var l,c,s,i,o,u,m,g,p,f,d;return{setters:[e=>{l=e.r},e=>{c=e.default},e=>{s=e.openBlock,i=e.createElementBlock,o=e.normalizeStyle,u=e.Fragment,m=e.renderList,g=e.createBlock,p=e.resolveDynamicComponent,f=e.mergeProps},e=>{d=e.s},null,null,null,null,null],execute:function(){const e={mixins:[l],components:{VerticalWidget:c},created:function(){if(this.setHeight(this.parameters[0],"px",200),this.parameters[1]){let n=this.parameters[1];this.widgets.forEach(a=>{a.settings.find(r=>r[0]==="MARGIN"||r[0]==="RAW"&&r[1].toUpperCase().includes("MARGIN"))===void 0&&a.settings.push(["MARGIN",n])})}}};function y(n,a,r,B,x,z){return s(),i("div",{ref:"container",style:o(n.computedStyle),class:"overflow-y-auto"},[(s(!0),i(u,null,m(n.widgets,(t,h)=>(s(),g(p(t.type),f({ref_for:!0},n.listeners,{key:h,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const w=v("default",d(e,[["render",y]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-6d6b6148fd97f6dd73ae.js","vue","vue-router","single-spa","vuex","vuetify"],function(C,L){"use strict";var v,c,r,i,u,t,l,p,d,m,V,g,y,N,k;return{setters:[a=>{v=a.s,c=a.I},a=>{r=a.resolveComponent,i=a.openBlock,u=a.createElementBlock,t=a.createVNode,l=a.withCtx,p=a.createElementVNode,d=a.createTextVNode,m=a.toDisplayString,V=a.Fragment,g=a.renderList,y=a.mergeProps,N=a.createBlock,k=a.createCommentVNode},null,null,null,null],execute:function(){const a={data(){return{file:null,loadingSecret:!1,secrets:[],secretName:"",secretValue:"",alert:"",alertType:"success",showAlert:!1}},mounted(){this.update()},methods:{update(){c.get("/openc3-api/secrets").then(o=>{this.secrets=o.data})},upload:function(){this.loadingSecret=!0;let o=null;if(this.file){const e=new FormData;e.append("file",this.file,this.file.name),o=c.post(`/openc3-api/secrets/${this.secretName}`,{data:e,headers:{"Content-Type":"multipart/form-data"}})}else o=c.post(`/openc3-api/secrets/${this.secretName}`,{data:{value:this.secretValue}});o.then(e=>{this.loadingSecret=!1,this.file=null,this.secretName="",this.secretValue="",this.update()}).catch(e=>{this.loadingSecret=!1})},deleteSecret:function(o){this.$dialog.confirm(`Are you sure you want to remove: ${o}`,{okText:"Delete",cancelText:"Cancel"}).then(function(e){return c.delete(`/openc3-api/secrets/${o}`)}).then(e=>{this.alert=`Removed secret ${o}`,this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update()})}}};function b(o,e,z,j,s,x){const T=r("v-file-input"),f=r("v-col"),_=r("v-row"),S=r("v-text-field"),w=r("v-icon"),A=r("v-btn"),B=r("v-alert"),$=r("v-list-item-title"),D=r("v-tooltip"),E=r("v-list-item"),U=r("v-divider"),F=r("v-list");return i(),u("div",null,[t(_,{"no-gutters":""},{default:l(()=>[t(f,null,{default:l(()=>[t(T,{modelValue:s.file,"onUpdate:modelValue":e[0]||(e[0]=n=>s.file=n),"show-size":"",accept:"*",class:"mx-2",label:"Click to select a file to create a secret from or enter a secret value",ref:"fileInput"},null,8,["modelValue"])]),_:1})]),_:1}),t(_,{"no-gutters":"",align:"center",style:{"padding-left":"10px"}},{default:l(()=>[t(f,{cols:"3"},{default:l(()=>[t(S,{modelValue:s.secretName,"onUpdate:modelValue":e[1]||(e[1]=n=>s.secretName=n),label:"Secret Name",class:"px-2"},null,8,["modelValue"])]),_:1}),t(f,{cols:"3",class:"px-2"},{default:l(()=>[t(S,{modelValue:s.secretValue,"onUpdate:modelValue":e[2]||(e[2]=n=>s.secretValue=n),disabled:s.file,label:"Secret Value"},null,8,["modelValue","disabled"])]),_:1}),t(f,{cols:"3",class:"px-2"},{default:l(()=>[t(A,{onClick:e[3]||(e[3]=n=>x.upload()),class:"mx-2",color:"primary","data-test":"secretUpload",disabled:s.secretName===""||s.file==null&&s.secretValue==="",loading:s.loadingSecret},{loader:l(()=>e[6]||(e[6]=[p("span",null,"Loading...",-1)])),default:l(()=>[t(w,{start:"",theme:"dark"},{default:l(()=>e[5]||(e[5]=[d("mdi-cloud-upload")])),_:1}),e[7]||(e[7]=p("span",null," Set ",-1))]),_:1},8,["disabled","loading"])]),_:1})]),_:1}),t(B,{modelValue:s.showAlert,"onUpdate:modelValue":e[4]||(e[4]=n=>s.showAlert=n),closable:"",type:s.alertType},{default:l(()=>[d(m(s.alert),1)]),_:1},8,["modelValue","type"]),t(F,{"data-test":"secretList"},{default:l(()=>[(i(!0),u(V,null,g(s.secrets,(n,h)=>(i(),u("div",{key:h},[t(E,null,{append:l(()=>[t(D,{location:"top"},{activator:l(({props:I})=>[t(w,y({ref_for:!0},I,{onClick:G=>x.deleteSecret(n)}),{default:l(()=>e[8]||(e[8]=[d(" mdi-delete ")])),_:2},1040,["onClick"])]),default:l(()=>[e[9]||(e[9]=p("span",null,"Delete Secret",-1))]),_:2},1024)]),default:l(()=>[t($,null,{default:l(()=>[d(m(n),1)]),_:2},1024)]),_:2},1024),h<s.secrets.length-1?(i(),N(U,{key:h})):k("",!0)]))),128))]),_:1})])}const P=C("default",v(a,[["render",b]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["vue","./main-6d6b6148fd97f6dd73ae.js","vue-router","single-spa","vuex","vuetify"],function(P,Ce){"use strict";var a,m,x,o,V,l,r,U,w,S,F,H,A,T,W,_,E;return{setters:[h=>{a=h.resolveComponent,m=h.openBlock,x=h.createElementBlock,o=h.createVNode,V=h.createBlock,l=h.withCtx,r=h.createTextVNode,U=h.Fragment,w=h.renderList,S=h.toDisplayString,F=h.createSlots,H=h.mergeProps,A=h.createCommentVNode,T=h.withDirectives,W=h.vShow},h=>{_=h.s,E=h.F},null,null,null,null],execute:function(){const h={data(){return{suppressedWarnings:[],selectedSuppressedWarnings:[],selectAllSuppressedWarnings:!1}},watch:{selectAllSuppressedWarnings:function(t){t?this.selectedSuppressedWarnings=this.suppressedWarnings.map(e=>e.key):this.selectedSuppressedWarnings=[]}},created(){this.loadSuppressedWarnings()},methods:{loadSuppressedWarnings:function(){this.suppressedWarnings=Object.keys(localStorage).filter(t=>t.startsWith("suppresswarning__")).map(this.localStorageKeyToDisplayObject),this.selectedSuppressedWarnings=[]},localStorageKeyToDisplayObject:function(t){const e=t.split("__")[1].replaceAll("_"," ");return{key:t,text:e.charAt(0).toUpperCase()+e.slice(1),value:localStorage[t]}},resetSuppressedWarnings:function(){this.deleteLocalStorageKeys(this.selectedSuppressedWarnings),this.loadSuppressedWarnings()},deleteLocalStorageKeys:function(t){for(const e of t)delete localStorage[e]}}};function z(t,e,k,C,s,b){const y=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-checkbox"),c=a("v-card-text"),f=a("v-btn"),p=a("v-card-actions"),v=a("v-card");return m(),V(v,null,{default:l(()=>[o(y,null,{default:l(()=>e[2]||(e[2]=[r("Reset suppressed warnings")])),_:1}),o(u,null,{default:l(()=>e[3]||(e[3]=[r(` This resets "don't show this again" dialogs on this browser `)])),_:1}),o(c,null,{default:l(()=>[s.suppressedWarnings.length?(m(),x(U,{key:0},[o(i,{modelValue:s.selectAllSuppressedWarnings,"onUpdate:modelValue":e[0]||(e[0]=d=>s.selectAllSuppressedWarnings=d),label:"Select All Warnings",desity:"compact"},null,8,["modelValue"]),(m(!0),x(U,null,w(s.suppressedWarnings,d=>(m(),V(i,{key:d.key,modelValue:s.selectedSuppressedWarnings,"onUpdate:modelValue":e[1]||(e[1]=n=>s.selectedSuppressedWarnings=n),label:d.text,value:d.key,density:"compact","hide-details":""},null,8,["modelValue","label","value"]))),128))],64)):(m(),x(U,{key:1},[r(" No warnings to reset ")],64))]),_:1}),o(p,{class:"px-2"},{default:l(()=>[o(f,{disabled:!s.selectedSuppressedWarnings.length,onClick:b.resetSuppressedWarnings,color:"warning",variant:"text","data-test":"reset-suppressed-warnings"},{default:l(()=>e[4]||(e[4]=[r(" Reset ")])),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const J=_(h,[["render",z]]),G={data(){return{lastConfigs:[],selectedLastConfigs:[],selectAllLastConfigs:!1}},watch:{selectAllLastConfigs:function(t){t?this.selectedLastConfigs=this.lastConfigs.map(e=>e.key):this.selectedLastConfigs=[]}},created(){this.loadLastConfigs()},methods:{loadLastConfigs:function(){this.lastConfigs=Object.keys(localStorage).filter(t=>t.endsWith("__default")).map(t=>{const e=t.split("__")[0].replaceAll("_"," ");return{key:t,text:e.charAt(0).toUpperCase()+e.slice(1)}}),this.selectedLastConfigs=[]},clearLastConfigs:function(){this.deleteLocalStorageKeys(this.selectedLastConfigs),this.loadLastConfigs()},deleteLocalStorageKeys:function(t){for(const e of t)delete localStorage[e]}}};function $(t,e,k,C,s,b){const y=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-checkbox"),c=a("v-card-text"),f=a("v-btn"),p=a("v-card-actions"),v=a("v-card");return m(),V(v,null,{default:l(()=>[o(y,null,{default:l(()=>e[2]||(e[2]=[r(" Clear default configs ")])),_:1}),o(u,null,{default:l(()=>e[3]||(e[3]=[r(" This clears the default tool configs on this browser ")])),_:1}),o(c,null,{default:l(()=>[s.lastConfigs.length?(m(),x(U,{key:0},[o(i,{modelValue:s.selectAllLastConfigs,"onUpdate:modelValue":e[0]||(e[0]=d=>s.selectAllLastConfigs=d),label:"Select All Configs",density:"compact"},null,8,["modelValue"]),(m(!0),x(U,null,w(s.lastConfigs,d=>(m(),V(i,{key:d.key,modelValue:s.selectedLastConfigs,"onUpdate:modelValue":e[1]||(e[1]=n=>s.selectedLastConfigs=n),label:d.text,value:d.key,"hide-details":"",density:"compact"},null,8,["modelValue","label","value"]))),128))],64)):(m(),x(U,{key:1},[r(" No configs to clear ")],64))]),_:1}),o(p,{class:"px-2"},{default:l(()=>[o(f,{disabled:!s.selectedLastConfigs.length,onClick:b.clearLastConfigs,color:"warning",variant:"text","data-test":"clear-default-configs"},{default:l(()=>e[4]||(e[4]=[r(" Clear ")])),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const M=_(G,[["render",$]]),B={data(){return{api:new E,errorText:"",errorLoading:!1,errorSaving:!1,successSaving:!1}},methods:{loadSetting:function(t,e,k){this.api.get_setting(t).then(C=>{this.parseSetting(C)}).catch(C=>{this.parseSetting(null),this.errorText=C,this.errorLoading=!0})},saveSetting:function(t,e){this.api.set_setting(t,e).then(()=>{this.errorSaving=!1,this.successSaving=!0}).catch(()=>{this.errorSaving=!0,this.successSaving=!1})},parseSetting:function(t){}}},O="astro",Y={mixins:[B],data(){return{hideClock:!1}},created(){this.loadSetting(O)},methods:{save(){this.saveSetting(O,JSON.stringify({hideClock:this.hideClock}))},parseSetting:function(t){if(t){let e=JSON.parse(t);this.hideClock=e.hideClock}}}};function I(t,e,k,C,s,b){const y=a("v-card-title"),u=a("v-alert"),i=a("v-switch"),c=a("v-card-text"),f=a("v-btn"),p=a("v-card-actions"),v=a("v-card");return m(),V(v,null,{default:l(()=>[o(y,null,{default:l(()=>e[4]||(e[4]=[r("Astro Settings")])),_:1}),o(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=d=>t.errorLoading=d),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=d=>t.errorSaving=d),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=d=>t.successSaving=d),type:"success",closable:"",density:"compact"},{default:l(()=>e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(c,{class:"pb-0"},{default:l(()=>[o(i,{label:"Hide Astro Clock",modelValue:s.hideClock,"onUpdate:modelValue":e[3]||(e[3]=d=>s.hideClock=d),color:"primary"},null,8,["modelValue"])]),_:1}),o(p,null,{default:l(()=>[o(f,{onClick:b.save,color:"success",variant:"text","data-test":"save-astro-settings"},{default:l(()=>e[6]||(e[6]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const Q=_(Y,[["render",I]]),N="classification_banner",X={mixins:[B],data(){return{text:"",displayTopBanner:!1,displayBottomBanner:!1,topHeight:0,bottomHeight:0,selectedBackgroundColor:"red",customBackgroundColor:"",selectedFontColor:"white",customFontColor:"",customColorHint:"Enter a 3 or 6-digit hex color code",colors:[{text:"Yellow",value:"yellow"},{text:"Orange",value:"orange"},{text:"Red",value:"red"},{text:"Purple",value:"purple"},{text:"Blue",value:"blue"},{text:"Green",value:"green"},{text:"Black",value:"black"},{text:"White",value:"white"},{text:"Custom",value:!1}],rules:{customColor:t=>/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)||this.customColorHint}}},computed:{saveObj:function(){return JSON.stringify({text:this.text,fontColor:this.selectedFontColor||this.customFontColor,backgroundColor:this.selectedBackgroundColor||this.customBackgroundColor,topHeight:this.displayTopBanner?this.topHeight:0,bottomHeight:this.displayBottomBanner?this.bottomHeight:0})},formValid:function(){return(this.selectedFontColor||this.rules.customColor(this.customFontColor)===!0)&&(this.selectedBackgroundColor||this.rules.customColor(this.customBackgroundColor)===!0)}},watch:{displayTopBanner:function(t){t?this.topHeight=20:this.topHeight=0},displayBottomBanner:function(t){t?this.bottomHeight=20:this.bottomHeight=0},customFontColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customFontColor=`#${t}`)},customBackgroundColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customBackgroundColor=`#${t}`)}},created(){this.loadSetting(N)},methods:{save(){this.saveSetting(N,this.saveObj)},parseSetting:function(t){if(t){const e=JSON.parse(t);this.text=e.text,this.topHeight=e.topHeight,this.bottomHeight=e.bottomHeight,this.displayTopBanner=e.topHeight!==0,this.displayBottomBanner=e.bottomHeight!==0,e.backgroundColor&&e.backgroundColor.startsWith("#")?(this.customBackgroundColor=e.backgroundColor,this.selectedBackgroundColor=!1):this.selectedBackgroundColor=e.backgroundColor,e.fontColor&&e.fontColor.startsWith("#")?(this.customFontColor=e.fontColor,this.selectedFontColor=!1):this.selectedFontColor=e.fontColor}}}};function ee(t,e,k,C,s,b){const y=a("v-card-title"),u=a("v-alert"),i=a("v-text-field"),c=a("v-col"),f=a("v-row"),p=a("v-icon"),v=a("v-list-item"),d=a("v-select"),n=a("v-switch"),R=a("v-card-text"),ye=a("v-btn"),Se=a("v-card-actions"),Ve=a("v-card");return m(),V(Ve,null,{default:l(()=>[o(y,null,{default:l(()=>e[12]||(e[12]=[r("Classification Banner Settings")])),_:1}),o(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=g=>t.errorLoading=g),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=g=>t.errorSaving=g),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=g=>t.successSaving=g),type:"success",closable:"",density:"compact"},{default:l(()=>e[13]||(e[13]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(R,{class:"pb-0"},{default:l(()=>[o(f,{dense:""},{default:l(()=>[o(c,null,{default:l(()=>[o(i,{label:"Text",modelValue:s.text,"onUpdate:modelValue":e[3]||(e[3]=g=>s.text=g),"data-test":"classification-banner-text"},null,8,["modelValue"])]),_:1})]),_:1}),o(f,{dense:""},{default:l(()=>[o(c,null,{default:l(()=>[o(d,{label:"Background color",items:s.colors,"item-title":"text",modelValue:s.selectedBackgroundColor,"onUpdate:modelValue":e[4]||(e[4]=g=>s.selectedBackgroundColor=g),"data-test":"classification-banner-background-color"},F({item:l(({props:g,item:L})=>[o(v,H(g,{value:L.text}),{prepend:l(()=>[L.value?(m(),V(p,{key:0,color:L.value},{default:l(()=>e[15]||(e[15]=[r(" mdi-square ")])),_:2},1032,["color"])):A("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedBackgroundColor?{name:"prepend-inner",fn:l(()=>[o(p,{color:s.selectedBackgroundColor},{default:l(()=>e[14]||(e[14]=[r(" mdi-square ")])),_:1},8,["color"])]),key:"0"}:void 0]),1032,["items","modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(i,{label:"Custom background color",hint:s.customColorHint,disabled:s.selectedBackgroundColor!==!1,modelValue:s.customBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=g=>s.customBackgroundColor=g),rules:[s.rules.customColor],"data-test":"classification-banner-custom-background-color"},{"prepend-inner":l(()=>[T(o(p,{color:s.customBackgroundColor},{default:l(()=>e[16]||(e[16]=[r(" mdi-square ")])),_:1},8,["color"]),[[W,!s.selectedBackgroundColor]])]),_:1},8,["hint","disabled","modelValue","rules"])]),_:1}),o(c,null,{default:l(()=>[o(d,{label:"Font color",items:s.colors,"item-title":"text",modelValue:s.selectedFontColor,"onUpdate:modelValue":e[6]||(e[6]=g=>s.selectedFontColor=g),"data-test":"classification-banner-font-color"},F({item:l(({props:g,item:L})=>[o(v,H(g,{value:L.text}),{prepend:l(()=>[L.value?(m(),V(p,{key:0,color:L.value},{default:l(()=>e[18]||(e[18]=[r(" mdi-square ")])),_:2},1032,["color"])):A("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedFontColor?{name:"prepend-inner",fn:l(()=>[T(o(p,{color:s.selectedFontColor},{default:l(()=>e[17]||(e[17]=[r(" mdi-square ")])),_:1},8,["color"]),[[W,s.selectedFontColor]])]),key:"0"}:void 0]),1032,["items","modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(i,{label:"Custom font color",hint:s.customColorHint,disabled:s.selectedFontColor!==!1,modelValue:s.customFontColor,"onUpdate:modelValue":e[7]||(e[7]=g=>s.customFontColor=g),rules:[s.rules.customColor],"data-test":"classification-banner-custom-font-color"},{"prepend-inner":l(()=>[T(o(p,{color:s.customFontColor},{default:l(()=>e[19]||(e[19]=[r(" mdi-square ")])),_:1},8,["color"]),[[W,!s.selectedFontColor]])]),_:1},8,["hint","disabled","modelValue","rules"])]),_:1})]),_:1}),o(f,{dense:""},{default:l(()=>[o(c,null,{default:l(()=>[o(n,{label:"Display top banner",modelValue:s.displayTopBanner,"onUpdate:modelValue":e[8]||(e[8]=g=>s.displayTopBanner=g),color:"primary","data-test":"display-top-banner"},null,8,["modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(i,{label:"Top height",disabled:!s.displayTopBanner,type:"number",suffix:"px",modelValue:s.topHeight,"onUpdate:modelValue":e[9]||(e[9]=g=>s.topHeight=g),"data-test":"classification-banner-top-height"},null,8,["disabled","modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(n,{label:"Display bottom banner",modelValue:s.displayBottomBanner,"onUpdate:modelValue":e[10]||(e[10]=g=>s.displayBottomBanner=g),color:"primary","data-test":"display-bottom-banner"},null,8,["modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(i,{label:"Bottom height",disabled:!s.displayBottomBanner,type:"number",suffix:"px",modelValue:s.bottomHeight,"onUpdate:modelValue":e[11]||(e[11]=g=>s.bottomHeight=g),"data-test":"classification-banner-bottom-height"},null,8,["disabled","modelValue"])]),_:1})]),_:1})]),_:1}),o(Se,null,{default:l(()=>[o(ye,{disabled:!b.formValid,onClick:b.save,color:"success",variant:"text","data-test":"save-classification-banner"},{default:l(()=>e[20]||(e[20]=[r(" Save ")])),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const te=_(X,[["render",ee]]),Z="time_zone",oe={mixins:[B],data(){return{timeZones:["local","UTC"],timeZone:"local"}},created(){this.loadSetting(Z)},methods:{save(){this.saveSetting(Z,this.timeZone)},parseSetting:function(t){t&&(this.timeZone=t)}}};function le(t,e,k,C,s,b){const y=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-select"),f=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),d=a("v-card");return m(),V(d,null,{default:l(()=>[o(y,null,{default:l(()=>e[4]||(e[4]=[r("Time Zone")])),_:1}),o(u,null,{default:l(()=>e[5]||(e[5]=[r(" The time zone to display for all COSMOS tools. (Note: All timestamps are UTC in the backend). ")])),_:1}),o(i,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(i,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(i,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(f,null,{default:l(()=>[o(c,{modelValue:s.timeZone,"onUpdate:modelValue":e[3]||(e[3]=n=>s.timeZone=n),items:s.timeZones,label:"Select time display","hide-details":"","prepend-icon":"mdi-map-clock","single-line":"","data-test":"time-zone"},null,8,["modelValue","items"])]),_:1}),o(v,null,{default:l(()=>[o(p,{onClick:b.save,color:"success",variant:"text","data-test":"save-time-zone"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const ae=_(oe,[["render",le]]),D="subtitle",se={mixins:[B],data(){return{subtitle:""}},created(){this.loadSetting(D)},methods:{save(){this.saveSetting(D,this.subtitle)},parseSetting:function(t){t&&(this.subtitle=t)}}};function re(t,e,k,C,s,b){const y=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),f=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),d=a("v-card");return m(),V(d,null,{default:l(()=>[o(y,null,{default:l(()=>e[4]||(e[4]=[r("Subtitle")])),_:1}),o(u,null,{default:l(()=>e[5]||(e[5]=[r(" This sets a subtitle to display below the COSMOS logo in the Navigation bar. ")])),_:1}),o(i,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(i,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(i,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(f,{class:"pb-0"},{default:l(()=>[o(c,{label:"Subtitle",modelValue:s.subtitle,"onUpdate:modelValue":e[3]||(e[3]=n=>s.subtitle=n),"data-test":"subtitle"},null,8,["modelValue"])]),_:1}),o(v,null,{default:l(()=>[o(p,{onClick:b.save,color:"success",variant:"text","data-test":"save-subtitle"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const ne=_(se,[["render",re]]),j="source_url",ie={mixins:[B],data(){return{sourceUrl:"https://github.com/OpenC3/cosmos"}},created(){this.loadSetting(j)},methods:{save(){this.saveSetting(j,this.sourceUrl)},parseSetting:function(t){t&&(this.sourceUrl=t)}}};function de(t,e,k,C,s,b){const y=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),f=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),d=a("v-card");return m(),V(d,null,{default:l(()=>[o(y,null,{default:l(()=>e[4]||(e[4]=[r(" Source code URL ")])),_:1}),o(u,null,{default:l(()=>e[5]||(e[5]=[r(' This sets the URL for the "Source" link in the footer. This is required under the AGPL license. ')])),_:1}),o(i,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(i,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(i,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(f,{class:"pb-0"},{default:l(()=>[o(c,{label:"Source URL",modelValue:s.sourceUrl,"onUpdate:modelValue":e[3]||(e[3]=n=>s.sourceUrl=n),"data-test":"source-url"},null,8,["modelValue"])]),_:1}),o(v,null,{default:l(()=>[o(p,{onClick:b.save,color:"success",variant:"text","data-test":"save-source-url"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const ue=_(ie,[["render",de]]),q="rubygems_url",ce={mixins:[B],data(){return{rubygemsUrl:"https://rubygems.org"}},created(){this.loadSetting(q)},methods:{save(){this.saveSetting(q,this.rubygemsUrl)},parseSetting:function(t){t&&(this.rubygemsUrl=t)}}};function ge(t,e,k,C,s,b){const y=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),f=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),d=a("v-card");return m(),V(d,null,{default:l(()=>[o(y,null,{default:l(()=>e[4]||(e[4]=[r(" Rubygems URL ")])),_:1}),o(u,null,{default:l(()=>e[5]||(e[5]=[r(" This sets the URL for installing dependency rubygems. Also used for rubygem discovery. ")])),_:1}),o(i,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(i,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(i,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(f,{class:"pb-0"},{default:l(()=>[o(c,{label:"Rubygems URL",modelValue:s.rubygemsUrl,"onUpdate:modelValue":e[3]||(e[3]=n=>s.rubygemsUrl=n),"data-test":"rubygems-url"},null,8,["modelValue"])]),_:1}),o(v,null,{default:l(()=>[o(p,{onClick:b.save,color:"success",variant:"text","data-test":"save-rubygems-url"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const pe=_(ce,[["render",ge]]),K="pypi_url",me={mixins:[B],data(){return{pypiUrl:"https://pypi.org"}},created(){this.loadSetting(K)},methods:{save(){this.saveSetting(K,this.pypiUrl)},parseSetting:function(t){t&&(this.pypiUrl=t)}}};function fe(t,e,k,C,s,b){const y=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),f=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),d=a("v-card");return m(),V(d,null,{default:l(()=>[o(y,null,{default:l(()=>e[4]||(e[4]=[r(" Pypi URL ")])),_:1}),o(u,null,{default:l(()=>e[5]||(e[5]=[r(" This sets the URL for installing dependency python packages. Also used for package discovery. ")])),_:1}),o(i,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(i,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:l(()=>[r(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),o(i,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:l(()=>e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ")])),_:1},8,["modelValue"]),o(f,{class:"pb-0"},{default:l(()=>[o(c,{label:"Pypi URL",modelValue:s.pypiUrl,"onUpdate:modelValue":e[3]||(e[3]=n=>s.pypiUrl=n),"data-test":"pypi-url"},null,8,["modelValue"])]),_:1}),o(v,null,{default:l(()=>[o(p,{onClick:b.save,color:"success",variant:"text","data-test":"save-pypi-url"},{default:l(()=>e[7]||(e[7]=[r(" Save ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const he=_(me,[["render",fe]]),ve={components:{SuppressedSettings:J,DefaultConfigSettings:M,AstroSettings:Q,ClassificationBannerSettings:te,TimeZoneSettings:ae,SubtitleSettings:ne,SourceCodeSettings:ue,RubyGemsSettings:pe,PypiSettings:he}};function be(t,e,k,C,s,b){const y=a("suppressed-settings"),u=a("v-divider"),i=a("default-config-settings"),c=a("astro-settings"),f=a("time-zone-settings"),p=a("classification-banner-settings"),v=a("subtitle-settings"),d=a("source-code-settings"),n=a("ruby-gems-settings"),R=a("pypi-settings");return m(),x("div",null,[o(y),o(u),o(i),o(u),o(c),o(u),o(f),o(u),o(p),o(u),o(v),o(u),o(d),o(u),o(n),o(u),o(R)])}const _e=P("default",_(ve,[["render",be]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./VWidget-02CG-3Av-a973337ad24b9f4eb395.js","vue","./main-6d6b6148fd97f6dd73ae.js","./Widget-C4QVI4IH-80b859328e2c8ee53918.js","vue-router","single-spa","vuex","vuetify"],function(p,g){"use strict";var r,a,s,l,n,i,c,o,u;return{setters:[t=>{r=t.L},t=>{a=t.resolveComponent,s=t.openBlock,l=t.createBlock,n=t.normalizeStyle,i=t.withCtx,c=t.createTextVNode,o=t.toDisplayString},t=>{u=t.s},null,null,null,null,null],execute:function(){const t={mixins:[r],props:{value:{default:null}},data:function(){return{item:null,oneBar:30,twoBar:60,threeBar:90}},computed:{displayedIcon:function(){let e="mdi-signal-cellular-outline";return this._value>=this.oneBar&&(e="mdi-signal-cellular-1"),this._value>=this.twoBar&&(e="mdi-signal-cellular-2"),this._value>=this.threeBar&&(e="mdi-signal-cellular-3"),e}},created(){this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"VALUES":this.oneBar=parseFloat(e[1]),this.twoBar=parseFloat(e[2]),this.threeBar=parseFloat(e[3]);break}})},methods:{getType(){let e="CONVERTED";return this.parameters[3]=="RAW"&&(e="RAW"),e},clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function d(e,B,y,f,C,h){const m=a("v-icon");return s(),l(m,{onClick:h.clickHandler,style:n(e.computedStyle)},{default:i(()=>[c(o(h.displayedIcon),1)]),_:1},8,["onClick","style"])}const v=p("default",u(t,[["render",d]]))}}});
@@ -1 +1 @@
1
- System.register(["vue","./main-7b39afe9b1c97330416a.js"],function(x,O){"use strict";var a,h,v,l,o,n,d,w,f,c,m;return{setters:[e=>{a=e.resolveComponent,h=e.openBlock,v=e.createBlock,l=e.withCtx,o=e.createVNode,n=e.createElementVNode,d=e.toDisplayString,w=e.normalizeProps,f=e.guardReactiveProps,c=e.createTextVNode},e=>{m=e.s}],execute:function(){const e={props:{modelValue:Boolean,text:String,title:String,width:{type:Number,default:800}},computed:{show:{get(){return this.modelValue},set(i){this.$emit("update:modelValue",i)}}},methods:{download:function(){const i=new Blob([this.text],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(i),t.setAttribute("download",`${this.title}.txt`),t.click()}}},V={class:"mx-2"},g={class:"pa-3"},_={class:"text"};function k(i,t,p,U,E,s){const u=a("v-spacer"),N=a("v-icon"),b=a("v-tooltip"),y=a("v-toolbar"),B=a("v-card-text"),C=a("v-btn"),S=a("v-card-actions"),R=a("v-card"),D=a("v-dialog");return h(),v(D,{modelValue:s.show,"onUpdate:modelValue":t[1]||(t[1]=r=>s.show=r),width:p.width,scrollable:""},{default:l(()=>[o(R,null,{default:l(()=>[o(y,{height:"24"},{default:l(()=>[o(u),n("span",null,d(p.title),1),o(u),n("div",V,[o(b,{location:"top"},{activator:l(({props:r})=>[n("div",w(f(r)),[o(N,{"data-test":"downloadIcon",onClick:s.download},{default:l(()=>t[2]||(t[2]=[c(" mdi-download ")])),_:1},8,["onClick"])],16)]),default:l(()=>[t[3]||(t[3]=n("span",null," Download ",-1))]),_:1})])]),_:1}),o(B,{style:{"max-height":"80vh"}},{default:l(()=>[n("div",g,[n("span",_,d(p.text),1)])]),_:1}),o(S,{class:"px-2"},{default:l(()=>[o(u),o(C,{variant:"flat",onClick:t[0]||(t[0]=r=>s.show=!s.show)},{default:l(()=>t[4]||(t[4]=[c(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","width"])}const P=x("O",m(e,[["render",k],["__scopeId","data-v-a60ace75"]]))}}});
1
+ System.register(["vue","./main-6d6b6148fd97f6dd73ae.js"],function(x,O){"use strict";var a,h,v,l,o,n,d,w,f,c,m;return{setters:[e=>{a=e.resolveComponent,h=e.openBlock,v=e.createBlock,l=e.withCtx,o=e.createVNode,n=e.createElementVNode,d=e.toDisplayString,w=e.normalizeProps,f=e.guardReactiveProps,c=e.createTextVNode},e=>{m=e.s}],execute:function(){const e={props:{modelValue:Boolean,text:String,title:String,width:{type:Number,default:800}},computed:{show:{get(){return this.modelValue},set(i){this.$emit("update:modelValue",i)}}},methods:{download:function(){const i=new Blob([this.text],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(i),t.setAttribute("download",`${this.title}.txt`),t.click()}}},V={class:"mx-2"},g={class:"pa-3"},_={class:"text"};function k(i,t,p,U,E,s){const u=a("v-spacer"),N=a("v-icon"),b=a("v-tooltip"),y=a("v-toolbar"),B=a("v-card-text"),C=a("v-btn"),S=a("v-card-actions"),R=a("v-card"),D=a("v-dialog");return h(),v(D,{modelValue:s.show,"onUpdate:modelValue":t[1]||(t[1]=r=>s.show=r),width:p.width,scrollable:""},{default:l(()=>[o(R,null,{default:l(()=>[o(y,{height:"24"},{default:l(()=>[o(u),n("span",null,d(p.title),1),o(u),n("div",V,[o(b,{location:"top"},{activator:l(({props:r})=>[n("div",w(f(r)),[o(N,{"data-test":"downloadIcon",onClick:s.download},{default:l(()=>t[2]||(t[2]=[c(" mdi-download ")])),_:1},8,["onClick"])],16)]),default:l(()=>[t[3]||(t[3]=n("span",null," Download ",-1))]),_:1})])]),_:1}),o(B,{style:{"max-height":"80vh"}},{default:l(()=>[n("div",g,[n("span",_,d(p.text),1)])]),_:1}),o(S,{class:"px-2"},{default:l(()=>[o(u),o(C,{variant:"flat",onClick:t[0]||(t[0]=r=>s.show=!s.show)},{default:l(()=>t[4]||(t[4]=[c(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","width"])}const P=x("O",m(e,[["render",k],["__scopeId","data-v-a60ace75"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-C4QVI4IH-80b859328e2c8ee53918.js","vue","./main-6d6b6148fd97f6dd73ae.js","vue-router","single-spa","vuex","vuetify"],function(i,o){"use strict";var t,n,s,l,r;return{setters:[e=>{t=e.o},e=>{n=e.openBlock,s=e.createElementBlock,l=e.normalizeStyle},e=>{r=e.s},null,null,null,null],execute:function(){const e={mixins:[t],created(){this.settings.push(["WIDTH",this.parameters[0]]),this.settings.push(["HEIGHT",this.parameters[1]])}};function u(c,m,p,h,d,v){return n(),s("div",{style:l(c.computedStyle)},null,4)}const a=i("default",r(e,[["render",u]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./GraphWidget-amwxyH1r-ae1fe3465676228a4925.js","./main-6d6b6148fd97f6dd73ae.js","vue","single-spa","./Widget-C4QVI4IH-80b859328e2c8ee53918.js","vue-router","vuex","vuetify"],function(l,c){"use strict";var i,s,n,r,a,o,d;return{setters:[t=>{i=t.S,s=t._},t=>{n=t.s},t=>{r=t.resolveComponent,a=t.openBlock,o=t.createBlock,d=t.normalizeStyle},null,null,null,null,null],execute:function(){const t={components:{Graph:i},mixins:[s],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}};function p(e,g,m,v,y,f){const h=r("graph");return a(),o(h,{ref:"graph"+e.id,id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,style:d(e.computedStyle),sparkline:""},null,8,["id","state","selected-graph-id","startTime","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style"])}const u=l("default",n(t,[["render",p]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Layout-C1HoM4Kl-417cd02a11d96e992d80.js","vue","./main-6d6b6148fd97f6dd73ae.js","./Widget-C4QVI4IH-80b859328e2c8ee53918.js","vue-router","single-spa","vuex","vuetify"],function(k,z){"use strict";var p,l,n,s,g,v,i,c,o,u,y,f,w,b,V;return{setters:[e=>{p=e.r},e=>{l=e.resolveComponent,n=e.openBlock,s=e.createElementBlock,g=e.createVNode,v=e.normalizeStyle,i=e.withCtx,c=e.Fragment,o=e.renderList,u=e.createBlock,y=e.createTextVNode,f=e.toDisplayString,w=e.resolveDynamicComponent,b=e.mergeProps},e=>{V=e.s},null,null,null,null,null],execute:function(){const e={mixins:[p],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function C(t,m,h,D,L,j){const T=l("v-tab"),x=l("v-tabs"),B=l("v-window-item"),S=l("v-window");return n(),s("div",null,[g(x,{modelValue:t.curTab,"onUpdate:modelValue":m[0]||(m[0]=a=>t.curTab=a),style:v(t.computedStyle)},{default:i(()=>[(n(!0),s(c,null,o(t.widgets,(a,d)=>(n(),u(T,{key:d},{default:i(()=>[y(f(a.parameters[0]),1)]),_:2},1024))),128))]),_:1},8,["modelValue","style"]),g(S,{modelValue:t.curTab,"onUpdate:modelValue":m[1]||(m[1]=a=>t.curTab=a)},{default:i(()=>[(n(!0),s(c,null,o(t.widgets,(a,d)=>(n(),u(B,{key:d},{default:i(()=>[(n(!0),s(c,null,o(a.widgets,(r,N)=>(n(),u(w(r.type),b({ref_for:!0},t.listeners,{key:`${d}-${N}`,target:r.target,parameters:r.parameters,settings:r.settings,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,widgets:r.widgets,name:r.name,line:r.line,"line-number":r.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))]),_:2},1024))),128))]),_:1},8,["modelValue"])])}const _=k("default",V(e,[["render",C]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-6d6b6148fd97f6dd73ae.js","vue","single-spa","./OutputDialog-D7vLuueV-2204b36fc17e01c28df1.js","vue-router","vuex","vuetify"],function(N,F){"use strict";var D,p,n,d,u,o,a,y,T,f,g,h,v,w,V,_;return{setters:[e=>{D=e.s,p=e.I},e=>{n=e.resolveComponent,d=e.openBlock,u=e.createElementBlock,o=e.createVNode,a=e.withCtx,y=e.Fragment,T=e.renderList,f=e.mergeProps,g=e.createTextVNode,h=e.createElementVNode,v=e.createCommentVNode,w=e.toDisplayString,V=e.createBlock},null,e=>{_=e.J},null,null,null],execute:function(){const e={components:{OutputDialog:_},data(){return{targets:[],jsonContent:"",dialogTitle:"",showDialog:!1}},mounted(){this.update()},methods:{update(){p.get("/openc3-api/targets_modified").then(l=>{this.targets=l.data})},showTarget(l){p.get(`/openc3-api/targets/${l}`).then(t=>{this.jsonContent=JSON.stringify(t.data,null," "),this.dialogTitle=l,this.showDialog=!0})},dialogCallback(l){this.showDialog=!1},downloadTarget:function(l){p.post(`/openc3-api/targets/${l}/download`).then(t=>{const m=window.atob(t.data.contents),k=new Uint8Array(m.length);for(let c=0;c<m.length;++c)k[c]=m.charCodeAt(c);const i=new Blob([k],{type:"application/zip"}),s=document.createElement("a");s.href=URL.createObjectURL(i),s.setAttribute("download",t.data.filename),s.click()})}}},B={key:0,class:"mx-3"};function L(l,t,m,k,i,s){const c=n("v-list-item-title"),S=n("v-list-item-subtitle"),b=n("v-icon"),x=n("v-tooltip"),j=n("v-list-item"),E=n("v-divider"),O=n("v-list"),U=n("output-dialog");return d(),u("div",null,[o(O,{class:"list","data-test":"targetList"},{default:a(()=>[(d(!0),u(y,null,T(i.targets,r=>(d(),u("div",{key:r},[o(j,null,{append:a(()=>[r.modified?(d(),u("div",B,[o(x,{location:"top"},{activator:a(({props:C})=>[o(b,f({ref_for:!0},C,{onClick:A=>s.downloadTarget(r.name)}),{default:a(()=>t[1]||(t[1]=[g(" mdi-download ")])),_:2},1040,["onClick"])]),default:a(()=>[t[2]||(t[2]=h("span",null,"Download Target Modified Files",-1))]),_:2},1024)])):v("",!0),o(x,{location:"top"},{activator:a(({props:C})=>[o(b,f({ref_for:!0},C,{onClick:A=>s.showTarget(r.name)}),{default:a(()=>t[3]||(t[3]=[g(" mdi-eye ")])),_:2},1040,["onClick"])]),default:a(()=>[t[4]||(t[4]=h("span",null,"Show Target Details",-1))]),_:2},1024)]),default:a(()=>[o(c,null,{default:a(()=>[g(w(r.name),1)]),_:2},1024),o(S,null,{default:a(()=>[g("Plugin: "+w(r.plugin),1)]),_:2},1024)]),_:2},1024),o(E)]))),128))]),_:1}),i.showDialog?(d(),V(U,{key:0,modelValue:i.showDialog,"onUpdate:modelValue":t[0]||(t[0]=r=>i.showDialog=r),content:i.jsonContent,type:"Target",name:i.dialogTitle,onSubmit:s.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):v("",!0)])}const I=N("default",D(e,[["render",L],["__scopeId","data-v-6dc7b8d4"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-6d6b6148fd97f6dd73ae.js","vue","./DetailsDialog-DLRMqetn-55763452729cfe2e3307.js","single-spa","./VWidget-02CG-3Av-a973337ad24b9f4eb395.js","vue-router","vuex","vuetify","./Widget-C4QVI4IH-80b859328e2c8ee53918.js"],function(y,N){"use strict";var c,a,s,r,n,u,d,l,m,h,g,p,v,x,f,w;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,s=e.openBlock,r=e.createElementBlock,n=e.createVNode,u=e.normalizeClass,d=e.normalizeStyle,l=e.withCtx,m=e.Fragment,h=e.renderList,g=e.createBlock,p=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{f=e.P},null,e=>{w=e.L},null,null,null,null],execute:function(){const e={components:{DetailsDialog:f},data:function(){return{width:200,height:200}},mixins:[w],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){let t="CONVERTED";return this.parameters[5]&&(t=this.parameters[5]),t}}},C={class:"textbox-widget-container"};function V(t,o,E,j,F,k){const D=a("v-textarea"),S=a("v-list-item-title"),B=a("v-list-item"),M=a("v-list"),_=a("v-menu"),z=a("details-dialog");return s(),r("div",C,[n(D,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:u(t.valueClass),style:d([t.computedStyle,k.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(_,{modelValue:t.contextMenuShown,"onUpdate:modelValue":o[0]||(o[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(M,null,{default:l(()=>[(s(!0),r(m,null,h(t.contextMenuOptions,(i,L)=>(s(),g(B,{key:L,onClick:p(i.action,["stop"])},{default:l(()=>[n(S,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(z,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":o[1]||(o[1]=i=>t.viewDetails=i)},null,8,["target-name","packet-name","item-name","modelValue"])])}const T=y("default",c(e,[["render",V],["__scopeId","data-v-10f560aa"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-C4QVI4IH-80b859328e2c8ee53918.js","vue","./main-6d6b6148fd97f6dd73ae.js","vue-router","single-spa","vuex","vuetify"],function(i,h){"use strict";var t,l,n,s,a,o;return{setters:[e=>{t=e.o},e=>{l=e.resolveComponent,n=e.openBlock,s=e.createBlock,a=e.normalizeStyle},e=>{o=e.s},null,null,null,null],execute:function(){const e={mixins:[t],data(){return{value:null}},created(){this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}};function c(d,r,y,f,u,x){const m=l("v-text-field");return n(),s(m,{variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),style:a(d.computedStyle)},null,8,["modelValue","style"])}const p=i("default",o(e,[["render",c]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-C4QVI4IH-80b859328e2c8ee53918.js","./main-6d6b6148fd97f6dd73ae.js","vue","vue-router","single-spa","vuex","vuetify"],function(m,V){"use strict";var l,i,n,a,s,r,o;return{setters:[e=>{l=e.o},e=>{i=e.s,n=e.P},e=>{a=e.resolveComponent,s=e.openBlock,r=e.createBlock,o=e.normalizeStyle},null,null,null,null],execute:function(){const e={mixins:[l,n],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function c(d,u,f,v,t,b){const h=a("v-text-field");return s(),r(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=p=>t.timeValue=p),label:t.label,style:o(d.computedStyle),type:"time","hide-details":""},null,8,["modelValue","label","style"])}const y=m("default",i(e,[["render",c]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-C4QVI4IH-80b859328e2c8ee53918.js","vue","./main-6d6b6148fd97f6dd73ae.js","vue-router","single-spa","vuex","vuetify"],function(o,p){"use strict";var t,r,n,l,s,a;return{setters:[e=>{t=e.o},e=>{r=e.openBlock,n=e.createElementBlock,l=e.normalizeStyle,s=e.toDisplayString},e=>{a=e.s},null,null,null,null],execute:function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function i(c,f,x,y,g,u){return r(),n("span",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},s(u.labelText),5)}const m=o("default",a(e,[["render",i]]))}}});
@@ -1,6 +1,6 @@
1
- System.register(["./main-7b39afe9b1c97330416a.js","vue","./OutputDialog-Cqz9_MPm-909bbcae633ec90197fa.js","vue-router","vuex","vuetify"],function(ze,So){"use strict";var ye,rt,Y,ht,Mt,A,P,pt,qt,Bt,we,De,_e,Qt,te,ee,Ee;return{setters:[S=>{ye=S.s,rt=S.O},S=>{Y=S.resolveComponent,ht=S.openBlock,Mt=S.createElementBlock,A=S.createVNode,P=S.withCtx,pt=S.createTextVNode,qt=S.toDisplayString,Bt=S.createElementVNode,we=S.Fragment,De=S.renderList,_e=S.normalizeClass,Qt=S.mergeProps,te=S.createBlock,ee=S.createCommentVNode},S=>{Ee=S.J},null,null,null],execute:function(){/**!
1
+ System.register(["./main-6d6b6148fd97f6dd73ae.js","vue","single-spa","./OutputDialog-D7vLuueV-2204b36fc17e01c28df1.js","vue-router","vuex","vuetify"],function(ze,So){"use strict";var ye,rt,Y,ht,Mt,A,I,pt,qt,Bt,we,De,_e,Qt,te,ee,Ee;return{setters:[S=>{ye=S.s,rt=S.I},S=>{Y=S.resolveComponent,ht=S.openBlock,Mt=S.createElementBlock,A=S.createVNode,I=S.withCtx,pt=S.createTextVNode,qt=S.toDisplayString,Bt=S.createElementVNode,we=S.Fragment,De=S.renderList,_e=S.normalizeClass,Qt=S.mergeProps,te=S.createBlock,ee=S.createCommentVNode},null,S=>{Ee=S.J},null,null,null],execute:function(){/**!
2
2
  * Sortable 1.15.6
3
3
  * @author RubaXa <trash@rubaxa.org>
4
4
  * @author owenm <owen23355@gmail.com>
5
5
  * @license MIT
6
- */function S(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function U(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?S(Object(o),!0).forEach(function(n){Ge(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):S(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function Rt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rt=function(e){return typeof e}:Rt=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(t)}function Ge(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function J(){return J=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},J.apply(this,arguments)}function Je(t,e){if(t==null)return{};var o={},n=Object.keys(t),i,r;for(r=0;r<n.length;r++)i=n[r],!(e.indexOf(i)>=0)&&(o[i]=t[i]);return o}function Ze(t,e){if(t==null)return{};var o=Je(t,e),n,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i<r.length;i++)n=r[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var Ke="1.15.6";function Z(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var K=Z(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),_t=Z(/Edge/i),Se=Z(/firefox/i),Et=Z(/safari/i)&&!Z(/chrome/i)&&!Z(/android/i),oe=Z(/iP(ad|od|hone)/i),Te=Z(/chrome/i)&&Z(/android/i),Ce={capture:!1,passive:!1};function b(t,e,o){t.addEventListener(e,o,!K&&Ce)}function v(t,e,o){t.removeEventListener(e,o,!K&&Ce)}function Xt(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function xe(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function H(t,e,o,n){if(t){o=o||document;do{if(e!=null&&(e[0]===">"?t.parentNode===o&&Xt(t,e):Xt(t,e))||n&&t===o)return t;if(t===o)break}while(t=xe(t))}return null}var Oe=/\s+/g;function X(t,e,o){if(t&&e)if(t.classList)t.classList[o?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(Oe," ").replace(" "+e+" "," ");t.className=(n+(o?" "+e:"")).replace(Oe," ")}}function p(t,e,o){var n=t&&t.style;if(n){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(o=t.currentStyle),e===void 0?o:o[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=o+(typeof o=="string"?"":"px")}}function ft(t,e){var o="";if(typeof t=="string")o=t;else do{var n=p(t,"transform");n&&n!=="none"&&(o=n+" "+o)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(o)}function Ne(t,e,o){if(t){var n=t.getElementsByTagName(e),i=0,r=n.length;if(o)for(;i<r;i++)o(n[i],i);return n}return[]}function z(){var t=document.scrollingElement;return t||document.documentElement}function x(t,e,o,n,i){if(!(!t.getBoundingClientRect&&t!==window)){var r,a,c,l,u,d,h;if(t!==window&&t.parentNode&&t!==z()?(r=t.getBoundingClientRect(),a=r.top,c=r.left,l=r.bottom,u=r.right,d=r.height,h=r.width):(a=0,c=0,l=window.innerHeight,u=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(e||o)&&t!==window&&(i=i||t.parentNode,!K))do if(i&&i.getBoundingClientRect&&(p(i,"transform")!=="none"||o&&p(i,"position")!=="static")){var D=i.getBoundingClientRect();a-=D.top+parseInt(p(i,"border-top-width")),c-=D.left+parseInt(p(i,"border-left-width")),l=a+r.height,u=c+r.width;break}while(i=i.parentNode);if(n&&t!==window){var m=ft(i||t),C=m&&m.a,w=m&&m.d;m&&(a/=w,c/=C,h/=C,d/=w,l=a+d,u=c+h)}return{top:a,left:c,bottom:l,right:u,width:h,height:d}}}function Ae(t,e,o){for(var n=tt(t,!0),i=x(t)[e];n;){var r=x(n)[o],a=void 0;if(a=i>=r,!a)return n;if(n===z())break;n=tt(n,!1)}return!1}function gt(t,e,o,n){for(var i=0,r=0,a=t.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==f.ghost&&(n||a[r]!==f.dragged)&&H(a[r],o.draggable,t,!1)){if(i===e)return a[r];i++}r++}return null}function ne(t,e){for(var o=t.lastElementChild;o&&(o===f.ghost||p(o,"display")==="none"||e&&!Xt(o,e));)o=o.previousElementSibling;return o||null}function j(t,e){var o=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==f.clone&&(!e||Xt(t,e))&&o++;return o}function Pe(t){var e=0,o=0,n=z();if(t)do{var i=ft(t),r=i.a,a=i.d;e+=t.scrollLeft*r,o+=t.scrollTop*a}while(t!==n&&(t=t.parentNode));return[e,o]}function qe(t,e){for(var o in t)if(t.hasOwnProperty(o)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[o][n])return Number(o)}return-1}function tt(t,e){if(!t||!t.getBoundingClientRect)return z();var o=t,n=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var i=p(o);if(o.clientWidth<o.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return z();if(n||e)return o;n=!0}}while(o=o.parentNode);return z()}function Qe(t,e){if(t&&e)for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);return t}function ie(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var St;function Ie(t,e){return function(){if(!St){var o=arguments,n=this;o.length===1?t.call(n,o[0]):t.apply(n,o),St=setTimeout(function(){St=void 0},e)}}}function to(){clearTimeout(St),St=void 0}function ke(t,e,o){t.scrollLeft+=e,t.scrollTop+=o}function Me(t){var e=window.Polymer,o=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):o?o(t).clone(!0)[0]:t.cloneNode(!0)}function Be(t,e,o){var n={};return Array.from(t.children).forEach(function(i){var r,a,c,l;if(!(!H(i,e.draggable,t,!1)||i.animated||i===o)){var u=x(i);n.left=Math.min((r=n.left)!==null&&r!==void 0?r:1/0,u.left),n.top=Math.min((a=n.top)!==null&&a!==void 0?a:1/0,u.top),n.right=Math.max((c=n.right)!==null&&c!==void 0?c:-1/0,u.right),n.bottom=Math.max((l=n.bottom)!==null&&l!==void 0?l:-1/0,u.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var B="Sortable"+new Date().getTime();function eo(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(n){if(!(p(n,"display")==="none"||n===f.ghost)){t.push({target:n,rect:x(n)});var i=U({},t[t.length-1].rect);if(n.thisAnimationDuration){var r=ft(n,!0);r&&(i.top-=r.f,i.left-=r.e)}n.fromRect=i}})}},addAnimationState:function(o){t.push(o)},removeAnimationState:function(o){t.splice(qe(t,{target:o}),1)},animateAll:function(o){var n=this;if(!this.options.animation){clearTimeout(e),typeof o=="function"&&o();return}var i=!1,r=0;t.forEach(function(a){var c=0,l=a.target,u=l.fromRect,d=x(l),h=l.prevFromRect,D=l.prevToRect,m=a.rect,C=ft(l,!0);C&&(d.top-=C.f,d.left-=C.e),l.toRect=d,l.thisAnimationDuration&&ie(h,d)&&!ie(u,d)&&(m.top-d.top)/(m.left-d.left)===(u.top-d.top)/(u.left-d.left)&&(c=no(m,h,D,n.options)),ie(d,u)||(l.prevFromRect=u,l.prevToRect=d,c||(c=n.options.animation),n.animate(l,m,d,c)),c&&(i=!0,r=Math.max(r,c),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},c),l.thisAnimationDuration=c)}),clearTimeout(e),i?e=setTimeout(function(){typeof o=="function"&&o()},r):typeof o=="function"&&o(),t=[]},animate:function(o,n,i,r){if(r){p(o,"transition",""),p(o,"transform","");var a=ft(this.el),c=a&&a.a,l=a&&a.d,u=(n.left-i.left)/(c||1),d=(n.top-i.top)/(l||1);o.animatingX=!!u,o.animatingY=!!d,p(o,"transform","translate3d("+u+"px,"+d+"px,0)"),this.forRepaintDummy=oo(o),p(o,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),p(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){p(o,"transition",""),p(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},r)}}}}function oo(t){return t.offsetWidth}function no(t,e,o,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-o.top,2)+Math.pow(e.left-o.left,2))*n.animation}var mt=[],re={initializeByDefault:!0},Tt={mount:function(t){for(var e in re)re.hasOwnProperty(e)&&!(e in t)&&(t[e]=re[e]);mt.forEach(function(o){if(o.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),mt.push(t)},pluginEvent:function(t,e,o){var n=this;this.eventCanceled=!1,o.cancel=function(){n.eventCanceled=!0};var i=t+"Global";mt.forEach(function(r){e[r.pluginName]&&(e[r.pluginName][i]&&e[r.pluginName][i](U({sortable:e},o)),e.options[r.pluginName]&&e[r.pluginName][t]&&e[r.pluginName][t](U({sortable:e},o)))})},initializePlugins:function(t,e,o,n){mt.forEach(function(a){var c=a.pluginName;if(!(!t.options[c]&&!a.initializeByDefault)){var l=new a(t,e,t.options);l.sortable=t,l.options=t.options,t[c]=l,J(o,l.defaults)}});for(var i in t.options)if(t.options.hasOwnProperty(i)){var r=this.modifyOption(t,i,t.options[i]);typeof r<"u"&&(t.options[i]=r)}},getEventProperties:function(t,e){var o={};return mt.forEach(function(n){typeof n.eventProperties=="function"&&J(o,n.eventProperties.call(e[n.pluginName],t))}),o},modifyOption:function(t,e,o){var n;return mt.forEach(function(i){t[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[e]=="function"&&(n=i.optionListeners[e].call(t[i.pluginName],o))}),n}};function io(t){var e=t.sortable,o=t.rootEl,n=t.name,i=t.targetEl,r=t.cloneEl,a=t.toEl,c=t.fromEl,l=t.oldIndex,u=t.newIndex,d=t.oldDraggableIndex,h=t.newDraggableIndex,D=t.originalEvent,m=t.putSortable,C=t.extraEventProperties;if(e=e||o&&o[B],!!e){var w,$=e.options,y="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!K&&!_t?w=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(w=document.createEvent("Event"),w.initEvent(n,!0,!0)),w.to=a||o,w.from=c||o,w.item=i||o,w.clone=r,w.oldIndex=l,w.newIndex=u,w.oldDraggableIndex=d,w.newDraggableIndex=h,w.originalEvent=D,w.pullMode=m?m.lastPutMode:void 0;var V=U(U({},C),Tt.getEventProperties(n,e));for(var N in V)w[N]=V[N];o&&o.dispatchEvent(w),$[y]&&$[y].call(e,w)}}var ro=["evt"],R=function(t,e){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=o.evt,i=Ze(o,ro);Tt.pluginEvent.bind(f)(t,e,U({dragEl:s,parentEl:T,ghostEl:g,rootEl:_,nextEl:at,lastDownEl:Ft,cloneEl:E,cloneHidden:et,dragStarted:xt,putSortable:I,activeSortable:f.active,originalEvent:n,oldIndex:vt,oldDraggableIndex:Ct,newIndex:F,newDraggableIndex:ot,hideGhostForTarget:Ve,unhideGhostForTarget:He,cloneNowHidden:function(){et=!0},cloneNowShown:function(){et=!1},dispatchSortableEvent:function(r){M({sortable:e,name:r,originalEvent:n})}},i))};function M(t){io(U({putSortable:I,cloneEl:E,targetEl:s,rootEl:_,oldIndex:vt,oldDraggableIndex:Ct,newIndex:F,newDraggableIndex:ot},t))}var s,T,g,_,at,Ft,E,et,vt,F,Ct,ot,Lt,I,bt=!1,Yt=!1,jt=[],lt,W,ae,le,Re,Xe,xt,yt,Ot,Nt=!1,Vt=!1,Ht,k,se=[],ce=!1,Wt=[],$t=typeof document<"u",Ut=oe,Fe=_t||K?"cssFloat":"float",ao=$t&&!Te&&!oe&&"draggable"in document.createElement("div"),Le=function(){if($t){if(K)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),Ye=function(t,e){var o=p(t),n=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),i=gt(t,0,e),r=gt(t,1,e),a=i&&p(i),c=r&&p(r),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+x(i).width,u=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+x(r).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return r&&(c.clear==="both"||c.clear===d)?"vertical":"horizontal"}return i&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=n&&o[Fe]==="none"||r&&o[Fe]==="none"&&l+u>n)?"vertical":"horizontal"},lo=function(t,e,o){var n=o?t.left:t.top,i=o?t.right:t.bottom,r=o?t.width:t.height,a=o?e.left:e.top,c=o?e.right:e.bottom,l=o?e.width:e.height;return n===a||i===c||n+r/2===a+l/2},so=function(t,e){var o;return jt.some(function(n){var i=n[B].options.emptyInsertThreshold;if(!(!i||ne(n))){var r=x(n),a=t>=r.left-i&&t<=r.right+i,c=e>=r.top-i&&e<=r.bottom+i;if(a&&c)return o=n}}),o},je=function(t){function e(i,r){return function(a,c,l,u){var d=a.options.group.name&&c.options.group.name&&a.options.group.name===c.options.group.name;if(i==null&&(r||d))return!0;if(i==null||i===!1)return!1;if(r&&i==="clone")return i;if(typeof i=="function")return e(i(a,c,l,u),r)(a,c,l,u);var h=(r?a:c).options.group.name;return i===!0||typeof i=="string"&&i===h||i.join&&i.indexOf(h)>-1}}var o={},n=t.group;(!n||Rt(n)!="object")&&(n={name:n}),o.name=n.name,o.checkPull=e(n.pull,!0),o.checkPut=e(n.put),o.revertClone=n.revertClone,t.group=o},Ve=function(){!Le&&g&&p(g,"display","none")},He=function(){!Le&&g&&p(g,"display","")};$t&&!Te&&document.addEventListener("click",function(t){if(Yt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Yt=!1,!1},!0);var st=function(t){if(s){t=t.touches?t.touches[0]:t;var e=so(t.clientX,t.clientY);if(e){var o={};for(var n in t)t.hasOwnProperty(n)&&(o[n]=t[n]);o.target=o.rootEl=e,o.preventDefault=void 0,o.stopPropagation=void 0,e[B]._onDragOver(o)}}},co=function(t){s&&s.parentNode[B]._isOutsideThisEl(t.target)};function f(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=J({},e),t[B]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ye(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(r,a){r.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:f.supportPointer!==!1&&"PointerEvent"in window&&(!Et||oe),emptyInsertThreshold:5};Tt.initializePlugins(this,t,o);for(var n in o)!(n in e)&&(e[n]=o[n]);je(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:ao,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?b(t,"pointerdown",this._onTapStart):(b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),jt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),J(this,eo())}f.prototype={constructor:f,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(yt=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,s):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,o=this.el,n=this.options,i=n.preventOnFilter,r=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,c=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||c,u=n.filter;if(bo(o),!s&&!(/mousedown|pointerdown/.test(r)&&t.button!==0||n.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Et&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=H(c,n.draggable,o,!1),!(c&&c.animated)&&Ft!==c)){if(vt=j(c),Ct=j(c,n.draggable),typeof u=="function"){if(u.call(this,t,c,this)){M({sortable:e,rootEl:l,name:"filter",targetEl:c,toEl:o,fromEl:o}),R("filter",e,{evt:t}),i&&t.preventDefault();return}}else if(u&&(u=u.split(",").some(function(d){if(d=H(l,d.trim(),o,!1),d)return M({sortable:e,rootEl:d,name:"filter",targetEl:c,fromEl:o,toEl:o}),R("filter",e,{evt:t}),!0}),u)){i&&t.preventDefault();return}n.handle&&!H(l,n.handle,o,!1)||this._prepareDragStart(t,a,c)}}},_prepareDragStart:function(t,e,o){var n=this,i=n.el,r=n.options,a=i.ownerDocument,c;if(o&&!s&&o.parentNode===i){var l=x(o);if(_=i,s=o,T=s.parentNode,at=s.nextSibling,Ft=o,Lt=r.group,f.dragged=s,lt={target:s,clientX:(e||t).clientX,clientY:(e||t).clientY},Re=lt.clientX-l.left,Xe=lt.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,s.style["will-change"]="all",c=function(){if(R("delayEnded",n,{evt:t}),f.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!Se&&n.nativeDraggable&&(s.draggable=!0),n._triggerDragStart(t,e),M({sortable:n,name:"choose",originalEvent:t}),X(s,r.chosenClass,!0)},r.ignore.split(",").forEach(function(u){Ne(s,u.trim(),ue)}),b(a,"dragover",st),b(a,"mousemove",st),b(a,"touchmove",st),r.supportPointer?(b(a,"pointerup",n._onDrop),!this.nativeDraggable&&b(a,"pointercancel",n._onDrop)):(b(a,"mouseup",n._onDrop),b(a,"touchend",n._onDrop),b(a,"touchcancel",n._onDrop)),Se&&this.nativeDraggable&&(this.options.touchStartThreshold=4,s.draggable=!0),R("delayStart",this,{evt:t}),r.delay&&(!r.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(_t||K))){if(f.eventCanceled){this._onDrop();return}r.supportPointer?(b(a,"pointerup",n._disableDelayedDrag),b(a,"pointercancel",n._disableDelayedDrag)):(b(a,"mouseup",n._disableDelayedDrag),b(a,"touchend",n._disableDelayedDrag),b(a,"touchcancel",n._disableDelayedDrag)),b(a,"mousemove",n._delayedDragTouchMoveHandler),b(a,"touchmove",n._delayedDragTouchMoveHandler),r.supportPointer&&b(a,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(c,r.delay)}else c()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){s&&ue(s),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._disableDelayedDrag),v(t,"touchend",this._disableDelayedDrag),v(t,"touchcancel",this._disableDelayedDrag),v(t,"pointerup",this._disableDelayedDrag),v(t,"pointercancel",this._disableDelayedDrag),v(t,"mousemove",this._delayedDragTouchMoveHandler),v(t,"touchmove",this._delayedDragTouchMoveHandler),v(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):e?b(document,"touchmove",this._onTouchMove):b(document,"mousemove",this._onTouchMove):(b(s,"dragend",this),b(_,"dragstart",this._onDragStart));try{document.selection?Gt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(bt=!1,_&&s){R("dragStarted",this,{evt:e}),this.nativeDraggable&&b(document,"dragover",co);var o=this.options;!t&&X(s,o.dragClass,!1),X(s,o.ghostClass,!0),f.active=this,t&&this._appendGhost(),M({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(W){this._lastX=W.clientX,this._lastY=W.clientY,Ve();for(var t=document.elementFromPoint(W.clientX,W.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(W.clientX,W.clientY),t!==e);)e=t;if(s.parentNode[B]._isOutsideThisEl(t),e)do{if(e[B]){var o=void 0;if(o=e[B]._onDragOver({clientX:W.clientX,clientY:W.clientY,target:t,rootEl:e}),o&&!this.options.dragoverBubble)break}t=e}while(e=xe(e));He()}},_onTouchMove:function(t){if(lt){var e=this.options,o=e.fallbackTolerance,n=e.fallbackOffset,i=t.touches?t.touches[0]:t,r=g&&ft(g,!0),a=g&&r&&r.a,c=g&&r&&r.d,l=Ut&&k&&Pe(k),u=(i.clientX-lt.clientX+n.x)/(a||1)+(l?l[0]-se[0]:0)/(a||1),d=(i.clientY-lt.clientY+n.y)/(c||1)+(l?l[1]-se[1]:0)/(c||1);if(!f.active&&!bt){if(o&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(g){r?(r.e+=u-(ae||0),r.f+=d-(le||0)):r={a:1,b:0,c:0,d:1,e:u,f:d};var h="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");p(g,"webkitTransform",h),p(g,"mozTransform",h),p(g,"msTransform",h),p(g,"transform",h),ae=u,le=d,W=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!g){var t=this.options.fallbackOnBody?document.body:_,e=x(s,!0,Ut,!0,t),o=this.options;if(Ut){for(k=t;p(k,"position")==="static"&&p(k,"transform")==="none"&&k!==document;)k=k.parentNode;k!==document.body&&k!==document.documentElement?(k===document&&(k=z()),e.top+=k.scrollTop,e.left+=k.scrollLeft):k=z(),se=Pe(k)}g=s.cloneNode(!0),X(g,o.ghostClass,!1),X(g,o.fallbackClass,!0),X(g,o.dragClass,!0),p(g,"transition",""),p(g,"transform",""),p(g,"box-sizing","border-box"),p(g,"margin",0),p(g,"top",e.top),p(g,"left",e.left),p(g,"width",e.width),p(g,"height",e.height),p(g,"opacity","0.8"),p(g,"position",Ut?"absolute":"fixed"),p(g,"zIndex","100000"),p(g,"pointerEvents","none"),f.ghost=g,t.appendChild(g),p(g,"transform-origin",Re/parseInt(g.style.width)*100+"% "+Xe/parseInt(g.style.height)*100+"%")}},_onDragStart:function(t,e){var o=this,n=t.dataTransfer,i=o.options;if(R("dragStart",this,{evt:t}),f.eventCanceled){this._onDrop();return}R("setupClone",this),f.eventCanceled||(E=Me(s),E.removeAttribute("id"),E.draggable=!1,E.style["will-change"]="",this._hideClone(),X(E,this.options.chosenClass,!1),f.clone=E),o.cloneId=Gt(function(){R("clone",o),!f.eventCanceled&&(o.options.removeCloneOnHide||_.insertBefore(E,s),o._hideClone(),M({sortable:o,name:"clone"}))}),!e&&X(s,i.dragClass,!0),e?(Yt=!0,o._loopId=setInterval(o._emulateDragOver,50)):(v(document,"mouseup",o._onDrop),v(document,"touchend",o._onDrop),v(document,"touchcancel",o._onDrop),n&&(n.effectAllowed="move",i.setData&&i.setData.call(o,n,s)),b(document,"drop",o),p(s,"transform","translateZ(0)")),bt=!0,o._dragStartId=Gt(o._dragStarted.bind(o,e,t)),b(document,"selectstart",o),xt=!0,window.getSelection().removeAllRanges(),Et&&p(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,o=t.target,n,i,r,a=this.options,c=a.group,l=f.active,u=Lt===c,d=a.sort,h=I||l,D,m=this,C=!1;if(ce)return;function w(kt,_o){R(kt,m,U({evt:t,isOwner:u,axis:D?"vertical":"horizontal",revert:r,dragRect:n,targetRect:i,canSort:d,fromSortable:h,target:o,completed:y,onMove:function(Ue,Eo){return zt(_,e,s,n,Ue,x(Ue),t,Eo)},changed:V},_o))}function $(){w("dragOverAnimationCapture"),m.captureAnimationState(),m!==h&&h.captureAnimationState()}function y(kt){return w("dragOverCompleted",{insertion:kt}),kt&&(u?l._hideClone():l._showClone(m),m!==h&&(X(s,I?I.options.ghostClass:l.options.ghostClass,!1),X(s,a.ghostClass,!0)),I!==m&&m!==f.active?I=m:m===f.active&&I&&(I=null),h===m&&(m._ignoreWhileAnimating=o),m.animateAll(function(){w("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(o===s&&!s.animated||o===e&&!o.animated)&&(yt=null),!a.dragoverBubble&&!t.rootEl&&o!==document&&(s.parentNode[B]._isOutsideThisEl(t.target),!kt&&st(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),C=!0}function V(){F=j(s),ot=j(s,a.draggable),M({sortable:m,name:"change",toEl:e,newIndex:F,newDraggableIndex:ot,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),o=H(o,a.draggable,e,!0),w("dragOver"),f.eventCanceled)return C;if(s.contains(t.target)||o.animated&&o.animatingX&&o.animatingY||m._ignoreWhileAnimating===o)return y(!1);if(Yt=!1,l&&!a.disabled&&(u?d||(r=T!==_):I===this||(this.lastPutMode=Lt.checkPull(this,l,s,t))&&c.checkPut(this,l,s,t))){if(D=this._getDirection(t,o)==="vertical",n=x(s),w("dragOverValid"),f.eventCanceled)return C;if(r)return T=_,$(),this._hideClone(),w("revert"),f.eventCanceled||(at?_.insertBefore(s,at):_.appendChild(s)),y(!0);var N=ne(e,a.draggable);if(!N||fo(t,D,this)&&!N.animated){if(N===s)return y(!1);if(N&&e===t.target&&(o=N),o&&(i=x(o)),zt(_,e,s,n,o,i,t,!!o)!==!1)return $(),N&&N.nextSibling?e.insertBefore(s,N.nextSibling):e.appendChild(s),T=e,V(),y(!0)}else if(N&&po(t,D,this)){var q=gt(e,0,a,!0);if(q===s)return y(!1);if(o=q,i=x(o),zt(_,e,s,n,o,i,t,!1)!==!1)return $(),e.insertBefore(s,q),T=e,V(),y(!0)}else if(o.parentNode===e){i=x(o);var G=0,ct,It=s.parentNode!==e,wt=!lo(s.animated&&s.toRect||n,o.animated&&o.toRect||i,D),L=D?"top":"left",nt=Ae(o,"top","top")||Ae(s,"top","top"),Kt=nt?nt.scrollTop:void 0;yt!==o&&(ct=i[L],Nt=!1,Vt=!wt&&a.invertSwap||It),G=go(t,o,i,D,wt?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Vt,yt===o);var Q;if(G!==0){var Dt=j(s);do Dt-=G,Q=T.children[Dt];while(Q&&(p(Q,"display")==="none"||Q===g))}if(G===0||Q===o)return y(!1);yt=o,Ot=G;var ut=o.nextElementSibling,it=!1;it=G===1;var dt=zt(_,e,s,n,o,i,t,it);if(dt!==!1)return(dt===1||dt===-1)&&(it=dt===1),ce=!0,setTimeout(ho,30),$(),it&&!ut?e.appendChild(s):o.parentNode.insertBefore(s,it?ut:o),nt&&ke(nt,0,Kt-nt.scrollTop),T=s.parentNode,ct!==void 0&&!Vt&&(Ht=Math.abs(ct-x(o)[L])),V(),y(!0)}if(e.contains(s))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",st),v(document,"mousemove",st),v(document,"touchmove",st)},_offUpEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._onDrop),v(t,"touchend",this._onDrop),v(t,"pointerup",this._onDrop),v(t,"pointercancel",this._onDrop),v(t,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(t){var e=this.el,o=this.options;if(F=j(s),ot=j(s,o.draggable),R("drop",this,{evt:t}),T=s&&s.parentNode,F=j(s),ot=j(s,o.draggable),f.eventCanceled){this._nulling();return}bt=!1,Vt=!1,Nt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),de(this.cloneId),de(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Et&&p(document.body,"user-select",""),p(s,"transform",""),t&&(xt&&(t.cancelable&&t.preventDefault(),!o.dropBubble&&t.stopPropagation()),g&&g.parentNode&&g.parentNode.removeChild(g),(_===T||I&&I.lastPutMode!=="clone")&&E&&E.parentNode&&E.parentNode.removeChild(E),s&&(this.nativeDraggable&&v(s,"dragend",this),ue(s),s.style["will-change"]="",xt&&!bt&&X(s,I?I.options.ghostClass:this.options.ghostClass,!1),X(s,this.options.chosenClass,!1),M({sortable:this,name:"unchoose",toEl:T,newIndex:null,newDraggableIndex:null,originalEvent:t}),_!==T?(F>=0&&(M({rootEl:T,name:"add",toEl:T,fromEl:_,originalEvent:t}),M({sortable:this,name:"remove",toEl:T,originalEvent:t}),M({rootEl:T,name:"sort",toEl:T,fromEl:_,originalEvent:t}),M({sortable:this,name:"sort",toEl:T,originalEvent:t})),I&&I.save()):F!==vt&&F>=0&&(M({sortable:this,name:"update",toEl:T,originalEvent:t}),M({sortable:this,name:"sort",toEl:T,originalEvent:t})),f.active&&((F==null||F===-1)&&(F=vt,ot=Ct),M({sortable:this,name:"end",toEl:T,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){R("nulling",this),_=s=T=g=at=E=Ft=et=lt=W=xt=F=ot=vt=Ct=yt=Ot=I=Lt=f.dragged=f.ghost=f.clone=f.active=null,Wt.forEach(function(t){t.checked=!0}),Wt.length=ae=le=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":s&&(this._onDragOver(t),uo(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,o=this.el.children,n=0,i=o.length,r=this.options;n<i;n++)e=o[n],H(e,r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||vo(e));return t},sort:function(t,e){var o={},n=this.el;this.toArray().forEach(function(i,r){var a=n.children[r];H(a,this.options.draggable,n,!1)&&(o[i]=a)},this),e&&this.captureAnimationState(),t.forEach(function(i){o[i]&&(n.removeChild(o[i]),n.appendChild(o[i]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return H(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var o=this.options;if(e===void 0)return o[t];var n=Tt.modifyOption(this,t,e);typeof n<"u"?o[t]=n:o[t]=e,t==="group"&&je(o)},destroy:function(){R("destroy",this);var t=this.el;t[B]=null,v(t,"mousedown",this._onTapStart),v(t,"touchstart",this._onTapStart),v(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(t,"dragover",this),v(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),jt.splice(jt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!et){if(R("hideClone",this),f.eventCanceled)return;p(E,"display","none"),this.options.removeCloneOnHide&&E.parentNode&&E.parentNode.removeChild(E),et=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(et){if(R("showClone",this),f.eventCanceled)return;s.parentNode==_&&!this.options.group.revertClone?_.insertBefore(E,s):at?_.insertBefore(E,at):_.appendChild(E),this.options.group.revertClone&&this.animate(s,E),p(E,"display",""),et=!1}}};function uo(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function zt(t,e,o,n,i,r,a,c){var l,u=t[B],d=u.options.onMove,h;return window.CustomEvent&&!K&&!_t?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=e,l.from=t,l.dragged=o,l.draggedRect=n,l.related=i||e,l.relatedRect=r||x(e),l.willInsertAfter=c,l.originalEvent=a,t.dispatchEvent(l),d&&(h=d.call(u,l,a)),h}function ue(t){t.draggable=!1}function ho(){ce=!1}function po(t,e,o){var n=x(gt(o.el,0,o.options,!0)),i=Be(o.el,o.options,g),r=10;return e?t.clientX<i.left-r||t.clientY<n.top&&t.clientX<n.right:t.clientY<i.top-r||t.clientY<n.bottom&&t.clientX<n.left}function fo(t,e,o){var n=x(ne(o.el,o.options.draggable)),i=Be(o.el,o.options,g),r=10;return e?t.clientX>i.right+r||t.clientY>n.bottom&&t.clientX>n.left:t.clientY>i.bottom+r||t.clientX>n.right&&t.clientY>n.top}function go(t,e,o,n,i,r,a,c){var l=n?t.clientY:t.clientX,u=n?o.height:o.width,d=n?o.top:o.left,h=n?o.bottom:o.right,D=!1;if(!a){if(c&&Ht<u*i){if(!Nt&&(Ot===1?l>d+u*r/2:l<h-u*r/2)&&(Nt=!0),Nt)D=!0;else if(Ot===1?l<d+Ht:l>h-Ht)return-Ot}else if(l>d+u*(1-i)/2&&l<h-u*(1-i)/2)return mo(e)}return D=D||a,D&&(l<d+u*r/2||l>h-u*r/2)?l>d+u/2?1:-1:0}function mo(t){return j(s)<j(t)?1:-1}function vo(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,o=e.length,n=0;o--;)n+=e.charCodeAt(o);return n.toString(36)}function bo(t){Wt.length=0;for(var e=t.getElementsByTagName("input"),o=e.length;o--;){var n=e[o];n.checked&&Wt.push(n)}}function Gt(t){return setTimeout(t,0)}function de(t){return clearTimeout(t)}$t&&b(document,"touchmove",function(t){(f.active||bt)&&t.cancelable&&t.preventDefault()}),f.utils={on:b,off:v,css:p,find:Ne,is:function(t,e){return!!H(t,e,t,!1)},extend:Qe,throttle:Ie,closest:H,toggleClass:X,clone:Me,index:j,nextTick:Gt,cancelNextTick:de,detectDirection:Ye,getChild:gt,expando:B},f.get=function(t){return t[B]},f.mount=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];e[0].constructor===Array&&(e=e[0]),e.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(f.utils=U(U({},f.utils),n.utils)),Tt.mount(n)})},f.create=function(t,e){return new f(t,e)},f.version=Ke;var O=[],At,he,pe=!1,fe,ge,Jt,Pt;function yo(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(e){var o=e.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):o.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var o=e.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),We(),Zt(),to()},nulling:function(){Jt=he=At=pe=Pt=fe=ge=null,O.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,o){var n=this,i=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(i,r);if(Jt=e,o||this.options.forceAutoScrollFallback||_t||K||Et){me(e,this.options,a,o);var c=tt(a,!0);pe&&(!Pt||i!==fe||r!==ge)&&(Pt&&We(),Pt=setInterval(function(){var l=tt(document.elementFromPoint(i,r),!0);l!==c&&(c=l,Zt()),me(e,n.options,l,o)},10),fe=i,ge=r)}else{if(!this.options.bubbleScroll||tt(a,!0)===z()){Zt();return}me(e,this.options,tt(a,!1),!1)}}},J(t,{pluginName:"scroll",initializeByDefault:!0})}function Zt(){O.forEach(function(t){clearInterval(t.pid)}),O=[]}function We(){clearInterval(Pt)}var me=Ie(function(t,e,o,n){if(e.scroll){var i=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,c=e.scrollSpeed,l=z(),u=!1,d;he!==o&&(he=o,Zt(),At=e.scroll,d=e.scrollFn,At===!0&&(At=tt(o,!0)));var h=0,D=At;do{var m=D,C=x(m),w=C.top,$=C.bottom,y=C.left,V=C.right,N=C.width,q=C.height,G=void 0,ct=void 0,It=m.scrollWidth,wt=m.scrollHeight,L=p(m),nt=m.scrollLeft,Kt=m.scrollTop;m===l?(G=N<It&&(L.overflowX==="auto"||L.overflowX==="scroll"||L.overflowX==="visible"),ct=q<wt&&(L.overflowY==="auto"||L.overflowY==="scroll"||L.overflowY==="visible")):(G=N<It&&(L.overflowX==="auto"||L.overflowX==="scroll"),ct=q<wt&&(L.overflowY==="auto"||L.overflowY==="scroll"));var Q=G&&(Math.abs(V-i)<=a&&nt+N<It)-(Math.abs(y-i)<=a&&!!nt),Dt=ct&&(Math.abs($-r)<=a&&Kt+q<wt)-(Math.abs(w-r)<=a&&!!Kt);if(!O[h])for(var ut=0;ut<=h;ut++)O[ut]||(O[ut]={});(O[h].vx!=Q||O[h].vy!=Dt||O[h].el!==m)&&(O[h].el=m,O[h].vx=Q,O[h].vy=Dt,clearInterval(O[h].pid),(Q!=0||Dt!=0)&&(u=!0,O[h].pid=setInterval((function(){n&&this.layer===0&&f.active._onTouchMove(Jt);var it=O[this.layer].vy?O[this.layer].vy*c:0,dt=O[this.layer].vx?O[this.layer].vx*c:0;typeof d=="function"&&d.call(f.dragged.parentNode[B],dt,it,t,Jt,O[this.layer].el)!=="continue"||ke(O[this.layer].el,dt,it)}).bind({layer:h}),24))),h++}while(e.bubbleScroll&&D!==l&&(D=tt(D,!1)));pe=u}},30),$e=function(t){var e=t.originalEvent,o=t.putSortable,n=t.dragEl,i=t.activeSortable,r=t.dispatchSortableEvent,a=t.hideGhostForTarget,c=t.unhideGhostForTarget;if(e){var l=o||i;a();var u=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,d=document.elementFromPoint(u.clientX,u.clientY);c(),l&&!l.el.contains(d)&&(r("spill"),this.onSpill({dragEl:n,putSortable:o}))}};function ve(){}ve.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,o=t.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var n=gt(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(e,n):this.sortable.el.appendChild(e),this.sortable.animateAll(),o&&o.animateAll()},drop:$e},J(ve,{pluginName:"revertOnSpill"});function be(){}be.prototype={onSpill:function(t){var e=t.dragEl,o=t.putSortable,n=o||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:$e},J(be,{pluginName:"removeOnSpill"}),f.mount(new yo),f.mount(be,ve);const wo={components:{OutputDialog:Ee},data(){return{name:null,icon:"astro:add-small",url:null,tools:[],jsonContent:"",dialogTitle:"",showDialog:!1,tool_id:null}},mounted(){this.update();let t=document.getElementById("toollist");f.create(t,{filter:".filter",onUpdate:this.sortChanged})},methods:{sortChanged(t){rt.post(`/openc3-api/tools/position/${this.tools[t.oldIndex]}`,{data:{position:t.newIndex},params:{scope:"DEFAULT"}}).then(e=>{this.$notify.normal({title:`Reordered tool ${this.tools[t.oldIndex]}`}),this.update()})},update(){rt.get("/openc3-api/tools",{params:{scope:"DEFAULT"}}).then(t=>{this.tools=t.data,this.name="",this.url=""})},add(){rt.post("/openc3-api/tools",{data:{id:this.name,json:JSON.stringify({name:this.name,icon:this.icon,url:this.url,window:"NEW"})},params:{scope:"DEFAULT"}}).then(t=>{this.$notify.normal({title:`Added tool ${this.name}`}),this.update()}).catch(t=>{window.$cosmosNotify.serious({title:`Failed to add tool ${this.name}`,message:t.response.data})})},showTool(t){rt.get(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}}).then(e=>{this.tool_id=t,this.jsonContent=JSON.stringify(e.data,null," "),this.dialogTitle=t,this.showDialog=!0})},dialogCallback(t){if(this.showDialog=!1,t!==null){let e=JSON.parse(t),o="put",n=`/openc3-api/tools/${this.tool_id}`;e.name!==this.tool_id&&(o="post",n="/openc3-api/tools"),rt[o](n,{data:{json:t},params:{scope:"DEFAULT"}}).then(i=>{this.$notify.normal({title:`Modified tool ${e.name}`}),this.update()})}},deleteTool(t){this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then(function(e){return rt.delete(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}})}).then(e=>{this.$notify.normal({title:`Removed tool ${t}`}),this.update()})}}};function Do(t,e,o,n,i,r){const a=Y("v-icon"),c=Y("v-btn"),l=Y("v-col"),u=Y("v-text-field"),d=Y("v-row"),h=Y("v-list-item-title"),D=Y("v-tooltip"),m=Y("v-list-item"),C=Y("v-divider"),w=Y("v-list"),$=Y("output-dialog");return ht(),Mt("div",null,[A(d,{"no-gutters":"",align:"center",style:{"padding-left":"10px"}},{default:P(()=>[A(l,{cols:"3"},{default:P(()=>[A(c,{block:"",color:"primary","data-test":"toolAdd",onClick:e[0]||(e[0]=y=>r.add()),disabled:!i.name||!i.url||!i.icon},{default:P(()=>[e[5]||(e[5]=pt(" Add ")),A(a,{end:"",theme:"dark"},{default:P(()=>[pt(qt(i.icon),1)]),_:1})]),_:1},8,["disabled"])]),_:1}),A(l,{cols:"3"},{default:P(()=>[A(u,{modelValue:i.icon,"onUpdate:modelValue":e[1]||(e[1]=y=>i.icon=y),label:"Tool Icon",class:"px-2"},null,8,["modelValue"])]),_:1}),A(l,{cols:"3"},{default:P(()=>[A(u,{modelValue:i.name,"onUpdate:modelValue":e[2]||(e[2]=y=>i.name=y),label:"Tool Name",class:"px-2"},null,8,["modelValue"])]),_:1}),A(l,{cols:"3",class:"px-2"},{default:P(()=>[A(u,{modelValue:i.url,"onUpdate:modelValue":e[3]||(e[3]=y=>i.url=y),label:"Tool Url"},null,8,["modelValue"])]),_:1})]),_:1}),e[10]||(e[10]=Bt("span",{class:"text-body1 pa-3"},"Drag and drop to reorder tools in the NavBar. Note: 'Base' and 'Admin' can't be reordered. A browser refresh is required to see the new tool order.",-1)),A(w,{class:"list","data-test":"toolList",id:"toollist"},{default:P(()=>[(ht(!0),Mt(we,null,De(i.tools,(y,V)=>(ht(),Mt("div",{key:y},[A(m,{class:_e({filter:y==="Base"||y==="Admin"}),"prepend-icon":"mdi-drag-horizontal"},{append:P(()=>[A(D,{location:"top"},{activator:P(({props:N})=>[A(a,Qt({ref_for:!0},N,{onClick:q=>r.showTool(y)}),{default:P(()=>e[6]||(e[6]=[pt(" mdi-eye ")])),_:2},1040,["onClick"])]),default:P(()=>[e[7]||(e[7]=Bt("span",null,"Edit Tool",-1))]),_:2},1024),A(D,{location:"top"},{activator:P(({props:N})=>[A(a,Qt({ref_for:!0},N,{onClick:q=>r.deleteTool(y)}),{default:P(()=>e[8]||(e[8]=[pt(" mdi-delete ")])),_:2},1040,["onClick"])]),default:P(()=>[e[9]||(e[9]=Bt("span",null,"Delete Tool",-1))]),_:2},1024)]),default:P(()=>[A(h,null,{default:P(()=>[pt(qt(y),1)]),_:2},1024)]),_:2},1032,["class"]),V<i.tools.length-1?(ht(),te(C,{key:V})):ee("",!0)]))),128))]),_:1}),i.showDialog?(ht(),te($,{key:0,modelValue:i.showDialog,"onUpdate:modelValue":e[4]||(e[4]=y=>i.showDialog=y),content:i.jsonContent,type:"Tool",name:i.dialogTitle,onSubmit:r.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):ee("",!0)])}const To=ze("default",ye(wo,[["render",Do],["__scopeId","data-v-7473eb15"]]))}}});
6
+ */function S(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function U(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?S(Object(o),!0).forEach(function(n){Ge(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):S(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function Rt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rt=function(e){return typeof e}:Rt=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(t)}function Ge(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function J(){return J=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},J.apply(this,arguments)}function Je(t,e){if(t==null)return{};var o={},n=Object.keys(t),i,r;for(r=0;r<n.length;r++)i=n[r],!(e.indexOf(i)>=0)&&(o[i]=t[i]);return o}function Ze(t,e){if(t==null)return{};var o=Je(t,e),n,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i<r.length;i++)n=r[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var Ke="1.15.6";function Z(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var K=Z(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),_t=Z(/Edge/i),Se=Z(/firefox/i),Et=Z(/safari/i)&&!Z(/chrome/i)&&!Z(/android/i),oe=Z(/iP(ad|od|hone)/i),Te=Z(/chrome/i)&&Z(/android/i),Ce={capture:!1,passive:!1};function b(t,e,o){t.addEventListener(e,o,!K&&Ce)}function v(t,e,o){t.removeEventListener(e,o,!K&&Ce)}function Xt(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function xe(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function H(t,e,o,n){if(t){o=o||document;do{if(e!=null&&(e[0]===">"?t.parentNode===o&&Xt(t,e):Xt(t,e))||n&&t===o)return t;if(t===o)break}while(t=xe(t))}return null}var Ne=/\s+/g;function X(t,e,o){if(t&&e)if(t.classList)t.classList[o?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(Ne," ").replace(" "+e+" "," ");t.className=(n+(o?" "+e:"")).replace(Ne," ")}}function p(t,e,o){var n=t&&t.style;if(n){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(o=t.currentStyle),e===void 0?o:o[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=o+(typeof o=="string"?"":"px")}}function ft(t,e){var o="";if(typeof t=="string")o=t;else do{var n=p(t,"transform");n&&n!=="none"&&(o=n+" "+o)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(o)}function Oe(t,e,o){if(t){var n=t.getElementsByTagName(e),i=0,r=n.length;if(o)for(;i<r;i++)o(n[i],i);return n}return[]}function z(){var t=document.scrollingElement;return t||document.documentElement}function x(t,e,o,n,i){if(!(!t.getBoundingClientRect&&t!==window)){var r,a,c,l,u,d,h;if(t!==window&&t.parentNode&&t!==z()?(r=t.getBoundingClientRect(),a=r.top,c=r.left,l=r.bottom,u=r.right,d=r.height,h=r.width):(a=0,c=0,l=window.innerHeight,u=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(e||o)&&t!==window&&(i=i||t.parentNode,!K))do if(i&&i.getBoundingClientRect&&(p(i,"transform")!=="none"||o&&p(i,"position")!=="static")){var D=i.getBoundingClientRect();a-=D.top+parseInt(p(i,"border-top-width")),c-=D.left+parseInt(p(i,"border-left-width")),l=a+r.height,u=c+r.width;break}while(i=i.parentNode);if(n&&t!==window){var m=ft(i||t),C=m&&m.a,w=m&&m.d;m&&(a/=w,c/=C,h/=C,d/=w,l=a+d,u=c+h)}return{top:a,left:c,bottom:l,right:u,width:h,height:d}}}function Ae(t,e,o){for(var n=tt(t,!0),i=x(t)[e];n;){var r=x(n)[o],a=void 0;if(a=i>=r,!a)return n;if(n===z())break;n=tt(n,!1)}return!1}function gt(t,e,o,n){for(var i=0,r=0,a=t.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==f.ghost&&(n||a[r]!==f.dragged)&&H(a[r],o.draggable,t,!1)){if(i===e)return a[r];i++}r++}return null}function ne(t,e){for(var o=t.lastElementChild;o&&(o===f.ghost||p(o,"display")==="none"||e&&!Xt(o,e));)o=o.previousElementSibling;return o||null}function j(t,e){var o=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==f.clone&&(!e||Xt(t,e))&&o++;return o}function Ie(t){var e=0,o=0,n=z();if(t)do{var i=ft(t),r=i.a,a=i.d;e+=t.scrollLeft*r,o+=t.scrollTop*a}while(t!==n&&(t=t.parentNode));return[e,o]}function qe(t,e){for(var o in t)if(t.hasOwnProperty(o)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[o][n])return Number(o)}return-1}function tt(t,e){if(!t||!t.getBoundingClientRect)return z();var o=t,n=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var i=p(o);if(o.clientWidth<o.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return z();if(n||e)return o;n=!0}}while(o=o.parentNode);return z()}function Qe(t,e){if(t&&e)for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);return t}function ie(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var St;function Pe(t,e){return function(){if(!St){var o=arguments,n=this;o.length===1?t.call(n,o[0]):t.apply(n,o),St=setTimeout(function(){St=void 0},e)}}}function to(){clearTimeout(St),St=void 0}function ke(t,e,o){t.scrollLeft+=e,t.scrollTop+=o}function Me(t){var e=window.Polymer,o=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):o?o(t).clone(!0)[0]:t.cloneNode(!0)}function Be(t,e,o){var n={};return Array.from(t.children).forEach(function(i){var r,a,c,l;if(!(!H(i,e.draggable,t,!1)||i.animated||i===o)){var u=x(i);n.left=Math.min((r=n.left)!==null&&r!==void 0?r:1/0,u.left),n.top=Math.min((a=n.top)!==null&&a!==void 0?a:1/0,u.top),n.right=Math.max((c=n.right)!==null&&c!==void 0?c:-1/0,u.right),n.bottom=Math.max((l=n.bottom)!==null&&l!==void 0?l:-1/0,u.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var B="Sortable"+new Date().getTime();function eo(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(n){if(!(p(n,"display")==="none"||n===f.ghost)){t.push({target:n,rect:x(n)});var i=U({},t[t.length-1].rect);if(n.thisAnimationDuration){var r=ft(n,!0);r&&(i.top-=r.f,i.left-=r.e)}n.fromRect=i}})}},addAnimationState:function(o){t.push(o)},removeAnimationState:function(o){t.splice(qe(t,{target:o}),1)},animateAll:function(o){var n=this;if(!this.options.animation){clearTimeout(e),typeof o=="function"&&o();return}var i=!1,r=0;t.forEach(function(a){var c=0,l=a.target,u=l.fromRect,d=x(l),h=l.prevFromRect,D=l.prevToRect,m=a.rect,C=ft(l,!0);C&&(d.top-=C.f,d.left-=C.e),l.toRect=d,l.thisAnimationDuration&&ie(h,d)&&!ie(u,d)&&(m.top-d.top)/(m.left-d.left)===(u.top-d.top)/(u.left-d.left)&&(c=no(m,h,D,n.options)),ie(d,u)||(l.prevFromRect=u,l.prevToRect=d,c||(c=n.options.animation),n.animate(l,m,d,c)),c&&(i=!0,r=Math.max(r,c),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},c),l.thisAnimationDuration=c)}),clearTimeout(e),i?e=setTimeout(function(){typeof o=="function"&&o()},r):typeof o=="function"&&o(),t=[]},animate:function(o,n,i,r){if(r){p(o,"transition",""),p(o,"transform","");var a=ft(this.el),c=a&&a.a,l=a&&a.d,u=(n.left-i.left)/(c||1),d=(n.top-i.top)/(l||1);o.animatingX=!!u,o.animatingY=!!d,p(o,"transform","translate3d("+u+"px,"+d+"px,0)"),this.forRepaintDummy=oo(o),p(o,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),p(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){p(o,"transition",""),p(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},r)}}}}function oo(t){return t.offsetWidth}function no(t,e,o,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-o.top,2)+Math.pow(e.left-o.left,2))*n.animation}var mt=[],re={initializeByDefault:!0},Tt={mount:function(t){for(var e in re)re.hasOwnProperty(e)&&!(e in t)&&(t[e]=re[e]);mt.forEach(function(o){if(o.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),mt.push(t)},pluginEvent:function(t,e,o){var n=this;this.eventCanceled=!1,o.cancel=function(){n.eventCanceled=!0};var i=t+"Global";mt.forEach(function(r){e[r.pluginName]&&(e[r.pluginName][i]&&e[r.pluginName][i](U({sortable:e},o)),e.options[r.pluginName]&&e[r.pluginName][t]&&e[r.pluginName][t](U({sortable:e},o)))})},initializePlugins:function(t,e,o,n){mt.forEach(function(a){var c=a.pluginName;if(!(!t.options[c]&&!a.initializeByDefault)){var l=new a(t,e,t.options);l.sortable=t,l.options=t.options,t[c]=l,J(o,l.defaults)}});for(var i in t.options)if(t.options.hasOwnProperty(i)){var r=this.modifyOption(t,i,t.options[i]);typeof r<"u"&&(t.options[i]=r)}},getEventProperties:function(t,e){var o={};return mt.forEach(function(n){typeof n.eventProperties=="function"&&J(o,n.eventProperties.call(e[n.pluginName],t))}),o},modifyOption:function(t,e,o){var n;return mt.forEach(function(i){t[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[e]=="function"&&(n=i.optionListeners[e].call(t[i.pluginName],o))}),n}};function io(t){var e=t.sortable,o=t.rootEl,n=t.name,i=t.targetEl,r=t.cloneEl,a=t.toEl,c=t.fromEl,l=t.oldIndex,u=t.newIndex,d=t.oldDraggableIndex,h=t.newDraggableIndex,D=t.originalEvent,m=t.putSortable,C=t.extraEventProperties;if(e=e||o&&o[B],!!e){var w,$=e.options,y="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!K&&!_t?w=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(w=document.createEvent("Event"),w.initEvent(n,!0,!0)),w.to=a||o,w.from=c||o,w.item=i||o,w.clone=r,w.oldIndex=l,w.newIndex=u,w.oldDraggableIndex=d,w.newDraggableIndex=h,w.originalEvent=D,w.pullMode=m?m.lastPutMode:void 0;var V=U(U({},C),Tt.getEventProperties(n,e));for(var O in V)w[O]=V[O];o&&o.dispatchEvent(w),$[y]&&$[y].call(e,w)}}var ro=["evt"],R=function(t,e){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=o.evt,i=Ze(o,ro);Tt.pluginEvent.bind(f)(t,e,U({dragEl:s,parentEl:T,ghostEl:g,rootEl:_,nextEl:at,lastDownEl:Ft,cloneEl:E,cloneHidden:et,dragStarted:xt,putSortable:P,activeSortable:f.active,originalEvent:n,oldIndex:vt,oldDraggableIndex:Ct,newIndex:F,newDraggableIndex:ot,hideGhostForTarget:Ve,unhideGhostForTarget:He,cloneNowHidden:function(){et=!0},cloneNowShown:function(){et=!1},dispatchSortableEvent:function(r){M({sortable:e,name:r,originalEvent:n})}},i))};function M(t){io(U({putSortable:P,cloneEl:E,targetEl:s,rootEl:_,oldIndex:vt,oldDraggableIndex:Ct,newIndex:F,newDraggableIndex:ot},t))}var s,T,g,_,at,Ft,E,et,vt,F,Ct,ot,Lt,P,bt=!1,Yt=!1,jt=[],lt,W,ae,le,Re,Xe,xt,yt,Nt,Ot=!1,Vt=!1,Ht,k,se=[],ce=!1,Wt=[],$t=typeof document<"u",Ut=oe,Fe=_t||K?"cssFloat":"float",ao=$t&&!Te&&!oe&&"draggable"in document.createElement("div"),Le=function(){if($t){if(K)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),Ye=function(t,e){var o=p(t),n=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),i=gt(t,0,e),r=gt(t,1,e),a=i&&p(i),c=r&&p(r),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+x(i).width,u=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+x(r).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return r&&(c.clear==="both"||c.clear===d)?"vertical":"horizontal"}return i&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=n&&o[Fe]==="none"||r&&o[Fe]==="none"&&l+u>n)?"vertical":"horizontal"},lo=function(t,e,o){var n=o?t.left:t.top,i=o?t.right:t.bottom,r=o?t.width:t.height,a=o?e.left:e.top,c=o?e.right:e.bottom,l=o?e.width:e.height;return n===a||i===c||n+r/2===a+l/2},so=function(t,e){var o;return jt.some(function(n){var i=n[B].options.emptyInsertThreshold;if(!(!i||ne(n))){var r=x(n),a=t>=r.left-i&&t<=r.right+i,c=e>=r.top-i&&e<=r.bottom+i;if(a&&c)return o=n}}),o},je=function(t){function e(i,r){return function(a,c,l,u){var d=a.options.group.name&&c.options.group.name&&a.options.group.name===c.options.group.name;if(i==null&&(r||d))return!0;if(i==null||i===!1)return!1;if(r&&i==="clone")return i;if(typeof i=="function")return e(i(a,c,l,u),r)(a,c,l,u);var h=(r?a:c).options.group.name;return i===!0||typeof i=="string"&&i===h||i.join&&i.indexOf(h)>-1}}var o={},n=t.group;(!n||Rt(n)!="object")&&(n={name:n}),o.name=n.name,o.checkPull=e(n.pull,!0),o.checkPut=e(n.put),o.revertClone=n.revertClone,t.group=o},Ve=function(){!Le&&g&&p(g,"display","none")},He=function(){!Le&&g&&p(g,"display","")};$t&&!Te&&document.addEventListener("click",function(t){if(Yt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Yt=!1,!1},!0);var st=function(t){if(s){t=t.touches?t.touches[0]:t;var e=so(t.clientX,t.clientY);if(e){var o={};for(var n in t)t.hasOwnProperty(n)&&(o[n]=t[n]);o.target=o.rootEl=e,o.preventDefault=void 0,o.stopPropagation=void 0,e[B]._onDragOver(o)}}},co=function(t){s&&s.parentNode[B]._isOutsideThisEl(t.target)};function f(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=J({},e),t[B]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ye(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(r,a){r.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:f.supportPointer!==!1&&"PointerEvent"in window&&(!Et||oe),emptyInsertThreshold:5};Tt.initializePlugins(this,t,o);for(var n in o)!(n in e)&&(e[n]=o[n]);je(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:ao,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?b(t,"pointerdown",this._onTapStart):(b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),jt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),J(this,eo())}f.prototype={constructor:f,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(yt=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,s):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,o=this.el,n=this.options,i=n.preventOnFilter,r=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,c=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||c,u=n.filter;if(bo(o),!s&&!(/mousedown|pointerdown/.test(r)&&t.button!==0||n.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Et&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=H(c,n.draggable,o,!1),!(c&&c.animated)&&Ft!==c)){if(vt=j(c),Ct=j(c,n.draggable),typeof u=="function"){if(u.call(this,t,c,this)){M({sortable:e,rootEl:l,name:"filter",targetEl:c,toEl:o,fromEl:o}),R("filter",e,{evt:t}),i&&t.preventDefault();return}}else if(u&&(u=u.split(",").some(function(d){if(d=H(l,d.trim(),o,!1),d)return M({sortable:e,rootEl:d,name:"filter",targetEl:c,fromEl:o,toEl:o}),R("filter",e,{evt:t}),!0}),u)){i&&t.preventDefault();return}n.handle&&!H(l,n.handle,o,!1)||this._prepareDragStart(t,a,c)}}},_prepareDragStart:function(t,e,o){var n=this,i=n.el,r=n.options,a=i.ownerDocument,c;if(o&&!s&&o.parentNode===i){var l=x(o);if(_=i,s=o,T=s.parentNode,at=s.nextSibling,Ft=o,Lt=r.group,f.dragged=s,lt={target:s,clientX:(e||t).clientX,clientY:(e||t).clientY},Re=lt.clientX-l.left,Xe=lt.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,s.style["will-change"]="all",c=function(){if(R("delayEnded",n,{evt:t}),f.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!Se&&n.nativeDraggable&&(s.draggable=!0),n._triggerDragStart(t,e),M({sortable:n,name:"choose",originalEvent:t}),X(s,r.chosenClass,!0)},r.ignore.split(",").forEach(function(u){Oe(s,u.trim(),ue)}),b(a,"dragover",st),b(a,"mousemove",st),b(a,"touchmove",st),r.supportPointer?(b(a,"pointerup",n._onDrop),!this.nativeDraggable&&b(a,"pointercancel",n._onDrop)):(b(a,"mouseup",n._onDrop),b(a,"touchend",n._onDrop),b(a,"touchcancel",n._onDrop)),Se&&this.nativeDraggable&&(this.options.touchStartThreshold=4,s.draggable=!0),R("delayStart",this,{evt:t}),r.delay&&(!r.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(_t||K))){if(f.eventCanceled){this._onDrop();return}r.supportPointer?(b(a,"pointerup",n._disableDelayedDrag),b(a,"pointercancel",n._disableDelayedDrag)):(b(a,"mouseup",n._disableDelayedDrag),b(a,"touchend",n._disableDelayedDrag),b(a,"touchcancel",n._disableDelayedDrag)),b(a,"mousemove",n._delayedDragTouchMoveHandler),b(a,"touchmove",n._delayedDragTouchMoveHandler),r.supportPointer&&b(a,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(c,r.delay)}else c()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){s&&ue(s),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._disableDelayedDrag),v(t,"touchend",this._disableDelayedDrag),v(t,"touchcancel",this._disableDelayedDrag),v(t,"pointerup",this._disableDelayedDrag),v(t,"pointercancel",this._disableDelayedDrag),v(t,"mousemove",this._delayedDragTouchMoveHandler),v(t,"touchmove",this._delayedDragTouchMoveHandler),v(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):e?b(document,"touchmove",this._onTouchMove):b(document,"mousemove",this._onTouchMove):(b(s,"dragend",this),b(_,"dragstart",this._onDragStart));try{document.selection?Gt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(bt=!1,_&&s){R("dragStarted",this,{evt:e}),this.nativeDraggable&&b(document,"dragover",co);var o=this.options;!t&&X(s,o.dragClass,!1),X(s,o.ghostClass,!0),f.active=this,t&&this._appendGhost(),M({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(W){this._lastX=W.clientX,this._lastY=W.clientY,Ve();for(var t=document.elementFromPoint(W.clientX,W.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(W.clientX,W.clientY),t!==e);)e=t;if(s.parentNode[B]._isOutsideThisEl(t),e)do{if(e[B]){var o=void 0;if(o=e[B]._onDragOver({clientX:W.clientX,clientY:W.clientY,target:t,rootEl:e}),o&&!this.options.dragoverBubble)break}t=e}while(e=xe(e));He()}},_onTouchMove:function(t){if(lt){var e=this.options,o=e.fallbackTolerance,n=e.fallbackOffset,i=t.touches?t.touches[0]:t,r=g&&ft(g,!0),a=g&&r&&r.a,c=g&&r&&r.d,l=Ut&&k&&Ie(k),u=(i.clientX-lt.clientX+n.x)/(a||1)+(l?l[0]-se[0]:0)/(a||1),d=(i.clientY-lt.clientY+n.y)/(c||1)+(l?l[1]-se[1]:0)/(c||1);if(!f.active&&!bt){if(o&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(g){r?(r.e+=u-(ae||0),r.f+=d-(le||0)):r={a:1,b:0,c:0,d:1,e:u,f:d};var h="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");p(g,"webkitTransform",h),p(g,"mozTransform",h),p(g,"msTransform",h),p(g,"transform",h),ae=u,le=d,W=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!g){var t=this.options.fallbackOnBody?document.body:_,e=x(s,!0,Ut,!0,t),o=this.options;if(Ut){for(k=t;p(k,"position")==="static"&&p(k,"transform")==="none"&&k!==document;)k=k.parentNode;k!==document.body&&k!==document.documentElement?(k===document&&(k=z()),e.top+=k.scrollTop,e.left+=k.scrollLeft):k=z(),se=Ie(k)}g=s.cloneNode(!0),X(g,o.ghostClass,!1),X(g,o.fallbackClass,!0),X(g,o.dragClass,!0),p(g,"transition",""),p(g,"transform",""),p(g,"box-sizing","border-box"),p(g,"margin",0),p(g,"top",e.top),p(g,"left",e.left),p(g,"width",e.width),p(g,"height",e.height),p(g,"opacity","0.8"),p(g,"position",Ut?"absolute":"fixed"),p(g,"zIndex","100000"),p(g,"pointerEvents","none"),f.ghost=g,t.appendChild(g),p(g,"transform-origin",Re/parseInt(g.style.width)*100+"% "+Xe/parseInt(g.style.height)*100+"%")}},_onDragStart:function(t,e){var o=this,n=t.dataTransfer,i=o.options;if(R("dragStart",this,{evt:t}),f.eventCanceled){this._onDrop();return}R("setupClone",this),f.eventCanceled||(E=Me(s),E.removeAttribute("id"),E.draggable=!1,E.style["will-change"]="",this._hideClone(),X(E,this.options.chosenClass,!1),f.clone=E),o.cloneId=Gt(function(){R("clone",o),!f.eventCanceled&&(o.options.removeCloneOnHide||_.insertBefore(E,s),o._hideClone(),M({sortable:o,name:"clone"}))}),!e&&X(s,i.dragClass,!0),e?(Yt=!0,o._loopId=setInterval(o._emulateDragOver,50)):(v(document,"mouseup",o._onDrop),v(document,"touchend",o._onDrop),v(document,"touchcancel",o._onDrop),n&&(n.effectAllowed="move",i.setData&&i.setData.call(o,n,s)),b(document,"drop",o),p(s,"transform","translateZ(0)")),bt=!0,o._dragStartId=Gt(o._dragStarted.bind(o,e,t)),b(document,"selectstart",o),xt=!0,window.getSelection().removeAllRanges(),Et&&p(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,o=t.target,n,i,r,a=this.options,c=a.group,l=f.active,u=Lt===c,d=a.sort,h=P||l,D,m=this,C=!1;if(ce)return;function w(kt,_o){R(kt,m,U({evt:t,isOwner:u,axis:D?"vertical":"horizontal",revert:r,dragRect:n,targetRect:i,canSort:d,fromSortable:h,target:o,completed:y,onMove:function(Ue,Eo){return zt(_,e,s,n,Ue,x(Ue),t,Eo)},changed:V},_o))}function $(){w("dragOverAnimationCapture"),m.captureAnimationState(),m!==h&&h.captureAnimationState()}function y(kt){return w("dragOverCompleted",{insertion:kt}),kt&&(u?l._hideClone():l._showClone(m),m!==h&&(X(s,P?P.options.ghostClass:l.options.ghostClass,!1),X(s,a.ghostClass,!0)),P!==m&&m!==f.active?P=m:m===f.active&&P&&(P=null),h===m&&(m._ignoreWhileAnimating=o),m.animateAll(function(){w("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(o===s&&!s.animated||o===e&&!o.animated)&&(yt=null),!a.dragoverBubble&&!t.rootEl&&o!==document&&(s.parentNode[B]._isOutsideThisEl(t.target),!kt&&st(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),C=!0}function V(){F=j(s),ot=j(s,a.draggable),M({sortable:m,name:"change",toEl:e,newIndex:F,newDraggableIndex:ot,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),o=H(o,a.draggable,e,!0),w("dragOver"),f.eventCanceled)return C;if(s.contains(t.target)||o.animated&&o.animatingX&&o.animatingY||m._ignoreWhileAnimating===o)return y(!1);if(Yt=!1,l&&!a.disabled&&(u?d||(r=T!==_):P===this||(this.lastPutMode=Lt.checkPull(this,l,s,t))&&c.checkPut(this,l,s,t))){if(D=this._getDirection(t,o)==="vertical",n=x(s),w("dragOverValid"),f.eventCanceled)return C;if(r)return T=_,$(),this._hideClone(),w("revert"),f.eventCanceled||(at?_.insertBefore(s,at):_.appendChild(s)),y(!0);var O=ne(e,a.draggable);if(!O||fo(t,D,this)&&!O.animated){if(O===s)return y(!1);if(O&&e===t.target&&(o=O),o&&(i=x(o)),zt(_,e,s,n,o,i,t,!!o)!==!1)return $(),O&&O.nextSibling?e.insertBefore(s,O.nextSibling):e.appendChild(s),T=e,V(),y(!0)}else if(O&&po(t,D,this)){var q=gt(e,0,a,!0);if(q===s)return y(!1);if(o=q,i=x(o),zt(_,e,s,n,o,i,t,!1)!==!1)return $(),e.insertBefore(s,q),T=e,V(),y(!0)}else if(o.parentNode===e){i=x(o);var G=0,ct,Pt=s.parentNode!==e,wt=!lo(s.animated&&s.toRect||n,o.animated&&o.toRect||i,D),L=D?"top":"left",nt=Ae(o,"top","top")||Ae(s,"top","top"),Kt=nt?nt.scrollTop:void 0;yt!==o&&(ct=i[L],Ot=!1,Vt=!wt&&a.invertSwap||Pt),G=go(t,o,i,D,wt?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Vt,yt===o);var Q;if(G!==0){var Dt=j(s);do Dt-=G,Q=T.children[Dt];while(Q&&(p(Q,"display")==="none"||Q===g))}if(G===0||Q===o)return y(!1);yt=o,Nt=G;var ut=o.nextElementSibling,it=!1;it=G===1;var dt=zt(_,e,s,n,o,i,t,it);if(dt!==!1)return(dt===1||dt===-1)&&(it=dt===1),ce=!0,setTimeout(ho,30),$(),it&&!ut?e.appendChild(s):o.parentNode.insertBefore(s,it?ut:o),nt&&ke(nt,0,Kt-nt.scrollTop),T=s.parentNode,ct!==void 0&&!Vt&&(Ht=Math.abs(ct-x(o)[L])),V(),y(!0)}if(e.contains(s))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",st),v(document,"mousemove",st),v(document,"touchmove",st)},_offUpEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._onDrop),v(t,"touchend",this._onDrop),v(t,"pointerup",this._onDrop),v(t,"pointercancel",this._onDrop),v(t,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(t){var e=this.el,o=this.options;if(F=j(s),ot=j(s,o.draggable),R("drop",this,{evt:t}),T=s&&s.parentNode,F=j(s),ot=j(s,o.draggable),f.eventCanceled){this._nulling();return}bt=!1,Vt=!1,Ot=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),de(this.cloneId),de(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Et&&p(document.body,"user-select",""),p(s,"transform",""),t&&(xt&&(t.cancelable&&t.preventDefault(),!o.dropBubble&&t.stopPropagation()),g&&g.parentNode&&g.parentNode.removeChild(g),(_===T||P&&P.lastPutMode!=="clone")&&E&&E.parentNode&&E.parentNode.removeChild(E),s&&(this.nativeDraggable&&v(s,"dragend",this),ue(s),s.style["will-change"]="",xt&&!bt&&X(s,P?P.options.ghostClass:this.options.ghostClass,!1),X(s,this.options.chosenClass,!1),M({sortable:this,name:"unchoose",toEl:T,newIndex:null,newDraggableIndex:null,originalEvent:t}),_!==T?(F>=0&&(M({rootEl:T,name:"add",toEl:T,fromEl:_,originalEvent:t}),M({sortable:this,name:"remove",toEl:T,originalEvent:t}),M({rootEl:T,name:"sort",toEl:T,fromEl:_,originalEvent:t}),M({sortable:this,name:"sort",toEl:T,originalEvent:t})),P&&P.save()):F!==vt&&F>=0&&(M({sortable:this,name:"update",toEl:T,originalEvent:t}),M({sortable:this,name:"sort",toEl:T,originalEvent:t})),f.active&&((F==null||F===-1)&&(F=vt,ot=Ct),M({sortable:this,name:"end",toEl:T,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){R("nulling",this),_=s=T=g=at=E=Ft=et=lt=W=xt=F=ot=vt=Ct=yt=Nt=P=Lt=f.dragged=f.ghost=f.clone=f.active=null,Wt.forEach(function(t){t.checked=!0}),Wt.length=ae=le=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":s&&(this._onDragOver(t),uo(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,o=this.el.children,n=0,i=o.length,r=this.options;n<i;n++)e=o[n],H(e,r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||vo(e));return t},sort:function(t,e){var o={},n=this.el;this.toArray().forEach(function(i,r){var a=n.children[r];H(a,this.options.draggable,n,!1)&&(o[i]=a)},this),e&&this.captureAnimationState(),t.forEach(function(i){o[i]&&(n.removeChild(o[i]),n.appendChild(o[i]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return H(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var o=this.options;if(e===void 0)return o[t];var n=Tt.modifyOption(this,t,e);typeof n<"u"?o[t]=n:o[t]=e,t==="group"&&je(o)},destroy:function(){R("destroy",this);var t=this.el;t[B]=null,v(t,"mousedown",this._onTapStart),v(t,"touchstart",this._onTapStart),v(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(t,"dragover",this),v(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),jt.splice(jt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!et){if(R("hideClone",this),f.eventCanceled)return;p(E,"display","none"),this.options.removeCloneOnHide&&E.parentNode&&E.parentNode.removeChild(E),et=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(et){if(R("showClone",this),f.eventCanceled)return;s.parentNode==_&&!this.options.group.revertClone?_.insertBefore(E,s):at?_.insertBefore(E,at):_.appendChild(E),this.options.group.revertClone&&this.animate(s,E),p(E,"display",""),et=!1}}};function uo(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function zt(t,e,o,n,i,r,a,c){var l,u=t[B],d=u.options.onMove,h;return window.CustomEvent&&!K&&!_t?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=e,l.from=t,l.dragged=o,l.draggedRect=n,l.related=i||e,l.relatedRect=r||x(e),l.willInsertAfter=c,l.originalEvent=a,t.dispatchEvent(l),d&&(h=d.call(u,l,a)),h}function ue(t){t.draggable=!1}function ho(){ce=!1}function po(t,e,o){var n=x(gt(o.el,0,o.options,!0)),i=Be(o.el,o.options,g),r=10;return e?t.clientX<i.left-r||t.clientY<n.top&&t.clientX<n.right:t.clientY<i.top-r||t.clientY<n.bottom&&t.clientX<n.left}function fo(t,e,o){var n=x(ne(o.el,o.options.draggable)),i=Be(o.el,o.options,g),r=10;return e?t.clientX>i.right+r||t.clientY>n.bottom&&t.clientX>n.left:t.clientY>i.bottom+r||t.clientX>n.right&&t.clientY>n.top}function go(t,e,o,n,i,r,a,c){var l=n?t.clientY:t.clientX,u=n?o.height:o.width,d=n?o.top:o.left,h=n?o.bottom:o.right,D=!1;if(!a){if(c&&Ht<u*i){if(!Ot&&(Nt===1?l>d+u*r/2:l<h-u*r/2)&&(Ot=!0),Ot)D=!0;else if(Nt===1?l<d+Ht:l>h-Ht)return-Nt}else if(l>d+u*(1-i)/2&&l<h-u*(1-i)/2)return mo(e)}return D=D||a,D&&(l<d+u*r/2||l>h-u*r/2)?l>d+u/2?1:-1:0}function mo(t){return j(s)<j(t)?1:-1}function vo(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,o=e.length,n=0;o--;)n+=e.charCodeAt(o);return n.toString(36)}function bo(t){Wt.length=0;for(var e=t.getElementsByTagName("input"),o=e.length;o--;){var n=e[o];n.checked&&Wt.push(n)}}function Gt(t){return setTimeout(t,0)}function de(t){return clearTimeout(t)}$t&&b(document,"touchmove",function(t){(f.active||bt)&&t.cancelable&&t.preventDefault()}),f.utils={on:b,off:v,css:p,find:Oe,is:function(t,e){return!!H(t,e,t,!1)},extend:Qe,throttle:Pe,closest:H,toggleClass:X,clone:Me,index:j,nextTick:Gt,cancelNextTick:de,detectDirection:Ye,getChild:gt,expando:B},f.get=function(t){return t[B]},f.mount=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];e[0].constructor===Array&&(e=e[0]),e.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(f.utils=U(U({},f.utils),n.utils)),Tt.mount(n)})},f.create=function(t,e){return new f(t,e)},f.version=Ke;var N=[],At,he,pe=!1,fe,ge,Jt,It;function yo(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(e){var o=e.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):o.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var o=e.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),We(),Zt(),to()},nulling:function(){Jt=he=At=pe=It=fe=ge=null,N.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,o){var n=this,i=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(i,r);if(Jt=e,o||this.options.forceAutoScrollFallback||_t||K||Et){me(e,this.options,a,o);var c=tt(a,!0);pe&&(!It||i!==fe||r!==ge)&&(It&&We(),It=setInterval(function(){var l=tt(document.elementFromPoint(i,r),!0);l!==c&&(c=l,Zt()),me(e,n.options,l,o)},10),fe=i,ge=r)}else{if(!this.options.bubbleScroll||tt(a,!0)===z()){Zt();return}me(e,this.options,tt(a,!1),!1)}}},J(t,{pluginName:"scroll",initializeByDefault:!0})}function Zt(){N.forEach(function(t){clearInterval(t.pid)}),N=[]}function We(){clearInterval(It)}var me=Pe(function(t,e,o,n){if(e.scroll){var i=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,c=e.scrollSpeed,l=z(),u=!1,d;he!==o&&(he=o,Zt(),At=e.scroll,d=e.scrollFn,At===!0&&(At=tt(o,!0)));var h=0,D=At;do{var m=D,C=x(m),w=C.top,$=C.bottom,y=C.left,V=C.right,O=C.width,q=C.height,G=void 0,ct=void 0,Pt=m.scrollWidth,wt=m.scrollHeight,L=p(m),nt=m.scrollLeft,Kt=m.scrollTop;m===l?(G=O<Pt&&(L.overflowX==="auto"||L.overflowX==="scroll"||L.overflowX==="visible"),ct=q<wt&&(L.overflowY==="auto"||L.overflowY==="scroll"||L.overflowY==="visible")):(G=O<Pt&&(L.overflowX==="auto"||L.overflowX==="scroll"),ct=q<wt&&(L.overflowY==="auto"||L.overflowY==="scroll"));var Q=G&&(Math.abs(V-i)<=a&&nt+O<Pt)-(Math.abs(y-i)<=a&&!!nt),Dt=ct&&(Math.abs($-r)<=a&&Kt+q<wt)-(Math.abs(w-r)<=a&&!!Kt);if(!N[h])for(var ut=0;ut<=h;ut++)N[ut]||(N[ut]={});(N[h].vx!=Q||N[h].vy!=Dt||N[h].el!==m)&&(N[h].el=m,N[h].vx=Q,N[h].vy=Dt,clearInterval(N[h].pid),(Q!=0||Dt!=0)&&(u=!0,N[h].pid=setInterval((function(){n&&this.layer===0&&f.active._onTouchMove(Jt);var it=N[this.layer].vy?N[this.layer].vy*c:0,dt=N[this.layer].vx?N[this.layer].vx*c:0;typeof d=="function"&&d.call(f.dragged.parentNode[B],dt,it,t,Jt,N[this.layer].el)!=="continue"||ke(N[this.layer].el,dt,it)}).bind({layer:h}),24))),h++}while(e.bubbleScroll&&D!==l&&(D=tt(D,!1)));pe=u}},30),$e=function(t){var e=t.originalEvent,o=t.putSortable,n=t.dragEl,i=t.activeSortable,r=t.dispatchSortableEvent,a=t.hideGhostForTarget,c=t.unhideGhostForTarget;if(e){var l=o||i;a();var u=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,d=document.elementFromPoint(u.clientX,u.clientY);c(),l&&!l.el.contains(d)&&(r("spill"),this.onSpill({dragEl:n,putSortable:o}))}};function ve(){}ve.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,o=t.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var n=gt(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(e,n):this.sortable.el.appendChild(e),this.sortable.animateAll(),o&&o.animateAll()},drop:$e},J(ve,{pluginName:"revertOnSpill"});function be(){}be.prototype={onSpill:function(t){var e=t.dragEl,o=t.putSortable,n=o||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:$e},J(be,{pluginName:"removeOnSpill"}),f.mount(new yo),f.mount(be,ve);const wo={components:{OutputDialog:Ee},data(){return{name:null,icon:"astro:add-small",url:null,tools:[],jsonContent:"",dialogTitle:"",showDialog:!1,tool_id:null}},mounted(){this.update();let t=document.getElementById("toollist");f.create(t,{filter:".filter",onUpdate:this.sortChanged})},methods:{sortChanged(t){rt.post(`/openc3-api/tools/position/${this.tools[t.oldIndex]}`,{data:{position:t.newIndex},params:{scope:"DEFAULT"}}).then(e=>{this.$notify.normal({title:`Reordered tool ${this.tools[t.oldIndex]}`}),this.update()})},update(){rt.get("/openc3-api/tools",{params:{scope:"DEFAULT"}}).then(t=>{this.tools=t.data,this.name="",this.url=""})},add(){rt.post("/openc3-api/tools",{data:{id:this.name,json:JSON.stringify({name:this.name,icon:this.icon,url:this.url,window:"NEW"})},params:{scope:"DEFAULT"}}).then(t=>{this.$notify.normal({title:`Added tool ${this.name}`}),this.update()}).catch(t=>{window.$cosmosNotify.serious({title:`Failed to add tool ${this.name}`,message:t.response.data})})},showTool(t){rt.get(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}}).then(e=>{this.tool_id=t,this.jsonContent=JSON.stringify(e.data,null," "),this.dialogTitle=t,this.showDialog=!0})},dialogCallback(t){if(this.showDialog=!1,t!==null){let e=JSON.parse(t),o="put",n=`/openc3-api/tools/${this.tool_id}`;e.name!==this.tool_id&&(o="post",n="/openc3-api/tools"),rt[o](n,{data:{json:t},params:{scope:"DEFAULT"}}).then(i=>{this.$notify.normal({title:`Modified tool ${e.name}`}),this.update()})}},deleteTool(t){this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then(function(e){return rt.delete(`/openc3-api/tools/${t}`,{params:{scope:"DEFAULT"}})}).then(e=>{this.$notify.normal({title:`Removed tool ${t}`}),this.update()})}}};function Do(t,e,o,n,i,r){const a=Y("v-icon"),c=Y("v-btn"),l=Y("v-col"),u=Y("v-text-field"),d=Y("v-row"),h=Y("v-list-item-title"),D=Y("v-tooltip"),m=Y("v-list-item"),C=Y("v-divider"),w=Y("v-list"),$=Y("output-dialog");return ht(),Mt("div",null,[A(d,{"no-gutters":"",align:"center",style:{"padding-left":"10px"}},{default:I(()=>[A(l,{cols:"3"},{default:I(()=>[A(c,{block:"",color:"primary","data-test":"toolAdd",onClick:e[0]||(e[0]=y=>r.add()),disabled:!i.name||!i.url||!i.icon},{default:I(()=>[e[5]||(e[5]=pt(" Add ")),A(a,{end:"",theme:"dark"},{default:I(()=>[pt(qt(i.icon),1)]),_:1})]),_:1},8,["disabled"])]),_:1}),A(l,{cols:"3"},{default:I(()=>[A(u,{modelValue:i.icon,"onUpdate:modelValue":e[1]||(e[1]=y=>i.icon=y),label:"Tool Icon",class:"px-2"},null,8,["modelValue"])]),_:1}),A(l,{cols:"3"},{default:I(()=>[A(u,{modelValue:i.name,"onUpdate:modelValue":e[2]||(e[2]=y=>i.name=y),label:"Tool Name",class:"px-2"},null,8,["modelValue"])]),_:1}),A(l,{cols:"3",class:"px-2"},{default:I(()=>[A(u,{modelValue:i.url,"onUpdate:modelValue":e[3]||(e[3]=y=>i.url=y),label:"Tool Url"},null,8,["modelValue"])]),_:1})]),_:1}),e[10]||(e[10]=Bt("span",{class:"text-body1 pa-3"},"Drag and drop to reorder tools in the NavBar. Note: 'Base' and 'Admin' can't be reordered. A browser refresh is required to see the new tool order.",-1)),A(w,{class:"list","data-test":"toolList",id:"toollist"},{default:I(()=>[(ht(!0),Mt(we,null,De(i.tools,(y,V)=>(ht(),Mt("div",{key:y},[A(m,{class:_e({filter:y==="Base"||y==="Admin"}),"prepend-icon":"mdi-drag-horizontal"},{append:I(()=>[A(D,{location:"top"},{activator:I(({props:O})=>[A(a,Qt({ref_for:!0},O,{onClick:q=>r.showTool(y)}),{default:I(()=>e[6]||(e[6]=[pt(" mdi-eye ")])),_:2},1040,["onClick"])]),default:I(()=>[e[7]||(e[7]=Bt("span",null,"Edit Tool",-1))]),_:2},1024),A(D,{location:"top"},{activator:I(({props:O})=>[A(a,Qt({ref_for:!0},O,{onClick:q=>r.deleteTool(y)}),{default:I(()=>e[8]||(e[8]=[pt(" mdi-delete ")])),_:2},1040,["onClick"])]),default:I(()=>[e[9]||(e[9]=Bt("span",null,"Delete Tool",-1))]),_:2},1024)]),default:I(()=>[A(h,null,{default:I(()=>[pt(qt(y),1)]),_:2},1024)]),_:2},1032,["class"]),V<i.tools.length-1?(ht(),te(C,{key:V})):ee("",!0)]))),128))]),_:1}),i.showDialog?(ht(),te($,{key:0,modelValue:i.showDialog,"onUpdate:modelValue":e[4]||(e[4]=y=>i.showDialog=y),content:i.jsonContent,type:"Tool",name:i.dialogTitle,onSubmit:r.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):ee("",!0)])}const To=ze("default",ye(wo,[["render",Do],["__scopeId","data-v-7473eb15"]]))}}});
@@ -1 +1 @@
1
- System.register(["./main-7b39afe9b1c97330416a.js","./Widget-orNSvnOh-a525c9c4a8704c6b360e.js"],function(S,T){"use strict";var _,w;return{setters:[h=>{_=h.P},h=>{w=h.o}],execute:function(){var h={},b;function x(){return b||(b=1,function(t){(function(){var s={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function c(n){return V(E(n),arguments)}function I(n,u){return c.apply(null,[n].concat(u||[]))}function V(n,u){var i=1,p=n.length,e,o="",l,a,r,m,g,y,v,d;for(l=0;l<p;l++)if(typeof n[l]=="string")o+=n[l];else if(typeof n[l]=="object"){if(r=n[l],r.keys)for(e=u[i],a=0;a<r.keys.length;a++){if(e==null)throw new Error(c('[sprintf] Cannot access property "%s" of undefined value "%s"',r.keys[a],r.keys[a-1]));e=e[r.keys[a]]}else r.param_no?e=u[r.param_no]:e=u[i++];if(s.not_type.test(r.type)&&s.not_primitive.test(r.type)&&e instanceof Function&&(e=e()),s.numeric_arg.test(r.type)&&typeof e!="number"&&isNaN(e))throw new TypeError(c("[sprintf] expecting number but found %T",e));switch(s.number.test(r.type)&&(v=e>=0),r.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,r.width?parseInt(r.width):0);break;case"e":e=r.precision?parseFloat(e).toExponential(r.precision):parseFloat(e).toExponential();break;case"f":e=r.precision?parseFloat(e).toFixed(r.precision):parseFloat(e);break;case"g":e=r.precision?String(Number(e.toPrecision(r.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=r.precision?e.substring(0,r.precision):e;break;case"t":e=String(!!e),e=r.precision?e.substring(0,r.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=r.precision?e.substring(0,r.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=r.precision?e.substring(0,r.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase();break}s.json.test(r.type)?o+=e:(s.number.test(r.type)&&(!v||r.sign)?(d=v?"+":"-",e=e.toString().replace(s.sign,"")):d="",g=r.pad_char?r.pad_char==="0"?"0":r.pad_char.charAt(1):" ",y=r.width-(d+e).length,m=r.width&&y>0?g.repeat(y):"",o+=r.align?d+e+m:g==="0"?d+m+e:m+d+e)}return o}var f=Object.create(null);function E(n){if(f[n])return f[n];for(var u=n,i,p=[],e=0;u;){if((i=s.text.exec(u))!==null)p.push(i[0]);else if((i=s.modulo.exec(u))!==null)p.push("%");else if((i=s.placeholder.exec(u))!==null){if(i[2]){e|=1;var o=[],l=i[2],a=[];if((a=s.key.exec(l))!==null)for(o.push(a[1]);(l=l.substring(a[0].length))!=="";)if((a=s.key_access.exec(l))!==null)o.push(a[1]);else if((a=s.index_access.exec(l))!==null)o.push(a[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");i[2]=o}else e|=2;if(e===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");p.push({placeholder:i[0],param_no:i[1],keys:i[2],sign:i[3],pad_char:i[4],align:i[5],width:i[6],precision:i[7],type:i[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");u=u.substring(i[0].length)}return f[n]=p}t.sprintf=c,t.vsprintf=I,typeof window<"u"&&(window.sprintf=c,window.vsprintf=I)})()}(h)),h}x();const k={methods:{formatValueBase(t,s){return this.isJsonString(t)?this.formatJsonString(t):Array.isArray(t)?this.formatArray(t):this.isObject(t)?"":s&&t?sprintf(s,t):String(t)},isJsonString(t){return t&&t.json_class==="String"&&t.raw!==void 0},formatJsonString(t){let s=Array.from(t.raw.slice(0,32),c=>("0"+(c&255).toString(16)).slice(-2)).join(" ").toUpperCase();return t.raw.length>32&&(s+="..."),s},formatArray(t){return"["+t.map(s=>typeof s=="string"?`"${s}"`:s).join(", ")+"]"},isObject(t){return Object.prototype.toString.call(t).slice(8,-1)==="Object"}}},L=S("L",{mixins:[w,_,k],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]),"_blank")}}]}},watch:{_counter:function(t,s){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let t=this.limitsState;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][1]):t=null),t},_counter:function(){let t=this.counter;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][2]):t=null),t},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroStatus(){switch(this.limitsColor){case"green":return"normal";case"yellow":return"caution";case"red":return"critical";case"blue":return"standby";default:return null}},limitsColor(){let t=this._limitsState;if(t!=null)switch(t){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let t=this._limitsState;if(t!=null){let s=t.charAt(0);return t.endsWith("_LOW")&&(s=s.toLowerCase()),s}return""}},created(){if(this.value===null||this.limitsState===null){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let t=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(t[1]),this.parameters[2]=this.parameters[2].replace(t[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let t="WITH_UNITS";return this.parameters[3]&&(t=this.parameters[3]),t},formatValue(t){return t&&this.valueId&&(this.valueId.includes("PACKET_TIMEFORMATTED")||this.valueId.includes("RECEIVED_TIMEFORMATTED"))?(t=t.replaceAll("/","-"),this.formatUtcToLocal(new Date(t),this.appliedTimeZone)):this.formatValueBase(t,this.formatString)},showContextMenu(t){t.preventDefault(),this.contextMenuShown=!1,this.x=t.clientX,this.y=t.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}})}}});
1
+ System.register(["./main-6d6b6148fd97f6dd73ae.js","./Widget-C4QVI4IH-80b859328e2c8ee53918.js"],function(S,T){"use strict";var _,w;return{setters:[h=>{_=h.P},h=>{w=h.o}],execute:function(){var h={},I;function x(){return I||(I=1,function(t){(function(){var s={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function c(n){return k(E(n),arguments)}function b(n,u){return c.apply(null,[n].concat(u||[]))}function k(n,u){var i=1,p=n.length,e,o="",l,a,r,m,g,y,v,d;for(l=0;l<p;l++)if(typeof n[l]=="string")o+=n[l];else if(typeof n[l]=="object"){if(r=n[l],r.keys)for(e=u[i],a=0;a<r.keys.length;a++){if(e==null)throw new Error(c('[sprintf] Cannot access property "%s" of undefined value "%s"',r.keys[a],r.keys[a-1]));e=e[r.keys[a]]}else r.param_no?e=u[r.param_no]:e=u[i++];if(s.not_type.test(r.type)&&s.not_primitive.test(r.type)&&e instanceof Function&&(e=e()),s.numeric_arg.test(r.type)&&typeof e!="number"&&isNaN(e))throw new TypeError(c("[sprintf] expecting number but found %T",e));switch(s.number.test(r.type)&&(v=e>=0),r.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,r.width?parseInt(r.width):0);break;case"e":e=r.precision?parseFloat(e).toExponential(r.precision):parseFloat(e).toExponential();break;case"f":e=r.precision?parseFloat(e).toFixed(r.precision):parseFloat(e);break;case"g":e=r.precision?String(Number(e.toPrecision(r.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=r.precision?e.substring(0,r.precision):e;break;case"t":e=String(!!e),e=r.precision?e.substring(0,r.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=r.precision?e.substring(0,r.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=r.precision?e.substring(0,r.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase();break}s.json.test(r.type)?o+=e:(s.number.test(r.type)&&(!v||r.sign)?(d=v?"+":"-",e=e.toString().replace(s.sign,"")):d="",g=r.pad_char?r.pad_char==="0"?"0":r.pad_char.charAt(1):" ",y=r.width-(d+e).length,m=r.width&&y>0?g.repeat(y):"",o+=r.align?d+e+m:g==="0"?d+m+e:m+d+e)}return o}var f=Object.create(null);function E(n){if(f[n])return f[n];for(var u=n,i,p=[],e=0;u;){if((i=s.text.exec(u))!==null)p.push(i[0]);else if((i=s.modulo.exec(u))!==null)p.push("%");else if((i=s.placeholder.exec(u))!==null){if(i[2]){e|=1;var o=[],l=i[2],a=[];if((a=s.key.exec(l))!==null)for(o.push(a[1]);(l=l.substring(a[0].length))!=="";)if((a=s.key_access.exec(l))!==null)o.push(a[1]);else if((a=s.index_access.exec(l))!==null)o.push(a[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");i[2]=o}else e|=2;if(e===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");p.push({placeholder:i[0],param_no:i[1],keys:i[2],sign:i[3],pad_char:i[4],align:i[5],width:i[6],precision:i[7],type:i[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");u=u.substring(i[0].length)}return f[n]=p}t.sprintf=c,t.vsprintf=b,typeof window<"u"&&(window.sprintf=c,window.vsprintf=b)})()}(h)),h}x();const V={methods:{formatValueBase(t,s){return this.isJsonString(t)?this.formatJsonString(t):Array.isArray(t)?this.formatArray(t):this.isObject(t)?"":s&&t?sprintf(s,t):String(t)},isJsonString(t){return t&&t.json_class==="String"&&t.raw!==void 0},formatJsonString(t){let s=Array.from(t.raw.slice(0,32),c=>("0"+(c&255).toString(16)).slice(-2)).join(" ").toUpperCase();return t.raw.length>32&&(s+="..."),s},formatArray(t){return"["+t.map(s=>typeof s=="string"?`"${s}"`:s).join(", ")+"]"},isObject(t){return Object.prototype.toString.call(t).slice(8,-1)==="Object"}}},L=S("L",{mixins:[w,_,V],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]),"_blank")}}]}},watch:{_counter:function(t,s){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let t=this.limitsState;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][1]):t=null),t},_counter:function(){let t=this.counter;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][2]):t=null),t},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroStatus(){switch(this.limitsColor){case"green":return"normal";case"yellow":return"caution";case"red":return"critical";case"blue":return"standby";default:return null}},limitsColor(){let t=this._limitsState;if(t!=null)switch(t){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let t=this._limitsState;if(t!=null){let s=t.charAt(0);return t.endsWith("_LOW")&&(s=s.toLowerCase()),s}return""}},created(){if(this.value===null||this.limitsState===null){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let t=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(t[1]),this.parameters[2]=this.parameters[2].replace(t[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let t="WITH_UNITS";return this.parameters[3]&&(t=this.parameters[3]),t},formatValue(t){return t&&this.valueId&&(this.valueId.includes("PACKET_TIMEFORMATTED")||this.valueId.includes("RECEIVED_TIMEFORMATTED"))?(t=t.replaceAll("/","-"),this.formatUtcToLocal(new Date(t),this.appliedTimeZone)):this.formatValueBase(t,this.formatString)},showContextMenu(t){t.preventDefault(),this.contextMenuShown=!1,this.x=t.clientX,this.y=t.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}})}}});