openc3-cosmos-tool-tablemanager 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 (127) hide show
  1. checksums.yaml +4 -4
  2. data/tools/tablemanager/ArrayWidget-BTxChSds-4c7be81461f86bf1d1f4.js +2 -0
  3. data/tools/tablemanager/BarColumn-Cdu3OoMa-7ebc6bba2ec2b7443275.js +1 -0
  4. data/tools/tablemanager/BlockWidget-PmjzrkXF-7e44cd932e96ec1cb07e.js +2 -0
  5. data/tools/tablemanager/ButtonWidget-nwDlOBJT-599a2911a8b78bbce7da.js +2 -0
  6. data/tools/tablemanager/CanvasWidget-BL8930eT-a14d83a92021224f0626.js +1 -0
  7. data/tools/tablemanager/CanvasdotWidget-VCf1fL-G-8296c8ef351d05f7fd4c.js +1 -0
  8. data/tools/tablemanager/CanvasimageWidget-BIw7Wbf2-2ea750787f6ff181f1fa.js +1 -0
  9. data/tools/tablemanager/CanvasimagevalueWidget-CE3Dj5bH-62cb25a71058838c0d48.js +1 -0
  10. data/tools/tablemanager/CanvaslabelWidget-DWmb356h-c8de747a0875052f202a.js +1 -0
  11. data/tools/tablemanager/CanvaslabelvalueWidget-CI3yYwFs-8db0b41f4a616417b399.js +1 -0
  12. data/tools/tablemanager/CanvaslineWidget-COeapH3P-2e5d2368470440a25895.js +1 -0
  13. data/tools/tablemanager/CanvaslinevalueWidget-CI-Bbzfi-96c7dab8e2b034c361fd.js +1 -0
  14. data/tools/tablemanager/CheckbuttonWidget-BQhggcZ2-3e19c1e6c65109201ddc.js +1 -0
  15. data/tools/tablemanager/ComboboxWidget-BzsbOv54-12343d35a5e073a2a66d.js +1 -0
  16. data/tools/tablemanager/DateWidget-B5R_9rA8-97046c2ecfec14541bc0.js +1 -0
  17. data/tools/tablemanager/{DetailsDialog-EWjtBjle-48ad16dbf2121c7db04c.js → DetailsDialog-DLRMqetn-1b4bd3859b4c0f280356.js} +1 -1
  18. data/tools/tablemanager/DynamicWidget-m9EliUR2-4024998196afd5f66fe5.js +1 -0
  19. data/tools/tablemanager/FormatvalueWidget-DZkRJce8-bca26a9fbef9d7e71788.js +1 -0
  20. data/tools/tablemanager/GraphWidget-amwxyH1r-676c999496f7b52e6f0b.js +1 -0
  21. data/tools/tablemanager/HorizontalWidget-CirtfuL8-8924c9ec652986724f14.js +1 -0
  22. data/tools/tablemanager/HorizontalboxWidget-CyTDt2nl-b358e5d8b599e442a248.js +1 -0
  23. data/tools/tablemanager/HorizontallineWidget-BdlNB951-652e6bb14cb73644c5c4.js +1 -0
  24. data/tools/tablemanager/IframeWidget-DnJmCrCA-245ffa4ae4a62eb99d36.js +1 -0
  25. data/tools/tablemanager/{ImageLoader-CDLQopxJ-b362c5b6b2dc94a1927c.js → ImageLoader-CpcR6tPi-51dd38612be20c408708.js} +1 -1
  26. data/tools/tablemanager/ImageviewerWidget-DIkmb_C9-b26e9b8b7fb3fb11abed.js +1 -0
  27. data/tools/tablemanager/LabelWidget-BDsypYho-dcd6d462ce2ed62b0354.js +1 -0
  28. data/tools/tablemanager/LabelledWidget-DjturGl5-569d7335b7abf3a46a7b.js +1 -0
  29. data/tools/tablemanager/LabelprogressbarWidget-RADJGLj3-e8bc2350bdaffeeff707.js +1 -0
  30. data/tools/tablemanager/LabelsparklineWidget-BlJoICxu-42bba4884be7553addea.js +1 -0
  31. data/tools/tablemanager/LabelvalueWidget-DVWJqnlY-4c7298007ae6cd53ac24.js +1 -0
  32. data/tools/tablemanager/LabelvaluedescWidget-CsUP7J4U-4d36453d8b9949722fdb.js +1 -0
  33. data/tools/tablemanager/LabelvaluelimitsbarWidget-Blj1QXV8-602a32c20e82e376a3bc.js +1 -0
  34. data/tools/tablemanager/LabelvaluelimitscolumnWidget-CvCo-uCe-ee9e3a00f463fcaa8406.js +1 -0
  35. data/tools/tablemanager/LabelvaluerangebarWidget-DpcXhlfF-78d678cfd24776df07ae.js +1 -0
  36. data/tools/tablemanager/{Layout-klOVw-YN-945c9339f451bef7e299.js → Layout-C1HoM4Kl-d9b72a724670a2a49805.js} +1 -1
  37. data/tools/tablemanager/LedWidget-B_K2e5tq-9942abb86d2119003a15.js +1 -0
  38. data/tools/tablemanager/LimitsbarWidget-DXbqsi4J-b81a41599540cc069630.js +1 -0
  39. data/tools/tablemanager/LimitscolorWidget-Ckmuw0YX-d4e7a9e88649d2bac4c4.js +1 -0
  40. data/tools/tablemanager/LimitscolumnWidget-BfY4su5U-d7c978be2b1498fd49d5.js +1 -0
  41. data/tools/tablemanager/LinegraphWidget-y-Qy9P0R-ed3714afcf15eb1cc911.js +1 -0
  42. data/tools/tablemanager/MatrixbycolumnsWidget-BTBColrs-1ac469dfc8a92414edcc.js +1 -0
  43. data/tools/tablemanager/ProgressbarWidget-DpA_-vy9-efaa0616ed6739f8d034.js +1 -0
  44. data/tools/tablemanager/RadiobuttonWidget-BO8zpgwW-1173e100ad584dd8423d.js +1 -0
  45. data/tools/tablemanager/RadiogroupWidget-Oy7V4S-V-6771560f7acba217e856.js +1 -0
  46. data/tools/tablemanager/RangebarWidget-DHS7S3vI-dd35439083d052dc4430.js +1 -0
  47. data/tools/tablemanager/RollupWidget-CTk9Kjwr-2a70c797f16bad65c1c2.js +1 -0
  48. data/tools/tablemanager/ScrollwindowWidget-DD0TOW6s-15301f1fb16a68ef8017.js +1 -0
  49. data/tools/tablemanager/SignalWidget-CC33KMTW-59ee45b8bb122f9f86fb.js +1 -0
  50. data/tools/tablemanager/SpacerWidget-BnJe_Hq6-d9d355d970666d06d14d.js +1 -0
  51. data/tools/tablemanager/SparklineWidget-DMvMQCPm-c1eb0aac54b9ed67c5d1.js +1 -0
  52. data/tools/tablemanager/TabbookWidget-B3w0JtWe-e60dce13a103c3a267d7.js +1 -0
  53. data/tools/tablemanager/TableManager-4d6cd5e88be36ef98f22.js +10 -0
  54. data/tools/tablemanager/TextboxWidget-D2f0-eol-4fdbcb25e29b50f118f5.js +1 -0
  55. data/tools/tablemanager/TextfieldWidget-DXSdgqVP-15d9841bdf4a83b7a686.js +1 -0
  56. data/tools/tablemanager/TimeWidget-DvrRaEMz-240c9fa16748f3db373b.js +1 -0
  57. data/tools/tablemanager/TitleWidget-DqViFQl--154f86314dab158bea86.js +1 -0
  58. data/tools/tablemanager/{VWidget-Dmqf_jKM-1329ca1be4695fe1efaf.js → VWidget-02CG-3Av-078bbd0f0405e6aa73ed.js} +1 -1
  59. data/tools/tablemanager/ValueWidget-KLYY8L8U-755aeff02f2198f3a6c1.js +1 -0
  60. data/tools/tablemanager/ValuelimitsbarWidget-SR8XNZFB-128a10f660f0657add6c.js +1 -0
  61. data/tools/tablemanager/ValuelimitscolumnWidget-xYZSp6YZ-ebbd1740879726e75ef3.js +1 -0
  62. data/tools/tablemanager/ValuerangebarWidget-B6M02a9d-9dbda148765d75adbbb7.js +1 -0
  63. data/tools/tablemanager/VerticalWidget-z6xUM-ql-ac996801e51342fd6e24.js +1 -0
  64. data/tools/tablemanager/VerticalboxWidget-3a9cVsW--fb21a3b06b96e9db97ac.js +1 -0
  65. data/tools/tablemanager/{Widget-orNSvnOh-6875cac048a7f8a1cb7e.js → Widget-C4QVI4IH-3f6647936adce5c38a68.js} +1 -1
  66. data/tools/tablemanager/{main-d2f01c5f64af7a18d0cd.js → main-74ac7eecdb0666c6a3ed.js} +34 -34
  67. data/tools/tablemanager/main.js +1 -1
  68. metadata +67 -67
  69. data/tools/tablemanager/ArrayWidget-By62tXtU-a5e441ab6bd961c1e81c.js +0 -2
  70. data/tools/tablemanager/BarColumn-Dm3D1Lhp-6533ffcfb1380d6338bb.js +0 -1
  71. data/tools/tablemanager/BlockWidget-CrT45ode-18bc995028ac0345c3d1.js +0 -2
  72. data/tools/tablemanager/ButtonWidget-CKyBBv6m-2cd5e39646f8530184f8.js +0 -2
  73. data/tools/tablemanager/CanvasWidget-PqkppHC7-e32c02172a5d78dc5d34.js +0 -1
  74. data/tools/tablemanager/CanvasdotWidget-BUbJgM2d-d63a85366cd2542462b8.js +0 -1
  75. data/tools/tablemanager/CanvasimageWidget-DPVBY7mi-7fd5e1163ad1cb425a05.js +0 -1
  76. data/tools/tablemanager/CanvasimagevalueWidget-GX37zzNc-c0065c34b15078f5ce90.js +0 -1
  77. data/tools/tablemanager/CanvaslabelWidget-P2_Y6Edw-b20ca44827358baf3b26.js +0 -1
  78. data/tools/tablemanager/CanvaslabelvalueWidget-Cuas1i9P-beb2ba0c015b3e257b57.js +0 -1
  79. data/tools/tablemanager/CanvaslineWidget-BYOYgPya-d0a8111f6986cce6581e.js +0 -1
  80. data/tools/tablemanager/CanvaslinevalueWidget-3cVJMFo7-ffad64909baa62c5a2e1.js +0 -1
  81. data/tools/tablemanager/CheckbuttonWidget-B3wgSMuB-43966d31f7d768117846.js +0 -1
  82. data/tools/tablemanager/ComboboxWidget-Dzr4Scvf-402e1d4fcd80b9582c44.js +0 -1
  83. data/tools/tablemanager/DateWidget-BWh76Ibb-52cd25419503f543891b.js +0 -1
  84. data/tools/tablemanager/DynamicWidget-m9EliUR2-c4b55d29163a62eac2ea.js +0 -1
  85. data/tools/tablemanager/FormatvalueWidget-Rk0_eeIm-1b3e21d2a5a302ca1990.js +0 -1
  86. data/tools/tablemanager/GraphWidget-LqekkNDr-6b6215e7f20aec9e893a.js +0 -1
  87. data/tools/tablemanager/HorizontalWidget-BcfJ24Zn-366041882fc79759fff9.js +0 -1
  88. data/tools/tablemanager/HorizontalboxWidget-CQy1Hv9E-6cf8ffc2ffd7f3d9eecb.js +0 -1
  89. data/tools/tablemanager/HorizontallineWidget-BdlNB951-731b37ae194e5392d988.js +0 -1
  90. data/tools/tablemanager/IframeWidget-BBaDrRLo-1691275ef8f872dd859d.js +0 -1
  91. data/tools/tablemanager/ImageviewerWidget-BgO3Pq6I-cef3c980302a9dc4c7cb.js +0 -1
  92. data/tools/tablemanager/LabelWidget-B_C6lKOE-ceb4de5192a33b189717.js +0 -1
  93. data/tools/tablemanager/LabelledWidget-B_UGivhr-dfa95d46573ea9ee233c.js +0 -1
  94. data/tools/tablemanager/LabelprogressbarWidget-BJWCmsYC-358d5b49f6cc975c00d0.js +0 -1
  95. data/tools/tablemanager/LabelsparklineWidget-DILCIh3q-b2f627be5070fe54ab1b.js +0 -1
  96. data/tools/tablemanager/LabelvalueWidget-CCZd1NXE-ade0fc6eca78677f5357.js +0 -1
  97. data/tools/tablemanager/LabelvaluedescWidget-Bsllq8W6-7c0ebcdd34ddad0cba20.js +0 -1
  98. data/tools/tablemanager/LabelvaluelimitsbarWidget-BV-cfaD--6d88b4a9a59bd9012418.js +0 -1
  99. data/tools/tablemanager/LabelvaluelimitscolumnWidget-DwA0eRBw-9c19de6f6ab68e6749ec.js +0 -1
  100. data/tools/tablemanager/LabelvaluerangebarWidget-3GDJz3dj-3c48f97fd9d7e2010954.js +0 -1
  101. data/tools/tablemanager/LedWidget-BAt02s0J-24e0f7ddc071ffbd79db.js +0 -1
  102. data/tools/tablemanager/LimitsbarWidget-JJiyzZjb-c65c064bfae876acd221.js +0 -1
  103. data/tools/tablemanager/LimitscolorWidget-CYzXKbYd-7735f2996a321adf879e.js +0 -1
  104. data/tools/tablemanager/LimitscolumnWidget-Cd76tBo7-dbd1b628a6d3617486f4.js +0 -1
  105. data/tools/tablemanager/LinegraphWidget-DWRtO6Ej-752592d1523334dfd146.js +0 -1
  106. data/tools/tablemanager/MatrixbycolumnsWidget-cwsyjNV2-7faf06bbfa486114391d.js +0 -1
  107. data/tools/tablemanager/ProgressbarWidget-CYDziFej-e111a46921e4ee3af56d.js +0 -1
  108. data/tools/tablemanager/RadiobuttonWidget-U6jcQZoD-a2b032cb8f4409e4a9b4.js +0 -1
  109. data/tools/tablemanager/RadiogroupWidget-HTPJnsB0-94851c581ced37702658.js +0 -1
  110. data/tools/tablemanager/RangebarWidget-DW0FJK6y-9f7d979be718500151b6.js +0 -1
  111. data/tools/tablemanager/RollupWidget-B2qrx55f-a8ba8c8a5c957b996a20.js +0 -1
  112. data/tools/tablemanager/ScrollwindowWidget-CwIDxgO6-fcff75f0a891d612d988.js +0 -1
  113. data/tools/tablemanager/SignalWidget-Bosa3AbW-fffc754c3c046f66fa5d.js +0 -1
  114. data/tools/tablemanager/SpacerWidget-DYAlt5mt-11e4549a313cb7735b3e.js +0 -1
  115. data/tools/tablemanager/SparklineWidget-CDrVXOFV-7d0de925e5fe71338408.js +0 -1
  116. data/tools/tablemanager/TabbookWidget-DDdlzCkv-bc06202601c10b07febe.js +0 -1
  117. data/tools/tablemanager/TableManager-cef9dda0483267a1bd4f.js +0 -10
  118. data/tools/tablemanager/TextboxWidget-5euFelEq-c48e91c2a70fbf489e5e.js +0 -1
  119. data/tools/tablemanager/TextfieldWidget-BFripYeh-d55da2824bb7129ad8d2.js +0 -1
  120. data/tools/tablemanager/TimeWidget-BBSbsUYJ-46a303496f752cb5d70d.js +0 -1
  121. data/tools/tablemanager/TitleWidget-p8cjo-Bs-1a55060ee981c19dba78.js +0 -1
  122. data/tools/tablemanager/ValueWidget-CZh7JWwT-7269b90a9cf3701166be.js +0 -1
  123. data/tools/tablemanager/ValuelimitsbarWidget-DU7ybswC-a8ebafed15da13b05492.js +0 -1
  124. data/tools/tablemanager/ValuelimitscolumnWidget-DMw-h5jM-1b76b97cab832532dd27.js +0 -1
  125. data/tools/tablemanager/ValuerangebarWidget-DPpofDpA-f7ad8a72b09393bb2544.js +0 -1
  126. data/tools/tablemanager/VerticalWidget-Ch7VAEmz-5c5b743c2ddc92136a4b.js +0 -1
  127. data/tools/tablemanager/VerticalboxWidget-DYx-TFT4-7b65533aa838da17bd59.js +0 -1
