openc3-cosmos-tool-tablemanager 7.3.0 → 7.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/tools/tablemanager/{ArrayWidget-5XQXgMtp-0b904ffa1ec9f5958b06.js → ArrayWidget-CIDdZjk3-3d456b86878c045f0d1d.js} +2 -2
  3. data/tools/tablemanager/ArrayplotWidget-BfO1atvG-58a18d102627a8592c71.js +1 -0
  4. data/tools/tablemanager/BarColumn-CHX_3ye3-7ccabfde58c0374e6864.js +1 -0
  5. data/tools/tablemanager/{BlockWidget-B_5TnoG_-d2b8787bd19ae8c89c75.js → BlockWidget-DSbunlY_-e002a11e1cdbfc7f4057.js} +2 -2
  6. data/tools/tablemanager/ButtonWidget-BB4ZOCI8-9b0d9028322747e1e741.js +1 -0
  7. data/tools/tablemanager/CanvasWidget-DsyMt7xW-0f925f00e079062ef340.js +1 -0
  8. data/tools/tablemanager/CanvasdotWidget-BZpkCAoH-a35996d5f3308a108b0c.js +1 -0
  9. data/tools/tablemanager/{CanvasimageWidget-CYg1rKr_-9f3ceec8bc5f9a39c597.js → CanvasimageWidget-DY1DDf0a-21443c767e1928db9abd.js} +1 -1
  10. data/tools/tablemanager/CanvasimagevalueWidget-0lc2cCPV-11a2c8acf1145f1a20d6.js +1 -0
  11. data/tools/tablemanager/CanvaslabelWidget-C6TDW9WO-4f886584c71cbcf0e604.js +1 -0
  12. data/tools/tablemanager/{CanvaslabelvalueWidget-bCIPWE4c-f309a01b1c6d5ce49c7b.js → CanvaslabelvalueWidget-Cf_dcDW2-7f7d5be31da99a05644f.js} +1 -1
  13. data/tools/tablemanager/{CanvaslineWidget-Tw1B6RTA-314ae0664fe905d0a78c.js → CanvaslineWidget-jg2ozQ0N-8a8f83212719c84e2005.js} +1 -1
  14. data/tools/tablemanager/{CanvaslinevalueWidget-GvTic9rq-3440e25ef4bc1144263f.js → CanvaslinevalueWidget-CKpjqlKA-8ec169a3639fce3b7642.js} +1 -1
  15. data/tools/tablemanager/CheckbuttonWidget-BWXinMaT-0283a85cfe85fb13461f.js +1 -0
  16. data/tools/tablemanager/{ComboboxWidget-BO31bWzg-1842b7e49ffcae9b6e92.js → ComboboxWidget-BzKkyRDT-83919823b21b54ef38e6.js} +1 -1
  17. data/tools/tablemanager/DateWidget-qUbLzQsX-758ae8da877991efcd80.js +1 -0
  18. data/tools/tablemanager/DetailsDialog-CLPj0nP0-365d9d3e130590b5ffc6.js +1 -0
  19. data/tools/tablemanager/DynamicWidget-yna_ejyc-13c7ad60497919503da1.js +1 -0
  20. data/tools/tablemanager/FilechecksumWidget-DqNThsOX-3c53bd9a770a50346a95.js +1 -0
  21. data/tools/tablemanager/FiledisplayWidget-BRhhiVEs-2f0a046d5e1ec07bec05.js +1 -0
  22. data/tools/tablemanager/{FormatvalueWidget-B9Giwzaz-12369c318d179d9c4a1d.js → FormatvalueWidget-pEjAh0h2-9309df32eb560ba3cf3b.js} +1 -1
  23. data/tools/tablemanager/Graph-GVQZltap-57ac29b4ccc3557d2600.js +1 -0
  24. data/tools/tablemanager/{GraphWidget-COvVOlEn-28911ab2c486a30c58cb.js → GraphWidget-BZjBkefj-94fdb931e21c3eb88447.js} +1 -1
  25. data/tools/tablemanager/{HorizontalWidget-BfdjRLGe-9b428b5fb5f1b6abd5a2.js → HorizontalWidget-Brag6E4y-61cf029d3f3457fe7d1d.js} +1 -1
  26. data/tools/tablemanager/HorizontalboxWidget-BnkH4cVq-d4e1a6cb8e3e6377f076.js +1 -0
  27. data/tools/tablemanager/HorizontallineWidget-k7fL4EPN-8cd3cca6b7ba4af83580.js +1 -0
  28. data/tools/tablemanager/{IframeWidget-BCtrIgD1-62014c5c1c03f4dec678.js → IframeWidget-Ciu5u58E-40895fac48619c381bf3.js} +1 -1
  29. data/tools/tablemanager/ImageLoader-DH5e4lg8-d35cfbffcdf316573927.js +1 -0
  30. data/tools/tablemanager/{ImageviewerWidget-DKMBE3tQ-adfe3cc2c407ac40d71e.js → ImageviewerWidget-vWMGPveb-bc5e1ba60a1f9e4667cf.js} +1 -1
  31. data/tools/tablemanager/{LabelWidget-B0nE0ImW-06bd8c97d1ebc68d06eb.js → LabelWidget-DVp0CmFH-8067086869d9aba91261.js} +1 -1
  32. data/tools/tablemanager/LabelledWidget-1DeE1-6G-3b18f33223c7c1768426.js +1 -0
  33. data/tools/tablemanager/LabelprogressbarWidget-DME-BrZe-9da8d98c2108318a795e.js +1 -0
  34. data/tools/tablemanager/LabelsparklineWidget-4iDHGnPL-3561daee5e6c25c80b86.js +1 -0
  35. data/tools/tablemanager/LabelvalueWidget-C6NQSHTb-635124dc5b6c88f27875.js +1 -0
  36. data/tools/tablemanager/LabelvaluedescWidget-c5BUCRxB-66e00c16c09b7587da1c.js +1 -0
  37. data/tools/tablemanager/LabelvaluelimitsbarWidget-DBKZLpXJ-5db8842d404e5c638680.js +1 -0
  38. data/tools/tablemanager/LabelvaluelimitscolumnWidget-NdEu06go-feed26414158f1babbb1.js +1 -0
  39. data/tools/tablemanager/LabelvaluerangebarWidget-CL5HLK0t-80f4d832eb0071f18471.js +1 -0
  40. data/tools/tablemanager/{Layout-BLS4Yi3m-7a7d0577030c20566319.js → Layout-Df-lJgpB-262ccc75e7609f60b583.js} +1 -1
  41. data/tools/tablemanager/{LedWidget-DqVfh3zJ-7951a3598bd6ad1bb27e.js → LedWidget-C97EJXBo-4ea685513fee83dd9732.js} +1 -1
  42. data/tools/tablemanager/{LimitsBar-BqpvMpXM-72501bf72ea1367e3bc7.js → LimitsBar-DNV39okL-3c0c95101783d95a40f4.js} +1 -1
  43. data/tools/tablemanager/LimitsbarWidget-BIO6xztx-4d2c1371095565476999.js +1 -0
  44. data/tools/tablemanager/{LimitscolorWidget-DVXho9Mm-b7b0abec07c09cd2f0eb.js → LimitscolorWidget-BGrNA65J-3b00cef23b3790434db9.js} +1 -1
  45. data/tools/tablemanager/LimitscolumnWidget-Bw6EXJs9-7d999ccca30a9b0a55f1.js +1 -0
  46. data/tools/tablemanager/LinegraphWidget-Drf9tTPN-68eb1da25e220788df81.js +1 -0
  47. data/tools/tablemanager/{MatrixbycolumnsWidget-CJJ7SugT-9b68d874883397ed0ba6.js → MatrixbycolumnsWidget-C33-g7kK-c7de3d1b8679aba22b90.js} +1 -1
  48. data/tools/tablemanager/OpenC3TimePicker-cOr0aOVn-49536c5ea49488f3e752.js +1 -0
  49. data/tools/tablemanager/{ProgressbarWidget-VTd49uhi-ec078db05478ce3f9243.js → ProgressbarWidget-DqfSMI10-cafd068196958841e23e.js} +1 -1
  50. data/tools/tablemanager/RadiobuttonWidget-CSQeEacF-d6463b0ad411e64dd683.js +1 -0
  51. data/tools/tablemanager/RadiogroupWidget-DlQN9z-Z-97a21f6fbcca5e17941c.js +1 -0
  52. data/tools/tablemanager/{RangebarWidget-CN11Oqws-705bd579b5cfdb9145bc.js → RangebarWidget-CJSUof1--b0d47e5f54f9c407f79a.js} +1 -1
  53. data/tools/tablemanager/{RollupWidget-cgl9Ghle-335ebd76959ca6adc1f2.js → RollupWidget-C977Lkcx-12bc4119507e8da2b447.js} +1 -1
  54. data/tools/tablemanager/{ScrollwindowWidget-BFK-ihvZ-c9fd08dfbfce9224eae8.js → ScrollwindowWidget-BFxz61oW-18b2ad9102c388cb52a4.js} +1 -1
  55. data/tools/tablemanager/{SignalWidget-Be7Z5pJD-ef20940457049fe38e57.js → SignalWidget-BT6AcbBx-93ebd7ce32db6f50f2a0.js} +1 -1
  56. data/tools/tablemanager/SpacerWidget-B_f09KAi-c2420619ab4528b2bdd1.js +1 -0
  57. data/tools/tablemanager/SparklineWidget-Bji9DILO-c5bf2bbe580cb0f4deba.js +1 -0
  58. data/tools/tablemanager/TabbookWidget-B74U8t2i-7f95e56de419a4c5ad46.js +1 -0
  59. data/tools/tablemanager/TableManager-92fe66fe52775564c13e.js +16 -0
  60. data/tools/tablemanager/TextboxWidget-CbKE9aSW-0511057cee29e2056835.js +1 -0
  61. data/tools/tablemanager/TextfieldWidget-CpdmfNk5-137ed699deb4b5d896c7.js +1 -0
  62. data/tools/tablemanager/{TimeWidget-BBuxr7Db-a5d40d6d5f5b1210b199.js → TimeWidget-BTaXBxVm-44f3c0a51a22f9d3894d.js} +1 -1
  63. data/tools/tablemanager/TitleWidget-ulO_gdVY-7e3621358cb59b109134.js +1 -0
  64. data/tools/tablemanager/{VWidget-5FjwlURU-2150ba454e00748bb7e1.js → VWidget-C4VLQ7-b-6e0c7bced9c086b4b9c2.js} +1 -1
  65. data/tools/tablemanager/{ValueWidget-CpptSOvJ-ce9e7bc5add811023290.js → ValueWidget-B3-Jjoux-fa607809a9626b514025.js} +1 -1
  66. data/tools/tablemanager/ValuelimitsbarWidget-CqRkPwWS-4371f34ec5df13570c3c.js +1 -0
  67. data/tools/tablemanager/{ValuelimitscolumnWidget-CfTt7Q8a-f516c32c583f62b9af6c.js → ValuelimitscolumnWidget-CF4CN14a-cdc27f85cb9c09b2c895.js} +1 -1
  68. data/tools/tablemanager/ValuerangebarWidget-DJtrknKH-d38c7021808d30874276.js +1 -0
  69. data/tools/tablemanager/{VerticalWidget-B_eheXmK-c78b7d06c77c41d979d2.js → VerticalWidget-CoJiy2TT-323f2d1c115ee53f0548.js} +1 -1
  70. data/tools/tablemanager/{VerticalboxWidget-Bf8XJiY9-4c5e2ca7bca7b2fbbe04.js → VerticalboxWidget-BD5Eq3BH-7cb5910868a2c335cf65.js} +1 -1
  71. data/tools/tablemanager/Widget-ClRi417b-4840d840a29c7183f214.js +1 -0
  72. data/tools/tablemanager/main-e41b7aa8f8baeaf00ba2.js +1491 -0
  73. data/tools/tablemanager/main.js +1 -1
  74. metadata +72 -72
  75. data/tools/tablemanager/ArrayplotWidget-pk7OINvA-810ba8efa4489bae94ba.js +0 -1
  76. data/tools/tablemanager/BarColumn-JQ552zb0-6a4f22801e1baff9c2f0.js +0 -1
  77. data/tools/tablemanager/ButtonWidget-CiZGNEls-a09dd5baaf87a6779b00.js +0 -1
  78. data/tools/tablemanager/CanvasWidget-CzLQAoHY-79e8288e83c3e15cd2a1.js +0 -1
  79. data/tools/tablemanager/CanvasdotWidget-CcI1HwAp-7f77e88094d51516f0c0.js +0 -1
  80. data/tools/tablemanager/CanvasimagevalueWidget-e0p2honY-7e4c50f1cc1d29abd8a6.js +0 -1
  81. data/tools/tablemanager/CanvaslabelWidget-CgECf4wH-6537545a74bfc464996f.js +0 -1
  82. data/tools/tablemanager/CheckbuttonWidget-DV6xeneq-72767479df274e31a462.js +0 -1
  83. data/tools/tablemanager/DateWidget-DYviZFhJ-4bb8f4e82a5c38e4fa22.js +0 -1
  84. data/tools/tablemanager/DetailsDialog-DHi4t3xd-bc2ee12b45c7e9444058.js +0 -1
  85. data/tools/tablemanager/DynamicWidget-BuSbQVhf-718de99092be82bf6900.js +0 -1
  86. data/tools/tablemanager/FilechecksumWidget-rJe1KvzY-1f120fcf5c97e7b07a4a.js +0 -1
  87. data/tools/tablemanager/FiledisplayWidget-CbTWgtBy-23b9ecf7b6aef905844e.js +0 -1
  88. data/tools/tablemanager/Graph-xc7TNnsk-4d1faf4e788bbc7e352d.js +0 -1
  89. data/tools/tablemanager/HorizontalboxWidget-B1b9uNaB-a059e34e50b23c27de91.js +0 -1
  90. data/tools/tablemanager/HorizontallineWidget-CHz4o6Gi-1daf6b8940629036b5ed.js +0 -1
  91. data/tools/tablemanager/ImageLoader-BzE4VsHW-29594737192cae733d4e.js +0 -1
  92. data/tools/tablemanager/LabelledWidget-DrZHj_lR-0981e552acee8b0e03fb.js +0 -1
  93. data/tools/tablemanager/LabelprogressbarWidget-K9NphQp0-04bf4e4559f2146ce76f.js +0 -1
  94. data/tools/tablemanager/LabelsparklineWidget-cn1OJvL3-571da3fbeee90bdbc3e0.js +0 -1
  95. data/tools/tablemanager/LabelvalueWidget-DxJbd9nR-05625adcadd201e121e7.js +0 -1
  96. data/tools/tablemanager/LabelvaluedescWidget-B-RiUnpl-c0abf87653b4af0d4046.js +0 -1
  97. data/tools/tablemanager/LabelvaluelimitsbarWidget-BF94rtl8-4cdd873fee3ce9c1b49a.js +0 -1
  98. data/tools/tablemanager/LabelvaluelimitscolumnWidget-UOfPu8D1-1745b75658898170a964.js +0 -1
  99. data/tools/tablemanager/LabelvaluerangebarWidget-EVON-Tv8-597036997aa29d3e2ec7.js +0 -1
  100. data/tools/tablemanager/LimitsbarWidget-rEJIGKCx-e6b8483bc8e47a481194.js +0 -1
  101. data/tools/tablemanager/LimitscolumnWidget-DSQAdlZS-664a23a1c31078c55e88.js +0 -1
  102. data/tools/tablemanager/LinegraphWidget-CQRwZ0N6-a8e8c7c526452f96b242.js +0 -1
  103. data/tools/tablemanager/OpenC3TimePicker-Cww9L2Ij-b982e1127088d958625a.js +0 -1
  104. data/tools/tablemanager/RadiobuttonWidget-DqsantxO-dffec8026df380e4ae4f.js +0 -1
  105. data/tools/tablemanager/RadiogroupWidget-Bht6RZPH-9db260f14fbc61fb590c.js +0 -1
  106. data/tools/tablemanager/SpacerWidget-uKPA-f_0-fb81f8128135706c9c37.js +0 -1
  107. data/tools/tablemanager/SparklineWidget-Wu5iFbly-ee70b5b3e76055448be4.js +0 -1
  108. data/tools/tablemanager/TabbookWidget-D3FrIoV4-528fa4019df191524330.js +0 -1
  109. data/tools/tablemanager/TableManager-bdb5bda835b8e1ba58d5.js +0 -16
  110. data/tools/tablemanager/TextboxWidget-f6wEcoI0-ed2405c6669bca7cf0a0.js +0 -1
  111. data/tools/tablemanager/TextfieldWidget-D72Sey-h-accb346475564100bc12.js +0 -1
  112. data/tools/tablemanager/TitleWidget-Dfp5mPH2-4464cf685026c4aae135.js +0 -1
  113. data/tools/tablemanager/ValuelimitsbarWidget-AgeOlPAV-e00ed90594902835ddc6.js +0 -1
  114. data/tools/tablemanager/ValuerangebarWidget-E3CtttJk-398c9c4f4b0226507b87.js +0 -1
  115. data/tools/tablemanager/Widget-CSgnvwEG-d79c9bfc63c25ef5d537.js +0 -1
  116. data/tools/tablemanager/main-be86c157d462fe998f17.js +0 -1491
