openc3-cosmos-tool-limitsmonitor 7.1.0 → 7.2.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 (106) hide show
  1. checksums.yaml +4 -4
  2. data/tools/limitsmonitor/{ArrayWidget-CcQFJGCA-8799953e3cbda1ef248e.js → ArrayWidget-D1PArcGr-400791027cc4d28d3632.js} +2 -2
  3. data/tools/limitsmonitor/{ArrayplotWidget-DGJEXAY0-c9f7314f148873b9084a.js → ArrayplotWidget-DPUPy0qM-4986a1ea1ef56e8686fe.js} +1 -1
  4. data/tools/limitsmonitor/{BarColumn-DwZmAe8g-0f403d70ed1387937240.js → BarColumn-BpdscDQf-35b4ae46ea40ba6eac87.js} +1 -1
  5. data/tools/limitsmonitor/{BlockWidget-BHtugveV-ba500cd6f71800079780.js → BlockWidget-_VUsK5T9-39f6af1b633dd73b7a8e.js} +2 -2
  6. data/tools/limitsmonitor/ButtonWidget-DE41o-cg-ab9c3ebc63e47ccacd95.js +2 -0
  7. data/tools/limitsmonitor/CanvasWidget-BEi8h3Mq-68eeaef2e593064f1b3b.js +1 -0
  8. data/tools/limitsmonitor/CanvasdotWidget-eZuMgkhL-224b35f28c1cee6bebbf.js +1 -0
  9. data/tools/limitsmonitor/{CanvasimageWidget-BpM05v_m-e001497425ba450c7f3e.js → CanvasimageWidget-COv_Qnc8-cf7f9d214091eee59084.js} +1 -1
  10. data/tools/limitsmonitor/{CanvasimagevalueWidget-E6G93iGc-3c52b46681f0a5a89ed5.js → CanvasimagevalueWidget-BhuUqLOo-57f4e73a1af5378d3ab9.js} +1 -1
  11. data/tools/limitsmonitor/CanvaslabelWidget-DtvbgeYH-14bc7362569406d89cba.js +1 -0
  12. data/tools/limitsmonitor/{CanvaslabelvalueWidget-B0nJeS4X-de88e3f2d86e9e1c8078.js → CanvaslabelvalueWidget-C_FRIeNb-7f329899b7a07e1eab53.js} +1 -1
  13. data/tools/limitsmonitor/CanvaslineWidget-D1K_6mAY-5eef588235d49c1c42bf.js +1 -0
  14. data/tools/limitsmonitor/{CanvaslinevalueWidget-BwfFyCwH-8f9f7c0bfbb5bc7a95d1.js → CanvaslinevalueWidget-D4eaxWhR-ba03fa3c5c05e50d816e.js} +1 -1
  15. data/tools/limitsmonitor/CheckbuttonWidget-ByxMDkiS-5f430af73175fe5208db.js +1 -0
  16. data/tools/limitsmonitor/ComboboxWidget-CAGxGv2r-fa7d7728ff40960a0982.js +1 -0
  17. data/tools/limitsmonitor/{DateWidget-CAiG2FIl-1959f937d37bc73803e3.js → DateWidget-DkNWx28s-c034abac0550f0ae841e.js} +1 -1
  18. data/tools/limitsmonitor/{DetailsDialog-q5SDzw3R-53a91bc6d0632a136bd1.js → DetailsDialog-F4KgYM6m-99f16b4c0cd103cebe4d.js} +1 -1
  19. data/tools/limitsmonitor/{DynamicWidget-BuSbQVhf-89548fbbeb8238f74a77.js → DynamicWidget-BuSbQVhf-c2433469a74318fe30f3.js} +1 -1
  20. data/tools/limitsmonitor/{FilechecksumWidget-DeW9wy5d-de94f26ac0d27cd39cdf.js → FilechecksumWidget-DSfNEnDJ-7c61e5ae8d517c5788c9.js} +1 -1
  21. data/tools/limitsmonitor/{FiledisplayWidget-C_zPFu2E-8a8f1a0fdea59d39fd88.js → FiledisplayWidget-D2cxMmrP-beb14f2cd124fc859fc3.js} +1 -1
  22. data/tools/limitsmonitor/{FormatvalueWidget-BrvPWwfN-67874a480943bd26931e.js → FormatvalueWidget-6-bj_PJO-eaaa207a7419d38e5500.js} +1 -1
  23. data/tools/limitsmonitor/Graph-Cz0Ns1FD-458d3b3ff56b7f2f52b7.js +1 -0
  24. data/tools/limitsmonitor/{GraphWidget-QS-VJoes-1271f89a117a5c5271a9.js → GraphWidget-COXK3Dab-e98f9a1c9ba6e83f1aa3.js} +1 -1
  25. data/tools/limitsmonitor/{HorizontalWidget-cFSsdChw-b6cc6cdb92acbe58984f.js → HorizontalWidget-C9UFBPsk-615f7e18b2fa8b12cfd4.js} +1 -1
  26. data/tools/limitsmonitor/HorizontalboxWidget-CWLfmRtr-9feaf86e99b232f286fa.js +1 -0
  27. data/tools/limitsmonitor/{HorizontallineWidget-BqbLK0zc-2f0af96b00bd8f2e3b56.js → HorizontallineWidget-DeFkOaYO-e3d95868298c39108931.js} +1 -1
  28. data/tools/limitsmonitor/{IframeWidget-CITX8Es1-5196c6953cd34351e89e.js → IframeWidget-Bn9eGzrq-9c2f9577a17909e38a53.js} +1 -1
  29. data/tools/limitsmonitor/{ImageLoader-DQV_11Vd-f3ee3aef1b637ff5b1e1.js → ImageLoader-_gAudhVo-62c2ed958eb333a536c1.js} +1 -1
  30. data/tools/limitsmonitor/{ImageviewerWidget-BIsSA7KD-ff268fd04e08ef9fe71f.js → ImageviewerWidget-BUWhF32Z-512f2ed6139f449f32cf.js} +1 -1
  31. data/tools/limitsmonitor/{LabelWidget-FQI-cH_A-3222f6a948b5f94601ac.js → LabelWidget-BhzkN06D-879f024c11b660ee118b.js} +1 -1
  32. data/tools/limitsmonitor/{LabelledWidget-KGXtQ4Zb-5a9112c1e932f3388b5d.js → LabelledWidget-vx8NvW1b-12d933e4ffaff922a2fa.js} +1 -1
  33. data/tools/limitsmonitor/LabelprogressbarWidget-t5PvKuS4-507cc849018fe64d3f60.js +1 -0
  34. data/tools/limitsmonitor/LabelsparklineWidget-CebbEH-j-3089b18cdd43379df5d5.js +1 -0
  35. data/tools/limitsmonitor/LabelvalueWidget-Cbs1DBK2-eb95259251a8995558c5.js +1 -0
  36. data/tools/limitsmonitor/{LabelvaluedescWidget-BppM5vGp-50a6cfd63b76e13b34c5.js → LabelvaluedescWidget-B7OIOGc0-98065da10685719a70dd.js} +1 -1
  37. data/tools/limitsmonitor/LabelvaluelimitsbarWidget-C57kf-oQ-750d1ff4d3d1a9cf8e5f.js +1 -0
  38. data/tools/limitsmonitor/LabelvaluelimitscolumnWidget-BRlNDEqp-0f4ed467df3ece4ce9f2.js +1 -0
  39. data/tools/limitsmonitor/LabelvaluerangebarWidget-Pt_evm3v-658526bdbea98aa6336c.js +1 -0
  40. data/tools/limitsmonitor/{Layout-d-vb0okO-b11d6ff13623c921f43e.js → Layout-CKmC50QZ-73cee80023d9435e11da.js} +1 -1
  41. data/tools/limitsmonitor/{LedWidget-Cmr6eVG2-51658ec2f53a8c3586b8.js → LedWidget-D1lmNXpi-88f2a7caf9a460d704bc.js} +1 -1
  42. data/tools/limitsmonitor/{LimitsBar-qMynDHYT-fb4bbd2bcc69e0029b99.js → LimitsBar-D5IZu7eX-c83defbeb54b6cfc8648.js} +1 -1
  43. data/tools/limitsmonitor/LimitsMonitor-01b993d7a53cb284b983.js +11 -0
  44. data/tools/limitsmonitor/{LimitsbarWidget-CMvcwa-m-f29f1f212c79d50b9921.js → LimitsbarWidget-VpxQXE-e-1550e0d37fc190f68cb9.js} +1 -1
  45. data/tools/limitsmonitor/{LimitscolorWidget-CZ9wMtcI-b75b4941d4835b5f8297.js → LimitscolorWidget-79P41CX7-9563cd9429c444ba0ef4.js} +1 -1
  46. data/tools/limitsmonitor/{LimitscolumnWidget-r84KJGU--7977d8b4e33b12debd95.js → LimitscolumnWidget-BFDXhJeZ-8998cb2a2a449a5300e6.js} +1 -1
  47. data/tools/limitsmonitor/LinegraphWidget-VqkpOlws-2690117b6237093383c2.js +1 -0
  48. data/tools/limitsmonitor/{MatrixbycolumnsWidget-Dx2iz0YF-4203debaedea620ba247.js → MatrixbycolumnsWidget--ihvirDP-1aa564b334b2bca31d04.js} +1 -1
  49. data/tools/limitsmonitor/OpenC3TimePicker-B0lAIU91-0172b8047df53a20c9a8.js +1 -0
  50. data/tools/limitsmonitor/{ProgressbarWidget-DPbAVjdC-3630ff761aeb034007d8.js → ProgressbarWidget-BIB3r9SL-b22b23a017f8b487b85c.js} +1 -1
  51. data/tools/limitsmonitor/RadiobuttonWidget-C5rxLM7K-5af958aa675329dfb400.js +1 -0
  52. data/tools/limitsmonitor/{RadiogroupWidget-CMM_p1eA-5fcefa30ff0d20af51ce.js → RadiogroupWidget-CciTCv1U-3241ca27dfb3e1b5c81b.js} +1 -1
  53. data/tools/limitsmonitor/{RangebarWidget-DJXGUHAc-dad069030eb3388a4c5b.js → RangebarWidget-MPQYi2Km-efdc4e76bc2f89c883e7.js} +1 -1
  54. data/tools/limitsmonitor/{RollupWidget-BbWLSsTT-5fb7397bdd33191b6133.js → RollupWidget-CfjGAhzg-b61c7bfee6725f202c62.js} +1 -1
  55. data/tools/limitsmonitor/ScrollwindowWidget-CupaygNN-c0d924e6d0e7b105cb24.js +1 -0
  56. data/tools/limitsmonitor/{SignalWidget-65q0tiuo-8d5de1f773999f8cade5.js → SignalWidget-C-qecoTO-e941d3fd1446e9665ce9.js} +1 -1
  57. data/tools/limitsmonitor/{SpacerWidget-DFzbojmX-73f68849c3fb7bdaa9c5.js → SpacerWidget-VVkOCb6N-03baa51755ea98050c5c.js} +1 -1
  58. data/tools/limitsmonitor/SparklineWidget-Dsmn38z_-d452043105f69b70cde4.js +1 -0
  59. data/tools/limitsmonitor/TabbookWidget-CXklff-l-44cc5fc242cdae28f3f4.js +1 -0
  60. data/tools/limitsmonitor/TextboxWidget-CHs2VYIv-440f8fd6a73569d44751.js +1 -0
  61. data/tools/limitsmonitor/TextfieldWidget-CdANAW-6-2ef5fc5bbe335191148e.js +1 -0
  62. data/tools/limitsmonitor/TimeWidget-D0xT1wXR-7488c506361e77cf2e85.js +1 -0
  63. data/tools/limitsmonitor/TitleWidget-68NWCcXB-0f3f4ecc38383459c86a.js +1 -0
  64. data/tools/limitsmonitor/{VWidget-BDy0211S-6940643cf1852b70b09f.js → VWidget-oMbywhLA-85718f33edeb08e1e150.js} +1 -1
  65. data/tools/limitsmonitor/ValueWidget-B1aGUBP7-0812b73f73dcc59b379a.js +1 -0
  66. data/tools/limitsmonitor/ValuelimitsbarWidget-B7KcRjLS-a369a1c64f1c06fb65e1.js +1 -0
  67. data/tools/limitsmonitor/{ValuelimitscolumnWidget-7DXCsVW_-be9cb1764b154e5d5a6b.js → ValuelimitscolumnWidget-BVt6nLXq-4bacf2c800058cbbc5a4.js} +1 -1
  68. data/tools/limitsmonitor/ValuerangebarWidget-uVZEI32U-9ae2932de717a0f1a3a2.js +1 -0
  69. data/tools/limitsmonitor/VerticalWidget-DlftYBjH-60b9591b4f0a132e1a8d.js +1 -0
  70. data/tools/limitsmonitor/VerticalboxWidget-C7RrkfY0-64476f25b5e19b0885b3.js +1 -0
  71. data/tools/limitsmonitor/{Widget-BDsgRxuV-68825d9673e8516edfbe.js → Widget-D_HaosJK-cad59761cc9929d05ed1.js} +1 -1
  72. data/tools/limitsmonitor/main-4c695d77b89b49cc35a4.js +1497 -0
  73. data/tools/limitsmonitor/main.js +1 -1
  74. metadata +72 -72
  75. data/tools/limitsmonitor/ButtonWidget-Cc9cYsg8-5386119cf5dacd283d32.js +0 -2
  76. data/tools/limitsmonitor/CanvasWidget-Bn70gBcc-0f0ec68dd529d2a8369d.js +0 -1
  77. data/tools/limitsmonitor/CanvasdotWidget-CMROfW3O-8af138e621ed5f77cc03.js +0 -1
  78. data/tools/limitsmonitor/CanvaslabelWidget-C074R2Fy-6fa352cc26b57d1e31bf.js +0 -1
  79. data/tools/limitsmonitor/CanvaslineWidget-CxnNAqOX-2444ea422be88efe27c1.js +0 -1
  80. data/tools/limitsmonitor/CheckbuttonWidget-yAm10oX0-9e457e27e323eb6c1cd9.js +0 -1
  81. data/tools/limitsmonitor/ComboboxWidget-BnWksnnp-e3160833ab7f822ec5b6.js +0 -1
  82. data/tools/limitsmonitor/Graph-BCvaO4yI-05210fabaa90544a276d.js +0 -1
  83. data/tools/limitsmonitor/HorizontalboxWidget-CKA7rLGd-3efd1494fcecec5c0c82.js +0 -1
  84. data/tools/limitsmonitor/LabelprogressbarWidget-72WyzD_Q-6b6d72ae0ab61984e11b.js +0 -1
  85. data/tools/limitsmonitor/LabelsparklineWidget-DtWNf4mK-0616c3d992d1c69f8bc2.js +0 -1
  86. data/tools/limitsmonitor/LabelvalueWidget-D_JLdY7r-2d02daa1c974f524240a.js +0 -1
  87. data/tools/limitsmonitor/LabelvaluelimitsbarWidget-B69ogLif-910bf93a176a22992d8c.js +0 -1
  88. data/tools/limitsmonitor/LabelvaluelimitscolumnWidget-DPYwFdgq-9ca63f556ec785206b81.js +0 -1
  89. data/tools/limitsmonitor/LabelvaluerangebarWidget-BT0BcOoK-ad55be9c219689555926.js +0 -1
  90. data/tools/limitsmonitor/LimitsMonitor-25e9a286a0d2a284b898.js +0 -11
  91. data/tools/limitsmonitor/LinegraphWidget-COGBGOjF-5937318ff7e9c1773cc7.js +0 -1
  92. data/tools/limitsmonitor/OpenC3TimePicker-C3vCnk72-ed8f064d5b3e5f533ae1.js +0 -1
  93. data/tools/limitsmonitor/RadiobuttonWidget-iXI9yCDk-35fbc7de0d9256e495ec.js +0 -1
  94. data/tools/limitsmonitor/ScrollwindowWidget-Dxhp7yKn-acb113d38322b5b06f23.js +0 -1
  95. data/tools/limitsmonitor/SparklineWidget-Bu4I8zY0-c841b3c1b8cd4399869f.js +0 -1
  96. data/tools/limitsmonitor/TabbookWidget-CELMWyx7-8c6c4fd75b490df1871e.js +0 -1
  97. data/tools/limitsmonitor/TextboxWidget-DYsqXntS-cfa33b05f237f08895bb.js +0 -1
  98. data/tools/limitsmonitor/TextfieldWidget-BIUgV9Q4-2b46463e4e712c948c23.js +0 -1
  99. data/tools/limitsmonitor/TimeWidget-BPXcY1Wy-812c6b0afd7585248558.js +0 -1
  100. data/tools/limitsmonitor/TitleWidget-DJ9mHRLE-987e8211017e0714da7e.js +0 -1
  101. data/tools/limitsmonitor/ValueWidget-DzOSy7lp-67645eb0b4215bd58b22.js +0 -1
  102. data/tools/limitsmonitor/ValuelimitsbarWidget-D5dSlW6D-afef21b8bb0ff8fd2567.js +0 -1
  103. data/tools/limitsmonitor/ValuerangebarWidget-BWjnpmyy-3ce98485defff5ecaf32.js +0 -1
  104. data/tools/limitsmonitor/VerticalWidget-BOtXAhxt-8f1fe015770168c6ede4.js +0 -1
  105. data/tools/limitsmonitor/VerticalboxWidget-RAsXfGdI-45f197b875407dab25b0.js +0 -1
  106. data/tools/limitsmonitor/main-e0e82227eb6ea93aef11.js +0 -1496