@@ -0,0 +1,10 @@
1
+ System.register(["./main-74ac7eecdb0666c6a3ed.js","vue","single-spa","./VWidget-02CG-3Av-078bbd0f0405e6aa73ed.js","vue-router","vuex","vuetify","./Widget-C4QVI4IH-3f6647936adce5c38a68.js"],function(Nt,Do){"use strict";var we,se,Me,y,E,T,f,h,P,L,ve,xe,S,ze,B,$,W,Ee,ae,ke,J,Se,$e;return{setters:[k=>{we=k.s,se=k._,Me=k.q},k=>{y=k.resolveComponent,E=k.openBlock,T=k.createBlock,f=k.withCtx,h=k.createVNode,P=k.createElementVNode,L=k.toDisplayString,ve=k.normalizeProps,xe=k.guardReactiveProps,S=k.createTextVNode,ze=k.Teleport,B=k.createElementBlock,$=k.Fragment,W=k.renderList,Ee=k.mergeProps,ae=k.createSlots,ke=k.normalizeStyle,J=k.createCommentVNode,Se=k.withModifiers},null,k=>{$e=k.k},null,null,null,null],execute:function(){var k=document.createElement("style");k.textContent=`.filename[data-v-3e18cdee]{background-color:var(--color-background-base-default)}
2
+ /*$vite$:1*/`,document.head.appendChild(k);const Ft={props:{modelValue:Boolean,text:String,title:String,width:{type:Number,default:800}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},methods:{download:function(){const t=new Blob([this.text],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(t),e.setAttribute("download",`${this.title}.txt`),e.click()}}},jt={class:"mx-2"},Ut={class:"pa-3"},Dt={class:"text"};function Pt(t,e,n,o,r,i){const s=y("v-spacer"),l=y("v-icon"),u=y("v-tooltip"),c=y("v-toolbar"),d=y("v-card-text"),m=y("v-btn"),g=y("v-card-actions"),b=y("v-card"),_=y("v-dialog");return E(),T(_,{modelValue:i.show,"onUpdate:modelValue":e[1]||(e[1]=p=>i.show=p),width:n.width,scrollable:""},{default:f(()=>[h(b,null,{default:f(()=>[h(c,{height:"24"},{default:f(()=>[h(s),P("span",null,L(n.title),1),h(s),P("div",jt,[h(u,{location:"top"},{activator:f(({props:p})=>[P("div",ve(xe(p)),[h(l,{"data-test":"downloadIcon",onClick:i.download},{default:f(()=>e[2]||(e[2]=[S(" mdi-download ")])),_:1},8,["onClick"])],16)]),default:f(()=>[e[3]||(e[3]=P("span",null," Download ",-1))]),_:1})])]),_:1}),h(d,{style:{"max-height":"80vh"}},{default:f(()=>[P("div",Ut,[P("span",Dt,L(n.text),1)])]),_:1}),h(g,{class:"px-2"},{default:f(()=>[h(s),h(m,{variant:"flat",onClick:e[0]||(e[0]=p=>i.show=!i.show)},{default:f(()=>e[4]||(e[4]=[S(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","width"])}const Bt=we(Ft,[["render",Pt],["__scopeId","data-v-a60ace75"]]),It={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(t){return t.replaceAll(" ","-").toLowerCase()},subMenuClick(t){t.command(t),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},Vt={class:"app-title mr-2"};function Lt(t,e,n,o,r,i){const s=y("v-col"),l=y("v-row"),u=y("v-icon"),c=y("v-btn"),d=y("v-divider"),m=y("v-list-item-title"),g=y("v-list-item"),b=y("v-list"),_=y("v-menu"),p=y("v-radio"),A=y("v-list-item-action"),R=y("v-radio-group"),O=y("v-checkbox");return E(),T(ze,{to:"#openc3-menu"},[h(l,{"no-gutters":""},{default:f(()=>[h(s,{"align-self":"end"},{default:f(()=>[P("span",Vt,L(n.title),1)]),_:1})]),_:1}),h(l,{dense:"",class:"flex-nowrap"},{default:f(()=>[(E(!0),B($,null,W(n.menus,(U,H)=>(E(),T(_,{ref_for:!0,ref:"topmenu",key:H},{activator:f(({props:w})=>[h(c,Ee({ref_for:!0},w,{variant:"outlined",class:"mx-1 menu-button",text:U.label,"data-test":i.formatDT(`${n.title} ${U.label}`)}),{append:f(()=>[h(u,{class:"menu-button-icon"},{default:f(()=>e[0]||(e[0]=[S(" mdi-menu-down ")])),_:1})]),_:2},1040,["text","data-test"])]),default:f(()=>[h(b,null,{default:f(()=>[(E(!0),B($,null,W(U.items,(w,D)=>(E(),B($,null,[w.divider?(E(),T(d,{key:D+"-divider"})):w.subMenu&&w.subMenu.length>0?(E(),B("div",{key:D+"-submenu"},[(E(),T(_,{"open-on-hover":"",location:"right",key:D},{activator:f(({props:N})=>[(E(),T(g,Ee({ref_for:!0},N,{disabled:w.disabled,key:D}),ae({append:f(()=>[h(u,null,{default:f(()=>e[1]||(e[1]=[S(" mdi-chevron-right ")])),_:1})]),default:f(()=>[!w.radio&&!w.checkbox?(E(),T(m,{key:0,style:ke("cursor: pointer;"+(w.disabled?"opacity: 0.2":""))},{default:f(()=>[S(L(w.label),1)]),_:2},1032,["style"])):J("",!0)]),_:2},[w.icon?{name:"prepend",fn:f(()=>[h(u,{disabled:w.disabled},{default:f(()=>[S(L(w.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:f(()=>[h(b,null,{default:f(()=>[(E(!0),B($,null,W(w.subMenu,(N,z)=>(E(),T(g,{key:z,"prepend-icon":N.icon,onClick:Z=>i.subMenuClick(N)},{default:f(()=>[h(m,null,{default:f(()=>[S(L(N.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):w.radioGroup?(E(),T(R,{"model-value":w.value,"onUpdate:modelValue":w.command,key:D+"-radio-group","hide-details":"",density:"compact",class:"ma-0 pa-0"},{default:f(()=>[(E(!0),B($,null,W(w.choices,(N,z)=>(E(),T(g,{key:z+"-choice"},{default:f(()=>[h(A,{class:"list-action"},{default:f(()=>[h(p,{color:"secondary",label:N.label,value:N.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(E(),T(g,{onClick:N=>w.command(w),disabled:w.disabled,"data-test":i.formatDT(`${n.title} ${U.label} ${w.label}`),key:D+"-list"},ae({default:f(()=>[w.checkbox?(E(),T(A,{key:0,class:"list-action"},{default:f(()=>[h(O,{modelValue:w.checked,"onUpdate:modelValue":N=>w.checked=N,label:w.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):J("",!0),!w.radio&&!w.checkbox?(E(),T(m,{key:1,style:ke("cursor: pointer;"+(w.disabled?"opacity: 0.2":""))},{default:f(()=>[S(L(w.label),1)]),_:2},1032,["style"])):J("",!0)]),_:2},[w.icon?{name:"prepend",fn:f(()=>[h(u,{icon:w.icon,disabled:w.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["onClick","disabled","data-test"]))],64))),256))]),_:2},1024)]),_:2},1024))),128))]),_:1})])}const qt=we(It,[["render",Lt],["__scopeId","data-v-4d454b93"]]);var Mt=Object.defineProperty,zt=(t,e,n)=>e in t?Mt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$t=(t,e,n)=>zt(t,e+"",n);function He(t,e){return function(){return t.apply(e,arguments)}}const{toString:Ht}=Object.prototype,{getPrototypeOf:Te}=Object,le=(t=>e=>{const n=Ht.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),q=t=>(t=t.toLowerCase(),e=>le(e)===t),ce=t=>e=>typeof e===t,{isArray:Y}=Array,te=ce("undefined");function Wt(t){return t!==null&&!te(t)&&t.constructor!==null&&!te(t.constructor)&&V(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const We=q("ArrayBuffer");function Jt(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&We(t.buffer),e}const Kt=ce("string"),V=ce("function"),Je=ce("number"),ue=t=>t!==null&&typeof t=="object",Gt=t=>t===!0||t===!1,de=t=>{if(le(t)!=="object")return!1;const e=Te(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Xt=q("Date"),Yt=q("File"),Qt=q("Blob"),Zt=q("FileList"),en=t=>ue(t)&&V(t.pipe),tn=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||V(t.append)&&((e=le(t))==="formdata"||e==="object"&&V(t.toString)&&t.toString()==="[object FormData]"))},nn=q("URLSearchParams"),[on,rn,sn,an]=["ReadableStream","Request","Response","Headers"].map(q),ln=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ne(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let o,r;if(typeof t!="object"&&(t=[t]),Y(t))for(o=0,r=t.length;o<r;o++)e.call(null,t[o],o,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let l;for(o=0;o<s;o++)l=i[o],e.call(null,t[l],l,t)}}function Ke(t,e){e=e.toLowerCase();const n=Object.keys(t);let o=n.length,r;for(;o-- >0;)if(r=n[o],e===r.toLowerCase())return r;return null}const K=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ge=t=>!te(t)&&t!==K;function Oe(){const{caseless:t}=Ge(this)&&this||{},e={},n=(o,r)=>{const i=t&&Ke(e,r)||r;de(e[i])&&de(o)?e[i]=Oe(e[i],o):de(o)?e[i]=Oe({},o):Y(o)?e[i]=o.slice():e[i]=o};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&ne(arguments[o],n);return e}const cn=(t,e,n,{allOwnKeys:o}={})=>(ne(e,(r,i)=>{n&&V(r)?t[i]=He(r,n):t[i]=r},{allOwnKeys:o}),t),un=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),dn=(t,e,n,o)=>{t.prototype=Object.create(e.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},fn=(t,e,n,o)=>{let r,i,s;const l={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),i=r.length;i-- >0;)s=r[i],(!o||o(s,t,e))&&!l[s]&&(e[s]=t[s],l[s]=!0);t=n!==!1&&Te(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},pn=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const o=t.indexOf(e,n);return o!==-1&&o===n},mn=t=>{if(!t)return null;if(Y(t))return t;let e=t.length;if(!Je(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},hn=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Te(Uint8Array)),_n=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=n.next())&&!o.done;){const r=o.value;e.call(t,r[0],r[1])}},gn=(t,e)=>{let n;const o=[];for(;(n=t.exec(e))!==null;)o.push(n);return o},bn=q("HTMLFormElement"),yn=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,o){return n.toUpperCase()+o}),Xe=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),wn=q("RegExp"),Ye=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),o={};ne(n,(r,i)=>{let s;(s=e(r,i,t))!==!1&&(o[i]=s||r)}),Object.defineProperties(t,o)},vn=t=>{Ye(t,(e,n)=>{if(V(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=t[n];if(V(o)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},xn=(t,e)=>{const n={},o=r=>{r.forEach(i=>{n[i]=!0})};return Y(t)?o(t):o(String(t).split(e)),n},En=()=>{},kn=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Re="abcdefghijklmnopqrstuvwxyz",Qe="0123456789",Ze={DIGIT:Qe,ALPHA:Re,ALPHA_DIGIT:Re+Re.toUpperCase()+Qe},Sn=(t=16,e=Ze.ALPHA_DIGIT)=>{let n="";const{length:o}=e;for(;t--;)n+=e[Math.random()*o|0];return n};function Tn(t){return!!(t&&V(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const On=t=>{const e=new Array(10),n=(o,r)=>{if(ue(o)){if(e.indexOf(o)>=0)return;if(!("toJSON"in o)){e[r]=o;const i=Y(o)?[]:{};return ne(o,(s,l)=>{const u=n(s,r+1);!te(u)&&(i[l]=u)}),e[r]=void 0,i}}return o};return n(t,0)},Rn=q("AsyncFunction"),An=t=>t&&(ue(t)||V(t))&&V(t.then)&&V(t.catch),et=((t,e)=>t?setImmediate:e?((n,o)=>(K.addEventListener("message",({source:r,data:i})=>{r===K&&i===n&&o.length&&o.shift()()},!1),r=>{o.push(r),K.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",V(K.postMessage)),Cn=typeof queueMicrotask<"u"?queueMicrotask.bind(K):typeof process<"u"&&process.nextTick||et,a={isArray:Y,isArrayBuffer:We,isBuffer:Wt,isFormData:tn,isArrayBufferView:Jt,isString:Kt,isNumber:Je,isBoolean:Gt,isObject:ue,isPlainObject:de,isReadableStream:on,isRequest:rn,isResponse:sn,isHeaders:an,isUndefined:te,isDate:Xt,isFile:Yt,isBlob:Qt,isRegExp:wn,isFunction:V,isStream:en,isURLSearchParams:nn,isTypedArray:hn,isFileList:Zt,forEach:ne,merge:Oe,extend:cn,trim:ln,stripBOM:un,inherits:dn,toFlatObject:fn,kindOf:le,kindOfTest:q,endsWith:pn,toArray:mn,forEachEntry:_n,matchAll:gn,isHTMLForm:bn,hasOwnProperty:Xe,hasOwnProp:Xe,reduceDescriptors:Ye,freezeMethods:vn,toObjectSet:xn,toCamelCase:yn,noop:En,toFiniteNumber:kn,findKey:Ke,global:K,isContextDefined:Ge,ALPHABET:Ze,generateString:Sn,isSpecCompliantForm:Tn,toJSONObject:On,isAsyncFn:Rn,isThenable:An,setImmediate:et,asap:Cn};function v(t,e,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}a.inherits(v,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const tt=v.prototype,nt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{nt[t]={value:t}}),Object.defineProperties(v,nt),Object.defineProperty(tt,"isAxiosError",{value:!0}),v.from=(t,e,n,o,r,i)=>{const s=Object.create(tt);return a.toFlatObject(t,s,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),v.call(s,t.message,e,n,o,r),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const Nn=null;function Ae(t){return a.isPlainObject(t)||a.isArray(t)}function ot(t){return a.endsWith(t,"[]")?t.slice(0,-2):t}function rt(t,e,n){return t?t.concat(e).map(function(o,r){return o=ot(o),!n&&r?"["+o+"]":o}).join(n?".":""):e}function Fn(t){return a.isArray(t)&&!t.some(Ae)}const jn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function fe(t,e,n){if(!a.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,_){return!a.isUndefined(_[b])});const o=n.metaTokens,r=n.visitor||c,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(e);if(!a.isFunction(r))throw new TypeError("visitor must be a function");function u(b){if(b===null)return"";if(a.isDate(b))return b.toISOString();if(!l&&a.isBlob(b))throw new v("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(b)||a.isTypedArray(b)?l&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function c(b,_,p){let A=b;if(b&&!p&&typeof b=="object"){if(a.endsWith(_,"{}"))_=o?_:_.slice(0,-2),b=JSON.stringify(b);else if(a.isArray(b)&&Fn(b)||(a.isFileList(b)||a.endsWith(_,"[]"))&&(A=a.toArray(b)))return _=ot(_),A.forEach(function(R,O){!(a.isUndefined(R)||R===null)&&e.append(s===!0?rt([_],O,i):s===null?_:_+"[]",u(R))}),!1}return Ae(b)?!0:(e.append(rt(p,_,i),u(b)),!1)}const d=[],m=Object.assign(jn,{defaultVisitor:c,convertValue:u,isVisitable:Ae});function g(b,_){if(!a.isUndefined(b)){if(d.indexOf(b)!==-1)throw Error("Circular reference detected in "+_.join("."));d.push(b),a.forEach(b,function(p,A){(!(a.isUndefined(p)||p===null)&&r.call(e,p,a.isString(A)?A.trim():A,_,m))===!0&&g(p,_?_.concat(A):[A])}),d.pop()}}if(!a.isObject(t))throw new TypeError("data must be an object");return g(t),e}function it(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Ce(t,e){this._pairs=[],t&&fe(t,this,e)}const st=Ce.prototype;st.append=function(t,e){this._pairs.push([t,e])},st.toString=function(t){const e=t?function(n){return t.call(this,n,it)}:it;return this._pairs.map(function(n){return e(n[0])+"="+e(n[1])},"").join("&")};function Un(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function at(t,e,n){if(!e)return t;const o=n&&n.encode||Un;a.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let i;if(r?i=r(e,n):i=a.isURLSearchParams(e)?e.toString():new Ce(e,n).toString(o),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class lt{constructor(){this.handlers=[]}use(e,n,o){return this.handlers.push({fulfilled:e,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){a.forEach(this.handlers,function(n){n!==null&&e(n)})}}const ct={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dn=typeof URLSearchParams<"u"?URLSearchParams:Ce,Pn=typeof FormData<"u"?FormData:null,Bn=typeof Blob<"u"?Blob:null,In={isBrowser:!0,classes:{URLSearchParams:Dn,FormData:Pn,Blob:Bn},protocols:["http","https","file","blob","url","data"]},Ne=typeof window<"u"&&typeof document<"u",Fe=typeof navigator=="object"&&navigator||void 0,Vn=Ne&&(!Fe||["ReactNative","NativeScript","NS"].indexOf(Fe.product)<0),Ln=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qn=Ne&&window.location.href||"http://localhost",Mn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ne,hasStandardBrowserEnv:Vn,hasStandardBrowserWebWorkerEnv:Ln,navigator:Fe,origin:qn},Symbol.toStringTag,{value:"Module"})),F={...Mn,...In};function zn(t,e){return fe(t,new F.classes.URLSearchParams,Object.assign({visitor:function(n,o,r,i){return F.isNode&&a.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function $n(t){return a.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Hn(t){const e={},n=Object.keys(t);let o;const r=n.length;let i;for(o=0;o<r;o++)i=n[o],e[i]=t[i];return e}function ut(t){function e(n,o,r,i){let s=n[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),u=i>=n.length;return s=!s&&a.isArray(r)?r.length:s,u?(a.hasOwnProp(r,s)?r[s]=[r[s],o]:r[s]=o,!l):((!r[s]||!a.isObject(r[s]))&&(r[s]=[]),e(n,o,r[s],i)&&a.isArray(r[s])&&(r[s]=Hn(r[s])),!l)}if(a.isFormData(t)&&a.isFunction(t.entries)){const n={};return a.forEachEntry(t,(o,r)=>{e($n(o),r,n,0)}),n}return null}function Wn(t,e,n){if(a.isString(t))try{return(e||JSON.parse)(t),a.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(0,JSON.stringify)(t)}const oe={transitional:ct,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",o=n.indexOf("application/json")>-1,r=a.isObject(t);if(r&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return o?JSON.stringify(ut(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return zn(t,this.formSerializer).toString();if((i=a.isFileList(t))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return fe(i?{"files[]":t}:t,s&&new s,this.formSerializer)}}return r||o?(e.setContentType("application/json",!1),Wn(t)):t}],transformResponse:[function(t){const e=this.transitional||oe.transitional,n=e&&e.forcedJSONParsing,o=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(n&&!this.responseType||o)){const r=!(e&&e.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(i){if(r)throw i.name==="SyntaxError"?v.from(i,v.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:F.classes.FormData,Blob:F.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],t=>{oe.headers[t]={}});const Jn=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Kn=t=>{const e={};let n,o,r;return t&&t.split(`
3
+ `).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),o=i.substring(r+1).trim(),!(!n||e[n]&&Jn[n])&&(n==="set-cookie"?e[n]?e[n].push(o):e[n]=[o]:e[n]=e[n]?e[n]+", "+o:o)}),e},dt=Symbol("internals");function re(t){return t&&String(t).trim().toLowerCase()}function pe(t){return t===!1||t==null?t:a.isArray(t)?t.map(pe):String(t)}function Gn(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(t);)e[o[1]]=o[2];return e}const Xn=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function je(t,e,n,o,r){if(a.isFunction(o))return o.call(this,e,n);if(r&&(e=n),!!a.isString(e)){if(a.isString(o))return e.indexOf(o)!==-1;if(a.isRegExp(o))return o.test(e)}}function Yn(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,o)=>n.toUpperCase()+o)}function Qn(t,e){const n=a.toCamelCase(" "+e);["get","set","has"].forEach(o=>{Object.defineProperty(t,o+n,{value:function(r,i,s){return this[o].call(this,e,r,i,s)},configurable:!0})})}class I{constructor(e){e&&this.set(e)}set(e,n,o){const r=this;function i(l,u,c){const d=re(u);if(!d)throw new Error("header name must be a non-empty string");const m=a.findKey(r,d);(!m||r[m]===void 0||c===!0||c===void 0&&r[m]!==!1)&&(r[m||u]=pe(l))}const s=(l,u)=>a.forEach(l,(c,d)=>i(c,d,u));if(a.isPlainObject(e)||e instanceof this.constructor)s(e,n);else if(a.isString(e)&&(e=e.trim())&&!Xn(e))s(Kn(e),n);else if(a.isHeaders(e))for(const[l,u]of e.entries())i(u,l,o);else e!=null&&i(n,e,o);return this}get(e,n){if(e=re(e),e){const o=a.findKey(this,e);if(o){const r=this[o];if(!n)return r;if(n===!0)return Gn(r);if(a.isFunction(n))return n.call(this,r,o);if(a.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=re(e),e){const o=a.findKey(this,e);return!!(o&&this[o]!==void 0&&(!n||je(this,this[o],o,n)))}return!1}delete(e,n){const o=this;let r=!1;function i(s){if(s=re(s),s){const l=a.findKey(o,s);l&&(!n||je(o,o[l],l,n))&&(delete o[l],r=!0)}}return a.isArray(e)?e.forEach(i):i(e),r}clear(e){const n=Object.keys(this);let o=n.length,r=!1;for(;o--;){const i=n[o];(!e||je(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){const n=this,o={};return a.forEach(this,(r,i)=>{const s=a.findKey(o,i);if(s){n[s]=pe(r),delete n[i];return}const l=e?Yn(i):String(i).trim();l!==i&&delete n[i],n[l]=pe(r),o[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return a.forEach(this,(o,r)=>{o!=null&&o!==!1&&(n[r]=e&&a.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
4
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const o=new this(e);return n.forEach(r=>o.set(r)),o}static accessor(e){const n=(this[dt]=this[dt]={accessors:{}}).accessors,o=this.prototype;function r(i){const s=re(i);n[s]||(Qn(o,i),n[s]=!0)}return a.isArray(e)?e.forEach(r):r(e),this}}I.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a.reduceDescriptors(I.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(o){this[n]=o}}}),a.freezeMethods(I);function Ue(t,e){const n=this||oe,o=e||n,r=I.from(o.headers);let i=o.data;return a.forEach(t,function(s){i=s.call(n,i,r.normalize(),e?e.status:void 0)}),r.normalize(),i}function ft(t){return!!(t&&t.__CANCEL__)}function Q(t,e,n){v.call(this,t??"canceled",v.ERR_CANCELED,e,n),this.name="CanceledError"}a.inherits(Q,v,{__CANCEL__:!0});function pt(t,e,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?t(n):e(new v("Request failed with status code "+n.status,[v.ERR_BAD_REQUEST,v.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Zn(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function eo(t,e){t=t||10;const n=new Array(t),o=new Array(t);let r=0,i=0,s;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=o[i];s||(s=u),n[r]=l,o[r]=u;let d=i,m=0;for(;d!==r;)m+=n[d++],d=d%t;if(r=(r+1)%t,r===i&&(i=(i+1)%t),u-s<e)return;const g=c&&u-c;return g?Math.round(m*1e3/g):void 0}}function to(t,e){let n=0,o=1e3/e,r,i;const s=(l,u=Date.now())=>{n=u,r=null,i&&(clearTimeout(i),i=null),t.apply(null,l)};return[(...l)=>{const u=Date.now(),c=u-n;c>=o?s(l,u):(r=l,i||(i=setTimeout(()=>{i=null,s(r)},o-c)))},()=>r&&s(r)]}const me=(t,e,n=3)=>{let o=0;const r=eo(50,250);return to(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,u=s-o,c=r(u),d=s<=l;o=s;const m={loaded:s,total:l,progress:l?s/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l&&d?(l-s)/c:void 0,event:i,lengthComputable:l!=null,[e?"download":"upload"]:!0};t(m)},n)},mt=(t,e)=>{const n=t!=null;return[o=>e[0]({lengthComputable:n,total:t,loaded:o}),e[1]]},ht=t=>(...e)=>a.asap(()=>t(...e)),no=F.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,F.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(F.origin),F.navigator&&/(msie|trident)/i.test(F.navigator.userAgent)):()=>!0,oo=F.hasStandardBrowserEnv?{write(t,e,n,o,r,i){const s=[t+"="+encodeURIComponent(e)];a.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),a.isString(o)&&s.push("path="+o),a.isString(r)&&s.push("domain="+r),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ro(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function io(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function _t(t,e){return t&&!ro(e)?io(t,e):e}const gt=t=>t instanceof I?{...t}:t;function G(t,e){e=e||{};const n={};function o(c,d,m,g){return a.isPlainObject(c)&&a.isPlainObject(d)?a.merge.call({caseless:g},c,d):a.isPlainObject(d)?a.merge({},d):a.isArray(d)?d.slice():d}function r(c,d,m,g){if(a.isUndefined(d)){if(!a.isUndefined(c))return o(void 0,c,m,g)}else return o(c,d,m,g)}function i(c,d){if(!a.isUndefined(d))return o(void 0,d)}function s(c,d){if(a.isUndefined(d)){if(!a.isUndefined(c))return o(void 0,c)}else return o(void 0,d)}function l(c,d,m){if(m in e)return o(c,d);if(m in t)return o(void 0,c)}const u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(c,d,m)=>r(gt(c),gt(d),m,!0)};return a.forEach(Object.keys(Object.assign({},t,e)),function(c){const d=u[c]||r,m=d(t[c],e[c],c);a.isUndefined(m)&&d!==l||(n[c]=m)}),n}const bt=t=>{const e=G({},t);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:i,headers:s,auth:l}=e;e.headers=s=I.from(s),e.url=at(_t(e.baseURL,e.url),t.params,t.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(a.isFormData(n)){if(F.hasStandardBrowserEnv||F.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[c,...d]=u?u.split(";").map(m=>m.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...d].join("; "))}}if(F.hasStandardBrowserEnv&&(o&&a.isFunction(o)&&(o=o(e)),o||o!==!1&&no(e.url))){const c=r&&i&&oo.read(i);c&&s.set(r,c)}return e},so=typeof XMLHttpRequest<"u",ao=so&&function(t){return new Promise(function(e,n){const o=bt(t);let r=o.data;const i=I.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=o,c,d,m,g,b;function _(){g&&g(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function A(){if(!p)return;const O=I.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),U={data:!s||s==="text"||s==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:O,config:t,request:p};pt(function(H){e(H),_()},function(H){n(H),_()},U),p=null}"onloadend"in p?p.onloadend=A:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(A)},p.onabort=function(){p&&(n(new v("Request aborted",v.ECONNABORTED,t,p)),p=null)},p.onerror=function(){n(new v("Network Error",v.ERR_NETWORK,t,p)),p=null},p.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const U=o.transitional||ct;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),n(new v(O,U.clarifyTimeoutError?v.ETIMEDOUT:v.ECONNABORTED,t,p)),p=null},r===void 0&&i.setContentType(null),"setRequestHeader"in p&&a.forEach(i.toJSON(),function(O,U){p.setRequestHeader(U,O)}),a.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),s&&s!=="json"&&(p.responseType=o.responseType),u&&([m,b]=me(u,!0),p.addEventListener("progress",m)),l&&p.upload&&([d,g]=me(l),p.upload.addEventListener("progress",d),p.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(c=O=>{p&&(n(!O||O.type?new Q(null,t,p):O),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const R=Zn(o.url);if(R&&F.protocols.indexOf(R)===-1){n(new v("Unsupported protocol "+R+":",v.ERR_BAD_REQUEST,t));return}p.send(r||null)})},lo=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let o=new AbortController,r;const i=function(c){if(!r){r=!0,l();const d=c instanceof Error?c:this.reason;o.abort(d instanceof v?d:new Q(d instanceof Error?d.message:d))}};let s=e&&setTimeout(()=>{s=null,i(new v(`timeout ${e} of ms exceeded`,v.ETIMEDOUT))},e);const l=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),t=null)};t.forEach(c=>c.addEventListener("abort",i));const{signal:u}=o;return u.unsubscribe=()=>a.asap(l),u}},co=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let o=0,r;for(;o<n;)r=o+e,yield t.slice(o,r),o=r},uo=async function*(t,e){for await(const n of fo(t))yield*co(n,e)},fo=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:o}=await e.read();if(n)break;yield o}}finally{await e.cancel()}},yt=(t,e,n,o)=>{const r=uo(t,e);let i=0,s,l=u=>{s||(s=!0,o&&o(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await r.next();if(c){l(),u.close();return}let m=d.byteLength;if(n){let g=i+=m;n(g)}u.enqueue(new Uint8Array(d))}catch(c){throw l(c),c}},cancel(u){return l(u),r.return()}},{highWaterMark:2})},he=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",wt=he&&typeof ReadableStream=="function",po=he&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),vt=(t,...e)=>{try{return!!t(...e)}catch{return!1}},mo=wt&&vt(()=>{let t=!1;const e=new Request(F.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),xt=64*1024,De=wt&&vt(()=>a.isReadableStream(new Response("").body)),_e={stream:De&&(t=>t.body)};he&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!_e[e]&&(_e[e]=a.isFunction(t[e])?n=>n[e]():(n,o)=>{throw new v(`Response type '${e}' is not supported`,v.ERR_NOT_SUPPORT,o)})})})(new Response);const ho=async t=>{if(t==null)return 0;if(a.isBlob(t))return t.size;if(a.isSpecCompliantForm(t))return(await new Request(F.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(a.isArrayBufferView(t)||a.isArrayBuffer(t))return t.byteLength;if(a.isURLSearchParams(t)&&(t=t+""),a.isString(t))return(await po(t)).byteLength},_o=async(t,e)=>a.toFiniteNumber(t.getContentLength())??ho(e),go=he&&(async t=>{let{url:e,method:n,data:o,signal:r,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:u,responseType:c,headers:d,withCredentials:m="same-origin",fetchOptions:g}=bt(t);c=c?(c+"").toLowerCase():"text";let b=lo([r,i&&i.toAbortSignal()],s),_;const p=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let A;try{if(u&&mo&&n!=="get"&&n!=="head"&&(A=await _o(d,o))!==0){let w=new Request(e,{method:"POST",body:o,duplex:"half"}),D;if(a.isFormData(o)&&(D=w.headers.get("content-type"))&&d.setContentType(D),w.body){const[N,z]=mt(A,me(ht(u)));o=yt(w.body,xt,N,z)}}a.isString(m)||(m=m?"include":"omit");const R="credentials"in Request.prototype;_=new Request(e,{...g,signal:b,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:o,duplex:"half",credentials:R?m:void 0});let O=await fetch(_);const U=De&&(c==="stream"||c==="response");if(De&&(l||U&&p)){const w={};["status","statusText","headers"].forEach(Z=>{w[Z]=O[Z]});const D=a.toFiniteNumber(O.headers.get("content-length")),[N,z]=l&&mt(D,me(ht(l),!0))||[];O=new Response(yt(O.body,xt,N,()=>{z&&z(),p&&p()}),w)}c=c||"text";let H=await _e[a.findKey(_e,c)||"text"](O,t);return!U&&p&&p(),await new Promise((w,D)=>{pt(w,D,{data:H,headers:I.from(O.headers),status:O.status,statusText:O.statusText,config:t,request:_})})}catch(R){throw p&&p(),R&&R.name==="TypeError"&&/fetch/i.test(R.message)?Object.assign(new v("Network Error",v.ERR_NETWORK,t,_),{cause:R.cause||R}):v.from(R,R&&R.code,t,_)}}),Pe={http:Nn,xhr:ao,fetch:go};a.forEach(Pe,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Et=t=>`- ${t}`,bo=t=>a.isFunction(t)||t===null||t===!1,kt={getAdapter:t=>{t=a.isArray(t)?t:[t];const{length:e}=t;let n,o;const r={};for(let i=0;i<e;i++){n=t[i];let s;if(o=n,!bo(n)&&(o=Pe[(s=String(n)).toLowerCase()],o===void 0))throw new v(`Unknown adapter '${s}'`);if(o)break;r[s||"#"+i]=o}if(!o){const i=Object.entries(r).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=e?i.length>1?`since :
5
+ `+i.map(Et).join(`
6
+ `):" "+Et(i[0]):"as no adapter specified";throw new v("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o},adapters:Pe};function Be(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Q(null,t)}function St(t){return Be(t),t.headers=I.from(t.headers),t.data=Ue.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),kt.getAdapter(t.adapter||oe.adapter)(t).then(function(e){return Be(t),e.data=Ue.call(t,t.transformResponse,e),e.headers=I.from(e.headers),e},function(e){return ft(e)||(Be(t),e&&e.response&&(e.response.data=Ue.call(t,t.transformResponse,e.response),e.response.headers=I.from(e.response.headers))),Promise.reject(e)})}const Tt="1.7.9",ge={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ge[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const Ot={};ge.transitional=function(t,e,n){function o(r,i){return"[Axios v"+Tt+"] Transitional option '"+r+"'"+i+(n?". "+n:"")}return(r,i,s)=>{if(t===!1)throw new v(o(i," has been removed"+(e?" in "+e:"")),v.ERR_DEPRECATED);return e&&!Ot[i]&&(Ot[i]=!0,console.warn(o(i," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(r,i,s):!0}},ge.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function yo(t,e,n){if(typeof t!="object")throw new v("options must be an object",v.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let r=o.length;for(;r-- >0;){const i=o[r],s=e[i];if(s){const l=t[i],u=l===void 0||s(l,i,t);if(u!==!0)throw new v("option "+i+" must be "+u,v.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new v("Unknown option "+i,v.ERR_BAD_OPTION)}}const be={assertOptions:yo,validators:ge},M=be.validators;class X{constructor(e){this.defaults=e,this.interceptors={request:new lt,response:new lt}}async request(e,n){try{return await this._request(e,n)}catch(o){if(o instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=`
7
+ `+i):o.stack=i}catch{}}throw o}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=G(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:i}=n;o!==void 0&&be.assertOptions(o,{silentJSONParsing:M.transitional(M.boolean),forcedJSONParsing:M.transitional(M.boolean),clarifyTimeoutError:M.transitional(M.boolean)},!1),r!=null&&(a.isFunction(r)?n.paramsSerializer={serialize:r}:be.assertOptions(r,{encode:M.function,serialize:M.function},!0)),be.assertOptions(n,{baseUrl:M.spelling("baseURL"),withXsrfToken:M.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&a.merge(i.common,i[n.method]);i&&a.forEach(["delete","get","head","post","put","patch","common"],_=>{delete i[_]}),n.headers=I.concat(s,i);const l=[];let u=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(u=u&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const c=[];this.interceptors.response.forEach(function(_){c.push(_.fulfilled,_.rejected)});let d,m=0,g;if(!u){const _=[St.bind(this),void 0];for(_.unshift.apply(_,l),_.push.apply(_,c),g=_.length,d=Promise.resolve(n);m<g;)d=d.then(_[m++],_[m++]);return d}g=l.length;let b=n;for(m=0;m<g;){const _=l[m++],p=l[m++];try{b=_(b)}catch(A){p.call(this,A);break}}try{d=St.call(this,b)}catch(_){return Promise.reject(_)}for(m=0,g=c.length;m<g;)d=d.then(c[m++],c[m++]);return d}getUri(e){e=G(this.defaults,e);const n=_t(e.baseURL,e.url);return at(n,e.params,e.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){X.prototype[t]=function(e,n){return this.request(G(n||{},{method:t,url:e,data:(n||{}).data}))}}),a.forEach(["post","put","patch"],function(t){function e(n){return function(o,r,i){return this.request(G(i||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:r}))}}X.prototype[t]=e(),X.prototype[t+"Form"]=e(!0)});class Ie{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(r){n=r});const o=this;this.promise.then(r=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](r);o._listeners=null}),this.promise.then=r=>{let i;const s=new Promise(l=>{o.subscribe(l),i=l}).then(r);return s.cancel=function(){o.unsubscribe(i)},s},e(function(r,i,s){o.reason||(o.reason=new Q(r,i,s),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=o=>{e.abort(o)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Ie(function(n){e=n}),cancel:e}}}function wo(t){return function(e){return t.apply(null,e)}}function vo(t){return a.isObject(t)&&t.isAxiosError===!0}const Ve={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ve).forEach(([t,e])=>{Ve[e]=t});function Rt(t){const e=new X(t),n=He(X.prototype.request,e);return a.extend(n,X.prototype,e,{allOwnKeys:!0}),a.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return Rt(G(t,o))},n}const C=Rt(oe);C.Axios=X,C.CanceledError=Q,C.CancelToken=Ie,C.isCancel=ft,C.VERSION=Tt,C.toFormData=fe,C.AxiosError=v,C.Cancel=C.CanceledError,C.all=function(t){return Promise.all(t)},C.spread=wo,C.isAxiosError=vo,C.mergeConfig=G,C.AxiosHeaders=I,C.formToJSON=t=>ut(a.isHTMLForm(t)?new FormData(t):t),C.getAdapter=kt.getAdapter,C.HttpStatusCode=Ve,C.default=C;const Le=C.create({baseURL:location.origin,timeout:6e4,params:{}});Le.interceptors.response.use(t=>t,t=>{var e,n,o,r,i,s,l,u,c,d,m;if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(_){_&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let g=`HTTP ${t.response.status} - `;(e=t.response)!=null&&e.statusText&&(g+=`${t.response.statusText} `),(o=(n=t.response)==null?void 0:n.config)!=null&&o.data&&(g+=`${t.response.config.data} `),(i=(r=t.response)==null?void 0:r.data)!=null&&i.message?g+=`${t.response.data.message}`:(l=(s=t.response)==null?void 0:s.data)!=null&&l.exception?g+=`${t.response.data.exception}`:(d=(c=(u=t.response)==null?void 0:u.data)==null?void 0:c.error)!=null&&d.message?(t.response.data.error.class&&(g+=`${t.response.data.error.class} `),g+=`${t.response.data.error.message}`):g+=`${(m=t.response)==null?void 0:m.data}`;const{$cosmosNotify:b}=window;throw b&&b.serious({title:"Network error",body:g}),t}else throw t});const ye=async function(t,e,{data:n,params:o={},headers:r,noAuth:i=!1,noScope:s=!1,onUploadProgress:l=!1}={}){if(!i){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}r.Authorization=localStorage.openc3Token}return r.manual=!0,!s&&!o.scope&&(o.scope=window.openc3Scope),Le({method:t,url:e,data:n,params:o,headers:r,onUploadProgress:l})},qe={Accept:"application/json"},At={...qe,"Content-Type":"application/json"},j={get:function(t,{params:e,headers:n=qe,noScope:o,noAuth:r,onUploadProgress:i}={}){return ye("get",t,{params:e,headers:n,noScope:o,noAuth:r,onUploadProgress:i})},put:function(t,{data:e,params:n,headers:o=At,noScope:r,noAuth:i,onUploadProgress:s}={}){return ye("put",t,{data:e,params:n,headers:o,noScope:r,noAuth:i,onUploadProgress:s})},post:function(t,{data:e,params:n,headers:o=At,noScope:r,noAuth:i,onUploadProgress:s}={}){return ye("post",t,{data:e,params:n,headers:o,noScope:r,noAuth:i,onUploadProgress:s})},delete:function(t,{params:e,headers:n=qe,noScope:o,noAuth:r,onUploadProgress:i}={}){return ye("delete",t,{params:e,headers:n,noScope:o,noAuth:r,onUploadProgress:i})}};var xo={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:Po,protocols:Ct}=xo;Ct.slice(0,Ct.length-1);class Eo{constructor(){$t(this,"id",1)}async exec(e,n,o={},r={},i=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return o.scope=window.openc3Scope,r.manual=!0,(await Le.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:n,id:this.id,keyword_params:o},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...r},timeout:i})).data.result}catch(s){let l=new Error;throw s.response?(l.name=s.response.data.error.data.class,l.message=s.response.data.error.data.message,l.object=s.response.data.error):s.request?(l.name="Request error",l.message="Request error, no response received"):l.name="Unknown error",l}}decode_openc3_type(e){if(e!==null&&typeof e=="object"&&e.json_class=="Float"&&e.raw){if(e.raw=="NaN")return NaN;if(e.raw=="Infinity")return 1/0;if(e.raw=="-Infinity")return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,n){return this.exec("map_target_to_interface",[e,n])}connect_interface(e,...n){return n.length>0?this.exec("connect_interface",[e,...n]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,n,...o){return this.exec("interface_cmd",[e,n,...o])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,n,o){return this.exec("get_item",[e,n,o])}get_param(e,n,o){return this.exec("get_param",[e,n,o])}get_parameter(e,n,o){return this.exec("get_param",[e,n,o])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(e,n){return this.exec("get_tlm",[e,n])}get_telemetry(e,n){return this.exec("get_tlm",[e,n])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_tlm",[e])}get_all_tlm_names(e,n=!1){return this.exec("get_all_tlm_names",[e],{hidden:n})}get_all_telemetry_names(e){return this.exec("get_all_tlm_names",[e])}async get_tlm_packet(e,n,o,r=30){const i=await this.exec("get_tlm_packet",[e,n],{type:o,stale_time:r});if(i!=null){let s=i.length,l=null;for(let u=0;u<s;u++)l=this.decode_openc3_type(i[u][1]),l!==null&&(i[u][1]=l)}return i}get_packet_derived_items(e,n){return this.exec("get_packet_derived_items",[e,n])}get_tlm_buffer(e,n){return this.exec("get_tlm_buffer",[e,n])}async get_tlm_values(e,n=30,o=null){let r={stale_time:n};o!==null&&(r.cache_timeout=o);const i=await this.exec("get_tlm_values",[e],r,{},1e4);let s=i[0].length,l=null;for(let u=0;u<s;u++)l=this.decode_openc3_type(i[0][u]),l!==null&&(i[0][u]=l);return i}get_limits(e,n,o){return this.exec("get_limits",[e,n,o])}async tlm(e,n,o,r="CONVERTED"){let i=null;if(n===void 0)i=await this.exec("tlm",[e]);else if(o===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n))i=await this.exec("tlm",[e],{type:n});else{let l=new Error;throw l.name="TypeError",l.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,l}else i=await this.exec("tlm",[e,n,o],{type:r});let s=this.decode_openc3_type(i);return s!==null&&(i=s),i}async inject_tlm(e,n,o=null,r="CONVERTED"){data=await this.exec("inject_tlm",[e,n,o],{type:r})}set_tlm(e,n,o,r){return this.exec("set_tlm",[e,n,o],{type:r})}override_tlm(e,n,o,r){return this.exec("override_tlm",[e,n,o],{type:r})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,n,o,r){return this.exec("normalize_tlm",[e,n,o],{type:r})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_cmds",[e])}get_all_cmd_names(e,n=!1){return this.exec("get_all_cmd_names",[e],{hidden:n})}get_all_command_names(e){return this.exec("get_all_cmd_names",[e])}get_cmd(e,n){return this.exec("get_cmd",[e,n])}get_command(e,n){return this.exec("get_cmd",[e,n])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,n,o,r="CONVERTED"){return this.exec("get_cmd_value",[e,n,o,r])}get_cmd_buffer(e,n){return this.exec("get_cmd_buffer",[e,n])}_cmd(e,n,o,r,i){let s=null;for(let l in r)Object.prototype.hasOwnProperty.call(r,l)&&(s=this.encode_openc3_type(r[l]),s!==null&&(r[l]=s));return this.exec(e,[n,o,r],{},i)}get_cmd_hazardous(e,n,o,r={}){return n===void 0?this.exec("get_cmd_hazardous",e,{},r):this._cmd("get_cmd_hazardous",e,n,o,r)}cmd(e,n,o,r={}){return n===void 0?this.exec("cmd",e,{},r):this._cmd("cmd",e,n,o,r)}cmd_no_range_check(e,n,o,r={}){return n===void 0?this.exec("cmd_no_range_check",e,{},r):this._cmd("cmd_no_range_check",e,n,o,r)}cmd_raw(e,n,o,r={}){return n===void 0?this.exec("cmd_raw",e,{},r):this._cmd("cmd_raw",e,n,o,r)}cmd_raw_no_range_check(e,n,o,r={}){return n===void 0?this.exec("cmd_raw_no_range_check",e,{},r):this._cmd("cmd_raw_no_range_check",e,n,o,r)}cmd_no_hazardous_check(e,n,o,r={}){return n===void 0?this.exec("cmd_no_hazardous_check",e,{},r):this._cmd("cmd_no_hazardous_check",e,n,o,r)}cmd_no_checks(e,n,o,r={}){return n===void 0?this.exec("cmd_no_checks",e,{},r):this._cmd("cmd_no_checks",e,n,o,r)}cmd_raw_no_hazardous_check(e,n,o,r={}){return n===void 0?this.exec("cmd_raw_no_hazardous_check",e,{},r):this._cmd("cmd_raw_no_hazardous_check",e,n,o,r)}cmd_raw_no_checks(e,n,o,r={}){return n===void 0?this.exec("cmd_raw_no_checks",e,{},r):this._cmd("cmd_raw_no_checks",e,n,o,r)}build_cmd(e,n,o){return n===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,o)}build_command(e,n,o){return n===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,o)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,n){return this.exec("send_raw",[e,n])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,n){return this.exec("load_config",[e,n])}save_config(e,n,o){return this.exec("save_config",[e,n,o])}delete_config(e,n){return this.exec("delete_config",[e,n])}enable_limits(e,n,o){return this.exec("enable_limits",[e,n,o])}disable_limits(e,n,o){return this.exec("disable_limits",[e,n,o])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,n){return this.exec("set_setting",[e,n])}save_setting(e,n){return this.exec("set_setting",[e,n])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const n=new TextEncoder().encode(e),o=await crypto.subtle.digest("SHA-256",n),r=new Uint8Array(o);return Array.from(r).map(i=>i.toString(16).padStart(2,"0")).join("")}}}const ko={mixins:[$e],props:{item:{type:Object,required:!0}},data(){return{dataItem:this.item,stateValue:null,checkValue:!1}},created(){this.dataItem.states&&(this.stateValue=this.dataItem.states[this.dataItem.value]),this.isCheckbox&&(this.checkValue=this.stateValue===1)},computed:{isCheckbox:function(){let t=!0;if(this.dataItem.states)for(const e of Object.keys(this.dataItem.states))e!=="CHECKED"&&e!=="UNCHECKED"&&(t=!1);else t=!1;return t},itemStates:function(){let t=[];for(const[e,n]of Object.entries(this.dataItem.states))t.push({title:e,value:n});return t}},watch:{checkValue:function(){this.checkValue?this.$emit("change","CHECKED"):this.$emit("change","UNCHECKED")},stateValue:function(){let t=Object.keys(this.dataItem.states).find(e=>this.dataItem.states[e]===this.stateValue);this.$emit("change",t)}},methods:{textChange:function(t){this.dataItem.value=t,this.$emit("change",this.dataItem.value)},format:function(t){return t&&t.json_class==="String"&&t.raw!==void 0&&(this.dataItem.editable=!1),this.formatValueBase(t)}}};function So(t,e,n,o,r,i){const s=y("v-checkbox"),l=y("v-select"),u=y("v-text-field");return E(),B("td",null,[i.isCheckbox?(E(),T(s,{key:0,density:"compact","hide-details":"",modelValue:r.checkValue,"onUpdate:modelValue":e[0]||(e[0]=c=>r.checkValue=c),disabled:!r.dataItem.editable,"data-test":"table-item-checkbox"},null,8,["modelValue","disabled"])):r.dataItem.states?(E(),T(l,{key:1,density:"compact","hide-details":"",modelValue:r.stateValue,"onUpdate:modelValue":e[1]||(e[1]=c=>r.stateValue=c),items:i.itemStates,disabled:!r.dataItem.editable,"data-test":"table-item-select"},null,8,["modelValue","items","disabled"])):(E(),T(u,{key:2,variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"","onUpdate:modelValue":i.textChange,"model-value":i.format(r.dataItem.value),disabled:!r.dataItem.editable,"data-test":"table-item-text-field"},null,8,["onUpdate:modelValue","model-value","disabled"]))])}const To={components:{TableItem:se(ko,[["render",So]])},props:{items:{type:Object,required:!0}},data(){return{dataItems:this.items}},computed:{oneDimensional(){return this.dataItems.length===1}},methods:{onChange:function(t,e,n){this.$emit("change",{index:e,event:n})}}},Oo={class:"text-start"},Ro={key:0,class:"text-start"};function Ao(t,e,n,o,r,i){const s=y("table-item");return E(),B("tr",null,[P("td",Oo,L(r.dataItems[0].index),1),i.oneDimensional?(E(),B("td",Ro,L(r.dataItems[0].name),1)):J("",!0),(E(!0),B($,null,W(r.dataItems,(l,u)=>(E(),T(s,{key:l.name,item:l,onChange:Se(c=>i.onChange(l,u,c),["self"])},null,8,["item","onChange"]))),128))])}const Co={components:{TopBar:qt,TableRow:se(To,[["render",Ao]]),FileOpenSaveDialog:Me,SimpleTextDialog:Bt},data(){return{title:"Table Manager",search:"",curTab:null,tables:[],api:null,definition:null,fileInput:null,definitionFilename:"",fileNew:!1,filename:"",fileModified:"",lockedBy:null,fileOpen:!1,showSave:!1,showSaveAs:!1,showError:!1,errorTitle:"",errorText:"",uploadScript:null,downloadScript:null,scriptBackground:!0}},computed:{readOnly:function(){return!!this.lockedBy},fullFilename(){return`${this.filename} ${this.fileModified}`.trim()},menus:function(){return[{label:"File",items:[{label:"New File",icon:"mdi-file-plus",command:()=>{this.newFile()}},{label:"Open File",icon:"mdi-folder-open",command:()=>{this.openFile()}},{divider:!0},{label:"Save File",icon:"mdi-content-save",command:()=>{this.saveFile()}},{label:"Save As...",icon:"mdi-content-save",command:()=>{this.saveAs()}},{divider:!0},{label:"Delete File",icon:"mdi-delete",command:()=>{this.delete()}}]}]}},watch:{filename:function(t){let e=this.filename.split("/").slice(0,2).join("/")+"/procedures/upload",n=this.filename.split("/").slice(0,2).join("/")+"/procedures/download";j.get(`/openc3-api/tables/${e}.rb`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(o=>{this.uploadScript=`${e}.rb`}).catch(o=>{j.get(`/openc3-api/tables/${e}.py`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(r=>{this.uploadScript=`${e}.py`}).catch(r=>{this.uploadScript=null})}),j.get(`/openc3-api/tables/${n}.rb`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(o=>{this.downloadScript=`${n}.rb`}).catch(o=>{j.get(`/openc3-api/tables/${n}.py`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(r=>{this.downloadScript=`${n}.py`}).catch(r=>{this.downloadScript=null})})}},created(){this.api=new Eo,this.api.ensure_offline_access()},methods:{newFile:function(){this.fileModified="",this.fileNew=!0,this.fileOpen=!0},openFile:function(){this.fileOpen=!0},setFile:function({file:t,locked:e}){t.name.includes(".txt")?this.fileNew?(this.buildNewBinary(t.name),this.fileNew=!1):this.getDefinition(t.name):(this.unlockFile(),this.filename=t.name.split("*")[0],this.fileModified="",this.lockedBy=e,this.getDefinition())},setError(t){this.errorTitle="Error",this.errorText=`Error: ${t}`,this.errorText=response.data.message,this.showError=!0},saveFile:function(){this.showSave=!0;const t=new FormData;t.append("binary",this.filename),t.append("definition",this.definitionFilename),t.append("tables",JSON.stringify(this.tables)),j.post(`/openc3-api/tables/${this.filename}`,{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(e=>{this.fileModified="",setTimeout(()=>{this.showSave=!1},2e3)}).catch(({response:e})=>{this.showSave=!1,this.errorTitle="Save Error",this.errorText=e.data.message,this.showError=!0}),this.lockFile()},saveAs:function(){this.showSaveAs=!0},saveAsFilename:function(t){j.put(`/openc3-api/tables/${this.filename}/save-as/${t}`).then(e=>{this.filename=t,this.getDefinition(this.definitionFilename)})},delete:function(){this.filename!==""&&this.$dialog.confirm(`Permanently delete file: ${this.filename}`,{okText:"Delete",cancelText:"Cancel"}).then(t=>j.delete(`/openc3-api/tables/${this.filename}`,{data:{}})).then(t=>{this.tables=[],this.filename="",this.definitionFilename=""}).catch(t=>{})},downloadBinary:function(t=null){const e=new FormData;e.append("binary",this.filename),e.append("definition",this.definitionFilename),t!==null&&e.append("table",t),j.post("/openc3-api/tables/binary",{data:e,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{const o=window.atob(n.data.contents),r=new Uint8Array(o.length);for(let l=0;l<o.length;++l)r[l]=o.charCodeAt(l);const i=new Blob([r],{type:"application/octet-stream"}),s=document.createElement("a");s.href=URL.createObjectURL(i),s.setAttribute("download",n.data.filename),s.click()})},downloadDefinition:function(t=null){const e=new FormData;e.append("definition",this.definitionFilename),t!==null&&e.append("table",t),j.post("/openc3-api/tables/definition",{data:e,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{const o=new Blob([n.data.contents],{type:"text/plain"}),r=document.createElement("a");r.href=URL.createObjectURL(o),r.setAttribute("download",n.data.filename),r.click()})},downloadReport:function(t=null){const e=new FormData;e.append("binary",this.filename),e.append("definition",this.definitionFilename),t!==null&&e.append("table",t),j.post("/openc3-api/tables/report",{data:e,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{const o=`Binary: ${this.filename}
8
+ Definition: ${this.definitionFilename}
9
+
10
+ `,r=new Blob([o,n.data.contents],{type:"text/plain"}),i=document.createElement("a");i.href=URL.createObjectURL(r),i.setAttribute("download",n.data.filename),i.click()})},upload(){j.post(`/script-api/scripts/${this.uploadScript}/run`,{data:{environment:[{key:"TBL_FILENAME",value:this.filename}]}}).then(t=>{this.scriptBackground!==!0&&window.open(`/tools/scriptrunner/${t.data}`,"_blank")})},download(){this.$dialog.confirm(`Are you sure you want to overwrite ${this.filename}? You can Save As to create a new file and then Download to preserve the existing file. Note: Once the download completes you will need to re-open the file to see changes.`,{okText:"Download (Overwrite!)",cancelText:"Cancel"}).then(()=>{j.post(`/script-api/scripts/${this.downloadScript}/run`,{data:{environment:[{key:"TBL_FILENAME",value:this.filename}]}}).then(t=>{this.scriptBackground!==!0&&window.open(`/tools/scriptrunner/${t.data}`,"_blank")})}).catch(t=>{})},confirmLocalUnlock:function(){this.$dialog.confirm("Are you sure you want to unlock this file for editing? If another user is editing this file, your changes might conflict with each other.",{okText:"Force Unlock",cancelText:"Cancel"}).then(()=>(this.lockedBy=null,this.lockFile()))},lockFile:function(){return j.post(`/openc3-api/tables/${this.filename}/lock`)},unlockFile:function(){this.filename!==""&&!this.readOnly&&j.post(`/openc3-api/tables/${this.filename}/unlock`)},getDefinition:function(t=null){t||(t=this.filename.replace("/bin/","/config/").replace(".bin","_def.txt")),this.tables=[];const e=new FormData;e.append("binary",this.filename),e.append("definition",t),j.post("/openc3-api/tables/load",{data:e,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{this.definitionFilename=n.data.definition,this.tables=n.data.tables.map(o=>({...o,headers:o.headers.map((r,i)=>{const s={title:r,filterable:r!=="INDEX"};return o.numColumns===1?{...s,value:`[0].${r.toLowerCase()}`}:{...s,value:`[${i}].value`}})})),n.data.errors&&this.$notify.caution({title:"Warning",body:n.data.errors})}).catch(n=>{n.response.status==404?(this.$notify.normal({title:"Definition File Not Found",body:`Definition file ${t} not found. Please select definition file.`}),this.fileOpen=!0):this.$notify.serious({title:"Error",body:`Error loading due to ${n.response.statusText}. Status: ${n.response.status}`})})},buildNewBinary:function(t){const e=new FormData;e.append("definition",t),j.post("/openc3-api/tables/generate",{data:e,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{this.filename=n.data.filename,this.getDefinition(t)})},onChange:function(t,{index:e,event:n}){this.fileModified="*",t[e].value=n}}},No={style:{position:"absolute"},class:"ma-3"};function Fo(t,e,n,o,r,i){const s=y("top-bar"),l=y("v-file-input"),u=y("v-text-field"),c=y("v-col"),d=y("v-row"),m=y("v-icon"),g=y("v-btn"),b=y("v-checkbox"),_=y("v-tooltip"),p=y("v-card-text"),A=y("v-spacer"),R=y("v-card-title"),O=y("v-tab"),U=y("v-tabs"),H=y("table-row"),w=y("v-data-table"),D=y("v-tabs-window-item"),N=y("v-tabs-window"),z=y("v-card"),Z=y("file-open-save-dialog"),jo=y("simple-text-dialog");return E(),B("div",null,[h(s,{menus:i.menus,title:r.title},null,8,["menus","title"]),h(l,{"show-size":"",modelValue:r.fileInput,"onUpdate:modelValue":e[0]||(e[0]=x=>r.fileInput=x),ref:"fileInput",accept:".bin","data-test":"file-input",style:{position:"fixed",top:"-100%"}},null,8,["modelValue"]),h(z,null,{default:f(()=>[h(p,null,{default:f(()=>[h(d,{dense:""},{default:f(()=>[h(c,{cols:"6"},{default:f(()=>[h(u,{variant:"outlined",density:"compact",readonly:"","hide-details":"",label:"Filename",modelValue:i.fullFilename,"onUpdate:modelValue":e[1]||(e[1]=x=>i.fullFilename=x),id:"filename",class:"filename","data-test":"filename"},null,8,["modelValue"])]),_:1}),h(c,{cols:"6"},{default:f(()=>[h(u,{variant:"outlined",density:"compact",readonly:"","hide-details":"",label:"Definition",modelValue:r.definitionFilename,"onUpdate:modelValue":e[2]||(e[2]=x=>r.definitionFilename=x),id:"definition-filename",class:"filename","data-test":"definition-filename"},null,8,["modelValue"])]),_:1})]),_:1}),h(d,{dense:""},{default:f(()=>[h(c,{cols:"auto",class:"mr-auto"},{default:f(()=>[e[25]||(e[25]=P("span",{class:"text-body-1 ma-2"},"File Download:",-1)),h(g,{dense:"",color:"primary",class:"mr-3",onClick:e[3]||(e[3]=x=>i.downloadBinary(null)),disabled:r.filename=="","data-test":"download-file-binary"},{default:f(()=>[e[20]||(e[20]=S(" Binary ")),h(m,{end:"",theme:"dark"},{default:f(()=>e[19]||(e[19]=[S(" mdi-file-code ")])),_:1})]),_:1},8,["disabled"]),h(g,{dense:"",color:"primary",class:"mr-3",onClick:e[4]||(e[4]=x=>i.downloadDefinition(null)),disabled:r.filename=="","data-test":"download-file-definition"},{default:f(()=>[e[22]||(e[22]=S(" Definition ")),h(m,{end:"",theme:"dark"},{default:f(()=>e[21]||(e[21]=[S(" mdi-file-document-edit ")])),_:1})]),_:1},8,["disabled"]),h(g,{dense:"",color:"primary",onClick:e[5]||(e[5]=x=>i.downloadReport(null)),disabled:r.filename=="","data-test":"download-file-report"},{default:f(()=>[e[24]||(e[24]=S(" Report ")),h(m,{end:"",theme:"dark"},{default:f(()=>e[23]||(e[23]=[S(" mdi-file-document ")])),_:1})]),_:1},8,["disabled"])]),_:1}),h(c,{cols:"auto"},{default:f(()=>[h(g,{dense:"",color:"primary",onClick:e[6]||(e[6]=x=>i.upload()),disabled:!r.uploadScript,"data-test":"upload-file"},{default:f(()=>[e[27]||(e[27]=S(" Upload ")),h(m,{end:"",theme:"dark"},{default:f(()=>e[26]||(e[26]=[S(" mdi-file-upload ")])),_:1})]),_:1},8,["disabled"])]),_:1}),h(c,{cols:"auto"},{default:f(()=>[h(g,{dense:"",color:"primary",onClick:e[7]||(e[7]=x=>i.download()),disabled:!r.downloadScript,"data-test":"download-file"},{default:f(()=>[e[29]||(e[29]=S(" Download ")),h(m,{end:"",theme:"dark"},{default:f(()=>e[28]||(e[28]=[S(" mdi-file-download ")])),_:1})]),_:1},8,["disabled"])]),_:1}),h(c,{cols:"auto"},{default:f(()=>[h(_,{location:"top"},{activator:f(({props:x})=>[P("span",ve(xe(x)),[h(b,{modelValue:r.scriptBackground,"onUpdate:modelValue":e[8]||(e[8]=ie=>r.scriptBackground=ie),label:"B/G",class:"shrink mt-0","data-test":"upload-background"},null,8,["modelValue"])],16)]),default:f(()=>[e[30]||(e[30]=P("span",null,"Run upload download scripts in the background",-1))]),_:1})]),_:1})]),_:1})]),_:1}),h(R,{class:"d-flex align-center"},{default:f(()=>[e[31]||(e[31]=S(" Items ")),h(A),h(u,{modelValue:r.search,"onUpdate:modelValue":e[9]||(e[9]=x=>r.search=x),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"",class:"search"},null,8,["modelValue"])]),_:1}),(E(),T(U,{modelValue:r.curTab,"onUpdate:modelValue":e[10]||(e[10]=x=>r.curTab=x),key:`v-tabs_${r.tables.length}`},{default:f(()=>[(E(!0),B($,null,W(r.tables,(x,ie)=>(E(),T(O,{key:ie},{default:f(()=>[S(L(x.name),1)]),_:2},1024))),128))]),_:1},8,["modelValue"])),(E(),T(N,{modelValue:r.curTab,"onUpdate:modelValue":e[11]||(e[11]=x=>r.curTab=x),key:`v-tabs-window_${r.tables.length}`},{default:f(()=>[(E(!0),B($,null,W(r.tables,(x,ie)=>(E(),T(D,{key:`${r.filename}${ie}`},{default:f(()=>[h(w,{headers:x.headers,items:x.rows,search:r.search,"items-per-page":20,"items-per-page-options":[10,20,50,100,-1],"multi-sort":"",density:"compact","data-test":x.name},ae({item:f(({item:ee})=>[(E(),T(H,{items:ee,key:ee[0].name,onChange:Se(Uo=>i.onChange(ee,Uo),["self"])},null,8,["items","onChange"]))]),_:2},[r.tables.length>1?{name:"tfoot",fn:f(()=>[P("div",No,[e[38]||(e[38]=P("span",{class:"text-body-1 mr-3"},"Table Download:",-1)),h(g,{dense:"",color:"primary",class:"mr-3",onClick:ee=>i.downloadBinary(x.name),disabled:r.filename=="","data-test":"download-table-binary"},{default:f(()=>[e[33]||(e[33]=S(" Binary ")),h(m,{end:"",theme:"dark"},{default:f(()=>e[32]||(e[32]=[S(" mdi-file-code ")])),_:1})]),_:2},1032,["onClick","disabled"]),h(g,{dense:"",color:"primary",class:"mr-3",onClick:ee=>i.downloadDefinition(x.name),disabled:r.filename=="","data-test":"download-table-definition"},{default:f(()=>[e[35]||(e[35]=S(" Definition ")),h(m,{end:"",theme:"dark"},{default:f(()=>e[34]||(e[34]=[S(" mdi-file-document-edit ")])),_:1})]),_:2},1032,["onClick","disabled"]),h(g,{dense:"",color:"primary",onClick:ee=>i.downloadReport(x.name),disabled:r.filename=="","data-test":"download-table-report"},{default:f(()=>[e[37]||(e[37]=S(" Report ")),h(m,{end:"",theme:"dark"},{default:f(()=>e[36]||(e[36]=[S(" mdi-file-document ")])),_:1})]),_:2},1032,["onClick","disabled"])])]),key:"0"}:void 0]),1032,["headers","items","search","data-test"])]),_:2},1024))),128))]),_:1},8,["modelValue"]))]),_:1}),r.fileOpen?(E(),T(Z,{key:0,modelValue:r.fileOpen,"onUpdate:modelValue":e[12]||(e[12]=x=>r.fileOpen=x),type:"open","api-url":"/openc3-api/tables",onFile:e[13]||(e[13]=x=>i.setFile(x)),onError:e[14]||(e[14]=x=>i.setError(x))},null,8,["modelValue"])):J("",!0),r.showSaveAs?(E(),T(Z,{key:1,modelValue:r.showSaveAs,"onUpdate:modelValue":e[15]||(e[15]=x=>r.showSaveAs=x),type:"save","require-target-parent-dir":"","api-url":"/openc3-api/tables","input-filename":r.filename,onFilename:e[16]||(e[16]=x=>i.saveAsFilename(x)),onError:e[17]||(e[17]=x=>i.setError(x))},null,8,["modelValue","input-filename"])):J("",!0),h(jo,{modelValue:r.showError,"onUpdate:modelValue":e[18]||(e[18]=x=>r.showError=x),title:r.errorTitle,text:r.errorText},null,8,["modelValue","title","text"])])}const Vo=Nt("default",se(Co,[["render",Fo],["__scopeId","data-v-3e18cdee"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-74ac7eecdb0666c6a3ed.js","vue","./DetailsDialog-DLRMqetn-1b4bd3859b4c0f280356.js","single-spa","./VWidget-02CG-3Av-078bbd0f0405e6aa73ed.js","vue-router","vuex","vuetify","./Widget-C4QVI4IH-3f6647936adce5c38a68.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-3f6647936adce5c38a68.js","vue","./main-74ac7eecdb0666c6a3ed.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-3f6647936adce5c38a68.js","./main-74ac7eecdb0666c6a3ed.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-3f6647936adce5c38a68.js","vue","./main-74ac7eecdb0666c6a3ed.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 +1 @@
1
- System.register(["./main-d2f01c5f64af7a18d0cd.js","./Widget-orNSvnOh-6875cac048a7f8a1cb7e.js"],function(x,T){"use strict";var _,w;return{setters:[h=>{_=h.P},h=>{w=h.o}],execute:function(){var h={},b;function k(){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 S(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=S,typeof window<"u"&&(window.sprintf=c,window.vsprintf=S)})()}(h)),h}k();const I={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"}}};x({k:I,L:{mixins:[w,_,I],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-74ac7eecdb0666c6a3ed.js","./Widget-C4QVI4IH-3f6647936adce5c38a68.js"],function(x,T){"use strict";var _,w;return{setters:[h=>{_=h.P},h=>{w=h.o}],execute:function(){var h={},I;function V(){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 S(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=S,typeof window<"u"&&(window.sprintf=c,window.vsprintf=S)})()}(h)),h}V();const b={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"}}};x({k:b,L:{mixins:[w,_,b],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})}}}})}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-74ac7eecdb0666c6a3ed.js","vue","./DetailsDialog-DLRMqetn-1b4bd3859b4c0f280356.js","single-spa","./VWidget-02CG-3Av-078bbd0f0405e6aa73ed.js","vue-router","vuex","vuetify","./Widget-C4QVI4IH-3f6647936adce5c38a68.js"],function(w,I){"use strict";var c,a,r,o,d,n,l,m,p,v,u,g,h,f,x,y,V,C;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,r=e.openBlock,o=e.createElementBlock,d=e.normalizeStyle,n=e.createVNode,l=e.withCtx,m=e.mergeProps,p=e.createSlots,v=e.createElementVNode,u=e.toDisplayString,g=e.Fragment,h=e.renderList,f=e.createBlock,x=e.withModifiers,y=e.createTextVNode},e=>{V=e.P},null,e=>{C=e.L},null,null,null,null],execute:function(){const S={components:{DetailsDialog:V},mixins:[C],data:function(){return{width:16}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+4,"ch",this.width)}};function D(t,i,W,j,z,k){const E=a("rux-status"),_=a("v-text-field"),L=a("v-tooltip"),N=a("v-list-item-title"),M=a("v-list-item"),T=a("v-list"),B=a("v-menu"),P=a("details-dialog");return r(),o("div",{class:"value-widget-container",style:d([t.computedStyle,k.aging])},[n(L,{location:"top"},{activator:l(({props:s})=>[n(_,m({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value",onContextmenu:t.showContextMenu},s),p({_:2},[t.astroStatus?{name:"prepend-inner",fn:l(()=>[n(E,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:l(()=>[v("span",null,u(k.fullName),1)]),_:1}),n(B,{modelValue:t.contextMenuShown,"onUpdate:modelValue":i[0]||(i[0]=s=>t.contextMenuShown=s),target:[t.x,t.y],style:{"z-index":"3000"}},{default:l(()=>[n(T,null,{default:l(()=>[(r(!0),o(g,null,h(t.contextMenuOptions,(s,A)=>(r(),f(M,{key:A,onClick:x(s.action,["stop"])},{default:l(()=>[n(N,null,{default:l(()=>[y(u(s.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(P,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":i[1]||(i[1]=s=>t.viewDetails=s)},null,8,["target-name","packet-name","item-name","modelValue"])],4)}const U=w("default",c(S,[["render",D],["__scopeId","data-v-c21e4dde"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./ValueWidget-KLYY8L8U-755aeff02f2198f3a6c1.js","./LimitsbarWidget-DXbqsi4J-b81a41599540cc069630.js","./Widget-C4QVI4IH-3f6647936adce5c38a68.js","vue","./main-74ac7eecdb0666c6a3ed.js","./DetailsDialog-DLRMqetn-1b4bd3859b4c0f280356.js","single-spa","./VWidget-02CG-3Av-078bbd0f0405e6aa73ed.js","vue-router","vuex","vuetify","./BarColumn-Cdu3OoMa-7ebc6bba2ec2b7443275.js"],function(g,f){"use strict";var l,i,a,s,u,o,c,n,r,m;return{setters:[e=>{l=e.default},e=>{i=e.default},e=>{a=e.o},e=>{s=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,n=e.createVNode,r=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:l,LimitsbarWidget:i}};function d(t,x,V,j,w,y){const p=s("value-widget"),v=s("limitsbar-widget");return u(),o("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[n(p,r(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),n(v,r(t.$attrs,{parameters:t.parameters.slice(0,3),settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"])],4)}const b=g("default",m(e,[["render",d]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./ValueWidget-KLYY8L8U-755aeff02f2198f3a6c1.js","./LimitscolumnWidget-BfY4su5U-d7c978be2b1498fd49d5.js","./Widget-C4QVI4IH-3f6647936adce5c38a68.js","vue","./main-74ac7eecdb0666c6a3ed.js","./DetailsDialog-DLRMqetn-1b4bd3859b4c0f280356.js","single-spa","./VWidget-02CG-3Av-078bbd0f0405e6aa73ed.js","vue-router","vuex","vuetify","./BarColumn-Cdu3OoMa-7ebc6bba2ec2b7443275.js"],function(g,f){"use strict";var r,i,a,n,u,o,c,s,l,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.o},e=>{n=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:r,LimitscolumnWidget:i}};function d(t,j,w,y,z,B){const p=n("limitscolumn-widget"),v=n("value-widget");return u(),o("div",{ref:"container",style:c(t.computedStyle)},[s(p,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"]),s(v,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const V=g("default",m(e,[["render",d]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./ValueWidget-KLYY8L8U-755aeff02f2198f3a6c1.js","./RangebarWidget-DHS7S3vI-dd35439083d052dc4430.js","./Widget-C4QVI4IH-3f6647936adce5c38a68.js","vue","./main-74ac7eecdb0666c6a3ed.js","./DetailsDialog-DLRMqetn-1b4bd3859b4c0f280356.js","single-spa","./VWidget-02CG-3Av-078bbd0f0405e6aa73ed.js","vue-router","vuex","vuetify"],function(g,f){"use strict";var n,i,l,r,u,m,o,s,a,p;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.o},e=>{r=e.resolveComponent,u=e.openBlock,m=e.createElementBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{p=e.s},null,null,null,null,null,null],execute:function(){const e={mixins:[l],components:{ValueWidget:n,RangebarWidget:i},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function d(t,V,x,j,w,c){const v=r("value-widget"),h=r("rangebar-widget");return u(),m("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(v,a(t.$attrs,{parameters:c.valueParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(h,a(t.$attrs,{parameters:c.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const S=g("default",p(e,[["render",d]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Layout-C1HoM4Kl-d9b72a724670a2a49805.js","vue","./main-74ac7eecdb0666c6a3ed.js","./Widget-C4QVI4IH-3f6647936adce5c38a68.js","vue-router","single-spa","vuex","vuetify"],function(y,k){"use strict";var a,r,i,c,o,u,m,g,p,f;return{setters:[e=>{a=e.r},e=>{r=e.openBlock,i=e.createElementBlock,c=e.normalizeStyle,o=e.Fragment,u=e.renderList,m=e.createBlock,g=e.resolveDynamicComponent,p=e.mergeProps},e=>{f=e.s},null,null,null,null,null],execute:function(){const e={mixins:[a],created:function(){if(this.parameters[0]){let n=this.parameters[0];this.widgets.forEach(l=>{l.settings.find(s=>s[0]==="MARGIN"||s[0]==="RAW"&&s[1].toUpperCase().includes("MARGIN"))===void 0&&l.settings.push(["MARGIN",n])})}}};function v(n,l,s,B,w,C){return r(),i("div",{ref:"container",style:c(n.computedStyle)},[(r(!0),i(o,null,u(n.widgets,(t,d)=>(r(),m(g(t.type),p({ref_for:!0},n.listeners,{key:d,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 h=y("default",f(e,[["render",v]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./VerticalWidget-z6xUM-ql-ac996801e51342fd6e24.js","./Layout-C1HoM4Kl-d9b72a724670a2a49805.js","vue","./main-74ac7eecdb0666c6a3ed.js","./Widget-C4QVI4IH-3f6647936adce5c38a68.js","vue-router","single-spa","vuex","vuetify"],function(d,V){"use strict";var r,l,n,i,a,s,c,o,u,g,p,v;return{setters:[e=>{r=e.default},e=>{l=e.r},e=>{n=e.resolveComponent,i=e.openBlock,a=e.createElementBlock,s=e.createVNode,c=e.normalizeStyle,o=e.withCtx,u=e.createTextVNode,g=e.toDisplayString,p=e.mergeProps},e=>{v=e.s},null,null,null,null,null],execute:function(){const e={mixins:[l],components:{VerticalWidget:r}};function m(t,w,C,S,k,z){const y=n("v-banner"),x=n("vertical-widget");return i(),a("div",null,[s(y,{class:"boxbanner",style:c(t.computedStyle),"single-line":""},{default:o(()=>[u(g(t.parameters[0]),1)]),_:1},8,["style"]),s(x,p(t.listeners,{parameters:t.parameters.slice(1),settings:t.settings,widgets:t.widgets,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone"])])}const f=d("default",v(e,[["render",m],["__scopeId","data-v-832aa5cd"]]))}}});
@@ -1 +1 @@
1
- System.register(["./main-d2f01c5f64af7a18d0cd.js"],function(o,d){"use strict";var p,r;return{setters:[n=>{p=n.z,r=n.a}],execute:function(){const n=o("o",{mixins:[p],props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},screenValues:{type:Object,default:()=>{}},screenTimeZone:{type:String,default:"local"},namedWidgets:{type:Object,default:{}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{appliedSettings:[],appliedStyle:{},widgetName:null,screenId:"NO_SCREEN"}},computed:{computedStyle:function(){return this.appliedSettings.forEach(t=>{this.applyStyleSetting(t)}),this.appliedStyle.width===void 0&&this.appliedStyle.height===void 0&&(this.appliedStyle.flex="0 10 100%"),this.appliedStyle},screen:function(){const t=this;return{getNamedWidget:function(e){return t.$store.getters.namedWidget(t.toQualifiedWidgetName(e))},open:function(e,i){t.$emit("open",e,i)},close:function(e,i){t.$emit("close",e,i)},closeAll:function(){t.$emit("closeAll")}}},listeners:function(){return Object.entries(this.$attrs).reduce((t,e)=>e[0].startsWith("on")?{...t,[e[0]]:e[1]}:t,{})}},watch:{widgetName:function(t,e){this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(e)),this.$store.commit("setNamedWidget",{[this.toQualifiedWidgetName(t)]:this})}},created(){var t,e;this.screenId=(t=this.settings.find(i=>i[0]==="__SCREEN_ID__"))==null?void 0:t.at(1),this.widgetName=(e=this.settings.find(i=>i[0]==="NAMED_WIDGET"))==null?void 0:e.at(1),this.appliedSettings=this.settings.map(i=>{const s=parseInt(i[0]);if(isNaN(s)||this.widgetIndex===null)return i;if(this.widgetIndex===s)return i.slice(1)}).filter(i=>i!==void 0)},beforeUnmount(){this.widgetName&&this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(this.widgetName))},methods:{applyStyleSetting(t){switch(t[0]){case"TEXTALIGN":this.appliedStyle["text-align"]=t[1].toLowerCase()+" !important",this.appliedStyle["--text-align"]=t[1].toLowerCase();break;case"PADDING":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.padding=t[1]+" !important";break;case"MARGIN":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.margin=t[1]+" !important";break;case"BACKCOLOR":this.appliedStyle["background-color"]=this.getColor(t.slice(1))+" !important";break;case"TEXTCOLOR":this.appliedStyle.color=this.getColor(t.slice(1))+" !important";break;case"BORDERCOLOR":this.appliedStyle["border-width"]="1px!important",this.appliedStyle["border-style"]="solid!important",this.appliedStyle["border-color"]=this.getColor(t.slice(1))+" !important";break;case"WIDTH":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.width=t[1]+" !important";break;case"HEIGHT":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.height=t[1]+" !important";break;case"RAW":this.appliedStyle[t[1].toLowerCase()]=t[2]+" !important";break}},verifyNumParams(t,e,i,s=""){let a={line:this.line,lineNumber:this.lineNumber,keyword:t,parameters:this.parameters};for(let l=1;l<=e;l++)if(this.parameters[l-1]===void 0)throw new r(a,`Not enough parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration");if(i!==null&&this.parameters.length>i)throw new r(a,`Too many parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration")},setWidth(t,e="px",i="120"){let s=this.appliedSettings.find(a=>a[0]==="WIDTH");return s?s.WIDTH:t?(this.appliedSettings.push(["WIDTH",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["WIDTH",`${i}${e}`]),parseInt(i))},setHeight(t,e="px",i="20"){let s=null;return s=this.appliedSettings.find(a=>a[0]==="HEIGHT"),s?s.HEIGHT:t?(this.appliedSettings.push(["HEIGHT",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["HEIGHT",`${i}${e}`]),parseInt(i))},getColor(t){switch(t.length){case 1:return t[0].toLowerCase();case 3:return`rgb(${t[0]},${t[1]},${t[2]})`}},toQualifiedWidgetName(t){return`${this.screenId}:${t}`}}})}}});
1
+ System.register(["./main-74ac7eecdb0666c6a3ed.js"],function(o,d){"use strict";var p,r;return{setters:[n=>{p=n.B,r=n.a}],execute:function(){const n=o("o",{mixins:[p],props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},screenValues:{type:Object,default:()=>{}},screenTimeZone:{type:String,default:"local"},namedWidgets:{type:Object,default:{}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{appliedSettings:[],appliedStyle:{},widgetName:null,screenId:"NO_SCREEN"}},computed:{computedStyle:function(){return this.appliedSettings.forEach(t=>{this.applyStyleSetting(t)}),this.appliedStyle.width===void 0&&this.appliedStyle.height===void 0&&(this.appliedStyle.flex="0 10 100%"),this.appliedStyle},screen:function(){const t=this;return{getNamedWidget:function(e){return t.$store.getters.namedWidget(t.toQualifiedWidgetName(e))},open:function(e,i){t.$emit("open",e,i)},close:function(e,i){t.$emit("close",e,i)},closeAll:function(){t.$emit("closeAll")}}},listeners:function(){return Object.entries(this.$attrs).reduce((t,e)=>e[0].startsWith("on")?{...t,[e[0]]:e[1]}:t,{})}},watch:{widgetName:function(t,e){this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(e)),this.$store.commit("setNamedWidget",{[this.toQualifiedWidgetName(t)]:this})}},created(){var t,e;this.screenId=(t=this.settings.find(i=>i[0]==="__SCREEN_ID__"))==null?void 0:t.at(1),this.widgetName=(e=this.settings.find(i=>i[0]==="NAMED_WIDGET"))==null?void 0:e.at(1),this.appliedSettings=this.settings.map(i=>{const s=parseInt(i[0]);if(isNaN(s)||this.widgetIndex===null)return i;if(this.widgetIndex===s)return i.slice(1)}).filter(i=>i!==void 0)},beforeUnmount(){this.widgetName&&this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(this.widgetName))},methods:{applyStyleSetting(t){switch(t[0]){case"TEXTALIGN":this.appliedStyle["text-align"]=t[1].toLowerCase()+" !important",this.appliedStyle["--text-align"]=t[1].toLowerCase();break;case"PADDING":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.padding=t[1]+" !important";break;case"MARGIN":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.margin=t[1]+" !important";break;case"BACKCOLOR":this.appliedStyle["background-color"]=this.getColor(t.slice(1))+" !important";break;case"TEXTCOLOR":this.appliedStyle.color=this.getColor(t.slice(1))+" !important";break;case"BORDERCOLOR":this.appliedStyle["border-width"]="1px!important",this.appliedStyle["border-style"]="solid!important",this.appliedStyle["border-color"]=this.getColor(t.slice(1))+" !important";break;case"WIDTH":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.width=t[1]+" !important";break;case"HEIGHT":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.height=t[1]+" !important";break;case"RAW":this.appliedStyle[t[1].toLowerCase()]=t[2]+" !important";break}},verifyNumParams(t,e,i,s=""){let a={line:this.line,lineNumber:this.lineNumber,keyword:t,parameters:this.parameters};for(let l=1;l<=e;l++)if(this.parameters[l-1]===void 0)throw new r(a,`Not enough parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration");if(i!==null&&this.parameters.length>i)throw new r(a,`Too many parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration")},setWidth(t,e="px",i="120"){let s=this.appliedSettings.find(a=>a[0]==="WIDTH");return s?s.WIDTH:t?(this.appliedSettings.push(["WIDTH",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["WIDTH",`${i}${e}`]),parseInt(i))},setHeight(t,e="px",i="20"){let s=null;return s=this.appliedSettings.find(a=>a[0]==="HEIGHT"),s?s.HEIGHT:t?(this.appliedSettings.push(["HEIGHT",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["HEIGHT",`${i}${e}`]),parseInt(i))},getColor(t){switch(t.length){case 1:return t[0].toLowerCase();case 3:return`rgb(${t[0]},${t[1]},${t[2]})`}},toQualifiedWidgetName(t){return`${this.screenId}:${t}`}}})}}});