@@ -0,0 +1,16 @@
1
+ System.register(["./main-e41b7aa8f8baeaf00ba2.js","vue","single-spa","./VWidget-C4VLQ7-b-6e0c7bced9c086b4b9c2.js","./IframeWidget-Ciu5u58E-40895fac48619c381bf3.js","vue-router","pinia","vuetify","./Widget-ClRi417b-4840d840a29c7183f214.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js"],(function(on,Us){"use strict";var Ae,ke,ze,O,S,T,It,b,h,B,I,V,Q,se,He,j,Je,We,Ke,ae,Ge,Ce,Lt,Vt,$t,dt,Mt,qt,zt;return{setters:[N=>{Ae=N.f,ke=N.l,ze=N._},N=>{O=N.resolveComponent,S=N.openBlock,T=N.createBlock,It=N.Teleport,b=N.createVNode,h=N.withCtx,B=N.createElementVNode,I=N.toDisplayString,V=N.createElementBlock,Q=N.Fragment,se=N.renderList,He=N.ref,j=N.createTextVNode,Je=N.mergeProps,We=N.createSlots,Ke=N.normalizeStyle,ae=N.createCommentVNode,Ge=N.withKeys,Ce=N.withModifiers,Lt=N.withDirectives,Vt=N.vShow,$t=N.computed,dt=N.watch,Mt=N.normalizeProps,qt=N.guardReactiveProps},null,N=>{zt=N.g},null,null,null,null,null,null],execute:(function(){var N=document.createElement("style");N.textContent=`.filename[data-v-b4db345f]{background-color:var(--color-background-base-default)}
2
+ /*$vite$:1*/`,document.head.appendChild(N);const sn={__name:"TopBarMenu",props:{menu:{type:Object,required:!0},title:{type:String,required:!0}},emits:["submenu-click"],setup(e,{emit:t}){const r=t,n=He(!1);function o(){n.value=!1}function i(s){return s.replaceAll(" ","-").toLowerCase()}return(s,a)=>{const c=O("v-icon"),u=O("v-btn"),d=O("v-divider"),f=O("v-list-item-title"),p=O("v-list-item"),g=O("v-list"),E=O("v-menu"),F=O("v-radio"),y=O("v-list-item-action"),w=O("v-radio-group"),v=O("v-checkbox"),x=O("v-tooltip");return S(),T(E,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=m=>n.value=m),"close-on-content-click":!1},{activator:h(({props:m})=>[b(u,Je(m,{variant:"outlined",class:"mx-1 menu-button",text:e.menu.label,"data-test":i(`${e.title} ${e.menu.label}`)}),{append:h(()=>[b(c,{class:"menu-button-icon"},{default:h(()=>[...a[1]||(a[1]=[j(" mdi-menu-down ",-1)])]),_:1})]),_:1},16,["text","data-test"])]),default:h(()=>[b(g,null,{default:h(()=>[(S(!0),V(Q,null,se(e.menu.items,(m,D)=>(S(),V(Q,null,[m.divider?(S(),T(d,{key:D+"-divider"})):m.subMenu&&m.subMenu.length>0?(S(),V("div",{key:D+"-submenu"},[(S(),T(E,{key:D,"open-on-hover":"",location:"right"},{activator:h(({props:C})=>[(S(),T(p,Je({ref_for:!0},C,{key:D,disabled:m.disabled}),We({append:h(()=>[b(c,null,{default:h(()=>[...a[2]||(a[2]=[j(" mdi-chevron-right ",-1)])]),_:1})]),default:h(()=>[!m.radio&&!m.checkbox?(S(),T(f,{key:0,style:Ke("cursor: pointer;"+(m.disabled?"opacity: 0.2":""))},{default:h(()=>[j(I(m.label),1)]),_:2},1032,["style"])):ae("",!0)]),_:2},[m.icon?{name:"prepend",fn:h(()=>[b(c,{disabled:m.disabled},{default:h(()=>[j(I(m.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:h(()=>[b(g,null,{default:h(()=>[(S(!0),V(Q,null,se(m.subMenu,(C,G)=>(S(),T(p,{key:G,"prepend-icon":C.icon,onClick:pe=>r("submenu-click",C)},{default:h(()=>[b(f,null,{default:h(()=>[j(I(C.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):m.radioGroup?(S(),T(w,{key:D+"-radio-group",class:"ma-0 pa-0",density:"compact","hide-details":"","model-value":m.value,"onUpdate:modelValue":m.command},{default:h(()=>[(S(!0),V(Q,null,se(m.choices,(C,G)=>(S(),T(p,{key:G+"-choice"},{default:h(()=>[b(y,{class:"list-action"},{default:h(()=>[b(F,{color:"secondary",label:C.label,value:C.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(S(),T(x,{key:D+"-list",disabled:!m.tooltip,text:m.tooltip,location:"right"},{activator:h(({props:C})=>[B("div",Je({ref_for:!0},C),[b(p,{disabled:m.disabled,"data-test":i(`${e.title} ${e.menu.label} ${m.label}`),onClick:()=>{m.command(m),m.checkbox||o()}},We({default:h(()=>[m.checkbox?(S(),T(y,{key:0,class:"list-action"},{default:h(()=>[b(v,{modelValue:m.checked,"onUpdate:modelValue":G=>m.checked=G,label:m.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):ae("",!0),!m.radio&&!m.checkbox?(S(),T(f,{key:1,style:Ke("cursor: pointer;"+(m.disabled?"opacity: 0.2":""))},{default:h(()=>[j(I(m.label),1)]),_:2},1032,["style"])):ae("",!0)]),_:2},[m.icon?{name:"prepend",fn:h(()=>[b(c,{icon:m.icon,disabled:m.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["disabled","data-test","onClick"])],16)]),_:2},1032,["disabled","text"]))],64))),256))]),_:1})]),_:1},8,["modelValue"])}}},an={components:{TopBarMenu:sn},props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},mounted(){document.title=this.title},methods:{subMenuClick(e){e.command(e),this.$refs.topmenu[0].isActive=!1}}},ln={class:"app-title mr-2"};function cn(e,t,r,n,o,i){const s=O("v-col"),a=O("v-row"),c=O("TopBarMenu");return S(),T(It,{to:"#openc3-menu"},[b(a,{"no-gutters":""},{default:h(()=>[b(s,{"align-self":"end"},{default:h(()=>[B("span",ln,I(r.title),1)]),_:1})]),_:1}),b(a,{dense:"",class:"flex-nowrap"},{default:h(()=>[(S(!0),V(Q,null,se(r.menus,(u,d)=>(S(),T(c,{key:d+"-top-menu",ref_for:!0,ref:"topmenu",menu:u,title:r.title,onSubmenuClick:i.subMenuClick},null,8,["menu","title","onSubmenuClick"]))),128))]),_:1})])}const un=Ae(an,[["render",cn],["__scopeId","data-v-f4fb184e"]]),dn=function(e){if(e&&e.includes(".")){let t=e.split(".").pop();if(t==="py")return"mdi-language-python";if(t==="rb")return"mdi-language-ruby";if(t==="js")return"mdi-language-javascript";if(t==="csv")return"mdi-file-delimited";if(t==="txt")return"mdi-file-document";if(t==="png"||t==="gif"||t==="jpg")return"mdi-file-image"}return"mdi-file"},fn={class:"tree-node"},pn={class:"content-wrapper"},hn=["tabindex"],mn={key:1},gn={key:2,class:"children"},bn={__name:"TreeNode",props:{node:{type:Object,required:!0},search:{type:String,default:""},type:{type:String,default:"open"}},emits:["nodeToggled","request","delete"],setup(e,{emit:t}){const r=e,n=He(r.node.isOpen||!1),o=$t(()=>{const g=E=>!r.search||E.path.toLowerCase().includes(r.search.toLowerCase())?!0:!!E.children?.some(g);return g(r.node)});dt(()=>r.node.isOpen,g=>{n.value=g}),dt(()=>r.search,g=>{g?r.node.isOpen||d():r.node.isOpen&&d()});const i=t,s=He({show:!1,text:"",x:0,y:0}),a=(g,E)=>{if(!E||E.length<=50)return;const F=g.target.getBoundingClientRect(),y=F.left,w=F.top;s.value.text=E,s.value.x=y,s.value.y=w-40,s.value.show=!0},c=()=>{s.value.show=!1},u=g=>{g.children?(d(),r.type==="save"&&i("request",g)):i("request",g)},d=()=>{r.node.children&&(n.value=!n.value,r.node.isOpen=n.value,i("nodeToggled",r.node.id,n.value))},f=(g,E)=>{i("nodeToggled",g,E)},p=g=>{i("request",g)};return(g,E)=>{const F=O("v-tooltip"),y=O("v-icon"),w=O("v-btn"),v=O("tree-node",!0);return S(),V(Q,null,[b(F,{modelValue:s.value.show,"onUpdate:modelValue":E[0]||(E[0]=x=>s.value.show=x),text:s.value.text,location:"top",style:Ke(`position: fixed; left: ${s.value.x}px; top: ${s.value.y}px; pointer-events: none;`)},null,8,["modelValue","text","style"]),B("div",fn,[o.value?(S(),V("div",{key:0,class:"node-content",onClick:E[4]||(E[4]=x=>u(e.node))},[B("div",pn,[e.node.children?(S(),T(y,{key:0,class:"toggle-icon",style:{"padding-right":"10px"}},{default:h(()=>[j(I(e.node.isOpen||e.search?"mdi-menu-down":"mdi-menu-right"),1)]),_:1})):ae("",!0),e.node.children?(S(),T(y,{key:1,size:"small",style:{"padding-right":"10px"}},{default:h(()=>[...E[5]||(E[5]=[j(I("mdi-folder"),-1)])]),_:1})):e.node.title.includes(".rb")?(S(),T(y,{key:2,size:"small",style:{"padding-right":"10px"}},{default:h(()=>[...E[6]||(E[6]=[j(I("mdi-language-ruby"),-1)])]),_:1})):e.node.title.includes(".py")?(S(),T(y,{key:3,size:"small",style:{"padding-right":"10px"}},{default:h(()=>[...E[7]||(E[7]=[j(I("mdi-language-python"),-1)])]),_:1})):(S(),T(y,{key:4,size:"small",style:{"padding-right":"10px"}},{default:h(()=>[...E[8]||(E[8]=[j(I("mdi-file-document"),-1)])]),_:1})),B("span",{class:"text-h6",tabindex:e.node.children?-1:0,onKeyup:E[1]||(E[1]=Ge(x=>u(e.node),["enter"])),onMouseenter:E[2]||(E[2]=x=>a(x,e.node.title)),onMouseleave:c},I(e.node.title),41,hn),e.node.title==="__TEMP__"?(S(),T(w,{key:5,icon:"mdi-delete",variant:"text",style:{"margin-left":"auto"},"aria-label":"Delete",onClick:E[3]||(E[3]=x=>i("delete"))})):ae("",!0)])])):(S(),V("div",mn)),e.node.children&&(e.node.isOpen||e.search)?(S(),V("div",gn,[(S(!0),V(Q,null,se(e.node.children,x=>(S(),T(v,{key:x.id,node:x,search:e.search,type:e.type,onNodeToggled:f,onRequest:p},null,8,["node","search","type"]))),128))])):ae("",!0)])],64)}}},_n=Ae(bn,[["__scopeId","data-v-83f7a088"]]),yn={components:{TreeNode:_n},props:{type:{type:String,required:!0,validator:function(e){return["open","save"].indexOf(e)!==-1}},apiUrl:{type:String,default:null},requireTargetParentDir:Boolean,inputFilename:{type:String,default:null},modelValue:Boolean,customHelpText:{type:String,default:null}},emits:["update:modelValue","error","clear-temp","file","filename"],data(){return{tree:[],items:[],search:null,selectedFile:null,disableButtons:!0,targets:[],targetsRetrieved:[]}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},title:function(){return this.type==="open"?"File Open":"File Save As..."},submit:function(){return this.type==="open"?"OPEN":"SAVE"},helpText:function(){return this.customHelpText?this.customHelpText:this.type==="open"?"Click on folders to open them and then click a file to select it before clicking Open. Use the search box to filter the results. You can also Tab to the files and Enter to select.":"Click on the folder to save into. Then complete the filename path with the desired name. Use the search box to filter the results."},error:function(){if(this.selectedFile===""||this.selectedFile===null)return"No file selected must select a file";if(!this.selectedFile.match(this.validFilenameRegex)||this.selectedFile.match(/\.\.|\/\/|\.\/|\/\./)){let e=`${this.selectedFile} is not a valid filename. Must `;return this.requireTargetParentDir&&(e+="be in a target directory and "),e+=`only contain alphanumeric characters (including !-_.*) and a valid extension.
3
+
4
+ For example: TGT1/procedures/test.py or TGT2/lib/inst.rb`,e}return this.type==="save"&&this.selectedFile.match(/\*$/)?`${this.selectedFile} is not a valid filename. Must not end in '*'.`:null},validFilenameRegex:function(){const e="0-9a-zA-Z";let t=`[${`${e}\\/\\!\\-\\_\\.\\*\\'\\(\\)`}]+\\.[${e}]+`;return this.requireTargetParentDir&&(t=`\\/?${`(${this.targets.join("|")})`}\\/${t}`),new RegExp(t)}},async created(){const e=await ke.get("/openc3-api/targets");this.targets=e.data,this.targets.push("__TEMP__");const t=this.targets.map(r=>(this.items.push({id:r,disabled:!0,title:r,children:[],path:r}),this.loadFiles(r)));await Promise.all(t),this.disableButtons=!1},methods:{calcIcon:function(e){return dn(e)},loadFiles:async function(e){try{const t=await ke.get(this.apiUrl,{params:{target:e}});if(t.data.length===0){this.items=this.items.filter(n=>n.id!==e);return}for(let n of t.data.sort())this.filepath=n,this.insertFile(this.items,2,n);this.inputFilename&&(this.selectedFile=this.inputFilename);const r=this.items.findIndex(n=>n.id===e);r!==-1&&(this.items[r].disabled=!1)}catch(t){this.$emit("error",`Failed to connect to OpenC3. ${t}`)}},clear:function(){this.show=!1,this.overwrite=!1,this.disableButtons=!1},activeFile:function(e){if(e.length===0)this.selectedFile=null;else{let t=this.findItem(this.items,e.id);this.type==="save"&&t&&(t=t.replace(/\*$/,"")),this.selectedFile=t,setTimeout(()=>{this.$refs.submitBtn.$el.focus()},100)}},findItem:function(e,t){for(let r of e){if(r.id===t)return r.path;if(r.children){const n=this.findItem(r.children,t);if(n)return n}}return null},exists:function(e,t){let r=!1;for(let n of e){if(n.path===t||n.path.length>1&&n.path[n.path.length-1]==="*"&&n.path.slice(0,n.path.length-1)===t)return!0;n.children&&(r=r||this.exists(n.children,t))}return r},success:function(){this.selectedFile!==null&&this.error===null&&!this.disableButtons&&(this.type==="open"?this.openSuccess():this.saveSuccess())},deleteTemp:function(){this.$dialog.confirm("Are you sure you want to delete all the temporary files?",{okText:"Delete",cancelText:"Cancel"}).then(e=>ke.delete("/script-api/scripts/temp_files")).then(e=>{this.$emit("clear-temp"),this.loadFiles("__TEMP__")}).catch(e=>{this.$notify.serious({title:"Error",body:`Failed to remove script temporary files due to ${e}`})})},openSuccess:function(){this.disableButtons=!0,ke.get(`${this.apiUrl}/${this.selectedFile}`).then(e=>{const t={name:this.selectedFile,contents:e.data.contents};e.data.suites&&(t.suites=JSON.parse(e.data.suites)),e.data.error&&(t.error=e.data.error),e.data.success&&(t.success=e.data.success);const r=e.data.locked,n=e.data.breakpoints;this.$emit("file",{file:t,locked:r,breakpoints:n}),this.clear()}).catch(e=>{this.$emit("error",`Failed to open ${this.selectedFile}. ${e}`),this.clear()})},saveSuccess:function(){this.exists(this.items,this.selectedFile)?this.$dialog.confirm(`Are you sure you want to overwrite: ${this.selectedFile}`,{okText:"Overwrite",cancelText:"Cancel"}).then(e=>{this.$emit("filename",this.selectedFile),this.clear()}).catch(e=>{}):(this.$emit("filename",this.selectedFile),this.clear())},insertFile:function(e,t,r){let n=r.split("/");if(n.length===1){e.push({id:this.filepath,title:n[0],file:"ruby",path:this.filepath});return}const o=e.findIndex(i=>i.title===n[0]);o===-1?(e.push({id:this.filepath.split("/").slice(0,t-1).join("/"),title:n[0],children:[],path:this.filepath.split("/").slice(0,t-1).join("/")}),this.insertFile(e[e.length-1].children,t+1,n.slice(1).join("/"))):this.insertFile(e[o].children,t+1,n.slice(1).join("/"))}}},wn={class:"pa-3"},vn={class:"overflow-y-auto tree-container"};function xn(e,t,r,n,o,i){const s=O("v-spacer"),a=O("v-progress-linear"),c=O("v-toolbar"),u=O("v-row"),d=O("v-text-field"),f=O("tree-node"),p=O("v-card-text"),g=O("v-btn"),E=O("v-card-actions"),F=O("v-card"),y=O("v-dialog");return S(),T(y,{modelValue:i.show,"onUpdate:modelValue":t[4]||(t[4]=w=>i.show=w),persistent:"",width:"800",onKeydown:[t[5]||(t[5]=Ge(w=>o.disableButtons?null:i.success(),["enter"])),t[6]||(t[6]=Ge(w=>o.disableButtons?null:i.show=!1,["esc"]))]},{default:h(()=>[b(F,{class:"file-open-save-card d-flex flex-column"},{default:h(()=>[B("form",{class:"d-flex flex-column",onSubmit:t[3]||(t[3]=Ce((...w)=>i.success&&i.success(...w),["prevent"]))},[b(c,{height:"24"},{default:h(()=>[b(s),B("span",null,I(i.title),1),b(s),b(a,{active:o.disableButtons,indeterminate:"",location:"bottom",absolute:""},null,8,["active"])]),_:1}),b(p,{class:"overflow-y-auto"},{default:h(()=>[B("div",wn,[b(u,null,{default:h(()=>[j(I(i.helpText),1)]),_:1}),b(u,{dense:"",class:"mt-5"},{default:h(()=>[b(d,{modelValue:o.search,"onUpdate:modelValue":t[0]||(t[0]=w=>o.search=w),flat:"",autofocus:"","hide-details":"",clearable:"",label:"Search","prepend-inner-icon":"mdi-magnify",density:"compact","data-test":"file-open-save-search"},null,8,["modelValue"])]),_:1}),B("div",vn,[(S(!0),V(Q,null,se(o.items,w=>(S(),T(f,{key:`${w.id}`,node:w,search:o.search,type:r.type,onRequest:i.activeFile,onDelete:i.deleteTemp},null,8,["node","search","type","onRequest","onDelete"]))),128))]),b(u,{class:"my-2"},{default:h(()=>[b(d,{modelValue:o.selectedFile,"onUpdate:modelValue":t[1]||(t[1]=w=>o.selectedFile=w),"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:o.disableButtons||r.type==="open"},null,8,["modelValue","disabled"])]),_:1}),b(u,{dense:""},{default:h(()=>[Lt(B("div",{class:"my-2 text-red overflow-y-auto error-container",style:{"white-space":"pre-line"}},I(i.error),513),[[Vt,i.error]])]),_:1})])]),_:1}),b(E,null,{default:h(()=>[b(s),b(g,{variant:"outlined",class:"mx-2","data-test":"file-open-save-cancel-btn",disabled:o.disableButtons,onClick:t[2]||(t[2]=w=>i.show=!1)},{default:h(()=>[...t[7]||(t[7]=[j(" Cancel ",-1)])]),_:1},8,["disabled"]),b(g,{ref:"submitBtn",type:"submit",color:"primary",variant:"elevated",class:"mx-2","data-test":"file-open-save-submit-btn",disabled:o.disableButtons||!!i.error,onClick:Ce(i.success,["prevent"])},{default:h(()=>[j(I(i.submit),1)]),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue"])}const On=Ae(yn,[["render",xn]]),En={props:{modelValue:Boolean,text:{type:String,default:null},title:{type:String,default:null},width:{type:Number,default:800}},emits:["update:modelValue"],computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{download:function(){const e=new Blob([this.text],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(e),t.setAttribute("download",`${this.title}.txt`),t.click()}}},Sn={class:"mx-2"},Rn={class:"pa-3"},An={class:"text"};function kn(e,t,r,n,o,i){const s=O("v-spacer"),a=O("v-btn"),c=O("v-toolbar"),u=O("v-card-text"),d=O("v-card-actions"),f=O("v-card"),p=O("v-dialog");return S(),T(p,{modelValue:i.show,"onUpdate:modelValue":t[1]||(t[1]=g=>i.show=g),width:r.width,scrollable:""},{default:h(()=>[b(f,null,{default:h(()=>[b(c,{height:"24"},{default:h(()=>[b(s),B("span",null,I(r.title),1),b(s),B("div",Sn,[b(a,{icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon","aria-label":"Download Content",onClick:i.download},null,8,["onClick"])])]),_:1}),b(u,{style:{"max-height":"80vh"}},{default:h(()=>[B("div",Rn,[B("span",An,I(r.text),1)])]),_:1}),b(d,{class:"px-2"},{default:h(()=>[b(s),b(a,{variant:"flat",onClick:t[0]||(t[0]=g=>i.show=!i.show)},{default:h(()=>[...t[2]||(t[2]=[j(" Ok ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","width"])}const Cn=Ae(En,[["render",kn],["__scopeId","data-v-1a0bca65"]]);function Ht(e,t){return function(){return e.apply(t,arguments)}}const{toString:Tn}=Object.prototype,{getPrototypeOf:fe}=Object,{iterator:Te,toStringTag:Jt}=Symbol,je=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Wt=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),Kt=(e,t,r)=>e===Object.prototype||!r&&t===null,jn=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(r=>{if(Wt(r))return!1;const n=Object.getOwnPropertyDescriptor(e,r);return!!n&&n.configurable&&n.writable===!0})},Ne=(e,t)=>{let r=e;const n=[];for(;r!=null;){if(n.indexOf(r)!==-1)return!1;n.push(r);const o=fe(r);if(Kt(r,o,r===e))return!1;if(je(r,t))return!0;r=o}return!1},Nn=(e,t)=>e!=null&&Ne(e,t)?e[t]:void 0,Fn=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;const t=fe(e);if(t===null&&jn(e))return e;const r=Object.create(null),n=Object.create(null),o=[];let i=e;for(;i!=null&&o.indexOf(i)===-1;){o.push(i);const s=i===e?t:fe(i);if(Kt(i,s,i===e))break;const a=Object.getOwnPropertyNames(i);Object.getOwnPropertySymbols&&a.push(...Object.getOwnPropertySymbols(i));for(const c of a)Wt(c)||je(n,c)||(r[c]=e[c],n[c]=!0);i=s}return r},ft=(e=>t=>{const r=Tn.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Y=e=>(e=e.toLowerCase(),t=>ft(t)===e),Xe=e=>t=>typeof t===e,{isArray:ge}=Array,be=Xe("undefined");function Oe(e){return e!==null&&!be(e)&&e.constructor!==null&&!be(e.constructor)&&K(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Gt=Y("ArrayBuffer");function Pn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Gt(e.buffer),t}const Dn=Xe("string"),K=Xe("function"),Xt=Xe("number"),Ee=e=>e!==null&&typeof e=="object",Un=e=>e===!0||e===!1,Qe=e=>{if(!Ee(e))return!1;const t=fe(e);return(t===null||t===Object.prototype||fe(t)===null)&&!Ne(e,Jt)&&!Ne(e,Te)},Bn=e=>{if(!Ee(e)||Oe(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},In=Y("Date"),Ln=Y("File"),Vn=e=>!!(e&&typeof e.uri<"u"),$n=e=>e&&typeof e.getParts<"u",Mn=Y("Blob"),qn=Y("FileList"),zn=Y("Set"),Hn=e=>Ee(e)&&K(e.pipe);function Jn(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Qt=Jn(),Yt=typeof Qt.FormData<"u"?Qt.FormData:void 0,Wn=e=>{if(!e)return!1;if(Yt&&e instanceof Yt)return!0;const t=fe(e);if(!t||t===Object.prototype||!K(e.append))return!1;const r=ft(e);return r==="formdata"||r==="object"&&K(e.toString)&&e.toString()==="[object FormData]"},Kn=Y("URLSearchParams"),[Gn,Xn,Qn,Yn]=["ReadableStream","Request","Response","Headers"].map(Y),Zn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fe(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),ge(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Oe(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(n=0;n<s;n++)a=i[n],t.call(null,e[a],a,e)}}function Zt(e,t){if(Oe(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const _e=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,er=e=>!be(e)&&e!==_e;function pt(...e){const{caseless:t,skipUndefined:r}=er(this)&&this||{},n={},o=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const a=t&&typeof s=="string"&&Zt(n,s)||s,c=je(n,a)?n[a]:void 0;Qe(c)&&Qe(i)?n[a]=pt(c,i):Qe(i)?n[a]=pt({},i):ge(i)?n[a]=i.slice():(!r||!be(i))&&(n[a]=i)};for(let i=0,s=e.length;i<s;i++){const a=e[i];if(!a||Oe(a)||(Fe(a,o),typeof a!="object"||ge(a)))continue;const c=Object.getOwnPropertySymbols(a);for(let u=0;u<c.length;u++){const d=c[u];fo.call(a,d)&&o(a[d],d)}}return n}const eo=(e,t,r,{allOwnKeys:n}={})=>(Fe(t,(o,i)=>{r&&K(o)?Object.defineProperty(e,i,{__proto__:null,value:Ht(o,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),to=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ro=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},no=(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&fe(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},oo=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},io=e=>{if(!e)return null;if(ge(e))return e;let t=e.length;if(!Xt(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},so=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&fe(Uint8Array)),ao=(e,t)=>{const r=(e&&e[Te]).call(e);let n;for(;(n=r.next())&&!n.done;){const o=n.value;t.call(e,o[0],o[1])}},lo=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},co=Y("HTMLFormElement"),uo=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),{propertyIsEnumerable:fo}=Object.prototype,po=Y("RegExp"),tr=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Fe(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},ho=e=>{tr(e,(t,r)=>{if(K(e)&&["arguments","caller","callee"].includes(r))return!1;const n=e[r];if(K(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},mo=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return ge(e)?n(e):n(String(e).split(t)),r},go=()=>{},bo=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function _o(e){return!!(e&&K(e.append)&&e[Jt]==="FormData"&&e[Te])}const yo=e=>{const t=new WeakSet,r=n=>{if(Ee(n)){if(t.has(n))return;if(Oe(n))return n;if(!("toJSON"in n)){t.add(n);let o;if(zn(n)){o=[];for(const i of n){const s=r(i);!be(s)&&o.push(s)}}else o=ge(n)?[]:{},Fe(n,(i,s)=>{const a=r(i);!be(a)&&(o[s]=a)});return t.delete(n),o}}return n};return r(e)},wo=Y("AsyncFunction"),vo=e=>e&&(Ee(e)||K(e))&&K(e.then)&&K(e.catch),rr=((e,t)=>e?setImmediate:t?((r,n)=>(_e.addEventListener("message",({source:o,data:i})=>{o===_e&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),_e.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",K(_e.postMessage)),xo=typeof queueMicrotask<"u"?queueMicrotask.bind(_e):typeof process<"u"&&process.nextTick||rr,nr=e=>e!=null&&K(e[Te]),Oo=e=>e!=null&&Ne(e,Te)&&nr(e),l={isArray:ge,isArrayBuffer:Gt,isBuffer:Oe,isFormData:Wn,isArrayBufferView:Pn,isString:Dn,isNumber:Xt,isBoolean:Un,isObject:Ee,isPlainObject:Qe,isEmptyObject:Bn,isReadableStream:Gn,isRequest:Xn,isResponse:Qn,isHeaders:Yn,isUndefined:be,isDate:In,isFile:Ln,isReactNativeBlob:Vn,isReactNative:$n,isBlob:Mn,isRegExp:po,isFunction:K,isStream:Hn,isURLSearchParams:Kn,isTypedArray:so,isFileList:qn,forEach:Fe,merge:pt,extend:eo,trim:Zn,stripBOM:to,inherits:ro,toFlatObject:no,kindOf:ft,kindOfTest:Y,endsWith:oo,toArray:io,forEachEntry:ao,matchAll:lo,isHTMLForm:co,hasOwnProperty:je,hasOwnProp:je,hasOwnInPrototypeChain:Ne,getSafeProp:Nn,toSafeFlatObject:Fn,reduceDescriptors:tr,freezeMethods:ho,toObjectSet:mo,toCamelCase:uo,noop:go,toFiniteNumber:bo,findKey:Zt,global:_e,isContextDefined:er,isSpecCompliantForm:_o,toJSONObject:yo,isAsyncFn:wo,isThenable:vo,setImmediate:rr,asap:xo,isIterable:nr,isSafeIterable:Oo},Eo=l.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"]),So=e=>{const t={};let r,n,o;return e&&e.split(`
5
+ `).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim();const s=l.hasOwnProp(t,r);!r||s&&l.hasOwnProp(Eo,r)||(r==="set-cookie"?s?t[r].push(n):t[r]=[n]:t[r]=s?t[r]+", "+n:n)}),t};function Ro(e){let t=0,r=e.length;for(;t<r;){const n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;r>t;){const n=e.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}const Ao=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ko=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ht(e,t){return l.isArray(e)?e.map(r=>ht(r,t)):Ro(String(e).replace(t,""))}const Co=e=>ht(e,Ao),To=e=>ht(e,ko);function or(e){const t=Object.create(null);return l.forEach(e.toJSON(),(r,n)=>{t[n]=To(r)}),t}const ir=Symbol("internals");function Pe(e){return e&&String(e).trim().toLowerCase()}function Ye(e){return e===!1||e==null?e:l.isArray(e)?e.map(Ye):Co(String(e))}function jo(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const No=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function mt(e){let t=0,r=e.length;for(;t<r;){const n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;r>t;){const n=e.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}function Fo(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let r="";for(let n=1;n<t;n++){const o=e.charCodeAt(n);if(o===34||o===92&&(n+=1,n>=t))return e;r+=e[n]}return r}function Po(e){const t=Object.create(null),r=String(e);let n=0,o=!1,i=!1;function s(a){const c=mt(r.slice(n,a)),u=c.indexOf("=");if(u<1)return;const d=mt(c.slice(0,u));if(!No.test(d))return;const f=d.toLowerCase();if(f==="__proto__"||f==="constructor"||f==="prototype")return;const p=mt(c.slice(u+1));t[f]=Fo(p)}for(let a=0;a<r.length;a++){const c=r.charCodeAt(a);o?i?i=!1:c===92?i=!0:c===34&&(o=!1):c===34?o=!0:(c===44||c===59)&&(s(a),n=a+1)}return s(r.length),t}const Do=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function gt(e,t,r,n,o){if(l.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!l.isString(t)){if(l.isString(n))return t.indexOf(n)!==-1;if(l.isRegExp(n))return n.test(t)}}function Uo(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Bo(e,t){const r=l.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}let H=class{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(s,a,c){const u=Pe(a);if(!u)return;const d=l.findKey(n,u);(!d||n[d]===void 0||c===!0||c===void 0&&n[d]!==!1)&&(n[d||a]=Ye(s))}const i=(s,a)=>l.forEach(s,(c,u)=>o(c,u,a));if(l.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(l.isString(e)&&(e=e.trim())&&!Do(e))i(So(e),t);else if(l.isObject(e)&&l.isSafeIterable(e)){let s=Object.create(null),a,c;for(const u of e){if(!l.isArray(u))throw new TypeError("Object iterator must return a key-value pair");c=u[0],l.hasOwnProp(s,c)?(a=s[c],s[c]=l.isArray(a)?[...a,u[1]]:[a,u[1]]):s[c]=u[1]}i(s,t)}else e!=null&&o(t,e,r);return this}get(e,t){if(e=Pe(e),e){const r=l.findKey(this,e);if(r){const n=this[r];if(!t)return n;if(t===!0)return jo(n);if(l.isFunction(t))return t.call(this,n,r);if(l.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Pe(e),e){const r=l.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||gt(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let n=!1;function o(i){if(i=Pe(i),i){const s=l.findKey(r,i);s&&(!t||gt(r,r[s],s,t))&&(delete r[s],n=!0)}}return l.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];(!e||gt(this,this[o],o,e,!0))&&(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return l.forEach(this,(n,o)=>{const i=l.findKey(r,o);if(i){t[i]=Ye(n),delete t[o];return}const s=e?Uo(o):String(o).trim();s!==o&&delete t[o],t[s]=Ye(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return l.forEach(this,(r,n)=>{r!=null&&r!==!1&&(t[n]=e&&l.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
6
+ `)}getSetCookie(){const e=this.get("set-cookie");return l.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return Po(e)}static concat(e,...t){const r=new this(e);return t.forEach(n=>r.set(n)),r}static accessor(e){const t=(this[ir]=this[ir]={accessors:{}}).accessors,r=this.prototype;function n(o){const i=Pe(o);t[i]||(Bo(r,o),t[i]=!0)}return l.isArray(e)?e.forEach(n):n(e),this}};H.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),l.reduceDescriptors(H.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),l.freezeMethods(H);const Ze="[REDACTED ****]";function Io(e){if(l.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(l.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Lo(e,t){const r=new Set(t.map(i=>String(i).toLowerCase())),n=[],o=i=>{if(i===null||typeof i!="object"||l.isBuffer(i))return i;if(n.indexOf(i)!==-1)return;i instanceof H&&(i=i.toJSON()),n.push(i);let s;if(l.isArray(i))s=[],i.forEach((a,c)=>{const u=o(a);l.isUndefined(u)||(s[c]=u)});else{if(!l.isPlainObject(i)&&Io(i))return n.pop(),i;s=Object.create(null);for(const[a,c]of Object.entries(i)){const u=r.has(a.toLowerCase())?Ze:o(c);l.isUndefined(u)||(s[a]=u)}}return n.pop(),s};return o(e)}function sr(e){try{return String(e)}catch{return""}}function Vo(e){return e.errors.map(t=>{try{return t&&t.message?sr(t.message):sr(t)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let _=class rn extends Error{static from(t,r,n,o,i,s){let a=t.message;!a&&l.isArray(t.errors)&&t.errors.length&&(a=Vo(t));const c=new rn(a,r||t.code,n,o,i);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),s&&Object.assign(c,s),c}constructor(t,r,n,o,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,r=t&&l.hasOwnProp(t,"redact")?t.redact:void 0,n=l.isArray(r)&&r.length>0?Lo(t,r):l.toJSONObject(t);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:n,code:this.code,status:this.status}}};_.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",_.ERR_BAD_OPTION="ERR_BAD_OPTION",_.ECONNABORTED="ECONNABORTED",_.ETIMEDOUT="ETIMEDOUT",_.ECONNREFUSED="ECONNREFUSED",_.ERR_NETWORK="ERR_NETWORK",_.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",_.ERR_DEPRECATED="ERR_DEPRECATED",_.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",_.ERR_BAD_REQUEST="ERR_BAD_REQUEST",_.ERR_CANCELED="ERR_CANCELED",_.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",_.ERR_INVALID_URL="ERR_INVALID_URL",_.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const $o=null,ar=100;function bt(e){return l.isPlainObject(e)||l.isArray(e)}function lr(e){return l.endsWith(e,"[]")?e.slice(0,-2):e}function _t(e,t,r){return e?e.concat(t).map(function(n,o){return n=lr(n),!r&&o?"["+n+"]":n}).join(r?".":""):t}function Mo(e){return l.isArray(e)&&!e.some(bt)}const qo=l.toFlatObject(l,{},null,function(e){return/^is[A-Z]/.test(e)});function et(e,t,r){if(!l.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(v,x)=>{const m=l.getSafeProp(r,v);return l.isUndefined(m)?x:m},o=n("metaTokens",!0),i=n("visitor")||F,s=n("dots",!1),a=n("indexes",!1),c=n("Blob")||typeof Blob<"u"&&Blob,u=n("maxDepth",ar),d=c&&l.isSpecCompliantForm(t),f=[];if(!l.isFunction(i))throw new TypeError("visitor must be a function");function p(v){if(v===null)return"";if(l.isDate(v))return v.toISOString();if(l.isBoolean(v))return v.toString();if(!d&&l.isBlob(v))throw new _("Blob is not supported. Use a Buffer instead.");if(l.isArrayBuffer(v)||l.isTypedArray(v)){if(d&&typeof c=="function")return new c([v]);throw new _("Blob is not supported. Use a Buffer instead.",_.ERR_NOT_SUPPORT)}return v}function g(v){if(v>u)throw new _("Object is too deeply nested ("+v+" levels). Max depth: "+u,_.ERR_FORM_DATA_DEPTH_EXCEEDED)}function E(v,x){if(u===1/0)return JSON.stringify(v);const m=[];return JSON.stringify(v,function(D,C){if(!l.isObject(C))return C;for(;m.length&&m[m.length-1]!==this;)m.pop();return m.push(C),g(x+m.length-1),C})}function F(v,x,m){let D=v;if(l.isReactNative(t)&&l.isReactNativeBlob(v))return t.append(_t(m,x,s),p(v)),!1;if(v&&!m&&typeof v=="object"){if(l.endsWith(x,"{}"))x=o?x:x.slice(0,-2),v=E(v,1);else if(l.isArray(v)&&Mo(v)||(l.isFileList(v)||l.endsWith(x,"[]"))&&(D=l.toArray(v)))return x=lr(x),D.forEach(function(C,G){!(l.isUndefined(C)||C===null)&&t.append(a===!0?_t([x],G,s):a===null?x:x+"[]",p(C))}),!1}return bt(v)?!0:(t.append(_t(m,x,s),p(v)),!1)}const y=Object.assign(qo,{defaultVisitor:F,convertValue:p,isVisitable:bt});function w(v,x,m=0){if(!l.isUndefined(v)){if(g(m),f.indexOf(v)!==-1)throw new Error("Circular reference detected in "+x.join("."));f.push(v),l.forEach(v,function(D,C){(!(l.isUndefined(D)||D===null)&&i.call(t,D,l.isString(C)?C.trim():C,x,y))===!0&&w(D,x?x.concat(C):[C],m+1)}),f.pop()}}if(!l.isObject(e))throw new TypeError("data must be an object");return w(e),t}function cr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function yt(e,t){this._pairs=[],e&&et(e,this,t)}const ur=yt.prototype;ur.append=function(e,t){this._pairs.push([e,t])},ur.toString=function(e){const t=e?r=>e.call(this,r,cr):cr;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function zo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dr(e,t,r){if(!t)return e;e=e||"";const n=l.isFunction(r)?{serialize:r}:r,o=l.getSafeProp(n,"encode")||zo,i=l.getSafeProp(n,"serialize");let s;if(i?s=i(t,n):s=l.isURLSearchParams(t)?t.toString():new yt(t,n).toString(o),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}const De=Symbol("internals");function fr(e){return e?e.length:0}function pr(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function Ue(e,t){const r=e.handlers,n=fr(r);r!==t.handlersRef?(t.handlersRef=r,t.handlerEntries.clear()):n!==t.handlersLength&&(n?t.handlerEntries.forEach(function(o,i){r[o.index]!==o.handler&&t.handlerEntries.delete(i)}):t.handlerEntries.clear()),t.handlersLength=n}class hr{constructor(){this.handlers=[],this[De]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,r,n){const o={fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null},i=this[De];this.handlers==null&&(this.handlers=[]),Ue(this,i);const s=i.nextId++;return this.handlers.push(o),i.handlerEntries.set(s,{handler:o,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,s}eject(t){const r=this[De];Ue(this,r);const n=r.handlerEntries.get(t);if(n){if(r.handlerEntries.delete(t),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,r.iterationDepth||(pr(this.handlers),r.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Ue(this,this[De]))}forEach(t){const r=this[De];Ue(this,r),r.iterationDepth++;try{l.forEach(this.handlers,function(n){n!==null&&t(n)})}finally{--r.iterationDepth||(Ue(this,r),pr(this.handlers),r.handlersLength=fr(this.handlers))}}}const wt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Ho=typeof URLSearchParams<"u"?URLSearchParams:yt,Jo=typeof FormData<"u"?FormData:null,Wo=typeof Blob<"u"?Blob:null,Ko={isBrowser:!0,classes:{URLSearchParams:Ho,FormData:Jo,Blob:Wo},protocols:["http","https","file","blob","url","data"]},vt=typeof window<"u"&&typeof document<"u",xt=typeof navigator=="object"&&navigator||void 0,Go=vt&&(!xt||["ReactNative","NativeScript","NS"].indexOf(xt.product)<0),Xo=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Qo=vt&&window.location.href||"http://localhost",Yo=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vt,hasStandardBrowserEnv:Go,hasStandardBrowserWebWorkerEnv:Xo,navigator:xt,origin:Qo},Symbol.toStringTag,{value:"Module"})),M={...Yo,...Ko};function Zo(e,t){return et(e,new M.classes.URLSearchParams,{visitor:function(r,n,o,i){return M.isNode&&l.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}const mr=ar;function gr(e){if(e>mr)throw new _("FormData field is too deeply nested ("+e+" levels). Max depth: "+mr,_.ERR_FORM_DATA_DEPTH_EXCEEDED)}function ei(e){const t=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;let n;for(;(n=r.exec(e))!==null;)gr(t.length),t.push(n[0]==="[]"?"":n[1]||n[0]);return t}function ti(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function br(e){function t(r,n,o,i){gr(i);let s=r[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=i>=r.length;return s=!s&&l.isArray(o)?o.length:s,c?(l.hasOwnProp(o,s)?o[s]=l.isArray(o[s])?o[s].concat(n):[o[s],n]:o[s]=n,!a):((!l.hasOwnProp(o,s)||!l.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&l.isArray(o[s])&&(o[s]=ti(o[s])),!a)}if(l.isFormData(e)&&l.isFunction(e.entries)){const r={};return l.forEachEntry(e,(n,o)=>{t(ei(n),o,r,0)}),r}return null}const _r=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Se=(e,t)=>e!=null&&l.hasOwnProp(e,t)?e[t]:void 0;function ri(e,t,r){if(l.isString(e))try{return(t||JSON.parse)(e),l.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Be={transitional:wt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=l.isObject(e);if(o&&l.isHTMLForm(e)&&(e=new FormData(e)),l.isFormData(e))return n?JSON.stringify(br(e)):e;if(l.isArrayBuffer(e)||l.isBuffer(e)||l.isStream(e)||l.isFile(e)||l.isBlob(e)||l.isReadableStream(e))return e;if(l.isArrayBufferView(e))return e.buffer;if(l.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){const s=Se(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return Zo(e,s).toString();if((i=l.isFileList(e))||r.indexOf("multipart/form-data")>-1){const a=Se(this,"env"),c=a&&a.FormData;return et(i?{"files[]":e}:e,c&&new c,s)}}return o||n?(t.setContentType("application/json",!1),ri(e)):e}],transformResponse:[function(e){const t=Se(this,"transitional")||Be.transitional,r=t&&t.forcedJSONParsing,n=Se(this,"responseType"),o=n==="json";if(l.isResponse(e)||l.isReadableStream(e))return e;if(e&&l.isString(e)&&(r&&!n||o)){const i=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,Se(this,"parseReviver"))}catch(s){if(i)throw s.name==="SyntaxError"?_.from(s,_.ERR_BAD_RESPONSE,this,null,Se(this,"response")):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:M.classes.FormData,Blob:M.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(_r,e=>{Be.headers[e]={}});function Ot(e,t){const r=this||Be,n=t||r,o=H.from(n.headers);let i=n.data;return l.forEach(e,function(s){i=s.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function yr(e){return!!(e&&e.__CANCEL__)}let Ie=class extends _{constructor(e,t,r){super(e??"canceled",_.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function wr(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new _("Request failed with status code "+r.status,r.status>=400&&r.status<500?_.ERR_BAD_REQUEST:_.ERR_BAD_RESPONSE,r.config,r.request,r))}const ni=/[\t\n\r]/g;function vr(e){if(typeof e!="string")return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(ni,"")}function Et(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function oi(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),u=n[i];s||(s=c),r[o]=a,n[o]=c;let d=i,f=0;for(;d!==o;)f+=r[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s<t)return;const p=u&&c-u;return p?Math.round(f*1e3/p):void 0}}function ii(e,t){let r=0,n=1e3/t,o,i;const s=(a,c=Date.now())=>{r=c,o=null,i&&(clearTimeout(i),i=null),e(...a)};return[(...a)=>{const c=Date.now(),u=c-r;u>=n?s(a,c):(o=a,i||(i=setTimeout(()=>{i=null,s(o)},n-u)))},()=>o&&s(o),(...a)=>s(a)]}const tt=(e,t,r=3)=>{let n=0;const o=oi(50,250);return ii(i=>{if(!i||!l.isNumber(i.loaded))return;const s=i.loaded,a=i.lengthComputable?i.total:void 0,c=Math.max(0,a!=null?Math.min(s,a):s),u=Math.max(0,c-n),d=o(u);n=Math.max(n,c);const f={loaded:c,total:a,progress:a?c/a:void 0,bytes:u,rate:d||void 0,estimated:d&&a?(a-c)/d:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},r)},xr=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Or=(e,t=l.asap)=>(...r)=>t(()=>e(...r)),si=M.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,M.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(M.origin),M.navigator&&/(msie|trident)/i.test(M.navigator.userAgent)):()=>!0,ai=M.hasStandardBrowserEnv?{write(e,t,r,n,o,i,s){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];l.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),l.isString(n)&&a.push(`path=${n}`),l.isString(o)&&a.push(`domain=${o}`),i===!0&&a.push("secure"),l.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let r=0;r<t.length;r++){const n=t[r].replace(/^\s+/,""),o=n.indexOf("=");if(o!==-1&&n.slice(0,o)===e)try{return decodeURIComponent(n.slice(o+1))}catch{return n.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function li(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ci(e,t){if(!t)return e;let r=e.length;for(;r>0&&e.charCodeAt(r-1)===47;)r--;return e.slice(0,r)+"/"+t.replace(/^\/+/,"")}const ui=/^https?:(?!\/\/)/i;function di(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,r,n="")=>`${r}${n}${Ze}`)}function fi(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Ze}@`),r=t.indexOf("#"),n=(r===-1?t:t.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Ze}`);return r===-1?n:`${n}#${di(t.slice(r+1))}`}function Er(e,t){if(typeof e=="string"){const r=vr(e);if(ui.test(r))throw new _(`Invalid URL ${JSON.stringify(fi(r))}: missing "//" after protocol`,_.ERR_INVALID_URL,t)}}function Sr(e,t,r,n){Er(t,n);let o=!li(t);return e&&(o||r===!1)?(Er(e,n),ci(e,t)):t}const Rr=e=>e instanceof H?{...e}:e,pi=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function ye(e,t){e=e||{},t=t||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(d,f,p,g){return l.isPlainObject(d)&&l.isPlainObject(f)?l.merge.call({caseless:g},d,f):l.isPlainObject(f)?l.merge({},f):l.isArray(f)?f.slice():f}function o(d,f,p,g){if(l.isUndefined(f)){if(!l.isUndefined(d))return n(void 0,d,p,g)}else return n(d,f,p,g)}function i(d,f){if(!l.isUndefined(f))return n(void 0,f)}function s(d,f){if(l.isUndefined(f)){if(!l.isUndefined(d))return n(void 0,d)}else return n(void 0,f)}function a(d){const f=l.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!l.isUndefined(f))if(l.isPlainObject(f)){if(l.hasOwnProp(f,d))return f[d]}else return;const p=l.hasOwnProp(e,"transitional")?e.transitional:void 0;if(l.isPlainObject(p)&&l.hasOwnProp(p,d))return p[d]}function c(d,f,p){if(l.hasOwnProp(t,p))return n(d,f);if(l.hasOwnProp(e,p))return n(void 0,d)}const u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage: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,allowedSocketPaths:s,responseEncoding:s,validateStatus:c,headers:(d,f,p)=>o(Rr(d),Rr(f),p,!0)};return l.forEach(pi({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=l.hasOwnProp(u,d)?u[d]:o,p=l.hasOwnProp(e,d)?e[d]:void 0,g=l.hasOwnProp(t,d)?t[d]:void 0,E=f(p,g,d);l.isUndefined(E)&&f!==c||(r[d]=E)}),l.hasOwnProp(t,"validateStatus")&&l.isUndefined(t.validateStatus)&&a("validateStatusUndefinedResolves")===!1&&(l.hasOwnProp(e,"validateStatus")?r.validateStatus=n(void 0,e.validateStatus):delete r.validateStatus),r}const hi=["content-type","content-length"];function mi(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([n,o])=>{hi.includes(n.toLowerCase())&&e.set(n,o)})}const gi=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16)));function Ar(e){const t=ye({},e),r=p=>l.hasOwnProp(t,p)?t[p]:void 0,n=r("data");let o=r("withXSRFToken");const i=r("xsrfHeaderName"),s=r("xsrfCookieName");let a=r("headers");const c=r("auth"),u=r("baseURL"),d=r("allowAbsoluteUrls"),f=r("url");if(t.headers=a=H.from(a),t.url=dr(Sr(u,f,d,t),r("params"),r("paramsSerializer")),c){const p=l.getSafeProp(c,"username")||"",g=l.getSafeProp(c,"password")||"";try{a.set("Authorization","Basic "+btoa(p+":"+(g?gi(g):"")))}catch(E){throw _.from(E,_.ERR_BAD_OPTION_VALUE,e)}}if(l.isFormData(n)){const p=l.getSafeProp(n,"getHeaders");M.hasStandardBrowserEnv||M.hasStandardBrowserWebWorkerEnv||l.isReactNative(n)?a.setContentType(void 0):l.isFunction(p)&&mi(a,p.call(n),r("formDataHeaderPolicy"))}if(M.hasStandardBrowserEnv&&(l.isFunction(o)&&(o=o(t)),o===!0||o==null&&si(t.url))){const p=i&&s&&ai.read(s);p&&a.set(i,p)}return t}const bi=typeof XMLHttpRequest<"u",_i=bi&&function(e){return new Promise(function(t,r){const n=Ar(e);let o=n.data;const i=H.from(n.headers).normalize();let{responseType:s,onUploadProgress:a,onDownloadProgress:c}=n,u,d,f,p,g,E;function F(){p&&p(),g&&g(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(n.method.toUpperCase(),n.url,!0),y.timeout=n.timeout;function w(x){if(!y)return;if(y.status===0&&(Et(vr(n.url))||Et(M.origin))!=="file"&&!(y.responseURL&&y.responseURL.startsWith("file:"))){r(new _("Request aborted",_.ECONNABORTED,e,y)),F(),y=null;return}try{x?E&&E(x):g&&g()}catch(C){setTimeout(()=>{throw C})}if(!y)return;const m=H.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),D={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:m,config:e,request:y};wr(function(C){t(C),F()},function(C){r(C),F()},D),y=null}"onloadend"in y?y.onloadend=w:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.startsWith("file:"))||setTimeout(w)},y.onabort=function(){y&&(r(new _("Request aborted",_.ECONNABORTED,e,y)),F(),y=null)},y.onerror=function(x){const m=x&&x.message?x.message:"Network Error",D=new _(m,_.ERR_NETWORK,e,y);D.event=x||null,r(D),F(),y=null},y.ontimeout=function(){let x=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const m=n.transitional||wt;n.timeoutErrorMessage&&(x=n.timeoutErrorMessage),r(new _(x,m.clarifyTimeoutError?_.ETIMEDOUT:_.ECONNABORTED,e,y)),F(),y=null},o===void 0&&i.setContentType(null),"setRequestHeader"in y&&l.forEach(or(i),function(x,m){y.setRequestHeader(m,x)}),l.isUndefined(n.withCredentials)||(y.withCredentials=!!n.withCredentials),s&&s!=="json"&&(y.responseType=n.responseType),c&&([f,g,E]=tt(c,!0),y.addEventListener("progress",f)),a&&y.upload&&([d,p]=tt(a),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",p)),(n.cancelToken||n.signal)&&(u=x=>{y&&(r(!x||x.type?new Ie(null,e,y):x),y.abort(),F(),y=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const v=Et(n.url);if(v&&!M.protocols.includes(v)){r(new _("Unsupported protocol "+v+":",_.ERR_BAD_REQUEST,e)),F();return}y.send(o||null)})},yi=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const r=new AbortController;let n=!1;const o=function(c){if(!n){n=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof _?u:new Ie(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new _(`timeout of ${t}ms exceeded`,_.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>{if(!n){if(c.aborted){o.call(c);return}c.addEventListener("abort",o,{once:!0})}});const{signal:a}=r;return a.unsubscribe=()=>l.asap(s),a},wi=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},vi=async function*(e,t){for await(const r of xi(e))yield*wi(r,t)},xi=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},kr=(e,t,r,n)=>{const o=vi(e,t);let i=0,s,a=c=>{s||(s=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await o.next();if(u){a(),c.close();return}let f=d.byteLength;if(r){let p=i+=f;r(p)}c.enqueue(new Uint8Array(d))}catch(u){throw a(u),u}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},Cr=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Tr=(e,t,r)=>t+2<r&&Cr(e.charCodeAt(t+1))&&Cr(e.charCodeAt(t+2)),jr=e=>e<=57?e-48:(e&223)-55,Oi=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,Ei=e=>e===9||e===10||e===12||e===13||e===32,Si=e=>{const t=Math.floor(e/4),r=e%4;return t*3+(r===2?1:r===3?2:0)},Ri=e=>{const t=e.length;let r=0;return t>0&&e.charCodeAt(t-1)===61&&(r++,t>1&&e.charCodeAt(t-2)===61&&r++),Math.floor((t-r)*3/4)},Ai=e=>{const t=e.length;let r=0,n=0,o=!1;for(let i=0;i<t;i++){let s=e.charCodeAt(i);if(s===37&&Tr(e,i,t)&&(s=jr(e.charCodeAt(i+1))*16+jr(e.charCodeAt(i+2)),i+=2),!Ei(s)){if(s===61){n++;continue}if(!Oi(s)||n>0){o=!0;continue}r++}}return o||n>2||n>0&&(r+n)%4!==0||r%4===1?Ri(e):Si(r)},ki=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const r=e.indexOf(",");if(r<0)return 0;const n=e.slice(5,r),o=e.slice(r+1);if(/;base64/i.test(n))return t(o);let i=0;for(let s=0,a=o.length;s<a;s++){const c=o.charCodeAt(s);if(c===37&&Tr(o,s,a))i+=1,s+=2;else if(c<128)i+=1;else if(c<2048)i+=2;else if(c>=55296&&c<=56319&&s+1<a){const u=o.charCodeAt(s+1);u>=56320&&u<=57343?(i+=4,s++):i+=3}else i+=3}return i};function Ci(e){const t=typeof e=="string"?e.indexOf("#"):-1;return ki(t===-1?e:e.slice(0,t),Ai)}const St="1.20.0",Nr=64*1024,Ti={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:rt}=l,ji=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),Fr=e=>{if(!l.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Pr=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ni=e=>{const t=e.indexOf("://");let r=e;return t!==-1&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},Fi=e=>{const t=l.global!==void 0&&l.global!==null?l.global:globalThis,{ReadableStream:r,TextEncoder:n}=t;e=l.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:s}=e,a=o?rt(o):typeof fetch=="function",c=rt(i),u=rt(s);if(!a)return!1;const d=a&&rt(r),f=a&&(typeof n=="function"?(w=>v=>w.encode(v))(new n):async w=>new Uint8Array(await new i(w).arrayBuffer())),p=c&&d&&Pr(()=>{let w=!1;const v=new i(M.origin,{body:new r,method:"POST",get duplex(){return w=!0,"half"}}),x=v.headers.has("Content-Type");return v.body!=null&&v.body.cancel(),w&&!x}),g=u&&d&&Pr(()=>l.isReadableStream(new s("").body)),E={stream:g&&(w=>w.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(w=>{!E[w]&&(E[w]=(v,x)=>{let m=v&&v[w];if(m)return m.call(v);throw new _(`Response type '${w}' is not supported`,_.ERR_NOT_SUPPORT,x)})});const F=async w=>{if(w==null)return 0;if(l.isBlob(w))return w.size;if(l.isSpecCompliantForm(w))return(await new i(M.origin,{method:"POST",body:w}).arrayBuffer()).byteLength;if(l.isArrayBufferView(w)||l.isArrayBuffer(w))return w.byteLength;if(l.isURLSearchParams(w)&&(w=w+""),l.isString(w))return(await f(w)).byteLength},y=async(w,v)=>l.toFiniteNumber(w.getContentLength())??F(v);return async w=>{let{url:v,method:x,data:m,signal:D,cancelToken:C,timeout:G,onDownloadProgress:pe,onUploadProgress:he,responseType:Z,headers:R,withCredentials:ee="same-origin",fetchOptions:te,maxContentLength:q,maxBodyLength:Re,maxRedirects:re}=Ar(w);const A=l.isNumber(q)&&q>-1,U=l.isNumber(Re)&&Re>-1,oe=P=>l.hasOwnProp(w,P)?w[P]:void 0;let le=o||fetch;Z=Z?(Z+"").toLowerCase():"text";let X=yi([D,C&&C.toAbortSignal()],G),$=null;const ve=X&&X.unsubscribe&&(()=>{X.unsubscribe()});let $e,Me=null;const Yr=()=>new _("Request body larger than maxBodyLength limit",_.ERR_BAD_REQUEST,w,$);try{let P;const ne=oe("auth");if(ne){const k=l.getSafeProp(ne,"username")||"",W=l.getSafeProp(ne,"password")||"";P={username:k,password:W}}if(Ni(v)){const k=new URL(v,M.origin);if(!P&&(k.username||k.password)){const W=Fr(k.username),me=Fr(k.password);P={username:W,password:me}}(k.username||k.password)&&(k.username="",k.password="",v=k.href)}if(P&&(R.delete("authorization"),R.set("Authorization","Basic "+btoa(ji((P.username||"")+":"+(P.password||""))))),A&&typeof v=="string"&&v.startsWith("data:")&&Ci(v)>q)throw new _("maxContentLength size of "+q+" exceeded",_.ERR_BAD_RESPONSE,w,$);if(U&&x!=="get"&&x!=="head"){const k=await F(m);if(typeof k=="number"&&isFinite(k)&&($e=k,k>Re))throw Yr()}const ut=U&&(l.isReadableStream(m)||l.isStream(m)),Zr=(k,W,me)=>kr(k,Nr,xe=>{if(U&&xe>Re)throw Me=Yr();W&&W(xe)},me);if(p&&x!=="get"&&x!=="head"&&(he||ut)){if($e=$e??await y(R,m),$e!==0||ut){let k=new i(v,{method:"POST",body:m,duplex:"half"}),W;if(l.isFormData(m)&&(W=k.headers.get("content-type"))&&R.setContentType(W),k.body){const[me,xe]=he&&xr($e,tt(Or(he)))||[];m=Zr(k.body,me,xe)}}}else if(ut&&!c&&d&&x!=="get"&&x!=="head")m=Zr(m);else if(ut&&c&&!p&&x!=="get"&&x!=="head")throw new _("Stream request bodies are not supported by the current fetch implementation",_.ERR_NOT_SUPPORT,w,$);l.isString(ee)||(ee=ee?"include":"omit");const Ps=c&&"credentials"in i.prototype;if(l.isFormData(m)){const k=R.getContentType();k&&/^multipart\/form-data/i.test(k)&&!/boundary=/i.test(k)&&R.delete("content-type")}R.set("User-Agent","axios/"+St,!1);const ie=te==null?te:Object.assign(Object.create(null),te);ie&&(delete ie.body,delete ie.headers,delete ie.method,delete ie.signal,delete ie.duplex,delete ie.credentials);const ce=Object.assign(Object.create(null),ie,{signal:X,method:x.toUpperCase(),headers:or(R.normalize()),body:m,duplex:"half",credentials:Ps?ee:void 0});c&&(l.forEach(Ti,(k,W)=>{ce[W]===void 0&&(ce[W]=k)}),ce.signal===void 0&&(ce.signal=null),ce.body===void 0&&(ce.body=null)),re===0&&(ce.redirect="manual",ie&&(ie.redirect="manual")),$=c&&new i(v,ce);let ue=await(c?le($,ie):le(v,ce));const en=H.from(ue.headers);if(A){const k=l.toFiniteNumber(en.getContentLength());if(k!=null&&k>q)throw new _("maxContentLength size of "+q+" exceeded",_.ERR_BAD_RESPONSE,w,$)}const Bt=g&&(Z==="stream"||Z==="response");if(g&&ue.body&&(pe||A||Bt&&ve)){const k={};["status","statusText","headers"].forEach(qe=>{k[qe]=ue[qe]});const W=l.toFiniteNumber(en.getContentLength()),[me,xe]=pe&&xr(W,tt(Or(pe),!0))||[];let tn=0;const Ds=qe=>{if(A&&(tn=qe,tn>q))throw new _("maxContentLength size of "+q+" exceeded",_.ERR_BAD_RESPONSE,w,$);me&&me(qe)};ue=new s(kr(ue.body,Nr,Ds,()=>{xe&&xe(),ve&&ve()}),k)}Z=Z||"text";let de=await E[l.findKey(E,Z)||"text"](ue,w);if(A&&!g&&!Bt){let k;if(de!=null&&(typeof de.byteLength=="number"?k=de.byteLength:typeof de.size=="number"?k=de.size:typeof de=="string"&&(k=typeof n=="function"?new n().encode(de).byteLength:de.length)),typeof k=="number"&&k>q)throw new _("maxContentLength size of "+q+" exceeded",_.ERR_BAD_RESPONSE,w,$)}return!Bt&&ve&&ve(),await new Promise((k,W)=>{wr(k,W,{data:de,headers:H.from(ue.headers),status:ue.status,statusText:ue.statusText,config:w,request:$})})}catch(P){if(ve&&ve(),X&&X.aborted&&X.reason instanceof _){const ne=X.reason;throw ne.config=w,$&&(ne.request=$),P!==ne&&Object.defineProperty(ne,"cause",{__proto__:null,value:P,writable:!0,enumerable:!1,configurable:!0}),ne}if(Me)throw $&&!Me.request&&(Me.request=$),Me;if(P instanceof _)throw $&&!P.request&&(P.request=$),P;if(P&&P.name==="TypeError"&&/Load failed|fetch/i.test(P.message)){const ne=new _("Network Error",_.ERR_NETWORK,w,$,P&&P.response);throw Object.defineProperty(ne,"cause",{__proto__:null,value:P.cause||P,writable:!0,enumerable:!1,configurable:!0}),ne}throw _.from(P,P&&P.code,w,$,P&&P.response)}}},Pi=new Map,Dr=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let s=i.length,a=s,c,u,d=Pi;for(;a--;)c=i[a],u=d.get(c),u===void 0&&d.set(c,u=a?new Map:Fi(t)),d=u;return u};Dr();const Rt={http:$o,xhr:_i,fetch:{get:Dr}};l.forEach(Rt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Ur=e=>`- ${e}`,Di=e=>l.isFunction(e)||e===null||e===!1;function Ui(e,t){e=l.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let s=0;s<r;s++){n=e[s];let a;if(o=n,!Di(n)&&(o=Rt[(a=String(n)).toLowerCase()],o===void 0))throw new _(`Unknown adapter '${a}'`);if(o&&(l.isFunction(o)||(o=o.get(t))))break;i[a||"#"+s]=o}if(!o){const s=Object.entries(i).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=r?s.length>1?`since :
7
+ `+s.map(Ur).join(`
8
+ `):" "+Ur(s[0]):"as no adapter specified";throw new _("There is no suitable adapter to dispatch the request "+a,_.ERR_NOT_SUPPORT)}return o}const Br={getAdapter:Ui,adapters:Rt};function At(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ie(null,e)}function kt(e){const t=l.toSafeFlatObject(e);return At(t),t.headers=H.from(l.getSafeProp(t,"headers")),t.data=Ot.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Br.getAdapter(t.adapter||Be.adapter,t)(t).then(function(r){At(t),t.response=r;try{r.data=Ot.call(t,t.transformResponse,r)}finally{delete t.response}return r.headers=H.from(r.headers),r},function(r){if(!yr(r)&&(At(t),r&&r.response)){t.response=r.response;try{r.response.data=Ot.call(t,t.transformResponse,r.response)}finally{delete t.response}r.response.headers=H.from(r.response.headers)}return Promise.reject(r)})}const nt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{nt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ir={};nt.transitional=function(e,t,r){function n(o,i){return"[Axios v"+St+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,s)=>{if(e===!1)throw new _(n(i," has been removed"+(t?" in "+t:"")),_.ERR_DEPRECATED);return t&&!Ir[i]&&(Ir[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,i,s):!0}},nt.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Bi(e,t,r){if(typeof e!="object"||e===null)throw new _("options must be an object",_.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(s){const a=e[i],c=a===void 0||s(a,i,e);if(c!==!0)throw new _("option "+i+" must be "+c,_.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new _("Unknown option "+i,_.ERR_BAD_OPTION)}}const ot={assertOptions:Bi,validators:nt},J=ot.validators;let we=class{constructor(e){this.defaults=e||{},this.interceptors={request:new hr,response:new hr}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error)try{let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const o=n.stack;let i="";if(typeof o=="string"){const s=o.indexOf(`
9
+ `);i=s===-1?"":o.slice(s+1)}if(!r.stack)r.stack=i;else if(i){const s=i.indexOf(`
10
+ `),a=s===-1?-1:i.indexOf(`
11
+ `,s+1),c=a===-1?"":i.slice(a+1);String(r.stack).endsWith(c)||(r.stack+=`
12
+ `+i)}}catch{}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=ye(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;r!==void 0&&ot.assertOptions(r,{silentJSONParsing:J.transitional(J.boolean),forcedJSONParsing:J.transitional(J.boolean),clarifyTimeoutError:J.transitional(J.boolean),legacyInterceptorReqResOrdering:J.transitional(J.boolean),advertiseZstdAcceptEncoding:J.transitional(J.boolean),validateStatusUndefinedResolves:J.transitional(J.boolean)},!1),n!=null&&(l.isFunction(n)?t.paramsSerializer={serialize:n}:ot.assertOptions(n,{encode:J.function,serialize:J.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ot.assertOptions(t,{baseUrl:J.spelling("baseURL"),withXsrfToken:J.spelling("withXSRFToken")},!0),t.method=(l.getSafeProp(t,"method")||l.getSafeProp(this.defaults,"method")||"get").toLowerCase();let i=o&&l.merge(o.common,o[t.method]);o&&l.forEach(_r.concat("common"),g=>{delete o[g]}),t.headers=H.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(t)===!1)return;a=a&&g.synchronous;const E=t.transitional||wt;E&&E.legacyInterceptorReqResOrdering?s.unshift(g.fulfilled,g.rejected):s.push(g.fulfilled,g.rejected)});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,f;if(!a){const g=[kt.bind(this),void 0];for(g.unshift(...s),g.push(...c),f=g.length,u=Promise.resolve(t);d<f;)u=u.then(g[d++],g[d++]);return u}f=s.length;let p=t;for(;d<f;){const g=s[d++],E=s[d++];try{p=g?g(p):p}catch(F){if(!E){u=Promise.reject(F);break}try{const y=E.call(this,F);l.isThenable(y)&&(u=Promise.resolve(y).then(()=>kt.call(this,p)))}catch(y){u=Promise.reject(y)}break}}if(!u)try{u=kt.call(this,p)}catch(g){u=Promise.reject(g)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(e){e=ye(this.defaults,e);const t=Sr(e.baseURL,e.url,e.allowAbsoluteUrls,e);return dr(t,e.params,e.paramsSerializer)}};l.forEach(["delete","get","head","options"],function(e){we.prototype[e]=function(t,r){return this.request(ye(r||{},{method:e,url:t,data:r&&l.hasOwnProp(r,"data")?r.data:void 0}))}}),l.forEach(["post","put","patch","query"],function(e){function t(r){return function(n,o,i){return this.request(ye(i||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}we.prototype[e]=t(),e!=="query"&&(we.prototype[e+"Form"]=t(!0))});let Ii=class nn{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(o,i,s){n.reason||(n.reason=new Ie(o,i,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new nn(function(r){t=r}),cancel:t}}};function Li(e){return function(t){return e.apply(null,t)}}function Vi(e){return l.isObject(e)&&e.isAxiosError===!0}const it={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(it).forEach(([e,t])=>{it[t]===void 0&&(it[t]=e)});function Lr(e){const t=new we(e),r=Ht(we.prototype.request,t);return l.extend(r,we.prototype,t,{allOwnKeys:!0}),l.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Lr(ye(e,n))},r}const L=Lr(Be);L.Axios=we,L.CanceledError=Ie,L.CancelToken=Ii,L.isCancel=yr,L.VERSION=St,L.toFormData=et,L.AxiosError=_,L.Cancel=L.CanceledError,L.all=function(e){return Promise.all(e)},L.spread=Li,L.isAxiosError=Vi,L.mergeConfig=ye,L.AxiosHeaders=H,L.formToJSON=e=>br(l.isHTMLForm(e)?new FormData(e):e),L.getAdapter=Br.getAdapter,L.HttpStatusCode=it,L.default=L;const{Axios:Bs,AxiosError:Is,CanceledError:Ls,isCancel:Vs,CancelToken:$s,VERSION:Ms,all:qs,Cancel:zs,isAxiosError:Hs,spread:Js,toFormData:Ws,AxiosHeaders:Ks,HttpStatusCode:Gs,formToJSON:Xs,getAdapter:Qs,mergeConfig:Ys,create:Zs}=L;function st(e){return e?.name==="AuthRequiredError"}const $i=new Set(["OpenC3::AuthError","OpenC3::ForbiddenError"]);function Mi(e){return e?.response?.status===401||e?.status===401||$i.has(e?.name)}function qi(e){!st(e)&&!Mi(e)&&console.error(e)}class Vr extends Error{constructor(t="Authentication required"){super(t),this.name="AuthRequiredError"}}globalThis.__openc3AuthRejectionHandler||(globalThis.__openc3AuthRejectionHandler=!0,globalThis.addEventListener?.("unhandledrejection",e=>{st(e.reason)&&e.preventDefault()}));let $r=!1;function Mr(){$r||($r=!0,OpenC3Auth.login())}async function Ct(){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch(e){throw st(e)?e:(Mr(),new Vr(e?.message))}if(!localStorage.openc3Token)throw Mr(),new Vr}const Tt=L.create({baseURL:location.origin,timeout:6e4,params:{}});Tt.interceptors.response.use(e=>e,e=>{if(e.response){if(e.response.config.headers["Ignore-Errors"]&&e.response.config.headers["Ignore-Errors"].includes(e.response.status.toString()))return Promise.reject(e);if(e.response.status===401)return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(o){o&&OpenC3Auth.setTokens()}).catch(qi),Promise.reject(e);const t=e.response?.data?.error?.data?.class;if(t==="HazardousError"||t==="CriticalCmdError")return Promise.reject(e);let r=`HTTP ${e.response.status} - `;e.response?.statusText&&(r+=`${e.response.statusText} `),e.response?.config?.data&&(r+=`${e.response.config.data} `),e.response?.data?.message?r+=`${e.response.data.message}`:e.response?.data?.exception?r+=`${e.response.data.exception}`:e.response?.data?.error?.message?(e.response.data.error.class&&(r+=`${e.response.data.error.class} `),r+=`${e.response.data.error.message}`):r+=`${e.response?.data}`;const{$cosmosNotify:n}=window;throw n&&n.serious({title:"Network error",body:r}),e}else throw e});const at=async function(e,t,{data:r,params:n={},headers:o,noAuth:i=!1,optionalAuth:s=!1,noScope:a=!1,onUploadProgress:c=!1,responseType:u}={}){if(!i)if(s){try{await Ct()}catch(d){if(!st(d))throw d}localStorage.openc3Token&&(o.Authorization=localStorage.openc3Token)}else await Ct(),o.Authorization=localStorage.openc3Token;return o.manual=!0,!a&&!n.scope&&(n.scope=window.openc3Scope),Tt({method:e,url:t,data:r,params:n,headers:o,onUploadProgress:c,responseType:u})},jt={Accept:"application/json"},qr={...jt,"Content-Type":"application/json"},z={get:function(e,{params:t,headers:r=jt,noScope:n,noAuth:o,optionalAuth:i,onUploadProgress:s,responseType:a}={}){return at("get",e,{params:t,headers:r,noScope:n,noAuth:o,optionalAuth:i,onUploadProgress:s,responseType:a})},put:function(e,{data:t,params:r,headers:n=qr,noScope:o,noAuth:i,onUploadProgress:s}={}){return at("put",e,{data:t,params:r,headers:n,noScope:o,noAuth:i,onUploadProgress:s})},post:function(e,{data:t,params:r,headers:n=qr,noScope:o,noAuth:i,onUploadProgress:s,responseType:a}={}){return at("post",e,{data:t,params:r,headers:n,noScope:o,noAuth:i,onUploadProgress:s,responseType:a})},delete:function(e,{params:t,headers:r=jt,noScope:n,noAuth:o,onUploadProgress:i}={}){return at("delete",e,{params:t,headers:r,noScope:n,noAuth:o,onUploadProgress:i})}};function Le(e){return zi.test(e)}const zi=/^-?[0-9]+$/;function zr(e){return Hi.test(e)}const Hi=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Hr(e,t){if(Le(e))return Number.isSafeInteger(Number.parseInt(e,10));const r=Number.parseFloat(e),n=String(r);if(e===n)return!0;const o=Jr(e),i=Jr(n);return!!(o===i||t?.approx===!0&&!Le(e)&&i.length>=14&&o.startsWith(i.substring(0,14)))}let Ve=(function(e){return e.underflow="underflow",e.overflow="overflow",e.truncate_integer="truncate_integer",e.truncate_float="truncate_float",e})({});function Ji(e){if(Hr(e,{approx:!1}))return;if(Le(e))return Ve.truncate_integer;const t=Number.parseFloat(e);return Number.isFinite(t)?t===0?Ve.underflow:Ve.truncate_float:Ve.overflow}function Jr(e){const{start:t,end:r}=Wi(e),n=e.substring(t,r),o=n.indexOf(".");return o===-1?n:n.substring(0,o)+n.substring(o+1)}function Wi(e){let t=0;for(e[0]==="-"&&t++;e[t]==="0"||e[t]===".";)t++;let r=e.lastIndexOf("e");for(r===-1&&(r=e.lastIndexOf("E")),r===-1&&(r=e.length);(e[r-1]==="0"||e[r-1]===".")&&r>t;)r--;return{start:t,end:r}}class Ki{isLosslessNumber=!0;constructor(t){if(!zr(t))throw new Error(`Invalid number (value: "${t}")`);this.value=t}valueOf(){const t=Ji(this.value);if(t===void 0||t===Ve.truncate_float)return Number.parseFloat(this.value);if(Le(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${t} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function Gi(e){return e&&typeof e=="object"&&e.isLosslessNumber||!1}function Xi(e){return new Ki(e)}function Qi(e,t){return Nt({"":e},"",e,t)}function Nt(e,t,r,n){return Array.isArray(r)?n.call(e,t,Zi(r,n)):r&&typeof r=="object"&&!Gi(r)?n.call(e,t,Yi(r,n)):n.call(e,t,r)}function Yi(e,t){for(const r of Object.keys(e)){const n=Nt(e,r,e[r],t);n!==void 0?e[r]=n:delete e[r]}return e}function Zi(e,t){for(let r=0;r<e.length;r++)e[r]=Nt(e,String(r),e[r],t);return e}function es(e,t,r){const n=typeof r=="function"?{parseNumber:r}:r,o=n?.parseNumber??Xi,i=n?.onDuplicateKey??G;let s=0;const a=d();return w(a),x(),t?Qi(a,t):a;function c(){if(e.charCodeAt(s)===ss){s++,p();const A={};let U=!0;for(;s<e.length&&e.charCodeAt(s)!==Kr;){U?U=!1:(F(),p());const oe=s,le=g();if(le===void 0){C();return}p(),y();const X=d();if(X===void 0){ee();return}if(Object.prototype.hasOwnProperty.call(A,le)&&!Ft(X,A[le])){const $=i({key:le,position:oe+1,oldValue:A[le],newValue:X});$!==void 0&&(A[le]=$)}else A[le]=X}return e.charCodeAt(s)!==Kr&&pe(),s++,A}}function u(){if(e.charCodeAt(s)===as){s++,p();const A=[];let U=!0;for(;s<e.length&&e.charCodeAt(s)!==Gr;){U?U=!1:F();const oe=d();v(oe),A.push(oe)}return e.charCodeAt(s)!==Gr&&he(),s++,A}}function d(){p();const A=g()??E()??c()??u()??f("true",!0)??f("false",!1)??f("null",null);return p(),A}function f(A,U){if(e.slice(s,s+A.length)===A)return s+=A.length,U}function p(){for(;ts(e.charCodeAt(s));)s++}function g(){if(e.charCodeAt(s)===Pt){s++;let A="";for(;s<e.length&&e.charCodeAt(s)!==Pt;){if(e.charCodeAt(s)===is){const U=e[s+1],oe=os[U];oe!==void 0?(A+=oe,s++):U==="u"?lt(e.charCodeAt(s+2))&&lt(e.charCodeAt(s+3))&&lt(e.charCodeAt(s+4))&&lt(e.charCodeAt(s+5))?(A+=String.fromCharCode(Number.parseInt(e.slice(s+2,s+6),16)),s+=5):te(s):R(s)}else ns(e.charCodeAt(s))?A+=e[s]:Z(e[s]);s++}return D(),s++,A}}function E(){const A=s;if(e.charCodeAt(s)===Xr&&(s++,m(A)),e.charCodeAt(s)===Dt)s++;else if(rs(e.charCodeAt(s)))for(s++;ct(e.charCodeAt(s));)s++;if(e.charCodeAt(s)===ms)for(s++,m(A);ct(e.charCodeAt(s));)s++;if(e.charCodeAt(s)===ws||e.charCodeAt(s)===ys)for(s++,(e.charCodeAt(s)===Xr||e.charCodeAt(s)===fs)&&s++,m(A);ct(e.charCodeAt(s));)s++;if(s>A)return o(e.slice(A,s))}function F(){if(e.charCodeAt(s)!==hs)throw new SyntaxError(`Comma ',' expected after value ${re()}`);s++}function y(){if(e.charCodeAt(s)!==gs)throw new SyntaxError(`Colon ':' expected after property name ${re()}`);s++}function w(A){if(A===void 0)throw new SyntaxError(`JSON value expected ${re()}`)}function v(A){if(A===void 0)throw new SyntaxError(`Array item expected ${re()}`)}function x(){if(s<e.length)throw new SyntaxError(`Expected end of input ${re()}`)}function m(A){if(!ct(e.charCodeAt(s))){const U=e.slice(A,s);throw new SyntaxError(`Invalid number '${U}', expecting a digit ${re()}`)}}function D(){if(e.charCodeAt(s)!==Pt)throw new SyntaxError(`End of string '"' expected ${re()}`)}function C(){throw new SyntaxError(`Quoted object key expected ${re()}`)}function G(A){let{key:U,position:oe}=A;throw new SyntaxError(`Duplicate key '${U}' encountered at position ${oe}`)}function pe(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${re()}`)}function he(){throw new SyntaxError(`Array item or end of array ']' expected ${re()}`)}function Z(A){throw new SyntaxError(`Invalid character '${A}' ${q()}`)}function R(A){const U=e.slice(A,A+2);throw new SyntaxError(`Invalid escape character '${U}' ${q()}`)}function ee(){throw new SyntaxError(`Object value expected after ':' ${q()}`)}function te(A){const U=e.slice(A,A+6);throw new SyntaxError(`Invalid unicode character '${U}' ${q()}`)}function q(){return`at position ${s}`}function Re(){return s<e.length?`but got '${e[s]}'`:"but reached end of input"}function re(){return`${Re()} ${q()}`}}function ts(e){return e===ls||e===cs||e===us||e===ds}function lt(e){return e>=Dt&&e<=Ut||e>=bs&&e<=vs||e>=_s&&e<=xs}function ct(e){return e>=Dt&&e<=Ut}function rs(e){return e>=ps&&e<=Ut}function ns(e){return e>=32&&e<=1114111}function Ft(e,t){return e===t?!0:Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((r,n)=>Ft(r,t[n])):Wr(e)&&Wr(t)?[...new Set([...Object.keys(e),...Object.keys(t)])].every(r=>Ft(e[r],t[r])):!1}function Wr(e){return typeof e=="object"&&e!==null}const os={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
13
+ `,r:"\r",t:" "},is=92,ss=123,Kr=125,as=91,Gr=93,ls=32,cs=10,us=9,ds=13,Pt=34,fs=43,Xr=45,Dt=48,ps=49,Ut=57,hs=44,ms=46,gs=58,bs=65,_s=97,ys=69,ws=101,vs=70,xs=102;function Qr(e,t,r,n){return o(e);function o(c,u){if(Array.isArray(n)){const d=n.find(f=>f.test(c));if(d){const f=d.stringify(c);if(typeof f!="string"||!zr(f))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${f})`);return f}}if(typeof c=="boolean"||typeof c=="number"||typeof c=="string"||c===null||c instanceof Date||c instanceof Boolean||c instanceof Number||c instanceof String)return JSON.stringify(c);if(c?.isLosslessNumber||typeof c=="bigint")return c.toString();if(Array.isArray(c))return i(c);if(c&&typeof c=="object")return s(c)}function i(c,u){if(c.length===0)return"[]";let d="[";for(let f=0;f<c.length;f++){const p=c[f];typeof p<"u"&&typeof p!="function"?d+=o(p):d+="null",f<c.length-1&&(d+=",")}return d+="]",d}function s(c,u){if(typeof c.toJSON=="function")return Qr(c.toJSON(),t,r,void 0);const d=Array.isArray(t)?t.map(String):Object.keys(c);if(d.length===0)return"{}";let f=!0,p="{";for(const g of d){const E=c[g];if(a(g,E)){f?f=!1:p+=",";const F=JSON.stringify(g);p+=`${F}:`,p+=o(E)}}return p+="}",p}function a(c,u){return typeof u<"u"&&typeof u!="function"&&typeof u!="symbol"}}function Os(e){return Le(e)&&!Hr(e)?BigInt(e):Number.parseFloat(e)}class Es{id=1;constructor(){}async exec(t,r,n={},o={},i=6e4){await Ct(),this.id=this.id+1;try{return n.scope=window.openc3Scope,o.manual=!0,(await Tt.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:r,id:this.id,keyword_params:n},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...o},timeout:i,transformRequest:[(s,a)=>Qr(s)],transformResponse:[s=>{try{return es(s,void 0,Os)}catch{const a=typeof s=="string"?s.substring(0,200):String(s),c=new Error(`Server returned non-JSON response: ${a}`);throw c.name="ServerError",c}}]})).data.result}catch(s){let a=new Error;throw s.response?(a.name=s.response.data.error.data.class,a.message=s.response.data.error.data.message,a.object=s.response.data.error):s.request?(a.name="Request error",a.message="Request error, no response received"):a=s,a}}decode_openc3_type(t){if(t!==null&&typeof t=="object"&&t.json_class=="Float"&&t.raw){if(t.raw=="NaN")return NaN;if(t.raw=="Infinity")return 1/0;if(t.raw=="-Infinity")return-1/0}return null}encode_openc3_type(t){return Number.isNaN(t)?{json_class:"Float",raw:"NaN"}:t==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:t==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(t=>{t&&(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(t){return this.exec("set_offline_access",[t])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(t,r,n,o,i){return this.exec("map_target_to_interface",[t,r],{cmd_only:n,tlm_only:o,unmap_old:i})}unmap_target_from_interface(t,r,n,o){return this.exec("unmap_target_from_interface",[t,r],{cmd_only:n,tlm_only:o})}connect_interface(t,...r){return r.length>0?this.exec("connect_interface",[t,...r]):this.exec("connect_interface",[t])}disconnect_interface(t){return this.exec("disconnect_interface",[t])}interface_cmd(t,r,...n){return this.exec("interface_cmd",[t,r,...n])}interface_target_enable(t,r,n=!1,o=!1){return this.exec("interface_target_enable",[t,r],{cmd_only:n,tlm_only:o})}interface_target_disable(t,r,n=!1,o=!1){return this.exec("interface_target_disable",[t,r],{cmd_only:n,tlm_only:o})}interface_details(t){return this.exec("interface_details",[t])}get_all_router_info(){return this.exec("get_all_router_info",[])}map_target_to_router(t,r,n,o,i){return this.exec("map_target_to_router",[t,r],{cmd_only:n,tlm_only:o,unmap_old:i})}unmap_target_from_router(t,r,n,o){return this.exec("unmap_target_from_router",[t,r],{cmd_only:n,tlm_only:o})}connect_router(t){return this.exec("connect_router",[t])}disconnect_router(t){return this.exec("disconnect_router",[t])}router_target_enable(t,r,n=!1,o=!1){return this.exec("router_target_enable",[t,r],{cmd_only:n,tlm_only:o})}router_target_disable(t,r,n=!1,o=!1){return this.exec("router_target_disable",[t,r],{cmd_only:n,tlm_only:o})}router_details(t){return this.exec("router_details",[t])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(t){return this.exec("get_tlm_cnts",[t])}get_item(t,r,n){return this.exec("get_item",[t,r,n])}get_param(t,r,n){return this.exec("get_param",[t,r,n])}get_parameter(t,r,n){return this.get_param(t,r,n)}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(t){return this.exec("set_limits_set",[t])}delete_limits_set(t){return this.exec("delete_limits_set",[t])}get_target(t){return this.exec("get_target",[t])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.get_target_names()}get_tlm(t,r){return this.exec("get_tlm",[t,r])}get_telemetry(t,r){return this.get_tlm(t,r)}get_all_tlm(t){return this.exec("get_all_tlm",[t])}get_all_telemetry(t){return this.get_all_tlm(t)}get_all_tlm_names(t,r=!1){return this.exec("get_all_tlm_names",[t],{hidden:r})}get_all_telemetry_names(t){return this.get_all_tlm_names(t)}get_all_tlm_item_names(t){return this.exec("get_all_tlm_item_names",[t])}async get_tlm_packet(t,r,n,o=30){const i=await this.exec("get_tlm_packet",[t,r],{type:n,stale_time:o});if(i!=null){let s=i.length,a=null;for(let c=0;c<s;c++)a=this.decode_openc3_type(i[c][1]),a!==null&&(i[c][1]=a)}return i}get_packet_derived_items(t,r){return this.exec("get_packet_derived_items",[t,r])}get_tlm_buffer(t,r){return this.exec("get_tlm_buffer",[t,r])}get_tlm_available(t,r={},n={}){return this.exec("get_tlm_available",[t],r,n)}async get_tlm_values(t,r=30,n=null,o=null,i=null,s={}){let a={stale_time:r};n!==null&&(a.cache_timeout=n),o!==null&&(a.start_time=o.toISOString()),i!==null&&(a.end_time=i.toISOString());const c=await this.exec("get_tlm_values",[t],a,s,1e4);if(c&&c.length>0){let u=c.length,d=null;for(let f=0;f<u;f++)d=this.decode_openc3_type(c[f][0]),d!==null&&(c[f][0]=d)}return c}get_limits(t,r,n){return this.exec("get_limits",[t,r,n])}async tlm(t,r,n,o="CONVERTED"){let i=null;if(r===void 0)i=await this.exec("tlm",[t]);else if(n===void 0)if(["RAW","CONVERTED","FORMATTED"].includes(r))i=await this.exec("tlm",[t],{type:r});else{let a=new Error;throw a.name="TypeError",a.message=`Invalid data type ${r}. Valid options are RAW, CONVERTED or FORMATTED.`,a}else i=await this.exec("tlm",[t,r,n],{type:o});let s=this.decode_openc3_type(i);return s!==null&&(i=s),i}async inject_tlm(t,r,n=null,o="CONVERTED",i=!1){await this.exec("inject_tlm",[t,r,n],{type:o,stored:i})}set_tlm(t,r,n,o){return this.exec("set_tlm",[t,r,n],{type:o})}override_tlm(t,r,n,o){return this.exec("override_tlm",[t,r,n],{type:o})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(t,r,n,o){return this.exec("normalize_tlm",[t,r,n],{type:o})}get_all_cmds(t){return this.exec("get_all_cmds",[t])}get_all_commands(t){return this.get_all_cmds(t)}get_all_cmd_names(t,r=!1){return this.exec("get_all_cmd_names",[t],{hidden:r})}get_all_command_names(t){return this.get_all_cmd_names(t)}get_cmd(t,r){return this.exec("get_cmd",[t,r])}get_command(t,r){return this.get_cmd(t,r)}get_cmd_cnts(t){return this.exec("get_cmd_cnts",[t])}get_cmd_value(t,r,n,o="CONVERTED"){return this.exec("get_cmd_value",[t,r,n,o])}get_cmd_buffer(t,r){return this.exec("get_cmd_buffer",[t,r])}_cmd(t,r,n,o,i,s={}){let a=null;for(let c in o)Object.prototype.hasOwnProperty.call(o,c)&&(a=this.encode_openc3_type(o[c]),a!==null&&(o[c]=a));return this.exec(t,[r,n,o],s,i)}get_cmd_hazardous(t,r,n,o={}){return r===void 0?this.exec("get_cmd_hazardous",t,{},o):this._cmd("get_cmd_hazardous",t,r,n,o)}cmd(t,r,n,o={},i={}){return r===void 0?this.exec("cmd",t,i,o):this._cmd("cmd",t,r,n,o,i)}cmd_no_range_check(t,r,n,o={},i={}){return r===void 0?this.exec("cmd_no_range_check",t,i,o):this._cmd("cmd_no_range_check",t,r,n,o,i)}cmd_raw(t,r,n,o={},i={}){return r===void 0?this.exec("cmd_raw",t,i,o):this._cmd("cmd_raw",t,r,n,o,i)}cmd_raw_no_range_check(t,r,n,o={},i={}){return r===void 0?this.exec("cmd_raw_no_range_check",t,i,o):this._cmd("cmd_raw_no_range_check",t,r,n,o,i)}cmd_no_hazardous_check(t,r,n,o={},i={}){return r===void 0?this.exec("cmd_no_hazardous_check",t,i,o):this._cmd("cmd_no_hazardous_check",t,r,n,o,i)}cmd_no_checks(t,r,n,o={},i={}){return r===void 0?this.exec("cmd_no_checks",t,i,o):this._cmd("cmd_no_checks",t,r,n,o,i)}cmd_raw_no_hazardous_check(t,r,n,o={},i={}){return r===void 0?this.exec("cmd_raw_no_hazardous_check",t,i,o):this._cmd("cmd_raw_no_hazardous_check",t,r,n,o,i)}cmd_raw_no_checks(t,r,n,o={},i={}){return r===void 0?this.exec("cmd_raw_no_checks",t,i,o):this._cmd("cmd_raw_no_checks",t,r,n,o,i)}build_cmd(t,r,n,o={},i={}){return r===void 0?this.exec("build_cmd",t,i,o):this._cmd("build_cmd",t,r,n,o,i)}build_command(t,r,n,o={},i={}){return this.build_cmd(t,r,n,o,i)}get_interface_names(){return this.exec("get_interface_names",[])}get_router_names(){return this.exec("get_router_names",[])}send_raw(t,r){return this.exec("send_raw",[t,r])}list_configs(t){return this.exec("list_configs",[t])}load_config(t,r){return this.exec("load_config",[t,r])}save_config(t,r,n){return this.exec("save_config",[t,r,n])}delete_config(t,r){return this.exec("delete_config",[t,r])}enable_limits(t,r,n){return this.exec("enable_limits",[t,r,n])}disable_limits(t,r,n){return this.exec("disable_limits",[t,r,n])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(t){return this.exec("get_overall_limits_state",[t])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(t,r){return this.exec("get_setting",[t],r)}get_settings(t,r){return this.exec("get_settings",t,r)}set_setting(t,r){return this.exec("set_setting",[t,r])}update_news(){return this.exec("update_news",[])}update_plugin_store(){return this.exec("update_plugin_store",[])}save_setting(t,r){return this.set_setting(t,r)}get_metrics(){return this.exec("get_metrics",[])}open_tab(t){window.open(t,"_blank")}async hashString(t){if(window.isSecureContext){const r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r),o=new Uint8Array(n);return Array.from(o).map(i=>i.toString(16).padStart(2,"0")).join("")}}}const Ss={mixins:[zt],props:{item:{type:Object,required:!0}},emits:["change"],data(){return{dataItem:this.item,stateValue:null,checkValue:!1,isMounted:!1}},computed:{isCheckbox:function(){let e=!0;if(this.dataItem.states)for(const t of Object.keys(this.dataItem.states))t!=="CHECKED"&&t!=="UNCHECKED"&&(e=!1);else e=!1;return e},itemStates:function(){let e=[];for(const[t,r]of Object.entries(this.dataItem.states))e.push({title:t,value:r});return e}},watch:{checkValue:function(){this.isMounted&&(this.checkValue?this.$emit("change","CHECKED"):this.$emit("change","UNCHECKED"))},stateValue:function(){if(!this.isMounted)return;let e=Object.keys(this.dataItem.states).find(t=>this.dataItem.states[t]===this.stateValue);this.$emit("change",e)}},created(){this.dataItem.states&&(this.stateValue=this.dataItem.states[this.dataItem.value]),this.isCheckbox&&(this.checkValue=this.stateValue===1)},mounted(){this.isMounted=!0},methods:{textChange:function(e){this.dataItem.value=e,this.$emit("change",this.dataItem.value)},format:function(e){return e&&e.json_class==="String"&&e.raw!==void 0&&(this.dataItem.editable=!1),this.formatValueBase(e)}}};function Rs(e,t,r,n,o,i){const s=O("v-checkbox"),a=O("v-select"),c=O("v-text-field");return S(),V("td",null,[i.isCheckbox?(S(),T(s,{key:0,modelValue:o.checkValue,"onUpdate:modelValue":t[0]||(t[0]=u=>o.checkValue=u),density:"compact","hide-details":"",disabled:!o.dataItem.editable,"data-test":"table-item-checkbox"},null,8,["modelValue","disabled"])):o.dataItem.states?(S(),T(a,{key:1,modelValue:o.stateValue,"onUpdate:modelValue":t[1]||(t[1]=u=>o.stateValue=u),density:"compact","hide-details":"",items:i.itemStates,disabled:!o.dataItem.editable,"data-test":"table-item-select"},null,8,["modelValue","items","disabled"])):(S(),T(c,{key:2,variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"","model-value":i.format(o.dataItem.value),disabled:!o.dataItem.editable,"data-test":"table-item-text-field","onUpdate:modelValue":i.textChange},null,8,["model-value","disabled","onUpdate:modelValue"]))])}const As={components:{TableItem:ze(Ss,[["render",Rs]])},props:{items:{type:Object,required:!0}},emits:["change"],data(){return{dataItems:this.items}},computed:{oneDimensional(){return this.dataItems.length===1}},methods:{onChange:function(e,t,r){this.$emit("change",{index:t,event:r})}}},ks={class:"text-start"},Cs={key:0,class:"text-start"};function Ts(e,t,r,n,o,i){const s=O("table-item");return S(),V("tr",null,[B("td",ks,I(o.dataItems[0].index),1),i.oneDimensional?(S(),V("td",Cs,I(o.dataItems[0].name),1)):ae("",!0),(S(!0),V(Q,null,se(o.dataItems,(a,c)=>(S(),T(s,{key:a.name,item:a,onChange:Ce(u=>i.onChange(a,c,u),["self"])},null,8,["item","onChange"]))),128))])}const js={components:{TopBar:un,TableRow:ze(As,[["render",Ts]]),FileOpenSaveDialog:On,SimpleTextDialog:Cn},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 Binary from Definition",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(e){let t=this.filename.split("/").slice(0,2).join("/")+"/procedures/upload",r=this.filename.split("/").slice(0,2).join("/")+"/procedures/download";z.get(`/openc3-api/tables/${t}.rb`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(n=>{this.uploadScript=`${t}.rb`}).catch(n=>{z.get(`/openc3-api/tables/${t}.py`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(o=>{this.uploadScript=`${t}.py`}).catch(o=>{this.uploadScript=null})}),z.get(`/openc3-api/tables/${r}.rb`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(n=>{this.downloadScript=`${r}.rb`}).catch(n=>{z.get(`/openc3-api/tables/${r}.py`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(o=>{this.downloadScript=`${r}.py`}).catch(o=>{this.downloadScript=null})})}},created(){this.api=new Es,this.api.ensure_offline_access()},methods:{newFile:function(){this.fileModified="",this.fileNew=!0,this.fileOpen=!0},openFile:function(){this.fileOpen=!0},setFile:function({file:e,locked:t}){e.name.includes(".txt")?this.fileNew?(this.checkAndBuildNewBinary(e.name),this.fileNew=!1):this.getDefinition(e.name):(this.unlockFile(),this.filename=e.name.replace(/\*$/,""),this.fileModified="",this.lockedBy=t,this.getDefinition())},setError(e){this.errorTitle="Error",this.errorText=`Error: ${e}`,this.errorText=response.data.message,this.showError=!0},saveFile:function(){this.showSave=!0;const e=new FormData;e.append("binary",this.filename),e.append("definition",this.definitionFilename),e.append("tables",JSON.stringify(this.tables)),z.post(`/openc3-api/tables/${this.filename}`,{data:e,headers:{"Content-Type":"multipart/form-data"}}).then(t=>{this.fileModified="",setTimeout(()=>{this.showSave=!1},2e3)}).catch(({response:t})=>{this.showSave=!1,this.errorTitle="Save Error",this.errorText=t.data.message,this.showError=!0}),this.lockFile()},saveAs:function(){this.showSaveAs=!0},saveAsFilename:function(e){z.put(`/openc3-api/tables/${this.filename}/save-as/${e}`).then(t=>{this.filename=e.replace(/\*$/,""),this.getDefinition(this.definitionFilename)})},delete:function(){this.filename!==""&&this.$dialog.confirm(`Permanently delete file: ${this.filename}`,{okText:"Delete",cancelText:"Cancel"}).then(e=>z.delete(`/openc3-api/tables/${this.filename}`,{data:{}})).then(e=>{this.tables=[],this.filename="",this.definitionFilename=""}).catch(e=>{})},downloadBinary:function(e=null){const t=new FormData;t.append("binary",this.filename),t.append("definition",this.definitionFilename),e!==null&&t.append("table_name",e),z.post("/openc3-api/tables/binary",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(r=>{const n=window.atob(r.data.contents),o=new Uint8Array(n.length);for(let a=0;a<n.length;++a)o[a]=n.charCodeAt(a);const i=new Blob([o],{type:"application/octet-stream"}),s=document.createElement("a");s.href=URL.createObjectURL(i),s.setAttribute("download",r.data.filename),s.click()})},downloadDefinition:function(e=null){const t=new FormData;t.append("definition",this.definitionFilename),e!==null&&t.append("table_name",e),z.post("/openc3-api/tables/definition",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(r=>{const n=new Blob([r.data.contents],{type:"text/plain"}),o=document.createElement("a");o.href=URL.createObjectURL(n),o.setAttribute("download",r.data.filename),o.click()})},downloadReport:function(e=null){const t=new FormData;t.append("binary",this.filename),t.append("definition",this.definitionFilename),e!==null&&t.append("table_name",e),z.post("/openc3-api/tables/report",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(r=>{const n=`Binary: ${this.filename}
14
+ Definition: ${this.definitionFilename}
15
+
16
+ `,o=new Blob([n,r.data.contents],{type:"text/plain"}),i=document.createElement("a");i.href=URL.createObjectURL(o),i.setAttribute("download",r.data.filename),i.click()})},upload(){z.post(`/script-api/scripts/${this.uploadScript}/run`,{data:{environment:[{key:"TBL_FILENAME",value:this.filename}]}}).then(e=>{this.scriptBackground!==!0&&window.open(`/tools/scriptrunner/${e.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(()=>{z.post(`/script-api/scripts/${this.downloadScript}/run`,{data:{environment:[{key:"TBL_FILENAME",value:this.filename}]}}).then(e=>{this.scriptBackground!==!0&&window.open(`/tools/scriptrunner/${e.data}`,"_blank")})}).catch(e=>{})},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 z.post(`/openc3-api/tables/${this.filename}/lock`)},unlockFile:function(){this.filename!==""&&!this.readOnly&&z.post(`/openc3-api/tables/${this.filename}/unlock`)},getDefinition:function(e=null){e||(e=this.filename.replace("/bin/","/config/").replace(".bin","_def.txt")),this.tables=[];const t=new FormData;t.append("binary",this.filename),t.append("definition",e),z.post("/openc3-api/tables/load",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(r=>{this.definitionFilename=r.data.definition,this.tables=r.data.tables.map(n=>({...n,headers:n.headers.map((o,i)=>{const s={title:o,filterable:o!=="INDEX"};return n.numColumns===1?{...s,value:`[0].${o.toLowerCase()}`}:{...s,value:`[${i}].value`}})})),r.data.errors&&this.$notify.caution({title:"Warning",body:r.data.errors})}).catch(r=>{r.response.status==404?(this.$notify.normal({title:"Definition File Not Found",body:`Definition file ${e} not found. Please select definition file.`}),this.fileOpen=!0):this.$notify.serious({title:"Error",body:`Error loading due to ${r.response.statusText}. Status: ${r.response.status}`})})},checkAndBuildNewBinary:function(e){const t=e.replace("/config/","/bin/").replace("_def.txt",".bin");z.get(`/openc3-api/tables/${t}`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(r=>{this.$dialog.confirm(`Binary file ${t} already exists. Do you want to overwrite it?`,{okText:"Overwrite",cancelText:"Cancel"}).then(()=>{this.buildNewBinary(e)}).catch(()=>{})}).catch(r=>{this.buildNewBinary(e)})},buildNewBinary:function(e){const t=new FormData;t.append("definition",e),z.post("/openc3-api/tables/generate",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(r=>{this.filename=r.data.filename,this.getDefinition(e)})},onChange:function(e,{index:t,event:r}){this.fileModified="*",e[t].value=r}}},Ns={style:{position:"absolute"},class:"ma-3"};function Fs(e,t,r,n,o,i){const s=O("top-bar"),a=O("v-file-input"),c=O("v-text-field"),u=O("v-col"),d=O("v-row"),f=O("v-icon"),p=O("v-btn"),g=O("v-checkbox-btn"),E=O("v-tooltip"),F=O("v-card-text"),y=O("v-spacer"),w=O("v-card-title"),v=O("v-tab"),x=O("v-tabs"),m=O("table-row"),D=O("v-data-table"),C=O("v-tabs-window-item"),G=O("v-tabs-window"),pe=O("v-card"),he=O("file-open-save-dialog"),Z=O("simple-text-dialog");return S(),V("div",null,[b(s,{menus:i.menus,title:o.title},null,8,["menus","title"]),b(a,{ref:"fileInput",modelValue:o.fileInput,"onUpdate:modelValue":t[0]||(t[0]=R=>o.fileInput=R),"show-size":"",accept:".bin","data-test":"file-input",style:{position:"fixed",top:"-100%"}},null,8,["modelValue"]),b(pe,null,{default:h(()=>[b(F,null,{default:h(()=>[b(d,{dense:""},{default:h(()=>[b(u,{cols:"6"},{default:h(()=>[b(c,{id:"filename",modelValue:i.fullFilename,"onUpdate:modelValue":t[1]||(t[1]=R=>i.fullFilename=R),variant:"outlined",density:"compact",readonly:"","hide-details":"",label:"Filename",class:"filename","data-test":"filename"},null,8,["modelValue"])]),_:1}),b(u,{cols:"6"},{default:h(()=>[b(c,{id:"definition-filename",modelValue:o.definitionFilename,"onUpdate:modelValue":t[2]||(t[2]=R=>o.definitionFilename=R),variant:"outlined",density:"compact",readonly:"","hide-details":"",label:"Definition",class:"filename","data-test":"definition-filename"},null,8,["modelValue"])]),_:1})]),_:1}),b(d,{dense:""},{default:h(()=>[b(u,{cols:"auto",class:"mr-auto"},{default:h(()=>[t[25]||(t[25]=B("span",{class:"text-body-1 ma-2"},"File Download:",-1)),b(p,{dense:"",color:"primary",class:"mr-3",disabled:o.filename==""||o.definitionFilename=="","data-test":"download-file-binary",onClick:t[3]||(t[3]=R=>i.downloadBinary(null))},{default:h(()=>[t[20]||(t[20]=j(" Binary ",-1)),b(f,{end:"",theme:"dark"},{default:h(()=>[...t[19]||(t[19]=[j(" mdi-file-code ",-1)])]),_:1})]),_:1},8,["disabled"]),b(p,{dense:"",color:"primary",class:"mr-3",disabled:o.filename==""||o.definitionFilename=="","data-test":"download-file-definition",onClick:t[4]||(t[4]=R=>i.downloadDefinition(null))},{default:h(()=>[t[22]||(t[22]=j(" Definition ",-1)),b(f,{end:"",theme:"dark"},{default:h(()=>[...t[21]||(t[21]=[j(" mdi-file-document-edit ",-1)])]),_:1})]),_:1},8,["disabled"]),b(p,{dense:"",color:"primary",disabled:o.filename==""||o.definitionFilename=="","data-test":"download-file-report",onClick:t[5]||(t[5]=R=>i.downloadReport(null))},{default:h(()=>[t[24]||(t[24]=j(" Report ",-1)),b(f,{end:"",theme:"dark"},{default:h(()=>[...t[23]||(t[23]=[j(" mdi-file-document ",-1)])]),_:1})]),_:1},8,["disabled"])]),_:1}),b(u,{cols:"auto"},{default:h(()=>[b(p,{dense:"",color:"primary",disabled:!o.uploadScript,"data-test":"upload-file",onClick:t[6]||(t[6]=R=>i.upload())},{default:h(()=>[t[27]||(t[27]=j(" Upload ",-1)),b(f,{end:"",theme:"dark"},{default:h(()=>[...t[26]||(t[26]=[j(" mdi-file-upload ",-1)])]),_:1})]),_:1},8,["disabled"])]),_:1}),b(u,{cols:"auto"},{default:h(()=>[b(p,{dense:"",color:"primary",disabled:!o.downloadScript,"data-test":"download-file",onClick:t[7]||(t[7]=R=>i.download())},{default:h(()=>[t[29]||(t[29]=j(" Download ",-1)),b(f,{end:"",theme:"dark"},{default:h(()=>[...t[28]||(t[28]=[j(" mdi-file-download ",-1)])]),_:1})]),_:1},8,["disabled"])]),_:1}),b(u,{cols:"auto"},{default:h(()=>[b(E,{"open-delay":600,location:"top"},{activator:h(({props:R})=>[B("span",Mt(qt(R)),[b(g,{modelValue:o.scriptBackground,"onUpdate:modelValue":t[8]||(t[8]=ee=>o.scriptBackground=ee),label:"B/G",class:"shrink mt-0","data-test":"upload-background"},null,8,["modelValue"])],16)]),default:h(()=>[t[30]||(t[30]=B("span",null,"Run upload download scripts in the background",-1))]),_:1})]),_:1})]),_:1})]),_:1}),b(w,{class:"d-flex align-center"},{default:h(()=>[t[31]||(t[31]=j(" Items ",-1)),b(y),b(c,{modelValue:o.search,"onUpdate:modelValue":t[9]||(t[9]=R=>o.search=R),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"",class:"search"},null,8,["modelValue"])]),_:1}),(S(),T(x,{key:`v-tabs_${o.tables.length}`,modelValue:o.curTab,"onUpdate:modelValue":t[10]||(t[10]=R=>o.curTab=R)},{default:h(()=>[(S(!0),V(Q,null,se(o.tables,(R,ee)=>(S(),T(v,{key:ee},{default:h(()=>[j(I(R.name),1)]),_:2},1024))),128))]),_:1},8,["modelValue"])),(S(),T(G,{key:`v-tabs-window_${o.tables.length}`,modelValue:o.curTab,"onUpdate:modelValue":t[11]||(t[11]=R=>o.curTab=R)},{default:h(()=>[(S(!0),V(Q,null,se(o.tables,(R,ee)=>(S(),T(C,{key:`${o.filename}${ee}`},{default:h(()=>[b(D,{headers:R.headers,items:R.rows,search:o.search,"items-per-page":20,"items-per-page-options":[10,20,50,100,-1],"multi-sort":"",density:"compact","data-test":R.name},We({item:h(({item:te})=>[(S(),T(m,{key:te[0].name,items:te,onChange:Ce(q=>i.onChange(te,q),["self"])},null,8,["items","onChange"]))]),_:2},[o.tables.length>1?{name:"tfoot",fn:h(()=>[B("div",Ns,[t[38]||(t[38]=B("span",{class:"text-body-1 mr-3"},"Table Download:",-1)),b(p,{dense:"",color:"primary",class:"mr-3",disabled:o.filename==""||o.definitionFilename=="","data-test":"download-table-binary",onClick:te=>i.downloadBinary(R.name)},{default:h(()=>[t[33]||(t[33]=j(" Binary ",-1)),b(f,{end:"",theme:"dark"},{default:h(()=>[...t[32]||(t[32]=[j(" mdi-file-code ",-1)])]),_:1})]),_:1},8,["disabled","onClick"]),b(p,{dense:"",color:"primary",class:"mr-3",disabled:o.filename==""||o.definitionFilename=="","data-test":"download-table-definition",onClick:te=>i.downloadDefinition(R.name)},{default:h(()=>[t[35]||(t[35]=j(" Definition ",-1)),b(f,{end:"",theme:"dark"},{default:h(()=>[...t[34]||(t[34]=[j(" mdi-file-document-edit ",-1)])]),_:1})]),_:1},8,["disabled","onClick"]),b(p,{dense:"",color:"primary",disabled:o.filename==""||o.definitionFilename=="","data-test":"download-table-report",onClick:te=>i.downloadReport(R.name)},{default:h(()=>[t[37]||(t[37]=j(" Report ",-1)),b(f,{end:"",theme:"dark"},{default:h(()=>[...t[36]||(t[36]=[j(" mdi-file-document ",-1)])]),_:1})]),_:1},8,["disabled","onClick"])])]),key:"0"}:void 0]),1032,["headers","items","search","data-test"])]),_:2},1024))),128))]),_:1},8,["modelValue"]))]),_:1}),o.fileOpen?(S(),T(he,{key:0,modelValue:o.fileOpen,"onUpdate:modelValue":t[12]||(t[12]=R=>o.fileOpen=R),type:"open","api-url":"/openc3-api/tables","custom-help-text":o.fileNew?"Select a definition file (.txt) to generate a new binary table file using the default values. If you select a binary file (.bin), it will open the existing file instead. Use the search box to filter results.":null,onFile:t[13]||(t[13]=R=>i.setFile(R)),onError:t[14]||(t[14]=R=>i.setError(R))},null,8,["modelValue","custom-help-text"])):ae("",!0),o.showSaveAs?(S(),T(he,{key:1,modelValue:o.showSaveAs,"onUpdate:modelValue":t[15]||(t[15]=R=>o.showSaveAs=R),type:"save","require-target-parent-dir":"","api-url":"/openc3-api/tables","input-filename":o.filename,onFilename:t[16]||(t[16]=R=>i.saveAsFilename(R)),onError:t[17]||(t[17]=R=>i.setError(R))},null,8,["modelValue","input-filename"])):ae("",!0),b(Z,{modelValue:o.showError,"onUpdate:modelValue":t[18]||(t[18]=R=>o.showError=R),title:o.errorTitle,text:o.errorText},null,8,["modelValue","title","text"])])}const ra=on("default",ze(js,[["render",Fs],["__scopeId","data-v-b4db345f"]]))})}}));
@@ -0,0 +1 @@
1
+ System.register(["./main-e41b7aa8f8baeaf00ba2.js","vue","./DetailsDialog-CLPj0nP0-365d9d3e130590b5ffc6.js","single-spa","./VWidget-C4VLQ7-b-6e0c7bced9c086b4b9c2.js","vue-router","pinia","vuetify","./LimitsBar-DNV39okL-3c0c95101783d95a40f4.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./Widget-ClRi417b-4840d840a29c7183f214.js"],(function(w,N){"use strict";var c,a,s,r,n,u,m,l,d,h,p,g,v,x,C,f;return{setters:[e=>{c=e.f},e=>{a=e.resolveComponent,s=e.openBlock,r=e.createElementBlock,n=e.createVNode,u=e.normalizeStyle,m=e.normalizeClass,l=e.withCtx,d=e.Fragment,h=e.renderList,p=e.createBlock,g=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{C=e.Z},null,e=>{f=e.T},null,null,null,null,null,null],execute:(function(){const e={components:{DetailsDialog:C},mixins:[f],data:function(){return{width:200,height:200}},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}}},y={class:"textbox-widget-container"};function V(t,o,M,E,b,k){const B=a("v-textarea"),D=a("v-list-item-title"),S=a("v-list-item"),L=a("v-list"),T=a("v-menu"),_=a("details-dialog");return s(),r("div",y,[n(B,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:m(t.valueClass),style:u([t.computedStyle,k.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(T,{modelValue:t.contextMenuShown,"onUpdate:modelValue":o[0]||(o[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(L,null,{default:l(()=>[(s(!0),r(d,null,h(t.contextMenuOptions,(i,j)=>(s(),p(S,{key:j,onClick:g(i.action,["stop"])},{default:l(()=>[n(D,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(_,{modelValue:t.viewDetails,"onUpdate:modelValue":o[1]||(o[1]=i=>t.viewDetails=i),"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2]},null,8,["modelValue","target-name","packet-name","item-name"])])}const z=w("default",c(e,[["render",V],["__scopeId","data-v-ce1e6683"]]))})}}));
@@ -0,0 +1 @@
1
+ System.register(["./Widget-ClRi417b-4840d840a29c7183f214.js","vue","./main-e41b7aa8f8baeaf00ba2.js","vue-router","pinia","single-spa","vuetify"],(function(u,v){"use strict";var t,l,n,a,s,i;return{setters:[e=>{t=e.f},e=>{l=e.resolveComponent,n=e.openBlock,a=e.createBlock,s=e.normalizeStyle},e=>{i=e.f},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,f,y,o,g){const m=l("v-text-field");return n(),a(m,{modelValue:o.value,"onUpdate:modelValue":r[0]||(r[0]=p=>o.value=p),variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",style:s(d.computedStyle)},null,8,["modelValue","style"])}const h=u("default",i(e,[["render",c]]))})}}));
@@ -1 +1 @@
1
- System.register(["./Widget-CSgnvwEG-d79c9bfc63c25ef5d537.js","./OpenC3TimePicker-Cww9L2Ij-b982e1127088d958625a.js","./main-be86c157d462fe998f17.js","vue","vue-router","pinia","single-spa","vuetify"],(function(c,f){"use strict";var l,n,i,r,a,s,o,m;return{setters:[e=>{l=e.f},e=>{n=e.w},e=>{i=e.j,r=e.R},e=>{a=e.resolveComponent,s=e.openBlock,o=e.createBlock,m=e.normalizeStyle},null,null,null,null],execute:(function(){const e={components:{OpenC3TimePicker:n},mixins:[l,r],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 p(d,u,v,y,t,C){const h=a("OpenC3TimePicker");return s(),o(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=V=>t.timeValue=V),label:t.label,style:m(d.computedStyle),"hide-details":""},null,8,["modelValue","label","style"])}const k=c("default",i(e,[["render",p]]))})}}));
1
+ System.register(["./Widget-ClRi417b-4840d840a29c7183f214.js","./OpenC3TimePicker-cOr0aOVn-49536c5ea49488f3e752.js","./main-e41b7aa8f8baeaf00ba2.js","vue","vue-router","pinia","single-spa","vuetify"],(function(c,f){"use strict";var l,i,n,r,a,s,o,m;return{setters:[e=>{l=e.f},e=>{i=e.w},e=>{n=e.f,r=e.R},e=>{a=e.resolveComponent,s=e.openBlock,o=e.createBlock,m=e.normalizeStyle},null,null,null,null],execute:(function(){const e={components:{OpenC3TimePicker:i},mixins:[l,r],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 p(d,u,y,T,t,b){const h=a("OpenC3TimePicker");return s(),o(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=V=>t.timeValue=V),label:t.label,style:m(d.computedStyle),"hide-details":""},null,8,["modelValue","label","style"])}const k=c("default",n(e,[["render",p]]))})}}));
@@ -0,0 +1 @@
1
+ System.register(["./Widget-ClRi417b-4840d840a29c7183f214.js","vue","./main-e41b7aa8f8baeaf00ba2.js","vue-router","pinia","single-spa","vuetify"],(function(a,m){"use strict";var t,l,n,r,i,s;return{setters:[e=>{t=e.f},e=>{l=e.openBlock,n=e.createElementBlock,r=e.normalizeStyle,i=e.toDisplayString},e=>{s=e.f},null,null,null,null],execute:(function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){this.verifyNumParams("TITLE",1,1,"TITLE <Text>")}};function c(u,f,y,d,x,o){return l(),n("div",{class:"text-h5 text-center pa-1 mt-1 label",style:r(u.computedStyle)},i(o.labelText),5)}const p=a("default",s(e,[["render",c]]))})}}));
@@ -1 +1 @@
1
- System.register(["./main-be86c157d462fe998f17.js","./Widget-CSgnvwEG-d79c9bfc63c25ef5d537.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js"],(function(f,v){"use strict";var u,o,h,c;return{setters:[i=>{u=i.R},i=>{o=i.f},i=>{h=i.a,c=i.r}],execute:(function(){const i={methods:{formatValueBase(e,t){return this.isJsonString(e)?this.formatJsonString(e):Array.isArray(e)?JSON.stringify(e).replace(/\\n/g,""):this.isObject(e)?JSON.stringify(e).replace(/\\n/g,""):t&&e?typeof e=="bigint"?this.formatBigInt(e,t):sprintf(t,e):e==null?"null":String(e)},formatBigInt(e,t){const a=t.match(/^([^%]*)%([#0 +-]*)(\d+)?\.?(\d+)?([diouxX])(.*)$/);if(a){const[,g,l,m,,r,I]=a;let d=e<0n,n=d?-e:e,s;switch(r){case"d":case"i":case"u":s=n.toString(10);break;case"o":s=n.toString(8);break;case"x":s=n.toString(16);break;case"X":s=n.toString(16).toUpperCase();break}if(l.includes("#")&&(r==="x"?s="0x"+s:r==="X"?s="0X"+s:r==="o"&&!s.startsWith("0")&&(s="0"+s)),d&&(r==="d"||r==="i")&&(s="-"+s),m){const p=Number.parseInt(m);l.includes("-")?s=s.padEnd(p," "):s=s.padStart(p,l.includes("0")?"0":" ")}return g+s+I}return e.toString()},isJsonString(e){return e&&e.json_class==="String"&&e.raw!==void 0},formatJsonString(e){let t=Array.from(e.raw.slice(0,32),a=>("0"+(a&255).toString(16)).slice(-2)).join(" ").toUpperCase();return e.raw.length>32&&(t+="..."),t},formatArray(e){return"["+e.map(t=>typeof t=="string"?`"${t}"`:t).join(", ")+"]"},isObject(e){return Object.prototype.toString.call(e).slice(8,-1)==="Object"}}};f({g:i,T:{mixins:[o,u,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(this.tlmGrapherUrl,"_blank")}}]}},watch:{_counter:function(e,t){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 e=this.limitsState;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][1]):e=null),e},_counter:function(){let e=this.counter;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},limitsColor(){return c(this._limitsState)},astroStatus(){return h(this.limitsColor)},limitsLetter(){let e=this._limitsState;if(e!=null){let t=e.charAt(0);return e.endsWith("_LOW")&&(t=t.toLowerCase()),t}return""},tlmGrapherUrl(){let e="/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]);return this.arrayIndex!==null&&(e+=encodeURIComponent(`[${this.arrayIndex}]`)),e+"/"}},created(){if(this.value===null||this.limitsState===null){const e=this.parseItemName(this.parameters[2]);this.parameters[2]=e.name,this.arrayIndex=e.arrayIndex,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 e="FORMATTED";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){try{return e&&this.valueId&&(this.valueId.toUpperCase().includes("PACKET_TIMEFORMATTED")||this.valueId.toUpperCase().includes("RECEIVED_TIMEFORMATTED"))&&(e=this.formatUtcToLocal(new Date(e.replaceAll("/","-")),this.appliedTimeZone)),this.formatValueBase(e,this.formatString)}catch(t){return console.error(`${this.valueId} formatValue on ${e} with ${this.formatString} failed due to ${t}`),e}},showContextMenu(e){e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}}})})}}));
1
+ System.register(["./main-e41b7aa8f8baeaf00ba2.js","./Widget-ClRi417b-4840d840a29c7183f214.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js"],(function(f,v){"use strict";var u,o,h,c;return{setters:[i=>{u=i.R},i=>{o=i.f},i=>{h=i.a,c=i.r}],execute:(function(){const i={methods:{formatValueBase(e,t){return this.isJsonString(e)?this.formatJsonString(e):Array.isArray(e)?JSON.stringify(e).replace(/\\n/g,""):this.isObject(e)?JSON.stringify(e).replace(/\\n/g,""):t&&e?typeof e=="bigint"?this.formatBigInt(e,t):sprintf(t,e):e==null?"null":String(e)},formatBigInt(e,t){const a=t.match(/^([^%]*)%([#0 +-]*)(\d+)?\.?(\d+)?([diouxX])(.*)$/);if(a){const[,g,l,m,,r,I]=a;let d=e<0n,n=d?-e:e,s;switch(r){case"d":case"i":case"u":s=n.toString(10);break;case"o":s=n.toString(8);break;case"x":s=n.toString(16);break;case"X":s=n.toString(16).toUpperCase();break}if(l.includes("#")&&(r==="x"?s="0x"+s:r==="X"?s="0X"+s:r==="o"&&!s.startsWith("0")&&(s="0"+s)),d&&(r==="d"||r==="i")&&(s="-"+s),m){const p=Number.parseInt(m);l.includes("-")?s=s.padEnd(p," "):s=s.padStart(p,l.includes("0")?"0":" ")}return g+s+I}return e.toString()},isJsonString(e){return e&&e.json_class==="String"&&e.raw!==void 0},formatJsonString(e){let t=Array.from(e.raw.slice(0,32),a=>("0"+(a&255).toString(16)).slice(-2)).join(" ").toUpperCase();return e.raw.length>32&&(t+="..."),t},formatArray(e){return"["+e.map(t=>typeof t=="string"?`"${t}"`:t).join(", ")+"]"},isObject(e){return Object.prototype.toString.call(e).slice(8,-1)==="Object"}}};f({g:i,T:{mixins:[o,u,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(this.tlmGrapherUrl,"_blank")}}]}},watch:{_counter:function(e,t){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 e=this.limitsState;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][1]):e=null),e},_counter:function(){let e=this.counter;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},limitsColor(){return c(this._limitsState)},astroStatus(){return h(this.limitsColor)},limitsLetter(){let e=this._limitsState;if(e!=null){let t=e.charAt(0);return e.endsWith("_LOW")&&(t=t.toLowerCase()),t}return""},tlmGrapherUrl(){let e="/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]);return this.arrayIndex!==null&&(e+=encodeURIComponent(`[${this.arrayIndex}]`)),e+"/"}},created(){if(this.value===null||this.limitsState===null){const e=this.parseItemName(this.parameters[2]);this.parameters[2]=e.name,this.arrayIndex=e.arrayIndex,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 e="FORMATTED";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){try{return e&&this.valueId&&(this.valueId.toUpperCase().includes("PACKET_TIMEFORMATTED")||this.valueId.toUpperCase().includes("RECEIVED_TIMEFORMATTED"))&&(e=this.formatUtcToLocal(new Date(e.replaceAll("/","-")),this.appliedTimeZone)),this.formatValueBase(e,this.formatString)}catch(t){return console.error(`${this.valueId} formatValue on ${e} with ${this.formatString} failed due to ${t}`),e}},showContextMenu(e){e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}}})})}}));
@@ -1 +1 @@
1
- System.register(["./main-be86c157d462fe998f17.js","vue","./DetailsDialog-DHi4t3xd-bc2ee12b45c7e9444058.js","single-spa","./VWidget-5FjwlURU-2150ba454e00748bb7e1.js","vue-router","pinia","vuetify","./LimitsBar-BqpvMpXM-72501bf72ea1367e3bc7.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./Widget-CSgnvwEG-d79c9bfc63c25ef5d537.js"],(function(B,P){"use strict";var m,a,i,u,p,o,v,c,n,l,g,d,f,h,y,x,C,k,w;return{setters:[t=>{m=t.j},t=>{a=t.resolveComponent,i=t.openBlock,u=t.createElementBlock,p=t.normalizeStyle,o=t.createBlock,v=t.normalizeClass,c=t.createSlots,n=t.withCtx,l=t.createVNode,g=t.createElementVNode,d=t.toDisplayString,f=t.mergeProps,h=t.Fragment,y=t.renderList,x=t.withModifiers,C=t.createTextVNode},t=>{k=t.Z},null,t=>{w=t.T},null,null,null,null,null,null],execute:(function(){const E={components:{DetailsDialog:k},mixins:[w],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(Number.parseInt(this.parameters[4])+4,"ch",this.width)}};function T(e,r,A,I,F,S){const V=a("rux-status"),_=a("v-text-field"),D=a("v-tooltip"),M=a("v-list-item-title"),N=a("v-list-item"),j=a("v-list"),L=a("v-menu"),U=a("details-dialog");return i(),u("div",{class:"value-widget-container",style:p([e.computedStyle,S.aging])},[e.tooltipText?(i(),o(_,{key:1,variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":e._value,class:v(e.valueClass),"data-test":"value",onContextmenu:e.showContextMenu},c({_:2},[e.astroStatus?{name:"prepend-inner",fn:n(()=>[l(V,{status:e.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1032,["model-value","class","onContextmenu"])):(i(),o(D,{key:0,"open-delay":600,location:"top"},{activator:n(({props:s})=>[l(_,f({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":e._value,class:e.valueClass,"data-test":"value"},s,{onContextmenu:e.showContextMenu}),c({_:2},[e.astroStatus?{name:"prepend-inner",fn:n(()=>[l(V,{status:e.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:n(()=>[g("span",null,d(S.fullName),1)]),_:1})),l(L,{modelValue:e.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=s=>e.contextMenuShown=s),target:[e.x,e.y],style:{"z-index":"3000"}},{default:n(()=>[l(j,null,{default:n(()=>[(i(!0),u(h,null,y(e.contextMenuOptions,(s,z)=>(i(),o(N,{key:z,onClick:x(s.action,["stop"])},{default:n(()=>[l(M,null,{default:n(()=>[C(d(s.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),l(U,{modelValue:e.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=s=>e.viewDetails=s),"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},null,8,["modelValue","target-name","packet-name","item-name"])],4)}const W=B("default",m(E,[["render",T],["__scopeId","data-v-8340df7d"]]))})}}));
1
+ System.register(["./main-e41b7aa8f8baeaf00ba2.js","vue","./DetailsDialog-CLPj0nP0-365d9d3e130590b5ffc6.js","single-spa","./VWidget-C4VLQ7-b-6e0c7bced9c086b4b9c2.js","vue-router","pinia","vuetify","./LimitsBar-DNV39okL-3c0c95101783d95a40f4.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./Widget-ClRi417b-4840d840a29c7183f214.js"],(function(L,U){"use strict";var m,a,i,u,p,o,v,c,n,l,g,d,f,h,y,C,x,V,k;return{setters:[t=>{m=t.f},t=>{a=t.resolveComponent,i=t.openBlock,u=t.createElementBlock,p=t.normalizeStyle,o=t.createBlock,v=t.normalizeClass,c=t.createSlots,n=t.withCtx,l=t.createVNode,g=t.createElementVNode,d=t.toDisplayString,f=t.mergeProps,h=t.Fragment,y=t.renderList,C=t.withModifiers,x=t.createTextVNode},t=>{V=t.Z},null,t=>{k=t.T},null,null,null,null,null,null],execute:(function(){const N={components:{DetailsDialog:V},mixins:[k],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(Number.parseInt(this.parameters[4])+4,"ch",this.width)}};function T(e,r,A,I,b,S){const w=a("rux-status"),_=a("v-text-field"),B=a("v-tooltip"),D=a("v-list-item-title"),E=a("v-list-item"),M=a("v-list"),j=a("v-menu"),P=a("details-dialog");return i(),u("div",{class:"value-widget-container",style:p([e.computedStyle,S.aging])},[e.tooltipText?(i(),o(_,{key:1,variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":e._value,class:v(e.valueClass),"data-test":"value",onContextmenu:e.showContextMenu},c({_:2},[e.astroStatus?{name:"prepend-inner",fn:n(()=>[l(w,{status:e.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1032,["model-value","class","onContextmenu"])):(i(),o(B,{key:0,"open-delay":600,location:"top"},{activator:n(({props:s})=>[l(_,f({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":e._value,class:e.valueClass,"data-test":"value"},s,{onContextmenu:e.showContextMenu}),c({_:2},[e.astroStatus?{name:"prepend-inner",fn:n(()=>[l(w,{status:e.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:n(()=>[g("span",null,d(S.fullName),1)]),_:1})),l(j,{modelValue:e.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=s=>e.contextMenuShown=s),target:[e.x,e.y],style:{"z-index":"3000"}},{default:n(()=>[l(M,null,{default:n(()=>[(i(!0),u(h,null,y(e.contextMenuOptions,(s,z)=>(i(),o(E,{key:z,onClick:C(s.action,["stop"])},{default:n(()=>[l(D,null,{default:n(()=>[x(d(s.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),l(P,{modelValue:e.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=s=>e.viewDetails=s),"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},null,8,["modelValue","target-name","packet-name","item-name"])],4)}const W=L("default",m(N,[["render",T],["__scopeId","data-v-8340df7d"]]))})}}));
@@ -0,0 +1 @@
1
+ System.register(["./ValueWidget-B3-Jjoux-fa607809a9626b514025.js","./LimitsbarWidget-BIO6xztx-4d2c1371095565476999.js","./Widget-ClRi417b-4840d840a29c7183f214.js","vue","./main-e41b7aa8f8baeaf00ba2.js","./DetailsDialog-CLPj0nP0-365d9d3e130590b5ffc6.js","./LimitsBar-DNV39okL-3c0c95101783d95a40f4.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","single-spa","./VWidget-C4VLQ7-b-6e0c7bced9c086b4b9c2.js","vue-router","pinia","vuetify","./BarColumn-CHX_3ye3-7ccabfde58c0374e6864.js"],(function(g,v){"use strict";var i,r,a,n,u,o,c,s,l,m;return{setters:[e=>{i=e.default},e=>{r=e.default},e=>{a=e.f},e=>{n=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.f},null,null,null,null,null,null,null,null,null],execute:(function(){const e={components:{ValueWidget:i,LimitsbarWidget:r},mixins:[a]};function p(t,B,b,x,C,V){const d=n("value-widget"),f=n("limitsbar-widget");return u(),o("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[s(d,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"]),s(f,l(t.$attrs,{parameters:t.parameters.slice(0,3),settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,"line-number":t.lineNumber}),null,16,["parameters","settings","screen-values","line","line-number"])],4)}const j=g("default",m(e,[["render",p]]))})}}));
@@ -1 +1 @@
1
- System.register(["./ValueWidget-CpptSOvJ-ce9e7bc5add811023290.js","./LimitscolumnWidget-DSQAdlZS-664a23a1c31078c55e88.js","./Widget-CSgnvwEG-d79c9bfc63c25ef5d537.js","vue","./main-be86c157d462fe998f17.js","./DetailsDialog-DHi4t3xd-bc2ee12b45c7e9444058.js","./LimitsBar-BqpvMpXM-72501bf72ea1367e3bc7.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","single-spa","./VWidget-5FjwlURU-2150ba454e00748bb7e1.js","vue-router","pinia","vuetify","./BarColumn-JQ552zb0-6a4f22801e1baff9c2f0.js"],(function(p,f){"use strict";var i,r,a,n,u,o,c,s,l,m;return{setters:[e=>{i=e.default},e=>{r=e.default},e=>{a=e.f},e=>{n=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.j},null,null,null,null,null,null,null,null,null],execute:(function(){const e={components:{ValueWidget:i,LimitscolumnWidget:r},mixins:[a]};function g(t,S,B,C,V,w){const d=n("limitscolumn-widget"),v=n("value-widget");return u(),o("div",{ref:"container",style:c(t.computedStyle)},[s(d,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,"line-number":t.lineNumber}),null,16,["parameters","settings","screen-values","line","line-number"]),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 j=p("default",m(e,[["render",g]]))})}}));
1
+ System.register(["./ValueWidget-B3-Jjoux-fa607809a9626b514025.js","./LimitscolumnWidget-Bw6EXJs9-7d999ccca30a9b0a55f1.js","./Widget-ClRi417b-4840d840a29c7183f214.js","vue","./main-e41b7aa8f8baeaf00ba2.js","./DetailsDialog-CLPj0nP0-365d9d3e130590b5ffc6.js","./LimitsBar-DNV39okL-3c0c95101783d95a40f4.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","single-spa","./VWidget-C4VLQ7-b-6e0c7bced9c086b4b9c2.js","vue-router","pinia","vuetify","./BarColumn-CHX_3ye3-7ccabfde58c0374e6864.js"],(function(g,f){"use strict";var i,r,a,n,u,o,c,s,l,m;return{setters:[e=>{i=e.default},e=>{r=e.default},e=>{a=e.f},e=>{n=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.f},null,null,null,null,null,null,null,null,null],execute:(function(){const e={components:{ValueWidget:i,LimitscolumnWidget:r},mixins:[a]};function p(t,B,C,V,y,L){const d=n("limitscolumn-widget"),v=n("value-widget");return u(),o("div",{ref:"container",style:c(t.computedStyle)},[s(d,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,"line-number":t.lineNumber}),null,16,["parameters","settings","screen-values","line","line-number"]),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 j=g("default",m(e,[["render",p]]))})}}));
@@ -0,0 +1 @@
1
+ System.register(["./ValueWidget-B3-Jjoux-fa607809a9626b514025.js","./RangebarWidget-CJSUof1--b0d47e5f54f9c407f79a.js","./Widget-ClRi417b-4840d840a29c7183f214.js","vue","./main-e41b7aa8f8baeaf00ba2.js","./DetailsDialog-CLPj0nP0-365d9d3e130590b5ffc6.js","./LimitsBar-DNV39okL-3c0c95101783d95a40f4.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","single-spa","./VWidget-C4VLQ7-b-6e0c7bced9c086b4b9c2.js","vue-router","pinia","vuetify"],(function(g,h){"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.f},e=>{r=e.resolveComponent,u=e.openBlock,m=e.createElementBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{p=e.f},null,null,null,null,null,null,null,null],execute:(function(){const e={components:{ValueWidget:n,RangebarWidget:i},mixins:[l],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,B,V,C,P,c){const f=r("value-widget"),v=r("rangebar-widget");return u(),m("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(f,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(v,a(t.$attrs,{parameters:c.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const j=g("default",p(e,[["render",d]]))})}}));
@@ -1 +1 @@
1
- System.register(["./Layout-BLS4Yi3m-7a7d0577030c20566319.js","vue","./main-be86c157d462fe998f17.js","./Widget-CSgnvwEG-d79c9bfc63c25ef5d537.js","vue-router","pinia","single-spa","vuetify"],(function(k,S){"use strict";var g,u,n,s,v,l,y,i,o,d,f,c,p,w;return{setters:[t=>{g=t.r},t=>{u=t.resolveComponent,n=t.openBlock,s=t.createElementBlock,v=t.normalizeStyle,l=t.Fragment,y=t.renderList,i=t.createBlock,o=t.withCtx,d=t.createElementVNode,f=t.toDisplayString,c=t.resolveDynamicComponent,p=t.mergeProps},t=>{w=t.j},null,null,null,null,null],execute:(function(){const t={mixins:[g],created:function(){if(this.parameters[0]){let r=this.parameters[0];this.widgets.forEach(m=>{m.settings.find(a=>a[0]==="MARGIN"||a[0].startsWith("RAW")&&a[1].toUpperCase().includes("MARGIN"))===void 0&&m.settings.push(["MARGIN",r])})}}};function C(r,m,a,z,b,x){const h=u("v-tooltip");return n(),s("div",{ref:"container",style:v(r.computedStyle)},[(n(!0),s(l,null,y(r.widgets,(e,B)=>(n(),s(l,{key:B},[r.getTooltipText(e)?(n(),i(h,{key:0,"open-delay":r.getTooltipDelay(e),location:"top","activator-props":r.getTooltipActivatorProps(e)},{activator:o(({props:N})=>[(n(),i(c(e.type),p({ref_for:!0},{...r.listeners,...N},{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]),default:o(()=>[d("span",null,f(r.getTooltipText(e)),1)]),_:2},1032,["open-delay","activator-props"])):(n(),i(c(e.type),p({key:1,ref_for:!0},r.listeners,{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))],64))),128))],4)}const T=k("default",w(t,[["render",C]]))})}}));
1
+ System.register(["./Layout-Df-lJgpB-262ccc75e7609f60b583.js","vue","./main-e41b7aa8f8baeaf00ba2.js","./Widget-ClRi417b-4840d840a29c7183f214.js","vue-router","pinia","single-spa","vuetify"],(function(k,T){"use strict";var m,u,n,s,v,l,y,i,o,f,d,c,p,w;return{setters:[t=>{m=t.r},t=>{u=t.resolveComponent,n=t.openBlock,s=t.createElementBlock,v=t.normalizeStyle,l=t.Fragment,y=t.renderList,i=t.createBlock,o=t.withCtx,f=t.createElementVNode,d=t.toDisplayString,c=t.resolveDynamicComponent,p=t.mergeProps},t=>{w=t.f},null,null,null,null,null],execute:(function(){const t={mixins:[m],created:function(){if(this.parameters[0]){let r=this.parameters[0];this.widgets.forEach(g=>{g.settings.find(a=>a[0]==="MARGIN"||a[0].startsWith("RAW")&&a[1].toUpperCase().includes("MARGIN"))===void 0&&g.settings.push(["MARGIN",r])})}}};function C(r,g,a,z,x,A){const h=u("v-tooltip");return n(),s("div",{ref:"container",style:v(r.computedStyle)},[(n(!0),s(l,null,y(r.widgets,(e,B)=>(n(),s(l,{key:B},[r.getTooltipText(e)?(n(),i(h,{key:0,"open-delay":r.getTooltipDelay(e),location:"top","activator-props":r.getTooltipActivatorProps(e)},{activator:o(({props:N})=>[(n(),i(c(e.type),p({ref_for:!0},{...r.listeners,...N},{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]),default:o(()=>[f("span",null,d(r.getTooltipText(e)),1)]),_:2},1032,["open-delay","activator-props"])):(n(),i(c(e.type),p({key:1,ref_for:!0},r.listeners,{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))],64))),128))],4)}const b=k("default",w(t,[["render",C]]))})}}));
@@ -1 +1 @@
1
- System.register(["./LabelWidget-B0nE0ImW-06bd8c97d1ebc68d06eb.js","./HorizontallineWidget-CHz4o6Gi-1daf6b8940629036b5ed.js","./VerticalWidget-B_eheXmK-c78b7d06c77c41d979d2.js","./Layout-BLS4Yi3m-7a7d0577030c20566319.js","vue","./main-be86c157d462fe998f17.js","./Widget-CSgnvwEG-d79c9bfc63c25ef5d537.js","vue-router","pinia","single-spa","vuetify"],(function(p,W){"use strict";var r,l,a,o,n,s,g,c,d,i,u,m;return{setters:[e=>{r=e.default},e=>{l=e.default},e=>{a=e.default},e=>{o=e.r},e=>{n=e.resolveComponent,s=e.openBlock,g=e.createElementBlock,c=e.createBlock,d=e.createCommentVNode,i=e.createVNode,u=e.mergeProps},e=>{m=e.j},null,null,null,null,null],execute:(function(){const e={components:{LabelWidget:r,HorizontalLineWidget:l,VerticalWidget:a},mixins:[o],created(){this.labelSettings=[...this.appliedSettings],this.labelSettings.find(t=>t[0]==="0"&&t[1].startsWith("RAW")&&t[2]==="font-weight")||this.labelSettings.push(["0","RAW__font-weight","font-weight","bold"])}};function w(t,B,b,j,k,V){const f=n("label-widget"),h=n("horizontal-line-widget"),v=n("vertical-widget");return s(),g("div",null,[t.parameters.length>0?(s(),c(f,{key:0,parameters:t.parameters.slice(0,1),settings:[...t.labelSettings],"widget-index":0},null,8,["parameters","settings"])):d("",!0),i(h,{settings:[...t.appliedSettings],"widget-index":1},null,8,["settings"]),i(v,u(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 S=p("default",m(e,[["render",w]]))})}}));
1
+ System.register(["./LabelWidget-DVp0CmFH-8067086869d9aba91261.js","./HorizontallineWidget-k7fL4EPN-8cd3cca6b7ba4af83580.js","./VerticalWidget-CoJiy2TT-323f2d1c115ee53f0548.js","./Layout-Df-lJgpB-262ccc75e7609f60b583.js","vue","./main-e41b7aa8f8baeaf00ba2.js","./Widget-ClRi417b-4840d840a29c7183f214.js","vue-router","pinia","single-spa","vuetify"],(function(m,W){"use strict";var l,r,a,o,n,s,g,c,d,i,u,p;return{setters:[e=>{l=e.default},e=>{r=e.default},e=>{a=e.default},e=>{o=e.r},e=>{n=e.resolveComponent,s=e.openBlock,g=e.createElementBlock,c=e.createBlock,d=e.createCommentVNode,i=e.createVNode,u=e.mergeProps},e=>{p=e.f},null,null,null,null,null],execute:(function(){const e={components:{LabelWidget:l,HorizontalLineWidget:r,VerticalWidget:a},mixins:[o],created(){this.labelSettings=[...this.appliedSettings],this.labelSettings.find(t=>t[0]==="0"&&t[1].startsWith("RAW")&&t[2]==="font-weight")||this.labelSettings.push(["0","RAW__font-weight","font-weight","bold"])}};function f(t,S,k,B,V,C){const w=n("label-widget"),h=n("horizontal-line-widget"),v=n("vertical-widget");return s(),g("div",null,[t.parameters.length>0?(s(),c(w,{key:0,parameters:t.parameters.slice(0,1),settings:[...t.labelSettings],"widget-index":0},null,8,["parameters","settings"])):d("",!0),i(h,{settings:[...t.appliedSettings],"widget-index":1},null,8,["settings"]),i(v,u(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 b=m("default",p(e,[["render",f]]))})}}));
@@ -0,0 +1 @@
1
+ System.register(["./main-e41b7aa8f8baeaf00ba2.js"],(function(h,u){"use strict";var d,p,c,l;return{setters:[n=>{d=n.w,p=n.h,c=n.e,l=n.l}],execute:(function(){const n={data(){return{modifiedTargetFiles:{}}},methods:{clearTargetFileCache(){this.modifiedTargetFiles={}},async targetFileRoot(e){const t=e.split("/")[0];return this.modifiedTargetFiles[t]||(this.modifiedTargetFiles[t]=l.get(`/openc3-api/targets/${encodeURIComponent(t)}/modified_files`,{headers:{"Ignore-Errors":"404,500"}}).then(i=>new Set(i.data)).catch(()=>(delete this.modifiedTargetFiles[t],new Set))),(await this.modifiedTargetFiles[t]).has(e)?"targets_modified":"targets"},async fetchTargetFile(e){const t=window.openc3Scope||"DEFAULT",i=await this.targetFileRoot(e),s=`${t}/${i}/${e}`,r=await l.get(`/openc3-api/storage/download_file/${encodeURIComponent(s)}`,{params:{bucket:"OPENC3_CONFIG_BUCKET"}});if(r?.data?.contents)return atob(r.data.contents);throw new Error("File not found")}}};h({c:n,f:{mixins:[n,d],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:{tooltipText:function(){const e=this.appliedSettings.find(t=>t[0]==="TOOLTIP");return e?e[1]:null},tooltipDelay:function(){const e=this.appliedSettings.find(t=>t[0]==="TOOLTIP");return e&&e[2]?parseInt(e[2]):600},computedStyle:function(){return this.appliedSettings.forEach(e=>{this.applyStyleSetting(e)}),this.appliedStyle.width===void 0&&this.appliedStyle.height===void 0&&(this.appliedStyle.flex="1 1 auto"),this.appliedStyle},screen:function(){return{getNamedWidget:e=>this.store.namedWidget(this.toQualifiedWidgetName(e)),open:(e,t)=>{this.$emit("open",e,t)},close:(e,t)=>{this.$emit("close",e,t)},closeAll:()=>{this.$emit("closeAll")}}},errorSource:function(){return`widget:${this.lineNumber}`},listeners:function(){return Object.entries(this.$attrs).reduce((e,t)=>t[0].startsWith("on")?{...e,[t[0]]:t[1]}:e,{})}},created(){this.store=c(this.$pinia),this.screenId=this.settings.find(e=>e[0]==="__SCREEN_ID__")?.at(1),this.widgetName=this.settings.find(e=>e[0]==="NAMED_WIDGET")?.at(1),this.widgetName&&this.store.setNamedWidget({[this.toQualifiedWidgetName(this.widgetName)]:this}),this.appliedSettings=this.settings.map(e=>{const t=parseInt(e[0]);if(Number.isNaN(t)||this.widgetIndex===null)return e;if(this.widgetIndex===t)return e.slice(1)}).filter(e=>e!==void 0)},beforeUnmount(){this.widgetName&&this.store.clearNamedWidget(this.toQualifiedWidgetName(this.widgetName))},methods:{screenError(e,t,i=""){return new p({line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters},t,i,"https://docs.openc3.com/docs/configuration")},emitScreenError(e,t={}){this.$emit("screen-error",{type:t.type||"error",message:e,line:this.line,lineNumber:this.lineNumber,transient:t.transient||!1,source:t.source||this.errorSource,time:new Date().getTime()})},clearScreenErrors(e=null){this.$emit("screen-errors-cleared",{source:e||this.errorSource})},checkScreenItems(e){this.$emit("screen-check-items",{valueIds:e,line:this.line,lineNumber:this.lineNumber})},applyStyleSetting(e){switch(e[0]){case"TEXTALIGN":this.appliedStyle["text-align"]=e[1].toLowerCase()+" !important",this.appliedStyle["--text-align"]=e[1].toLowerCase();break;case"PADDING":Number.isFinite(Number(e[1]))&&(e[1]+="px"),this.appliedStyle.padding=e[1]+" !important";break;case"MARGIN":Number.isFinite(Number(e[1]))&&(e[1]+="px"),this.appliedStyle.margin=e[1]+" !important";break;case"BACKCOLOR":this.appliedStyle["background-color"]=this.getColor(e.slice(1))+" !important";break;case"TEXTCOLOR":this.appliedStyle.color=this.getColor(e.slice(1))+" !important";break;case"BORDERCOLOR":this.appliedStyle["border-width"]="1px!important",this.appliedStyle["border-style"]="solid!important",this.appliedStyle["border-color"]=this.getColor(e.slice(1))+" !important";break;case"WIDTH":Number.isFinite(Number(e[1]))&&(e[1]+="px"),this.appliedStyle.width=e[1]+" !important";break;case"HEIGHT":Number.isFinite(Number(e[1]))&&(e[1]+="px"),this.appliedStyle.height=e[1]+" !important";break;default:e[0].startsWith("RAW")&&(this.appliedStyle[e[1].toLowerCase()]=e[2]+" !important");break}},verifyNumParams(e,t,i,s=""){for(let r=1;r<=t;r++)if(this.parameters[r-1]===void 0)throw this.screenError(e,`Not enough parameters for ${e}.`,s);if(i!==null&&this.parameters.length>i)throw this.screenError(e,`Too many parameters for ${e}.`,s)},setWidth(e,t="px",i="120"){let s=this.appliedSettings.find(r=>r[0]==="WIDTH");return s?s.WIDTH:e?(this.appliedSettings.push(["WIDTH",`${e}${t}`]),parseInt(e)):(this.appliedSettings.push(["WIDTH",`${i}${t}`]),parseInt(i))},setHeight(e,t="px",i="20"){let s=null;return s=this.appliedSettings.find(r=>r[0]==="HEIGHT"),s?s.HEIGHT:e?(this.appliedSettings.push(["HEIGHT",`${e}${t}`]),parseInt(e)):(this.appliedSettings.push(["HEIGHT",`${i}${t}`]),parseInt(i))},getColor(e){switch(e.length){case 1:return e[0].toLowerCase();case 3:return`rgb(${e[0]},${e[1]},${e[2]})`}},toQualifiedWidgetName(e){return`${this.screenId}:${String(e).toUpperCase()}`},namedWidgetsSnapshot(){const e={},t=`${this.screenId}:`,i=this.store.namedWidgets;for(const s in i){if(!s.startsWith(t))continue;const r=i[s];if(!r)continue;const a={};typeof r.text=="function"&&(a.text=r.text()),typeof r.selected=="function"&&(a.selected=r.selected()),typeof r.checked=="function"&&(a.checked=r.checked()),typeof r.date=="function"&&(a.date=r.date()),typeof r.time=="function"&&(a.time=r.time());const o=r.value;(o===null||typeof o=="string"||typeof o=="number"||typeof o=="boolean")&&(a.value=o),e[s.slice(t.length)]=a}return e},setNamedWidgetValue(e,t){const i=this.store.namedWidget(this.toQualifiedWidgetName(e));i&&(i.value=t)},parseItemName(e){if(e.includes("[[")){const i=e.replaceAll("[[","[").replaceAll("]]","]");return{name:i,arrayIndex:null,display:i}}const t=e.match(/\[(\d+)\]/);return t?{name:e.replace(t[0],""),arrayIndex:Number.parseInt(t[1]),display:e}:{name:e,arrayIndex:null,display:e}}}}})})}}));