openc3-cosmos-tool-limitsmonitor 6.8.0 → 6.8.1
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.
- checksums.yaml +4 -4
- data/tools/limitsmonitor/ArrayWidget-FGjLmPfG-280c9f8f061885ff9fe5.js +2 -0
- data/tools/limitsmonitor/{ArrayplotWidget-DuLaiGa9-34288673fdb38dee3ea7.js → ArrayplotWidget-Cfo18TYm-240536f6380c728752c3.js} +1 -1
- data/tools/limitsmonitor/{BarColumn-BWJ0Dd4O-f81952b47d4ae7a2ae18.js → BarColumn-BuJ6MTYG-f087bffe8c40cfb7e1fa.js} +1 -1
- data/tools/limitsmonitor/{BlockWidget-Bf5Dd6Cr-69ba204cef2687bc756a.js → BlockWidget-B_JwY8-N-883b478d01fab53e672b.js} +2 -2
- data/tools/limitsmonitor/ButtonWidget-Cd4M3aBD-6f7a0dfd20ad4ba679de.js +2 -0
- data/tools/limitsmonitor/{CanvasWidget-boDemgx1-97a4cac8b7e9de6be9f2.js → CanvasWidget-CpKdOgTG-2ca3a3c7c6207fb55a50.js} +1 -1
- data/tools/limitsmonitor/CanvasdotWidget-zYbI5LAw-28d7d8af20b6a2cbd4a0.js +1 -0
- data/tools/limitsmonitor/{CanvasimageWidget-6ywvT5jd-5ec440c7b5b99435a503.js → CanvasimageWidget--ORQEPj6-9eff74b115136c922567.js} +1 -1
- data/tools/limitsmonitor/{CanvasimagevalueWidget-DjWrA3gX-4b2220af6c6cadf9a8cb.js → CanvasimagevalueWidget-CtAtYHRm-89b0214a19f9cdcdc66a.js} +1 -1
- data/tools/limitsmonitor/CanvaslabelWidget-DWoROb6o-d15b7bc547a0da0108c1.js +1 -0
- data/tools/limitsmonitor/{CanvaslabelvalueWidget-C8oNcFLi-70b7f538e13f1a47b459.js → CanvaslabelvalueWidget-A4UbtwEc-57b3e17fc211896efb3a.js} +1 -1
- data/tools/limitsmonitor/{CanvaslineWidget-nvbL2GoL-f1062091f1af89ae4a36.js → CanvaslineWidget-BBGi0nrb-7357b1a22f621b43dd91.js} +1 -1
- data/tools/limitsmonitor/{CanvaslinevalueWidget-ZACQedKx-e1f211747d1e089dcf9b.js → CanvaslinevalueWidget-C_9OkL7f-74637c9d968e53a08367.js} +1 -1
- data/tools/limitsmonitor/{CheckbuttonWidget-B82UE8AB-ffa03a27065981db7431.js → CheckbuttonWidget-CTJg8Ypg-2e730cd3b48c4dab47ed.js} +1 -1
- data/tools/limitsmonitor/ComboboxWidget-DWiMZZk8-bc56b31f7a70a72b80e7.js +1 -0
- data/tools/limitsmonitor/{DateWidget-BmwtdirF-ad3b1abe13eab26eb21b.js → DateWidget-C7GSh68_-8ec3d888db39f76c4b1c.js} +1 -1
- data/tools/limitsmonitor/{DetailsDialog-CLKEfU0s-9a7b4535747d1b9bf6ca.js → DetailsDialog-B2l0BNc2-61b72e331f6f26ae564d.js} +1 -1
- data/tools/limitsmonitor/{DynamicWidget-CfMtj7H8-998735d161733a4193a7.js → DynamicWidget-CfMtj7H8-2b3aef257ea876571a40.js} +1 -1
- data/tools/limitsmonitor/{FormatvalueWidget-C8exC3bj-dc32ab2c73d3e1b0ae70.js → FormatvalueWidget-CZJdsUAq-157353fe8bad3ef54e86.js} +1 -1
- data/tools/limitsmonitor/{Graph-CWcrowaT-1cce2dabc839afb8fe98.js → Graph-DZBpdSgR-4a472a5c75f656b8dfe4.js} +1 -1
- data/tools/limitsmonitor/{GraphWidget-CvzxZYVx-89531f2125ce63ecf09d.js → GraphWidget-CHm4bhMI-99356cd86f8d1ebfcd43.js} +1 -1
- data/tools/limitsmonitor/{HorizontalWidget-Ck151zVw-ded02c333872cf7ed955.js → HorizontalWidget-B2skpV1m-849e69768d4f99777f9b.js} +1 -1
- data/tools/limitsmonitor/HorizontalboxWidget-BI0WZP5M-40a9c8992df50c1ef2b7.js +1 -0
- data/tools/limitsmonitor/HorizontallineWidget-AmxVeXcU-2ad2d5670e6da6d5e72f.js +1 -0
- data/tools/limitsmonitor/{IframeWidget-BgJCgues-66ddc95ffc3b2b136951.js → IframeWidget-DcqRMhyW-783eca67aa1224ffa48f.js} +1 -1
- data/tools/limitsmonitor/{ImageLoader-CWn-PLOk-ca73d77c23971a7b005a.js → ImageLoader-ly4zoGpO-8d293f3e36f37eacdae9.js} +1 -1
- data/tools/limitsmonitor/ImageviewerWidget-cmDHcmW4-9c73dfad4c2a9938d707.js +1 -0
- data/tools/limitsmonitor/{LabelWidget-Cwosk4x2-731a00eb5ae7f17cd400.js → LabelWidget-Bemw8Erq-f5ea46f9f88c8a07e9f8.js} +1 -1
- data/tools/limitsmonitor/LabelledWidget-Cb7EvtUG-5598a2d05d49920f5417.js +1 -0
- data/tools/limitsmonitor/LabelprogressbarWidget-qYgrGqLY-f496e5afea349b2d080a.js +1 -0
- data/tools/limitsmonitor/{LabelsparklineWidget-6LA6Ox3d-3eb71dfb70e90f923ae7.js → LabelsparklineWidget-CMklq9-f-9db7782b9bfacc3c2f54.js} +1 -1
- data/tools/limitsmonitor/LabelvalueWidget-NjCMgiYL-756658fb744fdfa08a7e.js +1 -0
- data/tools/limitsmonitor/{LabelvaluedescWidget-Dwwlnd1g-21901fb4389a6111424f.js → LabelvaluedescWidget-Dflulqm7-604d3eb1ad5012340da4.js} +1 -1
- data/tools/limitsmonitor/LabelvaluelimitsbarWidget-M34NDk2S-df7db6f41a53249a4302.js +1 -0
- data/tools/limitsmonitor/LabelvaluelimitscolumnWidget-Cchaw_-k-f3140742c3b438168b98.js +1 -0
- data/tools/limitsmonitor/LabelvaluerangebarWidget-7pEykAm3-e59c54eab0334ad1cf8a.js +1 -0
- data/tools/limitsmonitor/Layout-BNvQKlyy-ab493756eb1124f6922a.js +1 -0
- data/tools/limitsmonitor/{LedWidget-DOuDD8LI-61a268161ea668b2d2a5.js → LedWidget-_EA7ZKM8-95fb71f61f810fde30ff.js} +1 -1
- data/tools/limitsmonitor/LimitsMonitor-8311a1026706718d5c5b.js +8 -0
- data/tools/limitsmonitor/{LimitsbarWidget-D1U6SvVL-ebcbade450042d3f5a24.js → LimitsbarWidget-DdoQf46y-3efcbef86685ed6bc417.js} +1 -1
- data/tools/limitsmonitor/{LimitscolorWidget-iSMGusqt-d7ad68317bfa6b267a35.js → LimitscolorWidget-Cv0umnVo-76bb2809a7a4ee760664.js} +1 -1
- data/tools/limitsmonitor/{LimitscolumnWidget-DjxZTt_r-eb5c36cbfbfe7b24f572.js → LimitscolumnWidget-CnCQtxim-b7f69f44e7e58c63516e.js} +1 -1
- data/tools/limitsmonitor/{LinegraphWidget-BHKU6zlT-156e727039ff5e74646b.js → LinegraphWidget-ekyQoR7x-ea08e7a1c6d669da19f4.js} +1 -1
- data/tools/limitsmonitor/MatrixbycolumnsWidget-IBUcGNF7-898dda3424603152ac57.js +1 -0
- data/tools/limitsmonitor/{ProgressbarWidget-fbr2qu_N-cc4e02f5442c9c9c8014.js → ProgressbarWidget-CnveFZVh-5013ebf3b314b1096e2d.js} +1 -1
- data/tools/limitsmonitor/{RadiobuttonWidget-DL08zcQT-69de87fe86001038bc27.js → RadiobuttonWidget-hWLrCb8W-766b18edb7aa82d40024.js} +1 -1
- data/tools/limitsmonitor/{RadiogroupWidget-DW9Xpj3c-b5175ff8b73804725aee.js → RadiogroupWidget-DK1fphkh-ff19d2e0f39c5a40ec70.js} +1 -1
- data/tools/limitsmonitor/{RangebarWidget-o9q55kjc-25b9dc1e9c94afadadf7.js → RangebarWidget-vspY8CGV-8a3d8d05f0507b646ce3.js} +1 -1
- data/tools/limitsmonitor/{RollupWidget-BHnjj-DF-2f3f7cec24aa8a01beb2.js → RollupWidget-07pNcXQV-4de77fb3d6dd45301178.js} +1 -1
- data/tools/limitsmonitor/{ScrollwindowWidget-D-QVwztC-17abfa2bbe87ef54aa39.js → ScrollwindowWidget-BcbyrYUo-d5a81f377b6240d9b1ac.js} +1 -1
- data/tools/limitsmonitor/{SignalWidget-CsWuufdx-29c15bd13612114e510a.js → SignalWidget-BDp5sUHj-32c9e6845856896796c9.js} +1 -1
- data/tools/limitsmonitor/{SpacerWidget-Di9-qunj-e969e4e34369288535bc.js → SpacerWidget-DcOnQ1yI-dc87c8b8845481a71c79.js} +1 -1
- data/tools/limitsmonitor/{SparklineWidget-B6-zhdPW-4b537294a10bb75614f4.js → SparklineWidget-CVglnlAm-bc31850963e2c8af067f.js} +1 -1
- data/tools/limitsmonitor/TabbookWidget-p51Oa7Ru-48ee46277631707690e1.js +1 -0
- data/tools/limitsmonitor/TextboxWidget-DM-XX97e-c5e6481e4acdc3d3d412.js +1 -0
- data/tools/limitsmonitor/TextfieldWidget-7cYHAgH8-18463c568b946cb09992.js +1 -0
- data/tools/limitsmonitor/{TimeWidget-K4MNmJ7J-1307b1b77d4ffe3625fe.js → TimeWidget-EvQJyu6x-e8798b27f5218a0a8499.js} +1 -1
- data/tools/limitsmonitor/TitleWidget-6ddfJuqd-dceebcb868c89dc8beeb.js +1 -0
- data/tools/limitsmonitor/{VWidget-CoIgX3hM-ed969512a423fe7d5562.js → VWidget-P-X9ffkl-84f887e75088f1aab957.js} +1 -1
- data/tools/limitsmonitor/{ValueWidget-BvT1ASar-9c1637b35b4543df3eec.js → ValueWidget-DAUGuQ9f-2f5e889073e1ff5d1bff.js} +1 -1
- data/tools/limitsmonitor/ValuelimitsbarWidget-DmLUXw0I-1b6190b2f13adf2af8a5.js +1 -0
- data/tools/limitsmonitor/ValuelimitscolumnWidget-DDmo8wHJ-97fb5f47263376c84ae4.js +1 -0
- data/tools/limitsmonitor/ValuerangebarWidget-CbzWSWq3-29f6d8ac98ef824feb15.js +1 -0
- data/tools/limitsmonitor/VerticalWidget-BuKinn_c-e76ac82a0ac8e6c8f298.js +1 -0
- data/tools/limitsmonitor/VerticalboxWidget-C0zD5h0O-da810897a5a611c9cfe3.js +1 -0
- data/tools/limitsmonitor/{Widget-B8t93Oid-cdbbb47eb4c635a756f1.js → Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js} +1 -1
- data/tools/limitsmonitor/{main-4ea7df8746eb0bc0fbc8.js → main-ebb617ad10f09f739fef.js} +111 -111
- data/tools/limitsmonitor/main.js +1 -1
- metadata +68 -68
- data/tools/limitsmonitor/ArrayWidget-j3ncPuPx-48ec10cff87d7bb688fd.js +0 -2
- data/tools/limitsmonitor/ButtonWidget-bl_mGFYh-90c9cb7e6c91614f31c9.js +0 -2
- data/tools/limitsmonitor/CanvasdotWidget-BZBbJcER-43a7f291151bcf40fe2a.js +0 -1
- data/tools/limitsmonitor/CanvaslabelWidget-Bq4V2BQh-5ee08e6fbaeea245aac7.js +0 -1
- data/tools/limitsmonitor/ComboboxWidget-4OFiSkI6-e6541f0edd529314d752.js +0 -1
- data/tools/limitsmonitor/HorizontalboxWidget-D3P-cl9V-877ebfed6261938d6172.js +0 -1
- data/tools/limitsmonitor/HorizontallineWidget-BE1TjPU8-bef909846959fc0c8d0f.js +0 -1
- data/tools/limitsmonitor/ImageviewerWidget-BlhFZD2f-88e73cff9f99fcc33e10.js +0 -1
- data/tools/limitsmonitor/LabelledWidget-Dl6rAFTQ-90f978df790a2483276f.js +0 -1
- data/tools/limitsmonitor/LabelprogressbarWidget-MuAKesOz-979c43bca7dedbadedfa.js +0 -1
- data/tools/limitsmonitor/LabelvalueWidget-BxAXx-Tf-c79d9f6bede43033b9ad.js +0 -1
- data/tools/limitsmonitor/LabelvaluelimitsbarWidget-Dv8Qk8kK-50273abdf3711cf5a751.js +0 -1
- data/tools/limitsmonitor/LabelvaluelimitscolumnWidget-D-_gl6fq-a9b87d69ef6ec001960d.js +0 -1
- data/tools/limitsmonitor/LabelvaluerangebarWidget-B3MKT-3Y-3d93eae4f87096487503.js +0 -1
- data/tools/limitsmonitor/Layout-Bkb6VP3e-b0eecb7313ea4ca58071.js +0 -1
- data/tools/limitsmonitor/LimitsMonitor-ae40c17c4fae24024d85.js +0 -8
- data/tools/limitsmonitor/MatrixbycolumnsWidget-BKO-A2QD-63e2733f87f6370775af.js +0 -1
- data/tools/limitsmonitor/TabbookWidget-B1E1_mzA-ab18587edefcdd392c15.js +0 -1
- data/tools/limitsmonitor/TextboxWidget-CBVEXPw_-b6cf6e628c110910d948.js +0 -1
- data/tools/limitsmonitor/TextfieldWidget-DZMHrtQa-57c744bcf127d97d2626.js +0 -1
- data/tools/limitsmonitor/TitleWidget-8IcwweFE-960099da305c28322409.js +0 -1
- data/tools/limitsmonitor/ValuelimitsbarWidget-C5lBnUmB-c71fd8149317d9bceda1.js +0 -1
- data/tools/limitsmonitor/ValuelimitscolumnWidget-DHYI0WBL-cd0e2daf5352df40a252.js +0 -1
- data/tools/limitsmonitor/ValuerangebarWidget-BSszZhlE-b2f1ca5f69c9646cb6cf.js +0 -1
- data/tools/limitsmonitor/VerticalWidget-1GhgYrC3-c2b48826ad43a2ce6c38.js +0 -1
- data/tools/limitsmonitor/VerticalboxWidget-DYHJqEzd-32a31c2f72ac7a838702.js +0 -1
@@ -0,0 +1,8 @@
|
|
1
|
+
System.register(["./main-ebb617ad10f09f739fef.js","vue","single-spa","./ValueWidget-DAUGuQ9f-2f5e889073e1ff5d1bff.js","./IframeWidget-DcqRMhyW-783eca67aa1224ffa48f.js","./ValuelimitsbarWidget-DmLUXw0I-1b6190b2f13adf2af8a5.js","vue-router","vuex","vuetify","./DetailsDialog-B2l0BNc2-61b72e331f6f26ae564d.js","./VWidget-P-X9ffkl-84f887e75088f1aab957.js","./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","./LimitsbarWidget-DdoQf46y-3efcbef86685ed6bc417.js","./BarColumn-BuJ6MTYG-f087bffe8c40cfb7e1fa.js"],(function(ks,Ti){"use strict";var dt,Ee,Ve,ht,ft,pt,y,N,k,mt,b,g,q,G,H,Q,ae,U,xe,Ce,ee,Me,ze,gt,bt;return{setters:[C=>{dt=C.d,Ee=C._,Ve=C.R,ht=C.T,ft=C.A,pt=C.U},C=>{y=C.resolveComponent,N=C.createBlock,k=C.openBlock,mt=C.Teleport,b=C.createVNode,g=C.withCtx,q=C.createElementVNode,G=C.toDisplayString,H=C.createElementBlock,Q=C.Fragment,ae=C.renderList,U=C.createTextVNode,xe=C.mergeProps,Ce=C.createSlots,ee=C.createCommentVNode,Me=C.normalizeStyle,ze=C.normalizeClass},null,C=>{gt=C.default},null,C=>{bt=C.default},null,null,null,null,null,null,null,null],execute:(function(){var C=document.createElement("style");C.textContent=`.footer[data-v-ed7ec5ac]{padding-top:5px}.v-input[data-v-ed7ec5ac]{background-color:var(--color-background-base-default)}.textfield-green[data-v-ed7ec5ac]{color:#00c800}.textfield-yellow[data-v-ed7ec5ac]{color:#ffdc00}.textfield-red[data-v-ed7ec5ac]{color:#ff2d2d}.limits-table[data-v-ed7ec5ac]{margin-top:5px;margin-bottom:10px}.limits-table[data-v-ed7ec5ac] th{font-weight:700;background-color:var(--color-background-base-default)}.card-height[data-v-3c276116]{height:calc(100vh - 150px)}
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(C);const Rs={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(t){return t.replaceAll(" ","-").toLowerCase()},subMenuClick(t){t.command(t),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},Is={class:"app-title mr-2"};function As(t,e,s,r,n,i){const o=y("v-col"),a=y("v-row"),c=y("v-icon"),u=y("v-btn"),d=y("v-divider"),h=y("v-list-item-title"),_=y("v-list-item"),f=y("v-list"),m=y("v-menu"),p=y("v-radio"),R=y("v-list-item-action"),A=y("v-radio-group"),x=y("v-checkbox");return k(),N(mt,{to:"#openc3-menu"},[b(a,{"no-gutters":""},{default:g(()=>[b(o,{"align-self":"end"},{default:g(()=>[q("span",Is,G(s.title),1)]),_:1})]),_:1}),b(a,{dense:"",class:"flex-nowrap"},{default:g(()=>[(k(!0),H(Q,null,ae(s.menus,(E,D)=>(k(),N(m,{ref_for:!0,ref:"topmenu",key:D},{activator:g(({props:w})=>[b(u,xe({ref_for:!0},w,{variant:"outlined",class:"mx-1 menu-button",text:E.label,"data-test":i.formatDT(`${s.title} ${E.label}`)}),{append:g(()=>[b(c,{class:"menu-button-icon"},{default:g(()=>[...e[0]||(e[0]=[U(" mdi-menu-down ",-1)])]),_:1})]),_:1},16,["text","data-test"])]),default:g(()=>[b(f,null,{default:g(()=>[(k(!0),H(Q,null,ae(E.items,(w,$)=>(k(),H(Q,null,[w.divider?(k(),N(d,{key:$+"-divider"})):w.subMenu&&w.subMenu.length>0?(k(),H("div",{key:$+"-submenu"},[(k(),N(m,{"open-on-hover":"",location:"right",key:$},{activator:g(({props:T})=>[(k(),N(_,xe({ref_for:!0},T,{disabled:w.disabled,key:$}),Ce({append:g(()=>[b(c,null,{default:g(()=>[...e[1]||(e[1]=[U(" mdi-chevron-right ",-1)])]),_:1})]),default:g(()=>[!w.radio&&!w.checkbox?(k(),N(h,{key:0,style:Me("cursor: pointer;"+(w.disabled?"opacity: 0.2":""))},{default:g(()=>[U(G(w.label),1)]),_:2},1032,["style"])):ee("",!0)]),_:2},[w.icon?{name:"prepend",fn:g(()=>[b(c,{disabled:w.disabled},{default:g(()=>[U(G(w.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:g(()=>[b(f,null,{default:g(()=>[(k(!0),H(Q,null,ae(w.subMenu,(T,O)=>(k(),N(_,{key:O,"prepend-icon":T.icon,onClick:L=>i.subMenuClick(T)},{default:g(()=>[b(h,null,{default:g(()=>[U(G(T.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):w.radioGroup?(k(),N(A,{"model-value":w.value,"onUpdate:modelValue":w.command,key:$+"-radio-group","hide-details":"",density:"compact",class:"ma-0 pa-0"},{default:g(()=>[(k(!0),H(Q,null,ae(w.choices,(T,O)=>(k(),N(_,{key:O+"-choice"},{default:g(()=>[b(R,{class:"list-action"},{default:g(()=>[b(p,{color:"secondary",label:T.label,value:T.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(k(),N(_,{onClick:T=>w.command(w),disabled:w.disabled,"data-test":i.formatDT(`${s.title} ${E.label} ${w.label}`),key:$+"-list"},Ce({default:g(()=>[w.checkbox?(k(),N(R,{key:0,class:"list-action"},{default:g(()=>[b(x,{modelValue:w.checked,"onUpdate:modelValue":T=>w.checked=T,label:w.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):ee("",!0),!w.radio&&!w.checkbox?(k(),N(h,{key:1,style:Me("cursor: pointer;"+(w.disabled?"opacity: 0.2":""))},{default:g(()=>[U(G(w.label),1)]),_:2},1032,["style"])):ee("",!0)]),_:2},[w.icon?{name:"prepend",fn:g(()=>[b(c,{icon:w.icon,disabled:w.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["onClick","disabled","data-test"]))],64))),256))]),_:2},1024)]),_:2},1024))),128))]),_:1})])}const Ts=dt(Rs,[["render",As],["__scopeId","data-v-4d454b93"]]);var Ls=Object.defineProperty,js=(t,e,s)=>e in t?Ls(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,Oe=(t,e,s)=>js(t,typeof e!="symbol"?e+"":e,s);function _t(t,e){return function(){return t.apply(e,arguments)}}const{toString:Ps}=Object.prototype,{getPrototypeOf:We}=Object,{iterator:ke,toStringTag:yt}=Symbol,Re=(t=>e=>{const s=Ps.call(e);return t[s]||(t[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),J=t=>(t=t.toLowerCase(),e=>Re(e)===t),Ie=t=>e=>typeof e===t,{isArray:ce}=Array,le=Ie("undefined");function pe(t){return t!==null&&!le(t)&&t.constructor!==null&&!le(t.constructor)&&V(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const wt=J("ArrayBuffer");function Ns(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&wt(t.buffer),e}const Us=Ie("string"),V=Ie("function"),vt=Ie("number"),me=t=>t!==null&&typeof t=="object",Fs=t=>t===!0||t===!1,Ae=t=>{if(Re(t)!=="object")return!1;const e=We(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(yt in t)&&!(ke in t)},Ds=t=>{if(!me(t)||pe(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Bs=J("Date"),$s=J("File"),qs=J("Blob"),Vs=J("FileList"),Ms=t=>me(t)&&V(t.pipe),zs=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||V(t.append)&&((e=Re(t))==="formdata"||e==="object"&&V(t.toString)&&t.toString()==="[object FormData]"))},Ws=J("URLSearchParams"),[Hs,Js,Ks,Gs]=["ReadableStream","Request","Response","Headers"].map(J),Ys=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ge(t,e,{allOwnKeys:s=!1}={}){if(t===null||typeof t>"u")return;let r,n;if(typeof t!="object"&&(t=[t]),ce(t))for(r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else{if(pe(t))return;const i=s?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let a;for(r=0;r<o;r++)a=i[r],e.call(null,t[a],a,t)}}function St(t,e){if(pe(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 te=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Et=t=>!le(t)&&t!==te;function He(){const{caseless:t,skipUndefined:e}=Et(this)&&this||{},s={},r=(n,i)=>{const o=t&&St(s,i)||i;Ae(s[o])&&Ae(n)?s[o]=He(s[o],n):Ae(n)?s[o]=He({},n):ce(n)?s[o]=n.slice():(!e||!le(n))&&(s[o]=n)};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ge(arguments[n],r);return s}const Zs=(t,e,s,{allOwnKeys:r}={})=>(ge(e,(n,i)=>{s&&V(n)?t[i]=_t(n,s):t[i]=n},{allOwnKeys:r}),t),Xs=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Qs=(t,e,s,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),s&&Object.assign(t.prototype,s)},er=(t,e,s,r)=>{let n,i,o;const a={};if(e=e||{},t==null)return e;do{for(n=Object.getOwnPropertyNames(t),i=n.length;i-- >0;)o=n[i],(!r||r(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=s!==!1&&We(t)}while(t&&(!s||s(t,e))&&t!==Object.prototype);return e},tr=(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},sr=t=>{if(!t)return null;if(ce(t))return t;let e=t.length;if(!vt(e))return null;const s=new Array(e);for(;e-- >0;)s[e]=t[e];return s},rr=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&We(Uint8Array)),nr=(t,e)=>{const s=(t&&t[ke]).call(t);let r;for(;(r=s.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},ir=(t,e)=>{let s;const r=[];for(;(s=t.exec(e))!==null;)r.push(s);return r},or=J("HTMLFormElement"),ar=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,s,r){return s.toUpperCase()+r}),xt=(({hasOwnProperty:t})=>(e,s)=>t.call(e,s))(Object.prototype),cr=J("RegExp"),Ct=(t,e)=>{const s=Object.getOwnPropertyDescriptors(t),r={};ge(s,(n,i)=>{let o;(o=e(n,i,t))!==!1&&(r[i]=o||n)}),Object.defineProperties(t,r)},lr=t=>{Ct(t,(e,s)=>{if(V(t)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const r=t[s];if(V(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+"'")})}})},ur=(t,e)=>{const s={},r=n=>{n.forEach(i=>{s[i]=!0})};return ce(t)?r(t):r(String(t).split(e)),s},dr=()=>{},hr=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function fr(t){return!!(t&&V(t.append)&&t[yt]==="FormData"&&t[ke])}const pr=t=>{const e=new Array(10),s=(r,n)=>{if(me(r)){if(e.indexOf(r)>=0)return;if(pe(r))return r;if(!("toJSON"in r)){e[n]=r;const i=ce(r)?[]:{};return ge(r,(o,a)=>{const c=s(o,n+1);!le(c)&&(i[a]=c)}),e[n]=void 0,i}}return r};return s(t,0)},mr=J("AsyncFunction"),gr=t=>t&&(me(t)||V(t))&&V(t.then)&&V(t.catch),Ot=((t,e)=>t?setImmediate:e?((s,r)=>(te.addEventListener("message",({source:n,data:i})=>{n===te&&i===s&&r.length&&r.shift()()},!1),n=>{r.push(n),te.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",V(te.postMessage)),br=typeof queueMicrotask<"u"?queueMicrotask.bind(te):typeof process<"u"&&process.nextTick||Ot,_r=t=>t!=null&&V(t[ke]),l={isArray:ce,isArrayBuffer:wt,isBuffer:pe,isFormData:zs,isArrayBufferView:Ns,isString:Us,isNumber:vt,isBoolean:Fs,isObject:me,isPlainObject:Ae,isEmptyObject:Ds,isReadableStream:Hs,isRequest:Js,isResponse:Ks,isHeaders:Gs,isUndefined:le,isDate:Bs,isFile:$s,isBlob:qs,isRegExp:cr,isFunction:V,isStream:Ms,isURLSearchParams:Ws,isTypedArray:rr,isFileList:Vs,forEach:ge,merge:He,extend:Zs,trim:Ys,stripBOM:Xs,inherits:Qs,toFlatObject:er,kindOf:Re,kindOfTest:J,endsWith:tr,toArray:sr,forEachEntry:nr,matchAll:ir,isHTMLForm:or,hasOwnProperty:xt,hasOwnProp:xt,reduceDescriptors:Ct,freezeMethods:lr,toObjectSet:ur,toCamelCase:ar,noop:dr,toFiniteNumber:hr,findKey:St,global:te,isContextDefined:Et,isSpecCompliantForm:fr,toJSONObject:pr,isAsyncFn:mr,isThenable:gr,setImmediate:Ot,asap:br,isIterable:_r};function S(t,e,s,r,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),s&&(this.config=s),r&&(this.request=r),n&&(this.response=n,this.status=n.status?n.status:null)}l.inherits(S,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:l.toJSONObject(this.config),code:this.code,status:this.status}}});const kt=S.prototype,Rt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Rt[t]={value:t}}),Object.defineProperties(S,Rt),Object.defineProperty(kt,"isAxiosError",{value:!0}),S.from=(t,e,s,r,n,i)=>{const o=Object.create(kt);l.toFlatObject(t,o,function(u){return u!==Error.prototype},u=>u!=="isAxiosError");const a=t&&t.message?t.message:"Error",c=e==null&&t?t.code:e;return S.call(o,a,c,s,r,n),t&&o.cause==null&&Object.defineProperty(o,"cause",{value:t,configurable:!0}),o.name=t&&t.name||"Error",i&&Object.assign(o,i),o};const yr=null;function Je(t){return l.isPlainObject(t)||l.isArray(t)}function It(t){return l.endsWith(t,"[]")?t.slice(0,-2):t}function At(t,e,s){return t?t.concat(e).map(function(r,n){return r=It(r),!s&&n?"["+r+"]":r}).join(s?".":""):e}function wr(t){return l.isArray(t)&&!t.some(Je)}const vr=l.toFlatObject(l,{},null,function(t){return/^is[A-Z]/.test(t)});function Te(t,e,s){if(!l.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,s=l.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!l.isUndefined(m[f])});const r=s.metaTokens,n=s.visitor||u,i=s.dots,o=s.indexes,a=(s.Blob||typeof Blob<"u"&&Blob)&&l.isSpecCompliantForm(e);if(!l.isFunction(n))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(l.isDate(f))return f.toISOString();if(l.isBoolean(f))return f.toString();if(!a&&l.isBlob(f))throw new S("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(f)||l.isTypedArray(f)?a&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,m,p){let R=f;if(f&&!p&&typeof f=="object"){if(l.endsWith(m,"{}"))m=r?m:m.slice(0,-2),f=JSON.stringify(f);else if(l.isArray(f)&&wr(f)||(l.isFileList(f)||l.endsWith(m,"[]"))&&(R=l.toArray(f)))return m=It(m),R.forEach(function(A,x){!(l.isUndefined(A)||A===null)&&e.append(o===!0?At([m],x,i):o===null?m:m+"[]",c(A))}),!1}return Je(f)?!0:(e.append(At(p,m,i),c(f)),!1)}const d=[],h=Object.assign(vr,{defaultVisitor:u,convertValue:c,isVisitable:Je});function _(f,m){if(!l.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(f),l.forEach(f,function(p,R){(!(l.isUndefined(p)||p===null)&&n.call(e,p,l.isString(R)?R.trim():R,m,h))===!0&&_(p,m?m.concat(R):[R])}),d.pop()}}if(!l.isObject(t))throw new TypeError("data must be an object");return _(t),e}function Tt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(s){return e[s]})}function Ke(t,e){this._pairs=[],t&&Te(t,this,e)}const Lt=Ke.prototype;Lt.append=function(t,e){this._pairs.push([t,e])},Lt.toString=function(t){const e=t?function(s){return t.call(this,s,Tt)}:Tt;return this._pairs.map(function(s){return e(s[0])+"="+e(s[1])},"").join("&")};function Sr(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function jt(t,e,s){if(!e)return t;const r=s&&s.encode||Sr;l.isFunction(s)&&(s={serialize:s});const n=s&&s.serialize;let i;if(n?i=n(e,s):i=l.isURLSearchParams(e)?e.toString():new Ke(e,s).toString(r),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Pt{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){l.forEach(this.handlers,function(s){s!==null&&e(s)})}}const Nt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Er=typeof URLSearchParams<"u"?URLSearchParams:Ke,xr=typeof FormData<"u"?FormData:null,Cr=typeof Blob<"u"?Blob:null,Or={isBrowser:!0,classes:{URLSearchParams:Er,FormData:xr,Blob:Cr},protocols:["http","https","file","blob","url","data"]},Ge=typeof window<"u"&&typeof document<"u",Ye=typeof navigator=="object"&&navigator||void 0,kr=Ge&&(!Ye||["ReactNative","NativeScript","NS"].indexOf(Ye.product)<0),Rr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ir=Ge&&window.location.href||"http://localhost",Ar=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ge,hasStandardBrowserEnv:kr,hasStandardBrowserWebWorkerEnv:Rr,navigator:Ye,origin:Ir},Symbol.toStringTag,{value:"Module"})),F={...Ar,...Or};function Tr(t,e){return Te(t,new F.classes.URLSearchParams,{visitor:function(s,r,n,i){return F.isNode&&l.isBuffer(s)?(this.append(r,s.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}function Lr(t){return l.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function jr(t){const e={},s=Object.keys(t);let r;const n=s.length;let i;for(r=0;r<n;r++)i=s[r],e[i]=t[i];return e}function Ut(t){function e(s,r,n,i){let o=s[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),c=i>=s.length;return o=!o&&l.isArray(n)?n.length:o,c?(l.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r,!a):((!n[o]||!l.isObject(n[o]))&&(n[o]=[]),e(s,r,n[o],i)&&l.isArray(n[o])&&(n[o]=jr(n[o])),!a)}if(l.isFormData(t)&&l.isFunction(t.entries)){const s={};return l.forEachEntry(t,(r,n)=>{e(Lr(r),n,s,0)}),s}return null}function Pr(t,e,s){if(l.isString(t))try{return(e||JSON.parse)(t),l.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(s||JSON.stringify)(t)}const be={transitional:Nt,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const s=e.getContentType()||"",r=s.indexOf("application/json")>-1,n=l.isObject(t);if(n&&l.isHTMLForm(t)&&(t=new FormData(t)),l.isFormData(t))return r?JSON.stringify(Ut(t)):t;if(l.isArrayBuffer(t)||l.isBuffer(t)||l.isStream(t)||l.isFile(t)||l.isBlob(t)||l.isReadableStream(t))return t;if(l.isArrayBufferView(t))return t.buffer;if(l.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(n){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Tr(t,this.formSerializer).toString();if((i=l.isFileList(t))||s.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return Te(i?{"files[]":t}:t,o&&new o,this.formSerializer)}}return n||r?(e.setContentType("application/json",!1),Pr(t)):t}],transformResponse:[function(t){const e=this.transitional||be.transitional,s=e&&e.forcedJSONParsing,r=this.responseType==="json";if(l.isResponse(t)||l.isReadableStream(t))return t;if(t&&l.isString(t)&&(s&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(i){if(n)throw i.name==="SyntaxError"?S.from(i,S.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:F.classes.FormData,Blob:F.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch"],t=>{be.headers[t]={}});const Nr=l.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ur=t=>{const e={};let s,r,n;return t&&t.split(`
|
3
|
+
`).forEach(function(i){n=i.indexOf(":"),s=i.substring(0,n).trim().toLowerCase(),r=i.substring(n+1).trim(),!(!s||e[s]&&Nr[s])&&(s==="set-cookie"?e[s]?e[s].push(r):e[s]=[r]:e[s]=e[s]?e[s]+", "+r:r)}),e},Ft=Symbol("internals");function _e(t){return t&&String(t).trim().toLowerCase()}function Le(t){return t===!1||t==null?t:l.isArray(t)?t.map(Le):String(t)}function Fr(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 Dr=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ze(t,e,s,r,n){if(l.isFunction(r))return r.call(this,e,s);if(n&&(e=s),!!l.isString(e)){if(l.isString(r))return e.indexOf(r)!==-1;if(l.isRegExp(r))return r.test(e)}}function Br(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,s,r)=>s.toUpperCase()+r)}function $r(t,e){const s=l.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+s,{value:function(n,i,o){return this[r].call(this,e,n,i,o)},configurable:!0})})}let M=class{constructor(t){t&&this.set(t)}set(t,e,s){const r=this;function n(o,a,c){const u=_e(a);if(!u)throw new Error("header name must be a non-empty string");const d=l.findKey(r,u);(!d||r[d]===void 0||c===!0||c===void 0&&r[d]!==!1)&&(r[d||a]=Le(o))}const i=(o,a)=>l.forEach(o,(c,u)=>n(c,u,a));if(l.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(l.isString(t)&&(t=t.trim())&&!Dr(t))i(Ur(t),e);else if(l.isObject(t)&&l.isIterable(t)){let o={},a,c;for(const u of t){if(!l.isArray(u))throw TypeError("Object iterator must return a key-value pair");o[c=u[0]]=(a=o[c])?l.isArray(a)?[...a,u[1]]:[a,u[1]]:u[1]}i(o,e)}else t!=null&&n(e,t,s);return this}get(t,e){if(t=_e(t),t){const s=l.findKey(this,t);if(s){const r=this[s];if(!e)return r;if(e===!0)return Fr(r);if(l.isFunction(e))return e.call(this,r,s);if(l.isRegExp(e))return e.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=_e(t),t){const s=l.findKey(this,t);return!!(s&&this[s]!==void 0&&(!e||Ze(this,this[s],s,e)))}return!1}delete(t,e){const s=this;let r=!1;function n(i){if(i=_e(i),i){const o=l.findKey(s,i);o&&(!e||Ze(s,s[o],o,e))&&(delete s[o],r=!0)}}return l.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||Ze(this,this[n],n,t,!0))&&(delete this[n],r=!0)}return r}normalize(t){const e=this,s={};return l.forEach(this,(r,n)=>{const i=l.findKey(s,n);if(i){e[i]=Le(r),delete e[n];return}const o=t?Br(n):String(n).trim();o!==n&&delete e[n],e[o]=Le(r),s[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return l.forEach(this,(s,r)=>{s!=null&&s!==!1&&(e[r]=t&&l.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[Ft]=this[Ft]={accessors:{}}).accessors,s=this.prototype;function r(n){const i=_e(n);e[i]||($r(s,n),e[i]=!0)}return l.isArray(t)?t.forEach(r):r(t),this}};M.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),l.reduceDescriptors(M.prototype,({value:t},e)=>{let s=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[s]=r}}}),l.freezeMethods(M);function Xe(t,e){const s=this||be,r=e||s,n=M.from(r.headers);let i=r.data;return l.forEach(t,function(o){i=o.call(s,i,n.normalize(),e?e.status:void 0)}),n.normalize(),i}function Dt(t){return!!(t&&t.__CANCEL__)}function ue(t,e,s){S.call(this,t??"canceled",S.ERR_CANCELED,e,s),this.name="CanceledError"}l.inherits(ue,S,{__CANCEL__:!0});function Bt(t,e,s){const r=s.config.validateStatus;!s.status||!r||r(s.status)?t(s):e(new S("Request failed with status code "+s.status,[S.ERR_BAD_REQUEST,S.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function qr(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Vr(t,e){t=t||10;const s=new Array(t),r=new Array(t);let n=0,i=0,o;return e=e!==void 0?e:1e3,function(a){const c=Date.now(),u=r[i];o||(o=c),s[n]=a,r[n]=c;let d=i,h=0;for(;d!==n;)h+=s[d++],d=d%t;if(n=(n+1)%t,n===i&&(i=(i+1)%t),c-o<e)return;const _=u&&c-u;return _?Math.round(h*1e3/_):void 0}}function Mr(t,e){let s=0,r=1e3/e,n,i;const o=(a,c=Date.now())=>{s=c,n=null,i&&(clearTimeout(i),i=null),t(...a)};return[(...a)=>{const c=Date.now(),u=c-s;u>=r?o(a,c):(n=a,i||(i=setTimeout(()=>{i=null,o(n)},r-u)))},()=>n&&o(n)]}const je=(t,e,s=3)=>{let r=0;const n=Vr(50,250);return Mr(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,c=o-r,u=n(c),d=o<=a;r=o;const h={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&d?(a-o)/u:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(h)},s)},$t=(t,e)=>{const s=t!=null;return[r=>e[0]({lengthComputable:s,total:t,loaded:r}),e[1]]},qt=t=>(...e)=>l.asap(()=>t(...e)),zr=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,Wr=F.hasStandardBrowserEnv?{write(t,e,s,r,n,i){const o=[t+"="+encodeURIComponent(e)];l.isNumber(s)&&o.push("expires="+new Date(s).toGMTString()),l.isString(r)&&o.push("path="+r),l.isString(n)&&o.push("domain="+n),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Hr(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Jr(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Vt(t,e,s){let r=!Hr(e);return t&&(r||s==!1)?Jr(t,e):e}const Mt=t=>t instanceof M?{...t}:t;function se(t,e){e=e||{};const s={};function r(u,d,h,_){return l.isPlainObject(u)&&l.isPlainObject(d)?l.merge.call({caseless:_},u,d):l.isPlainObject(d)?l.merge({},d):l.isArray(d)?d.slice():d}function n(u,d,h,_){if(l.isUndefined(d)){if(!l.isUndefined(u))return r(void 0,u,h,_)}else return r(u,d,h,_)}function i(u,d){if(!l.isUndefined(d))return r(void 0,d)}function o(u,d){if(l.isUndefined(d)){if(!l.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function a(u,d,h){if(h in e)return r(u,d);if(h in t)return r(void 0,u)}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,d,h)=>n(Mt(u),Mt(d),h,!0)};return l.forEach(Object.keys({...t,...e}),function(u){const d=c[u]||n,h=d(t[u],e[u],u);l.isUndefined(h)&&d!==a||(s[u]=h)}),s}const zt=t=>{const e=se({},t);let{data:s,withXSRFToken:r,xsrfHeaderName:n,xsrfCookieName:i,headers:o,auth:a}=e;if(e.headers=o=M.from(o),e.url=jt(Vt(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),l.isFormData(s)){if(F.hasStandardBrowserEnv||F.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(l.isFunction(s.getHeaders)){const c=s.getHeaders(),u=["content-type","content-length"];Object.entries(c).forEach(([d,h])=>{u.includes(d.toLowerCase())&&o.set(d,h)})}}if(F.hasStandardBrowserEnv&&(r&&l.isFunction(r)&&(r=r(e)),r||r!==!1&&zr(e.url))){const c=n&&i&&Wr.read(i);c&&o.set(n,c)}return e},Kr=typeof XMLHttpRequest<"u",Gr=Kr&&function(t){return new Promise(function(e,s){const r=zt(t);let n=r.data;const i=M.from(r.headers).normalize();let{responseType:o,onUploadProgress:a,onDownloadProgress:c}=r,u,d,h,_,f;function m(){_&&_(),f&&f(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let p=new XMLHttpRequest;p.open(r.method.toUpperCase(),r.url,!0),p.timeout=r.timeout;function R(){if(!p)return;const x=M.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),E={data:!o||o==="text"||o==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:x,config:t,request:p};Bt(function(D){e(D),m()},function(D){s(D),m()},E),p=null}"onloadend"in p?p.onloadend=R:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(R)},p.onabort=function(){p&&(s(new S("Request aborted",S.ECONNABORTED,t,p)),p=null)},p.onerror=function(x){const E=x&&x.message?x.message:"Network Error",D=new S(E,S.ERR_NETWORK,t,p);D.event=x||null,s(D),p=null},p.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const E=r.transitional||Nt;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),s(new S(x,E.clarifyTimeoutError?S.ETIMEDOUT:S.ECONNABORTED,t,p)),p=null},n===void 0&&i.setContentType(null),"setRequestHeader"in p&&l.forEach(i.toJSON(),function(x,E){p.setRequestHeader(E,x)}),l.isUndefined(r.withCredentials)||(p.withCredentials=!!r.withCredentials),o&&o!=="json"&&(p.responseType=r.responseType),c&&([h,f]=je(c,!0),p.addEventListener("progress",h)),a&&p.upload&&([d,_]=je(a),p.upload.addEventListener("progress",d),p.upload.addEventListener("loadend",_)),(r.cancelToken||r.signal)&&(u=x=>{p&&(s(!x||x.type?new ue(null,t,p):x),p.abort(),p=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const A=qr(r.url);if(A&&F.protocols.indexOf(A)===-1){s(new S("Unsupported protocol "+A+":",S.ERR_BAD_REQUEST,t));return}p.send(n||null)})},Yr=(t,e)=>{const{length:s}=t=t?t.filter(Boolean):[];if(e||s){let r=new AbortController,n;const i=function(u){if(!n){n=!0,a();const d=u instanceof Error?u:this.reason;r.abort(d instanceof S?d:new ue(d instanceof Error?d.message:d))}};let o=e&&setTimeout(()=>{o=null,i(new S(`timeout ${e} of ms exceeded`,S.ETIMEDOUT))},e);const a=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),t=null)};t.forEach(u=>u.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>l.asap(a),c}},Zr=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},Xr=async function*(t,e){for await(const s of Qr(t))yield*Zr(s,e)},Qr=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()}},Wt=(t,e,s,r)=>{const n=Xr(t,e);let i=0,o,a=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await n.next();if(u){a(),c.close();return}let h=d.byteLength;if(s){let _=i+=h;s(_)}c.enqueue(new Uint8Array(d))}catch(u){throw a(u),u}},cancel(c){return a(c),n.return()}},{highWaterMark:2})},Ht=64*1024,{isFunction:Pe}=l,Jt=(({fetch:t,Request:e,Response:s})=>({fetch:t,Request:e,Response:s}))(l.global),{ReadableStream:Kt,TextEncoder:Gt}=l.global,Yt=(t,...e)=>{try{return!!t(...e)}catch{return!1}},en=t=>{const{fetch:e,Request:s,Response:r}=Object.assign({},Jt,t),n=Pe(e),i=Pe(s),o=Pe(r);if(!n)return!1;const a=n&&Pe(Kt),c=n&&(typeof Gt=="function"?(m=>p=>m.encode(p))(new Gt):async m=>new Uint8Array(await new s(m).arrayBuffer())),u=i&&a&&Yt(()=>{let m=!1;const p=new s(F.origin,{body:new Kt,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!p}),d=o&&a&&Yt(()=>l.isReadableStream(new r("").body)),h={stream:d&&(m=>m.body)};n&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!h[m]&&(h[m]=(p,R)=>{let A=p&&p[m];if(A)return A.call(p);throw new S(`Response type '${m}' is not supported`,S.ERR_NOT_SUPPORT,R)})});const _=async m=>{if(m==null)return 0;if(l.isBlob(m))return m.size;if(l.isSpecCompliantForm(m))return(await new s(F.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(l.isArrayBufferView(m)||l.isArrayBuffer(m))return m.byteLength;if(l.isURLSearchParams(m)&&(m=m+""),l.isString(m))return(await c(m)).byteLength},f=async(m,p)=>l.toFiniteNumber(m.getContentLength())??_(p);return async m=>{let{url:p,method:R,data:A,signal:x,cancelToken:E,timeout:D,onDownloadProgress:w,onUploadProgress:$,responseType:T,headers:O,withCredentials:L="same-origin",fetchOptions:oe}=zt(m);T=T?(T+"").toLowerCase():"text";let B=Yr([x,E&&E.toAbortSignal()],D),W=null;const j=B&&B.unsubscribe&&(()=>{B.unsubscribe()});let v;try{if($&&u&&R!=="get"&&R!=="head"&&(v=await f(O,A))!==0){let X=new s(p,{method:"POST",body:A,duplex:"half"}),fe;if(l.isFormData(A)&&(fe=X.headers.get("content-type"))&&O.setContentType(fe),X.body){const[ut,qe]=$t(v,je(qt($)));A=Wt(X.body,Ht,ut,qe)}}l.isString(L)||(L=L?"include":"omit");const I=i&&"credentials"in s.prototype,Z={...oe,signal:B,method:R.toUpperCase(),headers:O.normalize().toJSON(),body:A,duplex:"half",credentials:I?L:void 0};W=i&&new s(p,Z);let z=await(i?e(W,oe):e(p,Z));const he=d&&(T==="stream"||T==="response");if(d&&(w||he&&j)){const X={};["status","statusText","headers"].forEach(Cs=>{X[Cs]=z[Cs]});const fe=l.toFiniteNumber(z.headers.get("content-length")),[ut,qe]=w&&$t(fe,je(qt(w),!0))||[];z=new r(Wt(z.body,Ht,ut,()=>{qe&&qe(),j&&j()}),X)}T=T||"text";let Ai=await h[l.findKey(h,T)||"text"](z,m);return!he&&j&&j(),await new Promise((X,fe)=>{Bt(X,fe,{data:Ai,headers:M.from(z.headers),status:z.status,statusText:z.statusText,config:m,request:W})})}catch(I){throw j&&j(),I&&I.name==="TypeError"&&/Load failed|fetch/i.test(I.message)?Object.assign(new S("Network Error",S.ERR_NETWORK,m,W),{cause:I.cause||I}):S.from(I,I&&I.code,m,W)}}},tn=new Map,Zt=t=>{let e=l.merge.call({skipUndefined:!0},Jt,t?t.env:null);const{fetch:s,Request:r,Response:n}=e,i=[r,n,s];let o=i.length,a=o,c,u,d=tn;for(;a--;)c=i[a],u=d.get(c),u===void 0&&d.set(c,u=a?new Map:en(e)),d=u;return u};Zt();const Qe={http:yr,xhr:Gr,fetch:{get:Zt}};l.forEach(Qe,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Xt=t=>`- ${t}`,sn=t=>l.isFunction(t)||t===null||t===!1,Qt={getAdapter:(t,e)=>{t=l.isArray(t)?t:[t];const{length:s}=t;let r,n;const i={};for(let o=0;o<s;o++){r=t[o];let a;if(n=r,!sn(r)&&(n=Qe[(a=String(r)).toLowerCase()],n===void 0))throw new S(`Unknown adapter '${a}'`);if(n&&(l.isFunction(n)||(n=n.get(e))))break;i[a||"#"+o]=n}if(!n){const o=Object.entries(i).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=s?o.length>1?`since :
|
5
|
+
`+o.map(Xt).join(`
|
6
|
+
`):" "+Xt(o[0]):"as no adapter specified";throw new S("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:Qe};function et(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ue(null,t)}function es(t){return et(t),t.headers=M.from(t.headers),t.data=Xe.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Qt.getAdapter(t.adapter||be.adapter,t)(t).then(function(e){return et(t),e.data=Xe.call(t,t.transformResponse,e),e.headers=M.from(e.headers),e},function(e){return Dt(e)||(et(t),e&&e.response&&(e.response.data=Xe.call(t,t.transformResponse,e.response),e.response.headers=M.from(e.response.headers))),Promise.reject(e)})}const ts="1.12.0",Ne={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Ne[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}});const ss={};Ne.transitional=function(t,e,s){function r(n,i){return"[Axios v"+ts+"] Transitional option '"+n+"'"+i+(s?". "+s:"")}return(n,i,o)=>{if(t===!1)throw new S(r(i," has been removed"+(e?" in "+e:"")),S.ERR_DEPRECATED);return e&&!ss[i]&&(ss[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(n,i,o):!0}},Ne.spelling=function(t){return(e,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function rn(t,e,s){if(typeof t!="object")throw new S("options must be an object",S.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let n=r.length;for(;n-- >0;){const i=r[n],o=e[i];if(o){const a=t[i],c=a===void 0||o(a,i,t);if(c!==!0)throw new S("option "+i+" must be "+c,S.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new S("Unknown option "+i,S.ERR_BAD_OPTION)}}const Ue={assertOptions:rn,validators:Ne},Y=Ue.validators;let re=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Pt,response:new Pt}}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=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?n&&!String(s.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(s.stack+=`
|
7
|
+
`+n):s.stack=n}catch{}}throw s}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=se(this.defaults,e);const{transitional:s,paramsSerializer:r,headers:n}=e;s!==void 0&&Ue.assertOptions(s,{silentJSONParsing:Y.transitional(Y.boolean),forcedJSONParsing:Y.transitional(Y.boolean),clarifyTimeoutError:Y.transitional(Y.boolean)},!1),r!=null&&(l.isFunction(r)?e.paramsSerializer={serialize:r}:Ue.assertOptions(r,{encode:Y.function,serialize:Y.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),Ue.assertOptions(e,{baseUrl:Y.spelling("baseURL"),withXsrfToken:Y.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=n&&l.merge(n.common,n[e.method]);n&&l.forEach(["delete","get","head","post","put","patch","common"],f=>{delete n[f]}),e.headers=M.concat(i,n);const o=[];let a=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(e)===!1||(a=a&&f.synchronous,o.unshift(f.fulfilled,f.rejected))});const c=[];this.interceptors.response.forEach(function(f){c.push(f.fulfilled,f.rejected)});let u,d=0,h;if(!a){const f=[es.bind(this),void 0];for(f.unshift(...o),f.push(...c),h=f.length,u=Promise.resolve(e);d<h;)u=u.then(f[d++],f[d++]);return u}h=o.length;let _=e;for(d=0;d<h;){const f=o[d++],m=o[d++];try{_=f(_)}catch(p){m.call(this,p);break}}try{u=es.call(this,_)}catch(f){return Promise.reject(f)}for(d=0,h=c.length;d<h;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=se(this.defaults,t);const e=Vt(t.baseURL,t.url,t.allowAbsoluteUrls);return jt(e,t.params,t.paramsSerializer)}};l.forEach(["delete","get","head","options"],function(t){re.prototype[t]=function(e,s){return this.request(se(s||{},{method:t,url:e,data:(s||{}).data}))}}),l.forEach(["post","put","patch"],function(t){function e(s){return function(r,n,i){return this.request(se(i||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}re.prototype[t]=e(),re.prototype[t+"Form"]=e(!0)});let nn=class Os{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 i=r._listeners.length;for(;i-- >0;)r._listeners[i](n);r._listeners=null}),this.promise.then=n=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(n);return o.cancel=function(){r.unsubscribe(i)},o},e(function(n,i,o){r.reason||(r.reason=new ue(n,i,o),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 Os(function(s){e=s}),cancel:e}}};function on(t){return function(e){return t.apply(null,e)}}function an(t){return l.isObject(t)&&t.isAxiosError===!0}const tt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(tt).forEach(([t,e])=>{tt[e]=t});function rs(t){const e=new re(t),s=_t(re.prototype.request,e);return l.extend(s,re.prototype,e,{allOwnKeys:!0}),l.extend(s,e,null,{allOwnKeys:!0}),s.create=function(r){return rs(se(t,r))},s}const P=rs(be);P.Axios=re,P.CanceledError=ue,P.CancelToken=nn,P.isCancel=Dt,P.VERSION=ts,P.toFormData=Te,P.AxiosError=S,P.Cancel=P.CanceledError,P.all=function(t){return Promise.all(t)},P.spread=on,P.isAxiosError=an,P.mergeConfig=se,P.AxiosHeaders=M,P.formToJSON=t=>Ut(l.isHTMLForm(t)?new FormData(t):t),P.getAdapter=Qt.getAdapter,P.HttpStatusCode=tt,P.default=P;const{Axios:Li,AxiosError:ji,CanceledError:Pi,isCancel:Ni,CancelToken:Ui,VERSION:Fi,all:Di,Cancel:Bi,isAxiosError:$i,spread:qi,toFormData:Vi,AxiosHeaders:Mi,HttpStatusCode:zi,formToJSON:Wi,getAdapter:Hi,mergeConfig:Ji}=P,ns=P.create({baseURL:location.origin,timeout:6e4,params:{}});ns.interceptors.response.use(t=>t,t=>{var e,s,r,n,i,o,a,c,u,d,h;if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(m){m&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let _=`HTTP ${t.response.status} - `;(e=t.response)!=null&&e.statusText&&(_+=`${t.response.statusText} `),(r=(s=t.response)==null?void 0:s.config)!=null&&r.data&&(_+=`${t.response.config.data} `),(i=(n=t.response)==null?void 0:n.data)!=null&&i.message?_+=`${t.response.data.message}`:(a=(o=t.response)==null?void 0:o.data)!=null&&a.exception?_+=`${t.response.data.exception}`:(d=(u=(c=t.response)==null?void 0:c.data)==null?void 0:u.error)!=null&&d.message?(t.response.data.error.class&&(_+=`${t.response.data.error.class} `),_+=`${t.response.data.error.message}`):_+=`${(h=t.response)==null?void 0:h.data}`;const{$cosmosNotify:f}=window;throw f&&f.serious({title:"Network error",body:_}),t}else throw t});let Fe=()=>({emit(t,...e){for(let s=this.events[t]||[],r=0,n=s.length;r<n;r++)s[r](...e)},events:{},on(t,e){var s;return((s=this.events)[t]||(s[t]=[])).push(e),()=>{var r;this.events[t]=(r=this.events[t])==null?void 0:r.filter(n=>e!==n)}}});class ye extends Error{constructor(e,s){e instanceof Error?(super(e.message),this.cause=e):super(e),this.reason=s,this.name="ReasonError"}}class st extends ye{constructor(e){super("Rejected",e),this.name="SubscriptionRejectedError"}}class cn extends ye{constructor(e){super(e||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class K extends ye{constructor(e,s){s?super(e,s):super("Disconnected",e),this.name="DisconnectedError"}}class ln extends K{constructor(e){super(e,"stale_connection"),this.name="StaleConnectionError"}}function is(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 un{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: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 ne=Symbol("state");class os{constructor(e={}){this.emitter=Fe(),this.params=Object.freeze(e),this.presence=new un(this),this.initialConnect=!0,this[ne]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=is({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[ne]}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[ne]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[ne]="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[ne]="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[ne]="disconnected",this.presence.reset(),this.emit("disconnect",e))}closed(e){this.state!=="closed"&&(this[ne]="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(i=>i()),s(n||new ye("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class dn{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(i=>{s=i}),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 hn{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 fn{constructor(e){e.concurrentSubscribes===!1&&(this.glv=new hn),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 dn(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 pn{constructor(e={}){this.subscriptions=new fn(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 i=this.subscriptions.get(n);i&&i.channels.forEach(o=>{o.receive(s,r)})}notify(e,s,r){let n=this._remoteToLocal[e];if(!n)return;let i=this.subscriptions.get(n);i&&i.channels.forEach(o=>o.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 as={debug:0,info:1,warn:2,error:3};class cs{constructor(e){this.level=e||"warn"}log(e,s,r){as[e]<as[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 we extends cs{writeLogEntry(){}}class mn{encode(e){return JSON.stringify(e)}decode(e){try{return JSON.parse(e)}catch{}}}let gn=0;class ls{constructor(e={}){let{logger:s}=e;this.logger=s||new we,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=is(r);if(this.pendingUnsubscriptions[n]){let o=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${o}`,n),new Promise(a=>{setTimeout(()=>{a(this.subscribe(e,s))},o)})}if(this.pendingSubscriptions[n])return this.logger.warn("subscription is already pending, skipping",n),Promise.reject(Error("Already subscribing"));let i=this.subscribeRetryInterval;return new Promise((o,a)=>{let c=++gn;this.pendingSubscriptions[n]={resolve:o,reject:a,id:c},this.cable.send(this.buildSubscribeRequest(n)),this.maybeRetrySubscribe(c,n,i)})}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 cn(`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:i,reconnect:o}=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 K(i);this.reset(a),o===!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 st)):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 us=()=>Date.now()/1e3|0;class bn extends ls{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=us()),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=us()),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 i=e.restored_ids||Object.keys(this.subscriptionStreams);for(let o of i)this.cable.send({identifier:o,command:"history",history:this.historyRequestFor(o)}),this.presenceInfo[o]&&this.cable.send({identifier:o,command:"join",presence:this.presenceInfo[o]});return this.cable.restored(i)}return this.cable.connected(this.sessionId)}if(s==="presence"){let i=n.type;if(i==="info"){let o=this.pendingPresence[r];o&&(delete this.pendingPresence[r],o.resolve(n))}else if(i==="error"){let o=this.pendingPresence[r];o&&(delete this.pendingPresence[r],o.reject(new Error("failed to retrieve presence")))}return{type:s,identifier:r,message:n}}if(n){let i=this.trackStreamPosition(r,e.stream_id,e.epoch,e.offset);return{identifier:r,message:n,meta:i}}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 i=this.streamsPositions[n];i&&(r=!0,s[n]=i)}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 _n extends ye{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class rt extends os{constructor(e,s){super(s),this.channelId=e}set channelId(e){this._channelId=e}get channelId(){return this._channelId}}Oe(rt,"identifier","__ghost__");const yn="$pubsub";class nt extends os{async perform(e,s){if(e.startsWith("$"))return super.perform(e,s);throw Error("not implemented")}}Oe(nt,"identifier",yn);const ie=Symbol("state");let wn=class{constructor({transport:t,protocol:e,encoder:s,logger:r,lazy:n,hubOptions:i,performFailures:o,transportConfigurator:a}){this.emitter=Fe(),this.transport=t,this.encoder=s,this.logger=r||new we,this.protocol=e,this.performFailures=o||"throw",this.protocol.attached(this),this.hub=new pn(i||{}),this[ie]="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[ie]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let t=this.state==="idle";this[ie]="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[ie]="connected",this.recovering&&this.hub.subscriptions.all().forEach(e=>e.notify("disconnected",new K("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[ie]="connected",this.hub.subscriptions.all().forEach(r=>{t&&r.remoteId&&t.includes(r.remoteId)?r.notify("restored"):(r.notify("disconnected",new K("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 K(t,"transport_closed"))}disconnected(t){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:t}),this[ie]="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 K?t:new K(t,void 0)),this.logger.info("closed",{reason:t||"user"}),this[ie]="closed";let s=e||new K("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:i,meta:o}=s;r?this.hub.notify(n,r,i):this.hub.transmit(n,i,o)}}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 nt({stream_name:t});return this.subscribe(e)}streamFromSigned(t){let e=new nt({signed_stream_name:t});return this.subscribe(e)}subscribeTo(t,e){let s,r;return typeof t=="string"&&(r=t,t=rt),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 i={identifier:e,params:s};this.logger.debug("subscribing",i);try{let o=await this.protocol.subscribe(e,s);this.hub.subscribe(r,o),this.logger.debug("subscribed",{...i,remoteId:o}),t.notify("connected")}catch(o){if(o){if(o instanceof st&&this.logger.warn("rejected",i),o instanceof K){this.logger.debug("disconnected during subscription; will retry on connect",i),n.release();return}this.logger.error("failed to subscribe",{error:o,...i})}t.close(o),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 K?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 _n;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,i={id:n,action:e,payload:s};this.logger.debug("perform",i);try{let o=await this.protocol.perform(n,e,s);return o&&this.logger.debug("perform result",{message:o,request:i}),o}catch(o){throw this.logger.error("perform failed",{error:o,request:i}),o}}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 vn={maxMissingPings:2,maxReconnectAttempts:1/0},de=()=>Date.now(),ds=(t,e)=>{e=e||{};let{backoffRate:s,jitterRatio:r,maxInterval:n}=e;return s=s||2,r===void 0&&(r=.5),i=>{let o=t*s**i,a=o*s,c=o+(a-o)*Math.random(),u=2*(Math.random()-.5)*r;return c=c*(1+u),n&&n<c&&(c=n),c}};let hs=class{constructor({pingInterval:t,...e}){if(this.pingInterval=t,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${t}`);if(e=Object.assign({},vn,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 we,this.state="pending_connect",this.attempts=0,this.disconnectedAt=de()}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=de(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=de(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=de(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=de()})),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=de()-this.pingedAt;t>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${t}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new ln))}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 Sn{constructor(e,s={}){this.transports=e,this.transport=null,this.emitter=Fe(),this.unbind=[],this.logger=s.logger||new we}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 En{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=Fe();let{format:n,subprotocol:i,authStrategy:o}=s;this.format=n||"text",this.connectionOptions=s.websocketOptions,this.authStrategy=o||"param",this.authProtocol="",this.subprotocol=i}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(i=>i()),s()})),n.push(this.once("close",()=>{n.forEach(i=>i()),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")}}const fs={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function xn(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({},fs,e);let{protocol:s,websocketImplementation:r,websocketFormat:n,websocketOptions:i,websocketAuthStrategy:o,fallbacks:a,logLevel:c,logger:u,transport:d,encoder:h,lazy:_,monitor:f,pingInterval:m,reconnectStrategy:p,maxMissingPings:R,maxReconnectAttempts:A,subprotocol:x,tokenRefresher:E,historyTimestamp:D,protocolOptions:w,concurrentSubscribes:$,performFailures:T,transportConfigurator:O,auth:L}=e;if(u=u||new we(c),typeof s=="string"){x=x||s;let W=s.substring(0,s.lastIndexOf("-")),j=s.substring(s.lastIndexOf("-")+1);if(w=w||{},W==="actioncable-v1")s=new ls({logger:u,...w});else if(W==="actioncable-v1-ext")s=new bn({logger:u,historyTimestamp:D,...w});else throw Error(`Protocol is not supported yet: ${s}`);if(j==="json")h=h||new mn,n=n||"text";else if(j==="msgpack"){if(n="binary",!h)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(j==="protobuf"){if(n=n||"binary",!h)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 En(t,{websocketImplementation:r,websocketOptions:i,subprotocol:x,authStrategy:o,format:n}),a&&(d=new Sn([d,...a],{logger:u})),L&&L.token&&d.setToken(L.token,L.param||"jid"),p=p||ds(m),f!==!1&&(f=f||new hs({pingInterval:m,reconnectStrategy:p,maxMissingPings:R,maxReconnectAttempts:A,logger:u}));let oe={concurrentSubscribes:$},B=new wn({protocol:s,transport:d,encoder:h,logger:u,lazy:_,hubOptions:oe,performFailures:T,transportConfigurator:O});return f&&(f.watch(B),B.monitor=f),E&&Cn(B,async()=>{try{await E(d)}catch(W){return u.error("Failed to refresh authentication token: "+W),!1}return B.connect().catch(()=>{}),!0}),B}function Cn(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 On{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)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class kn extends rt{constructor(e,s,r){super(e,s),this.subscription=new On(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 st?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class Rn{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 i=new kn(r,n,s);return i.subscription.notify("initialized"),this.cable.subscribe(i),i.subscription}findAll(e){return this.cable.hub.channels.filter(s=>s.identifier===e).map(s=>s.subscription)}}class In{constructor(e){this.cable=e,this.subscriptions=new Rn(e)}}class An extends cs{writeLogEntry(e,s,r){r?console[e](s,r):console[e](s)}}class Tn extends hs{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 K("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 Ln=["cable","action-cable"],jn="/cable",De=(t,e)=>{for(let s of Ln){let r=t.head.querySelector(`meta[name='${s}-${e}']`);if(r)return r.getAttribute("content")}},ps=t=>t.match(/wss?:\/\//)?t:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${t}`:t,Pn=()=>{if(typeof document<"u"&&document.head){let t=De(document,"url");if(t)return ps(t)}return ps(jn)},Nn=()=>{if(typeof document<"u"&&document.head){let t=De(document,"history-timestamp");if(t)return t|0}},Un=()=>{if(typeof document<"u"&&document.head)return De(document,"token")},Fn=()=>{if(typeof document<"u"&&document.head)return De(document,"token-param")};function Dn(t,e){typeof t=="object"&&typeof e>"u"&&(e=t,t=void 0),t=t||Pn(),e=e||{},e.historyTimestamp||(e.historyTimestamp=Nn());let s=Un();if(s){let u=Fn();e.auth=Object.assign({token:s,param:u},e.auth||{})}e=Object.assign({},fs,e);let{logLevel:r,logger:n,pingInterval:i,reconnectStrategy:o,maxMissingPings:a,maxReconnectAttempts:c}=e;return n=e.logger=e.logger||new An(r),o=e.reconnectStrategy=e.reconnectStrategy||ds(i),e.monitor!==!1&&(e.monitor=e.monitor||new Tn({pingInterval:i,reconnectStrategy:o,maxMissingPings:a,maxReconnectAttempts:c,logger:n})),xn(t,e)}function Bn(t,e){let s=Dn(t,e);return new In(s)}class ms{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(e,s,r={},n={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(i=>{if(i&&OpenC3Auth.setTokens(),this._cable==null){let o=this._url+"?scope="+encodeURIComponent(s)+"&authorization="+encodeURIComponent(localStorage.openc3Token);o=new URL(o,document.baseURI).href,this._cable=Bn(o)}return this._cable.subscriptions.create({channel:e,...n},r)})}recordPing(){}}function ve(t){return $n.test(t)}const $n=/^-?[0-9]+$/;function gs(t){return qn.test(t)}const qn=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function bs(t,e){if(ve(t))return Number.isSafeInteger(Number.parseInt(t,10));const s=Number.parseFloat(t),r=String(s);if(t===r)return!0;const n=_s(t),i=_s(r);return!!(n===i||(e==null?void 0:e.approx)===!0&&!ve(t)&&i.length>=14&&n.startsWith(i.substring(0,14)))}let Se=(function(t){return t.underflow="underflow",t.overflow="overflow",t.truncate_integer="truncate_integer",t.truncate_float="truncate_float",t})({});function Vn(t){if(bs(t,{approx:!1}))return;if(ve(t))return Se.truncate_integer;const e=Number.parseFloat(t);return Number.isFinite(e)?e===0?Se.underflow:Se.truncate_float:Se.overflow}function _s(t){const{start:e,end:s}=Mn(t),r=t.substring(e,s),n=r.indexOf(".");return n===-1?r:r.substring(0,n)+r.substring(n+1)}function Mn(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 zn{constructor(e){if(Oe(this,"isLosslessNumber",!0),!gs(e))throw new Error(`Invalid number (value: "${e}")`);this.value=e}valueOf(){const e=Vn(this.value);if(e===void 0||e===Se.truncate_float)return Number.parseFloat(this.value);if(ve(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 Wn(t){return t&&typeof t=="object"&&t.isLosslessNumber||!1}function Hn(t){return new zn(t)}function Jn(t,e){return it({"":t},"",t,e)}function it(t,e,s,r){return Array.isArray(s)?r.call(t,e,Gn(s,r)):s&&typeof s=="object"&&!Wn(s)?r.call(t,e,Kn(s,r)):r.call(t,e,s)}function Kn(t,e){for(const s of Object.keys(t)){const r=it(t,s,t[s],e);r!==void 0?t[s]=r:delete t[s]}return t}function Gn(t,e){for(let s=0;s<t.length;s++)t[s]=it(t,String(s),t[s],e);return t}function Yn(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hn,r=0;const n=a();return m(n),R(),e?Jn(n,e):n;function i(){if(t.charCodeAt(r)===si){r++,u();const v={};let I=!0;for(;r<t.length&&t.charCodeAt(r)!==ws;){I?I=!1:(_(),u());const Z=r,z=d();if(z===void 0){E();return}u(),f();const he=a();if(he===void 0){L();return}Object.prototype.hasOwnProperty.call(v,z)&&!ot(he,v[z])&&D(z,Z+1),v[z]=he}return t.charCodeAt(r)!==ws&&w(),r++,v}}function o(){if(t.charCodeAt(r)===ri){r++,u();const v=[];let I=!0;for(;r<t.length&&t.charCodeAt(r)!==vs;){I?I=!1:_();const Z=a();p(Z),v.push(Z)}return t.charCodeAt(r)!==vs&&$(),r++,v}}function a(){u();const v=d()??h()??i()??o()??c("true",!0)??c("false",!1)??c("null",null);return u(),v}function c(v,I){if(t.slice(r,r+v.length)===v)return r+=v.length,I}function u(){for(;Zn(t.charCodeAt(r));)r++}function d(){if(t.charCodeAt(r)===at){r++;let v="";for(;r<t.length&&t.charCodeAt(r)!==at;){if(t.charCodeAt(r)===ti){const I=t[r+1],Z=ei[I];Z!==void 0?(v+=Z,r++):I==="u"?Be(t.charCodeAt(r+2))&&Be(t.charCodeAt(r+3))&&Be(t.charCodeAt(r+4))&&Be(t.charCodeAt(r+5))?(v+=String.fromCharCode(Number.parseInt(t.slice(r+2,r+6),16)),r+=5):oe(r):O(r)}else Qn(t.charCodeAt(r))?v+=t[r]:T(t[r]);r++}return x(),r++,v}}function h(){const v=r;if(t.charCodeAt(r)===Ss&&(r++,A(v)),t.charCodeAt(r)===ct)r++;else if(Xn(t.charCodeAt(r)))for(r++;$e(t.charCodeAt(r));)r++;if(t.charCodeAt(r)===di)for(r++,A(v);$e(t.charCodeAt(r));)r++;if(t.charCodeAt(r)===gi||t.charCodeAt(r)===mi)for(r++,(t.charCodeAt(r)===Ss||t.charCodeAt(r)===ci)&&r++,A(v);$e(t.charCodeAt(r));)r++;if(r>v)return s(t.slice(v,r))}function _(){if(t.charCodeAt(r)!==ui)throw new SyntaxError(`Comma ',' expected after value ${j()}`);r++}function f(){if(t.charCodeAt(r)!==hi)throw new SyntaxError(`Colon ':' expected after property name ${j()}`);r++}function m(v){if(v===void 0)throw new SyntaxError(`JSON value expected ${j()}`)}function p(v){if(v===void 0)throw new SyntaxError(`Array item expected ${j()}`)}function R(){if(r<t.length)throw new SyntaxError(`Expected end of input ${j()}`)}function A(v){if(!$e(t.charCodeAt(r))){const I=t.slice(v,r);throw new SyntaxError(`Invalid number '${I}', expecting a digit ${j()}`)}}function x(){if(t.charCodeAt(r)!==at)throw new SyntaxError(`End of string '"' expected ${j()}`)}function E(){throw new SyntaxError(`Quoted object key expected ${j()}`)}function D(v,I){throw new SyntaxError(`Duplicate key '${v}' encountered at position ${I}`)}function w(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${j()}`)}function $(){throw new SyntaxError(`Array item or end of array ']' expected ${j()}`)}function T(v){throw new SyntaxError(`Invalid character '${v}' ${B()}`)}function O(v){const I=t.slice(v,v+2);throw new SyntaxError(`Invalid escape character '${I}' ${B()}`)}function L(){throw new SyntaxError(`Object value expected after ':' ${B()}`)}function oe(v){const I=t.slice(v,v+6);throw new SyntaxError(`Invalid unicode character '${I}' ${B()}`)}function B(){return`at position ${r}`}function W(){return r<t.length?`but got '${t[r]}'`:"but reached end of input"}function j(){return`${W()} ${B()}`}}function Zn(t){return t===ni||t===ii||t===oi||t===ai}function Be(t){return t>=ct&&t<=lt||t>=fi&&t<=bi||t>=pi&&t<=_i}function $e(t){return t>=ct&&t<=lt}function Xn(t){return t>=li&&t<=lt}function Qn(t){return t>=32&&t<=1114111}function ot(t,e){return t===e?!0:Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((s,r)=>ot(s,e[r])):ys(t)&&ys(e)?[...new Set([...Object.keys(t),...Object.keys(e)])].every(s=>ot(t[s],e[s])):!1}function ys(t){return typeof t=="object"&&t!==null}const ei={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
8
|
+
`,r:"\r",t:" "},ti=92,si=123,ws=125,ri=91,vs=93,ni=32,ii=10,oi=9,ai=13,at=34,ci=43,Ss=45,ct=48,li=49,lt=57,ui=44,di=46,hi=58,fi=65,pi=97,mi=69,gi=101,bi=70,_i=102;function Es(t,e,s,r){return n(t);function n(c,u){if(Array.isArray(r)){const d=r.find(h=>h.test(c));if(d){const h=d.stringify(c);if(typeof h!="string"||!gs(h))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${h})`);return h}}if(typeof c=="boolean"||typeof c=="number"||typeof c=="string"||c===null||c instanceof Date||c instanceof Boolean||c instanceof Number||c instanceof String)return JSON.stringify(c);if(c!=null&&c.isLosslessNumber||typeof c=="bigint")return c.toString();if(Array.isArray(c))return i(c);if(c&&typeof c=="object")return o(c)}function i(c,u){if(c.length===0)return"[]";let d="[";for(let h=0;h<c.length;h++){const _=c[h];typeof _<"u"&&typeof _!="function"?d+=n(_):d+="null",h<c.length-1&&(d+=",")}return d+="]",d}function o(c,u){if(typeof c.toJSON=="function")return Es(c.toJSON(),e,s,void 0);const d=Array.isArray(e)?e.map(String):Object.keys(c);if(d.length===0)return"{}";let h=!0,_="{";for(const f of d){const m=c[f];if(a(f,m)){h?h=!1:_+=",";const p=JSON.stringify(f);_+=`${p}:`,_+=n(m)}}return _+="}",_}function a(c,u){return typeof u<"u"&&typeof u!="function"&&typeof u!="symbol"}}function yi(t){return ve(t)&&!bs(t)?BigInt(t):parseFloat(t)}class xs{constructor(){Oe(this,"id",1)}async exec(e,s,r={},n={},i=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 ns.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:i,transformRequest:[(o,a)=>Es(o)],transformResponse:[o=>Yn(o,void 0,yi)]})).data.result}catch(o){let a=new Error;throw o.response?(a.name=o.response.data.error.data.class,a.message=o.response.data.error.data.message,a.object=o.response.data.error):o.request?(a.name="Request error",a.message="Request error, no response received"):a=o,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){return this.exec("map_target_to_interface",[e,s])}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])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,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 i=await this.exec("get_tlm_packet",[e,s],{type:r,stale_time:n});if(i!=null){let o=i.length,a=null;for(let c=0;c<o;c++)a=this.decode_openc3_type(i[c][1]),a!==null&&(i[c][1]=a)}return i}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,i=null){let o={stale_time:s};r!==null&&(o.cache_timeout=r),n!==null&&(o.start_time=n.toISOString()),i!==null&&(o.end_time=i.toISOString());const a=await this.exec("get_tlm_values",[e],o,{},1e4);if(a&&a.length>0){let c=a[0].length,u=null;for(let d=0;d<c;d++)u=this.decode_openc3_type(a[0][d]),u!==null&&(a[0][d]=u)}return a}get_limits(e,s,r){return this.exec("get_limits",[e,s,r])}async tlm(e,s,r,n="CONVERTED"){let i=null;if(s===void 0)i=await this.exec("tlm",[e]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(s))i=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, FORMATTED, and WITH_UNITS.`,a}else i=await this.exec("tlm",[e,s,r],{type:n});let o=this.decode_openc3_type(i);return o!==null&&(i=o),i}async inject_tlm(e,s,r=null,n="CONVERTED"){await this.exec("inject_tlm",[e,s,r],{type:n})}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,i,o={}){let a=null;for(let c in n)Object.prototype.hasOwnProperty.call(n,c)&&(a=this.encode_openc3_type(n[c]),a!==null&&(n[c]=a));return this.exec(e,[s,r,n],o,i)}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={},i={}){return s===void 0?this.exec("cmd",e,{},n):this._cmd("cmd",e,s,r,n,i)}cmd_no_range_check(e,s,r,n={},i={}){return s===void 0?this.exec("cmd_no_range_check",e,{},n,i):this._cmd("cmd_no_range_check",e,s,r,n,i)}cmd_raw(e,s,r,n={},i={}){return s===void 0?this.exec("cmd_raw",e,{},n,i):this._cmd("cmd_raw",e,s,r,n,i)}cmd_raw_no_range_check(e,s,r,n={},i={}){return s===void 0?this.exec("cmd_raw_no_range_check",e,{},n,i):this._cmd("cmd_raw_no_range_check",e,s,r,n,i)}cmd_no_hazardous_check(e,s,r,n={},i={}){return s===void 0?this.exec("cmd_no_hazardous_check",e,{},n,i):this._cmd("cmd_no_hazardous_check",e,s,r,n,i)}cmd_no_checks(e,s,r,n={},i={}){return s===void 0?this.exec("cmd_no_checks",e,{},n,i):this._cmd("cmd_no_checks",e,s,r,n,i)}cmd_raw_no_hazardous_check(e,s,r,n={},i={}){return s===void 0?this.exec("cmd_raw_no_hazardous_check",e,{},n,i):this._cmd("cmd_raw_no_hazardous_check",e,s,r,n,i)}cmd_raw_no_checks(e,s,r,n={},i={}){return s===void 0?this.exec("cmd_raw_no_checks",e,{},n,i):this._cmd("cmd_raw_no_checks",e,s,r,n,i)}build_cmd(e,s,r,n={},i={}){return s===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,s,r,n,i)}build_command(e,s,r,n={},i={}){return s===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,s,r,n,i)}get_interface_names(){return this.exec("get_interface_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",[])}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(i=>i.toString(16).padStart(2,"0")).join("")}}}const wi={components:{ValueWidget:gt,ValuelimitsbarWidget:bt},mixins:[Ve],props:{modelValue:{type:Array,default:()=>[]},timeZone:{type:String,default:"local"}},data(){return{api:null,cable:new ms,ignored:[],ignoredItemsDialog:!1,overallState:"GREEN",currentLimitsSet:"",items:[],itemList:[],screenItems:[],screenValues:{},updateCounter:0,itemsPerPage:25,search:"",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:"300px"},{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 xs;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:{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.slice(0,3),timestamp:this.formatDateTime(new Date,this.timeZone)};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("__"),i=`${s}__${r}`;for(this.ignored.push(i),e||this.updateIgnored();;){let o=this.itemList.findIndex(a=>a.includes(i));if(o===-1)break;{let a=this.itemList[o].lastIndexOf("__");this.removeItem(this.itemList[o].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(o=>o.includes(r));if(n!==-1){this.itemList[n]=`${r}__${s.new_limits_state}`,this.calcOverallState();continue}if(this.ignored.find(o=>r.includes(o))||s.new_limits_state&&!(s.new_limits_state.includes("YELLOW")||s.new_limits_state.includes("RED")))continue;let i={key:r,timestamp:this.formatNanoseconds(s.time_nsec,this.timeZone),parameters:[s.target_name,s.packet_name,s.item_name]};s.new_limits_state=="YELLOW"||s.new_limits_state=="RED"?i.limits=!1:i.limits=!0,this.itemList.push(`${r}__${s.new_limits_state}`),this.items.push(i),this.calcOverallState()}},update(){this.screenItems.length!==0&&this.api.get_tlm_values(this.screenItems).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.screenItems.push(t),this.screenValues[t]=[null,null,0]},deleteItem:function(t){let e=this.screenItems.indexOf(t);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))}}},vi=["status"],Si={class:"font-weight-black"};function Ei(t,e,s,r,n,i){const o=y("v-text-field"),a=y("v-spacer"),c=y("v-row"),u=y("valuelimitsbar-widget"),d=y("value-widget"),h=y("v-btn"),_=y("v-icon"),f=y("v-list-item-title"),m=y("v-list-item"),p=y("v-list"),R=y("v-menu"),A=y("v-data-table"),x=y("v-card"),E=y("v-toolbar"),D=y("v-divider"),w=y("v-card-text"),$=y("v-card-actions"),T=y("v-dialog");return k(),H("div",null,[b(x,{class:"pa-5"},{default:g(()=>[b(c,{class:"ma-1"},{default:g(()=>[b(o,{density:"compact",variant:"outlined",readonly:"","hide-details":"",label:"Overall Limits State","model-value":i.overallStateFormatted,class:ze(i.textFieldClass),style:{"margin-right":"10px","max-width":"280px"},"data-test":"overall-state"},Ce({_:2},[i.astroStatus?{name:"prepend-inner",fn:g(()=>[q("rux-status",{status:i.astroStatus},null,8,vi)]),key:"0"}:void 0]),1032,["model-value","class"]),b(o,{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"]),b(a),b(o,{modelValue:n.search,"onUpdate:modelValue":e[0]||(e[0]=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}),b(A,{"items-per-page":n.itemsPerPage,"onUpdate:itemsPerPage":e[1]||(e[1]=O=>n.itemsPerPage=O),headers:n.headers,items:n.items,search:n.search,"custom-filter":i.customFilter,"item-value":"key","data-test":"limits-table",class:"limits-table",density:"compact"},{"item.timestamp":g(({item:O})=>[U(G(O.timestamp),1)]),"item.value":g(({item:O})=>[O.limits?(k(),N(u,{key:0,parameters:O.parameters,settings:n.valueLimitsBarWidgetSettings,"screen-values":n.screenValues,"screen-time-zone":s.timeZone,onAddItem:i.addItem,onDeleteItem:i.deleteItem},null,8,["parameters","settings","screen-values","screen-time-zone","onAddItem","onDeleteItem"])):(k(),N(d,{key:1,parameters:O.parameters,settings:n.valueWidgetSettings,"screen-values":n.screenValues,"screen-time-zone":s.timeZone,onAddItem:i.addItem,onDeleteItem:i.deleteItem},null,8,["parameters","settings","screen-values","screen-time-zone","onAddItem","onDeleteItem"]))]),"item.actions":g(({item:O})=>[b(R,null,{activator:g(({props:L})=>[b(h,xe({icon:"mdi-dots-horizontal",variant:"text",density:"compact","aria-label":"Item Options"},L),null,16)]),default:g(()=>[b(p,null,{default:g(()=>[b(m,{onClick:L=>i.ignorePacket(O.key)},{prepend:g(()=>[b(_,null,{default:g(()=>[...e[4]||(e[4]=[U("mdi-close-circle-multiple",-1)])]),_:1})]),default:g(()=>[b(f,null,{default:g(()=>[...e[5]||(e[5]=[U("Ignore Entire Packet",-1)])]),_:1})]),_:1},8,["onClick"]),b(m,{onClick:L=>i.ignoreItem(O.key)},{prepend:g(()=>[b(_,null,{default:g(()=>[...e[6]||(e[6]=[U("mdi-close-circle",-1)])]),_:1})]),default:g(()=>[b(f,null,{default:g(()=>[...e[7]||(e[7]=[U("Ignore Item",-1)])]),_:1})]),_:1},8,["onClick"]),b(m,{onClick:L=>i.removeItem(O.key)},{prepend:g(()=>[b(_,null,{default:g(()=>[...e[8]||(e[8]=[U("mdi-eye-off",-1)])]),_:1})]),default:g(()=>[b(f,null,{default:g(()=>[...e[9]||(e[9]=[U("Temporarily Hide Item",-1)])]),_:1})]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1024)]),"item.limits":g(({item:O})=>[b(a)]),_:1},8,["items-per-page","headers","items","search","custom-filter"]),e[10]||(e[10]=q("div",{class:"footer"},' Note: Timestamp is "now" for items currently out of limits when the page is loaded. ',-1))]),_:1}),b(T,{modelValue:n.ignoredItemsDialog,"onUpdate:modelValue":e[3]||(e[3]=O=>n.ignoredItemsDialog=O),"max-width":"600"},{default:g(()=>[b(x,null,{default:g(()=>[b(E,{height:"24"},{default:g(()=>[b(a),e[11]||(e[11]=q("span",null,"Ignored Items",-1)),b(a)]),_:1}),b(w,{class:"mt-2"},{default:g(()=>[q("div",null,[(k(!0),H(Q,null,ae(i.ignoredFormatted,(O,L)=>(k(),H("div",{key:L},[b(c,{class:"ma-1 align-center"},{default:g(()=>[q("span",Si,G(O),1),b(a),b(h,{icon:"mdi-delete",density:"compact",variant:"text","aria-label":"Remove Ignored Item","data-test":`remove-ignore-${L}`,onClick:oe=>i.restoreItem(L)},null,8,["data-test","onClick"])]),_:2},1024),L<i.ignoredFormatted.length-1?(k(),N(D,{key:L})):ee("",!0)]))),128))])]),_:1}),b($,{class:"px-2"},{default:g(()=>[b(h,{variant:"outlined",onClick:i.clearAll},{default:g(()=>[...e[12]||(e[12]=[U(" Clear All ",-1)])]),_:1},8,["onClick"]),b(a),b(h,{variant:"flat",onClick:e[2]||(e[2]=O=>n.ignoredItemsDialog=!1)},{default:g(()=>[...e[13]||(e[13]=[U(" Ok ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const xi=Ee(wi,[["render",Ei],["__scopeId","data-v-ed7ec5ac"]]),Ci={mixins:[Ve],props:{historyCount:{type:Number,default:1e3},timeZone:{type:String,default:"local"}},data(){return{data:[],cable:new ms,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}}},Oi=["status"];function ki(t,e,s,r,n,i){const o=y("v-spacer"),a=y("v-text-field"),c=y("v-card-title"),u=y("v-data-table"),d=y("v-card");return k(),N(d,{class:"card-height"},{default:g(()=>[b(c,{class:"d-flex align-center"},{default:g(()=>[e[1]||(e[1]=U(" Limits Events ",-1)),b(o),b(a,{modelValue:n.search,"onUpdate:modelValue":e[0]||(e[0]=h=>n.search=h),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"",class:"search"},null,8,["modelValue"])]),_:1}),b(u,{headers:n.headers,items:n.data,search:n.search,"items-per-page":-1,"hide-default-footer":"","multi-sort":"",density:"compact",height:i.calcTableHeight(),hover:"","data-test":"limits-events"},{"item.time_nsec":g(({item:h})=>[q("span",null,G(t.formatNanoseconds(h.time_nsec,s.timeZone)),1)]),"item.level":g(({item:h})=>[q("rux-status",{status:i.getStatus(h.message)},null,8,Oi)]),"item.message":g(({item:h})=>[q("span",{class:ze(i.getColorClass(h.message))},G(h.message),3)]),_:1},8,["headers","items","search","height"])]),_:1})}const Ri={components:{LimitsControl:xi,LimitsEvents:Ee(Ci,[["render",ki],["__scopeId","data-v-3c276116"]]),TopBar:Ts,OpenConfigDialog:pt,SaveConfigDialog:ft},mixins:[ht],data(){return{title:"Limits Monitor",configKey:"limits_monitor",api:new xs,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 Ii(t,e,s,r,n,i){const o=y("top-bar"),a=y("limits-control"),c=y("limits-events"),u=y("open-config-dialog"),d=y("save-config-dialog"),h=y("v-spacer"),_=y("v-toolbar"),f=y("v-select"),m=y("v-card-text"),p=y("v-btn"),R=y("v-card-actions"),A=y("v-card"),x=y("v-dialog");return k(),H("div",null,[b(o,{menus:n.menus,title:n.title},null,8,["menus","title"]),(k(),N(a,{ref:"control",key:n.renderKey,modelValue:n.ignored,"onUpdate:modelValue":e[0]||(e[0]=E=>n.ignored=E),"time-zone":n.timeZone},null,8,["modelValue","time-zone"])),e[11]||(e[11]=q("div",{style:{height:"15px"}},null,-1)),b(c,{"time-zone":n.timeZone},null,8,["time-zone"]),n.openConfig?(k(),N(u,{key:0,modelValue:n.openConfig,"onUpdate:modelValue":e[1]||(e[1]=E=>n.openConfig=E),"config-key":n.configKey,onSuccess:i.openConfiguration},null,8,["modelValue","config-key","onSuccess"])):ee("",!0),n.saveConfig?(k(),N(d,{key:1,modelValue:n.saveConfig,"onUpdate:modelValue":e[2]||(e[2]=E=>n.saveConfig=E),"config-key":n.configKey,onSuccess:i.saveConfiguration},null,8,["modelValue","config-key","onSuccess"])):ee("",!0),b(x,{modelValue:n.limitsSetDialog,"onUpdate:modelValue":e[5]||(e[5]=E=>n.limitsSetDialog=E),"max-width":"650"},{default:g(()=>[b(A,null,{default:g(()=>[b(_,{height:"24"},{default:g(()=>[b(h),e[6]||(e[6]=q("span",null,"Change Limits Set",-1)),b(h)]),_:1}),b(m,{class:"mt-6"},{default:g(()=>[e[7]||(e[7]=q("span",{style:{display:"block"}}," The Limits Set is a global option which changes the Limits Set across all tools. ",-1)),e[8]||(e[8]=q("span",{style:{display:"block"}}," NOTE: Changing this option clears the current list and recalculates based on the new set. ",-1)),b(f,{modelValue:n.currentLimitsSet,"onUpdate:modelValue":e[3]||(e[3]=E=>n.currentLimitsSet=E),label:"Limits Set",items:n.limitsSets,density:"compact",variant:"outlined","data-test":"limits-set","hide-details":"",class:"mt-3",style:{"max-width":"200px"}},null,8,["modelValue","items"])]),_:1}),b(R,{class:"px-2"},{default:g(()=>[b(h),b(p,{variant:"outlined",onClick:e[4]||(e[4]=E=>n.limitsSetDialog=!1)},{default:g(()=>[...e[9]||(e[9]=[U(" Cancel ",-1)])]),_:1}),b(p,{variant:"flat",onClick:i.setLimitsSet},{default:g(()=>[...e[10]||(e[10]=[U(" Ok ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const Gi=ks("default",Ee(Ri,[["render",Ii]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./BarColumn-
|
1
|
+
System.register(["./BarColumn-BuJ6MTYG-f087bffe8c40cfb7e1fa.js","vue","./main-ebb617ad10f09f739fef.js","./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","vue-router","single-spa","vuex","vuetify"],(function(d,p){"use strict";var l,r,a,n,s,t,o,c,m;return{setters:[i=>{l=i.l},i=>{r=i.resolveComponent,a=i.createBlock,n=i.openBlock,s=i.withCtx,t=i.createElementVNode,o=i.toDisplayString,c=i.mergeProps},i=>{m=i.d},null,null,null,null,null],execute:(function(){const i={mixins:[l],data(){return{width:160,height:22}},computed:{limitsRange(){let e=this.limitsSettings[this.selectedLimitsSet];if(e)return e.length===4?`RL/${e[0]} YL/${e[1]} YH/${e[2]} RH/${e[3]}`:`RL/${e[0]} YL/${e[1]} YH/${e[2]} RH/${e[3]} GL/${e[4]} GH/${e[5]}`;throw{line:this.line,lineNumber:this.lineNumber,keyword:"LIMITSBAR",parameters:this.parameters,message:"Item has no limits settings",usage:"Only items with limits"}}},created(){this.verifyNumParams("LIMITSBAR",3,6,"LIMITSBAR <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH> <HEIGHT>")}};function _(e,u,I,w,y,v){const h=r("v-tooltip");return n(),a(h,{"open-delay":600,location:"top"},{activator:s(({props:g})=>[t("div",c({class:"limitsbar",style:[e.cssProps,e.computedStyle]},g),[...u[0]||(u[0]=[t("div",{class:"limitsbar__container"},[t("div",{class:"limitsbar__redlow"}),t("div",{class:"limitsbar__redhigh"}),t("div",{class:"limitsbar__yellowlow"}),t("div",{class:"limitsbar__yellowhigh"}),t("div",{class:"limitsbar__greenlow"}),t("div",{class:"limitsbar__greenhigh"}),t("div",{class:"limitsbar__blue"}),t("div",{class:"limitsbar__line"}),t("div",{class:"limitsbar__arrow"})],-1)])],16)]),default:s(()=>[t("span",null,o(v.limitsRange),1)]),_:1})}const b=d("default",m(i,[["render",_],["__scopeId","data-v-111893ce"]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./VWidget-
|
1
|
+
System.register(["./VWidget-P-X9ffkl-84f887e75088f1aab957.js","vue","./main-ebb617ad10f09f739fef.js","./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","vue-router","single-spa","vuex","vuetify"],(function(d,C){"use strict";var r,i,n,a,s,o,p,m,u,c;return{setters:[e=>{r=e.h},e=>{i=e.resolveComponent,n=e.createElementBlock,a=e.openBlock,s=e.normalizeStyle,o=e.createElementVNode,p=e.createBlock,m=e.createCommentVNode,u=e.normalizeClass},e=>{c=e.d},null,null,null,null,null],execute:(function(){const e={mixins:[r],data(){return{radius:15,fullLabelDisplay:!1,displayLabel:!0}},created(){this.parameters[4]&&(this.radius=parseInt(this.parameters[4])),this.parameters[5]&&(this.parameters[5].toLowerCase()==="true"?this.fullLabelDisplay=!0:this.parameters[5].toLowerCase()==="nil"?this.displayLabel=!1:this.parameters[5].toLowerCase()==="none"&&(this.displayLabel=!1))},computed:{labelName(){return this.fullLabelDisplay?[this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]]:[this.parameters[2]]},cssProps(){return{"--height":this.radius+"px","--width":this.radius+"px"}},myComputedStyle(){return delete this.computedStyle.flex,this.computedStyle}},methods:{getType(){let t="CONVERTED";return this.parameters[3]&&(t=this.parameters[3]),t}}};function h(t,g,v,L,y,l){const f=i("label-widget");return a(),n("div",{ref:"container",class:"d-flex flex-row",style:s(l.myComputedStyle)},[o("div",{class:u(`led align-self-center ${this.limitsColor}`),style:s(l.cssProps)},null,6),y.displayLabel?(a(),p(f,{key:0,parameters:l.labelName,settings:t.appliedSettings,style:s(t.computedStyle),"widget-index":1},null,8,["parameters","settings","style"])):m("",!0)],4)}const b=d("default",c(e,[["render",h],["__scopeId","data-v-b106d59f"]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./BarColumn-
|
1
|
+
System.register(["./BarColumn-BuJ6MTYG-f087bffe8c40cfb7e1fa.js","vue","./main-ebb617ad10f09f739fef.js","./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","vue-router","single-spa","vuex","vuetify"],(function(n,v){"use strict";var a,s,l,r,h,d;return{setters:[i=>{a=i.l},i=>{s=i.createElementBlock,l=i.openBlock,r=i.normalizeStyle,h=i.createStaticVNode},i=>{d=i.d},null,null,null,null,null],execute:(function(){const i={mixins:[a],data(){return{width:22,height:120}},computed:{cssProps:function(){let e=this.screenValues[this.valueId][0],t=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);if(t)return this.calcLimits(t),{"--height":this.height+"px","--width":this.width+"px","--container-width":this.width-5+"px","--position":this.calcPosition(e,t)+"%","--redlow-height":this.redLow+"%","--redhigh-height":this.redHigh+"%","--yellowlow-height":this.yellowLow+"%","--yellowhigh-height":this.yellowHigh+"%","--greenlow-height":this.greenLow+"%","--greenhigh-height":this.greenHigh+"%","--blue-height":this.blue+"%"};throw{line:this.line,lineNumber:this.lineNumber,keyword:"LIMITSCOLUMN",parameters:this.parameters,message:"Item has no limits settings",usage:"Only items with limits"}}},created(){this.verifyNumParams("LIMITSCOLUMN",3,6,"LIMITSCOLUMN <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH> <HEIGHT>")}};function o(e,t,g,u,b,c){return l(),s("div",{class:"limitsbar",style:r([c.cssProps,e.computedStyle])},[...t[0]||(t[0]=[h('<div class="limitsbar__container" data-v-a4a8f4ab><div class="limitsbar__redlow" data-v-a4a8f4ab></div><div class="limitsbar__redhigh" data-v-a4a8f4ab></div><div class="limitsbar__yellowlow" data-v-a4a8f4ab></div><div class="limitsbar__yellowhigh" data-v-a4a8f4ab></div><div class="limitsbar__greenlow" data-v-a4a8f4ab></div><div class="limitsbar__greenhigh" data-v-a4a8f4ab></div><div class="limitsbar__blue" data-v-a4a8f4ab></div><div class="limitsbar__line" data-v-a4a8f4ab></div><div class="limitsbar__arrow" data-v-a4a8f4ab></div></div>',1)])],4)}const m=n("default",d(i,[["render",o],["__scopeId","data-v-a4a8f4ab"]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./GraphWidget-
|
1
|
+
System.register(["./GraphWidget-CHm4bhMI-99356cd86f8d1ebfcd43.js","./main-ebb617ad10f09f739fef.js","vue","./Graph-DZBpdSgR-4a472a5c75f656b8dfe4.js","single-spa","./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","vue-router","vuex","vuetify"],(function(p,u){"use strict";var s,n,r,a,o,d,l;return{setters:[t=>{s=t.M},t=>{n=t.d},t=>{r=t.resolveComponent,a=t.createBlock,o=t.openBlock,d=t.normalizeStyle},t=>{l=t.P},null,null,null,null,null],execute:(function(){const t={components:{Graph:l},mixins:[s]};function h(e,i,g,v,f,y){const c=r("graph");return o(),a(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:d(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]]))})}}));
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Layout-BNvQKlyy-ab493756eb1124f6922a.js","./main-ebb617ad10f09f739fef.js","vue","./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","vue-router","single-spa","vuex","vuetify"],(function(k,I){"use strict";var c,o,m,r,n,g,l,a,p,d,y;return{setters:[e=>{c=e.r},e=>{o=e.d,m=e.I},e=>{r=e.createElementBlock,n=e.openBlock,g=e.normalizeStyle,l=e.Fragment,a=e.renderList,p=e.createBlock,d=e.resolveDynamicComponent,y=e.mergeProps},null,null,null,null,null],execute:(function(){const e={mixins:[c],computed:{columns(){return parseInt(this.parameters[0])},widgetChunks(){return m.chunk(this.widgets,this.columns)}},created:function(){if(this.parameters[1]){let s=this.parameters[1];this.widgets.forEach(u=>{u.settings.find(i=>i[0]==="MARGIN"||i[0].startsWith("RAW")&&i[1].toUpperCase().includes("MARGIN"))===void 0&&u.settings.push(["MARGIN",s])})}}};function h(s,u,i,b,A,v){return n(),r("table",{style:g(s.computedStyle),role:"presentation"},[(n(!0),r(l,null,a(v.widgetChunks,(f,B)=>(n(),r("tr",{key:"r"+B},[(n(!0),r(l,null,a(f,(t,w)=>(n(),r("td",{key:"c"+w},[(n(),p(d(t.type),y({ref_for:!0},s.listeners,{target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":s.screenValues,"screen-time-zone":s.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]))),128))]))),128))],4)}const C=k("default",o(e,[["render",h]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","vue","./main-ebb617ad10f09f739fef.js","vue-router","single-spa","vuex","vuetify"],(function(u,p){"use strict";var s,a,l,r,n,i;return{setters:[e=>{s=e.o},e=>{a=e.resolveComponent,l=e.createBlock,r=e.openBlock,n=e.normalizeStyle},e=>{i=e.d},null,null,null,null],execute:(function(){const e={mixins:[s],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:150}},computed:{_value:function(){let t=this.value;return t===null&&(t=this.screenValues[this.valueId][0]),parseInt(parseFloat(t)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),this.value===null){let t="CONVERTED";this.parameters[5]&&(t=this.parameters[5]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${t}`,this.$emit("addItem",this.valueId)}},unmounted:function(){this.$emit("deleteItem",this.valueId)}};function o(t,m,v,f,I,c){const h=a("rux-progress");return r(),l(h,{value:c._value,class:"progress",style:n(t.computedStyle)},null,8,["value","style"])}const d=u("default",i(e,[["render",o],["__scopeId","data-v-85bc2857"]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","vue","./main-ebb617ad10f09f739fef.js","vue-router","single-spa","vuex","vuetify"],(function(s,p){"use strict";var l,t,n,r,a,o;return{setters:[e=>{l=e.o},e=>{t=e.resolveComponent,n=e.createBlock,r=e.openBlock,a=e.normalizeStyle},e=>{o=e.d},null,null,null,null],execute:(function(){const e={props:{value:{type:Number}},mixins:[l],data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}};function u(i,y,c,b,d,f){const v=t("v-radio");return r(),n(v,{"hide-details":"",dense:"",label:d.label,style:a(i.computedStyle),value:c.value},null,8,["label","style","value"])}const m=s("default",o(e,[["render",u]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Layout-
|
1
|
+
System.register(["./Layout-BNvQKlyy-ab493756eb1124f6922a.js","vue","./main-ebb617ad10f09f739fef.js","./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","vue-router","single-spa","vuex","vuetify"],(function(h,B){"use strict";var l,a,s,r,c,o,i,u,m,d,p,g;return{setters:[e=>{l=e.r},e=>{a=e.resolveComponent,s=e.createBlock,r=e.openBlock,c=e.normalizeStyle,o=e.withCtx,i=e.createElementBlock,u=e.Fragment,m=e.renderList,d=e.resolveDynamicComponent,p=e.mergeProps},e=>{g=e.d},null,null,null,null,null],execute:(function(){const e={mixins:[l],data(){return{selectedIndex:0}},created(){this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}};function k(n,v,C,z,y,S){const f=a("v-radio-group");return r(),s(f,{"hide-details":"",density:"compact",modelValue:y.selectedIndex,"onUpdate:modelValue":v[0]||(v[0]=t=>y.selectedIndex=t),style:c(n.computedStyle)},{default:o(()=>[(r(!0),i(u,null,m(n.widgets,(t,x)=>(r(),s(d(t.type),p({ref_for:!0},n.listeners,{value:x,key:x,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,name:t.name}),null,16,["value","target","parameters","settings","screen-values","screen-time-zone","name"]))),128))]),_:1},8,["modelValue","style"])}const I=h("default",g(e,[["render",k]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","vue","./main-ebb617ad10f09f739fef.js","vue-router","single-spa","vuex","vuetify"],(function(c,u){"use strict";var r,a,n,h,i,l;return{setters:[t=>{r=t.o},t=>{a=t.createElementBlock,n=t.openBlock,h=t.normalizeStyle,i=t.createElementVNode},t=>{l=t.d},null,null,null,null],execute:(function(){const t={mixins:[r],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return parseInt(this.parameters[3])},max(){return parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},unmounted(){this.$emit("deleteItem",this.valueId)},methods:{calcPosition(){let e=this.screenValues[this.valueId][0];if(!e)return 0;if(e.raw)return e.raw==="-Infinity"?0:100;const s=(e-this.min)/this.range*100;return s>100?100:s<0?0:s}}};function o(e,s,p,g,_,d){return n(),a("div",{class:"rangebar",style:h([d.cssProps,e.computedStyle])},[...s[0]||(s[0]=[i("div",{class:"rangebar__container"},[i("div",{class:"rangebar__line"}),i("div",{class:"rangebar__arrow"})],-1)])],4)}const m=c("default",l(t,[["render",o],["__scopeId","data-v-34d37e7c"]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","vue","./main-ebb617ad10f09f739fef.js","vue-router","single-spa","vuex","vuetify"],(function(m,p){"use strict";var i,r,c,a,o,u;return{setters:[t=>{i=t.o},t=>{r=t.resolveComponent,c=t.createBlock,a=t.openBlock,o=t.normalizeStyle},t=>{u=t.d},null,null,null,null],execute:(function(){const t={mixins:[i],props:{value:{default:null}},data:function(){return{valueId:null,icon:"",label:"",subLabel:"",items:[],screenTarget:null,screenName:null}},computed:{status:function(){let e="off";for(const n of this.items){let s=this.screenValues[n][1];s&&((s.includes("BLUE")||s.includes("GREEN"))&&e!="caution"&&e!="critical"&&(e="normal"),s.includes("YELLOW")&&e!="critical"&&(e="caution"),s.includes("RED")&&(e="critical"))}return e},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.icon=this.parameters[0],this.label=this.parameters[1],this.subLabel=this.parameters[2],this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"TLM":let n="CONVERTED";e[4]&&(n=e[4]);let s=`${e[1]}__${e[2]}__${e[3]}__${n}`;this.items.push(s),this.$emit("addItem",s);break}})},unmounted:function(){this.items.forEach(e=>{this.$emit("deleteItem",e)})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function h(e,n,s,b,E,l){const d=r("rux-monitoring-icon");return a(),c(d,{class:"rux-icon",style:o([l.pointerStyle,e.computedStyle]),icon:e.icon,status:l.status,label:e.label,sublabel:e.subLabel,onClick:l.clickHandler},null,8,["style","icon","status","label","sublabel","onClick"])}const f=m("default",u(t,[["render",h]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Layout-
|
1
|
+
System.register(["./Layout-BNvQKlyy-ab493756eb1124f6922a.js","./VerticalWidget-BuKinn_c-e76ac82a0ac8e6c8f298.js","vue","./main-ebb617ad10f09f739fef.js","./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","vue-router","single-spa","vuex","vuetify"],(function(f,k){"use strict";var l,c,i,r,o,u,m,g,p,d,y;return{setters:[e=>{l=e.r},e=>{c=e.default},e=>{i=e.createElementBlock,r=e.openBlock,o=e.normalizeStyle,u=e.Fragment,m=e.renderList,g=e.createBlock,p=e.resolveDynamicComponent,d=e.mergeProps},e=>{y=e.d},null,null,null,null,null],execute:(function(){const e={components:{VerticalWidget:c},mixins:[l],created:function(){if(this.setHeight(this.parameters[0],"px",200),this.parameters[1]){let n=this.parameters[1];this.widgets.forEach(a=>{a.settings.find(s=>s[0]==="MARGIN"||s[0].startsWith("RAW")&&s[1].toUpperCase().includes("MARGIN"))===void 0&&a.settings.push(["MARGIN",n])})}}};function v(n,a,s,w,N,R){return r(),i("div",{ref:"container",style:o(n.computedStyle),class:"overflow-y-auto"},[(r(!0),i(u,null,m(n.widgets,(t,h)=>(r(),g(p(t.type),d({ref_for:!0},n.listeners,{key:h,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const B=f("default",y(e,[["render",v]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./VWidget-
|
1
|
+
System.register(["./VWidget-P-X9ffkl-84f887e75088f1aab957.js","vue","./main-ebb617ad10f09f739fef.js","./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","vue-router","single-spa","vuex","vuetify"],(function(o,d){"use strict";var l,n,r,a,s,i;return{setters:[t=>{l=t.h},t=>{n=t.resolveComponent,r=t.createBlock,a=t.openBlock,s=t.normalizeStyle},t=>{i=t.d},null,null,null,null,null],execute:(function(){const t={mixins:[l],props:{value:{default:null}},data:function(){return{item:null,oneBar:30,twoBar:60,threeBar:90}},computed:{displayedIcon:function(){let e="mdi-signal-cellular-outline";return this._value>=this.oneBar&&(e="mdi-signal-cellular-1"),this._value>=this.twoBar&&(e="mdi-signal-cellular-2"),this._value>=this.threeBar&&(e="mdi-signal-cellular-3"),e}},created(){this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"VALUES":this.oneBar=parseFloat(e[1]),this.twoBar=parseFloat(e[2]),this.threeBar=parseFloat(e[3]);break}})},methods:{getType(){let e="CONVERTED";return this.parameters[3]=="RAW"&&(e="RAW"),e},clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function u(e,m,g,B,v,c){const h=n("v-btn");return a(),r(h,{icon:c.displayedIcon,variant:"text",style:s(e.computedStyle),"aria-label":"Signal Strength",onClick:c.clickHandler},null,8,["icon","style","onClick"])}const p=o("default",i(t,[["render",u]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","vue","./main-ebb617ad10f09f739fef.js","vue-router","single-spa","vuex","vuetify"],(function(r,o){"use strict";var t,n,s,i,l;return{setters:[e=>{t=e.o},e=>{n=e.createElementBlock,s=e.openBlock,i=e.normalizeStyle},e=>{l=e.d},null,null,null,null],execute:(function(){const e={mixins:[t],created(){this.parameters[0]!==void 0&&this.appliedSettings.push(["WIDTH",this.parameters[0]]),this.parameters[1]!==void 0&&this.appliedSettings.push(["HEIGHT",this.parameters[1]])}};function u(a,p,d,m,h,v){return s(),n("div",{style:i(a.computedStyle)},null,4)}const c=r("default",l(e,[["render",u]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./GraphWidget-
|
1
|
+
System.register(["./GraphWidget-CHm4bhMI-99356cd86f8d1ebfcd43.js","./main-ebb617ad10f09f739fef.js","vue","./Graph-DZBpdSgR-4a472a5c75f656b8dfe4.js","single-spa","./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","vue-router","vuex","vuetify"],(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.createBlock,a=e.openBlock,d=e.normalizeStyle},e=>{o=e.P},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,f,y){const h=n("graph");return a(),r(h,{ref:"graph"+t.id,id:t.id,state:t.state,"selected-graph-id":t.id,startTime: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","startTime","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style"])}const u=l("default",s(e,[["render",p]]))})}}));
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Layout-BNvQKlyy-ab493756eb1124f6922a.js","vue","./main-ebb617ad10f09f739fef.js","./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","vue-router","single-spa","vuex","vuetify"],(function(k,_){"use strict";var p,a,s,r,g,v,i,u,c,o,y,f,w,b,V;return{setters:[e=>{p=e.r},e=>{a=e.resolveComponent,s=e.createElementBlock,r=e.openBlock,g=e.createVNode,v=e.normalizeStyle,i=e.withCtx,u=e.Fragment,c=e.renderList,o=e.createBlock,y=e.createTextVNode,f=e.toDisplayString,w=e.resolveDynamicComponent,b=e.mergeProps},e=>{V=e.d},null,null,null,null,null],execute:(function(){const e={mixins:[p],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function B(t,m,h,D,L,j){const T=a("v-tab"),x=a("v-tabs"),C=a("v-window-item"),N=a("v-window");return r(),s("div",null,[g(x,{modelValue:t.curTab,"onUpdate:modelValue":m[0]||(m[0]=l=>t.curTab=l),style:v(t.computedStyle)},{default:i(()=>[(r(!0),s(u,null,c(t.widgets,(l,d)=>(r(),o(T,{key:d},{default:i(()=>[y(f(l.parameters[0]),1)]),_:2},1024))),128))]),_:1},8,["modelValue","style"]),g(N,{modelValue:t.curTab,"onUpdate:modelValue":m[1]||(m[1]=l=>t.curTab=l)},{default:i(()=>[(r(!0),s(u,null,c(t.widgets,(l,d)=>(r(),o(C,{key:d},{default:i(()=>[(r(!0),s(u,null,c(l.widgets,(n,S)=>(r(),o(w(n.type),b({ref_for:!0},t.listeners,{key:`${d}-${S}`,target:n.target,parameters:n.parameters,settings:n.settings,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,widgets:n.widgets,name:n.name,line:n.line,"line-number":n.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))]),_:2},1024))),128))]),_:1},8,["modelValue"])])}const z=k("default",V(e,[["render",B]]))})}}));
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./main-ebb617ad10f09f739fef.js","vue","./DetailsDialog-B2l0BNc2-61b72e331f6f26ae564d.js","single-spa","./VWidget-P-X9ffkl-84f887e75088f1aab957.js","vue-router","vuex","vuetify","./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js"],(function(y,T){"use strict";var c,a,o,s,n,u,d,l,m,h,g,p,v,x,f,w;return{setters:[e=>{c=e.d},e=>{a=e.resolveComponent,o=e.createElementBlock,s=e.openBlock,n=e.createVNode,u=e.normalizeStyle,d=e.normalizeClass,l=e.withCtx,m=e.Fragment,h=e.renderList,g=e.createBlock,p=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{f=e.P},null,e=>{w=e.h},null,null,null,null],execute:(function(){const e={components:{DetailsDialog:f},data:function(){return{width:200,height:200}},mixins:[w],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){let t="CONVERTED";return this.parameters[5]&&(t=this.parameters[5]),t}}},k={class:"textbox-widget-container"};function C(t,r,j,P,F,V){const B=a("v-textarea"),D=a("v-list-item-title"),S=a("v-list-item"),_=a("v-list"),N=a("v-menu"),z=a("details-dialog");return s(),o("div",k,[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(N,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(_,null,{default:l(()=>[(s(!0),o(m,null,h(t.contextMenuOptions,(i,M)=>(s(),g(S,{key:M,onClick:p(i.action,["stop"])},{default:l(()=>[n(D,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(z,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=i=>t.viewDetails=i)},null,8,["target-name","packet-name","item-name","modelValue"])])}const E=y("default",c(e,[["render",C],["__scopeId","data-v-10f560aa"]]))})}}));
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","vue","./main-ebb617ad10f09f739fef.js","vue-router","single-spa","vuex","vuetify"],(function(i,h){"use strict";var t,l,n,s,a,o;return{setters:[e=>{t=e.o},e=>{l=e.resolveComponent,n=e.createBlock,s=e.openBlock,a=e.normalizeStyle},e=>{o=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,r,y,f,u,k){const m=l("v-text-field");return s(),n(m,{variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),style:a(d.computedStyle)},null,8,["modelValue","style"])}const p=i("default",o(e,[["render",c]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","./main-ebb617ad10f09f739fef.js","vue","vue-router","single-spa","vuex","vuetify"],(function(m,y){"use strict";var l,i,n,a,r,s,o;return{setters:[e=>{l=e.o},e=>{i=e.d,n=e.R},e=>{a=e.resolveComponent,r=e.createBlock,s=e.openBlock,o=e.normalizeStyle},null,null,null,null],execute:(function(){const e={mixins:[l,n],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function c(d,u,f,v,t,b){const h=a("v-text-field");return s(),r(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=p=>t.timeValue=p),label:t.label,style:o(d.computedStyle),type:"time","hide-details":""},null,8,["modelValue","label","style"])}const V=m("default",i(e,[["render",c]]))})}}));
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","vue","./main-ebb617ad10f09f739fef.js","vue-router","single-spa","vuex","vuetify"],(function(a,m){"use strict";var t,r,l,n,o,s;return{setters:[e=>{t=e.o},e=>{r=e.createElementBlock,l=e.openBlock,n=e.normalizeStyle,o=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 i(c,d,f,x,y,u){return l(),r("div",{class:"text-h5 text-center pa-1 mt-1 label",style:n(c.computedStyle)},o(u.labelText),5)}const p=a("default",s(e,[["render",i]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-ebb617ad10f09f739fef.js","./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js"],(function(a,n){"use strict";var r,i;return{setters:[s=>{r=s.R},s=>{i=s.o}],execute:(function(){const s={methods:{formatValueBase(e,t){return this.isJsonString(e)?this.formatJsonString(e):Array.isArray(e)?this.formatArray(e):this.isObject(e)?"":t&&e?sprintf(t,e):String(e)},isJsonString(e){return e&&e.json_class==="String"&&e.raw!==void 0},formatJsonString(e){let t=Array.from(e.raw.slice(0,32),l=>("0"+(l&255).toString(16)).slice(-2)).join(" ").toUpperCase();return e.raw.length>32&&(t+="..."),t},formatArray(e){return"["+e.map(t=>typeof t=="string"?`"${t}"`:t).join(", ")+"]"},isObject(e){return Object.prototype.toString.call(e).slice(8,-1)==="Object"}}},u=a("h",{mixins:[i,r,s],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2])+"/","_blank")}}]}},watch:{_counter:function(e,t){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let e=this.limitsState;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][1]):e=null),e},_counter:function(){let e=this.counter;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroStatus(){switch(this.limitsColor){case"green":return"normal";case"yellow":return"caution";case"red":return"critical";case"blue":return"standby";default:return null}},limitsColor(){let e=this._limitsState;if(e!=null)switch(e){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let e=this._limitsState;if(e!=null){let t=e.charAt(0);return e.endsWith("_LOW")&&(t=t.toLowerCase()),t}return""}},created(){if(this.value===null||this.limitsState===null){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let e=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(e[1]),this.parameters[2]=this.parameters[2].replace(e[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){try{return e&&this.valueId&&(this.valueId.toUpperCase().includes("PACKET_TIMEFORMATTED")||this.valueId.toUpperCase().includes("RECEIVED_TIMEFORMATTED"))&&(e=this.formatUtcToLocal(new Date(e.replaceAll("/","-")),this.appliedTimeZone)),this.formatValueBase(e,this.formatString)}catch(t){return console.log(`${this.valueId} formatValue on ${e} with ${this.formatString} failed due to ${t}`),e}},showContextMenu(e){e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}})})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-ebb617ad10f09f739fef.js","vue","./DetailsDialog-B2l0BNc2-61b72e331f6f26ae564d.js","single-spa","./VWidget-P-X9ffkl-84f887e75088f1aab957.js","vue-router","vuex","vuetify","./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js"],(function(S,I){"use strict";var c,a,o,r,d,n,l,m,u,p,v,g,h,f,x,y,V,k;return{setters:[e=>{c=e.d},e=>{a=e.resolveComponent,o=e.createElementBlock,r=e.openBlock,d=e.normalizeStyle,n=e.createVNode,l=e.withCtx,m=e.createElementVNode,u=e.toDisplayString,p=e.mergeProps,v=e.createSlots,g=e.Fragment,h=e.renderList,f=e.createBlock,x=e.withModifiers,y=e.createTextVNode},e=>{V=e.P},null,e=>{k=e.h},null,null,null,null],execute:(function(){const C={components:{DetailsDialog:V},mixins:[k],data:function(){return{width:16}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+4,"ch",this.width)}};function _(t,i,W,j,z,w){const B=a("rux-status"),E=a("v-text-field"),N=a("v-tooltip"),D=a("v-list-item-title"),P=a("v-list-item"),T=a("v-list"),M=a("v-menu"),L=a("details-dialog");return r(),o("div",{class:"value-widget-container",style:d([t.computedStyle,w.aging])},[n(N,{"open-delay":600,location:"top"},{activator:l(({props:s})=>[n(E,p({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value"},s,{onContextmenu:t.showContextMenu}),v({_:2},[t.astroStatus?{name:"prepend-inner",fn:l(()=>[n(B,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:l(()=>[m("span",null,u(w.fullName),1)]),_:1}),n(M,{modelValue:t.contextMenuShown,"onUpdate:modelValue":i[0]||(i[0]=s=>t.contextMenuShown=s),target:[t.x,t.y],style:{"z-index":"3000"}},{default:l(()=>[n(T,null,{default:l(()=>[(r(!0),o(g,null,h(t.contextMenuOptions,(s,A)=>(r(),f(P,{key:A,onClick:x(s.action,["stop"])},{default:l(()=>[n(D,null,{default:l(()=>[y(u(s.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(L,{modelValue:t.viewDetails,"onUpdate:modelValue":i[1]||(i[1]=s=>t.viewDetails=s),"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2]},null,8,["modelValue","target-name","packet-name","item-name"])],4)}const U=S("default",c(C,[["render",_],["__scopeId","data-v-0d38b850"]]))})}}));
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./ValueWidget-DAUGuQ9f-2f5e889073e1ff5d1bff.js","./LimitsbarWidget-DdoQf46y-3efcbef86685ed6bc417.js","./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","vue","./main-ebb617ad10f09f739fef.js","./DetailsDialog-B2l0BNc2-61b72e331f6f26ae564d.js","single-spa","./VWidget-P-X9ffkl-84f887e75088f1aab957.js","vue-router","vuex","vuetify","./BarColumn-BuJ6MTYG-f087bffe8c40cfb7e1fa.js"],(function(d,v){"use strict";var r,i,a,n,u,o,c,s,l,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.o},e=>{n=e.resolveComponent,u=e.createElementBlock,o=e.openBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.d},null,null,null,null,null,null,null],execute:(function(){const e={mixins:[a],components:{ValueWidget:r,LimitsbarWidget:i}};function g(t,y,b,j,x,V){const p=n("value-widget"),f=n("limitsbar-widget");return o(),u("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[s(p,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(f,l(t.$attrs,{parameters:t.parameters.slice(0,3),settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"])],4)}const B=d("default",m(e,[["render",g]]))})}}));
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./ValueWidget-DAUGuQ9f-2f5e889073e1ff5d1bff.js","./LimitscolumnWidget-CnCQtxim-b7f69f44e7e58c63516e.js","./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","vue","./main-ebb617ad10f09f739fef.js","./DetailsDialog-B2l0BNc2-61b72e331f6f26ae564d.js","single-spa","./VWidget-P-X9ffkl-84f887e75088f1aab957.js","vue-router","vuex","vuetify","./BarColumn-BuJ6MTYG-f087bffe8c40cfb7e1fa.js"],(function(g,f){"use strict";var r,i,a,n,u,o,c,s,l,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.o},e=>{n=e.resolveComponent,u=e.createElementBlock,o=e.openBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.d},null,null,null,null,null,null,null],execute:(function(){const e={mixins:[a],components:{ValueWidget:r,LimitscolumnWidget:i}};function d(t,V,j,k,w,x){const p=n("limitscolumn-widget"),v=n("value-widget");return o(),u("div",{ref:"container",style:c(t.computedStyle)},[s(p,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"]),s(v,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const B=g("default",m(e,[["render",d]]))})}}));
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./ValueWidget-DAUGuQ9f-2f5e889073e1ff5d1bff.js","./RangebarWidget-vspY8CGV-8a3d8d05f0507b646ce3.js","./Widget-BIXl-Pk5-6c16a3612842e7f76cf3.js","vue","./main-ebb617ad10f09f739fef.js","./DetailsDialog-B2l0BNc2-61b72e331f6f26ae564d.js","single-spa","./VWidget-P-X9ffkl-84f887e75088f1aab957.js","vue-router","vuex","vuetify"],(function(g,h){"use strict";var n,i,l,r,u,m,o,s,a,p;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.o},e=>{r=e.resolveComponent,u=e.createElementBlock,m=e.openBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{p=e.d},null,null,null,null,null,null],execute:(function(){const e={mixins:[l],components:{ValueWidget:n,RangebarWidget:i},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function d(t,P,V,x,S,c){const v=r("value-widget"),f=r("rangebar-widget");return m(),u("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(v,a(t.$attrs,{parameters:c.valueParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(f,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",p(e,[["render",d]]))})}}));
|