@@ -1,11 +0,0 @@
1
- System.register(["./main-e0e82227eb6ea93aef11.js","vue","single-spa","./ValueWidget-DzOSy7lp-67645eb0b4215bd58b22.js","./IframeWidget-CITX8Es1-5196c6953cd34351e89e.js","./ValuelimitsbarWidget-D5dSlW6D-afef21b8bb0ff8fd2567.js","vue-router","pinia","vuetify","./DetailsDialog-q5SDzw3R-53a91bc6d0632a136bd1.js","./LimitsBar-qMynDHYT-fb4bbd2bcc69e0029b99.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./VWidget-BDy0211S-6940643cf1852b70b09f.js","./Widget-BDsgRxuV-68825d9673e8516edfbe.js","./LimitsbarWidget-CMvcwa-m-f29f1f212c79d50b9921.js","./BarColumn-DwZmAe8g-0f403d70ed1387937240.js"],(function(Ds,Yi){"use strict";var gt,Oe,He,bt,_t,yt,w,C,L,wt,g,m,B,K,z,ne,ue,vt,j,Re,Ce,Je,re,Ke,St,Et,xt,Ot,Rt;return{setters:[R=>{gt=R.d,Oe=R._,He=R.R,bt=R.k,_t=R.M,yt=R.I},R=>{w=R.resolveComponent,C=R.openBlock,L=R.createBlock,wt=R.Teleport,g=R.createVNode,m=R.withCtx,B=R.createElementVNode,K=R.toDisplayString,z=R.createElementBlock,ne=R.Fragment,ue=R.renderList,vt=R.ref,j=R.createTextVNode,Re=R.mergeProps,Ce=R.createSlots,Je=R.normalizeStyle,re=R.createCommentVNode,Ke=R.normalizeClass,St=R.normalizeProps,Et=R.guardReactiveProps,xt=R.withKeys},null,R=>{Ot=R.default},null,R=>{Rt=R.default},null,null,null,null,null,null,null,null,null,null],execute:(function(){var R=document.createElement("style");R.textContent=`.footer[data-v-996d2580]{padding-top:5px}.v-input[data-v-996d2580]{background-color:var(--color-background-base-default)}.textfield-green[data-v-996d2580]{color:#00c800}.textfield-yellow[data-v-996d2580]{color:#ffdc00}.textfield-red[data-v-996d2580]{color:#ff2d2d}.limits-table[data-v-996d2580]{margin-top:5px;margin-bottom:10px}.limits-table[data-v-996d2580] th{font-weight:700;background-color:var(--color-background-base-default)}.limits-table[data-v-996d2580] .state-filtered-row{display:none}.card-height[data-v-192a6dcb]{height:calc(100vh - 150px)}
2
- /*$vite$:1*/`,document.head.appendChild(R);const Us={__name:"TopBarMenu",props:{menu:{type:Object,required:!0},title:{type:String,required:!0}},emits:["submenu-click"],setup(t,{emit:e}){const s=e,r=vt(!1);function n(){r.value=!1}function o(i){return i.replaceAll(" ","-").toLowerCase()}return(i,a)=>{const l=w("v-icon"),u=w("v-btn"),d=w("v-divider"),f=w("v-list-item-title"),_=w("v-list-item"),y=w("v-list"),b=w("v-menu"),h=w("v-radio"),E=w("v-list-item-action"),k=w("v-radio-group"),x=w("v-checkbox");return C(),L(b,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=p=>r.value=p),"close-on-content-click":!1},{activator:m(({props:p})=>[g(u,Re(p,{variant:"outlined",class:"mx-1 menu-button",text:t.menu.label,"data-test":o(`${t.title} ${t.menu.label}`)}),{append:m(()=>[g(l,{class:"menu-button-icon"},{default:m(()=>[...a[1]||(a[1]=[j(" mdi-menu-down ",-1)])]),_:1})]),_:1},16,["text","data-test"])]),default:m(()=>[g(y,null,{default:m(()=>[(C(!0),z(ne,null,ue(t.menu.items,(p,I)=>(C(),z(ne,null,[p.divider?(C(),L(d,{key:I+"-divider"})):p.subMenu&&p.subMenu.length>0?(C(),z("div",{key:I+"-submenu"},[(C(),L(b,{key:I,"open-on-hover":"",location:"right"},{activator:m(({props:P})=>[(C(),L(_,Re({ref_for:!0},P,{key:I,disabled:p.disabled}),Ce({append:m(()=>[g(l,null,{default:m(()=>[...a[2]||(a[2]=[j(" mdi-chevron-right ",-1)])]),_:1})]),default:m(()=>[!p.radio&&!p.checkbox?(C(),L(f,{key:0,style:Je("cursor: pointer;"+(p.disabled?"opacity: 0.2":""))},{default:m(()=>[j(K(p.label),1)]),_:2},1032,["style"])):re("",!0)]),_:2},[p.icon?{name:"prepend",fn:m(()=>[g(l,{disabled:p.disabled},{default:m(()=>[j(K(p.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:m(()=>[g(y,null,{default:m(()=>[(C(!0),z(ne,null,ue(p.subMenu,(P,H)=>(C(),L(_,{key:H,"prepend-icon":P.icon,onClick:V=>s("submenu-click",P)},{default:m(()=>[g(f,null,{default:m(()=>[j(K(P.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):p.radioGroup?(C(),L(k,{key:I+"-radio-group",class:"ma-0 pa-0",density:"compact","hide-details":"","model-value":p.value,"onUpdate:modelValue":p.command},{default:m(()=>[(C(!0),z(ne,null,ue(p.choices,(P,H)=>(C(),L(_,{key:H+"-choice"},{default:m(()=>[g(E,{class:"list-action"},{default:m(()=>[g(h,{color:"secondary",label:P.label,value:P.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(C(),L(_,{key:I+"-list",disabled:p.disabled,"data-test":o(`${t.title} ${t.menu.label} ${p.label}`),onClick:()=>{p.command(p),p.checkbox||n()}},Ce({default:m(()=>[p.checkbox?(C(),L(E,{key:0,class:"list-action"},{default:m(()=>[g(x,{modelValue:p.checked,"onUpdate:modelValue":P=>p.checked=P,label:p.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):re("",!0),!p.radio&&!p.checkbox?(C(),L(f,{key:1,style:Je("cursor: pointer;"+(p.disabled?"opacity: 0.2":""))},{default:m(()=>[j(K(p.label),1)]),_:2},1032,["style"])):re("",!0)]),_:2},[p.icon?{name:"prepend",fn:m(()=>[g(l,{icon:p.icon,disabled:p.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["disabled","data-test","onClick"]))],64))),256))]),_:1})]),_:1},8,["modelValue"])}}},Fs={components:{TopBarMenu:Us},props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},mounted(){document.title=this.title},methods:{subMenuClick(t){t.command(t),this.$refs.topmenu[0].isActive=!1}}},Bs={class:"app-title mr-2"};function Vs(t,e,s,r,n,o){const i=w("v-col"),a=w("v-row"),l=w("TopBarMenu");return C(),L(wt,{to:"#openc3-menu"},[g(a,{"no-gutters":""},{default:m(()=>[g(i,{"align-self":"end"},{default:m(()=>[B("span",Bs,K(s.title),1)]),_:1})]),_:1}),g(a,{dense:"",class:"flex-nowrap"},{default:m(()=>[(C(!0),z(ne,null,ue(s.menus,(u,d)=>(C(),L(l,{key:d+"-top-menu",ref_for:!0,ref:"topmenu",menu:u,title:s.title,onSubmenuClick:o.subMenuClick},null,8,["menu","title","onSubmenuClick"]))),128))]),_:1})])}const $s=gt(Fs,[["render",Vs],["__scopeId","data-v-f4fb184e"]]);function Ct(t,e){return function(){return t.apply(e,arguments)}}const{toString:Ms}=Object.prototype,{getPrototypeOf:ke}=Object,{iterator:Ae,toStringTag:kt}=Symbol,Ie=(t=>e=>{const s=Ms.call(e);return t[s]||(t[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Y=t=>(t=t.toLowerCase(),e=>Ie(e)===t),Te=t=>e=>typeof e===t,{isArray:de}=Array,he=Te("undefined");function me(t){return t!==null&&!he(t)&&t.constructor!==null&&!he(t.constructor)&&$(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const At=Y("ArrayBuffer");function qs(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&At(t.buffer),e}const zs=Te("string"),$=Te("function"),It=Te("number"),ge=t=>t!==null&&typeof t=="object",Ws=t=>t===!0||t===!1,Pe=t=>{if(Ie(t)!=="object")return!1;const e=ke(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(kt in t)&&!(Ae in t)},Hs=t=>{if(!ge(t)||me(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Js=Y("Date"),Ks=Y("File"),Ys=t=>!!(t&&typeof t.uri<"u"),Gs=t=>t&&typeof t.getParts<"u",Zs=Y("Blob"),Xs=Y("FileList"),Qs=t=>ge(t)&&$(t.pipe);function er(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Tt=er(),Pt=typeof Tt.FormData<"u"?Tt.FormData:void 0,tr=t=>{if(!t)return!1;if(Pt&&t instanceof Pt)return!0;const e=ke(t);if(!e||e===Object.prototype||!$(t.append))return!1;const s=Ie(t);return s==="formdata"||s==="object"&&$(t.toString)&&t.toString()==="[object FormData]"},sr=Y("URLSearchParams"),[rr,nr,ir,or]=["ReadableStream","Request","Response","Headers"].map(Y),ar=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function be(t,e,{allOwnKeys:s=!1}={}){if(t===null||typeof t>"u")return;let r,n;if(typeof t!="object"&&(t=[t]),de(t))for(r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else{if(me(t))return;const o=s?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let a;for(r=0;r<i;r++)a=o[r],e.call(null,t[a],a,t)}}function Lt(t,e){if(me(t))return null;e=e.toLowerCase();const s=Object.keys(t);let r=s.length,n;for(;r-- >0;)if(n=s[r],e===n.toLowerCase())return n;return null}const ie=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Nt=t=>!he(t)&&t!==ie;function Ye(){const{caseless:t,skipUndefined:e}=Nt(this)&&this||{},s={},r=(n,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const i=t&&Lt(s,o)||o;Pe(s[i])&&Pe(n)?s[i]=Ye(s[i],n):Pe(n)?s[i]=Ye({},n):de(n)?s[i]=n.slice():(!e||!he(n))&&(s[i]=n)};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&be(arguments[n],r);return s}const cr=(t,e,s,{allOwnKeys:r}={})=>(be(e,(n,o)=>{s&&$(n)?Object.defineProperty(t,o,{value:Ct(n,s),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,o,{value:n,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),lr=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),ur=(t,e,s,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),s&&Object.assign(t.prototype,s)},dr=(t,e,s,r)=>{let n,o,i;const a={};if(e=e||{},t==null)return e;do{for(n=Object.getOwnPropertyNames(t),o=n.length;o-- >0;)i=n[o],(!r||r(i,t,e))&&!a[i]&&(e[i]=t[i],a[i]=!0);t=s!==!1&&ke(t)}while(t&&(!s||s(t,e))&&t!==Object.prototype);return e},hr=(t,e,s)=>{t=String(t),(s===void 0||s>t.length)&&(s=t.length),s-=e.length;const r=t.indexOf(e,s);return r!==-1&&r===s},fr=t=>{if(!t)return null;if(de(t))return t;let e=t.length;if(!It(e))return null;const s=new Array(e);for(;e-- >0;)s[e]=t[e];return s},pr=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ke(Uint8Array)),mr=(t,e)=>{const s=(t&&t[Ae]).call(t);let r;for(;(r=s.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},gr=(t,e)=>{let s;const r=[];for(;(s=t.exec(e))!==null;)r.push(s);return r},br=Y("HTMLFormElement"),_r=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,s,r){return s.toUpperCase()+r}),jt=(({hasOwnProperty:t})=>(e,s)=>t.call(e,s))(Object.prototype),yr=Y("RegExp"),Dt=(t,e)=>{const s=Object.getOwnPropertyDescriptors(t),r={};be(s,(n,o)=>{let i;(i=e(n,o,t))!==!1&&(r[o]=i||n)}),Object.defineProperties(t,r)},wr=t=>{Dt(t,(e,s)=>{if($(t)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const r=t[s];if($(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},vr=(t,e)=>{const s={},r=n=>{n.forEach(o=>{s[o]=!0})};return de(t)?r(t):r(String(t).split(e)),s},Sr=()=>{},Er=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function xr(t){return!!(t&&$(t.append)&&t[kt]==="FormData"&&t[Ae])}const Or=t=>{const e=new Array(10),s=(r,n)=>{if(ge(r)){if(e.indexOf(r)>=0)return;if(me(r))return r;if(!("toJSON"in r)){e[n]=r;const o=de(r)?[]:{};return be(r,(i,a)=>{const l=s(i,n+1);!he(l)&&(o[a]=l)}),e[n]=void 0,o}}return r};return s(t,0)},Rr=Y("AsyncFunction"),Cr=t=>t&&(ge(t)||$(t))&&$(t.then)&&$(t.catch),Ut=((t,e)=>t?setImmediate:e?((s,r)=>(ie.addEventListener("message",({source:n,data:o})=>{n===ie&&o===s&&r.length&&r.shift()()},!1),n=>{r.push(n),ie.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",$(ie.postMessage)),kr=typeof queueMicrotask<"u"?queueMicrotask.bind(ie):typeof process<"u"&&process.nextTick||Ut,Ar=t=>t!=null&&$(t[Ae]),c={isArray:de,isArrayBuffer:At,isBuffer:me,isFormData:tr,isArrayBufferView:qs,isString:zs,isNumber:It,isBoolean:Ws,isObject:ge,isPlainObject:Pe,isEmptyObject:Hs,isReadableStream:rr,isRequest:nr,isResponse:ir,isHeaders:or,isUndefined:he,isDate:Js,isFile:Ks,isReactNativeBlob:Ys,isReactNative:Gs,isBlob:Zs,isRegExp:yr,isFunction:$,isStream:Qs,isURLSearchParams:sr,isTypedArray:pr,isFileList:Xs,forEach:be,merge:Ye,extend:cr,trim:ar,stripBOM:lr,inherits:ur,toFlatObject:dr,kindOf:Ie,kindOfTest:Y,endsWith:hr,toArray:fr,forEachEntry:mr,matchAll:gr,isHTMLForm:br,hasOwnProperty:jt,hasOwnProp:jt,reduceDescriptors:Dt,freezeMethods:wr,toObjectSet:vr,toCamelCase:_r,noop:Sr,toFiniteNumber:Er,findKey:Lt,global:ie,isContextDefined:Nt,isSpecCompliantForm:xr,toJSONObject:Or,isAsyncFn:Rr,isThenable:Cr,setImmediate:Ut,asap:kr,isIterable:Ar};let v=class Ns extends Error{static from(e,s,r,n,o,i){const a=new Ns(e.message,s||e.code,r,n,o);return a.cause=e,a.name=e.name,e.status!=null&&a.status==null&&(a.status=e.status),i&&Object.assign(a,i),a}constructor(e,s,r,n,o){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,s&&(this.code=s),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}toJSON(){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:c.toJSONObject(this.config),code:this.code,status:this.status}}};v.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",v.ERR_BAD_OPTION="ERR_BAD_OPTION",v.ECONNABORTED="ECONNABORTED",v.ETIMEDOUT="ETIMEDOUT",v.ERR_NETWORK="ERR_NETWORK",v.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",v.ERR_DEPRECATED="ERR_DEPRECATED",v.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",v.ERR_BAD_REQUEST="ERR_BAD_REQUEST",v.ERR_CANCELED="ERR_CANCELED",v.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",v.ERR_INVALID_URL="ERR_INVALID_URL",v.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Ir=null;function Ge(t){return c.isPlainObject(t)||c.isArray(t)}function Ft(t){return c.endsWith(t,"[]")?t.slice(0,-2):t}function Ze(t,e,s){return t?t.concat(e).map(function(r,n){return r=Ft(r),!s&&n?"["+r+"]":r}).join(s?".":""):e}function Tr(t){return c.isArray(t)&&!t.some(Ge)}const Pr=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function Le(t,e,s){if(!c.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,s=c.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,E){return!c.isUndefined(E[h])});const r=s.metaTokens,n=s.visitor||f,o=s.dots,i=s.indexes,a=s.Blob||typeof Blob<"u"&&Blob,l=s.maxDepth===void 0?100:s.maxDepth,u=a&&c.isSpecCompliantForm(e);if(!c.isFunction(n))throw new TypeError("visitor must be a function");function d(h){if(h===null)return"";if(c.isDate(h))return h.toISOString();if(c.isBoolean(h))return h.toString();if(!u&&c.isBlob(h))throw new v("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(h)||c.isTypedArray(h)?u&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function f(h,E,k){let x=h;if(c.isReactNative(e)&&c.isReactNativeBlob(h))return e.append(Ze(k,E,o),d(h)),!1;if(h&&!k&&typeof h=="object"){if(c.endsWith(E,"{}"))E=r?E:E.slice(0,-2),h=JSON.stringify(h);else if(c.isArray(h)&&Tr(h)||(c.isFileList(h)||c.endsWith(E,"[]"))&&(x=c.toArray(h)))return E=Ft(E),x.forEach(function(p,I){!(c.isUndefined(p)||p===null)&&e.append(i===!0?Ze([E],I,o):i===null?E:E+"[]",d(p))}),!1}return Ge(h)?!0:(e.append(Ze(k,E,o),d(h)),!1)}const _=[],y=Object.assign(Pr,{defaultVisitor:f,convertValue:d,isVisitable:Ge});function b(h,E,k=0){if(!c.isUndefined(h)){if(k>l)throw new v("Object is too deeply nested ("+k+" levels). Max depth: "+l,v.ERR_FORM_DATA_DEPTH_EXCEEDED);if(_.indexOf(h)!==-1)throw Error("Circular reference detected in "+E.join("."));_.push(h),c.forEach(h,function(x,p){(!(c.isUndefined(x)||x===null)&&n.call(e,x,c.isString(p)?p.trim():p,E,y))===!0&&b(x,E?E.concat(p):[p],k+1)}),_.pop()}}if(!c.isObject(t))throw new TypeError("data must be an object");return b(t),e}function Bt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(s){return e[s]})}function Xe(t,e){this._pairs=[],t&&Le(t,this,e)}const Vt=Xe.prototype;Vt.append=function(t,e){this._pairs.push([t,e])},Vt.toString=function(t){const e=t?function(s){return t.call(this,s,Bt)}:Bt;return this._pairs.map(function(s){return e(s[0])+"="+e(s[1])},"").join("&")};function Lr(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function $t(t,e,s){if(!e)return t;const r=s&&s.encode||Lr,n=c.isFunction(s)?{serialize:s}:s,o=n&&n.serialize;let i;if(o?i=o(e,n):i=c.isURLSearchParams(e)?e.toString():new Xe(e,n).toString(r),i){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Mt{constructor(){this.handlers=[]}use(e,s,r){return this.handlers.push({fulfilled:e,rejected:s,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){c.forEach(this.handlers,function(s){s!==null&&e(s)})}}const Qe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Nr=typeof URLSearchParams<"u"?URLSearchParams:Xe,jr=typeof FormData<"u"?FormData:null,Dr=typeof Blob<"u"?Blob:null,Ur={isBrowser:!0,classes:{URLSearchParams:Nr,FormData:jr,Blob:Dr},protocols:["http","https","file","blob","url","data"]},et=typeof window<"u"&&typeof document<"u",tt=typeof navigator=="object"&&navigator||void 0,Fr=et&&(!tt||["ReactNative","NativeScript","NS"].indexOf(tt.product)<0),Br=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Vr=et&&window.location.href||"http://localhost",$r=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:et,hasStandardBrowserEnv:Fr,hasStandardBrowserWebWorkerEnv:Br,navigator:tt,origin:Vr},Symbol.toStringTag,{value:"Module"})),F={...$r,...Ur};function Mr(t,e){return Le(t,new F.classes.URLSearchParams,{visitor:function(s,r,n,o){return F.isNode&&c.isBuffer(s)?(this.append(r,s.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...e})}function qr(t){return c.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function zr(t){const e={},s=Object.keys(t);let r;const n=s.length;let o;for(r=0;r<n;r++)o=s[r],e[o]=t[o];return e}function qt(t){function e(s,r,n,o){let i=s[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=o>=s.length;return i=!i&&c.isArray(n)?n.length:i,l?(c.hasOwnProp(n,i)?n[i]=c.isArray(n[i])?n[i].concat(r):[n[i],r]:n[i]=r,!a):((!n[i]||!c.isObject(n[i]))&&(n[i]=[]),e(s,r,n[i],o)&&c.isArray(n[i])&&(n[i]=zr(n[i])),!a)}if(c.isFormData(t)&&c.isFunction(t.entries)){const s={};return c.forEachEntry(t,(r,n)=>{e(qr(r),n,s,0)}),s}return null}const fe=(t,e)=>t!=null&&c.hasOwnProp(t,e)?t[e]:void 0;function Wr(t,e,s){if(c.isString(t))try{return(e||JSON.parse)(t),c.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(s||JSON.stringify)(t)}const _e={transitional:Qe,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const s=e.getContentType()||"",r=s.indexOf("application/json")>-1,n=c.isObject(t);if(n&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return r?JSON.stringify(qt(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(n){const i=fe(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return Mr(t,i).toString();if((o=c.isFileList(t))||s.indexOf("multipart/form-data")>-1){const a=fe(this,"env"),l=a&&a.FormData;return Le(o?{"files[]":t}:t,l&&new l,i)}}return n||r?(e.setContentType("application/json",!1),Wr(t)):t}],transformResponse:[function(t){const e=fe(this,"transitional")||_e.transitional,s=e&&e.forcedJSONParsing,r=fe(this,"responseType"),n=r==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(s&&!r||n)){const o=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t,fe(this,"parseReviver"))}catch(i){if(o)throw i.name==="SyntaxError"?v.from(i,v.ERR_BAD_RESPONSE,this,null,fe(this,"response")):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:F.classes.FormData,Blob:F.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],t=>{_e.headers[t]={}});const Hr=c.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"]),Jr=t=>{const e={};let s,r,n;return t&&t.split(`
3
- `).forEach(function(o){n=o.indexOf(":"),s=o.substring(0,n).trim().toLowerCase(),r=o.substring(n+1).trim(),!(!s||e[s]&&Hr[s])&&(s==="set-cookie"?e[s]?e[s].push(r):e[s]=[r]:e[s]=e[s]?e[s]+", "+r:r)}),e},zt=Symbol("internals"),Kr=/[^\x09\x20-\x7E\x80-\xFF]/g;function Yr(t){let e=0,s=t.length;for(;e<s;){const r=t.charCodeAt(e);if(r!==9&&r!==32)break;e+=1}for(;s>e;){const r=t.charCodeAt(s-1);if(r!==9&&r!==32)break;s-=1}return e===0&&s===t.length?t:t.slice(e,s)}function ye(t){return t&&String(t).trim().toLowerCase()}function Gr(t){return Yr(t.replace(Kr,""))}function Ne(t){return t===!1||t==null?t:c.isArray(t)?t.map(Ne):Gr(String(t))}function Zr(t){const e=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=s.exec(t);)e[r[1]]=r[2];return e}const Xr=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function st(t,e,s,r,n){if(c.isFunction(r))return r.call(this,e,s);if(n&&(e=s),!!c.isString(e)){if(c.isString(r))return e.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(e)}}function Qr(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,s,r)=>s.toUpperCase()+r)}function en(t,e){const s=c.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+s,{value:function(n,o,i){return this[r].call(this,e,n,o,i)},configurable:!0})})}let M=class{constructor(t){t&&this.set(t)}set(t,e,s){const r=this;function n(i,a,l){const u=ye(a);if(!u)throw new Error("header name must be a non-empty string");const d=c.findKey(r,u);(!d||r[d]===void 0||l===!0||l===void 0&&r[d]!==!1)&&(r[d||a]=Ne(i))}const o=(i,a)=>c.forEach(i,(l,u)=>n(l,u,a));if(c.isPlainObject(t)||t instanceof this.constructor)o(t,e);else if(c.isString(t)&&(t=t.trim())&&!Xr(t))o(Jr(t),e);else if(c.isObject(t)&&c.isIterable(t)){let i={},a,l;for(const u of t){if(!c.isArray(u))throw TypeError("Object iterator must return a key-value pair");i[l=u[0]]=(a=i[l])?c.isArray(a)?[...a,u[1]]:[a,u[1]]:u[1]}o(i,e)}else t!=null&&n(e,t,s);return this}get(t,e){if(t=ye(t),t){const s=c.findKey(this,t);if(s){const r=this[s];if(!e)return r;if(e===!0)return Zr(r);if(c.isFunction(e))return e.call(this,r,s);if(c.isRegExp(e))return e.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=ye(t),t){const s=c.findKey(this,t);return!!(s&&this[s]!==void 0&&(!e||st(this,this[s],s,e)))}return!1}delete(t,e){const s=this;let r=!1;function n(o){if(o=ye(o),o){const i=c.findKey(s,o);i&&(!e||st(s,s[i],i,e))&&(delete s[i],r=!0)}}return c.isArray(t)?t.forEach(n):n(t),r}clear(t){const e=Object.keys(this);let s=e.length,r=!1;for(;s--;){const n=e[s];(!t||st(this,this[n],n,t,!0))&&(delete this[n],r=!0)}return r}normalize(t){const e=this,s={};return c.forEach(this,(r,n)=>{const o=c.findKey(s,n);if(o){e[o]=Ne(r),delete e[n];return}const i=t?Qr(n):String(n).trim();i!==n&&delete e[n],e[i]=Ne(r),s[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return c.forEach(this,(s,r)=>{s!=null&&s!==!1&&(e[r]=t&&c.isArray(s)?s.join(", "):s)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
4
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const s=new this(t);return e.forEach(r=>s.set(r)),s}static accessor(t){const e=(this[zt]=this[zt]={accessors:{}}).accessors,s=this.prototype;function r(n){const o=ye(n);e[o]||(en(s,n),e[o]=!0)}return c.isArray(t)?t.forEach(r):r(t),this}};M.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),c.reduceDescriptors(M.prototype,({value:t},e)=>{let s=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[s]=r}}}),c.freezeMethods(M);function rt(t,e){const s=this||_e,r=e||s,n=M.from(r.headers);let o=r.data;return c.forEach(t,function(i){o=i.call(s,o,n.normalize(),e?e.status:void 0)}),n.normalize(),o}function Wt(t){return!!(t&&t.__CANCEL__)}let we=class extends v{constructor(t,e,s){super(t??"canceled",v.ERR_CANCELED,e,s),this.name="CanceledError",this.__CANCEL__=!0}};function Ht(t,e,s){const r=s.config.validateStatus;!s.status||!r||r(s.status)?t(s):e(new v("Request failed with status code "+s.status,[v.ERR_BAD_REQUEST,v.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function tn(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function sn(t,e){t=t||10;const s=new Array(t),r=new Array(t);let n=0,o=0,i;return e=e!==void 0?e:1e3,function(a){const l=Date.now(),u=r[o];i||(i=l),s[n]=a,r[n]=l;let d=o,f=0;for(;d!==n;)f+=s[d++],d=d%t;if(n=(n+1)%t,n===o&&(o=(o+1)%t),l-i<e)return;const _=u&&l-u;return _?Math.round(f*1e3/_):void 0}}function rn(t,e){let s=0,r=1e3/e,n,o;const i=(a,l=Date.now())=>{s=l,n=null,o&&(clearTimeout(o),o=null),t(...a)};return[(...a)=>{const l=Date.now(),u=l-s;u>=r?i(a,l):(n=a,o||(o=setTimeout(()=>{o=null,i(n)},r-u)))},()=>n&&i(n)]}const je=(t,e,s=3)=>{let r=0;const n=sn(50,250);return rn(o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=a!=null?Math.min(i,a):i,u=Math.max(0,l-r),d=n(u);r=Math.max(r,l);const f={loaded:l,total:a,progress:a?l/a:void 0,bytes:u,rate:d||void 0,estimated:d&&a?(a-l)/d:void 0,event:o,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(f)},s)},Jt=(t,e)=>{const s=t!=null;return[r=>e[0]({lengthComputable:s,total:t,loaded:r}),e[1]]},Kt=t=>(...e)=>c.asap(()=>t(...e)),nn=F.hasStandardBrowserEnv?((t,e)=>s=>(s=new URL(s,F.origin),t.protocol===s.protocol&&t.host===s.host&&(e||t.port===s.port)))(new URL(F.origin),F.navigator&&/(msie|trident)/i.test(F.navigator.userAgent)):()=>!0,on=F.hasStandardBrowserEnv?{write(t,e,s,r,n,o,i){if(typeof document>"u")return;const a=[`${t}=${encodeURIComponent(e)}`];c.isNumber(s)&&a.push(`expires=${new Date(s).toUTCString()}`),c.isString(r)&&a.push(`path=${r}`),c.isString(n)&&a.push(`domain=${n}`),o===!0&&a.push("secure"),c.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function an(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function cn(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Yt(t,e,s){let r=!an(e);return t&&(r||s===!1)?cn(t,e):e}const Gt=t=>t instanceof M?{...t}:t;function oe(t,e){e=e||{};const s=Object.create(null);Object.defineProperty(s,"hasOwnProperty",{value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(u,d,f,_){return c.isPlainObject(u)&&c.isPlainObject(d)?c.merge.call({caseless:_},u,d):c.isPlainObject(d)?c.merge({},d):c.isArray(d)?d.slice():d}function n(u,d,f,_){if(c.isUndefined(d)){if(!c.isUndefined(u))return r(void 0,u,f,_)}else return r(u,d,f,_)}function o(u,d){if(!c.isUndefined(d))return r(void 0,d)}function i(u,d){if(c.isUndefined(d)){if(!c.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function a(u,d,f){if(c.hasOwnProp(e,f))return r(u,d);if(c.hasOwnProp(t,f))return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:a,headers:(u,d,f)=>n(Gt(u),Gt(d),f,!0)};return c.forEach(Object.keys({...t,...e}),function(u){if(u==="__proto__"||u==="constructor"||u==="prototype")return;const d=c.hasOwnProp(l,u)?l[u]:n,f=c.hasOwnProp(t,u)?t[u]:void 0,_=c.hasOwnProp(e,u)?e[u]:void 0,y=d(f,_,u);c.isUndefined(y)&&d!==a||(s[u]=y)}),s}const Zt=t=>{const e=oe({},t),s=_=>c.hasOwnProp(e,_)?e[_]:void 0,r=s("data");let n=s("withXSRFToken");const o=s("xsrfHeaderName"),i=s("xsrfCookieName");let a=s("headers");const l=s("auth"),u=s("baseURL"),d=s("allowAbsoluteUrls"),f=s("url");if(e.headers=a=M.from(a),e.url=$t(Yt(u,f,d),t.params,t.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),c.isFormData(r)){if(F.hasStandardBrowserEnv||F.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(c.isFunction(r.getHeaders)){const _=r.getHeaders(),y=["content-type","content-length"];Object.entries(_).forEach(([b,h])=>{y.includes(b.toLowerCase())&&a.set(b,h)})}}if(F.hasStandardBrowserEnv&&(c.isFunction(n)&&(n=n(e)),n===!0||n==null&&nn(e.url))){const _=o&&i&&on.read(i);_&&a.set(o,_)}return e},ln=typeof XMLHttpRequest<"u",un=ln&&function(t){return new Promise(function(e,s){const r=Zt(t);let n=r.data;const o=M.from(r.headers).normalize();let{responseType:i,onUploadProgress:a,onDownloadProgress:l}=r,u,d,f,_,y;function b(){_&&_(),y&&y(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function E(){if(!h)return;const x=M.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),p={data:!i||i==="text"||i==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:x,config:t,request:h};Ht(function(I){e(I),b()},function(I){s(I),b()},p),h=null}"onloadend"in h?h.onloadend=E:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(E)},h.onabort=function(){h&&(s(new v("Request aborted",v.ECONNABORTED,t,h)),h=null)},h.onerror=function(x){const p=x&&x.message?x.message:"Network Error",I=new v(p,v.ERR_NETWORK,t,h);I.event=x||null,s(I),h=null},h.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const p=r.transitional||Qe;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),s(new v(x,p.clarifyTimeoutError?v.ETIMEDOUT:v.ECONNABORTED,t,h)),h=null},n===void 0&&o.setContentType(null),"setRequestHeader"in h&&c.forEach(o.toJSON(),function(x,p){h.setRequestHeader(p,x)}),c.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),i&&i!=="json"&&(h.responseType=r.responseType),l&&([f,y]=je(l,!0),h.addEventListener("progress",f)),a&&h.upload&&([d,_]=je(a),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",_)),(r.cancelToken||r.signal)&&(u=x=>{h&&(s(!x||x.type?new we(null,t,h):x),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const k=tn(r.url);if(k&&F.protocols.indexOf(k)===-1){s(new v("Unsupported protocol "+k+":",v.ERR_BAD_REQUEST,t));return}h.send(n||null)})},dn=(t,e)=>{const{length:s}=t=t?t.filter(Boolean):[];if(e||s){let r=new AbortController,n;const o=function(u){if(!n){n=!0,a();const d=u instanceof Error?u:this.reason;r.abort(d instanceof v?d:new we(d instanceof Error?d.message:d))}};let i=e&&setTimeout(()=>{i=null,o(new v(`timeout of ${e}ms exceeded`,v.ETIMEDOUT))},e);const a=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),t=null)};t.forEach(u=>u.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>c.asap(a),l}},hn=function*(t,e){let s=t.byteLength;if(s<e){yield t;return}let r=0,n;for(;r<s;)n=r+e,yield t.slice(r,n),r=n},fn=async function*(t,e){for await(const s of pn(t))yield*hn(s,e)},pn=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:s,value:r}=await e.read();if(s)break;yield r}}finally{await e.cancel()}},Xt=(t,e,s,r)=>{const n=fn(t,e);let o=0,i,a=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:d}=await n.next();if(u){a(),l.close();return}let f=d.byteLength;if(s){let _=o+=f;s(_)}l.enqueue(new Uint8Array(d))}catch(u){throw a(u),u}},cancel(l){return a(l),n.return()}},{highWaterMark:2})},Qt=64*1024,{isFunction:De}=c,mn=(({Request:t,Response:e})=>({Request:t,Response:e}))(c.global),{ReadableStream:es,TextEncoder:ts}=c.global,ss=(t,...e)=>{try{return!!t(...e)}catch{return!1}},gn=t=>{t=c.merge.call({skipUndefined:!0},mn,t);const{fetch:e,Request:s,Response:r}=t,n=e?De(e):typeof fetch=="function",o=De(s),i=De(r);if(!n)return!1;const a=n&&De(es),l=n&&(typeof ts=="function"?(b=>h=>b.encode(h))(new ts):async b=>new Uint8Array(await new s(b).arrayBuffer())),u=o&&a&&ss(()=>{let b=!1;const h=new s(F.origin,{body:new es,method:"POST",get duplex(){return b=!0,"half"}}),E=h.headers.has("Content-Type");return h.body!=null&&h.body.cancel(),b&&!E}),d=i&&a&&ss(()=>c.isReadableStream(new r("").body)),f={stream:d&&(b=>b.body)};n&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!f[b]&&(f[b]=(h,E)=>{let k=h&&h[b];if(k)return k.call(h);throw new v(`Response type '${b}' is not supported`,v.ERR_NOT_SUPPORT,E)})});const _=async b=>{if(b==null)return 0;if(c.isBlob(b))return b.size;if(c.isSpecCompliantForm(b))return(await new s(F.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(c.isArrayBufferView(b)||c.isArrayBuffer(b))return b.byteLength;if(c.isURLSearchParams(b)&&(b=b+""),c.isString(b))return(await l(b)).byteLength},y=async(b,h)=>c.toFiniteNumber(b.getContentLength())??_(h);return async b=>{let{url:h,method:E,data:k,signal:x,cancelToken:p,timeout:I,onDownloadProgress:P,onUploadProgress:H,responseType:V,headers:Z,withCredentials:O="same-origin",fetchOptions:D}=Zt(b),X=e||fetch;V=V?(V+"").toLowerCase():"text";let Q=dn([x,p&&p.toAbortSignal()],I),ee=null;const q=Q&&Q.unsubscribe&&(()=>{Q.unsubscribe()});let ze;try{if(H&&u&&E!=="get"&&E!=="head"&&(ze=await y(Z,k))!==0){let U=new s(h,{method:"POST",body:k,duplex:"half"}),se;if(c.isFormData(k)&&(se=U.headers.get("content-type"))&&Z.setContentType(se),U.body){const[mt,We]=Jt(ze,je(Kt(H)));k=Xt(U.body,Qt,mt,We)}}c.isString(O)||(O=O?"include":"omit");const T=o&&"credentials"in s.prototype;if(c.isFormData(k)){const U=Z.getContentType();U&&/^multipart\/form-data/i.test(U)&&!/boundary=/i.test(U)&&Z.delete("content-type")}const S={...D,signal:Q,method:E.toUpperCase(),headers:Z.normalize().toJSON(),body:k,duplex:"half",credentials:T?O:void 0};ee=o&&new s(h,S);let A=await(o?X(ee,D):X(h,S));const J=d&&(V==="stream"||V==="response");if(d&&(P||J&&q)){const U={};["status","statusText","headers"].forEach(Ls=>{U[Ls]=A[Ls]});const se=c.toFiniteNumber(A.headers.get("content-length")),[mt,We]=P&&Jt(se,je(Kt(P),!0))||[];A=new r(Xt(A.body,Qt,mt,()=>{We&&We(),q&&q()}),U)}V=V||"text";let te=await f[c.findKey(f,V)||"text"](A,b);return!J&&q&&q(),await new Promise((U,se)=>{Ht(U,se,{data:te,headers:M.from(A.headers),status:A.status,statusText:A.statusText,config:b,request:ee})})}catch(T){throw q&&q(),T&&T.name==="TypeError"&&/Load failed|fetch/i.test(T.message)?Object.assign(new v("Network Error",v.ERR_NETWORK,b,ee,T&&T.response),{cause:T.cause||T}):v.from(T,T&&T.code,b,ee,T&&T.response)}}},bn=new Map,rs=t=>{let e=t&&t.env||{};const{fetch:s,Request:r,Response:n}=e,o=[r,n,s];let i=o.length,a=i,l,u,d=bn;for(;a--;)l=o[a],u=d.get(l),u===void 0&&d.set(l,u=a?new Map:gn(e)),d=u;return u};rs();const nt={http:Ir,xhr:un,fetch:{get:rs}};c.forEach(nt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const ns=t=>`- ${t}`,_n=t=>c.isFunction(t)||t===null||t===!1;function yn(t,e){t=c.isArray(t)?t:[t];const{length:s}=t;let r,n;const o={};for(let i=0;i<s;i++){r=t[i];let a;if(n=r,!_n(r)&&(n=nt[(a=String(r)).toLowerCase()],n===void 0))throw new v(`Unknown adapter '${a}'`);if(n&&(c.isFunction(n)||(n=n.get(e))))break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=s?i.length>1?`since :
5
- `+i.map(ns).join(`
6
- `):" "+ns(i[0]):"as no adapter specified";throw new v("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n}const is={getAdapter:yn,adapters:nt};function it(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new we(null,t)}function os(t){return it(t),t.headers=M.from(t.headers),t.data=rt.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),is.getAdapter(t.adapter||_e.adapter,t)(t).then(function(e){return it(t),e.data=rt.call(t,t.transformResponse,e),e.headers=M.from(e.headers),e},function(e){return Wt(e)||(it(t),e&&e.response&&(e.response.data=rt.call(t,t.transformResponse,e.response),e.response.headers=M.from(e.response.headers))),Promise.reject(e)})}const as="1.15.2",Ue={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Ue[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}});const cs={};Ue.transitional=function(t,e,s){function r(n,o){return"[Axios v"+as+"] Transitional option '"+n+"'"+o+(s?". "+s:"")}return(n,o,i)=>{if(t===!1)throw new v(r(o," has been removed"+(e?" in "+e:"")),v.ERR_DEPRECATED);return e&&!cs[o]&&(cs[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(n,o,i):!0}},Ue.spelling=function(t){return(e,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function wn(t,e,s){if(typeof t!="object")throw new v("options must be an object",v.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let n=r.length;for(;n-- >0;){const o=r[n],i=Object.prototype.hasOwnProperty.call(e,o)?e[o]:void 0;if(i){const a=t[o],l=a===void 0||i(a,o,t);if(l!==!0)throw new v("option "+o+" must be "+l,v.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new v("Unknown option "+o,v.ERR_BAD_OPTION)}}const Fe={assertOptions:wn,validators:Ue},W=Fe.validators;let ae=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Mt,response:new Mt}}async request(t,e){try{return await this._request(t,e)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const n=(()=>{if(!r.stack)return"";const o=r.stack.indexOf(`
7
- `);return o===-1?"":r.stack.slice(o+1)})();try{if(!s.stack)s.stack=n;else if(n){const o=n.indexOf(`
8
- `),i=o===-1?-1:n.indexOf(`
9
- `,o+1),a=i===-1?"":n.slice(i+1);String(s.stack).endsWith(a)||(s.stack+=`
10
- `+n)}}catch{}}throw s}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=oe(this.defaults,e);const{transitional:s,paramsSerializer:r,headers:n}=e;s!==void 0&&Fe.assertOptions(s,{silentJSONParsing:W.transitional(W.boolean),forcedJSONParsing:W.transitional(W.boolean),clarifyTimeoutError:W.transitional(W.boolean),legacyInterceptorReqResOrdering:W.transitional(W.boolean)},!1),r!=null&&(c.isFunction(r)?e.paramsSerializer={serialize:r}:Fe.assertOptions(r,{encode:W.function,serialize:W.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),Fe.assertOptions(e,{baseUrl:W.spelling("baseURL"),withXsrfToken:W.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=n&&c.merge(n.common,n[e.method]);n&&c.forEach(["delete","get","head","post","put","patch","common"],y=>{delete n[y]}),e.headers=M.concat(o,n);const i=[];let a=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(e)===!1)return;a=a&&y.synchronous;const b=e.transitional||Qe;b&&b.legacyInterceptorReqResOrdering?i.unshift(y.fulfilled,y.rejected):i.push(y.fulfilled,y.rejected)});const l=[];this.interceptors.response.forEach(function(y){l.push(y.fulfilled,y.rejected)});let u,d=0,f;if(!a){const y=[os.bind(this),void 0];for(y.unshift(...i),y.push(...l),f=y.length,u=Promise.resolve(e);d<f;)u=u.then(y[d++],y[d++]);return u}f=i.length;let _=e;for(;d<f;){const y=i[d++],b=i[d++];try{_=y(_)}catch(h){b.call(this,h);break}}try{u=os.call(this,_)}catch(y){return Promise.reject(y)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(t){t=oe(this.defaults,t);const e=Yt(t.baseURL,t.url,t.allowAbsoluteUrls);return $t(e,t.params,t.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(t){ae.prototype[t]=function(e,s){return this.request(oe(s||{},{method:t,url:e,data:(s||{}).data}))}}),c.forEach(["post","put","patch"],function(t){function e(s){return function(r,n,o){return this.request(oe(o||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ae.prototype[t]=e(),ae.prototype[t+"Form"]=e(!0)});let vn=class js{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(n){s=n});const r=this;this.promise.then(n=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](n);r._listeners=null}),this.promise.then=n=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(n);return i.cancel=function(){r.unsubscribe(o)},i},e(function(n,o,i){r.reason||(r.reason=new we(n,o,i),s(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const s=this._listeners.indexOf(e);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const e=new AbortController,s=r=>{e.abort(r)};return this.subscribe(s),e.signal.unsubscribe=()=>this.unsubscribe(s),e.signal}static source(){let e;return{token:new js(function(s){e=s}),cancel:e}}};function Sn(t){return function(e){return t.apply(null,e)}}function En(t){return c.isObject(t)&&t.isAxiosError===!0}const ot={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ot).forEach(([t,e])=>{ot[e]=t});function ls(t){const e=new ae(t),s=Ct(ae.prototype.request,e);return c.extend(s,ae.prototype,e,{allOwnKeys:!0}),c.extend(s,e,null,{allOwnKeys:!0}),s.create=function(r){return ls(oe(t,r))},s}const N=ls(_e);N.Axios=ae,N.CanceledError=we,N.CancelToken=vn,N.isCancel=Wt,N.VERSION=as,N.toFormData=Le,N.AxiosError=v,N.Cancel=N.CanceledError,N.all=function(t){return Promise.all(t)},N.spread=Sn,N.isAxiosError=En,N.mergeConfig=oe,N.AxiosHeaders=M,N.formToJSON=t=>qt(c.isHTMLForm(t)?new FormData(t):t),N.getAdapter=is.getAdapter,N.HttpStatusCode=ot,N.default=N;const{Axios:Gi,AxiosError:Zi,CanceledError:Xi,isCancel:Qi,CancelToken:eo,VERSION:to,all:so,Cancel:ro,isAxiosError:no,spread:io,toFormData:oo,AxiosHeaders:ao,HttpStatusCode:co,formToJSON:lo,getAdapter:uo,mergeConfig:ho}=N,at=N.create({baseURL:location.origin,timeout:6e4,params:{}});at.interceptors.response.use(t=>t,t=>{if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(r){r&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let e=`HTTP ${t.response.status} - `;t.response?.statusText&&(e+=`${t.response.statusText} `),t.response?.config?.data&&(e+=`${t.response.config.data} `),t.response?.data?.message?e+=`${t.response.data.message}`:t.response?.data?.exception?e+=`${t.response.data.exception}`:t.response?.data?.error?.message?(t.response.data.error.class&&(e+=`${t.response.data.error.class} `),e+=`${t.response.data.error.message}`):e+=`${t.response?.data}`;const{$cosmosNotify:s}=window;throw s&&s.serious({title:"Network error",body:e}),t}else throw t});const Be=async function(t,e,{data:s,params:r={},headers:n,noAuth:o=!1,noScope:i=!1,onUploadProgress:a=!1}={}){if(!o){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}n.Authorization=localStorage.openc3Token}return n.manual=!0,!i&&!r.scope&&(r.scope=window.openc3Scope),at({method:t,url:e,data:s,params:r,headers:n,onUploadProgress:a})},ct={Accept:"application/json"},us={...ct,"Content-Type":"application/json"},xn={get:function(t,{params:e,headers:s=ct,noScope:r,noAuth:n,onUploadProgress:o}={}){return Be("get",t,{params:e,headers:s,noScope:r,noAuth:n,onUploadProgress:o})},put:function(t,{data:e,params:s,headers:r=us,noScope:n,noAuth:o,onUploadProgress:i}={}){return Be("put",t,{data:e,params:s,headers:r,noScope:n,noAuth:o,onUploadProgress:i})},post:function(t,{data:e,params:s,headers:r=us,noScope:n,noAuth:o,onUploadProgress:i}={}){return Be("post",t,{data:e,params:s,headers:r,noScope:n,noAuth:o,onUploadProgress:i})},delete:function(t,{params:e,headers:s=ct,noScope:r,noAuth:n,onUploadProgress:o}={}){return Be("delete",t,{params:e,headers:s,noScope:r,noAuth:n,onUploadProgress:o})}};let Ve=()=>({emit(t,...e){for(let s=this.events[t]||[],r=0,n=s.length;r<n;r++)s[r](...e)},events:{},on(t,e){return(this.events[t]||=[]).push(e),()=>{this.events[t]=this.events[t]?.filter(s=>e!==s)}}});class ve extends Error{constructor(e,s){e instanceof Error?(super(e.message),this.cause=e):super(e),this.reason=s,this.name="ReasonError"}}class lt extends ve{constructor(e){super("Rejected",e),this.name="SubscriptionRejectedError"}}class On extends ve{constructor(e){super(e||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class G extends ve{constructor(e,s){s?super(e,s):super("Disconnected",e),this.name="DisconnectedError"}}class Rn extends G{constructor(e){super(e,"stale_connection"),this.name="StaleConnectionError"}}function ds(t){return t?`{${Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>{let s=JSON.stringify(t[e]);return`${JSON.stringify(e)}:${s}`}).join(",")}}`:""}class Cn{constructor(e){this.channel=e,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",e=>{if(e.type==="info"){this._state||(this._state=this.stateFromInfo(e));return}this._state&&(e.type==="join"?this._state[e.id]=e.info:e.type==="leave"&&delete this._state[e.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(e=>e()),this.listeners.length=0}async join(e,s){if(!this._info)return this._info={id:String(e),info:s},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let e=await this.channel.perform("$presence:leave");return delete this._info,e}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let e=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(e),this._state}finally{delete this._promise}}stateFromInfo(e){return e.records.reduce((s,{id:r,info:n})=>(s[r]=n,s),{})}}const ce=Symbol("state");class hs{constructor(e={}){this.emitter=Ve(),this.params=Object.freeze(e),this.presence=new Cn(this),this.initialConnect=!0,this[ce]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=ds({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[ce]}attached(e){if(this.receiver){if(this.receiver!==e)throw Error("Already connected to a different receiver");return!1}return this.receiver=e,!0}connecting(){this[ce]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[ce]="connected";let e=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:e})):this.emit("connect",{reconnect:!0,restored:e})}restored(){if(this.state==="connected")throw Error("Already connected");this[ce]="connected";let e=!0,s=!0;this.initialConnect=!1,this.emit("connect",{reconnect:s,restored:e})}disconnected(e){this.state==="disconnected"||this.state==="closed"||(this[ce]="disconnected",this.presence.reset(),this.emit("disconnect",e))}closed(e){this.state!=="closed"&&(this[ce]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",e))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(e,s){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,e,s)}async send(e){return this.perform(void 0,e)}async whisper(e){try{await this.perform("$whisper",e)}catch(s){let r=this.receiver?this.receiver.logger:null;r&&r.warn("whisper failed: ",s)}}receive(e,s){this.emit("message",e,s)}on(e,s){return this.emitter.on(e,s)}once(e,s){let r=this.emitter.on(e,(...n)=>{r(),s(...n)});return r}emit(e,...s){return this.emitter.emit(e,...s)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((e,s)=>{let r=[()=>delete this._pendingSubscribe];r.push(this.on("connect",()=>{r.forEach(n=>n()),e()})),r.push(this.on("close",n=>{r.forEach(o=>o()),s(n||new ve("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class kn{constructor(e){this.id=e,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(e){this.channels.includes(e)||this.channels.push(e)}remove(e){let s=this.channels.indexOf(e);s>-1&&this.channels.splice(s,1)}notify(e,...s){this.state=e==="restored"?"connected":e,s.length===1?this.channels.forEach(r=>r[e](s[0])):this.channels.forEach(r=>r[e]())}pending(e){this._checkIntent(e);let s=this._pendings[0];return!s||s.intent!==e?Promise.resolve():s.promise}ensureResubscribed(){this.disposed||(this.intent=void 0,this.ensureSubscribed())}ensureSubscribed(){if(this.intent!=="subscribed"){if(this.disposed)throw Error("Subscription is disposed");this.intent="subscribed",!this._mergeWithPending("unsubscribed")&&this.subscriber(this)}}maybeUnsubscribe(){this.disposed||this.intent==="unsubscribed"||this.channels.length>0||(this.intent="unsubscribed",this._mergeWithPending("subscribed"))||this.unsubscriber(this)}async acquire(e){this._checkIntent(e);let s,r={promise:new Promise(o=>{s=o}),intent:e,release:()=>{this._pendings.splice(this._pendings.indexOf(r),1),s(r)},canceled:!1,acquired:!1},n=this._pendingTop;return this._pendings.push(r),n&&await n.promise,this.gvl&&await this.gvl.acquire(r,e),r.acquired=!0,r}close(e){this.disposed=!0,this.intent=void 0,this.notify("closed",e)}_checkIntent(e){if(!(e==="unsubscribed"||e==="subscribed"))throw Error(`Unknown subscription intent: ${e}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(e){let s=this._pendingTop;return!s||s.acquired||s.intent!==e?!1:(this._pendings.pop(),s.canceled=!0,!0)}}class An{constructor(){this.queue=[]}async acquire(e,s){s==="subscribed"&&(this.queue.push(e.promise.then(()=>{this.queue.splice(this.queue.indexOf(e),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class In{constructor(e){e.concurrentSubscribes===!1&&(this.glv=new An),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(e){return this._subscriptions[e]}create(e,{subscribe:s,unsubscribe:r}){let n=this._subscriptions[e]=new kn(e);return n.remoteId=this._localToRemote[e],n.subscriber=s,n.unsubscriber=r,n.gvl=this.glv,n}remove(e){delete this._subscriptions[e],delete this._localToRemote[e]}storeRemoteId(e,s){this._localToRemote[e]=s;let r=this.get(e);r&&(r.remoteId=s)}}class Tn{constructor(e={}){this.subscriptions=new In(e),this._pendingMessages=[],this._remoteToLocal={}}subscribe(e,s){this._remoteToLocal[s]=e,this.subscriptions.storeRemoteId(e,s),this.flush(s)}unsubscribe(e){let s=this.subscriptions.get(e);if(!s)return;let r=s.remoteId;r&&delete this._remoteToLocal[r],this.subscriptions.remove(e)}transmit(e,s,r){let n=this._remoteToLocal[e];if(!n){this._pendingMessages.push([e,s,r]);return}let o=this.subscriptions.get(n);o&&o.channels.forEach(i=>{i.receive(s,r)})}notify(e,s,r){let n=this._remoteToLocal[e];if(!n)return;let o=this.subscriptions.get(n);o&&o.channels.forEach(i=>i.emit(s,r))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(e=>e.channels)}flush(e){let s=[];for(let r of this._pendingMessages)r[0]===e?this.transmit(r[0],r[1],r[2]):s.push(r);this._pendingMessages=s}}const fs={debug:0,info:1,warn:2,error:3};class ps{constructor(e){this.level=e||"warn"}log(e,s,r){fs[e]<fs[this.level]||this.writeLogEntry(e,s,r)}writeLogEntry(){throw Error("Not implemented")}debug(e,s){this.log("debug",e,s)}info(e,s){this.log("info",e,s)}warn(e,s){this.log("warn",e,s)}error(e,s){this.log("error",e,s)}}class Se extends ps{writeLogEntry(){}}class Pn{encode(e){return JSON.stringify(e)}decode(e){try{return JSON.parse(e)}catch{}}}let Ln=0;class ms{constructor(e={}){let{logger:s}=e;this.logger=s||new Se,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=e.subscribeCooldownInterval||250,this.subscribeRetryInterval=e.subscribeRetryInterval||5e3}attached(e){this.cable=e}subscribe(e,s){let r={channel:e};s&&Object.assign(r,s);let n=ds(r);if(this.pendingUnsubscriptions[n]){let i=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${i}`,n),new Promise(a=>{setTimeout(()=>{a(this.subscribe(e,s))},i)})}if(this.pendingSubscriptions[n])return this.logger.warn("subscription is already pending, skipping",n),Promise.reject(Error("Already subscribing"));let o=this.subscribeRetryInterval;return new Promise((i,a)=>{let l=++Ln;this.pendingSubscriptions[n]={resolve:i,reject:a,id:l},this.cable.send(this.buildSubscribeRequest(n)),this.maybeRetrySubscribe(l,n,o)})}buildSubscribeRequest(e){return{command:"subscribe",identifier:e}}maybeRetrySubscribe(e,s,r){setTimeout(()=>{let n=this.pendingSubscriptions[s];n&&n.id===e&&(this.logger.warn(`no subscription ack received in ${r}ms, retrying subscribe`,s),this.cable.send(this.buildSubscribeRequest(s)),this.maybeExpireSubscribe(e,s,r))},r)}maybeExpireSubscribe(e,s,r){setTimeout(()=>{let n=this.pendingSubscriptions[s];n&&n.id===e&&(delete this.pendingSubscriptions[s],n.reject(new On(`Haven't received subscription ack in ${r*2}ms for ${s}`)))},r)}unsubscribe(e){return this.cable.send({command:"unsubscribe",identifier:e}),this.pendingUnsubscriptions[e]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[e]},this.subscribeCooldownInterval),Promise.resolve()}perform(e,s,r){return s==="$whisper"?this.whisper(e,r):(r||(r={}),r.action||=s,this.cable.send({command:"message",identifier:e,data:JSON.stringify(r)}),Promise.resolve())}whisper(e,s){return this.cable.send({command:"whisper",identifier:e,data:s}),Promise.resolve()}receive(e){if(typeof e!="object"){this.logger.error("unsupported message format",{message:e});return}let{type:s,identifier:r,message:n,reason:o,reconnect:i}=e;if(s==="ping")return this.cable.keepalive(e.message);if(this.cable.keepalive(),s==="welcome"){let a=e.sid;return a&&this.cable.setSessionId(a),this.cable.connected()}if(s==="disconnect"){let a=new G(o);this.reset(a),i===!1?this.cable.closed(a):this.cable.disconnected(a);return}if(s==="confirm_subscription"){let a=this.pendingSubscriptions[r];if(!a){this.logger.error("subscription not found, unsubscribing",{type:s,identifier:r}),this.unsubscribe(r);return}return delete this.pendingSubscriptions[r],a.resolve(r)}if(s==="reject_subscription"){let a=this.pendingSubscriptions[r];return a?(delete this.pendingSubscriptions[r],a.reject(new lt)):this.logger.error("subscription not found",{type:s,identifier:r})}if(n)return{identifier:r,message:n};this.logger.warn(`unknown message type: ${s}`,{message:e})}reset(e){for(let s in this.pendingSubscriptions)this.pendingSubscriptions[s].reject(e);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const gs=()=>Date.now()/1e3|0;class Nn extends ms{constructor(e={}){super(e),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=e.historyTimestamp,this.disableSessionRecovery=e.disableSessionRecovery,this.restoreSince===void 0&&(this.restoreSince=gs()),this.sessionId=void 0,this.sendPongs=e.pongs}reset(e){for(let s in this.pendingPresence)this.pendingPresence[s].reject(e);return this.pendingPresence={},super.reset()}receive(e){if(typeof e!="object"){this.logger.error("unsupported message format",{message:e});return}let{type:s,identifier:r,message:n}=e;if(s==="disconnect")return delete this.sessionId,this.cable.setSessionId(""),super.receive(e);if(s==="reject_subscription")return super.receive(e);if(s==="confirm_subscription")return this.subscriptionStreams[r]||(this.subscriptionStreams[r]=new Set),super.receive(e);if(s==="ping")return this.restoreSince&&(this.restoreSince=gs()),this.sendPongs&&this.sendPong(),this.cable.keepalive(e.message);if(this.cable.keepalive(),s==="confirm_history"){this.logger.debug("history result received",e),this.cable.notify("history_received",r);return}if(s==="reject_history"){this.logger.warn("failed to retrieve history",e),this.cable.notify("history_not_found",r);return}if(s==="welcome"){if(this.disableSessionRecovery||(this.sessionId=e.sid,this.sessionId&&this.cable.setSessionId(this.sessionId)),e.restored){let o=e.restored_ids||Object.keys(this.subscriptionStreams);for(let i of o)this.cable.send({identifier:i,command:"history",history:this.historyRequestFor(i)}),this.presenceInfo[i]&&this.cable.send({identifier:i,command:"join",presence:this.presenceInfo[i]});return this.cable.restored(o)}return this.cable.connected(this.sessionId)}if(s==="presence"){let o=n.type;if(o==="info"){let i=this.pendingPresence[r];i&&(delete this.pendingPresence[r],i.resolve(n))}else if(o==="error"){let i=this.pendingPresence[r];i&&(delete this.pendingPresence[r],i.reject(new Error("failed to retrieve presence")))}return{type:s,identifier:r,message:n}}if(n){let o=this.trackStreamPosition(r,e.stream_id,e.epoch,e.offset);return{identifier:r,message:n,meta:o}}this.logger.warn(`unknown message type: ${s}`,{message:e})}perform(e,s,r){switch(s){case"$presence:join":return this.join(e,r);case"$presence:leave":return this.leave(e,r);case"$presence:info":return this.presence(e,r)}return super.perform(e,s,r)}unsubscribe(e){return delete this.presenceInfo[e],super.unsubscribe(e)}buildSubscribeRequest(e){let s=super.buildSubscribeRequest(e),r=this.historyRequestFor(e);r&&(s.history=r,this.pendingHistory[e]=!0);let n=this.presenceInfo[e];return n&&(s.presence=n),s}recoverableClosure(){return!!this.sessionId}historyRequestFor(e){let s={},r=!1;if(this.subscriptionStreams[e])for(let n of this.subscriptionStreams[e]){let o=this.streamsPositions[n];o&&(r=!0,s[n]=o)}if(!(!r&&!this.restoreSince))return{since:this.restoreSince,streams:s}}trackStreamPosition(e,s,r,n){if(!(!s||!r))return this.subscriptionStreams[e]||(this.subscriptionStreams[e]=new Set),this.subscriptionStreams[e].add(s),this.streamsPositions[s]={epoch:r,offset:n},{stream:s,epoch:r,offset:n}}async sendPong(){await new Promise(e=>setTimeout(e,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(e,s){return this.presenceInfo[e]=s,this.cable.send({command:"join",identifier:e,presence:s}),Promise.resolve()}async leave(e,s){return delete this.presenceInfo[e],this.cable.send({command:"leave",identifier:e,presence:s}),Promise.resolve()}presence(e,s){return this.pendingPresence[e]?(this.logger.warn("presence is already pending, skipping",e),Promise.reject(Error("presence request is already pending"))):new Promise((r,n)=>{this.pendingPresence[e]={resolve:r,reject:n},this.cable.send({command:"presence",identifier:e,data:s})})}}class jn extends ve{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class bs extends hs{static identifier="__ghost__";constructor(e,s){super(s),this.channelId=e}set channelId(e){this._channelId=e}get channelId(){return this._channelId}}const Dn="$pubsub";class _s extends hs{static identifier=Dn;async perform(e,s){if(e.startsWith("$"))return super.perform(e,s);throw Error("not implemented")}}const le=Symbol("state");let Un=class{constructor({transport:t,protocol:e,encoder:s,logger:r,lazy:n,hubOptions:o,performFailures:i,transportConfigurator:a}){this.emitter=Ve(),this.transport=t,this.encoder=s,this.logger=r||new Se,this.protocol=e,this.performFailures=i||"throw",this.protocol.attached(this),this.hub=new Tn(o||{}),this[le]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transportConfigurator=a,this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,n===!1&&this.connect().catch(()=>{})}get state(){return this[le]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let t=this.state==="idle";this[le]="connecting";let e=this.pendingConnect();this.logger.debug("connecting");try{this.transportConfigurator&&await this.transportConfigurator(this.transport,{initial:t}),await this.transport.open()}catch(s){this.handleClose(s)}return e}setSessionId(t){this.sessionId=t,this.transport.setParam("sid",t)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[le]="connected",this.recovering&&this.hub.subscriptions.all().forEach(e=>e.notify("disconnected",new G("recovery_failed"))),this.hub.subscriptions.all().forEach(e=>this._resubscribe(e));let t=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:t})):this.emit("connect",{reconnect:!0,restored:t})}restored(t){this.logger.info("connection recovered",{remoteIds:t}),this[le]="connected",this.hub.subscriptions.all().forEach(r=>{t&&r.remoteId&&t.includes(r.remoteId)?r.notify("restored"):(r.notify("disconnected",new G("recovery_failed")),this._resubscribe(r))});let e=!this.initialConnect,s=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:s})}notify(t,e,s){e&&typeof e!="string"&&(s=e,e=void 0),e?this.hub.notify(e,"info",{type:t,data:s}):this.emit("info",{type:t,data:s})}handleClose(t){this.logger.debug("transport closed",{error:t}),this.disconnected(new G(t,"transport_closed"))}disconnected(t){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:t}),this[le]="disconnected",this.recovering=this.protocol.recoverableClosure(t),this.recovering?this.hub.subscriptions.all().forEach(e=>e.notify("connecting")):this.hub.subscriptions.all().forEach(e=>{e.notify("disconnected",t)}),this.protocol.reset(t),this.hub.close(),this.transport.close(),this.emit("disconnect",t))}closed(t){if(this.state==="closed"||this.state==="idle")return;let e;t&&(e=t instanceof G?t:new G(t,void 0)),this.logger.info("closed",{reason:t||"user"}),this[le]="closed";let s=e||new G("cable_closed");this.hub.subscriptions.all().forEach(r=>r.notify("disconnected",s)),this.hub.close(),this.protocol.reset(),this.transport.close(),this.initialConnect=!0,this.emit("close",e)}disconnect(){this.closed()}handleIncoming(t){if(this.state==="closed"||this.state==="idle")return;let e=this.encoder.decode(t);if(e===void 0){this.logger.error("failed to decode message",{message:t});return}this.logger.debug("incoming data",e);let s=this.protocol.receive(e);if(s){this.logger.debug("processed incoming message",s);let{type:r,identifier:n,message:o,meta:i}=s;r?this.hub.notify(n,r,o):this.hub.transmit(n,o,i)}}send(t){if(this.state==="closed")throw Error("Cable is closed");let e=this.encoder.encode(t);if(e===void 0){this.logger.error("failed to encode message",{message:t});return}this.logger.debug("outgoing message",t),this.transport.send(e)}keepalive(t){this.emit("keepalive",t)}streamFrom(t){let e=new _s({stream_name:t});return this.subscribe(e)}streamFromSigned(t){let e=new _s({signed_stream_name:t});return this.subscribe(e)}subscribeTo(t,e){let s,r;return typeof t=="string"&&(r=t,t=bs),s=r?new t(r,e):new t(e),this.subscribe(s)}subscribe(t){if(!t.attached(this))return t;let e=t.identifier;t.connecting();let s=this.hub.subscriptions.get(e)||this.hub.subscriptions.create(e,{subscribe:r=>this._subscribe(r,t.channelId,t.params),unsubscribe:r=>this._unsubscribe(r)});return s.add(t),s.intent==="subscribed"&&s.state==="connected"&&t.connected(),s.ensureSubscribed(),t}async _resubscribe(t){t.intent!=="subscribed"||!t.channels[0]||(t.notify("connecting"),t.ensureResubscribed())}async _subscribe(t,e,s){let r=t.id;if(this.state==="idle"&&this.connect().catch(()=>{}),this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r});return}this.logger.debug("acquiring subscribe lock",{identifier:r});let n=await t.acquire("subscribed");if(n.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:r}),n.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:r}),t.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),n.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r}),n.release();return}if(t.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:r}),t.notify("connected"),n.release();return}let o={identifier:e,params:s};this.logger.debug("subscribing",o);try{let i=await this.protocol.subscribe(e,s);this.hub.subscribe(r,i),this.logger.debug("subscribed",{...o,remoteId:i}),t.notify("connected")}catch(i){if(i){if(i instanceof lt&&this.logger.warn("rejected",o),i instanceof G){this.logger.debug("disconnected during subscription; will retry on connect",o),n.release();return}this.logger.error("failed to subscribe",{error:i,...o})}t.close(i),this.hub.unsubscribe(r)}n.release()}unsubscribe(t){let e=t.identifier,s=this.hub.subscriptions.get(e);if(!s)throw Error(`Subscription not found: ${e}`);s.remove(t),t.closed(),s.maybeUnsubscribe()}async _unsubscribe(t){let e=t.id;this.logger.debug("acquiring unsubscribe lock",{identifier:e});let s=await t.acquire("unsubscribed");if(s.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:e}),s.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:e}),t.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:e,intent:t.intent}),s.release();return}if(t.state==="disconnected"||t.state==="closed"){this.logger.debug(`already ${t.state} connected, skip unsubscribe command`,{identifier:e}),s.release();return}let r=t.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:r}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:e}),t.close(),this.hub.unsubscribe(e),s.release();return}try{await this.protocol.unsubscribe(r),this.logger.debug("unsubscribed remotely",{id:e})}catch(n){n&&(n instanceof G?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:e,error:n}):this.logger.error("unsubscribe failed",{id:e,error:n}))}t.intent==="unsubscribed"?(t.close(),this.hub.unsubscribe(e)):t.state="closed",s.release()}async perform(t,e,s){if(this.performFailures==="throw")return this._perform(t,e,s);try{return await this._perform(t,e,s)}catch(r){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:r});return}}async _perform(t,e,s){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new jn;let r=this.hub.subscriptions.get(t);if(!r)throw Error(`Subscription not found: ${t}`);if(await r.pending("subscribed"),r.intent!=="subscribed")throw Error(`Subscription is closed: ${t}`);let n=r.remoteId,o={id:n,action:e,payload:s};this.logger.debug("perform",o);try{let i=await this.protocol.perform(n,e,s);return i&&this.logger.debug("perform result",{message:i,request:o}),i}catch(i){throw this.logger.error("perform failed",{error:i,request:o}),i}}on(t,e){return this.emitter.on(t,e)}once(t,e){let s=this.emitter.on(t,(...r)=>{s(),e(...r)});return s}emit(t,...e){return this.emitter.emit(t,...e)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((t,e)=>{let s=[()=>delete this._pendingConnect];s.push(this.on("connect",()=>{s.forEach(r=>r()),t()})),s.push(this.on("close",r=>{s.forEach(n=>n()),e(r)})),s.push(this.on("disconnect",r=>{s.forEach(n=>n()),e(r)}))}),this._pendingConnect)}};const Fn={maxMissingPings:2,maxReconnectAttempts:1/0},pe=()=>Date.now(),ys=(t,e)=>{e=e||{};let{backoffRate:s,jitterRatio:r,maxInterval:n}=e;return s=s||2,r===void 0&&(r=.5),o=>{let i=t*s**o,a=i*s,l=i+(a-i)*Math.random(),u=2*(Math.random()-.5)*r;return l=l*(1+u),n&&n<l&&(l=n),l}};let ws=class{constructor({pingInterval:t,...e}){if(this.pingInterval=t,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${t}`);if(e=Object.assign({},Fn,e),this.strategy=e.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=e.maxMissingPings,this.maxReconnectAttempts=e.maxReconnectAttempts,this.logger=e.logger||new Se,this.state="pending_connect",this.attempts=0,this.disconnectedAt=pe()}watch(t){this.target=t,this.initListeners()}reconnectNow(){return this.state==="connected"||this.state==="pending_connect"||this.state==="closed"?!1:(this.cancelReconnect(),this.state="pending_connect",this.target.connect().catch(t=>{this.logger.info("Failed at reconnecting: "+t)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=pe(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=pe(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=pe(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=pe()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(t=>t()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let t=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},t)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let t=pe()-this.pingedAt;t>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${t}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new Rn))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let t=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${t}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),t)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class Bn{constructor(e,s={}){this.transports=e,this.transport=null,this.emitter=Ve(),this.unbind=[],this.logger=s.logger||new Se}displayName(){return"fallbacked transport"}async open(){for(let e=0;e<this.transports.length;e++){let s=this.transports[e];try{this.transport=s,this.resetListeners(),this.logger.debug(`Trying to connect via ${s.displayName()}`),await s.open(),this.logger.debug(`Connected via ${s.displayName()}`);return}catch(r){this.logger.debug(`Failed to connect via ${s.displayName()}: ${r.message}`)}}throw this.transport=null,this.resetListeners(),new Error("Couldn't connect via any available transport")}send(e){if(!this.transport)throw new Error("No transport is open");this.transport.send(e)}async close(){if(!this.transport)throw new Error("No transport is open");await this.transport.close(),this.transport=null}setURL(){throw new Error("Not implemented. Set URL for each transport separately")}setParam(e,s){this.transports.forEach(r=>{r.setParam(e,s)})}setToken(e,s){this.transports.forEach(r=>{r.setToken(e,s)})}on(e,s){return this.emitter.on(e,s)}once(e,s){let r=this.emitter.on(e,(...n)=>{r(),s(...n)});return r}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(e=>e()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",e=>{this.emitter.emit("data",e)}),this.transport.on("close",e=>{this.emitter.emit("close",e)}),this.transport.on("error",e=>{this.emitter.emit("error",e)}))}}class Vn{constructor(e,s={}){this.url=e;let r=s.websocketImplementation;if(r)this.Impl=r;else if(typeof WebSocket<"u")this.Impl=WebSocket;else throw new Error("No WebSocket support");this.connected=!1,this.emitter=Ve();let{format:n,subprotocol:o,authStrategy:i}=s;this.format=n||"text",this.connectionOptions=s.websocketOptions,this.authStrategy=i||"param",this.authProtocol="",this.subprotocol=o}displayName(){return"WebSocket("+this.url+")"}open(){let e=this.subprotocol;return this.authStrategy==="sub-protocol"&&(e=[this.subprotocol,this.authProtocol]),this.connectionOptions?this.ws=new this.Impl(this.url,e,this.connectionOptions):this.ws=new this.Impl(this.url,e),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((s,r)=>{let n=[];n.push(this.once("open",()=>{n.forEach(o=>o()),s()})),n.push(this.once("close",()=>{n.forEach(o=>o()),r(Error("WS connection closed"))}))})}setURL(e){this.url=e}setParam(e,s){let r=new URL(this.url);r.searchParams.set(e,s);let n=`${r.protocol}//${r.host}${r.pathname}?${r.searchParams}`;this.setURL(n)}setToken(e,s="jid"){if(this.authStrategy==="param")this.setParam(s,e);else if(this.authStrategy==="header"){this.connectionOptions=this.connectionOptions||{},this.connectionOptions.headers=this.connectionOptions.headers||{};let r=`x-${s}`.toLowerCase();r=Object.keys(this.connectionOptions.headers).find(n=>n.toLowerCase()===r)||r,this.connectionOptions.headers[r]=e}else if(this.authStrategy==="sub-protocol")this.authProtocol=`anycable-token.${e}`;else throw new Error("Unknown auth strategy: "+this.authStrategy)}send(e){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(e)}close(){this.ws?this.onclose():this.connected=!1}on(e,s){return this.emitter.on(e,s)}once(e,s){let r=this.emitter.on(e,(...n)=>{r(),s(...n)});return r}initListeners(){this.ws.onerror=e=>{this.connected&&this.emitter.emit("error",e.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=e=>{let s=e.data;this.format==="binary"&&(s=new Uint8Array(s)),this.emitter.emit("data",s)},this.ws.onopen=()=>{this.connected=!0,this.emitter.emit("open")}}onclose(){this.ws.onclose=void 0,this.ws.onmessage=void 0,this.ws.onopen=void 0,this.ws.close(),delete this.ws,this.connected=!1,this.emitter.emit("close")}}class $n{constructor(e){this.channel=e}notify(e,...s){typeof this[e]=="function"&&this[e](...s)}perform(e,s={}){this.channel.perform(e,s)}send(e){this.channel.send(e)}whisper(e){return this.channel.whisper(e)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class Mn extends bs{constructor(e,s,r){super(e,s),this.subscription=new $n(this),Object.assign(this.subscription,r),this.on("connect",({reconnect:n})=>this.subscription.notify("connected",{reconnected:n})),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",n=>this.subscription.notify("received",n)),this.on("close",n=>{n&&n instanceof lt?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class qn{constructor(e){this.cable=e}create(e,s){let r,n;typeof e=="object"?(r=e.channel,delete e.channel,n=e):(r=e,n={});let o=new Mn(r,n,s);return o.subscription.notify("initialized"),this.cable.subscribe(o),o.subscription}findAll(e){return this.cable.hub.channels.filter(s=>s.identifier===e).map(s=>s.subscription)}}class zn{constructor(e){this.cable=e,this.subscriptions=new qn(e)}send(e){return this.cable.send(e)}connect(){return this.cable.connect()}disconnect(){return this.cable.disconnect()}ensureActiveConnection(){return this.cable.connect()}}const vs={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function Wn(t,e){if(typeof t=="object"&&typeof e>"u"&&(e=t,t=void 0),e=e||{},!t&&!e.transport)throw Error("URL or transport must be specified");e=Object.assign({},vs,e);let{protocol:s,websocketImplementation:r,websocketFormat:n,websocketOptions:o,websocketAuthStrategy:i,fallbacks:a,logLevel:l,logger:u,transport:d,encoder:f,lazy:_,monitor:y,pingInterval:b,reconnectStrategy:h,maxMissingPings:E,maxReconnectAttempts:k,subprotocol:x,tokenRefresher:p,historyTimestamp:I,protocolOptions:P,concurrentSubscribes:H,performFailures:V,transportConfigurator:Z,auth:O}=e;if(u=u||new Se(l),typeof s=="string"){x=x||s;let Q=s.substring(0,s.lastIndexOf("-")),ee=s.substring(s.lastIndexOf("-")+1);if(P=P||{},Q==="actioncable-v1")s=new ms({logger:u,...P});else if(Q==="actioncable-v1-ext")s=new Nn({logger:u,historyTimestamp:I,...P});else throw Error(`Protocol is not supported yet: ${s}`);if(ee==="json")f=f||new Pn,n=n||"text";else if(ee==="msgpack"){if(n="binary",!f)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(ee==="protobuf"){if(n=n||"binary",!f)throw Error("Protobuf encoder must be specified explicitly. Use `@anycable/protobuf-encoder` package or build your own")}else throw Error(`Protocol is not supported yet: ${s}`)}if(!s)throw Error("Protocol must be specified");d=d||new Vn(t,{websocketImplementation:r,websocketOptions:o,subprotocol:x,authStrategy:i,format:n}),a&&(d=new Bn([d,...a],{logger:u})),O&&O.token&&d.setToken(O.token,O.param||"jid"),h=h||ys(b),y!==!1&&(y=y||new ws({pingInterval:b,reconnectStrategy:h,maxMissingPings:E,maxReconnectAttempts:k,logger:u}));let D={concurrentSubscribes:H},X=new Un({protocol:s,transport:d,encoder:f,logger:u,lazy:_,hubOptions:D,performFailures:V,transportConfigurator:Z});return y&&(y.watch(X),X.monitor=y),p&&Hn(X,async()=>{try{await p(d)}catch(Q){return u.error("Failed to refresh authentication token: "+Q),!1}return X.connect().catch(()=>{}),!0}),X}function Hn(t,e){let s=!1;t.on("connect",()=>s=!1),t.on("close",async r=>{if(r){if(s){t.logger.warn("Token auto-refresh is disabled",r);return}r.reason==="token_expired"&&(s=!0,await e())}})}class Jn extends ps{writeLogEntry(e,s,r){r?console[e](s,r):console[e](s)}}class Kn extends ws{watch(e){super.watch(e),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let e=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},s=n=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:n})},r=()=>this.disconnect(new G("page_frozen"));document.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",s,!1),window.addEventListener("online",s,!1),window.addEventListener("resume",s,!1),window.addEventListener("freeze",r,!1),this.unbind.push(()=>{document.removeEventListener("visibilitychange",e,!1),window.removeEventListener("focus",s,!1),window.removeEventListener("online",s,!1),window.removeEventListener("resume",s,!1),window.removeEventListener("freeze",r,!1)})}}disconnect(e){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:e.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(e))}}const Yn=["cable","action-cable"],Gn="/cable",$e=(t,e)=>{for(let s of Yn){let r=t.head.querySelector(`meta[name='${s}-${e}']`);if(r)return r.getAttribute("content")}},Ss=t=>t.match(/wss?:\/\//)?t:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${t}`:t,Zn=()=>{if(typeof document<"u"&&document.head){let t=$e(document,"url");if(t)return Ss(t)}return Ss(Gn)},Xn=()=>{if(typeof document<"u"&&document.head){let t=$e(document,"history-timestamp");if(t)return t|0}},Qn=()=>{if(typeof document<"u"&&document.head)return $e(document,"token")},ei=()=>{if(typeof document<"u"&&document.head)return $e(document,"token-param")};function ti(t,e){typeof t=="object"&&typeof e>"u"&&(e=t,t=void 0),t=t||Zn(),e=e||{},e.historyTimestamp||=Xn();let s=Qn();if(s){let u=ei();e.auth=Object.assign({token:s,param:u},e.auth||{})}e=Object.assign({},vs,e);let{logLevel:r,logger:n,pingInterval:o,reconnectStrategy:i,maxMissingPings:a,maxReconnectAttempts:l}=e;return n=e.logger=e.logger||new Jn(r),i=e.reconnectStrategy=e.reconnectStrategy||ys(o),e.monitor!==!1&&(e.monitor=e.monitor||new Kn({pingInterval:o,reconnectStrategy:i,maxMissingPings:a,maxReconnectAttempts:l,logger:n})),Wn(t,e)}function si(t,e){let s=ti(t,e);return new zn(s)}class Es{constructor(e="/openc3-api/cable",s="/openc3-api/auth/otp"){this._cable=null,this._url=e,this._otpUrl=s}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(e,s,r={},n={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(o=>(o&&OpenC3Auth.setTokens(),xn.get(this._otpUrl,{params:{scope:s}}))).then(({data:o})=>{if(this._cable==null){const i=new URL(this._url,document.baseURI);i.searchParams.set("scope",s),i.searchParams.set("authorization",o),this._cable=si(i.href)}return this._cable.subscriptions.create({channel:e,...n},r)})}recordPing(){}}function Ee(t){return ri.test(t)}const ri=/^-?[0-9]+$/;function xs(t){return ni.test(t)}const ni=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Os(t,e){if(Ee(t))return Number.isSafeInteger(Number.parseInt(t,10));const s=Number.parseFloat(t),r=String(s);if(t===r)return!0;const n=Rs(t),o=Rs(r);return!!(n===o||e?.approx===!0&&!Ee(t)&&o.length>=14&&n.startsWith(o.substring(0,14)))}let xe=(function(t){return t.underflow="underflow",t.overflow="overflow",t.truncate_integer="truncate_integer",t.truncate_float="truncate_float",t})({});function ii(t){if(Os(t,{approx:!1}))return;if(Ee(t))return xe.truncate_integer;const e=Number.parseFloat(t);return Number.isFinite(e)?e===0?xe.underflow:xe.truncate_float:xe.overflow}function Rs(t){const{start:e,end:s}=oi(t),r=t.substring(e,s),n=r.indexOf(".");return n===-1?r:r.substring(0,n)+r.substring(n+1)}function oi(t){let e=0;for(t[0]==="-"&&e++;t[e]==="0"||t[e]===".";)e++;let s=t.lastIndexOf("e");for(s===-1&&(s=t.lastIndexOf("E")),s===-1&&(s=t.length);(t[s-1]==="0"||t[s-1]===".")&&s>e;)s--;return{start:e,end:s}}class ai{isLosslessNumber=!0;constructor(e){if(!xs(e))throw new Error(`Invalid number (value: "${e}")`);this.value=e}valueOf(){const e=ii(this.value);if(e===void 0||e===xe.truncate_float)return Number.parseFloat(this.value);if(Ee(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${e} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function ci(t){return t&&typeof t=="object"&&t.isLosslessNumber||!1}function li(t){return new ai(t)}function ui(t,e){return ut({"":t},"",t,e)}function ut(t,e,s,r){return Array.isArray(s)?r.call(t,e,hi(s,r)):s&&typeof s=="object"&&!ci(s)?r.call(t,e,di(s,r)):r.call(t,e,s)}function di(t,e){for(const s of Object.keys(t)){const r=ut(t,s,t[s],e);r!==void 0?t[s]=r:delete t[s]}return t}function hi(t,e){for(let s=0;s<t.length;s++)t[s]=ut(t,String(s),t[s],e);return t}function fi(t,e,s){const r=typeof s=="function"?{parseNumber:s}:s,n=r?.parseNumber??li,o=r?.onDuplicateKey??V;let i=0;const a=d();return k(a),p(),e?ui(a,e):a;function l(){if(t.charCodeAt(i)===yi){i++,_();const S={};let A=!0;for(;i<t.length&&t.charCodeAt(i)!==ks;){A?A=!1:(h(),_());const J=i,te=y();if(te===void 0){H();return}_(),E();const U=d();if(U===void 0){Q();return}if(Object.prototype.hasOwnProperty.call(S,te)&&!dt(U,S[te])){const se=o({key:te,position:J+1,oldValue:S[te],newValue:U});se!==void 0&&(S[te]=se)}else S[te]=U}return t.charCodeAt(i)!==ks&&Z(),i++,S}}function u(){if(t.charCodeAt(i)===wi){i++,_();const S=[];let A=!0;for(;i<t.length&&t.charCodeAt(i)!==As;){A?A=!1:h();const J=d();x(J),S.push(J)}return t.charCodeAt(i)!==As&&O(),i++,S}}function d(){_();const S=y()??b()??l()??u()??f("true",!0)??f("false",!1)??f("null",null);return _(),S}function f(S,A){if(t.slice(i,i+S.length)===S)return i+=S.length,A}function _(){for(;pi(t.charCodeAt(i));)i++}function y(){if(t.charCodeAt(i)===ht){i++;let S="";for(;i<t.length&&t.charCodeAt(i)!==ht;){if(t.charCodeAt(i)===_i){const A=t[i+1],J=bi[A];J!==void 0?(S+=J,i++):A==="u"?Me(t.charCodeAt(i+2))&&Me(t.charCodeAt(i+3))&&Me(t.charCodeAt(i+4))&&Me(t.charCodeAt(i+5))?(S+=String.fromCharCode(Number.parseInt(t.slice(i+2,i+6),16)),i+=5):ee(i):X(i)}else gi(t.charCodeAt(i))?S+=t[i]:D(t[i]);i++}return P(),i++,S}}function b(){const S=i;if(t.charCodeAt(i)===Is&&(i++,I(S)),t.charCodeAt(i)===ft)i++;else if(mi(t.charCodeAt(i)))for(i++;qe(t.charCodeAt(i));)i++;if(t.charCodeAt(i)===ki)for(i++,I(S);qe(t.charCodeAt(i));)i++;if(t.charCodeAt(i)===Li||t.charCodeAt(i)===Pi)for(i++,(t.charCodeAt(i)===Is||t.charCodeAt(i)===Oi)&&i++,I(S);qe(t.charCodeAt(i));)i++;if(i>S)return n(t.slice(S,i))}function h(){if(t.charCodeAt(i)!==Ci)throw new SyntaxError(`Comma ',' expected after value ${T()}`);i++}function E(){if(t.charCodeAt(i)!==Ai)throw new SyntaxError(`Colon ':' expected after property name ${T()}`);i++}function k(S){if(S===void 0)throw new SyntaxError(`JSON value expected ${T()}`)}function x(S){if(S===void 0)throw new SyntaxError(`Array item expected ${T()}`)}function p(){if(i<t.length)throw new SyntaxError(`Expected end of input ${T()}`)}function I(S){if(!qe(t.charCodeAt(i))){const A=t.slice(S,i);throw new SyntaxError(`Invalid number '${A}', expecting a digit ${T()}`)}}function P(){if(t.charCodeAt(i)!==ht)throw new SyntaxError(`End of string '"' expected ${T()}`)}function H(){throw new SyntaxError(`Quoted object key expected ${T()}`)}function V(S){let{key:A,position:J}=S;throw new SyntaxError(`Duplicate key '${A}' encountered at position ${J}`)}function Z(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${T()}`)}function O(){throw new SyntaxError(`Array item or end of array ']' expected ${T()}`)}function D(S){throw new SyntaxError(`Invalid character '${S}' ${q()}`)}function X(S){const A=t.slice(S,S+2);throw new SyntaxError(`Invalid escape character '${A}' ${q()}`)}function Q(){throw new SyntaxError(`Object value expected after ':' ${q()}`)}function ee(S){const A=t.slice(S,S+6);throw new SyntaxError(`Invalid unicode character '${A}' ${q()}`)}function q(){return`at position ${i}`}function ze(){return i<t.length?`but got '${t[i]}'`:"but reached end of input"}function T(){return`${ze()} ${q()}`}}function pi(t){return t===vi||t===Si||t===Ei||t===xi}function Me(t){return t>=ft&&t<=pt||t>=Ii&&t<=Ni||t>=Ti&&t<=ji}function qe(t){return t>=ft&&t<=pt}function mi(t){return t>=Ri&&t<=pt}function gi(t){return t>=32&&t<=1114111}function dt(t,e){return t===e?!0:Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((s,r)=>dt(s,e[r])):Cs(t)&&Cs(e)?[...new Set([...Object.keys(t),...Object.keys(e)])].every(s=>dt(t[s],e[s])):!1}function Cs(t){return typeof t=="object"&&t!==null}const bi={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
11
- `,r:"\r",t:" "},_i=92,yi=123,ks=125,wi=91,As=93,vi=32,Si=10,Ei=9,xi=13,ht=34,Oi=43,Is=45,ft=48,Ri=49,pt=57,Ci=44,ki=46,Ai=58,Ii=65,Ti=97,Pi=69,Li=101,Ni=70,ji=102;function Ts(t,e,s,r){return n(t);function n(l,u){if(Array.isArray(r)){const d=r.find(f=>f.test(l));if(d){const f=d.stringify(l);if(typeof f!="string"||!xs(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 l=="boolean"||typeof l=="number"||typeof l=="string"||l===null||l instanceof Date||l instanceof Boolean||l instanceof Number||l instanceof String)return JSON.stringify(l);if(l?.isLosslessNumber||typeof l=="bigint")return l.toString();if(Array.isArray(l))return o(l);if(l&&typeof l=="object")return i(l)}function o(l,u){if(l.length===0)return"[]";let d="[";for(let f=0;f<l.length;f++){const _=l[f];typeof _<"u"&&typeof _!="function"?d+=n(_):d+="null",f<l.length-1&&(d+=",")}return d+="]",d}function i(l,u){if(typeof l.toJSON=="function")return Ts(l.toJSON(),e,s,void 0);const d=Array.isArray(e)?e.map(String):Object.keys(l);if(d.length===0)return"{}";let f=!0,_="{";for(const y of d){const b=l[y];if(a(y,b)){f?f=!1:_+=",";const h=JSON.stringify(y);_+=`${h}:`,_+=n(b)}}return _+="}",_}function a(l,u){return typeof u<"u"&&typeof u!="function"&&typeof u!="symbol"}}function Di(t){return Ee(t)&&!Os(t)?BigInt(t):parseFloat(t)}class Ps{id=1;constructor(){}async exec(e,s,r={},n={},o=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,n.manual=!0,(await at.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:s,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...n},timeout:o,transformRequest:[(i,a)=>Ts(i)],transformResponse:[i=>{try{return fi(i,void 0,Di)}catch{const a=typeof i=="string"?i.substring(0,200):String(i),l=new Error(`Server returned non-JSON response: ${a}`);throw l.name="ServerError",l}}]})).data.result}catch(i){let a=new Error;throw i.response?(a.name=i.response.data.error.data.class,a.message=i.response.data.error.data.message,a.object=i.response.data.error):i.request?(a.name="Request error",a.message="Request error, no response received"):a=i,a}}decode_openc3_type(e){if(e!==null&&typeof e=="object"&&e.json_class=="Float"&&e.raw){if(e.raw=="NaN")return NaN;if(e.raw=="Infinity")return 1/0;if(e.raw=="-Infinity")return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,s,r,n,o){return this.exec("map_target_to_interface",[e,s],{cmd_only:r,tlm_only:n,unmap_old:o})}unmap_target_from_interface(e,s,r,n){return this.exec("unmap_target_from_interface",[e,s],{cmd_only:r,tlm_only:n})}connect_interface(e,...s){return s.length>0?this.exec("connect_interface",[e,...s]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,s,...r){return this.exec("interface_cmd",[e,s,...r])}interface_target_enable(e,s,r=!1,n=!1){return this.exec("interface_target_enable",[e,s],{cmd_only:r,tlm_only:n})}interface_target_disable(e,s,r=!1,n=!1){return this.exec("interface_target_disable",[e,s],{cmd_only:r,tlm_only:n})}interface_details(e){return this.exec("interface_details",[e])}get_all_router_info(){return this.exec("get_all_router_info",[])}map_target_to_router(e,s,r,n,o){return this.exec("map_target_to_router",[e,s],{cmd_only:r,tlm_only:n,unmap_old:o})}unmap_target_from_router(e,s,r,n){return this.exec("unmap_target_from_router",[e,s],{cmd_only:r,tlm_only:n})}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}router_target_enable(e,s,r=!1,n=!1){return this.exec("router_target_enable",[e,s],{cmd_only:r,tlm_only:n})}router_target_disable(e,s,r=!1,n=!1){return this.exec("router_target_disable",[e,s],{cmd_only:r,tlm_only:n})}router_details(e){return this.exec("router_details",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,s,r){return this.exec("get_item",[e,s,r])}get_param(e,s,r){return this.exec("get_param",[e,s,r])}get_parameter(e,s,r){return this.exec("get_param",[e,s,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(e,s){return this.exec("get_tlm",[e,s])}get_telemetry(e,s){return this.exec("get_tlm",[e,s])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_tlm",[e])}get_all_tlm_names(e,s=!1){return this.exec("get_all_tlm_names",[e],{hidden:s})}get_all_telemetry_names(e){return this.exec("get_all_tlm_names",[e])}get_all_tlm_item_names(e){return this.exec("get_all_tlm_item_names",[e])}async get_tlm_packet(e,s,r,n=30){const o=await this.exec("get_tlm_packet",[e,s],{type:r,stale_time:n});if(o!=null){let i=o.length,a=null;for(let l=0;l<i;l++)a=this.decode_openc3_type(o[l][1]),a!==null&&(o[l][1]=a)}return o}get_packet_derived_items(e,s){return this.exec("get_packet_derived_items",[e,s])}get_tlm_buffer(e,s){return this.exec("get_tlm_buffer",[e,s])}get_tlm_available(e){return this.exec("get_tlm_available",[e])}async get_tlm_values(e,s=30,r=null,n=null,o=null){let i={stale_time:s};r!==null&&(i.cache_timeout=r),n!==null&&(i.start_time=n.toISOString()),o!==null&&(i.end_time=o.toISOString());const a=await this.exec("get_tlm_values",[e],i,{},1e4);if(a&&a.length>0){let l=a.length,u=null;for(let d=0;d<l;d++)u=this.decode_openc3_type(a[d][0]),u!==null&&(a[d][0]=u)}return a}get_limits(e,s,r){return this.exec("get_limits",[e,s,r])}async tlm(e,s,r,n="CONVERTED"){let o=null;if(s===void 0)o=await this.exec("tlm",[e]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED"].includes(s))o=await this.exec("tlm",[e],{type:s});else{let a=new Error;throw a.name="TypeError",a.message=`Invalid data type ${s}. Valid options are RAW, CONVERTED or FORMATTED.`,a}else o=await this.exec("tlm",[e,s,r],{type:n});let i=this.decode_openc3_type(o);return i!==null&&(o=i),o}async inject_tlm(e,s,r=null,n="CONVERTED",o=!1){await this.exec("inject_tlm",[e,s,r],{type:n,stored:o})}set_tlm(e,s,r,n){return this.exec("set_tlm",[e,s,r],{type:n})}override_tlm(e,s,r,n){return this.exec("override_tlm",[e,s,r],{type:n})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,s,r,n){return this.exec("normalize_tlm",[e,s,r],{type:n})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_cmds",[e])}get_all_cmd_names(e,s=!1){return this.exec("get_all_cmd_names",[e],{hidden:s})}get_all_command_names(e){return this.exec("get_all_cmd_names",[e])}get_cmd(e,s){return this.exec("get_cmd",[e,s])}get_command(e,s){return this.exec("get_cmd",[e,s])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,s,r,n="CONVERTED"){return this.exec("get_cmd_value",[e,s,r,n])}get_cmd_buffer(e,s){return this.exec("get_cmd_buffer",[e,s])}_cmd(e,s,r,n,o,i={}){let a=null;for(let l in n)Object.prototype.hasOwnProperty.call(n,l)&&(a=this.encode_openc3_type(n[l]),a!==null&&(n[l]=a));return this.exec(e,[s,r,n],i,o)}get_cmd_hazardous(e,s,r,n={}){return s===void 0?this.exec("get_cmd_hazardous",e,{},n):this._cmd("get_cmd_hazardous",e,s,r,n)}cmd(e,s,r,n={},o={}){return s===void 0?this.exec("cmd",e,o,n):this._cmd("cmd",e,s,r,n,o)}cmd_no_range_check(e,s,r,n={},o={}){return s===void 0?this.exec("cmd_no_range_check",e,o,n):this._cmd("cmd_no_range_check",e,s,r,n,o)}cmd_raw(e,s,r,n={},o={}){return s===void 0?this.exec("cmd_raw",e,o,n):this._cmd("cmd_raw",e,s,r,n,o)}cmd_raw_no_range_check(e,s,r,n={},o={}){return s===void 0?this.exec("cmd_raw_no_range_check",e,o,n):this._cmd("cmd_raw_no_range_check",e,s,r,n,o)}cmd_no_hazardous_check(e,s,r,n={},o={}){return s===void 0?this.exec("cmd_no_hazardous_check",e,o,n):this._cmd("cmd_no_hazardous_check",e,s,r,n,o)}cmd_no_checks(e,s,r,n={},o={}){return s===void 0?this.exec("cmd_no_checks",e,o,n):this._cmd("cmd_no_checks",e,s,r,n,o)}cmd_raw_no_hazardous_check(e,s,r,n={},o={}){return s===void 0?this.exec("cmd_raw_no_hazardous_check",e,o,n):this._cmd("cmd_raw_no_hazardous_check",e,s,r,n,o)}cmd_raw_no_checks(e,s,r,n={},o={}){return s===void 0?this.exec("cmd_raw_no_checks",e,o,n):this._cmd("cmd_raw_no_checks",e,s,r,n,o)}build_cmd(e,s,r,n={},o={}){return s===void 0?this.exec("build_cmd",e,o,n):this._cmd("build_cmd",e,s,r,n,o)}build_command(e,s,r,n={},o={}){return s===void 0?this.exec("build_cmd",e,o,n):this._cmd("build_cmd",e,s,r,n,o)}get_interface_names(){return this.exec("get_interface_names",[])}get_router_names(){return this.exec("get_router_names",[])}send_raw(e,s){return this.exec("send_raw",[e,s])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,s){return this.exec("load_config",[e,s])}save_config(e,s,r){return this.exec("save_config",[e,s,r])}delete_config(e,s){return this.exec("delete_config",[e,s])}enable_limits(e,s,r){return this.exec("enable_limits",[e,s,r])}disable_limits(e,s,r){return this.exec("disable_limits",[e,s,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e,s){return this.exec("get_setting",[e],s)}get_settings(e,s){return this.exec("get_settings",e,s)}set_setting(e,s){return this.exec("set_setting",[e,s])}update_news(){return this.exec("update_news",[])}update_plugin_store(){return this.exec("update_plugin_store",[])}save_setting(e,s){return this.exec("set_setting",[e,s])}get_metrics(){return this.exec("get_metrics",[])}open_tab(e){window.open(e,"_blank")}async hashString(e){if(window.isSecureContext){const s=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",s),n=new Uint8Array(r);return Array.from(n).map(o=>o.toString(16).padStart(2,"0")).join("")}}}const Ui={components:{ValueWidget:Ot,ValuelimitsbarWidget:Rt},mixins:[He],props:{modelValue:{type:Array,default:()=>[]},timeZone:{type:String,default:"local"}},emits:["update:modelValue"],data(){return{api:null,cable:new Es,ignored:[],ignoredItemsDialog:!1,overallState:"GREEN",currentLimitsSet:"",items:[],itemList:[],screenItems:[],availableItems:[],screenValues:{},updateCounter:0,itemsPerPage:25,search:"",stateFilter:[],stateFilterOptions:[{value:"RED",label:"Critical",status:"critical"},{value:"YELLOW",label:"Caution",status:"caution"},{value:"GREEN",label:"Normal",status:"normal"},{value:"BLUE",label:"Standby",status:"standby"}],headers:[{title:"Timestamp",key:"timestamp",width:"130px",sortable:!0,nowrap:!0},{title:"Item",key:"item",value:t=>t.parameters[2],sortable:!0,minWidth:"100px",width:"200px",maxWidth:"410px"},{title:"Value",key:"value",width:"380px",sortable:!1},{title:"Controls",key:"actions",width:"80px",sortable:!1},{title:"",key:"limits",sortable:!1}],valueLimitsBarWidgetSettings:[["WIDTH","380px"],["0","WIDTH","200px"],["1","WIDTH","180px"]],valueWidgetSettings:[["WIDTH","200px"]]}},computed:{textFieldClass(){return this.overallState?`textfield-${this.overallState.toLowerCase()}`:""},overallStateFormatted(){return this.ignored.length===0?this.overallState:`${this.overallState} (Some items ignored)`},ignoredFormatted(){return this.ignored.map(t=>t.split("__").join(" "))},astroStatus(){switch(this.overallState){case"GREEN":return"normal";case"YELLOW":return"caution";case"RED":return"critical";case"BLUE":return"standby";default:return null}}},created(){this.api=new Ps;for(let t of this.modelValue)t.match(/.+__.+__.+/)?this.ignoreItem(t,!0):this.ignorePacket(t,!0);this.updateOutOfLimits(),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,10*1e3),this.cable.createSubscription("LimitsEventsChannel",window.openc3Scope,{received:t=>{this.cable.recordPing(),this.handleMessages(t)}}).then(t=>{this.limitsSubscription=t}),this.cable.createSubscription("ConfigEventsChannel",window.openc3Scope,{received:t=>{this.cable.recordPing();const e=JSON.parse(t);this.handleConfigEvents(e)}}).then(t=>{this.configSubscription=t})},mounted(){this.updater=setInterval(()=>{this.update()},1e3)},unmounted(){this.updater!=null&&(clearInterval(this.updater),this.updater=null),this.limitsSubscription&&this.limitsSubscription.unsubscribe(),this.configSubscription&&this.configSubscription.unsubscribe(),this.cable.disconnect()},methods:{rowProps({item:t}){return this.stateFilter.length>0&&!this.stateFilter.some(e=>t.limitsState?.includes(e))?{class:"state-filtered-row"}:{}},escapeBrackets(t){return t.includes("[")?t.replace(/\[/g,"[[").replace(/\]/g,"]]"):t},getCurrentLimitsSet:function(){this.api.get_limits_set().then(t=>{this.currentLimitsSet=t})},updateOutOfLimits(){this.items=[],this.itemList=[],this.api.get_out_of_limits().then(t=>{for(const e of t){let s=e.join("__");if(this.ignored.find(n=>s.includes(n)))continue;this.itemList.push(s);let r={key:e.slice(0,3).join("__"),parameters:[e[0],e[1],this.escapeBrackets(e[2])],timestamp:this.formatDateTime(new Date,this.timeZone),limitsState:e[3]};e[3].includes("YELLOW")&&this.overallState!=="RED"&&(this.overallState="YELLOW"),e[3].includes("RED")&&(this.overallState="RED"),e[3]=="YELLOW"||e[3]=="RED"?r.limits=!1:r.limits=!0,this.items.push(r)}this.calcOverallState()})},calcOverallState(){let t="GREEN";for(let e of this.itemList)if(!this.ignored.find(s=>e.includes(s))&&(e.includes("YELLOW")&&t!=="RED"&&(t="YELLOW"),e.includes("RED"))){t="RED";break}this.overallState=t},ignorePacket(t,e){let[s,r,n]=t.split("__"),o=`${s}__${r}`;for(this.ignored.push(o),e||this.updateIgnored();;){let i=this.itemList.findIndex(a=>a.includes(o));if(i===-1)break;{let a=this.itemList[i].lastIndexOf("__");this.removeItem(this.itemList[i].substring(0,a))}}this.calcOverallState()},ignoreItem(t,e){this.ignored.push(t),e||this.updateIgnored(),this.removeItem(t),this.calcOverallState()},restoreItem(t){this.ignored.splice(t,1),this.updateIgnored(),this.updateOutOfLimits()},removeItem(t){const e=this.itemList.findIndex(s=>s.includes(t));this.items.splice(e,1),this.itemList.splice(e,1)},clearAll(){this.ignored=[],this.updateIgnored(),this.updateOutOfLimits()},updateIgnored(){this.$emit("update:modelValue",this.ignored)},handleConfigEvents(t){for(let e of t)e.kind==="deleted"&&e.type==="target"&&this.updateOutOfLimits()},handleMessages(t){for(let e of t){let s=JSON.parse(e.event);if(s.type!="LIMITS_CHANGE")continue;let r=`${s.target_name}__${s.packet_name}__${s.item_name}`;const n=this.itemList.findIndex(i=>i.includes(r));if(n!==-1){this.itemList[n]=`${r}__${s.new_limits_state}`,this.items[n].limitsState=s.new_limits_state,this.calcOverallState();continue}if(this.ignored.find(i=>r.includes(i))||s.new_limits_state&&!(s.new_limits_state.includes("YELLOW")||s.new_limits_state.includes("RED")))continue;let o={key:r,timestamp:this.formatNanoseconds(s.time_nsec,this.timeZone),parameters:[s.target_name,s.packet_name,this.escapeBrackets(s.item_name)],limitsState:s.new_limits_state};s.new_limits_state=="YELLOW"||s.new_limits_state=="RED"?o.limits=!1:o.limits=!0,this.itemList.push(`${r}__${s.new_limits_state}`),this.items.push(o),this.calcOverallState()}},update(){this.availableItems.length!==0&&this.api.get_tlm_values(this.availableItems).then(t=>{this.updateValues(t)})},updateValues:function(t){this.updateCounter+=1;for(let e=0;e<t.length;e++)t[e].push(this.updateCounter),this.screenValues[this.screenItems[e]]=t[e]},addItem:function(t){this.api.get_tlm_available([t]).then(e=>{this.screenItems.push(t),this.availableItems.push(e[0]),this.screenValues[e[0]]=[null,null,0]})},deleteItem:function(t){let e=this.screenItems.indexOf(t);this.availableItems.splice(e,1),this.screenItems.splice(e,1)},showIgnored(){this.ignoredItemsDialog=!0},customFilter(t,e,s){if(!e||e.trim()==="")return!0;if(e=e.toLowerCase(),s.parameters&&s.parameters.length>0){for(const r of s.parameters)if(r.toLowerCase().includes(e))return!0}return!!(s.timestamp&&s.timestamp.toLowerCase().includes(e)||s.key&&s.key.toLowerCase().includes(e))}}},Fi=["status"],Bi={key:0},Vi=["status"],$i={class:"font-weight-black"};function Mi(t,e,s,r,n,o){const i=w("v-text-field"),a=w("v-spacer"),l=w("v-list-item"),u=w("v-select"),d=w("v-row"),f=w("valuelimitsbar-widget"),_=w("value-widget"),y=w("v-btn"),b=w("v-icon"),h=w("v-list-item-title"),E=w("v-list"),k=w("v-menu"),x=w("v-data-table"),p=w("v-card"),I=w("v-toolbar"),P=w("v-divider"),H=w("v-card-text"),V=w("v-card-actions"),Z=w("v-dialog");return C(),z("div",null,[g(p,{class:"pa-5"},{default:m(()=>[g(d,{class:"ma-1"},{default:m(()=>[g(i,{density:"compact",variant:"outlined",readonly:"","hide-details":"",label:"Overall Limits State","model-value":o.overallStateFormatted,class:Ke(o.textFieldClass),style:{"margin-right":"10px","max-width":"280px"},"data-test":"overall-state"},Ce({_:2},[o.astroStatus?{name:"prepend-inner",fn:m(()=>[B("rux-status",{status:o.astroStatus},null,8,Fi)]),key:"0"}:void 0]),1032,["model-value","class"]),g(i,{density:"compact",variant:"outlined",readonly:"","hide-details":"",label:"Current Limits Set","model-value":n.currentLimitsSet,style:{"max-width":"200px"},"data-test":"limits-set"},null,8,["model-value"]),g(a),g(u,{modelValue:n.stateFilter,"onUpdate:modelValue":e[0]||(e[0]=O=>n.stateFilter=O),items:n.stateFilterOptions,"item-title":"label","item-value":"value",label:"Filter by State",multiple:"",clearable:"",variant:"outlined",density:"compact","hide-details":"",class:"mr-2",style:{"max-width":"300px"},"data-test":"state-filter"},{selection:m(({index:O})=>[O===0?(C(),z("span",Bi,K(n.stateFilter.length)+" selected ",1)):re("",!0)]),item:m(({props:O,item:D})=>[g(l,St(Et(O)),{prepend:m(()=>[B("rux-status",{status:D.raw.status,class:"mr-2"},null,8,Vi)]),_:2},1040)]),_:1},8,["modelValue","items"]),g(i,{modelValue:n.search,"onUpdate:modelValue":e[1]||(e[1]=O=>n.search=O),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"",style:{"max-width":"300px"},"data-test":"search"},null,8,["modelValue"])]),_:1}),g(x,{"items-per-page":n.itemsPerPage,"onUpdate:itemsPerPage":e[2]||(e[2]=O=>n.itemsPerPage=O),headers:n.headers,items:n.items,search:n.search,"custom-filter":o.customFilter,"row-props":o.rowProps,"item-value":"key","data-test":"limits-table",class:"limits-table",density:"compact"},{"item.timestamp":m(({item:O})=>[j(K(O.timestamp),1)]),"item.value":m(({item:O})=>[O.limits?(C(),L(f,{key:0,parameters:O.parameters,settings:n.valueLimitsBarWidgetSettings,"screen-values":n.screenValues,"screen-time-zone":s.timeZone,onAddItem:o.addItem,onDeleteItem:o.deleteItem},null,8,["parameters","settings","screen-values","screen-time-zone","onAddItem","onDeleteItem"])):(C(),L(_,{key:1,parameters:O.parameters,settings:n.valueWidgetSettings,"screen-values":n.screenValues,"screen-time-zone":s.timeZone,onAddItem:o.addItem,onDeleteItem:o.deleteItem},null,8,["parameters","settings","screen-values","screen-time-zone","onAddItem","onDeleteItem"]))]),"item.actions":m(({item:O})=>[g(k,null,{activator:m(({props:D})=>[g(y,Re({icon:"mdi-dots-horizontal",variant:"text",density:"compact","aria-label":"Item Options"},D),null,16)]),default:m(()=>[g(E,null,{default:m(()=>[g(l,{onClick:D=>o.ignorePacket(O.key)},{prepend:m(()=>[g(b,null,{default:m(()=>[...e[5]||(e[5]=[j("mdi-close-circle-multiple",-1)])]),_:1})]),default:m(()=>[g(h,null,{default:m(()=>[...e[6]||(e[6]=[j("Ignore Entire Packet",-1)])]),_:1})]),_:1},8,["onClick"]),g(l,{onClick:D=>o.ignoreItem(O.key)},{prepend:m(()=>[g(b,null,{default:m(()=>[...e[7]||(e[7]=[j("mdi-close-circle",-1)])]),_:1})]),default:m(()=>[g(h,null,{default:m(()=>[...e[8]||(e[8]=[j("Ignore Item",-1)])]),_:1})]),_:1},8,["onClick"]),g(l,{onClick:D=>o.removeItem(O.key)},{prepend:m(()=>[g(b,null,{default:m(()=>[...e[9]||(e[9]=[j("mdi-eye-off",-1)])]),_:1})]),default:m(()=>[g(h,null,{default:m(()=>[...e[10]||(e[10]=[j("Temporarily Hide Item",-1)])]),_:1})]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1024)]),"item.limits":m(({item:O})=>[g(a)]),_:1},8,["items-per-page","headers","items","search","custom-filter","row-props"]),e[11]||(e[11]=B("div",{class:"footer"},' Note: Timestamp is "now" for items currently out of limits when the page is loaded. ',-1))]),_:1}),g(Z,{modelValue:n.ignoredItemsDialog,"onUpdate:modelValue":e[4]||(e[4]=O=>n.ignoredItemsDialog=O),"max-width":"600"},{default:m(()=>[g(p,null,{default:m(()=>[g(I,{height:"24"},{default:m(()=>[g(a),e[12]||(e[12]=B("span",null,"Ignored Items",-1)),g(a)]),_:1}),g(H,{class:"mt-2"},{default:m(()=>[B("div",null,[(C(!0),z(ne,null,ue(o.ignoredFormatted,(O,D)=>(C(),z("div",{key:D},[g(d,{class:"ma-1 align-center"},{default:m(()=>[B("span",$i,K(O),1),g(a),g(y,{icon:"mdi-delete",density:"compact",variant:"text","aria-label":"Remove Ignored Item","data-test":`remove-ignore-${D}`,onClick:X=>o.restoreItem(D)},null,8,["data-test","onClick"])]),_:2},1024),D<o.ignoredFormatted.length-1?(C(),L(P,{key:D})):re("",!0)]))),128))])]),_:1}),g(V,{class:"px-2"},{default:m(()=>[g(y,{variant:"outlined",onClick:o.clearAll},{default:m(()=>[...e[13]||(e[13]=[j(" Clear All ",-1)])]),_:1},8,["onClick"]),g(a),g(y,{variant:"flat",onClick:e[3]||(e[3]=O=>n.ignoredItemsDialog=!1)},{default:m(()=>[...e[14]||(e[14]=[j(" Ok ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const qi=Oe(Ui,[["render",Mi],["__scopeId","data-v-996d2580"]]),zi={mixins:[He],props:{historyCount:{type:Number,default:1e3},timeZone:{type:String,default:"local"}},data(){return{data:[],cable:new Es,search:"",headers:[{title:"Time",value:"time_nsec",width:250},{title:"Level",value:"level",sortable:!1},{title:"Message",value:"message"}]}},created(){this.cable.createSubscription("LimitsEventsChannel",window.openc3Scope,{received:t=>{this.cable.recordPing(),this.handleMessages(t)}},{historyCount:1e3}).then(t=>{this.limitsSubscription=t})},unmounted(){this.limitsSubscription&&this.limitsSubscription.unsubscribe(),this.cable.disconnect()},methods:{handleMessages(t){for(let e=0;e<t.length;e++){let s=JSON.parse(t[e].event);this.data.unshift(s)}this.data.length>this.historyCount&&(this.data.length=this.historyCount)},getStatus(t){return t.includes("GREEN")?"normal":t.includes("YELLOW")?"caution":t.includes("RED")?"critical":t.includes("BLUE")?"standby":"off"},getColorClass(t){return t.includes("GREEN")?"openc3-green":t.includes("YELLOW")?"openc3-yellow":t.includes("RED")?"openc3-red":t.includes("BLUE")?"openc3-blue":"openc3-white"},calcTableHeight(){return window.innerHeight-250}}},Wi=["status"];function Hi(t,e,s,r,n,o){const i=w("v-spacer"),a=w("v-text-field"),l=w("v-card-title"),u=w("v-data-table"),d=w("v-card");return C(),L(d,{class:"card-height"},{default:m(()=>[g(l,{class:"d-flex align-center"},{default:m(()=>[e[1]||(e[1]=j(" Limits Events ",-1)),g(i),g(a,{modelValue:n.search,"onUpdate:modelValue":e[0]||(e[0]=f=>n.search=f),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"",class:"search"},null,8,["modelValue"])]),_:1}),g(u,{headers:n.headers,items:n.data,search:n.search,"items-per-page":-1,"hide-default-footer":"","multi-sort":"",density:"compact",height:o.calcTableHeight(),hover:"","data-test":"limits-events"},{"item.time_nsec":m(({item:f})=>[B("span",null,K(t.formatNanoseconds(f.time_nsec,s.timeZone)),1)]),"item.level":m(({item:f})=>[B("rux-status",{status:o.getStatus(f.message)},null,8,Wi)]),"item.message":m(({item:f})=>[B("span",{class:Ke(o.getColorClass(f.message))},K(f.message),3)]),_:1},8,["headers","items","search","height"])]),_:1})}const Ji={components:{LimitsControl:qi,LimitsEvents:Oe(zi,[["render",Hi],["__scopeId","data-v-192a6dcb"]]),TopBar:$s,OpenConfigDialog:yt,SaveConfigDialog:_t},mixins:[bt],data(){return{title:"Limits Monitor",configKey:"limits_monitor",api:new Ps,timeZone:"local",renderKey:0,ignored:[],openConfig:!1,saveConfig:!1,limitsSets:[],currentLimitsSet:null,currentSetRefreshInterval:null,limitsSetDialog:!1,menus:[{label:"File",items:[{label:"Show Ignored",icon:"mdi-magnify-close",command:()=>{this.$refs.control.showIgnored()}},{label:"Change Limits Set",icon:"mdi-swap-horizontal",command:()=>{this.limitsSetDialog=!0}},{divider:!0},{label:"Open Configuration",icon:"mdi-folder-open",command:()=>{this.openConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:()=>{this.saveConfig=!0}},{label:"Reset Configuration",icon:"mdi-monitor-shimmer",command:()=>{this.ignored=[],this.resetConfigBase(),this.renderKey++}}]}]}},created(){this.api.get_limits_sets().then(t=>{this.limitsSets=t}),this.api.get_setting("time_zone").then(t=>{t&&(this.timeZone=t)}).catch(t=>{})},mounted:function(){if(this.$route.query&&this.$route.query.config)this.openConfiguration(this.$route.query.config,!0);else{let t=this.loadDefaultConfig();JSON.stringify(t)!=="{}"&&(this.ignored=t,this.renderKey++)}},unmounted:function(){clearInterval(this.currentSetRefreshInterval)},methods:{setLimitsSet:function(){this.api.set_limits_set(this.currentLimitsSet),this.limitsSetDialog=!1,this.renderKey++},openConfiguration:function(t,e=!1){this.openConfigBase(t,e,s=>{this.ignored=s,this.renderKey++})},saveConfiguration:function(t){this.saveConfigBase(t,this.ignored)}}};function Ki(t,e,s,r,n,o){const i=w("top-bar"),a=w("limits-control"),l=w("limits-events"),u=w("open-config-dialog"),d=w("save-config-dialog"),f=w("v-spacer"),_=w("v-toolbar"),y=w("v-select"),b=w("v-card-text"),h=w("v-btn"),E=w("v-card-actions"),k=w("v-card"),x=w("v-dialog");return C(),z("div",null,[g(i,{menus:n.menus,title:n.title},null,8,["menus","title"]),(C(),L(a,{ref:"control",key:n.renderKey,modelValue:n.ignored,"onUpdate:modelValue":e[0]||(e[0]=p=>n.ignored=p),"time-zone":n.timeZone},null,8,["modelValue","time-zone"])),e[12]||(e[12]=B("div",{style:{height:"15px"}},null,-1)),g(l,{"time-zone":n.timeZone},null,8,["time-zone"]),n.openConfig?(C(),L(u,{key:0,modelValue:n.openConfig,"onUpdate:modelValue":e[1]||(e[1]=p=>n.openConfig=p),"config-key":n.configKey,onSuccess:o.openConfiguration},null,8,["modelValue","config-key","onSuccess"])):re("",!0),n.saveConfig?(C(),L(d,{key:1,modelValue:n.saveConfig,"onUpdate:modelValue":e[2]||(e[2]=p=>n.saveConfig=p),"config-key":n.configKey,onSuccess:o.saveConfiguration},null,8,["modelValue","config-key","onSuccess"])):re("",!0),g(x,{modelValue:n.limitsSetDialog,"onUpdate:modelValue":e[5]||(e[5]=p=>n.limitsSetDialog=p),"max-width":"650",persistent:"",onKeydown:e[6]||(e[6]=xt(p=>n.limitsSetDialog=!1,["esc"]))},{default:m(()=>[g(k,null,{default:m(()=>[g(_,{height:"24"},{default:m(()=>[g(f),e[7]||(e[7]=B("span",null,"Change Limits Set",-1)),g(f)]),_:1}),g(b,{class:"mt-6"},{default:m(()=>[e[8]||(e[8]=B("span",{style:{display:"block"}}," The Limits Set is a global option which changes the Limits Set across all tools. ",-1)),e[9]||(e[9]=B("span",{style:{display:"block"}}," NOTE: Changing this option clears the current list and recalculates based on the new set. ",-1)),g(y,{modelValue:n.currentLimitsSet,"onUpdate:modelValue":e[3]||(e[3]=p=>n.currentLimitsSet=p),label:"Limits Set",items:n.limitsSets,density:"compact",variant:"outlined","data-test":"change-limits-set","hide-details":"",class:"mt-3",style:{"max-width":"200px"}},null,8,["modelValue","items"])]),_:1}),g(E,{class:"px-2"},{default:m(()=>[g(f),g(h,{variant:"outlined",onClick:e[4]||(e[4]=p=>n.limitsSetDialog=!1)},{default:m(()=>[...e[10]||(e[10]=[j(" Cancel ",-1)])]),_:1}),g(h,{variant:"flat",onClick:o.setLimitsSet},{default:m(()=>[...e[11]||(e[11]=[j(" Ok ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const po=Ds("default",Oe(Ji,[["render",Ki]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./GraphWidget-QS-VJoes-1271f89a117a5c5271a9.js","./main-e0e82227eb6ea93aef11.js","vue","./Graph-BCvaO4yI-05210fabaa90544a276d.js","single-spa","./Widget-BDsgRxuV-68825d9673e8516edfbe.js","vue-router","pinia","vuetify","./OpenC3TimePicker-C3vCnk72-ed8f064d5b3e5f533ae1.js"],(function(p,u){"use strict";var s,n,r,a,o,l,d;return{setters:[t=>{s=t.M},t=>{n=t.d},t=>{r=t.resolveComponent,a=t.openBlock,o=t.createBlock,l=t.normalizeStyle},t=>{d=t.G},null,null,null,null,null,null],execute:(function(){const t={components:{Graph:d},mixins:[s]};function h(e,i,g,v,y,f){const c=r("graph");return a(),o(c,{id:e.id,ref:"graph"+e.id,state:e.state,"selected-graph-id":e.id,"start-time":e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,style:l(e.computedStyle),"time-zone":e.screenTimeZone,"hide-toolbar":"","hide-overview":"",onPause:i[0]||(i[0]=()=>e.state="pause"),onStart:i[1]||(i[1]=()=>e.state="start")},null,8,["id","state","selected-graph-id","start-time","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style","time-zone"])}const m=p("default",n(t,[["render",h]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./main-e0e82227eb6ea93aef11.js","vue"],(function(F,D){"use strict";var y,V,s,S,N,g,b,v,u,o,p,T;return{setters:[i=>{y=i.J,V=i.d},i=>{s=i.resolveComponent,S=i.openBlock,N=i.createBlock,g=i.withKeys,b=i.normalizeClass,v=i.normalizeStyle,u=i.withCtx,o=i.createVNode,p=i.createTextVNode,T=i.mergeProps}],execute:(function(){const i=new Map,c=new Map;function I(e,t){if(i.has(e))return Promise.resolve(i.get(e));if(!c.has(e)){const a=new y().get_setting(e).then(n=>{const r=n??t;return i.set(e,r),r}).catch(()=>(i.set(e,t),t)).finally(()=>{c.delete(e)});c.set(e,a)}return c.get(e)}function C(e){return i.has(e)?i.get(e):void 0}const k={inheritAttrs:!1,props:{modelValue:{type:String,default:""},label:{type:String,default:"Time"},rules:{type:Array,default:()=>[]},hideDetails:{type:[Boolean,String],default:!1},variant:{type:String,default:"filled"},density:{type:String,default:"default"},style:{type:[String,Object],default:""},textFieldClass:{type:String,default:""},dataTest:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{menu:!1,timeFormat:C("time_format")??null,tempTime:null,inputValue:""}},computed:{computedStyle(){return typeof this.style=="string"?this.style:this.style},computedRules(){return this.rules.map(e=>()=>e(this.modelValue))}},watch:{modelValue:{immediate:!0,handler(e){!this.menu&&this.timeFormat!==null&&(this.inputValue=this.formatForDisplay(e))}},inputValue(e){e===""&&this.modelValue!==""&&this.$emit("update:modelValue","")},menu(e){e&&(this.tempTime=this.normalizeTime(this.modelValue)||"00:00:00")},tempTime(e){this.menu&&e&&(this.inputValue=this.formatForDisplay(e))}},async created(){if(this.timeFormat!==null)return;const e=this.inputValue;this.timeFormat=await I("time_format","ampm"),!this.menu&&this.inputValue===e&&(this.inputValue=this.formatForDisplay(this.modelValue))},methods:{formatForDisplay(e){return e?this.timeFormat==="24hr"?e:this.convertTo12Hour(e):""},handleBlur(){const e=this.parseTimeInput(this.inputValue);e?(this.$emit("update:modelValue",e),this.inputValue=this.formatForDisplay(e)):this.inputValue===""?this.$emit("update:modelValue",""):this.inputValue=this.formatForDisplay(this.modelValue)},parseTimeInput(e){if(!e||e.trim()==="")return"";const t=e.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);if(t){const n=Number.parseInt(t[1],10),r=Number.parseInt(t[2],10),l=t[3]?Number.parseInt(t[3],10):0;if(n>=0&&n<=23&&r>=0&&r<=59&&l>=0&&l<=59)return`${n.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}:${l.toString().padStart(2,"0")}`}const a=e.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?\s*(AM|PM|am|pm)$/i);if(a){let n=Number.parseInt(a[1],10);const r=Number.parseInt(a[2],10),l=a[3]?Number.parseInt(a[3],10):0,d=a[4].toUpperCase();if(n>=1&&n<=12&&r>=0&&r<=59&&l>=0&&l<=59)return d==="AM"?n===12&&(n=0):n!==12&&(n+=12),`${n.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}:${l.toString().padStart(2,"0")}`}return null},save(){this.$emit("update:modelValue",this.tempTime),this.inputValue=this.formatForDisplay(this.tempTime),this.menu=!1},cancel(){this.tempTime=this.normalizeTime(this.modelValue)||"00:00:00",this.menu=!1},normalizeTime(e){if(!e)return"";const t=e.split(":");if(t.length<2)return e;const a=Number.parseInt(t[0],10),n=Number.parseInt(t[1],10),r=t.length>2?Number.parseInt(t[2],10):0;return Number.isNaN(a)||Number.isNaN(n)||Number.isNaN(r)?"":`${a.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`},convertTo12Hour(e){if(!e)return"";const t=e.split(":");if(t.length<2)return e;let a=Number.parseInt(t[0],10);const n=Number.parseInt(t[1],10),r=t.length>2?Number.parseInt(t[2],10):0;if(Number.isNaN(a)||Number.isNaN(n)||Number.isNaN(r))return e;const l=a>=12?"PM":"AM";a=a%12,a=a||12;const d=a.toString().padStart(2,"0"),h=n.toString().padStart(2,"0"),f=r.toString().padStart(2,"0");return`${d}:${h}:${f} ${l}`}}};function _(e,t,a,n,r,l){const d=s("v-icon"),h=s("v-time-picker"),f=s("v-spacer"),$=s("v-btn"),w=s("v-card-actions"),x=s("v-card"),B=s("v-menu"),z=s("v-text-field");return S(),N(z,{modelValue:r.inputValue,"onUpdate:modelValue":t[2]||(t[2]=m=>r.inputValue=m),label:a.label,rules:l.computedRules,"hide-details":a.hideDetails,variant:a.variant,density:a.density,style:v(l.computedStyle),class:b(a.textFieldClass),disabled:a.disabled,"data-test":a.dataTest,onBlur:l.handleBlur,onKeydown:g(l.handleBlur,["enter"])},{"prepend-inner":u(()=>[o(B,{modelValue:r.menu,"onUpdate:modelValue":t[1]||(t[1]=m=>r.menu=m),"close-on-content-click":!1,transition:"scale-transition",offset:"16"},{activator:u(({props:m})=>[o(d,T(m,{class:"cursor-pointer"}),{default:u(()=>[...t[3]||(t[3]=[p(" mdi-clock-outline ",-1)])]),_:1},16)]),default:u(()=>[o(x,{class:"time-picker-card"},{default:u(()=>[o(h,{modelValue:r.tempTime,"onUpdate:modelValue":t[0]||(t[0]=m=>r.tempTime=m),format:r.timeFormat,scrollable:"","use-seconds":"","hide-header":""},null,8,["modelValue","format"]),o(w,null,{default:u(()=>[o(f),o($,{variant:"text",onClick:l.cancel},{default:u(()=>[...t[4]||(t[4]=[p("Cancel",-1)])]),_:1},8,["onClick"]),o($,{color:"primary",variant:"text",onClick:l.save},{default:u(()=>[...t[5]||(t[5]=[p("OK",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue","label","rules","hide-details","variant","density","style","class","disabled","data-test","onBlur","onKeydown"])}const M=F("z",V(k,[["render",_],["__scopeId","data-v-b3333e6d"]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-BDsgRxuV-68825d9673e8516edfbe.js","vue","./main-e0e82227eb6ea93aef11.js","vue-router","pinia","single-spa","vuetify"],(function(s,v){"use strict";var l,t,n,a,r,u;return{setters:[e=>{l=e.h},e=>{t=e.resolveComponent,n=e.openBlock,a=e.createBlock,r=e.normalizeStyle},e=>{u=e.d},null,null,null,null],execute:(function(){const e={mixins:[l],props:{value:{type:Number,default:null}},data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}};function o(i,y,c,b,d,f){const p=t("v-radio");return n(),a(p,{"hide-details":"",dense:"",label:d.label,style:r(i.computedStyle),value:c.value},null,8,["label","style","value"])}const m=s("default",u(e,[["render",o]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Layout-d-vb0okO-b11d6ff13623c921f43e.js","vue","./main-e0e82227eb6ea93aef11.js","./Widget-BDsgRxuV-68825d9673e8516edfbe.js","vue-router","pinia","single-spa","vuetify"],(function(w,N){"use strict";var m,u,r,s,v,o,y,i,l,d,f,c,p,h;return{setters:[t=>{m=t.r},t=>{u=t.resolveComponent,r=t.openBlock,s=t.createElementBlock,v=t.normalizeStyle,o=t.Fragment,y=t.renderList,i=t.createBlock,l=t.withCtx,d=t.createElementVNode,f=t.toDisplayString,c=t.resolveDynamicComponent,p=t.mergeProps},t=>{h=t.d},null,null,null,null,null],execute:(function(){const t={mixins:[m],created:function(){if(this.setHeight(this.parameters[0],"px",200),this.parameters[1]){let n=this.parameters[1];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",n])})}}};function k(n,g,a,b,z,A){const x=u("v-tooltip");return r(),s("div",{ref:"container",style:v(n.computedStyle),class:"overflow-y-auto"},[(r(!0),s(o,null,y(n.widgets,(e,B)=>(r(),s(o,{key:B},[n.getTooltipText(e)?(r(),i(x,{key:0,"open-delay":n.getTooltipDelay(e),location:"top","activator-props":n.getTooltipActivatorProps(e)},{activator:l(({props:C})=>[(r(),i(c(e.type),p({ref_for:!0},{...n.listeners,...C},{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":n.screenValues,"screen-time-zone":n.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:l(()=>[d("span",null,f(n.getTooltipText(e)),1)]),_:2},1032,["open-delay","activator-props"])):(r(),i(c(e.type),p({key:1,ref_for:!0},n.listeners,{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":n.screenValues,"screen-time-zone":n.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=w("default",h(t,[["render",k]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./GraphWidget-QS-VJoes-1271f89a117a5c5271a9.js","./main-e0e82227eb6ea93aef11.js","vue","./Graph-BCvaO4yI-05210fabaa90544a276d.js","single-spa","./Widget-BDsgRxuV-68825d9673e8516edfbe.js","vue-router","pinia","vuetify","./OpenC3TimePicker-C3vCnk72-ed8f064d5b3e5f533ae1.js"],(function(l,c){"use strict";var i,s,n,r,a,d,o;return{setters:[e=>{i=e.M},e=>{s=e.d},e=>{n=e.resolveComponent,r=e.openBlock,a=e.createBlock,d=e.normalizeStyle},e=>{o=e.G},null,null,null,null,null,null],execute:(function(){const e={components:{Graph:o},mixins:[i],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}};function p(t,g,m,v,G,f){const h=n("graph");return r(),a(h,{id:t.id,ref:"graph"+t.id,state:t.state,"selected-graph-id":t.id,"start-time":t.startTime,"seconds-graphed":t.secondsGraphed,"points-saved":t.pointsSaved,"points-graphed":t.pointsGraphed,"initial-items":t.items,height:t.size.height,width:t.size.width,style:d(t.computedStyle),sparkline:""},null,8,["id","state","selected-graph-id","start-time","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style"])}const u=l("default",s(e,[["render",p]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Layout-d-vb0okO-b11d6ff13623c921f43e.js","vue","./main-e0e82227eb6ea93aef11.js","./Widget-BDsgRxuV-68825d9673e8516edfbe.js","vue-router","pinia","single-spa","vuetify"],(function(k,E){"use strict";var T,l,n,i,g,b,a,c,u,o,f,d,w,v,y,V;return{setters:[e=>{T=e.r},e=>{l=e.resolveComponent,n=e.openBlock,i=e.createElementBlock,g=e.createVNode,b=e.normalizeStyle,a=e.withCtx,c=e.Fragment,u=e.renderList,o=e.createBlock,f=e.createTextVNode,d=e.toDisplayString,w=e.createElementVNode,v=e.resolveDynamicComponent,y=e.mergeProps},e=>{V=e.d},null,null,null,null,null],execute:(function(){const e={mixins:[T],emits:["min-max-screen"],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function x(r,m,L,P,j,U){const N=l("v-tab"),_=l("v-tabs"),B=l("v-tooltip"),D=l("v-window-item"),S=l("v-window");return n(),i("div",null,[g(_,{modelValue:r.curTab,"onUpdate:modelValue":m[0]||(m[0]=s=>r.curTab=s),style:b(r.computedStyle)},{default:a(()=>[(n(!0),i(c,null,u(r.widgets,(s,p)=>(n(),o(N,{key:p},{default:a(()=>[f(d(s.parameters[0]),1)]),_:2},1024))),128))]),_:1},8,["modelValue","style"]),g(S,{modelValue:r.curTab,"onUpdate:modelValue":m[1]||(m[1]=s=>r.curTab=s)},{default:a(()=>[(n(!0),i(c,null,u(r.widgets,(s,p)=>(n(),o(D,{key:p},{default:a(()=>[(n(!0),i(c,null,u(s.widgets,(t,z)=>(n(),i(c,{key:`${p}-${z}`},[r.getTooltipText(t)?(n(),o(B,{key:0,"open-delay":r.getTooltipDelay(t),location:"top","activator-props":r.getTooltipActivatorProps(t)},{activator:a(({props:C})=>[(n(),o(v(t.type),y({ref_for:!0},{...r.listeners,...C},{target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]),default:a(()=>[w("span",null,d(r.getTooltipText(t)),1)]),_:2},1032,["open-delay","activator-props"])):(n(),o(v(t.type),y({key:1,ref_for:!0},r.listeners,{target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))],64))),128))]),_:2},1024))),128))]),_:1},8,["modelValue"])])}const h=k("default",V(e,[["render",x]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./main-e0e82227eb6ea93aef11.js","vue","./DetailsDialog-q5SDzw3R-53a91bc6d0632a136bd1.js","single-spa","./VWidget-BDy0211S-6940643cf1852b70b09f.js","vue-router","pinia","vuetify","./LimitsBar-qMynDHYT-fb4bbd2bcc69e0029b99.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./Widget-BDsgRxuV-68825d9673e8516edfbe.js"],(function(C,j){"use strict";var c,a,s,o,n,u,d,l,m,h,p,g,v,x,y,w;return{setters:[e=>{c=e.d},e=>{a=e.resolveComponent,s=e.openBlock,o=e.createElementBlock,n=e.createVNode,u=e.normalizeStyle,d=e.normalizeClass,l=e.withCtx,m=e.Fragment,h=e.renderList,p=e.createBlock,g=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{y=e.Z},null,e=>{w=e.T},null,null,null,null,null,null],execute:(function(){const e={components:{DetailsDialog:y},mixins:[w],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}}},f={class:"textbox-widget-container"};function D(t,r,E,L,R,V){const B=a("v-textarea"),k=a("v-list-item-title"),S=a("v-list-item"),T=a("v-list"),_=a("v-menu"),z=a("details-dialog");return s(),o("div",f,[n(B,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:d(t.valueClass),style:u([t.computedStyle,V.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(_,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(T,null,{default:l(()=>[(s(!0),o(m,null,h(t.contextMenuOptions,(i,M)=>(s(),p(S,{key:M,onClick:g(i.action,["stop"])},{default:l(()=>[n(k,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(z,{modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[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 N=C("default",c(e,[["render",D],["__scopeId","data-v-ce1e6683"]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-BDsgRxuV-68825d9673e8516edfbe.js","vue","./main-e0e82227eb6ea93aef11.js","vue-router","pinia","single-spa","vuetify"],(function(u,p){"use strict";var t,l,n,s,a,r;return{setters:[e=>{t=e.h},e=>{l=e.resolveComponent,n=e.openBlock,s=e.createBlock,a=e.normalizeStyle},e=>{r=e.d},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,i,y,f,o,g){const h=l("v-text-field");return n(),s(h,{modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=m=>o.value=m),variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",style:a(d.computedStyle)},null,8,["modelValue","style"])}const v=u("default",r(e,[["render",c]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-BDsgRxuV-68825d9673e8516edfbe.js","./OpenC3TimePicker-C3vCnk72-ed8f064d5b3e5f533ae1.js","./main-e0e82227eb6ea93aef11.js","vue","vue-router","pinia","single-spa","vuetify"],(function(c,k){"use strict";var l,n,i,r,a,s,o,u;return{setters:[e=>{l=e.h},e=>{n=e.z},e=>{i=e.d,r=e.R},e=>{a=e.resolveComponent,s=e.openBlock,o=e.createBlock,u=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,m,v,y,t,C){const h=a("OpenC3TimePicker");return s(),o(h,{modelValue:t.timeValue,"onUpdate:modelValue":m[0]||(m[0]=V=>t.timeValue=V),label:t.label,style:u(d.computedStyle),"hide-details":""},null,8,["modelValue","label","style"])}const f=c("default",i(e,[["render",p]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-BDsgRxuV-68825d9673e8516edfbe.js","vue","./main-e0e82227eb6ea93aef11.js","vue-router","pinia","single-spa","vuetify"],(function(a,p){"use strict";var t,r,n,l,i,s;return{setters:[e=>{t=e.h},e=>{r=e.openBlock,n=e.createElementBlock,l=e.normalizeStyle,i=e.toDisplayString},e=>{s=e.d},null,null,null,null],execute:(function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function o(c,d,f,g,h,u){return r(),n("div",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},i(u.labelText),5)}const m=a("default",s(e,[["render",o]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./main-e0e82227eb6ea93aef11.js","vue","./DetailsDialog-q5SDzw3R-53a91bc6d0632a136bd1.js","single-spa","./VWidget-BDy0211S-6940643cf1852b70b09f.js","vue-router","pinia","vuetify","./LimitsBar-qMynDHYT-fb4bbd2bcc69e0029b99.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./Widget-BDsgRxuV-68825d9673e8516edfbe.js"],(function(_,U){"use strict";var m,a,i,u,p,o,v,c,n,l,g,d,y,f,h,x,C,S,V;return{setters:[t=>{m=t.d},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,y=t.mergeProps,f=t.Fragment,h=t.renderList,x=t.withModifiers,C=t.createTextVNode},t=>{S=t.Z},null,t=>{V=t.T},null,null,null,null,null,null],execute:(function(){const B={components:{DetailsDialog:S},mixins:[V],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,R,k){const w=a("rux-status"),D=a("v-text-field"),E=a("v-tooltip"),N=a("v-list-item-title"),M=a("v-list-item"),L=a("v-list"),z=a("v-menu"),j=a("details-dialog");return i(),u("div",{class:"value-widget-container",style:p([e.computedStyle,k.aging])},[e.tooltipText?(i(),o(D,{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(E,{key:0,"open-delay":600,location:"top"},{activator:n(({props:s})=>[l(D,y({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(k.fullName),1)]),_:1})),l(z,{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(L,null,{default:n(()=>[(i(!0),u(f,null,h(e.contextMenuOptions,(s,P)=>(i(),o(M,{key:P,onClick:x(s.action,["stop"])},{default:n(()=>[l(N,null,{default:n(()=>[C(d(s.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),l(j,{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=_("default",m(B,[["render",T],["__scopeId","data-v-8340df7d"]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./ValueWidget-DzOSy7lp-67645eb0b4215bd58b22.js","./LimitsbarWidget-CMvcwa-m-f29f1f212c79d50b9921.js","./Widget-BDsgRxuV-68825d9673e8516edfbe.js","vue","./main-e0e82227eb6ea93aef11.js","./DetailsDialog-q5SDzw3R-53a91bc6d0632a136bd1.js","./LimitsBar-qMynDHYT-fb4bbd2bcc69e0029b99.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","single-spa","./VWidget-BDy0211S-6940643cf1852b70b09f.js","vue-router","pinia","vuetify","./BarColumn-DwZmAe8g-0f403d70ed1387937240.js"],(function(g,f){"use strict";var r,i,a,n,u,c,o,s,l,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.h},e=>{n=e.resolveComponent,u=e.openBlock,c=e.createElementBlock,o=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.d},null,null,null,null,null,null,null,null,null],execute:(function(){const e={components:{ValueWidget:r,LimitsbarWidget:i},mixins:[a]};function p(t,j,w,y,S,D){const d=n("value-widget"),v=n("limitsbar-widget");return u(),c("div",{ref:"container",class:"d-flex flex-row",style:o(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(v,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 B=g("default",m(e,[["render",p]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./ValueWidget-DzOSy7lp-67645eb0b4215bd58b22.js","./RangebarWidget-DJXGUHAc-dad069030eb3388a4c5b.js","./Widget-BDsgRxuV-68825d9673e8516edfbe.js","vue","./main-e0e82227eb6ea93aef11.js","./DetailsDialog-q5SDzw3R-53a91bc6d0632a136bd1.js","./LimitsBar-qMynDHYT-fb4bbd2bcc69e0029b99.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","single-spa","./VWidget-BDy0211S-6940643cf1852b70b09f.js","vue-router","pinia","vuetify"],(function(g,f){"use strict";var n,i,l,r,u,m,p,s,a,o;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.h},e=>{r=e.resolveComponent,u=e.openBlock,m=e.createElementBlock,p=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{o=e.d},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,S,y,j,D,c){const h=r("value-widget"),v=r("rangebar-widget");return u(),m("div",{ref:"container",class:"d-flex flex-row",style:p(t.computedStyle)},[s(h,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 B=g("default",o(e,[["render",d]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Layout-d-vb0okO-b11d6ff13623c921f43e.js","vue","./main-e0e82227eb6ea93aef11.js","./Widget-BDsgRxuV-68825d9673e8516edfbe.js","vue-router","pinia","single-spa","vuetify"],(function(w,T){"use strict";var m,u,n,s,v,l,y,i,o,d,f,c,p,k;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,d=t.createElementVNode,f=t.toDisplayString,c=t.resolveDynamicComponent,p=t.mergeProps},t=>{k=t.d},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 h(r,g,a,x,z,A){const B=u("v-tooltip");return n(),s("div",{ref:"container",style:v(r.computedStyle)},[(n(!0),s(l,null,y(r.widgets,(e,C)=>(n(),s(l,{key:C},[r.getTooltipText(e)?(n(),i(B,{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 b=w("default",k(t,[["render",h]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./LabelWidget-FQI-cH_A-3222f6a948b5f94601ac.js","./HorizontallineWidget-BqbLK0zc-2f0af96b00bd8f2e3b56.js","./VerticalWidget-BOtXAhxt-8f1fe015770168c6ede4.js","./Layout-d-vb0okO-b11d6ff13623c921f43e.js","vue","./main-e0e82227eb6ea93aef11.js","./Widget-BDsgRxuV-68825d9673e8516edfbe.js","vue-router","pinia","single-spa","vuetify"],(function(m,b){"use strict";var r,l,a,o,n,s,c,g,d,i,u,p;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,c=e.createElementBlock,g=e.createBlock,d=e.createCommentVNode,i=e.createVNode,u=e.mergeProps},e=>{p=e.d},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 f(t,B,S,k,V,j){const h=n("label-widget"),v=n("horizontal-line-widget"),w=n("vertical-widget");return s(),c("div",null,[t.parameters.length>0?(s(),g(h,{key:0,parameters:t.parameters.slice(0,1),settings:[...t.labelSettings],"widget-index":0},null,8,["parameters","settings"])):d("",!0),i(v,{settings:[...t.appliedSettings],"widget-index":1},null,8,["settings"]),i(w,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 W=m("default",p(e,[["render",f]]))})}}));